]> git.sur5r.net Git - openldap/blob - configure
Fix typo in last commit
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.591 2005/08/25 18:09:32 kurt Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293        echo_test_string="`eval $cmd`" &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 tagnames=${tagnames+${tagnames},}CXX
399
400 tagnames=${tagnames+${tagnames},}F77
401
402 # Name of the host.
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407 exec 6>&1
408
409 #
410 # Initializations.
411 #
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
414 cross_compiling=no
415 subdirs=
416 MFLAGS=
417 MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete.  It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
424
425 # Identity of this package.
426 PACKAGE_NAME=
427 PACKAGE_TARNAME=
428 PACKAGE_VERSION=
429 PACKAGE_STRING=
430 PACKAGE_BUGREPORT=
431
432 ac_unique_file="OpenLDAP"
433 ac_unique_file="build/version.sh"
434 ac_default_prefix=/usr/local
435 # Factoring default headers for most tests.
436 ac_includes_default="\
437 #include <stdio.h>
438 #if HAVE_SYS_TYPES_H
439 # include <sys/types.h>
440 #endif
441 #if HAVE_SYS_STAT_H
442 # include <sys/stat.h>
443 #endif
444 #if STDC_HEADERS
445 # include <stdlib.h>
446 # include <stddef.h>
447 #else
448 # if HAVE_STDLIB_H
449 #  include <stdlib.h>
450 # endif
451 #endif
452 #if HAVE_STRING_H
453 # if !STDC_HEADERS && HAVE_MEMORY_H
454 #  include <memory.h>
455 # endif
456 # include <string.h>
457 #endif
458 #if HAVE_STRINGS_H
459 # include <strings.h>
460 #endif
461 #if HAVE_INTTYPES_H
462 # include <inttypes.h>
463 #else
464 # if HAVE_STDINT_H
465 #  include <stdint.h>
466 # endif
467 #endif
468 #if HAVE_UNISTD_H
469 # include <unistd.h>
470 #endif"
471
472 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_GLUE BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_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 \
2766         dnssrv \
2767         hdb \
2768         ldap \
2769         ldbm \
2770         meta \
2771         monitor \
2772         null \
2773         passwd \
2774         perl \
2775         relay \
2776         shell \
2777         sql"
2778
2779 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2780 if test "${enable_xxslapbackends+set}" = set; then
2781   enableval="$enable_xxslapbackends"
2782
2783 fi;
2784
2785 # OpenLDAP --enable-backends
2786
2787         # Check whether --enable-backends or --disable-backends was given.
2788 if test "${enable_backends+set}" = set; then
2789   enableval="$enable_backends"
2790
2791         ol_arg=invalid
2792         for ol_val in no yes mod ; do
2793                 if test "$enableval" = "$ol_val" ; then
2794                         ol_arg="$ol_val"
2795                 fi
2796         done
2797         if test "$ol_arg" = "invalid" ; then
2798                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2799 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2800    { (exit 1); exit 1; }; }
2801         fi
2802         ol_enable_backends="$ol_arg"
2803
2804 fi;
2805 # end --enable-backends
2806 # OpenLDAP --enable-bdb
2807
2808         # Check whether --enable-bdb or --disable-bdb was given.
2809 if test "${enable_bdb+set}" = set; then
2810   enableval="$enable_bdb"
2811
2812         ol_arg=invalid
2813         for ol_val in no yes mod ; do
2814                 if test "$enableval" = "$ol_val" ; then
2815                         ol_arg="$ol_val"
2816                 fi
2817         done
2818         if test "$ol_arg" = "invalid" ; then
2819                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2820 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2821    { (exit 1); exit 1; }; }
2822         fi
2823         ol_enable_bdb="$ol_arg"
2824
2825 else
2826         ol_enable_bdb=${ol_enable_backends:-yes}
2827 fi;
2828 # end --enable-bdb
2829 # OpenLDAP --enable-dnssrv
2830
2831         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2832 if test "${enable_dnssrv+set}" = set; then
2833   enableval="$enable_dnssrv"
2834
2835         ol_arg=invalid
2836         for ol_val in no yes mod ; do
2837                 if test "$enableval" = "$ol_val" ; then
2838                         ol_arg="$ol_val"
2839                 fi
2840         done
2841         if test "$ol_arg" = "invalid" ; then
2842                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2843 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2844    { (exit 1); exit 1; }; }
2845         fi
2846         ol_enable_dnssrv="$ol_arg"
2847
2848 else
2849         ol_enable_dnssrv=${ol_enable_backends:-no}
2850 fi;
2851 # end --enable-dnssrv
2852 # OpenLDAP --enable-hdb
2853
2854         # Check whether --enable-hdb or --disable-hdb was given.
2855 if test "${enable_hdb+set}" = set; then
2856   enableval="$enable_hdb"
2857
2858         ol_arg=invalid
2859         for ol_val in no yes mod ; do
2860                 if test "$enableval" = "$ol_val" ; then
2861                         ol_arg="$ol_val"
2862                 fi
2863         done
2864         if test "$ol_arg" = "invalid" ; then
2865                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2866 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2867    { (exit 1); exit 1; }; }
2868         fi
2869         ol_enable_hdb="$ol_arg"
2870
2871 else
2872         ol_enable_hdb=${ol_enable_backends:-yes}
2873 fi;
2874 # end --enable-hdb
2875 # OpenLDAP --enable-ldap
2876
2877         # Check whether --enable-ldap or --disable-ldap was given.
2878 if test "${enable_ldap+set}" = set; then
2879   enableval="$enable_ldap"
2880
2881         ol_arg=invalid
2882         for ol_val in no yes mod ; do
2883                 if test "$enableval" = "$ol_val" ; then
2884                         ol_arg="$ol_val"
2885                 fi
2886         done
2887         if test "$ol_arg" = "invalid" ; then
2888                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2889 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2890    { (exit 1); exit 1; }; }
2891         fi
2892         ol_enable_ldap="$ol_arg"
2893
2894 else
2895         ol_enable_ldap=${ol_enable_backends:-no}
2896 fi;
2897 # end --enable-ldap
2898 # OpenLDAP --enable-ldbm
2899
2900         # Check whether --enable-ldbm or --disable-ldbm was given.
2901 if test "${enable_ldbm+set}" = set; then
2902   enableval="$enable_ldbm"
2903
2904         ol_arg=invalid
2905         for ol_val in no yes mod ; do
2906                 if test "$enableval" = "$ol_val" ; then
2907                         ol_arg="$ol_val"
2908                 fi
2909         done
2910         if test "$ol_arg" = "invalid" ; then
2911                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2912 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2913    { (exit 1); exit 1; }; }
2914         fi
2915         ol_enable_ldbm="$ol_arg"
2916
2917 else
2918         ol_enable_ldbm=${ol_enable_backends:-no}
2919 fi;
2920 # end --enable-ldbm
2921 # OpenLDAP --enable-ldbm_api
2922
2923         # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2924 if test "${enable_ldbm_api+set}" = set; then
2925   enableval="$enable_ldbm_api"
2926
2927         ol_arg=invalid
2928         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2929                 if test "$enableval" = "$ol_val" ; then
2930                         ol_arg="$ol_val"
2931                 fi
2932         done
2933         if test "$ol_arg" = "invalid" ; then
2934                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2935 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2936    { (exit 1); exit 1; }; }
2937         fi
2938         ol_enable_ldbm_api="$ol_arg"
2939
2940 else
2941         ol_enable_ldbm_api=auto
2942 fi;
2943 # end --enable-ldbm_api
2944
2945 # OpenLDAP --enable-ldbm_type
2946
2947         # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2948 if test "${enable_ldbm_type+set}" = set; then
2949   enableval="$enable_ldbm_type"
2950
2951         ol_arg=invalid
2952         for ol_val in auto btree hash ; do
2953                 if test "$enableval" = "$ol_val" ; then
2954                         ol_arg="$ol_val"
2955                 fi
2956         done
2957         if test "$ol_arg" = "invalid" ; then
2958                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2959 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2960    { (exit 1); exit 1; }; }
2961         fi
2962         ol_enable_ldbm_type="$ol_arg"
2963
2964 else
2965         ol_enable_ldbm_type=auto
2966 fi;
2967 # end --enable-ldbm_type
2968
2969 # OpenLDAP --enable-meta
2970
2971         # Check whether --enable-meta or --disable-meta was given.
2972 if test "${enable_meta+set}" = set; then
2973   enableval="$enable_meta"
2974
2975         ol_arg=invalid
2976         for ol_val in no yes mod ; do
2977                 if test "$enableval" = "$ol_val" ; then
2978                         ol_arg="$ol_val"
2979                 fi
2980         done
2981         if test "$ol_arg" = "invalid" ; then
2982                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2983 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2984    { (exit 1); exit 1; }; }
2985         fi
2986         ol_enable_meta="$ol_arg"
2987
2988 else
2989         ol_enable_meta=${ol_enable_backends:-no}
2990 fi;
2991 # end --enable-meta
2992 # OpenLDAP --enable-monitor
2993
2994         # Check whether --enable-monitor or --disable-monitor was given.
2995 if test "${enable_monitor+set}" = set; then
2996   enableval="$enable_monitor"
2997
2998         ol_arg=invalid
2999         for ol_val in no yes mod ; do
3000                 if test "$enableval" = "$ol_val" ; then
3001                         ol_arg="$ol_val"
3002                 fi
3003         done
3004         if test "$ol_arg" = "invalid" ; then
3005                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3006 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3007    { (exit 1); exit 1; }; }
3008         fi
3009         ol_enable_monitor="$ol_arg"
3010
3011 else
3012         ol_enable_monitor=${ol_enable_backends:-yes}
3013 fi;
3014 # end --enable-monitor
3015 # OpenLDAP --enable-null
3016
3017         # Check whether --enable-null or --disable-null was given.
3018 if test "${enable_null+set}" = set; then
3019   enableval="$enable_null"
3020
3021         ol_arg=invalid
3022         for ol_val in no yes mod ; do
3023                 if test "$enableval" = "$ol_val" ; then
3024                         ol_arg="$ol_val"
3025                 fi
3026         done
3027         if test "$ol_arg" = "invalid" ; then
3028                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3029 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3030    { (exit 1); exit 1; }; }
3031         fi
3032         ol_enable_null="$ol_arg"
3033
3034 else
3035         ol_enable_null=${ol_enable_backends:-no}
3036 fi;
3037 # end --enable-null
3038 # OpenLDAP --enable-passwd
3039
3040         # Check whether --enable-passwd or --disable-passwd was given.
3041 if test "${enable_passwd+set}" = set; then
3042   enableval="$enable_passwd"
3043
3044         ol_arg=invalid
3045         for ol_val in no yes mod ; do
3046                 if test "$enableval" = "$ol_val" ; then
3047                         ol_arg="$ol_val"
3048                 fi
3049         done
3050         if test "$ol_arg" = "invalid" ; then
3051                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3052 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3053    { (exit 1); exit 1; }; }
3054         fi
3055         ol_enable_passwd="$ol_arg"
3056
3057 else
3058         ol_enable_passwd=${ol_enable_backends:-no}
3059 fi;
3060 # end --enable-passwd
3061 # OpenLDAP --enable-perl
3062
3063         # Check whether --enable-perl or --disable-perl was given.
3064 if test "${enable_perl+set}" = set; then
3065   enableval="$enable_perl"
3066
3067         ol_arg=invalid
3068         for ol_val in no yes mod ; do
3069                 if test "$enableval" = "$ol_val" ; then
3070                         ol_arg="$ol_val"
3071                 fi
3072         done
3073         if test "$ol_arg" = "invalid" ; then
3074                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3075 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3076    { (exit 1); exit 1; }; }
3077         fi
3078         ol_enable_perl="$ol_arg"
3079
3080 else
3081         ol_enable_perl=${ol_enable_backends:-no}
3082 fi;
3083 # end --enable-perl
3084 # OpenLDAP --enable-relay
3085
3086         # Check whether --enable-relay or --disable-relay was given.
3087 if test "${enable_relay+set}" = set; then
3088   enableval="$enable_relay"
3089
3090         ol_arg=invalid
3091         for ol_val in no yes mod ; do
3092                 if test "$enableval" = "$ol_val" ; then
3093                         ol_arg="$ol_val"
3094                 fi
3095         done
3096         if test "$ol_arg" = "invalid" ; then
3097                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3098 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3099    { (exit 1); exit 1; }; }
3100         fi
3101         ol_enable_relay="$ol_arg"
3102
3103 else
3104         ol_enable_relay=${ol_enable_backends:-yes}
3105 fi;
3106 # end --enable-relay
3107 # OpenLDAP --enable-shell
3108
3109         # Check whether --enable-shell or --disable-shell was given.
3110 if test "${enable_shell+set}" = set; then
3111   enableval="$enable_shell"
3112
3113         ol_arg=invalid
3114         for ol_val in no yes mod ; do
3115                 if test "$enableval" = "$ol_val" ; then
3116                         ol_arg="$ol_val"
3117                 fi
3118         done
3119         if test "$ol_arg" = "invalid" ; then
3120                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3121 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3122    { (exit 1); exit 1; }; }
3123         fi
3124         ol_enable_shell="$ol_arg"
3125
3126 else
3127         ol_enable_shell=${ol_enable_backends:-no}
3128 fi;
3129 # end --enable-shell
3130 # OpenLDAP --enable-sql
3131
3132         # Check whether --enable-sql or --disable-sql was given.
3133 if test "${enable_sql+set}" = set; then
3134   enableval="$enable_sql"
3135
3136         ol_arg=invalid
3137         for ol_val in no yes mod ; do
3138                 if test "$enableval" = "$ol_val" ; then
3139                         ol_arg="$ol_val"
3140                 fi
3141         done
3142         if test "$ol_arg" = "invalid" ; then
3143                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3144 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3145    { (exit 1); exit 1; }; }
3146         fi
3147         ol_enable_sql="$ol_arg"
3148
3149 else
3150         ol_enable_sql=${ol_enable_backends:-no}
3151 fi;
3152 # end --enable-sql
3153
3154 Overlays="accesslog \
3155         denyop \
3156         dyngroup \
3157         dynlist \
3158         glue \
3159         lastmod \
3160         ppolicy \
3161         proxycache \
3162         refint \
3163         retcode \
3164         rwm \
3165         syncprov \
3166         translucent \
3167         unique \
3168         valsort"
3169
3170 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3171 if test "${enable_xxslapoverlays+set}" = set; then
3172   enableval="$enable_xxslapoverlays"
3173
3174 fi;
3175
3176 # OpenLDAP --enable-overlays
3177
3178         # Check whether --enable-overlays or --disable-overlays was given.
3179 if test "${enable_overlays+set}" = set; then
3180   enableval="$enable_overlays"
3181
3182         ol_arg=invalid
3183         for ol_val in no yes mod ; do
3184                 if test "$enableval" = "$ol_val" ; then
3185                         ol_arg="$ol_val"
3186                 fi
3187         done
3188         if test "$ol_arg" = "invalid" ; then
3189                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3190 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3191    { (exit 1); exit 1; }; }
3192         fi
3193         ol_enable_overlays="$ol_arg"
3194
3195 fi;
3196 # end --enable-overlays
3197 # OpenLDAP --enable-accesslog
3198
3199         # Check whether --enable-accesslog or --disable-accesslog was given.
3200 if test "${enable_accesslog+set}" = set; then
3201   enableval="$enable_accesslog"
3202
3203         ol_arg=invalid
3204         for ol_val in no yes mod ; do
3205                 if test "$enableval" = "$ol_val" ; then
3206                         ol_arg="$ol_val"
3207                 fi
3208         done
3209         if test "$ol_arg" = "invalid" ; then
3210                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3211 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3212    { (exit 1); exit 1; }; }
3213         fi
3214         ol_enable_accesslog="$ol_arg"
3215
3216 else
3217         ol_enable_accesslog=${ol_enable_overlays:-no}
3218 fi;
3219 # end --enable-accesslog
3220
3221 # OpenLDAP --enable-denyop
3222
3223         # Check whether --enable-denyop or --disable-denyop was given.
3224 if test "${enable_denyop+set}" = set; then
3225   enableval="$enable_denyop"
3226
3227         ol_arg=invalid
3228         for ol_val in no yes mod ; do
3229                 if test "$enableval" = "$ol_val" ; then
3230                         ol_arg="$ol_val"
3231                 fi
3232         done
3233         if test "$ol_arg" = "invalid" ; then
3234                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3235 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3236    { (exit 1); exit 1; }; }
3237         fi
3238         ol_enable_denyop="$ol_arg"
3239
3240 else
3241         ol_enable_denyop=${ol_enable_overlays:-no}
3242 fi;
3243 # end --enable-denyop
3244
3245 # OpenLDAP --enable-dyngroup
3246
3247         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3248 if test "${enable_dyngroup+set}" = set; then
3249   enableval="$enable_dyngroup"
3250
3251         ol_arg=invalid
3252         for ol_val in no yes mod ; do
3253                 if test "$enableval" = "$ol_val" ; then
3254                         ol_arg="$ol_val"
3255                 fi
3256         done
3257         if test "$ol_arg" = "invalid" ; then
3258                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3259 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3260    { (exit 1); exit 1; }; }
3261         fi
3262         ol_enable_dyngroup="$ol_arg"
3263
3264 else
3265         ol_enable_dyngroup=${ol_enable_overlays:-no}
3266 fi;
3267 # end --enable-dyngroup
3268
3269 # OpenLDAP --enable-dynlist
3270
3271         # Check whether --enable-dynlist or --disable-dynlist was given.
3272 if test "${enable_dynlist+set}" = set; then
3273   enableval="$enable_dynlist"
3274
3275         ol_arg=invalid
3276         for ol_val in no yes mod ; do
3277                 if test "$enableval" = "$ol_val" ; then
3278                         ol_arg="$ol_val"
3279                 fi
3280         done
3281         if test "$ol_arg" = "invalid" ; then
3282                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3283 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3284    { (exit 1); exit 1; }; }
3285         fi
3286         ol_enable_dynlist="$ol_arg"
3287
3288 else
3289         ol_enable_dynlist=${ol_enable_overlays:-no}
3290 fi;
3291 # end --enable-dynlist
3292
3293 # OpenLDAP --enable-glue
3294
3295         # Check whether --enable-glue or --disable-glue was given.
3296 if test "${enable_glue+set}" = set; then
3297   enableval="$enable_glue"
3298
3299         ol_arg=invalid
3300         for ol_val in no yes mod ; do
3301                 if test "$enableval" = "$ol_val" ; then
3302                         ol_arg="$ol_val"
3303                 fi
3304         done
3305         if test "$ol_arg" = "invalid" ; then
3306                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3307 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3308    { (exit 1); exit 1; }; }
3309         fi
3310         ol_enable_glue="$ol_arg"
3311
3312 else
3313         ol_enable_glue=${ol_enable_overlays:-yes}
3314 fi;
3315 # end --enable-glue
3316
3317 # OpenLDAP --enable-lastmod
3318
3319         # Check whether --enable-lastmod or --disable-lastmod was given.
3320 if test "${enable_lastmod+set}" = set; then
3321   enableval="$enable_lastmod"
3322
3323         ol_arg=invalid
3324         for ol_val in no yes mod ; do
3325                 if test "$enableval" = "$ol_val" ; then
3326                         ol_arg="$ol_val"
3327                 fi
3328         done
3329         if test "$ol_arg" = "invalid" ; then
3330                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3331 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3332    { (exit 1); exit 1; }; }
3333         fi
3334         ol_enable_lastmod="$ol_arg"
3335
3336 else
3337         ol_enable_lastmod=${ol_enable_overlays:-no}
3338 fi;
3339 # end --enable-lastmod
3340
3341 # OpenLDAP --enable-ppolicy
3342
3343         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3344 if test "${enable_ppolicy+set}" = set; then
3345   enableval="$enable_ppolicy"
3346
3347         ol_arg=invalid
3348         for ol_val in no yes mod ; do
3349                 if test "$enableval" = "$ol_val" ; then
3350                         ol_arg="$ol_val"
3351                 fi
3352         done
3353         if test "$ol_arg" = "invalid" ; then
3354                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3355 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3356    { (exit 1); exit 1; }; }
3357         fi
3358         ol_enable_ppolicy="$ol_arg"
3359
3360 else
3361         ol_enable_ppolicy=${ol_enable_overlays:-no}
3362 fi;
3363 # end --enable-ppolicy
3364
3365 # OpenLDAP --enable-proxycache
3366
3367         # Check whether --enable-proxycache or --disable-proxycache was given.
3368 if test "${enable_proxycache+set}" = set; then
3369   enableval="$enable_proxycache"
3370
3371         ol_arg=invalid
3372         for ol_val in no yes mod ; do
3373                 if test "$enableval" = "$ol_val" ; then
3374                         ol_arg="$ol_val"
3375                 fi
3376         done
3377         if test "$ol_arg" = "invalid" ; then
3378                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3379 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3380    { (exit 1); exit 1; }; }
3381         fi
3382         ol_enable_proxycache="$ol_arg"
3383
3384 else
3385         ol_enable_proxycache=${ol_enable_overlays:-no}
3386 fi;
3387 # end --enable-proxycache
3388
3389 # OpenLDAP --enable-refint
3390
3391         # Check whether --enable-refint or --disable-refint was given.
3392 if test "${enable_refint+set}" = set; then
3393   enableval="$enable_refint"
3394
3395         ol_arg=invalid
3396         for ol_val in no yes mod ; do
3397                 if test "$enableval" = "$ol_val" ; then
3398                         ol_arg="$ol_val"
3399                 fi
3400         done
3401         if test "$ol_arg" = "invalid" ; then
3402                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3403 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3404    { (exit 1); exit 1; }; }
3405         fi
3406         ol_enable_refint="$ol_arg"
3407
3408 else
3409         ol_enable_refint=${ol_enable_overlays:-no}
3410 fi;
3411 # end --enable-refint
3412
3413 # OpenLDAP --enable-retcode
3414
3415         # Check whether --enable-retcode or --disable-retcode was given.
3416 if test "${enable_retcode+set}" = set; then
3417   enableval="$enable_retcode"
3418
3419         ol_arg=invalid
3420         for ol_val in no yes mod ; do
3421                 if test "$enableval" = "$ol_val" ; then
3422                         ol_arg="$ol_val"
3423                 fi
3424         done
3425         if test "$ol_arg" = "invalid" ; then
3426                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3427 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3428    { (exit 1); exit 1; }; }
3429         fi
3430         ol_enable_retcode="$ol_arg"
3431
3432 else
3433         ol_enable_retcode=${ol_enable_overlays:-no}
3434 fi;
3435 # end --enable-retcode
3436
3437 # OpenLDAP --enable-rwm
3438
3439         # Check whether --enable-rwm or --disable-rwm was given.
3440 if test "${enable_rwm+set}" = set; then
3441   enableval="$enable_rwm"
3442
3443         ol_arg=invalid
3444         for ol_val in no yes mod ; do
3445                 if test "$enableval" = "$ol_val" ; then
3446                         ol_arg="$ol_val"
3447                 fi
3448         done
3449         if test "$ol_arg" = "invalid" ; then
3450                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3451 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3452    { (exit 1); exit 1; }; }
3453         fi
3454         ol_enable_rwm="$ol_arg"
3455
3456 else
3457         ol_enable_rwm=${ol_enable_overlays:-no}
3458 fi;
3459 # end --enable-rwm
3460
3461 # OpenLDAP --enable-syncprov
3462
3463         # Check whether --enable-syncprov or --disable-syncprov was given.
3464 if test "${enable_syncprov+set}" = set; then
3465   enableval="$enable_syncprov"
3466
3467         ol_arg=invalid
3468         for ol_val in no yes mod ; do
3469                 if test "$enableval" = "$ol_val" ; then
3470                         ol_arg="$ol_val"
3471                 fi
3472         done
3473         if test "$ol_arg" = "invalid" ; then
3474                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3475 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3476    { (exit 1); exit 1; }; }
3477         fi
3478         ol_enable_syncprov="$ol_arg"
3479
3480 else
3481         ol_enable_syncprov=${ol_enable_overlays:-yes}
3482 fi;
3483 # end --enable-syncprov
3484
3485 # OpenLDAP --enable-translucent
3486
3487         # Check whether --enable-translucent or --disable-translucent was given.
3488 if test "${enable_translucent+set}" = set; then
3489   enableval="$enable_translucent"
3490
3491         ol_arg=invalid
3492         for ol_val in no yes mod ; do
3493                 if test "$enableval" = "$ol_val" ; then
3494                         ol_arg="$ol_val"
3495                 fi
3496         done
3497         if test "$ol_arg" = "invalid" ; then
3498                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3499 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3500    { (exit 1); exit 1; }; }
3501         fi
3502         ol_enable_translucent="$ol_arg"
3503
3504 else
3505         ol_enable_translucent=${ol_enable_overlays:-no}
3506 fi;
3507 # end --enable-translucent
3508
3509 # OpenLDAP --enable-unique
3510
3511         # Check whether --enable-unique or --disable-unique was given.
3512 if test "${enable_unique+set}" = set; then
3513   enableval="$enable_unique"
3514
3515         ol_arg=invalid
3516         for ol_val in no yes mod ; do
3517                 if test "$enableval" = "$ol_val" ; then
3518                         ol_arg="$ol_val"
3519                 fi
3520         done
3521         if test "$ol_arg" = "invalid" ; then
3522                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3523 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3524    { (exit 1); exit 1; }; }
3525         fi
3526         ol_enable_unique="$ol_arg"
3527
3528 else
3529         ol_enable_unique=${ol_enable_overlays:-no}
3530 fi;
3531 # end --enable-unique
3532
3533 # OpenLDAP --enable-valsort
3534
3535         # Check whether --enable-valsort or --disable-valsort was given.
3536 if test "${enable_valsort+set}" = set; then
3537   enableval="$enable_valsort"
3538
3539         ol_arg=invalid
3540         for ol_val in no yes mod ; do
3541                 if test "$enableval" = "$ol_val" ; then
3542                         ol_arg="$ol_val"
3543                 fi
3544         done
3545         if test "$ol_arg" = "invalid" ; then
3546                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3547 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3548    { (exit 1); exit 1; }; }
3549         fi
3550         ol_enable_valsort="$ol_arg"
3551
3552 else
3553         ol_enable_valsort=${ol_enable_overlays:-no}
3554 fi;
3555 # end --enable-valsort
3556
3557
3558 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3559 if test "${enable_xxslurpdoptions+set}" = set; then
3560   enableval="$enable_xxslurpdoptions"
3561
3562 fi;
3563 # OpenLDAP --enable-slurpd
3564
3565         # Check whether --enable-slurpd or --disable-slurpd was given.
3566 if test "${enable_slurpd+set}" = set; then
3567   enableval="$enable_slurpd"
3568
3569         ol_arg=invalid
3570         for ol_val in auto yes no ; do
3571                 if test "$enableval" = "$ol_val" ; then
3572                         ol_arg="$ol_val"
3573                 fi
3574         done
3575         if test "$ol_arg" = "invalid" ; then
3576                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3577 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3578    { (exit 1); exit 1; }; }
3579         fi
3580         ol_enable_slurpd="$ol_arg"
3581
3582 else
3583         ol_enable_slurpd=auto
3584 fi;
3585 # end --enable-slurpd
3586
3587 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3588 if test "${enable_xxliboptions+set}" = set; then
3589   enableval="$enable_xxliboptions"
3590
3591 fi;
3592 # Check whether --enable-static or --disable-static was given.
3593 if test "${enable_static+set}" = set; then
3594   enableval="$enable_static"
3595   p=${PACKAGE-default}
3596     case $enableval in
3597     yes) enable_static=yes ;;
3598     no) enable_static=no ;;
3599     *)
3600      enable_static=no
3601       # Look at the argument we got.  We use all the common list separators.
3602       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3603       for pkg in $enableval; do
3604         IFS="$lt_save_ifs"
3605         if test "X$pkg" = "X$p"; then
3606           enable_static=yes
3607         fi
3608       done
3609       IFS="$lt_save_ifs"
3610       ;;
3611     esac
3612 else
3613   enable_static=yes
3614 fi;
3615
3616 # Check whether --enable-shared or --disable-shared was given.
3617 if test "${enable_shared+set}" = set; then
3618   enableval="$enable_shared"
3619   p=${PACKAGE-default}
3620     case $enableval in
3621     yes) enable_shared=yes ;;
3622     no) enable_shared=no ;;
3623     *)
3624       enable_shared=no
3625       # Look at the argument we got.  We use all the common list separators.
3626       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3627       for pkg in $enableval; do
3628         IFS="$lt_save_ifs"
3629         if test "X$pkg" = "X$p"; then
3630           enable_shared=yes
3631         fi
3632       done
3633       IFS="$lt_save_ifs"
3634       ;;
3635     esac
3636 else
3637   enable_shared=yes
3638 fi;
3639
3640
3641
3642 # validate options
3643 if test $ol_enable_slapd = no ; then
3644                 if test $ol_enable_slapi = yes ; then
3645                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3646 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3647         fi
3648         case "$ol_enable_backends" in yes | mod)
3649                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3650 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3651         esac
3652         for i in $Backends; do
3653                 eval "ol_tmp=\$ol_enable_$i"
3654                 if test $ol_tmp != no ; then
3655                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3656 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3657                         eval "ol_enable_$i=no"
3658                 fi
3659         done
3660         if test $ol_enable_modules = yes ; then
3661                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3662 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3663         fi
3664         if test $ol_enable_multimaster = yes ; then
3665                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3666 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3667         fi
3668         if test $ol_enable_wrappers = yes ; then
3669                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3670 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3671         fi
3672         if test $ol_enable_rlookups = yes ; then
3673                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3674 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3675         fi
3676         if test $ol_enable_aci = yes ; then
3677                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3678 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3679         fi
3680         if test $ol_enable_ldbm_api != auto ; then
3681                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3682 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3683         fi
3684         if test $ol_enable_ldbm_type != auto ; then
3685                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3686 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3687         fi
3688         if test $ol_enable_slurpd = yes ; then
3689                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3690 echo "$as_me: error: slurpd requires slapd" >&2;}
3691    { (exit 1); exit 1; }; }
3692         fi
3693         if test $ol_enable_rewrite = yes ; then
3694                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3695 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3696         fi
3697                 case "$ol_enable_overlays" in yes | mod)
3698                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3699 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3700         esac
3701         for i in $Overlays; do
3702                 eval "ol_tmp=\$ol_enable_$i"
3703                 if test $ol_tmp != no ; then
3704                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3705 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3706                         eval "ol_enable_$i=no"
3707                 fi
3708         done
3709
3710         # force settings to no
3711         ol_enable_slapi=no
3712
3713         ol_enable_backends=
3714         ol_enable_overlays=
3715         ol_enable_modules=no
3716         ol_enable_multimaster=no
3717         ol_enable_rlookups=no
3718         ol_enable_aci=no
3719         ol_enable_wrappers=no
3720
3721         ol_enable_ldbm_api=no
3722         ol_enable_ldbm_type=no
3723
3724         ol_enable_slurpd=no
3725
3726         ol_enable_rewrite=no
3727
3728 elif test $ol_enable_ldbm = no ; then
3729
3730         if test $ol_enable_ldbm_api != auto ; then
3731                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3732 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3733         fi
3734
3735         if test $ol_enable_ldbm_type != auto ; then
3736                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3737 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3738         fi
3739
3740         if test $ol_enable_modules != yes -a \
3741                 $ol_enable_bdb = no -a \
3742                 $ol_enable_dnssrv = no -a \
3743                 $ol_enable_hdb = no -a \
3744                 $ol_enable_ldap = no -a \
3745                 $ol_enable_meta = no -a \
3746                 $ol_enable_monitor = no -a \
3747                 $ol_enable_null = no -a \
3748                 $ol_enable_passwd = no -a \
3749                 $ol_enable_perl = no -a \
3750                 $ol_enable_relay = no -a \
3751                 $ol_enable_shell = no -a \
3752                 $ol_enable_sql = no ; then
3753
3754                 if test $ol_enable_slapd = yes ; then
3755                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3756 echo "$as_me: error: slapd requires a backend" >&2;}
3757    { (exit 1); exit 1; }; }
3758                 else
3759                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3760 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3761                         ol_enable_slapd=no
3762                 fi
3763         fi
3764
3765         ol_enable_ldbm_api=no
3766         ol_enable_ldbm_type=no
3767
3768         if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3769                 ol_enable_ldbm_api=berkeley
3770         fi
3771
3772 else
3773                 if test $ol_enable_ldbm_api = gdbm -a \
3774                 $ol_enable_ldbm_type = btree ; then
3775                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3776 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3777    { (exit 1); exit 1; }; }
3778         fi
3779         if test $ol_enable_ldbm_api = mdbm -a \
3780                 $ol_enable_ldbm_type = btree ; then
3781                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3782 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3783    { (exit 1); exit 1; }; }
3784         fi
3785         if test $ol_enable_ldbm_api = ndbm -a \
3786                 $ol_enable_ldbm_type = btree ; then
3787                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3788 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3789    { (exit 1); exit 1; }; }
3790         fi
3791
3792         if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3793                 if test $ol_enable_ldbm_api = auto ; then
3794                         ol_enable_ldbm_api=berkeley
3795                 elif test $ol_enable_ldbm_api != berkeley ; then
3796                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3797 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3798    { (exit 1); exit 1; }; }
3799                 fi
3800         fi
3801 fi
3802
3803 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3804         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3805 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3806    { (exit 1); exit 1; }; }
3807 fi
3808
3809 if test $ol_enable_slurpd = yes ; then
3810                 if test $ol_with_threads = no ; then
3811                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3812 echo "$as_me: error: slurpd requires threads" >&2;}
3813    { (exit 1); exit 1; }; }
3814         fi
3815 fi
3816
3817 if test $ol_enable_lmpasswd = yes ; then
3818         if test $ol_with_tls = no ; then
3819                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3820 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3821    { (exit 1); exit 1; }; }
3822         fi
3823 fi
3824
3825 if test $ol_enable_kbind = yes ; then
3826         if test $ol_with_kerberos = no ; then
3827                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3828 echo "$as_me: error: options require --with-kerberos" >&2;}
3829    { (exit 1); exit 1; }; }
3830         elif test $ol_with_kerberos = auto ; then
3831                 ol_with_kerberos=yes
3832         fi
3833
3834 elif test $ol_enable_kbind = no ; then
3835         if test $ol_with_kerberos = auto ; then
3836                 ol_with_kerberos=no
3837         elif test $ol_with_kerberos != no ; then
3838                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3839 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3840                 ol_with_kerberos=no
3841         fi
3842 fi
3843
3844 if test $ol_enable_spasswd = yes ; then
3845         if test $ol_with_cyrus_sasl = no ; then
3846                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3847 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3848    { (exit 1); exit 1; }; }
3849         fi
3850         ol_with_cyrus_sasl=yes
3851 fi
3852
3853 echo "$as_me:$LINENO: result: done" >&5
3854 echo "${ECHO_T}done" >&6
3855
3856 LDAP_LIBS=
3857 LDBM_LIBS=
3858 LTHREAD_LIBS=
3859 LUTIL_LIBS=
3860
3861 SLAPD_LIBS=
3862 SLURPD_LIBS=
3863
3864 BUILD_SLAPD=no
3865 BUILD_SLURPD=no
3866
3867 BUILD_THREAD=no
3868
3869 BUILD_SLAPI=no
3870 SLAPD_SLAPI_DEPEND=
3871
3872 BUILD_BDB=no
3873 BUILD_DNSSRV=no
3874 BUILD_HDB=no
3875 BUILD_LDAP=no
3876 BUILD_LDBM=no
3877 BUILD_META=no
3878 BUILD_MONITOR=no
3879 BUILD_NULL=no
3880 BUILD_PASSWD=no
3881 BUILD_PERL=no
3882 BUILD_RELAY=no
3883 BUILD_SHELL=no
3884 BUILD_SQL=no
3885
3886 BUILD_ACCESSLOG=no
3887 BUILD_DENYOP=no
3888 BUILD_DYNGROUP=no
3889 BUILD_DYNLIST=no
3890 BUILD_GLUE=no
3891 BUILD_LASTMOD=no
3892 BUILD_PPOLICY=no
3893 BUILD_PROXYCACHE=no
3894 BUILD_REFINT=no
3895 BUILD_RETCODE=no
3896 BUILD_RWM=no
3897 BUILD_SYNCPROV=no
3898 BUILD_TRANSLUCENT=no
3899 BUILD_UNIQUE=no
3900 BUILD_VALSORT=no
3901
3902 SLAPD_STATIC_OVERLAYS=
3903 SLAPD_DYNAMIC_OVERLAYS=
3904
3905 SLAPD_MODULES_LDFLAGS=
3906 SLAPD_MODULES_CPPFLAGS=
3907
3908 SLAPD_STATIC_BACKENDS=back-ldif
3909 SLAPD_DYNAMIC_BACKENDS=
3910
3911 SLAPD_PERL_LDFLAGS=
3912 MOD_PERL_LDFLAGS=
3913 PERL_CPPFLAGS=
3914
3915 SLAPD_SQL_LDFLAGS=
3916 SLAPD_SQL_LIBS=
3917 SLAPD_SQL_INCLUDES=
3918
3919 KRB4_LIBS=
3920 KRB5_LIBS=
3921 SASL_LIBS=
3922 TLS_LIBS=
3923 MODULES_LIBS=
3924 SLAPI_LIBS=
3925 LIBSLAPI=
3926 LIBSLAPITOOLS=
3927 AUTH_LIBS=
3928
3929 SLAPD_SLP_LIBS=
3930 SLAPD_GMP_LIBS=
3931
3932
3933
3934 cat >>confdefs.h <<\_ACEOF
3935 #define HAVE_MKVERSION 1
3936 _ACEOF
3937
3938
3939
3940
3941 ol_aix_threads=no
3942 case "$target" in
3943 *-*-aix*)       if test -z "$CC" ; then
3944                 case "$ol_with_threads" in
3945                 auto | yes |  posix) ol_aix_threads=yes ;;
3946                 esac
3947         fi
3948 ;;
3949 esac
3950
3951 if test $ol_aix_threads = yes ; then
3952         if test -z "${CC}" ; then
3953                 for ac_prog in cc_r xlc_r cc
3954 do
3955   # Extract the first word of "$ac_prog", so it can be a program name with args.
3956 set dummy $ac_prog; ac_word=$2
3957 echo "$as_me:$LINENO: checking for $ac_word" >&5
3958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3959 if test "${ac_cv_prog_CC+set}" = set; then
3960   echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962   if test -n "$CC"; then
3963   ac_cv_prog_CC="$CC" # Let the user override the test.
3964 else
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH
3967 do
3968   IFS=$as_save_IFS
3969   test -z "$as_dir" && as_dir=.
3970   for ac_exec_ext in '' $ac_executable_extensions; do
3971   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3972     ac_cv_prog_CC="$ac_prog"
3973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3974     break 2
3975   fi
3976 done
3977 done
3978
3979 fi
3980 fi
3981 CC=$ac_cv_prog_CC
3982 if test -n "$CC"; then
3983   echo "$as_me:$LINENO: result: $CC" >&5
3984 echo "${ECHO_T}$CC" >&6
3985 else
3986   echo "$as_me:$LINENO: result: no" >&5
3987 echo "${ECHO_T}no" >&6
3988 fi
3989
3990   test -n "$CC" && break
3991 done
3992
3993
3994                 if test "$CC" = cc ; then
3995                                                 if test $ol_with_threads != auto ; then
3996                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3997 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3998    { (exit 1); exit 1; }; }
3999                         else
4000                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4001 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4002                         fi
4003                         ol_with_threads=no
4004                 fi
4005         fi
4006
4007         if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
4008                 ol_with_threads=posix
4009                 ol_cv_pthread_create=yes
4010         fi
4011 fi
4012
4013 if test -z "${CC}"; then
4014         for ac_prog in cc gcc
4015 do
4016   # Extract the first word of "$ac_prog", so it can be a program name with args.
4017 set dummy $ac_prog; ac_word=$2
4018 echo "$as_me:$LINENO: checking for $ac_word" >&5
4019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4020 if test "${ac_cv_prog_CC+set}" = set; then
4021   echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023   if test -n "$CC"; then
4024   ac_cv_prog_CC="$CC" # Let the user override the test.
4025 else
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH
4028 do
4029   IFS=$as_save_IFS
4030   test -z "$as_dir" && as_dir=.
4031   for ac_exec_ext in '' $ac_executable_extensions; do
4032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4033     ac_cv_prog_CC="$ac_prog"
4034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4035     break 2
4036   fi
4037 done
4038 done
4039
4040 fi
4041 fi
4042 CC=$ac_cv_prog_CC
4043 if test -n "$CC"; then
4044   echo "$as_me:$LINENO: result: $CC" >&5
4045 echo "${ECHO_T}$CC" >&6
4046 else
4047   echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6
4049 fi
4050
4051   test -n "$CC" && break
4052 done
4053 test -n "$CC" || CC="missing"
4054
4055
4056         if test "${CC}" = "missing" ; then
4057                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4058 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4059    { (exit 1); exit 1; }; }
4060         fi
4061 fi
4062
4063 if test -z "${AR}"; then
4064         for ac_prog in ar gar
4065 do
4066   # Extract the first word of "$ac_prog", so it can be a program name with args.
4067 set dummy $ac_prog; ac_word=$2
4068 echo "$as_me:$LINENO: checking for $ac_word" >&5
4069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4070 if test "${ac_cv_prog_AR+set}" = set; then
4071   echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073   if test -n "$AR"; then
4074   ac_cv_prog_AR="$AR" # Let the user override the test.
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4078 do
4079   IFS=$as_save_IFS
4080   test -z "$as_dir" && as_dir=.
4081   for ac_exec_ext in '' $ac_executable_extensions; do
4082   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083     ac_cv_prog_AR="$ac_prog"
4084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4085     break 2
4086   fi
4087 done
4088 done
4089
4090 fi
4091 fi
4092 AR=$ac_cv_prog_AR
4093 if test -n "$AR"; then
4094   echo "$as_me:$LINENO: result: $AR" >&5
4095 echo "${ECHO_T}$AR" >&6
4096 else
4097   echo "$as_me:$LINENO: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4099 fi
4100
4101   test -n "$AR" && break
4102 done
4103 test -n "$AR" || AR="missing"
4104
4105
4106         if test "${AR}" = "missing" ; then
4107                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4108 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4109    { (exit 1); exit 1; }; }
4110         fi
4111 fi
4112
4113
4114
4115
4116
4117 # Check whether --enable-fast-install or --disable-fast-install was given.
4118 if test "${enable_fast_install+set}" = set; then
4119   enableval="$enable_fast_install"
4120   p=${PACKAGE-default}
4121     case $enableval in
4122     yes) enable_fast_install=yes ;;
4123     no) enable_fast_install=no ;;
4124     *)
4125       enable_fast_install=no
4126       # Look at the argument we got.  We use all the common list separators.
4127       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4128       for pkg in $enableval; do
4129         IFS="$lt_save_ifs"
4130         if test "X$pkg" = "X$p"; then
4131           enable_fast_install=yes
4132         fi
4133       done
4134       IFS="$lt_save_ifs"
4135       ;;
4136     esac
4137 else
4138   enable_fast_install=yes
4139 fi;
4140
4141 DEPDIR="${am__leading_dot}deps"
4142
4143           ac_config_commands="$ac_config_commands depfiles"
4144
4145
4146 am_make=${MAKE-make}
4147 cat > confinc << 'END'
4148 am__doit:
4149         @echo done
4150 .PHONY: am__doit
4151 END
4152 # If we don't find an include directive, just comment out the code.
4153 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4154 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4155 am__include="#"
4156 am__quote=
4157 _am_result=none
4158 # First try GNU make style include.
4159 echo "include confinc" > confmf
4160 # We grep out `Entering directory' and `Leaving directory'
4161 # messages which can occur if `w' ends up in MAKEFLAGS.
4162 # In particular we don't look at `^make:' because GNU make might
4163 # be invoked under some other name (usually "gmake"), in which
4164 # case it prints its new name instead of `make'.
4165 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4166    am__include=include
4167    am__quote=
4168    _am_result=GNU
4169 fi
4170 # Now try BSD make style include.
4171 if test "$am__include" = "#"; then
4172    echo '.include "confinc"' > confmf
4173    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4174       am__include=.include
4175       am__quote="\""
4176       _am_result=BSD
4177    fi
4178 fi
4179
4180
4181 echo "$as_me:$LINENO: result: $_am_result" >&5
4182 echo "${ECHO_T}$_am_result" >&6
4183 rm -f confinc confmf
4184
4185 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4186 if test "${enable_dependency_tracking+set}" = set; then
4187   enableval="$enable_dependency_tracking"
4188
4189 fi;
4190 if test "x$enable_dependency_tracking" != xno; then
4191   am_depcomp="$ac_aux_dir/depcomp"
4192   AMDEPBACKSLASH='\'
4193 fi
4194
4195
4196 if test "x$enable_dependency_tracking" != xno; then
4197   AMDEP_TRUE=
4198   AMDEP_FALSE='#'
4199 else
4200   AMDEP_TRUE='#'
4201   AMDEP_FALSE=
4202 fi
4203
4204
4205
4206 ac_ext=c
4207 ac_cpp='$CPP $CPPFLAGS'
4208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4211 if test -n "$ac_tool_prefix"; then
4212   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4213 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4214 echo "$as_me:$LINENO: checking for $ac_word" >&5
4215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4216 if test "${ac_cv_prog_CC+set}" = set; then
4217   echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219   if test -n "$CC"; then
4220   ac_cv_prog_CC="$CC" # Let the user override the test.
4221 else
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH
4224 do
4225   IFS=$as_save_IFS
4226   test -z "$as_dir" && as_dir=.
4227   for ac_exec_ext in '' $ac_executable_extensions; do
4228   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4229     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4231     break 2
4232   fi
4233 done
4234 done
4235
4236 fi
4237 fi
4238 CC=$ac_cv_prog_CC
4239 if test -n "$CC"; then
4240   echo "$as_me:$LINENO: result: $CC" >&5
4241 echo "${ECHO_T}$CC" >&6
4242 else
4243   echo "$as_me:$LINENO: result: no" >&5
4244 echo "${ECHO_T}no" >&6
4245 fi
4246
4247 fi
4248 if test -z "$ac_cv_prog_CC"; then
4249   ac_ct_CC=$CC
4250   # Extract the first word of "gcc", so it can be a program name with args.
4251 set dummy gcc; ac_word=$2
4252 echo "$as_me:$LINENO: checking for $ac_word" >&5
4253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4255   echo $ECHO_N "(cached) $ECHO_C" >&6
4256 else
4257   if test -n "$ac_ct_CC"; then
4258   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4259 else
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH
4262 do
4263   IFS=$as_save_IFS
4264   test -z "$as_dir" && as_dir=.
4265   for ac_exec_ext in '' $ac_executable_extensions; do
4266   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4267     ac_cv_prog_ac_ct_CC="gcc"
4268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4269     break 2
4270   fi
4271 done
4272 done
4273
4274 fi
4275 fi
4276 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4277 if test -n "$ac_ct_CC"; then
4278   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4279 echo "${ECHO_T}$ac_ct_CC" >&6
4280 else
4281   echo "$as_me:$LINENO: result: no" >&5
4282 echo "${ECHO_T}no" >&6
4283 fi
4284
4285   CC=$ac_ct_CC
4286 else
4287   CC="$ac_cv_prog_CC"
4288 fi
4289
4290 if test -z "$CC"; then
4291   if test -n "$ac_tool_prefix"; then
4292   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4293 set dummy ${ac_tool_prefix}cc; ac_word=$2
4294 echo "$as_me:$LINENO: checking for $ac_word" >&5
4295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4296 if test "${ac_cv_prog_CC+set}" = set; then
4297   echo $ECHO_N "(cached) $ECHO_C" >&6
4298 else
4299   if test -n "$CC"; then
4300   ac_cv_prog_CC="$CC" # Let the user override the test.
4301 else
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $PATH
4304 do
4305   IFS=$as_save_IFS
4306   test -z "$as_dir" && as_dir=.
4307   for ac_exec_ext in '' $ac_executable_extensions; do
4308   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4309     ac_cv_prog_CC="${ac_tool_prefix}cc"
4310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4311     break 2
4312   fi
4313 done
4314 done
4315
4316 fi
4317 fi
4318 CC=$ac_cv_prog_CC
4319 if test -n "$CC"; then
4320   echo "$as_me:$LINENO: result: $CC" >&5
4321 echo "${ECHO_T}$CC" >&6
4322 else
4323   echo "$as_me:$LINENO: result: no" >&5
4324 echo "${ECHO_T}no" >&6
4325 fi
4326
4327 fi
4328 if test -z "$ac_cv_prog_CC"; then
4329   ac_ct_CC=$CC
4330   # Extract the first word of "cc", so it can be a program name with args.
4331 set dummy cc; ac_word=$2
4332 echo "$as_me:$LINENO: checking for $ac_word" >&5
4333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4334 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4335   echo $ECHO_N "(cached) $ECHO_C" >&6
4336 else
4337   if test -n "$ac_ct_CC"; then
4338   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4339 else
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4342 do
4343   IFS=$as_save_IFS
4344   test -z "$as_dir" && as_dir=.
4345   for ac_exec_ext in '' $ac_executable_extensions; do
4346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347     ac_cv_prog_ac_ct_CC="cc"
4348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4349     break 2
4350   fi
4351 done
4352 done
4353
4354 fi
4355 fi
4356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4357 if test -n "$ac_ct_CC"; then
4358   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4359 echo "${ECHO_T}$ac_ct_CC" >&6
4360 else
4361   echo "$as_me:$LINENO: result: no" >&5
4362 echo "${ECHO_T}no" >&6
4363 fi
4364
4365   CC=$ac_ct_CC
4366 else
4367   CC="$ac_cv_prog_CC"
4368 fi
4369
4370 fi
4371 if test -z "$CC"; then
4372   # Extract the first word of "cc", so it can be a program name with args.
4373 set dummy cc; ac_word=$2
4374 echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4376 if test "${ac_cv_prog_CC+set}" = set; then
4377   echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379   if test -n "$CC"; then
4380   ac_cv_prog_CC="$CC" # Let the user override the test.
4381 else
4382   ac_prog_rejected=no
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4385 do
4386   IFS=$as_save_IFS
4387   test -z "$as_dir" && as_dir=.
4388   for ac_exec_ext in '' $ac_executable_extensions; do
4389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4390     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4391        ac_prog_rejected=yes
4392        continue
4393      fi
4394     ac_cv_prog_CC="cc"
4395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396     break 2
4397   fi
4398 done
4399 done
4400
4401 if test $ac_prog_rejected = yes; then
4402   # We found a bogon in the path, so make sure we never use it.
4403   set dummy $ac_cv_prog_CC
4404   shift
4405   if test $# != 0; then
4406     # We chose a different compiler from the bogus one.
4407     # However, it has the same basename, so the bogon will be chosen
4408     # first if we set CC to just the basename; use the full file name.
4409     shift
4410     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4411   fi
4412 fi
4413 fi
4414 fi
4415 CC=$ac_cv_prog_CC
4416 if test -n "$CC"; then
4417   echo "$as_me:$LINENO: result: $CC" >&5
4418 echo "${ECHO_T}$CC" >&6
4419 else
4420   echo "$as_me:$LINENO: result: no" >&5
4421 echo "${ECHO_T}no" >&6
4422 fi
4423
4424 fi
4425 if test -z "$CC"; then
4426   if test -n "$ac_tool_prefix"; then
4427   for ac_prog in cl
4428   do
4429     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4431 echo "$as_me:$LINENO: checking for $ac_word" >&5
4432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4433 if test "${ac_cv_prog_CC+set}" = set; then
4434   echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436   if test -n "$CC"; then
4437   ac_cv_prog_CC="$CC" # Let the user override the test.
4438 else
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4441 do
4442   IFS=$as_save_IFS
4443   test -z "$as_dir" && as_dir=.
4444   for ac_exec_ext in '' $ac_executable_extensions; do
4445   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4446     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448     break 2
4449   fi
4450 done
4451 done
4452
4453 fi
4454 fi
4455 CC=$ac_cv_prog_CC
4456 if test -n "$CC"; then
4457   echo "$as_me:$LINENO: result: $CC" >&5
4458 echo "${ECHO_T}$CC" >&6
4459 else
4460   echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6
4462 fi
4463
4464     test -n "$CC" && break
4465   done
4466 fi
4467 if test -z "$CC"; then
4468   ac_ct_CC=$CC
4469   for ac_prog in cl
4470 do
4471   # Extract the first word of "$ac_prog", so it can be a program name with args.
4472 set dummy $ac_prog; ac_word=$2
4473 echo "$as_me:$LINENO: checking for $ac_word" >&5
4474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4475 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4476   echo $ECHO_N "(cached) $ECHO_C" >&6
4477 else
4478   if test -n "$ac_ct_CC"; then
4479   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4480 else
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4483 do
4484   IFS=$as_save_IFS
4485   test -z "$as_dir" && as_dir=.
4486   for ac_exec_ext in '' $ac_executable_extensions; do
4487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488     ac_cv_prog_ac_ct_CC="$ac_prog"
4489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490     break 2
4491   fi
4492 done
4493 done
4494
4495 fi
4496 fi
4497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4498 if test -n "$ac_ct_CC"; then
4499   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4500 echo "${ECHO_T}$ac_ct_CC" >&6
4501 else
4502   echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6
4504 fi
4505
4506   test -n "$ac_ct_CC" && break
4507 done
4508
4509   CC=$ac_ct_CC
4510 fi
4511
4512 fi
4513
4514
4515 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4516 See \`config.log' for more details." >&5
4517 echo "$as_me: error: no acceptable C compiler found in \$PATH
4518 See \`config.log' for more details." >&2;}
4519    { (exit 1); exit 1; }; }
4520
4521 # Provide some information about the compiler.
4522 echo "$as_me:$LINENO:" \
4523      "checking for C compiler version" >&5
4524 ac_compiler=`set X $ac_compile; echo $2`
4525 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4526   (eval $ac_compiler --version </dev/null >&5) 2>&5
4527   ac_status=$?
4528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529   (exit $ac_status); }
4530 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4531   (eval $ac_compiler -v </dev/null >&5) 2>&5
4532   ac_status=$?
4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534   (exit $ac_status); }
4535 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4536   (eval $ac_compiler -V </dev/null >&5) 2>&5
4537   ac_status=$?
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); }
4540
4541 cat >conftest.$ac_ext <<_ACEOF
4542 /* confdefs.h.  */
4543 _ACEOF
4544 cat confdefs.h >>conftest.$ac_ext
4545 cat >>conftest.$ac_ext <<_ACEOF
4546 /* end confdefs.h.  */
4547
4548 int
4549 main ()
4550 {
4551
4552   ;
4553   return 0;
4554 }
4555 _ACEOF
4556 ac_clean_files_save=$ac_clean_files
4557 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4558 # Try to create an executable without -o first, disregard a.out.
4559 # It will help us diagnose broken compilers, and finding out an intuition
4560 # of exeext.
4561 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4562 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4563 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4564 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4565   (eval $ac_link_default) 2>&5
4566   ac_status=$?
4567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568   (exit $ac_status); }; then
4569   # Find the output, starting from the most likely.  This scheme is
4570 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4571 # resort.
4572
4573 # Be careful to initialize this variable, since it used to be cached.
4574 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4575 ac_cv_exeext=
4576 # b.out is created by i960 compilers.
4577 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4578 do
4579   test -f "$ac_file" || continue
4580   case $ac_file in
4581     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4582         ;;
4583     conftest.$ac_ext )
4584         # This is the source file.
4585         ;;
4586     [ab].out )
4587         # We found the default executable, but exeext='' is most
4588         # certainly right.
4589         break;;
4590     *.* )
4591         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4592         # FIXME: I believe we export ac_cv_exeext for Libtool,
4593         # but it would be cool to find out if it's true.  Does anybody
4594         # maintain Libtool? --akim.
4595         export ac_cv_exeext
4596         break;;
4597     * )
4598         break;;
4599   esac
4600 done
4601 else
4602   echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4604
4605 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4606 See \`config.log' for more details." >&5
4607 echo "$as_me: error: C compiler cannot create executables
4608 See \`config.log' for more details." >&2;}
4609    { (exit 77); exit 77; }; }
4610 fi
4611
4612 ac_exeext=$ac_cv_exeext
4613 echo "$as_me:$LINENO: result: $ac_file" >&5
4614 echo "${ECHO_T}$ac_file" >&6
4615
4616 # Check the compiler produces executables we can run.  If not, either
4617 # the compiler is broken, or we cross compile.
4618 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4619 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4620 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4621 # If not cross compiling, check that we can run a simple program.
4622 if test "$cross_compiling" != yes; then
4623   if { ac_try='./$ac_file'
4624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625   (eval $ac_try) 2>&5
4626   ac_status=$?
4627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628   (exit $ac_status); }; }; then
4629     cross_compiling=no
4630   else
4631     if test "$cross_compiling" = maybe; then
4632         cross_compiling=yes
4633     else
4634         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4635 If you meant to cross compile, use \`--host'.
4636 See \`config.log' for more details." >&5
4637 echo "$as_me: error: cannot run C compiled programs.
4638 If you meant to cross compile, use \`--host'.
4639 See \`config.log' for more details." >&2;}
4640    { (exit 1); exit 1; }; }
4641     fi
4642   fi
4643 fi
4644 echo "$as_me:$LINENO: result: yes" >&5
4645 echo "${ECHO_T}yes" >&6
4646
4647 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4648 ac_clean_files=$ac_clean_files_save
4649 # Check the compiler produces executables we can run.  If not, either
4650 # the compiler is broken, or we cross compile.
4651 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4652 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4653 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4654 echo "${ECHO_T}$cross_compiling" >&6
4655
4656 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4657 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4659   (eval $ac_link) 2>&5
4660   ac_status=$?
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); }; then
4663   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4664 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4665 # work properly (i.e., refer to `conftest.exe'), while it won't with
4666 # `rm'.
4667 for ac_file in conftest.exe conftest conftest.*; do
4668   test -f "$ac_file" || continue
4669   case $ac_file in
4670     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4671     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4672           export ac_cv_exeext
4673           break;;
4674     * ) break;;
4675   esac
4676 done
4677 else
4678   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4679 See \`config.log' for more details." >&5
4680 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4681 See \`config.log' for more details." >&2;}
4682    { (exit 1); exit 1; }; }
4683 fi
4684
4685 rm -f conftest$ac_cv_exeext
4686 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4687 echo "${ECHO_T}$ac_cv_exeext" >&6
4688
4689 rm -f conftest.$ac_ext
4690 EXEEXT=$ac_cv_exeext
4691 ac_exeext=$EXEEXT
4692 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4693 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4694 if test "${ac_cv_objext+set}" = set; then
4695   echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697   cat >conftest.$ac_ext <<_ACEOF
4698 /* confdefs.h.  */
4699 _ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h.  */
4703
4704 int
4705 main ()
4706 {
4707
4708   ;
4709   return 0;
4710 }
4711 _ACEOF
4712 rm -f conftest.o conftest.obj
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714   (eval $ac_compile) 2>&5
4715   ac_status=$?
4716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717   (exit $ac_status); }; then
4718   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4719   case $ac_file in
4720     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4721     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4722        break;;
4723   esac
4724 done
4725 else
4726   echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4728
4729 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4730 See \`config.log' for more details." >&5
4731 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4732 See \`config.log' for more details." >&2;}
4733    { (exit 1); exit 1; }; }
4734 fi
4735
4736 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4737 fi
4738 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4739 echo "${ECHO_T}$ac_cv_objext" >&6
4740 OBJEXT=$ac_cv_objext
4741 ac_objext=$OBJEXT
4742 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4743 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4744 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4745   echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747   cat >conftest.$ac_ext <<_ACEOF
4748 /* confdefs.h.  */
4749 _ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h.  */
4753
4754 int
4755 main ()
4756 {
4757 #ifndef __GNUC__
4758        choke me
4759 #endif
4760
4761   ;
4762   return 0;
4763 }
4764 _ACEOF
4765 rm -f conftest.$ac_objext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767   (eval $ac_compile) 2>conftest.er1
4768   ac_status=$?
4769   grep -v '^ *+' conftest.er1 >conftest.err
4770   rm -f conftest.er1
4771   cat conftest.err >&5
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); } &&
4774          { ac_try='test -z "$ac_c_werror_flag"
4775                          || test ! -s conftest.err'
4776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777   (eval $ac_try) 2>&5
4778   ac_status=$?
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); }; } &&
4781          { ac_try='test -s conftest.$ac_objext'
4782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783   (eval $ac_try) 2>&5
4784   ac_status=$?
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); }; }; then
4787   ac_compiler_gnu=yes
4788 else
4789   echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4791
4792 ac_compiler_gnu=no
4793 fi
4794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4795 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4796
4797 fi
4798 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4799 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4800 GCC=`test $ac_compiler_gnu = yes && echo yes`
4801 ac_test_CFLAGS=${CFLAGS+set}
4802 ac_save_CFLAGS=$CFLAGS
4803 CFLAGS="-g"
4804 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4805 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4806 if test "${ac_cv_prog_cc_g+set}" = set; then
4807   echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809   cat >conftest.$ac_ext <<_ACEOF
4810 /* confdefs.h.  */
4811 _ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h.  */
4815
4816 int
4817 main ()
4818 {
4819
4820   ;
4821   return 0;
4822 }
4823 _ACEOF
4824 rm -f conftest.$ac_objext
4825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4826   (eval $ac_compile) 2>conftest.er1
4827   ac_status=$?
4828   grep -v '^ *+' conftest.er1 >conftest.err
4829   rm -f conftest.er1
4830   cat conftest.err >&5
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); } &&
4833          { ac_try='test -z "$ac_c_werror_flag"
4834                          || test ! -s conftest.err'
4835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836   (eval $ac_try) 2>&5
4837   ac_status=$?
4838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839   (exit $ac_status); }; } &&
4840          { ac_try='test -s conftest.$ac_objext'
4841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842   (eval $ac_try) 2>&5
4843   ac_status=$?
4844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845   (exit $ac_status); }; }; then
4846   ac_cv_prog_cc_g=yes
4847 else
4848   echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4850
4851 ac_cv_prog_cc_g=no
4852 fi
4853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4854 fi
4855 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4856 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4857 if test "$ac_test_CFLAGS" = set; then
4858   CFLAGS=$ac_save_CFLAGS
4859 elif test $ac_cv_prog_cc_g = yes; then
4860   if test "$GCC" = yes; then
4861     CFLAGS="-g -O2"
4862   else
4863     CFLAGS="-g"
4864   fi
4865 else
4866   if test "$GCC" = yes; then
4867     CFLAGS="-O2"
4868   else
4869     CFLAGS=
4870   fi
4871 fi
4872 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4873 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4874 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4875   echo $ECHO_N "(cached) $ECHO_C" >&6
4876 else
4877   ac_cv_prog_cc_stdc=no
4878 ac_save_CC=$CC
4879 cat >conftest.$ac_ext <<_ACEOF
4880 /* confdefs.h.  */
4881 _ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h.  */
4885 #include <stdarg.h>
4886 #include <stdio.h>
4887 #include <sys/types.h>
4888 #include <sys/stat.h>
4889 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4890 struct buf { int x; };
4891 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4892 static char *e (p, i)
4893      char **p;
4894      int i;
4895 {
4896   return p[i];
4897 }
4898 static char *f (char * (*g) (char **, int), char **p, ...)
4899 {
4900   char *s;
4901   va_list v;
4902   va_start (v,p);
4903   s = g (p, va_arg (v,int));
4904   va_end (v);
4905   return s;
4906 }
4907
4908 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4909    function prototypes and stuff, but not '\xHH' hex character constants.
4910    These don't provoke an error unfortunately, instead are silently treated
4911    as 'x'.  The following induces an error, until -std1 is added to get
4912    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4913    array size at least.  It's necessary to write '\x00'==0 to get something
4914    that's true only with -std1.  */
4915 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4916
4917 int test (int i, double x);
4918 struct s1 {int (*f) (int a);};
4919 struct s2 {int (*f) (double a);};
4920 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4921 int argc;
4922 char **argv;
4923 int
4924 main ()
4925 {
4926 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4927   ;
4928   return 0;
4929 }
4930 _ACEOF
4931 # Don't try gcc -ansi; that turns off useful extensions and
4932 # breaks some systems' header files.
4933 # AIX                   -qlanglvl=ansi
4934 # Ultrix and OSF/1      -std1
4935 # HP-UX 10.20 and later -Ae
4936 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4937 # SVR4                  -Xc -D__EXTENSIONS__
4938 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4939 do
4940   CC="$ac_save_CC $ac_arg"
4941   rm -f conftest.$ac_objext
4942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4943   (eval $ac_compile) 2>conftest.er1
4944   ac_status=$?
4945   grep -v '^ *+' conftest.er1 >conftest.err
4946   rm -f conftest.er1
4947   cat conftest.err >&5
4948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949   (exit $ac_status); } &&
4950          { ac_try='test -z "$ac_c_werror_flag"
4951                          || test ! -s conftest.err'
4952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953   (eval $ac_try) 2>&5
4954   ac_status=$?
4955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956   (exit $ac_status); }; } &&
4957          { ac_try='test -s conftest.$ac_objext'
4958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959   (eval $ac_try) 2>&5
4960   ac_status=$?
4961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962   (exit $ac_status); }; }; then
4963   ac_cv_prog_cc_stdc=$ac_arg
4964 break
4965 else
4966   echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4968
4969 fi
4970 rm -f conftest.err conftest.$ac_objext
4971 done
4972 rm -f conftest.$ac_ext conftest.$ac_objext
4973 CC=$ac_save_CC
4974
4975 fi
4976
4977 case "x$ac_cv_prog_cc_stdc" in
4978   x|xno)
4979     echo "$as_me:$LINENO: result: none needed" >&5
4980 echo "${ECHO_T}none needed" >&6 ;;
4981   *)
4982     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4983 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4984     CC="$CC $ac_cv_prog_cc_stdc" ;;
4985 esac
4986
4987 # Some people use a C++ compiler to compile C.  Since we use `exit',
4988 # in C++ we need to declare it.  In case someone uses the same compiler
4989 # for both compiling C and C++ we need to have the C++ compiler decide
4990 # the declaration of exit, since it's the most demanding environment.
4991 cat >conftest.$ac_ext <<_ACEOF
4992 #ifndef __cplusplus
4993   choke me
4994 #endif
4995 _ACEOF
4996 rm -f conftest.$ac_objext
4997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4998   (eval $ac_compile) 2>conftest.er1
4999   ac_status=$?
5000   grep -v '^ *+' conftest.er1 >conftest.err
5001   rm -f conftest.er1
5002   cat conftest.err >&5
5003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); } &&
5005          { ac_try='test -z "$ac_c_werror_flag"
5006                          || test ! -s conftest.err'
5007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008   (eval $ac_try) 2>&5
5009   ac_status=$?
5010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011   (exit $ac_status); }; } &&
5012          { ac_try='test -s conftest.$ac_objext'
5013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014   (eval $ac_try) 2>&5
5015   ac_status=$?
5016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); }; }; then
5018   for ac_declaration in \
5019    '' \
5020    'extern "C" void std::exit (int) throw (); using std::exit;' \
5021    'extern "C" void std::exit (int); using std::exit;' \
5022    'extern "C" void exit (int) throw ();' \
5023    'extern "C" void exit (int);' \
5024    'void exit (int);'
5025 do
5026   cat >conftest.$ac_ext <<_ACEOF
5027 /* confdefs.h.  */
5028 _ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h.  */
5032 $ac_declaration
5033 #include <stdlib.h>
5034 int
5035 main ()
5036 {
5037 exit (42);
5038   ;
5039   return 0;
5040 }
5041 _ACEOF
5042 rm -f conftest.$ac_objext
5043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5044   (eval $ac_compile) 2>conftest.er1
5045   ac_status=$?
5046   grep -v '^ *+' conftest.er1 >conftest.err
5047   rm -f conftest.er1
5048   cat conftest.err >&5
5049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050   (exit $ac_status); } &&
5051          { ac_try='test -z "$ac_c_werror_flag"
5052                          || test ! -s conftest.err'
5053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054   (eval $ac_try) 2>&5
5055   ac_status=$?
5056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057   (exit $ac_status); }; } &&
5058          { ac_try='test -s conftest.$ac_objext'
5059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060   (eval $ac_try) 2>&5
5061   ac_status=$?
5062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063   (exit $ac_status); }; }; then
5064   :
5065 else
5066   echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5068
5069 continue
5070 fi
5071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5072   cat >conftest.$ac_ext <<_ACEOF
5073 /* confdefs.h.  */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h.  */
5078 $ac_declaration
5079 int
5080 main ()
5081 {
5082 exit (42);
5083   ;
5084   return 0;
5085 }
5086 _ACEOF
5087 rm -f conftest.$ac_objext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5089   (eval $ac_compile) 2>conftest.er1
5090   ac_status=$?
5091   grep -v '^ *+' conftest.er1 >conftest.err
5092   rm -f conftest.er1
5093   cat conftest.err >&5
5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095   (exit $ac_status); } &&
5096          { ac_try='test -z "$ac_c_werror_flag"
5097                          || test ! -s conftest.err'
5098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099   (eval $ac_try) 2>&5
5100   ac_status=$?
5101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102   (exit $ac_status); }; } &&
5103          { ac_try='test -s conftest.$ac_objext'
5104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105   (eval $ac_try) 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); }; }; then
5109   break
5110 else
5111   echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5113
5114 fi
5115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5116 done
5117 rm -f conftest*
5118 if test -n "$ac_declaration"; then
5119   echo '#ifdef __cplusplus' >>confdefs.h
5120   echo $ac_declaration      >>confdefs.h
5121   echo '#endif'             >>confdefs.h
5122 fi
5123
5124 else
5125   echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128 fi
5129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5130 ac_ext=c
5131 ac_cpp='$CPP $CPPFLAGS'
5132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5135
5136 depcc="$CC"   am_compiler_list=
5137
5138 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5139 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5140 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5141   echo $ECHO_N "(cached) $ECHO_C" >&6
5142 else
5143   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5144   # We make a subdir and do the tests there.  Otherwise we can end up
5145   # making bogus files that we don't know about and never remove.  For
5146   # instance it was reported that on HP-UX the gcc test will end up
5147   # making a dummy file named `D' -- because `-MD' means `put the output
5148   # in D'.
5149   mkdir conftest.dir
5150   # Copy depcomp to subdir because otherwise we won't find it if we're
5151   # using a relative directory.
5152   cp "$am_depcomp" conftest.dir
5153   cd conftest.dir
5154   # We will build objects and dependencies in a subdirectory because
5155   # it helps to detect inapplicable dependency modes.  For instance
5156   # both Tru64's cc and ICC support -MD to output dependencies as a
5157   # side effect of compilation, but ICC will put the dependencies in
5158   # the current directory while Tru64 will put them in the object
5159   # directory.
5160   mkdir sub
5161
5162   am_cv_CC_dependencies_compiler_type=none
5163   if test "$am_compiler_list" = ""; then
5164      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5165   fi
5166   for depmode in $am_compiler_list; do
5167     # Setup a source with many dependencies, because some compilers
5168     # like to wrap large dependency lists on column 80 (with \), and
5169     # we should not choose a depcomp mode which is confused by this.
5170     #
5171     # We need to recreate these files for each test, as the compiler may
5172     # overwrite some of them when testing with obscure command lines.
5173     # This happens at least with the AIX C compiler.
5174     : > sub/conftest.c
5175     for i in 1 2 3 4 5 6; do
5176       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5177       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5178       # Solaris 8's {/usr,}/bin/sh.
5179       touch sub/conftst$i.h
5180     done
5181     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5182
5183     case $depmode in
5184     nosideeffect)
5185       # after this tag, mechanisms are not by side-effect, so they'll
5186       # only be used when explicitly requested
5187       if test "x$enable_dependency_tracking" = xyes; then
5188         continue
5189       else
5190         break
5191       fi
5192       ;;
5193     none) break ;;
5194     esac
5195     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5196     # mode.  It turns out that the SunPro C++ compiler does not properly
5197     # handle `-M -o', and we need to detect this.
5198     if depmode=$depmode \
5199        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5200        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5201        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5202          >/dev/null 2>conftest.err &&
5203        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5204        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5205        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5206       # icc doesn't choke on unknown options, it will just issue warnings
5207       # or remarks (even with -Werror).  So we grep stderr for any message
5208       # that says an option was ignored or not supported.
5209       # When given -MP, icc 7.0 and 7.1 complain thusly:
5210       #   icc: Command line warning: ignoring option '-M'; no argument required
5211       # The diagnosis changed in icc 8.0:
5212       #   icc: Command line remark: option '-MP' not supported
5213       if (grep 'ignoring option' conftest.err ||
5214           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5215         am_cv_CC_dependencies_compiler_type=$depmode
5216         break
5217       fi
5218     fi
5219   done
5220
5221   cd ..
5222   rm -rf conftest.dir
5223 else
5224   am_cv_CC_dependencies_compiler_type=none
5225 fi
5226
5227 fi
5228 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5229 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5230 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5231
5232
5233
5234 if
5235   test "x$enable_dependency_tracking" != xno \
5236   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5237   am__fastdepCC_TRUE=
5238   am__fastdepCC_FALSE='#'
5239 else
5240   am__fastdepCC_TRUE='#'
5241   am__fastdepCC_FALSE=
5242 fi
5243
5244
5245 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5246 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5247 if test "${lt_cv_path_SED+set}" = set; then
5248   echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250   # Loop through the user's path and test for sed and gsed.
5251 # Then use that list of sed's as ones to test for truncation.
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5254 do
5255   IFS=$as_save_IFS
5256   test -z "$as_dir" && as_dir=.
5257   for lt_ac_prog in sed gsed; do
5258     for ac_exec_ext in '' $ac_executable_extensions; do
5259       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5260         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5261       fi
5262     done
5263   done
5264 done
5265 lt_ac_max=0
5266 lt_ac_count=0
5267 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5268 # along with /bin/sed that truncates output.
5269 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5270   test ! -f $lt_ac_sed && continue
5271   cat /dev/null > conftest.in
5272   lt_ac_count=0
5273   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5274   # Check for GNU sed and select it if it is found.
5275   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5276     lt_cv_path_SED=$lt_ac_sed
5277     break
5278   fi
5279   while true; do
5280     cat conftest.in conftest.in >conftest.tmp
5281     mv conftest.tmp conftest.in
5282     cp conftest.in conftest.nl
5283     echo >>conftest.nl
5284     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5285     cmp -s conftest.out conftest.nl || break
5286     # 10000 chars as input seems more than enough
5287     test $lt_ac_count -gt 10 && break
5288     lt_ac_count=`expr $lt_ac_count + 1`
5289     if test $lt_ac_count -gt $lt_ac_max; then
5290       lt_ac_max=$lt_ac_count
5291       lt_cv_path_SED=$lt_ac_sed
5292     fi
5293   done
5294 done
5295
5296 fi
5297
5298 SED=$lt_cv_path_SED
5299 echo "$as_me:$LINENO: result: $SED" >&5
5300 echo "${ECHO_T}$SED" >&6
5301
5302 echo "$as_me:$LINENO: checking for egrep" >&5
5303 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5304 if test "${ac_cv_prog_egrep+set}" = set; then
5305   echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5308     then ac_cv_prog_egrep='grep -E'
5309     else ac_cv_prog_egrep='egrep'
5310     fi
5311 fi
5312 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5313 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5314  EGREP=$ac_cv_prog_egrep
5315
5316
5317
5318 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5319 if test "${with_gnu_ld+set}" = set; then
5320   withval="$with_gnu_ld"
5321   test "$withval" = no || with_gnu_ld=yes
5322 else
5323   with_gnu_ld=no
5324 fi;
5325 ac_prog=ld
5326 if test "$GCC" = yes; then
5327   # Check if gcc -print-prog-name=ld gives a path.
5328   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5329 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5330   case $host in
5331   *-*-mingw*)
5332     # gcc leaves a trailing carriage return which upsets mingw
5333     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5334   *)
5335     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5336   esac
5337   case $ac_prog in
5338     # Accept absolute paths.
5339     [\\/]* | ?:[\\/]*)
5340       re_direlt='/[^/][^/]*/\.\./'
5341       # Canonicalize the pathname of ld
5342       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5343       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5344         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5345       done
5346       test -z "$LD" && LD="$ac_prog"
5347       ;;
5348   "")
5349     # If it fails, then pretend we aren't using GCC.
5350     ac_prog=ld
5351     ;;
5352   *)
5353     # If it is relative, then search for the first ld in PATH.
5354     with_gnu_ld=unknown
5355     ;;
5356   esac
5357 elif test "$with_gnu_ld" = yes; then
5358   echo "$as_me:$LINENO: checking for GNU ld" >&5
5359 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5360 else
5361   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5362 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5363 fi
5364 if test "${lt_cv_path_LD+set}" = set; then
5365   echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367   if test -z "$LD"; then
5368   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5369   for ac_dir in $PATH; do
5370     IFS="$lt_save_ifs"
5371     test -z "$ac_dir" && ac_dir=.
5372     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5373       lt_cv_path_LD="$ac_dir/$ac_prog"
5374       # Check to see if the program is GNU ld.  I'd rather use --version,
5375       # but apparently some GNU ld's only accept -v.
5376       # Break only if it was the GNU/non-GNU ld that we prefer.
5377       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5378       *GNU* | *'with BFD'*)
5379         test "$with_gnu_ld" != no && break
5380         ;;
5381       *)
5382         test "$with_gnu_ld" != yes && break
5383         ;;
5384       esac
5385     fi
5386   done
5387   IFS="$lt_save_ifs"
5388 else
5389   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5390 fi
5391 fi
5392
5393 LD="$lt_cv_path_LD"
5394 if test -n "$LD"; then
5395   echo "$as_me:$LINENO: result: $LD" >&5
5396 echo "${ECHO_T}$LD" >&6
5397 else
5398   echo "$as_me:$LINENO: result: no" >&5
5399 echo "${ECHO_T}no" >&6
5400 fi
5401 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5402 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5403    { (exit 1); exit 1; }; }
5404 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5405 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5406 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5407   echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5410 case `$LD -v 2>&1 </dev/null` in
5411 *GNU* | *'with BFD'*)
5412   lt_cv_prog_gnu_ld=yes
5413   ;;
5414 *)
5415   lt_cv_prog_gnu_ld=no
5416   ;;
5417 esac
5418 fi
5419 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5420 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5421 with_gnu_ld=$lt_cv_prog_gnu_ld
5422
5423
5424 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5425 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5426 if test "${lt_cv_ld_reload_flag+set}" = set; then
5427   echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429   lt_cv_ld_reload_flag='-r'
5430 fi
5431 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5432 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5433 reload_flag=$lt_cv_ld_reload_flag
5434 case $reload_flag in
5435 "" | " "*) ;;
5436 *) reload_flag=" $reload_flag" ;;
5437 esac
5438 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5439 case $host_os in
5440   darwin*)
5441     if test "$GCC" = yes; then
5442       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5443     else
5444       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5445     fi
5446     ;;
5447 esac
5448
5449 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5450 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5451 if test "${lt_cv_path_NM+set}" = set; then
5452   echo $ECHO_N "(cached) $ECHO_C" >&6
5453 else
5454   if test -n "$NM"; then
5455   # Let the user override the test.
5456   lt_cv_path_NM="$NM"
5457 else
5458   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5459   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5460     IFS="$lt_save_ifs"
5461     test -z "$ac_dir" && ac_dir=.
5462     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5463     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5464       # Check to see if the nm accepts a BSD-compat flag.
5465       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5466       #   nm: unknown option "B" ignored
5467       # Tru64's nm complains that /dev/null is an invalid object file
5468       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5469       */dev/null* | *'Invalid file or object type'*)
5470         lt_cv_path_NM="$tmp_nm -B"
5471         break
5472         ;;
5473       *)
5474         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5475         */dev/null*)
5476           lt_cv_path_NM="$tmp_nm -p"
5477           break
5478           ;;
5479         *)
5480           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5481           continue # so that we can try to find one that supports BSD flags
5482           ;;
5483         esac
5484       esac
5485     fi
5486   done
5487   IFS="$lt_save_ifs"
5488   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5489 fi
5490 fi
5491 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5492 echo "${ECHO_T}$lt_cv_path_NM" >&6
5493 NM="$lt_cv_path_NM"
5494
5495 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5496 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5497 LN_S=$as_ln_s
5498 if test "$LN_S" = "ln -s"; then
5499   echo "$as_me:$LINENO: result: yes" >&5
5500 echo "${ECHO_T}yes" >&6
5501 else
5502   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5503 echo "${ECHO_T}no, using $LN_S" >&6
5504 fi
5505
5506 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5507 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5508 if test "${lt_cv_deplibs_check_method+set}" = set; then
5509   echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511   lt_cv_file_magic_cmd='$MAGIC_CMD'
5512 lt_cv_file_magic_test_file=
5513 lt_cv_deplibs_check_method='unknown'
5514 # Need to set the preceding variable on all platforms that support
5515 # interlibrary dependencies.
5516 # 'none' -- dependencies not supported.
5517 # `unknown' -- same as none, but documents that we really don't know.
5518 # 'pass_all' -- all dependencies passed with no checks.
5519 # 'test_compile' -- check by making test program.
5520 # 'file_magic [[regex]]' -- check by looking for files in library path
5521 # which responds to the $file_magic_cmd with a given extended regex.
5522 # If you have `file' or equivalent on your system and you're not sure
5523 # whether `pass_all' will *always* work, you probably want this one.
5524
5525 case $host_os in
5526 aix4* | aix5*)
5527   lt_cv_deplibs_check_method=pass_all
5528   ;;
5529
5530 beos*)
5531   lt_cv_deplibs_check_method=pass_all
5532   ;;
5533
5534 bsdi[45]*)
5535   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5536   lt_cv_file_magic_cmd='/usr/bin/file -L'
5537   lt_cv_file_magic_test_file=/shlib/libc.so
5538   ;;
5539
5540 cygwin*)
5541   # func_win32_libid is a shell function defined in ltmain.sh
5542   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5543   lt_cv_file_magic_cmd='func_win32_libid'
5544   ;;
5545
5546 mingw* | pw32*)
5547   # Base MSYS/MinGW do not provide the 'file' command needed by
5548   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5549   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5550   lt_cv_file_magic_cmd='$OBJDUMP -f'
5551   ;;
5552
5553 darwin* | rhapsody*)
5554   lt_cv_deplibs_check_method=pass_all
5555   ;;
5556
5557 freebsd* | kfreebsd*-gnu | dragonfly*)
5558   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5559     case $host_cpu in
5560     i*86 )
5561       # Not sure whether the presence of OpenBSD here was a mistake.
5562       # Let's accept both of them until this is cleared up.
5563       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5564       lt_cv_file_magic_cmd=/usr/bin/file
5565       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5566       ;;
5567     esac
5568   else
5569     lt_cv_deplibs_check_method=pass_all
5570   fi
5571   ;;
5572
5573 gnu*)
5574   lt_cv_deplibs_check_method=pass_all
5575   ;;
5576
5577 hpux10.20* | hpux11*)
5578   lt_cv_file_magic_cmd=/usr/bin/file
5579   case "$host_cpu" in
5580   ia64*)
5581     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5582     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5583     ;;
5584   hppa*64*)
5585     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]'
5586     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5587     ;;
5588   *)
5589     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5590     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5591     ;;
5592   esac
5593   ;;
5594
5595 irix5* | irix6* | nonstopux*)
5596   case $LD in
5597   *-32|*"-32 ") libmagic=32-bit;;
5598   *-n32|*"-n32 ") libmagic=N32;;
5599   *-64|*"-64 ") libmagic=64-bit;;
5600   *) libmagic=never-match;;
5601   esac
5602   lt_cv_deplibs_check_method=pass_all
5603   ;;
5604
5605 # This must be Linux ELF.
5606 linux*)
5607   lt_cv_deplibs_check_method=pass_all
5608   ;;
5609
5610 netbsd*)
5611   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5612     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5613   else
5614     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5615   fi
5616   ;;
5617
5618 newos6*)
5619   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5620   lt_cv_file_magic_cmd=/usr/bin/file
5621   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5622   ;;
5623
5624 nto-qnx*)
5625   lt_cv_deplibs_check_method=unknown
5626   ;;
5627
5628 openbsd*)
5629   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5630     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5631   else
5632     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5633   fi
5634   ;;
5635
5636 osf3* | osf4* | osf5*)
5637   lt_cv_deplibs_check_method=pass_all
5638   ;;
5639
5640 sco3.2v5*)
5641   lt_cv_deplibs_check_method=pass_all
5642   ;;
5643
5644 solaris*)
5645   lt_cv_deplibs_check_method=pass_all
5646   ;;
5647
5648 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5649   case $host_vendor in
5650   motorola)
5651     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]'
5652     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5653     ;;
5654   ncr)
5655     lt_cv_deplibs_check_method=pass_all
5656     ;;
5657   sequent)
5658     lt_cv_file_magic_cmd='/bin/file'
5659     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5660     ;;
5661   sni)
5662     lt_cv_file_magic_cmd='/bin/file'
5663     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5664     lt_cv_file_magic_test_file=/lib/libc.so
5665     ;;
5666   siemens)
5667     lt_cv_deplibs_check_method=pass_all
5668     ;;
5669   esac
5670   ;;
5671
5672 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5673   lt_cv_deplibs_check_method=pass_all
5674   ;;
5675 esac
5676
5677 fi
5678 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5679 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5680 file_magic_cmd=$lt_cv_file_magic_cmd
5681 deplibs_check_method=$lt_cv_deplibs_check_method
5682 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5683
5684
5685
5686
5687 # If no C compiler was specified, use CC.
5688 LTCC=${LTCC-"$CC"}
5689
5690 # Allow CC to be a program name with arguments.
5691 compiler=$CC
5692
5693
5694 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5695 if test "${enable_libtool_lock+set}" = set; then
5696   enableval="$enable_libtool_lock"
5697
5698 fi;
5699 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5700
5701 # Some flags need to be propagated to the compiler or linker for good
5702 # libtool support.
5703 case $host in
5704 ia64-*-hpux*)
5705   # Find out which ABI we are using.
5706   echo 'int i;' > conftest.$ac_ext
5707   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5708   (eval $ac_compile) 2>&5
5709   ac_status=$?
5710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711   (exit $ac_status); }; then
5712     case `/usr/bin/file conftest.$ac_objext` in
5713     *ELF-32*)
5714       HPUX_IA64_MODE="32"
5715       ;;
5716     *ELF-64*)
5717       HPUX_IA64_MODE="64"
5718       ;;
5719     esac
5720   fi
5721   rm -rf conftest*
5722   ;;
5723 *-*-irix6*)
5724   # Find out which ABI we are using.
5725   echo '#line 5725 "configure"' > conftest.$ac_ext
5726   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5727   (eval $ac_compile) 2>&5
5728   ac_status=$?
5729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730   (exit $ac_status); }; then
5731    if test "$lt_cv_prog_gnu_ld" = yes; then
5732     case `/usr/bin/file conftest.$ac_objext` in
5733     *32-bit*)
5734       LD="${LD-ld} -melf32bsmip"
5735       ;;
5736     *N32*)
5737       LD="${LD-ld} -melf32bmipn32"
5738       ;;
5739     *64-bit*)
5740       LD="${LD-ld} -melf64bmip"
5741       ;;
5742     esac
5743    else
5744     case `/usr/bin/file conftest.$ac_objext` in
5745     *32-bit*)
5746       LD="${LD-ld} -32"
5747       ;;
5748     *N32*)
5749       LD="${LD-ld} -n32"
5750       ;;
5751     *64-bit*)
5752       LD="${LD-ld} -64"
5753       ;;
5754     esac
5755    fi
5756   fi
5757   rm -rf conftest*
5758   ;;
5759
5760 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5761   # Find out which ABI we are using.
5762   echo 'int i;' > conftest.$ac_ext
5763   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5764   (eval $ac_compile) 2>&5
5765   ac_status=$?
5766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767   (exit $ac_status); }; then
5768     case "`/usr/bin/file conftest.o`" in
5769     *32-bit*)
5770       case $host in
5771         x86_64-*linux*)
5772           LD="${LD-ld} -m elf_i386"
5773           ;;
5774         ppc64-*linux*|powerpc64-*linux*)
5775           LD="${LD-ld} -m elf32ppclinux"
5776           ;;
5777         s390x-*linux*)
5778           LD="${LD-ld} -m elf_s390"
5779           ;;
5780         sparc64-*linux*)
5781           LD="${LD-ld} -m elf32_sparc"
5782           ;;
5783       esac
5784       ;;
5785     *64-bit*)
5786       case $host in
5787         x86_64-*linux*)
5788           LD="${LD-ld} -m elf_x86_64"
5789           ;;
5790         ppc*-*linux*|powerpc*-*linux*)
5791           LD="${LD-ld} -m elf64ppc"
5792           ;;
5793         s390*-*linux*)
5794           LD="${LD-ld} -m elf64_s390"
5795           ;;
5796         sparc*-*linux*)
5797           LD="${LD-ld} -m elf64_sparc"
5798           ;;
5799       esac
5800       ;;
5801     esac
5802   fi
5803   rm -rf conftest*
5804   ;;
5805
5806 *-*-sco3.2v5*)
5807   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5808   SAVE_CFLAGS="$CFLAGS"
5809   CFLAGS="$CFLAGS -belf"
5810   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5811 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5812 if test "${lt_cv_cc_needs_belf+set}" = set; then
5813   echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815   ac_ext=c
5816 ac_cpp='$CPP $CPPFLAGS'
5817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5820
5821      cat >conftest.$ac_ext <<_ACEOF
5822 /* confdefs.h.  */
5823 _ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h.  */
5827
5828 int
5829 main ()
5830 {
5831
5832   ;
5833   return 0;
5834 }
5835 _ACEOF
5836 rm -f conftest.$ac_objext conftest$ac_exeext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5838   (eval $ac_link) 2>conftest.er1
5839   ac_status=$?
5840   grep -v '^ *+' conftest.er1 >conftest.err
5841   rm -f conftest.er1
5842   cat conftest.err >&5
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); } &&
5845          { ac_try='test -z "$ac_c_werror_flag"
5846                          || test ! -s conftest.err'
5847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848   (eval $ac_try) 2>&5
5849   ac_status=$?
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); }; } &&
5852          { ac_try='test -s conftest$ac_exeext'
5853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854   (eval $ac_try) 2>&5
5855   ac_status=$?
5856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857   (exit $ac_status); }; }; then
5858   lt_cv_cc_needs_belf=yes
5859 else
5860   echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5862
5863 lt_cv_cc_needs_belf=no
5864 fi
5865 rm -f conftest.err conftest.$ac_objext \
5866       conftest$ac_exeext conftest.$ac_ext
5867      ac_ext=c
5868 ac_cpp='$CPP $CPPFLAGS'
5869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5872
5873 fi
5874 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5875 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5876   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5877     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5878     CFLAGS="$SAVE_CFLAGS"
5879   fi
5880   ;;
5881 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5882   if test -n "$ac_tool_prefix"; then
5883   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5884 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5885 echo "$as_me:$LINENO: checking for $ac_word" >&5
5886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5887 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5888   echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890   if test -n "$DLLTOOL"; then
5891   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5892 else
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5895 do
5896   IFS=$as_save_IFS
5897   test -z "$as_dir" && as_dir=.
5898   for ac_exec_ext in '' $ac_executable_extensions; do
5899   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5900     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5902     break 2
5903   fi
5904 done
5905 done
5906
5907 fi
5908 fi
5909 DLLTOOL=$ac_cv_prog_DLLTOOL
5910 if test -n "$DLLTOOL"; then
5911   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5912 echo "${ECHO_T}$DLLTOOL" >&6
5913 else
5914   echo "$as_me:$LINENO: result: no" >&5
5915 echo "${ECHO_T}no" >&6
5916 fi
5917
5918 fi
5919 if test -z "$ac_cv_prog_DLLTOOL"; then
5920   ac_ct_DLLTOOL=$DLLTOOL
5921   # Extract the first word of "dlltool", so it can be a program name with args.
5922 set dummy dlltool; ac_word=$2
5923 echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5925 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5926   echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928   if test -n "$ac_ct_DLLTOOL"; then
5929   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5930 else
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5933 do
5934   IFS=$as_save_IFS
5935   test -z "$as_dir" && as_dir=.
5936   for ac_exec_ext in '' $ac_executable_extensions; do
5937   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5938     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5940     break 2
5941   fi
5942 done
5943 done
5944
5945   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5946 fi
5947 fi
5948 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5949 if test -n "$ac_ct_DLLTOOL"; then
5950   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5951 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5952 else
5953   echo "$as_me:$LINENO: result: no" >&5
5954 echo "${ECHO_T}no" >&6
5955 fi
5956
5957   DLLTOOL=$ac_ct_DLLTOOL
5958 else
5959   DLLTOOL="$ac_cv_prog_DLLTOOL"
5960 fi
5961
5962   if test -n "$ac_tool_prefix"; then
5963   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5964 set dummy ${ac_tool_prefix}as; ac_word=$2
5965 echo "$as_me:$LINENO: checking for $ac_word" >&5
5966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5967 if test "${ac_cv_prog_AS+set}" = set; then
5968   echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970   if test -n "$AS"; then
5971   ac_cv_prog_AS="$AS" # Let the user override the test.
5972 else
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 for as_dir in $PATH
5975 do
5976   IFS=$as_save_IFS
5977   test -z "$as_dir" && as_dir=.
5978   for ac_exec_ext in '' $ac_executable_extensions; do
5979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5980     ac_cv_prog_AS="${ac_tool_prefix}as"
5981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982     break 2
5983   fi
5984 done
5985 done
5986
5987 fi
5988 fi
5989 AS=$ac_cv_prog_AS
5990 if test -n "$AS"; then
5991   echo "$as_me:$LINENO: result: $AS" >&5
5992 echo "${ECHO_T}$AS" >&6
5993 else
5994   echo "$as_me:$LINENO: result: no" >&5
5995 echo "${ECHO_T}no" >&6
5996 fi
5997
5998 fi
5999 if test -z "$ac_cv_prog_AS"; then
6000   ac_ct_AS=$AS
6001   # Extract the first word of "as", so it can be a program name with args.
6002 set dummy as; ac_word=$2
6003 echo "$as_me:$LINENO: checking for $ac_word" >&5
6004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6005 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6006   echo $ECHO_N "(cached) $ECHO_C" >&6
6007 else
6008   if test -n "$ac_ct_AS"; then
6009   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6010 else
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH
6013 do
6014   IFS=$as_save_IFS
6015   test -z "$as_dir" && as_dir=.
6016   for ac_exec_ext in '' $ac_executable_extensions; do
6017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6018     ac_cv_prog_ac_ct_AS="as"
6019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6020     break 2
6021   fi
6022 done
6023 done
6024
6025   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6026 fi
6027 fi
6028 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6029 if test -n "$ac_ct_AS"; then
6030   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6031 echo "${ECHO_T}$ac_ct_AS" >&6
6032 else
6033   echo "$as_me:$LINENO: result: no" >&5
6034 echo "${ECHO_T}no" >&6
6035 fi
6036
6037   AS=$ac_ct_AS
6038 else
6039   AS="$ac_cv_prog_AS"
6040 fi
6041
6042   if test -n "$ac_tool_prefix"; then
6043   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6044 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6045 echo "$as_me:$LINENO: checking for $ac_word" >&5
6046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6047 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6048   echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050   if test -n "$OBJDUMP"; then
6051   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6055 do
6056   IFS=$as_save_IFS
6057   test -z "$as_dir" && as_dir=.
6058   for ac_exec_ext in '' $ac_executable_extensions; do
6059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6060     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6062     break 2
6063   fi
6064 done
6065 done
6066
6067 fi
6068 fi
6069 OBJDUMP=$ac_cv_prog_OBJDUMP
6070 if test -n "$OBJDUMP"; then
6071   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6072 echo "${ECHO_T}$OBJDUMP" >&6
6073 else
6074   echo "$as_me:$LINENO: result: no" >&5
6075 echo "${ECHO_T}no" >&6
6076 fi
6077
6078 fi
6079 if test -z "$ac_cv_prog_OBJDUMP"; then
6080   ac_ct_OBJDUMP=$OBJDUMP
6081   # Extract the first word of "objdump", so it can be a program name with args.
6082 set dummy objdump; ac_word=$2
6083 echo "$as_me:$LINENO: checking for $ac_word" >&5
6084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6085 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6086   echo $ECHO_N "(cached) $ECHO_C" >&6
6087 else
6088   if test -n "$ac_ct_OBJDUMP"; then
6089   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6090 else
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH
6093 do
6094   IFS=$as_save_IFS
6095   test -z "$as_dir" && as_dir=.
6096   for ac_exec_ext in '' $ac_executable_extensions; do
6097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6098     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6100     break 2
6101   fi
6102 done
6103 done
6104
6105   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6106 fi
6107 fi
6108 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6109 if test -n "$ac_ct_OBJDUMP"; then
6110   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6111 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6112 else
6113   echo "$as_me:$LINENO: result: no" >&5
6114 echo "${ECHO_T}no" >&6
6115 fi
6116
6117   OBJDUMP=$ac_ct_OBJDUMP
6118 else
6119   OBJDUMP="$ac_cv_prog_OBJDUMP"
6120 fi
6121
6122   ;;
6123
6124 esac
6125
6126 need_locks="$enable_libtool_lock"
6127
6128
6129 ac_ext=c
6130 ac_cpp='$CPP $CPPFLAGS'
6131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6134 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6135 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6136 # On Suns, sometimes $CPP names a directory.
6137 if test -n "$CPP" && test -d "$CPP"; then
6138   CPP=
6139 fi
6140 if test -z "$CPP"; then
6141   if test "${ac_cv_prog_CPP+set}" = set; then
6142   echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144       # Double quotes because CPP needs to be expanded
6145     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6146     do
6147       ac_preproc_ok=false
6148 for ac_c_preproc_warn_flag in '' yes
6149 do
6150   # Use a header file that comes with gcc, so configuring glibc
6151   # with a fresh cross-compiler works.
6152   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6153   # <limits.h> exists even on freestanding compilers.
6154   # On the NeXT, cc -E runs the code through the compiler's parser,
6155   # not just through cpp. "Syntax error" is here to catch this case.
6156   cat >conftest.$ac_ext <<_ACEOF
6157 /* confdefs.h.  */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h.  */
6162 #ifdef __STDC__
6163 # include <limits.h>
6164 #else
6165 # include <assert.h>
6166 #endif
6167                      Syntax error
6168 _ACEOF
6169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6170   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6171   ac_status=$?
6172   grep -v '^ *+' conftest.er1 >conftest.err
6173   rm -f conftest.er1
6174   cat conftest.err >&5
6175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176   (exit $ac_status); } >/dev/null; then
6177   if test -s conftest.err; then
6178     ac_cpp_err=$ac_c_preproc_warn_flag
6179     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6180   else
6181     ac_cpp_err=
6182   fi
6183 else
6184   ac_cpp_err=yes
6185 fi
6186 if test -z "$ac_cpp_err"; then
6187   :
6188 else
6189   echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6191
6192   # Broken: fails on valid input.
6193 continue
6194 fi
6195 rm -f conftest.err conftest.$ac_ext
6196
6197   # OK, works on sane cases.  Now check whether non-existent headers
6198   # can be detected and how.
6199   cat >conftest.$ac_ext <<_ACEOF
6200 /* confdefs.h.  */
6201 _ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h.  */
6205 #include <ac_nonexistent.h>
6206 _ACEOF
6207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6208   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6209   ac_status=$?
6210   grep -v '^ *+' conftest.er1 >conftest.err
6211   rm -f conftest.er1
6212   cat conftest.err >&5
6213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214   (exit $ac_status); } >/dev/null; then
6215   if test -s conftest.err; then
6216     ac_cpp_err=$ac_c_preproc_warn_flag
6217     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6218   else
6219     ac_cpp_err=
6220   fi
6221 else
6222   ac_cpp_err=yes
6223 fi
6224 if test -z "$ac_cpp_err"; then
6225   # Broken: success on invalid input.
6226 continue
6227 else
6228   echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6230
6231   # Passes both tests.
6232 ac_preproc_ok=:
6233 break
6234 fi
6235 rm -f conftest.err conftest.$ac_ext
6236
6237 done
6238 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6239 rm -f conftest.err conftest.$ac_ext
6240 if $ac_preproc_ok; then
6241   break
6242 fi
6243
6244     done
6245     ac_cv_prog_CPP=$CPP
6246
6247 fi
6248   CPP=$ac_cv_prog_CPP
6249 else
6250   ac_cv_prog_CPP=$CPP
6251 fi
6252 echo "$as_me:$LINENO: result: $CPP" >&5
6253 echo "${ECHO_T}$CPP" >&6
6254 ac_preproc_ok=false
6255 for ac_c_preproc_warn_flag in '' yes
6256 do
6257   # Use a header file that comes with gcc, so configuring glibc
6258   # with a fresh cross-compiler works.
6259   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6260   # <limits.h> exists even on freestanding compilers.
6261   # On the NeXT, cc -E runs the code through the compiler's parser,
6262   # not just through cpp. "Syntax error" is here to catch this case.
6263   cat >conftest.$ac_ext <<_ACEOF
6264 /* confdefs.h.  */
6265 _ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h.  */
6269 #ifdef __STDC__
6270 # include <limits.h>
6271 #else
6272 # include <assert.h>
6273 #endif
6274                      Syntax error
6275 _ACEOF
6276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6277   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6278   ac_status=$?
6279   grep -v '^ *+' conftest.er1 >conftest.err
6280   rm -f conftest.er1
6281   cat conftest.err >&5
6282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283   (exit $ac_status); } >/dev/null; then
6284   if test -s conftest.err; then
6285     ac_cpp_err=$ac_c_preproc_warn_flag
6286     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6287   else
6288     ac_cpp_err=
6289   fi
6290 else
6291   ac_cpp_err=yes
6292 fi
6293 if test -z "$ac_cpp_err"; then
6294   :
6295 else
6296   echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6298
6299   # Broken: fails on valid input.
6300 continue
6301 fi
6302 rm -f conftest.err conftest.$ac_ext
6303
6304   # OK, works on sane cases.  Now check whether non-existent headers
6305   # can be detected and how.
6306   cat >conftest.$ac_ext <<_ACEOF
6307 /* confdefs.h.  */
6308 _ACEOF
6309 cat confdefs.h >>conftest.$ac_ext
6310 cat >>conftest.$ac_ext <<_ACEOF
6311 /* end confdefs.h.  */
6312 #include <ac_nonexistent.h>
6313 _ACEOF
6314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6315   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6316   ac_status=$?
6317   grep -v '^ *+' conftest.er1 >conftest.err
6318   rm -f conftest.er1
6319   cat conftest.err >&5
6320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321   (exit $ac_status); } >/dev/null; then
6322   if test -s conftest.err; then
6323     ac_cpp_err=$ac_c_preproc_warn_flag
6324     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6325   else
6326     ac_cpp_err=
6327   fi
6328 else
6329   ac_cpp_err=yes
6330 fi
6331 if test -z "$ac_cpp_err"; then
6332   # Broken: success on invalid input.
6333 continue
6334 else
6335   echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6337
6338   # Passes both tests.
6339 ac_preproc_ok=:
6340 break
6341 fi
6342 rm -f conftest.err conftest.$ac_ext
6343
6344 done
6345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6346 rm -f conftest.err conftest.$ac_ext
6347 if $ac_preproc_ok; then
6348   :
6349 else
6350   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6351 See \`config.log' for more details." >&5
6352 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6353 See \`config.log' for more details." >&2;}
6354    { (exit 1); exit 1; }; }
6355 fi
6356
6357 ac_ext=c
6358 ac_cpp='$CPP $CPPFLAGS'
6359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6362
6363
6364 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6365 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6366 if test "${ac_cv_header_stdc+set}" = set; then
6367   echo $ECHO_N "(cached) $ECHO_C" >&6
6368 else
6369   cat >conftest.$ac_ext <<_ACEOF
6370 /* confdefs.h.  */
6371 _ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h.  */
6375 #include <stdlib.h>
6376 #include <stdarg.h>
6377 #include <string.h>
6378 #include <float.h>
6379
6380 int
6381 main ()
6382 {
6383
6384   ;
6385   return 0;
6386 }
6387 _ACEOF
6388 rm -f conftest.$ac_objext
6389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6390   (eval $ac_compile) 2>conftest.er1
6391   ac_status=$?
6392   grep -v '^ *+' conftest.er1 >conftest.err
6393   rm -f conftest.er1
6394   cat conftest.err >&5
6395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396   (exit $ac_status); } &&
6397          { ac_try='test -z "$ac_c_werror_flag"
6398                          || test ! -s conftest.err'
6399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400   (eval $ac_try) 2>&5
6401   ac_status=$?
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); }; } &&
6404          { ac_try='test -s conftest.$ac_objext'
6405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406   (eval $ac_try) 2>&5
6407   ac_status=$?
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); }; }; then
6410   ac_cv_header_stdc=yes
6411 else
6412   echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6414
6415 ac_cv_header_stdc=no
6416 fi
6417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6418
6419 if test $ac_cv_header_stdc = yes; then
6420   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6421   cat >conftest.$ac_ext <<_ACEOF
6422 /* confdefs.h.  */
6423 _ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h.  */
6427 #include <string.h>
6428
6429 _ACEOF
6430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6431   $EGREP "memchr" >/dev/null 2>&1; then
6432   :
6433 else
6434   ac_cv_header_stdc=no
6435 fi
6436 rm -f conftest*
6437
6438 fi
6439
6440 if test $ac_cv_header_stdc = yes; then
6441   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6442   cat >conftest.$ac_ext <<_ACEOF
6443 /* confdefs.h.  */
6444 _ACEOF
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h.  */
6448 #include <stdlib.h>
6449
6450 _ACEOF
6451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6452   $EGREP "free" >/dev/null 2>&1; then
6453   :
6454 else
6455   ac_cv_header_stdc=no
6456 fi
6457 rm -f conftest*
6458
6459 fi
6460
6461 if test $ac_cv_header_stdc = yes; then
6462   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6463   if test "$cross_compiling" = yes; then
6464   :
6465 else
6466   cat >conftest.$ac_ext <<_ACEOF
6467 /* confdefs.h.  */
6468 _ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h.  */
6472 #include <ctype.h>
6473 #if ((' ' & 0x0FF) == 0x020)
6474 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6475 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6476 #else
6477 # define ISLOWER(c) \
6478                    (('a' <= (c) && (c) <= 'i') \
6479                      || ('j' <= (c) && (c) <= 'r') \
6480                      || ('s' <= (c) && (c) <= 'z'))
6481 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6482 #endif
6483
6484 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6485 int
6486 main ()
6487 {
6488   int i;
6489   for (i = 0; i < 256; i++)
6490     if (XOR (islower (i), ISLOWER (i))
6491         || toupper (i) != TOUPPER (i))
6492       exit(2);
6493   exit (0);
6494 }
6495 _ACEOF
6496 rm -f conftest$ac_exeext
6497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6498   (eval $ac_link) 2>&5
6499   ac_status=$?
6500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503   (eval $ac_try) 2>&5
6504   ac_status=$?
6505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506   (exit $ac_status); }; }; then
6507   :
6508 else
6509   echo "$as_me: program exited with status $ac_status" >&5
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6512
6513 ( exit $ac_status )
6514 ac_cv_header_stdc=no
6515 fi
6516 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6517 fi
6518 fi
6519 fi
6520 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6521 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6522 if test $ac_cv_header_stdc = yes; then
6523
6524 cat >>confdefs.h <<\_ACEOF
6525 #define STDC_HEADERS 1
6526 _ACEOF
6527
6528 fi
6529
6530 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6541                   inttypes.h stdint.h unistd.h
6542 do
6543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6544 echo "$as_me:$LINENO: checking for $ac_header" >&5
6545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6547   echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6549   cat >conftest.$ac_ext <<_ACEOF
6550 /* confdefs.h.  */
6551 _ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h.  */
6555 $ac_includes_default
6556
6557 #include <$ac_header>
6558 _ACEOF
6559 rm -f conftest.$ac_objext
6560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6561   (eval $ac_compile) 2>conftest.er1
6562   ac_status=$?
6563   grep -v '^ *+' conftest.er1 >conftest.err
6564   rm -f conftest.er1
6565   cat conftest.err >&5
6566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567   (exit $ac_status); } &&
6568          { ac_try='test -z "$ac_c_werror_flag"
6569                          || test ! -s conftest.err'
6570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571   (eval $ac_try) 2>&5
6572   ac_status=$?
6573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574   (exit $ac_status); }; } &&
6575          { ac_try='test -s conftest.$ac_objext'
6576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577   (eval $ac_try) 2>&5
6578   ac_status=$?
6579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580   (exit $ac_status); }; }; then
6581   eval "$as_ac_Header=yes"
6582 else
6583   echo "$as_me: failed program was:" >&5
6584 sed 's/^/| /' conftest.$ac_ext >&5
6585
6586 eval "$as_ac_Header=no"
6587 fi
6588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6589 fi
6590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6593   cat >>confdefs.h <<_ACEOF
6594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6595 _ACEOF
6596
6597 fi
6598
6599 done
6600
6601
6602
6603 for ac_header in dlfcn.h
6604 do
6605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6607   echo "$as_me:$LINENO: checking for $ac_header" >&5
6608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6610   echo $ECHO_N "(cached) $ECHO_C" >&6
6611 fi
6612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6614 else
6615   # Is the header compilable?
6616 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6618 cat >conftest.$ac_ext <<_ACEOF
6619 /* confdefs.h.  */
6620 _ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h.  */
6624 $ac_includes_default
6625 #include <$ac_header>
6626 _ACEOF
6627 rm -f conftest.$ac_objext
6628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6629   (eval $ac_compile) 2>conftest.er1
6630   ac_status=$?
6631   grep -v '^ *+' conftest.er1 >conftest.err
6632   rm -f conftest.er1
6633   cat conftest.err >&5
6634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635   (exit $ac_status); } &&
6636          { ac_try='test -z "$ac_c_werror_flag"
6637                          || test ! -s conftest.err'
6638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639   (eval $ac_try) 2>&5
6640   ac_status=$?
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); }; } &&
6643          { ac_try='test -s conftest.$ac_objext'
6644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645   (eval $ac_try) 2>&5
6646   ac_status=$?
6647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648   (exit $ac_status); }; }; then
6649   ac_header_compiler=yes
6650 else
6651   echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6653
6654 ac_header_compiler=no
6655 fi
6656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6658 echo "${ECHO_T}$ac_header_compiler" >&6
6659
6660 # Is the header present?
6661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6663 cat >conftest.$ac_ext <<_ACEOF
6664 /* confdefs.h.  */
6665 _ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h.  */
6669 #include <$ac_header>
6670 _ACEOF
6671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6672   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6673   ac_status=$?
6674   grep -v '^ *+' conftest.er1 >conftest.err
6675   rm -f conftest.er1
6676   cat conftest.err >&5
6677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678   (exit $ac_status); } >/dev/null; then
6679   if test -s conftest.err; then
6680     ac_cpp_err=$ac_c_preproc_warn_flag
6681     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6682   else
6683     ac_cpp_err=
6684   fi
6685 else
6686   ac_cpp_err=yes
6687 fi
6688 if test -z "$ac_cpp_err"; then
6689   ac_header_preproc=yes
6690 else
6691   echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6693
6694   ac_header_preproc=no
6695 fi
6696 rm -f conftest.err conftest.$ac_ext
6697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6698 echo "${ECHO_T}$ac_header_preproc" >&6
6699
6700 # So?  What about this header?
6701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6702   yes:no: )
6703     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6707     ac_header_preproc=yes
6708     ;;
6709   no:yes:* )
6710     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6712     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6713 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6714     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6716     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6717 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6718     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6720     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6722     (
6723       cat <<\_ASBOX
6724 ## ------------------------------------------ ##
6725 ## Report this to the AC_PACKAGE_NAME lists.  ##
6726 ## ------------------------------------------ ##
6727 _ASBOX
6728     ) |
6729       sed "s/^/$as_me: WARNING:     /" >&2
6730     ;;
6731 esac
6732 echo "$as_me:$LINENO: checking for $ac_header" >&5
6733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6735   echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737   eval "$as_ac_Header=\$ac_header_preproc"
6738 fi
6739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6741
6742 fi
6743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6744   cat >>confdefs.h <<_ACEOF
6745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6746 _ACEOF
6747
6748 fi
6749
6750 done
6751
6752 ac_ext=cc
6753 ac_cpp='$CXXCPP $CPPFLAGS'
6754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6757 if test -n "$ac_tool_prefix"; then
6758   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6759   do
6760     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6761 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6762 echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6764 if test "${ac_cv_prog_CXX+set}" = set; then
6765   echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767   if test -n "$CXX"; then
6768   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6769 else
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 for as_dir in $PATH
6772 do
6773   IFS=$as_save_IFS
6774   test -z "$as_dir" && as_dir=.
6775   for ac_exec_ext in '' $ac_executable_extensions; do
6776   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6777     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6779     break 2
6780   fi
6781 done
6782 done
6783
6784 fi
6785 fi
6786 CXX=$ac_cv_prog_CXX
6787 if test -n "$CXX"; then
6788   echo "$as_me:$LINENO: result: $CXX" >&5
6789 echo "${ECHO_T}$CXX" >&6
6790 else
6791   echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6
6793 fi
6794
6795     test -n "$CXX" && break
6796   done
6797 fi
6798 if test -z "$CXX"; then
6799   ac_ct_CXX=$CXX
6800   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6801 do
6802   # Extract the first word of "$ac_prog", so it can be a program name with args.
6803 set dummy $ac_prog; ac_word=$2
6804 echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6806 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6807   echo $ECHO_N "(cached) $ECHO_C" >&6
6808 else
6809   if test -n "$ac_ct_CXX"; then
6810   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6811 else
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 for as_dir in $PATH
6814 do
6815   IFS=$as_save_IFS
6816   test -z "$as_dir" && as_dir=.
6817   for ac_exec_ext in '' $ac_executable_extensions; do
6818   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6819     ac_cv_prog_ac_ct_CXX="$ac_prog"
6820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6821     break 2
6822   fi
6823 done
6824 done
6825
6826 fi
6827 fi
6828 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6829 if test -n "$ac_ct_CXX"; then
6830   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6831 echo "${ECHO_T}$ac_ct_CXX" >&6
6832 else
6833   echo "$as_me:$LINENO: result: no" >&5
6834 echo "${ECHO_T}no" >&6
6835 fi
6836
6837   test -n "$ac_ct_CXX" && break
6838 done
6839 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6840
6841   CXX=$ac_ct_CXX
6842 fi
6843
6844
6845 # Provide some information about the compiler.
6846 echo "$as_me:$LINENO:" \
6847      "checking for C++ compiler version" >&5
6848 ac_compiler=`set X $ac_compile; echo $2`
6849 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6850   (eval $ac_compiler --version </dev/null >&5) 2>&5
6851   ac_status=$?
6852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853   (exit $ac_status); }
6854 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6855   (eval $ac_compiler -v </dev/null >&5) 2>&5
6856   ac_status=$?
6857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858   (exit $ac_status); }
6859 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6860   (eval $ac_compiler -V </dev/null >&5) 2>&5
6861   ac_status=$?
6862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863   (exit $ac_status); }
6864
6865 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6866 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6867 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6868   echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870   cat >conftest.$ac_ext <<_ACEOF
6871 /* confdefs.h.  */
6872 _ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h.  */
6876
6877 int
6878 main ()
6879 {
6880 #ifndef __GNUC__
6881        choke me
6882 #endif
6883
6884   ;
6885   return 0;
6886 }
6887 _ACEOF
6888 rm -f conftest.$ac_objext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6890   (eval $ac_compile) 2>conftest.er1
6891   ac_status=$?
6892   grep -v '^ *+' conftest.er1 >conftest.err
6893   rm -f conftest.er1
6894   cat conftest.err >&5
6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); } &&
6897          { ac_try='test -z "$ac_cxx_werror_flag"
6898                          || test ! -s conftest.err'
6899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900   (eval $ac_try) 2>&5
6901   ac_status=$?
6902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903   (exit $ac_status); }; } &&
6904          { ac_try='test -s conftest.$ac_objext'
6905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906   (eval $ac_try) 2>&5
6907   ac_status=$?
6908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909   (exit $ac_status); }; }; then
6910   ac_compiler_gnu=yes
6911 else
6912   echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6914
6915 ac_compiler_gnu=no
6916 fi
6917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6918 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6919
6920 fi
6921 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6922 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6923 GXX=`test $ac_compiler_gnu = yes && echo yes`
6924 ac_test_CXXFLAGS=${CXXFLAGS+set}
6925 ac_save_CXXFLAGS=$CXXFLAGS
6926 CXXFLAGS="-g"
6927 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6928 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6929 if test "${ac_cv_prog_cxx_g+set}" = set; then
6930   echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932   cat >conftest.$ac_ext <<_ACEOF
6933 /* confdefs.h.  */
6934 _ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h.  */
6938
6939 int
6940 main ()
6941 {
6942
6943   ;
6944   return 0;
6945 }
6946 _ACEOF
6947 rm -f conftest.$ac_objext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6949   (eval $ac_compile) 2>conftest.er1
6950   ac_status=$?
6951   grep -v '^ *+' conftest.er1 >conftest.err
6952   rm -f conftest.er1
6953   cat conftest.err >&5
6954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955   (exit $ac_status); } &&
6956          { ac_try='test -z "$ac_cxx_werror_flag"
6957                          || test ! -s conftest.err'
6958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959   (eval $ac_try) 2>&5
6960   ac_status=$?
6961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962   (exit $ac_status); }; } &&
6963          { ac_try='test -s conftest.$ac_objext'
6964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965   (eval $ac_try) 2>&5
6966   ac_status=$?
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); }; }; then
6969   ac_cv_prog_cxx_g=yes
6970 else
6971   echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6973
6974 ac_cv_prog_cxx_g=no
6975 fi
6976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6977 fi
6978 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6979 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6980 if test "$ac_test_CXXFLAGS" = set; then
6981   CXXFLAGS=$ac_save_CXXFLAGS
6982 elif test $ac_cv_prog_cxx_g = yes; then
6983   if test "$GXX" = yes; then
6984     CXXFLAGS="-g -O2"
6985   else
6986     CXXFLAGS="-g"
6987   fi
6988 else
6989   if test "$GXX" = yes; then
6990     CXXFLAGS="-O2"
6991   else
6992     CXXFLAGS=
6993   fi
6994 fi
6995 for ac_declaration in \
6996    '' \
6997    'extern "C" void std::exit (int) throw (); using std::exit;' \
6998    'extern "C" void std::exit (int); using std::exit;' \
6999    'extern "C" void exit (int) throw ();' \
7000    'extern "C" void exit (int);' \
7001    'void exit (int);'
7002 do
7003   cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h.  */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h.  */
7009 $ac_declaration
7010 #include <stdlib.h>
7011 int
7012 main ()
7013 {
7014 exit (42);
7015   ;
7016   return 0;
7017 }
7018 _ACEOF
7019 rm -f conftest.$ac_objext
7020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7021   (eval $ac_compile) 2>conftest.er1
7022   ac_status=$?
7023   grep -v '^ *+' conftest.er1 >conftest.err
7024   rm -f conftest.er1
7025   cat conftest.err >&5
7026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027   (exit $ac_status); } &&
7028          { ac_try='test -z "$ac_cxx_werror_flag"
7029                          || test ! -s conftest.err'
7030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031   (eval $ac_try) 2>&5
7032   ac_status=$?
7033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034   (exit $ac_status); }; } &&
7035          { ac_try='test -s conftest.$ac_objext'
7036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037   (eval $ac_try) 2>&5
7038   ac_status=$?
7039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040   (exit $ac_status); }; }; then
7041   :
7042 else
7043   echo "$as_me: failed program was:" >&5
7044 sed 's/^/| /' conftest.$ac_ext >&5
7045
7046 continue
7047 fi
7048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7049   cat >conftest.$ac_ext <<_ACEOF
7050 /* confdefs.h.  */
7051 _ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h.  */
7055 $ac_declaration
7056 int
7057 main ()
7058 {
7059 exit (42);
7060   ;
7061   return 0;
7062 }
7063 _ACEOF
7064 rm -f conftest.$ac_objext
7065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7066   (eval $ac_compile) 2>conftest.er1
7067   ac_status=$?
7068   grep -v '^ *+' conftest.er1 >conftest.err
7069   rm -f conftest.er1
7070   cat conftest.err >&5
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); } &&
7073          { ac_try='test -z "$ac_cxx_werror_flag"
7074                          || test ! -s conftest.err'
7075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076   (eval $ac_try) 2>&5
7077   ac_status=$?
7078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079   (exit $ac_status); }; } &&
7080          { ac_try='test -s conftest.$ac_objext'
7081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082   (eval $ac_try) 2>&5
7083   ac_status=$?
7084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085   (exit $ac_status); }; }; then
7086   break
7087 else
7088   echo "$as_me: failed program was:" >&5
7089 sed 's/^/| /' conftest.$ac_ext >&5
7090
7091 fi
7092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7093 done
7094 rm -f conftest*
7095 if test -n "$ac_declaration"; then
7096   echo '#ifdef __cplusplus' >>confdefs.h
7097   echo $ac_declaration      >>confdefs.h
7098   echo '#endif'             >>confdefs.h
7099 fi
7100
7101 ac_ext=cc
7102 ac_cpp='$CXXCPP $CPPFLAGS'
7103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7106
7107 depcc="$CXX"  am_compiler_list=
7108
7109 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7110 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7111 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7112   echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7115   # We make a subdir and do the tests there.  Otherwise we can end up
7116   # making bogus files that we don't know about and never remove.  For
7117   # instance it was reported that on HP-UX the gcc test will end up
7118   # making a dummy file named `D' -- because `-MD' means `put the output
7119   # in D'.
7120   mkdir conftest.dir
7121   # Copy depcomp to subdir because otherwise we won't find it if we're
7122   # using a relative directory.
7123   cp "$am_depcomp" conftest.dir
7124   cd conftest.dir
7125   # We will build objects and dependencies in a subdirectory because
7126   # it helps to detect inapplicable dependency modes.  For instance
7127   # both Tru64's cc and ICC support -MD to output dependencies as a
7128   # side effect of compilation, but ICC will put the dependencies in
7129   # the current directory while Tru64 will put them in the object
7130   # directory.
7131   mkdir sub
7132
7133   am_cv_CXX_dependencies_compiler_type=none
7134   if test "$am_compiler_list" = ""; then
7135      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7136   fi
7137   for depmode in $am_compiler_list; do
7138     # Setup a source with many dependencies, because some compilers
7139     # like to wrap large dependency lists on column 80 (with \), and
7140     # we should not choose a depcomp mode which is confused by this.
7141     #
7142     # We need to recreate these files for each test, as the compiler may
7143     # overwrite some of them when testing with obscure command lines.
7144     # This happens at least with the AIX C compiler.
7145     : > sub/conftest.c
7146     for i in 1 2 3 4 5 6; do
7147       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7148       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7149       # Solaris 8's {/usr,}/bin/sh.
7150       touch sub/conftst$i.h
7151     done
7152     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7153
7154     case $depmode in
7155     nosideeffect)
7156       # after this tag, mechanisms are not by side-effect, so they'll
7157       # only be used when explicitly requested
7158       if test "x$enable_dependency_tracking" = xyes; then
7159         continue
7160       else
7161         break
7162       fi
7163       ;;
7164     none) break ;;
7165     esac
7166     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7167     # mode.  It turns out that the SunPro C++ compiler does not properly
7168     # handle `-M -o', and we need to detect this.
7169     if depmode=$depmode \
7170        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7171        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7172        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7173          >/dev/null 2>conftest.err &&
7174        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7175        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7176        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7177       # icc doesn't choke on unknown options, it will just issue warnings
7178       # or remarks (even with -Werror).  So we grep stderr for any message
7179       # that says an option was ignored or not supported.
7180       # When given -MP, icc 7.0 and 7.1 complain thusly:
7181       #   icc: Command line warning: ignoring option '-M'; no argument required
7182       # The diagnosis changed in icc 8.0:
7183       #   icc: Command line remark: option '-MP' not supported
7184       if (grep 'ignoring option' conftest.err ||
7185           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7186         am_cv_CXX_dependencies_compiler_type=$depmode
7187         break
7188       fi
7189     fi
7190   done
7191
7192   cd ..
7193   rm -rf conftest.dir
7194 else
7195   am_cv_CXX_dependencies_compiler_type=none
7196 fi
7197
7198 fi
7199 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7200 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7201 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7202
7203
7204
7205 if
7206   test "x$enable_dependency_tracking" != xno \
7207   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7208   am__fastdepCXX_TRUE=
7209   am__fastdepCXX_FALSE='#'
7210 else
7211   am__fastdepCXX_TRUE='#'
7212   am__fastdepCXX_FALSE=
7213 fi
7214
7215
7216
7217
7218 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7219     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7220     (test "X$CXX" != "Xg++"))) ; then
7221   ac_ext=cc
7222 ac_cpp='$CXXCPP $CPPFLAGS'
7223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7226 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7227 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7228 if test -z "$CXXCPP"; then
7229   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7230   echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232       # Double quotes because CXXCPP needs to be expanded
7233     for CXXCPP in "$CXX -E" "/lib/cpp"
7234     do
7235       ac_preproc_ok=false
7236 for ac_cxx_preproc_warn_flag in '' yes
7237 do
7238   # Use a header file that comes with gcc, so configuring glibc
7239   # with a fresh cross-compiler works.
7240   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7241   # <limits.h> exists even on freestanding compilers.
7242   # On the NeXT, cc -E runs the code through the compiler's parser,
7243   # not just through cpp. "Syntax error" is here to catch this case.
7244   cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h.  */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h.  */
7250 #ifdef __STDC__
7251 # include <limits.h>
7252 #else
7253 # include <assert.h>
7254 #endif
7255                      Syntax error
7256 _ACEOF
7257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7258   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7259   ac_status=$?
7260   grep -v '^ *+' conftest.er1 >conftest.err
7261   rm -f conftest.er1
7262   cat conftest.err >&5
7263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264   (exit $ac_status); } >/dev/null; then
7265   if test -s conftest.err; then
7266     ac_cpp_err=$ac_cxx_preproc_warn_flag
7267     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7268   else
7269     ac_cpp_err=
7270   fi
7271 else
7272   ac_cpp_err=yes
7273 fi
7274 if test -z "$ac_cpp_err"; then
7275   :
7276 else
7277   echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7279
7280   # Broken: fails on valid input.
7281 continue
7282 fi
7283 rm -f conftest.err conftest.$ac_ext
7284
7285   # OK, works on sane cases.  Now check whether non-existent headers
7286   # can be detected and how.
7287   cat >conftest.$ac_ext <<_ACEOF
7288 /* confdefs.h.  */
7289 _ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h.  */
7293 #include <ac_nonexistent.h>
7294 _ACEOF
7295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7296   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7297   ac_status=$?
7298   grep -v '^ *+' conftest.er1 >conftest.err
7299   rm -f conftest.er1
7300   cat conftest.err >&5
7301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302   (exit $ac_status); } >/dev/null; then
7303   if test -s conftest.err; then
7304     ac_cpp_err=$ac_cxx_preproc_warn_flag
7305     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7306   else
7307     ac_cpp_err=
7308   fi
7309 else
7310   ac_cpp_err=yes
7311 fi
7312 if test -z "$ac_cpp_err"; then
7313   # Broken: success on invalid input.
7314 continue
7315 else
7316   echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7318
7319   # Passes both tests.
7320 ac_preproc_ok=:
7321 break
7322 fi
7323 rm -f conftest.err conftest.$ac_ext
7324
7325 done
7326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7327 rm -f conftest.err conftest.$ac_ext
7328 if $ac_preproc_ok; then
7329   break
7330 fi
7331
7332     done
7333     ac_cv_prog_CXXCPP=$CXXCPP
7334
7335 fi
7336   CXXCPP=$ac_cv_prog_CXXCPP
7337 else
7338   ac_cv_prog_CXXCPP=$CXXCPP
7339 fi
7340 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7341 echo "${ECHO_T}$CXXCPP" >&6
7342 ac_preproc_ok=false
7343 for ac_cxx_preproc_warn_flag in '' yes
7344 do
7345   # Use a header file that comes with gcc, so configuring glibc
7346   # with a fresh cross-compiler works.
7347   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7348   # <limits.h> exists even on freestanding compilers.
7349   # On the NeXT, cc -E runs the code through the compiler's parser,
7350   # not just through cpp. "Syntax error" is here to catch this case.
7351   cat >conftest.$ac_ext <<_ACEOF
7352 /* confdefs.h.  */
7353 _ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h.  */
7357 #ifdef __STDC__
7358 # include <limits.h>
7359 #else
7360 # include <assert.h>
7361 #endif
7362                      Syntax error
7363 _ACEOF
7364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7365   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7366   ac_status=$?
7367   grep -v '^ *+' conftest.er1 >conftest.err
7368   rm -f conftest.er1
7369   cat conftest.err >&5
7370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371   (exit $ac_status); } >/dev/null; then
7372   if test -s conftest.err; then
7373     ac_cpp_err=$ac_cxx_preproc_warn_flag
7374     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7375   else
7376     ac_cpp_err=
7377   fi
7378 else
7379   ac_cpp_err=yes
7380 fi
7381 if test -z "$ac_cpp_err"; then
7382   :
7383 else
7384   echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.$ac_ext >&5
7386
7387   # Broken: fails on valid input.
7388 continue
7389 fi
7390 rm -f conftest.err conftest.$ac_ext
7391
7392   # OK, works on sane cases.  Now check whether non-existent headers
7393   # can be detected and how.
7394   cat >conftest.$ac_ext <<_ACEOF
7395 /* confdefs.h.  */
7396 _ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h.  */
7400 #include <ac_nonexistent.h>
7401 _ACEOF
7402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7403   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7404   ac_status=$?
7405   grep -v '^ *+' conftest.er1 >conftest.err
7406   rm -f conftest.er1
7407   cat conftest.err >&5
7408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409   (exit $ac_status); } >/dev/null; then
7410   if test -s conftest.err; then
7411     ac_cpp_err=$ac_cxx_preproc_warn_flag
7412     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7413   else
7414     ac_cpp_err=
7415   fi
7416 else
7417   ac_cpp_err=yes
7418 fi
7419 if test -z "$ac_cpp_err"; then
7420   # Broken: success on invalid input.
7421 continue
7422 else
7423   echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7425
7426   # Passes both tests.
7427 ac_preproc_ok=:
7428 break
7429 fi
7430 rm -f conftest.err conftest.$ac_ext
7431
7432 done
7433 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7434 rm -f conftest.err conftest.$ac_ext
7435 if $ac_preproc_ok; then
7436   :
7437 else
7438   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7439 See \`config.log' for more details." >&5
7440 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7441 See \`config.log' for more details." >&2;}
7442    { (exit 1); exit 1; }; }
7443 fi
7444
7445 ac_ext=cc
7446 ac_cpp='$CXXCPP $CPPFLAGS'
7447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7450
7451 fi
7452
7453
7454 ac_ext=f
7455 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7456 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7457 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7458 if test -n "$ac_tool_prefix"; then
7459   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7460   do
7461     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7463 echo "$as_me:$LINENO: checking for $ac_word" >&5
7464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7465 if test "${ac_cv_prog_F77+set}" = set; then
7466   echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468   if test -n "$F77"; then
7469   ac_cv_prog_F77="$F77" # Let the user override the test.
7470 else
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 for as_dir in $PATH
7473 do
7474   IFS=$as_save_IFS
7475   test -z "$as_dir" && as_dir=.
7476   for ac_exec_ext in '' $ac_executable_extensions; do
7477   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7478     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480     break 2
7481   fi
7482 done
7483 done
7484
7485 fi
7486 fi
7487 F77=$ac_cv_prog_F77
7488 if test -n "$F77"; then
7489   echo "$as_me:$LINENO: result: $F77" >&5
7490 echo "${ECHO_T}$F77" >&6
7491 else
7492   echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6
7494 fi
7495
7496     test -n "$F77" && break
7497   done
7498 fi
7499 if test -z "$F77"; then
7500   ac_ct_F77=$F77
7501   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7502 do
7503   # Extract the first word of "$ac_prog", so it can be a program name with args.
7504 set dummy $ac_prog; ac_word=$2
7505 echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7507 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7508   echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510   if test -n "$ac_ct_F77"; then
7511   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7512 else
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 for as_dir in $PATH
7515 do
7516   IFS=$as_save_IFS
7517   test -z "$as_dir" && as_dir=.
7518   for ac_exec_ext in '' $ac_executable_extensions; do
7519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7520     ac_cv_prog_ac_ct_F77="$ac_prog"
7521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7522     break 2
7523   fi
7524 done
7525 done
7526
7527 fi
7528 fi
7529 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7530 if test -n "$ac_ct_F77"; then
7531   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7532 echo "${ECHO_T}$ac_ct_F77" >&6
7533 else
7534   echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6
7536 fi
7537
7538   test -n "$ac_ct_F77" && break
7539 done
7540
7541   F77=$ac_ct_F77
7542 fi
7543
7544
7545 # Provide some information about the compiler.
7546 echo "$as_me:7546:" \
7547      "checking for Fortran 77 compiler version" >&5
7548 ac_compiler=`set X $ac_compile; echo $2`
7549 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7550   (eval $ac_compiler --version </dev/null >&5) 2>&5
7551   ac_status=$?
7552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553   (exit $ac_status); }
7554 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7555   (eval $ac_compiler -v </dev/null >&5) 2>&5
7556   ac_status=$?
7557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558   (exit $ac_status); }
7559 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7560   (eval $ac_compiler -V </dev/null >&5) 2>&5
7561   ac_status=$?
7562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563   (exit $ac_status); }
7564 rm -f a.out
7565
7566 # If we don't use `.F' as extension, the preprocessor is not run on the
7567 # input file.  (Note that this only needs to work for GNU compilers.)
7568 ac_save_ext=$ac_ext
7569 ac_ext=F
7570 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7571 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7572 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7573   echo $ECHO_N "(cached) $ECHO_C" >&6
7574 else
7575   cat >conftest.$ac_ext <<_ACEOF
7576       program main
7577 #ifndef __GNUC__
7578        choke me
7579 #endif
7580
7581       end
7582 _ACEOF
7583 rm -f conftest.$ac_objext
7584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7585   (eval $ac_compile) 2>conftest.er1
7586   ac_status=$?
7587   grep -v '^ *+' conftest.er1 >conftest.err
7588   rm -f conftest.er1
7589   cat conftest.err >&5
7590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591   (exit $ac_status); } &&
7592          { ac_try='test -z "$ac_f77_werror_flag"
7593                          || test ! -s conftest.err'
7594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595   (eval $ac_try) 2>&5
7596   ac_status=$?
7597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598   (exit $ac_status); }; } &&
7599          { ac_try='test -s conftest.$ac_objext'
7600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601   (eval $ac_try) 2>&5
7602   ac_status=$?
7603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604   (exit $ac_status); }; }; then
7605   ac_compiler_gnu=yes
7606 else
7607   echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7609
7610 ac_compiler_gnu=no
7611 fi
7612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7613 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7614
7615 fi
7616 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7617 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7618 ac_ext=$ac_save_ext
7619 ac_test_FFLAGS=${FFLAGS+set}
7620 ac_save_FFLAGS=$FFLAGS
7621 FFLAGS=
7622 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7623 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7624 if test "${ac_cv_prog_f77_g+set}" = set; then
7625   echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627   FFLAGS=-g
7628 cat >conftest.$ac_ext <<_ACEOF
7629       program main
7630
7631       end
7632 _ACEOF
7633 rm -f conftest.$ac_objext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7635   (eval $ac_compile) 2>conftest.er1
7636   ac_status=$?
7637   grep -v '^ *+' conftest.er1 >conftest.err
7638   rm -f conftest.er1
7639   cat conftest.err >&5
7640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641   (exit $ac_status); } &&
7642          { ac_try='test -z "$ac_f77_werror_flag"
7643                          || test ! -s conftest.err'
7644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645   (eval $ac_try) 2>&5
7646   ac_status=$?
7647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648   (exit $ac_status); }; } &&
7649          { ac_try='test -s conftest.$ac_objext'
7650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651   (eval $ac_try) 2>&5
7652   ac_status=$?
7653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654   (exit $ac_status); }; }; then
7655   ac_cv_prog_f77_g=yes
7656 else
7657   echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7659
7660 ac_cv_prog_f77_g=no
7661 fi
7662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7663
7664 fi
7665 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7666 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7667 if test "$ac_test_FFLAGS" = set; then
7668   FFLAGS=$ac_save_FFLAGS
7669 elif test $ac_cv_prog_f77_g = yes; then
7670   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7671     FFLAGS="-g -O2"
7672   else
7673     FFLAGS="-g"
7674   fi
7675 else
7676   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7677     FFLAGS="-O2"
7678   else
7679     FFLAGS=
7680   fi
7681 fi
7682
7683 G77=`test $ac_compiler_gnu = yes && echo yes`
7684 ac_ext=c
7685 ac_cpp='$CPP $CPPFLAGS'
7686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7689
7690
7691
7692 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7693
7694 # find the maximum length of command line arguments
7695 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7696 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7697 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7698   echo $ECHO_N "(cached) $ECHO_C" >&6
7699 else
7700     i=0
7701   teststring="ABCD"
7702
7703   case $build_os in
7704   msdosdjgpp*)
7705     # On DJGPP, this test can blow up pretty badly due to problems in libc
7706     # (any single argument exceeding 2000 bytes causes a buffer overrun
7707     # during glob expansion).  Even if it were fixed, the result of this
7708     # check would be larger than it should be.
7709     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7710     ;;
7711
7712   gnu*)
7713     # Under GNU Hurd, this test is not required because there is
7714     # no limit to the length of command line arguments.
7715     # Libtool will interpret -1 as no limit whatsoever
7716     lt_cv_sys_max_cmd_len=-1;
7717     ;;
7718
7719   cygwin* | mingw*)
7720     # On Win9x/ME, this test blows up -- it succeeds, but takes
7721     # about 5 minutes as the teststring grows exponentially.
7722     # Worse, since 9x/ME are not pre-emptively multitasking,
7723     # you end up with a "frozen" computer, even though with patience
7724     # the test eventually succeeds (with a max line length of 256k).
7725     # Instead, let's just punt: use the minimum linelength reported by
7726     # all of the supported platforms: 8192 (on NT/2K/XP).
7727     lt_cv_sys_max_cmd_len=8192;
7728     ;;
7729
7730   amigaos*)
7731     # On AmigaOS with pdksh, this test takes hours, literally.
7732     # So we just punt and use a minimum line length of 8192.
7733     lt_cv_sys_max_cmd_len=8192;
7734     ;;
7735
7736   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7737     # This has been around since 386BSD, at least.  Likely further.
7738     if test -x /sbin/sysctl; then
7739       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7740     elif test -x /usr/sbin/sysctl; then
7741       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7742     else
7743       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7744     fi
7745     # And add a safety zone
7746     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7747     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7748     ;;
7749   osf*)
7750     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7751     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7752     # nice to cause kernel panics so lets avoid the loop below.
7753     # First set a reasonable default.
7754     lt_cv_sys_max_cmd_len=16384
7755     #
7756     if test -x /sbin/sysconfig; then
7757       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7758         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7759       esac
7760     fi
7761     ;;
7762   *)
7763     # If test is not a shell built-in, we'll probably end up computing a
7764     # maximum length that is only half of the actual maximum length, but
7765     # we can't tell.
7766     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7767     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7768                = "XX$teststring") >/dev/null 2>&1 &&
7769             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7770             lt_cv_sys_max_cmd_len=$new_result &&
7771             test $i != 17 # 1/2 MB should be enough
7772     do
7773       i=`expr $i + 1`
7774       teststring=$teststring$teststring
7775     done
7776     teststring=
7777     # Add a significant safety factor because C++ compilers can tack on massive
7778     # amounts of additional arguments before passing them to the linker.
7779     # It appears as though 1/2 is a usable value.
7780     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7781     ;;
7782   esac
7783
7784 fi
7785
7786 if test -n $lt_cv_sys_max_cmd_len ; then
7787   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7788 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7789 else
7790   echo "$as_me:$LINENO: result: none" >&5
7791 echo "${ECHO_T}none" >&6
7792 fi
7793
7794
7795
7796
7797 # Check for command to grab the raw symbol name followed by C symbol from nm.
7798 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7799 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7800 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7801   echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803
7804 # These are sane defaults that work on at least a few old systems.
7805 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7806
7807 # Character class describing NM global symbol codes.
7808 symcode='[BCDEGRST]'
7809
7810 # Regexp to match symbols that can be accessed directly from C.
7811 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7812
7813 # Transform an extracted symbol line into a proper C declaration
7814 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7815
7816 # Transform an extracted symbol line into symbol name and symbol address
7817 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'"
7818
7819 # Define system-specific variables.
7820 case $host_os in
7821 aix*)
7822   symcode='[BCDT]'
7823   ;;
7824 cygwin* | mingw* | pw32*)
7825   symcode='[ABCDGISTW]'
7826   ;;
7827 hpux*) # Its linker distinguishes data from code symbols
7828   if test "$host_cpu" = ia64; then
7829     symcode='[ABCDEGRST]'
7830   fi
7831   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7832   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'"
7833   ;;
7834 linux*)
7835   if test "$host_cpu" = ia64; then
7836     symcode='[ABCDGIRSTW]'
7837     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7838     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'"
7839   fi
7840   ;;
7841 irix* | nonstopux*)
7842   symcode='[BCDEGRST]'
7843   ;;
7844 osf*)
7845   symcode='[BCDEGQRST]'
7846   ;;
7847 solaris* | sysv5*)
7848   symcode='[BDRT]'
7849   ;;
7850 sysv4)
7851   symcode='[DFNSTU]'
7852   ;;
7853 esac
7854
7855 # Handle CRLF in mingw tool chain
7856 opt_cr=
7857 case $build_os in
7858 mingw*)
7859   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7860   ;;
7861 esac
7862
7863 # If we're using GNU nm, then use its standard symbol codes.
7864 case `$NM -V 2>&1` in
7865 *GNU* | *'with BFD'*)
7866   symcode='[ABCDGIRSTW]' ;;
7867 esac
7868
7869 # Try without a prefix undercore, then with it.
7870 for ac_symprfx in "" "_"; do
7871
7872   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7873   symxfrm="\\1 $ac_symprfx\\2 \\2"
7874
7875   # Write the raw and C identifiers.
7876   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7877
7878   # Check to see that the pipe works correctly.
7879   pipe_works=no
7880
7881   rm -f conftest*
7882   cat > conftest.$ac_ext <<EOF
7883 #ifdef __cplusplus
7884 extern "C" {
7885 #endif
7886 char nm_test_var;
7887 void nm_test_func(){}
7888 #ifdef __cplusplus
7889 }
7890 #endif
7891 int main(){nm_test_var='a';nm_test_func();return(0);}
7892 EOF
7893
7894   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895   (eval $ac_compile) 2>&5
7896   ac_status=$?
7897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); }; then
7899     # Now try to grab the symbols.
7900     nlist=conftest.nm
7901     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7902   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7903   ac_status=$?
7904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905   (exit $ac_status); } && test -s "$nlist"; then
7906       # Try sorting and uniquifying the output.
7907       if sort "$nlist" | uniq > "$nlist"T; then
7908         mv -f "$nlist"T "$nlist"
7909       else
7910         rm -f "$nlist"T
7911       fi
7912
7913       # Make sure that we snagged all the symbols we need.
7914       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7915         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7916           cat <<EOF > conftest.$ac_ext
7917 #ifdef __cplusplus
7918 extern "C" {
7919 #endif
7920
7921 EOF
7922           # Now generate the symbol file.
7923           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7924
7925           cat <<EOF >> conftest.$ac_ext
7926 #if defined (__STDC__) && __STDC__
7927 # define lt_ptr_t void *
7928 #else
7929 # define lt_ptr_t char *
7930 # define const
7931 #endif
7932
7933 /* The mapping between symbol names and symbols. */
7934 const struct {
7935   const char *name;
7936   lt_ptr_t address;
7937 }
7938 lt_preloaded_symbols[] =
7939 {
7940 EOF
7941           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7942           cat <<\EOF >> conftest.$ac_ext
7943   {0, (lt_ptr_t) 0}
7944 };
7945
7946 #ifdef __cplusplus
7947 }
7948 #endif
7949 EOF
7950           # Now try linking the two files.
7951           mv conftest.$ac_objext conftstm.$ac_objext
7952           lt_save_LIBS="$LIBS"
7953           lt_save_CFLAGS="$CFLAGS"
7954           LIBS="conftstm.$ac_objext"
7955           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7956           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7957   (eval $ac_link) 2>&5
7958   ac_status=$?
7959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7961             pipe_works=yes
7962           fi
7963           LIBS="$lt_save_LIBS"
7964           CFLAGS="$lt_save_CFLAGS"
7965         else
7966           echo "cannot find nm_test_func in $nlist" >&5
7967         fi
7968       else
7969         echo "cannot find nm_test_var in $nlist" >&5
7970       fi
7971     else
7972       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7973     fi
7974   else
7975     echo "$progname: failed program was:" >&5
7976     cat conftest.$ac_ext >&5
7977   fi
7978   rm -f conftest* conftst*
7979
7980   # Do not use the global_symbol_pipe unless it works.
7981   if test "$pipe_works" = yes; then
7982     break
7983   else
7984     lt_cv_sys_global_symbol_pipe=
7985   fi
7986 done
7987
7988 fi
7989
7990 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7991   lt_cv_sys_global_symbol_to_cdecl=
7992 fi
7993 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7994   echo "$as_me:$LINENO: result: failed" >&5
7995 echo "${ECHO_T}failed" >&6
7996 else
7997   echo "$as_me:$LINENO: result: ok" >&5
7998 echo "${ECHO_T}ok" >&6
7999 fi
8000
8001 echo "$as_me:$LINENO: checking for objdir" >&5
8002 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8003 if test "${lt_cv_objdir+set}" = set; then
8004   echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006   rm -f .libs 2>/dev/null
8007 mkdir .libs 2>/dev/null
8008 if test -d .libs; then
8009   lt_cv_objdir=.libs
8010 else
8011   # MS-DOS does not allow filenames that begin with a dot.
8012   lt_cv_objdir=_libs
8013 fi
8014 rmdir .libs 2>/dev/null
8015 fi
8016 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8017 echo "${ECHO_T}$lt_cv_objdir" >&6
8018 objdir=$lt_cv_objdir
8019
8020
8021
8022
8023
8024 case $host_os in
8025 aix3*)
8026   # AIX sometimes has problems with the GCC collect2 program.  For some
8027   # reason, if we set the COLLECT_NAMES environment variable, the problems
8028   # vanish in a puff of smoke.
8029   if test "X${COLLECT_NAMES+set}" != Xset; then
8030     COLLECT_NAMES=
8031     export COLLECT_NAMES
8032   fi
8033   ;;
8034 esac
8035
8036 # Sed substitution that helps us do robust quoting.  It backslashifies
8037 # metacharacters that are still active within double-quoted strings.
8038 Xsed='sed -e 1s/^X//'
8039 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8040
8041 # Same as above, but do not quote variable references.
8042 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8043
8044 # Sed substitution to delay expansion of an escaped shell variable in a
8045 # double_quote_subst'ed string.
8046 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8047
8048 # Sed substitution to avoid accidental globbing in evaled expressions
8049 no_glob_subst='s/\*/\\\*/g'
8050
8051 # Constants:
8052 rm="rm -f"
8053
8054 # Global variables:
8055 default_ofile=libtool
8056 can_build_shared=yes
8057
8058 # All known linkers require a `.a' archive for static linking (except M$VC,
8059 # which needs '.lib').
8060 libext=a
8061 ltmain="$ac_aux_dir/ltmain.sh"
8062 ofile="$default_ofile"
8063 with_gnu_ld="$lt_cv_prog_gnu_ld"
8064
8065 if test -n "$ac_tool_prefix"; then
8066   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8067 set dummy ${ac_tool_prefix}ar; ac_word=$2
8068 echo "$as_me:$LINENO: checking for $ac_word" >&5
8069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8070 if test "${ac_cv_prog_AR+set}" = set; then
8071   echo $ECHO_N "(cached) $ECHO_C" >&6
8072 else
8073   if test -n "$AR"; then
8074   ac_cv_prog_AR="$AR" # Let the user override the test.
8075 else
8076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 for as_dir in $PATH
8078 do
8079   IFS=$as_save_IFS
8080   test -z "$as_dir" && as_dir=.
8081   for ac_exec_ext in '' $ac_executable_extensions; do
8082   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8083     ac_cv_prog_AR="${ac_tool_prefix}ar"
8084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8085     break 2
8086   fi
8087 done
8088 done
8089
8090 fi
8091 fi
8092 AR=$ac_cv_prog_AR
8093 if test -n "$AR"; then
8094   echo "$as_me:$LINENO: result: $AR" >&5
8095 echo "${ECHO_T}$AR" >&6
8096 else
8097   echo "$as_me:$LINENO: result: no" >&5
8098 echo "${ECHO_T}no" >&6
8099 fi
8100
8101 fi
8102 if test -z "$ac_cv_prog_AR"; then
8103   ac_ct_AR=$AR
8104   # Extract the first word of "ar", so it can be a program name with args.
8105 set dummy ar; ac_word=$2
8106 echo "$as_me:$LINENO: checking for $ac_word" >&5
8107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8108 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8109   echo $ECHO_N "(cached) $ECHO_C" >&6
8110 else
8111   if test -n "$ac_ct_AR"; then
8112   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8113 else
8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115 for as_dir in $PATH
8116 do
8117   IFS=$as_save_IFS
8118   test -z "$as_dir" && as_dir=.
8119   for ac_exec_ext in '' $ac_executable_extensions; do
8120   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8121     ac_cv_prog_ac_ct_AR="ar"
8122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8123     break 2
8124   fi
8125 done
8126 done
8127
8128   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8129 fi
8130 fi
8131 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8132 if test -n "$ac_ct_AR"; then
8133   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8134 echo "${ECHO_T}$ac_ct_AR" >&6
8135 else
8136   echo "$as_me:$LINENO: result: no" >&5
8137 echo "${ECHO_T}no" >&6
8138 fi
8139
8140   AR=$ac_ct_AR
8141 else
8142   AR="$ac_cv_prog_AR"
8143 fi
8144
8145 if test -n "$ac_tool_prefix"; then
8146   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8147 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8148 echo "$as_me:$LINENO: checking for $ac_word" >&5
8149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8150 if test "${ac_cv_prog_RANLIB+set}" = set; then
8151   echo $ECHO_N "(cached) $ECHO_C" >&6
8152 else
8153   if test -n "$RANLIB"; then
8154   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8155 else
8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157 for as_dir in $PATH
8158 do
8159   IFS=$as_save_IFS
8160   test -z "$as_dir" && as_dir=.
8161   for ac_exec_ext in '' $ac_executable_extensions; do
8162   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8163     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8165     break 2
8166   fi
8167 done
8168 done
8169
8170 fi
8171 fi
8172 RANLIB=$ac_cv_prog_RANLIB
8173 if test -n "$RANLIB"; then
8174   echo "$as_me:$LINENO: result: $RANLIB" >&5
8175 echo "${ECHO_T}$RANLIB" >&6
8176 else
8177   echo "$as_me:$LINENO: result: no" >&5
8178 echo "${ECHO_T}no" >&6
8179 fi
8180
8181 fi
8182 if test -z "$ac_cv_prog_RANLIB"; then
8183   ac_ct_RANLIB=$RANLIB
8184   # Extract the first word of "ranlib", so it can be a program name with args.
8185 set dummy ranlib; ac_word=$2
8186 echo "$as_me:$LINENO: checking for $ac_word" >&5
8187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8188 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8189   echo $ECHO_N "(cached) $ECHO_C" >&6
8190 else
8191   if test -n "$ac_ct_RANLIB"; then
8192   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8193 else
8194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195 for as_dir in $PATH
8196 do
8197   IFS=$as_save_IFS
8198   test -z "$as_dir" && as_dir=.
8199   for ac_exec_ext in '' $ac_executable_extensions; do
8200   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8201     ac_cv_prog_ac_ct_RANLIB="ranlib"
8202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8203     break 2
8204   fi
8205 done
8206 done
8207
8208   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8209 fi
8210 fi
8211 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8212 if test -n "$ac_ct_RANLIB"; then
8213   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8214 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8215 else
8216   echo "$as_me:$LINENO: result: no" >&5
8217 echo "${ECHO_T}no" >&6
8218 fi
8219
8220   RANLIB=$ac_ct_RANLIB
8221 else
8222   RANLIB="$ac_cv_prog_RANLIB"
8223 fi
8224
8225 if test -n "$ac_tool_prefix"; then
8226   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8227 set dummy ${ac_tool_prefix}strip; ac_word=$2
8228 echo "$as_me:$LINENO: checking for $ac_word" >&5
8229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8230 if test "${ac_cv_prog_STRIP+set}" = set; then
8231   echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
8233   if test -n "$STRIP"; then
8234   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8235 else
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 for as_dir in $PATH
8238 do
8239   IFS=$as_save_IFS
8240   test -z "$as_dir" && as_dir=.
8241   for ac_exec_ext in '' $ac_executable_extensions; do
8242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8243     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8245     break 2
8246   fi
8247 done
8248 done
8249
8250 fi
8251 fi
8252 STRIP=$ac_cv_prog_STRIP
8253 if test -n "$STRIP"; then
8254   echo "$as_me:$LINENO: result: $STRIP" >&5
8255 echo "${ECHO_T}$STRIP" >&6
8256 else
8257   echo "$as_me:$LINENO: result: no" >&5
8258 echo "${ECHO_T}no" >&6
8259 fi
8260
8261 fi
8262 if test -z "$ac_cv_prog_STRIP"; then
8263   ac_ct_STRIP=$STRIP
8264   # Extract the first word of "strip", so it can be a program name with args.
8265 set dummy strip; ac_word=$2
8266 echo "$as_me:$LINENO: checking for $ac_word" >&5
8267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8268 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8269   echo $ECHO_N "(cached) $ECHO_C" >&6
8270 else
8271   if test -n "$ac_ct_STRIP"; then
8272   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8273 else
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275 for as_dir in $PATH
8276 do
8277   IFS=$as_save_IFS
8278   test -z "$as_dir" && as_dir=.
8279   for ac_exec_ext in '' $ac_executable_extensions; do
8280   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8281     ac_cv_prog_ac_ct_STRIP="strip"
8282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8283     break 2
8284   fi
8285 done
8286 done
8287
8288   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8289 fi
8290 fi
8291 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8292 if test -n "$ac_ct_STRIP"; then
8293   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8294 echo "${ECHO_T}$ac_ct_STRIP" >&6
8295 else
8296   echo "$as_me:$LINENO: result: no" >&5
8297 echo "${ECHO_T}no" >&6
8298 fi
8299
8300   STRIP=$ac_ct_STRIP
8301 else
8302   STRIP="$ac_cv_prog_STRIP"
8303 fi
8304
8305
8306 old_CC="$CC"
8307 old_CFLAGS="$CFLAGS"
8308
8309 # Set sane defaults for various variables
8310 test -z "$AR" && AR=ar
8311 test -z "$AR_FLAGS" && AR_FLAGS=cru
8312 test -z "$AS" && AS=as
8313 test -z "$CC" && CC=cc
8314 test -z "$LTCC" && LTCC=$CC
8315 test -z "$DLLTOOL" && DLLTOOL=dlltool
8316 test -z "$LD" && LD=ld
8317 test -z "$LN_S" && LN_S="ln -s"
8318 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8319 test -z "$NM" && NM=nm
8320 test -z "$SED" && SED=sed
8321 test -z "$OBJDUMP" && OBJDUMP=objdump
8322 test -z "$RANLIB" && RANLIB=:
8323 test -z "$STRIP" && STRIP=:
8324 test -z "$ac_objext" && ac_objext=o
8325
8326 # Determine commands to create old-style static archives.
8327 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8328 old_postinstall_cmds='chmod 644 $oldlib'
8329 old_postuninstall_cmds=
8330
8331 if test -n "$RANLIB"; then
8332   case $host_os in
8333   openbsd*)
8334     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8335     ;;
8336   *)
8337     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8338     ;;
8339   esac
8340   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8341 fi
8342
8343 for cc_temp in $compiler""; do
8344   case $cc_temp in
8345     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8346     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8347     \-*) ;;
8348     *) break;;
8349   esac
8350 done
8351 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8352
8353
8354 # Only perform the check for file, if the check method requires it
8355 case $deplibs_check_method in
8356 file_magic*)
8357   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8358     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8359 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8360 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8361   echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363   case $MAGIC_CMD in
8364 [\\/*] |  ?:[\\/]*)
8365   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8366   ;;
8367 *)
8368   lt_save_MAGIC_CMD="$MAGIC_CMD"
8369   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8370   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8371   for ac_dir in $ac_dummy; do
8372     IFS="$lt_save_ifs"
8373     test -z "$ac_dir" && ac_dir=.
8374     if test -f $ac_dir/${ac_tool_prefix}file; then
8375       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8376       if test -n "$file_magic_test_file"; then
8377         case $deplibs_check_method in
8378         "file_magic "*)
8379           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8380           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8381           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8382             $EGREP "$file_magic_regex" > /dev/null; then
8383             :
8384           else
8385             cat <<EOF 1>&2
8386
8387 *** Warning: the command libtool uses to detect shared libraries,
8388 *** $file_magic_cmd, produces output that libtool cannot recognize.
8389 *** The result is that libtool may fail to recognize shared libraries
8390 *** as such.  This will affect the creation of libtool libraries that
8391 *** depend on shared libraries, but programs linked with such libtool
8392 *** libraries will work regardless of this problem.  Nevertheless, you
8393 *** may want to report the problem to your system manager and/or to
8394 *** bug-libtool@gnu.org
8395
8396 EOF
8397           fi ;;
8398         esac
8399       fi
8400       break
8401     fi
8402   done
8403   IFS="$lt_save_ifs"
8404   MAGIC_CMD="$lt_save_MAGIC_CMD"
8405   ;;
8406 esac
8407 fi
8408
8409 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8410 if test -n "$MAGIC_CMD"; then
8411   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8412 echo "${ECHO_T}$MAGIC_CMD" >&6
8413 else
8414   echo "$as_me:$LINENO: result: no" >&5
8415 echo "${ECHO_T}no" >&6
8416 fi
8417
8418 if test -z "$lt_cv_path_MAGIC_CMD"; then
8419   if test -n "$ac_tool_prefix"; then
8420     echo "$as_me:$LINENO: checking for file" >&5
8421 echo $ECHO_N "checking for file... $ECHO_C" >&6
8422 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8423   echo $ECHO_N "(cached) $ECHO_C" >&6
8424 else
8425   case $MAGIC_CMD in
8426 [\\/*] |  ?:[\\/]*)
8427   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8428   ;;
8429 *)
8430   lt_save_MAGIC_CMD="$MAGIC_CMD"
8431   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8432   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8433   for ac_dir in $ac_dummy; do
8434     IFS="$lt_save_ifs"
8435     test -z "$ac_dir" && ac_dir=.
8436     if test -f $ac_dir/file; then
8437       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8438       if test -n "$file_magic_test_file"; then
8439         case $deplibs_check_method in
8440         "file_magic "*)
8441           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8442           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8443           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8444             $EGREP "$file_magic_regex" > /dev/null; then
8445             :
8446           else
8447             cat <<EOF 1>&2
8448
8449 *** Warning: the command libtool uses to detect shared libraries,
8450 *** $file_magic_cmd, produces output that libtool cannot recognize.
8451 *** The result is that libtool may fail to recognize shared libraries
8452 *** as such.  This will affect the creation of libtool libraries that
8453 *** depend on shared libraries, but programs linked with such libtool
8454 *** libraries will work regardless of this problem.  Nevertheless, you
8455 *** may want to report the problem to your system manager and/or to
8456 *** bug-libtool@gnu.org
8457
8458 EOF
8459           fi ;;
8460         esac
8461       fi
8462       break
8463     fi
8464   done
8465   IFS="$lt_save_ifs"
8466   MAGIC_CMD="$lt_save_MAGIC_CMD"
8467   ;;
8468 esac
8469 fi
8470
8471 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8472 if test -n "$MAGIC_CMD"; then
8473   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8474 echo "${ECHO_T}$MAGIC_CMD" >&6
8475 else
8476   echo "$as_me:$LINENO: result: no" >&5
8477 echo "${ECHO_T}no" >&6
8478 fi
8479
8480   else
8481     MAGIC_CMD=:
8482   fi
8483 fi
8484
8485   fi
8486   ;;
8487 esac
8488
8489 enable_dlopen=yes
8490 enable_win32_dll=yes
8491
8492 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8493 if test "${enable_libtool_lock+set}" = set; then
8494   enableval="$enable_libtool_lock"
8495
8496 fi;
8497 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8498
8499
8500 # Check whether --with-pic or --without-pic was given.
8501 if test "${with_pic+set}" = set; then
8502   withval="$with_pic"
8503   pic_mode="$withval"
8504 else
8505   pic_mode=default
8506 fi;
8507 test -z "$pic_mode" && pic_mode=default
8508
8509 # Use C for the default configuration in the libtool script
8510 tagname=
8511 lt_save_CC="$CC"
8512 ac_ext=c
8513 ac_cpp='$CPP $CPPFLAGS'
8514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8517
8518
8519 # Source file extension for C test sources.
8520 ac_ext=c
8521
8522 # Object file extension for compiled C test sources.
8523 objext=o
8524 objext=$objext
8525
8526 # Code to be used in simple compile tests
8527 lt_simple_compile_test_code="int some_variable = 0;\n"
8528
8529 # Code to be used in simple link tests
8530 lt_simple_link_test_code='int main(){return(0);}\n'
8531
8532
8533 # If no C compiler was specified, use CC.
8534 LTCC=${LTCC-"$CC"}
8535
8536 # Allow CC to be a program name with arguments.
8537 compiler=$CC
8538
8539
8540 # save warnings/boilerplate of simple test code
8541 ac_outfile=conftest.$ac_objext
8542 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8543 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8544 _lt_compiler_boilerplate=`cat conftest.err`
8545 $rm conftest*
8546
8547 ac_outfile=conftest.$ac_objext
8548 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8549 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8550 _lt_linker_boilerplate=`cat conftest.err`
8551 $rm conftest*
8552
8553
8554 #
8555 # Check for any special shared library compilation flags.
8556 #
8557 lt_prog_cc_shlib=
8558 if test "$GCC" = no; then
8559   case $host_os in
8560   sco3.2v5*)
8561     lt_prog_cc_shlib='-belf'
8562     ;;
8563   esac
8564 fi
8565 if test -n "$lt_prog_cc_shlib"; then
8566   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8567 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8568   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8569   else
8570     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8571 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8572     lt_cv_prog_cc_can_build_shared=no
8573   fi
8574 fi
8575
8576
8577 #
8578 # Check to make sure the static flag actually works.
8579 #
8580 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8581 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8582 if test "${lt_prog_compiler_static_works+set}" = set; then
8583   echo $ECHO_N "(cached) $ECHO_C" >&6
8584 else
8585   lt_prog_compiler_static_works=no
8586    save_LDFLAGS="$LDFLAGS"
8587    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8588    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8589    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8590      # The compiler can only warn and ignore the option if not recognized
8591      # So say no if there are warnings
8592      if test -s conftest.err; then
8593        # Append any errors to the config.log.
8594        cat conftest.err 1>&5
8595        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8596        $SED '/^$/d' conftest.err >conftest.er2
8597        if diff conftest.exp conftest.er2 >/dev/null; then
8598          lt_prog_compiler_static_works=yes
8599        fi
8600      else
8601        lt_prog_compiler_static_works=yes
8602      fi
8603    fi
8604    $rm conftest*
8605    LDFLAGS="$save_LDFLAGS"
8606
8607 fi
8608 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8609 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8610
8611 if test x"$lt_prog_compiler_static_works" = xyes; then
8612     :
8613 else
8614     lt_prog_compiler_static=
8615 fi
8616
8617
8618
8619
8620 lt_prog_compiler_no_builtin_flag=
8621
8622 if test "$GCC" = yes; then
8623   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8624
8625
8626 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8627 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8628 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8629   echo $ECHO_N "(cached) $ECHO_C" >&6
8630 else
8631   lt_cv_prog_compiler_rtti_exceptions=no
8632   ac_outfile=conftest.$ac_objext
8633    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8634    lt_compiler_flag="-fno-rtti -fno-exceptions"
8635    # Insert the option either (1) after the last *FLAGS variable, or
8636    # (2) before a word containing "conftest.", or (3) at the end.
8637    # Note that $ac_compile itself does not contain backslashes and begins
8638    # with a dollar sign (not a hyphen), so the echo should work correctly.
8639    # The option is referenced via a variable to avoid confusing sed.
8640    lt_compile=`echo "$ac_compile" | $SED \
8641    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8642    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8643    -e 's:$: $lt_compiler_flag:'`
8644    (eval echo "\"\$as_me:8644: $lt_compile\"" >&5)
8645    (eval "$lt_compile" 2>conftest.err)
8646    ac_status=$?
8647    cat conftest.err >&5
8648    echo "$as_me:8648: \$? = $ac_status" >&5
8649    if (exit $ac_status) && test -s "$ac_outfile"; then
8650      # The compiler can only warn and ignore the option if not recognized
8651      # So say no if there are warnings other than the usual output.
8652      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8653      $SED '/^$/d' conftest.err >conftest.er2
8654      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8655        lt_cv_prog_compiler_rtti_exceptions=yes
8656      fi
8657    fi
8658    $rm conftest*
8659
8660 fi
8661 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8662 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8663
8664 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8665     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8666 else
8667     :
8668 fi
8669
8670 fi
8671
8672 lt_prog_compiler_wl=
8673 lt_prog_compiler_pic=
8674 lt_prog_compiler_static=
8675
8676 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8677 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8678
8679   if test "$GCC" = yes; then
8680     lt_prog_compiler_wl='-Wl,'
8681     lt_prog_compiler_static='-static'
8682
8683     case $host_os in
8684       aix*)
8685       # All AIX code is PIC.
8686       if test "$host_cpu" = ia64; then
8687         # AIX 5 now supports IA64 processor
8688         lt_prog_compiler_static='-Bstatic'
8689       fi
8690       ;;
8691
8692     amigaos*)
8693       # FIXME: we need at least 68020 code to build shared libraries, but
8694       # adding the `-m68020' flag to GCC prevents building anything better,
8695       # like `-m68040'.
8696       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8697       ;;
8698
8699     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8700       # PIC is the default for these OSes.
8701       ;;
8702
8703     mingw* | pw32* | os2*)
8704       # This hack is so that the source file can tell whether it is being
8705       # built for inclusion in a dll (and should export symbols for example).
8706       lt_prog_compiler_pic='-DDLL_EXPORT'
8707       ;;
8708
8709     darwin* | rhapsody*)
8710       # PIC is the default on this platform
8711       # Common symbols not allowed in MH_DYLIB files
8712       lt_prog_compiler_pic='-fno-common'
8713       ;;
8714
8715     msdosdjgpp*)
8716       # Just because we use GCC doesn't mean we suddenly get shared libraries
8717       # on systems that don't support them.
8718       lt_prog_compiler_can_build_shared=no
8719       enable_shared=no
8720       ;;
8721
8722     sysv4*MP*)
8723       if test -d /usr/nec; then
8724         lt_prog_compiler_pic=-Kconform_pic
8725       fi
8726       ;;
8727
8728     hpux*)
8729       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8730       # not for PA HP-UX.
8731       case "$host_cpu" in
8732       hppa*64*|ia64*)
8733         # +Z the default
8734         ;;
8735       *)
8736         lt_prog_compiler_pic='-fPIC'
8737         ;;
8738       esac
8739       ;;
8740
8741     *)
8742       lt_prog_compiler_pic='-fPIC'
8743       ;;
8744     esac
8745   else
8746     # PORTME Check for flag to pass linker flags through the system compiler.
8747     case $host_os in
8748     aix*)
8749       lt_prog_compiler_wl='-Wl,'
8750       if test "$host_cpu" = ia64; then
8751         # AIX 5 now supports IA64 processor
8752         lt_prog_compiler_static='-Bstatic'
8753       else
8754         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8755       fi
8756       ;;
8757       darwin*)
8758         # PIC is the default on this platform
8759         # Common symbols not allowed in MH_DYLIB files
8760        case $cc_basename in
8761          xlc*)
8762          lt_prog_compiler_pic='-qnocommon'
8763          lt_prog_compiler_wl='-Wl,'
8764          ;;
8765        esac
8766        ;;
8767
8768     mingw* | pw32* | os2*)
8769       # This hack is so that the source file can tell whether it is being
8770       # built for inclusion in a dll (and should export symbols for example).
8771       lt_prog_compiler_pic='-DDLL_EXPORT'
8772       ;;
8773
8774     hpux9* | hpux10* | hpux11*)
8775       lt_prog_compiler_wl='-Wl,'
8776       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8777       # not for PA HP-UX.
8778       case "$host_cpu" in
8779       hppa*64*|ia64*)
8780         # +Z the default
8781         ;;
8782       *)
8783         lt_prog_compiler_pic='+Z'
8784         ;;
8785       esac
8786       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8787       lt_prog_compiler_static='${wl}-a ${wl}archive'
8788       ;;
8789
8790     irix5* | irix6* | nonstopux*)
8791       lt_prog_compiler_wl='-Wl,'
8792       # PIC (with -KPIC) is the default.
8793       lt_prog_compiler_static='-non_shared'
8794       ;;
8795
8796     newsos6)
8797       lt_prog_compiler_pic='-KPIC'
8798       lt_prog_compiler_static='-Bstatic'
8799       ;;
8800
8801     linux*)
8802       case $cc_basename in
8803       icc* | ecc*)
8804         lt_prog_compiler_wl='-Wl,'
8805         lt_prog_compiler_pic='-KPIC'
8806         lt_prog_compiler_static='-static'
8807         ;;
8808       pgcc* | pgf77* | pgf90*)
8809         # Portland Group compilers (*not* the Pentium gcc compiler,
8810         # which looks to be a dead project)
8811         lt_prog_compiler_wl='-Wl,'
8812         lt_prog_compiler_pic='-fpic'
8813         lt_prog_compiler_static='-static'
8814         ;;
8815       ccc*)
8816         lt_prog_compiler_wl='-Wl,'
8817         # All Alpha code is PIC.
8818         lt_prog_compiler_static='-non_shared'
8819         ;;
8820       esac
8821       ;;
8822
8823     osf3* | osf4* | osf5*)
8824       lt_prog_compiler_wl='-Wl,'
8825       # All OSF/1 code is PIC.
8826       lt_prog_compiler_static='-non_shared'
8827       ;;
8828
8829     sco3.2v5*)
8830       lt_prog_compiler_pic='-Kpic'
8831       lt_prog_compiler_static='-dn'
8832       ;;
8833
8834     solaris*)
8835       lt_prog_compiler_pic='-KPIC'
8836       lt_prog_compiler_static='-Bstatic'
8837       case $cc_basename in
8838       f77* | f90* | f95*)
8839         lt_prog_compiler_wl='-Qoption ld ';;
8840       *)
8841         lt_prog_compiler_wl='-Wl,';;
8842       esac
8843       ;;
8844
8845     sunos4*)
8846       lt_prog_compiler_wl='-Qoption ld '
8847       lt_prog_compiler_pic='-PIC'
8848       lt_prog_compiler_static='-Bstatic'
8849       ;;
8850
8851     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8852       lt_prog_compiler_wl='-Wl,'
8853       lt_prog_compiler_pic='-KPIC'
8854       lt_prog_compiler_static='-Bstatic'
8855       ;;
8856
8857     sysv4*MP*)
8858       if test -d /usr/nec ;then
8859         lt_prog_compiler_pic='-Kconform_pic'
8860         lt_prog_compiler_static='-Bstatic'
8861       fi
8862       ;;
8863
8864     unicos*)
8865       lt_prog_compiler_wl='-Wl,'
8866       lt_prog_compiler_can_build_shared=no
8867       ;;
8868
8869     uts4*)
8870       lt_prog_compiler_pic='-pic'
8871       lt_prog_compiler_static='-Bstatic'
8872       ;;
8873
8874     *)
8875       lt_prog_compiler_can_build_shared=no
8876       ;;
8877     esac
8878   fi
8879
8880 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8881 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8882
8883 #
8884 # Check to make sure the PIC flag actually works.
8885 #
8886 if test -n "$lt_prog_compiler_pic"; then
8887
8888 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8889 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8890 if test "${lt_prog_compiler_pic_works+set}" = set; then
8891   echo $ECHO_N "(cached) $ECHO_C" >&6
8892 else
8893   lt_prog_compiler_pic_works=no
8894   ac_outfile=conftest.$ac_objext
8895    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8896    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8897    # Insert the option either (1) after the last *FLAGS variable, or
8898    # (2) before a word containing "conftest.", or (3) at the end.
8899    # Note that $ac_compile itself does not contain backslashes and begins
8900    # with a dollar sign (not a hyphen), so the echo should work correctly.
8901    # The option is referenced via a variable to avoid confusing sed.
8902    lt_compile=`echo "$ac_compile" | $SED \
8903    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8904    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8905    -e 's:$: $lt_compiler_flag:'`
8906    (eval echo "\"\$as_me:8906: $lt_compile\"" >&5)
8907    (eval "$lt_compile" 2>conftest.err)
8908    ac_status=$?
8909    cat conftest.err >&5
8910    echo "$as_me:8910: \$? = $ac_status" >&5
8911    if (exit $ac_status) && test -s "$ac_outfile"; then
8912      # The compiler can only warn and ignore the option if not recognized
8913      # So say no if there are warnings other than the usual output.
8914      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8915      $SED '/^$/d' conftest.err >conftest.er2
8916      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8917        lt_prog_compiler_pic_works=yes
8918      fi
8919    fi
8920    $rm conftest*
8921
8922 fi
8923 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8924 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8925
8926 if test x"$lt_prog_compiler_pic_works" = xyes; then
8927     case $lt_prog_compiler_pic in
8928      "" | " "*) ;;
8929      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8930      esac
8931 else
8932     lt_prog_compiler_pic=
8933      lt_prog_compiler_can_build_shared=no
8934 fi
8935
8936 fi
8937 case "$host_os" in
8938   # For platforms which do not support PIC, -DPIC is meaningless:
8939   *djgpp*)
8940     lt_prog_compiler_pic=
8941     ;;
8942   *)
8943     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8944     ;;
8945 esac
8946
8947 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8948 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8949 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8950   echo $ECHO_N "(cached) $ECHO_C" >&6
8951 else
8952   lt_cv_prog_compiler_c_o=no
8953    $rm -r conftest 2>/dev/null
8954    mkdir conftest
8955    cd conftest
8956    mkdir out
8957    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8958
8959    lt_compiler_flag="-o out/conftest2.$ac_objext"
8960    # Insert the option either (1) after the last *FLAGS variable, or
8961    # (2) before a word containing "conftest.", or (3) at the end.
8962    # Note that $ac_compile itself does not contain backslashes and begins
8963    # with a dollar sign (not a hyphen), so the echo should work correctly.
8964    lt_compile=`echo "$ac_compile" | $SED \
8965    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8966    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8967    -e 's:$: $lt_compiler_flag:'`
8968    (eval echo "\"\$as_me:8968: $lt_compile\"" >&5)
8969    (eval "$lt_compile" 2>out/conftest.err)
8970    ac_status=$?
8971    cat out/conftest.err >&5
8972    echo "$as_me:8972: \$? = $ac_status" >&5
8973    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8974    then
8975      # The compiler can only warn and ignore the option if not recognized
8976      # So say no if there are warnings
8977      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8978      $SED '/^$/d' out/conftest.err >out/conftest.er2
8979      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8980        lt_cv_prog_compiler_c_o=yes
8981      fi
8982    fi
8983    chmod u+w .
8984    $rm conftest*
8985    # SGI C++ compiler will create directory out/ii_files/ for
8986    # template instantiation
8987    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8988    $rm out/* && rmdir out
8989    cd ..
8990    rmdir conftest
8991    $rm conftest*
8992
8993 fi
8994 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8995 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8996
8997
8998 hard_links="nottested"
8999 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9000   # do not overwrite the value of need_locks provided by the user
9001   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9002 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9003   hard_links=yes
9004   $rm conftest*
9005   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9006   touch conftest.a
9007   ln conftest.a conftest.b 2>&5 || hard_links=no
9008   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9009   echo "$as_me:$LINENO: result: $hard_links" >&5
9010 echo "${ECHO_T}$hard_links" >&6
9011   if test "$hard_links" = no; then
9012     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9013 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9014     need_locks=warn
9015   fi
9016 else
9017   need_locks=no
9018 fi
9019
9020 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9021 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9022
9023   runpath_var=
9024   allow_undefined_flag=
9025   enable_shared_with_static_runtimes=no
9026   archive_cmds=
9027   archive_expsym_cmds=
9028   old_archive_From_new_cmds=
9029   old_archive_from_expsyms_cmds=
9030   export_dynamic_flag_spec=
9031   whole_archive_flag_spec=
9032   thread_safe_flag_spec=
9033   hardcode_libdir_flag_spec=
9034   hardcode_libdir_flag_spec_ld=
9035   hardcode_libdir_separator=
9036   hardcode_direct=no
9037   hardcode_minus_L=no
9038   hardcode_shlibpath_var=unsupported
9039   link_all_deplibs=unknown
9040   hardcode_automatic=no
9041   module_cmds=
9042   module_expsym_cmds=
9043   always_export_symbols=no
9044   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9045   # include_expsyms should be a list of space-separated symbols to be *always*
9046   # included in the symbol list
9047   include_expsyms=
9048   # exclude_expsyms can be an extended regexp of symbols to exclude
9049   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9050   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9051   # as well as any symbol that contains `d'.
9052   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9053   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9054   # platforms (ab)use it in PIC code, but their linkers get confused if
9055   # the symbol is explicitly referenced.  Since portable code cannot
9056   # rely on this symbol name, it's probably fine to never include it in
9057   # preloaded symbol tables.
9058   extract_expsyms_cmds=
9059   # Just being paranoid about ensuring that cc_basename is set.
9060   for cc_temp in $compiler""; do
9061   case $cc_temp in
9062     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9063     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9064     \-*) ;;
9065     *) break;;
9066   esac
9067 done
9068 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9069
9070   case $host_os in
9071   cygwin* | mingw* | pw32*)
9072     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9073     # When not using gcc, we currently assume that we are using
9074     # Microsoft Visual C++.
9075     if test "$GCC" != yes; then
9076       with_gnu_ld=no
9077     fi
9078     ;;
9079   openbsd*)
9080     with_gnu_ld=no
9081     ;;
9082   esac
9083
9084   ld_shlibs=yes
9085   if test "$with_gnu_ld" = yes; then
9086     # If archive_cmds runs LD, not CC, wlarc should be empty
9087     wlarc='${wl}'
9088
9089     # Set some defaults for GNU ld with shared library support. These
9090     # are reset later if shared libraries are not supported. Putting them
9091     # here allows them to be overridden if necessary.
9092     runpath_var=LD_RUN_PATH
9093     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9094     export_dynamic_flag_spec='${wl}--export-dynamic'
9095     # ancient GNU ld didn't support --whole-archive et. al.
9096     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9097         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9098       else
9099         whole_archive_flag_spec=
9100     fi
9101     supports_anon_versioning=no
9102     case `$LD -v 2>/dev/null` in
9103       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9104       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9105       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9106       *\ 2.11.*) ;; # other 2.11 versions
9107       *) supports_anon_versioning=yes ;;
9108     esac
9109
9110     # See if GNU ld supports shared libraries.
9111     case $host_os in
9112     aix3* | aix4* | aix5*)
9113       # On AIX/PPC, the GNU linker is very broken
9114       if test "$host_cpu" != ia64; then
9115         ld_shlibs=no
9116         cat <<EOF 1>&2
9117
9118 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9119 *** to be unable to reliably create shared libraries on AIX.
9120 *** Therefore, libtool is disabling shared libraries support.  If you
9121 *** really care for shared libraries, you may want to modify your PATH
9122 *** so that a non-GNU linker is found, and then restart.
9123
9124 EOF
9125       fi
9126       ;;
9127
9128     amigaos*)
9129       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)'
9130       hardcode_libdir_flag_spec='-L$libdir'
9131       hardcode_minus_L=yes
9132
9133       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9134       # that the semantics of dynamic libraries on AmigaOS, at least up
9135       # to version 4, is to share data among multiple programs linked
9136       # with the same dynamic library.  Since this doesn't match the
9137       # behavior of shared libraries on other platforms, we can't use
9138       # them.
9139       ld_shlibs=no
9140       ;;
9141
9142     beos*)
9143       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9144         allow_undefined_flag=unsupported
9145         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9146         # support --undefined.  This deserves some investigation.  FIXME
9147         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9148       else
9149         ld_shlibs=no
9150       fi
9151       ;;
9152
9153     cygwin* | mingw* | pw32*)
9154       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9155       # as there is no search path for DLLs.
9156       hardcode_libdir_flag_spec='-L$libdir'
9157       allow_undefined_flag=unsupported
9158       always_export_symbols=no
9159       enable_shared_with_static_runtimes=yes
9160       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9161
9162       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9163         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9164         # If the export-symbols file already is a .def file (1st line
9165         # is EXPORTS), use it as is; otherwise, prepend...
9166         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9167           cp $export_symbols $output_objdir/$soname.def;
9168         else
9169           echo EXPORTS > $output_objdir/$soname.def;
9170           cat $export_symbols >> $output_objdir/$soname.def;
9171         fi~
9172         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9173       else
9174         ld_shlibs=no
9175       fi
9176       ;;
9177
9178     linux*)
9179       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9180         tmp_addflag=
9181         case $cc_basename,$host_cpu in
9182         pgcc*)                          # Portland Group C compiler
9183           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'
9184           tmp_addflag=' $pic_flag'
9185           ;;
9186         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
9187           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'
9188           tmp_addflag=' $pic_flag -Mnomain' ;;
9189         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9190           tmp_addflag=' -i_dynamic' ;;
9191         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9192           tmp_addflag=' -i_dynamic -nofor_main' ;;
9193         ifc* | ifort*)                  # Intel Fortran compiler
9194           tmp_addflag=' -nofor_main' ;;
9195         esac
9196         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9197
9198         if test $supports_anon_versioning = yes; then
9199           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9200   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9201   $echo "local: *; };" >> $output_objdir/$libname.ver~
9202           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9203         fi
9204       else
9205         ld_shlibs=no
9206       fi
9207       ;;
9208
9209     netbsd*)
9210       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9211         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9212         wlarc=
9213       else
9214         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9215         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9216       fi
9217       ;;
9218
9219     solaris* | sysv5*)
9220       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9221         ld_shlibs=no
9222         cat <<EOF 1>&2
9223
9224 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9225 *** create shared libraries on Solaris systems.  Therefore, libtool
9226 *** is disabling shared libraries support.  We urge you to upgrade GNU
9227 *** binutils to release 2.9.1 or newer.  Another option is to modify
9228 *** your PATH or compiler configuration so that the native linker is
9229 *** used, and then restart.
9230
9231 EOF
9232       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9233         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9234         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9235       else
9236         ld_shlibs=no
9237       fi
9238       ;;
9239
9240     sunos4*)
9241       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9242       wlarc=
9243       hardcode_direct=yes
9244       hardcode_shlibpath_var=no
9245       ;;
9246
9247     *)
9248       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9249         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9250         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9251       else
9252         ld_shlibs=no
9253       fi
9254       ;;
9255     esac
9256
9257     if test "$ld_shlibs" = no; then
9258       runpath_var=
9259       hardcode_libdir_flag_spec=
9260       export_dynamic_flag_spec=
9261       whole_archive_flag_spec=
9262     fi
9263   else
9264     # PORTME fill in a description of your system's linker (not GNU ld)
9265     case $host_os in
9266     aix3*)
9267       allow_undefined_flag=unsupported
9268       always_export_symbols=yes
9269       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'
9270       # Note: this linker hardcodes the directories in LIBPATH if there
9271       # are no directories specified by -L.
9272       hardcode_minus_L=yes
9273       if test "$GCC" = yes && test -z "$link_static_flag"; then
9274         # Neither direct hardcoding nor static linking is supported with a
9275         # broken collect2.
9276         hardcode_direct=unsupported
9277       fi
9278       ;;
9279
9280     aix4* | aix5*)
9281       if test "$host_cpu" = ia64; then
9282         # On IA64, the linker does run time linking by default, so we don't
9283         # have to do anything special.
9284         aix_use_runtimelinking=no
9285         exp_sym_flag='-Bexport'
9286         no_entry_flag=""
9287       else
9288         # If we're using GNU nm, then we don't want the "-C" option.
9289         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9290         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9291           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'
9292         else
9293           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'
9294         fi
9295         aix_use_runtimelinking=no
9296
9297         # Test if we are trying to use run time linking or normal
9298         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9299         # need to do runtime linking.
9300         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9301           for ld_flag in $LDFLAGS; do
9302           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9303             aix_use_runtimelinking=yes
9304             break
9305           fi
9306           done
9307         esac
9308
9309         exp_sym_flag='-bexport'
9310         no_entry_flag='-bnoentry'
9311       fi
9312
9313       # When large executables or shared objects are built, AIX ld can
9314       # have problems creating the table of contents.  If linking a library
9315       # or program results in "error TOC overflow" add -mminimal-toc to
9316       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9317       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9318
9319       archive_cmds=''
9320       hardcode_direct=yes
9321       hardcode_libdir_separator=':'
9322       link_all_deplibs=yes
9323
9324       if test "$GCC" = yes; then
9325         case $host_os in aix4.[012]|aix4.[012].*)
9326         # We only want to do this on AIX 4.2 and lower, the check
9327         # below for broken collect2 doesn't work under 4.3+
9328           collect2name=`${CC} -print-prog-name=collect2`
9329           if test -f "$collect2name" && \
9330            strings "$collect2name" | grep resolve_lib_name >/dev/null
9331           then
9332           # We have reworked collect2
9333           hardcode_direct=yes
9334           else
9335           # We have old collect2
9336           hardcode_direct=unsupported
9337           # It fails to find uninstalled libraries when the uninstalled
9338           # path is not listed in the libpath.  Setting hardcode_minus_L
9339           # to unsupported forces relinking
9340           hardcode_minus_L=yes
9341           hardcode_libdir_flag_spec='-L$libdir'
9342           hardcode_libdir_separator=
9343           fi
9344         esac
9345         shared_flag='-shared'
9346         if test "$aix_use_runtimelinking" = yes; then
9347           shared_flag="$shared_flag "'${wl}-G'
9348         fi
9349       else
9350         # not using gcc
9351         if test "$host_cpu" = ia64; then
9352         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9353         # chokes on -Wl,-G. The following line is correct:
9354           shared_flag='-G'
9355         else
9356         if test "$aix_use_runtimelinking" = yes; then
9357             shared_flag='${wl}-G'
9358           else
9359             shared_flag='${wl}-bM:SRE'
9360         fi
9361         fi
9362       fi
9363
9364       # It seems that -bexpall does not export symbols beginning with
9365       # underscore (_), so it is better to generate a list of symbols to export.
9366       always_export_symbols=yes
9367       if test "$aix_use_runtimelinking" = yes; then
9368         # Warning - without using the other runtime loading flags (-brtl),
9369         # -berok will link without error, but may produce a broken library.
9370         allow_undefined_flag='-berok'
9371        # Determine the default libpath from the value encoded in an empty executable.
9372        cat >conftest.$ac_ext <<_ACEOF
9373 /* confdefs.h.  */
9374 _ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h.  */
9378
9379 int
9380 main ()
9381 {
9382
9383   ;
9384   return 0;
9385 }
9386 _ACEOF
9387 rm -f conftest.$ac_objext conftest$ac_exeext
9388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9389   (eval $ac_link) 2>conftest.er1
9390   ac_status=$?
9391   grep -v '^ *+' conftest.er1 >conftest.err
9392   rm -f conftest.er1
9393   cat conftest.err >&5
9394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395   (exit $ac_status); } &&
9396          { ac_try='test -z "$ac_c_werror_flag"
9397                          || test ! -s conftest.err'
9398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399   (eval $ac_try) 2>&5
9400   ac_status=$?
9401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402   (exit $ac_status); }; } &&
9403          { ac_try='test -s conftest$ac_exeext'
9404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405   (eval $ac_try) 2>&5
9406   ac_status=$?
9407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408   (exit $ac_status); }; }; then
9409
9410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9411 }'`
9412 # Check for a 64-bit object if we didn't find anything.
9413 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; }
9414 }'`; fi
9415 else
9416   echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9418
9419 fi
9420 rm -f conftest.err conftest.$ac_objext \
9421       conftest$ac_exeext conftest.$ac_ext
9422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9423
9424        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9425         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"
9426        else
9427         if test "$host_cpu" = ia64; then
9428           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9429           allow_undefined_flag="-z nodefs"
9430           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"
9431         else
9432          # Determine the default libpath from the value encoded in an empty executable.
9433          cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h.  */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h.  */
9439
9440 int
9441 main ()
9442 {
9443
9444   ;
9445   return 0;
9446 }
9447 _ACEOF
9448 rm -f conftest.$ac_objext conftest$ac_exeext
9449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9450   (eval $ac_link) 2>conftest.er1
9451   ac_status=$?
9452   grep -v '^ *+' conftest.er1 >conftest.err
9453   rm -f conftest.er1
9454   cat conftest.err >&5
9455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456   (exit $ac_status); } &&
9457          { ac_try='test -z "$ac_c_werror_flag"
9458                          || test ! -s conftest.err'
9459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460   (eval $ac_try) 2>&5
9461   ac_status=$?
9462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463   (exit $ac_status); }; } &&
9464          { ac_try='test -s conftest$ac_exeext'
9465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466   (eval $ac_try) 2>&5
9467   ac_status=$?
9468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469   (exit $ac_status); }; }; then
9470
9471 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9472 }'`
9473 # Check for a 64-bit object if we didn't find anything.
9474 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; }
9475 }'`; fi
9476 else
9477   echo "$as_me: failed program was:" >&5
9478 sed 's/^/| /' conftest.$ac_ext >&5
9479
9480 fi
9481 rm -f conftest.err conftest.$ac_objext \
9482       conftest$ac_exeext conftest.$ac_ext
9483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9484
9485          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9486           # Warning - without using the other run time loading flags,
9487           # -berok will link without error, but may produce a broken library.
9488           no_undefined_flag=' ${wl}-bernotok'
9489           allow_undefined_flag=' ${wl}-berok'
9490           # -bexpall does not export symbols beginning with underscore (_)
9491           always_export_symbols=yes
9492           # Exported symbols can be pulled into shared objects from archives
9493           whole_archive_flag_spec=' '
9494           archive_cmds_need_lc=yes
9495           # This is similar to how AIX traditionally builds it's shared libraries.
9496           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'
9497         fi
9498       fi
9499       ;;
9500
9501     amigaos*)
9502       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)'
9503       hardcode_libdir_flag_spec='-L$libdir'
9504       hardcode_minus_L=yes
9505       # see comment about different semantics on the GNU ld section
9506       ld_shlibs=no
9507       ;;
9508
9509     bsdi[45]*)
9510       export_dynamic_flag_spec=-rdynamic
9511       ;;
9512
9513     cygwin* | mingw* | pw32*)
9514       # When not using gcc, we currently assume that we are using
9515       # Microsoft Visual C++.
9516       # hardcode_libdir_flag_spec is actually meaningless, as there is
9517       # no search path for DLLs.
9518       hardcode_libdir_flag_spec=' '
9519       allow_undefined_flag=unsupported
9520       # Tell ltmain to make .lib files, not .a files.
9521       libext=lib
9522       # Tell ltmain to make .dll files, not .so files.
9523       shrext_cmds=".dll"
9524       # FIXME: Setting linknames here is a bad hack.
9525       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9526       # The linker will automatically build a .lib file if we build a DLL.
9527       old_archive_From_new_cmds='true'
9528       # FIXME: Should let the user specify the lib program.
9529       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9530       fix_srcfile_path='`cygpath -w "$srcfile"`'
9531       enable_shared_with_static_runtimes=yes
9532       ;;
9533
9534     darwin* | rhapsody*)
9535       case "$host_os" in
9536         rhapsody* | darwin1.[012])
9537          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9538          ;;
9539        *) # Darwin 1.3 on
9540          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9541            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9542          else
9543            case ${MACOSX_DEPLOYMENT_TARGET} in
9544              10.[012])
9545                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9546                ;;
9547              10.*)
9548                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9549                ;;
9550            esac
9551          fi
9552          ;;
9553       esac
9554       archive_cmds_need_lc=no
9555       hardcode_direct=no
9556       hardcode_automatic=yes
9557       hardcode_shlibpath_var=unsupported
9558       whole_archive_flag_spec=''
9559       link_all_deplibs=yes
9560     if test "$GCC" = yes ; then
9561         output_verbose_link_cmd='echo'
9562         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9563       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9564       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9565       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}'
9566       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}'
9567     else
9568       case $cc_basename in
9569         xlc*)
9570          output_verbose_link_cmd='echo'
9571          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9572          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9573           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9574          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}'
9575           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}'
9576           ;;
9577        *)
9578          ld_shlibs=no
9579           ;;
9580       esac
9581     fi
9582       ;;
9583
9584     dgux*)
9585       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9586       hardcode_libdir_flag_spec='-L$libdir'
9587       hardcode_shlibpath_var=no
9588       ;;
9589
9590     freebsd1*)
9591       ld_shlibs=no
9592       ;;
9593
9594     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9595     # support.  Future versions do this automatically, but an explicit c++rt0.o
9596     # does not break anything, and helps significantly (at the cost of a little
9597     # extra space).
9598     freebsd2.2*)
9599       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9600       hardcode_libdir_flag_spec='-R$libdir'
9601       hardcode_direct=yes
9602       hardcode_shlibpath_var=no
9603       ;;
9604
9605     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9606     freebsd2*)
9607       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9608       hardcode_direct=yes
9609       hardcode_minus_L=yes
9610       hardcode_shlibpath_var=no
9611       ;;
9612
9613     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9614     freebsd* | kfreebsd*-gnu | dragonfly*)
9615       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9616       hardcode_libdir_flag_spec='-R$libdir'
9617       hardcode_direct=yes
9618       hardcode_shlibpath_var=no
9619       ;;
9620
9621     hpux9*)
9622       if test "$GCC" = yes; then
9623         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'
9624       else
9625         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'
9626       fi
9627       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9628       hardcode_libdir_separator=:
9629       hardcode_direct=yes
9630
9631       # hardcode_minus_L: Not really in the search PATH,
9632       # but as the default location of the library.
9633       hardcode_minus_L=yes
9634       export_dynamic_flag_spec='${wl}-E'
9635       ;;
9636
9637     hpux10* | hpux11*)
9638       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9639         case "$host_cpu" in
9640         hppa*64*|ia64*)
9641           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9642           ;;
9643         *)
9644           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9645           ;;
9646         esac
9647       else
9648         case "$host_cpu" in
9649         hppa*64*|ia64*)
9650           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9651           ;;
9652         *)
9653           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9654           ;;
9655         esac
9656       fi
9657       if test "$with_gnu_ld" = no; then
9658         case "$host_cpu" in
9659         hppa*64*)
9660           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9661           hardcode_libdir_flag_spec_ld='+b $libdir'
9662           hardcode_libdir_separator=:
9663           hardcode_direct=no
9664           hardcode_shlibpath_var=no
9665           ;;
9666         ia64*)
9667           hardcode_libdir_flag_spec='-L$libdir'
9668           hardcode_direct=no
9669           hardcode_shlibpath_var=no
9670
9671           # hardcode_minus_L: Not really in the search PATH,
9672           # but as the default location of the library.
9673           hardcode_minus_L=yes
9674           ;;
9675         *)
9676           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9677           hardcode_libdir_separator=:
9678           hardcode_direct=yes
9679           export_dynamic_flag_spec='${wl}-E'
9680
9681           # hardcode_minus_L: Not really in the search PATH,
9682           # but as the default location of the library.
9683           hardcode_minus_L=yes
9684           ;;
9685         esac
9686       fi
9687       ;;
9688
9689     irix5* | irix6* | nonstopux*)
9690       if test "$GCC" = yes; then
9691         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'
9692       else
9693         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'
9694         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9695       fi
9696       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9697       hardcode_libdir_separator=:
9698       link_all_deplibs=yes
9699       ;;
9700
9701     netbsd*)
9702       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9703         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9704       else
9705         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9706       fi
9707       hardcode_libdir_flag_spec='-R$libdir'
9708       hardcode_direct=yes
9709       hardcode_shlibpath_var=no
9710       ;;
9711
9712     newsos6)
9713       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9714       hardcode_direct=yes
9715       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9716       hardcode_libdir_separator=:
9717       hardcode_shlibpath_var=no
9718       ;;
9719
9720     openbsd*)
9721       hardcode_direct=yes
9722       hardcode_shlibpath_var=no
9723       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9724         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9725         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9726         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9727         export_dynamic_flag_spec='${wl}-E'
9728       else
9729        case $host_os in
9730          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9731            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9732            hardcode_libdir_flag_spec='-R$libdir'
9733            ;;
9734          *)
9735            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9736            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9737            ;;
9738        esac
9739       fi
9740       ;;
9741
9742     os2*)
9743       hardcode_libdir_flag_spec='-L$libdir'
9744       hardcode_minus_L=yes
9745       allow_undefined_flag=unsupported
9746       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'
9747       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9748       ;;
9749
9750     osf3*)
9751       if test "$GCC" = yes; then
9752         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9753         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'
9754       else
9755         allow_undefined_flag=' -expect_unresolved \*'
9756         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'
9757       fi
9758       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9759       hardcode_libdir_separator=:
9760       ;;
9761
9762     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9763       if test "$GCC" = yes; then
9764         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9765         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'
9766         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9767       else
9768         allow_undefined_flag=' -expect_unresolved \*'
9769         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'
9770         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9771         $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'
9772
9773         # Both c and cxx compiler support -rpath directly
9774         hardcode_libdir_flag_spec='-rpath $libdir'
9775       fi
9776       hardcode_libdir_separator=:
9777       ;;
9778
9779     sco3.2v5*)
9780       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9781       hardcode_shlibpath_var=no
9782       export_dynamic_flag_spec='${wl}-Bexport'
9783       runpath_var=LD_RUN_PATH
9784       hardcode_runpath_var=yes
9785       ;;
9786
9787     solaris*)
9788       no_undefined_flag=' -z text'
9789       if test "$GCC" = yes; then
9790         wlarc='${wl}'
9791         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9792         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9793           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9794       else
9795         wlarc=''
9796         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9797         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9798         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9799       fi
9800       hardcode_libdir_flag_spec='-R$libdir'
9801       hardcode_shlibpath_var=no
9802       case $host_os in
9803       solaris2.[0-5] | solaris2.[0-5].*) ;;
9804       *)
9805         # The compiler driver will combine linker options so we
9806         # cannot just pass the convience library names through
9807         # without $wl, iff we do not link with $LD.
9808         # Luckily, gcc supports the same syntax we need for Sun Studio.
9809         # Supported since Solaris 2.6 (maybe 2.5.1?)
9810         case $wlarc in
9811         '')
9812           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9813         *)
9814           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' ;;
9815         esac ;;
9816       esac
9817       link_all_deplibs=yes
9818       ;;
9819
9820     sunos4*)
9821       if test "x$host_vendor" = xsequent; then
9822         # Use $CC to link under sequent, because it throws in some extra .o
9823         # files that make .init and .fini sections work.
9824         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9825       else
9826         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9827       fi
9828       hardcode_libdir_flag_spec='-L$libdir'
9829       hardcode_direct=yes
9830       hardcode_minus_L=yes
9831       hardcode_shlibpath_var=no
9832       ;;
9833
9834     sysv4)
9835       case $host_vendor in
9836         sni)
9837           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9838           hardcode_direct=yes # is this really true???
9839         ;;
9840         siemens)
9841           ## LD is ld it makes a PLAMLIB
9842           ## CC just makes a GrossModule.
9843           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9844           reload_cmds='$CC -r -o $output$reload_objs'
9845           hardcode_direct=no
9846         ;;
9847         motorola)
9848           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9849           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9850         ;;
9851       esac
9852       runpath_var='LD_RUN_PATH'
9853       hardcode_shlibpath_var=no
9854       ;;
9855
9856     sysv4.3*)
9857       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9858       hardcode_shlibpath_var=no
9859       export_dynamic_flag_spec='-Bexport'
9860       ;;
9861
9862     sysv4*MP*)
9863       if test -d /usr/nec; then
9864         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9865         hardcode_shlibpath_var=no
9866         runpath_var=LD_RUN_PATH
9867         hardcode_runpath_var=yes
9868         ld_shlibs=yes
9869       fi
9870       ;;
9871
9872     sysv4.2uw2*)
9873       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9874       hardcode_direct=yes
9875       hardcode_minus_L=no
9876       hardcode_shlibpath_var=no
9877       hardcode_runpath_var=yes
9878       runpath_var=LD_RUN_PATH
9879       ;;
9880
9881    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9882       no_undefined_flag='${wl}-z ${wl}text'
9883       if test "$GCC" = yes; then
9884         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9885       else
9886         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9887       fi
9888       runpath_var='LD_RUN_PATH'
9889       hardcode_shlibpath_var=no
9890       ;;
9891
9892     sysv5*)
9893       no_undefined_flag=' -z text'
9894       # $CC -shared without GNU ld will not create a library from C++
9895       # object files and a static libstdc++, better avoid it by now
9896       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9897       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9898                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9899       hardcode_libdir_flag_spec=
9900       hardcode_shlibpath_var=no
9901       runpath_var='LD_RUN_PATH'
9902       ;;
9903
9904     uts4*)
9905       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9906       hardcode_libdir_flag_spec='-L$libdir'
9907       hardcode_shlibpath_var=no
9908       ;;
9909
9910     *)
9911       ld_shlibs=no
9912       ;;
9913     esac
9914   fi
9915
9916 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9917 echo "${ECHO_T}$ld_shlibs" >&6
9918 test "$ld_shlibs" = no && can_build_shared=no
9919
9920 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9921 if test "$GCC" = yes; then
9922   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9923 fi
9924
9925 #
9926 # Do we need to explicitly link libc?
9927 #
9928 case "x$archive_cmds_need_lc" in
9929 x|xyes)
9930   # Assume -lc should be added
9931   archive_cmds_need_lc=yes
9932
9933   if test "$enable_shared" = yes && test "$GCC" = yes; then
9934     case $archive_cmds in
9935     *'~'*)
9936       # FIXME: we may have to deal with multi-command sequences.
9937       ;;
9938     '$CC '*)
9939       # Test whether the compiler implicitly links with -lc since on some
9940       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9941       # to ld, don't add -lc before -lgcc.
9942       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9943 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9944       $rm conftest*
9945       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9946
9947       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9948   (eval $ac_compile) 2>&5
9949   ac_status=$?
9950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951   (exit $ac_status); } 2>conftest.err; then
9952         soname=conftest
9953         lib=conftest
9954         libobjs=conftest.$ac_objext
9955         deplibs=
9956         wl=$lt_prog_compiler_wl
9957         compiler_flags=-v
9958         linker_flags=-v
9959         verstring=
9960         output_objdir=.
9961         libname=conftest
9962         lt_save_allow_undefined_flag=$allow_undefined_flag
9963         allow_undefined_flag=
9964         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9965   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9966   ac_status=$?
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); }
9969         then
9970           archive_cmds_need_lc=no
9971         else
9972           archive_cmds_need_lc=yes
9973         fi
9974         allow_undefined_flag=$lt_save_allow_undefined_flag
9975       else
9976         cat conftest.err 1>&5
9977       fi
9978       $rm conftest*
9979       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9980 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9981       ;;
9982     esac
9983   fi
9984   ;;
9985 esac
9986
9987 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9988 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9989 library_names_spec=
9990 libname_spec='lib$name'
9991 soname_spec=
9992 shrext_cmds=".so"
9993 postinstall_cmds=
9994 postuninstall_cmds=
9995 finish_cmds=
9996 finish_eval=
9997 shlibpath_var=
9998 shlibpath_overrides_runpath=unknown
9999 version_type=none
10000 dynamic_linker="$host_os ld.so"
10001 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10002 if test "$GCC" = yes; then
10003   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10004   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10005     # if the path contains ";" then we assume it to be the separator
10006     # otherwise default to the standard path separator (i.e. ":") - it is
10007     # assumed that no part of a normal pathname contains ";" but that should
10008     # okay in the real world where ";" in dirpaths is itself problematic.
10009     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10010   else
10011     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10012   fi
10013 else
10014   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10015 fi
10016 need_lib_prefix=unknown
10017 hardcode_into_libs=no
10018
10019 # when you set need_version to no, make sure it does not cause -set_version
10020 # flags to be left without arguments
10021 need_version=unknown
10022
10023 case $host_os in
10024 aix3*)
10025   version_type=linux
10026   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10027   shlibpath_var=LIBPATH
10028
10029   # AIX 3 has no versioning support, so we append a major version to the name.
10030   soname_spec='${libname}${release}${shared_ext}$major'
10031   ;;
10032
10033 aix4* | aix5*)
10034   version_type=linux
10035   need_lib_prefix=no
10036   need_version=no
10037   hardcode_into_libs=yes
10038   if test "$host_cpu" = ia64; then
10039     # AIX 5 supports IA64
10040     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10041     shlibpath_var=LD_LIBRARY_PATH
10042   else
10043     # With GCC up to 2.95.x, collect2 would create an import file
10044     # for dependence libraries.  The import file would start with
10045     # the line `#! .'.  This would cause the generated library to
10046     # depend on `.', always an invalid library.  This was fixed in
10047     # development snapshots of GCC prior to 3.0.
10048     case $host_os in
10049       aix4 | aix4.[01] | aix4.[01].*)
10050       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10051            echo ' yes '
10052            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10053         :
10054       else
10055         can_build_shared=no
10056       fi
10057       ;;
10058     esac
10059     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10060     # soname into executable. Probably we can add versioning support to
10061     # collect2, so additional links can be useful in future.
10062     if test "$aix_use_runtimelinking" = yes; then
10063       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10064       # instead of lib<name>.a to let people know that these are not
10065       # typical AIX shared libraries.
10066       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10067     else
10068       # We preserve .a as extension for shared libraries through AIX4.2
10069       # and later when we are not doing run time linking.
10070       library_names_spec='${libname}${release}.a $libname.a'
10071       soname_spec='${libname}${release}${shared_ext}$major'
10072     fi
10073     shlibpath_var=LIBPATH
10074   fi
10075   ;;
10076
10077 amigaos*)
10078   library_names_spec='$libname.ixlibrary $libname.a'
10079   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10080   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'
10081   ;;
10082
10083 beos*)
10084   library_names_spec='${libname}${shared_ext}'
10085   dynamic_linker="$host_os ld.so"
10086   shlibpath_var=LIBRARY_PATH
10087   ;;
10088
10089 bsdi[45]*)
10090   version_type=linux
10091   need_version=no
10092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093   soname_spec='${libname}${release}${shared_ext}$major'
10094   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10095   shlibpath_var=LD_LIBRARY_PATH
10096   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10097   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10098   # the default ld.so.conf also contains /usr/contrib/lib and
10099   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10100   # libtool to hard-code these into programs
10101   ;;
10102
10103 cygwin* | mingw* | pw32*)
10104   version_type=windows
10105   shrext_cmds=".dll"
10106   need_version=no
10107   need_lib_prefix=no
10108
10109   case $GCC,$host_os in
10110   yes,cygwin* | yes,mingw* | yes,pw32*)
10111     library_names_spec='$libname.dll.a'
10112     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10113     postinstall_cmds='base_file=`basename \${file}`~
10114       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10115       dldir=$destdir/`dirname \$dlpath`~
10116       test -d \$dldir || mkdir -p \$dldir~
10117       $install_prog $dir/$dlname \$dldir/$dlname'
10118     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10119       dlpath=$dir/\$dldll~
10120        $rm \$dlpath'
10121     shlibpath_overrides_runpath=yes
10122
10123     case $host_os in
10124     cygwin*)
10125       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10126       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10127       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10128       ;;
10129     mingw*)
10130       # MinGW DLLs use traditional 'lib' prefix
10131       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10132       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10133       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10134         # It is most probably a Windows format PATH printed by
10135         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10136         # path with ; separators, and with drive letters. We can handle the
10137         # drive letters (cygwin fileutils understands them), so leave them,
10138         # especially as we might pass files found there to a mingw objdump,
10139         # which wouldn't understand a cygwinified path. Ahh.
10140         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10141       else
10142         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10143       fi
10144       ;;
10145     pw32*)
10146       # pw32 DLLs use 'pw' prefix rather than 'lib'
10147       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10148       ;;
10149     esac
10150     ;;
10151
10152   *)
10153     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10154     ;;
10155   esac
10156   dynamic_linker='Win32 ld.exe'
10157   # FIXME: first we should search . and the directory the executable is in
10158   shlibpath_var=PATH
10159   ;;
10160
10161 darwin* | rhapsody*)
10162   dynamic_linker="$host_os dyld"
10163   version_type=darwin
10164   need_lib_prefix=no
10165   need_version=no
10166   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10167   soname_spec='${libname}${release}${major}$shared_ext'
10168   shlibpath_overrides_runpath=yes
10169   shlibpath_var=DYLD_LIBRARY_PATH
10170   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10171   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10172   if test "$GCC" = yes; then
10173     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"`
10174   else
10175     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10176   fi
10177   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10178   ;;
10179
10180 dgux*)
10181   version_type=linux
10182   need_lib_prefix=no
10183   need_version=no
10184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10185   soname_spec='${libname}${release}${shared_ext}$major'
10186   shlibpath_var=LD_LIBRARY_PATH
10187   ;;
10188
10189 freebsd1*)
10190   dynamic_linker=no
10191   ;;
10192
10193 kfreebsd*-gnu)
10194   version_type=linux
10195   need_lib_prefix=no
10196   need_version=no
10197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10198   soname_spec='${libname}${release}${shared_ext}$major'
10199   shlibpath_var=LD_LIBRARY_PATH
10200   shlibpath_overrides_runpath=no
10201   hardcode_into_libs=yes
10202   dynamic_linker='GNU ld.so'
10203   ;;
10204
10205 freebsd* | dragonfly*)
10206   # DragonFly does not have aout.  When/if they implement a new
10207   # versioning mechanism, adjust this.
10208   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10209   version_type=freebsd-$objformat
10210   case $version_type in
10211     freebsd-elf*)
10212       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10213       need_version=no
10214       need_lib_prefix=no
10215       ;;
10216     freebsd-*)
10217       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10218       need_version=yes
10219       ;;
10220   esac
10221   shlibpath_var=LD_LIBRARY_PATH
10222   case $host_os in
10223   freebsd2*)
10224     shlibpath_overrides_runpath=yes
10225     ;;
10226   freebsd3.[01]* | freebsdelf3.[01]*)
10227     shlibpath_overrides_runpath=yes
10228     hardcode_into_libs=yes
10229     ;;
10230   *) # from 3.2 on
10231     shlibpath_overrides_runpath=no
10232     hardcode_into_libs=yes
10233     ;;
10234   esac
10235   ;;
10236
10237 gnu*)
10238   version_type=linux
10239   need_lib_prefix=no
10240   need_version=no
10241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10242   soname_spec='${libname}${release}${shared_ext}$major'
10243   shlibpath_var=LD_LIBRARY_PATH
10244   hardcode_into_libs=yes
10245   ;;
10246
10247 hpux9* | hpux10* | hpux11*)
10248   # Give a soname corresponding to the major version so that dld.sl refuses to
10249   # link against other versions.
10250   version_type=sunos
10251   need_lib_prefix=no
10252   need_version=no
10253   case "$host_cpu" in
10254   ia64*)
10255     shrext_cmds='.so'
10256     hardcode_into_libs=yes
10257     dynamic_linker="$host_os dld.so"
10258     shlibpath_var=LD_LIBRARY_PATH
10259     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10260     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10261     soname_spec='${libname}${release}${shared_ext}$major'
10262     if test "X$HPUX_IA64_MODE" = X32; then
10263       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10264     else
10265       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10266     fi
10267     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10268     ;;
10269    hppa*64*)
10270      shrext_cmds='.sl'
10271      hardcode_into_libs=yes
10272      dynamic_linker="$host_os dld.sl"
10273      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10274      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10275      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276      soname_spec='${libname}${release}${shared_ext}$major'
10277      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10278      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10279      ;;
10280    *)
10281     shrext_cmds='.sl'
10282     dynamic_linker="$host_os dld.sl"
10283     shlibpath_var=SHLIB_PATH
10284     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10285     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10286     soname_spec='${libname}${release}${shared_ext}$major'
10287     ;;
10288   esac
10289   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10290   postinstall_cmds='chmod 555 $lib'
10291   ;;
10292
10293 irix5* | irix6* | nonstopux*)
10294   case $host_os in
10295     nonstopux*) version_type=nonstopux ;;
10296     *)
10297         if test "$lt_cv_prog_gnu_ld" = yes; then
10298                 version_type=linux
10299         else
10300                 version_type=irix
10301         fi ;;
10302   esac
10303   need_lib_prefix=no
10304   need_version=no
10305   soname_spec='${libname}${release}${shared_ext}$major'
10306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10307   case $host_os in
10308   irix5* | nonstopux*)
10309     libsuff= shlibsuff=
10310     ;;
10311   *)
10312     case $LD in # libtool.m4 will add one of these switches to LD
10313     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10314       libsuff= shlibsuff= libmagic=32-bit;;
10315     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10316       libsuff=32 shlibsuff=N32 libmagic=N32;;
10317     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10318       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10319     *) libsuff= shlibsuff= libmagic=never-match;;
10320     esac
10321     ;;
10322   esac
10323   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10324   shlibpath_overrides_runpath=no
10325   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10326   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10327   hardcode_into_libs=yes
10328   ;;
10329
10330 # No shared lib support for Linux oldld, aout, or coff.
10331 linux*oldld* | linux*aout* | linux*coff*)
10332   dynamic_linker=no
10333   ;;
10334
10335 # This must be Linux ELF.
10336 linux*)
10337   version_type=linux
10338   need_lib_prefix=no
10339   need_version=no
10340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341   soname_spec='${libname}${release}${shared_ext}$major'
10342   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10343   shlibpath_var=LD_LIBRARY_PATH
10344   shlibpath_overrides_runpath=no
10345   # This implies no fast_install, which is unacceptable.
10346   # Some rework will be needed to allow for fast_install
10347   # before this can be enabled.
10348   hardcode_into_libs=yes
10349
10350   # Append ld.so.conf contents to the search path
10351   if test -f /etc/ld.so.conf; then
10352     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' ' '`
10353     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10354   fi
10355
10356   # We used to test for /lib/ld.so.1 and disable shared libraries on
10357   # powerpc, because MkLinux only supported shared libraries with the
10358   # GNU dynamic linker.  Since this was broken with cross compilers,
10359   # most powerpc-linux boxes support dynamic linking these days and
10360   # people can always --disable-shared, the test was removed, and we
10361   # assume the GNU/Linux dynamic linker is in use.
10362   dynamic_linker='GNU/Linux ld.so'
10363   ;;
10364
10365 knetbsd*-gnu)
10366   version_type=linux
10367   need_lib_prefix=no
10368   need_version=no
10369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10370   soname_spec='${libname}${release}${shared_ext}$major'
10371   shlibpath_var=LD_LIBRARY_PATH
10372   shlibpath_overrides_runpath=no
10373   hardcode_into_libs=yes
10374   dynamic_linker='GNU ld.so'
10375   ;;
10376
10377 netbsd*)
10378   version_type=sunos
10379   need_lib_prefix=no
10380   need_version=no
10381   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10382     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10383     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10384     dynamic_linker='NetBSD (a.out) ld.so'
10385   else
10386     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10387     soname_spec='${libname}${release}${shared_ext}$major'
10388     dynamic_linker='NetBSD ld.elf_so'
10389   fi
10390   shlibpath_var=LD_LIBRARY_PATH
10391   shlibpath_overrides_runpath=yes
10392   hardcode_into_libs=yes
10393   ;;
10394
10395 newsos6)
10396   version_type=linux
10397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10398   shlibpath_var=LD_LIBRARY_PATH
10399   shlibpath_overrides_runpath=yes
10400   ;;
10401
10402 nto-qnx*)
10403   version_type=linux
10404   need_lib_prefix=no
10405   need_version=no
10406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10407   soname_spec='${libname}${release}${shared_ext}$major'
10408   shlibpath_var=LD_LIBRARY_PATH
10409   shlibpath_overrides_runpath=yes
10410   ;;
10411
10412 openbsd*)
10413   version_type=sunos
10414   need_lib_prefix=no
10415   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10416   case $host_os in
10417     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10418     *)                         need_version=no  ;;
10419   esac
10420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10421   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10422   shlibpath_var=LD_LIBRARY_PATH
10423   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10424     case $host_os in
10425       openbsd2.[89] | openbsd2.[89].*)
10426         shlibpath_overrides_runpath=no
10427         ;;
10428       *)
10429         shlibpath_overrides_runpath=yes
10430         ;;
10431       esac
10432   else
10433     shlibpath_overrides_runpath=yes
10434   fi
10435   ;;
10436
10437 os2*)
10438   libname_spec='$name'
10439   shrext_cmds=".dll"
10440   need_lib_prefix=no
10441   library_names_spec='$libname${shared_ext} $libname.a'
10442   dynamic_linker='OS/2 ld.exe'
10443   shlibpath_var=LIBPATH
10444   ;;
10445
10446 osf3* | osf4* | osf5*)
10447   version_type=osf
10448   need_lib_prefix=no
10449   need_version=no
10450   soname_spec='${libname}${release}${shared_ext}$major'
10451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452   shlibpath_var=LD_LIBRARY_PATH
10453   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10454   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10455   ;;
10456
10457 sco3.2v5*)
10458   version_type=osf
10459   soname_spec='${libname}${release}${shared_ext}$major'
10460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461   shlibpath_var=LD_LIBRARY_PATH
10462   ;;
10463
10464 solaris*)
10465   version_type=linux
10466   need_lib_prefix=no
10467   need_version=no
10468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10469   soname_spec='${libname}${release}${shared_ext}$major'
10470   shlibpath_var=LD_LIBRARY_PATH
10471   shlibpath_overrides_runpath=yes
10472   hardcode_into_libs=yes
10473   # ldd complains unless libraries are executable
10474   postinstall_cmds='chmod +x $lib'
10475   ;;
10476
10477 sunos4*)
10478   version_type=sunos
10479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10480   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10481   shlibpath_var=LD_LIBRARY_PATH
10482   shlibpath_overrides_runpath=yes
10483   if test "$with_gnu_ld" = yes; then
10484     need_lib_prefix=no
10485   fi
10486   need_version=yes
10487   ;;
10488
10489 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10490   version_type=linux
10491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10492   soname_spec='${libname}${release}${shared_ext}$major'
10493   shlibpath_var=LD_LIBRARY_PATH
10494   case $host_vendor in
10495     sni)
10496       shlibpath_overrides_runpath=no
10497       need_lib_prefix=no
10498       export_dynamic_flag_spec='${wl}-Blargedynsym'
10499       runpath_var=LD_RUN_PATH
10500       ;;
10501     siemens)
10502       need_lib_prefix=no
10503       ;;
10504     motorola)
10505       need_lib_prefix=no
10506       need_version=no
10507       shlibpath_overrides_runpath=no
10508       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10509       ;;
10510   esac
10511   ;;
10512
10513 sysv4*MP*)
10514   if test -d /usr/nec ;then
10515     version_type=linux
10516     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10517     soname_spec='$libname${shared_ext}.$major'
10518     shlibpath_var=LD_LIBRARY_PATH
10519   fi
10520   ;;
10521
10522 uts4*)
10523   version_type=linux
10524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10525   soname_spec='${libname}${release}${shared_ext}$major'
10526   shlibpath_var=LD_LIBRARY_PATH
10527   ;;
10528
10529 *)
10530   dynamic_linker=no
10531   ;;
10532 esac
10533 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10534 echo "${ECHO_T}$dynamic_linker" >&6
10535 test "$dynamic_linker" = no && can_build_shared=no
10536
10537 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10538 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10539 hardcode_action=
10540 if test -n "$hardcode_libdir_flag_spec" || \
10541    test -n "$runpath_var" || \
10542    test "X$hardcode_automatic" = "Xyes" ; then
10543
10544   # We can hardcode non-existant directories.
10545   if test "$hardcode_direct" != no &&
10546      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10547      # have to relink, otherwise we might link with an installed library
10548      # when we should be linking with a yet-to-be-installed one
10549      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10550      test "$hardcode_minus_L" != no; then
10551     # Linking always hardcodes the temporary library directory.
10552     hardcode_action=relink
10553   else
10554     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10555     hardcode_action=immediate
10556   fi
10557 else
10558   # We cannot hardcode anything, or else we can only hardcode existing
10559   # directories.
10560   hardcode_action=unsupported
10561 fi
10562 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10563 echo "${ECHO_T}$hardcode_action" >&6
10564
10565 if test "$hardcode_action" = relink; then
10566   # Fast installation is not supported
10567   enable_fast_install=no
10568 elif test "$shlibpath_overrides_runpath" = yes ||
10569      test "$enable_shared" = no; then
10570   # Fast installation is not necessary
10571   enable_fast_install=needless
10572 fi
10573
10574 striplib=
10575 old_striplib=
10576 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10577 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10578 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10579   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10580   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10581   echo "$as_me:$LINENO: result: yes" >&5
10582 echo "${ECHO_T}yes" >&6
10583 else
10584 # FIXME - insert some real tests, host_os isn't really good enough
10585   case $host_os in
10586    darwin*)
10587        if test -n "$STRIP" ; then
10588          striplib="$STRIP -x"
10589          echo "$as_me:$LINENO: result: yes" >&5
10590 echo "${ECHO_T}yes" >&6
10591        else
10592   echo "$as_me:$LINENO: result: no" >&5
10593 echo "${ECHO_T}no" >&6
10594 fi
10595        ;;
10596    *)
10597   echo "$as_me:$LINENO: result: no" >&5
10598 echo "${ECHO_T}no" >&6
10599     ;;
10600   esac
10601 fi
10602
10603 if test "x$enable_dlopen" != xyes; then
10604   enable_dlopen=unknown
10605   enable_dlopen_self=unknown
10606   enable_dlopen_self_static=unknown
10607 else
10608   lt_cv_dlopen=no
10609   lt_cv_dlopen_libs=
10610
10611   case $host_os in
10612   beos*)
10613     lt_cv_dlopen="load_add_on"
10614     lt_cv_dlopen_libs=
10615     lt_cv_dlopen_self=yes
10616     ;;
10617
10618   mingw* | pw32*)
10619     lt_cv_dlopen="LoadLibrary"
10620     lt_cv_dlopen_libs=
10621    ;;
10622
10623   cygwin*)
10624     lt_cv_dlopen="dlopen"
10625     lt_cv_dlopen_libs=
10626    ;;
10627
10628   darwin*)
10629   # if libdl is installed we need to link against it
10630     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10631 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10632 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10633   echo $ECHO_N "(cached) $ECHO_C" >&6
10634 else
10635   ac_check_lib_save_LIBS=$LIBS
10636 LIBS="-ldl  $LIBS"
10637 cat >conftest.$ac_ext <<_ACEOF
10638 /* confdefs.h.  */
10639 _ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h.  */
10643
10644 /* Override any gcc2 internal prototype to avoid an error.  */
10645 #ifdef __cplusplus
10646 extern "C"
10647 #endif
10648 /* We use char because int might match the return type of a gcc2
10649    builtin and then its argument prototype would still apply.  */
10650 char dlopen ();
10651 int
10652 main ()
10653 {
10654 dlopen ();
10655   ;
10656   return 0;
10657 }
10658 _ACEOF
10659 rm -f conftest.$ac_objext conftest$ac_exeext
10660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10661   (eval $ac_link) 2>conftest.er1
10662   ac_status=$?
10663   grep -v '^ *+' conftest.er1 >conftest.err
10664   rm -f conftest.er1
10665   cat conftest.err >&5
10666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667   (exit $ac_status); } &&
10668          { ac_try='test -z "$ac_c_werror_flag"
10669                          || test ! -s conftest.err'
10670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671   (eval $ac_try) 2>&5
10672   ac_status=$?
10673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674   (exit $ac_status); }; } &&
10675          { ac_try='test -s conftest$ac_exeext'
10676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677   (eval $ac_try) 2>&5
10678   ac_status=$?
10679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680   (exit $ac_status); }; }; then
10681   ac_cv_lib_dl_dlopen=yes
10682 else
10683   echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10685
10686 ac_cv_lib_dl_dlopen=no
10687 fi
10688 rm -f conftest.err conftest.$ac_objext \
10689       conftest$ac_exeext conftest.$ac_ext
10690 LIBS=$ac_check_lib_save_LIBS
10691 fi
10692 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10693 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10694 if test $ac_cv_lib_dl_dlopen = yes; then
10695   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10696 else
10697
10698     lt_cv_dlopen="dyld"
10699     lt_cv_dlopen_libs=
10700     lt_cv_dlopen_self=yes
10701
10702 fi
10703
10704    ;;
10705
10706   *)
10707     echo "$as_me:$LINENO: checking for shl_load" >&5
10708 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10709 if test "${ac_cv_func_shl_load+set}" = set; then
10710   echo $ECHO_N "(cached) $ECHO_C" >&6
10711 else
10712   cat >conftest.$ac_ext <<_ACEOF
10713 /* confdefs.h.  */
10714 _ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h.  */
10718 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10720 #define shl_load innocuous_shl_load
10721
10722 /* System header to define __stub macros and hopefully few prototypes,
10723     which can conflict with char shl_load (); below.
10724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10725     <limits.h> exists even on freestanding compilers.  */
10726
10727 #ifdef __STDC__
10728 # include <limits.h>
10729 #else
10730 # include <assert.h>
10731 #endif
10732
10733 #undef shl_load
10734
10735 /* Override any gcc2 internal prototype to avoid an error.  */
10736 #ifdef __cplusplus
10737 extern "C"
10738 {
10739 #endif
10740 /* We use char because int might match the return type of a gcc2
10741    builtin and then its argument prototype would still apply.  */
10742 char shl_load ();
10743 /* The GNU C library defines this for functions which it implements
10744     to always fail with ENOSYS.  Some functions are actually named
10745     something starting with __ and the normal name is an alias.  */
10746 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10747 choke me
10748 #else
10749 char (*f) () = shl_load;
10750 #endif
10751 #ifdef __cplusplus
10752 }
10753 #endif
10754
10755 int
10756 main ()
10757 {
10758 return f != shl_load;
10759   ;
10760   return 0;
10761 }
10762 _ACEOF
10763 rm -f conftest.$ac_objext conftest$ac_exeext
10764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10765   (eval $ac_link) 2>conftest.er1
10766   ac_status=$?
10767   grep -v '^ *+' conftest.er1 >conftest.err
10768   rm -f conftest.er1
10769   cat conftest.err >&5
10770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771   (exit $ac_status); } &&
10772          { ac_try='test -z "$ac_c_werror_flag"
10773                          || test ! -s conftest.err'
10774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775   (eval $ac_try) 2>&5
10776   ac_status=$?
10777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778   (exit $ac_status); }; } &&
10779          { ac_try='test -s conftest$ac_exeext'
10780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781   (eval $ac_try) 2>&5
10782   ac_status=$?
10783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784   (exit $ac_status); }; }; then
10785   ac_cv_func_shl_load=yes
10786 else
10787   echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.$ac_ext >&5
10789
10790 ac_cv_func_shl_load=no
10791 fi
10792 rm -f conftest.err conftest.$ac_objext \
10793       conftest$ac_exeext conftest.$ac_ext
10794 fi
10795 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10796 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10797 if test $ac_cv_func_shl_load = yes; then
10798   lt_cv_dlopen="shl_load"
10799 else
10800   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10801 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10802 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10803   echo $ECHO_N "(cached) $ECHO_C" >&6
10804 else
10805   ac_check_lib_save_LIBS=$LIBS
10806 LIBS="-ldld  $LIBS"
10807 cat >conftest.$ac_ext <<_ACEOF
10808 /* confdefs.h.  */
10809 _ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h.  */
10813
10814 /* Override any gcc2 internal prototype to avoid an error.  */
10815 #ifdef __cplusplus
10816 extern "C"
10817 #endif
10818 /* We use char because int might match the return type of a gcc2
10819    builtin and then its argument prototype would still apply.  */
10820 char shl_load ();
10821 int
10822 main ()
10823 {
10824 shl_load ();
10825   ;
10826   return 0;
10827 }
10828 _ACEOF
10829 rm -f conftest.$ac_objext conftest$ac_exeext
10830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10831   (eval $ac_link) 2>conftest.er1
10832   ac_status=$?
10833   grep -v '^ *+' conftest.er1 >conftest.err
10834   rm -f conftest.er1
10835   cat conftest.err >&5
10836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); } &&
10838          { ac_try='test -z "$ac_c_werror_flag"
10839                          || test ! -s conftest.err'
10840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841   (eval $ac_try) 2>&5
10842   ac_status=$?
10843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844   (exit $ac_status); }; } &&
10845          { ac_try='test -s conftest$ac_exeext'
10846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847   (eval $ac_try) 2>&5
10848   ac_status=$?
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); }; }; then
10851   ac_cv_lib_dld_shl_load=yes
10852 else
10853   echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10855
10856 ac_cv_lib_dld_shl_load=no
10857 fi
10858 rm -f conftest.err conftest.$ac_objext \
10859       conftest$ac_exeext conftest.$ac_ext
10860 LIBS=$ac_check_lib_save_LIBS
10861 fi
10862 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10863 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10864 if test $ac_cv_lib_dld_shl_load = yes; then
10865   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10866 else
10867   echo "$as_me:$LINENO: checking for dlopen" >&5
10868 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10869 if test "${ac_cv_func_dlopen+set}" = set; then
10870   echo $ECHO_N "(cached) $ECHO_C" >&6
10871 else
10872   cat >conftest.$ac_ext <<_ACEOF
10873 /* confdefs.h.  */
10874 _ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h.  */
10878 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10879    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10880 #define dlopen innocuous_dlopen
10881
10882 /* System header to define __stub macros and hopefully few prototypes,
10883     which can conflict with char dlopen (); below.
10884     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10885     <limits.h> exists even on freestanding compilers.  */
10886
10887 #ifdef __STDC__
10888 # include <limits.h>
10889 #else
10890 # include <assert.h>
10891 #endif
10892
10893 #undef dlopen
10894
10895 /* Override any gcc2 internal prototype to avoid an error.  */
10896 #ifdef __cplusplus
10897 extern "C"
10898 {
10899 #endif
10900 /* We use char because int might match the return type of a gcc2
10901    builtin and then its argument prototype would still apply.  */
10902 char dlopen ();
10903 /* The GNU C library defines this for functions which it implements
10904     to always fail with ENOSYS.  Some functions are actually named
10905     something starting with __ and the normal name is an alias.  */
10906 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10907 choke me
10908 #else
10909 char (*f) () = dlopen;
10910 #endif
10911 #ifdef __cplusplus
10912 }
10913 #endif
10914
10915 int
10916 main ()
10917 {
10918 return f != dlopen;
10919   ;
10920   return 0;
10921 }
10922 _ACEOF
10923 rm -f conftest.$ac_objext conftest$ac_exeext
10924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10925   (eval $ac_link) 2>conftest.er1
10926   ac_status=$?
10927   grep -v '^ *+' conftest.er1 >conftest.err
10928   rm -f conftest.er1
10929   cat conftest.err >&5
10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); } &&
10932          { ac_try='test -z "$ac_c_werror_flag"
10933                          || test ! -s conftest.err'
10934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935   (eval $ac_try) 2>&5
10936   ac_status=$?
10937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938   (exit $ac_status); }; } &&
10939          { ac_try='test -s conftest$ac_exeext'
10940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941   (eval $ac_try) 2>&5
10942   ac_status=$?
10943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944   (exit $ac_status); }; }; then
10945   ac_cv_func_dlopen=yes
10946 else
10947   echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10949
10950 ac_cv_func_dlopen=no
10951 fi
10952 rm -f conftest.err conftest.$ac_objext \
10953       conftest$ac_exeext conftest.$ac_ext
10954 fi
10955 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10956 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10957 if test $ac_cv_func_dlopen = yes; then
10958   lt_cv_dlopen="dlopen"
10959 else
10960   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10961 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10962 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10963   echo $ECHO_N "(cached) $ECHO_C" >&6
10964 else
10965   ac_check_lib_save_LIBS=$LIBS
10966 LIBS="-ldl  $LIBS"
10967 cat >conftest.$ac_ext <<_ACEOF
10968 /* confdefs.h.  */
10969 _ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h.  */
10973
10974 /* Override any gcc2 internal prototype to avoid an error.  */
10975 #ifdef __cplusplus
10976 extern "C"
10977 #endif
10978 /* We use char because int might match the return type of a gcc2
10979    builtin and then its argument prototype would still apply.  */
10980 char dlopen ();
10981 int
10982 main ()
10983 {
10984 dlopen ();
10985   ;
10986   return 0;
10987 }
10988 _ACEOF
10989 rm -f conftest.$ac_objext conftest$ac_exeext
10990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10991   (eval $ac_link) 2>conftest.er1
10992   ac_status=$?
10993   grep -v '^ *+' conftest.er1 >conftest.err
10994   rm -f conftest.er1
10995   cat conftest.err >&5
10996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997   (exit $ac_status); } &&
10998          { ac_try='test -z "$ac_c_werror_flag"
10999                          || test ! -s conftest.err'
11000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001   (eval $ac_try) 2>&5
11002   ac_status=$?
11003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004   (exit $ac_status); }; } &&
11005          { ac_try='test -s conftest$ac_exeext'
11006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007   (eval $ac_try) 2>&5
11008   ac_status=$?
11009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010   (exit $ac_status); }; }; then
11011   ac_cv_lib_dl_dlopen=yes
11012 else
11013   echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11015
11016 ac_cv_lib_dl_dlopen=no
11017 fi
11018 rm -f conftest.err conftest.$ac_objext \
11019       conftest$ac_exeext conftest.$ac_ext
11020 LIBS=$ac_check_lib_save_LIBS
11021 fi
11022 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11023 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11024 if test $ac_cv_lib_dl_dlopen = yes; then
11025   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11026 else
11027   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11028 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11029 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11030   echo $ECHO_N "(cached) $ECHO_C" >&6
11031 else
11032   ac_check_lib_save_LIBS=$LIBS
11033 LIBS="-lsvld  $LIBS"
11034 cat >conftest.$ac_ext <<_ACEOF
11035 /* confdefs.h.  */
11036 _ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h.  */
11040
11041 /* Override any gcc2 internal prototype to avoid an error.  */
11042 #ifdef __cplusplus
11043 extern "C"
11044 #endif
11045 /* We use char because int might match the return type of a gcc2
11046    builtin and then its argument prototype would still apply.  */
11047 char dlopen ();
11048 int
11049 main ()
11050 {
11051 dlopen ();
11052   ;
11053   return 0;
11054 }
11055 _ACEOF
11056 rm -f conftest.$ac_objext conftest$ac_exeext
11057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11058   (eval $ac_link) 2>conftest.er1
11059   ac_status=$?
11060   grep -v '^ *+' conftest.er1 >conftest.err
11061   rm -f conftest.er1
11062   cat conftest.err >&5
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); } &&
11065          { ac_try='test -z "$ac_c_werror_flag"
11066                          || test ! -s conftest.err'
11067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068   (eval $ac_try) 2>&5
11069   ac_status=$?
11070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071   (exit $ac_status); }; } &&
11072          { ac_try='test -s conftest$ac_exeext'
11073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11074   (eval $ac_try) 2>&5
11075   ac_status=$?
11076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077   (exit $ac_status); }; }; then
11078   ac_cv_lib_svld_dlopen=yes
11079 else
11080   echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11082
11083 ac_cv_lib_svld_dlopen=no
11084 fi
11085 rm -f conftest.err conftest.$ac_objext \
11086       conftest$ac_exeext conftest.$ac_ext
11087 LIBS=$ac_check_lib_save_LIBS
11088 fi
11089 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11090 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11091 if test $ac_cv_lib_svld_dlopen = yes; then
11092   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11093 else
11094   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11095 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11096 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11097   echo $ECHO_N "(cached) $ECHO_C" >&6
11098 else
11099   ac_check_lib_save_LIBS=$LIBS
11100 LIBS="-ldld  $LIBS"
11101 cat >conftest.$ac_ext <<_ACEOF
11102 /* confdefs.h.  */
11103 _ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h.  */
11107
11108 /* Override any gcc2 internal prototype to avoid an error.  */
11109 #ifdef __cplusplus
11110 extern "C"
11111 #endif
11112 /* We use char because int might match the return type of a gcc2
11113    builtin and then its argument prototype would still apply.  */
11114 char dld_link ();
11115 int
11116 main ()
11117 {
11118 dld_link ();
11119   ;
11120   return 0;
11121 }
11122 _ACEOF
11123 rm -f conftest.$ac_objext conftest$ac_exeext
11124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11125   (eval $ac_link) 2>conftest.er1
11126   ac_status=$?
11127   grep -v '^ *+' conftest.er1 >conftest.err
11128   rm -f conftest.er1
11129   cat conftest.err >&5
11130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131   (exit $ac_status); } &&
11132          { ac_try='test -z "$ac_c_werror_flag"
11133                          || test ! -s conftest.err'
11134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135   (eval $ac_try) 2>&5
11136   ac_status=$?
11137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138   (exit $ac_status); }; } &&
11139          { ac_try='test -s conftest$ac_exeext'
11140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141   (eval $ac_try) 2>&5
11142   ac_status=$?
11143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144   (exit $ac_status); }; }; then
11145   ac_cv_lib_dld_dld_link=yes
11146 else
11147   echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11149
11150 ac_cv_lib_dld_dld_link=no
11151 fi
11152 rm -f conftest.err conftest.$ac_objext \
11153       conftest$ac_exeext conftest.$ac_ext
11154 LIBS=$ac_check_lib_save_LIBS
11155 fi
11156 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11157 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11158 if test $ac_cv_lib_dld_dld_link = yes; then
11159   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11160 fi
11161
11162
11163 fi
11164
11165
11166 fi
11167
11168
11169 fi
11170
11171
11172 fi
11173
11174
11175 fi
11176
11177     ;;
11178   esac
11179
11180   if test "x$lt_cv_dlopen" != xno; then
11181     enable_dlopen=yes
11182   else
11183     enable_dlopen=no
11184   fi
11185
11186   case $lt_cv_dlopen in
11187   dlopen)
11188     save_CPPFLAGS="$CPPFLAGS"
11189     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11190
11191     save_LDFLAGS="$LDFLAGS"
11192     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11193
11194     save_LIBS="$LIBS"
11195     LIBS="$lt_cv_dlopen_libs $LIBS"
11196
11197     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11198 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11199 if test "${lt_cv_dlopen_self+set}" = set; then
11200   echo $ECHO_N "(cached) $ECHO_C" >&6
11201 else
11202           if test "$cross_compiling" = yes; then :
11203   lt_cv_dlopen_self=cross
11204 else
11205   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11206   lt_status=$lt_dlunknown
11207   cat > conftest.$ac_ext <<EOF
11208 #line 11208 "configure"
11209 #include "confdefs.h"
11210
11211 #if HAVE_DLFCN_H
11212 #include <dlfcn.h>
11213 #endif
11214
11215 #include <stdio.h>
11216
11217 #ifdef RTLD_GLOBAL
11218 #  define LT_DLGLOBAL           RTLD_GLOBAL
11219 #else
11220 #  ifdef DL_GLOBAL
11221 #    define LT_DLGLOBAL         DL_GLOBAL
11222 #  else
11223 #    define LT_DLGLOBAL         0
11224 #  endif
11225 #endif
11226
11227 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11228    find out it does not work in some platform. */
11229 #ifndef LT_DLLAZY_OR_NOW
11230 #  ifdef RTLD_LAZY
11231 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11232 #  else
11233 #    ifdef DL_LAZY
11234 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11235 #    else
11236 #      ifdef RTLD_NOW
11237 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11238 #      else
11239 #        ifdef DL_NOW
11240 #          define LT_DLLAZY_OR_NOW      DL_NOW
11241 #        else
11242 #          define LT_DLLAZY_OR_NOW      0
11243 #        endif
11244 #      endif
11245 #    endif
11246 #  endif
11247 #endif
11248
11249 #ifdef __cplusplus
11250 extern "C" void exit (int);
11251 #endif
11252
11253 void fnord() { int i=42;}
11254 int main ()
11255 {
11256   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11257   int status = $lt_dlunknown;
11258
11259   if (self)
11260     {
11261       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11262       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11263       /* dlclose (self); */
11264     }
11265
11266     exit (status);
11267 }
11268 EOF
11269   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11270   (eval $ac_link) 2>&5
11271   ac_status=$?
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11274     (./conftest; exit; ) 2>/dev/null
11275     lt_status=$?
11276     case x$lt_status in
11277       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11278       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11279       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11280     esac
11281   else :
11282     # compilation failed
11283     lt_cv_dlopen_self=no
11284   fi
11285 fi
11286 rm -fr conftest*
11287
11288
11289 fi
11290 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11291 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11292
11293     if test "x$lt_cv_dlopen_self" = xyes; then
11294       LDFLAGS="$LDFLAGS $link_static_flag"
11295       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11296 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11297 if test "${lt_cv_dlopen_self_static+set}" = set; then
11298   echo $ECHO_N "(cached) $ECHO_C" >&6
11299 else
11300           if test "$cross_compiling" = yes; then :
11301   lt_cv_dlopen_self_static=cross
11302 else
11303   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11304   lt_status=$lt_dlunknown
11305   cat > conftest.$ac_ext <<EOF
11306 #line 11306 "configure"
11307 #include "confdefs.h"
11308
11309 #if HAVE_DLFCN_H
11310 #include <dlfcn.h>
11311 #endif
11312
11313 #include <stdio.h>
11314
11315 #ifdef RTLD_GLOBAL
11316 #  define LT_DLGLOBAL           RTLD_GLOBAL
11317 #else
11318 #  ifdef DL_GLOBAL
11319 #    define LT_DLGLOBAL         DL_GLOBAL
11320 #  else
11321 #    define LT_DLGLOBAL         0
11322 #  endif
11323 #endif
11324
11325 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11326    find out it does not work in some platform. */
11327 #ifndef LT_DLLAZY_OR_NOW
11328 #  ifdef RTLD_LAZY
11329 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11330 #  else
11331 #    ifdef DL_LAZY
11332 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11333 #    else
11334 #      ifdef RTLD_NOW
11335 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11336 #      else
11337 #        ifdef DL_NOW
11338 #          define LT_DLLAZY_OR_NOW      DL_NOW
11339 #        else
11340 #          define LT_DLLAZY_OR_NOW      0
11341 #        endif
11342 #      endif
11343 #    endif
11344 #  endif
11345 #endif
11346
11347 #ifdef __cplusplus
11348 extern "C" void exit (int);
11349 #endif
11350
11351 void fnord() { int i=42;}
11352 int main ()
11353 {
11354   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11355   int status = $lt_dlunknown;
11356
11357   if (self)
11358     {
11359       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11360       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11361       /* dlclose (self); */
11362     }
11363
11364     exit (status);
11365 }
11366 EOF
11367   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11368   (eval $ac_link) 2>&5
11369   ac_status=$?
11370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11372     (./conftest; exit; ) 2>/dev/null
11373     lt_status=$?
11374     case x$lt_status in
11375       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11376       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11377       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11378     esac
11379   else :
11380     # compilation failed
11381     lt_cv_dlopen_self_static=no
11382   fi
11383 fi
11384 rm -fr conftest*
11385
11386
11387 fi
11388 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11389 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11390     fi
11391
11392     CPPFLAGS="$save_CPPFLAGS"
11393     LDFLAGS="$save_LDFLAGS"
11394     LIBS="$save_LIBS"
11395     ;;
11396   esac
11397
11398   case $lt_cv_dlopen_self in
11399   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11400   *) enable_dlopen_self=unknown ;;
11401   esac
11402
11403   case $lt_cv_dlopen_self_static in
11404   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11405   *) enable_dlopen_self_static=unknown ;;
11406   esac
11407 fi
11408
11409
11410 # Report which librarie types wil actually be built
11411 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11412 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11413 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11414 echo "${ECHO_T}$can_build_shared" >&6
11415
11416 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11417 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11418 test "$can_build_shared" = "no" && enable_shared=no
11419
11420 # On AIX, shared libraries and static libraries use the same namespace, and
11421 # are all built from PIC.
11422 case "$host_os" in
11423 aix3*)
11424   test "$enable_shared" = yes && enable_static=no
11425   if test -n "$RANLIB"; then
11426     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11427     postinstall_cmds='$RANLIB $lib'
11428   fi
11429   ;;
11430
11431 aix4* | aix5*)
11432   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11433     test "$enable_shared" = yes && enable_static=no
11434   fi
11435     ;;
11436 esac
11437 echo "$as_me:$LINENO: result: $enable_shared" >&5
11438 echo "${ECHO_T}$enable_shared" >&6
11439
11440 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11441 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11442 # Make sure either enable_shared or enable_static is yes.
11443 test "$enable_shared" = yes || enable_static=yes
11444 echo "$as_me:$LINENO: result: $enable_static" >&5
11445 echo "${ECHO_T}$enable_static" >&6
11446
11447 # The else clause should only fire when bootstrapping the
11448 # libtool distribution, otherwise you forgot to ship ltmain.sh
11449 # with your package, and you will get complaints that there are
11450 # no rules to generate ltmain.sh.
11451 if test -f "$ltmain"; then
11452   # See if we are running on zsh, and set the options which allow our commands through
11453   # without removal of \ escapes.
11454   if test -n "${ZSH_VERSION+set}" ; then
11455     setopt NO_GLOB_SUBST
11456   fi
11457   # Now quote all the things that may contain metacharacters while being
11458   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11459   # variables and quote the copies for generation of the libtool script.
11460   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11461     SED SHELL STRIP \
11462     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11463     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11464     deplibs_check_method reload_flag reload_cmds need_locks \
11465     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11466     lt_cv_sys_global_symbol_to_c_name_address \
11467     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11468     old_postinstall_cmds old_postuninstall_cmds \
11469     compiler \
11470     CC \
11471     LD \
11472     lt_prog_compiler_wl \
11473     lt_prog_compiler_pic \
11474     lt_prog_compiler_static \
11475     lt_prog_compiler_no_builtin_flag \
11476     export_dynamic_flag_spec \
11477     thread_safe_flag_spec \
11478     whole_archive_flag_spec \
11479     enable_shared_with_static_runtimes \
11480     old_archive_cmds \
11481     old_archive_from_new_cmds \
11482     predep_objects \
11483     postdep_objects \
11484     predeps \
11485     postdeps \
11486     compiler_lib_search_path \
11487     archive_cmds \
11488     archive_expsym_cmds \
11489     postinstall_cmds \
11490     postuninstall_cmds \
11491     old_archive_from_expsyms_cmds \
11492     allow_undefined_flag \
11493     no_undefined_flag \
11494     export_symbols_cmds \
11495     hardcode_libdir_flag_spec \
11496     hardcode_libdir_flag_spec_ld \
11497     hardcode_libdir_separator \
11498     hardcode_automatic \
11499     module_cmds \
11500     module_expsym_cmds \
11501     lt_cv_prog_compiler_c_o \
11502     exclude_expsyms \
11503     include_expsyms; do
11504
11505     case $var in
11506     old_archive_cmds | \
11507     old_archive_from_new_cmds | \
11508     archive_cmds | \
11509     archive_expsym_cmds | \
11510     module_cmds | \
11511     module_expsym_cmds | \
11512     old_archive_from_expsyms_cmds | \
11513     export_symbols_cmds | \
11514     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11515     postinstall_cmds | postuninstall_cmds | \
11516     old_postinstall_cmds | old_postuninstall_cmds | \
11517     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11518       # Double-quote double-evaled strings.
11519       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11520       ;;
11521     *)
11522       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11523       ;;
11524     esac
11525   done
11526
11527   case $lt_echo in
11528   *'\$0 --fallback-echo"')
11529     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11530     ;;
11531   esac
11532
11533 cfgfile="${ofile}T"
11534   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11535   $rm -f "$cfgfile"
11536   { echo "$as_me:$LINENO: creating $ofile" >&5
11537 echo "$as_me: creating $ofile" >&6;}
11538
11539   cat <<__EOF__ >> "$cfgfile"
11540 #! $SHELL
11541
11542 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11543 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11544 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11545 #
11546 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11547 # Free Software Foundation, Inc.
11548 #
11549 # This file is part of GNU Libtool:
11550 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11551 #
11552 # This program is free software; you can redistribute it and/or modify
11553 # it under the terms of the GNU General Public License as published by
11554 # the Free Software Foundation; either version 2 of the License, or
11555 # (at your option) any later version.
11556 #
11557 # This program is distributed in the hope that it will be useful, but
11558 # WITHOUT ANY WARRANTY; without even the implied warranty of
11559 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11560 # General Public License for more details.
11561 #
11562 # You should have received a copy of the GNU General Public License
11563 # along with this program; if not, write to the Free Software
11564 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11565 #
11566 # As a special exception to the GNU General Public License, if you
11567 # distribute this file as part of a program that contains a
11568 # configuration script generated by Autoconf, you may include it under
11569 # the same distribution terms that you use for the rest of that program.
11570
11571 # A sed program that does not truncate output.
11572 SED=$lt_SED
11573
11574 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11575 Xsed="$SED -e 1s/^X//"
11576
11577 # The HP-UX ksh and POSIX shell print the target directory to stdout
11578 # if CDPATH is set.
11579 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11580
11581 # The names of the tagged configurations supported by this script.
11582 available_tags=
11583
11584 # ### BEGIN LIBTOOL CONFIG
11585
11586 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11587
11588 # Shell to use when invoking shell scripts.
11589 SHELL=$lt_SHELL
11590
11591 # Whether or not to build shared libraries.
11592 build_libtool_libs=$enable_shared
11593
11594 # Whether or not to build static libraries.
11595 build_old_libs=$enable_static
11596
11597 # Whether or not to add -lc for building shared libraries.
11598 build_libtool_need_lc=$archive_cmds_need_lc
11599
11600 # Whether or not to disallow shared libs when runtime libs are static
11601 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11602
11603 # Whether or not to optimize for fast installation.
11604 fast_install=$enable_fast_install
11605
11606 # The host system.
11607 host_alias=$host_alias
11608 host=$host
11609 host_os=$host_os
11610
11611 # The build system.
11612 build_alias=$build_alias
11613 build=$build
11614 build_os=$build_os
11615
11616 # An echo program that does not interpret backslashes.
11617 echo=$lt_echo
11618
11619 # The archiver.
11620 AR=$lt_AR
11621 AR_FLAGS=$lt_AR_FLAGS
11622
11623 # A C compiler.
11624 LTCC=$lt_LTCC
11625
11626 # A language-specific compiler.
11627 CC=$lt_compiler
11628
11629 # Is the compiler the GNU C compiler?
11630 with_gcc=$GCC
11631
11632 # An ERE matcher.
11633 EGREP=$lt_EGREP
11634
11635 # The linker used to build libraries.
11636 LD=$lt_LD
11637
11638 # Whether we need hard or soft links.
11639 LN_S=$lt_LN_S
11640
11641 # A BSD-compatible nm program.
11642 NM=$lt_NM
11643
11644 # A symbol stripping program
11645 STRIP=$lt_STRIP
11646
11647 # Used to examine libraries when file_magic_cmd begins "file"
11648 MAGIC_CMD=$MAGIC_CMD
11649
11650 # Used on cygwin: DLL creation program.
11651 DLLTOOL="$DLLTOOL"
11652
11653 # Used on cygwin: object dumper.
11654 OBJDUMP="$OBJDUMP"
11655
11656 # Used on cygwin: assembler.
11657 AS="$AS"
11658
11659 # The name of the directory that contains temporary libtool files.
11660 objdir=$objdir
11661
11662 # How to create reloadable object files.
11663 reload_flag=$lt_reload_flag
11664 reload_cmds=$lt_reload_cmds
11665
11666 # How to pass a linker flag through the compiler.
11667 wl=$lt_lt_prog_compiler_wl
11668
11669 # Object file suffix (normally "o").
11670 objext="$ac_objext"
11671
11672 # Old archive suffix (normally "a").
11673 libext="$libext"
11674
11675 # Shared library suffix (normally ".so").
11676 shrext_cmds='$shrext_cmds'
11677
11678 # Executable file suffix (normally "").
11679 exeext="$exeext"
11680
11681 # Additional compiler flags for building library objects.
11682 pic_flag=$lt_lt_prog_compiler_pic
11683 pic_mode=$pic_mode
11684
11685 # What is the maximum length of a command?
11686 max_cmd_len=$lt_cv_sys_max_cmd_len
11687
11688 # Does compiler simultaneously support -c and -o options?
11689 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11690
11691 # Must we lock files when doing compilation?
11692 need_locks=$lt_need_locks
11693
11694 # Do we need the lib prefix for modules?
11695 need_lib_prefix=$need_lib_prefix
11696
11697 # Do we need a version for libraries?
11698 need_version=$need_version
11699
11700 # Whether dlopen is supported.
11701 dlopen_support=$enable_dlopen
11702
11703 # Whether dlopen of programs is supported.
11704 dlopen_self=$enable_dlopen_self
11705
11706 # Whether dlopen of statically linked programs is supported.
11707 dlopen_self_static=$enable_dlopen_self_static
11708
11709 # Compiler flag to prevent dynamic linking.
11710 link_static_flag=$lt_lt_prog_compiler_static
11711
11712 # Compiler flag to turn off builtin functions.
11713 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11714
11715 # Compiler flag to allow reflexive dlopens.
11716 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11717
11718 # Compiler flag to generate shared objects directly from archives.
11719 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11720
11721 # Compiler flag to generate thread-safe objects.
11722 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11723
11724 # Library versioning type.
11725 version_type=$version_type
11726
11727 # Format of library name prefix.
11728 libname_spec=$lt_libname_spec
11729
11730 # List of archive names.  First name is the real one, the rest are links.
11731 # The last name is the one that the linker finds with -lNAME.
11732 library_names_spec=$lt_library_names_spec
11733
11734 # The coded name of the library, if different from the real name.
11735 soname_spec=$lt_soname_spec
11736
11737 # Commands used to build and install an old-style archive.
11738 RANLIB=$lt_RANLIB
11739 old_archive_cmds=$lt_old_archive_cmds
11740 old_postinstall_cmds=$lt_old_postinstall_cmds
11741 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11742
11743 # Create an old-style archive from a shared archive.
11744 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11745
11746 # Create a temporary old-style archive to link instead of a shared archive.
11747 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11748
11749 # Commands used to build and install a shared archive.
11750 archive_cmds=$lt_archive_cmds
11751 archive_expsym_cmds=$lt_archive_expsym_cmds
11752 postinstall_cmds=$lt_postinstall_cmds
11753 postuninstall_cmds=$lt_postuninstall_cmds
11754
11755 # Commands used to build a loadable module (assumed same as above if empty)
11756 module_cmds=$lt_module_cmds
11757 module_expsym_cmds=$lt_module_expsym_cmds
11758
11759 # Commands to strip libraries.
11760 old_striplib=$lt_old_striplib
11761 striplib=$lt_striplib
11762
11763 # Dependencies to place before the objects being linked to create a
11764 # shared library.
11765 predep_objects=$lt_predep_objects
11766
11767 # Dependencies to place after the objects being linked to create a
11768 # shared library.
11769 postdep_objects=$lt_postdep_objects
11770
11771 # Dependencies to place before the objects being linked to create a
11772 # shared library.
11773 predeps=$lt_predeps
11774
11775 # Dependencies to place after the objects being linked to create a
11776 # shared library.
11777 postdeps=$lt_postdeps
11778
11779 # The library search path used internally by the compiler when linking
11780 # a shared library.
11781 compiler_lib_search_path=$lt_compiler_lib_search_path
11782
11783 # Method to check whether dependent libraries are shared objects.
11784 deplibs_check_method=$lt_deplibs_check_method
11785
11786 # Command to use when deplibs_check_method == file_magic.
11787 file_magic_cmd=$lt_file_magic_cmd
11788
11789 # Flag that allows shared libraries with undefined symbols to be built.
11790 allow_undefined_flag=$lt_allow_undefined_flag
11791
11792 # Flag that forces no undefined symbols.
11793 no_undefined_flag=$lt_no_undefined_flag
11794
11795 # Commands used to finish a libtool library installation in a directory.
11796 finish_cmds=$lt_finish_cmds
11797
11798 # Same as above, but a single script fragment to be evaled but not shown.
11799 finish_eval=$lt_finish_eval
11800
11801 # Take the output of nm and produce a listing of raw symbols and C names.
11802 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11803
11804 # Transform the output of nm in a proper C declaration
11805 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11806
11807 # Transform the output of nm in a C name address pair
11808 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11809
11810 # This is the shared library runtime path variable.
11811 runpath_var=$runpath_var
11812
11813 # This is the shared library path variable.
11814 shlibpath_var=$shlibpath_var
11815
11816 # Is shlibpath searched before the hard-coded library search path?
11817 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11818
11819 # How to hardcode a shared library path into an executable.
11820 hardcode_action=$hardcode_action
11821
11822 # Whether we should hardcode library paths into libraries.
11823 hardcode_into_libs=$hardcode_into_libs
11824
11825 # Flag to hardcode \$libdir into a binary during linking.
11826 # This must work even if \$libdir does not exist.
11827 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11828
11829 # If ld is used when linking, flag to hardcode \$libdir into
11830 # a binary during linking. This must work even if \$libdir does
11831 # not exist.
11832 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11833
11834 # Whether we need a single -rpath flag with a separated argument.
11835 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11836
11837 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11838 # resulting binary.
11839 hardcode_direct=$hardcode_direct
11840
11841 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11842 # resulting binary.
11843 hardcode_minus_L=$hardcode_minus_L
11844
11845 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11846 # the resulting binary.
11847 hardcode_shlibpath_var=$hardcode_shlibpath_var
11848
11849 # Set to yes if building a shared library automatically hardcodes DIR into the library
11850 # and all subsequent libraries and executables linked against it.
11851 hardcode_automatic=$hardcode_automatic
11852
11853 # Variables whose values should be saved in libtool wrapper scripts and
11854 # restored at relink time.
11855 variables_saved_for_relink="$variables_saved_for_relink"
11856
11857 # Whether libtool must link a program against all its dependency libraries.
11858 link_all_deplibs=$link_all_deplibs
11859
11860 # Compile-time system search path for libraries
11861 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11862
11863 # Run-time system search path for libraries
11864 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11865
11866 # Fix the shell variable \$srcfile for the compiler.
11867 fix_srcfile_path="$fix_srcfile_path"
11868
11869 # Set to yes if exported symbols are required.
11870 always_export_symbols=$always_export_symbols
11871
11872 # The commands to list exported symbols.
11873 export_symbols_cmds=$lt_export_symbols_cmds
11874
11875 # The commands to extract the exported symbol list from a shared archive.
11876 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11877
11878 # Symbols that should not be listed in the preloaded symbols.
11879 exclude_expsyms=$lt_exclude_expsyms
11880
11881 # Symbols that must always be exported.
11882 include_expsyms=$lt_include_expsyms
11883
11884 # ### END LIBTOOL CONFIG
11885
11886 __EOF__
11887
11888
11889   case $host_os in
11890   aix3*)
11891     cat <<\EOF >> "$cfgfile"
11892
11893 # AIX sometimes has problems with the GCC collect2 program.  For some
11894 # reason, if we set the COLLECT_NAMES environment variable, the problems
11895 # vanish in a puff of smoke.
11896 if test "X${COLLECT_NAMES+set}" != Xset; then
11897   COLLECT_NAMES=
11898   export COLLECT_NAMES
11899 fi
11900 EOF
11901     ;;
11902   esac
11903
11904   # We use sed instead of cat because bash on DJGPP gets confused if
11905   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11906   # text mode, it properly converts lines to CR/LF.  This bash problem
11907   # is reportedly fixed, but why not run on old versions too?
11908   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11909
11910   mv -f "$cfgfile" "$ofile" || \
11911     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11912   chmod +x "$ofile"
11913
11914 else
11915   # If there is no Makefile yet, we rely on a make rule to execute
11916   # `config.status --recheck' to rerun these tests and create the
11917   # libtool script then.
11918   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11919   if test -f "$ltmain_in"; then
11920     test -f Makefile && make "$ltmain"
11921   fi
11922 fi
11923
11924
11925 ac_ext=c
11926 ac_cpp='$CPP $CPPFLAGS'
11927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11930
11931 CC="$lt_save_CC"
11932
11933
11934 # Check whether --with-tags or --without-tags was given.
11935 if test "${with_tags+set}" = set; then
11936   withval="$with_tags"
11937   tagnames="$withval"
11938 fi;
11939
11940 if test -f "$ltmain" && test -n "$tagnames"; then
11941   if test ! -f "${ofile}"; then
11942     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11943 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11944   fi
11945
11946   if test -z "$LTCC"; then
11947     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11948     if test -z "$LTCC"; then
11949       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11950 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11951     else
11952       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11953 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11954     fi
11955   fi
11956
11957   # Extract list of available tagged configurations in $ofile.
11958   # Note that this assumes the entire list is on one line.
11959   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11960
11961   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11962   for tagname in $tagnames; do
11963     IFS="$lt_save_ifs"
11964     # Check whether tagname contains only valid characters
11965     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11966     "") ;;
11967     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11968 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11969    { (exit 1); exit 1; }; }
11970         ;;
11971     esac
11972
11973     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11974     then
11975       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11976 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11977    { (exit 1); exit 1; }; }
11978     fi
11979
11980     # Update the list of available tags.
11981     if test -n "$tagname"; then
11982       echo appending configuration tag \"$tagname\" to $ofile
11983
11984       case $tagname in
11985       CXX)
11986         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11987             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11988             (test "X$CXX" != "Xg++"))) ; then
11989           ac_ext=cc
11990 ac_cpp='$CXXCPP $CPPFLAGS'
11991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11994
11995
11996
11997
11998 archive_cmds_need_lc_CXX=no
11999 allow_undefined_flag_CXX=
12000 always_export_symbols_CXX=no
12001 archive_expsym_cmds_CXX=
12002 export_dynamic_flag_spec_CXX=
12003 hardcode_direct_CXX=no
12004 hardcode_libdir_flag_spec_CXX=
12005 hardcode_libdir_flag_spec_ld_CXX=
12006 hardcode_libdir_separator_CXX=
12007 hardcode_minus_L_CXX=no
12008 hardcode_automatic_CXX=no
12009 module_cmds_CXX=
12010 module_expsym_cmds_CXX=
12011 link_all_deplibs_CXX=unknown
12012 old_archive_cmds_CXX=$old_archive_cmds
12013 no_undefined_flag_CXX=
12014 whole_archive_flag_spec_CXX=
12015 enable_shared_with_static_runtimes_CXX=no
12016
12017 # Dependencies to place before and after the object being linked:
12018 predep_objects_CXX=
12019 postdep_objects_CXX=
12020 predeps_CXX=
12021 postdeps_CXX=
12022 compiler_lib_search_path_CXX=
12023
12024 # Source file extension for C++ test sources.
12025 ac_ext=cc
12026
12027 # Object file extension for compiled C++ test sources.
12028 objext=o
12029 objext_CXX=$objext
12030
12031 # Code to be used in simple compile tests
12032 lt_simple_compile_test_code="int some_variable = 0;\n"
12033
12034 # Code to be used in simple link tests
12035 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
12036
12037 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12038
12039 # If no C compiler was specified, use CC.
12040 LTCC=${LTCC-"$CC"}
12041
12042 # Allow CC to be a program name with arguments.
12043 compiler=$CC
12044
12045
12046 # save warnings/boilerplate of simple test code
12047 ac_outfile=conftest.$ac_objext
12048 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12049 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12050 _lt_compiler_boilerplate=`cat conftest.err`
12051 $rm conftest*
12052
12053 ac_outfile=conftest.$ac_objext
12054 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12055 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12056 _lt_linker_boilerplate=`cat conftest.err`
12057 $rm conftest*
12058
12059
12060 # Allow CC to be a program name with arguments.
12061 lt_save_CC=$CC
12062 lt_save_LD=$LD
12063 lt_save_GCC=$GCC
12064 GCC=$GXX
12065 lt_save_with_gnu_ld=$with_gnu_ld
12066 lt_save_path_LD=$lt_cv_path_LD
12067 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12068   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12069 else
12070   unset lt_cv_prog_gnu_ld
12071 fi
12072 if test -n "${lt_cv_path_LDCXX+set}"; then
12073   lt_cv_path_LD=$lt_cv_path_LDCXX
12074 else
12075   unset lt_cv_path_LD
12076 fi
12077 test -z "${LDCXX+set}" || LD=$LDCXX
12078 CC=${CXX-"c++"}
12079 compiler=$CC
12080 compiler_CXX=$CC
12081 for cc_temp in $compiler""; do
12082   case $cc_temp in
12083     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12084     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12085     \-*) ;;
12086     *) break;;
12087   esac
12088 done
12089 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12090
12091
12092 # We don't want -fno-exception wen compiling C++ code, so set the
12093 # no_builtin_flag separately
12094 if test "$GXX" = yes; then
12095   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12096 else
12097   lt_prog_compiler_no_builtin_flag_CXX=
12098 fi
12099
12100 if test "$GXX" = yes; then
12101   # Set up default GNU C++ configuration
12102
12103
12104 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12105 if test "${with_gnu_ld+set}" = set; then
12106   withval="$with_gnu_ld"
12107   test "$withval" = no || with_gnu_ld=yes
12108 else
12109   with_gnu_ld=no
12110 fi;
12111 ac_prog=ld
12112 if test "$GCC" = yes; then
12113   # Check if gcc -print-prog-name=ld gives a path.
12114   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12115 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12116   case $host in
12117   *-*-mingw*)
12118     # gcc leaves a trailing carriage return which upsets mingw
12119     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12120   *)
12121     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12122   esac
12123   case $ac_prog in
12124     # Accept absolute paths.
12125     [\\/]* | ?:[\\/]*)
12126       re_direlt='/[^/][^/]*/\.\./'
12127       # Canonicalize the pathname of ld
12128       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12129       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12130         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12131       done
12132       test -z "$LD" && LD="$ac_prog"
12133       ;;
12134   "")
12135     # If it fails, then pretend we aren't using GCC.
12136     ac_prog=ld
12137     ;;
12138   *)
12139     # If it is relative, then search for the first ld in PATH.
12140     with_gnu_ld=unknown
12141     ;;
12142   esac
12143 elif test "$with_gnu_ld" = yes; then
12144   echo "$as_me:$LINENO: checking for GNU ld" >&5
12145 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12146 else
12147   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12148 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12149 fi
12150 if test "${lt_cv_path_LD+set}" = set; then
12151   echo $ECHO_N "(cached) $ECHO_C" >&6
12152 else
12153   if test -z "$LD"; then
12154   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12155   for ac_dir in $PATH; do
12156     IFS="$lt_save_ifs"
12157     test -z "$ac_dir" && ac_dir=.
12158     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12159       lt_cv_path_LD="$ac_dir/$ac_prog"
12160       # Check to see if the program is GNU ld.  I'd rather use --version,
12161       # but apparently some GNU ld's only accept -v.
12162       # Break only if it was the GNU/non-GNU ld that we prefer.
12163       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12164       *GNU* | *'with BFD'*)
12165         test "$with_gnu_ld" != no && break
12166         ;;
12167       *)
12168         test "$with_gnu_ld" != yes && break
12169         ;;
12170       esac
12171     fi
12172   done
12173   IFS="$lt_save_ifs"
12174 else
12175   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12176 fi
12177 fi
12178
12179 LD="$lt_cv_path_LD"
12180 if test -n "$LD"; then
12181   echo "$as_me:$LINENO: result: $LD" >&5
12182 echo "${ECHO_T}$LD" >&6
12183 else
12184   echo "$as_me:$LINENO: result: no" >&5
12185 echo "${ECHO_T}no" >&6
12186 fi
12187 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12188 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12189    { (exit 1); exit 1; }; }
12190 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12191 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12192 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12193   echo $ECHO_N "(cached) $ECHO_C" >&6
12194 else
12195   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12196 case `$LD -v 2>&1 </dev/null` in
12197 *GNU* | *'with BFD'*)
12198   lt_cv_prog_gnu_ld=yes
12199   ;;
12200 *)
12201   lt_cv_prog_gnu_ld=no
12202   ;;
12203 esac
12204 fi
12205 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12206 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12207 with_gnu_ld=$lt_cv_prog_gnu_ld
12208
12209
12210
12211   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12212   # archiving commands below assume that GNU ld is being used.
12213   if test "$with_gnu_ld" = yes; then
12214     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12215     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'
12216
12217     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12218     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12219
12220     # If archive_cmds runs LD, not CC, wlarc should be empty
12221     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12222     #     investigate it a little bit more. (MM)
12223     wlarc='${wl}'
12224
12225     # ancient GNU ld didn't support --whole-archive et. al.
12226     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12227         grep 'no-whole-archive' > /dev/null; then
12228       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12229     else
12230       whole_archive_flag_spec_CXX=
12231     fi
12232   else
12233     with_gnu_ld=no
12234     wlarc=
12235
12236     # A generic and very simple default shared library creation
12237     # command for GNU C++ for the case where it uses the native
12238     # linker, instead of GNU ld.  If possible, this setting should
12239     # overridden to take advantage of the native linker features on
12240     # the platform it is being used on.
12241     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12242   fi
12243
12244   # Commands to make compiler produce verbose output that lists
12245   # what "hidden" libraries, object files and flags are used when
12246   # linking a shared library.
12247   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12248
12249 else
12250   GXX=no
12251   with_gnu_ld=no
12252   wlarc=
12253 fi
12254
12255 # PORTME: fill in a description of your system's C++ link characteristics
12256 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12257 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12258 ld_shlibs_CXX=yes
12259 case $host_os in
12260   aix3*)
12261     # FIXME: insert proper C++ library support
12262     ld_shlibs_CXX=no
12263     ;;
12264   aix4* | aix5*)
12265     if test "$host_cpu" = ia64; then
12266       # On IA64, the linker does run time linking by default, so we don't
12267       # have to do anything special.
12268       aix_use_runtimelinking=no
12269       exp_sym_flag='-Bexport'
12270       no_entry_flag=""
12271     else
12272       aix_use_runtimelinking=no
12273
12274       # Test if we are trying to use run time linking or normal
12275       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12276       # need to do runtime linking.
12277       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12278         for ld_flag in $LDFLAGS; do
12279           case $ld_flag in
12280           *-brtl*)
12281             aix_use_runtimelinking=yes
12282             break
12283             ;;
12284           esac
12285         done
12286       esac
12287
12288       exp_sym_flag='-bexport'
12289       no_entry_flag='-bnoentry'
12290     fi
12291
12292     # When large executables or shared objects are built, AIX ld can
12293     # have problems creating the table of contents.  If linking a library
12294     # or program results in "error TOC overflow" add -mminimal-toc to
12295     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12296     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12297
12298     archive_cmds_CXX=''
12299     hardcode_direct_CXX=yes
12300     hardcode_libdir_separator_CXX=':'
12301     link_all_deplibs_CXX=yes
12302
12303     if test "$GXX" = yes; then
12304       case $host_os in aix4.[012]|aix4.[012].*)
12305       # We only want to do this on AIX 4.2 and lower, the check
12306       # below for broken collect2 doesn't work under 4.3+
12307         collect2name=`${CC} -print-prog-name=collect2`
12308         if test -f "$collect2name" && \
12309            strings "$collect2name" | grep resolve_lib_name >/dev/null
12310         then
12311           # We have reworked collect2
12312           hardcode_direct_CXX=yes
12313         else
12314           # We have old collect2
12315           hardcode_direct_CXX=unsupported
12316           # It fails to find uninstalled libraries when the uninstalled
12317           # path is not listed in the libpath.  Setting hardcode_minus_L
12318           # to unsupported forces relinking
12319           hardcode_minus_L_CXX=yes
12320           hardcode_libdir_flag_spec_CXX='-L$libdir'
12321           hardcode_libdir_separator_CXX=
12322         fi
12323       esac
12324       shared_flag='-shared'
12325       if test "$aix_use_runtimelinking" = yes; then
12326         shared_flag="$shared_flag "'${wl}-G'
12327       fi
12328     else
12329       # not using gcc
12330       if test "$host_cpu" = ia64; then
12331         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12332         # chokes on -Wl,-G. The following line is correct:
12333         shared_flag='-G'
12334       else
12335         if test "$aix_use_runtimelinking" = yes; then
12336           shared_flag='${wl}-G'
12337         else
12338           shared_flag='${wl}-bM:SRE'
12339         fi
12340       fi
12341     fi
12342
12343     # It seems that -bexpall does not export symbols beginning with
12344     # underscore (_), so it is better to generate a list of symbols to export.
12345     always_export_symbols_CXX=yes
12346     if test "$aix_use_runtimelinking" = yes; then
12347       # Warning - without using the other runtime loading flags (-brtl),
12348       # -berok will link without error, but may produce a broken library.
12349       allow_undefined_flag_CXX='-berok'
12350       # Determine the default libpath from the value encoded in an empty executable.
12351       cat >conftest.$ac_ext <<_ACEOF
12352 /* confdefs.h.  */
12353 _ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h.  */
12357
12358 int
12359 main ()
12360 {
12361
12362   ;
12363   return 0;
12364 }
12365 _ACEOF
12366 rm -f conftest.$ac_objext conftest$ac_exeext
12367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12368   (eval $ac_link) 2>conftest.er1
12369   ac_status=$?
12370   grep -v '^ *+' conftest.er1 >conftest.err
12371   rm -f conftest.er1
12372   cat conftest.err >&5
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); } &&
12375          { ac_try='test -z "$ac_cxx_werror_flag"
12376                          || test ! -s conftest.err'
12377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378   (eval $ac_try) 2>&5
12379   ac_status=$?
12380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381   (exit $ac_status); }; } &&
12382          { ac_try='test -s conftest$ac_exeext'
12383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12384   (eval $ac_try) 2>&5
12385   ac_status=$?
12386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387   (exit $ac_status); }; }; then
12388
12389 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12390 }'`
12391 # Check for a 64-bit object if we didn't find anything.
12392 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; }
12393 }'`; fi
12394 else
12395   echo "$as_me: failed program was:" >&5
12396 sed 's/^/| /' conftest.$ac_ext >&5
12397
12398 fi
12399 rm -f conftest.err conftest.$ac_objext \
12400       conftest$ac_exeext conftest.$ac_ext
12401 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12402
12403       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12404
12405       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"
12406      else
12407       if test "$host_cpu" = ia64; then
12408         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12409         allow_undefined_flag_CXX="-z nodefs"
12410         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"
12411       else
12412         # Determine the default libpath from the value encoded in an empty executable.
12413         cat >conftest.$ac_ext <<_ACEOF
12414 /* confdefs.h.  */
12415 _ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h.  */
12419
12420 int
12421 main ()
12422 {
12423
12424   ;
12425   return 0;
12426 }
12427 _ACEOF
12428 rm -f conftest.$ac_objext conftest$ac_exeext
12429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12430   (eval $ac_link) 2>conftest.er1
12431   ac_status=$?
12432   grep -v '^ *+' conftest.er1 >conftest.err
12433   rm -f conftest.er1
12434   cat conftest.err >&5
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); } &&
12437          { ac_try='test -z "$ac_cxx_werror_flag"
12438                          || test ! -s conftest.err'
12439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440   (eval $ac_try) 2>&5
12441   ac_status=$?
12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); }; } &&
12444          { ac_try='test -s conftest$ac_exeext'
12445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446   (eval $ac_try) 2>&5
12447   ac_status=$?
12448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449   (exit $ac_status); }; }; then
12450
12451 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12452 }'`
12453 # Check for a 64-bit object if we didn't find anything.
12454 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; }
12455 }'`; fi
12456 else
12457   echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12459
12460 fi
12461 rm -f conftest.err conftest.$ac_objext \
12462       conftest$ac_exeext conftest.$ac_ext
12463 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12464
12465         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12466         # Warning - without using the other run time loading flags,
12467         # -berok will link without error, but may produce a broken library.
12468         no_undefined_flag_CXX=' ${wl}-bernotok'
12469         allow_undefined_flag_CXX=' ${wl}-berok'
12470         # -bexpall does not export symbols beginning with underscore (_)
12471         always_export_symbols_CXX=yes
12472         # Exported symbols can be pulled into shared objects from archives
12473         whole_archive_flag_spec_CXX=' '
12474         archive_cmds_need_lc_CXX=yes
12475         # This is similar to how AIX traditionally builds it's shared libraries.
12476         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'
12477       fi
12478     fi
12479     ;;
12480   chorus*)
12481     case $cc_basename in
12482       *)
12483         # FIXME: insert proper C++ library support
12484         ld_shlibs_CXX=no
12485         ;;
12486     esac
12487     ;;
12488
12489
12490   cygwin* | mingw* | pw32*)
12491     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12492     # as there is no search path for DLLs.
12493     hardcode_libdir_flag_spec_CXX='-L$libdir'
12494     allow_undefined_flag_CXX=unsupported
12495     always_export_symbols_CXX=no
12496     enable_shared_with_static_runtimes_CXX=yes
12497
12498     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12499       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'
12500       # If the export-symbols file already is a .def file (1st line
12501       # is EXPORTS), use it as is; otherwise, prepend...
12502       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12503         cp $export_symbols $output_objdir/$soname.def;
12504       else
12505         echo EXPORTS > $output_objdir/$soname.def;
12506         cat $export_symbols >> $output_objdir/$soname.def;
12507       fi~
12508       $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'
12509     else
12510       ld_shlibs_CXX=no
12511     fi
12512   ;;
12513       darwin* | rhapsody*)
12514         case "$host_os" in
12515         rhapsody* | darwin1.[012])
12516          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12517          ;;
12518        *) # Darwin 1.3 on
12519          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12520            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12521          else
12522            case ${MACOSX_DEPLOYMENT_TARGET} in
12523              10.[012])
12524                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12525                ;;
12526              10.*)
12527                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12528                ;;
12529            esac
12530          fi
12531          ;;
12532         esac
12533       archive_cmds_need_lc_CXX=no
12534       hardcode_direct_CXX=no
12535       hardcode_automatic_CXX=yes
12536       hardcode_shlibpath_var_CXX=unsupported
12537       whole_archive_flag_spec_CXX=''
12538       link_all_deplibs_CXX=yes
12539
12540     if test "$GXX" = yes ; then
12541       lt_int_apple_cc_single_mod=no
12542       output_verbose_link_cmd='echo'
12543       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12544        lt_int_apple_cc_single_mod=yes
12545       fi
12546       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12547        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12548       else
12549           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'
12550         fi
12551         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12552         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12553           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12554             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}'
12555           else
12556             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}'
12557           fi
12558             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}'
12559       else
12560       case $cc_basename in
12561         xlc*)
12562          output_verbose_link_cmd='echo'
12563           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'
12564           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12565           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12566           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}'
12567           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}'
12568           ;;
12569        *)
12570          ld_shlibs_CXX=no
12571           ;;
12572       esac
12573       fi
12574         ;;
12575
12576   dgux*)
12577     case $cc_basename in
12578       ec++*)
12579         # FIXME: insert proper C++ library support
12580         ld_shlibs_CXX=no
12581         ;;
12582       ghcx*)
12583         # Green Hills C++ Compiler
12584         # FIXME: insert proper C++ library support
12585         ld_shlibs_CXX=no
12586         ;;
12587       *)
12588         # FIXME: insert proper C++ library support
12589         ld_shlibs_CXX=no
12590         ;;
12591     esac
12592     ;;
12593   freebsd[12]*)
12594     # C++ shared libraries reported to be fairly broken before switch to ELF
12595     ld_shlibs_CXX=no
12596     ;;
12597   freebsd-elf*)
12598     archive_cmds_need_lc_CXX=no
12599     ;;
12600   freebsd* | kfreebsd*-gnu | dragonfly*)
12601     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12602     # conventions
12603     ld_shlibs_CXX=yes
12604     ;;
12605   gnu*)
12606     ;;
12607   hpux9*)
12608     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12609     hardcode_libdir_separator_CXX=:
12610     export_dynamic_flag_spec_CXX='${wl}-E'
12611     hardcode_direct_CXX=yes
12612     hardcode_minus_L_CXX=yes # Not in the search PATH,
12613                                 # but as the default
12614                                 # location of the library.
12615
12616     case $cc_basename in
12617     CC*)
12618       # FIXME: insert proper C++ library support
12619       ld_shlibs_CXX=no
12620       ;;
12621     aCC*)
12622       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'
12623       # Commands to make compiler produce verbose output that lists
12624       # what "hidden" libraries, object files and flags are used when
12625       # linking a shared library.
12626       #
12627       # There doesn't appear to be a way to prevent this compiler from
12628       # explicitly linking system object files so we need to strip them
12629       # from the output so that they don't get included in the library
12630       # dependencies.
12631       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'
12632       ;;
12633     *)
12634       if test "$GXX" = yes; then
12635         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'
12636       else
12637         # FIXME: insert proper C++ library support
12638         ld_shlibs_CXX=no
12639       fi
12640       ;;
12641     esac
12642     ;;
12643   hpux10*|hpux11*)
12644     if test $with_gnu_ld = no; then
12645       case "$host_cpu" in
12646       hppa*64*)
12647         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12648         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12649         hardcode_libdir_separator_CXX=:
12650         ;;
12651       ia64*)
12652         hardcode_libdir_flag_spec_CXX='-L$libdir'
12653         ;;
12654       *)
12655         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12656         hardcode_libdir_separator_CXX=:
12657         export_dynamic_flag_spec_CXX='${wl}-E'
12658         ;;
12659       esac
12660     fi
12661     case "$host_cpu" in
12662     hppa*64*)
12663       hardcode_direct_CXX=no
12664       hardcode_shlibpath_var_CXX=no
12665       ;;
12666     ia64*)
12667       hardcode_direct_CXX=no
12668       hardcode_shlibpath_var_CXX=no
12669       hardcode_minus_L_CXX=yes # Not in the search PATH,
12670                                               # but as the default
12671                                               # location of the library.
12672       ;;
12673     *)
12674       hardcode_direct_CXX=yes
12675       hardcode_minus_L_CXX=yes # Not in the search PATH,
12676                                               # but as the default
12677                                               # location of the library.
12678       ;;
12679     esac
12680
12681     case $cc_basename in
12682       CC*)
12683         # FIXME: insert proper C++ library support
12684         ld_shlibs_CXX=no
12685         ;;
12686       aCC*)
12687         case "$host_cpu" in
12688         hppa*64*|ia64*)
12689           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12690           ;;
12691         *)
12692           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12693           ;;
12694         esac
12695         # Commands to make compiler produce verbose output that lists
12696         # what "hidden" libraries, object files and flags are used when
12697         # linking a shared library.
12698         #
12699         # There doesn't appear to be a way to prevent this compiler from
12700         # explicitly linking system object files so we need to strip them
12701         # from the output so that they don't get included in the library
12702         # dependencies.
12703         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'
12704         ;;
12705       *)
12706         if test "$GXX" = yes; then
12707           if test $with_gnu_ld = no; then
12708             case "$host_cpu" in
12709             ia64*|hppa*64*)
12710               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12711               ;;
12712             *)
12713               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'
12714               ;;
12715             esac
12716           fi
12717         else
12718           # FIXME: insert proper C++ library support
12719           ld_shlibs_CXX=no
12720         fi
12721         ;;
12722     esac
12723     ;;
12724   irix5* | irix6*)
12725     case $cc_basename in
12726       CC*)
12727         # SGI C++
12728         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'
12729
12730         # Archives containing C++ object files must be created using
12731         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12732         # necessary to make sure instantiated templates are included
12733         # in the archive.
12734         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12735         ;;
12736       *)
12737         if test "$GXX" = yes; then
12738           if test "$with_gnu_ld" = no; then
12739             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'
12740           else
12741             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'
12742           fi
12743         fi
12744         link_all_deplibs_CXX=yes
12745         ;;
12746     esac
12747     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12748     hardcode_libdir_separator_CXX=:
12749     ;;
12750   linux*)
12751     case $cc_basename in
12752       KCC*)
12753         # Kuck and Associates, Inc. (KAI) C++ Compiler
12754
12755         # KCC will only create a shared library if the output file
12756         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12757         # to its proper name (with version) after linking.
12758         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'
12759         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'
12760         # Commands to make compiler produce verbose output that lists
12761         # what "hidden" libraries, object files and flags are used when
12762         # linking a shared library.
12763         #
12764         # There doesn't appear to be a way to prevent this compiler from
12765         # explicitly linking system object files so we need to strip them
12766         # from the output so that they don't get included in the library
12767         # dependencies.
12768         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'
12769
12770         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12771         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12772
12773         # Archives containing C++ object files must be created using
12774         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12775         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12776         ;;
12777       icpc*)
12778         # Intel C++
12779         with_gnu_ld=yes
12780         # version 8.0 and above of icpc choke on multiply defined symbols
12781         # if we add $predep_objects and $postdep_objects, however 7.1 and
12782         # earlier do not add the objects themselves.
12783         case `$CC -V 2>&1` in
12784         *"Version 7."*)
12785           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12786           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'
12787           ;;
12788         *)  # Version 8.0 or newer
12789           tmp_idyn=
12790           case $host_cpu in
12791             ia64*) tmp_idyn=' -i_dynamic';;
12792           esac
12793           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12794           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'
12795           ;;
12796         esac
12797         archive_cmds_need_lc_CXX=no
12798         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12799         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12800         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12801         ;;
12802       pgCC*)
12803         # Portland Group C++ compiler
12804         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12805         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'
12806
12807         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12808         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12809         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'
12810         ;;
12811       cxx*)
12812         # Compaq C++
12813         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12814         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'
12815
12816         runpath_var=LD_RUN_PATH
12817         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12818         hardcode_libdir_separator_CXX=:
12819
12820         # Commands to make compiler produce verbose output that lists
12821         # what "hidden" libraries, object files and flags are used when
12822         # linking a shared library.
12823         #
12824         # There doesn't appear to be a way to prevent this compiler from
12825         # explicitly linking system object files so we need to strip them
12826         # from the output so that they don't get included in the library
12827         # dependencies.
12828         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'
12829         ;;
12830     esac
12831     ;;
12832   lynxos*)
12833     # FIXME: insert proper C++ library support
12834     ld_shlibs_CXX=no
12835     ;;
12836   m88k*)
12837     # FIXME: insert proper C++ library support
12838     ld_shlibs_CXX=no
12839     ;;
12840   mvs*)
12841     case $cc_basename in
12842       cxx*)
12843         # FIXME: insert proper C++ library support
12844         ld_shlibs_CXX=no
12845         ;;
12846       *)
12847         # FIXME: insert proper C++ library support
12848         ld_shlibs_CXX=no
12849         ;;
12850     esac
12851     ;;
12852   netbsd*)
12853     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12854       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12855       wlarc=
12856       hardcode_libdir_flag_spec_CXX='-R$libdir'
12857       hardcode_direct_CXX=yes
12858       hardcode_shlibpath_var_CXX=no
12859     fi
12860     # Workaround some broken pre-1.5 toolchains
12861     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12862     ;;
12863   openbsd2*)
12864     # C++ shared libraries are fairly broken
12865     ld_shlibs_CXX=no
12866     ;;
12867   openbsd*)
12868     hardcode_direct_CXX=yes
12869     hardcode_shlibpath_var_CXX=no
12870     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12871     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12872     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12873       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12874       export_dynamic_flag_spec_CXX='${wl}-E'
12875       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12876     fi
12877     output_verbose_link_cmd='echo'
12878     ;;
12879   osf3*)
12880     case $cc_basename in
12881       KCC*)
12882         # Kuck and Associates, Inc. (KAI) C++ Compiler
12883
12884         # KCC will only create a shared library if the output file
12885         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12886         # to its proper name (with version) after linking.
12887         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'
12888
12889         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12890         hardcode_libdir_separator_CXX=:
12891
12892         # Archives containing C++ object files must be created using
12893         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12894         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12895
12896         ;;
12897       RCC*)
12898         # Rational C++ 2.4.1
12899         # FIXME: insert proper C++ library support
12900         ld_shlibs_CXX=no
12901         ;;
12902       cxx*)
12903         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12904         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'
12905
12906         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12907         hardcode_libdir_separator_CXX=:
12908
12909         # Commands to make compiler produce verbose output that lists
12910         # what "hidden" libraries, object files and flags are used when
12911         # linking a shared library.
12912         #
12913         # There doesn't appear to be a way to prevent this compiler from
12914         # explicitly linking system object files so we need to strip them
12915         # from the output so that they don't get included in the library
12916         # dependencies.
12917         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'
12918         ;;
12919       *)
12920         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12921           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12922           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'
12923
12924           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12925           hardcode_libdir_separator_CXX=:
12926
12927           # Commands to make compiler produce verbose output that lists
12928           # what "hidden" libraries, object files and flags are used when
12929           # linking a shared library.
12930           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12931
12932         else
12933           # FIXME: insert proper C++ library support
12934           ld_shlibs_CXX=no
12935         fi
12936         ;;
12937     esac
12938     ;;
12939   osf4* | osf5*)
12940     case $cc_basename in
12941       KCC*)
12942         # Kuck and Associates, Inc. (KAI) C++ Compiler
12943
12944         # KCC will only create a shared library if the output file
12945         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12946         # to its proper name (with version) after linking.
12947         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'
12948
12949         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12950         hardcode_libdir_separator_CXX=:
12951
12952         # Archives containing C++ object files must be created using
12953         # the KAI C++ compiler.
12954         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12955         ;;
12956       RCC*)
12957         # Rational C++ 2.4.1
12958         # FIXME: insert proper C++ library support
12959         ld_shlibs_CXX=no
12960         ;;
12961       cxx*)
12962         allow_undefined_flag_CXX=' -expect_unresolved \*'
12963         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'
12964         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12965           echo "-hidden">> $lib.exp~
12966           $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~
12967           $rm $lib.exp'
12968
12969         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12970         hardcode_libdir_separator_CXX=:
12971
12972         # Commands to make compiler produce verbose output that lists
12973         # what "hidden" libraries, object files and flags are used when
12974         # linking a shared library.
12975         #
12976         # There doesn't appear to be a way to prevent this compiler from
12977         # explicitly linking system object files so we need to strip them
12978         # from the output so that they don't get included in the library
12979         # dependencies.
12980         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'
12981         ;;
12982       *)
12983         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12984           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12985          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'
12986
12987           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12988           hardcode_libdir_separator_CXX=:
12989
12990           # Commands to make compiler produce verbose output that lists
12991           # what "hidden" libraries, object files and flags are used when
12992           # linking a shared library.
12993           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12994
12995         else
12996           # FIXME: insert proper C++ library support
12997           ld_shlibs_CXX=no
12998         fi
12999         ;;
13000     esac
13001     ;;
13002   psos*)
13003     # FIXME: insert proper C++ library support
13004     ld_shlibs_CXX=no
13005     ;;
13006   sco*)
13007     archive_cmds_need_lc_CXX=no
13008     case $cc_basename in
13009       CC*)
13010         # FIXME: insert proper C++ library support
13011         ld_shlibs_CXX=no
13012         ;;
13013       *)
13014         # FIXME: insert proper C++ library support
13015         ld_shlibs_CXX=no
13016         ;;
13017     esac
13018     ;;
13019   sunos4*)
13020     case $cc_basename in
13021       CC*)
13022         # Sun C++ 4.x
13023         # FIXME: insert proper C++ library support
13024         ld_shlibs_CXX=no
13025         ;;
13026       lcc*)
13027         # Lucid
13028         # FIXME: insert proper C++ library support
13029         ld_shlibs_CXX=no
13030         ;;
13031       *)
13032         # FIXME: insert proper C++ library support
13033         ld_shlibs_CXX=no
13034         ;;
13035     esac
13036     ;;
13037   solaris*)
13038     case $cc_basename in
13039       CC*)
13040         # Sun C++ 4.2, 5.x and Centerline C++
13041         no_undefined_flag_CXX=' -zdefs'
13042         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13043         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13044         $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'
13045
13046         hardcode_libdir_flag_spec_CXX='-R$libdir'
13047         hardcode_shlibpath_var_CXX=no
13048         case $host_os in
13049           solaris2.[0-5] | solaris2.[0-5].*) ;;
13050           *)
13051             # The C++ compiler is used as linker so we must use $wl
13052             # flag to pass the commands to the underlying system
13053             # linker. We must also pass each convience library through
13054             # to the system linker between allextract/defaultextract.
13055             # The C++ compiler will combine linker options so we
13056             # cannot just pass the convience library names through
13057             # without $wl.
13058             # Supported since Solaris 2.6 (maybe 2.5.1?)
13059             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'
13060             ;;
13061         esac
13062         link_all_deplibs_CXX=yes
13063
13064         # Commands to make compiler produce verbose output that lists
13065         # what "hidden" libraries, object files and flags are used when
13066         # linking a shared library.
13067         #
13068         # There doesn't appear to be a way to prevent this compiler from
13069         # explicitly linking system object files so we need to strip them
13070         # from the output so that they don't get included in the library
13071         # dependencies.
13072         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'
13073
13074         # Archives containing C++ object files must be created using
13075         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13076         # necessary to make sure instantiated templates are included
13077         # in the archive.
13078         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13079         ;;
13080       gcx*)
13081         # Green Hills C++ Compiler
13082         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13083
13084         # The C++ compiler must be used to create the archive.
13085         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13086         ;;
13087       *)
13088         # GNU C++ compiler with Solaris linker
13089         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13090           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13091           if $CC --version | grep -v '^2\.7' > /dev/null; then
13092             archive_cmds_CXX='$CC -shared -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 -shared -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 -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13100           else
13101             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13102             # platform.
13103             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13104             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13105                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13106
13107             # Commands to make compiler produce verbose output that lists
13108             # what "hidden" libraries, object files and flags are used when
13109             # linking a shared library.
13110             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13111           fi
13112
13113           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13114         fi
13115         ;;
13116     esac
13117     ;;
13118   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13119     archive_cmds_need_lc_CXX=no
13120     ;;
13121   tandem*)
13122     case $cc_basename in
13123       NCC*)
13124         # NonStop-UX NCC 3.20
13125         # FIXME: insert proper C++ library support
13126         ld_shlibs_CXX=no
13127         ;;
13128       *)
13129         # FIXME: insert proper C++ library support
13130         ld_shlibs_CXX=no
13131         ;;
13132     esac
13133     ;;
13134   vxworks*)
13135     # FIXME: insert proper C++ library support
13136     ld_shlibs_CXX=no
13137     ;;
13138   *)
13139     # FIXME: insert proper C++ library support
13140     ld_shlibs_CXX=no
13141     ;;
13142 esac
13143 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13144 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13145 test "$ld_shlibs_CXX" = no && can_build_shared=no
13146
13147 GCC_CXX="$GXX"
13148 LD_CXX="$LD"
13149
13150
13151 cat > conftest.$ac_ext <<EOF
13152 class Foo
13153 {
13154 public:
13155   Foo (void) { a = 0; }
13156 private:
13157   int a;
13158 };
13159 EOF
13160
13161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13162   (eval $ac_compile) 2>&5
13163   ac_status=$?
13164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165   (exit $ac_status); }; then
13166   # Parse the compiler output and extract the necessary
13167   # objects, libraries and library flags.
13168
13169   # Sentinel used to keep track of whether or not we are before
13170   # the conftest object file.
13171   pre_test_object_deps_done=no
13172
13173   # The `*' in the case matches for architectures that use `case' in
13174   # $output_verbose_cmd can trigger glob expansion during the loop
13175   # eval without this substitution.
13176   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13177
13178   for p in `eval $output_verbose_link_cmd`; do
13179     case $p in
13180
13181     -L* | -R* | -l*)
13182        # Some compilers place space between "-{L,R}" and the path.
13183        # Remove the space.
13184        if test $p = "-L" \
13185           || test $p = "-R"; then
13186          prev=$p
13187          continue
13188        else
13189          prev=
13190        fi
13191
13192        if test "$pre_test_object_deps_done" = no; then
13193          case $p in
13194          -L* | -R*)
13195            # Internal compiler library paths should come after those
13196            # provided the user.  The postdeps already come after the
13197            # user supplied libs so there is no need to process them.
13198            if test -z "$compiler_lib_search_path_CXX"; then
13199              compiler_lib_search_path_CXX="${prev}${p}"
13200            else
13201              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13202            fi
13203            ;;
13204          # The "-l" case would never come before the object being
13205          # linked, so don't bother handling this case.
13206          esac
13207        else
13208          if test -z "$postdeps_CXX"; then
13209            postdeps_CXX="${prev}${p}"
13210          else
13211            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13212          fi
13213        fi
13214        ;;
13215
13216     *.$objext)
13217        # This assumes that the test object file only shows up
13218        # once in the compiler output.
13219        if test "$p" = "conftest.$objext"; then
13220          pre_test_object_deps_done=yes
13221          continue
13222        fi
13223
13224        if test "$pre_test_object_deps_done" = no; then
13225          if test -z "$predep_objects_CXX"; then
13226            predep_objects_CXX="$p"
13227          else
13228            predep_objects_CXX="$predep_objects_CXX $p"
13229          fi
13230        else
13231          if test -z "$postdep_objects_CXX"; then
13232            postdep_objects_CXX="$p"
13233          else
13234            postdep_objects_CXX="$postdep_objects_CXX $p"
13235          fi
13236        fi
13237        ;;
13238
13239     *) ;; # Ignore the rest.
13240
13241     esac
13242   done
13243
13244   # Clean up.
13245   rm -f a.out a.exe
13246 else
13247   echo "libtool.m4: error: problem compiling CXX test program"
13248 fi
13249
13250 $rm -f confest.$objext
13251
13252 case " $postdeps_CXX " in
13253 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13254 esac
13255
13256 lt_prog_compiler_wl_CXX=
13257 lt_prog_compiler_pic_CXX=
13258 lt_prog_compiler_static_CXX=
13259
13260 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13261 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13262
13263   # C++ specific cases for pic, static, wl, etc.
13264   if test "$GXX" = yes; then
13265     lt_prog_compiler_wl_CXX='-Wl,'
13266     lt_prog_compiler_static_CXX='-static'
13267
13268     case $host_os in
13269     aix*)
13270       # All AIX code is PIC.
13271       if test "$host_cpu" = ia64; then
13272         # AIX 5 now supports IA64 processor
13273         lt_prog_compiler_static_CXX='-Bstatic'
13274       fi
13275       ;;
13276     amigaos*)
13277       # FIXME: we need at least 68020 code to build shared libraries, but
13278       # adding the `-m68020' flag to GCC prevents building anything better,
13279       # like `-m68040'.
13280       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13281       ;;
13282     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13283       # PIC is the default for these OSes.
13284       ;;
13285     mingw* | os2* | pw32*)
13286       # This hack is so that the source file can tell whether it is being
13287       # built for inclusion in a dll (and should export symbols for example).
13288       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13289       ;;
13290     darwin* | rhapsody*)
13291       # PIC is the default on this platform
13292       # Common symbols not allowed in MH_DYLIB files
13293       lt_prog_compiler_pic_CXX='-fno-common'
13294       ;;
13295     *djgpp*)
13296       # DJGPP does not support shared libraries at all
13297       lt_prog_compiler_pic_CXX=
13298       ;;
13299     sysv4*MP*)
13300       if test -d /usr/nec; then
13301         lt_prog_compiler_pic_CXX=-Kconform_pic
13302       fi
13303       ;;
13304     hpux*)
13305       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13306       # not for PA HP-UX.
13307       case "$host_cpu" in
13308       hppa*64*|ia64*)
13309         ;;
13310       *)
13311         lt_prog_compiler_pic_CXX='-fPIC'
13312         ;;
13313       esac
13314       ;;
13315     *)
13316       lt_prog_compiler_pic_CXX='-fPIC'
13317       ;;
13318     esac
13319   else
13320     case $host_os in
13321       aix4* | aix5*)
13322         # All AIX code is PIC.
13323         if test "$host_cpu" = ia64; then
13324           # AIX 5 now supports IA64 processor
13325           lt_prog_compiler_static_CXX='-Bstatic'
13326         else
13327           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13328         fi
13329         ;;
13330       chorus*)
13331         case $cc_basename in
13332         cxch68*)
13333           # Green Hills C++ Compiler
13334           # _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"
13335           ;;
13336         esac
13337         ;;
13338        darwin*)
13339          # PIC is the default on this platform
13340          # Common symbols not allowed in MH_DYLIB files
13341          case $cc_basename in
13342            xlc*)
13343            lt_prog_compiler_pic_CXX='-qnocommon'
13344            lt_prog_compiler_wl_CXX='-Wl,'
13345            ;;
13346          esac
13347        ;;
13348       dgux*)
13349         case $cc_basename in
13350           ec++*)
13351             lt_prog_compiler_pic_CXX='-KPIC'
13352             ;;
13353           ghcx*)
13354             # Green Hills C++ Compiler
13355             lt_prog_compiler_pic_CXX='-pic'
13356             ;;
13357           *)
13358             ;;
13359         esac
13360         ;;
13361       freebsd* | kfreebsd*-gnu | dragonfly*)
13362         # FreeBSD uses GNU C++
13363         ;;
13364       hpux9* | hpux10* | hpux11*)
13365         case $cc_basename in
13366           CC*)
13367             lt_prog_compiler_wl_CXX='-Wl,'
13368             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13369             if test "$host_cpu" != ia64; then
13370               lt_prog_compiler_pic_CXX='+Z'
13371             fi
13372             ;;
13373           aCC*)
13374             lt_prog_compiler_wl_CXX='-Wl,'
13375             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13376             case "$host_cpu" in
13377             hppa*64*|ia64*)
13378               # +Z the default
13379               ;;
13380             *)
13381               lt_prog_compiler_pic_CXX='+Z'
13382               ;;
13383             esac
13384             ;;
13385           *)
13386             ;;
13387         esac
13388         ;;
13389       irix5* | irix6* | nonstopux*)
13390         case $cc_basename in
13391           CC*)
13392             lt_prog_compiler_wl_CXX='-Wl,'
13393             lt_prog_compiler_static_CXX='-non_shared'
13394             # CC pic flag -KPIC is the default.
13395             ;;
13396           *)
13397             ;;
13398         esac
13399         ;;
13400       linux*)
13401         case $cc_basename in
13402           KCC*)
13403             # KAI C++ Compiler
13404             lt_prog_compiler_wl_CXX='--backend -Wl,'
13405             lt_prog_compiler_pic_CXX='-fPIC'
13406             ;;
13407           icpc* | ecpc*)
13408             # Intel C++
13409             lt_prog_compiler_wl_CXX='-Wl,'
13410             lt_prog_compiler_pic_CXX='-KPIC'
13411             lt_prog_compiler_static_CXX='-static'
13412             ;;
13413           pgCC*)
13414             # Portland Group C++ compiler.
13415             lt_prog_compiler_wl_CXX='-Wl,'
13416             lt_prog_compiler_pic_CXX='-fpic'
13417             lt_prog_compiler_static_CXX='-static'
13418             ;;
13419           cxx*)
13420             # Compaq C++
13421             # Make sure the PIC flag is empty.  It appears that all Alpha
13422             # Linux and Compaq Tru64 Unix objects are PIC.
13423             lt_prog_compiler_pic_CXX=
13424             lt_prog_compiler_static_CXX='-non_shared'
13425             ;;
13426           *)
13427             ;;
13428         esac
13429         ;;
13430       lynxos*)
13431         ;;
13432       m88k*)
13433         ;;
13434       mvs*)
13435         case $cc_basename in
13436           cxx*)
13437             lt_prog_compiler_pic_CXX='-W c,exportall'
13438             ;;
13439           *)
13440             ;;
13441         esac
13442         ;;
13443       netbsd*)
13444         ;;
13445       osf3* | osf4* | osf5*)
13446         case $cc_basename in
13447           KCC*)
13448             lt_prog_compiler_wl_CXX='--backend -Wl,'
13449             ;;
13450           RCC*)
13451             # Rational C++ 2.4.1
13452             lt_prog_compiler_pic_CXX='-pic'
13453             ;;
13454           cxx*)
13455             # Digital/Compaq C++
13456             lt_prog_compiler_wl_CXX='-Wl,'
13457             # Make sure the PIC flag is empty.  It appears that all Alpha
13458             # Linux and Compaq Tru64 Unix objects are PIC.
13459             lt_prog_compiler_pic_CXX=
13460             lt_prog_compiler_static_CXX='-non_shared'
13461             ;;
13462           *)
13463             ;;
13464         esac
13465         ;;
13466       psos*)
13467         ;;
13468       sco*)
13469         case $cc_basename in
13470           CC*)
13471             lt_prog_compiler_pic_CXX='-fPIC'
13472             ;;
13473           *)
13474             ;;
13475         esac
13476         ;;
13477       solaris*)
13478         case $cc_basename in
13479           CC*)
13480             # Sun C++ 4.2, 5.x and Centerline C++
13481             lt_prog_compiler_pic_CXX='-KPIC'
13482             lt_prog_compiler_static_CXX='-Bstatic'
13483             lt_prog_compiler_wl_CXX='-Qoption ld '
13484             ;;
13485           gcx*)
13486             # Green Hills C++ Compiler
13487             lt_prog_compiler_pic_CXX='-PIC'
13488             ;;
13489           *)
13490             ;;
13491         esac
13492         ;;
13493       sunos4*)
13494         case $cc_basename in
13495           CC*)
13496             # Sun C++ 4.x
13497             lt_prog_compiler_pic_CXX='-pic'
13498             lt_prog_compiler_static_CXX='-Bstatic'
13499             ;;
13500           lcc*)
13501             # Lucid
13502             lt_prog_compiler_pic_CXX='-pic'
13503             ;;
13504           *)
13505             ;;
13506         esac
13507         ;;
13508       tandem*)
13509         case $cc_basename in
13510           NCC*)
13511             # NonStop-UX NCC 3.20
13512             lt_prog_compiler_pic_CXX='-KPIC'
13513             ;;
13514           *)
13515             ;;
13516         esac
13517         ;;
13518       unixware*)
13519         ;;
13520       vxworks*)
13521         ;;
13522       *)
13523         lt_prog_compiler_can_build_shared_CXX=no
13524         ;;
13525     esac
13526   fi
13527
13528 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13529 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13530
13531 #
13532 # Check to make sure the PIC flag actually works.
13533 #
13534 if test -n "$lt_prog_compiler_pic_CXX"; then
13535
13536 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13537 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13538 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13539   echo $ECHO_N "(cached) $ECHO_C" >&6
13540 else
13541   lt_prog_compiler_pic_works_CXX=no
13542   ac_outfile=conftest.$ac_objext
13543    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13544    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13545    # Insert the option either (1) after the last *FLAGS variable, or
13546    # (2) before a word containing "conftest.", or (3) at the end.
13547    # Note that $ac_compile itself does not contain backslashes and begins
13548    # with a dollar sign (not a hyphen), so the echo should work correctly.
13549    # The option is referenced via a variable to avoid confusing sed.
13550    lt_compile=`echo "$ac_compile" | $SED \
13551    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13552    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13553    -e 's:$: $lt_compiler_flag:'`
13554    (eval echo "\"\$as_me:13554: $lt_compile\"" >&5)
13555    (eval "$lt_compile" 2>conftest.err)
13556    ac_status=$?
13557    cat conftest.err >&5
13558    echo "$as_me:13558: \$? = $ac_status" >&5
13559    if (exit $ac_status) && test -s "$ac_outfile"; then
13560      # The compiler can only warn and ignore the option if not recognized
13561      # So say no if there are warnings other than the usual output.
13562      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13563      $SED '/^$/d' conftest.err >conftest.er2
13564      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13565        lt_prog_compiler_pic_works_CXX=yes
13566      fi
13567    fi
13568    $rm conftest*
13569
13570 fi
13571 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13572 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13573
13574 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13575     case $lt_prog_compiler_pic_CXX in
13576      "" | " "*) ;;
13577      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13578      esac
13579 else
13580     lt_prog_compiler_pic_CXX=
13581      lt_prog_compiler_can_build_shared_CXX=no
13582 fi
13583
13584 fi
13585 case "$host_os" in
13586   # For platforms which do not support PIC, -DPIC is meaningless:
13587   *djgpp*)
13588     lt_prog_compiler_pic_CXX=
13589     ;;
13590   *)
13591     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13592     ;;
13593 esac
13594
13595 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13596 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13597 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13598   echo $ECHO_N "(cached) $ECHO_C" >&6
13599 else
13600   lt_cv_prog_compiler_c_o_CXX=no
13601    $rm -r conftest 2>/dev/null
13602    mkdir conftest
13603    cd conftest
13604    mkdir out
13605    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13606
13607    lt_compiler_flag="-o out/conftest2.$ac_objext"
13608    # Insert the option either (1) after the last *FLAGS variable, or
13609    # (2) before a word containing "conftest.", or (3) at the end.
13610    # Note that $ac_compile itself does not contain backslashes and begins
13611    # with a dollar sign (not a hyphen), so the echo should work correctly.
13612    lt_compile=`echo "$ac_compile" | $SED \
13613    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13614    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13615    -e 's:$: $lt_compiler_flag:'`
13616    (eval echo "\"\$as_me:13616: $lt_compile\"" >&5)
13617    (eval "$lt_compile" 2>out/conftest.err)
13618    ac_status=$?
13619    cat out/conftest.err >&5
13620    echo "$as_me:13620: \$? = $ac_status" >&5
13621    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13622    then
13623      # The compiler can only warn and ignore the option if not recognized
13624      # So say no if there are warnings
13625      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13626      $SED '/^$/d' out/conftest.err >out/conftest.er2
13627      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13628        lt_cv_prog_compiler_c_o_CXX=yes
13629      fi
13630    fi
13631    chmod u+w .
13632    $rm conftest*
13633    # SGI C++ compiler will create directory out/ii_files/ for
13634    # template instantiation
13635    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13636    $rm out/* && rmdir out
13637    cd ..
13638    rmdir conftest
13639    $rm conftest*
13640
13641 fi
13642 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13643 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13644
13645
13646 hard_links="nottested"
13647 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13648   # do not overwrite the value of need_locks provided by the user
13649   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13650 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13651   hard_links=yes
13652   $rm conftest*
13653   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13654   touch conftest.a
13655   ln conftest.a conftest.b 2>&5 || hard_links=no
13656   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13657   echo "$as_me:$LINENO: result: $hard_links" >&5
13658 echo "${ECHO_T}$hard_links" >&6
13659   if test "$hard_links" = no; then
13660     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13661 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13662     need_locks=warn
13663   fi
13664 else
13665   need_locks=no
13666 fi
13667
13668 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13669 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13670
13671   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13672   case $host_os in
13673   aix4* | aix5*)
13674     # If we're using GNU nm, then we don't want the "-C" option.
13675     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13676     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13677       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'
13678     else
13679       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'
13680     fi
13681     ;;
13682   pw32*)
13683     export_symbols_cmds_CXX="$ltdll_cmds"
13684   ;;
13685   cygwin* | mingw*)
13686     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'
13687   ;;
13688   *)
13689     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13690   ;;
13691   esac
13692
13693 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13694 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13695 test "$ld_shlibs_CXX" = no && can_build_shared=no
13696
13697 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13698 if test "$GCC" = yes; then
13699   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13700 fi
13701
13702 #
13703 # Do we need to explicitly link libc?
13704 #
13705 case "x$archive_cmds_need_lc_CXX" in
13706 x|xyes)
13707   # Assume -lc should be added
13708   archive_cmds_need_lc_CXX=yes
13709
13710   if test "$enable_shared" = yes && test "$GCC" = yes; then
13711     case $archive_cmds_CXX in
13712     *'~'*)
13713       # FIXME: we may have to deal with multi-command sequences.
13714       ;;
13715     '$CC '*)
13716       # Test whether the compiler implicitly links with -lc since on some
13717       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13718       # to ld, don't add -lc before -lgcc.
13719       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13720 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13721       $rm conftest*
13722       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13723
13724       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13725   (eval $ac_compile) 2>&5
13726   ac_status=$?
13727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); } 2>conftest.err; then
13729         soname=conftest
13730         lib=conftest
13731         libobjs=conftest.$ac_objext
13732         deplibs=
13733         wl=$lt_prog_compiler_wl_CXX
13734         compiler_flags=-v
13735         linker_flags=-v
13736         verstring=
13737         output_objdir=.
13738         libname=conftest
13739         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13740         allow_undefined_flag_CXX=
13741         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13742   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13743   ac_status=$?
13744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745   (exit $ac_status); }
13746         then
13747           archive_cmds_need_lc_CXX=no
13748         else
13749           archive_cmds_need_lc_CXX=yes
13750         fi
13751         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13752       else
13753         cat conftest.err 1>&5
13754       fi
13755       $rm conftest*
13756       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13757 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13758       ;;
13759     esac
13760   fi
13761   ;;
13762 esac
13763
13764 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13765 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13766 library_names_spec=
13767 libname_spec='lib$name'
13768 soname_spec=
13769 shrext_cmds=".so"
13770 postinstall_cmds=
13771 postuninstall_cmds=
13772 finish_cmds=
13773 finish_eval=
13774 shlibpath_var=
13775 shlibpath_overrides_runpath=unknown
13776 version_type=none
13777 dynamic_linker="$host_os ld.so"
13778 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13779 if test "$GCC" = yes; then
13780   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13781   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13782     # if the path contains ";" then we assume it to be the separator
13783     # otherwise default to the standard path separator (i.e. ":") - it is
13784     # assumed that no part of a normal pathname contains ";" but that should
13785     # okay in the real world where ";" in dirpaths is itself problematic.
13786     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13787   else
13788     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13789   fi
13790 else
13791   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13792 fi
13793 need_lib_prefix=unknown
13794 hardcode_into_libs=no
13795
13796 # when you set need_version to no, make sure it does not cause -set_version
13797 # flags to be left without arguments
13798 need_version=unknown
13799
13800 case $host_os in
13801 aix3*)
13802   version_type=linux
13803   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13804   shlibpath_var=LIBPATH
13805
13806   # AIX 3 has no versioning support, so we append a major version to the name.
13807   soname_spec='${libname}${release}${shared_ext}$major'
13808   ;;
13809
13810 aix4* | aix5*)
13811   version_type=linux
13812   need_lib_prefix=no
13813   need_version=no
13814   hardcode_into_libs=yes
13815   if test "$host_cpu" = ia64; then
13816     # AIX 5 supports IA64
13817     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13818     shlibpath_var=LD_LIBRARY_PATH
13819   else
13820     # With GCC up to 2.95.x, collect2 would create an import file
13821     # for dependence libraries.  The import file would start with
13822     # the line `#! .'.  This would cause the generated library to
13823     # depend on `.', always an invalid library.  This was fixed in
13824     # development snapshots of GCC prior to 3.0.
13825     case $host_os in
13826       aix4 | aix4.[01] | aix4.[01].*)
13827       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13828            echo ' yes '
13829            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13830         :
13831       else
13832         can_build_shared=no
13833       fi
13834       ;;
13835     esac
13836     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13837     # soname into executable. Probably we can add versioning support to
13838     # collect2, so additional links can be useful in future.
13839     if test "$aix_use_runtimelinking" = yes; then
13840       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13841       # instead of lib<name>.a to let people know that these are not
13842       # typical AIX shared libraries.
13843       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13844     else
13845       # We preserve .a as extension for shared libraries through AIX4.2
13846       # and later when we are not doing run time linking.
13847       library_names_spec='${libname}${release}.a $libname.a'
13848       soname_spec='${libname}${release}${shared_ext}$major'
13849     fi
13850     shlibpath_var=LIBPATH
13851   fi
13852   ;;
13853
13854 amigaos*)
13855   library_names_spec='$libname.ixlibrary $libname.a'
13856   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13857   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'
13858   ;;
13859
13860 beos*)
13861   library_names_spec='${libname}${shared_ext}'
13862   dynamic_linker="$host_os ld.so"
13863   shlibpath_var=LIBRARY_PATH
13864   ;;
13865
13866 bsdi[45]*)
13867   version_type=linux
13868   need_version=no
13869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13870   soname_spec='${libname}${release}${shared_ext}$major'
13871   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13872   shlibpath_var=LD_LIBRARY_PATH
13873   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13874   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13875   # the default ld.so.conf also contains /usr/contrib/lib and
13876   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13877   # libtool to hard-code these into programs
13878   ;;
13879
13880 cygwin* | mingw* | pw32*)
13881   version_type=windows
13882   shrext_cmds=".dll"
13883   need_version=no
13884   need_lib_prefix=no
13885
13886   case $GCC,$host_os in
13887   yes,cygwin* | yes,mingw* | yes,pw32*)
13888     library_names_spec='$libname.dll.a'
13889     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13890     postinstall_cmds='base_file=`basename \${file}`~
13891       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13892       dldir=$destdir/`dirname \$dlpath`~
13893       test -d \$dldir || mkdir -p \$dldir~
13894       $install_prog $dir/$dlname \$dldir/$dlname'
13895     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13896       dlpath=$dir/\$dldll~
13897        $rm \$dlpath'
13898     shlibpath_overrides_runpath=yes
13899
13900     case $host_os in
13901     cygwin*)
13902       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13903       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13904       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13905       ;;
13906     mingw*)
13907       # MinGW DLLs use traditional 'lib' prefix
13908       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13909       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13910       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13911         # It is most probably a Windows format PATH printed by
13912         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13913         # path with ; separators, and with drive letters. We can handle the
13914         # drive letters (cygwin fileutils understands them), so leave them,
13915         # especially as we might pass files found there to a mingw objdump,
13916         # which wouldn't understand a cygwinified path. Ahh.
13917         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13918       else
13919         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13920       fi
13921       ;;
13922     pw32*)
13923       # pw32 DLLs use 'pw' prefix rather than 'lib'
13924       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13925       ;;
13926     esac
13927     ;;
13928
13929   *)
13930     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13931     ;;
13932   esac
13933   dynamic_linker='Win32 ld.exe'
13934   # FIXME: first we should search . and the directory the executable is in
13935   shlibpath_var=PATH
13936   ;;
13937
13938 darwin* | rhapsody*)
13939   dynamic_linker="$host_os dyld"
13940   version_type=darwin
13941   need_lib_prefix=no
13942   need_version=no
13943   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13944   soname_spec='${libname}${release}${major}$shared_ext'
13945   shlibpath_overrides_runpath=yes
13946   shlibpath_var=DYLD_LIBRARY_PATH
13947   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13948   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13949   if test "$GCC" = yes; then
13950     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"`
13951   else
13952     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13953   fi
13954   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13955   ;;
13956
13957 dgux*)
13958   version_type=linux
13959   need_lib_prefix=no
13960   need_version=no
13961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13962   soname_spec='${libname}${release}${shared_ext}$major'
13963   shlibpath_var=LD_LIBRARY_PATH
13964   ;;
13965
13966 freebsd1*)
13967   dynamic_linker=no
13968   ;;
13969
13970 kfreebsd*-gnu)
13971   version_type=linux
13972   need_lib_prefix=no
13973   need_version=no
13974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13975   soname_spec='${libname}${release}${shared_ext}$major'
13976   shlibpath_var=LD_LIBRARY_PATH
13977   shlibpath_overrides_runpath=no
13978   hardcode_into_libs=yes
13979   dynamic_linker='GNU ld.so'
13980   ;;
13981
13982 freebsd* | dragonfly*)
13983   # DragonFly does not have aout.  When/if they implement a new
13984   # versioning mechanism, adjust this.
13985   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13986   version_type=freebsd-$objformat
13987   case $version_type in
13988     freebsd-elf*)
13989       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13990       need_version=no
13991       need_lib_prefix=no
13992       ;;
13993     freebsd-*)
13994       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13995       need_version=yes
13996       ;;
13997   esac
13998   shlibpath_var=LD_LIBRARY_PATH
13999   case $host_os in
14000   freebsd2*)
14001     shlibpath_overrides_runpath=yes
14002     ;;
14003   freebsd3.[01]* | freebsdelf3.[01]*)
14004     shlibpath_overrides_runpath=yes
14005     hardcode_into_libs=yes
14006     ;;
14007   *) # from 3.2 on
14008     shlibpath_overrides_runpath=no
14009     hardcode_into_libs=yes
14010     ;;
14011   esac
14012   ;;
14013
14014 gnu*)
14015   version_type=linux
14016   need_lib_prefix=no
14017   need_version=no
14018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14019   soname_spec='${libname}${release}${shared_ext}$major'
14020   shlibpath_var=LD_LIBRARY_PATH
14021   hardcode_into_libs=yes
14022   ;;
14023
14024 hpux9* | hpux10* | hpux11*)
14025   # Give a soname corresponding to the major version so that dld.sl refuses to
14026   # link against other versions.
14027   version_type=sunos
14028   need_lib_prefix=no
14029   need_version=no
14030   case "$host_cpu" in
14031   ia64*)
14032     shrext_cmds='.so'
14033     hardcode_into_libs=yes
14034     dynamic_linker="$host_os dld.so"
14035     shlibpath_var=LD_LIBRARY_PATH
14036     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14037     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14038     soname_spec='${libname}${release}${shared_ext}$major'
14039     if test "X$HPUX_IA64_MODE" = X32; then
14040       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14041     else
14042       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14043     fi
14044     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14045     ;;
14046    hppa*64*)
14047      shrext_cmds='.sl'
14048      hardcode_into_libs=yes
14049      dynamic_linker="$host_os dld.sl"
14050      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14051      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14052      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14053      soname_spec='${libname}${release}${shared_ext}$major'
14054      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14055      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14056      ;;
14057    *)
14058     shrext_cmds='.sl'
14059     dynamic_linker="$host_os dld.sl"
14060     shlibpath_var=SHLIB_PATH
14061     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14062     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14063     soname_spec='${libname}${release}${shared_ext}$major'
14064     ;;
14065   esac
14066   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14067   postinstall_cmds='chmod 555 $lib'
14068   ;;
14069
14070 irix5* | irix6* | nonstopux*)
14071   case $host_os in
14072     nonstopux*) version_type=nonstopux ;;
14073     *)
14074         if test "$lt_cv_prog_gnu_ld" = yes; then
14075                 version_type=linux
14076         else
14077                 version_type=irix
14078         fi ;;
14079   esac
14080   need_lib_prefix=no
14081   need_version=no
14082   soname_spec='${libname}${release}${shared_ext}$major'
14083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14084   case $host_os in
14085   irix5* | nonstopux*)
14086     libsuff= shlibsuff=
14087     ;;
14088   *)
14089     case $LD in # libtool.m4 will add one of these switches to LD
14090     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14091       libsuff= shlibsuff= libmagic=32-bit;;
14092     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14093       libsuff=32 shlibsuff=N32 libmagic=N32;;
14094     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14095       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14096     *) libsuff= shlibsuff= libmagic=never-match;;
14097     esac
14098     ;;
14099   esac
14100   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14101   shlibpath_overrides_runpath=no
14102   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14103   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14104   hardcode_into_libs=yes
14105   ;;
14106
14107 # No shared lib support for Linux oldld, aout, or coff.
14108 linux*oldld* | linux*aout* | linux*coff*)
14109   dynamic_linker=no
14110   ;;
14111
14112 # This must be Linux ELF.
14113 linux*)
14114   version_type=linux
14115   need_lib_prefix=no
14116   need_version=no
14117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14118   soname_spec='${libname}${release}${shared_ext}$major'
14119   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14120   shlibpath_var=LD_LIBRARY_PATH
14121   shlibpath_overrides_runpath=no
14122   # This implies no fast_install, which is unacceptable.
14123   # Some rework will be needed to allow for fast_install
14124   # before this can be enabled.
14125   hardcode_into_libs=yes
14126
14127   # Append ld.so.conf contents to the search path
14128   if test -f /etc/ld.so.conf; then
14129     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' ' '`
14130     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14131   fi
14132
14133   # We used to test for /lib/ld.so.1 and disable shared libraries on
14134   # powerpc, because MkLinux only supported shared libraries with the
14135   # GNU dynamic linker.  Since this was broken with cross compilers,
14136   # most powerpc-linux boxes support dynamic linking these days and
14137   # people can always --disable-shared, the test was removed, and we
14138   # assume the GNU/Linux dynamic linker is in use.
14139   dynamic_linker='GNU/Linux ld.so'
14140   ;;
14141
14142 knetbsd*-gnu)
14143   version_type=linux
14144   need_lib_prefix=no
14145   need_version=no
14146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14147   soname_spec='${libname}${release}${shared_ext}$major'
14148   shlibpath_var=LD_LIBRARY_PATH
14149   shlibpath_overrides_runpath=no
14150   hardcode_into_libs=yes
14151   dynamic_linker='GNU ld.so'
14152   ;;
14153
14154 netbsd*)
14155   version_type=sunos
14156   need_lib_prefix=no
14157   need_version=no
14158   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14159     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14160     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14161     dynamic_linker='NetBSD (a.out) ld.so'
14162   else
14163     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14164     soname_spec='${libname}${release}${shared_ext}$major'
14165     dynamic_linker='NetBSD ld.elf_so'
14166   fi
14167   shlibpath_var=LD_LIBRARY_PATH
14168   shlibpath_overrides_runpath=yes
14169   hardcode_into_libs=yes
14170   ;;
14171
14172 newsos6)
14173   version_type=linux
14174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14175   shlibpath_var=LD_LIBRARY_PATH
14176   shlibpath_overrides_runpath=yes
14177   ;;
14178
14179 nto-qnx*)
14180   version_type=linux
14181   need_lib_prefix=no
14182   need_version=no
14183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14184   soname_spec='${libname}${release}${shared_ext}$major'
14185   shlibpath_var=LD_LIBRARY_PATH
14186   shlibpath_overrides_runpath=yes
14187   ;;
14188
14189 openbsd*)
14190   version_type=sunos
14191   need_lib_prefix=no
14192   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14193   case $host_os in
14194     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14195     *)                         need_version=no  ;;
14196   esac
14197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14198   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14199   shlibpath_var=LD_LIBRARY_PATH
14200   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14201     case $host_os in
14202       openbsd2.[89] | openbsd2.[89].*)
14203         shlibpath_overrides_runpath=no
14204         ;;
14205       *)
14206         shlibpath_overrides_runpath=yes
14207         ;;
14208       esac
14209   else
14210     shlibpath_overrides_runpath=yes
14211   fi
14212   ;;
14213
14214 os2*)
14215   libname_spec='$name'
14216   shrext_cmds=".dll"
14217   need_lib_prefix=no
14218   library_names_spec='$libname${shared_ext} $libname.a'
14219   dynamic_linker='OS/2 ld.exe'
14220   shlibpath_var=LIBPATH
14221   ;;
14222
14223 osf3* | osf4* | osf5*)
14224   version_type=osf
14225   need_lib_prefix=no
14226   need_version=no
14227   soname_spec='${libname}${release}${shared_ext}$major'
14228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14229   shlibpath_var=LD_LIBRARY_PATH
14230   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14231   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14232   ;;
14233
14234 sco3.2v5*)
14235   version_type=osf
14236   soname_spec='${libname}${release}${shared_ext}$major'
14237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14238   shlibpath_var=LD_LIBRARY_PATH
14239   ;;
14240
14241 solaris*)
14242   version_type=linux
14243   need_lib_prefix=no
14244   need_version=no
14245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14246   soname_spec='${libname}${release}${shared_ext}$major'
14247   shlibpath_var=LD_LIBRARY_PATH
14248   shlibpath_overrides_runpath=yes
14249   hardcode_into_libs=yes
14250   # ldd complains unless libraries are executable
14251   postinstall_cmds='chmod +x $lib'
14252   ;;
14253
14254 sunos4*)
14255   version_type=sunos
14256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14257   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14258   shlibpath_var=LD_LIBRARY_PATH
14259   shlibpath_overrides_runpath=yes
14260   if test "$with_gnu_ld" = yes; then
14261     need_lib_prefix=no
14262   fi
14263   need_version=yes
14264   ;;
14265
14266 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14267   version_type=linux
14268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14269   soname_spec='${libname}${release}${shared_ext}$major'
14270   shlibpath_var=LD_LIBRARY_PATH
14271   case $host_vendor in
14272     sni)
14273       shlibpath_overrides_runpath=no
14274       need_lib_prefix=no
14275       export_dynamic_flag_spec='${wl}-Blargedynsym'
14276       runpath_var=LD_RUN_PATH
14277       ;;
14278     siemens)
14279       need_lib_prefix=no
14280       ;;
14281     motorola)
14282       need_lib_prefix=no
14283       need_version=no
14284       shlibpath_overrides_runpath=no
14285       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14286       ;;
14287   esac
14288   ;;
14289
14290 sysv4*MP*)
14291   if test -d /usr/nec ;then
14292     version_type=linux
14293     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14294     soname_spec='$libname${shared_ext}.$major'
14295     shlibpath_var=LD_LIBRARY_PATH
14296   fi
14297   ;;
14298
14299 uts4*)
14300   version_type=linux
14301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14302   soname_spec='${libname}${release}${shared_ext}$major'
14303   shlibpath_var=LD_LIBRARY_PATH
14304   ;;
14305
14306 *)
14307   dynamic_linker=no
14308   ;;
14309 esac
14310 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14311 echo "${ECHO_T}$dynamic_linker" >&6
14312 test "$dynamic_linker" = no && can_build_shared=no
14313
14314 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14315 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14316 hardcode_action_CXX=
14317 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14318    test -n "$runpath_var_CXX" || \
14319    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14320
14321   # We can hardcode non-existant directories.
14322   if test "$hardcode_direct_CXX" != no &&
14323      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14324      # have to relink, otherwise we might link with an installed library
14325      # when we should be linking with a yet-to-be-installed one
14326      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14327      test "$hardcode_minus_L_CXX" != no; then
14328     # Linking always hardcodes the temporary library directory.
14329     hardcode_action_CXX=relink
14330   else
14331     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14332     hardcode_action_CXX=immediate
14333   fi
14334 else
14335   # We cannot hardcode anything, or else we can only hardcode existing
14336   # directories.
14337   hardcode_action_CXX=unsupported
14338 fi
14339 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14340 echo "${ECHO_T}$hardcode_action_CXX" >&6
14341
14342 if test "$hardcode_action_CXX" = relink; then
14343   # Fast installation is not supported
14344   enable_fast_install=no
14345 elif test "$shlibpath_overrides_runpath" = yes ||
14346      test "$enable_shared" = no; then
14347   # Fast installation is not necessary
14348   enable_fast_install=needless
14349 fi
14350
14351 striplib=
14352 old_striplib=
14353 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14354 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14355 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14356   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14357   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14358   echo "$as_me:$LINENO: result: yes" >&5
14359 echo "${ECHO_T}yes" >&6
14360 else
14361 # FIXME - insert some real tests, host_os isn't really good enough
14362   case $host_os in
14363    darwin*)
14364        if test -n "$STRIP" ; then
14365          striplib="$STRIP -x"
14366          echo "$as_me:$LINENO: result: yes" >&5
14367 echo "${ECHO_T}yes" >&6
14368        else
14369   echo "$as_me:$LINENO: result: no" >&5
14370 echo "${ECHO_T}no" >&6
14371 fi
14372        ;;
14373    *)
14374   echo "$as_me:$LINENO: result: no" >&5
14375 echo "${ECHO_T}no" >&6
14376     ;;
14377   esac
14378 fi
14379
14380 if test "x$enable_dlopen" != xyes; then
14381   enable_dlopen=unknown
14382   enable_dlopen_self=unknown
14383   enable_dlopen_self_static=unknown
14384 else
14385   lt_cv_dlopen=no
14386   lt_cv_dlopen_libs=
14387
14388   case $host_os in
14389   beos*)
14390     lt_cv_dlopen="load_add_on"
14391     lt_cv_dlopen_libs=
14392     lt_cv_dlopen_self=yes
14393     ;;
14394
14395   mingw* | pw32*)
14396     lt_cv_dlopen="LoadLibrary"
14397     lt_cv_dlopen_libs=
14398    ;;
14399
14400   cygwin*)
14401     lt_cv_dlopen="dlopen"
14402     lt_cv_dlopen_libs=
14403    ;;
14404
14405   darwin*)
14406   # if libdl is installed we need to link against it
14407     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14408 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14409 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14410   echo $ECHO_N "(cached) $ECHO_C" >&6
14411 else
14412   ac_check_lib_save_LIBS=$LIBS
14413 LIBS="-ldl  $LIBS"
14414 cat >conftest.$ac_ext <<_ACEOF
14415 /* confdefs.h.  */
14416 _ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h.  */
14420
14421 /* Override any gcc2 internal prototype to avoid an error.  */
14422 #ifdef __cplusplus
14423 extern "C"
14424 #endif
14425 /* We use char because int might match the return type of a gcc2
14426    builtin and then its argument prototype would still apply.  */
14427 char dlopen ();
14428 int
14429 main ()
14430 {
14431 dlopen ();
14432   ;
14433   return 0;
14434 }
14435 _ACEOF
14436 rm -f conftest.$ac_objext conftest$ac_exeext
14437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14438   (eval $ac_link) 2>conftest.er1
14439   ac_status=$?
14440   grep -v '^ *+' conftest.er1 >conftest.err
14441   rm -f conftest.er1
14442   cat conftest.err >&5
14443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444   (exit $ac_status); } &&
14445          { ac_try='test -z "$ac_cxx_werror_flag"
14446                          || test ! -s conftest.err'
14447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448   (eval $ac_try) 2>&5
14449   ac_status=$?
14450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451   (exit $ac_status); }; } &&
14452          { ac_try='test -s conftest$ac_exeext'
14453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454   (eval $ac_try) 2>&5
14455   ac_status=$?
14456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457   (exit $ac_status); }; }; then
14458   ac_cv_lib_dl_dlopen=yes
14459 else
14460   echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14462
14463 ac_cv_lib_dl_dlopen=no
14464 fi
14465 rm -f conftest.err conftest.$ac_objext \
14466       conftest$ac_exeext conftest.$ac_ext
14467 LIBS=$ac_check_lib_save_LIBS
14468 fi
14469 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14470 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14471 if test $ac_cv_lib_dl_dlopen = yes; then
14472   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14473 else
14474
14475     lt_cv_dlopen="dyld"
14476     lt_cv_dlopen_libs=
14477     lt_cv_dlopen_self=yes
14478
14479 fi
14480
14481    ;;
14482
14483   *)
14484     echo "$as_me:$LINENO: checking for shl_load" >&5
14485 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14486 if test "${ac_cv_func_shl_load+set}" = set; then
14487   echo $ECHO_N "(cached) $ECHO_C" >&6
14488 else
14489   cat >conftest.$ac_ext <<_ACEOF
14490 /* confdefs.h.  */
14491 _ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h.  */
14495 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14497 #define shl_load innocuous_shl_load
14498
14499 /* System header to define __stub macros and hopefully few prototypes,
14500     which can conflict with char shl_load (); below.
14501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14502     <limits.h> exists even on freestanding compilers.  */
14503
14504 #ifdef __STDC__
14505 # include <limits.h>
14506 #else
14507 # include <assert.h>
14508 #endif
14509
14510 #undef shl_load
14511
14512 /* Override any gcc2 internal prototype to avoid an error.  */
14513 #ifdef __cplusplus
14514 extern "C"
14515 {
14516 #endif
14517 /* We use char because int might match the return type of a gcc2
14518    builtin and then its argument prototype would still apply.  */
14519 char shl_load ();
14520 /* The GNU C library defines this for functions which it implements
14521     to always fail with ENOSYS.  Some functions are actually named
14522     something starting with __ and the normal name is an alias.  */
14523 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14524 choke me
14525 #else
14526 char (*f) () = shl_load;
14527 #endif
14528 #ifdef __cplusplus
14529 }
14530 #endif
14531
14532 int
14533 main ()
14534 {
14535 return f != shl_load;
14536   ;
14537   return 0;
14538 }
14539 _ACEOF
14540 rm -f conftest.$ac_objext conftest$ac_exeext
14541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14542   (eval $ac_link) 2>conftest.er1
14543   ac_status=$?
14544   grep -v '^ *+' conftest.er1 >conftest.err
14545   rm -f conftest.er1
14546   cat conftest.err >&5
14547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548   (exit $ac_status); } &&
14549          { ac_try='test -z "$ac_cxx_werror_flag"
14550                          || test ! -s conftest.err'
14551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552   (eval $ac_try) 2>&5
14553   ac_status=$?
14554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555   (exit $ac_status); }; } &&
14556          { ac_try='test -s conftest$ac_exeext'
14557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14558   (eval $ac_try) 2>&5
14559   ac_status=$?
14560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561   (exit $ac_status); }; }; then
14562   ac_cv_func_shl_load=yes
14563 else
14564   echo "$as_me: failed program was:" >&5
14565 sed 's/^/| /' conftest.$ac_ext >&5
14566
14567 ac_cv_func_shl_load=no
14568 fi
14569 rm -f conftest.err conftest.$ac_objext \
14570       conftest$ac_exeext conftest.$ac_ext
14571 fi
14572 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14573 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14574 if test $ac_cv_func_shl_load = yes; then
14575   lt_cv_dlopen="shl_load"
14576 else
14577   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14578 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14579 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14580   echo $ECHO_N "(cached) $ECHO_C" >&6
14581 else
14582   ac_check_lib_save_LIBS=$LIBS
14583 LIBS="-ldld  $LIBS"
14584 cat >conftest.$ac_ext <<_ACEOF
14585 /* confdefs.h.  */
14586 _ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h.  */
14590
14591 /* Override any gcc2 internal prototype to avoid an error.  */
14592 #ifdef __cplusplus
14593 extern "C"
14594 #endif
14595 /* We use char because int might match the return type of a gcc2
14596    builtin and then its argument prototype would still apply.  */
14597 char shl_load ();
14598 int
14599 main ()
14600 {
14601 shl_load ();
14602   ;
14603   return 0;
14604 }
14605 _ACEOF
14606 rm -f conftest.$ac_objext conftest$ac_exeext
14607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14608   (eval $ac_link) 2>conftest.er1
14609   ac_status=$?
14610   grep -v '^ *+' conftest.er1 >conftest.err
14611   rm -f conftest.er1
14612   cat conftest.err >&5
14613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614   (exit $ac_status); } &&
14615          { ac_try='test -z "$ac_cxx_werror_flag"
14616                          || test ! -s conftest.err'
14617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14618   (eval $ac_try) 2>&5
14619   ac_status=$?
14620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621   (exit $ac_status); }; } &&
14622          { ac_try='test -s conftest$ac_exeext'
14623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624   (eval $ac_try) 2>&5
14625   ac_status=$?
14626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); }; }; then
14628   ac_cv_lib_dld_shl_load=yes
14629 else
14630   echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14632
14633 ac_cv_lib_dld_shl_load=no
14634 fi
14635 rm -f conftest.err conftest.$ac_objext \
14636       conftest$ac_exeext conftest.$ac_ext
14637 LIBS=$ac_check_lib_save_LIBS
14638 fi
14639 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14640 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14641 if test $ac_cv_lib_dld_shl_load = yes; then
14642   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14643 else
14644   echo "$as_me:$LINENO: checking for dlopen" >&5
14645 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14646 if test "${ac_cv_func_dlopen+set}" = set; then
14647   echo $ECHO_N "(cached) $ECHO_C" >&6
14648 else
14649   cat >conftest.$ac_ext <<_ACEOF
14650 /* confdefs.h.  */
14651 _ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h.  */
14655 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14657 #define dlopen innocuous_dlopen
14658
14659 /* System header to define __stub macros and hopefully few prototypes,
14660     which can conflict with char dlopen (); below.
14661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14662     <limits.h> exists even on freestanding compilers.  */
14663
14664 #ifdef __STDC__
14665 # include <limits.h>
14666 #else
14667 # include <assert.h>
14668 #endif
14669
14670 #undef dlopen
14671
14672 /* Override any gcc2 internal prototype to avoid an error.  */
14673 #ifdef __cplusplus
14674 extern "C"
14675 {
14676 #endif
14677 /* We use char because int might match the return type of a gcc2
14678    builtin and then its argument prototype would still apply.  */
14679 char dlopen ();
14680 /* The GNU C library defines this for functions which it implements
14681     to always fail with ENOSYS.  Some functions are actually named
14682     something starting with __ and the normal name is an alias.  */
14683 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14684 choke me
14685 #else
14686 char (*f) () = dlopen;
14687 #endif
14688 #ifdef __cplusplus
14689 }
14690 #endif
14691
14692 int
14693 main ()
14694 {
14695 return f != dlopen;
14696   ;
14697   return 0;
14698 }
14699 _ACEOF
14700 rm -f conftest.$ac_objext conftest$ac_exeext
14701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14702   (eval $ac_link) 2>conftest.er1
14703   ac_status=$?
14704   grep -v '^ *+' conftest.er1 >conftest.err
14705   rm -f conftest.er1
14706   cat conftest.err >&5
14707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708   (exit $ac_status); } &&
14709          { ac_try='test -z "$ac_cxx_werror_flag"
14710                          || test ! -s conftest.err'
14711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712   (eval $ac_try) 2>&5
14713   ac_status=$?
14714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715   (exit $ac_status); }; } &&
14716          { ac_try='test -s conftest$ac_exeext'
14717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718   (eval $ac_try) 2>&5
14719   ac_status=$?
14720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721   (exit $ac_status); }; }; then
14722   ac_cv_func_dlopen=yes
14723 else
14724   echo "$as_me: failed program was:" >&5
14725 sed 's/^/| /' conftest.$ac_ext >&5
14726
14727 ac_cv_func_dlopen=no
14728 fi
14729 rm -f conftest.err conftest.$ac_objext \
14730       conftest$ac_exeext conftest.$ac_ext
14731 fi
14732 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14733 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14734 if test $ac_cv_func_dlopen = yes; then
14735   lt_cv_dlopen="dlopen"
14736 else
14737   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14738 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14739 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14740   echo $ECHO_N "(cached) $ECHO_C" >&6
14741 else
14742   ac_check_lib_save_LIBS=$LIBS
14743 LIBS="-ldl  $LIBS"
14744 cat >conftest.$ac_ext <<_ACEOF
14745 /* confdefs.h.  */
14746 _ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h.  */
14750
14751 /* Override any gcc2 internal prototype to avoid an error.  */
14752 #ifdef __cplusplus
14753 extern "C"
14754 #endif
14755 /* We use char because int might match the return type of a gcc2
14756    builtin and then its argument prototype would still apply.  */
14757 char dlopen ();
14758 int
14759 main ()
14760 {
14761 dlopen ();
14762   ;
14763   return 0;
14764 }
14765 _ACEOF
14766 rm -f conftest.$ac_objext conftest$ac_exeext
14767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14768   (eval $ac_link) 2>conftest.er1
14769   ac_status=$?
14770   grep -v '^ *+' conftest.er1 >conftest.err
14771   rm -f conftest.er1
14772   cat conftest.err >&5
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); } &&
14775          { ac_try='test -z "$ac_cxx_werror_flag"
14776                          || test ! -s conftest.err'
14777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778   (eval $ac_try) 2>&5
14779   ac_status=$?
14780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781   (exit $ac_status); }; } &&
14782          { ac_try='test -s conftest$ac_exeext'
14783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784   (eval $ac_try) 2>&5
14785   ac_status=$?
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); }; }; then
14788   ac_cv_lib_dl_dlopen=yes
14789 else
14790   echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14792
14793 ac_cv_lib_dl_dlopen=no
14794 fi
14795 rm -f conftest.err conftest.$ac_objext \
14796       conftest$ac_exeext conftest.$ac_ext
14797 LIBS=$ac_check_lib_save_LIBS
14798 fi
14799 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14800 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14801 if test $ac_cv_lib_dl_dlopen = yes; then
14802   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14803 else
14804   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14805 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14806 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14807   echo $ECHO_N "(cached) $ECHO_C" >&6
14808 else
14809   ac_check_lib_save_LIBS=$LIBS
14810 LIBS="-lsvld  $LIBS"
14811 cat >conftest.$ac_ext <<_ACEOF
14812 /* confdefs.h.  */
14813 _ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h.  */
14817
14818 /* Override any gcc2 internal prototype to avoid an error.  */
14819 #ifdef __cplusplus
14820 extern "C"
14821 #endif
14822 /* We use char because int might match the return type of a gcc2
14823    builtin and then its argument prototype would still apply.  */
14824 char dlopen ();
14825 int
14826 main ()
14827 {
14828 dlopen ();
14829   ;
14830   return 0;
14831 }
14832 _ACEOF
14833 rm -f conftest.$ac_objext conftest$ac_exeext
14834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14835   (eval $ac_link) 2>conftest.er1
14836   ac_status=$?
14837   grep -v '^ *+' conftest.er1 >conftest.err
14838   rm -f conftest.er1
14839   cat conftest.err >&5
14840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841   (exit $ac_status); } &&
14842          { ac_try='test -z "$ac_cxx_werror_flag"
14843                          || test ! -s conftest.err'
14844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845   (eval $ac_try) 2>&5
14846   ac_status=$?
14847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848   (exit $ac_status); }; } &&
14849          { ac_try='test -s conftest$ac_exeext'
14850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851   (eval $ac_try) 2>&5
14852   ac_status=$?
14853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854   (exit $ac_status); }; }; then
14855   ac_cv_lib_svld_dlopen=yes
14856 else
14857   echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14859
14860 ac_cv_lib_svld_dlopen=no
14861 fi
14862 rm -f conftest.err conftest.$ac_objext \
14863       conftest$ac_exeext conftest.$ac_ext
14864 LIBS=$ac_check_lib_save_LIBS
14865 fi
14866 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14867 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14868 if test $ac_cv_lib_svld_dlopen = yes; then
14869   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14870 else
14871   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14872 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14873 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14874   echo $ECHO_N "(cached) $ECHO_C" >&6
14875 else
14876   ac_check_lib_save_LIBS=$LIBS
14877 LIBS="-ldld  $LIBS"
14878 cat >conftest.$ac_ext <<_ACEOF
14879 /* confdefs.h.  */
14880 _ACEOF
14881 cat confdefs.h >>conftest.$ac_ext
14882 cat >>conftest.$ac_ext <<_ACEOF
14883 /* end confdefs.h.  */
14884
14885 /* Override any gcc2 internal prototype to avoid an error.  */
14886 #ifdef __cplusplus
14887 extern "C"
14888 #endif
14889 /* We use char because int might match the return type of a gcc2
14890    builtin and then its argument prototype would still apply.  */
14891 char dld_link ();
14892 int
14893 main ()
14894 {
14895 dld_link ();
14896   ;
14897   return 0;
14898 }
14899 _ACEOF
14900 rm -f conftest.$ac_objext conftest$ac_exeext
14901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14902   (eval $ac_link) 2>conftest.er1
14903   ac_status=$?
14904   grep -v '^ *+' conftest.er1 >conftest.err
14905   rm -f conftest.er1
14906   cat conftest.err >&5
14907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908   (exit $ac_status); } &&
14909          { ac_try='test -z "$ac_cxx_werror_flag"
14910                          || test ! -s conftest.err'
14911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912   (eval $ac_try) 2>&5
14913   ac_status=$?
14914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915   (exit $ac_status); }; } &&
14916          { ac_try='test -s conftest$ac_exeext'
14917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918   (eval $ac_try) 2>&5
14919   ac_status=$?
14920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921   (exit $ac_status); }; }; then
14922   ac_cv_lib_dld_dld_link=yes
14923 else
14924   echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14926
14927 ac_cv_lib_dld_dld_link=no
14928 fi
14929 rm -f conftest.err conftest.$ac_objext \
14930       conftest$ac_exeext conftest.$ac_ext
14931 LIBS=$ac_check_lib_save_LIBS
14932 fi
14933 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14934 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14935 if test $ac_cv_lib_dld_dld_link = yes; then
14936   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14937 fi
14938
14939
14940 fi
14941
14942
14943 fi
14944
14945
14946 fi
14947
14948
14949 fi
14950
14951
14952 fi
14953
14954     ;;
14955   esac
14956
14957   if test "x$lt_cv_dlopen" != xno; then
14958     enable_dlopen=yes
14959   else
14960     enable_dlopen=no
14961   fi
14962
14963   case $lt_cv_dlopen in
14964   dlopen)
14965     save_CPPFLAGS="$CPPFLAGS"
14966     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14967
14968     save_LDFLAGS="$LDFLAGS"
14969     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14970
14971     save_LIBS="$LIBS"
14972     LIBS="$lt_cv_dlopen_libs $LIBS"
14973
14974     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14975 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14976 if test "${lt_cv_dlopen_self+set}" = set; then
14977   echo $ECHO_N "(cached) $ECHO_C" >&6
14978 else
14979           if test "$cross_compiling" = yes; then :
14980   lt_cv_dlopen_self=cross
14981 else
14982   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14983   lt_status=$lt_dlunknown
14984   cat > conftest.$ac_ext <<EOF
14985 #line 14985 "configure"
14986 #include "confdefs.h"
14987
14988 #if HAVE_DLFCN_H
14989 #include <dlfcn.h>
14990 #endif
14991
14992 #include <stdio.h>
14993
14994 #ifdef RTLD_GLOBAL
14995 #  define LT_DLGLOBAL           RTLD_GLOBAL
14996 #else
14997 #  ifdef DL_GLOBAL
14998 #    define LT_DLGLOBAL         DL_GLOBAL
14999 #  else
15000 #    define LT_DLGLOBAL         0
15001 #  endif
15002 #endif
15003
15004 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15005    find out it does not work in some platform. */
15006 #ifndef LT_DLLAZY_OR_NOW
15007 #  ifdef RTLD_LAZY
15008 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15009 #  else
15010 #    ifdef DL_LAZY
15011 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15012 #    else
15013 #      ifdef RTLD_NOW
15014 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15015 #      else
15016 #        ifdef DL_NOW
15017 #          define LT_DLLAZY_OR_NOW      DL_NOW
15018 #        else
15019 #          define LT_DLLAZY_OR_NOW      0
15020 #        endif
15021 #      endif
15022 #    endif
15023 #  endif
15024 #endif
15025
15026 #ifdef __cplusplus
15027 extern "C" void exit (int);
15028 #endif
15029
15030 void fnord() { int i=42;}
15031 int main ()
15032 {
15033   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15034   int status = $lt_dlunknown;
15035
15036   if (self)
15037     {
15038       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15039       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15040       /* dlclose (self); */
15041     }
15042
15043     exit (status);
15044 }
15045 EOF
15046   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15047   (eval $ac_link) 2>&5
15048   ac_status=$?
15049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15051     (./conftest; exit; ) 2>/dev/null
15052     lt_status=$?
15053     case x$lt_status in
15054       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15055       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15056       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15057     esac
15058   else :
15059     # compilation failed
15060     lt_cv_dlopen_self=no
15061   fi
15062 fi
15063 rm -fr conftest*
15064
15065
15066 fi
15067 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15068 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15069
15070     if test "x$lt_cv_dlopen_self" = xyes; then
15071       LDFLAGS="$LDFLAGS $link_static_flag"
15072       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15073 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15074 if test "${lt_cv_dlopen_self_static+set}" = set; then
15075   echo $ECHO_N "(cached) $ECHO_C" >&6
15076 else
15077           if test "$cross_compiling" = yes; then :
15078   lt_cv_dlopen_self_static=cross
15079 else
15080   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15081   lt_status=$lt_dlunknown
15082   cat > conftest.$ac_ext <<EOF
15083 #line 15083 "configure"
15084 #include "confdefs.h"
15085
15086 #if HAVE_DLFCN_H
15087 #include <dlfcn.h>
15088 #endif
15089
15090 #include <stdio.h>
15091
15092 #ifdef RTLD_GLOBAL
15093 #  define LT_DLGLOBAL           RTLD_GLOBAL
15094 #else
15095 #  ifdef DL_GLOBAL
15096 #    define LT_DLGLOBAL         DL_GLOBAL
15097 #  else
15098 #    define LT_DLGLOBAL         0
15099 #  endif
15100 #endif
15101
15102 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15103    find out it does not work in some platform. */
15104 #ifndef LT_DLLAZY_OR_NOW
15105 #  ifdef RTLD_LAZY
15106 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15107 #  else
15108 #    ifdef DL_LAZY
15109 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15110 #    else
15111 #      ifdef RTLD_NOW
15112 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15113 #      else
15114 #        ifdef DL_NOW
15115 #          define LT_DLLAZY_OR_NOW      DL_NOW
15116 #        else
15117 #          define LT_DLLAZY_OR_NOW      0
15118 #        endif
15119 #      endif
15120 #    endif
15121 #  endif
15122 #endif
15123
15124 #ifdef __cplusplus
15125 extern "C" void exit (int);
15126 #endif
15127
15128 void fnord() { int i=42;}
15129 int main ()
15130 {
15131   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15132   int status = $lt_dlunknown;
15133
15134   if (self)
15135     {
15136       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15137       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15138       /* dlclose (self); */
15139     }
15140
15141     exit (status);
15142 }
15143 EOF
15144   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15145   (eval $ac_link) 2>&5
15146   ac_status=$?
15147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15149     (./conftest; exit; ) 2>/dev/null
15150     lt_status=$?
15151     case x$lt_status in
15152       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15153       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15154       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15155     esac
15156   else :
15157     # compilation failed
15158     lt_cv_dlopen_self_static=no
15159   fi
15160 fi
15161 rm -fr conftest*
15162
15163
15164 fi
15165 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15166 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15167     fi
15168
15169     CPPFLAGS="$save_CPPFLAGS"
15170     LDFLAGS="$save_LDFLAGS"
15171     LIBS="$save_LIBS"
15172     ;;
15173   esac
15174
15175   case $lt_cv_dlopen_self in
15176   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15177   *) enable_dlopen_self=unknown ;;
15178   esac
15179
15180   case $lt_cv_dlopen_self_static in
15181   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15182   *) enable_dlopen_self_static=unknown ;;
15183   esac
15184 fi
15185
15186
15187 # The else clause should only fire when bootstrapping the
15188 # libtool distribution, otherwise you forgot to ship ltmain.sh
15189 # with your package, and you will get complaints that there are
15190 # no rules to generate ltmain.sh.
15191 if test -f "$ltmain"; then
15192   # See if we are running on zsh, and set the options which allow our commands through
15193   # without removal of \ escapes.
15194   if test -n "${ZSH_VERSION+set}" ; then
15195     setopt NO_GLOB_SUBST
15196   fi
15197   # Now quote all the things that may contain metacharacters while being
15198   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15199   # variables and quote the copies for generation of the libtool script.
15200   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15201     SED SHELL STRIP \
15202     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15203     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15204     deplibs_check_method reload_flag reload_cmds need_locks \
15205     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15206     lt_cv_sys_global_symbol_to_c_name_address \
15207     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15208     old_postinstall_cmds old_postuninstall_cmds \
15209     compiler_CXX \
15210     CC_CXX \
15211     LD_CXX \
15212     lt_prog_compiler_wl_CXX \
15213     lt_prog_compiler_pic_CXX \
15214     lt_prog_compiler_static_CXX \
15215     lt_prog_compiler_no_builtin_flag_CXX \
15216     export_dynamic_flag_spec_CXX \
15217     thread_safe_flag_spec_CXX \
15218     whole_archive_flag_spec_CXX \
15219     enable_shared_with_static_runtimes_CXX \
15220     old_archive_cmds_CXX \
15221     old_archive_from_new_cmds_CXX \
15222     predep_objects_CXX \
15223     postdep_objects_CXX \
15224     predeps_CXX \
15225     postdeps_CXX \
15226     compiler_lib_search_path_CXX \
15227     archive_cmds_CXX \
15228     archive_expsym_cmds_CXX \
15229     postinstall_cmds_CXX \
15230     postuninstall_cmds_CXX \
15231     old_archive_from_expsyms_cmds_CXX \
15232     allow_undefined_flag_CXX \
15233     no_undefined_flag_CXX \
15234     export_symbols_cmds_CXX \
15235     hardcode_libdir_flag_spec_CXX \
15236     hardcode_libdir_flag_spec_ld_CXX \
15237     hardcode_libdir_separator_CXX \
15238     hardcode_automatic_CXX \
15239     module_cmds_CXX \
15240     module_expsym_cmds_CXX \
15241     lt_cv_prog_compiler_c_o_CXX \
15242     exclude_expsyms_CXX \
15243     include_expsyms_CXX; do
15244
15245     case $var in
15246     old_archive_cmds_CXX | \
15247     old_archive_from_new_cmds_CXX | \
15248     archive_cmds_CXX | \
15249     archive_expsym_cmds_CXX | \
15250     module_cmds_CXX | \
15251     module_expsym_cmds_CXX | \
15252     old_archive_from_expsyms_cmds_CXX | \
15253     export_symbols_cmds_CXX | \
15254     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15255     postinstall_cmds | postuninstall_cmds | \
15256     old_postinstall_cmds | old_postuninstall_cmds | \
15257     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15258       # Double-quote double-evaled strings.
15259       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15260       ;;
15261     *)
15262       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15263       ;;
15264     esac
15265   done
15266
15267   case $lt_echo in
15268   *'\$0 --fallback-echo"')
15269     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15270     ;;
15271   esac
15272
15273 cfgfile="$ofile"
15274
15275   cat <<__EOF__ >> "$cfgfile"
15276 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15277
15278 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15279
15280 # Shell to use when invoking shell scripts.
15281 SHELL=$lt_SHELL
15282
15283 # Whether or not to build shared libraries.
15284 build_libtool_libs=$enable_shared
15285
15286 # Whether or not to build static libraries.
15287 build_old_libs=$enable_static
15288
15289 # Whether or not to add -lc for building shared libraries.
15290 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15291
15292 # Whether or not to disallow shared libs when runtime libs are static
15293 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15294
15295 # Whether or not to optimize for fast installation.
15296 fast_install=$enable_fast_install
15297
15298 # The host system.
15299 host_alias=$host_alias
15300 host=$host
15301 host_os=$host_os
15302
15303 # The build system.
15304 build_alias=$build_alias
15305 build=$build
15306 build_os=$build_os
15307
15308 # An echo program that does not interpret backslashes.
15309 echo=$lt_echo
15310
15311 # The archiver.
15312 AR=$lt_AR
15313 AR_FLAGS=$lt_AR_FLAGS
15314
15315 # A C compiler.
15316 LTCC=$lt_LTCC
15317
15318 # A language-specific compiler.
15319 CC=$lt_compiler_CXX
15320
15321 # Is the compiler the GNU C compiler?
15322 with_gcc=$GCC_CXX
15323
15324 # An ERE matcher.
15325 EGREP=$lt_EGREP
15326
15327 # The linker used to build libraries.
15328 LD=$lt_LD_CXX
15329
15330 # Whether we need hard or soft links.
15331 LN_S=$lt_LN_S
15332
15333 # A BSD-compatible nm program.
15334 NM=$lt_NM
15335
15336 # A symbol stripping program
15337 STRIP=$lt_STRIP
15338
15339 # Used to examine libraries when file_magic_cmd begins "file"
15340 MAGIC_CMD=$MAGIC_CMD
15341
15342 # Used on cygwin: DLL creation program.
15343 DLLTOOL="$DLLTOOL"
15344
15345 # Used on cygwin: object dumper.
15346 OBJDUMP="$OBJDUMP"
15347
15348 # Used on cygwin: assembler.
15349 AS="$AS"
15350
15351 # The name of the directory that contains temporary libtool files.
15352 objdir=$objdir
15353
15354 # How to create reloadable object files.
15355 reload_flag=$lt_reload_flag
15356 reload_cmds=$lt_reload_cmds
15357
15358 # How to pass a linker flag through the compiler.
15359 wl=$lt_lt_prog_compiler_wl_CXX
15360
15361 # Object file suffix (normally "o").
15362 objext="$ac_objext"
15363
15364 # Old archive suffix (normally "a").
15365 libext="$libext"
15366
15367 # Shared library suffix (normally ".so").
15368 shrext_cmds='$shrext_cmds'
15369
15370 # Executable file suffix (normally "").
15371 exeext="$exeext"
15372
15373 # Additional compiler flags for building library objects.
15374 pic_flag=$lt_lt_prog_compiler_pic_CXX
15375 pic_mode=$pic_mode
15376
15377 # What is the maximum length of a command?
15378 max_cmd_len=$lt_cv_sys_max_cmd_len
15379
15380 # Does compiler simultaneously support -c and -o options?
15381 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15382
15383 # Must we lock files when doing compilation?
15384 need_locks=$lt_need_locks
15385
15386 # Do we need the lib prefix for modules?
15387 need_lib_prefix=$need_lib_prefix
15388
15389 # Do we need a version for libraries?
15390 need_version=$need_version
15391
15392 # Whether dlopen is supported.
15393 dlopen_support=$enable_dlopen
15394
15395 # Whether dlopen of programs is supported.
15396 dlopen_self=$enable_dlopen_self
15397
15398 # Whether dlopen of statically linked programs is supported.
15399 dlopen_self_static=$enable_dlopen_self_static
15400
15401 # Compiler flag to prevent dynamic linking.
15402 link_static_flag=$lt_lt_prog_compiler_static_CXX
15403
15404 # Compiler flag to turn off builtin functions.
15405 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15406
15407 # Compiler flag to allow reflexive dlopens.
15408 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15409
15410 # Compiler flag to generate shared objects directly from archives.
15411 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15412
15413 # Compiler flag to generate thread-safe objects.
15414 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15415
15416 # Library versioning type.
15417 version_type=$version_type
15418
15419 # Format of library name prefix.
15420 libname_spec=$lt_libname_spec
15421
15422 # List of archive names.  First name is the real one, the rest are links.
15423 # The last name is the one that the linker finds with -lNAME.
15424 library_names_spec=$lt_library_names_spec
15425
15426 # The coded name of the library, if different from the real name.
15427 soname_spec=$lt_soname_spec
15428
15429 # Commands used to build and install an old-style archive.
15430 RANLIB=$lt_RANLIB
15431 old_archive_cmds=$lt_old_archive_cmds_CXX
15432 old_postinstall_cmds=$lt_old_postinstall_cmds
15433 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15434
15435 # Create an old-style archive from a shared archive.
15436 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15437
15438 # Create a temporary old-style archive to link instead of a shared archive.
15439 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15440
15441 # Commands used to build and install a shared archive.
15442 archive_cmds=$lt_archive_cmds_CXX
15443 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15444 postinstall_cmds=$lt_postinstall_cmds
15445 postuninstall_cmds=$lt_postuninstall_cmds
15446
15447 # Commands used to build a loadable module (assumed same as above if empty)
15448 module_cmds=$lt_module_cmds_CXX
15449 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15450
15451 # Commands to strip libraries.
15452 old_striplib=$lt_old_striplib
15453 striplib=$lt_striplib
15454
15455 # Dependencies to place before the objects being linked to create a
15456 # shared library.
15457 predep_objects=$lt_predep_objects_CXX
15458
15459 # Dependencies to place after the objects being linked to create a
15460 # shared library.
15461 postdep_objects=$lt_postdep_objects_CXX
15462
15463 # Dependencies to place before the objects being linked to create a
15464 # shared library.
15465 predeps=$lt_predeps_CXX
15466
15467 # Dependencies to place after the objects being linked to create a
15468 # shared library.
15469 postdeps=$lt_postdeps_CXX
15470
15471 # The library search path used internally by the compiler when linking
15472 # a shared library.
15473 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15474
15475 # Method to check whether dependent libraries are shared objects.
15476 deplibs_check_method=$lt_deplibs_check_method
15477
15478 # Command to use when deplibs_check_method == file_magic.
15479 file_magic_cmd=$lt_file_magic_cmd
15480
15481 # Flag that allows shared libraries with undefined symbols to be built.
15482 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15483
15484 # Flag that forces no undefined symbols.
15485 no_undefined_flag=$lt_no_undefined_flag_CXX
15486
15487 # Commands used to finish a libtool library installation in a directory.
15488 finish_cmds=$lt_finish_cmds
15489
15490 # Same as above, but a single script fragment to be evaled but not shown.
15491 finish_eval=$lt_finish_eval
15492
15493 # Take the output of nm and produce a listing of raw symbols and C names.
15494 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15495
15496 # Transform the output of nm in a proper C declaration
15497 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15498
15499 # Transform the output of nm in a C name address pair
15500 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15501
15502 # This is the shared library runtime path variable.
15503 runpath_var=$runpath_var
15504
15505 # This is the shared library path variable.
15506 shlibpath_var=$shlibpath_var
15507
15508 # Is shlibpath searched before the hard-coded library search path?
15509 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15510
15511 # How to hardcode a shared library path into an executable.
15512 hardcode_action=$hardcode_action_CXX
15513
15514 # Whether we should hardcode library paths into libraries.
15515 hardcode_into_libs=$hardcode_into_libs
15516
15517 # Flag to hardcode \$libdir into a binary during linking.
15518 # This must work even if \$libdir does not exist.
15519 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15520
15521 # If ld is used when linking, flag to hardcode \$libdir into
15522 # a binary during linking. This must work even if \$libdir does
15523 # not exist.
15524 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15525
15526 # Whether we need a single -rpath flag with a separated argument.
15527 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15528
15529 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15530 # resulting binary.
15531 hardcode_direct=$hardcode_direct_CXX
15532
15533 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15534 # resulting binary.
15535 hardcode_minus_L=$hardcode_minus_L_CXX
15536
15537 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15538 # the resulting binary.
15539 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15540
15541 # Set to yes if building a shared library automatically hardcodes DIR into the library
15542 # and all subsequent libraries and executables linked against it.
15543 hardcode_automatic=$hardcode_automatic_CXX
15544
15545 # Variables whose values should be saved in libtool wrapper scripts and
15546 # restored at relink time.
15547 variables_saved_for_relink="$variables_saved_for_relink"
15548
15549 # Whether libtool must link a program against all its dependency libraries.
15550 link_all_deplibs=$link_all_deplibs_CXX
15551
15552 # Compile-time system search path for libraries
15553 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15554
15555 # Run-time system search path for libraries
15556 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15557
15558 # Fix the shell variable \$srcfile for the compiler.
15559 fix_srcfile_path="$fix_srcfile_path_CXX"
15560
15561 # Set to yes if exported symbols are required.
15562 always_export_symbols=$always_export_symbols_CXX
15563
15564 # The commands to list exported symbols.
15565 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15566
15567 # The commands to extract the exported symbol list from a shared archive.
15568 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15569
15570 # Symbols that should not be listed in the preloaded symbols.
15571 exclude_expsyms=$lt_exclude_expsyms_CXX
15572
15573 # Symbols that must always be exported.
15574 include_expsyms=$lt_include_expsyms_CXX
15575
15576 # ### END LIBTOOL TAG CONFIG: $tagname
15577
15578 __EOF__
15579
15580
15581 else
15582   # If there is no Makefile yet, we rely on a make rule to execute
15583   # `config.status --recheck' to rerun these tests and create the
15584   # libtool script then.
15585   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15586   if test -f "$ltmain_in"; then
15587     test -f Makefile && make "$ltmain"
15588   fi
15589 fi
15590
15591
15592 ac_ext=c
15593 ac_cpp='$CPP $CPPFLAGS'
15594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15597
15598 CC=$lt_save_CC
15599 LDCXX=$LD
15600 LD=$lt_save_LD
15601 GCC=$lt_save_GCC
15602 with_gnu_ldcxx=$with_gnu_ld
15603 with_gnu_ld=$lt_save_with_gnu_ld
15604 lt_cv_path_LDCXX=$lt_cv_path_LD
15605 lt_cv_path_LD=$lt_save_path_LD
15606 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15607 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15608
15609         else
15610           tagname=""
15611         fi
15612         ;;
15613
15614       F77)
15615         if test -n "$F77" && test "X$F77" != "Xno"; then
15616
15617 ac_ext=f
15618 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15619 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15620 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15621
15622
15623 archive_cmds_need_lc_F77=no
15624 allow_undefined_flag_F77=
15625 always_export_symbols_F77=no
15626 archive_expsym_cmds_F77=
15627 export_dynamic_flag_spec_F77=
15628 hardcode_direct_F77=no
15629 hardcode_libdir_flag_spec_F77=
15630 hardcode_libdir_flag_spec_ld_F77=
15631 hardcode_libdir_separator_F77=
15632 hardcode_minus_L_F77=no
15633 hardcode_automatic_F77=no
15634 module_cmds_F77=
15635 module_expsym_cmds_F77=
15636 link_all_deplibs_F77=unknown
15637 old_archive_cmds_F77=$old_archive_cmds
15638 no_undefined_flag_F77=
15639 whole_archive_flag_spec_F77=
15640 enable_shared_with_static_runtimes_F77=no
15641
15642 # Source file extension for f77 test sources.
15643 ac_ext=f
15644
15645 # Object file extension for compiled f77 test sources.
15646 objext=o
15647 objext_F77=$objext
15648
15649 # Code to be used in simple compile tests
15650 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15651
15652 # Code to be used in simple link tests
15653 lt_simple_link_test_code="      program t\n      end\n"
15654
15655 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15656
15657 # If no C compiler was specified, use CC.
15658 LTCC=${LTCC-"$CC"}
15659
15660 # Allow CC to be a program name with arguments.
15661 compiler=$CC
15662
15663
15664 # save warnings/boilerplate of simple test code
15665 ac_outfile=conftest.$ac_objext
15666 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15667 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15668 _lt_compiler_boilerplate=`cat conftest.err`
15669 $rm conftest*
15670
15671 ac_outfile=conftest.$ac_objext
15672 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15673 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15674 _lt_linker_boilerplate=`cat conftest.err`
15675 $rm conftest*
15676
15677
15678 # Allow CC to be a program name with arguments.
15679 lt_save_CC="$CC"
15680 CC=${F77-"f77"}
15681 compiler=$CC
15682 compiler_F77=$CC
15683 for cc_temp in $compiler""; do
15684   case $cc_temp in
15685     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15686     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15687     \-*) ;;
15688     *) break;;
15689   esac
15690 done
15691 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15692
15693
15694 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15695 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15696 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15697 echo "${ECHO_T}$can_build_shared" >&6
15698
15699 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15700 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15701 test "$can_build_shared" = "no" && enable_shared=no
15702
15703 # On AIX, shared libraries and static libraries use the same namespace, and
15704 # are all built from PIC.
15705 case "$host_os" in
15706 aix3*)
15707   test "$enable_shared" = yes && enable_static=no
15708   if test -n "$RANLIB"; then
15709     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15710     postinstall_cmds='$RANLIB $lib'
15711   fi
15712   ;;
15713 aix4* | aix5*)
15714   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15715     test "$enable_shared" = yes && enable_static=no
15716   fi
15717   ;;
15718 esac
15719 echo "$as_me:$LINENO: result: $enable_shared" >&5
15720 echo "${ECHO_T}$enable_shared" >&6
15721
15722 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15723 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15724 # Make sure either enable_shared or enable_static is yes.
15725 test "$enable_shared" = yes || enable_static=yes
15726 echo "$as_me:$LINENO: result: $enable_static" >&5
15727 echo "${ECHO_T}$enable_static" >&6
15728
15729 test "$ld_shlibs_F77" = no && can_build_shared=no
15730
15731 GCC_F77="$G77"
15732 LD_F77="$LD"
15733
15734 lt_prog_compiler_wl_F77=
15735 lt_prog_compiler_pic_F77=
15736 lt_prog_compiler_static_F77=
15737
15738 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15739 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15740
15741   if test "$GCC" = yes; then
15742     lt_prog_compiler_wl_F77='-Wl,'
15743     lt_prog_compiler_static_F77='-static'
15744
15745     case $host_os in
15746       aix*)
15747       # All AIX code is PIC.
15748       if test "$host_cpu" = ia64; then
15749         # AIX 5 now supports IA64 processor
15750         lt_prog_compiler_static_F77='-Bstatic'
15751       fi
15752       ;;
15753
15754     amigaos*)
15755       # FIXME: we need at least 68020 code to build shared libraries, but
15756       # adding the `-m68020' flag to GCC prevents building anything better,
15757       # like `-m68040'.
15758       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15759       ;;
15760
15761     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15762       # PIC is the default for these OSes.
15763       ;;
15764
15765     mingw* | pw32* | os2*)
15766       # This hack is so that the source file can tell whether it is being
15767       # built for inclusion in a dll (and should export symbols for example).
15768       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15769       ;;
15770
15771     darwin* | rhapsody*)
15772       # PIC is the default on this platform
15773       # Common symbols not allowed in MH_DYLIB files
15774       lt_prog_compiler_pic_F77='-fno-common'
15775       ;;
15776
15777     msdosdjgpp*)
15778       # Just because we use GCC doesn't mean we suddenly get shared libraries
15779       # on systems that don't support them.
15780       lt_prog_compiler_can_build_shared_F77=no
15781       enable_shared=no
15782       ;;
15783
15784     sysv4*MP*)
15785       if test -d /usr/nec; then
15786         lt_prog_compiler_pic_F77=-Kconform_pic
15787       fi
15788       ;;
15789
15790     hpux*)
15791       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15792       # not for PA HP-UX.
15793       case "$host_cpu" in
15794       hppa*64*|ia64*)
15795         # +Z the default
15796         ;;
15797       *)
15798         lt_prog_compiler_pic_F77='-fPIC'
15799         ;;
15800       esac
15801       ;;
15802
15803     *)
15804       lt_prog_compiler_pic_F77='-fPIC'
15805       ;;
15806     esac
15807   else
15808     # PORTME Check for flag to pass linker flags through the system compiler.
15809     case $host_os in
15810     aix*)
15811       lt_prog_compiler_wl_F77='-Wl,'
15812       if test "$host_cpu" = ia64; then
15813         # AIX 5 now supports IA64 processor
15814         lt_prog_compiler_static_F77='-Bstatic'
15815       else
15816         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15817       fi
15818       ;;
15819       darwin*)
15820         # PIC is the default on this platform
15821         # Common symbols not allowed in MH_DYLIB files
15822        case $cc_basename in
15823          xlc*)
15824          lt_prog_compiler_pic_F77='-qnocommon'
15825          lt_prog_compiler_wl_F77='-Wl,'
15826          ;;
15827        esac
15828        ;;
15829
15830     mingw* | pw32* | os2*)
15831       # This hack is so that the source file can tell whether it is being
15832       # built for inclusion in a dll (and should export symbols for example).
15833       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15834       ;;
15835
15836     hpux9* | hpux10* | hpux11*)
15837       lt_prog_compiler_wl_F77='-Wl,'
15838       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15839       # not for PA HP-UX.
15840       case "$host_cpu" in
15841       hppa*64*|ia64*)
15842         # +Z the default
15843         ;;
15844       *)
15845         lt_prog_compiler_pic_F77='+Z'
15846         ;;
15847       esac
15848       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15849       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15850       ;;
15851
15852     irix5* | irix6* | nonstopux*)
15853       lt_prog_compiler_wl_F77='-Wl,'
15854       # PIC (with -KPIC) is the default.
15855       lt_prog_compiler_static_F77='-non_shared'
15856       ;;
15857
15858     newsos6)
15859       lt_prog_compiler_pic_F77='-KPIC'
15860       lt_prog_compiler_static_F77='-Bstatic'
15861       ;;
15862
15863     linux*)
15864       case $cc_basename in
15865       icc* | ecc*)
15866         lt_prog_compiler_wl_F77='-Wl,'
15867         lt_prog_compiler_pic_F77='-KPIC'
15868         lt_prog_compiler_static_F77='-static'
15869         ;;
15870       pgcc* | pgf77* | pgf90*)
15871         # Portland Group compilers (*not* the Pentium gcc compiler,
15872         # which looks to be a dead project)
15873         lt_prog_compiler_wl_F77='-Wl,'
15874         lt_prog_compiler_pic_F77='-fpic'
15875         lt_prog_compiler_static_F77='-static'
15876         ;;
15877       ccc*)
15878         lt_prog_compiler_wl_F77='-Wl,'
15879         # All Alpha code is PIC.
15880         lt_prog_compiler_static_F77='-non_shared'
15881         ;;
15882       esac
15883       ;;
15884
15885     osf3* | osf4* | osf5*)
15886       lt_prog_compiler_wl_F77='-Wl,'
15887       # All OSF/1 code is PIC.
15888       lt_prog_compiler_static_F77='-non_shared'
15889       ;;
15890
15891     sco3.2v5*)
15892       lt_prog_compiler_pic_F77='-Kpic'
15893       lt_prog_compiler_static_F77='-dn'
15894       ;;
15895
15896     solaris*)
15897       lt_prog_compiler_pic_F77='-KPIC'
15898       lt_prog_compiler_static_F77='-Bstatic'
15899       case $cc_basename in
15900       f77* | f90* | f95*)
15901         lt_prog_compiler_wl_F77='-Qoption ld ';;
15902       *)
15903         lt_prog_compiler_wl_F77='-Wl,';;
15904       esac
15905       ;;
15906
15907     sunos4*)
15908       lt_prog_compiler_wl_F77='-Qoption ld '
15909       lt_prog_compiler_pic_F77='-PIC'
15910       lt_prog_compiler_static_F77='-Bstatic'
15911       ;;
15912
15913     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15914       lt_prog_compiler_wl_F77='-Wl,'
15915       lt_prog_compiler_pic_F77='-KPIC'
15916       lt_prog_compiler_static_F77='-Bstatic'
15917       ;;
15918
15919     sysv4*MP*)
15920       if test -d /usr/nec ;then
15921         lt_prog_compiler_pic_F77='-Kconform_pic'
15922         lt_prog_compiler_static_F77='-Bstatic'
15923       fi
15924       ;;
15925
15926     unicos*)
15927       lt_prog_compiler_wl_F77='-Wl,'
15928       lt_prog_compiler_can_build_shared_F77=no
15929       ;;
15930
15931     uts4*)
15932       lt_prog_compiler_pic_F77='-pic'
15933       lt_prog_compiler_static_F77='-Bstatic'
15934       ;;
15935
15936     *)
15937       lt_prog_compiler_can_build_shared_F77=no
15938       ;;
15939     esac
15940   fi
15941
15942 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15943 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15944
15945 #
15946 # Check to make sure the PIC flag actually works.
15947 #
15948 if test -n "$lt_prog_compiler_pic_F77"; then
15949
15950 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15951 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15952 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15953   echo $ECHO_N "(cached) $ECHO_C" >&6
15954 else
15955   lt_prog_compiler_pic_works_F77=no
15956   ac_outfile=conftest.$ac_objext
15957    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15958    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15959    # Insert the option either (1) after the last *FLAGS variable, or
15960    # (2) before a word containing "conftest.", or (3) at the end.
15961    # Note that $ac_compile itself does not contain backslashes and begins
15962    # with a dollar sign (not a hyphen), so the echo should work correctly.
15963    # The option is referenced via a variable to avoid confusing sed.
15964    lt_compile=`echo "$ac_compile" | $SED \
15965    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15966    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15967    -e 's:$: $lt_compiler_flag:'`
15968    (eval echo "\"\$as_me:15968: $lt_compile\"" >&5)
15969    (eval "$lt_compile" 2>conftest.err)
15970    ac_status=$?
15971    cat conftest.err >&5
15972    echo "$as_me:15972: \$? = $ac_status" >&5
15973    if (exit $ac_status) && test -s "$ac_outfile"; then
15974      # The compiler can only warn and ignore the option if not recognized
15975      # So say no if there are warnings other than the usual output.
15976      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15977      $SED '/^$/d' conftest.err >conftest.er2
15978      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15979        lt_prog_compiler_pic_works_F77=yes
15980      fi
15981    fi
15982    $rm conftest*
15983
15984 fi
15985 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15986 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15987
15988 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15989     case $lt_prog_compiler_pic_F77 in
15990      "" | " "*) ;;
15991      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15992      esac
15993 else
15994     lt_prog_compiler_pic_F77=
15995      lt_prog_compiler_can_build_shared_F77=no
15996 fi
15997
15998 fi
15999 case "$host_os" in
16000   # For platforms which do not support PIC, -DPIC is meaningless:
16001   *djgpp*)
16002     lt_prog_compiler_pic_F77=
16003     ;;
16004   *)
16005     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16006     ;;
16007 esac
16008
16009 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16010 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16011 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16012   echo $ECHO_N "(cached) $ECHO_C" >&6
16013 else
16014   lt_cv_prog_compiler_c_o_F77=no
16015    $rm -r conftest 2>/dev/null
16016    mkdir conftest
16017    cd conftest
16018    mkdir out
16019    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16020
16021    lt_compiler_flag="-o out/conftest2.$ac_objext"
16022    # Insert the option either (1) after the last *FLAGS variable, or
16023    # (2) before a word containing "conftest.", or (3) at the end.
16024    # Note that $ac_compile itself does not contain backslashes and begins
16025    # with a dollar sign (not a hyphen), so the echo should work correctly.
16026    lt_compile=`echo "$ac_compile" | $SED \
16027    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16028    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16029    -e 's:$: $lt_compiler_flag:'`
16030    (eval echo "\"\$as_me:16030: $lt_compile\"" >&5)
16031    (eval "$lt_compile" 2>out/conftest.err)
16032    ac_status=$?
16033    cat out/conftest.err >&5
16034    echo "$as_me:16034: \$? = $ac_status" >&5
16035    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16036    then
16037      # The compiler can only warn and ignore the option if not recognized
16038      # So say no if there are warnings
16039      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16040      $SED '/^$/d' out/conftest.err >out/conftest.er2
16041      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16042        lt_cv_prog_compiler_c_o_F77=yes
16043      fi
16044    fi
16045    chmod u+w .
16046    $rm conftest*
16047    # SGI C++ compiler will create directory out/ii_files/ for
16048    # template instantiation
16049    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16050    $rm out/* && rmdir out
16051    cd ..
16052    rmdir conftest
16053    $rm conftest*
16054
16055 fi
16056 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16057 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
16058
16059
16060 hard_links="nottested"
16061 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16062   # do not overwrite the value of need_locks provided by the user
16063   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16064 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16065   hard_links=yes
16066   $rm conftest*
16067   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16068   touch conftest.a
16069   ln conftest.a conftest.b 2>&5 || hard_links=no
16070   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16071   echo "$as_me:$LINENO: result: $hard_links" >&5
16072 echo "${ECHO_T}$hard_links" >&6
16073   if test "$hard_links" = no; then
16074     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16075 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16076     need_locks=warn
16077   fi
16078 else
16079   need_locks=no
16080 fi
16081
16082 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16083 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16084
16085   runpath_var=
16086   allow_undefined_flag_F77=
16087   enable_shared_with_static_runtimes_F77=no
16088   archive_cmds_F77=
16089   archive_expsym_cmds_F77=
16090   old_archive_From_new_cmds_F77=
16091   old_archive_from_expsyms_cmds_F77=
16092   export_dynamic_flag_spec_F77=
16093   whole_archive_flag_spec_F77=
16094   thread_safe_flag_spec_F77=
16095   hardcode_libdir_flag_spec_F77=
16096   hardcode_libdir_flag_spec_ld_F77=
16097   hardcode_libdir_separator_F77=
16098   hardcode_direct_F77=no
16099   hardcode_minus_L_F77=no
16100   hardcode_shlibpath_var_F77=unsupported
16101   link_all_deplibs_F77=unknown
16102   hardcode_automatic_F77=no
16103   module_cmds_F77=
16104   module_expsym_cmds_F77=
16105   always_export_symbols_F77=no
16106   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16107   # include_expsyms should be a list of space-separated symbols to be *always*
16108   # included in the symbol list
16109   include_expsyms_F77=
16110   # exclude_expsyms can be an extended regexp of symbols to exclude
16111   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16112   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16113   # as well as any symbol that contains `d'.
16114   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16115   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16116   # platforms (ab)use it in PIC code, but their linkers get confused if
16117   # the symbol is explicitly referenced.  Since portable code cannot
16118   # rely on this symbol name, it's probably fine to never include it in
16119   # preloaded symbol tables.
16120   extract_expsyms_cmds=
16121   # Just being paranoid about ensuring that cc_basename is set.
16122   for cc_temp in $compiler""; do
16123   case $cc_temp in
16124     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16125     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16126     \-*) ;;
16127     *) break;;
16128   esac
16129 done
16130 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16131
16132   case $host_os in
16133   cygwin* | mingw* | pw32*)
16134     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16135     # When not using gcc, we currently assume that we are using
16136     # Microsoft Visual C++.
16137     if test "$GCC" != yes; then
16138       with_gnu_ld=no
16139     fi
16140     ;;
16141   openbsd*)
16142     with_gnu_ld=no
16143     ;;
16144   esac
16145
16146   ld_shlibs_F77=yes
16147   if test "$with_gnu_ld" = yes; then
16148     # If archive_cmds runs LD, not CC, wlarc should be empty
16149     wlarc='${wl}'
16150
16151     # Set some defaults for GNU ld with shared library support. These
16152     # are reset later if shared libraries are not supported. Putting them
16153     # here allows them to be overridden if necessary.
16154     runpath_var=LD_RUN_PATH
16155     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16156     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16157     # ancient GNU ld didn't support --whole-archive et. al.
16158     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16159         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16160       else
16161         whole_archive_flag_spec_F77=
16162     fi
16163     supports_anon_versioning=no
16164     case `$LD -v 2>/dev/null` in
16165       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16166       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16167       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16168       *\ 2.11.*) ;; # other 2.11 versions
16169       *) supports_anon_versioning=yes ;;
16170     esac
16171
16172     # See if GNU ld supports shared libraries.
16173     case $host_os in
16174     aix3* | aix4* | aix5*)
16175       # On AIX/PPC, the GNU linker is very broken
16176       if test "$host_cpu" != ia64; then
16177         ld_shlibs_F77=no
16178         cat <<EOF 1>&2
16179
16180 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16181 *** to be unable to reliably create shared libraries on AIX.
16182 *** Therefore, libtool is disabling shared libraries support.  If you
16183 *** really care for shared libraries, you may want to modify your PATH
16184 *** so that a non-GNU linker is found, and then restart.
16185
16186 EOF
16187       fi
16188       ;;
16189
16190     amigaos*)
16191       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)'
16192       hardcode_libdir_flag_spec_F77='-L$libdir'
16193       hardcode_minus_L_F77=yes
16194
16195       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16196       # that the semantics of dynamic libraries on AmigaOS, at least up
16197       # to version 4, is to share data among multiple programs linked
16198       # with the same dynamic library.  Since this doesn't match the
16199       # behavior of shared libraries on other platforms, we can't use
16200       # them.
16201       ld_shlibs_F77=no
16202       ;;
16203
16204     beos*)
16205       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16206         allow_undefined_flag_F77=unsupported
16207         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16208         # support --undefined.  This deserves some investigation.  FIXME
16209         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16210       else
16211         ld_shlibs_F77=no
16212       fi
16213       ;;
16214
16215     cygwin* | mingw* | pw32*)
16216       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16217       # as there is no search path for DLLs.
16218       hardcode_libdir_flag_spec_F77='-L$libdir'
16219       allow_undefined_flag_F77=unsupported
16220       always_export_symbols_F77=no
16221       enable_shared_with_static_runtimes_F77=yes
16222       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16223
16224       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16225         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16226         # If the export-symbols file already is a .def file (1st line
16227         # is EXPORTS), use it as is; otherwise, prepend...
16228         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16229           cp $export_symbols $output_objdir/$soname.def;
16230         else
16231           echo EXPORTS > $output_objdir/$soname.def;
16232           cat $export_symbols >> $output_objdir/$soname.def;
16233         fi~
16234         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16235       else
16236         ld_shlibs_F77=no
16237       fi
16238       ;;
16239
16240     linux*)
16241       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16242         tmp_addflag=
16243         case $cc_basename,$host_cpu in
16244         pgcc*)                          # Portland Group C compiler
16245           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'
16246           tmp_addflag=' $pic_flag'
16247           ;;
16248         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
16249           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'
16250           tmp_addflag=' $pic_flag -Mnomain' ;;
16251         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16252           tmp_addflag=' -i_dynamic' ;;
16253         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16254           tmp_addflag=' -i_dynamic -nofor_main' ;;
16255         ifc* | ifort*)                  # Intel Fortran compiler
16256           tmp_addflag=' -nofor_main' ;;
16257         esac
16258         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16259
16260         if test $supports_anon_versioning = yes; then
16261           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16262   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16263   $echo "local: *; };" >> $output_objdir/$libname.ver~
16264           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16265         fi
16266       else
16267         ld_shlibs_F77=no
16268       fi
16269       ;;
16270
16271     netbsd*)
16272       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16273         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16274         wlarc=
16275       else
16276         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16277         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16278       fi
16279       ;;
16280
16281     solaris* | sysv5*)
16282       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16283         ld_shlibs_F77=no
16284         cat <<EOF 1>&2
16285
16286 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16287 *** create shared libraries on Solaris systems.  Therefore, libtool
16288 *** is disabling shared libraries support.  We urge you to upgrade GNU
16289 *** binutils to release 2.9.1 or newer.  Another option is to modify
16290 *** your PATH or compiler configuration so that the native linker is
16291 *** used, and then restart.
16292
16293 EOF
16294       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16295         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16296         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16297       else
16298         ld_shlibs_F77=no
16299       fi
16300       ;;
16301
16302     sunos4*)
16303       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16304       wlarc=
16305       hardcode_direct_F77=yes
16306       hardcode_shlibpath_var_F77=no
16307       ;;
16308
16309     *)
16310       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16311         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16312         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16313       else
16314         ld_shlibs_F77=no
16315       fi
16316       ;;
16317     esac
16318
16319     if test "$ld_shlibs_F77" = no; then
16320       runpath_var=
16321       hardcode_libdir_flag_spec_F77=
16322       export_dynamic_flag_spec_F77=
16323       whole_archive_flag_spec_F77=
16324     fi
16325   else
16326     # PORTME fill in a description of your system's linker (not GNU ld)
16327     case $host_os in
16328     aix3*)
16329       allow_undefined_flag_F77=unsupported
16330       always_export_symbols_F77=yes
16331       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'
16332       # Note: this linker hardcodes the directories in LIBPATH if there
16333       # are no directories specified by -L.
16334       hardcode_minus_L_F77=yes
16335       if test "$GCC" = yes && test -z "$link_static_flag"; then
16336         # Neither direct hardcoding nor static linking is supported with a
16337         # broken collect2.
16338         hardcode_direct_F77=unsupported
16339       fi
16340       ;;
16341
16342     aix4* | aix5*)
16343       if test "$host_cpu" = ia64; then
16344         # On IA64, the linker does run time linking by default, so we don't
16345         # have to do anything special.
16346         aix_use_runtimelinking=no
16347         exp_sym_flag='-Bexport'
16348         no_entry_flag=""
16349       else
16350         # If we're using GNU nm, then we don't want the "-C" option.
16351         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16352         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16353           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'
16354         else
16355           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'
16356         fi
16357         aix_use_runtimelinking=no
16358
16359         # Test if we are trying to use run time linking or normal
16360         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16361         # need to do runtime linking.
16362         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16363           for ld_flag in $LDFLAGS; do
16364           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16365             aix_use_runtimelinking=yes
16366             break
16367           fi
16368           done
16369         esac
16370
16371         exp_sym_flag='-bexport'
16372         no_entry_flag='-bnoentry'
16373       fi
16374
16375       # When large executables or shared objects are built, AIX ld can
16376       # have problems creating the table of contents.  If linking a library
16377       # or program results in "error TOC overflow" add -mminimal-toc to
16378       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16379       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16380
16381       archive_cmds_F77=''
16382       hardcode_direct_F77=yes
16383       hardcode_libdir_separator_F77=':'
16384       link_all_deplibs_F77=yes
16385
16386       if test "$GCC" = yes; then
16387         case $host_os in aix4.[012]|aix4.[012].*)
16388         # We only want to do this on AIX 4.2 and lower, the check
16389         # below for broken collect2 doesn't work under 4.3+
16390           collect2name=`${CC} -print-prog-name=collect2`
16391           if test -f "$collect2name" && \
16392            strings "$collect2name" | grep resolve_lib_name >/dev/null
16393           then
16394           # We have reworked collect2
16395           hardcode_direct_F77=yes
16396           else
16397           # We have old collect2
16398           hardcode_direct_F77=unsupported
16399           # It fails to find uninstalled libraries when the uninstalled
16400           # path is not listed in the libpath.  Setting hardcode_minus_L
16401           # to unsupported forces relinking
16402           hardcode_minus_L_F77=yes
16403           hardcode_libdir_flag_spec_F77='-L$libdir'
16404           hardcode_libdir_separator_F77=
16405           fi
16406         esac
16407         shared_flag='-shared'
16408         if test "$aix_use_runtimelinking" = yes; then
16409           shared_flag="$shared_flag "'${wl}-G'
16410         fi
16411       else
16412         # not using gcc
16413         if test "$host_cpu" = ia64; then
16414         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16415         # chokes on -Wl,-G. The following line is correct:
16416           shared_flag='-G'
16417         else
16418         if test "$aix_use_runtimelinking" = yes; then
16419             shared_flag='${wl}-G'
16420           else
16421             shared_flag='${wl}-bM:SRE'
16422         fi
16423         fi
16424       fi
16425
16426       # It seems that -bexpall does not export symbols beginning with
16427       # underscore (_), so it is better to generate a list of symbols to export.
16428       always_export_symbols_F77=yes
16429       if test "$aix_use_runtimelinking" = yes; then
16430         # Warning - without using the other runtime loading flags (-brtl),
16431         # -berok will link without error, but may produce a broken library.
16432         allow_undefined_flag_F77='-berok'
16433        # Determine the default libpath from the value encoded in an empty executable.
16434        cat >conftest.$ac_ext <<_ACEOF
16435       program main
16436
16437       end
16438 _ACEOF
16439 rm -f conftest.$ac_objext conftest$ac_exeext
16440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16441   (eval $ac_link) 2>conftest.er1
16442   ac_status=$?
16443   grep -v '^ *+' conftest.er1 >conftest.err
16444   rm -f conftest.er1
16445   cat conftest.err >&5
16446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447   (exit $ac_status); } &&
16448          { ac_try='test -z "$ac_f77_werror_flag"
16449                          || test ! -s conftest.err'
16450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451   (eval $ac_try) 2>&5
16452   ac_status=$?
16453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454   (exit $ac_status); }; } &&
16455          { ac_try='test -s conftest$ac_exeext'
16456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457   (eval $ac_try) 2>&5
16458   ac_status=$?
16459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460   (exit $ac_status); }; }; then
16461
16462 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16463 }'`
16464 # Check for a 64-bit object if we didn't find anything.
16465 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; }
16466 }'`; fi
16467 else
16468   echo "$as_me: failed program was:" >&5
16469 sed 's/^/| /' conftest.$ac_ext >&5
16470
16471 fi
16472 rm -f conftest.err conftest.$ac_objext \
16473       conftest$ac_exeext conftest.$ac_ext
16474 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16475
16476        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16477         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"
16478        else
16479         if test "$host_cpu" = ia64; then
16480           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16481           allow_undefined_flag_F77="-z nodefs"
16482           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"
16483         else
16484          # Determine the default libpath from the value encoded in an empty executable.
16485          cat >conftest.$ac_ext <<_ACEOF
16486       program main
16487
16488       end
16489 _ACEOF
16490 rm -f conftest.$ac_objext conftest$ac_exeext
16491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16492   (eval $ac_link) 2>conftest.er1
16493   ac_status=$?
16494   grep -v '^ *+' conftest.er1 >conftest.err
16495   rm -f conftest.er1
16496   cat conftest.err >&5
16497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498   (exit $ac_status); } &&
16499          { ac_try='test -z "$ac_f77_werror_flag"
16500                          || test ! -s conftest.err'
16501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502   (eval $ac_try) 2>&5
16503   ac_status=$?
16504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505   (exit $ac_status); }; } &&
16506          { ac_try='test -s conftest$ac_exeext'
16507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508   (eval $ac_try) 2>&5
16509   ac_status=$?
16510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511   (exit $ac_status); }; }; then
16512
16513 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16514 }'`
16515 # Check for a 64-bit object if we didn't find anything.
16516 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; }
16517 }'`; fi
16518 else
16519   echo "$as_me: failed program was:" >&5
16520 sed 's/^/| /' conftest.$ac_ext >&5
16521
16522 fi
16523 rm -f conftest.err conftest.$ac_objext \
16524       conftest$ac_exeext conftest.$ac_ext
16525 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16526
16527          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16528           # Warning - without using the other run time loading flags,
16529           # -berok will link without error, but may produce a broken library.
16530           no_undefined_flag_F77=' ${wl}-bernotok'
16531           allow_undefined_flag_F77=' ${wl}-berok'
16532           # -bexpall does not export symbols beginning with underscore (_)
16533           always_export_symbols_F77=yes
16534           # Exported symbols can be pulled into shared objects from archives
16535           whole_archive_flag_spec_F77=' '
16536           archive_cmds_need_lc_F77=yes
16537           # This is similar to how AIX traditionally builds it's shared libraries.
16538           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'
16539         fi
16540       fi
16541       ;;
16542
16543     amigaos*)
16544       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)'
16545       hardcode_libdir_flag_spec_F77='-L$libdir'
16546       hardcode_minus_L_F77=yes
16547       # see comment about different semantics on the GNU ld section
16548       ld_shlibs_F77=no
16549       ;;
16550
16551     bsdi[45]*)
16552       export_dynamic_flag_spec_F77=-rdynamic
16553       ;;
16554
16555     cygwin* | mingw* | pw32*)
16556       # When not using gcc, we currently assume that we are using
16557       # Microsoft Visual C++.
16558       # hardcode_libdir_flag_spec is actually meaningless, as there is
16559       # no search path for DLLs.
16560       hardcode_libdir_flag_spec_F77=' '
16561       allow_undefined_flag_F77=unsupported
16562       # Tell ltmain to make .lib files, not .a files.
16563       libext=lib
16564       # Tell ltmain to make .dll files, not .so files.
16565       shrext_cmds=".dll"
16566       # FIXME: Setting linknames here is a bad hack.
16567       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16568       # The linker will automatically build a .lib file if we build a DLL.
16569       old_archive_From_new_cmds_F77='true'
16570       # FIXME: Should let the user specify the lib program.
16571       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16572       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16573       enable_shared_with_static_runtimes_F77=yes
16574       ;;
16575
16576     darwin* | rhapsody*)
16577       case "$host_os" in
16578         rhapsody* | darwin1.[012])
16579          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16580          ;;
16581        *) # Darwin 1.3 on
16582          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16583            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16584          else
16585            case ${MACOSX_DEPLOYMENT_TARGET} in
16586              10.[012])
16587                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16588                ;;
16589              10.*)
16590                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16591                ;;
16592            esac
16593          fi
16594          ;;
16595       esac
16596       archive_cmds_need_lc_F77=no
16597       hardcode_direct_F77=no
16598       hardcode_automatic_F77=yes
16599       hardcode_shlibpath_var_F77=unsupported
16600       whole_archive_flag_spec_F77=''
16601       link_all_deplibs_F77=yes
16602     if test "$GCC" = yes ; then
16603         output_verbose_link_cmd='echo'
16604         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16605       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16606       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16607       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}'
16608       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}'
16609     else
16610       case $cc_basename in
16611         xlc*)
16612          output_verbose_link_cmd='echo'
16613          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16614          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16615           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16616          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}'
16617           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}'
16618           ;;
16619        *)
16620          ld_shlibs_F77=no
16621           ;;
16622       esac
16623     fi
16624       ;;
16625
16626     dgux*)
16627       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16628       hardcode_libdir_flag_spec_F77='-L$libdir'
16629       hardcode_shlibpath_var_F77=no
16630       ;;
16631
16632     freebsd1*)
16633       ld_shlibs_F77=no
16634       ;;
16635
16636     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16637     # support.  Future versions do this automatically, but an explicit c++rt0.o
16638     # does not break anything, and helps significantly (at the cost of a little
16639     # extra space).
16640     freebsd2.2*)
16641       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16642       hardcode_libdir_flag_spec_F77='-R$libdir'
16643       hardcode_direct_F77=yes
16644       hardcode_shlibpath_var_F77=no
16645       ;;
16646
16647     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16648     freebsd2*)
16649       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16650       hardcode_direct_F77=yes
16651       hardcode_minus_L_F77=yes
16652       hardcode_shlibpath_var_F77=no
16653       ;;
16654
16655     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16656     freebsd* | kfreebsd*-gnu | dragonfly*)
16657       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16658       hardcode_libdir_flag_spec_F77='-R$libdir'
16659       hardcode_direct_F77=yes
16660       hardcode_shlibpath_var_F77=no
16661       ;;
16662
16663     hpux9*)
16664       if test "$GCC" = yes; then
16665         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'
16666       else
16667         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'
16668       fi
16669       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16670       hardcode_libdir_separator_F77=:
16671       hardcode_direct_F77=yes
16672
16673       # hardcode_minus_L: Not really in the search PATH,
16674       # but as the default location of the library.
16675       hardcode_minus_L_F77=yes
16676       export_dynamic_flag_spec_F77='${wl}-E'
16677       ;;
16678
16679     hpux10* | hpux11*)
16680       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16681         case "$host_cpu" in
16682         hppa*64*|ia64*)
16683           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16684           ;;
16685         *)
16686           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16687           ;;
16688         esac
16689       else
16690         case "$host_cpu" in
16691         hppa*64*|ia64*)
16692           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16693           ;;
16694         *)
16695           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16696           ;;
16697         esac
16698       fi
16699       if test "$with_gnu_ld" = no; then
16700         case "$host_cpu" in
16701         hppa*64*)
16702           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16703           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16704           hardcode_libdir_separator_F77=:
16705           hardcode_direct_F77=no
16706           hardcode_shlibpath_var_F77=no
16707           ;;
16708         ia64*)
16709           hardcode_libdir_flag_spec_F77='-L$libdir'
16710           hardcode_direct_F77=no
16711           hardcode_shlibpath_var_F77=no
16712
16713           # hardcode_minus_L: Not really in the search PATH,
16714           # but as the default location of the library.
16715           hardcode_minus_L_F77=yes
16716           ;;
16717         *)
16718           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16719           hardcode_libdir_separator_F77=:
16720           hardcode_direct_F77=yes
16721           export_dynamic_flag_spec_F77='${wl}-E'
16722
16723           # hardcode_minus_L: Not really in the search PATH,
16724           # but as the default location of the library.
16725           hardcode_minus_L_F77=yes
16726           ;;
16727         esac
16728       fi
16729       ;;
16730
16731     irix5* | irix6* | nonstopux*)
16732       if test "$GCC" = yes; then
16733         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'
16734       else
16735         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'
16736         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16737       fi
16738       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16739       hardcode_libdir_separator_F77=:
16740       link_all_deplibs_F77=yes
16741       ;;
16742
16743     netbsd*)
16744       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16745         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16746       else
16747         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16748       fi
16749       hardcode_libdir_flag_spec_F77='-R$libdir'
16750       hardcode_direct_F77=yes
16751       hardcode_shlibpath_var_F77=no
16752       ;;
16753
16754     newsos6)
16755       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16756       hardcode_direct_F77=yes
16757       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16758       hardcode_libdir_separator_F77=:
16759       hardcode_shlibpath_var_F77=no
16760       ;;
16761
16762     openbsd*)
16763       hardcode_direct_F77=yes
16764       hardcode_shlibpath_var_F77=no
16765       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16766         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16767         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16768         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16769         export_dynamic_flag_spec_F77='${wl}-E'
16770       else
16771        case $host_os in
16772          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16773            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16774            hardcode_libdir_flag_spec_F77='-R$libdir'
16775            ;;
16776          *)
16777            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16778            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16779            ;;
16780        esac
16781       fi
16782       ;;
16783
16784     os2*)
16785       hardcode_libdir_flag_spec_F77='-L$libdir'
16786       hardcode_minus_L_F77=yes
16787       allow_undefined_flag_F77=unsupported
16788       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'
16789       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16790       ;;
16791
16792     osf3*)
16793       if test "$GCC" = yes; then
16794         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16795         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'
16796       else
16797         allow_undefined_flag_F77=' -expect_unresolved \*'
16798         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'
16799       fi
16800       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16801       hardcode_libdir_separator_F77=:
16802       ;;
16803
16804     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16805       if test "$GCC" = yes; then
16806         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16807         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'
16808         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16809       else
16810         allow_undefined_flag_F77=' -expect_unresolved \*'
16811         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'
16812         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~
16813         $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'
16814
16815         # Both c and cxx compiler support -rpath directly
16816         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16817       fi
16818       hardcode_libdir_separator_F77=:
16819       ;;
16820
16821     sco3.2v5*)
16822       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16823       hardcode_shlibpath_var_F77=no
16824       export_dynamic_flag_spec_F77='${wl}-Bexport'
16825       runpath_var=LD_RUN_PATH
16826       hardcode_runpath_var=yes
16827       ;;
16828
16829     solaris*)
16830       no_undefined_flag_F77=' -z text'
16831       if test "$GCC" = yes; then
16832         wlarc='${wl}'
16833         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16834         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16835           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16836       else
16837         wlarc=''
16838         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16839         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16840         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16841       fi
16842       hardcode_libdir_flag_spec_F77='-R$libdir'
16843       hardcode_shlibpath_var_F77=no
16844       case $host_os in
16845       solaris2.[0-5] | solaris2.[0-5].*) ;;
16846       *)
16847         # The compiler driver will combine linker options so we
16848         # cannot just pass the convience library names through
16849         # without $wl, iff we do not link with $LD.
16850         # Luckily, gcc supports the same syntax we need for Sun Studio.
16851         # Supported since Solaris 2.6 (maybe 2.5.1?)
16852         case $wlarc in
16853         '')
16854           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16855         *)
16856           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' ;;
16857         esac ;;
16858       esac
16859       link_all_deplibs_F77=yes
16860       ;;
16861
16862     sunos4*)
16863       if test "x$host_vendor" = xsequent; then
16864         # Use $CC to link under sequent, because it throws in some extra .o
16865         # files that make .init and .fini sections work.
16866         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16867       else
16868         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16869       fi
16870       hardcode_libdir_flag_spec_F77='-L$libdir'
16871       hardcode_direct_F77=yes
16872       hardcode_minus_L_F77=yes
16873       hardcode_shlibpath_var_F77=no
16874       ;;
16875
16876     sysv4)
16877       case $host_vendor in
16878         sni)
16879           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16880           hardcode_direct_F77=yes # is this really true???
16881         ;;
16882         siemens)
16883           ## LD is ld it makes a PLAMLIB
16884           ## CC just makes a GrossModule.
16885           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16886           reload_cmds_F77='$CC -r -o $output$reload_objs'
16887           hardcode_direct_F77=no
16888         ;;
16889         motorola)
16890           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16891           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16892         ;;
16893       esac
16894       runpath_var='LD_RUN_PATH'
16895       hardcode_shlibpath_var_F77=no
16896       ;;
16897
16898     sysv4.3*)
16899       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16900       hardcode_shlibpath_var_F77=no
16901       export_dynamic_flag_spec_F77='-Bexport'
16902       ;;
16903
16904     sysv4*MP*)
16905       if test -d /usr/nec; then
16906         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16907         hardcode_shlibpath_var_F77=no
16908         runpath_var=LD_RUN_PATH
16909         hardcode_runpath_var=yes
16910         ld_shlibs_F77=yes
16911       fi
16912       ;;
16913
16914     sysv4.2uw2*)
16915       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16916       hardcode_direct_F77=yes
16917       hardcode_minus_L_F77=no
16918       hardcode_shlibpath_var_F77=no
16919       hardcode_runpath_var=yes
16920       runpath_var=LD_RUN_PATH
16921       ;;
16922
16923    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16924       no_undefined_flag_F77='${wl}-z ${wl}text'
16925       if test "$GCC" = yes; then
16926         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16927       else
16928         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16929       fi
16930       runpath_var='LD_RUN_PATH'
16931       hardcode_shlibpath_var_F77=no
16932       ;;
16933
16934     sysv5*)
16935       no_undefined_flag_F77=' -z text'
16936       # $CC -shared without GNU ld will not create a library from C++
16937       # object files and a static libstdc++, better avoid it by now
16938       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16939       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16940                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16941       hardcode_libdir_flag_spec_F77=
16942       hardcode_shlibpath_var_F77=no
16943       runpath_var='LD_RUN_PATH'
16944       ;;
16945
16946     uts4*)
16947       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16948       hardcode_libdir_flag_spec_F77='-L$libdir'
16949       hardcode_shlibpath_var_F77=no
16950       ;;
16951
16952     *)
16953       ld_shlibs_F77=no
16954       ;;
16955     esac
16956   fi
16957
16958 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16959 echo "${ECHO_T}$ld_shlibs_F77" >&6
16960 test "$ld_shlibs_F77" = no && can_build_shared=no
16961
16962 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16963 if test "$GCC" = yes; then
16964   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16965 fi
16966
16967 #
16968 # Do we need to explicitly link libc?
16969 #
16970 case "x$archive_cmds_need_lc_F77" in
16971 x|xyes)
16972   # Assume -lc should be added
16973   archive_cmds_need_lc_F77=yes
16974
16975   if test "$enable_shared" = yes && test "$GCC" = yes; then
16976     case $archive_cmds_F77 in
16977     *'~'*)
16978       # FIXME: we may have to deal with multi-command sequences.
16979       ;;
16980     '$CC '*)
16981       # Test whether the compiler implicitly links with -lc since on some
16982       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16983       # to ld, don't add -lc before -lgcc.
16984       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16985 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16986       $rm conftest*
16987       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16988
16989       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16990   (eval $ac_compile) 2>&5
16991   ac_status=$?
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); } 2>conftest.err; then
16994         soname=conftest
16995         lib=conftest
16996         libobjs=conftest.$ac_objext
16997         deplibs=
16998         wl=$lt_prog_compiler_wl_F77
16999         compiler_flags=-v
17000         linker_flags=-v
17001         verstring=
17002         output_objdir=.
17003         libname=conftest
17004         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17005         allow_undefined_flag_F77=
17006         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17007   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17008   ac_status=$?
17009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010   (exit $ac_status); }
17011         then
17012           archive_cmds_need_lc_F77=no
17013         else
17014           archive_cmds_need_lc_F77=yes
17015         fi
17016         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17017       else
17018         cat conftest.err 1>&5
17019       fi
17020       $rm conftest*
17021       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17022 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
17023       ;;
17024     esac
17025   fi
17026   ;;
17027 esac
17028
17029 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17030 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17031 library_names_spec=
17032 libname_spec='lib$name'
17033 soname_spec=
17034 shrext_cmds=".so"
17035 postinstall_cmds=
17036 postuninstall_cmds=
17037 finish_cmds=
17038 finish_eval=
17039 shlibpath_var=
17040 shlibpath_overrides_runpath=unknown
17041 version_type=none
17042 dynamic_linker="$host_os ld.so"
17043 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17044 if test "$GCC" = yes; then
17045   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17046   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17047     # if the path contains ";" then we assume it to be the separator
17048     # otherwise default to the standard path separator (i.e. ":") - it is
17049     # assumed that no part of a normal pathname contains ";" but that should
17050     # okay in the real world where ";" in dirpaths is itself problematic.
17051     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17052   else
17053     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17054   fi
17055 else
17056   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17057 fi
17058 need_lib_prefix=unknown
17059 hardcode_into_libs=no
17060
17061 # when you set need_version to no, make sure it does not cause -set_version
17062 # flags to be left without arguments
17063 need_version=unknown
17064
17065 case $host_os in
17066 aix3*)
17067   version_type=linux
17068   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17069   shlibpath_var=LIBPATH
17070
17071   # AIX 3 has no versioning support, so we append a major version to the name.
17072   soname_spec='${libname}${release}${shared_ext}$major'
17073   ;;
17074
17075 aix4* | aix5*)
17076   version_type=linux
17077   need_lib_prefix=no
17078   need_version=no
17079   hardcode_into_libs=yes
17080   if test "$host_cpu" = ia64; then
17081     # AIX 5 supports IA64
17082     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17083     shlibpath_var=LD_LIBRARY_PATH
17084   else
17085     # With GCC up to 2.95.x, collect2 would create an import file
17086     # for dependence libraries.  The import file would start with
17087     # the line `#! .'.  This would cause the generated library to
17088     # depend on `.', always an invalid library.  This was fixed in
17089     # development snapshots of GCC prior to 3.0.
17090     case $host_os in
17091       aix4 | aix4.[01] | aix4.[01].*)
17092       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17093            echo ' yes '
17094            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17095         :
17096       else
17097         can_build_shared=no
17098       fi
17099       ;;
17100     esac
17101     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17102     # soname into executable. Probably we can add versioning support to
17103     # collect2, so additional links can be useful in future.
17104     if test "$aix_use_runtimelinking" = yes; then
17105       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17106       # instead of lib<name>.a to let people know that these are not
17107       # typical AIX shared libraries.
17108       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17109     else
17110       # We preserve .a as extension for shared libraries through AIX4.2
17111       # and later when we are not doing run time linking.
17112       library_names_spec='${libname}${release}.a $libname.a'
17113       soname_spec='${libname}${release}${shared_ext}$major'
17114     fi
17115     shlibpath_var=LIBPATH
17116   fi
17117   ;;
17118
17119 amigaos*)
17120   library_names_spec='$libname.ixlibrary $libname.a'
17121   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17122   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'
17123   ;;
17124
17125 beos*)
17126   library_names_spec='${libname}${shared_ext}'
17127   dynamic_linker="$host_os ld.so"
17128   shlibpath_var=LIBRARY_PATH
17129   ;;
17130
17131 bsdi[45]*)
17132   version_type=linux
17133   need_version=no
17134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17135   soname_spec='${libname}${release}${shared_ext}$major'
17136   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17137   shlibpath_var=LD_LIBRARY_PATH
17138   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17139   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17140   # the default ld.so.conf also contains /usr/contrib/lib and
17141   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17142   # libtool to hard-code these into programs
17143   ;;
17144
17145 cygwin* | mingw* | pw32*)
17146   version_type=windows
17147   shrext_cmds=".dll"
17148   need_version=no
17149   need_lib_prefix=no
17150
17151   case $GCC,$host_os in
17152   yes,cygwin* | yes,mingw* | yes,pw32*)
17153     library_names_spec='$libname.dll.a'
17154     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17155     postinstall_cmds='base_file=`basename \${file}`~
17156       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17157       dldir=$destdir/`dirname \$dlpath`~
17158       test -d \$dldir || mkdir -p \$dldir~
17159       $install_prog $dir/$dlname \$dldir/$dlname'
17160     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17161       dlpath=$dir/\$dldll~
17162        $rm \$dlpath'
17163     shlibpath_overrides_runpath=yes
17164
17165     case $host_os in
17166     cygwin*)
17167       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17168       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17169       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17170       ;;
17171     mingw*)
17172       # MinGW DLLs use traditional 'lib' prefix
17173       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17174       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17175       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17176         # It is most probably a Windows format PATH printed by
17177         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17178         # path with ; separators, and with drive letters. We can handle the
17179         # drive letters (cygwin fileutils understands them), so leave them,
17180         # especially as we might pass files found there to a mingw objdump,
17181         # which wouldn't understand a cygwinified path. Ahh.
17182         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17183       else
17184         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17185       fi
17186       ;;
17187     pw32*)
17188       # pw32 DLLs use 'pw' prefix rather than 'lib'
17189       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17190       ;;
17191     esac
17192     ;;
17193
17194   *)
17195     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17196     ;;
17197   esac
17198   dynamic_linker='Win32 ld.exe'
17199   # FIXME: first we should search . and the directory the executable is in
17200   shlibpath_var=PATH
17201   ;;
17202
17203 darwin* | rhapsody*)
17204   dynamic_linker="$host_os dyld"
17205   version_type=darwin
17206   need_lib_prefix=no
17207   need_version=no
17208   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17209   soname_spec='${libname}${release}${major}$shared_ext'
17210   shlibpath_overrides_runpath=yes
17211   shlibpath_var=DYLD_LIBRARY_PATH
17212   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17213   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17214   if test "$GCC" = yes; then
17215     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"`
17216   else
17217     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17218   fi
17219   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17220   ;;
17221
17222 dgux*)
17223   version_type=linux
17224   need_lib_prefix=no
17225   need_version=no
17226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17227   soname_spec='${libname}${release}${shared_ext}$major'
17228   shlibpath_var=LD_LIBRARY_PATH
17229   ;;
17230
17231 freebsd1*)
17232   dynamic_linker=no
17233   ;;
17234
17235 kfreebsd*-gnu)
17236   version_type=linux
17237   need_lib_prefix=no
17238   need_version=no
17239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17240   soname_spec='${libname}${release}${shared_ext}$major'
17241   shlibpath_var=LD_LIBRARY_PATH
17242   shlibpath_overrides_runpath=no
17243   hardcode_into_libs=yes
17244   dynamic_linker='GNU ld.so'
17245   ;;
17246
17247 freebsd* | dragonfly*)
17248   # DragonFly does not have aout.  When/if they implement a new
17249   # versioning mechanism, adjust this.
17250   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17251   version_type=freebsd-$objformat
17252   case $version_type in
17253     freebsd-elf*)
17254       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17255       need_version=no
17256       need_lib_prefix=no
17257       ;;
17258     freebsd-*)
17259       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17260       need_version=yes
17261       ;;
17262   esac
17263   shlibpath_var=LD_LIBRARY_PATH
17264   case $host_os in
17265   freebsd2*)
17266     shlibpath_overrides_runpath=yes
17267     ;;
17268   freebsd3.[01]* | freebsdelf3.[01]*)
17269     shlibpath_overrides_runpath=yes
17270     hardcode_into_libs=yes
17271     ;;
17272   *) # from 3.2 on
17273     shlibpath_overrides_runpath=no
17274     hardcode_into_libs=yes
17275     ;;
17276   esac
17277   ;;
17278
17279 gnu*)
17280   version_type=linux
17281   need_lib_prefix=no
17282   need_version=no
17283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17284   soname_spec='${libname}${release}${shared_ext}$major'
17285   shlibpath_var=LD_LIBRARY_PATH
17286   hardcode_into_libs=yes
17287   ;;
17288
17289 hpux9* | hpux10* | hpux11*)
17290   # Give a soname corresponding to the major version so that dld.sl refuses to
17291   # link against other versions.
17292   version_type=sunos
17293   need_lib_prefix=no
17294   need_version=no
17295   case "$host_cpu" in
17296   ia64*)
17297     shrext_cmds='.so'
17298     hardcode_into_libs=yes
17299     dynamic_linker="$host_os dld.so"
17300     shlibpath_var=LD_LIBRARY_PATH
17301     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17302     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17303     soname_spec='${libname}${release}${shared_ext}$major'
17304     if test "X$HPUX_IA64_MODE" = X32; then
17305       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17306     else
17307       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17308     fi
17309     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17310     ;;
17311    hppa*64*)
17312      shrext_cmds='.sl'
17313      hardcode_into_libs=yes
17314      dynamic_linker="$host_os dld.sl"
17315      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17316      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17317      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17318      soname_spec='${libname}${release}${shared_ext}$major'
17319      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17320      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17321      ;;
17322    *)
17323     shrext_cmds='.sl'
17324     dynamic_linker="$host_os dld.sl"
17325     shlibpath_var=SHLIB_PATH
17326     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17327     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17328     soname_spec='${libname}${release}${shared_ext}$major'
17329     ;;
17330   esac
17331   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17332   postinstall_cmds='chmod 555 $lib'
17333   ;;
17334
17335 irix5* | irix6* | nonstopux*)
17336   case $host_os in
17337     nonstopux*) version_type=nonstopux ;;
17338     *)
17339         if test "$lt_cv_prog_gnu_ld" = yes; then
17340                 version_type=linux
17341         else
17342                 version_type=irix
17343         fi ;;
17344   esac
17345   need_lib_prefix=no
17346   need_version=no
17347   soname_spec='${libname}${release}${shared_ext}$major'
17348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17349   case $host_os in
17350   irix5* | nonstopux*)
17351     libsuff= shlibsuff=
17352     ;;
17353   *)
17354     case $LD in # libtool.m4 will add one of these switches to LD
17355     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17356       libsuff= shlibsuff= libmagic=32-bit;;
17357     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17358       libsuff=32 shlibsuff=N32 libmagic=N32;;
17359     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17360       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17361     *) libsuff= shlibsuff= libmagic=never-match;;
17362     esac
17363     ;;
17364   esac
17365   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17366   shlibpath_overrides_runpath=no
17367   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17368   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17369   hardcode_into_libs=yes
17370   ;;
17371
17372 # No shared lib support for Linux oldld, aout, or coff.
17373 linux*oldld* | linux*aout* | linux*coff*)
17374   dynamic_linker=no
17375   ;;
17376
17377 # This must be Linux ELF.
17378 linux*)
17379   version_type=linux
17380   need_lib_prefix=no
17381   need_version=no
17382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17383   soname_spec='${libname}${release}${shared_ext}$major'
17384   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17385   shlibpath_var=LD_LIBRARY_PATH
17386   shlibpath_overrides_runpath=no
17387   # This implies no fast_install, which is unacceptable.
17388   # Some rework will be needed to allow for fast_install
17389   # before this can be enabled.
17390   hardcode_into_libs=yes
17391
17392   # Append ld.so.conf contents to the search path
17393   if test -f /etc/ld.so.conf; then
17394     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' ' '`
17395     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17396   fi
17397
17398   # We used to test for /lib/ld.so.1 and disable shared libraries on
17399   # powerpc, because MkLinux only supported shared libraries with the
17400   # GNU dynamic linker.  Since this was broken with cross compilers,
17401   # most powerpc-linux boxes support dynamic linking these days and
17402   # people can always --disable-shared, the test was removed, and we
17403   # assume the GNU/Linux dynamic linker is in use.
17404   dynamic_linker='GNU/Linux ld.so'
17405   ;;
17406
17407 knetbsd*-gnu)
17408   version_type=linux
17409   need_lib_prefix=no
17410   need_version=no
17411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17412   soname_spec='${libname}${release}${shared_ext}$major'
17413   shlibpath_var=LD_LIBRARY_PATH
17414   shlibpath_overrides_runpath=no
17415   hardcode_into_libs=yes
17416   dynamic_linker='GNU ld.so'
17417   ;;
17418
17419 netbsd*)
17420   version_type=sunos
17421   need_lib_prefix=no
17422   need_version=no
17423   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17424     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17425     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17426     dynamic_linker='NetBSD (a.out) ld.so'
17427   else
17428     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17429     soname_spec='${libname}${release}${shared_ext}$major'
17430     dynamic_linker='NetBSD ld.elf_so'
17431   fi
17432   shlibpath_var=LD_LIBRARY_PATH
17433   shlibpath_overrides_runpath=yes
17434   hardcode_into_libs=yes
17435   ;;
17436
17437 newsos6)
17438   version_type=linux
17439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17440   shlibpath_var=LD_LIBRARY_PATH
17441   shlibpath_overrides_runpath=yes
17442   ;;
17443
17444 nto-qnx*)
17445   version_type=linux
17446   need_lib_prefix=no
17447   need_version=no
17448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17449   soname_spec='${libname}${release}${shared_ext}$major'
17450   shlibpath_var=LD_LIBRARY_PATH
17451   shlibpath_overrides_runpath=yes
17452   ;;
17453
17454 openbsd*)
17455   version_type=sunos
17456   need_lib_prefix=no
17457   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17458   case $host_os in
17459     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17460     *)                         need_version=no  ;;
17461   esac
17462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17463   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17464   shlibpath_var=LD_LIBRARY_PATH
17465   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17466     case $host_os in
17467       openbsd2.[89] | openbsd2.[89].*)
17468         shlibpath_overrides_runpath=no
17469         ;;
17470       *)
17471         shlibpath_overrides_runpath=yes
17472         ;;
17473       esac
17474   else
17475     shlibpath_overrides_runpath=yes
17476   fi
17477   ;;
17478
17479 os2*)
17480   libname_spec='$name'
17481   shrext_cmds=".dll"
17482   need_lib_prefix=no
17483   library_names_spec='$libname${shared_ext} $libname.a'
17484   dynamic_linker='OS/2 ld.exe'
17485   shlibpath_var=LIBPATH
17486   ;;
17487
17488 osf3* | osf4* | osf5*)
17489   version_type=osf
17490   need_lib_prefix=no
17491   need_version=no
17492   soname_spec='${libname}${release}${shared_ext}$major'
17493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494   shlibpath_var=LD_LIBRARY_PATH
17495   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17496   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17497   ;;
17498
17499 sco3.2v5*)
17500   version_type=osf
17501   soname_spec='${libname}${release}${shared_ext}$major'
17502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17503   shlibpath_var=LD_LIBRARY_PATH
17504   ;;
17505
17506 solaris*)
17507   version_type=linux
17508   need_lib_prefix=no
17509   need_version=no
17510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17511   soname_spec='${libname}${release}${shared_ext}$major'
17512   shlibpath_var=LD_LIBRARY_PATH
17513   shlibpath_overrides_runpath=yes
17514   hardcode_into_libs=yes
17515   # ldd complains unless libraries are executable
17516   postinstall_cmds='chmod +x $lib'
17517   ;;
17518
17519 sunos4*)
17520   version_type=sunos
17521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17522   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17523   shlibpath_var=LD_LIBRARY_PATH
17524   shlibpath_overrides_runpath=yes
17525   if test "$with_gnu_ld" = yes; then
17526     need_lib_prefix=no
17527   fi
17528   need_version=yes
17529   ;;
17530
17531 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17532   version_type=linux
17533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17534   soname_spec='${libname}${release}${shared_ext}$major'
17535   shlibpath_var=LD_LIBRARY_PATH
17536   case $host_vendor in
17537     sni)
17538       shlibpath_overrides_runpath=no
17539       need_lib_prefix=no
17540       export_dynamic_flag_spec='${wl}-Blargedynsym'
17541       runpath_var=LD_RUN_PATH
17542       ;;
17543     siemens)
17544       need_lib_prefix=no
17545       ;;
17546     motorola)
17547       need_lib_prefix=no
17548       need_version=no
17549       shlibpath_overrides_runpath=no
17550       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17551       ;;
17552   esac
17553   ;;
17554
17555 sysv4*MP*)
17556   if test -d /usr/nec ;then
17557     version_type=linux
17558     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17559     soname_spec='$libname${shared_ext}.$major'
17560     shlibpath_var=LD_LIBRARY_PATH
17561   fi
17562   ;;
17563
17564 uts4*)
17565   version_type=linux
17566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17567   soname_spec='${libname}${release}${shared_ext}$major'
17568   shlibpath_var=LD_LIBRARY_PATH
17569   ;;
17570
17571 *)
17572   dynamic_linker=no
17573   ;;
17574 esac
17575 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17576 echo "${ECHO_T}$dynamic_linker" >&6
17577 test "$dynamic_linker" = no && can_build_shared=no
17578
17579 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17580 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17581 hardcode_action_F77=
17582 if test -n "$hardcode_libdir_flag_spec_F77" || \
17583    test -n "$runpath_var_F77" || \
17584    test "X$hardcode_automatic_F77" = "Xyes" ; then
17585
17586   # We can hardcode non-existant directories.
17587   if test "$hardcode_direct_F77" != no &&
17588      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17589      # have to relink, otherwise we might link with an installed library
17590      # when we should be linking with a yet-to-be-installed one
17591      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17592      test "$hardcode_minus_L_F77" != no; then
17593     # Linking always hardcodes the temporary library directory.
17594     hardcode_action_F77=relink
17595   else
17596     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17597     hardcode_action_F77=immediate
17598   fi
17599 else
17600   # We cannot hardcode anything, or else we can only hardcode existing
17601   # directories.
17602   hardcode_action_F77=unsupported
17603 fi
17604 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17605 echo "${ECHO_T}$hardcode_action_F77" >&6
17606
17607 if test "$hardcode_action_F77" = relink; then
17608   # Fast installation is not supported
17609   enable_fast_install=no
17610 elif test "$shlibpath_overrides_runpath" = yes ||
17611      test "$enable_shared" = no; then
17612   # Fast installation is not necessary
17613   enable_fast_install=needless
17614 fi
17615
17616 striplib=
17617 old_striplib=
17618 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17619 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17620 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17621   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17622   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17623   echo "$as_me:$LINENO: result: yes" >&5
17624 echo "${ECHO_T}yes" >&6
17625 else
17626 # FIXME - insert some real tests, host_os isn't really good enough
17627   case $host_os in
17628    darwin*)
17629        if test -n "$STRIP" ; then
17630          striplib="$STRIP -x"
17631          echo "$as_me:$LINENO: result: yes" >&5
17632 echo "${ECHO_T}yes" >&6
17633        else
17634   echo "$as_me:$LINENO: result: no" >&5
17635 echo "${ECHO_T}no" >&6
17636 fi
17637        ;;
17638    *)
17639   echo "$as_me:$LINENO: result: no" >&5
17640 echo "${ECHO_T}no" >&6
17641     ;;
17642   esac
17643 fi
17644
17645
17646
17647 # The else clause should only fire when bootstrapping the
17648 # libtool distribution, otherwise you forgot to ship ltmain.sh
17649 # with your package, and you will get complaints that there are
17650 # no rules to generate ltmain.sh.
17651 if test -f "$ltmain"; then
17652   # See if we are running on zsh, and set the options which allow our commands through
17653   # without removal of \ escapes.
17654   if test -n "${ZSH_VERSION+set}" ; then
17655     setopt NO_GLOB_SUBST
17656   fi
17657   # Now quote all the things that may contain metacharacters while being
17658   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17659   # variables and quote the copies for generation of the libtool script.
17660   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17661     SED SHELL STRIP \
17662     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17663     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17664     deplibs_check_method reload_flag reload_cmds need_locks \
17665     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17666     lt_cv_sys_global_symbol_to_c_name_address \
17667     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17668     old_postinstall_cmds old_postuninstall_cmds \
17669     compiler_F77 \
17670     CC_F77 \
17671     LD_F77 \
17672     lt_prog_compiler_wl_F77 \
17673     lt_prog_compiler_pic_F77 \
17674     lt_prog_compiler_static_F77 \
17675     lt_prog_compiler_no_builtin_flag_F77 \
17676     export_dynamic_flag_spec_F77 \
17677     thread_safe_flag_spec_F77 \
17678     whole_archive_flag_spec_F77 \
17679     enable_shared_with_static_runtimes_F77 \
17680     old_archive_cmds_F77 \
17681     old_archive_from_new_cmds_F77 \
17682     predep_objects_F77 \
17683     postdep_objects_F77 \
17684     predeps_F77 \
17685     postdeps_F77 \
17686     compiler_lib_search_path_F77 \
17687     archive_cmds_F77 \
17688     archive_expsym_cmds_F77 \
17689     postinstall_cmds_F77 \
17690     postuninstall_cmds_F77 \
17691     old_archive_from_expsyms_cmds_F77 \
17692     allow_undefined_flag_F77 \
17693     no_undefined_flag_F77 \
17694     export_symbols_cmds_F77 \
17695     hardcode_libdir_flag_spec_F77 \
17696     hardcode_libdir_flag_spec_ld_F77 \
17697     hardcode_libdir_separator_F77 \
17698     hardcode_automatic_F77 \
17699     module_cmds_F77 \
17700     module_expsym_cmds_F77 \
17701     lt_cv_prog_compiler_c_o_F77 \
17702     exclude_expsyms_F77 \
17703     include_expsyms_F77; do
17704
17705     case $var in
17706     old_archive_cmds_F77 | \
17707     old_archive_from_new_cmds_F77 | \
17708     archive_cmds_F77 | \
17709     archive_expsym_cmds_F77 | \
17710     module_cmds_F77 | \
17711     module_expsym_cmds_F77 | \
17712     old_archive_from_expsyms_cmds_F77 | \
17713     export_symbols_cmds_F77 | \
17714     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17715     postinstall_cmds | postuninstall_cmds | \
17716     old_postinstall_cmds | old_postuninstall_cmds | \
17717     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17718       # Double-quote double-evaled strings.
17719       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17720       ;;
17721     *)
17722       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17723       ;;
17724     esac
17725   done
17726
17727   case $lt_echo in
17728   *'\$0 --fallback-echo"')
17729     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17730     ;;
17731   esac
17732
17733 cfgfile="$ofile"
17734
17735   cat <<__EOF__ >> "$cfgfile"
17736 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17737
17738 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17739
17740 # Shell to use when invoking shell scripts.
17741 SHELL=$lt_SHELL
17742
17743 # Whether or not to build shared libraries.
17744 build_libtool_libs=$enable_shared
17745
17746 # Whether or not to build static libraries.
17747 build_old_libs=$enable_static
17748
17749 # Whether or not to add -lc for building shared libraries.
17750 build_libtool_need_lc=$archive_cmds_need_lc_F77
17751
17752 # Whether or not to disallow shared libs when runtime libs are static
17753 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17754
17755 # Whether or not to optimize for fast installation.
17756 fast_install=$enable_fast_install
17757
17758 # The host system.
17759 host_alias=$host_alias
17760 host=$host
17761 host_os=$host_os
17762
17763 # The build system.
17764 build_alias=$build_alias
17765 build=$build
17766 build_os=$build_os
17767
17768 # An echo program that does not interpret backslashes.
17769 echo=$lt_echo
17770
17771 # The archiver.
17772 AR=$lt_AR
17773 AR_FLAGS=$lt_AR_FLAGS
17774
17775 # A C compiler.
17776 LTCC=$lt_LTCC
17777
17778 # A language-specific compiler.
17779 CC=$lt_compiler_F77
17780
17781 # Is the compiler the GNU C compiler?
17782 with_gcc=$GCC_F77
17783
17784 # An ERE matcher.
17785 EGREP=$lt_EGREP
17786
17787 # The linker used to build libraries.
17788 LD=$lt_LD_F77
17789
17790 # Whether we need hard or soft links.
17791 LN_S=$lt_LN_S
17792
17793 # A BSD-compatible nm program.
17794 NM=$lt_NM
17795
17796 # A symbol stripping program
17797 STRIP=$lt_STRIP
17798
17799 # Used to examine libraries when file_magic_cmd begins "file"
17800 MAGIC_CMD=$MAGIC_CMD
17801
17802 # Used on cygwin: DLL creation program.
17803 DLLTOOL="$DLLTOOL"
17804
17805 # Used on cygwin: object dumper.
17806 OBJDUMP="$OBJDUMP"
17807
17808 # Used on cygwin: assembler.
17809 AS="$AS"
17810
17811 # The name of the directory that contains temporary libtool files.
17812 objdir=$objdir
17813
17814 # How to create reloadable object files.
17815 reload_flag=$lt_reload_flag
17816 reload_cmds=$lt_reload_cmds
17817
17818 # How to pass a linker flag through the compiler.
17819 wl=$lt_lt_prog_compiler_wl_F77
17820
17821 # Object file suffix (normally "o").
17822 objext="$ac_objext"
17823
17824 # Old archive suffix (normally "a").
17825 libext="$libext"
17826
17827 # Shared library suffix (normally ".so").
17828 shrext_cmds='$shrext_cmds'
17829
17830 # Executable file suffix (normally "").
17831 exeext="$exeext"
17832
17833 # Additional compiler flags for building library objects.
17834 pic_flag=$lt_lt_prog_compiler_pic_F77
17835 pic_mode=$pic_mode
17836
17837 # What is the maximum length of a command?
17838 max_cmd_len=$lt_cv_sys_max_cmd_len
17839
17840 # Does compiler simultaneously support -c and -o options?
17841 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17842
17843 # Must we lock files when doing compilation?
17844 need_locks=$lt_need_locks
17845
17846 # Do we need the lib prefix for modules?
17847 need_lib_prefix=$need_lib_prefix
17848
17849 # Do we need a version for libraries?
17850 need_version=$need_version
17851
17852 # Whether dlopen is supported.
17853 dlopen_support=$enable_dlopen
17854
17855 # Whether dlopen of programs is supported.
17856 dlopen_self=$enable_dlopen_self
17857
17858 # Whether dlopen of statically linked programs is supported.
17859 dlopen_self_static=$enable_dlopen_self_static
17860
17861 # Compiler flag to prevent dynamic linking.
17862 link_static_flag=$lt_lt_prog_compiler_static_F77
17863
17864 # Compiler flag to turn off builtin functions.
17865 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17866
17867 # Compiler flag to allow reflexive dlopens.
17868 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17869
17870 # Compiler flag to generate shared objects directly from archives.
17871 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17872
17873 # Compiler flag to generate thread-safe objects.
17874 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17875
17876 # Library versioning type.
17877 version_type=$version_type
17878
17879 # Format of library name prefix.
17880 libname_spec=$lt_libname_spec
17881
17882 # List of archive names.  First name is the real one, the rest are links.
17883 # The last name is the one that the linker finds with -lNAME.
17884 library_names_spec=$lt_library_names_spec
17885
17886 # The coded name of the library, if different from the real name.
17887 soname_spec=$lt_soname_spec
17888
17889 # Commands used to build and install an old-style archive.
17890 RANLIB=$lt_RANLIB
17891 old_archive_cmds=$lt_old_archive_cmds_F77
17892 old_postinstall_cmds=$lt_old_postinstall_cmds
17893 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17894
17895 # Create an old-style archive from a shared archive.
17896 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17897
17898 # Create a temporary old-style archive to link instead of a shared archive.
17899 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17900
17901 # Commands used to build and install a shared archive.
17902 archive_cmds=$lt_archive_cmds_F77
17903 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17904 postinstall_cmds=$lt_postinstall_cmds
17905 postuninstall_cmds=$lt_postuninstall_cmds
17906
17907 # Commands used to build a loadable module (assumed same as above if empty)
17908 module_cmds=$lt_module_cmds_F77
17909 module_expsym_cmds=$lt_module_expsym_cmds_F77
17910
17911 # Commands to strip libraries.
17912 old_striplib=$lt_old_striplib
17913 striplib=$lt_striplib
17914
17915 # Dependencies to place before the objects being linked to create a
17916 # shared library.
17917 predep_objects=$lt_predep_objects_F77
17918
17919 # Dependencies to place after the objects being linked to create a
17920 # shared library.
17921 postdep_objects=$lt_postdep_objects_F77
17922
17923 # Dependencies to place before the objects being linked to create a
17924 # shared library.
17925 predeps=$lt_predeps_F77
17926
17927 # Dependencies to place after the objects being linked to create a
17928 # shared library.
17929 postdeps=$lt_postdeps_F77
17930
17931 # The library search path used internally by the compiler when linking
17932 # a shared library.
17933 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17934
17935 # Method to check whether dependent libraries are shared objects.
17936 deplibs_check_method=$lt_deplibs_check_method
17937
17938 # Command to use when deplibs_check_method == file_magic.
17939 file_magic_cmd=$lt_file_magic_cmd
17940
17941 # Flag that allows shared libraries with undefined symbols to be built.
17942 allow_undefined_flag=$lt_allow_undefined_flag_F77
17943
17944 # Flag that forces no undefined symbols.
17945 no_undefined_flag=$lt_no_undefined_flag_F77
17946
17947 # Commands used to finish a libtool library installation in a directory.
17948 finish_cmds=$lt_finish_cmds
17949
17950 # Same as above, but a single script fragment to be evaled but not shown.
17951 finish_eval=$lt_finish_eval
17952
17953 # Take the output of nm and produce a listing of raw symbols and C names.
17954 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17955
17956 # Transform the output of nm in a proper C declaration
17957 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17958
17959 # Transform the output of nm in a C name address pair
17960 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17961
17962 # This is the shared library runtime path variable.
17963 runpath_var=$runpath_var
17964
17965 # This is the shared library path variable.
17966 shlibpath_var=$shlibpath_var
17967
17968 # Is shlibpath searched before the hard-coded library search path?
17969 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17970
17971 # How to hardcode a shared library path into an executable.
17972 hardcode_action=$hardcode_action_F77
17973
17974 # Whether we should hardcode library paths into libraries.
17975 hardcode_into_libs=$hardcode_into_libs
17976
17977 # Flag to hardcode \$libdir into a binary during linking.
17978 # This must work even if \$libdir does not exist.
17979 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17980
17981 # If ld is used when linking, flag to hardcode \$libdir into
17982 # a binary during linking. This must work even if \$libdir does
17983 # not exist.
17984 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17985
17986 # Whether we need a single -rpath flag with a separated argument.
17987 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17988
17989 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17990 # resulting binary.
17991 hardcode_direct=$hardcode_direct_F77
17992
17993 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17994 # resulting binary.
17995 hardcode_minus_L=$hardcode_minus_L_F77
17996
17997 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17998 # the resulting binary.
17999 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18000
18001 # Set to yes if building a shared library automatically hardcodes DIR into the library
18002 # and all subsequent libraries and executables linked against it.
18003 hardcode_automatic=$hardcode_automatic_F77
18004
18005 # Variables whose values should be saved in libtool wrapper scripts and
18006 # restored at relink time.
18007 variables_saved_for_relink="$variables_saved_for_relink"
18008
18009 # Whether libtool must link a program against all its dependency libraries.
18010 link_all_deplibs=$link_all_deplibs_F77
18011
18012 # Compile-time system search path for libraries
18013 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18014
18015 # Run-time system search path for libraries
18016 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18017
18018 # Fix the shell variable \$srcfile for the compiler.
18019 fix_srcfile_path="$fix_srcfile_path_F77"
18020
18021 # Set to yes if exported symbols are required.
18022 always_export_symbols=$always_export_symbols_F77
18023
18024 # The commands to list exported symbols.
18025 export_symbols_cmds=$lt_export_symbols_cmds_F77
18026
18027 # The commands to extract the exported symbol list from a shared archive.
18028 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18029
18030 # Symbols that should not be listed in the preloaded symbols.
18031 exclude_expsyms=$lt_exclude_expsyms_F77
18032
18033 # Symbols that must always be exported.
18034 include_expsyms=$lt_include_expsyms_F77
18035
18036 # ### END LIBTOOL TAG CONFIG: $tagname
18037
18038 __EOF__
18039
18040
18041 else
18042   # If there is no Makefile yet, we rely on a make rule to execute
18043   # `config.status --recheck' to rerun these tests and create the
18044   # libtool script then.
18045   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18046   if test -f "$ltmain_in"; then
18047     test -f Makefile && make "$ltmain"
18048   fi
18049 fi
18050
18051
18052 ac_ext=c
18053 ac_cpp='$CPP $CPPFLAGS'
18054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18057
18058 CC="$lt_save_CC"
18059
18060         else
18061           tagname=""
18062         fi
18063         ;;
18064
18065       GCJ)
18066         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18067
18068
18069
18070 # Source file extension for Java test sources.
18071 ac_ext=java
18072
18073 # Object file extension for compiled Java test sources.
18074 objext=o
18075 objext_GCJ=$objext
18076
18077 # Code to be used in simple compile tests
18078 lt_simple_compile_test_code="class foo {}\n"
18079
18080 # Code to be used in simple link tests
18081 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18082
18083 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18084
18085 # If no C compiler was specified, use CC.
18086 LTCC=${LTCC-"$CC"}
18087
18088 # Allow CC to be a program name with arguments.
18089 compiler=$CC
18090
18091
18092 # save warnings/boilerplate of simple test code
18093 ac_outfile=conftest.$ac_objext
18094 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18095 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18096 _lt_compiler_boilerplate=`cat conftest.err`
18097 $rm conftest*
18098
18099 ac_outfile=conftest.$ac_objext
18100 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18101 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18102 _lt_linker_boilerplate=`cat conftest.err`
18103 $rm conftest*
18104
18105
18106 # Allow CC to be a program name with arguments.
18107 lt_save_CC="$CC"
18108 CC=${GCJ-"gcj"}
18109 compiler=$CC
18110 compiler_GCJ=$CC
18111 for cc_temp in $compiler""; do
18112   case $cc_temp in
18113     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18114     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18115     \-*) ;;
18116     *) break;;
18117   esac
18118 done
18119 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18120
18121
18122 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18123 archive_cmds_need_lc_GCJ=no
18124
18125 old_archive_cmds_GCJ=$old_archive_cmds
18126
18127
18128 lt_prog_compiler_no_builtin_flag_GCJ=
18129
18130 if test "$GCC" = yes; then
18131   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18132
18133
18134 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18135 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18136 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18137   echo $ECHO_N "(cached) $ECHO_C" >&6
18138 else
18139   lt_cv_prog_compiler_rtti_exceptions=no
18140   ac_outfile=conftest.$ac_objext
18141    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18142    lt_compiler_flag="-fno-rtti -fno-exceptions"
18143    # Insert the option either (1) after the last *FLAGS variable, or
18144    # (2) before a word containing "conftest.", or (3) at the end.
18145    # Note that $ac_compile itself does not contain backslashes and begins
18146    # with a dollar sign (not a hyphen), so the echo should work correctly.
18147    # The option is referenced via a variable to avoid confusing sed.
18148    lt_compile=`echo "$ac_compile" | $SED \
18149    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18150    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18151    -e 's:$: $lt_compiler_flag:'`
18152    (eval echo "\"\$as_me:18152: $lt_compile\"" >&5)
18153    (eval "$lt_compile" 2>conftest.err)
18154    ac_status=$?
18155    cat conftest.err >&5
18156    echo "$as_me:18156: \$? = $ac_status" >&5
18157    if (exit $ac_status) && test -s "$ac_outfile"; then
18158      # The compiler can only warn and ignore the option if not recognized
18159      # So say no if there are warnings other than the usual output.
18160      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18161      $SED '/^$/d' conftest.err >conftest.er2
18162      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18163        lt_cv_prog_compiler_rtti_exceptions=yes
18164      fi
18165    fi
18166    $rm conftest*
18167
18168 fi
18169 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18170 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18171
18172 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18173     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18174 else
18175     :
18176 fi
18177
18178 fi
18179
18180 lt_prog_compiler_wl_GCJ=
18181 lt_prog_compiler_pic_GCJ=
18182 lt_prog_compiler_static_GCJ=
18183
18184 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18185 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18186
18187   if test "$GCC" = yes; then
18188     lt_prog_compiler_wl_GCJ='-Wl,'
18189     lt_prog_compiler_static_GCJ='-static'
18190
18191     case $host_os in
18192       aix*)
18193       # All AIX code is PIC.
18194       if test "$host_cpu" = ia64; then
18195         # AIX 5 now supports IA64 processor
18196         lt_prog_compiler_static_GCJ='-Bstatic'
18197       fi
18198       ;;
18199
18200     amigaos*)
18201       # FIXME: we need at least 68020 code to build shared libraries, but
18202       # adding the `-m68020' flag to GCC prevents building anything better,
18203       # like `-m68040'.
18204       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18205       ;;
18206
18207     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18208       # PIC is the default for these OSes.
18209       ;;
18210
18211     mingw* | pw32* | os2*)
18212       # This hack is so that the source file can tell whether it is being
18213       # built for inclusion in a dll (and should export symbols for example).
18214       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18215       ;;
18216
18217     darwin* | rhapsody*)
18218       # PIC is the default on this platform
18219       # Common symbols not allowed in MH_DYLIB files
18220       lt_prog_compiler_pic_GCJ='-fno-common'
18221       ;;
18222
18223     msdosdjgpp*)
18224       # Just because we use GCC doesn't mean we suddenly get shared libraries
18225       # on systems that don't support them.
18226       lt_prog_compiler_can_build_shared_GCJ=no
18227       enable_shared=no
18228       ;;
18229
18230     sysv4*MP*)
18231       if test -d /usr/nec; then
18232         lt_prog_compiler_pic_GCJ=-Kconform_pic
18233       fi
18234       ;;
18235
18236     hpux*)
18237       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18238       # not for PA HP-UX.
18239       case "$host_cpu" in
18240       hppa*64*|ia64*)
18241         # +Z the default
18242         ;;
18243       *)
18244         lt_prog_compiler_pic_GCJ='-fPIC'
18245         ;;
18246       esac
18247       ;;
18248
18249     *)
18250       lt_prog_compiler_pic_GCJ='-fPIC'
18251       ;;
18252     esac
18253   else
18254     # PORTME Check for flag to pass linker flags through the system compiler.
18255     case $host_os in
18256     aix*)
18257       lt_prog_compiler_wl_GCJ='-Wl,'
18258       if test "$host_cpu" = ia64; then
18259         # AIX 5 now supports IA64 processor
18260         lt_prog_compiler_static_GCJ='-Bstatic'
18261       else
18262         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18263       fi
18264       ;;
18265       darwin*)
18266         # PIC is the default on this platform
18267         # Common symbols not allowed in MH_DYLIB files
18268        case $cc_basename in
18269          xlc*)
18270          lt_prog_compiler_pic_GCJ='-qnocommon'
18271          lt_prog_compiler_wl_GCJ='-Wl,'
18272          ;;
18273        esac
18274        ;;
18275
18276     mingw* | pw32* | os2*)
18277       # This hack is so that the source file can tell whether it is being
18278       # built for inclusion in a dll (and should export symbols for example).
18279       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18280       ;;
18281
18282     hpux9* | hpux10* | hpux11*)
18283       lt_prog_compiler_wl_GCJ='-Wl,'
18284       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18285       # not for PA HP-UX.
18286       case "$host_cpu" in
18287       hppa*64*|ia64*)
18288         # +Z the default
18289         ;;
18290       *)
18291         lt_prog_compiler_pic_GCJ='+Z'
18292         ;;
18293       esac
18294       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18295       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18296       ;;
18297
18298     irix5* | irix6* | nonstopux*)
18299       lt_prog_compiler_wl_GCJ='-Wl,'
18300       # PIC (with -KPIC) is the default.
18301       lt_prog_compiler_static_GCJ='-non_shared'
18302       ;;
18303
18304     newsos6)
18305       lt_prog_compiler_pic_GCJ='-KPIC'
18306       lt_prog_compiler_static_GCJ='-Bstatic'
18307       ;;
18308
18309     linux*)
18310       case $cc_basename in
18311       icc* | ecc*)
18312         lt_prog_compiler_wl_GCJ='-Wl,'
18313         lt_prog_compiler_pic_GCJ='-KPIC'
18314         lt_prog_compiler_static_GCJ='-static'
18315         ;;
18316       pgcc* | pgf77* | pgf90*)
18317         # Portland Group compilers (*not* the Pentium gcc compiler,
18318         # which looks to be a dead project)
18319         lt_prog_compiler_wl_GCJ='-Wl,'
18320         lt_prog_compiler_pic_GCJ='-fpic'
18321         lt_prog_compiler_static_GCJ='-static'
18322         ;;
18323       ccc*)
18324         lt_prog_compiler_wl_GCJ='-Wl,'
18325         # All Alpha code is PIC.
18326         lt_prog_compiler_static_GCJ='-non_shared'
18327         ;;
18328       esac
18329       ;;
18330
18331     osf3* | osf4* | osf5*)
18332       lt_prog_compiler_wl_GCJ='-Wl,'
18333       # All OSF/1 code is PIC.
18334       lt_prog_compiler_static_GCJ='-non_shared'
18335       ;;
18336
18337     sco3.2v5*)
18338       lt_prog_compiler_pic_GCJ='-Kpic'
18339       lt_prog_compiler_static_GCJ='-dn'
18340       ;;
18341
18342     solaris*)
18343       lt_prog_compiler_pic_GCJ='-KPIC'
18344       lt_prog_compiler_static_GCJ='-Bstatic'
18345       case $cc_basename in
18346       f77* | f90* | f95*)
18347         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18348       *)
18349         lt_prog_compiler_wl_GCJ='-Wl,';;
18350       esac
18351       ;;
18352
18353     sunos4*)
18354       lt_prog_compiler_wl_GCJ='-Qoption ld '
18355       lt_prog_compiler_pic_GCJ='-PIC'
18356       lt_prog_compiler_static_GCJ='-Bstatic'
18357       ;;
18358
18359     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18360       lt_prog_compiler_wl_GCJ='-Wl,'
18361       lt_prog_compiler_pic_GCJ='-KPIC'
18362       lt_prog_compiler_static_GCJ='-Bstatic'
18363       ;;
18364
18365     sysv4*MP*)
18366       if test -d /usr/nec ;then
18367         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18368         lt_prog_compiler_static_GCJ='-Bstatic'
18369       fi
18370       ;;
18371
18372     unicos*)
18373       lt_prog_compiler_wl_GCJ='-Wl,'
18374       lt_prog_compiler_can_build_shared_GCJ=no
18375       ;;
18376
18377     uts4*)
18378       lt_prog_compiler_pic_GCJ='-pic'
18379       lt_prog_compiler_static_GCJ='-Bstatic'
18380       ;;
18381
18382     *)
18383       lt_prog_compiler_can_build_shared_GCJ=no
18384       ;;
18385     esac
18386   fi
18387
18388 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18389 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18390
18391 #
18392 # Check to make sure the PIC flag actually works.
18393 #
18394 if test -n "$lt_prog_compiler_pic_GCJ"; then
18395
18396 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18397 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18398 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18399   echo $ECHO_N "(cached) $ECHO_C" >&6
18400 else
18401   lt_prog_compiler_pic_works_GCJ=no
18402   ac_outfile=conftest.$ac_objext
18403    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18404    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18405    # Insert the option either (1) after the last *FLAGS variable, or
18406    # (2) before a word containing "conftest.", or (3) at the end.
18407    # Note that $ac_compile itself does not contain backslashes and begins
18408    # with a dollar sign (not a hyphen), so the echo should work correctly.
18409    # The option is referenced via a variable to avoid confusing sed.
18410    lt_compile=`echo "$ac_compile" | $SED \
18411    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18412    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18413    -e 's:$: $lt_compiler_flag:'`
18414    (eval echo "\"\$as_me:18414: $lt_compile\"" >&5)
18415    (eval "$lt_compile" 2>conftest.err)
18416    ac_status=$?
18417    cat conftest.err >&5
18418    echo "$as_me:18418: \$? = $ac_status" >&5
18419    if (exit $ac_status) && test -s "$ac_outfile"; then
18420      # The compiler can only warn and ignore the option if not recognized
18421      # So say no if there are warnings other than the usual output.
18422      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18423      $SED '/^$/d' conftest.err >conftest.er2
18424      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18425        lt_prog_compiler_pic_works_GCJ=yes
18426      fi
18427    fi
18428    $rm conftest*
18429
18430 fi
18431 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18432 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18433
18434 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18435     case $lt_prog_compiler_pic_GCJ in
18436      "" | " "*) ;;
18437      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18438      esac
18439 else
18440     lt_prog_compiler_pic_GCJ=
18441      lt_prog_compiler_can_build_shared_GCJ=no
18442 fi
18443
18444 fi
18445 case "$host_os" in
18446   # For platforms which do not support PIC, -DPIC is meaningless:
18447   *djgpp*)
18448     lt_prog_compiler_pic_GCJ=
18449     ;;
18450   *)
18451     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18452     ;;
18453 esac
18454
18455 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18456 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18457 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18458   echo $ECHO_N "(cached) $ECHO_C" >&6
18459 else
18460   lt_cv_prog_compiler_c_o_GCJ=no
18461    $rm -r conftest 2>/dev/null
18462    mkdir conftest
18463    cd conftest
18464    mkdir out
18465    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18466
18467    lt_compiler_flag="-o out/conftest2.$ac_objext"
18468    # Insert the option either (1) after the last *FLAGS variable, or
18469    # (2) before a word containing "conftest.", or (3) at the end.
18470    # Note that $ac_compile itself does not contain backslashes and begins
18471    # with a dollar sign (not a hyphen), so the echo should work correctly.
18472    lt_compile=`echo "$ac_compile" | $SED \
18473    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18474    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18475    -e 's:$: $lt_compiler_flag:'`
18476    (eval echo "\"\$as_me:18476: $lt_compile\"" >&5)
18477    (eval "$lt_compile" 2>out/conftest.err)
18478    ac_status=$?
18479    cat out/conftest.err >&5
18480    echo "$as_me:18480: \$? = $ac_status" >&5
18481    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18482    then
18483      # The compiler can only warn and ignore the option if not recognized
18484      # So say no if there are warnings
18485      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18486      $SED '/^$/d' out/conftest.err >out/conftest.er2
18487      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18488        lt_cv_prog_compiler_c_o_GCJ=yes
18489      fi
18490    fi
18491    chmod u+w .
18492    $rm conftest*
18493    # SGI C++ compiler will create directory out/ii_files/ for
18494    # template instantiation
18495    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18496    $rm out/* && rmdir out
18497    cd ..
18498    rmdir conftest
18499    $rm conftest*
18500
18501 fi
18502 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18503 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18504
18505
18506 hard_links="nottested"
18507 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18508   # do not overwrite the value of need_locks provided by the user
18509   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18510 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18511   hard_links=yes
18512   $rm conftest*
18513   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18514   touch conftest.a
18515   ln conftest.a conftest.b 2>&5 || hard_links=no
18516   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18517   echo "$as_me:$LINENO: result: $hard_links" >&5
18518 echo "${ECHO_T}$hard_links" >&6
18519   if test "$hard_links" = no; then
18520     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18521 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18522     need_locks=warn
18523   fi
18524 else
18525   need_locks=no
18526 fi
18527
18528 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18529 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18530
18531   runpath_var=
18532   allow_undefined_flag_GCJ=
18533   enable_shared_with_static_runtimes_GCJ=no
18534   archive_cmds_GCJ=
18535   archive_expsym_cmds_GCJ=
18536   old_archive_From_new_cmds_GCJ=
18537   old_archive_from_expsyms_cmds_GCJ=
18538   export_dynamic_flag_spec_GCJ=
18539   whole_archive_flag_spec_GCJ=
18540   thread_safe_flag_spec_GCJ=
18541   hardcode_libdir_flag_spec_GCJ=
18542   hardcode_libdir_flag_spec_ld_GCJ=
18543   hardcode_libdir_separator_GCJ=
18544   hardcode_direct_GCJ=no
18545   hardcode_minus_L_GCJ=no
18546   hardcode_shlibpath_var_GCJ=unsupported
18547   link_all_deplibs_GCJ=unknown
18548   hardcode_automatic_GCJ=no
18549   module_cmds_GCJ=
18550   module_expsym_cmds_GCJ=
18551   always_export_symbols_GCJ=no
18552   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18553   # include_expsyms should be a list of space-separated symbols to be *always*
18554   # included in the symbol list
18555   include_expsyms_GCJ=
18556   # exclude_expsyms can be an extended regexp of symbols to exclude
18557   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18558   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18559   # as well as any symbol that contains `d'.
18560   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18561   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18562   # platforms (ab)use it in PIC code, but their linkers get confused if
18563   # the symbol is explicitly referenced.  Since portable code cannot
18564   # rely on this symbol name, it's probably fine to never include it in
18565   # preloaded symbol tables.
18566   extract_expsyms_cmds=
18567   # Just being paranoid about ensuring that cc_basename is set.
18568   for cc_temp in $compiler""; do
18569   case $cc_temp in
18570     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18571     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18572     \-*) ;;
18573     *) break;;
18574   esac
18575 done
18576 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18577
18578   case $host_os in
18579   cygwin* | mingw* | pw32*)
18580     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18581     # When not using gcc, we currently assume that we are using
18582     # Microsoft Visual C++.
18583     if test "$GCC" != yes; then
18584       with_gnu_ld=no
18585     fi
18586     ;;
18587   openbsd*)
18588     with_gnu_ld=no
18589     ;;
18590   esac
18591
18592   ld_shlibs_GCJ=yes
18593   if test "$with_gnu_ld" = yes; then
18594     # If archive_cmds runs LD, not CC, wlarc should be empty
18595     wlarc='${wl}'
18596
18597     # Set some defaults for GNU ld with shared library support. These
18598     # are reset later if shared libraries are not supported. Putting them
18599     # here allows them to be overridden if necessary.
18600     runpath_var=LD_RUN_PATH
18601     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18602     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18603     # ancient GNU ld didn't support --whole-archive et. al.
18604     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18605         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18606       else
18607         whole_archive_flag_spec_GCJ=
18608     fi
18609     supports_anon_versioning=no
18610     case `$LD -v 2>/dev/null` in
18611       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18612       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18613       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18614       *\ 2.11.*) ;; # other 2.11 versions
18615       *) supports_anon_versioning=yes ;;
18616     esac
18617
18618     # See if GNU ld supports shared libraries.
18619     case $host_os in
18620     aix3* | aix4* | aix5*)
18621       # On AIX/PPC, the GNU linker is very broken
18622       if test "$host_cpu" != ia64; then
18623         ld_shlibs_GCJ=no
18624         cat <<EOF 1>&2
18625
18626 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18627 *** to be unable to reliably create shared libraries on AIX.
18628 *** Therefore, libtool is disabling shared libraries support.  If you
18629 *** really care for shared libraries, you may want to modify your PATH
18630 *** so that a non-GNU linker is found, and then restart.
18631
18632 EOF
18633       fi
18634       ;;
18635
18636     amigaos*)
18637       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)'
18638       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18639       hardcode_minus_L_GCJ=yes
18640
18641       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18642       # that the semantics of dynamic libraries on AmigaOS, at least up
18643       # to version 4, is to share data among multiple programs linked
18644       # with the same dynamic library.  Since this doesn't match the
18645       # behavior of shared libraries on other platforms, we can't use
18646       # them.
18647       ld_shlibs_GCJ=no
18648       ;;
18649
18650     beos*)
18651       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18652         allow_undefined_flag_GCJ=unsupported
18653         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18654         # support --undefined.  This deserves some investigation.  FIXME
18655         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18656       else
18657         ld_shlibs_GCJ=no
18658       fi
18659       ;;
18660
18661     cygwin* | mingw* | pw32*)
18662       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18663       # as there is no search path for DLLs.
18664       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18665       allow_undefined_flag_GCJ=unsupported
18666       always_export_symbols_GCJ=no
18667       enable_shared_with_static_runtimes_GCJ=yes
18668       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18669
18670       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18671         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18672         # If the export-symbols file already is a .def file (1st line
18673         # is EXPORTS), use it as is; otherwise, prepend...
18674         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18675           cp $export_symbols $output_objdir/$soname.def;
18676         else
18677           echo EXPORTS > $output_objdir/$soname.def;
18678           cat $export_symbols >> $output_objdir/$soname.def;
18679         fi~
18680         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
18681       else
18682         ld_shlibs_GCJ=no
18683       fi
18684       ;;
18685
18686     linux*)
18687       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18688         tmp_addflag=
18689         case $cc_basename,$host_cpu in
18690         pgcc*)                          # Portland Group C compiler
18691           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'
18692           tmp_addflag=' $pic_flag'
18693           ;;
18694         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
18695           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'
18696           tmp_addflag=' $pic_flag -Mnomain' ;;
18697         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18698           tmp_addflag=' -i_dynamic' ;;
18699         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18700           tmp_addflag=' -i_dynamic -nofor_main' ;;
18701         ifc* | ifort*)                  # Intel Fortran compiler
18702           tmp_addflag=' -nofor_main' ;;
18703         esac
18704         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18705
18706         if test $supports_anon_versioning = yes; then
18707           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18708   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18709   $echo "local: *; };" >> $output_objdir/$libname.ver~
18710           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18711         fi
18712       else
18713         ld_shlibs_GCJ=no
18714       fi
18715       ;;
18716
18717     netbsd*)
18718       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18719         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18720         wlarc=
18721       else
18722         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18723         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18724       fi
18725       ;;
18726
18727     solaris* | sysv5*)
18728       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18729         ld_shlibs_GCJ=no
18730         cat <<EOF 1>&2
18731
18732 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18733 *** create shared libraries on Solaris systems.  Therefore, libtool
18734 *** is disabling shared libraries support.  We urge you to upgrade GNU
18735 *** binutils to release 2.9.1 or newer.  Another option is to modify
18736 *** your PATH or compiler configuration so that the native linker is
18737 *** used, and then restart.
18738
18739 EOF
18740       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18741         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18742         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18743       else
18744         ld_shlibs_GCJ=no
18745       fi
18746       ;;
18747
18748     sunos4*)
18749       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18750       wlarc=
18751       hardcode_direct_GCJ=yes
18752       hardcode_shlibpath_var_GCJ=no
18753       ;;
18754
18755     *)
18756       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18757         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18758         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18759       else
18760         ld_shlibs_GCJ=no
18761       fi
18762       ;;
18763     esac
18764
18765     if test "$ld_shlibs_GCJ" = no; then
18766       runpath_var=
18767       hardcode_libdir_flag_spec_GCJ=
18768       export_dynamic_flag_spec_GCJ=
18769       whole_archive_flag_spec_GCJ=
18770     fi
18771   else
18772     # PORTME fill in a description of your system's linker (not GNU ld)
18773     case $host_os in
18774     aix3*)
18775       allow_undefined_flag_GCJ=unsupported
18776       always_export_symbols_GCJ=yes
18777       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'
18778       # Note: this linker hardcodes the directories in LIBPATH if there
18779       # are no directories specified by -L.
18780       hardcode_minus_L_GCJ=yes
18781       if test "$GCC" = yes && test -z "$link_static_flag"; then
18782         # Neither direct hardcoding nor static linking is supported with a
18783         # broken collect2.
18784         hardcode_direct_GCJ=unsupported
18785       fi
18786       ;;
18787
18788     aix4* | aix5*)
18789       if test "$host_cpu" = ia64; then
18790         # On IA64, the linker does run time linking by default, so we don't
18791         # have to do anything special.
18792         aix_use_runtimelinking=no
18793         exp_sym_flag='-Bexport'
18794         no_entry_flag=""
18795       else
18796         # If we're using GNU nm, then we don't want the "-C" option.
18797         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18798         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18799           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'
18800         else
18801           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'
18802         fi
18803         aix_use_runtimelinking=no
18804
18805         # Test if we are trying to use run time linking or normal
18806         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18807         # need to do runtime linking.
18808         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18809           for ld_flag in $LDFLAGS; do
18810           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18811             aix_use_runtimelinking=yes
18812             break
18813           fi
18814           done
18815         esac
18816
18817         exp_sym_flag='-bexport'
18818         no_entry_flag='-bnoentry'
18819       fi
18820
18821       # When large executables or shared objects are built, AIX ld can
18822       # have problems creating the table of contents.  If linking a library
18823       # or program results in "error TOC overflow" add -mminimal-toc to
18824       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18825       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18826
18827       archive_cmds_GCJ=''
18828       hardcode_direct_GCJ=yes
18829       hardcode_libdir_separator_GCJ=':'
18830       link_all_deplibs_GCJ=yes
18831
18832       if test "$GCC" = yes; then
18833         case $host_os in aix4.[012]|aix4.[012].*)
18834         # We only want to do this on AIX 4.2 and lower, the check
18835         # below for broken collect2 doesn't work under 4.3+
18836           collect2name=`${CC} -print-prog-name=collect2`
18837           if test -f "$collect2name" && \
18838            strings "$collect2name" | grep resolve_lib_name >/dev/null
18839           then
18840           # We have reworked collect2
18841           hardcode_direct_GCJ=yes
18842           else
18843           # We have old collect2
18844           hardcode_direct_GCJ=unsupported
18845           # It fails to find uninstalled libraries when the uninstalled
18846           # path is not listed in the libpath.  Setting hardcode_minus_L
18847           # to unsupported forces relinking
18848           hardcode_minus_L_GCJ=yes
18849           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18850           hardcode_libdir_separator_GCJ=
18851           fi
18852         esac
18853         shared_flag='-shared'
18854         if test "$aix_use_runtimelinking" = yes; then
18855           shared_flag="$shared_flag "'${wl}-G'
18856         fi
18857       else
18858         # not using gcc
18859         if test "$host_cpu" = ia64; then
18860         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18861         # chokes on -Wl,-G. The following line is correct:
18862           shared_flag='-G'
18863         else
18864         if test "$aix_use_runtimelinking" = yes; then
18865             shared_flag='${wl}-G'
18866           else
18867             shared_flag='${wl}-bM:SRE'
18868         fi
18869         fi
18870       fi
18871
18872       # It seems that -bexpall does not export symbols beginning with
18873       # underscore (_), so it is better to generate a list of symbols to export.
18874       always_export_symbols_GCJ=yes
18875       if test "$aix_use_runtimelinking" = yes; then
18876         # Warning - without using the other runtime loading flags (-brtl),
18877         # -berok will link without error, but may produce a broken library.
18878         allow_undefined_flag_GCJ='-berok'
18879        # Determine the default libpath from the value encoded in an empty executable.
18880        cat >conftest.$ac_ext <<_ACEOF
18881 /* confdefs.h.  */
18882 _ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h.  */
18886
18887 int
18888 main ()
18889 {
18890
18891   ;
18892   return 0;
18893 }
18894 _ACEOF
18895 rm -f conftest.$ac_objext conftest$ac_exeext
18896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18897   (eval $ac_link) 2>conftest.er1
18898   ac_status=$?
18899   grep -v '^ *+' conftest.er1 >conftest.err
18900   rm -f conftest.er1
18901   cat conftest.err >&5
18902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903   (exit $ac_status); } &&
18904          { ac_try='test -z "$ac_c_werror_flag"
18905                          || test ! -s conftest.err'
18906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18907   (eval $ac_try) 2>&5
18908   ac_status=$?
18909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910   (exit $ac_status); }; } &&
18911          { ac_try='test -s conftest$ac_exeext'
18912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18913   (eval $ac_try) 2>&5
18914   ac_status=$?
18915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916   (exit $ac_status); }; }; then
18917
18918 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18919 }'`
18920 # Check for a 64-bit object if we didn't find anything.
18921 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; }
18922 }'`; fi
18923 else
18924   echo "$as_me: failed program was:" >&5
18925 sed 's/^/| /' conftest.$ac_ext >&5
18926
18927 fi
18928 rm -f conftest.err conftest.$ac_objext \
18929       conftest$ac_exeext conftest.$ac_ext
18930 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18931
18932        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18933         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"
18934        else
18935         if test "$host_cpu" = ia64; then
18936           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18937           allow_undefined_flag_GCJ="-z nodefs"
18938           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"
18939         else
18940          # Determine the default libpath from the value encoded in an empty executable.
18941          cat >conftest.$ac_ext <<_ACEOF
18942 /* confdefs.h.  */
18943 _ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h.  */
18947
18948 int
18949 main ()
18950 {
18951
18952   ;
18953   return 0;
18954 }
18955 _ACEOF
18956 rm -f conftest.$ac_objext conftest$ac_exeext
18957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18958   (eval $ac_link) 2>conftest.er1
18959   ac_status=$?
18960   grep -v '^ *+' conftest.er1 >conftest.err
18961   rm -f conftest.er1
18962   cat conftest.err >&5
18963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964   (exit $ac_status); } &&
18965          { ac_try='test -z "$ac_c_werror_flag"
18966                          || test ! -s conftest.err'
18967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18968   (eval $ac_try) 2>&5
18969   ac_status=$?
18970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971   (exit $ac_status); }; } &&
18972          { ac_try='test -s conftest$ac_exeext'
18973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974   (eval $ac_try) 2>&5
18975   ac_status=$?
18976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977   (exit $ac_status); }; }; then
18978
18979 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18980 }'`
18981 # Check for a 64-bit object if we didn't find anything.
18982 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; }
18983 }'`; fi
18984 else
18985   echo "$as_me: failed program was:" >&5
18986 sed 's/^/| /' conftest.$ac_ext >&5
18987
18988 fi
18989 rm -f conftest.err conftest.$ac_objext \
18990       conftest$ac_exeext conftest.$ac_ext
18991 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18992
18993          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18994           # Warning - without using the other run time loading flags,
18995           # -berok will link without error, but may produce a broken library.
18996           no_undefined_flag_GCJ=' ${wl}-bernotok'
18997           allow_undefined_flag_GCJ=' ${wl}-berok'
18998           # -bexpall does not export symbols beginning with underscore (_)
18999           always_export_symbols_GCJ=yes
19000           # Exported symbols can be pulled into shared objects from archives
19001           whole_archive_flag_spec_GCJ=' '
19002           archive_cmds_need_lc_GCJ=yes
19003           # This is similar to how AIX traditionally builds it's shared libraries.
19004           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'
19005         fi
19006       fi
19007       ;;
19008
19009     amigaos*)
19010       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)'
19011       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19012       hardcode_minus_L_GCJ=yes
19013       # see comment about different semantics on the GNU ld section
19014       ld_shlibs_GCJ=no
19015       ;;
19016
19017     bsdi[45]*)
19018       export_dynamic_flag_spec_GCJ=-rdynamic
19019       ;;
19020
19021     cygwin* | mingw* | pw32*)
19022       # When not using gcc, we currently assume that we are using
19023       # Microsoft Visual C++.
19024       # hardcode_libdir_flag_spec is actually meaningless, as there is
19025       # no search path for DLLs.
19026       hardcode_libdir_flag_spec_GCJ=' '
19027       allow_undefined_flag_GCJ=unsupported
19028       # Tell ltmain to make .lib files, not .a files.
19029       libext=lib
19030       # Tell ltmain to make .dll files, not .so files.
19031       shrext_cmds=".dll"
19032       # FIXME: Setting linknames here is a bad hack.
19033       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19034       # The linker will automatically build a .lib file if we build a DLL.
19035       old_archive_From_new_cmds_GCJ='true'
19036       # FIXME: Should let the user specify the lib program.
19037       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19038       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19039       enable_shared_with_static_runtimes_GCJ=yes
19040       ;;
19041
19042     darwin* | rhapsody*)
19043       case "$host_os" in
19044         rhapsody* | darwin1.[012])
19045          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19046          ;;
19047        *) # Darwin 1.3 on
19048          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19049            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19050          else
19051            case ${MACOSX_DEPLOYMENT_TARGET} in
19052              10.[012])
19053                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19054                ;;
19055              10.*)
19056                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19057                ;;
19058            esac
19059          fi
19060          ;;
19061       esac
19062       archive_cmds_need_lc_GCJ=no
19063       hardcode_direct_GCJ=no
19064       hardcode_automatic_GCJ=yes
19065       hardcode_shlibpath_var_GCJ=unsupported
19066       whole_archive_flag_spec_GCJ=''
19067       link_all_deplibs_GCJ=yes
19068     if test "$GCC" = yes ; then
19069         output_verbose_link_cmd='echo'
19070         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19071       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19072       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19073       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}'
19074       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}'
19075     else
19076       case $cc_basename in
19077         xlc*)
19078          output_verbose_link_cmd='echo'
19079          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19080          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19081           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19082          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}'
19083           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}'
19084           ;;
19085        *)
19086          ld_shlibs_GCJ=no
19087           ;;
19088       esac
19089     fi
19090       ;;
19091
19092     dgux*)
19093       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19094       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19095       hardcode_shlibpath_var_GCJ=no
19096       ;;
19097
19098     freebsd1*)
19099       ld_shlibs_GCJ=no
19100       ;;
19101
19102     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19103     # support.  Future versions do this automatically, but an explicit c++rt0.o
19104     # does not break anything, and helps significantly (at the cost of a little
19105     # extra space).
19106     freebsd2.2*)
19107       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19108       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19109       hardcode_direct_GCJ=yes
19110       hardcode_shlibpath_var_GCJ=no
19111       ;;
19112
19113     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19114     freebsd2*)
19115       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19116       hardcode_direct_GCJ=yes
19117       hardcode_minus_L_GCJ=yes
19118       hardcode_shlibpath_var_GCJ=no
19119       ;;
19120
19121     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19122     freebsd* | kfreebsd*-gnu | dragonfly*)
19123       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19124       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19125       hardcode_direct_GCJ=yes
19126       hardcode_shlibpath_var_GCJ=no
19127       ;;
19128
19129     hpux9*)
19130       if test "$GCC" = yes; then
19131         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'
19132       else
19133         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'
19134       fi
19135       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19136       hardcode_libdir_separator_GCJ=:
19137       hardcode_direct_GCJ=yes
19138
19139       # hardcode_minus_L: Not really in the search PATH,
19140       # but as the default location of the library.
19141       hardcode_minus_L_GCJ=yes
19142       export_dynamic_flag_spec_GCJ='${wl}-E'
19143       ;;
19144
19145     hpux10* | hpux11*)
19146       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19147         case "$host_cpu" in
19148         hppa*64*|ia64*)
19149           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19150           ;;
19151         *)
19152           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19153           ;;
19154         esac
19155       else
19156         case "$host_cpu" in
19157         hppa*64*|ia64*)
19158           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19159           ;;
19160         *)
19161           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19162           ;;
19163         esac
19164       fi
19165       if test "$with_gnu_ld" = no; then
19166         case "$host_cpu" in
19167         hppa*64*)
19168           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19169           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19170           hardcode_libdir_separator_GCJ=:
19171           hardcode_direct_GCJ=no
19172           hardcode_shlibpath_var_GCJ=no
19173           ;;
19174         ia64*)
19175           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19176           hardcode_direct_GCJ=no
19177           hardcode_shlibpath_var_GCJ=no
19178
19179           # hardcode_minus_L: Not really in the search PATH,
19180           # but as the default location of the library.
19181           hardcode_minus_L_GCJ=yes
19182           ;;
19183         *)
19184           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19185           hardcode_libdir_separator_GCJ=:
19186           hardcode_direct_GCJ=yes
19187           export_dynamic_flag_spec_GCJ='${wl}-E'
19188
19189           # hardcode_minus_L: Not really in the search PATH,
19190           # but as the default location of the library.
19191           hardcode_minus_L_GCJ=yes
19192           ;;
19193         esac
19194       fi
19195       ;;
19196
19197     irix5* | irix6* | nonstopux*)
19198       if test "$GCC" = yes; then
19199         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'
19200       else
19201         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'
19202         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19203       fi
19204       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19205       hardcode_libdir_separator_GCJ=:
19206       link_all_deplibs_GCJ=yes
19207       ;;
19208
19209     netbsd*)
19210       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19211         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19212       else
19213         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19214       fi
19215       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19216       hardcode_direct_GCJ=yes
19217       hardcode_shlibpath_var_GCJ=no
19218       ;;
19219
19220     newsos6)
19221       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19222       hardcode_direct_GCJ=yes
19223       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19224       hardcode_libdir_separator_GCJ=:
19225       hardcode_shlibpath_var_GCJ=no
19226       ;;
19227
19228     openbsd*)
19229       hardcode_direct_GCJ=yes
19230       hardcode_shlibpath_var_GCJ=no
19231       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19232         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19233         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19234         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19235         export_dynamic_flag_spec_GCJ='${wl}-E'
19236       else
19237        case $host_os in
19238          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19239            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19240            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19241            ;;
19242          *)
19243            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19244            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19245            ;;
19246        esac
19247       fi
19248       ;;
19249
19250     os2*)
19251       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19252       hardcode_minus_L_GCJ=yes
19253       allow_undefined_flag_GCJ=unsupported
19254       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'
19255       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19256       ;;
19257
19258     osf3*)
19259       if test "$GCC" = yes; then
19260         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19261         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'
19262       else
19263         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19264         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'
19265       fi
19266       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19267       hardcode_libdir_separator_GCJ=:
19268       ;;
19269
19270     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19271       if test "$GCC" = yes; then
19272         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19273         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'
19274         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19275       else
19276         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19277         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'
19278         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~
19279         $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'
19280
19281         # Both c and cxx compiler support -rpath directly
19282         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19283       fi
19284       hardcode_libdir_separator_GCJ=:
19285       ;;
19286
19287     sco3.2v5*)
19288       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19289       hardcode_shlibpath_var_GCJ=no
19290       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19291       runpath_var=LD_RUN_PATH
19292       hardcode_runpath_var=yes
19293       ;;
19294
19295     solaris*)
19296       no_undefined_flag_GCJ=' -z text'
19297       if test "$GCC" = yes; then
19298         wlarc='${wl}'
19299         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19300         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19301           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19302       else
19303         wlarc=''
19304         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19305         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19306         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19307       fi
19308       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19309       hardcode_shlibpath_var_GCJ=no
19310       case $host_os in
19311       solaris2.[0-5] | solaris2.[0-5].*) ;;
19312       *)
19313         # The compiler driver will combine linker options so we
19314         # cannot just pass the convience library names through
19315         # without $wl, iff we do not link with $LD.
19316         # Luckily, gcc supports the same syntax we need for Sun Studio.
19317         # Supported since Solaris 2.6 (maybe 2.5.1?)
19318         case $wlarc in
19319         '')
19320           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19321         *)
19322           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' ;;
19323         esac ;;
19324       esac
19325       link_all_deplibs_GCJ=yes
19326       ;;
19327
19328     sunos4*)
19329       if test "x$host_vendor" = xsequent; then
19330         # Use $CC to link under sequent, because it throws in some extra .o
19331         # files that make .init and .fini sections work.
19332         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19333       else
19334         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19335       fi
19336       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19337       hardcode_direct_GCJ=yes
19338       hardcode_minus_L_GCJ=yes
19339       hardcode_shlibpath_var_GCJ=no
19340       ;;
19341
19342     sysv4)
19343       case $host_vendor in
19344         sni)
19345           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19346           hardcode_direct_GCJ=yes # is this really true???
19347         ;;
19348         siemens)
19349           ## LD is ld it makes a PLAMLIB
19350           ## CC just makes a GrossModule.
19351           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19352           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19353           hardcode_direct_GCJ=no
19354         ;;
19355         motorola)
19356           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19357           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19358         ;;
19359       esac
19360       runpath_var='LD_RUN_PATH'
19361       hardcode_shlibpath_var_GCJ=no
19362       ;;
19363
19364     sysv4.3*)
19365       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19366       hardcode_shlibpath_var_GCJ=no
19367       export_dynamic_flag_spec_GCJ='-Bexport'
19368       ;;
19369
19370     sysv4*MP*)
19371       if test -d /usr/nec; then
19372         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19373         hardcode_shlibpath_var_GCJ=no
19374         runpath_var=LD_RUN_PATH
19375         hardcode_runpath_var=yes
19376         ld_shlibs_GCJ=yes
19377       fi
19378       ;;
19379
19380     sysv4.2uw2*)
19381       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19382       hardcode_direct_GCJ=yes
19383       hardcode_minus_L_GCJ=no
19384       hardcode_shlibpath_var_GCJ=no
19385       hardcode_runpath_var=yes
19386       runpath_var=LD_RUN_PATH
19387       ;;
19388
19389    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19390       no_undefined_flag_GCJ='${wl}-z ${wl}text'
19391       if test "$GCC" = yes; then
19392         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19393       else
19394         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19395       fi
19396       runpath_var='LD_RUN_PATH'
19397       hardcode_shlibpath_var_GCJ=no
19398       ;;
19399
19400     sysv5*)
19401       no_undefined_flag_GCJ=' -z text'
19402       # $CC -shared without GNU ld will not create a library from C++
19403       # object files and a static libstdc++, better avoid it by now
19404       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19405       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19406                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19407       hardcode_libdir_flag_spec_GCJ=
19408       hardcode_shlibpath_var_GCJ=no
19409       runpath_var='LD_RUN_PATH'
19410       ;;
19411
19412     uts4*)
19413       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19414       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19415       hardcode_shlibpath_var_GCJ=no
19416       ;;
19417
19418     *)
19419       ld_shlibs_GCJ=no
19420       ;;
19421     esac
19422   fi
19423
19424 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19425 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19426 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19427
19428 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19429 if test "$GCC" = yes; then
19430   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19431 fi
19432
19433 #
19434 # Do we need to explicitly link libc?
19435 #
19436 case "x$archive_cmds_need_lc_GCJ" in
19437 x|xyes)
19438   # Assume -lc should be added
19439   archive_cmds_need_lc_GCJ=yes
19440
19441   if test "$enable_shared" = yes && test "$GCC" = yes; then
19442     case $archive_cmds_GCJ in
19443     *'~'*)
19444       # FIXME: we may have to deal with multi-command sequences.
19445       ;;
19446     '$CC '*)
19447       # Test whether the compiler implicitly links with -lc since on some
19448       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19449       # to ld, don't add -lc before -lgcc.
19450       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19451 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19452       $rm conftest*
19453       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19454
19455       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19456   (eval $ac_compile) 2>&5
19457   ac_status=$?
19458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459   (exit $ac_status); } 2>conftest.err; then
19460         soname=conftest
19461         lib=conftest
19462         libobjs=conftest.$ac_objext
19463         deplibs=
19464         wl=$lt_prog_compiler_wl_GCJ
19465         compiler_flags=-v
19466         linker_flags=-v
19467         verstring=
19468         output_objdir=.
19469         libname=conftest
19470         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19471         allow_undefined_flag_GCJ=
19472         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19473   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19474   ac_status=$?
19475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476   (exit $ac_status); }
19477         then
19478           archive_cmds_need_lc_GCJ=no
19479         else
19480           archive_cmds_need_lc_GCJ=yes
19481         fi
19482         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19483       else
19484         cat conftest.err 1>&5
19485       fi
19486       $rm conftest*
19487       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19488 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19489       ;;
19490     esac
19491   fi
19492   ;;
19493 esac
19494
19495 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19496 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19497 library_names_spec=
19498 libname_spec='lib$name'
19499 soname_spec=
19500 shrext_cmds=".so"
19501 postinstall_cmds=
19502 postuninstall_cmds=
19503 finish_cmds=
19504 finish_eval=
19505 shlibpath_var=
19506 shlibpath_overrides_runpath=unknown
19507 version_type=none
19508 dynamic_linker="$host_os ld.so"
19509 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19510 if test "$GCC" = yes; then
19511   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19512   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19513     # if the path contains ";" then we assume it to be the separator
19514     # otherwise default to the standard path separator (i.e. ":") - it is
19515     # assumed that no part of a normal pathname contains ";" but that should
19516     # okay in the real world where ";" in dirpaths is itself problematic.
19517     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19518   else
19519     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19520   fi
19521 else
19522   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19523 fi
19524 need_lib_prefix=unknown
19525 hardcode_into_libs=no
19526
19527 # when you set need_version to no, make sure it does not cause -set_version
19528 # flags to be left without arguments
19529 need_version=unknown
19530
19531 case $host_os in
19532 aix3*)
19533   version_type=linux
19534   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19535   shlibpath_var=LIBPATH
19536
19537   # AIX 3 has no versioning support, so we append a major version to the name.
19538   soname_spec='${libname}${release}${shared_ext}$major'
19539   ;;
19540
19541 aix4* | aix5*)
19542   version_type=linux
19543   need_lib_prefix=no
19544   need_version=no
19545   hardcode_into_libs=yes
19546   if test "$host_cpu" = ia64; then
19547     # AIX 5 supports IA64
19548     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19549     shlibpath_var=LD_LIBRARY_PATH
19550   else
19551     # With GCC up to 2.95.x, collect2 would create an import file
19552     # for dependence libraries.  The import file would start with
19553     # the line `#! .'.  This would cause the generated library to
19554     # depend on `.', always an invalid library.  This was fixed in
19555     # development snapshots of GCC prior to 3.0.
19556     case $host_os in
19557       aix4 | aix4.[01] | aix4.[01].*)
19558       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19559            echo ' yes '
19560            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19561         :
19562       else
19563         can_build_shared=no
19564       fi
19565       ;;
19566     esac
19567     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19568     # soname into executable. Probably we can add versioning support to
19569     # collect2, so additional links can be useful in future.
19570     if test "$aix_use_runtimelinking" = yes; then
19571       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19572       # instead of lib<name>.a to let people know that these are not
19573       # typical AIX shared libraries.
19574       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19575     else
19576       # We preserve .a as extension for shared libraries through AIX4.2
19577       # and later when we are not doing run time linking.
19578       library_names_spec='${libname}${release}.a $libname.a'
19579       soname_spec='${libname}${release}${shared_ext}$major'
19580     fi
19581     shlibpath_var=LIBPATH
19582   fi
19583   ;;
19584
19585 amigaos*)
19586   library_names_spec='$libname.ixlibrary $libname.a'
19587   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19588   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'
19589   ;;
19590
19591 beos*)
19592   library_names_spec='${libname}${shared_ext}'
19593   dynamic_linker="$host_os ld.so"
19594   shlibpath_var=LIBRARY_PATH
19595   ;;
19596
19597 bsdi[45]*)
19598   version_type=linux
19599   need_version=no
19600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19601   soname_spec='${libname}${release}${shared_ext}$major'
19602   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19603   shlibpath_var=LD_LIBRARY_PATH
19604   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19605   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19606   # the default ld.so.conf also contains /usr/contrib/lib and
19607   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19608   # libtool to hard-code these into programs
19609   ;;
19610
19611 cygwin* | mingw* | pw32*)
19612   version_type=windows
19613   shrext_cmds=".dll"
19614   need_version=no
19615   need_lib_prefix=no
19616
19617   case $GCC,$host_os in
19618   yes,cygwin* | yes,mingw* | yes,pw32*)
19619     library_names_spec='$libname.dll.a'
19620     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19621     postinstall_cmds='base_file=`basename \${file}`~
19622       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19623       dldir=$destdir/`dirname \$dlpath`~
19624       test -d \$dldir || mkdir -p \$dldir~
19625       $install_prog $dir/$dlname \$dldir/$dlname'
19626     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19627       dlpath=$dir/\$dldll~
19628        $rm \$dlpath'
19629     shlibpath_overrides_runpath=yes
19630
19631     case $host_os in
19632     cygwin*)
19633       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19634       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19635       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19636       ;;
19637     mingw*)
19638       # MinGW DLLs use traditional 'lib' prefix
19639       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19640       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19641       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19642         # It is most probably a Windows format PATH printed by
19643         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19644         # path with ; separators, and with drive letters. We can handle the
19645         # drive letters (cygwin fileutils understands them), so leave them,
19646         # especially as we might pass files found there to a mingw objdump,
19647         # which wouldn't understand a cygwinified path. Ahh.
19648         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19649       else
19650         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19651       fi
19652       ;;
19653     pw32*)
19654       # pw32 DLLs use 'pw' prefix rather than 'lib'
19655       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19656       ;;
19657     esac
19658     ;;
19659
19660   *)
19661     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19662     ;;
19663   esac
19664   dynamic_linker='Win32 ld.exe'
19665   # FIXME: first we should search . and the directory the executable is in
19666   shlibpath_var=PATH
19667   ;;
19668
19669 darwin* | rhapsody*)
19670   dynamic_linker="$host_os dyld"
19671   version_type=darwin
19672   need_lib_prefix=no
19673   need_version=no
19674   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19675   soname_spec='${libname}${release}${major}$shared_ext'
19676   shlibpath_overrides_runpath=yes
19677   shlibpath_var=DYLD_LIBRARY_PATH
19678   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19679   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19680   if test "$GCC" = yes; then
19681     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"`
19682   else
19683     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19684   fi
19685   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19686   ;;
19687
19688 dgux*)
19689   version_type=linux
19690   need_lib_prefix=no
19691   need_version=no
19692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19693   soname_spec='${libname}${release}${shared_ext}$major'
19694   shlibpath_var=LD_LIBRARY_PATH
19695   ;;
19696
19697 freebsd1*)
19698   dynamic_linker=no
19699   ;;
19700
19701 kfreebsd*-gnu)
19702   version_type=linux
19703   need_lib_prefix=no
19704   need_version=no
19705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19706   soname_spec='${libname}${release}${shared_ext}$major'
19707   shlibpath_var=LD_LIBRARY_PATH
19708   shlibpath_overrides_runpath=no
19709   hardcode_into_libs=yes
19710   dynamic_linker='GNU ld.so'
19711   ;;
19712
19713 freebsd* | dragonfly*)
19714   # DragonFly does not have aout.  When/if they implement a new
19715   # versioning mechanism, adjust this.
19716   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19717   version_type=freebsd-$objformat
19718   case $version_type in
19719     freebsd-elf*)
19720       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19721       need_version=no
19722       need_lib_prefix=no
19723       ;;
19724     freebsd-*)
19725       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19726       need_version=yes
19727       ;;
19728   esac
19729   shlibpath_var=LD_LIBRARY_PATH
19730   case $host_os in
19731   freebsd2*)
19732     shlibpath_overrides_runpath=yes
19733     ;;
19734   freebsd3.[01]* | freebsdelf3.[01]*)
19735     shlibpath_overrides_runpath=yes
19736     hardcode_into_libs=yes
19737     ;;
19738   *) # from 3.2 on
19739     shlibpath_overrides_runpath=no
19740     hardcode_into_libs=yes
19741     ;;
19742   esac
19743   ;;
19744
19745 gnu*)
19746   version_type=linux
19747   need_lib_prefix=no
19748   need_version=no
19749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19750   soname_spec='${libname}${release}${shared_ext}$major'
19751   shlibpath_var=LD_LIBRARY_PATH
19752   hardcode_into_libs=yes
19753   ;;
19754
19755 hpux9* | hpux10* | hpux11*)
19756   # Give a soname corresponding to the major version so that dld.sl refuses to
19757   # link against other versions.
19758   version_type=sunos
19759   need_lib_prefix=no
19760   need_version=no
19761   case "$host_cpu" in
19762   ia64*)
19763     shrext_cmds='.so'
19764     hardcode_into_libs=yes
19765     dynamic_linker="$host_os dld.so"
19766     shlibpath_var=LD_LIBRARY_PATH
19767     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19768     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19769     soname_spec='${libname}${release}${shared_ext}$major'
19770     if test "X$HPUX_IA64_MODE" = X32; then
19771       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19772     else
19773       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19774     fi
19775     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19776     ;;
19777    hppa*64*)
19778      shrext_cmds='.sl'
19779      hardcode_into_libs=yes
19780      dynamic_linker="$host_os dld.sl"
19781      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19782      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19783      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19784      soname_spec='${libname}${release}${shared_ext}$major'
19785      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19786      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19787      ;;
19788    *)
19789     shrext_cmds='.sl'
19790     dynamic_linker="$host_os dld.sl"
19791     shlibpath_var=SHLIB_PATH
19792     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19793     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19794     soname_spec='${libname}${release}${shared_ext}$major'
19795     ;;
19796   esac
19797   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19798   postinstall_cmds='chmod 555 $lib'
19799   ;;
19800
19801 irix5* | irix6* | nonstopux*)
19802   case $host_os in
19803     nonstopux*) version_type=nonstopux ;;
19804     *)
19805         if test "$lt_cv_prog_gnu_ld" = yes; then
19806                 version_type=linux
19807         else
19808                 version_type=irix
19809         fi ;;
19810   esac
19811   need_lib_prefix=no
19812   need_version=no
19813   soname_spec='${libname}${release}${shared_ext}$major'
19814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19815   case $host_os in
19816   irix5* | nonstopux*)
19817     libsuff= shlibsuff=
19818     ;;
19819   *)
19820     case $LD in # libtool.m4 will add one of these switches to LD
19821     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19822       libsuff= shlibsuff= libmagic=32-bit;;
19823     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19824       libsuff=32 shlibsuff=N32 libmagic=N32;;
19825     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19826       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19827     *) libsuff= shlibsuff= libmagic=never-match;;
19828     esac
19829     ;;
19830   esac
19831   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19832   shlibpath_overrides_runpath=no
19833   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19834   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19835   hardcode_into_libs=yes
19836   ;;
19837
19838 # No shared lib support for Linux oldld, aout, or coff.
19839 linux*oldld* | linux*aout* | linux*coff*)
19840   dynamic_linker=no
19841   ;;
19842
19843 # This must be Linux ELF.
19844 linux*)
19845   version_type=linux
19846   need_lib_prefix=no
19847   need_version=no
19848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19849   soname_spec='${libname}${release}${shared_ext}$major'
19850   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19851   shlibpath_var=LD_LIBRARY_PATH
19852   shlibpath_overrides_runpath=no
19853   # This implies no fast_install, which is unacceptable.
19854   # Some rework will be needed to allow for fast_install
19855   # before this can be enabled.
19856   hardcode_into_libs=yes
19857
19858   # Append ld.so.conf contents to the search path
19859   if test -f /etc/ld.so.conf; then
19860     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' ' '`
19861     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19862   fi
19863
19864   # We used to test for /lib/ld.so.1 and disable shared libraries on
19865   # powerpc, because MkLinux only supported shared libraries with the
19866   # GNU dynamic linker.  Since this was broken with cross compilers,
19867   # most powerpc-linux boxes support dynamic linking these days and
19868   # people can always --disable-shared, the test was removed, and we
19869   # assume the GNU/Linux dynamic linker is in use.
19870   dynamic_linker='GNU/Linux ld.so'
19871   ;;
19872
19873 knetbsd*-gnu)
19874   version_type=linux
19875   need_lib_prefix=no
19876   need_version=no
19877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19878   soname_spec='${libname}${release}${shared_ext}$major'
19879   shlibpath_var=LD_LIBRARY_PATH
19880   shlibpath_overrides_runpath=no
19881   hardcode_into_libs=yes
19882   dynamic_linker='GNU ld.so'
19883   ;;
19884
19885 netbsd*)
19886   version_type=sunos
19887   need_lib_prefix=no
19888   need_version=no
19889   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19890     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19891     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19892     dynamic_linker='NetBSD (a.out) ld.so'
19893   else
19894     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19895     soname_spec='${libname}${release}${shared_ext}$major'
19896     dynamic_linker='NetBSD ld.elf_so'
19897   fi
19898   shlibpath_var=LD_LIBRARY_PATH
19899   shlibpath_overrides_runpath=yes
19900   hardcode_into_libs=yes
19901   ;;
19902
19903 newsos6)
19904   version_type=linux
19905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19906   shlibpath_var=LD_LIBRARY_PATH
19907   shlibpath_overrides_runpath=yes
19908   ;;
19909
19910 nto-qnx*)
19911   version_type=linux
19912   need_lib_prefix=no
19913   need_version=no
19914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19915   soname_spec='${libname}${release}${shared_ext}$major'
19916   shlibpath_var=LD_LIBRARY_PATH
19917   shlibpath_overrides_runpath=yes
19918   ;;
19919
19920 openbsd*)
19921   version_type=sunos
19922   need_lib_prefix=no
19923   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19924   case $host_os in
19925     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19926     *)                         need_version=no  ;;
19927   esac
19928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19929   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19930   shlibpath_var=LD_LIBRARY_PATH
19931   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19932     case $host_os in
19933       openbsd2.[89] | openbsd2.[89].*)
19934         shlibpath_overrides_runpath=no
19935         ;;
19936       *)
19937         shlibpath_overrides_runpath=yes
19938         ;;
19939       esac
19940   else
19941     shlibpath_overrides_runpath=yes
19942   fi
19943   ;;
19944
19945 os2*)
19946   libname_spec='$name'
19947   shrext_cmds=".dll"
19948   need_lib_prefix=no
19949   library_names_spec='$libname${shared_ext} $libname.a'
19950   dynamic_linker='OS/2 ld.exe'
19951   shlibpath_var=LIBPATH
19952   ;;
19953
19954 osf3* | osf4* | osf5*)
19955   version_type=osf
19956   need_lib_prefix=no
19957   need_version=no
19958   soname_spec='${libname}${release}${shared_ext}$major'
19959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19960   shlibpath_var=LD_LIBRARY_PATH
19961   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19962   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19963   ;;
19964
19965 sco3.2v5*)
19966   version_type=osf
19967   soname_spec='${libname}${release}${shared_ext}$major'
19968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19969   shlibpath_var=LD_LIBRARY_PATH
19970   ;;
19971
19972 solaris*)
19973   version_type=linux
19974   need_lib_prefix=no
19975   need_version=no
19976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19977   soname_spec='${libname}${release}${shared_ext}$major'
19978   shlibpath_var=LD_LIBRARY_PATH
19979   shlibpath_overrides_runpath=yes
19980   hardcode_into_libs=yes
19981   # ldd complains unless libraries are executable
19982   postinstall_cmds='chmod +x $lib'
19983   ;;
19984
19985 sunos4*)
19986   version_type=sunos
19987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19988   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19989   shlibpath_var=LD_LIBRARY_PATH
19990   shlibpath_overrides_runpath=yes
19991   if test "$with_gnu_ld" = yes; then
19992     need_lib_prefix=no
19993   fi
19994   need_version=yes
19995   ;;
19996
19997 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19998   version_type=linux
19999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20000   soname_spec='${libname}${release}${shared_ext}$major'
20001   shlibpath_var=LD_LIBRARY_PATH
20002   case $host_vendor in
20003     sni)
20004       shlibpath_overrides_runpath=no
20005       need_lib_prefix=no
20006       export_dynamic_flag_spec='${wl}-Blargedynsym'
20007       runpath_var=LD_RUN_PATH
20008       ;;
20009     siemens)
20010       need_lib_prefix=no
20011       ;;
20012     motorola)
20013       need_lib_prefix=no
20014       need_version=no
20015       shlibpath_overrides_runpath=no
20016       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20017       ;;
20018   esac
20019   ;;
20020
20021 sysv4*MP*)
20022   if test -d /usr/nec ;then
20023     version_type=linux
20024     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20025     soname_spec='$libname${shared_ext}.$major'
20026     shlibpath_var=LD_LIBRARY_PATH
20027   fi
20028   ;;
20029
20030 uts4*)
20031   version_type=linux
20032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20033   soname_spec='${libname}${release}${shared_ext}$major'
20034   shlibpath_var=LD_LIBRARY_PATH
20035   ;;
20036
20037 *)
20038   dynamic_linker=no
20039   ;;
20040 esac
20041 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20042 echo "${ECHO_T}$dynamic_linker" >&6
20043 test "$dynamic_linker" = no && can_build_shared=no
20044
20045 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20046 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20047 hardcode_action_GCJ=
20048 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20049    test -n "$runpath_var_GCJ" || \
20050    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20051
20052   # We can hardcode non-existant directories.
20053   if test "$hardcode_direct_GCJ" != no &&
20054      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20055      # have to relink, otherwise we might link with an installed library
20056      # when we should be linking with a yet-to-be-installed one
20057      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20058      test "$hardcode_minus_L_GCJ" != no; then
20059     # Linking always hardcodes the temporary library directory.
20060     hardcode_action_GCJ=relink
20061   else
20062     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20063     hardcode_action_GCJ=immediate
20064   fi
20065 else
20066   # We cannot hardcode anything, or else we can only hardcode existing
20067   # directories.
20068   hardcode_action_GCJ=unsupported
20069 fi
20070 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20071 echo "${ECHO_T}$hardcode_action_GCJ" >&6
20072
20073 if test "$hardcode_action_GCJ" = relink; then
20074   # Fast installation is not supported
20075   enable_fast_install=no
20076 elif test "$shlibpath_overrides_runpath" = yes ||
20077      test "$enable_shared" = no; then
20078   # Fast installation is not necessary
20079   enable_fast_install=needless
20080 fi
20081
20082 striplib=
20083 old_striplib=
20084 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20085 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20086 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20087   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20088   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20089   echo "$as_me:$LINENO: result: yes" >&5
20090 echo "${ECHO_T}yes" >&6
20091 else
20092 # FIXME - insert some real tests, host_os isn't really good enough
20093   case $host_os in
20094    darwin*)
20095        if test -n "$STRIP" ; then
20096          striplib="$STRIP -x"
20097          echo "$as_me:$LINENO: result: yes" >&5
20098 echo "${ECHO_T}yes" >&6
20099        else
20100   echo "$as_me:$LINENO: result: no" >&5
20101 echo "${ECHO_T}no" >&6
20102 fi
20103        ;;
20104    *)
20105   echo "$as_me:$LINENO: result: no" >&5
20106 echo "${ECHO_T}no" >&6
20107     ;;
20108   esac
20109 fi
20110
20111 if test "x$enable_dlopen" != xyes; then
20112   enable_dlopen=unknown
20113   enable_dlopen_self=unknown
20114   enable_dlopen_self_static=unknown
20115 else
20116   lt_cv_dlopen=no
20117   lt_cv_dlopen_libs=
20118
20119   case $host_os in
20120   beos*)
20121     lt_cv_dlopen="load_add_on"
20122     lt_cv_dlopen_libs=
20123     lt_cv_dlopen_self=yes
20124     ;;
20125
20126   mingw* | pw32*)
20127     lt_cv_dlopen="LoadLibrary"
20128     lt_cv_dlopen_libs=
20129    ;;
20130
20131   cygwin*)
20132     lt_cv_dlopen="dlopen"
20133     lt_cv_dlopen_libs=
20134    ;;
20135
20136   darwin*)
20137   # if libdl is installed we need to link against it
20138     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20139 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20140 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20141   echo $ECHO_N "(cached) $ECHO_C" >&6
20142 else
20143   ac_check_lib_save_LIBS=$LIBS
20144 LIBS="-ldl  $LIBS"
20145 cat >conftest.$ac_ext <<_ACEOF
20146 /* confdefs.h.  */
20147 _ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h.  */
20151
20152 /* Override any gcc2 internal prototype to avoid an error.  */
20153 #ifdef __cplusplus
20154 extern "C"
20155 #endif
20156 /* We use char because int might match the return type of a gcc2
20157    builtin and then its argument prototype would still apply.  */
20158 char dlopen ();
20159 int
20160 main ()
20161 {
20162 dlopen ();
20163   ;
20164   return 0;
20165 }
20166 _ACEOF
20167 rm -f conftest.$ac_objext conftest$ac_exeext
20168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20169   (eval $ac_link) 2>conftest.er1
20170   ac_status=$?
20171   grep -v '^ *+' conftest.er1 >conftest.err
20172   rm -f conftest.er1
20173   cat conftest.err >&5
20174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175   (exit $ac_status); } &&
20176          { ac_try='test -z "$ac_c_werror_flag"
20177                          || test ! -s conftest.err'
20178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179   (eval $ac_try) 2>&5
20180   ac_status=$?
20181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182   (exit $ac_status); }; } &&
20183          { ac_try='test -s conftest$ac_exeext'
20184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185   (eval $ac_try) 2>&5
20186   ac_status=$?
20187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188   (exit $ac_status); }; }; then
20189   ac_cv_lib_dl_dlopen=yes
20190 else
20191   echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20193
20194 ac_cv_lib_dl_dlopen=no
20195 fi
20196 rm -f conftest.err conftest.$ac_objext \
20197       conftest$ac_exeext conftest.$ac_ext
20198 LIBS=$ac_check_lib_save_LIBS
20199 fi
20200 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20201 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20202 if test $ac_cv_lib_dl_dlopen = yes; then
20203   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20204 else
20205
20206     lt_cv_dlopen="dyld"
20207     lt_cv_dlopen_libs=
20208     lt_cv_dlopen_self=yes
20209
20210 fi
20211
20212    ;;
20213
20214   *)
20215     echo "$as_me:$LINENO: checking for shl_load" >&5
20216 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20217 if test "${ac_cv_func_shl_load+set}" = set; then
20218   echo $ECHO_N "(cached) $ECHO_C" >&6
20219 else
20220   cat >conftest.$ac_ext <<_ACEOF
20221 /* confdefs.h.  */
20222 _ACEOF
20223 cat confdefs.h >>conftest.$ac_ext
20224 cat >>conftest.$ac_ext <<_ACEOF
20225 /* end confdefs.h.  */
20226 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20227    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20228 #define shl_load innocuous_shl_load
20229
20230 /* System header to define __stub macros and hopefully few prototypes,
20231     which can conflict with char shl_load (); below.
20232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20233     <limits.h> exists even on freestanding compilers.  */
20234
20235 #ifdef __STDC__
20236 # include <limits.h>
20237 #else
20238 # include <assert.h>
20239 #endif
20240
20241 #undef shl_load
20242
20243 /* Override any gcc2 internal prototype to avoid an error.  */
20244 #ifdef __cplusplus
20245 extern "C"
20246 {
20247 #endif
20248 /* We use char because int might match the return type of a gcc2
20249    builtin and then its argument prototype would still apply.  */
20250 char shl_load ();
20251 /* The GNU C library defines this for functions which it implements
20252     to always fail with ENOSYS.  Some functions are actually named
20253     something starting with __ and the normal name is an alias.  */
20254 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20255 choke me
20256 #else
20257 char (*f) () = shl_load;
20258 #endif
20259 #ifdef __cplusplus
20260 }
20261 #endif
20262
20263 int
20264 main ()
20265 {
20266 return f != shl_load;
20267   ;
20268   return 0;
20269 }
20270 _ACEOF
20271 rm -f conftest.$ac_objext conftest$ac_exeext
20272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20273   (eval $ac_link) 2>conftest.er1
20274   ac_status=$?
20275   grep -v '^ *+' conftest.er1 >conftest.err
20276   rm -f conftest.er1
20277   cat conftest.err >&5
20278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279   (exit $ac_status); } &&
20280          { ac_try='test -z "$ac_c_werror_flag"
20281                          || test ! -s conftest.err'
20282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283   (eval $ac_try) 2>&5
20284   ac_status=$?
20285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286   (exit $ac_status); }; } &&
20287          { ac_try='test -s conftest$ac_exeext'
20288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289   (eval $ac_try) 2>&5
20290   ac_status=$?
20291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292   (exit $ac_status); }; }; then
20293   ac_cv_func_shl_load=yes
20294 else
20295   echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20297
20298 ac_cv_func_shl_load=no
20299 fi
20300 rm -f conftest.err conftest.$ac_objext \
20301       conftest$ac_exeext conftest.$ac_ext
20302 fi
20303 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20304 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20305 if test $ac_cv_func_shl_load = yes; then
20306   lt_cv_dlopen="shl_load"
20307 else
20308   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20309 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20310 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20311   echo $ECHO_N "(cached) $ECHO_C" >&6
20312 else
20313   ac_check_lib_save_LIBS=$LIBS
20314 LIBS="-ldld  $LIBS"
20315 cat >conftest.$ac_ext <<_ACEOF
20316 /* confdefs.h.  */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h.  */
20321
20322 /* Override any gcc2 internal prototype to avoid an error.  */
20323 #ifdef __cplusplus
20324 extern "C"
20325 #endif
20326 /* We use char because int might match the return type of a gcc2
20327    builtin and then its argument prototype would still apply.  */
20328 char shl_load ();
20329 int
20330 main ()
20331 {
20332 shl_load ();
20333   ;
20334   return 0;
20335 }
20336 _ACEOF
20337 rm -f conftest.$ac_objext conftest$ac_exeext
20338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20339   (eval $ac_link) 2>conftest.er1
20340   ac_status=$?
20341   grep -v '^ *+' conftest.er1 >conftest.err
20342   rm -f conftest.er1
20343   cat conftest.err >&5
20344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345   (exit $ac_status); } &&
20346          { ac_try='test -z "$ac_c_werror_flag"
20347                          || test ! -s conftest.err'
20348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20349   (eval $ac_try) 2>&5
20350   ac_status=$?
20351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352   (exit $ac_status); }; } &&
20353          { ac_try='test -s conftest$ac_exeext'
20354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355   (eval $ac_try) 2>&5
20356   ac_status=$?
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); }; }; then
20359   ac_cv_lib_dld_shl_load=yes
20360 else
20361   echo "$as_me: failed program was:" >&5
20362 sed 's/^/| /' conftest.$ac_ext >&5
20363
20364 ac_cv_lib_dld_shl_load=no
20365 fi
20366 rm -f conftest.err conftest.$ac_objext \
20367       conftest$ac_exeext conftest.$ac_ext
20368 LIBS=$ac_check_lib_save_LIBS
20369 fi
20370 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20371 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20372 if test $ac_cv_lib_dld_shl_load = yes; then
20373   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20374 else
20375   echo "$as_me:$LINENO: checking for dlopen" >&5
20376 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20377 if test "${ac_cv_func_dlopen+set}" = set; then
20378   echo $ECHO_N "(cached) $ECHO_C" >&6
20379 else
20380   cat >conftest.$ac_ext <<_ACEOF
20381 /* confdefs.h.  */
20382 _ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h.  */
20386 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20387    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20388 #define dlopen innocuous_dlopen
20389
20390 /* System header to define __stub macros and hopefully few prototypes,
20391     which can conflict with char dlopen (); below.
20392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20393     <limits.h> exists even on freestanding compilers.  */
20394
20395 #ifdef __STDC__
20396 # include <limits.h>
20397 #else
20398 # include <assert.h>
20399 #endif
20400
20401 #undef dlopen
20402
20403 /* Override any gcc2 internal prototype to avoid an error.  */
20404 #ifdef __cplusplus
20405 extern "C"
20406 {
20407 #endif
20408 /* We use char because int might match the return type of a gcc2
20409    builtin and then its argument prototype would still apply.  */
20410 char dlopen ();
20411 /* The GNU C library defines this for functions which it implements
20412     to always fail with ENOSYS.  Some functions are actually named
20413     something starting with __ and the normal name is an alias.  */
20414 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20415 choke me
20416 #else
20417 char (*f) () = dlopen;
20418 #endif
20419 #ifdef __cplusplus
20420 }
20421 #endif
20422
20423 int
20424 main ()
20425 {
20426 return f != dlopen;
20427   ;
20428   return 0;
20429 }
20430 _ACEOF
20431 rm -f conftest.$ac_objext conftest$ac_exeext
20432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20433   (eval $ac_link) 2>conftest.er1
20434   ac_status=$?
20435   grep -v '^ *+' conftest.er1 >conftest.err
20436   rm -f conftest.er1
20437   cat conftest.err >&5
20438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439   (exit $ac_status); } &&
20440          { ac_try='test -z "$ac_c_werror_flag"
20441                          || test ! -s conftest.err'
20442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443   (eval $ac_try) 2>&5
20444   ac_status=$?
20445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446   (exit $ac_status); }; } &&
20447          { ac_try='test -s conftest$ac_exeext'
20448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449   (eval $ac_try) 2>&5
20450   ac_status=$?
20451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452   (exit $ac_status); }; }; then
20453   ac_cv_func_dlopen=yes
20454 else
20455   echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20457
20458 ac_cv_func_dlopen=no
20459 fi
20460 rm -f conftest.err conftest.$ac_objext \
20461       conftest$ac_exeext conftest.$ac_ext
20462 fi
20463 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20464 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20465 if test $ac_cv_func_dlopen = yes; then
20466   lt_cv_dlopen="dlopen"
20467 else
20468   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20469 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20470 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20471   echo $ECHO_N "(cached) $ECHO_C" >&6
20472 else
20473   ac_check_lib_save_LIBS=$LIBS
20474 LIBS="-ldl  $LIBS"
20475 cat >conftest.$ac_ext <<_ACEOF
20476 /* confdefs.h.  */
20477 _ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h.  */
20481
20482 /* Override any gcc2 internal prototype to avoid an error.  */
20483 #ifdef __cplusplus
20484 extern "C"
20485 #endif
20486 /* We use char because int might match the return type of a gcc2
20487    builtin and then its argument prototype would still apply.  */
20488 char dlopen ();
20489 int
20490 main ()
20491 {
20492 dlopen ();
20493   ;
20494   return 0;
20495 }
20496 _ACEOF
20497 rm -f conftest.$ac_objext conftest$ac_exeext
20498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20499   (eval $ac_link) 2>conftest.er1
20500   ac_status=$?
20501   grep -v '^ *+' conftest.er1 >conftest.err
20502   rm -f conftest.er1
20503   cat conftest.err >&5
20504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); } &&
20506          { ac_try='test -z "$ac_c_werror_flag"
20507                          || test ! -s conftest.err'
20508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20509   (eval $ac_try) 2>&5
20510   ac_status=$?
20511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512   (exit $ac_status); }; } &&
20513          { ac_try='test -s conftest$ac_exeext'
20514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515   (eval $ac_try) 2>&5
20516   ac_status=$?
20517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); }; }; then
20519   ac_cv_lib_dl_dlopen=yes
20520 else
20521   echo "$as_me: failed program was:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20523
20524 ac_cv_lib_dl_dlopen=no
20525 fi
20526 rm -f conftest.err conftest.$ac_objext \
20527       conftest$ac_exeext conftest.$ac_ext
20528 LIBS=$ac_check_lib_save_LIBS
20529 fi
20530 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20531 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20532 if test $ac_cv_lib_dl_dlopen = yes; then
20533   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20534 else
20535   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20536 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20537 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20538   echo $ECHO_N "(cached) $ECHO_C" >&6
20539 else
20540   ac_check_lib_save_LIBS=$LIBS
20541 LIBS="-lsvld  $LIBS"
20542 cat >conftest.$ac_ext <<_ACEOF
20543 /* confdefs.h.  */
20544 _ACEOF
20545 cat confdefs.h >>conftest.$ac_ext
20546 cat >>conftest.$ac_ext <<_ACEOF
20547 /* end confdefs.h.  */
20548
20549 /* Override any gcc2 internal prototype to avoid an error.  */
20550 #ifdef __cplusplus
20551 extern "C"
20552 #endif
20553 /* We use char because int might match the return type of a gcc2
20554    builtin and then its argument prototype would still apply.  */
20555 char dlopen ();
20556 int
20557 main ()
20558 {
20559 dlopen ();
20560   ;
20561   return 0;
20562 }
20563 _ACEOF
20564 rm -f conftest.$ac_objext conftest$ac_exeext
20565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20566   (eval $ac_link) 2>conftest.er1
20567   ac_status=$?
20568   grep -v '^ *+' conftest.er1 >conftest.err
20569   rm -f conftest.er1
20570   cat conftest.err >&5
20571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572   (exit $ac_status); } &&
20573          { ac_try='test -z "$ac_c_werror_flag"
20574                          || test ! -s conftest.err'
20575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20576   (eval $ac_try) 2>&5
20577   ac_status=$?
20578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579   (exit $ac_status); }; } &&
20580          { ac_try='test -s conftest$ac_exeext'
20581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20582   (eval $ac_try) 2>&5
20583   ac_status=$?
20584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585   (exit $ac_status); }; }; then
20586   ac_cv_lib_svld_dlopen=yes
20587 else
20588   echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20590
20591 ac_cv_lib_svld_dlopen=no
20592 fi
20593 rm -f conftest.err conftest.$ac_objext \
20594       conftest$ac_exeext conftest.$ac_ext
20595 LIBS=$ac_check_lib_save_LIBS
20596 fi
20597 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20598 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20599 if test $ac_cv_lib_svld_dlopen = yes; then
20600   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20601 else
20602   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20603 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20604 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20605   echo $ECHO_N "(cached) $ECHO_C" >&6
20606 else
20607   ac_check_lib_save_LIBS=$LIBS
20608 LIBS="-ldld  $LIBS"
20609 cat >conftest.$ac_ext <<_ACEOF
20610 /* confdefs.h.  */
20611 _ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h.  */
20615
20616 /* Override any gcc2 internal prototype to avoid an error.  */
20617 #ifdef __cplusplus
20618 extern "C"
20619 #endif
20620 /* We use char because int might match the return type of a gcc2
20621    builtin and then its argument prototype would still apply.  */
20622 char dld_link ();
20623 int
20624 main ()
20625 {
20626 dld_link ();
20627   ;
20628   return 0;
20629 }
20630 _ACEOF
20631 rm -f conftest.$ac_objext conftest$ac_exeext
20632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20633   (eval $ac_link) 2>conftest.er1
20634   ac_status=$?
20635   grep -v '^ *+' conftest.er1 >conftest.err
20636   rm -f conftest.er1
20637   cat conftest.err >&5
20638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639   (exit $ac_status); } &&
20640          { ac_try='test -z "$ac_c_werror_flag"
20641                          || test ! -s conftest.err'
20642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20643   (eval $ac_try) 2>&5
20644   ac_status=$?
20645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646   (exit $ac_status); }; } &&
20647          { ac_try='test -s conftest$ac_exeext'
20648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20649   (eval $ac_try) 2>&5
20650   ac_status=$?
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); }; }; then
20653   ac_cv_lib_dld_dld_link=yes
20654 else
20655   echo "$as_me: failed program was:" >&5
20656 sed 's/^/| /' conftest.$ac_ext >&5
20657
20658 ac_cv_lib_dld_dld_link=no
20659 fi
20660 rm -f conftest.err conftest.$ac_objext \
20661       conftest$ac_exeext conftest.$ac_ext
20662 LIBS=$ac_check_lib_save_LIBS
20663 fi
20664 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20665 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20666 if test $ac_cv_lib_dld_dld_link = yes; then
20667   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20668 fi
20669
20670
20671 fi
20672
20673
20674 fi
20675
20676
20677 fi
20678
20679
20680 fi
20681
20682
20683 fi
20684
20685     ;;
20686   esac
20687
20688   if test "x$lt_cv_dlopen" != xno; then
20689     enable_dlopen=yes
20690   else
20691     enable_dlopen=no
20692   fi
20693
20694   case $lt_cv_dlopen in
20695   dlopen)
20696     save_CPPFLAGS="$CPPFLAGS"
20697     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20698
20699     save_LDFLAGS="$LDFLAGS"
20700     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20701
20702     save_LIBS="$LIBS"
20703     LIBS="$lt_cv_dlopen_libs $LIBS"
20704
20705     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20706 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20707 if test "${lt_cv_dlopen_self+set}" = set; then
20708   echo $ECHO_N "(cached) $ECHO_C" >&6
20709 else
20710           if test "$cross_compiling" = yes; then :
20711   lt_cv_dlopen_self=cross
20712 else
20713   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20714   lt_status=$lt_dlunknown
20715   cat > conftest.$ac_ext <<EOF
20716 #line 20716 "configure"
20717 #include "confdefs.h"
20718
20719 #if HAVE_DLFCN_H
20720 #include <dlfcn.h>
20721 #endif
20722
20723 #include <stdio.h>
20724
20725 #ifdef RTLD_GLOBAL
20726 #  define LT_DLGLOBAL           RTLD_GLOBAL
20727 #else
20728 #  ifdef DL_GLOBAL
20729 #    define LT_DLGLOBAL         DL_GLOBAL
20730 #  else
20731 #    define LT_DLGLOBAL         0
20732 #  endif
20733 #endif
20734
20735 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20736    find out it does not work in some platform. */
20737 #ifndef LT_DLLAZY_OR_NOW
20738 #  ifdef RTLD_LAZY
20739 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20740 #  else
20741 #    ifdef DL_LAZY
20742 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20743 #    else
20744 #      ifdef RTLD_NOW
20745 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20746 #      else
20747 #        ifdef DL_NOW
20748 #          define LT_DLLAZY_OR_NOW      DL_NOW
20749 #        else
20750 #          define LT_DLLAZY_OR_NOW      0
20751 #        endif
20752 #      endif
20753 #    endif
20754 #  endif
20755 #endif
20756
20757 #ifdef __cplusplus
20758 extern "C" void exit (int);
20759 #endif
20760
20761 void fnord() { int i=42;}
20762 int main ()
20763 {
20764   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20765   int status = $lt_dlunknown;
20766
20767   if (self)
20768     {
20769       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20770       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20771       /* dlclose (self); */
20772     }
20773
20774     exit (status);
20775 }
20776 EOF
20777   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20778   (eval $ac_link) 2>&5
20779   ac_status=$?
20780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20782     (./conftest; exit; ) 2>/dev/null
20783     lt_status=$?
20784     case x$lt_status in
20785       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20786       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20787       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20788     esac
20789   else :
20790     # compilation failed
20791     lt_cv_dlopen_self=no
20792   fi
20793 fi
20794 rm -fr conftest*
20795
20796
20797 fi
20798 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20799 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20800
20801     if test "x$lt_cv_dlopen_self" = xyes; then
20802       LDFLAGS="$LDFLAGS $link_static_flag"
20803       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20804 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20805 if test "${lt_cv_dlopen_self_static+set}" = set; then
20806   echo $ECHO_N "(cached) $ECHO_C" >&6
20807 else
20808           if test "$cross_compiling" = yes; then :
20809   lt_cv_dlopen_self_static=cross
20810 else
20811   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20812   lt_status=$lt_dlunknown
20813   cat > conftest.$ac_ext <<EOF
20814 #line 20814 "configure"
20815 #include "confdefs.h"
20816
20817 #if HAVE_DLFCN_H
20818 #include <dlfcn.h>
20819 #endif
20820
20821 #include <stdio.h>
20822
20823 #ifdef RTLD_GLOBAL
20824 #  define LT_DLGLOBAL           RTLD_GLOBAL
20825 #else
20826 #  ifdef DL_GLOBAL
20827 #    define LT_DLGLOBAL         DL_GLOBAL
20828 #  else
20829 #    define LT_DLGLOBAL         0
20830 #  endif
20831 #endif
20832
20833 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20834    find out it does not work in some platform. */
20835 #ifndef LT_DLLAZY_OR_NOW
20836 #  ifdef RTLD_LAZY
20837 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20838 #  else
20839 #    ifdef DL_LAZY
20840 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20841 #    else
20842 #      ifdef RTLD_NOW
20843 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20844 #      else
20845 #        ifdef DL_NOW
20846 #          define LT_DLLAZY_OR_NOW      DL_NOW
20847 #        else
20848 #          define LT_DLLAZY_OR_NOW      0
20849 #        endif
20850 #      endif
20851 #    endif
20852 #  endif
20853 #endif
20854
20855 #ifdef __cplusplus
20856 extern "C" void exit (int);
20857 #endif
20858
20859 void fnord() { int i=42;}
20860 int main ()
20861 {
20862   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20863   int status = $lt_dlunknown;
20864
20865   if (self)
20866     {
20867       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20868       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20869       /* dlclose (self); */
20870     }
20871
20872     exit (status);
20873 }
20874 EOF
20875   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20876   (eval $ac_link) 2>&5
20877   ac_status=$?
20878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20880     (./conftest; exit; ) 2>/dev/null
20881     lt_status=$?
20882     case x$lt_status in
20883       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20884       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20885       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20886     esac
20887   else :
20888     # compilation failed
20889     lt_cv_dlopen_self_static=no
20890   fi
20891 fi
20892 rm -fr conftest*
20893
20894
20895 fi
20896 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20897 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20898     fi
20899
20900     CPPFLAGS="$save_CPPFLAGS"
20901     LDFLAGS="$save_LDFLAGS"
20902     LIBS="$save_LIBS"
20903     ;;
20904   esac
20905
20906   case $lt_cv_dlopen_self in
20907   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20908   *) enable_dlopen_self=unknown ;;
20909   esac
20910
20911   case $lt_cv_dlopen_self_static in
20912   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20913   *) enable_dlopen_self_static=unknown ;;
20914   esac
20915 fi
20916
20917
20918 # The else clause should only fire when bootstrapping the
20919 # libtool distribution, otherwise you forgot to ship ltmain.sh
20920 # with your package, and you will get complaints that there are
20921 # no rules to generate ltmain.sh.
20922 if test -f "$ltmain"; then
20923   # See if we are running on zsh, and set the options which allow our commands through
20924   # without removal of \ escapes.
20925   if test -n "${ZSH_VERSION+set}" ; then
20926     setopt NO_GLOB_SUBST
20927   fi
20928   # Now quote all the things that may contain metacharacters while being
20929   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20930   # variables and quote the copies for generation of the libtool script.
20931   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20932     SED SHELL STRIP \
20933     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20934     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20935     deplibs_check_method reload_flag reload_cmds need_locks \
20936     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20937     lt_cv_sys_global_symbol_to_c_name_address \
20938     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20939     old_postinstall_cmds old_postuninstall_cmds \
20940     compiler_GCJ \
20941     CC_GCJ \
20942     LD_GCJ \
20943     lt_prog_compiler_wl_GCJ \
20944     lt_prog_compiler_pic_GCJ \
20945     lt_prog_compiler_static_GCJ \
20946     lt_prog_compiler_no_builtin_flag_GCJ \
20947     export_dynamic_flag_spec_GCJ \
20948     thread_safe_flag_spec_GCJ \
20949     whole_archive_flag_spec_GCJ \
20950     enable_shared_with_static_runtimes_GCJ \
20951     old_archive_cmds_GCJ \
20952     old_archive_from_new_cmds_GCJ \
20953     predep_objects_GCJ \
20954     postdep_objects_GCJ \
20955     predeps_GCJ \
20956     postdeps_GCJ \
20957     compiler_lib_search_path_GCJ \
20958     archive_cmds_GCJ \
20959     archive_expsym_cmds_GCJ \
20960     postinstall_cmds_GCJ \
20961     postuninstall_cmds_GCJ \
20962     old_archive_from_expsyms_cmds_GCJ \
20963     allow_undefined_flag_GCJ \
20964     no_undefined_flag_GCJ \
20965     export_symbols_cmds_GCJ \
20966     hardcode_libdir_flag_spec_GCJ \
20967     hardcode_libdir_flag_spec_ld_GCJ \
20968     hardcode_libdir_separator_GCJ \
20969     hardcode_automatic_GCJ \
20970     module_cmds_GCJ \
20971     module_expsym_cmds_GCJ \
20972     lt_cv_prog_compiler_c_o_GCJ \
20973     exclude_expsyms_GCJ \
20974     include_expsyms_GCJ; do
20975
20976     case $var in
20977     old_archive_cmds_GCJ | \
20978     old_archive_from_new_cmds_GCJ | \
20979     archive_cmds_GCJ | \
20980     archive_expsym_cmds_GCJ | \
20981     module_cmds_GCJ | \
20982     module_expsym_cmds_GCJ | \
20983     old_archive_from_expsyms_cmds_GCJ | \
20984     export_symbols_cmds_GCJ | \
20985     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20986     postinstall_cmds | postuninstall_cmds | \
20987     old_postinstall_cmds | old_postuninstall_cmds | \
20988     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20989       # Double-quote double-evaled strings.
20990       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20991       ;;
20992     *)
20993       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20994       ;;
20995     esac
20996   done
20997
20998   case $lt_echo in
20999   *'\$0 --fallback-echo"')
21000     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21001     ;;
21002   esac
21003
21004 cfgfile="$ofile"
21005
21006   cat <<__EOF__ >> "$cfgfile"
21007 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21008
21009 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21010
21011 # Shell to use when invoking shell scripts.
21012 SHELL=$lt_SHELL
21013
21014 # Whether or not to build shared libraries.
21015 build_libtool_libs=$enable_shared
21016
21017 # Whether or not to build static libraries.
21018 build_old_libs=$enable_static
21019
21020 # Whether or not to add -lc for building shared libraries.
21021 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21022
21023 # Whether or not to disallow shared libs when runtime libs are static
21024 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21025
21026 # Whether or not to optimize for fast installation.
21027 fast_install=$enable_fast_install
21028
21029 # The host system.
21030 host_alias=$host_alias
21031 host=$host
21032 host_os=$host_os
21033
21034 # The build system.
21035 build_alias=$build_alias
21036 build=$build
21037 build_os=$build_os
21038
21039 # An echo program that does not interpret backslashes.
21040 echo=$lt_echo
21041
21042 # The archiver.
21043 AR=$lt_AR
21044 AR_FLAGS=$lt_AR_FLAGS
21045
21046 # A C compiler.
21047 LTCC=$lt_LTCC
21048
21049 # A language-specific compiler.
21050 CC=$lt_compiler_GCJ
21051
21052 # Is the compiler the GNU C compiler?
21053 with_gcc=$GCC_GCJ
21054
21055 # An ERE matcher.
21056 EGREP=$lt_EGREP
21057
21058 # The linker used to build libraries.
21059 LD=$lt_LD_GCJ
21060
21061 # Whether we need hard or soft links.
21062 LN_S=$lt_LN_S
21063
21064 # A BSD-compatible nm program.
21065 NM=$lt_NM
21066
21067 # A symbol stripping program
21068 STRIP=$lt_STRIP
21069
21070 # Used to examine libraries when file_magic_cmd begins "file"
21071 MAGIC_CMD=$MAGIC_CMD
21072
21073 # Used on cygwin: DLL creation program.
21074 DLLTOOL="$DLLTOOL"
21075
21076 # Used on cygwin: object dumper.
21077 OBJDUMP="$OBJDUMP"
21078
21079 # Used on cygwin: assembler.
21080 AS="$AS"
21081
21082 # The name of the directory that contains temporary libtool files.
21083 objdir=$objdir
21084
21085 # How to create reloadable object files.
21086 reload_flag=$lt_reload_flag
21087 reload_cmds=$lt_reload_cmds
21088
21089 # How to pass a linker flag through the compiler.
21090 wl=$lt_lt_prog_compiler_wl_GCJ
21091
21092 # Object file suffix (normally "o").
21093 objext="$ac_objext"
21094
21095 # Old archive suffix (normally "a").
21096 libext="$libext"
21097
21098 # Shared library suffix (normally ".so").
21099 shrext_cmds='$shrext_cmds'
21100
21101 # Executable file suffix (normally "").
21102 exeext="$exeext"
21103
21104 # Additional compiler flags for building library objects.
21105 pic_flag=$lt_lt_prog_compiler_pic_GCJ
21106 pic_mode=$pic_mode
21107
21108 # What is the maximum length of a command?
21109 max_cmd_len=$lt_cv_sys_max_cmd_len
21110
21111 # Does compiler simultaneously support -c and -o options?
21112 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21113
21114 # Must we lock files when doing compilation?
21115 need_locks=$lt_need_locks
21116
21117 # Do we need the lib prefix for modules?
21118 need_lib_prefix=$need_lib_prefix
21119
21120 # Do we need a version for libraries?
21121 need_version=$need_version
21122
21123 # Whether dlopen is supported.
21124 dlopen_support=$enable_dlopen
21125
21126 # Whether dlopen of programs is supported.
21127 dlopen_self=$enable_dlopen_self
21128
21129 # Whether dlopen of statically linked programs is supported.
21130 dlopen_self_static=$enable_dlopen_self_static
21131
21132 # Compiler flag to prevent dynamic linking.
21133 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21134
21135 # Compiler flag to turn off builtin functions.
21136 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21137
21138 # Compiler flag to allow reflexive dlopens.
21139 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21140
21141 # Compiler flag to generate shared objects directly from archives.
21142 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21143
21144 # Compiler flag to generate thread-safe objects.
21145 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21146
21147 # Library versioning type.
21148 version_type=$version_type
21149
21150 # Format of library name prefix.
21151 libname_spec=$lt_libname_spec
21152
21153 # List of archive names.  First name is the real one, the rest are links.
21154 # The last name is the one that the linker finds with -lNAME.
21155 library_names_spec=$lt_library_names_spec
21156
21157 # The coded name of the library, if different from the real name.
21158 soname_spec=$lt_soname_spec
21159
21160 # Commands used to build and install an old-style archive.
21161 RANLIB=$lt_RANLIB
21162 old_archive_cmds=$lt_old_archive_cmds_GCJ
21163 old_postinstall_cmds=$lt_old_postinstall_cmds
21164 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21165
21166 # Create an old-style archive from a shared archive.
21167 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21168
21169 # Create a temporary old-style archive to link instead of a shared archive.
21170 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21171
21172 # Commands used to build and install a shared archive.
21173 archive_cmds=$lt_archive_cmds_GCJ
21174 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21175 postinstall_cmds=$lt_postinstall_cmds
21176 postuninstall_cmds=$lt_postuninstall_cmds
21177
21178 # Commands used to build a loadable module (assumed same as above if empty)
21179 module_cmds=$lt_module_cmds_GCJ
21180 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21181
21182 # Commands to strip libraries.
21183 old_striplib=$lt_old_striplib
21184 striplib=$lt_striplib
21185
21186 # Dependencies to place before the objects being linked to create a
21187 # shared library.
21188 predep_objects=$lt_predep_objects_GCJ
21189
21190 # Dependencies to place after the objects being linked to create a
21191 # shared library.
21192 postdep_objects=$lt_postdep_objects_GCJ
21193
21194 # Dependencies to place before the objects being linked to create a
21195 # shared library.
21196 predeps=$lt_predeps_GCJ
21197
21198 # Dependencies to place after the objects being linked to create a
21199 # shared library.
21200 postdeps=$lt_postdeps_GCJ
21201
21202 # The library search path used internally by the compiler when linking
21203 # a shared library.
21204 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21205
21206 # Method to check whether dependent libraries are shared objects.
21207 deplibs_check_method=$lt_deplibs_check_method
21208
21209 # Command to use when deplibs_check_method == file_magic.
21210 file_magic_cmd=$lt_file_magic_cmd
21211
21212 # Flag that allows shared libraries with undefined symbols to be built.
21213 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21214
21215 # Flag that forces no undefined symbols.
21216 no_undefined_flag=$lt_no_undefined_flag_GCJ
21217
21218 # Commands used to finish a libtool library installation in a directory.
21219 finish_cmds=$lt_finish_cmds
21220
21221 # Same as above, but a single script fragment to be evaled but not shown.
21222 finish_eval=$lt_finish_eval
21223
21224 # Take the output of nm and produce a listing of raw symbols and C names.
21225 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21226
21227 # Transform the output of nm in a proper C declaration
21228 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21229
21230 # Transform the output of nm in a C name address pair
21231 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21232
21233 # This is the shared library runtime path variable.
21234 runpath_var=$runpath_var
21235
21236 # This is the shared library path variable.
21237 shlibpath_var=$shlibpath_var
21238
21239 # Is shlibpath searched before the hard-coded library search path?
21240 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21241
21242 # How to hardcode a shared library path into an executable.
21243 hardcode_action=$hardcode_action_GCJ
21244
21245 # Whether we should hardcode library paths into libraries.
21246 hardcode_into_libs=$hardcode_into_libs
21247
21248 # Flag to hardcode \$libdir into a binary during linking.
21249 # This must work even if \$libdir does not exist.
21250 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21251
21252 # If ld is used when linking, flag to hardcode \$libdir into
21253 # a binary during linking. This must work even if \$libdir does
21254 # not exist.
21255 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21256
21257 # Whether we need a single -rpath flag with a separated argument.
21258 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21259
21260 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21261 # resulting binary.
21262 hardcode_direct=$hardcode_direct_GCJ
21263
21264 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21265 # resulting binary.
21266 hardcode_minus_L=$hardcode_minus_L_GCJ
21267
21268 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21269 # the resulting binary.
21270 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21271
21272 # Set to yes if building a shared library automatically hardcodes DIR into the library
21273 # and all subsequent libraries and executables linked against it.
21274 hardcode_automatic=$hardcode_automatic_GCJ
21275
21276 # Variables whose values should be saved in libtool wrapper scripts and
21277 # restored at relink time.
21278 variables_saved_for_relink="$variables_saved_for_relink"
21279
21280 # Whether libtool must link a program against all its dependency libraries.
21281 link_all_deplibs=$link_all_deplibs_GCJ
21282
21283 # Compile-time system search path for libraries
21284 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21285
21286 # Run-time system search path for libraries
21287 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21288
21289 # Fix the shell variable \$srcfile for the compiler.
21290 fix_srcfile_path="$fix_srcfile_path_GCJ"
21291
21292 # Set to yes if exported symbols are required.
21293 always_export_symbols=$always_export_symbols_GCJ
21294
21295 # The commands to list exported symbols.
21296 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21297
21298 # The commands to extract the exported symbol list from a shared archive.
21299 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21300
21301 # Symbols that should not be listed in the preloaded symbols.
21302 exclude_expsyms=$lt_exclude_expsyms_GCJ
21303
21304 # Symbols that must always be exported.
21305 include_expsyms=$lt_include_expsyms_GCJ
21306
21307 # ### END LIBTOOL TAG CONFIG: $tagname
21308
21309 __EOF__
21310
21311
21312 else
21313   # If there is no Makefile yet, we rely on a make rule to execute
21314   # `config.status --recheck' to rerun these tests and create the
21315   # libtool script then.
21316   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21317   if test -f "$ltmain_in"; then
21318     test -f Makefile && make "$ltmain"
21319   fi
21320 fi
21321
21322
21323 ac_ext=c
21324 ac_cpp='$CPP $CPPFLAGS'
21325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21328
21329 CC="$lt_save_CC"
21330
21331         else
21332           tagname=""
21333         fi
21334         ;;
21335
21336       RC)
21337
21338
21339
21340 # Source file extension for RC test sources.
21341 ac_ext=rc
21342
21343 # Object file extension for compiled RC test sources.
21344 objext=o
21345 objext_RC=$objext
21346
21347 # Code to be used in simple compile tests
21348 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21349
21350 # Code to be used in simple link tests
21351 lt_simple_link_test_code="$lt_simple_compile_test_code"
21352
21353 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21354
21355 # If no C compiler was specified, use CC.
21356 LTCC=${LTCC-"$CC"}
21357
21358 # Allow CC to be a program name with arguments.
21359 compiler=$CC
21360
21361
21362 # save warnings/boilerplate of simple test code
21363 ac_outfile=conftest.$ac_objext
21364 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21365 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21366 _lt_compiler_boilerplate=`cat conftest.err`
21367 $rm conftest*
21368
21369 ac_outfile=conftest.$ac_objext
21370 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21371 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21372 _lt_linker_boilerplate=`cat conftest.err`
21373 $rm conftest*
21374
21375
21376 # Allow CC to be a program name with arguments.
21377 lt_save_CC="$CC"
21378 CC=${RC-"windres"}
21379 compiler=$CC
21380 compiler_RC=$CC
21381 for cc_temp in $compiler""; do
21382   case $cc_temp in
21383     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21384     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21385     \-*) ;;
21386     *) break;;
21387   esac
21388 done
21389 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21390
21391 lt_cv_prog_compiler_c_o_RC=yes
21392
21393 # The else clause should only fire when bootstrapping the
21394 # libtool distribution, otherwise you forgot to ship ltmain.sh
21395 # with your package, and you will get complaints that there are
21396 # no rules to generate ltmain.sh.
21397 if test -f "$ltmain"; then
21398   # See if we are running on zsh, and set the options which allow our commands through
21399   # without removal of \ escapes.
21400   if test -n "${ZSH_VERSION+set}" ; then
21401     setopt NO_GLOB_SUBST
21402   fi
21403   # Now quote all the things that may contain metacharacters while being
21404   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21405   # variables and quote the copies for generation of the libtool script.
21406   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21407     SED SHELL STRIP \
21408     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21409     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21410     deplibs_check_method reload_flag reload_cmds need_locks \
21411     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21412     lt_cv_sys_global_symbol_to_c_name_address \
21413     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21414     old_postinstall_cmds old_postuninstall_cmds \
21415     compiler_RC \
21416     CC_RC \
21417     LD_RC \
21418     lt_prog_compiler_wl_RC \
21419     lt_prog_compiler_pic_RC \
21420     lt_prog_compiler_static_RC \
21421     lt_prog_compiler_no_builtin_flag_RC \
21422     export_dynamic_flag_spec_RC \
21423     thread_safe_flag_spec_RC \
21424     whole_archive_flag_spec_RC \
21425     enable_shared_with_static_runtimes_RC \
21426     old_archive_cmds_RC \
21427     old_archive_from_new_cmds_RC \
21428     predep_objects_RC \
21429     postdep_objects_RC \
21430     predeps_RC \
21431     postdeps_RC \
21432     compiler_lib_search_path_RC \
21433     archive_cmds_RC \
21434     archive_expsym_cmds_RC \
21435     postinstall_cmds_RC \
21436     postuninstall_cmds_RC \
21437     old_archive_from_expsyms_cmds_RC \
21438     allow_undefined_flag_RC \
21439     no_undefined_flag_RC \
21440     export_symbols_cmds_RC \
21441     hardcode_libdir_flag_spec_RC \
21442     hardcode_libdir_flag_spec_ld_RC \
21443     hardcode_libdir_separator_RC \
21444     hardcode_automatic_RC \
21445     module_cmds_RC \
21446     module_expsym_cmds_RC \
21447     lt_cv_prog_compiler_c_o_RC \
21448     exclude_expsyms_RC \
21449     include_expsyms_RC; do
21450
21451     case $var in
21452     old_archive_cmds_RC | \
21453     old_archive_from_new_cmds_RC | \
21454     archive_cmds_RC | \
21455     archive_expsym_cmds_RC | \
21456     module_cmds_RC | \
21457     module_expsym_cmds_RC | \
21458     old_archive_from_expsyms_cmds_RC | \
21459     export_symbols_cmds_RC | \
21460     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21461     postinstall_cmds | postuninstall_cmds | \
21462     old_postinstall_cmds | old_postuninstall_cmds | \
21463     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21464       # Double-quote double-evaled strings.
21465       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21466       ;;
21467     *)
21468       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21469       ;;
21470     esac
21471   done
21472
21473   case $lt_echo in
21474   *'\$0 --fallback-echo"')
21475     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21476     ;;
21477   esac
21478
21479 cfgfile="$ofile"
21480
21481   cat <<__EOF__ >> "$cfgfile"
21482 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21483
21484 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21485
21486 # Shell to use when invoking shell scripts.
21487 SHELL=$lt_SHELL
21488
21489 # Whether or not to build shared libraries.
21490 build_libtool_libs=$enable_shared
21491
21492 # Whether or not to build static libraries.
21493 build_old_libs=$enable_static
21494
21495 # Whether or not to add -lc for building shared libraries.
21496 build_libtool_need_lc=$archive_cmds_need_lc_RC
21497
21498 # Whether or not to disallow shared libs when runtime libs are static
21499 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21500
21501 # Whether or not to optimize for fast installation.
21502 fast_install=$enable_fast_install
21503
21504 # The host system.
21505 host_alias=$host_alias
21506 host=$host
21507 host_os=$host_os
21508
21509 # The build system.
21510 build_alias=$build_alias
21511 build=$build
21512 build_os=$build_os
21513
21514 # An echo program that does not interpret backslashes.
21515 echo=$lt_echo
21516
21517 # The archiver.
21518 AR=$lt_AR
21519 AR_FLAGS=$lt_AR_FLAGS
21520
21521 # A C compiler.
21522 LTCC=$lt_LTCC
21523
21524 # A language-specific compiler.
21525 CC=$lt_compiler_RC
21526
21527 # Is the compiler the GNU C compiler?
21528 with_gcc=$GCC_RC
21529
21530 # An ERE matcher.
21531 EGREP=$lt_EGREP
21532
21533 # The linker used to build libraries.
21534 LD=$lt_LD_RC
21535
21536 # Whether we need hard or soft links.
21537 LN_S=$lt_LN_S
21538
21539 # A BSD-compatible nm program.
21540 NM=$lt_NM
21541
21542 # A symbol stripping program
21543 STRIP=$lt_STRIP
21544
21545 # Used to examine libraries when file_magic_cmd begins "file"
21546 MAGIC_CMD=$MAGIC_CMD
21547
21548 # Used on cygwin: DLL creation program.
21549 DLLTOOL="$DLLTOOL"
21550
21551 # Used on cygwin: object dumper.
21552 OBJDUMP="$OBJDUMP"
21553
21554 # Used on cygwin: assembler.
21555 AS="$AS"
21556
21557 # The name of the directory that contains temporary libtool files.
21558 objdir=$objdir
21559
21560 # How to create reloadable object files.
21561 reload_flag=$lt_reload_flag
21562 reload_cmds=$lt_reload_cmds
21563
21564 # How to pass a linker flag through the compiler.
21565 wl=$lt_lt_prog_compiler_wl_RC
21566
21567 # Object file suffix (normally "o").
21568 objext="$ac_objext"
21569
21570 # Old archive suffix (normally "a").
21571 libext="$libext"
21572
21573 # Shared library suffix (normally ".so").
21574 shrext_cmds='$shrext_cmds'
21575
21576 # Executable file suffix (normally "").
21577 exeext="$exeext"
21578
21579 # Additional compiler flags for building library objects.
21580 pic_flag=$lt_lt_prog_compiler_pic_RC
21581 pic_mode=$pic_mode
21582
21583 # What is the maximum length of a command?
21584 max_cmd_len=$lt_cv_sys_max_cmd_len
21585
21586 # Does compiler simultaneously support -c and -o options?
21587 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21588
21589 # Must we lock files when doing compilation?
21590 need_locks=$lt_need_locks
21591
21592 # Do we need the lib prefix for modules?
21593 need_lib_prefix=$need_lib_prefix
21594
21595 # Do we need a version for libraries?
21596 need_version=$need_version
21597
21598 # Whether dlopen is supported.
21599 dlopen_support=$enable_dlopen
21600
21601 # Whether dlopen of programs is supported.
21602 dlopen_self=$enable_dlopen_self
21603
21604 # Whether dlopen of statically linked programs is supported.
21605 dlopen_self_static=$enable_dlopen_self_static
21606
21607 # Compiler flag to prevent dynamic linking.
21608 link_static_flag=$lt_lt_prog_compiler_static_RC
21609
21610 # Compiler flag to turn off builtin functions.
21611 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21612
21613 # Compiler flag to allow reflexive dlopens.
21614 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21615
21616 # Compiler flag to generate shared objects directly from archives.
21617 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21618
21619 # Compiler flag to generate thread-safe objects.
21620 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21621
21622 # Library versioning type.
21623 version_type=$version_type
21624
21625 # Format of library name prefix.
21626 libname_spec=$lt_libname_spec
21627
21628 # List of archive names.  First name is the real one, the rest are links.
21629 # The last name is the one that the linker finds with -lNAME.
21630 library_names_spec=$lt_library_names_spec
21631
21632 # The coded name of the library, if different from the real name.
21633 soname_spec=$lt_soname_spec
21634
21635 # Commands used to build and install an old-style archive.
21636 RANLIB=$lt_RANLIB
21637 old_archive_cmds=$lt_old_archive_cmds_RC
21638 old_postinstall_cmds=$lt_old_postinstall_cmds
21639 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21640
21641 # Create an old-style archive from a shared archive.
21642 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21643
21644 # Create a temporary old-style archive to link instead of a shared archive.
21645 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21646
21647 # Commands used to build and install a shared archive.
21648 archive_cmds=$lt_archive_cmds_RC
21649 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21650 postinstall_cmds=$lt_postinstall_cmds
21651 postuninstall_cmds=$lt_postuninstall_cmds
21652
21653 # Commands used to build a loadable module (assumed same as above if empty)
21654 module_cmds=$lt_module_cmds_RC
21655 module_expsym_cmds=$lt_module_expsym_cmds_RC
21656
21657 # Commands to strip libraries.
21658 old_striplib=$lt_old_striplib
21659 striplib=$lt_striplib
21660
21661 # Dependencies to place before the objects being linked to create a
21662 # shared library.
21663 predep_objects=$lt_predep_objects_RC
21664
21665 # Dependencies to place after the objects being linked to create a
21666 # shared library.
21667 postdep_objects=$lt_postdep_objects_RC
21668
21669 # Dependencies to place before the objects being linked to create a
21670 # shared library.
21671 predeps=$lt_predeps_RC
21672
21673 # Dependencies to place after the objects being linked to create a
21674 # shared library.
21675 postdeps=$lt_postdeps_RC
21676
21677 # The library search path used internally by the compiler when linking
21678 # a shared library.
21679 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21680
21681 # Method to check whether dependent libraries are shared objects.
21682 deplibs_check_method=$lt_deplibs_check_method
21683
21684 # Command to use when deplibs_check_method == file_magic.
21685 file_magic_cmd=$lt_file_magic_cmd
21686
21687 # Flag that allows shared libraries with undefined symbols to be built.
21688 allow_undefined_flag=$lt_allow_undefined_flag_RC
21689
21690 # Flag that forces no undefined symbols.
21691 no_undefined_flag=$lt_no_undefined_flag_RC
21692
21693 # Commands used to finish a libtool library installation in a directory.
21694 finish_cmds=$lt_finish_cmds
21695
21696 # Same as above, but a single script fragment to be evaled but not shown.
21697 finish_eval=$lt_finish_eval
21698
21699 # Take the output of nm and produce a listing of raw symbols and C names.
21700 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21701
21702 # Transform the output of nm in a proper C declaration
21703 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21704
21705 # Transform the output of nm in a C name address pair
21706 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21707
21708 # This is the shared library runtime path variable.
21709 runpath_var=$runpath_var
21710
21711 # This is the shared library path variable.
21712 shlibpath_var=$shlibpath_var
21713
21714 # Is shlibpath searched before the hard-coded library search path?
21715 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21716
21717 # How to hardcode a shared library path into an executable.
21718 hardcode_action=$hardcode_action_RC
21719
21720 # Whether we should hardcode library paths into libraries.
21721 hardcode_into_libs=$hardcode_into_libs
21722
21723 # Flag to hardcode \$libdir into a binary during linking.
21724 # This must work even if \$libdir does not exist.
21725 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21726
21727 # If ld is used when linking, flag to hardcode \$libdir into
21728 # a binary during linking. This must work even if \$libdir does
21729 # not exist.
21730 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21731
21732 # Whether we need a single -rpath flag with a separated argument.
21733 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21734
21735 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21736 # resulting binary.
21737 hardcode_direct=$hardcode_direct_RC
21738
21739 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21740 # resulting binary.
21741 hardcode_minus_L=$hardcode_minus_L_RC
21742
21743 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21744 # the resulting binary.
21745 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21746
21747 # Set to yes if building a shared library automatically hardcodes DIR into the library
21748 # and all subsequent libraries and executables linked against it.
21749 hardcode_automatic=$hardcode_automatic_RC
21750
21751 # Variables whose values should be saved in libtool wrapper scripts and
21752 # restored at relink time.
21753 variables_saved_for_relink="$variables_saved_for_relink"
21754
21755 # Whether libtool must link a program against all its dependency libraries.
21756 link_all_deplibs=$link_all_deplibs_RC
21757
21758 # Compile-time system search path for libraries
21759 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21760
21761 # Run-time system search path for libraries
21762 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21763
21764 # Fix the shell variable \$srcfile for the compiler.
21765 fix_srcfile_path="$fix_srcfile_path_RC"
21766
21767 # Set to yes if exported symbols are required.
21768 always_export_symbols=$always_export_symbols_RC
21769
21770 # The commands to list exported symbols.
21771 export_symbols_cmds=$lt_export_symbols_cmds_RC
21772
21773 # The commands to extract the exported symbol list from a shared archive.
21774 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21775
21776 # Symbols that should not be listed in the preloaded symbols.
21777 exclude_expsyms=$lt_exclude_expsyms_RC
21778
21779 # Symbols that must always be exported.
21780 include_expsyms=$lt_include_expsyms_RC
21781
21782 # ### END LIBTOOL TAG CONFIG: $tagname
21783
21784 __EOF__
21785
21786
21787 else
21788   # If there is no Makefile yet, we rely on a make rule to execute
21789   # `config.status --recheck' to rerun these tests and create the
21790   # libtool script then.
21791   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21792   if test -f "$ltmain_in"; then
21793     test -f Makefile && make "$ltmain"
21794   fi
21795 fi
21796
21797
21798 ac_ext=c
21799 ac_cpp='$CPP $CPPFLAGS'
21800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21803
21804 CC="$lt_save_CC"
21805
21806         ;;
21807
21808       *)
21809         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21810 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21811    { (exit 1); exit 1; }; }
21812         ;;
21813       esac
21814
21815       # Append the new tag name to the list of available tags.
21816       if test -n "$tagname" ; then
21817       available_tags="$available_tags $tagname"
21818     fi
21819     fi
21820   done
21821   IFS="$lt_save_ifs"
21822
21823   # Now substitute the updated list of available tags.
21824   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21825     mv "${ofile}T" "$ofile"
21826     chmod +x "$ofile"
21827   else
21828     rm -f "${ofile}T"
21829     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21830 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21831    { (exit 1); exit 1; }; }
21832   fi
21833 fi
21834
21835
21836
21837 # This can be used to rebuild libtool when needed
21838 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21839
21840 # Always use our own libtool.
21841 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21842
21843 # Prevent multiple expansion
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865 ol_link_perl=no
21866 if test $ol_enable_perl != no ; then
21867         # Extract the first word of "perl", so it can be a program name with args.
21868 set dummy perl; ac_word=$2
21869 echo "$as_me:$LINENO: checking for $ac_word" >&5
21870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21871 if test "${ac_cv_path_PERLBIN+set}" = set; then
21872   echo $ECHO_N "(cached) $ECHO_C" >&6
21873 else
21874   case $PERLBIN in
21875   [\\/]* | ?:[\\/]*)
21876   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21877   ;;
21878   *)
21879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21880 for as_dir in $PATH
21881 do
21882   IFS=$as_save_IFS
21883   test -z "$as_dir" && as_dir=.
21884   for ac_exec_ext in '' $ac_executable_extensions; do
21885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21886     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21888     break 2
21889   fi
21890 done
21891 done
21892
21893   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21894   ;;
21895 esac
21896 fi
21897 PERLBIN=$ac_cv_path_PERLBIN
21898
21899 if test -n "$PERLBIN"; then
21900   echo "$as_me:$LINENO: result: $PERLBIN" >&5
21901 echo "${ECHO_T}$PERLBIN" >&6
21902 else
21903   echo "$as_me:$LINENO: result: no" >&5
21904 echo "${ECHO_T}no" >&6
21905 fi
21906
21907
21908         if test "no$PERLBIN" = "no" ; then
21909                 if test $ol_enable_perl = yes ; then
21910                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21911 echo "$as_me: error: could not locate perl" >&2;}
21912    { (exit 1); exit 1; }; }
21913                 fi
21914
21915         else
21916                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21917                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21918
21919                 if test x"$ol_enable_perl" = "xyes" ; then
21920                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21921                 else
21922                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21923                 fi
21924                                 ol_link_perl=yes
21925         fi
21926 fi
21927
21928 ac_ext=c
21929 ac_cpp='$CPP $CPPFLAGS'
21930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21933 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21934 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21935 # On Suns, sometimes $CPP names a directory.
21936 if test -n "$CPP" && test -d "$CPP"; then
21937   CPP=
21938 fi
21939 if test -z "$CPP"; then
21940   if test "${ac_cv_prog_CPP+set}" = set; then
21941   echo $ECHO_N "(cached) $ECHO_C" >&6
21942 else
21943       # Double quotes because CPP needs to be expanded
21944     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21945     do
21946       ac_preproc_ok=false
21947 for ac_c_preproc_warn_flag in '' yes
21948 do
21949   # Use a header file that comes with gcc, so configuring glibc
21950   # with a fresh cross-compiler works.
21951   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21952   # <limits.h> exists even on freestanding compilers.
21953   # On the NeXT, cc -E runs the code through the compiler's parser,
21954   # not just through cpp. "Syntax error" is here to catch this case.
21955   cat >conftest.$ac_ext <<_ACEOF
21956 /* confdefs.h.  */
21957 _ACEOF
21958 cat confdefs.h >>conftest.$ac_ext
21959 cat >>conftest.$ac_ext <<_ACEOF
21960 /* end confdefs.h.  */
21961 #ifdef __STDC__
21962 # include <limits.h>
21963 #else
21964 # include <assert.h>
21965 #endif
21966                      Syntax error
21967 _ACEOF
21968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21969   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21970   ac_status=$?
21971   grep -v '^ *+' conftest.er1 >conftest.err
21972   rm -f conftest.er1
21973   cat conftest.err >&5
21974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975   (exit $ac_status); } >/dev/null; then
21976   if test -s conftest.err; then
21977     ac_cpp_err=$ac_c_preproc_warn_flag
21978     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21979   else
21980     ac_cpp_err=
21981   fi
21982 else
21983   ac_cpp_err=yes
21984 fi
21985 if test -z "$ac_cpp_err"; then
21986   :
21987 else
21988   echo "$as_me: failed program was:" >&5
21989 sed 's/^/| /' conftest.$ac_ext >&5
21990
21991   # Broken: fails on valid input.
21992 continue
21993 fi
21994 rm -f conftest.err conftest.$ac_ext
21995
21996   # OK, works on sane cases.  Now check whether non-existent headers
21997   # can be detected and how.
21998   cat >conftest.$ac_ext <<_ACEOF
21999 /* confdefs.h.  */
22000 _ACEOF
22001 cat confdefs.h >>conftest.$ac_ext
22002 cat >>conftest.$ac_ext <<_ACEOF
22003 /* end confdefs.h.  */
22004 #include <ac_nonexistent.h>
22005 _ACEOF
22006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22007   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22008   ac_status=$?
22009   grep -v '^ *+' conftest.er1 >conftest.err
22010   rm -f conftest.er1
22011   cat conftest.err >&5
22012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013   (exit $ac_status); } >/dev/null; then
22014   if test -s conftest.err; then
22015     ac_cpp_err=$ac_c_preproc_warn_flag
22016     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22017   else
22018     ac_cpp_err=
22019   fi
22020 else
22021   ac_cpp_err=yes
22022 fi
22023 if test -z "$ac_cpp_err"; then
22024   # Broken: success on invalid input.
22025 continue
22026 else
22027   echo "$as_me: failed program was:" >&5
22028 sed 's/^/| /' conftest.$ac_ext >&5
22029
22030   # Passes both tests.
22031 ac_preproc_ok=:
22032 break
22033 fi
22034 rm -f conftest.err conftest.$ac_ext
22035
22036 done
22037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22038 rm -f conftest.err conftest.$ac_ext
22039 if $ac_preproc_ok; then
22040   break
22041 fi
22042
22043     done
22044     ac_cv_prog_CPP=$CPP
22045
22046 fi
22047   CPP=$ac_cv_prog_CPP
22048 else
22049   ac_cv_prog_CPP=$CPP
22050 fi
22051 echo "$as_me:$LINENO: result: $CPP" >&5
22052 echo "${ECHO_T}$CPP" >&6
22053 ac_preproc_ok=false
22054 for ac_c_preproc_warn_flag in '' yes
22055 do
22056   # Use a header file that comes with gcc, so configuring glibc
22057   # with a fresh cross-compiler works.
22058   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22059   # <limits.h> exists even on freestanding compilers.
22060   # On the NeXT, cc -E runs the code through the compiler's parser,
22061   # not just through cpp. "Syntax error" is here to catch this case.
22062   cat >conftest.$ac_ext <<_ACEOF
22063 /* confdefs.h.  */
22064 _ACEOF
22065 cat confdefs.h >>conftest.$ac_ext
22066 cat >>conftest.$ac_ext <<_ACEOF
22067 /* end confdefs.h.  */
22068 #ifdef __STDC__
22069 # include <limits.h>
22070 #else
22071 # include <assert.h>
22072 #endif
22073                      Syntax error
22074 _ACEOF
22075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22076   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22077   ac_status=$?
22078   grep -v '^ *+' conftest.er1 >conftest.err
22079   rm -f conftest.er1
22080   cat conftest.err >&5
22081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082   (exit $ac_status); } >/dev/null; then
22083   if test -s conftest.err; then
22084     ac_cpp_err=$ac_c_preproc_warn_flag
22085     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22086   else
22087     ac_cpp_err=
22088   fi
22089 else
22090   ac_cpp_err=yes
22091 fi
22092 if test -z "$ac_cpp_err"; then
22093   :
22094 else
22095   echo "$as_me: failed program was:" >&5
22096 sed 's/^/| /' conftest.$ac_ext >&5
22097
22098   # Broken: fails on valid input.
22099 continue
22100 fi
22101 rm -f conftest.err conftest.$ac_ext
22102
22103   # OK, works on sane cases.  Now check whether non-existent headers
22104   # can be detected and how.
22105   cat >conftest.$ac_ext <<_ACEOF
22106 /* confdefs.h.  */
22107 _ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h.  */
22111 #include <ac_nonexistent.h>
22112 _ACEOF
22113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22114   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22115   ac_status=$?
22116   grep -v '^ *+' conftest.er1 >conftest.err
22117   rm -f conftest.er1
22118   cat conftest.err >&5
22119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120   (exit $ac_status); } >/dev/null; then
22121   if test -s conftest.err; then
22122     ac_cpp_err=$ac_c_preproc_warn_flag
22123     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22124   else
22125     ac_cpp_err=
22126   fi
22127 else
22128   ac_cpp_err=yes
22129 fi
22130 if test -z "$ac_cpp_err"; then
22131   # Broken: success on invalid input.
22132 continue
22133 else
22134   echo "$as_me: failed program was:" >&5
22135 sed 's/^/| /' conftest.$ac_ext >&5
22136
22137   # Passes both tests.
22138 ac_preproc_ok=:
22139 break
22140 fi
22141 rm -f conftest.err conftest.$ac_ext
22142
22143 done
22144 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22145 rm -f conftest.err conftest.$ac_ext
22146 if $ac_preproc_ok; then
22147   :
22148 else
22149   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
22150 See \`config.log' for more details." >&5
22151 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
22152 See \`config.log' for more details." >&2;}
22153    { (exit 1); exit 1; }; }
22154 fi
22155
22156 ac_ext=c
22157 ac_cpp='$CPP $CPPFLAGS'
22158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22161
22162
22163
22164
22165
22166 cat >>confdefs.h <<_ACEOF
22167 #define EXEEXT "${EXEEXT}"
22168 _ACEOF
22169
22170
22171 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22172 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22173 if test "${ac_cv_lib_be_be_app+set}" = set; then
22174   echo $ECHO_N "(cached) $ECHO_C" >&6
22175 else
22176   ac_check_lib_save_LIBS=$LIBS
22177 LIBS="-lbe -lroot -lnet $LIBS"
22178 cat >conftest.$ac_ext <<_ACEOF
22179 /* confdefs.h.  */
22180 _ACEOF
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h.  */
22184
22185 /* Override any gcc2 internal prototype to avoid an error.  */
22186 #ifdef __cplusplus
22187 extern "C"
22188 #endif
22189 /* We use char because int might match the return type of a gcc2
22190    builtin and then its argument prototype would still apply.  */
22191 char be_app ();
22192 int
22193 main ()
22194 {
22195 be_app ();
22196   ;
22197   return 0;
22198 }
22199 _ACEOF
22200 rm -f conftest.$ac_objext conftest$ac_exeext
22201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22202   (eval $ac_link) 2>conftest.er1
22203   ac_status=$?
22204   grep -v '^ *+' conftest.er1 >conftest.err
22205   rm -f conftest.er1
22206   cat conftest.err >&5
22207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208   (exit $ac_status); } &&
22209          { ac_try='test -z "$ac_c_werror_flag"
22210                          || test ! -s conftest.err'
22211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22212   (eval $ac_try) 2>&5
22213   ac_status=$?
22214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215   (exit $ac_status); }; } &&
22216          { ac_try='test -s conftest$ac_exeext'
22217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218   (eval $ac_try) 2>&5
22219   ac_status=$?
22220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221   (exit $ac_status); }; }; then
22222   ac_cv_lib_be_be_app=yes
22223 else
22224   echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22226
22227 ac_cv_lib_be_be_app=no
22228 fi
22229 rm -f conftest.err conftest.$ac_objext \
22230       conftest$ac_exeext conftest.$ac_ext
22231 LIBS=$ac_check_lib_save_LIBS
22232 fi
22233 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22234 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22235 if test $ac_cv_lib_be_be_app = yes; then
22236   LIBS="$LIBS -lbe -lroot -lnet"
22237 else
22238   :
22239 fi
22240
22241
22242 ac_ext=c
22243 ac_cpp='$CPP $CPPFLAGS'
22244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22247 if test -n "$ac_tool_prefix"; then
22248   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22249 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22250 echo "$as_me:$LINENO: checking for $ac_word" >&5
22251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22252 if test "${ac_cv_prog_CC+set}" = set; then
22253   echo $ECHO_N "(cached) $ECHO_C" >&6
22254 else
22255   if test -n "$CC"; then
22256   ac_cv_prog_CC="$CC" # Let the user override the test.
22257 else
22258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22259 for as_dir in $PATH
22260 do
22261   IFS=$as_save_IFS
22262   test -z "$as_dir" && as_dir=.
22263   for ac_exec_ext in '' $ac_executable_extensions; do
22264   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22265     ac_cv_prog_CC="${ac_tool_prefix}gcc"
22266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22267     break 2
22268   fi
22269 done
22270 done
22271
22272 fi
22273 fi
22274 CC=$ac_cv_prog_CC
22275 if test -n "$CC"; then
22276   echo "$as_me:$LINENO: result: $CC" >&5
22277 echo "${ECHO_T}$CC" >&6
22278 else
22279   echo "$as_me:$LINENO: result: no" >&5
22280 echo "${ECHO_T}no" >&6
22281 fi
22282
22283 fi
22284 if test -z "$ac_cv_prog_CC"; then
22285   ac_ct_CC=$CC
22286   # Extract the first word of "gcc", so it can be a program name with args.
22287 set dummy gcc; ac_word=$2
22288 echo "$as_me:$LINENO: checking for $ac_word" >&5
22289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22290 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22291   echo $ECHO_N "(cached) $ECHO_C" >&6
22292 else
22293   if test -n "$ac_ct_CC"; then
22294   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22295 else
22296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22297 for as_dir in $PATH
22298 do
22299   IFS=$as_save_IFS
22300   test -z "$as_dir" && as_dir=.
22301   for ac_exec_ext in '' $ac_executable_extensions; do
22302   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22303     ac_cv_prog_ac_ct_CC="gcc"
22304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22305     break 2
22306   fi
22307 done
22308 done
22309
22310 fi
22311 fi
22312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22313 if test -n "$ac_ct_CC"; then
22314   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22315 echo "${ECHO_T}$ac_ct_CC" >&6
22316 else
22317   echo "$as_me:$LINENO: result: no" >&5
22318 echo "${ECHO_T}no" >&6
22319 fi
22320
22321   CC=$ac_ct_CC
22322 else
22323   CC="$ac_cv_prog_CC"
22324 fi
22325
22326 if test -z "$CC"; then
22327   if test -n "$ac_tool_prefix"; then
22328   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22329 set dummy ${ac_tool_prefix}cc; ac_word=$2
22330 echo "$as_me:$LINENO: checking for $ac_word" >&5
22331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22332 if test "${ac_cv_prog_CC+set}" = set; then
22333   echo $ECHO_N "(cached) $ECHO_C" >&6
22334 else
22335   if test -n "$CC"; then
22336   ac_cv_prog_CC="$CC" # Let the user override the test.
22337 else
22338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22339 for as_dir in $PATH
22340 do
22341   IFS=$as_save_IFS
22342   test -z "$as_dir" && as_dir=.
22343   for ac_exec_ext in '' $ac_executable_extensions; do
22344   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22345     ac_cv_prog_CC="${ac_tool_prefix}cc"
22346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22347     break 2
22348   fi
22349 done
22350 done
22351
22352 fi
22353 fi
22354 CC=$ac_cv_prog_CC
22355 if test -n "$CC"; then
22356   echo "$as_me:$LINENO: result: $CC" >&5
22357 echo "${ECHO_T}$CC" >&6
22358 else
22359   echo "$as_me:$LINENO: result: no" >&5
22360 echo "${ECHO_T}no" >&6
22361 fi
22362
22363 fi
22364 if test -z "$ac_cv_prog_CC"; then
22365   ac_ct_CC=$CC
22366   # Extract the first word of "cc", so it can be a program name with args.
22367 set dummy cc; ac_word=$2
22368 echo "$as_me:$LINENO: checking for $ac_word" >&5
22369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22370 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22371   echo $ECHO_N "(cached) $ECHO_C" >&6
22372 else
22373   if test -n "$ac_ct_CC"; then
22374   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22375 else
22376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22377 for as_dir in $PATH
22378 do
22379   IFS=$as_save_IFS
22380   test -z "$as_dir" && as_dir=.
22381   for ac_exec_ext in '' $ac_executable_extensions; do
22382   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22383     ac_cv_prog_ac_ct_CC="cc"
22384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22385     break 2
22386   fi
22387 done
22388 done
22389
22390 fi
22391 fi
22392 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22393 if test -n "$ac_ct_CC"; then
22394   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22395 echo "${ECHO_T}$ac_ct_CC" >&6
22396 else
22397   echo "$as_me:$LINENO: result: no" >&5
22398 echo "${ECHO_T}no" >&6
22399 fi
22400
22401   CC=$ac_ct_CC
22402 else
22403   CC="$ac_cv_prog_CC"
22404 fi
22405
22406 fi
22407 if test -z "$CC"; then
22408   # Extract the first word of "cc", so it can be a program name with args.
22409 set dummy cc; ac_word=$2
22410 echo "$as_me:$LINENO: checking for $ac_word" >&5
22411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22412 if test "${ac_cv_prog_CC+set}" = set; then
22413   echo $ECHO_N "(cached) $ECHO_C" >&6
22414 else
22415   if test -n "$CC"; then
22416   ac_cv_prog_CC="$CC" # Let the user override the test.
22417 else
22418   ac_prog_rejected=no
22419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22420 for as_dir in $PATH
22421 do
22422   IFS=$as_save_IFS
22423   test -z "$as_dir" && as_dir=.
22424   for ac_exec_ext in '' $ac_executable_extensions; do
22425   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22426     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22427        ac_prog_rejected=yes
22428        continue
22429      fi
22430     ac_cv_prog_CC="cc"
22431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22432     break 2
22433   fi
22434 done
22435 done
22436
22437 if test $ac_prog_rejected = yes; then
22438   # We found a bogon in the path, so make sure we never use it.
22439   set dummy $ac_cv_prog_CC
22440   shift
22441   if test $# != 0; then
22442     # We chose a different compiler from the bogus one.
22443     # However, it has the same basename, so the bogon will be chosen
22444     # first if we set CC to just the basename; use the full file name.
22445     shift
22446     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22447   fi
22448 fi
22449 fi
22450 fi
22451 CC=$ac_cv_prog_CC
22452 if test -n "$CC"; then
22453   echo "$as_me:$LINENO: result: $CC" >&5
22454 echo "${ECHO_T}$CC" >&6
22455 else
22456   echo "$as_me:$LINENO: result: no" >&5
22457 echo "${ECHO_T}no" >&6
22458 fi
22459
22460 fi
22461 if test -z "$CC"; then
22462   if test -n "$ac_tool_prefix"; then
22463   for ac_prog in cl
22464   do
22465     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22466 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22467 echo "$as_me:$LINENO: checking for $ac_word" >&5
22468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22469 if test "${ac_cv_prog_CC+set}" = set; then
22470   echo $ECHO_N "(cached) $ECHO_C" >&6
22471 else
22472   if test -n "$CC"; then
22473   ac_cv_prog_CC="$CC" # Let the user override the test.
22474 else
22475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22476 for as_dir in $PATH
22477 do
22478   IFS=$as_save_IFS
22479   test -z "$as_dir" && as_dir=.
22480   for ac_exec_ext in '' $ac_executable_extensions; do
22481   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22482     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22484     break 2
22485   fi
22486 done
22487 done
22488
22489 fi
22490 fi
22491 CC=$ac_cv_prog_CC
22492 if test -n "$CC"; then
22493   echo "$as_me:$LINENO: result: $CC" >&5
22494 echo "${ECHO_T}$CC" >&6
22495 else
22496   echo "$as_me:$LINENO: result: no" >&5
22497 echo "${ECHO_T}no" >&6
22498 fi
22499
22500     test -n "$CC" && break
22501   done
22502 fi
22503 if test -z "$CC"; then
22504   ac_ct_CC=$CC
22505   for ac_prog in cl
22506 do
22507   # Extract the first word of "$ac_prog", so it can be a program name with args.
22508 set dummy $ac_prog; ac_word=$2
22509 echo "$as_me:$LINENO: checking for $ac_word" >&5
22510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22511 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22512   echo $ECHO_N "(cached) $ECHO_C" >&6
22513 else
22514   if test -n "$ac_ct_CC"; then
22515   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22516 else
22517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22518 for as_dir in $PATH
22519 do
22520   IFS=$as_save_IFS
22521   test -z "$as_dir" && as_dir=.
22522   for ac_exec_ext in '' $ac_executable_extensions; do
22523   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22524     ac_cv_prog_ac_ct_CC="$ac_prog"
22525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22526     break 2
22527   fi
22528 done
22529 done
22530
22531 fi
22532 fi
22533 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22534 if test -n "$ac_ct_CC"; then
22535   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22536 echo "${ECHO_T}$ac_ct_CC" >&6
22537 else
22538   echo "$as_me:$LINENO: result: no" >&5
22539 echo "${ECHO_T}no" >&6
22540 fi
22541
22542   test -n "$ac_ct_CC" && break
22543 done
22544
22545   CC=$ac_ct_CC
22546 fi
22547
22548 fi
22549
22550
22551 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22552 See \`config.log' for more details." >&5
22553 echo "$as_me: error: no acceptable C compiler found in \$PATH
22554 See \`config.log' for more details." >&2;}
22555    { (exit 1); exit 1; }; }
22556
22557 # Provide some information about the compiler.
22558 echo "$as_me:$LINENO:" \
22559      "checking for C compiler version" >&5
22560 ac_compiler=`set X $ac_compile; echo $2`
22561 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22562   (eval $ac_compiler --version </dev/null >&5) 2>&5
22563   ac_status=$?
22564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565   (exit $ac_status); }
22566 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22567   (eval $ac_compiler -v </dev/null >&5) 2>&5
22568   ac_status=$?
22569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570   (exit $ac_status); }
22571 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22572   (eval $ac_compiler -V </dev/null >&5) 2>&5
22573   ac_status=$?
22574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575   (exit $ac_status); }
22576
22577 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22578 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22579 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22580   echo $ECHO_N "(cached) $ECHO_C" >&6
22581 else
22582   cat >conftest.$ac_ext <<_ACEOF
22583 /* confdefs.h.  */
22584 _ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h.  */
22588
22589 int
22590 main ()
22591 {
22592 #ifndef __GNUC__
22593        choke me
22594 #endif
22595
22596   ;
22597   return 0;
22598 }
22599 _ACEOF
22600 rm -f conftest.$ac_objext
22601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22602   (eval $ac_compile) 2>conftest.er1
22603   ac_status=$?
22604   grep -v '^ *+' conftest.er1 >conftest.err
22605   rm -f conftest.er1
22606   cat conftest.err >&5
22607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608   (exit $ac_status); } &&
22609          { ac_try='test -z "$ac_c_werror_flag"
22610                          || test ! -s conftest.err'
22611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22612   (eval $ac_try) 2>&5
22613   ac_status=$?
22614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615   (exit $ac_status); }; } &&
22616          { ac_try='test -s conftest.$ac_objext'
22617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22618   (eval $ac_try) 2>&5
22619   ac_status=$?
22620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621   (exit $ac_status); }; }; then
22622   ac_compiler_gnu=yes
22623 else
22624   echo "$as_me: failed program was:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22626
22627 ac_compiler_gnu=no
22628 fi
22629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22630 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22631
22632 fi
22633 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22634 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22635 GCC=`test $ac_compiler_gnu = yes && echo yes`
22636 ac_test_CFLAGS=${CFLAGS+set}
22637 ac_save_CFLAGS=$CFLAGS
22638 CFLAGS="-g"
22639 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22640 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22641 if test "${ac_cv_prog_cc_g+set}" = set; then
22642   echo $ECHO_N "(cached) $ECHO_C" >&6
22643 else
22644   cat >conftest.$ac_ext <<_ACEOF
22645 /* confdefs.h.  */
22646 _ACEOF
22647 cat confdefs.h >>conftest.$ac_ext
22648 cat >>conftest.$ac_ext <<_ACEOF
22649 /* end confdefs.h.  */
22650
22651 int
22652 main ()
22653 {
22654
22655   ;
22656   return 0;
22657 }
22658 _ACEOF
22659 rm -f conftest.$ac_objext
22660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22661   (eval $ac_compile) 2>conftest.er1
22662   ac_status=$?
22663   grep -v '^ *+' conftest.er1 >conftest.err
22664   rm -f conftest.er1
22665   cat conftest.err >&5
22666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667   (exit $ac_status); } &&
22668          { ac_try='test -z "$ac_c_werror_flag"
22669                          || test ! -s conftest.err'
22670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22671   (eval $ac_try) 2>&5
22672   ac_status=$?
22673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674   (exit $ac_status); }; } &&
22675          { ac_try='test -s conftest.$ac_objext'
22676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22677   (eval $ac_try) 2>&5
22678   ac_status=$?
22679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680   (exit $ac_status); }; }; then
22681   ac_cv_prog_cc_g=yes
22682 else
22683   echo "$as_me: failed program was:" >&5
22684 sed 's/^/| /' conftest.$ac_ext >&5
22685
22686 ac_cv_prog_cc_g=no
22687 fi
22688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22689 fi
22690 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22691 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22692 if test "$ac_test_CFLAGS" = set; then
22693   CFLAGS=$ac_save_CFLAGS
22694 elif test $ac_cv_prog_cc_g = yes; then
22695   if test "$GCC" = yes; then
22696     CFLAGS="-g -O2"
22697   else
22698     CFLAGS="-g"
22699   fi
22700 else
22701   if test "$GCC" = yes; then
22702     CFLAGS="-O2"
22703   else
22704     CFLAGS=
22705   fi
22706 fi
22707 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22708 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22709 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22710   echo $ECHO_N "(cached) $ECHO_C" >&6
22711 else
22712   ac_cv_prog_cc_stdc=no
22713 ac_save_CC=$CC
22714 cat >conftest.$ac_ext <<_ACEOF
22715 /* confdefs.h.  */
22716 _ACEOF
22717 cat confdefs.h >>conftest.$ac_ext
22718 cat >>conftest.$ac_ext <<_ACEOF
22719 /* end confdefs.h.  */
22720 #include <stdarg.h>
22721 #include <stdio.h>
22722 #include <sys/types.h>
22723 #include <sys/stat.h>
22724 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
22725 struct buf { int x; };
22726 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22727 static char *e (p, i)
22728      char **p;
22729      int i;
22730 {
22731   return p[i];
22732 }
22733 static char *f (char * (*g) (char **, int), char **p, ...)
22734 {
22735   char *s;
22736   va_list v;
22737   va_start (v,p);
22738   s = g (p, va_arg (v,int));
22739   va_end (v);
22740   return s;
22741 }
22742
22743 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
22744    function prototypes and stuff, but not '\xHH' hex character constants.
22745    These don't provoke an error unfortunately, instead are silently treated
22746    as 'x'.  The following induces an error, until -std1 is added to get
22747    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
22748    array size at least.  It's necessary to write '\x00'==0 to get something
22749    that's true only with -std1.  */
22750 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22751
22752 int test (int i, double x);
22753 struct s1 {int (*f) (int a);};
22754 struct s2 {int (*f) (double a);};
22755 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22756 int argc;
22757 char **argv;
22758 int
22759 main ()
22760 {
22761 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
22762   ;
22763   return 0;
22764 }
22765 _ACEOF
22766 # Don't try gcc -ansi; that turns off useful extensions and
22767 # breaks some systems' header files.
22768 # AIX                   -qlanglvl=ansi
22769 # Ultrix and OSF/1      -std1
22770 # HP-UX 10.20 and later -Ae
22771 # HP-UX older versions  -Aa -D_HPUX_SOURCE
22772 # SVR4                  -Xc -D__EXTENSIONS__
22773 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22774 do
22775   CC="$ac_save_CC $ac_arg"
22776   rm -f conftest.$ac_objext
22777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22778   (eval $ac_compile) 2>conftest.er1
22779   ac_status=$?
22780   grep -v '^ *+' conftest.er1 >conftest.err
22781   rm -f conftest.er1
22782   cat conftest.err >&5
22783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784   (exit $ac_status); } &&
22785          { ac_try='test -z "$ac_c_werror_flag"
22786                          || test ! -s conftest.err'
22787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788   (eval $ac_try) 2>&5
22789   ac_status=$?
22790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791   (exit $ac_status); }; } &&
22792          { ac_try='test -s conftest.$ac_objext'
22793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22794   (eval $ac_try) 2>&5
22795   ac_status=$?
22796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797   (exit $ac_status); }; }; then
22798   ac_cv_prog_cc_stdc=$ac_arg
22799 break
22800 else
22801   echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22803
22804 fi
22805 rm -f conftest.err conftest.$ac_objext
22806 done
22807 rm -f conftest.$ac_ext conftest.$ac_objext
22808 CC=$ac_save_CC
22809
22810 fi
22811
22812 case "x$ac_cv_prog_cc_stdc" in
22813   x|xno)
22814     echo "$as_me:$LINENO: result: none needed" >&5
22815 echo "${ECHO_T}none needed" >&6 ;;
22816   *)
22817     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22818 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22819     CC="$CC $ac_cv_prog_cc_stdc" ;;
22820 esac
22821
22822 # Some people use a C++ compiler to compile C.  Since we use `exit',
22823 # in C++ we need to declare it.  In case someone uses the same compiler
22824 # for both compiling C and C++ we need to have the C++ compiler decide
22825 # the declaration of exit, since it's the most demanding environment.
22826 cat >conftest.$ac_ext <<_ACEOF
22827 #ifndef __cplusplus
22828   choke me
22829 #endif
22830 _ACEOF
22831 rm -f conftest.$ac_objext
22832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22833   (eval $ac_compile) 2>conftest.er1
22834   ac_status=$?
22835   grep -v '^ *+' conftest.er1 >conftest.err
22836   rm -f conftest.er1
22837   cat conftest.err >&5
22838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839   (exit $ac_status); } &&
22840          { ac_try='test -z "$ac_c_werror_flag"
22841                          || test ! -s conftest.err'
22842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22843   (eval $ac_try) 2>&5
22844   ac_status=$?
22845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846   (exit $ac_status); }; } &&
22847          { ac_try='test -s conftest.$ac_objext'
22848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22849   (eval $ac_try) 2>&5
22850   ac_status=$?
22851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852   (exit $ac_status); }; }; then
22853   for ac_declaration in \
22854    '' \
22855    'extern "C" void std::exit (int) throw (); using std::exit;' \
22856    'extern "C" void std::exit (int); using std::exit;' \
22857    'extern "C" void exit (int) throw ();' \
22858    'extern "C" void exit (int);' \
22859    'void exit (int);'
22860 do
22861   cat >conftest.$ac_ext <<_ACEOF
22862 /* confdefs.h.  */
22863 _ACEOF
22864 cat confdefs.h >>conftest.$ac_ext
22865 cat >>conftest.$ac_ext <<_ACEOF
22866 /* end confdefs.h.  */
22867 $ac_declaration
22868 #include <stdlib.h>
22869 int
22870 main ()
22871 {
22872 exit (42);
22873   ;
22874   return 0;
22875 }
22876 _ACEOF
22877 rm -f conftest.$ac_objext
22878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22879   (eval $ac_compile) 2>conftest.er1
22880   ac_status=$?
22881   grep -v '^ *+' conftest.er1 >conftest.err
22882   rm -f conftest.er1
22883   cat conftest.err >&5
22884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885   (exit $ac_status); } &&
22886          { ac_try='test -z "$ac_c_werror_flag"
22887                          || test ! -s conftest.err'
22888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22889   (eval $ac_try) 2>&5
22890   ac_status=$?
22891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892   (exit $ac_status); }; } &&
22893          { ac_try='test -s conftest.$ac_objext'
22894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22895   (eval $ac_try) 2>&5
22896   ac_status=$?
22897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898   (exit $ac_status); }; }; then
22899   :
22900 else
22901   echo "$as_me: failed program was:" >&5
22902 sed 's/^/| /' conftest.$ac_ext >&5
22903
22904 continue
22905 fi
22906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22907   cat >conftest.$ac_ext <<_ACEOF
22908 /* confdefs.h.  */
22909 _ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h.  */
22913 $ac_declaration
22914 int
22915 main ()
22916 {
22917 exit (42);
22918   ;
22919   return 0;
22920 }
22921 _ACEOF
22922 rm -f conftest.$ac_objext
22923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22924   (eval $ac_compile) 2>conftest.er1
22925   ac_status=$?
22926   grep -v '^ *+' conftest.er1 >conftest.err
22927   rm -f conftest.er1
22928   cat conftest.err >&5
22929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930   (exit $ac_status); } &&
22931          { ac_try='test -z "$ac_c_werror_flag"
22932                          || test ! -s conftest.err'
22933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22934   (eval $ac_try) 2>&5
22935   ac_status=$?
22936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937   (exit $ac_status); }; } &&
22938          { ac_try='test -s conftest.$ac_objext'
22939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22940   (eval $ac_try) 2>&5
22941   ac_status=$?
22942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943   (exit $ac_status); }; }; then
22944   break
22945 else
22946   echo "$as_me: failed program was:" >&5
22947 sed 's/^/| /' conftest.$ac_ext >&5
22948
22949 fi
22950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22951 done
22952 rm -f conftest*
22953 if test -n "$ac_declaration"; then
22954   echo '#ifdef __cplusplus' >>confdefs.h
22955   echo $ac_declaration      >>confdefs.h
22956   echo '#endif'             >>confdefs.h
22957 fi
22958
22959 else
22960   echo "$as_me: failed program was:" >&5
22961 sed 's/^/| /' conftest.$ac_ext >&5
22962
22963 fi
22964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22965 ac_ext=c
22966 ac_cpp='$CPP $CPPFLAGS'
22967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22970
22971 depcc="$CC"   am_compiler_list=
22972
22973 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22974 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22975 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22976   echo $ECHO_N "(cached) $ECHO_C" >&6
22977 else
22978   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22979   # We make a subdir and do the tests there.  Otherwise we can end up
22980   # making bogus files that we don't know about and never remove.  For
22981   # instance it was reported that on HP-UX the gcc test will end up
22982   # making a dummy file named `D' -- because `-MD' means `put the output
22983   # in D'.
22984   mkdir conftest.dir
22985   # Copy depcomp to subdir because otherwise we won't find it if we're
22986   # using a relative directory.
22987   cp "$am_depcomp" conftest.dir
22988   cd conftest.dir
22989   # We will build objects and dependencies in a subdirectory because
22990   # it helps to detect inapplicable dependency modes.  For instance
22991   # both Tru64's cc and ICC support -MD to output dependencies as a
22992   # side effect of compilation, but ICC will put the dependencies in
22993   # the current directory while Tru64 will put them in the object
22994   # directory.
22995   mkdir sub
22996
22997   am_cv_CC_dependencies_compiler_type=none
22998   if test "$am_compiler_list" = ""; then
22999      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23000   fi
23001   for depmode in $am_compiler_list; do
23002     # Setup a source with many dependencies, because some compilers
23003     # like to wrap large dependency lists on column 80 (with \), and
23004     # we should not choose a depcomp mode which is confused by this.
23005     #
23006     # We need to recreate these files for each test, as the compiler may
23007     # overwrite some of them when testing with obscure command lines.
23008     # This happens at least with the AIX C compiler.
23009     : > sub/conftest.c
23010     for i in 1 2 3 4 5 6; do
23011       echo '#include "conftst'$i'.h"' >> sub/conftest.c
23012       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23013       # Solaris 8's {/usr,}/bin/sh.
23014       touch sub/conftst$i.h
23015     done
23016     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23017
23018     case $depmode in
23019     nosideeffect)
23020       # after this tag, mechanisms are not by side-effect, so they'll
23021       # only be used when explicitly requested
23022       if test "x$enable_dependency_tracking" = xyes; then
23023         continue
23024       else
23025         break
23026       fi
23027       ;;
23028     none) break ;;
23029     esac
23030     # We check with `-c' and `-o' for the sake of the "dashmstdout"
23031     # mode.  It turns out that the SunPro C++ compiler does not properly
23032     # handle `-M -o', and we need to detect this.
23033     if depmode=$depmode \
23034        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
23035        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23036        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
23037          >/dev/null 2>conftest.err &&
23038        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23039        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
23040        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23041       # icc doesn't choke on unknown options, it will just issue warnings
23042       # or remarks (even with -Werror).  So we grep stderr for any message
23043       # that says an option was ignored or not supported.
23044       # When given -MP, icc 7.0 and 7.1 complain thusly:
23045       #   icc: Command line warning: ignoring option '-M'; no argument required
23046       # The diagnosis changed in icc 8.0:
23047       #   icc: Command line remark: option '-MP' not supported
23048       if (grep 'ignoring option' conftest.err ||
23049           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23050         am_cv_CC_dependencies_compiler_type=$depmode
23051         break
23052       fi
23053     fi
23054   done
23055
23056   cd ..
23057   rm -rf conftest.dir
23058 else
23059   am_cv_CC_dependencies_compiler_type=none
23060 fi
23061
23062 fi
23063 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
23064 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
23065 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
23066
23067
23068
23069 if
23070   test "x$enable_dependency_tracking" != xno \
23071   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
23072   am__fastdepCC_TRUE=
23073   am__fastdepCC_FALSE='#'
23074 else
23075   am__fastdepCC_TRUE='#'
23076   am__fastdepCC_FALSE=
23077 fi
23078
23079
23080 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
23081         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
23082 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
23083    { (exit 1); exit 1; }; }
23084 fi
23085
23086 # test for make depend flag
23087 OL_MKDEP=
23088 OL_MKDEP_FLAGS=
23089 if test -z "${MKDEP}"; then
23090         OL_MKDEP="${CC-cc}"
23091         if test -z "${MKDEP_FLAGS}"; then
23092                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
23093 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
23094 if test "${ol_cv_mkdep+set}" = set; then
23095   echo $ECHO_N "(cached) $ECHO_C" >&6
23096 else
23097
23098                         ol_cv_mkdep=no
23099                         for flag in "-M" "-xM"; do
23100                                 cat > conftest.c <<EOF
23101  noCode;
23102 EOF
23103                                 if { ac_try='$OL_MKDEP $flag conftest.c'
23104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23105   (eval $ac_try) 2>&5
23106   ac_status=$?
23107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108   (exit $ac_status); }; } \
23109                                         | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
23110                                 then
23111                                         if test ! -f conftest."${ac_object}" ; then
23112                                                 ol_cv_mkdep=$flag
23113                                                 OL_MKDEP_FLAGS="$flag"
23114                                                 break
23115                                         fi
23116                                 fi
23117                         done
23118                         rm -f conftest*
23119
23120 fi
23121 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
23122 echo "${ECHO_T}$ol_cv_mkdep" >&6
23123         else
23124                 cc_cv_mkdep=yes
23125                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
23126         fi
23127 else
23128         cc_cv_mkdep=yes
23129         OL_MKDEP="${MKDEP}"
23130         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
23131 fi
23132
23133
23134
23135 if test "${ol_cv_mkdep}" = no ; then
23136         # this will soon become an error
23137         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
23138 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
23139 fi
23140
23141 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
23142 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
23143 if test "${ac_cv_lib_s_afopen+set}" = set; then
23144   echo $ECHO_N "(cached) $ECHO_C" >&6
23145 else
23146   ac_check_lib_save_LIBS=$LIBS
23147 LIBS="-ls  $LIBS"
23148 cat >conftest.$ac_ext <<_ACEOF
23149 /* confdefs.h.  */
23150 _ACEOF
23151 cat confdefs.h >>conftest.$ac_ext
23152 cat >>conftest.$ac_ext <<_ACEOF
23153 /* end confdefs.h.  */
23154
23155 /* Override any gcc2 internal prototype to avoid an error.  */
23156 #ifdef __cplusplus
23157 extern "C"
23158 #endif
23159 /* We use char because int might match the return type of a gcc2
23160    builtin and then its argument prototype would still apply.  */
23161 char afopen ();
23162 int
23163 main ()
23164 {
23165 afopen ();
23166   ;
23167   return 0;
23168 }
23169 _ACEOF
23170 rm -f conftest.$ac_objext conftest$ac_exeext
23171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23172   (eval $ac_link) 2>conftest.er1
23173   ac_status=$?
23174   grep -v '^ *+' conftest.er1 >conftest.err
23175   rm -f conftest.er1
23176   cat conftest.err >&5
23177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178   (exit $ac_status); } &&
23179          { ac_try='test -z "$ac_c_werror_flag"
23180                          || test ! -s conftest.err'
23181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23182   (eval $ac_try) 2>&5
23183   ac_status=$?
23184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185   (exit $ac_status); }; } &&
23186          { ac_try='test -s conftest$ac_exeext'
23187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23188   (eval $ac_try) 2>&5
23189   ac_status=$?
23190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191   (exit $ac_status); }; }; then
23192   ac_cv_lib_s_afopen=yes
23193 else
23194   echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23196
23197 ac_cv_lib_s_afopen=no
23198 fi
23199 rm -f conftest.err conftest.$ac_objext \
23200       conftest$ac_exeext conftest.$ac_ext
23201 LIBS=$ac_check_lib_save_LIBS
23202 fi
23203 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23204 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23205 if test $ac_cv_lib_s_afopen = yes; then
23206
23207         AUTH_LIBS=-ls
23208
23209 cat >>confdefs.h <<\_ACEOF
23210 #define HAVE_AIX_SECURITY 1
23211 _ACEOF
23212
23213
23214 fi
23215
23216
23217 case "$target" in
23218 *-ibm-openedition)
23219         ac_cv_func_getopt=no
23220
23221 cat >>confdefs.h <<\_ACEOF
23222 #define BOTH_STRINGS_H 1
23223 _ACEOF
23224
23225         ;;
23226 esac
23227
23228 ol_link_modules=no
23229 WITH_MODULES_ENABLED=no
23230 if test $ol_enable_modules != no ; then
23231
23232 for ac_header in ltdl.h
23233 do
23234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23236   echo "$as_me:$LINENO: checking for $ac_header" >&5
23237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23239   echo $ECHO_N "(cached) $ECHO_C" >&6
23240 fi
23241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23243 else
23244   # Is the header compilable?
23245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23247 cat >conftest.$ac_ext <<_ACEOF
23248 /* confdefs.h.  */
23249 _ACEOF
23250 cat confdefs.h >>conftest.$ac_ext
23251 cat >>conftest.$ac_ext <<_ACEOF
23252 /* end confdefs.h.  */
23253 $ac_includes_default
23254 #include <$ac_header>
23255 _ACEOF
23256 rm -f conftest.$ac_objext
23257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23258   (eval $ac_compile) 2>conftest.er1
23259   ac_status=$?
23260   grep -v '^ *+' conftest.er1 >conftest.err
23261   rm -f conftest.er1
23262   cat conftest.err >&5
23263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264   (exit $ac_status); } &&
23265          { ac_try='test -z "$ac_c_werror_flag"
23266                          || test ! -s conftest.err'
23267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268   (eval $ac_try) 2>&5
23269   ac_status=$?
23270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271   (exit $ac_status); }; } &&
23272          { ac_try='test -s conftest.$ac_objext'
23273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23274   (eval $ac_try) 2>&5
23275   ac_status=$?
23276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277   (exit $ac_status); }; }; then
23278   ac_header_compiler=yes
23279 else
23280   echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23282
23283 ac_header_compiler=no
23284 fi
23285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23287 echo "${ECHO_T}$ac_header_compiler" >&6
23288
23289 # Is the header present?
23290 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23292 cat >conftest.$ac_ext <<_ACEOF
23293 /* confdefs.h.  */
23294 _ACEOF
23295 cat confdefs.h >>conftest.$ac_ext
23296 cat >>conftest.$ac_ext <<_ACEOF
23297 /* end confdefs.h.  */
23298 #include <$ac_header>
23299 _ACEOF
23300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23301   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23302   ac_status=$?
23303   grep -v '^ *+' conftest.er1 >conftest.err
23304   rm -f conftest.er1
23305   cat conftest.err >&5
23306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307   (exit $ac_status); } >/dev/null; then
23308   if test -s conftest.err; then
23309     ac_cpp_err=$ac_c_preproc_warn_flag
23310     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23311   else
23312     ac_cpp_err=
23313   fi
23314 else
23315   ac_cpp_err=yes
23316 fi
23317 if test -z "$ac_cpp_err"; then
23318   ac_header_preproc=yes
23319 else
23320   echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.$ac_ext >&5
23322
23323   ac_header_preproc=no
23324 fi
23325 rm -f conftest.err conftest.$ac_ext
23326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23327 echo "${ECHO_T}$ac_header_preproc" >&6
23328
23329 # So?  What about this header?
23330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23331   yes:no: )
23332     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23334     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23336     ac_header_preproc=yes
23337     ;;
23338   no:yes:* )
23339     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23341     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23342 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23343     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23345     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23346 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23349     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23351     (
23352       cat <<\_ASBOX
23353 ## ------------------------------------------ ##
23354 ## Report this to the AC_PACKAGE_NAME lists.  ##
23355 ## ------------------------------------------ ##
23356 _ASBOX
23357     ) |
23358       sed "s/^/$as_me: WARNING:     /" >&2
23359     ;;
23360 esac
23361 echo "$as_me:$LINENO: checking for $ac_header" >&5
23362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23364   echo $ECHO_N "(cached) $ECHO_C" >&6
23365 else
23366   eval "$as_ac_Header=\$ac_header_preproc"
23367 fi
23368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23370
23371 fi
23372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23373   cat >>confdefs.h <<_ACEOF
23374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23375 _ACEOF
23376
23377 fi
23378
23379 done
23380
23381
23382         if test $ac_cv_header_ltdl_h = no ; then
23383                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23384 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23385    { (exit 1); exit 1; }; }
23386         fi
23387
23388         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23389 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23390 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23391   echo $ECHO_N "(cached) $ECHO_C" >&6
23392 else
23393   ac_check_lib_save_LIBS=$LIBS
23394 LIBS="-lltdl  $LIBS"
23395 cat >conftest.$ac_ext <<_ACEOF
23396 /* confdefs.h.  */
23397 _ACEOF
23398 cat confdefs.h >>conftest.$ac_ext
23399 cat >>conftest.$ac_ext <<_ACEOF
23400 /* end confdefs.h.  */
23401
23402 /* Override any gcc2 internal prototype to avoid an error.  */
23403 #ifdef __cplusplus
23404 extern "C"
23405 #endif
23406 /* We use char because int might match the return type of a gcc2
23407    builtin and then its argument prototype would still apply.  */
23408 char lt_dlinit ();
23409 int
23410 main ()
23411 {
23412 lt_dlinit ();
23413   ;
23414   return 0;
23415 }
23416 _ACEOF
23417 rm -f conftest.$ac_objext conftest$ac_exeext
23418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23419   (eval $ac_link) 2>conftest.er1
23420   ac_status=$?
23421   grep -v '^ *+' conftest.er1 >conftest.err
23422   rm -f conftest.er1
23423   cat conftest.err >&5
23424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425   (exit $ac_status); } &&
23426          { ac_try='test -z "$ac_c_werror_flag"
23427                          || test ! -s conftest.err'
23428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23429   (eval $ac_try) 2>&5
23430   ac_status=$?
23431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432   (exit $ac_status); }; } &&
23433          { ac_try='test -s conftest$ac_exeext'
23434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23435   (eval $ac_try) 2>&5
23436   ac_status=$?
23437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438   (exit $ac_status); }; }; then
23439   ac_cv_lib_ltdl_lt_dlinit=yes
23440 else
23441   echo "$as_me: failed program was:" >&5
23442 sed 's/^/| /' conftest.$ac_ext >&5
23443
23444 ac_cv_lib_ltdl_lt_dlinit=no
23445 fi
23446 rm -f conftest.err conftest.$ac_objext \
23447       conftest$ac_exeext conftest.$ac_ext
23448 LIBS=$ac_check_lib_save_LIBS
23449 fi
23450 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23451 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23452 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23453
23454                 MODULES_LIBS=-lltdl
23455
23456 cat >>confdefs.h <<\_ACEOF
23457 #define HAVE_LIBLTDL 1
23458 _ACEOF
23459
23460
23461 fi
23462
23463
23464         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23465                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23466 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23467    { (exit 1); exit 1; }; }
23468         fi
23469         ol_link_modules=yes
23470         WITH_MODULES_ENABLED=yes
23471
23472 else
23473         for i in $Backends; do
23474                 eval "ol_tmp=\$ol_enable_$i"
23475                 if test $ol_tmp = mod ; then
23476                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23477 echo "$as_me: WARNING: building static $i backend" >&2;}
23478                         eval "ol_enable_$i=yes"
23479                 fi
23480         done
23481         for i in $Overlays; do
23482                 eval "ol_tmp=\$ol_enable_$i"
23483                 if test $ol_tmp = mod ; then
23484                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23485 echo "$as_me: WARNING: building static $i overlay" >&2;}
23486                         eval "ol_enable_$i=yes"
23487                 fi
23488         done
23489 fi
23490
23491 # test for EBCDIC
23492 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23493 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23494 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23495   echo $ECHO_N "(cached) $ECHO_C" >&6
23496 else
23497
23498         cat >conftest.$ac_ext <<_ACEOF
23499 /* confdefs.h.  */
23500 _ACEOF
23501 cat confdefs.h >>conftest.$ac_ext
23502 cat >>conftest.$ac_ext <<_ACEOF
23503 /* end confdefs.h.  */
23504
23505 #if !('M' == 0xd4)
23506 #include <__ASCII__/generate_error.h>
23507 #endif
23508
23509 _ACEOF
23510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23511   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23512   ac_status=$?
23513   grep -v '^ *+' conftest.er1 >conftest.err
23514   rm -f conftest.er1
23515   cat conftest.err >&5
23516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517   (exit $ac_status); } >/dev/null; then
23518   if test -s conftest.err; then
23519     ac_cpp_err=$ac_c_preproc_warn_flag
23520     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23521   else
23522     ac_cpp_err=
23523   fi
23524 else
23525   ac_cpp_err=yes
23526 fi
23527 if test -z "$ac_cpp_err"; then
23528   ol_cv_cpp_ebcdic=yes
23529 else
23530   echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23532
23533   ol_cv_cpp_ebcdic=no
23534 fi
23535 rm -f conftest.err conftest.$ac_ext
23536 fi
23537 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23538 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23539 if test $ol_cv_cpp_ebcdic = yes ; then
23540
23541 cat >>confdefs.h <<\_ACEOF
23542 #define HAVE_EBCDIC 1
23543 _ACEOF
23544
23545 fi
23546
23547 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23548 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23549 if test "${ol_cv_header_stdc+set}" = set; then
23550   echo $ECHO_N "(cached) $ECHO_C" >&6
23551 else
23552   cat >conftest.$ac_ext <<_ACEOF
23553 /* confdefs.h.  */
23554 _ACEOF
23555 cat confdefs.h >>conftest.$ac_ext
23556 cat >>conftest.$ac_ext <<_ACEOF
23557 /* end confdefs.h.  */
23558 #include <stdlib.h>
23559 #include <stdarg.h>
23560 #include <string.h>
23561 #include <float.h>
23562 _ACEOF
23563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23564   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23565   ac_status=$?
23566   grep -v '^ *+' conftest.er1 >conftest.err
23567   rm -f conftest.er1
23568   cat conftest.err >&5
23569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570   (exit $ac_status); } >/dev/null; then
23571   if test -s conftest.err; then
23572     ac_cpp_err=$ac_c_preproc_warn_flag
23573     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23574   else
23575     ac_cpp_err=
23576   fi
23577 else
23578   ac_cpp_err=yes
23579 fi
23580 if test -z "$ac_cpp_err"; then
23581   ol_cv_header_stdc=yes
23582 else
23583   echo "$as_me: failed program was:" >&5
23584 sed 's/^/| /' conftest.$ac_ext >&5
23585
23586   ol_cv_header_stdc=no
23587 fi
23588 rm -f conftest.err conftest.$ac_ext
23589
23590 if test $ol_cv_header_stdc = yes; then
23591   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23592 cat >conftest.$ac_ext <<_ACEOF
23593 /* confdefs.h.  */
23594 _ACEOF
23595 cat confdefs.h >>conftest.$ac_ext
23596 cat >>conftest.$ac_ext <<_ACEOF
23597 /* end confdefs.h.  */
23598 #include <string.h>
23599
23600 _ACEOF
23601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23602   $EGREP "memchr" >/dev/null 2>&1; then
23603   :
23604 else
23605   ol_cv_header_stdc=no
23606 fi
23607 rm -f conftest*
23608
23609 fi
23610
23611 if test $ol_cv_header_stdc = yes; then
23612   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23613 cat >conftest.$ac_ext <<_ACEOF
23614 /* confdefs.h.  */
23615 _ACEOF
23616 cat confdefs.h >>conftest.$ac_ext
23617 cat >>conftest.$ac_ext <<_ACEOF
23618 /* end confdefs.h.  */
23619 #include <stdlib.h>
23620
23621 _ACEOF
23622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23623   $EGREP "free" >/dev/null 2>&1; then
23624   :
23625 else
23626   ol_cv_header_stdc=no
23627 fi
23628 rm -f conftest*
23629
23630 fi
23631
23632 if test $ol_cv_header_stdc = yes; then
23633   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23634 if test "$cross_compiling" = yes; then
23635   :
23636 else
23637   cat >conftest.$ac_ext <<_ACEOF
23638 /* confdefs.h.  */
23639 _ACEOF
23640 cat confdefs.h >>conftest.$ac_ext
23641 cat >>conftest.$ac_ext <<_ACEOF
23642 /* end confdefs.h.  */
23643 #include <ctype.h>
23644 #ifndef HAVE_EBCDIC
23645 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23646 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23647 #else
23648 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23649                 || ('j' <= (c) && (c) <= 'r') \
23650                 || ('s' <= (c) && (c) <= 'z'))
23651 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
23652 #endif
23653 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23654 int main () { int i; for (i = 0; i < 256; i++)
23655 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23656 exit (0); }
23657
23658 _ACEOF
23659 rm -f conftest$ac_exeext
23660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23661   (eval $ac_link) 2>&5
23662   ac_status=$?
23663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23666   (eval $ac_try) 2>&5
23667   ac_status=$?
23668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669   (exit $ac_status); }; }; then
23670   :
23671 else
23672   echo "$as_me: program exited with status $ac_status" >&5
23673 echo "$as_me: failed program was:" >&5
23674 sed 's/^/| /' conftest.$ac_ext >&5
23675
23676 ( exit $ac_status )
23677 ol_cv_header_stdc=no
23678 fi
23679 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23680 fi
23681 fi
23682 fi
23683 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23684 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23685 if test $ol_cv_header_stdc = yes; then
23686   cat >>confdefs.h <<\_ACEOF
23687 #define STDC_HEADERS 1
23688 _ACEOF
23689
23690 fi
23691 ac_cv_header_stdc=disable
23692
23693
23694 if test $ol_cv_header_stdc != yes; then
23695         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23696 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23697 fi
23698
23699
23700
23701
23702
23703
23704 ac_header_dirent=no
23705 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23706   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23707 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23708 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23710   echo $ECHO_N "(cached) $ECHO_C" >&6
23711 else
23712   cat >conftest.$ac_ext <<_ACEOF
23713 /* confdefs.h.  */
23714 _ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h.  */
23718 #include <sys/types.h>
23719 #include <$ac_hdr>
23720
23721 int
23722 main ()
23723 {
23724 if ((DIR *) 0)
23725 return 0;
23726   ;
23727   return 0;
23728 }
23729 _ACEOF
23730 rm -f conftest.$ac_objext
23731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23732   (eval $ac_compile) 2>conftest.er1
23733   ac_status=$?
23734   grep -v '^ *+' conftest.er1 >conftest.err
23735   rm -f conftest.er1
23736   cat conftest.err >&5
23737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738   (exit $ac_status); } &&
23739          { ac_try='test -z "$ac_c_werror_flag"
23740                          || test ! -s conftest.err'
23741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23742   (eval $ac_try) 2>&5
23743   ac_status=$?
23744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745   (exit $ac_status); }; } &&
23746          { ac_try='test -s conftest.$ac_objext'
23747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23748   (eval $ac_try) 2>&5
23749   ac_status=$?
23750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751   (exit $ac_status); }; }; then
23752   eval "$as_ac_Header=yes"
23753 else
23754   echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23756
23757 eval "$as_ac_Header=no"
23758 fi
23759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23760 fi
23761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23764   cat >>confdefs.h <<_ACEOF
23765 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23766 _ACEOF
23767
23768 ac_header_dirent=$ac_hdr; break
23769 fi
23770
23771 done
23772 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23773 if test $ac_header_dirent = dirent.h; then
23774   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23775 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23776 if test "${ac_cv_search_opendir+set}" = set; then
23777   echo $ECHO_N "(cached) $ECHO_C" >&6
23778 else
23779   ac_func_search_save_LIBS=$LIBS
23780 ac_cv_search_opendir=no
23781 cat >conftest.$ac_ext <<_ACEOF
23782 /* confdefs.h.  */
23783 _ACEOF
23784 cat confdefs.h >>conftest.$ac_ext
23785 cat >>conftest.$ac_ext <<_ACEOF
23786 /* end confdefs.h.  */
23787
23788 /* Override any gcc2 internal prototype to avoid an error.  */
23789 #ifdef __cplusplus
23790 extern "C"
23791 #endif
23792 /* We use char because int might match the return type of a gcc2
23793    builtin and then its argument prototype would still apply.  */
23794 char opendir ();
23795 int
23796 main ()
23797 {
23798 opendir ();
23799   ;
23800   return 0;
23801 }
23802 _ACEOF
23803 rm -f conftest.$ac_objext conftest$ac_exeext
23804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23805   (eval $ac_link) 2>conftest.er1
23806   ac_status=$?
23807   grep -v '^ *+' conftest.er1 >conftest.err
23808   rm -f conftest.er1
23809   cat conftest.err >&5
23810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811   (exit $ac_status); } &&
23812          { ac_try='test -z "$ac_c_werror_flag"
23813                          || test ! -s conftest.err'
23814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23815   (eval $ac_try) 2>&5
23816   ac_status=$?
23817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818   (exit $ac_status); }; } &&
23819          { ac_try='test -s conftest$ac_exeext'
23820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23821   (eval $ac_try) 2>&5
23822   ac_status=$?
23823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824   (exit $ac_status); }; }; then
23825   ac_cv_search_opendir="none required"
23826 else
23827   echo "$as_me: failed program was:" >&5
23828 sed 's/^/| /' conftest.$ac_ext >&5
23829
23830 fi
23831 rm -f conftest.err conftest.$ac_objext \
23832       conftest$ac_exeext conftest.$ac_ext
23833 if test "$ac_cv_search_opendir" = no; then
23834   for ac_lib in dir; do
23835     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23836     cat >conftest.$ac_ext <<_ACEOF
23837 /* confdefs.h.  */
23838 _ACEOF
23839 cat confdefs.h >>conftest.$ac_ext
23840 cat >>conftest.$ac_ext <<_ACEOF
23841 /* end confdefs.h.  */
23842
23843 /* Override any gcc2 internal prototype to avoid an error.  */
23844 #ifdef __cplusplus
23845 extern "C"
23846 #endif
23847 /* We use char because int might match the return type of a gcc2
23848    builtin and then its argument prototype would still apply.  */
23849 char opendir ();
23850 int
23851 main ()
23852 {
23853 opendir ();
23854   ;
23855   return 0;
23856 }
23857 _ACEOF
23858 rm -f conftest.$ac_objext conftest$ac_exeext
23859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23860   (eval $ac_link) 2>conftest.er1
23861   ac_status=$?
23862   grep -v '^ *+' conftest.er1 >conftest.err
23863   rm -f conftest.er1
23864   cat conftest.err >&5
23865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866   (exit $ac_status); } &&
23867          { ac_try='test -z "$ac_c_werror_flag"
23868                          || test ! -s conftest.err'
23869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23870   (eval $ac_try) 2>&5
23871   ac_status=$?
23872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873   (exit $ac_status); }; } &&
23874          { ac_try='test -s conftest$ac_exeext'
23875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23876   (eval $ac_try) 2>&5
23877   ac_status=$?
23878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879   (exit $ac_status); }; }; then
23880   ac_cv_search_opendir="-l$ac_lib"
23881 break
23882 else
23883   echo "$as_me: failed program was:" >&5
23884 sed 's/^/| /' conftest.$ac_ext >&5
23885
23886 fi
23887 rm -f conftest.err conftest.$ac_objext \
23888       conftest$ac_exeext conftest.$ac_ext
23889   done
23890 fi
23891 LIBS=$ac_func_search_save_LIBS
23892 fi
23893 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23894 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23895 if test "$ac_cv_search_opendir" != no; then
23896   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23897
23898 fi
23899
23900 else
23901   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23902 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23903 if test "${ac_cv_search_opendir+set}" = set; then
23904   echo $ECHO_N "(cached) $ECHO_C" >&6
23905 else
23906   ac_func_search_save_LIBS=$LIBS
23907 ac_cv_search_opendir=no
23908 cat >conftest.$ac_ext <<_ACEOF
23909 /* confdefs.h.  */
23910 _ACEOF
23911 cat confdefs.h >>conftest.$ac_ext
23912 cat >>conftest.$ac_ext <<_ACEOF
23913 /* end confdefs.h.  */
23914
23915 /* Override any gcc2 internal prototype to avoid an error.  */
23916 #ifdef __cplusplus
23917 extern "C"
23918 #endif
23919 /* We use char because int might match the return type of a gcc2
23920    builtin and then its argument prototype would still apply.  */
23921 char opendir ();
23922 int
23923 main ()
23924 {
23925 opendir ();
23926   ;
23927   return 0;
23928 }
23929 _ACEOF
23930 rm -f conftest.$ac_objext conftest$ac_exeext
23931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23932   (eval $ac_link) 2>conftest.er1
23933   ac_status=$?
23934   grep -v '^ *+' conftest.er1 >conftest.err
23935   rm -f conftest.er1
23936   cat conftest.err >&5
23937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938   (exit $ac_status); } &&
23939          { ac_try='test -z "$ac_c_werror_flag"
23940                          || test ! -s conftest.err'
23941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23942   (eval $ac_try) 2>&5
23943   ac_status=$?
23944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945   (exit $ac_status); }; } &&
23946          { ac_try='test -s conftest$ac_exeext'
23947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23948   (eval $ac_try) 2>&5
23949   ac_status=$?
23950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951   (exit $ac_status); }; }; then
23952   ac_cv_search_opendir="none required"
23953 else
23954   echo "$as_me: failed program was:" >&5
23955 sed 's/^/| /' conftest.$ac_ext >&5
23956
23957 fi
23958 rm -f conftest.err conftest.$ac_objext \
23959       conftest$ac_exeext conftest.$ac_ext
23960 if test "$ac_cv_search_opendir" = no; then
23961   for ac_lib in x; do
23962     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23963     cat >conftest.$ac_ext <<_ACEOF
23964 /* confdefs.h.  */
23965 _ACEOF
23966 cat confdefs.h >>conftest.$ac_ext
23967 cat >>conftest.$ac_ext <<_ACEOF
23968 /* end confdefs.h.  */
23969
23970 /* Override any gcc2 internal prototype to avoid an error.  */
23971 #ifdef __cplusplus
23972 extern "C"
23973 #endif
23974 /* We use char because int might match the return type of a gcc2
23975    builtin and then its argument prototype would still apply.  */
23976 char opendir ();
23977 int
23978 main ()
23979 {
23980 opendir ();
23981   ;
23982   return 0;
23983 }
23984 _ACEOF
23985 rm -f conftest.$ac_objext conftest$ac_exeext
23986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23987   (eval $ac_link) 2>conftest.er1
23988   ac_status=$?
23989   grep -v '^ *+' conftest.er1 >conftest.err
23990   rm -f conftest.er1
23991   cat conftest.err >&5
23992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993   (exit $ac_status); } &&
23994          { ac_try='test -z "$ac_c_werror_flag"
23995                          || test ! -s conftest.err'
23996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23997   (eval $ac_try) 2>&5
23998   ac_status=$?
23999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000   (exit $ac_status); }; } &&
24001          { ac_try='test -s conftest$ac_exeext'
24002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24003   (eval $ac_try) 2>&5
24004   ac_status=$?
24005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006   (exit $ac_status); }; }; then
24007   ac_cv_search_opendir="-l$ac_lib"
24008 break
24009 else
24010   echo "$as_me: failed program was:" >&5
24011 sed 's/^/| /' conftest.$ac_ext >&5
24012
24013 fi
24014 rm -f conftest.err conftest.$ac_objext \
24015       conftest$ac_exeext conftest.$ac_ext
24016   done
24017 fi
24018 LIBS=$ac_func_search_save_LIBS
24019 fi
24020 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24021 echo "${ECHO_T}$ac_cv_search_opendir" >&6
24022 if test "$ac_cv_search_opendir" != no; then
24023   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
24024
24025 fi
24026
24027 fi
24028
24029 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
24030 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
24031 if test "${ac_cv_header_sys_wait_h+set}" = set; then
24032   echo $ECHO_N "(cached) $ECHO_C" >&6
24033 else
24034   cat >conftest.$ac_ext <<_ACEOF
24035 /* confdefs.h.  */
24036 _ACEOF
24037 cat confdefs.h >>conftest.$ac_ext
24038 cat >>conftest.$ac_ext <<_ACEOF
24039 /* end confdefs.h.  */
24040 #include <sys/types.h>
24041 #include <sys/wait.h>
24042 #ifndef WEXITSTATUS
24043 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
24044 #endif
24045 #ifndef WIFEXITED
24046 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
24047 #endif
24048
24049 int
24050 main ()
24051 {
24052   int s;
24053   wait (&s);
24054   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
24055   ;
24056   return 0;
24057 }
24058 _ACEOF
24059 rm -f conftest.$ac_objext
24060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24061   (eval $ac_compile) 2>conftest.er1
24062   ac_status=$?
24063   grep -v '^ *+' conftest.er1 >conftest.err
24064   rm -f conftest.er1
24065   cat conftest.err >&5
24066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067   (exit $ac_status); } &&
24068          { ac_try='test -z "$ac_c_werror_flag"
24069                          || test ! -s conftest.err'
24070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24071   (eval $ac_try) 2>&5
24072   ac_status=$?
24073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074   (exit $ac_status); }; } &&
24075          { ac_try='test -s conftest.$ac_objext'
24076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24077   (eval $ac_try) 2>&5
24078   ac_status=$?
24079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080   (exit $ac_status); }; }; then
24081   ac_cv_header_sys_wait_h=yes
24082 else
24083   echo "$as_me: failed program was:" >&5
24084 sed 's/^/| /' conftest.$ac_ext >&5
24085
24086 ac_cv_header_sys_wait_h=no
24087 fi
24088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24089 fi
24090 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
24091 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
24092 if test $ac_cv_header_sys_wait_h = yes; then
24093
24094 cat >>confdefs.h <<\_ACEOF
24095 #define HAVE_SYS_WAIT_H 1
24096 _ACEOF
24097
24098 fi
24099
24100 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
24101 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
24102 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
24103   echo $ECHO_N "(cached) $ECHO_C" >&6
24104 else
24105   cat >conftest.$ac_ext <<_ACEOF
24106 /* confdefs.h.  */
24107 _ACEOF
24108 cat confdefs.h >>conftest.$ac_ext
24109 cat >>conftest.$ac_ext <<_ACEOF
24110 /* end confdefs.h.  */
24111 #include <sys/types.h>
24112 #include <termios.h>
24113 #ifdef TIOCGWINSZ
24114   yes
24115 #endif
24116
24117 _ACEOF
24118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24119   $EGREP "yes" >/dev/null 2>&1; then
24120   ac_cv_sys_tiocgwinsz_in_termios_h=yes
24121 else
24122   ac_cv_sys_tiocgwinsz_in_termios_h=no
24123 fi
24124 rm -f conftest*
24125
24126 fi
24127 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
24128 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
24129
24130 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
24131   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
24132 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
24133 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
24134   echo $ECHO_N "(cached) $ECHO_C" >&6
24135 else
24136   cat >conftest.$ac_ext <<_ACEOF
24137 /* confdefs.h.  */
24138 _ACEOF
24139 cat confdefs.h >>conftest.$ac_ext
24140 cat >>conftest.$ac_ext <<_ACEOF
24141 /* end confdefs.h.  */
24142 #include <sys/types.h>
24143 #include <sys/ioctl.h>
24144 #ifdef TIOCGWINSZ
24145   yes
24146 #endif
24147
24148 _ACEOF
24149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24150   $EGREP "yes" >/dev/null 2>&1; then
24151   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
24152 else
24153   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
24154 fi
24155 rm -f conftest*
24156
24157 fi
24158 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24159 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24160
24161   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24162
24163 cat >>confdefs.h <<\_ACEOF
24164 #define GWINSZ_IN_SYS_IOCTL 1
24165 _ACEOF
24166
24167   fi
24168 fi
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
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217
24218 for ac_header in \
24219         arpa/inet.h             \
24220         arpa/nameser.h          \
24221         assert.h                \
24222         bits/types.h            \
24223         conio.h                 \
24224         crypt.h                 \
24225         direct.h                \
24226         errno.h                 \
24227         fcntl.h                 \
24228         filio.h                 \
24229         getopt.h                \
24230         grp.h                   \
24231         io.h                    \
24232         libutil.h               \
24233         limits.h                \
24234         locale.h                \
24235         netinet/tcp.h           \
24236         malloc.h                \
24237         memory.h                \
24238         psap.h                  \
24239         pwd.h                   \
24240         process.h               \
24241         sgtty.h                 \
24242         shadow.h                \
24243         stddef.h                \
24244         string.h                \
24245         strings.h               \
24246         sysexits.h              \
24247         sys/file.h              \
24248         sys/filio.h             \
24249         sys/errno.h             \
24250         sys/ioctl.h             \
24251         sys/param.h             \
24252         sys/resource.h          \
24253         sys/select.h            \
24254         sys/socket.h            \
24255         sys/stat.h              \
24256         sys/syslog.h            \
24257         sys/time.h              \
24258         sys/types.h             \
24259         sys/uio.h               \
24260         syslog.h                \
24261         termios.h               \
24262         unistd.h                \
24263         utime.h                 \
24264         winsock.h               \
24265         winsock2.h              \
24266
24267 do
24268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24270   echo "$as_me:$LINENO: checking for $ac_header" >&5
24271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24273   echo $ECHO_N "(cached) $ECHO_C" >&6
24274 fi
24275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24277 else
24278   # Is the header compilable?
24279 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24281 cat >conftest.$ac_ext <<_ACEOF
24282 /* confdefs.h.  */
24283 _ACEOF
24284 cat confdefs.h >>conftest.$ac_ext
24285 cat >>conftest.$ac_ext <<_ACEOF
24286 /* end confdefs.h.  */
24287 $ac_includes_default
24288 #include <$ac_header>
24289 _ACEOF
24290 rm -f conftest.$ac_objext
24291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24292   (eval $ac_compile) 2>conftest.er1
24293   ac_status=$?
24294   grep -v '^ *+' conftest.er1 >conftest.err
24295   rm -f conftest.er1
24296   cat conftest.err >&5
24297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298   (exit $ac_status); } &&
24299          { ac_try='test -z "$ac_c_werror_flag"
24300                          || test ! -s conftest.err'
24301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24302   (eval $ac_try) 2>&5
24303   ac_status=$?
24304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305   (exit $ac_status); }; } &&
24306          { ac_try='test -s conftest.$ac_objext'
24307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24308   (eval $ac_try) 2>&5
24309   ac_status=$?
24310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311   (exit $ac_status); }; }; then
24312   ac_header_compiler=yes
24313 else
24314   echo "$as_me: failed program was:" >&5
24315 sed 's/^/| /' conftest.$ac_ext >&5
24316
24317 ac_header_compiler=no
24318 fi
24319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24321 echo "${ECHO_T}$ac_header_compiler" >&6
24322
24323 # Is the header present?
24324 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24326 cat >conftest.$ac_ext <<_ACEOF
24327 /* confdefs.h.  */
24328 _ACEOF
24329 cat confdefs.h >>conftest.$ac_ext
24330 cat >>conftest.$ac_ext <<_ACEOF
24331 /* end confdefs.h.  */
24332 #include <$ac_header>
24333 _ACEOF
24334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24335   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24336   ac_status=$?
24337   grep -v '^ *+' conftest.er1 >conftest.err
24338   rm -f conftest.er1
24339   cat conftest.err >&5
24340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341   (exit $ac_status); } >/dev/null; then
24342   if test -s conftest.err; then
24343     ac_cpp_err=$ac_c_preproc_warn_flag
24344     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24345   else
24346     ac_cpp_err=
24347   fi
24348 else
24349   ac_cpp_err=yes
24350 fi
24351 if test -z "$ac_cpp_err"; then
24352   ac_header_preproc=yes
24353 else
24354   echo "$as_me: failed program was:" >&5
24355 sed 's/^/| /' conftest.$ac_ext >&5
24356
24357   ac_header_preproc=no
24358 fi
24359 rm -f conftest.err conftest.$ac_ext
24360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24361 echo "${ECHO_T}$ac_header_preproc" >&6
24362
24363 # So?  What about this header?
24364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24365   yes:no: )
24366     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24370     ac_header_preproc=yes
24371     ;;
24372   no:yes:* )
24373     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24375     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24376 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24377     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24379     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24380 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24381     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24383     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24385     (
24386       cat <<\_ASBOX
24387 ## ------------------------------------------ ##
24388 ## Report this to the AC_PACKAGE_NAME lists.  ##
24389 ## ------------------------------------------ ##
24390 _ASBOX
24391     ) |
24392       sed "s/^/$as_me: WARNING:     /" >&2
24393     ;;
24394 esac
24395 echo "$as_me:$LINENO: checking for $ac_header" >&5
24396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24398   echo $ECHO_N "(cached) $ECHO_C" >&6
24399 else
24400   eval "$as_ac_Header=\$ac_header_preproc"
24401 fi
24402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24404
24405 fi
24406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24407   cat >>confdefs.h <<_ACEOF
24408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24409 _ACEOF
24410
24411 fi
24412
24413 done
24414
24415
24416
24417 for ac_header in resolv.h
24418 do
24419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24420 echo "$as_me:$LINENO: checking for $ac_header" >&5
24421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24423   echo $ECHO_N "(cached) $ECHO_C" >&6
24424 else
24425   cat >conftest.$ac_ext <<_ACEOF
24426 /* confdefs.h.  */
24427 _ACEOF
24428 cat confdefs.h >>conftest.$ac_ext
24429 cat >>conftest.$ac_ext <<_ACEOF
24430 /* end confdefs.h.  */
24431 $ac_includes_default
24432 #include <netinet/in.h>
24433
24434
24435 #include <$ac_header>
24436 _ACEOF
24437 rm -f conftest.$ac_objext
24438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24439   (eval $ac_compile) 2>conftest.er1
24440   ac_status=$?
24441   grep -v '^ *+' conftest.er1 >conftest.err
24442   rm -f conftest.er1
24443   cat conftest.err >&5
24444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445   (exit $ac_status); } &&
24446          { ac_try='test -z "$ac_c_werror_flag"
24447                          || test ! -s conftest.err'
24448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24449   (eval $ac_try) 2>&5
24450   ac_status=$?
24451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452   (exit $ac_status); }; } &&
24453          { ac_try='test -s conftest.$ac_objext'
24454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24455   (eval $ac_try) 2>&5
24456   ac_status=$?
24457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24458   (exit $ac_status); }; }; then
24459   eval "$as_ac_Header=yes"
24460 else
24461   echo "$as_me: failed program was:" >&5
24462 sed 's/^/| /' conftest.$ac_ext >&5
24463
24464 eval "$as_ac_Header=no"
24465 fi
24466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24467 fi
24468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24471   cat >>confdefs.h <<_ACEOF
24472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24473 _ACEOF
24474
24475 fi
24476
24477 done
24478
24479
24480
24481 for ac_header in sys/ucred.h
24482 do
24483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24484 echo "$as_me:$LINENO: checking for $ac_header" >&5
24485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24487   echo $ECHO_N "(cached) $ECHO_C" >&6
24488 else
24489   cat >conftest.$ac_ext <<_ACEOF
24490 /* confdefs.h.  */
24491 _ACEOF
24492 cat confdefs.h >>conftest.$ac_ext
24493 cat >>conftest.$ac_ext <<_ACEOF
24494 /* end confdefs.h.  */
24495 $ac_includes_default
24496 #ifdef HAVE_SYS_PARAM_H
24497 #include <sys/param.h>
24498 #endif
24499
24500
24501 #include <$ac_header>
24502 _ACEOF
24503 rm -f conftest.$ac_objext
24504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24505   (eval $ac_compile) 2>conftest.er1
24506   ac_status=$?
24507   grep -v '^ *+' conftest.er1 >conftest.err
24508   rm -f conftest.er1
24509   cat conftest.err >&5
24510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511   (exit $ac_status); } &&
24512          { ac_try='test -z "$ac_c_werror_flag"
24513                          || test ! -s conftest.err'
24514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24515   (eval $ac_try) 2>&5
24516   ac_status=$?
24517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518   (exit $ac_status); }; } &&
24519          { ac_try='test -s conftest.$ac_objext'
24520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24521   (eval $ac_try) 2>&5
24522   ac_status=$?
24523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524   (exit $ac_status); }; }; then
24525   eval "$as_ac_Header=yes"
24526 else
24527   echo "$as_me: failed program was:" >&5
24528 sed 's/^/| /' conftest.$ac_ext >&5
24529
24530 eval "$as_ac_Header=no"
24531 fi
24532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24533 fi
24534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24537   cat >>confdefs.h <<_ACEOF
24538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24539 _ACEOF
24540
24541 fi
24542
24543 done
24544
24545
24546
24547
24548
24549 for ac_func in sigaction sigset
24550 do
24551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24552 echo "$as_me:$LINENO: checking for $ac_func" >&5
24553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24554 if eval "test \"\${$as_ac_var+set}\" = set"; then
24555   echo $ECHO_N "(cached) $ECHO_C" >&6
24556 else
24557   cat >conftest.$ac_ext <<_ACEOF
24558 /* confdefs.h.  */
24559 _ACEOF
24560 cat confdefs.h >>conftest.$ac_ext
24561 cat >>conftest.$ac_ext <<_ACEOF
24562 /* end confdefs.h.  */
24563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24564    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24565 #define $ac_func innocuous_$ac_func
24566
24567 /* System header to define __stub macros and hopefully few prototypes,
24568     which can conflict with char $ac_func (); below.
24569     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24570     <limits.h> exists even on freestanding compilers.  */
24571
24572 #ifdef __STDC__
24573 # include <limits.h>
24574 #else
24575 # include <assert.h>
24576 #endif
24577
24578 #undef $ac_func
24579
24580 /* Override any gcc2 internal prototype to avoid an error.  */
24581 #ifdef __cplusplus
24582 extern "C"
24583 {
24584 #endif
24585 /* We use char because int might match the return type of a gcc2
24586    builtin and then its argument prototype would still apply.  */
24587 char $ac_func ();
24588 /* The GNU C library defines this for functions which it implements
24589     to always fail with ENOSYS.  Some functions are actually named
24590     something starting with __ and the normal name is an alias.  */
24591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24592 choke me
24593 #else
24594 char (*f) () = $ac_func;
24595 #endif
24596 #ifdef __cplusplus
24597 }
24598 #endif
24599
24600 int
24601 main ()
24602 {
24603 return f != $ac_func;
24604   ;
24605   return 0;
24606 }
24607 _ACEOF
24608 rm -f conftest.$ac_objext conftest$ac_exeext
24609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24610   (eval $ac_link) 2>conftest.er1
24611   ac_status=$?
24612   grep -v '^ *+' conftest.er1 >conftest.err
24613   rm -f conftest.er1
24614   cat conftest.err >&5
24615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616   (exit $ac_status); } &&
24617          { ac_try='test -z "$ac_c_werror_flag"
24618                          || test ! -s conftest.err'
24619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24620   (eval $ac_try) 2>&5
24621   ac_status=$?
24622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24623   (exit $ac_status); }; } &&
24624          { ac_try='test -s conftest$ac_exeext'
24625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24626   (eval $ac_try) 2>&5
24627   ac_status=$?
24628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629   (exit $ac_status); }; }; then
24630   eval "$as_ac_var=yes"
24631 else
24632   echo "$as_me: failed program was:" >&5
24633 sed 's/^/| /' conftest.$ac_ext >&5
24634
24635 eval "$as_ac_var=no"
24636 fi
24637 rm -f conftest.err conftest.$ac_objext \
24638       conftest$ac_exeext conftest.$ac_ext
24639 fi
24640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24641 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24642 if test `eval echo '${'$as_ac_var'}'` = yes; then
24643   cat >>confdefs.h <<_ACEOF
24644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24645 _ACEOF
24646
24647 fi
24648 done
24649
24650
24651 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24652
24653 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24654 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24655 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24656   echo $ECHO_N "(cached) $ECHO_C" >&6
24657 else
24658   ac_check_lib_save_LIBS=$LIBS
24659 LIBS="-lV3  $LIBS"
24660 cat >conftest.$ac_ext <<_ACEOF
24661 /* confdefs.h.  */
24662 _ACEOF
24663 cat confdefs.h >>conftest.$ac_ext
24664 cat >>conftest.$ac_ext <<_ACEOF
24665 /* end confdefs.h.  */
24666
24667 /* Override any gcc2 internal prototype to avoid an error.  */
24668 #ifdef __cplusplus
24669 extern "C"
24670 #endif
24671 /* We use char because int might match the return type of a gcc2
24672    builtin and then its argument prototype would still apply.  */
24673 char sigset ();
24674 int
24675 main ()
24676 {
24677 sigset ();
24678   ;
24679   return 0;
24680 }
24681 _ACEOF
24682 rm -f conftest.$ac_objext conftest$ac_exeext
24683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24684   (eval $ac_link) 2>conftest.er1
24685   ac_status=$?
24686   grep -v '^ *+' conftest.er1 >conftest.err
24687   rm -f conftest.er1
24688   cat conftest.err >&5
24689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690   (exit $ac_status); } &&
24691          { ac_try='test -z "$ac_c_werror_flag"
24692                          || test ! -s conftest.err'
24693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24694   (eval $ac_try) 2>&5
24695   ac_status=$?
24696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24697   (exit $ac_status); }; } &&
24698          { ac_try='test -s conftest$ac_exeext'
24699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24700   (eval $ac_try) 2>&5
24701   ac_status=$?
24702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24703   (exit $ac_status); }; }; then
24704   ac_cv_lib_V3_sigset=yes
24705 else
24706   echo "$as_me: failed program was:" >&5
24707 sed 's/^/| /' conftest.$ac_ext >&5
24708
24709 ac_cv_lib_V3_sigset=no
24710 fi
24711 rm -f conftest.err conftest.$ac_objext \
24712       conftest$ac_exeext conftest.$ac_ext
24713 LIBS=$ac_check_lib_save_LIBS
24714 fi
24715 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24716 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24717 if test $ac_cv_lib_V3_sigset = yes; then
24718   cat >>confdefs.h <<_ACEOF
24719 #define HAVE_LIBV3 1
24720 _ACEOF
24721
24722   LIBS="-lV3 $LIBS"
24723
24724 fi
24725
24726 fi
24727
24728 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24729 echo "$as_me:$LINENO: checking for winsock" >&5
24730 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24731 if test "${ol_cv_winsock+set}" = set; then
24732   echo $ECHO_N "(cached) $ECHO_C" >&6
24733 else
24734   save_LIBS="$LIBS"
24735 for curlib in ws2_32 wsock32; do
24736         LIBS="$LIBS -l$curlib"
24737         cat >conftest.$ac_ext <<_ACEOF
24738 /* confdefs.h.  */
24739 _ACEOF
24740 cat confdefs.h >>conftest.$ac_ext
24741 cat >>conftest.$ac_ext <<_ACEOF
24742 /* end confdefs.h.  */
24743 #include <winsock.h>
24744
24745 int
24746 main ()
24747 {
24748
24749                         socket(0,0,0);
24750                         select(0,NULL,NULL,NULL,NULL);
24751                         closesocket(0);
24752                         gethostname(NULL,0);
24753
24754   ;
24755   return 0;
24756 }
24757 _ACEOF
24758 rm -f conftest.$ac_objext conftest$ac_exeext
24759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24760   (eval $ac_link) 2>conftest.er1
24761   ac_status=$?
24762   grep -v '^ *+' conftest.er1 >conftest.err
24763   rm -f conftest.er1
24764   cat conftest.err >&5
24765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766   (exit $ac_status); } &&
24767          { ac_try='test -z "$ac_c_werror_flag"
24768                          || test ! -s conftest.err'
24769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24770   (eval $ac_try) 2>&5
24771   ac_status=$?
24772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24773   (exit $ac_status); }; } &&
24774          { ac_try='test -s conftest$ac_exeext'
24775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24776   (eval $ac_try) 2>&5
24777   ac_status=$?
24778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779   (exit $ac_status); }; }; then
24780   ol_cv_winsock=yes
24781 else
24782   echo "$as_me: failed program was:" >&5
24783 sed 's/^/| /' conftest.$ac_ext >&5
24784
24785 ol_cv_winsock=no
24786 fi
24787 rm -f conftest.err conftest.$ac_objext \
24788       conftest$ac_exeext conftest.$ac_ext
24789
24790         if test $ol_cv_winsock = yes; then
24791
24792 cat >>confdefs.h <<\_ACEOF
24793 #define HAVE_WINSOCK 1
24794 _ACEOF
24795
24796                 ac_cv_func_socket=yes
24797                 ac_cv_func_select=yes
24798                 ac_cv_func_closesocket=yes
24799                 ac_cv_func_gethostname=yes
24800                 if test $curlib = ws2_32; then
24801                         ol_cv_winsock=winsock2
24802
24803 cat >>confdefs.h <<\_ACEOF
24804 #define HAVE_WINSOCK2 1
24805 _ACEOF
24806
24807                 fi
24808                 break
24809         fi
24810         LIBS="$save_LIBS"
24811 done
24812 fi
24813 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24814 echo "${ECHO_T}$ol_cv_winsock" >&6
24815 fi
24816
24817
24818 echo "$as_me:$LINENO: checking for socket" >&5
24819 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24820 if test "${ac_cv_func_socket+set}" = set; then
24821   echo $ECHO_N "(cached) $ECHO_C" >&6
24822 else
24823   cat >conftest.$ac_ext <<_ACEOF
24824 /* confdefs.h.  */
24825 _ACEOF
24826 cat confdefs.h >>conftest.$ac_ext
24827 cat >>conftest.$ac_ext <<_ACEOF
24828 /* end confdefs.h.  */
24829 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24831 #define socket innocuous_socket
24832
24833 /* System header to define __stub macros and hopefully few prototypes,
24834     which can conflict with char socket (); below.
24835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24836     <limits.h> exists even on freestanding compilers.  */
24837
24838 #ifdef __STDC__
24839 # include <limits.h>
24840 #else
24841 # include <assert.h>
24842 #endif
24843
24844 #undef socket
24845
24846 /* Override any gcc2 internal prototype to avoid an error.  */
24847 #ifdef __cplusplus
24848 extern "C"
24849 {
24850 #endif
24851 /* We use char because int might match the return type of a gcc2
24852    builtin and then its argument prototype would still apply.  */
24853 char socket ();
24854 /* The GNU C library defines this for functions which it implements
24855     to always fail with ENOSYS.  Some functions are actually named
24856     something starting with __ and the normal name is an alias.  */
24857 #if defined (__stub_socket) || defined (__stub___socket)
24858 choke me
24859 #else
24860 char (*f) () = socket;
24861 #endif
24862 #ifdef __cplusplus
24863 }
24864 #endif
24865
24866 int
24867 main ()
24868 {
24869 return f != socket;
24870   ;
24871   return 0;
24872 }
24873 _ACEOF
24874 rm -f conftest.$ac_objext conftest$ac_exeext
24875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24876   (eval $ac_link) 2>conftest.er1
24877   ac_status=$?
24878   grep -v '^ *+' conftest.er1 >conftest.err
24879   rm -f conftest.er1
24880   cat conftest.err >&5
24881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882   (exit $ac_status); } &&
24883          { ac_try='test -z "$ac_c_werror_flag"
24884                          || test ! -s conftest.err'
24885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24886   (eval $ac_try) 2>&5
24887   ac_status=$?
24888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889   (exit $ac_status); }; } &&
24890          { ac_try='test -s conftest$ac_exeext'
24891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24892   (eval $ac_try) 2>&5
24893   ac_status=$?
24894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895   (exit $ac_status); }; }; then
24896   ac_cv_func_socket=yes
24897 else
24898   echo "$as_me: failed program was:" >&5
24899 sed 's/^/| /' conftest.$ac_ext >&5
24900
24901 ac_cv_func_socket=no
24902 fi
24903 rm -f conftest.err conftest.$ac_objext \
24904       conftest$ac_exeext conftest.$ac_ext
24905 fi
24906 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24907 echo "${ECHO_T}$ac_cv_func_socket" >&6
24908 if test $ac_cv_func_socket = yes; then
24909   :
24910 else
24911
24912
24913 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24914 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24915 if test "${ac_cv_lib_socket_main+set}" = set; then
24916   echo $ECHO_N "(cached) $ECHO_C" >&6
24917 else
24918   ac_check_lib_save_LIBS=$LIBS
24919 LIBS="-lsocket  $LIBS"
24920 cat >conftest.$ac_ext <<_ACEOF
24921 /* confdefs.h.  */
24922 _ACEOF
24923 cat confdefs.h >>conftest.$ac_ext
24924 cat >>conftest.$ac_ext <<_ACEOF
24925 /* end confdefs.h.  */
24926
24927
24928 int
24929 main ()
24930 {
24931 main ();
24932   ;
24933   return 0;
24934 }
24935 _ACEOF
24936 rm -f conftest.$ac_objext conftest$ac_exeext
24937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24938   (eval $ac_link) 2>conftest.er1
24939   ac_status=$?
24940   grep -v '^ *+' conftest.er1 >conftest.err
24941   rm -f conftest.er1
24942   cat conftest.err >&5
24943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944   (exit $ac_status); } &&
24945          { ac_try='test -z "$ac_c_werror_flag"
24946                          || test ! -s conftest.err'
24947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24948   (eval $ac_try) 2>&5
24949   ac_status=$?
24950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951   (exit $ac_status); }; } &&
24952          { ac_try='test -s conftest$ac_exeext'
24953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24954   (eval $ac_try) 2>&5
24955   ac_status=$?
24956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957   (exit $ac_status); }; }; then
24958   ac_cv_lib_socket_main=yes
24959 else
24960   echo "$as_me: failed program was:" >&5
24961 sed 's/^/| /' conftest.$ac_ext >&5
24962
24963 ac_cv_lib_socket_main=no
24964 fi
24965 rm -f conftest.err conftest.$ac_objext \
24966       conftest$ac_exeext conftest.$ac_ext
24967 LIBS=$ac_check_lib_save_LIBS
24968 fi
24969 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24970 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24971 if test $ac_cv_lib_socket_main = yes; then
24972   cat >>confdefs.h <<_ACEOF
24973 #define HAVE_LIBSOCKET 1
24974 _ACEOF
24975
24976   LIBS="-lsocket $LIBS"
24977
24978 fi
24979
24980
24981 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24982 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24983 if test "${ac_cv_lib_net_main+set}" = set; then
24984   echo $ECHO_N "(cached) $ECHO_C" >&6
24985 else
24986   ac_check_lib_save_LIBS=$LIBS
24987 LIBS="-lnet  $LIBS"
24988 cat >conftest.$ac_ext <<_ACEOF
24989 /* confdefs.h.  */
24990 _ACEOF
24991 cat confdefs.h >>conftest.$ac_ext
24992 cat >>conftest.$ac_ext <<_ACEOF
24993 /* end confdefs.h.  */
24994
24995
24996 int
24997 main ()
24998 {
24999 main ();
25000   ;
25001   return 0;
25002 }
25003 _ACEOF
25004 rm -f conftest.$ac_objext conftest$ac_exeext
25005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25006   (eval $ac_link) 2>conftest.er1
25007   ac_status=$?
25008   grep -v '^ *+' conftest.er1 >conftest.err
25009   rm -f conftest.er1
25010   cat conftest.err >&5
25011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012   (exit $ac_status); } &&
25013          { ac_try='test -z "$ac_c_werror_flag"
25014                          || test ! -s conftest.err'
25015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25016   (eval $ac_try) 2>&5
25017   ac_status=$?
25018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019   (exit $ac_status); }; } &&
25020          { ac_try='test -s conftest$ac_exeext'
25021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25022   (eval $ac_try) 2>&5
25023   ac_status=$?
25024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025   (exit $ac_status); }; }; then
25026   ac_cv_lib_net_main=yes
25027 else
25028   echo "$as_me: failed program was:" >&5
25029 sed 's/^/| /' conftest.$ac_ext >&5
25030
25031 ac_cv_lib_net_main=no
25032 fi
25033 rm -f conftest.err conftest.$ac_objext \
25034       conftest$ac_exeext conftest.$ac_ext
25035 LIBS=$ac_check_lib_save_LIBS
25036 fi
25037 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
25038 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
25039 if test $ac_cv_lib_net_main = yes; then
25040   cat >>confdefs.h <<_ACEOF
25041 #define HAVE_LIBNET 1
25042 _ACEOF
25043
25044   LIBS="-lnet $LIBS"
25045
25046 fi
25047
25048
25049 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
25050 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
25051 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
25052   echo $ECHO_N "(cached) $ECHO_C" >&6
25053 else
25054   ac_check_lib_save_LIBS=$LIBS
25055 LIBS="-lnsl_s  $LIBS"
25056 cat >conftest.$ac_ext <<_ACEOF
25057 /* confdefs.h.  */
25058 _ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h.  */
25062
25063
25064 int
25065 main ()
25066 {
25067 main ();
25068   ;
25069   return 0;
25070 }
25071 _ACEOF
25072 rm -f conftest.$ac_objext conftest$ac_exeext
25073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25074   (eval $ac_link) 2>conftest.er1
25075   ac_status=$?
25076   grep -v '^ *+' conftest.er1 >conftest.err
25077   rm -f conftest.er1
25078   cat conftest.err >&5
25079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25080   (exit $ac_status); } &&
25081          { ac_try='test -z "$ac_c_werror_flag"
25082                          || test ! -s conftest.err'
25083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25084   (eval $ac_try) 2>&5
25085   ac_status=$?
25086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087   (exit $ac_status); }; } &&
25088          { ac_try='test -s conftest$ac_exeext'
25089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25090   (eval $ac_try) 2>&5
25091   ac_status=$?
25092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093   (exit $ac_status); }; }; then
25094   ac_cv_lib_nsl_s_main=yes
25095 else
25096   echo "$as_me: failed program was:" >&5
25097 sed 's/^/| /' conftest.$ac_ext >&5
25098
25099 ac_cv_lib_nsl_s_main=no
25100 fi
25101 rm -f conftest.err conftest.$ac_objext \
25102       conftest$ac_exeext conftest.$ac_ext
25103 LIBS=$ac_check_lib_save_LIBS
25104 fi
25105 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
25106 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
25107 if test $ac_cv_lib_nsl_s_main = yes; then
25108   cat >>confdefs.h <<_ACEOF
25109 #define HAVE_LIBNSL_S 1
25110 _ACEOF
25111
25112   LIBS="-lnsl_s $LIBS"
25113
25114 fi
25115
25116
25117 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
25118 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
25119 if test "${ac_cv_lib_nsl_main+set}" = set; then
25120   echo $ECHO_N "(cached) $ECHO_C" >&6
25121 else
25122   ac_check_lib_save_LIBS=$LIBS
25123 LIBS="-lnsl  $LIBS"
25124 cat >conftest.$ac_ext <<_ACEOF
25125 /* confdefs.h.  */
25126 _ACEOF
25127 cat confdefs.h >>conftest.$ac_ext
25128 cat >>conftest.$ac_ext <<_ACEOF
25129 /* end confdefs.h.  */
25130
25131
25132 int
25133 main ()
25134 {
25135 main ();
25136   ;
25137   return 0;
25138 }
25139 _ACEOF
25140 rm -f conftest.$ac_objext conftest$ac_exeext
25141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25142   (eval $ac_link) 2>conftest.er1
25143   ac_status=$?
25144   grep -v '^ *+' conftest.er1 >conftest.err
25145   rm -f conftest.er1
25146   cat conftest.err >&5
25147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148   (exit $ac_status); } &&
25149          { ac_try='test -z "$ac_c_werror_flag"
25150                          || test ! -s conftest.err'
25151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25152   (eval $ac_try) 2>&5
25153   ac_status=$?
25154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155   (exit $ac_status); }; } &&
25156          { ac_try='test -s conftest$ac_exeext'
25157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25158   (eval $ac_try) 2>&5
25159   ac_status=$?
25160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25161   (exit $ac_status); }; }; then
25162   ac_cv_lib_nsl_main=yes
25163 else
25164   echo "$as_me: failed program was:" >&5
25165 sed 's/^/| /' conftest.$ac_ext >&5
25166
25167 ac_cv_lib_nsl_main=no
25168 fi
25169 rm -f conftest.err conftest.$ac_objext \
25170       conftest$ac_exeext conftest.$ac_ext
25171 LIBS=$ac_check_lib_save_LIBS
25172 fi
25173 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
25174 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
25175 if test $ac_cv_lib_nsl_main = yes; then
25176   cat >>confdefs.h <<_ACEOF
25177 #define HAVE_LIBNSL 1
25178 _ACEOF
25179
25180   LIBS="-lnsl $LIBS"
25181
25182 fi
25183
25184
25185 echo "$as_me:$LINENO: checking for socket in -linet" >&5
25186 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
25187 if test "${ac_cv_lib_inet_socket+set}" = set; then
25188   echo $ECHO_N "(cached) $ECHO_C" >&6
25189 else
25190   ac_check_lib_save_LIBS=$LIBS
25191 LIBS="-linet  $LIBS"
25192 cat >conftest.$ac_ext <<_ACEOF
25193 /* confdefs.h.  */
25194 _ACEOF
25195 cat confdefs.h >>conftest.$ac_ext
25196 cat >>conftest.$ac_ext <<_ACEOF
25197 /* end confdefs.h.  */
25198
25199 /* Override any gcc2 internal prototype to avoid an error.  */
25200 #ifdef __cplusplus
25201 extern "C"
25202 #endif
25203 /* We use char because int might match the return type of a gcc2
25204    builtin and then its argument prototype would still apply.  */
25205 char socket ();
25206 int
25207 main ()
25208 {
25209 socket ();
25210   ;
25211   return 0;
25212 }
25213 _ACEOF
25214 rm -f conftest.$ac_objext conftest$ac_exeext
25215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25216   (eval $ac_link) 2>conftest.er1
25217   ac_status=$?
25218   grep -v '^ *+' conftest.er1 >conftest.err
25219   rm -f conftest.er1
25220   cat conftest.err >&5
25221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222   (exit $ac_status); } &&
25223          { ac_try='test -z "$ac_c_werror_flag"
25224                          || test ! -s conftest.err'
25225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25226   (eval $ac_try) 2>&5
25227   ac_status=$?
25228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229   (exit $ac_status); }; } &&
25230          { ac_try='test -s conftest$ac_exeext'
25231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25232   (eval $ac_try) 2>&5
25233   ac_status=$?
25234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235   (exit $ac_status); }; }; then
25236   ac_cv_lib_inet_socket=yes
25237 else
25238   echo "$as_me: failed program was:" >&5
25239 sed 's/^/| /' conftest.$ac_ext >&5
25240
25241 ac_cv_lib_inet_socket=no
25242 fi
25243 rm -f conftest.err conftest.$ac_objext \
25244       conftest$ac_exeext conftest.$ac_ext
25245 LIBS=$ac_check_lib_save_LIBS
25246 fi
25247 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
25248 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
25249 if test $ac_cv_lib_inet_socket = yes; then
25250   cat >>confdefs.h <<_ACEOF
25251 #define HAVE_LIBINET 1
25252 _ACEOF
25253
25254   LIBS="-linet $LIBS"
25255
25256 fi
25257
25258
25259 echo "$as_me:$LINENO: checking for main in -lgen" >&5
25260 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
25261 if test "${ac_cv_lib_gen_main+set}" = set; then
25262   echo $ECHO_N "(cached) $ECHO_C" >&6
25263 else
25264   ac_check_lib_save_LIBS=$LIBS
25265 LIBS="-lgen  $LIBS"
25266 cat >conftest.$ac_ext <<_ACEOF
25267 /* confdefs.h.  */
25268 _ACEOF
25269 cat confdefs.h >>conftest.$ac_ext
25270 cat >>conftest.$ac_ext <<_ACEOF
25271 /* end confdefs.h.  */
25272
25273
25274 int
25275 main ()
25276 {
25277 main ();
25278   ;
25279   return 0;
25280 }
25281 _ACEOF
25282 rm -f conftest.$ac_objext conftest$ac_exeext
25283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25284   (eval $ac_link) 2>conftest.er1
25285   ac_status=$?
25286   grep -v '^ *+' conftest.er1 >conftest.err
25287   rm -f conftest.er1
25288   cat conftest.err >&5
25289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290   (exit $ac_status); } &&
25291          { ac_try='test -z "$ac_c_werror_flag"
25292                          || test ! -s conftest.err'
25293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25294   (eval $ac_try) 2>&5
25295   ac_status=$?
25296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297   (exit $ac_status); }; } &&
25298          { ac_try='test -s conftest$ac_exeext'
25299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25300   (eval $ac_try) 2>&5
25301   ac_status=$?
25302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303   (exit $ac_status); }; }; then
25304   ac_cv_lib_gen_main=yes
25305 else
25306   echo "$as_me: failed program was:" >&5
25307 sed 's/^/| /' conftest.$ac_ext >&5
25308
25309 ac_cv_lib_gen_main=no
25310 fi
25311 rm -f conftest.err conftest.$ac_objext \
25312       conftest$ac_exeext conftest.$ac_ext
25313 LIBS=$ac_check_lib_save_LIBS
25314 fi
25315 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25316 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25317 if test $ac_cv_lib_gen_main = yes; then
25318   cat >>confdefs.h <<_ACEOF
25319 #define HAVE_LIBGEN 1
25320 _ACEOF
25321
25322   LIBS="-lgen $LIBS"
25323
25324 fi
25325
25326
25327 fi
25328
25329
25330 echo "$as_me:$LINENO: checking for select" >&5
25331 echo $ECHO_N "checking for select... $ECHO_C" >&6
25332 if test "${ac_cv_func_select+set}" = set; then
25333   echo $ECHO_N "(cached) $ECHO_C" >&6
25334 else
25335   cat >conftest.$ac_ext <<_ACEOF
25336 /* confdefs.h.  */
25337 _ACEOF
25338 cat confdefs.h >>conftest.$ac_ext
25339 cat >>conftest.$ac_ext <<_ACEOF
25340 /* end confdefs.h.  */
25341 /* Define select to an innocuous variant, in case <limits.h> declares select.
25342    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25343 #define select innocuous_select
25344
25345 /* System header to define __stub macros and hopefully few prototypes,
25346     which can conflict with char select (); below.
25347     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25348     <limits.h> exists even on freestanding compilers.  */
25349
25350 #ifdef __STDC__
25351 # include <limits.h>
25352 #else
25353 # include <assert.h>
25354 #endif
25355
25356 #undef select
25357
25358 /* Override any gcc2 internal prototype to avoid an error.  */
25359 #ifdef __cplusplus
25360 extern "C"
25361 {
25362 #endif
25363 /* We use char because int might match the return type of a gcc2
25364    builtin and then its argument prototype would still apply.  */
25365 char select ();
25366 /* The GNU C library defines this for functions which it implements
25367     to always fail with ENOSYS.  Some functions are actually named
25368     something starting with __ and the normal name is an alias.  */
25369 #if defined (__stub_select) || defined (__stub___select)
25370 choke me
25371 #else
25372 char (*f) () = select;
25373 #endif
25374 #ifdef __cplusplus
25375 }
25376 #endif
25377
25378 int
25379 main ()
25380 {
25381 return f != select;
25382   ;
25383   return 0;
25384 }
25385 _ACEOF
25386 rm -f conftest.$ac_objext conftest$ac_exeext
25387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25388   (eval $ac_link) 2>conftest.er1
25389   ac_status=$?
25390   grep -v '^ *+' conftest.er1 >conftest.err
25391   rm -f conftest.er1
25392   cat conftest.err >&5
25393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394   (exit $ac_status); } &&
25395          { ac_try='test -z "$ac_c_werror_flag"
25396                          || test ! -s conftest.err'
25397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25398   (eval $ac_try) 2>&5
25399   ac_status=$?
25400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401   (exit $ac_status); }; } &&
25402          { ac_try='test -s conftest$ac_exeext'
25403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25404   (eval $ac_try) 2>&5
25405   ac_status=$?
25406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25407   (exit $ac_status); }; }; then
25408   ac_cv_func_select=yes
25409 else
25410   echo "$as_me: failed program was:" >&5
25411 sed 's/^/| /' conftest.$ac_ext >&5
25412
25413 ac_cv_func_select=no
25414 fi
25415 rm -f conftest.err conftest.$ac_objext \
25416       conftest$ac_exeext conftest.$ac_ext
25417 fi
25418 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25419 echo "${ECHO_T}$ac_cv_func_select" >&6
25420 if test $ac_cv_func_select = yes; then
25421   :
25422 else
25423   { { echo "$as_me:$LINENO: error: select() required." >&5
25424 echo "$as_me: error: select() required." >&2;}
25425    { (exit 1); exit 1; }; }
25426 fi
25427
25428
25429 if test "${ac_cv_header_winsock_h}" != yes; then
25430
25431
25432 for ac_header in sys/select.h sys/socket.h
25433 do
25434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25436   echo "$as_me:$LINENO: checking for $ac_header" >&5
25437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25439   echo $ECHO_N "(cached) $ECHO_C" >&6
25440 fi
25441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25443 else
25444   # Is the header compilable?
25445 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25447 cat >conftest.$ac_ext <<_ACEOF
25448 /* confdefs.h.  */
25449 _ACEOF
25450 cat confdefs.h >>conftest.$ac_ext
25451 cat >>conftest.$ac_ext <<_ACEOF
25452 /* end confdefs.h.  */
25453 $ac_includes_default
25454 #include <$ac_header>
25455 _ACEOF
25456 rm -f conftest.$ac_objext
25457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25458   (eval $ac_compile) 2>conftest.er1
25459   ac_status=$?
25460   grep -v '^ *+' conftest.er1 >conftest.err
25461   rm -f conftest.er1
25462   cat conftest.err >&5
25463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464   (exit $ac_status); } &&
25465          { ac_try='test -z "$ac_c_werror_flag"
25466                          || test ! -s conftest.err'
25467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25468   (eval $ac_try) 2>&5
25469   ac_status=$?
25470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471   (exit $ac_status); }; } &&
25472          { ac_try='test -s conftest.$ac_objext'
25473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25474   (eval $ac_try) 2>&5
25475   ac_status=$?
25476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477   (exit $ac_status); }; }; then
25478   ac_header_compiler=yes
25479 else
25480   echo "$as_me: failed program was:" >&5
25481 sed 's/^/| /' conftest.$ac_ext >&5
25482
25483 ac_header_compiler=no
25484 fi
25485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25487 echo "${ECHO_T}$ac_header_compiler" >&6
25488
25489 # Is the header present?
25490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25492 cat >conftest.$ac_ext <<_ACEOF
25493 /* confdefs.h.  */
25494 _ACEOF
25495 cat confdefs.h >>conftest.$ac_ext
25496 cat >>conftest.$ac_ext <<_ACEOF
25497 /* end confdefs.h.  */
25498 #include <$ac_header>
25499 _ACEOF
25500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25501   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25502   ac_status=$?
25503   grep -v '^ *+' conftest.er1 >conftest.err
25504   rm -f conftest.er1
25505   cat conftest.err >&5
25506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507   (exit $ac_status); } >/dev/null; then
25508   if test -s conftest.err; then
25509     ac_cpp_err=$ac_c_preproc_warn_flag
25510     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25511   else
25512     ac_cpp_err=
25513   fi
25514 else
25515   ac_cpp_err=yes
25516 fi
25517 if test -z "$ac_cpp_err"; then
25518   ac_header_preproc=yes
25519 else
25520   echo "$as_me: failed program was:" >&5
25521 sed 's/^/| /' conftest.$ac_ext >&5
25522
25523   ac_header_preproc=no
25524 fi
25525 rm -f conftest.err conftest.$ac_ext
25526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25527 echo "${ECHO_T}$ac_header_preproc" >&6
25528
25529 # So?  What about this header?
25530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25531   yes:no: )
25532     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25536     ac_header_preproc=yes
25537     ;;
25538   no:yes:* )
25539     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25541     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25542 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25543     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25545     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25546 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25547     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25549     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25551     (
25552       cat <<\_ASBOX
25553 ## ------------------------------------------ ##
25554 ## Report this to the AC_PACKAGE_NAME lists.  ##
25555 ## ------------------------------------------ ##
25556 _ASBOX
25557     ) |
25558       sed "s/^/$as_me: WARNING:     /" >&2
25559     ;;
25560 esac
25561 echo "$as_me:$LINENO: checking for $ac_header" >&5
25562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25564   echo $ECHO_N "(cached) $ECHO_C" >&6
25565 else
25566   eval "$as_ac_Header=\$ac_header_preproc"
25567 fi
25568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25570
25571 fi
25572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25573   cat >>confdefs.h <<_ACEOF
25574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25575 _ACEOF
25576
25577 fi
25578
25579 done
25580
25581 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25582 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25583 if test "${ac_cv_func_select_args+set}" = set; then
25584   echo $ECHO_N "(cached) $ECHO_C" >&6
25585 else
25586   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25587  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25588   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25589    cat >conftest.$ac_ext <<_ACEOF
25590 /* confdefs.h.  */
25591 _ACEOF
25592 cat confdefs.h >>conftest.$ac_ext
25593 cat >>conftest.$ac_ext <<_ACEOF
25594 /* end confdefs.h.  */
25595 $ac_includes_default
25596 #if HAVE_SYS_SELECT_H
25597 # include <sys/select.h>
25598 #endif
25599 #if HAVE_SYS_SOCKET_H
25600 # include <sys/socket.h>
25601 #endif
25602
25603 int
25604 main ()
25605 {
25606 extern int select ($ac_arg1,
25607                                             $ac_arg234, $ac_arg234, $ac_arg234,
25608                                             $ac_arg5);
25609   ;
25610   return 0;
25611 }
25612 _ACEOF
25613 rm -f conftest.$ac_objext
25614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25615   (eval $ac_compile) 2>conftest.er1
25616   ac_status=$?
25617   grep -v '^ *+' conftest.er1 >conftest.err
25618   rm -f conftest.er1
25619   cat conftest.err >&5
25620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621   (exit $ac_status); } &&
25622          { ac_try='test -z "$ac_c_werror_flag"
25623                          || test ! -s conftest.err'
25624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25625   (eval $ac_try) 2>&5
25626   ac_status=$?
25627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628   (exit $ac_status); }; } &&
25629          { ac_try='test -s conftest.$ac_objext'
25630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25631   (eval $ac_try) 2>&5
25632   ac_status=$?
25633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634   (exit $ac_status); }; }; then
25635   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25636 else
25637   echo "$as_me: failed program was:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25639
25640 fi
25641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25642   done
25643  done
25644 done
25645 # Provide a safe default value.
25646 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25647
25648 fi
25649 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25650 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25651 ac_save_IFS=$IFS; IFS=','
25652 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25653 IFS=$ac_save_IFS
25654 shift
25655
25656 cat >>confdefs.h <<_ACEOF
25657 #define SELECT_TYPE_ARG1 $1
25658 _ACEOF
25659
25660
25661 cat >>confdefs.h <<_ACEOF
25662 #define SELECT_TYPE_ARG234 ($2)
25663 _ACEOF
25664
25665
25666 cat >>confdefs.h <<_ACEOF
25667 #define SELECT_TYPE_ARG5 ($3)
25668 _ACEOF
25669
25670 rm -f conftest*
25671
25672 fi
25673
25674
25675
25676 for ac_func in poll
25677 do
25678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25679 echo "$as_me:$LINENO: checking for $ac_func" >&5
25680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25681 if eval "test \"\${$as_ac_var+set}\" = set"; then
25682   echo $ECHO_N "(cached) $ECHO_C" >&6
25683 else
25684   cat >conftest.$ac_ext <<_ACEOF
25685 /* confdefs.h.  */
25686 _ACEOF
25687 cat confdefs.h >>conftest.$ac_ext
25688 cat >>conftest.$ac_ext <<_ACEOF
25689 /* end confdefs.h.  */
25690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25692 #define $ac_func innocuous_$ac_func
25693
25694 /* System header to define __stub macros and hopefully few prototypes,
25695     which can conflict with char $ac_func (); below.
25696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25697     <limits.h> exists even on freestanding compilers.  */
25698
25699 #ifdef __STDC__
25700 # include <limits.h>
25701 #else
25702 # include <assert.h>
25703 #endif
25704
25705 #undef $ac_func
25706
25707 /* Override any gcc2 internal prototype to avoid an error.  */
25708 #ifdef __cplusplus
25709 extern "C"
25710 {
25711 #endif
25712 /* We use char because int might match the return type of a gcc2
25713    builtin and then its argument prototype would still apply.  */
25714 char $ac_func ();
25715 /* The GNU C library defines this for functions which it implements
25716     to always fail with ENOSYS.  Some functions are actually named
25717     something starting with __ and the normal name is an alias.  */
25718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25719 choke me
25720 #else
25721 char (*f) () = $ac_func;
25722 #endif
25723 #ifdef __cplusplus
25724 }
25725 #endif
25726
25727 int
25728 main ()
25729 {
25730 return f != $ac_func;
25731   ;
25732   return 0;
25733 }
25734 _ACEOF
25735 rm -f conftest.$ac_objext conftest$ac_exeext
25736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25737   (eval $ac_link) 2>conftest.er1
25738   ac_status=$?
25739   grep -v '^ *+' conftest.er1 >conftest.err
25740   rm -f conftest.er1
25741   cat conftest.err >&5
25742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743   (exit $ac_status); } &&
25744          { ac_try='test -z "$ac_c_werror_flag"
25745                          || test ! -s conftest.err'
25746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25747   (eval $ac_try) 2>&5
25748   ac_status=$?
25749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750   (exit $ac_status); }; } &&
25751          { ac_try='test -s conftest$ac_exeext'
25752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25753   (eval $ac_try) 2>&5
25754   ac_status=$?
25755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756   (exit $ac_status); }; }; then
25757   eval "$as_ac_var=yes"
25758 else
25759   echo "$as_me: failed program was:" >&5
25760 sed 's/^/| /' conftest.$ac_ext >&5
25761
25762 eval "$as_ac_var=no"
25763 fi
25764 rm -f conftest.err conftest.$ac_objext \
25765       conftest$ac_exeext conftest.$ac_ext
25766 fi
25767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25769 if test `eval echo '${'$as_ac_var'}'` = yes; then
25770   cat >>confdefs.h <<_ACEOF
25771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25772 _ACEOF
25773
25774 fi
25775 done
25776
25777
25778 for ac_header in poll.h
25779 do
25780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25782   echo "$as_me:$LINENO: checking for $ac_header" >&5
25783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25785   echo $ECHO_N "(cached) $ECHO_C" >&6
25786 fi
25787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25789 else
25790   # Is the header compilable?
25791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25793 cat >conftest.$ac_ext <<_ACEOF
25794 /* confdefs.h.  */
25795 _ACEOF
25796 cat confdefs.h >>conftest.$ac_ext
25797 cat >>conftest.$ac_ext <<_ACEOF
25798 /* end confdefs.h.  */
25799 $ac_includes_default
25800 #include <$ac_header>
25801 _ACEOF
25802 rm -f conftest.$ac_objext
25803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25804   (eval $ac_compile) 2>conftest.er1
25805   ac_status=$?
25806   grep -v '^ *+' conftest.er1 >conftest.err
25807   rm -f conftest.er1
25808   cat conftest.err >&5
25809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810   (exit $ac_status); } &&
25811          { ac_try='test -z "$ac_c_werror_flag"
25812                          || test ! -s conftest.err'
25813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25814   (eval $ac_try) 2>&5
25815   ac_status=$?
25816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817   (exit $ac_status); }; } &&
25818          { ac_try='test -s conftest.$ac_objext'
25819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25820   (eval $ac_try) 2>&5
25821   ac_status=$?
25822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823   (exit $ac_status); }; }; then
25824   ac_header_compiler=yes
25825 else
25826   echo "$as_me: failed program was:" >&5
25827 sed 's/^/| /' conftest.$ac_ext >&5
25828
25829 ac_header_compiler=no
25830 fi
25831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25833 echo "${ECHO_T}$ac_header_compiler" >&6
25834
25835 # Is the header present?
25836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25838 cat >conftest.$ac_ext <<_ACEOF
25839 /* confdefs.h.  */
25840 _ACEOF
25841 cat confdefs.h >>conftest.$ac_ext
25842 cat >>conftest.$ac_ext <<_ACEOF
25843 /* end confdefs.h.  */
25844 #include <$ac_header>
25845 _ACEOF
25846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25847   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25848   ac_status=$?
25849   grep -v '^ *+' conftest.er1 >conftest.err
25850   rm -f conftest.er1
25851   cat conftest.err >&5
25852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853   (exit $ac_status); } >/dev/null; then
25854   if test -s conftest.err; then
25855     ac_cpp_err=$ac_c_preproc_warn_flag
25856     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25857   else
25858     ac_cpp_err=
25859   fi
25860 else
25861   ac_cpp_err=yes
25862 fi
25863 if test -z "$ac_cpp_err"; then
25864   ac_header_preproc=yes
25865 else
25866   echo "$as_me: failed program was:" >&5
25867 sed 's/^/| /' conftest.$ac_ext >&5
25868
25869   ac_header_preproc=no
25870 fi
25871 rm -f conftest.err conftest.$ac_ext
25872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25873 echo "${ECHO_T}$ac_header_preproc" >&6
25874
25875 # So?  What about this header?
25876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25877   yes:no: )
25878     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25882     ac_header_preproc=yes
25883     ;;
25884   no:yes:* )
25885     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25887     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25888 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25889     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25891     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25892 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25895     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25897     (
25898       cat <<\_ASBOX
25899 ## ------------------------------------------ ##
25900 ## Report this to the AC_PACKAGE_NAME lists.  ##
25901 ## ------------------------------------------ ##
25902 _ASBOX
25903     ) |
25904       sed "s/^/$as_me: WARNING:     /" >&2
25905     ;;
25906 esac
25907 echo "$as_me:$LINENO: checking for $ac_header" >&5
25908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25910   echo $ECHO_N "(cached) $ECHO_C" >&6
25911 else
25912   eval "$as_ac_Header=\$ac_header_preproc"
25913 fi
25914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25916
25917 fi
25918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25919   cat >>confdefs.h <<_ACEOF
25920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25921 _ACEOF
25922
25923 fi
25924
25925 done
25926
25927
25928
25929 for ac_header in sys/epoll.h
25930 do
25931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25933   echo "$as_me:$LINENO: checking for $ac_header" >&5
25934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25936   echo $ECHO_N "(cached) $ECHO_C" >&6
25937 fi
25938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25940 else
25941   # Is the header compilable?
25942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25944 cat >conftest.$ac_ext <<_ACEOF
25945 /* confdefs.h.  */
25946 _ACEOF
25947 cat confdefs.h >>conftest.$ac_ext
25948 cat >>conftest.$ac_ext <<_ACEOF
25949 /* end confdefs.h.  */
25950 $ac_includes_default
25951 #include <$ac_header>
25952 _ACEOF
25953 rm -f conftest.$ac_objext
25954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25955   (eval $ac_compile) 2>conftest.er1
25956   ac_status=$?
25957   grep -v '^ *+' conftest.er1 >conftest.err
25958   rm -f conftest.er1
25959   cat conftest.err >&5
25960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961   (exit $ac_status); } &&
25962          { ac_try='test -z "$ac_c_werror_flag"
25963                          || test ! -s conftest.err'
25964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965   (eval $ac_try) 2>&5
25966   ac_status=$?
25967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968   (exit $ac_status); }; } &&
25969          { ac_try='test -s conftest.$ac_objext'
25970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971   (eval $ac_try) 2>&5
25972   ac_status=$?
25973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974   (exit $ac_status); }; }; then
25975   ac_header_compiler=yes
25976 else
25977   echo "$as_me: failed program was:" >&5
25978 sed 's/^/| /' conftest.$ac_ext >&5
25979
25980 ac_header_compiler=no
25981 fi
25982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25984 echo "${ECHO_T}$ac_header_compiler" >&6
25985
25986 # Is the header present?
25987 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25989 cat >conftest.$ac_ext <<_ACEOF
25990 /* confdefs.h.  */
25991 _ACEOF
25992 cat confdefs.h >>conftest.$ac_ext
25993 cat >>conftest.$ac_ext <<_ACEOF
25994 /* end confdefs.h.  */
25995 #include <$ac_header>
25996 _ACEOF
25997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25998   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25999   ac_status=$?
26000   grep -v '^ *+' conftest.er1 >conftest.err
26001   rm -f conftest.er1
26002   cat conftest.err >&5
26003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26004   (exit $ac_status); } >/dev/null; then
26005   if test -s conftest.err; then
26006     ac_cpp_err=$ac_c_preproc_warn_flag
26007     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26008   else
26009     ac_cpp_err=
26010   fi
26011 else
26012   ac_cpp_err=yes
26013 fi
26014 if test -z "$ac_cpp_err"; then
26015   ac_header_preproc=yes
26016 else
26017   echo "$as_me: failed program was:" >&5
26018 sed 's/^/| /' conftest.$ac_ext >&5
26019
26020   ac_header_preproc=no
26021 fi
26022 rm -f conftest.err conftest.$ac_ext
26023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26024 echo "${ECHO_T}$ac_header_preproc" >&6
26025
26026 # So?  What about this header?
26027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26028   yes:no: )
26029     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26033     ac_header_preproc=yes
26034     ;;
26035   no:yes:* )
26036     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26038     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26039 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26040     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26042     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26043 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26046     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26048     (
26049       cat <<\_ASBOX
26050 ## ------------------------------------------ ##
26051 ## Report this to the AC_PACKAGE_NAME lists.  ##
26052 ## ------------------------------------------ ##
26053 _ASBOX
26054     ) |
26055       sed "s/^/$as_me: WARNING:     /" >&2
26056     ;;
26057 esac
26058 echo "$as_me:$LINENO: checking for $ac_header" >&5
26059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26061   echo $ECHO_N "(cached) $ECHO_C" >&6
26062 else
26063   eval "$as_ac_Header=\$ac_header_preproc"
26064 fi
26065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26067
26068 fi
26069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26070   cat >>confdefs.h <<_ACEOF
26071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26072 _ACEOF
26073
26074 fi
26075
26076 done
26077
26078 if test "${ac_cv_header_sys_epoll_h}" = yes; then
26079 echo "$as_me:$LINENO: checking for epoll system call" >&5
26080 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
26081 if test "$cross_compiling" = yes; then
26082   echo "$as_me:$LINENO: result: no" >&5
26083 echo "${ECHO_T}no" >&6
26084 else
26085   cat >conftest.$ac_ext <<_ACEOF
26086 /* confdefs.h.  */
26087 _ACEOF
26088 cat confdefs.h >>conftest.$ac_ext
26089 cat >>conftest.$ac_ext <<_ACEOF
26090 /* end confdefs.h.  */
26091 int main(int argc, char *argv)
26092 {
26093         int epfd = epoll_create(256);
26094         exit (epfd == -1 ? 1 : 0);
26095 }
26096 _ACEOF
26097 rm -f conftest$ac_exeext
26098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26099   (eval $ac_link) 2>&5
26100   ac_status=$?
26101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26104   (eval $ac_try) 2>&5
26105   ac_status=$?
26106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107   (exit $ac_status); }; }; then
26108   echo "$as_me:$LINENO: result: yes" >&5
26109 echo "${ECHO_T}yes" >&6
26110
26111 cat >>confdefs.h <<\_ACEOF
26112 #define HAVE_EPOLL 1
26113 _ACEOF
26114
26115 else
26116   echo "$as_me: program exited with status $ac_status" >&5
26117 echo "$as_me: failed program was:" >&5
26118 sed 's/^/| /' conftest.$ac_ext >&5
26119
26120 ( exit $ac_status )
26121 echo "$as_me:$LINENO: result: no" >&5
26122 echo "${ECHO_T}no" >&6
26123 fi
26124 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26125 fi
26126 fi
26127
26128 # strerror checks
26129 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26130 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26131 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26132   echo $ECHO_N "(cached) $ECHO_C" >&6
26133 else
26134
26135         cat >conftest.$ac_ext <<_ACEOF
26136 /* confdefs.h.  */
26137 _ACEOF
26138 cat confdefs.h >>conftest.$ac_ext
26139 cat >>conftest.$ac_ext <<_ACEOF
26140 /* end confdefs.h.  */
26141
26142 #include <stdio.h>
26143 #include <sys/types.h>
26144 #include <errno.h>
26145 #ifdef WINNT
26146 #include <stdlib.h>
26147 #endif
26148 int
26149 main ()
26150 {
26151 char *c = (char *) *sys_errlist
26152   ;
26153   return 0;
26154 }
26155 _ACEOF
26156 rm -f conftest.$ac_objext
26157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26158   (eval $ac_compile) 2>conftest.er1
26159   ac_status=$?
26160   grep -v '^ *+' conftest.er1 >conftest.err
26161   rm -f conftest.er1
26162   cat conftest.err >&5
26163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26164   (exit $ac_status); } &&
26165          { ac_try='test -z "$ac_c_werror_flag"
26166                          || test ! -s conftest.err'
26167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26168   (eval $ac_try) 2>&5
26169   ac_status=$?
26170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171   (exit $ac_status); }; } &&
26172          { ac_try='test -s conftest.$ac_objext'
26173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26174   (eval $ac_try) 2>&5
26175   ac_status=$?
26176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177   (exit $ac_status); }; }; then
26178   ol_cv_dcl_sys_errlist=yes
26179         ol_cv_have_sys_errlist=yes
26180 else
26181   echo "$as_me: failed program was:" >&5
26182 sed 's/^/| /' conftest.$ac_ext >&5
26183
26184 ol_cv_dcl_sys_errlist=no
26185 fi
26186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26187 fi
26188 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26189 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26190 #
26191 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26192 if test $ol_cv_dcl_sys_errlist = no ; then
26193
26194 cat >>confdefs.h <<\_ACEOF
26195 #define DECL_SYS_ERRLIST 1
26196 _ACEOF
26197
26198
26199         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26200 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26201 if test "${ol_cv_have_sys_errlist+set}" = set; then
26202   echo $ECHO_N "(cached) $ECHO_C" >&6
26203 else
26204
26205                 cat >conftest.$ac_ext <<_ACEOF
26206 /* confdefs.h.  */
26207 _ACEOF
26208 cat confdefs.h >>conftest.$ac_ext
26209 cat >>conftest.$ac_ext <<_ACEOF
26210 /* end confdefs.h.  */
26211 #include <errno.h>
26212 int
26213 main ()
26214 {
26215 char *c = (char *) *sys_errlist
26216   ;
26217   return 0;
26218 }
26219 _ACEOF
26220 rm -f conftest.$ac_objext conftest$ac_exeext
26221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26222   (eval $ac_link) 2>conftest.er1
26223   ac_status=$?
26224   grep -v '^ *+' conftest.er1 >conftest.err
26225   rm -f conftest.er1
26226   cat conftest.err >&5
26227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228   (exit $ac_status); } &&
26229          { ac_try='test -z "$ac_c_werror_flag"
26230                          || test ! -s conftest.err'
26231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26232   (eval $ac_try) 2>&5
26233   ac_status=$?
26234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235   (exit $ac_status); }; } &&
26236          { ac_try='test -s conftest$ac_exeext'
26237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26238   (eval $ac_try) 2>&5
26239   ac_status=$?
26240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241   (exit $ac_status); }; }; then
26242   ol_cv_have_sys_errlist=yes
26243 else
26244   echo "$as_me: failed program was:" >&5
26245 sed 's/^/| /' conftest.$ac_ext >&5
26246
26247 ol_cv_have_sys_errlist=no
26248 fi
26249 rm -f conftest.err conftest.$ac_objext \
26250       conftest$ac_exeext conftest.$ac_ext
26251 fi
26252 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26253 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26254 fi
26255 if test $ol_cv_have_sys_errlist = yes ; then
26256
26257 cat >>confdefs.h <<\_ACEOF
26258 #define HAVE_SYS_ERRLIST 1
26259 _ACEOF
26260
26261 fi
26262
26263
26264 for ac_func in strerror strerror_r
26265 do
26266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26267 echo "$as_me:$LINENO: checking for $ac_func" >&5
26268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26269 if eval "test \"\${$as_ac_var+set}\" = set"; then
26270   echo $ECHO_N "(cached) $ECHO_C" >&6
26271 else
26272   cat >conftest.$ac_ext <<_ACEOF
26273 /* confdefs.h.  */
26274 _ACEOF
26275 cat confdefs.h >>conftest.$ac_ext
26276 cat >>conftest.$ac_ext <<_ACEOF
26277 /* end confdefs.h.  */
26278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26280 #define $ac_func innocuous_$ac_func
26281
26282 /* System header to define __stub macros and hopefully few prototypes,
26283     which can conflict with char $ac_func (); below.
26284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26285     <limits.h> exists even on freestanding compilers.  */
26286
26287 #ifdef __STDC__
26288 # include <limits.h>
26289 #else
26290 # include <assert.h>
26291 #endif
26292
26293 #undef $ac_func
26294
26295 /* Override any gcc2 internal prototype to avoid an error.  */
26296 #ifdef __cplusplus
26297 extern "C"
26298 {
26299 #endif
26300 /* We use char because int might match the return type of a gcc2
26301    builtin and then its argument prototype would still apply.  */
26302 char $ac_func ();
26303 /* The GNU C library defines this for functions which it implements
26304     to always fail with ENOSYS.  Some functions are actually named
26305     something starting with __ and the normal name is an alias.  */
26306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26307 choke me
26308 #else
26309 char (*f) () = $ac_func;
26310 #endif
26311 #ifdef __cplusplus
26312 }
26313 #endif
26314
26315 int
26316 main ()
26317 {
26318 return f != $ac_func;
26319   ;
26320   return 0;
26321 }
26322 _ACEOF
26323 rm -f conftest.$ac_objext conftest$ac_exeext
26324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26325   (eval $ac_link) 2>conftest.er1
26326   ac_status=$?
26327   grep -v '^ *+' conftest.er1 >conftest.err
26328   rm -f conftest.er1
26329   cat conftest.err >&5
26330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331   (exit $ac_status); } &&
26332          { ac_try='test -z "$ac_c_werror_flag"
26333                          || test ! -s conftest.err'
26334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26335   (eval $ac_try) 2>&5
26336   ac_status=$?
26337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26338   (exit $ac_status); }; } &&
26339          { ac_try='test -s conftest$ac_exeext'
26340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26341   (eval $ac_try) 2>&5
26342   ac_status=$?
26343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344   (exit $ac_status); }; }; then
26345   eval "$as_ac_var=yes"
26346 else
26347   echo "$as_me: failed program was:" >&5
26348 sed 's/^/| /' conftest.$ac_ext >&5
26349
26350 eval "$as_ac_var=no"
26351 fi
26352 rm -f conftest.err conftest.$ac_objext \
26353       conftest$ac_exeext conftest.$ac_ext
26354 fi
26355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26357 if test `eval echo '${'$as_ac_var'}'` = yes; then
26358   cat >>confdefs.h <<_ACEOF
26359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26360 _ACEOF
26361
26362 fi
26363 done
26364
26365 ol_cv_func_strerror_r=no
26366 if test "${ac_cv_func_strerror_r}" = yes ; then
26367         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26368 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26369 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26370   echo $ECHO_N "(cached) $ECHO_C" >&6
26371 else
26372
26373         cat >conftest.$ac_ext <<_ACEOF
26374 /* confdefs.h.  */
26375 _ACEOF
26376 cat confdefs.h >>conftest.$ac_ext
26377 cat >>conftest.$ac_ext <<_ACEOF
26378 /* end confdefs.h.  */
26379 #include <string.h>
26380 _ACEOF
26381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26382   $EGREP "strerror_r" >/dev/null 2>&1; then
26383   ol_decl_strerror_r=yes
26384 else
26385   ol_decl_strerror_r=no
26386 fi
26387 rm -f conftest*
26388
26389         if test $ol_decl_strerror_r = yes ; then
26390                 cat >conftest.$ac_ext <<_ACEOF
26391 /* confdefs.h.  */
26392 _ACEOF
26393 cat confdefs.h >>conftest.$ac_ext
26394 cat >>conftest.$ac_ext <<_ACEOF
26395 /* end confdefs.h.  */
26396 #include <string.h>
26397 int
26398 main ()
26399 {
26400    /* from autoconf 2.59 */
26401                                 char buf[100];
26402                                 char x = *strerror_r (0, buf, sizeof buf);
26403                                 char *p = strerror_r (0, buf, sizeof buf);
26404
26405   ;
26406   return 0;
26407 }
26408 _ACEOF
26409 rm -f conftest.$ac_objext
26410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26411   (eval $ac_compile) 2>conftest.er1
26412   ac_status=$?
26413   grep -v '^ *+' conftest.er1 >conftest.err
26414   rm -f conftest.er1
26415   cat conftest.err >&5
26416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417   (exit $ac_status); } &&
26418          { ac_try='test -z "$ac_c_werror_flag"
26419                          || test ! -s conftest.err'
26420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26421   (eval $ac_try) 2>&5
26422   ac_status=$?
26423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424   (exit $ac_status); }; } &&
26425          { ac_try='test -s conftest.$ac_objext'
26426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26427   (eval $ac_try) 2>&5
26428   ac_status=$?
26429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430   (exit $ac_status); }; }; then
26431   ol_cv_nonposix_strerror_r=yes
26432 else
26433   echo "$as_me: failed program was:" >&5
26434 sed 's/^/| /' conftest.$ac_ext >&5
26435
26436 ol_cv_nonposix_strerror_r=no
26437 fi
26438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26439         else
26440                 if test "$cross_compiling" = yes; then
26441   ol_cv_nonposix_strerror=no
26442 else
26443   cat >conftest.$ac_ext <<_ACEOF
26444 /* confdefs.h.  */
26445 _ACEOF
26446 cat confdefs.h >>conftest.$ac_ext
26447 cat >>conftest.$ac_ext <<_ACEOF
26448 /* end confdefs.h.  */
26449
26450                         main() {
26451                                 char buf[100];
26452                                 buf[0] = 0;
26453                                 strerror_r( 1, buf, sizeof buf );
26454                                 exit( buf[0] == 0 );
26455                         }
26456
26457 _ACEOF
26458 rm -f conftest$ac_exeext
26459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26460   (eval $ac_link) 2>&5
26461   ac_status=$?
26462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26465   (eval $ac_try) 2>&5
26466   ac_status=$?
26467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468   (exit $ac_status); }; }; then
26469   ol_cv_nonposix_strerror_r=yes
26470 else
26471   echo "$as_me: program exited with status $ac_status" >&5
26472 echo "$as_me: failed program was:" >&5
26473 sed 's/^/| /' conftest.$ac_ext >&5
26474
26475 ( exit $ac_status )
26476 ol_cv_nonposix_strerror=no
26477 fi
26478 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26479 fi
26480         fi
26481
26482 fi
26483 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26484 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26485 if test $ol_cv_nonposix_strerror_r = yes ; then
26486
26487 cat >>confdefs.h <<\_ACEOF
26488 #define HAVE_NONPOSIX_STRERROR_R 1
26489 _ACEOF
26490
26491 fi
26492
26493 elif test "${ac_cv_func_strerror}" = no ; then
26494         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26495 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26496 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26497   echo $ECHO_N "(cached) $ECHO_C" >&6
26498 else
26499
26500         cat >conftest.$ac_ext <<_ACEOF
26501 /* confdefs.h.  */
26502 _ACEOF
26503 cat confdefs.h >>conftest.$ac_ext
26504 cat >>conftest.$ac_ext <<_ACEOF
26505 /* end confdefs.h.  */
26506
26507 #include <stdio.h>
26508 #include <sys/types.h>
26509 #include <errno.h>
26510 #ifdef WINNT
26511 #include <stdlib.h>
26512 #endif
26513 int
26514 main ()
26515 {
26516 char *c = (char *) *sys_errlist
26517   ;
26518   return 0;
26519 }
26520 _ACEOF
26521 rm -f conftest.$ac_objext
26522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26523   (eval $ac_compile) 2>conftest.er1
26524   ac_status=$?
26525   grep -v '^ *+' conftest.er1 >conftest.err
26526   rm -f conftest.er1
26527   cat conftest.err >&5
26528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26529   (exit $ac_status); } &&
26530          { ac_try='test -z "$ac_c_werror_flag"
26531                          || test ! -s conftest.err'
26532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26533   (eval $ac_try) 2>&5
26534   ac_status=$?
26535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536   (exit $ac_status); }; } &&
26537          { ac_try='test -s conftest.$ac_objext'
26538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26539   (eval $ac_try) 2>&5
26540   ac_status=$?
26541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26542   (exit $ac_status); }; }; then
26543   ol_cv_dcl_sys_errlist=yes
26544         ol_cv_have_sys_errlist=yes
26545 else
26546   echo "$as_me: failed program was:" >&5
26547 sed 's/^/| /' conftest.$ac_ext >&5
26548
26549 ol_cv_dcl_sys_errlist=no
26550 fi
26551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26552 fi
26553 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26554 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26555 #
26556 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26557 if test $ol_cv_dcl_sys_errlist = no ; then
26558
26559 cat >>confdefs.h <<\_ACEOF
26560 #define DECL_SYS_ERRLIST 1
26561 _ACEOF
26562
26563
26564         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26565 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26566 if test "${ol_cv_have_sys_errlist+set}" = set; then
26567   echo $ECHO_N "(cached) $ECHO_C" >&6
26568 else
26569
26570                 cat >conftest.$ac_ext <<_ACEOF
26571 /* confdefs.h.  */
26572 _ACEOF
26573 cat confdefs.h >>conftest.$ac_ext
26574 cat >>conftest.$ac_ext <<_ACEOF
26575 /* end confdefs.h.  */
26576 #include <errno.h>
26577 int
26578 main ()
26579 {
26580 char *c = (char *) *sys_errlist
26581   ;
26582   return 0;
26583 }
26584 _ACEOF
26585 rm -f conftest.$ac_objext conftest$ac_exeext
26586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26587   (eval $ac_link) 2>conftest.er1
26588   ac_status=$?
26589   grep -v '^ *+' conftest.er1 >conftest.err
26590   rm -f conftest.er1
26591   cat conftest.err >&5
26592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593   (exit $ac_status); } &&
26594          { ac_try='test -z "$ac_c_werror_flag"
26595                          || test ! -s conftest.err'
26596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26597   (eval $ac_try) 2>&5
26598   ac_status=$?
26599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600   (exit $ac_status); }; } &&
26601          { ac_try='test -s conftest$ac_exeext'
26602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26603   (eval $ac_try) 2>&5
26604   ac_status=$?
26605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606   (exit $ac_status); }; }; then
26607   ol_cv_have_sys_errlist=yes
26608 else
26609   echo "$as_me: failed program was:" >&5
26610 sed 's/^/| /' conftest.$ac_ext >&5
26611
26612 ol_cv_have_sys_errlist=no
26613 fi
26614 rm -f conftest.err conftest.$ac_objext \
26615       conftest$ac_exeext conftest.$ac_ext
26616 fi
26617 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26618 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26619 fi
26620 if test $ol_cv_have_sys_errlist = yes ; then
26621
26622 cat >>confdefs.h <<\_ACEOF
26623 #define HAVE_SYS_ERRLIST 1
26624 _ACEOF
26625
26626 fi
26627
26628 fi
26629
26630
26631
26632 for ac_header in regex.h
26633 do
26634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26636   echo "$as_me:$LINENO: checking for $ac_header" >&5
26637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26639   echo $ECHO_N "(cached) $ECHO_C" >&6
26640 fi
26641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26643 else
26644   # Is the header compilable?
26645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26647 cat >conftest.$ac_ext <<_ACEOF
26648 /* confdefs.h.  */
26649 _ACEOF
26650 cat confdefs.h >>conftest.$ac_ext
26651 cat >>conftest.$ac_ext <<_ACEOF
26652 /* end confdefs.h.  */
26653 $ac_includes_default
26654 #include <$ac_header>
26655 _ACEOF
26656 rm -f conftest.$ac_objext
26657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26658   (eval $ac_compile) 2>conftest.er1
26659   ac_status=$?
26660   grep -v '^ *+' conftest.er1 >conftest.err
26661   rm -f conftest.er1
26662   cat conftest.err >&5
26663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664   (exit $ac_status); } &&
26665          { ac_try='test -z "$ac_c_werror_flag"
26666                          || test ! -s conftest.err'
26667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26668   (eval $ac_try) 2>&5
26669   ac_status=$?
26670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671   (exit $ac_status); }; } &&
26672          { ac_try='test -s conftest.$ac_objext'
26673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26674   (eval $ac_try) 2>&5
26675   ac_status=$?
26676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677   (exit $ac_status); }; }; then
26678   ac_header_compiler=yes
26679 else
26680   echo "$as_me: failed program was:" >&5
26681 sed 's/^/| /' conftest.$ac_ext >&5
26682
26683 ac_header_compiler=no
26684 fi
26685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26687 echo "${ECHO_T}$ac_header_compiler" >&6
26688
26689 # Is the header present?
26690 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26692 cat >conftest.$ac_ext <<_ACEOF
26693 /* confdefs.h.  */
26694 _ACEOF
26695 cat confdefs.h >>conftest.$ac_ext
26696 cat >>conftest.$ac_ext <<_ACEOF
26697 /* end confdefs.h.  */
26698 #include <$ac_header>
26699 _ACEOF
26700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26701   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26702   ac_status=$?
26703   grep -v '^ *+' conftest.er1 >conftest.err
26704   rm -f conftest.er1
26705   cat conftest.err >&5
26706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707   (exit $ac_status); } >/dev/null; then
26708   if test -s conftest.err; then
26709     ac_cpp_err=$ac_c_preproc_warn_flag
26710     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26711   else
26712     ac_cpp_err=
26713   fi
26714 else
26715   ac_cpp_err=yes
26716 fi
26717 if test -z "$ac_cpp_err"; then
26718   ac_header_preproc=yes
26719 else
26720   echo "$as_me: failed program was:" >&5
26721 sed 's/^/| /' conftest.$ac_ext >&5
26722
26723   ac_header_preproc=no
26724 fi
26725 rm -f conftest.err conftest.$ac_ext
26726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26727 echo "${ECHO_T}$ac_header_preproc" >&6
26728
26729 # So?  What about this header?
26730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26731   yes:no: )
26732     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26734     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26735 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26736     ac_header_preproc=yes
26737     ;;
26738   no:yes:* )
26739     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26741     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26742 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26743     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26744 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26745     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26746 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26747     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26749     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26750 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26751     (
26752       cat <<\_ASBOX
26753 ## ------------------------------------------ ##
26754 ## Report this to the AC_PACKAGE_NAME lists.  ##
26755 ## ------------------------------------------ ##
26756 _ASBOX
26757     ) |
26758       sed "s/^/$as_me: WARNING:     /" >&2
26759     ;;
26760 esac
26761 echo "$as_me:$LINENO: checking for $ac_header" >&5
26762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26764   echo $ECHO_N "(cached) $ECHO_C" >&6
26765 else
26766   eval "$as_ac_Header=\$ac_header_preproc"
26767 fi
26768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26770
26771 fi
26772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26773   cat >>confdefs.h <<_ACEOF
26774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26775 _ACEOF
26776
26777 fi
26778
26779 done
26780
26781 if test "$ac_cv_header_regex_h" != yes ; then
26782         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26783 echo "$as_me: error: POSIX regex.h required." >&2;}
26784    { (exit 1); exit 1; }; }
26785 fi
26786 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26787 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26788 if test "${ac_cv_search_regfree+set}" = set; then
26789   echo $ECHO_N "(cached) $ECHO_C" >&6
26790 else
26791   ac_func_search_save_LIBS=$LIBS
26792 ac_cv_search_regfree=no
26793 cat >conftest.$ac_ext <<_ACEOF
26794 /* confdefs.h.  */
26795 _ACEOF
26796 cat confdefs.h >>conftest.$ac_ext
26797 cat >>conftest.$ac_ext <<_ACEOF
26798 /* end confdefs.h.  */
26799
26800 /* Override any gcc2 internal prototype to avoid an error.  */
26801 #ifdef __cplusplus
26802 extern "C"
26803 #endif
26804 /* We use char because int might match the return type of a gcc2
26805    builtin and then its argument prototype would still apply.  */
26806 char regfree ();
26807 int
26808 main ()
26809 {
26810 regfree ();
26811   ;
26812   return 0;
26813 }
26814 _ACEOF
26815 rm -f conftest.$ac_objext conftest$ac_exeext
26816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26817   (eval $ac_link) 2>conftest.er1
26818   ac_status=$?
26819   grep -v '^ *+' conftest.er1 >conftest.err
26820   rm -f conftest.er1
26821   cat conftest.err >&5
26822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823   (exit $ac_status); } &&
26824          { ac_try='test -z "$ac_c_werror_flag"
26825                          || test ! -s conftest.err'
26826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26827   (eval $ac_try) 2>&5
26828   ac_status=$?
26829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830   (exit $ac_status); }; } &&
26831          { ac_try='test -s conftest$ac_exeext'
26832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833   (eval $ac_try) 2>&5
26834   ac_status=$?
26835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836   (exit $ac_status); }; }; then
26837   ac_cv_search_regfree="none required"
26838 else
26839   echo "$as_me: failed program was:" >&5
26840 sed 's/^/| /' conftest.$ac_ext >&5
26841
26842 fi
26843 rm -f conftest.err conftest.$ac_objext \
26844       conftest$ac_exeext conftest.$ac_ext
26845 if test "$ac_cv_search_regfree" = no; then
26846   for ac_lib in regex gnuregex; do
26847     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26848     cat >conftest.$ac_ext <<_ACEOF
26849 /* confdefs.h.  */
26850 _ACEOF
26851 cat confdefs.h >>conftest.$ac_ext
26852 cat >>conftest.$ac_ext <<_ACEOF
26853 /* end confdefs.h.  */
26854
26855 /* Override any gcc2 internal prototype to avoid an error.  */
26856 #ifdef __cplusplus
26857 extern "C"
26858 #endif
26859 /* We use char because int might match the return type of a gcc2
26860    builtin and then its argument prototype would still apply.  */
26861 char regfree ();
26862 int
26863 main ()
26864 {
26865 regfree ();
26866   ;
26867   return 0;
26868 }
26869 _ACEOF
26870 rm -f conftest.$ac_objext conftest$ac_exeext
26871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26872   (eval $ac_link) 2>conftest.er1
26873   ac_status=$?
26874   grep -v '^ *+' conftest.er1 >conftest.err
26875   rm -f conftest.er1
26876   cat conftest.err >&5
26877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878   (exit $ac_status); } &&
26879          { ac_try='test -z "$ac_c_werror_flag"
26880                          || test ! -s conftest.err'
26881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882   (eval $ac_try) 2>&5
26883   ac_status=$?
26884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885   (exit $ac_status); }; } &&
26886          { ac_try='test -s conftest$ac_exeext'
26887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26888   (eval $ac_try) 2>&5
26889   ac_status=$?
26890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891   (exit $ac_status); }; }; then
26892   ac_cv_search_regfree="-l$ac_lib"
26893 break
26894 else
26895   echo "$as_me: failed program was:" >&5
26896 sed 's/^/| /' conftest.$ac_ext >&5
26897
26898 fi
26899 rm -f conftest.err conftest.$ac_objext \
26900       conftest$ac_exeext conftest.$ac_ext
26901   done
26902 fi
26903 LIBS=$ac_func_search_save_LIBS
26904 fi
26905 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26906 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26907 if test "$ac_cv_search_regfree" != no; then
26908   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26909   :
26910 else
26911   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26912 echo "$as_me: error: POSIX regex required." >&2;}
26913    { (exit 1); exit 1; }; }
26914 fi
26915
26916
26917
26918 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26919 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26920 if test "${ol_cv_c_posix_regex+set}" = set; then
26921   echo $ECHO_N "(cached) $ECHO_C" >&6
26922 else
26923
26924         if test "$cross_compiling" = yes; then
26925   ol_cv_c_posix_regex=cross
26926 else
26927   cat >conftest.$ac_ext <<_ACEOF
26928 /* confdefs.h.  */
26929 _ACEOF
26930 cat confdefs.h >>conftest.$ac_ext
26931 cat >>conftest.$ac_ext <<_ACEOF
26932 /* end confdefs.h.  */
26933
26934 #include <sys/types.h>
26935 #include <regex.h>
26936 static char *pattern, *string;
26937 main()
26938 {
26939         int rc;
26940         regex_t re;
26941
26942         pattern = "^A";
26943
26944         if(regcomp(&re, pattern, 0)) {
26945                 return -1;
26946         }
26947
26948         string = "ALL MATCH";
26949
26950         rc = regexec(&re, string, 0, (void*)0, 0);
26951
26952         regfree(&re);
26953
26954         return rc;
26955 }
26956 _ACEOF
26957 rm -f conftest$ac_exeext
26958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26959   (eval $ac_link) 2>&5
26960   ac_status=$?
26961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26964   (eval $ac_try) 2>&5
26965   ac_status=$?
26966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26967   (exit $ac_status); }; }; then
26968   ol_cv_c_posix_regex=yes
26969 else
26970   echo "$as_me: program exited with status $ac_status" >&5
26971 echo "$as_me: failed program was:" >&5
26972 sed 's/^/| /' conftest.$ac_ext >&5
26973
26974 ( exit $ac_status )
26975 ol_cv_c_posix_regex=no
26976 fi
26977 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26978 fi
26979 fi
26980 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26981 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26982
26983 if test "$ol_cv_c_posix_regex" = no ; then
26984         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26985 echo "$as_me: error: broken POSIX regex!" >&2;}
26986    { (exit 1); exit 1; }; }
26987 fi
26988
26989
26990 have_uuid=no
26991
26992 for ac_header in sys/uuid.h
26993 do
26994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26996   echo "$as_me:$LINENO: checking for $ac_header" >&5
26997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26999   echo $ECHO_N "(cached) $ECHO_C" >&6
27000 fi
27001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27003 else
27004   # Is the header compilable?
27005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27007 cat >conftest.$ac_ext <<_ACEOF
27008 /* confdefs.h.  */
27009 _ACEOF
27010 cat confdefs.h >>conftest.$ac_ext
27011 cat >>conftest.$ac_ext <<_ACEOF
27012 /* end confdefs.h.  */
27013 $ac_includes_default
27014 #include <$ac_header>
27015 _ACEOF
27016 rm -f conftest.$ac_objext
27017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27018   (eval $ac_compile) 2>conftest.er1
27019   ac_status=$?
27020   grep -v '^ *+' conftest.er1 >conftest.err
27021   rm -f conftest.er1
27022   cat conftest.err >&5
27023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024   (exit $ac_status); } &&
27025          { ac_try='test -z "$ac_c_werror_flag"
27026                          || test ! -s conftest.err'
27027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27028   (eval $ac_try) 2>&5
27029   ac_status=$?
27030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031   (exit $ac_status); }; } &&
27032          { ac_try='test -s conftest.$ac_objext'
27033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27034   (eval $ac_try) 2>&5
27035   ac_status=$?
27036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037   (exit $ac_status); }; }; then
27038   ac_header_compiler=yes
27039 else
27040   echo "$as_me: failed program was:" >&5
27041 sed 's/^/| /' conftest.$ac_ext >&5
27042
27043 ac_header_compiler=no
27044 fi
27045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27047 echo "${ECHO_T}$ac_header_compiler" >&6
27048
27049 # Is the header present?
27050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27052 cat >conftest.$ac_ext <<_ACEOF
27053 /* confdefs.h.  */
27054 _ACEOF
27055 cat confdefs.h >>conftest.$ac_ext
27056 cat >>conftest.$ac_ext <<_ACEOF
27057 /* end confdefs.h.  */
27058 #include <$ac_header>
27059 _ACEOF
27060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27062   ac_status=$?
27063   grep -v '^ *+' conftest.er1 >conftest.err
27064   rm -f conftest.er1
27065   cat conftest.err >&5
27066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067   (exit $ac_status); } >/dev/null; then
27068   if test -s conftest.err; then
27069     ac_cpp_err=$ac_c_preproc_warn_flag
27070     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27071   else
27072     ac_cpp_err=
27073   fi
27074 else
27075   ac_cpp_err=yes
27076 fi
27077 if test -z "$ac_cpp_err"; then
27078   ac_header_preproc=yes
27079 else
27080   echo "$as_me: failed program was:" >&5
27081 sed 's/^/| /' conftest.$ac_ext >&5
27082
27083   ac_header_preproc=no
27084 fi
27085 rm -f conftest.err conftest.$ac_ext
27086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27087 echo "${ECHO_T}$ac_header_preproc" >&6
27088
27089 # So?  What about this header?
27090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27091   yes:no: )
27092     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27096     ac_header_preproc=yes
27097     ;;
27098   no:yes:* )
27099     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27101     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27102 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27103     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27105     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27106 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27109     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27111     (
27112       cat <<\_ASBOX
27113 ## ------------------------------------------ ##
27114 ## Report this to the AC_PACKAGE_NAME lists.  ##
27115 ## ------------------------------------------ ##
27116 _ASBOX
27117     ) |
27118       sed "s/^/$as_me: WARNING:     /" >&2
27119     ;;
27120 esac
27121 echo "$as_me:$LINENO: checking for $ac_header" >&5
27122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27124   echo $ECHO_N "(cached) $ECHO_C" >&6
27125 else
27126   eval "$as_ac_Header=\$ac_header_preproc"
27127 fi
27128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27130
27131 fi
27132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27133   cat >>confdefs.h <<_ACEOF
27134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27135 _ACEOF
27136
27137 fi
27138
27139 done
27140
27141 if test $ac_cv_header_sys_uuid_h = yes ; then
27142         save_LIBS="$LIBS"
27143         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
27144 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
27145 if test "${ac_cv_search_uuid_to_str+set}" = set; then
27146   echo $ECHO_N "(cached) $ECHO_C" >&6
27147 else
27148   ac_func_search_save_LIBS=$LIBS
27149 ac_cv_search_uuid_to_str=no
27150 cat >conftest.$ac_ext <<_ACEOF
27151 /* confdefs.h.  */
27152 _ACEOF
27153 cat confdefs.h >>conftest.$ac_ext
27154 cat >>conftest.$ac_ext <<_ACEOF
27155 /* end confdefs.h.  */
27156
27157 /* Override any gcc2 internal prototype to avoid an error.  */
27158 #ifdef __cplusplus
27159 extern "C"
27160 #endif
27161 /* We use char because int might match the return type of a gcc2
27162    builtin and then its argument prototype would still apply.  */
27163 char uuid_to_str ();
27164 int
27165 main ()
27166 {
27167 uuid_to_str ();
27168   ;
27169   return 0;
27170 }
27171 _ACEOF
27172 rm -f conftest.$ac_objext conftest$ac_exeext
27173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27174   (eval $ac_link) 2>conftest.er1
27175   ac_status=$?
27176   grep -v '^ *+' conftest.er1 >conftest.err
27177   rm -f conftest.er1
27178   cat conftest.err >&5
27179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180   (exit $ac_status); } &&
27181          { ac_try='test -z "$ac_c_werror_flag"
27182                          || test ! -s conftest.err'
27183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27184   (eval $ac_try) 2>&5
27185   ac_status=$?
27186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187   (exit $ac_status); }; } &&
27188          { ac_try='test -s conftest$ac_exeext'
27189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27190   (eval $ac_try) 2>&5
27191   ac_status=$?
27192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193   (exit $ac_status); }; }; then
27194   ac_cv_search_uuid_to_str="none required"
27195 else
27196   echo "$as_me: failed program was:" >&5
27197 sed 's/^/| /' conftest.$ac_ext >&5
27198
27199 fi
27200 rm -f conftest.err conftest.$ac_objext \
27201       conftest$ac_exeext conftest.$ac_ext
27202 if test "$ac_cv_search_uuid_to_str" = no; then
27203   for ac_lib in uuid; do
27204     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27205     cat >conftest.$ac_ext <<_ACEOF
27206 /* confdefs.h.  */
27207 _ACEOF
27208 cat confdefs.h >>conftest.$ac_ext
27209 cat >>conftest.$ac_ext <<_ACEOF
27210 /* end confdefs.h.  */
27211
27212 /* Override any gcc2 internal prototype to avoid an error.  */
27213 #ifdef __cplusplus
27214 extern "C"
27215 #endif
27216 /* We use char because int might match the return type of a gcc2
27217    builtin and then its argument prototype would still apply.  */
27218 char uuid_to_str ();
27219 int
27220 main ()
27221 {
27222 uuid_to_str ();
27223   ;
27224   return 0;
27225 }
27226 _ACEOF
27227 rm -f conftest.$ac_objext conftest$ac_exeext
27228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27229   (eval $ac_link) 2>conftest.er1
27230   ac_status=$?
27231   grep -v '^ *+' conftest.er1 >conftest.err
27232   rm -f conftest.er1
27233   cat conftest.err >&5
27234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27235   (exit $ac_status); } &&
27236          { ac_try='test -z "$ac_c_werror_flag"
27237                          || test ! -s conftest.err'
27238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27239   (eval $ac_try) 2>&5
27240   ac_status=$?
27241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242   (exit $ac_status); }; } &&
27243          { ac_try='test -s conftest$ac_exeext'
27244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27245   (eval $ac_try) 2>&5
27246   ac_status=$?
27247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248   (exit $ac_status); }; }; then
27249   ac_cv_search_uuid_to_str="-l$ac_lib"
27250 break
27251 else
27252   echo "$as_me: failed program was:" >&5
27253 sed 's/^/| /' conftest.$ac_ext >&5
27254
27255 fi
27256 rm -f conftest.err conftest.$ac_objext \
27257       conftest$ac_exeext conftest.$ac_ext
27258   done
27259 fi
27260 LIBS=$ac_func_search_save_LIBS
27261 fi
27262 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
27263 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
27264 if test "$ac_cv_search_uuid_to_str" != no; then
27265   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
27266   have_uuid=yes
27267 else
27268   :
27269 fi
27270
27271         LIBS="$save_LIBS"
27272
27273         if test have_uuid = yes ; then
27274
27275 cat >>confdefs.h <<\_ACEOF
27276 #define HAVE_UUID_TO_STR 1
27277 _ACEOF
27278
27279
27280                 test "$ac_cv_search_uuid_to_str" = "none required" || \
27281                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
27282         fi
27283 fi
27284
27285 if test $have_uuid = no ; then
27286         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27287 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27288         save_LIBS="$LIBS"
27289         LIBS="$LIBS -lrpcrt4"
27290         cat >conftest.$ac_ext <<_ACEOF
27291 /* confdefs.h.  */
27292 _ACEOF
27293 cat confdefs.h >>conftest.$ac_ext
27294 cat >>conftest.$ac_ext <<_ACEOF
27295 /* end confdefs.h.  */
27296
27297                 int __stdcall UuidCreate(void *);
27298                 int __stdcall UuidToStringA(void *,void **);
27299
27300 int
27301 main ()
27302 {
27303
27304                 UuidCreate(0);
27305                 UuidToStringA(0,0);
27306
27307   ;
27308   return 0;
27309 }
27310 _ACEOF
27311 rm -f conftest.$ac_objext conftest$ac_exeext
27312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27313   (eval $ac_link) 2>conftest.er1
27314   ac_status=$?
27315   grep -v '^ *+' conftest.er1 >conftest.err
27316   rm -f conftest.er1
27317   cat conftest.err >&5
27318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319   (exit $ac_status); } &&
27320          { ac_try='test -z "$ac_c_werror_flag"
27321                          || test ! -s conftest.err'
27322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27323   (eval $ac_try) 2>&5
27324   ac_status=$?
27325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326   (exit $ac_status); }; } &&
27327          { ac_try='test -s conftest$ac_exeext'
27328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27329   (eval $ac_try) 2>&5
27330   ac_status=$?
27331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332   (exit $ac_status); }; }; then
27333   need_rpcrt=yes
27334 else
27335   echo "$as_me: failed program was:" >&5
27336 sed 's/^/| /' conftest.$ac_ext >&5
27337
27338 need_rpcrt=no
27339 fi
27340 rm -f conftest.err conftest.$ac_objext \
27341       conftest$ac_exeext conftest.$ac_ext
27342         if test $need_rpcrt = yes; then
27343                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27344         fi
27345         LIBS="$save_LIBS"
27346         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27347 echo "${ECHO_T}$need_rpcrt" >&6
27348 fi
27349
27350 ol_cv_lib_resolver=no
27351 if test $ol_cv_lib_resolver = no ; then
27352         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27353 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27354 if test "${ol_cv_resolver_none+set}" = set; then
27355   echo $ECHO_N "(cached) $ECHO_C" >&6
27356 else
27357
27358         ol_RESOLVER_LIB=
27359         ol_LIBS=$LIBS
27360         LIBS="$ol_RESOLVER_LIB $LIBS"
27361
27362         cat >conftest.$ac_ext <<_ACEOF
27363 /* confdefs.h.  */
27364 _ACEOF
27365 cat confdefs.h >>conftest.$ac_ext
27366 cat >>conftest.$ac_ext <<_ACEOF
27367 /* end confdefs.h.  */
27368
27369 #ifdef HAVE_SYS_TYPES_H
27370 #       include <sys/types.h>
27371 #endif
27372 #include <netinet/in.h>
27373 #ifdef HAVE_ARPA_NAMESER_H
27374 #       include <arpa/nameser.h>
27375 #endif
27376 #ifdef HAVE_RESOLV_H
27377 #       include <resolv.h>
27378 #endif
27379
27380 int
27381 main ()
27382 {
27383 {
27384         int len, status;
27385         char *request = NULL;
27386         unsigned char reply[64*1024];
27387         unsigned char host[64*1024];
27388         unsigned char *p;
27389
27390 #ifdef NS_HFIXEDSZ
27391         /* Bind 8/9 interface */
27392         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27393 #else
27394         /* Bind 4 interface */
27395 # ifndef T_SRV
27396 #  define T_SRV 33
27397 # endif
27398         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27399 #endif
27400         p = reply;
27401 #ifdef NS_HFIXEDSZ
27402         /* Bind 8/9 interface */
27403         p += NS_HFIXEDSZ;
27404 #elif defined(HFIXEDSZ)
27405         /* Bind 4 interface w/ HFIXEDSZ */
27406         p += HFIXEDSZ;
27407 #else
27408         /* Bind 4 interface w/o HFIXEDSZ */
27409         p += sizeof(HEADER);
27410 #endif
27411         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27412 }
27413   ;
27414   return 0;
27415 }
27416 _ACEOF
27417 rm -f conftest.$ac_objext conftest$ac_exeext
27418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27419   (eval $ac_link) 2>conftest.er1
27420   ac_status=$?
27421   grep -v '^ *+' conftest.er1 >conftest.err
27422   rm -f conftest.er1
27423   cat conftest.err >&5
27424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425   (exit $ac_status); } &&
27426          { ac_try='test -z "$ac_c_werror_flag"
27427                          || test ! -s conftest.err'
27428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27429   (eval $ac_try) 2>&5
27430   ac_status=$?
27431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432   (exit $ac_status); }; } &&
27433          { ac_try='test -s conftest$ac_exeext'
27434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27435   (eval $ac_try) 2>&5
27436   ac_status=$?
27437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438   (exit $ac_status); }; }; then
27439   ol_cv_resolver_none=yes
27440 else
27441   echo "$as_me: failed program was:" >&5
27442 sed 's/^/| /' conftest.$ac_ext >&5
27443
27444 ol_cv_resolver_none=no
27445 fi
27446 rm -f conftest.err conftest.$ac_objext \
27447       conftest$ac_exeext conftest.$ac_ext
27448
27449         LIBS="$ol_LIBS"
27450
27451 fi
27452 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27453 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27454
27455         if test $ol_cv_resolver_none = yes ; then
27456                 ol_cv_lib_resolver=yes
27457         fi
27458 fi
27459
27460 if test $ol_cv_lib_resolver = no ; then
27461         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27462 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27463 if test "${ol_cv_resolver_resolv+set}" = set; then
27464   echo $ECHO_N "(cached) $ECHO_C" >&6
27465 else
27466
27467         ol_RESOLVER_LIB=-lresolv
27468         ol_LIBS=$LIBS
27469         LIBS="$ol_RESOLVER_LIB $LIBS"
27470
27471         cat >conftest.$ac_ext <<_ACEOF
27472 /* confdefs.h.  */
27473 _ACEOF
27474 cat confdefs.h >>conftest.$ac_ext
27475 cat >>conftest.$ac_ext <<_ACEOF
27476 /* end confdefs.h.  */
27477
27478 #ifdef HAVE_SYS_TYPES_H
27479 #       include <sys/types.h>
27480 #endif
27481 #include <netinet/in.h>
27482 #ifdef HAVE_ARPA_NAMESER_H
27483 #       include <arpa/nameser.h>
27484 #endif
27485 #ifdef HAVE_RESOLV_H
27486 #       include <resolv.h>
27487 #endif
27488
27489 int
27490 main ()
27491 {
27492 {
27493         int len, status;
27494         char *request = NULL;
27495         unsigned char reply[64*1024];
27496         unsigned char host[64*1024];
27497         unsigned char *p;
27498
27499 #ifdef NS_HFIXEDSZ
27500         /* Bind 8/9 interface */
27501         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27502 #else
27503         /* Bind 4 interface */
27504 # ifndef T_SRV
27505 #  define T_SRV 33
27506 # endif
27507         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27508 #endif
27509         p = reply;
27510 #ifdef NS_HFIXEDSZ
27511         /* Bind 8/9 interface */
27512         p += NS_HFIXEDSZ;
27513 #elif defined(HFIXEDSZ)
27514         /* Bind 4 interface w/ HFIXEDSZ */
27515         p += HFIXEDSZ;
27516 #else
27517         /* Bind 4 interface w/o HFIXEDSZ */
27518         p += sizeof(HEADER);
27519 #endif
27520         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27521 }
27522   ;
27523   return 0;
27524 }
27525 _ACEOF
27526 rm -f conftest.$ac_objext conftest$ac_exeext
27527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27528   (eval $ac_link) 2>conftest.er1
27529   ac_status=$?
27530   grep -v '^ *+' conftest.er1 >conftest.err
27531   rm -f conftest.er1
27532   cat conftest.err >&5
27533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534   (exit $ac_status); } &&
27535          { ac_try='test -z "$ac_c_werror_flag"
27536                          || test ! -s conftest.err'
27537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27538   (eval $ac_try) 2>&5
27539   ac_status=$?
27540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541   (exit $ac_status); }; } &&
27542          { ac_try='test -s conftest$ac_exeext'
27543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27544   (eval $ac_try) 2>&5
27545   ac_status=$?
27546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27547   (exit $ac_status); }; }; then
27548   ol_cv_resolver_resolv=yes
27549 else
27550   echo "$as_me: failed program was:" >&5
27551 sed 's/^/| /' conftest.$ac_ext >&5
27552
27553 ol_cv_resolver_resolv=no
27554 fi
27555 rm -f conftest.err conftest.$ac_objext \
27556       conftest$ac_exeext conftest.$ac_ext
27557
27558         LIBS="$ol_LIBS"
27559
27560 fi
27561 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27562 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27563
27564         if test $ol_cv_resolver_resolv = yes ; then
27565                 ol_cv_lib_resolver=-lresolv
27566         fi
27567 fi
27568
27569 if test $ol_cv_lib_resolver = no ; then
27570         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27571 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27572 if test "${ol_cv_resolver_bind+set}" = set; then
27573   echo $ECHO_N "(cached) $ECHO_C" >&6
27574 else
27575
27576         ol_RESOLVER_LIB=-lbind
27577         ol_LIBS=$LIBS
27578         LIBS="$ol_RESOLVER_LIB $LIBS"
27579
27580         cat >conftest.$ac_ext <<_ACEOF
27581 /* confdefs.h.  */
27582 _ACEOF
27583 cat confdefs.h >>conftest.$ac_ext
27584 cat >>conftest.$ac_ext <<_ACEOF
27585 /* end confdefs.h.  */
27586
27587 #ifdef HAVE_SYS_TYPES_H
27588 #       include <sys/types.h>
27589 #endif
27590 #include <netinet/in.h>
27591 #ifdef HAVE_ARPA_NAMESER_H
27592 #       include <arpa/nameser.h>
27593 #endif
27594 #ifdef HAVE_RESOLV_H
27595 #       include <resolv.h>
27596 #endif
27597
27598 int
27599 main ()
27600 {
27601 {
27602         int len, status;
27603         char *request = NULL;
27604         unsigned char reply[64*1024];
27605         unsigned char host[64*1024];
27606         unsigned char *p;
27607
27608 #ifdef NS_HFIXEDSZ
27609         /* Bind 8/9 interface */
27610         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27611 #else
27612         /* Bind 4 interface */
27613 # ifndef T_SRV
27614 #  define T_SRV 33
27615 # endif
27616         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27617 #endif
27618         p = reply;
27619 #ifdef NS_HFIXEDSZ
27620         /* Bind 8/9 interface */
27621         p += NS_HFIXEDSZ;
27622 #elif defined(HFIXEDSZ)
27623         /* Bind 4 interface w/ HFIXEDSZ */
27624         p += HFIXEDSZ;
27625 #else
27626         /* Bind 4 interface w/o HFIXEDSZ */
27627         p += sizeof(HEADER);
27628 #endif
27629         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27630 }
27631   ;
27632   return 0;
27633 }
27634 _ACEOF
27635 rm -f conftest.$ac_objext conftest$ac_exeext
27636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27637   (eval $ac_link) 2>conftest.er1
27638   ac_status=$?
27639   grep -v '^ *+' conftest.er1 >conftest.err
27640   rm -f conftest.er1
27641   cat conftest.err >&5
27642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643   (exit $ac_status); } &&
27644          { ac_try='test -z "$ac_c_werror_flag"
27645                          || test ! -s conftest.err'
27646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27647   (eval $ac_try) 2>&5
27648   ac_status=$?
27649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650   (exit $ac_status); }; } &&
27651          { ac_try='test -s conftest$ac_exeext'
27652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27653   (eval $ac_try) 2>&5
27654   ac_status=$?
27655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656   (exit $ac_status); }; }; then
27657   ol_cv_resolver_bind=yes
27658 else
27659   echo "$as_me: failed program was:" >&5
27660 sed 's/^/| /' conftest.$ac_ext >&5
27661
27662 ol_cv_resolver_bind=no
27663 fi
27664 rm -f conftest.err conftest.$ac_objext \
27665       conftest$ac_exeext conftest.$ac_ext
27666
27667         LIBS="$ol_LIBS"
27668
27669 fi
27670 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27671 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27672
27673         if test $ol_cv_resolver_bind = yes ; then
27674                 ol_cv_lib_resolver=-lbind
27675         fi
27676 fi
27677
27678
27679
27680 ol_link_dnssrv=no
27681 if test "$ol_cv_lib_resolver" != no ; then
27682
27683 cat >>confdefs.h <<\_ACEOF
27684 #define HAVE_RES_QUERY 1
27685 _ACEOF
27686
27687
27688         if test "$ol_enable_dnssrv" != no ; then
27689                 ol_link_dnssrv=yes
27690         fi
27691
27692         if test "$ol_cv_lib_resolver" != yes ; then
27693                 LIBS="$ol_cv_lib_resolver $LIBS"
27694         fi
27695 fi
27696
27697 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27698         if test "$ol_link_dnssrv" = no ; then
27699                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27700 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27701    { (exit 1); exit 1; }; }
27702         fi
27703 else
27704         ol_enable_dnssrv=no
27705 fi
27706
27707
27708 for ac_func in hstrerror
27709 do
27710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27711 echo "$as_me:$LINENO: checking for $ac_func" >&5
27712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27713 if eval "test \"\${$as_ac_var+set}\" = set"; then
27714   echo $ECHO_N "(cached) $ECHO_C" >&6
27715 else
27716   cat >conftest.$ac_ext <<_ACEOF
27717 /* confdefs.h.  */
27718 _ACEOF
27719 cat confdefs.h >>conftest.$ac_ext
27720 cat >>conftest.$ac_ext <<_ACEOF
27721 /* end confdefs.h.  */
27722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27724 #define $ac_func innocuous_$ac_func
27725
27726 /* System header to define __stub macros and hopefully few prototypes,
27727     which can conflict with char $ac_func (); below.
27728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27729     <limits.h> exists even on freestanding compilers.  */
27730
27731 #ifdef __STDC__
27732 # include <limits.h>
27733 #else
27734 # include <assert.h>
27735 #endif
27736
27737 #undef $ac_func
27738
27739 /* Override any gcc2 internal prototype to avoid an error.  */
27740 #ifdef __cplusplus
27741 extern "C"
27742 {
27743 #endif
27744 /* We use char because int might match the return type of a gcc2
27745    builtin and then its argument prototype would still apply.  */
27746 char $ac_func ();
27747 /* The GNU C library defines this for functions which it implements
27748     to always fail with ENOSYS.  Some functions are actually named
27749     something starting with __ and the normal name is an alias.  */
27750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27751 choke me
27752 #else
27753 char (*f) () = $ac_func;
27754 #endif
27755 #ifdef __cplusplus
27756 }
27757 #endif
27758
27759 int
27760 main ()
27761 {
27762 return f != $ac_func;
27763   ;
27764   return 0;
27765 }
27766 _ACEOF
27767 rm -f conftest.$ac_objext conftest$ac_exeext
27768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27769   (eval $ac_link) 2>conftest.er1
27770   ac_status=$?
27771   grep -v '^ *+' conftest.er1 >conftest.err
27772   rm -f conftest.er1
27773   cat conftest.err >&5
27774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775   (exit $ac_status); } &&
27776          { ac_try='test -z "$ac_c_werror_flag"
27777                          || test ! -s conftest.err'
27778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27779   (eval $ac_try) 2>&5
27780   ac_status=$?
27781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782   (exit $ac_status); }; } &&
27783          { ac_try='test -s conftest$ac_exeext'
27784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27785   (eval $ac_try) 2>&5
27786   ac_status=$?
27787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788   (exit $ac_status); }; }; then
27789   eval "$as_ac_var=yes"
27790 else
27791   echo "$as_me: failed program was:" >&5
27792 sed 's/^/| /' conftest.$ac_ext >&5
27793
27794 eval "$as_ac_var=no"
27795 fi
27796 rm -f conftest.err conftest.$ac_objext \
27797       conftest$ac_exeext conftest.$ac_ext
27798 fi
27799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27801 if test `eval echo '${'$as_ac_var'}'` = yes; then
27802   cat >>confdefs.h <<_ACEOF
27803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27804 _ACEOF
27805
27806 fi
27807 done
27808
27809
27810
27811
27812
27813
27814 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27815 do
27816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27817 echo "$as_me:$LINENO: checking for $ac_func" >&5
27818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27819 if eval "test \"\${$as_ac_var+set}\" = set"; then
27820   echo $ECHO_N "(cached) $ECHO_C" >&6
27821 else
27822   cat >conftest.$ac_ext <<_ACEOF
27823 /* confdefs.h.  */
27824 _ACEOF
27825 cat confdefs.h >>conftest.$ac_ext
27826 cat >>conftest.$ac_ext <<_ACEOF
27827 /* end confdefs.h.  */
27828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27830 #define $ac_func innocuous_$ac_func
27831
27832 /* System header to define __stub macros and hopefully few prototypes,
27833     which can conflict with char $ac_func (); below.
27834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27835     <limits.h> exists even on freestanding compilers.  */
27836
27837 #ifdef __STDC__
27838 # include <limits.h>
27839 #else
27840 # include <assert.h>
27841 #endif
27842
27843 #undef $ac_func
27844
27845 /* Override any gcc2 internal prototype to avoid an error.  */
27846 #ifdef __cplusplus
27847 extern "C"
27848 {
27849 #endif
27850 /* We use char because int might match the return type of a gcc2
27851    builtin and then its argument prototype would still apply.  */
27852 char $ac_func ();
27853 /* The GNU C library defines this for functions which it implements
27854     to always fail with ENOSYS.  Some functions are actually named
27855     something starting with __ and the normal name is an alias.  */
27856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27857 choke me
27858 #else
27859 char (*f) () = $ac_func;
27860 #endif
27861 #ifdef __cplusplus
27862 }
27863 #endif
27864
27865 int
27866 main ()
27867 {
27868 return f != $ac_func;
27869   ;
27870   return 0;
27871 }
27872 _ACEOF
27873 rm -f conftest.$ac_objext conftest$ac_exeext
27874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27875   (eval $ac_link) 2>conftest.er1
27876   ac_status=$?
27877   grep -v '^ *+' conftest.er1 >conftest.err
27878   rm -f conftest.er1
27879   cat conftest.err >&5
27880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881   (exit $ac_status); } &&
27882          { ac_try='test -z "$ac_c_werror_flag"
27883                          || test ! -s conftest.err'
27884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27885   (eval $ac_try) 2>&5
27886   ac_status=$?
27887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888   (exit $ac_status); }; } &&
27889          { ac_try='test -s conftest$ac_exeext'
27890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27891   (eval $ac_try) 2>&5
27892   ac_status=$?
27893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894   (exit $ac_status); }; }; then
27895   eval "$as_ac_var=yes"
27896 else
27897   echo "$as_me: failed program was:" >&5
27898 sed 's/^/| /' conftest.$ac_ext >&5
27899
27900 eval "$as_ac_var=no"
27901 fi
27902 rm -f conftest.err conftest.$ac_objext \
27903       conftest$ac_exeext conftest.$ac_ext
27904 fi
27905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27907 if test `eval echo '${'$as_ac_var'}'` = yes; then
27908   cat >>confdefs.h <<_ACEOF
27909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27910 _ACEOF
27911
27912 fi
27913 done
27914
27915
27916 ol_link_ipv6=no
27917 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27918         if test $ol_enable_ipv6 = yes ; then
27919                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27920 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27921    { (exit 1); exit 1; }; }
27922         fi
27923 elif test $ol_enable_ipv6 != no ; then
27924         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27925 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27926 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27927   echo $ECHO_N "(cached) $ECHO_C" >&6
27928 else
27929
27930                 cat >conftest.$ac_ext <<_ACEOF
27931 /* confdefs.h.  */
27932 _ACEOF
27933 cat confdefs.h >>conftest.$ac_ext
27934 cat >>conftest.$ac_ext <<_ACEOF
27935 /* end confdefs.h.  */
27936
27937 #                       include <netinet/in.h>
27938 #                       ifdef INET6_ADDRSTRLEN
27939                                 __has_inet6_addrstrlen__;
27940 #                       endif
27941
27942 _ACEOF
27943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27944   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27945   ol_cv_inet6_addrstrlen=yes
27946 else
27947   ol_cv_inet6_addrstrlen=no
27948 fi
27949 rm -f conftest*
27950
27951 fi
27952 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27953 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27954
27955
27956         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27957 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27958 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27959   echo $ECHO_N "(cached) $ECHO_C" >&6
27960 else
27961
27962                 cat >conftest.$ac_ext <<_ACEOF
27963 /* confdefs.h.  */
27964 _ACEOF
27965 cat confdefs.h >>conftest.$ac_ext
27966 cat >>conftest.$ac_ext <<_ACEOF
27967 /* end confdefs.h.  */
27968
27969 #include <sys/types.h>
27970 #include <sys/socket.h>
27971
27972 int
27973 main ()
27974 {
27975
27976                         struct sockaddr_storage ss;
27977
27978   ;
27979   return 0;
27980 }
27981 _ACEOF
27982 rm -f conftest.$ac_objext
27983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27984   (eval $ac_compile) 2>conftest.er1
27985   ac_status=$?
27986   grep -v '^ *+' conftest.er1 >conftest.err
27987   rm -f conftest.er1
27988   cat conftest.err >&5
27989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990   (exit $ac_status); } &&
27991          { ac_try='test -z "$ac_c_werror_flag"
27992                          || test ! -s conftest.err'
27993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27994   (eval $ac_try) 2>&5
27995   ac_status=$?
27996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997   (exit $ac_status); }; } &&
27998          { ac_try='test -s conftest.$ac_objext'
27999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28000   (eval $ac_try) 2>&5
28001   ac_status=$?
28002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003   (exit $ac_status); }; }; then
28004   ol_cv_struct_sockaddr_storage=yes
28005 else
28006   echo "$as_me: failed program was:" >&5
28007 sed 's/^/| /' conftest.$ac_ext >&5
28008
28009 ol_cv_struct_sockaddr_storage=no
28010 fi
28011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28012 fi
28013 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
28014 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
28015
28016         if test $ol_cv_inet6_addrstrlen = yes \
28017                 -a $ol_cv_struct_sockaddr_storage = yes ; then
28018                 ol_link_ipv6=yes
28019         elif test $ol_enable_ipv6 = yes \
28020                         -a $ol_cv_inet6_addrstrlen = no ; then
28021                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
28022 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
28023    { (exit 1); exit 1; }; }
28024         elif test $ol_enable_ipv6 = yes \
28025                         -a $ol_cv_struct_sockaddr_storage = no ; then
28026                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
28027 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
28028    { (exit 1); exit 1; }; }
28029         fi
28030 fi
28031
28032 if test $ol_enable_local != no ; then
28033
28034 for ac_header in sys/un.h
28035 do
28036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28038   echo "$as_me:$LINENO: checking for $ac_header" >&5
28039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28041   echo $ECHO_N "(cached) $ECHO_C" >&6
28042 fi
28043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28045 else
28046   # Is the header compilable?
28047 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28049 cat >conftest.$ac_ext <<_ACEOF
28050 /* confdefs.h.  */
28051 _ACEOF
28052 cat confdefs.h >>conftest.$ac_ext
28053 cat >>conftest.$ac_ext <<_ACEOF
28054 /* end confdefs.h.  */
28055 $ac_includes_default
28056 #include <$ac_header>
28057 _ACEOF
28058 rm -f conftest.$ac_objext
28059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28060   (eval $ac_compile) 2>conftest.er1
28061   ac_status=$?
28062   grep -v '^ *+' conftest.er1 >conftest.err
28063   rm -f conftest.er1
28064   cat conftest.err >&5
28065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066   (exit $ac_status); } &&
28067          { ac_try='test -z "$ac_c_werror_flag"
28068                          || test ! -s conftest.err'
28069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28070   (eval $ac_try) 2>&5
28071   ac_status=$?
28072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073   (exit $ac_status); }; } &&
28074          { ac_try='test -s conftest.$ac_objext'
28075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28076   (eval $ac_try) 2>&5
28077   ac_status=$?
28078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079   (exit $ac_status); }; }; then
28080   ac_header_compiler=yes
28081 else
28082   echo "$as_me: failed program was:" >&5
28083 sed 's/^/| /' conftest.$ac_ext >&5
28084
28085 ac_header_compiler=no
28086 fi
28087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28088 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28089 echo "${ECHO_T}$ac_header_compiler" >&6
28090
28091 # Is the header present?
28092 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28094 cat >conftest.$ac_ext <<_ACEOF
28095 /* confdefs.h.  */
28096 _ACEOF
28097 cat confdefs.h >>conftest.$ac_ext
28098 cat >>conftest.$ac_ext <<_ACEOF
28099 /* end confdefs.h.  */
28100 #include <$ac_header>
28101 _ACEOF
28102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28103   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28104   ac_status=$?
28105   grep -v '^ *+' conftest.er1 >conftest.err
28106   rm -f conftest.er1
28107   cat conftest.err >&5
28108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28109   (exit $ac_status); } >/dev/null; then
28110   if test -s conftest.err; then
28111     ac_cpp_err=$ac_c_preproc_warn_flag
28112     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28113   else
28114     ac_cpp_err=
28115   fi
28116 else
28117   ac_cpp_err=yes
28118 fi
28119 if test -z "$ac_cpp_err"; then
28120   ac_header_preproc=yes
28121 else
28122   echo "$as_me: failed program was:" >&5
28123 sed 's/^/| /' conftest.$ac_ext >&5
28124
28125   ac_header_preproc=no
28126 fi
28127 rm -f conftest.err conftest.$ac_ext
28128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28129 echo "${ECHO_T}$ac_header_preproc" >&6
28130
28131 # So?  What about this header?
28132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28133   yes:no: )
28134     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28136     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28138     ac_header_preproc=yes
28139     ;;
28140   no:yes:* )
28141     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28143     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28144 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28145     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28147     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28148 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28151     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28153     (
28154       cat <<\_ASBOX
28155 ## ------------------------------------------ ##
28156 ## Report this to the AC_PACKAGE_NAME lists.  ##
28157 ## ------------------------------------------ ##
28158 _ASBOX
28159     ) |
28160       sed "s/^/$as_me: WARNING:     /" >&2
28161     ;;
28162 esac
28163 echo "$as_me:$LINENO: checking for $ac_header" >&5
28164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28166   echo $ECHO_N "(cached) $ECHO_C" >&6
28167 else
28168   eval "$as_ac_Header=\$ac_header_preproc"
28169 fi
28170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28172
28173 fi
28174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28175   cat >>confdefs.h <<_ACEOF
28176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28177 _ACEOF
28178
28179 fi
28180
28181 done
28182
28183
28184         if test $ol_enable_local = auto ; then
28185                 ol_enable_local=$ac_cv_header_sys_un_h
28186         elif test $ac_cv_header_sys_un_h = no ; then
28187                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
28188 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
28189    { (exit 1); exit 1; }; }
28190         fi
28191 fi
28192
28193 ol_link_kbind=no
28194 ol_link_krb5=no
28195 ol_link_krb4=no
28196
28197 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28198         -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
28199         -o $ol_with_kerberos = k425 ; then
28200
28201
28202 for ac_header in krb5.h
28203 do
28204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28206   echo "$as_me:$LINENO: checking for $ac_header" >&5
28207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28209   echo $ECHO_N "(cached) $ECHO_C" >&6
28210 fi
28211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28213 else
28214   # Is the header compilable?
28215 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28217 cat >conftest.$ac_ext <<_ACEOF
28218 /* confdefs.h.  */
28219 _ACEOF
28220 cat confdefs.h >>conftest.$ac_ext
28221 cat >>conftest.$ac_ext <<_ACEOF
28222 /* end confdefs.h.  */
28223 $ac_includes_default
28224 #include <$ac_header>
28225 _ACEOF
28226 rm -f conftest.$ac_objext
28227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28228   (eval $ac_compile) 2>conftest.er1
28229   ac_status=$?
28230   grep -v '^ *+' conftest.er1 >conftest.err
28231   rm -f conftest.er1
28232   cat conftest.err >&5
28233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234   (exit $ac_status); } &&
28235          { ac_try='test -z "$ac_c_werror_flag"
28236                          || test ! -s conftest.err'
28237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28238   (eval $ac_try) 2>&5
28239   ac_status=$?
28240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28241   (exit $ac_status); }; } &&
28242          { ac_try='test -s conftest.$ac_objext'
28243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28244   (eval $ac_try) 2>&5
28245   ac_status=$?
28246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247   (exit $ac_status); }; }; then
28248   ac_header_compiler=yes
28249 else
28250   echo "$as_me: failed program was:" >&5
28251 sed 's/^/| /' conftest.$ac_ext >&5
28252
28253 ac_header_compiler=no
28254 fi
28255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28257 echo "${ECHO_T}$ac_header_compiler" >&6
28258
28259 # Is the header present?
28260 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28262 cat >conftest.$ac_ext <<_ACEOF
28263 /* confdefs.h.  */
28264 _ACEOF
28265 cat confdefs.h >>conftest.$ac_ext
28266 cat >>conftest.$ac_ext <<_ACEOF
28267 /* end confdefs.h.  */
28268 #include <$ac_header>
28269 _ACEOF
28270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28271   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28272   ac_status=$?
28273   grep -v '^ *+' conftest.er1 >conftest.err
28274   rm -f conftest.er1
28275   cat conftest.err >&5
28276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277   (exit $ac_status); } >/dev/null; then
28278   if test -s conftest.err; then
28279     ac_cpp_err=$ac_c_preproc_warn_flag
28280     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28281   else
28282     ac_cpp_err=
28283   fi
28284 else
28285   ac_cpp_err=yes
28286 fi
28287 if test -z "$ac_cpp_err"; then
28288   ac_header_preproc=yes
28289 else
28290   echo "$as_me: failed program was:" >&5
28291 sed 's/^/| /' conftest.$ac_ext >&5
28292
28293   ac_header_preproc=no
28294 fi
28295 rm -f conftest.err conftest.$ac_ext
28296 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28297 echo "${ECHO_T}$ac_header_preproc" >&6
28298
28299 # So?  What about this header?
28300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28301   yes:no: )
28302     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28304     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28306     ac_header_preproc=yes
28307     ;;
28308   no:yes:* )
28309     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28311     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28312 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28313     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28315     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28316 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28317     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28319     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28321     (
28322       cat <<\_ASBOX
28323 ## ------------------------------------------ ##
28324 ## Report this to the AC_PACKAGE_NAME lists.  ##
28325 ## ------------------------------------------ ##
28326 _ASBOX
28327     ) |
28328       sed "s/^/$as_me: WARNING:     /" >&2
28329     ;;
28330 esac
28331 echo "$as_me:$LINENO: checking for $ac_header" >&5
28332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28334   echo $ECHO_N "(cached) $ECHO_C" >&6
28335 else
28336   eval "$as_ac_Header=\$ac_header_preproc"
28337 fi
28338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28340
28341 fi
28342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28343   cat >>confdefs.h <<_ACEOF
28344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28345 _ACEOF
28346
28347 fi
28348
28349 done
28350
28351
28352         if test $ac_cv_header_krb5_h = yes ; then
28353
28354 for ac_header in heim_err.h
28355 do
28356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28358   echo "$as_me:$LINENO: checking for $ac_header" >&5
28359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28361   echo $ECHO_N "(cached) $ECHO_C" >&6
28362 fi
28363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28365 else
28366   # Is the header compilable?
28367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28369 cat >conftest.$ac_ext <<_ACEOF
28370 /* confdefs.h.  */
28371 _ACEOF
28372 cat confdefs.h >>conftest.$ac_ext
28373 cat >>conftest.$ac_ext <<_ACEOF
28374 /* end confdefs.h.  */
28375 $ac_includes_default
28376 #include <$ac_header>
28377 _ACEOF
28378 rm -f conftest.$ac_objext
28379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28380   (eval $ac_compile) 2>conftest.er1
28381   ac_status=$?
28382   grep -v '^ *+' conftest.er1 >conftest.err
28383   rm -f conftest.er1
28384   cat conftest.err >&5
28385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386   (exit $ac_status); } &&
28387          { ac_try='test -z "$ac_c_werror_flag"
28388                          || test ! -s conftest.err'
28389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28390   (eval $ac_try) 2>&5
28391   ac_status=$?
28392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393   (exit $ac_status); }; } &&
28394          { ac_try='test -s conftest.$ac_objext'
28395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28396   (eval $ac_try) 2>&5
28397   ac_status=$?
28398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399   (exit $ac_status); }; }; then
28400   ac_header_compiler=yes
28401 else
28402   echo "$as_me: failed program was:" >&5
28403 sed 's/^/| /' conftest.$ac_ext >&5
28404
28405 ac_header_compiler=no
28406 fi
28407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28409 echo "${ECHO_T}$ac_header_compiler" >&6
28410
28411 # Is the header present?
28412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28414 cat >conftest.$ac_ext <<_ACEOF
28415 /* confdefs.h.  */
28416 _ACEOF
28417 cat confdefs.h >>conftest.$ac_ext
28418 cat >>conftest.$ac_ext <<_ACEOF
28419 /* end confdefs.h.  */
28420 #include <$ac_header>
28421 _ACEOF
28422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28423   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28424   ac_status=$?
28425   grep -v '^ *+' conftest.er1 >conftest.err
28426   rm -f conftest.er1
28427   cat conftest.err >&5
28428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429   (exit $ac_status); } >/dev/null; then
28430   if test -s conftest.err; then
28431     ac_cpp_err=$ac_c_preproc_warn_flag
28432     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28433   else
28434     ac_cpp_err=
28435   fi
28436 else
28437   ac_cpp_err=yes
28438 fi
28439 if test -z "$ac_cpp_err"; then
28440   ac_header_preproc=yes
28441 else
28442   echo "$as_me: failed program was:" >&5
28443 sed 's/^/| /' conftest.$ac_ext >&5
28444
28445   ac_header_preproc=no
28446 fi
28447 rm -f conftest.err conftest.$ac_ext
28448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28449 echo "${ECHO_T}$ac_header_preproc" >&6
28450
28451 # So?  What about this header?
28452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28453   yes:no: )
28454     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28458     ac_header_preproc=yes
28459     ;;
28460   no:yes:* )
28461     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28463     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28464 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28465     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28467     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28468 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28471     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28473     (
28474       cat <<\_ASBOX
28475 ## ------------------------------------------ ##
28476 ## Report this to the AC_PACKAGE_NAME lists.  ##
28477 ## ------------------------------------------ ##
28478 _ASBOX
28479     ) |
28480       sed "s/^/$as_me: WARNING:     /" >&2
28481     ;;
28482 esac
28483 echo "$as_me:$LINENO: checking for $ac_header" >&5
28484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28486   echo $ECHO_N "(cached) $ECHO_C" >&6
28487 else
28488   eval "$as_ac_Header=\$ac_header_preproc"
28489 fi
28490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28492
28493 fi
28494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28495   cat >>confdefs.h <<_ACEOF
28496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28497 _ACEOF
28498
28499 fi
28500
28501 done
28502
28503                 if test $ac_cv_header_heim_err_h = yes ; then
28504                         krb5_impl=heimdal
28505                 else
28506                         krb5_impl=mit
28507                 fi
28508
28509                 if test $krb5_impl = mit; then
28510                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28511 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28512 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28513   echo $ECHO_N "(cached) $ECHO_C" >&6
28514 else
28515   ac_check_lib_save_LIBS=$LIBS
28516 LIBS="-lk5crypto  $LIBS"
28517 cat >conftest.$ac_ext <<_ACEOF
28518 /* confdefs.h.  */
28519 _ACEOF
28520 cat confdefs.h >>conftest.$ac_ext
28521 cat >>conftest.$ac_ext <<_ACEOF
28522 /* end confdefs.h.  */
28523
28524
28525 int
28526 main ()
28527 {
28528 main ();
28529   ;
28530   return 0;
28531 }
28532 _ACEOF
28533 rm -f conftest.$ac_objext conftest$ac_exeext
28534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28535   (eval $ac_link) 2>conftest.er1
28536   ac_status=$?
28537   grep -v '^ *+' conftest.er1 >conftest.err
28538   rm -f conftest.er1
28539   cat conftest.err >&5
28540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541   (exit $ac_status); } &&
28542          { ac_try='test -z "$ac_c_werror_flag"
28543                          || test ! -s conftest.err'
28544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28545   (eval $ac_try) 2>&5
28546   ac_status=$?
28547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28548   (exit $ac_status); }; } &&
28549          { ac_try='test -s conftest$ac_exeext'
28550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28551   (eval $ac_try) 2>&5
28552   ac_status=$?
28553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28554   (exit $ac_status); }; }; then
28555   ac_cv_lib_k5crypto_main=yes
28556 else
28557   echo "$as_me: failed program was:" >&5
28558 sed 's/^/| /' conftest.$ac_ext >&5
28559
28560 ac_cv_lib_k5crypto_main=no
28561 fi
28562 rm -f conftest.err conftest.$ac_objext \
28563       conftest$ac_exeext conftest.$ac_ext
28564 LIBS=$ac_check_lib_save_LIBS
28565 fi
28566 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28567 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28568 if test $ac_cv_lib_k5crypto_main = yes; then
28569   krb5crypto=k5crypto
28570 else
28571   krb5crypto=crypto
28572 fi
28573
28574
28575                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28576 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28577 if test "${ac_cv_lib_krb5_main+set}" = set; then
28578   echo $ECHO_N "(cached) $ECHO_C" >&6
28579 else
28580   ac_check_lib_save_LIBS=$LIBS
28581 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28582 cat >conftest.$ac_ext <<_ACEOF
28583 /* confdefs.h.  */
28584 _ACEOF
28585 cat confdefs.h >>conftest.$ac_ext
28586 cat >>conftest.$ac_ext <<_ACEOF
28587 /* end confdefs.h.  */
28588
28589
28590 int
28591 main ()
28592 {
28593 main ();
28594   ;
28595   return 0;
28596 }
28597 _ACEOF
28598 rm -f conftest.$ac_objext conftest$ac_exeext
28599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28600   (eval $ac_link) 2>conftest.er1
28601   ac_status=$?
28602   grep -v '^ *+' conftest.er1 >conftest.err
28603   rm -f conftest.er1
28604   cat conftest.err >&5
28605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606   (exit $ac_status); } &&
28607          { ac_try='test -z "$ac_c_werror_flag"
28608                          || test ! -s conftest.err'
28609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28610   (eval $ac_try) 2>&5
28611   ac_status=$?
28612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613   (exit $ac_status); }; } &&
28614          { ac_try='test -s conftest$ac_exeext'
28615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28616   (eval $ac_try) 2>&5
28617   ac_status=$?
28618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619   (exit $ac_status); }; }; then
28620   ac_cv_lib_krb5_main=yes
28621 else
28622   echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28624
28625 ac_cv_lib_krb5_main=no
28626 fi
28627 rm -f conftest.err conftest.$ac_objext \
28628       conftest$ac_exeext conftest.$ac_ext
28629 LIBS=$ac_check_lib_save_LIBS
28630 fi
28631 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28632 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28633 if test $ac_cv_lib_krb5_main = yes; then
28634   have_krb5=yes
28635                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28636 else
28637   have_krb5=no
28638 fi
28639
28640
28641                 elif test $krb5_impl = heimdal; then
28642                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
28643 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28644 if test "${ac_cv_lib_des_main+set}" = set; then
28645   echo $ECHO_N "(cached) $ECHO_C" >&6
28646 else
28647   ac_check_lib_save_LIBS=$LIBS
28648 LIBS="-ldes  $LIBS"
28649 cat >conftest.$ac_ext <<_ACEOF
28650 /* confdefs.h.  */
28651 _ACEOF
28652 cat confdefs.h >>conftest.$ac_ext
28653 cat >>conftest.$ac_ext <<_ACEOF
28654 /* end confdefs.h.  */
28655
28656
28657 int
28658 main ()
28659 {
28660 main ();
28661   ;
28662   return 0;
28663 }
28664 _ACEOF
28665 rm -f conftest.$ac_objext conftest$ac_exeext
28666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28667   (eval $ac_link) 2>conftest.er1
28668   ac_status=$?
28669   grep -v '^ *+' conftest.er1 >conftest.err
28670   rm -f conftest.er1
28671   cat conftest.err >&5
28672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673   (exit $ac_status); } &&
28674          { ac_try='test -z "$ac_c_werror_flag"
28675                          || test ! -s conftest.err'
28676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28677   (eval $ac_try) 2>&5
28678   ac_status=$?
28679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28680   (exit $ac_status); }; } &&
28681          { ac_try='test -s conftest$ac_exeext'
28682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28683   (eval $ac_try) 2>&5
28684   ac_status=$?
28685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686   (exit $ac_status); }; }; then
28687   ac_cv_lib_des_main=yes
28688 else
28689   echo "$as_me: failed program was:" >&5
28690 sed 's/^/| /' conftest.$ac_ext >&5
28691
28692 ac_cv_lib_des_main=no
28693 fi
28694 rm -f conftest.err conftest.$ac_objext \
28695       conftest$ac_exeext conftest.$ac_ext
28696 LIBS=$ac_check_lib_save_LIBS
28697 fi
28698 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28699 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28700 if test $ac_cv_lib_des_main = yes; then
28701   krb5crypto=des
28702 else
28703   krb5crypto=crypto
28704 fi
28705
28706
28707                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28708 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28709 if test "${ac_cv_lib_krb5_main+set}" = set; then
28710   echo $ECHO_N "(cached) $ECHO_C" >&6
28711 else
28712   ac_check_lib_save_LIBS=$LIBS
28713 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28714 cat >conftest.$ac_ext <<_ACEOF
28715 /* confdefs.h.  */
28716 _ACEOF
28717 cat confdefs.h >>conftest.$ac_ext
28718 cat >>conftest.$ac_ext <<_ACEOF
28719 /* end confdefs.h.  */
28720
28721
28722 int
28723 main ()
28724 {
28725 main ();
28726   ;
28727   return 0;
28728 }
28729 _ACEOF
28730 rm -f conftest.$ac_objext conftest$ac_exeext
28731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28732   (eval $ac_link) 2>conftest.er1
28733   ac_status=$?
28734   grep -v '^ *+' conftest.er1 >conftest.err
28735   rm -f conftest.er1
28736   cat conftest.err >&5
28737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738   (exit $ac_status); } &&
28739          { ac_try='test -z "$ac_c_werror_flag"
28740                          || test ! -s conftest.err'
28741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28742   (eval $ac_try) 2>&5
28743   ac_status=$?
28744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745   (exit $ac_status); }; } &&
28746          { ac_try='test -s conftest$ac_exeext'
28747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28748   (eval $ac_try) 2>&5
28749   ac_status=$?
28750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751   (exit $ac_status); }; }; then
28752   ac_cv_lib_krb5_main=yes
28753 else
28754   echo "$as_me: failed program was:" >&5
28755 sed 's/^/| /' conftest.$ac_ext >&5
28756
28757 ac_cv_lib_krb5_main=no
28758 fi
28759 rm -f conftest.err conftest.$ac_objext \
28760       conftest$ac_exeext conftest.$ac_ext
28761 LIBS=$ac_check_lib_save_LIBS
28762 fi
28763 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28764 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28765 if test $ac_cv_lib_krb5_main = yes; then
28766   have_krb5=yes
28767                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28768 else
28769   have_krb5=no
28770 fi
28771
28772
28773
28774 cat >>confdefs.h <<\_ACEOF
28775 #define HAVE_HEIMDAL_KERBEROS 1
28776 _ACEOF
28777
28778
28779                 else
28780                         have_krb5=no
28781                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28782 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28783                 fi
28784
28785                 if test $have_krb5 = yes ; then
28786                         ol_link_krb5=yes
28787
28788
28789 cat >>confdefs.h <<\_ACEOF
28790 #define HAVE_KRB5 1
28791 _ACEOF
28792
28793
28794                         if test $ol_with_kerberos = k5only ; then
28795                                 ol_with_kerberos=found
28796                         fi
28797
28798                 elif test $ol_with_kerberos != auto ; then
28799                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28800 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28801    { (exit 1); exit 1; }; }
28802                 fi
28803
28804         fi
28805 fi
28806
28807 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28808         $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28809
28810
28811
28812 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28813 do
28814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28816   echo "$as_me:$LINENO: checking for $ac_header" >&5
28817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28819   echo $ECHO_N "(cached) $ECHO_C" >&6
28820 fi
28821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28823 else
28824   # Is the header compilable?
28825 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28827 cat >conftest.$ac_ext <<_ACEOF
28828 /* confdefs.h.  */
28829 _ACEOF
28830 cat confdefs.h >>conftest.$ac_ext
28831 cat >>conftest.$ac_ext <<_ACEOF
28832 /* end confdefs.h.  */
28833 $ac_includes_default
28834 #include <$ac_header>
28835 _ACEOF
28836 rm -f conftest.$ac_objext
28837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28838   (eval $ac_compile) 2>conftest.er1
28839   ac_status=$?
28840   grep -v '^ *+' conftest.er1 >conftest.err
28841   rm -f conftest.er1
28842   cat conftest.err >&5
28843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844   (exit $ac_status); } &&
28845          { ac_try='test -z "$ac_c_werror_flag"
28846                          || test ! -s conftest.err'
28847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28848   (eval $ac_try) 2>&5
28849   ac_status=$?
28850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28851   (exit $ac_status); }; } &&
28852          { ac_try='test -s conftest.$ac_objext'
28853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28854   (eval $ac_try) 2>&5
28855   ac_status=$?
28856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857   (exit $ac_status); }; }; then
28858   ac_header_compiler=yes
28859 else
28860   echo "$as_me: failed program was:" >&5
28861 sed 's/^/| /' conftest.$ac_ext >&5
28862
28863 ac_header_compiler=no
28864 fi
28865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28867 echo "${ECHO_T}$ac_header_compiler" >&6
28868
28869 # Is the header present?
28870 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28872 cat >conftest.$ac_ext <<_ACEOF
28873 /* confdefs.h.  */
28874 _ACEOF
28875 cat confdefs.h >>conftest.$ac_ext
28876 cat >>conftest.$ac_ext <<_ACEOF
28877 /* end confdefs.h.  */
28878 #include <$ac_header>
28879 _ACEOF
28880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28881   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28882   ac_status=$?
28883   grep -v '^ *+' conftest.er1 >conftest.err
28884   rm -f conftest.er1
28885   cat conftest.err >&5
28886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887   (exit $ac_status); } >/dev/null; then
28888   if test -s conftest.err; then
28889     ac_cpp_err=$ac_c_preproc_warn_flag
28890     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28891   else
28892     ac_cpp_err=
28893   fi
28894 else
28895   ac_cpp_err=yes
28896 fi
28897 if test -z "$ac_cpp_err"; then
28898   ac_header_preproc=yes
28899 else
28900   echo "$as_me: failed program was:" >&5
28901 sed 's/^/| /' conftest.$ac_ext >&5
28902
28903   ac_header_preproc=no
28904 fi
28905 rm -f conftest.err conftest.$ac_ext
28906 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28907 echo "${ECHO_T}$ac_header_preproc" >&6
28908
28909 # So?  What about this header?
28910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28911   yes:no: )
28912     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28916     ac_header_preproc=yes
28917     ;;
28918   no:yes:* )
28919     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28921     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28922 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28923     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28925     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28926 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28929     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28931     (
28932       cat <<\_ASBOX
28933 ## ------------------------------------------ ##
28934 ## Report this to the AC_PACKAGE_NAME lists.  ##
28935 ## ------------------------------------------ ##
28936 _ASBOX
28937     ) |
28938       sed "s/^/$as_me: WARNING:     /" >&2
28939     ;;
28940 esac
28941 echo "$as_me:$LINENO: checking for $ac_header" >&5
28942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28944   echo $ECHO_N "(cached) $ECHO_C" >&6
28945 else
28946   eval "$as_ac_Header=\$ac_header_preproc"
28947 fi
28948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28950
28951 fi
28952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28953   cat >>confdefs.h <<_ACEOF
28954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28955 _ACEOF
28956
28957 fi
28958
28959 done
28960
28961
28962         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28963                 if test $krb5_impl = mit; then
28964                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28965 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28966 if test "${ac_cv_lib_krb4_main+set}" = set; then
28967   echo $ECHO_N "(cached) $ECHO_C" >&6
28968 else
28969   ac_check_lib_save_LIBS=$LIBS
28970 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28971 cat >conftest.$ac_ext <<_ACEOF
28972 /* confdefs.h.  */
28973 _ACEOF
28974 cat confdefs.h >>conftest.$ac_ext
28975 cat >>conftest.$ac_ext <<_ACEOF
28976 /* end confdefs.h.  */
28977
28978
28979 int
28980 main ()
28981 {
28982 main ();
28983   ;
28984   return 0;
28985 }
28986 _ACEOF
28987 rm -f conftest.$ac_objext conftest$ac_exeext
28988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28989   (eval $ac_link) 2>conftest.er1
28990   ac_status=$?
28991   grep -v '^ *+' conftest.er1 >conftest.err
28992   rm -f conftest.er1
28993   cat conftest.err >&5
28994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28995   (exit $ac_status); } &&
28996          { ac_try='test -z "$ac_c_werror_flag"
28997                          || test ! -s conftest.err'
28998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28999   (eval $ac_try) 2>&5
29000   ac_status=$?
29001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002   (exit $ac_status); }; } &&
29003          { ac_try='test -s conftest$ac_exeext'
29004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29005   (eval $ac_try) 2>&5
29006   ac_status=$?
29007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008   (exit $ac_status); }; }; then
29009   ac_cv_lib_krb4_main=yes
29010 else
29011   echo "$as_me: failed program was:" >&5
29012 sed 's/^/| /' conftest.$ac_ext >&5
29013
29014 ac_cv_lib_krb4_main=no
29015 fi
29016 rm -f conftest.err conftest.$ac_objext \
29017       conftest$ac_exeext conftest.$ac_ext
29018 LIBS=$ac_check_lib_save_LIBS
29019 fi
29020 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
29021 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
29022 if test $ac_cv_lib_krb4_main = yes; then
29023   have_k425=yes
29024                                 KRB4_LIBS="-lkrb4 -ldes425"
29025 else
29026   have_k425=no
29027 fi
29028
29029
29030                 elif test $krb5_impl = heimdal; then
29031                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
29032 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
29033 if test "${ac_cv_lib_krb4_main+set}" = set; then
29034   echo $ECHO_N "(cached) $ECHO_C" >&6
29035 else
29036   ac_check_lib_save_LIBS=$LIBS
29037 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
29038 cat >conftest.$ac_ext <<_ACEOF
29039 /* confdefs.h.  */
29040 _ACEOF
29041 cat confdefs.h >>conftest.$ac_ext
29042 cat >>conftest.$ac_ext <<_ACEOF
29043 /* end confdefs.h.  */
29044
29045
29046 int
29047 main ()
29048 {
29049 main ();
29050   ;
29051   return 0;
29052 }
29053 _ACEOF
29054 rm -f conftest.$ac_objext conftest$ac_exeext
29055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29056   (eval $ac_link) 2>conftest.er1
29057   ac_status=$?
29058   grep -v '^ *+' conftest.er1 >conftest.err
29059   rm -f conftest.er1
29060   cat conftest.err >&5
29061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062   (exit $ac_status); } &&
29063          { ac_try='test -z "$ac_c_werror_flag"
29064                          || test ! -s conftest.err'
29065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29066   (eval $ac_try) 2>&5
29067   ac_status=$?
29068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069   (exit $ac_status); }; } &&
29070          { ac_try='test -s conftest$ac_exeext'
29071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29072   (eval $ac_try) 2>&5
29073   ac_status=$?
29074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075   (exit $ac_status); }; }; then
29076   ac_cv_lib_krb4_main=yes
29077 else
29078   echo "$as_me: failed program was:" >&5
29079 sed 's/^/| /' conftest.$ac_ext >&5
29080
29081 ac_cv_lib_krb4_main=no
29082 fi
29083 rm -f conftest.err conftest.$ac_objext \
29084       conftest$ac_exeext conftest.$ac_ext
29085 LIBS=$ac_check_lib_save_LIBS
29086 fi
29087 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
29088 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
29089 if test $ac_cv_lib_krb4_main = yes; then
29090   have_k425=yes
29091                                 KRB4_LIBS="-lkrb4"
29092 else
29093   have_k425=no
29094 fi
29095
29096
29097                 else
29098                         have_425=no
29099                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
29100 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
29101                 fi
29102
29103                 if test $have_k425 = yes ; then
29104                         ol_with_kerberos=found
29105                         ol_link_krb4=yes
29106
29107
29108 cat >>confdefs.h <<\_ACEOF
29109 #define HAVE_KRB425 1
29110 _ACEOF
29111
29112
29113 cat >>confdefs.h <<\_ACEOF
29114 #define HAVE_KRB4 1
29115 _ACEOF
29116
29117
29118                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
29119 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
29120 if test "${ol_cv_var_des_debug+set}" = set; then
29121   echo $ECHO_N "(cached) $ECHO_C" >&6
29122 else
29123
29124                                                                 save_LIBS="$LIBS"
29125                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
29126                                 cat >conftest.$ac_ext <<_ACEOF
29127 /* confdefs.h.  */
29128 _ACEOF
29129 cat confdefs.h >>conftest.$ac_ext
29130 cat >>conftest.$ac_ext <<_ACEOF
29131 /* end confdefs.h.  */
29132
29133 #include <kerberosIV/krb.h>
29134 #include <kerberosIV/des.h>
29135 extern int des_debug;
29136
29137 int
29138 main ()
29139 {
29140
29141 des_debug = 1;
29142
29143   ;
29144   return 0;
29145 }
29146 _ACEOF
29147 rm -f conftest.$ac_objext conftest$ac_exeext
29148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29149   (eval $ac_link) 2>conftest.er1
29150   ac_status=$?
29151   grep -v '^ *+' conftest.er1 >conftest.err
29152   rm -f conftest.er1
29153   cat conftest.err >&5
29154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29155   (exit $ac_status); } &&
29156          { ac_try='test -z "$ac_c_werror_flag"
29157                          || test ! -s conftest.err'
29158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29159   (eval $ac_try) 2>&5
29160   ac_status=$?
29161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162   (exit $ac_status); }; } &&
29163          { ac_try='test -s conftest$ac_exeext'
29164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29165   (eval $ac_try) 2>&5
29166   ac_status=$?
29167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168   (exit $ac_status); }; }; then
29169   ol_cv_var_des_debug=yes
29170 else
29171   echo "$as_me: failed program was:" >&5
29172 sed 's/^/| /' conftest.$ac_ext >&5
29173
29174 ol_cv_var_des_debug=no
29175 fi
29176 rm -f conftest.err conftest.$ac_objext \
29177       conftest$ac_exeext conftest.$ac_ext
29178                                                                 LIBS="$save_LIBS"
29179
29180 fi
29181 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
29182 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
29183
29184                         if test $ol_cv_var_des_debug = yes ; then
29185
29186 cat >>confdefs.h <<\_ACEOF
29187 #define HAVE_DES_DEBUG 1
29188 _ACEOF
29189
29190                         fi
29191
29192                         LIBS="$save_LIBS"
29193                 fi
29194         fi
29195 fi
29196
29197 if test $ol_link_krb5 = yes ; then
29198         ol_with_kerberos=found
29199 fi
29200
29201 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
29202         -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
29203
29204
29205
29206
29207 for ac_header in krb.h des.h krb-archaeology.h
29208 do
29209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29211   echo "$as_me:$LINENO: checking for $ac_header" >&5
29212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29214   echo $ECHO_N "(cached) $ECHO_C" >&6
29215 fi
29216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29218 else
29219   # Is the header compilable?
29220 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29222 cat >conftest.$ac_ext <<_ACEOF
29223 /* confdefs.h.  */
29224 _ACEOF
29225 cat confdefs.h >>conftest.$ac_ext
29226 cat >>conftest.$ac_ext <<_ACEOF
29227 /* end confdefs.h.  */
29228 $ac_includes_default
29229 #include <$ac_header>
29230 _ACEOF
29231 rm -f conftest.$ac_objext
29232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29233   (eval $ac_compile) 2>conftest.er1
29234   ac_status=$?
29235   grep -v '^ *+' conftest.er1 >conftest.err
29236   rm -f conftest.er1
29237   cat conftest.err >&5
29238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239   (exit $ac_status); } &&
29240          { ac_try='test -z "$ac_c_werror_flag"
29241                          || test ! -s conftest.err'
29242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29243   (eval $ac_try) 2>&5
29244   ac_status=$?
29245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246   (exit $ac_status); }; } &&
29247          { ac_try='test -s conftest.$ac_objext'
29248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29249   (eval $ac_try) 2>&5
29250   ac_status=$?
29251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29252   (exit $ac_status); }; }; then
29253   ac_header_compiler=yes
29254 else
29255   echo "$as_me: failed program was:" >&5
29256 sed 's/^/| /' conftest.$ac_ext >&5
29257
29258 ac_header_compiler=no
29259 fi
29260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29262 echo "${ECHO_T}$ac_header_compiler" >&6
29263
29264 # Is the header present?
29265 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29267 cat >conftest.$ac_ext <<_ACEOF
29268 /* confdefs.h.  */
29269 _ACEOF
29270 cat confdefs.h >>conftest.$ac_ext
29271 cat >>conftest.$ac_ext <<_ACEOF
29272 /* end confdefs.h.  */
29273 #include <$ac_header>
29274 _ACEOF
29275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29276   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29277   ac_status=$?
29278   grep -v '^ *+' conftest.er1 >conftest.err
29279   rm -f conftest.er1
29280   cat conftest.err >&5
29281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282   (exit $ac_status); } >/dev/null; then
29283   if test -s conftest.err; then
29284     ac_cpp_err=$ac_c_preproc_warn_flag
29285     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29286   else
29287     ac_cpp_err=
29288   fi
29289 else
29290   ac_cpp_err=yes
29291 fi
29292 if test -z "$ac_cpp_err"; then
29293   ac_header_preproc=yes
29294 else
29295   echo "$as_me: failed program was:" >&5
29296 sed 's/^/| /' conftest.$ac_ext >&5
29297
29298   ac_header_preproc=no
29299 fi
29300 rm -f conftest.err conftest.$ac_ext
29301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29302 echo "${ECHO_T}$ac_header_preproc" >&6
29303
29304 # So?  What about this header?
29305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29306   yes:no: )
29307     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29310 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29311     ac_header_preproc=yes
29312     ;;
29313   no:yes:* )
29314     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29316     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29317 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29318     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29319 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29320     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29321 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29322     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29324     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29325 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29326     (
29327       cat <<\_ASBOX
29328 ## ------------------------------------------ ##
29329 ## Report this to the AC_PACKAGE_NAME lists.  ##
29330 ## ------------------------------------------ ##
29331 _ASBOX
29332     ) |
29333       sed "s/^/$as_me: WARNING:     /" >&2
29334     ;;
29335 esac
29336 echo "$as_me:$LINENO: checking for $ac_header" >&5
29337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29339   echo $ECHO_N "(cached) $ECHO_C" >&6
29340 else
29341   eval "$as_ac_Header=\$ac_header_preproc"
29342 fi
29343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29345
29346 fi
29347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29348   cat >>confdefs.h <<_ACEOF
29349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29350 _ACEOF
29351
29352 fi
29353
29354 done
29355
29356
29357         if test $ac_cv_header_krb_h = yes ; then
29358                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29359 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29360 if test "${ac_cv_lib_krb_main+set}" = set; then
29361   echo $ECHO_N "(cached) $ECHO_C" >&6
29362 else
29363   ac_check_lib_save_LIBS=$LIBS
29364 LIBS="-lkrb -ldes $LIBS"
29365 cat >conftest.$ac_ext <<_ACEOF
29366 /* confdefs.h.  */
29367 _ACEOF
29368 cat confdefs.h >>conftest.$ac_ext
29369 cat >>conftest.$ac_ext <<_ACEOF
29370 /* end confdefs.h.  */
29371
29372
29373 int
29374 main ()
29375 {
29376 main ();
29377   ;
29378   return 0;
29379 }
29380 _ACEOF
29381 rm -f conftest.$ac_objext conftest$ac_exeext
29382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29383   (eval $ac_link) 2>conftest.er1
29384   ac_status=$?
29385   grep -v '^ *+' conftest.er1 >conftest.err
29386   rm -f conftest.er1
29387   cat conftest.err >&5
29388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389   (exit $ac_status); } &&
29390          { ac_try='test -z "$ac_c_werror_flag"
29391                          || test ! -s conftest.err'
29392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29393   (eval $ac_try) 2>&5
29394   ac_status=$?
29395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396   (exit $ac_status); }; } &&
29397          { ac_try='test -s conftest$ac_exeext'
29398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29399   (eval $ac_try) 2>&5
29400   ac_status=$?
29401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29402   (exit $ac_status); }; }; then
29403   ac_cv_lib_krb_main=yes
29404 else
29405   echo "$as_me: failed program was:" >&5
29406 sed 's/^/| /' conftest.$ac_ext >&5
29407
29408 ac_cv_lib_krb_main=no
29409 fi
29410 rm -f conftest.err conftest.$ac_objext \
29411       conftest$ac_exeext conftest.$ac_ext
29412 LIBS=$ac_check_lib_save_LIBS
29413 fi
29414 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29415 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29416 if test $ac_cv_lib_krb_main = yes; then
29417   have_k4=yes
29418 else
29419   have_k4=no
29420 fi
29421
29422
29423                 if test $have_k4 = yes ; then
29424                         ol_with_kerberos=found
29425                         ol_link_krb4=yes
29426
29427
29428 cat >>confdefs.h <<\_ACEOF
29429 #define HAVE_KRB4 1
29430 _ACEOF
29431
29432
29433                         KRB4_LIBS="-lkrb -ldes"
29434
29435                         if test $ac_cv_header_krb_archaeology_h = yes ; then
29436
29437 cat >>confdefs.h <<\_ACEOF
29438 #define HAVE_KTH_KERBEROS 1
29439 _ACEOF
29440
29441                         fi
29442                 fi
29443         fi
29444 fi
29445
29446 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29447         ol_link_kbind=yes
29448
29449 elif test $ol_enable_kbind = yes ; then
29450         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29451 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29452    { (exit 1); exit 1; }; }
29453 fi
29454
29455 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29456
29457 cat >>confdefs.h <<\_ACEOF
29458 #define HAVE_KERBEROS 1
29459 _ACEOF
29460
29461
29462 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29463         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29464 echo "$as_me: error: Kerberos detection failed" >&2;}
29465    { (exit 1); exit 1; }; }
29466 fi
29467
29468
29469 ol_link_tls=no
29470 if test $ol_with_tls != no ; then
29471
29472
29473 for ac_header in openssl/ssl.h ssl.h
29474 do
29475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29477   echo "$as_me:$LINENO: checking for $ac_header" >&5
29478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29480   echo $ECHO_N "(cached) $ECHO_C" >&6
29481 fi
29482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29484 else
29485   # Is the header compilable?
29486 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29488 cat >conftest.$ac_ext <<_ACEOF
29489 /* confdefs.h.  */
29490 _ACEOF
29491 cat confdefs.h >>conftest.$ac_ext
29492 cat >>conftest.$ac_ext <<_ACEOF
29493 /* end confdefs.h.  */
29494 $ac_includes_default
29495 #include <$ac_header>
29496 _ACEOF
29497 rm -f conftest.$ac_objext
29498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29499   (eval $ac_compile) 2>conftest.er1
29500   ac_status=$?
29501   grep -v '^ *+' conftest.er1 >conftest.err
29502   rm -f conftest.er1
29503   cat conftest.err >&5
29504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505   (exit $ac_status); } &&
29506          { ac_try='test -z "$ac_c_werror_flag"
29507                          || test ! -s conftest.err'
29508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29509   (eval $ac_try) 2>&5
29510   ac_status=$?
29511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512   (exit $ac_status); }; } &&
29513          { ac_try='test -s conftest.$ac_objext'
29514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29515   (eval $ac_try) 2>&5
29516   ac_status=$?
29517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518   (exit $ac_status); }; }; then
29519   ac_header_compiler=yes
29520 else
29521   echo "$as_me: failed program was:" >&5
29522 sed 's/^/| /' conftest.$ac_ext >&5
29523
29524 ac_header_compiler=no
29525 fi
29526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29527 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29528 echo "${ECHO_T}$ac_header_compiler" >&6
29529
29530 # Is the header present?
29531 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29533 cat >conftest.$ac_ext <<_ACEOF
29534 /* confdefs.h.  */
29535 _ACEOF
29536 cat confdefs.h >>conftest.$ac_ext
29537 cat >>conftest.$ac_ext <<_ACEOF
29538 /* end confdefs.h.  */
29539 #include <$ac_header>
29540 _ACEOF
29541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29542   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29543   ac_status=$?
29544   grep -v '^ *+' conftest.er1 >conftest.err
29545   rm -f conftest.er1
29546   cat conftest.err >&5
29547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548   (exit $ac_status); } >/dev/null; then
29549   if test -s conftest.err; then
29550     ac_cpp_err=$ac_c_preproc_warn_flag
29551     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29552   else
29553     ac_cpp_err=
29554   fi
29555 else
29556   ac_cpp_err=yes
29557 fi
29558 if test -z "$ac_cpp_err"; then
29559   ac_header_preproc=yes
29560 else
29561   echo "$as_me: failed program was:" >&5
29562 sed 's/^/| /' conftest.$ac_ext >&5
29563
29564   ac_header_preproc=no
29565 fi
29566 rm -f conftest.err conftest.$ac_ext
29567 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29568 echo "${ECHO_T}$ac_header_preproc" >&6
29569
29570 # So?  What about this header?
29571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29572   yes:no: )
29573     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29575     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29576 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29577     ac_header_preproc=yes
29578     ;;
29579   no:yes:* )
29580     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29582     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29583 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29584     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29585 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29586     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29587 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29588     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29590     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29591 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29592     (
29593       cat <<\_ASBOX
29594 ## ------------------------------------------ ##
29595 ## Report this to the AC_PACKAGE_NAME lists.  ##
29596 ## ------------------------------------------ ##
29597 _ASBOX
29598     ) |
29599       sed "s/^/$as_me: WARNING:     /" >&2
29600     ;;
29601 esac
29602 echo "$as_me:$LINENO: checking for $ac_header" >&5
29603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29605   echo $ECHO_N "(cached) $ECHO_C" >&6
29606 else
29607   eval "$as_ac_Header=\$ac_header_preproc"
29608 fi
29609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29611
29612 fi
29613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29614   cat >>confdefs.h <<_ACEOF
29615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29616 _ACEOF
29617
29618 fi
29619
29620 done
29621
29622
29623         if test $ac_cv_header_openssl_ssl_h = yes \
29624                 -o $ac_cv_header_ssl_h = yes ; then
29625                 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29626 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29627 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29628   echo $ECHO_N "(cached) $ECHO_C" >&6
29629 else
29630   ac_check_lib_save_LIBS=$LIBS
29631 LIBS="-lssl -lcrypto $LIBS"
29632 cat >conftest.$ac_ext <<_ACEOF
29633 /* confdefs.h.  */
29634 _ACEOF
29635 cat confdefs.h >>conftest.$ac_ext
29636 cat >>conftest.$ac_ext <<_ACEOF
29637 /* end confdefs.h.  */
29638
29639 /* Override any gcc2 internal prototype to avoid an error.  */
29640 #ifdef __cplusplus
29641 extern "C"
29642 #endif
29643 /* We use char because int might match the return type of a gcc2
29644    builtin and then its argument prototype would still apply.  */
29645 char SSLeay_add_ssl_algorithms ();
29646 int
29647 main ()
29648 {
29649 SSLeay_add_ssl_algorithms ();
29650   ;
29651   return 0;
29652 }
29653 _ACEOF
29654 rm -f conftest.$ac_objext conftest$ac_exeext
29655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29656   (eval $ac_link) 2>conftest.er1
29657   ac_status=$?
29658   grep -v '^ *+' conftest.er1 >conftest.err
29659   rm -f conftest.er1
29660   cat conftest.err >&5
29661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662   (exit $ac_status); } &&
29663          { ac_try='test -z "$ac_c_werror_flag"
29664                          || test ! -s conftest.err'
29665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29666   (eval $ac_try) 2>&5
29667   ac_status=$?
29668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669   (exit $ac_status); }; } &&
29670          { ac_try='test -s conftest$ac_exeext'
29671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29672   (eval $ac_try) 2>&5
29673   ac_status=$?
29674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675   (exit $ac_status); }; }; then
29676   ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29677 else
29678   echo "$as_me: failed program was:" >&5
29679 sed 's/^/| /' conftest.$ac_ext >&5
29680
29681 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29682 fi
29683 rm -f conftest.err conftest.$ac_objext \
29684       conftest$ac_exeext conftest.$ac_ext
29685 LIBS=$ac_check_lib_save_LIBS
29686 fi
29687 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29688 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29689 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29690   have_ssleay=yes
29691                         need_rsaref=no
29692 else
29693   have_ssleay=no
29694 fi
29695
29696
29697                 if test $have_ssleay = no ; then
29698                         echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29699 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29700 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29701   echo $ECHO_N "(cached) $ECHO_C" >&6
29702 else
29703   ac_check_lib_save_LIBS=$LIBS
29704 LIBS="-lssl -lcrypto $LIBS"
29705 cat >conftest.$ac_ext <<_ACEOF
29706 /* confdefs.h.  */
29707 _ACEOF
29708 cat confdefs.h >>conftest.$ac_ext
29709 cat >>conftest.$ac_ext <<_ACEOF
29710 /* end confdefs.h.  */
29711
29712 /* Override any gcc2 internal prototype to avoid an error.  */
29713 #ifdef __cplusplus
29714 extern "C"
29715 #endif
29716 /* We use char because int might match the return type of a gcc2
29717    builtin and then its argument prototype would still apply.  */
29718 char SSL_library_init ();
29719 int
29720 main ()
29721 {
29722 SSL_library_init ();
29723   ;
29724   return 0;
29725 }
29726 _ACEOF
29727 rm -f conftest.$ac_objext conftest$ac_exeext
29728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29729   (eval $ac_link) 2>conftest.er1
29730   ac_status=$?
29731   grep -v '^ *+' conftest.er1 >conftest.err
29732   rm -f conftest.er1
29733   cat conftest.err >&5
29734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29735   (exit $ac_status); } &&
29736          { ac_try='test -z "$ac_c_werror_flag"
29737                          || test ! -s conftest.err'
29738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29739   (eval $ac_try) 2>&5
29740   ac_status=$?
29741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742   (exit $ac_status); }; } &&
29743          { ac_try='test -s conftest$ac_exeext'
29744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29745   (eval $ac_try) 2>&5
29746   ac_status=$?
29747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29748   (exit $ac_status); }; }; then
29749   ac_cv_lib_ssl_SSL_library_init=yes
29750 else
29751   echo "$as_me: failed program was:" >&5
29752 sed 's/^/| /' conftest.$ac_ext >&5
29753
29754 ac_cv_lib_ssl_SSL_library_init=no
29755 fi
29756 rm -f conftest.err conftest.$ac_objext \
29757       conftest$ac_exeext conftest.$ac_ext
29758 LIBS=$ac_check_lib_save_LIBS
29759 fi
29760 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29761 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29762 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29763   have_ssleay=yes
29764                                 need_rsaref=no
29765 else
29766   have_ssleay=no
29767 fi
29768
29769                 fi
29770
29771                 if test $have_ssleay = no ; then
29772                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29773 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29774 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29775   echo $ECHO_N "(cached) $ECHO_C" >&6
29776 else
29777   ac_check_lib_save_LIBS=$LIBS
29778 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29779 cat >conftest.$ac_ext <<_ACEOF
29780 /* confdefs.h.  */
29781 _ACEOF
29782 cat confdefs.h >>conftest.$ac_ext
29783 cat >>conftest.$ac_ext <<_ACEOF
29784 /* end confdefs.h.  */
29785
29786 /* Override any gcc2 internal prototype to avoid an error.  */
29787 #ifdef __cplusplus
29788 extern "C"
29789 #endif
29790 /* We use char because int might match the return type of a gcc2
29791    builtin and then its argument prototype would still apply.  */
29792 char ssl3_accept ();
29793 int
29794 main ()
29795 {
29796 ssl3_accept ();
29797   ;
29798   return 0;
29799 }
29800 _ACEOF
29801 rm -f conftest.$ac_objext conftest$ac_exeext
29802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29803   (eval $ac_link) 2>conftest.er1
29804   ac_status=$?
29805   grep -v '^ *+' conftest.er1 >conftest.err
29806   rm -f conftest.er1
29807   cat conftest.err >&5
29808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29809   (exit $ac_status); } &&
29810          { ac_try='test -z "$ac_c_werror_flag"
29811                          || test ! -s conftest.err'
29812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29813   (eval $ac_try) 2>&5
29814   ac_status=$?
29815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816   (exit $ac_status); }; } &&
29817          { ac_try='test -s conftest$ac_exeext'
29818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29819   (eval $ac_try) 2>&5
29820   ac_status=$?
29821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822   (exit $ac_status); }; }; then
29823   ac_cv_lib_ssl_ssl3_accept=yes
29824 else
29825   echo "$as_me: failed program was:" >&5
29826 sed 's/^/| /' conftest.$ac_ext >&5
29827
29828 ac_cv_lib_ssl_ssl3_accept=no
29829 fi
29830 rm -f conftest.err conftest.$ac_objext \
29831       conftest$ac_exeext conftest.$ac_ext
29832 LIBS=$ac_check_lib_save_LIBS
29833 fi
29834 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29835 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29836 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29837   have_ssleay=yes
29838                                 need_rsaref=yes
29839 else
29840   have_ssleay=no
29841 fi
29842
29843                 fi
29844
29845                 if test $have_ssleay = yes ; then
29846                         ol_with_tls=found
29847                         ol_link_tls=yes
29848
29849
29850 cat >>confdefs.h <<\_ACEOF
29851 #define HAVE_SSLEAY 1
29852 _ACEOF
29853
29854
29855                         if test $need_rsaref = yes; then
29856
29857 cat >>confdefs.h <<\_ACEOF
29858 #define HAVE_RSAREF 1
29859 _ACEOF
29860
29861
29862                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29863                         else
29864                                 TLS_LIBS="-lssl -lcrypto"
29865                         fi
29866                 fi
29867                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29868 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29869 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29870   echo $ECHO_N "(cached) $ECHO_C" >&6
29871 else
29872
29873         cat >conftest.$ac_ext <<_ACEOF
29874 /* confdefs.h.  */
29875 _ACEOF
29876 cat confdefs.h >>conftest.$ac_ext
29877 cat >>conftest.$ac_ext <<_ACEOF
29878 /* end confdefs.h.  */
29879
29880 #ifdef HAVE_OPENSSL_SSL_H
29881 #include <openssl/ssl.h>
29882 #else
29883 #include <ssl.h>
29884 #endif
29885
29886 /* Require 0.9.7d+ */
29887 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29888         char *__ssl_compat = "0.9.7d";
29889 #endif
29890
29891 _ACEOF
29892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29893   $EGREP "__ssl_compat" >/dev/null 2>&1; then
29894   ol_cv_ssl_crl_compat=yes
29895 else
29896   ol_cv_ssl_crl_compat=no
29897 fi
29898 rm -f conftest*
29899
29900 fi
29901 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29902 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29903
29904                 if test $ol_cv_ssl_crl_compat = no ; then
29905                         ol_link_ssl=no
29906                 else
29907
29908 cat >>confdefs.h <<\_ACEOF
29909 #define HAVE_OPENSSL_CRL 1
29910 _ACEOF
29911
29912                 fi
29913         fi
29914
29915 else
29916         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29917 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29918 fi
29919
29920 WITH_TLS=no
29921 if test $ol_link_tls = yes ; then
29922
29923 cat >>confdefs.h <<\_ACEOF
29924 #define HAVE_TLS 1
29925 _ACEOF
29926
29927         WITH_TLS=yes
29928
29929 elif test $ol_with_tls = auto ; then
29930         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29931 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29932         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29933 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29934
29935 elif test $ol_with_tls != no ; then
29936         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29937 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29938    { (exit 1); exit 1; }; }
29939 fi
29940
29941 if test $ol_enable_lmpasswd != no; then
29942         if test $ol_link_tls != yes ; then
29943                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29944 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29945    { (exit 1); exit 1; }; }
29946         fi
29947
29948
29949 cat >>confdefs.h <<\_ACEOF
29950 #define SLAPD_LMHASH 1
29951 _ACEOF
29952
29953 fi
29954
29955 ol_link_threads=no
29956
29957 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29958         -o $ol_with_threads = nt ; then
29959
29960
29961         echo "$as_me:$LINENO: checking for _beginthread" >&5
29962 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29963 if test "${ac_cv_func__beginthread+set}" = set; then
29964   echo $ECHO_N "(cached) $ECHO_C" >&6
29965 else
29966   cat >conftest.$ac_ext <<_ACEOF
29967 /* confdefs.h.  */
29968 _ACEOF
29969 cat confdefs.h >>conftest.$ac_ext
29970 cat >>conftest.$ac_ext <<_ACEOF
29971 /* end confdefs.h.  */
29972 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29974 #define _beginthread innocuous__beginthread
29975
29976 /* System header to define __stub macros and hopefully few prototypes,
29977     which can conflict with char _beginthread (); below.
29978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29979     <limits.h> exists even on freestanding compilers.  */
29980
29981 #ifdef __STDC__
29982 # include <limits.h>
29983 #else
29984 # include <assert.h>
29985 #endif
29986
29987 #undef _beginthread
29988
29989 /* Override any gcc2 internal prototype to avoid an error.  */
29990 #ifdef __cplusplus
29991 extern "C"
29992 {
29993 #endif
29994 /* We use char because int might match the return type of a gcc2
29995    builtin and then its argument prototype would still apply.  */
29996 char _beginthread ();
29997 /* The GNU C library defines this for functions which it implements
29998     to always fail with ENOSYS.  Some functions are actually named
29999     something starting with __ and the normal name is an alias.  */
30000 #if defined (__stub__beginthread) || defined (__stub____beginthread)
30001 choke me
30002 #else
30003 char (*f) () = _beginthread;
30004 #endif
30005 #ifdef __cplusplus
30006 }
30007 #endif
30008
30009 int
30010 main ()
30011 {
30012 return f != _beginthread;
30013   ;
30014   return 0;
30015 }
30016 _ACEOF
30017 rm -f conftest.$ac_objext conftest$ac_exeext
30018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30019   (eval $ac_link) 2>conftest.er1
30020   ac_status=$?
30021   grep -v '^ *+' conftest.er1 >conftest.err
30022   rm -f conftest.er1
30023   cat conftest.err >&5
30024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025   (exit $ac_status); } &&
30026          { ac_try='test -z "$ac_c_werror_flag"
30027                          || test ! -s conftest.err'
30028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30029   (eval $ac_try) 2>&5
30030   ac_status=$?
30031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032   (exit $ac_status); }; } &&
30033          { ac_try='test -s conftest$ac_exeext'
30034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30035   (eval $ac_try) 2>&5
30036   ac_status=$?
30037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30038   (exit $ac_status); }; }; then
30039   ac_cv_func__beginthread=yes
30040 else
30041   echo "$as_me: failed program was:" >&5
30042 sed 's/^/| /' conftest.$ac_ext >&5
30043
30044 ac_cv_func__beginthread=no
30045 fi
30046 rm -f conftest.err conftest.$ac_objext \
30047       conftest$ac_exeext conftest.$ac_ext
30048 fi
30049 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
30050 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
30051
30052
30053         if test $ac_cv_func__beginthread = yes ; then
30054
30055 cat >>confdefs.h <<\_ACEOF
30056 #define HAVE_NT_THREADS 1
30057 _ACEOF
30058
30059                 ol_cv_nt_threads=yes
30060         fi
30061
30062
30063         if test "$ol_cv_nt_threads" = yes ; then
30064                 ol_link_threads=nt
30065                 ol_with_threads=found
30066                 ol_with_yielding_select=yes
30067
30068
30069 cat >>confdefs.h <<\_ACEOF
30070 #define HAVE_NT_SERVICE_MANAGER 1
30071 _ACEOF
30072
30073
30074 cat >>confdefs.h <<\_ACEOF
30075 #define HAVE_NT_EVENT_LOG 1
30076 _ACEOF
30077
30078         fi
30079
30080         if test $ol_with_threads = nt ; then
30081                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
30082 echo "$as_me: error: could not locate NT Threads" >&2;}
30083    { (exit 1); exit 1; }; }
30084         fi
30085 fi
30086
30087 if test $ol_with_threads = auto -o $ol_with_threads = yes \
30088         -o $ol_with_threads = posix ; then
30089
30090
30091 for ac_header in pthread.h
30092 do
30093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30095   echo "$as_me:$LINENO: checking for $ac_header" >&5
30096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30098   echo $ECHO_N "(cached) $ECHO_C" >&6
30099 fi
30100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30102 else
30103   # Is the header compilable?
30104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30106 cat >conftest.$ac_ext <<_ACEOF
30107 /* confdefs.h.  */
30108 _ACEOF
30109 cat confdefs.h >>conftest.$ac_ext
30110 cat >>conftest.$ac_ext <<_ACEOF
30111 /* end confdefs.h.  */
30112 $ac_includes_default
30113 #include <$ac_header>
30114 _ACEOF
30115 rm -f conftest.$ac_objext
30116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30117   (eval $ac_compile) 2>conftest.er1
30118   ac_status=$?
30119   grep -v '^ *+' conftest.er1 >conftest.err
30120   rm -f conftest.er1
30121   cat conftest.err >&5
30122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30123   (exit $ac_status); } &&
30124          { ac_try='test -z "$ac_c_werror_flag"
30125                          || test ! -s conftest.err'
30126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30127   (eval $ac_try) 2>&5
30128   ac_status=$?
30129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130   (exit $ac_status); }; } &&
30131          { ac_try='test -s conftest.$ac_objext'
30132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30133   (eval $ac_try) 2>&5
30134   ac_status=$?
30135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136   (exit $ac_status); }; }; then
30137   ac_header_compiler=yes
30138 else
30139   echo "$as_me: failed program was:" >&5
30140 sed 's/^/| /' conftest.$ac_ext >&5
30141
30142 ac_header_compiler=no
30143 fi
30144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30146 echo "${ECHO_T}$ac_header_compiler" >&6
30147
30148 # Is the header present?
30149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30151 cat >conftest.$ac_ext <<_ACEOF
30152 /* confdefs.h.  */
30153 _ACEOF
30154 cat confdefs.h >>conftest.$ac_ext
30155 cat >>conftest.$ac_ext <<_ACEOF
30156 /* end confdefs.h.  */
30157 #include <$ac_header>
30158 _ACEOF
30159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30160   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30161   ac_status=$?
30162   grep -v '^ *+' conftest.er1 >conftest.err
30163   rm -f conftest.er1
30164   cat conftest.err >&5
30165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30166   (exit $ac_status); } >/dev/null; then
30167   if test -s conftest.err; then
30168     ac_cpp_err=$ac_c_preproc_warn_flag
30169     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30170   else
30171     ac_cpp_err=
30172   fi
30173 else
30174   ac_cpp_err=yes
30175 fi
30176 if test -z "$ac_cpp_err"; then
30177   ac_header_preproc=yes
30178 else
30179   echo "$as_me: failed program was:" >&5
30180 sed 's/^/| /' conftest.$ac_ext >&5
30181
30182   ac_header_preproc=no
30183 fi
30184 rm -f conftest.err conftest.$ac_ext
30185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30186 echo "${ECHO_T}$ac_header_preproc" >&6
30187
30188 # So?  What about this header?
30189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30190   yes:no: )
30191     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30195     ac_header_preproc=yes
30196     ;;
30197   no:yes:* )
30198     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30200     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30201 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30202     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30204     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30205 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30206     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30208     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30210     (
30211       cat <<\_ASBOX
30212 ## ------------------------------------------ ##
30213 ## Report this to the AC_PACKAGE_NAME lists.  ##
30214 ## ------------------------------------------ ##
30215 _ASBOX
30216     ) |
30217       sed "s/^/$as_me: WARNING:     /" >&2
30218     ;;
30219 esac
30220 echo "$as_me:$LINENO: checking for $ac_header" >&5
30221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30223   echo $ECHO_N "(cached) $ECHO_C" >&6
30224 else
30225   eval "$as_ac_Header=\$ac_header_preproc"
30226 fi
30227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30229
30230 fi
30231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30232   cat >>confdefs.h <<_ACEOF
30233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30234 _ACEOF
30235
30236 fi
30237
30238 done
30239
30240
30241         if test $ac_cv_header_pthread_h = yes ; then
30242                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
30243 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
30244 if test "${ol_cv_pthread_version+set}" = set; then
30245   echo $ECHO_N "(cached) $ECHO_C" >&6
30246 else
30247
30248         cat >conftest.$ac_ext <<_ACEOF
30249 /* confdefs.h.  */
30250 _ACEOF
30251 cat confdefs.h >>conftest.$ac_ext
30252 cat >>conftest.$ac_ext <<_ACEOF
30253 /* end confdefs.h.  */
30254
30255 #               include <pthread.h>
30256
30257 int
30258 main ()
30259 {
30260
30261                 int i = PTHREAD_CREATE_JOINABLE;
30262
30263   ;
30264   return 0;
30265 }
30266 _ACEOF
30267 rm -f conftest.$ac_objext
30268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30269   (eval $ac_compile) 2>conftest.er1
30270   ac_status=$?
30271   grep -v '^ *+' conftest.er1 >conftest.err
30272   rm -f conftest.er1
30273   cat conftest.err >&5
30274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275   (exit $ac_status); } &&
30276          { ac_try='test -z "$ac_c_werror_flag"
30277                          || test ! -s conftest.err'
30278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30279   (eval $ac_try) 2>&5
30280   ac_status=$?
30281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282   (exit $ac_status); }; } &&
30283          { ac_try='test -s conftest.$ac_objext'
30284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30285   (eval $ac_try) 2>&5
30286   ac_status=$?
30287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288   (exit $ac_status); }; }; then
30289
30290         cat >conftest.$ac_ext <<_ACEOF
30291 /* confdefs.h.  */
30292 _ACEOF
30293 cat confdefs.h >>conftest.$ac_ext
30294 cat >>conftest.$ac_ext <<_ACEOF
30295 /* end confdefs.h.  */
30296 #include <pthread.h>
30297
30298 _ACEOF
30299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30300   $EGREP "pthread_detach" >/dev/null 2>&1; then
30301   ol_cv_pthread_version=10
30302 else
30303   ol_cv_pthread_version=8
30304 fi
30305 rm -f conftest*
30306
30307 else
30308   echo "$as_me: failed program was:" >&5
30309 sed 's/^/| /' conftest.$ac_ext >&5
30310
30311
30312         cat >conftest.$ac_ext <<_ACEOF
30313 /* confdefs.h.  */
30314 _ACEOF
30315 cat confdefs.h >>conftest.$ac_ext
30316 cat >>conftest.$ac_ext <<_ACEOF
30317 /* end confdefs.h.  */
30318
30319 #               include <pthread.h>
30320 #               ifdef PTHREAD_CREATE_UNDETACHED
30321                 draft7
30322 #               endif
30323
30324 _ACEOF
30325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30326   $EGREP "draft7" >/dev/null 2>&1; then
30327   ol_cv_pthread_version=7
30328 else
30329
30330         cat >conftest.$ac_ext <<_ACEOF
30331 /* confdefs.h.  */
30332 _ACEOF
30333 cat confdefs.h >>conftest.$ac_ext
30334 cat >>conftest.$ac_ext <<_ACEOF
30335 /* end confdefs.h.  */
30336 #include <pthread.h>
30337
30338 _ACEOF
30339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30340   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30341   ol_cv_pthread_version=6
30342 else
30343
30344         cat >conftest.$ac_ext <<_ACEOF
30345 /* confdefs.h.  */
30346 _ACEOF
30347 cat confdefs.h >>conftest.$ac_ext
30348 cat >>conftest.$ac_ext <<_ACEOF
30349 /* end confdefs.h.  */
30350
30351 #               include <pthread.h>
30352 #ifdef          PTHREAD_MUTEX_INITIALIZER
30353                 draft5
30354 #endif
30355
30356 _ACEOF
30357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30358   $EGREP "draft5" >/dev/null 2>&1; then
30359   ol_cv_pthread_version=5
30360 else
30361   ol_cv_pthread_version=4
30362 fi
30363 rm -f conftest*
30364
30365 fi
30366 rm -f conftest*
30367
30368 fi
30369 rm -f conftest*
30370
30371 fi
30372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30373
30374 fi
30375 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30376 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30377
30378
30379                 if test $ol_cv_pthread_version != 0 ; then
30380
30381 cat >>confdefs.h <<_ACEOF
30382 #define HAVE_PTHREADS $ol_cv_pthread_version
30383 _ACEOF
30384
30385                 else
30386                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30387 echo "$as_me: error: unknown pthread version" >&2;}
30388    { (exit 1); exit 1; }; }
30389                 fi
30390
30391                 # consider threads found
30392                 ol_with_threads=found
30393
30394
30395         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30396 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30397 if test "${ol_cv_header_linux_threads+set}" = set; then
30398   echo $ECHO_N "(cached) $ECHO_C" >&6
30399 else
30400   cat >conftest.$ac_ext <<_ACEOF
30401 /* confdefs.h.  */
30402 _ACEOF
30403 cat confdefs.h >>conftest.$ac_ext
30404 cat >>conftest.$ac_ext <<_ACEOF
30405 /* end confdefs.h.  */
30406 #include <pthread.h>
30407 _ACEOF
30408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30409   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30410   ol_cv_header_linux_threads=yes
30411 else
30412   ol_cv_header_linux_threads=no
30413 fi
30414 rm -f conftest*
30415
30416
30417 fi
30418 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30419 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30420         if test $ol_cv_header_linux_threads = yes; then
30421
30422 cat >>confdefs.h <<\_ACEOF
30423 #define HAVE_LINUX_THREADS 1
30424 _ACEOF
30425
30426         fi
30427
30428
30429         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30430 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30431 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30432   echo $ECHO_N "(cached) $ECHO_C" >&6
30433 else
30434   cat >conftest.$ac_ext <<_ACEOF
30435 /* confdefs.h.  */
30436 _ACEOF
30437 cat confdefs.h >>conftest.$ac_ext
30438 cat >>conftest.$ac_ext <<_ACEOF
30439 /* end confdefs.h.  */
30440 #include <pthread.h>
30441 #ifdef _POSIX_THREAD_IS_GNU_PTH
30442         __gnu_pth__;
30443 #endif
30444
30445 _ACEOF
30446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30447   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30448   ol_cv_header_gnu_pth_pthread_h=yes
30449 else
30450   ol_cv_header_gnu_pth_pthread_h=no
30451 fi
30452 rm -f conftest*
30453
30454
30455 fi
30456 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30457 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30458
30459
30460                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30461
30462 for ac_header in sched.h
30463 do
30464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30466   echo "$as_me:$LINENO: checking for $ac_header" >&5
30467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30469   echo $ECHO_N "(cached) $ECHO_C" >&6
30470 fi
30471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30473 else
30474   # Is the header compilable?
30475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30477 cat >conftest.$ac_ext <<_ACEOF
30478 /* confdefs.h.  */
30479 _ACEOF
30480 cat confdefs.h >>conftest.$ac_ext
30481 cat >>conftest.$ac_ext <<_ACEOF
30482 /* end confdefs.h.  */
30483 $ac_includes_default
30484 #include <$ac_header>
30485 _ACEOF
30486 rm -f conftest.$ac_objext
30487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30488   (eval $ac_compile) 2>conftest.er1
30489   ac_status=$?
30490   grep -v '^ *+' conftest.er1 >conftest.err
30491   rm -f conftest.er1
30492   cat conftest.err >&5
30493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30494   (exit $ac_status); } &&
30495          { ac_try='test -z "$ac_c_werror_flag"
30496                          || test ! -s conftest.err'
30497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30498   (eval $ac_try) 2>&5
30499   ac_status=$?
30500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501   (exit $ac_status); }; } &&
30502          { ac_try='test -s conftest.$ac_objext'
30503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30504   (eval $ac_try) 2>&5
30505   ac_status=$?
30506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507   (exit $ac_status); }; }; then
30508   ac_header_compiler=yes
30509 else
30510   echo "$as_me: failed program was:" >&5
30511 sed 's/^/| /' conftest.$ac_ext >&5
30512
30513 ac_header_compiler=no
30514 fi
30515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30517 echo "${ECHO_T}$ac_header_compiler" >&6
30518
30519 # Is the header present?
30520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30522 cat >conftest.$ac_ext <<_ACEOF
30523 /* confdefs.h.  */
30524 _ACEOF
30525 cat confdefs.h >>conftest.$ac_ext
30526 cat >>conftest.$ac_ext <<_ACEOF
30527 /* end confdefs.h.  */
30528 #include <$ac_header>
30529 _ACEOF
30530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30531   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30532   ac_status=$?
30533   grep -v '^ *+' conftest.er1 >conftest.err
30534   rm -f conftest.er1
30535   cat conftest.err >&5
30536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537   (exit $ac_status); } >/dev/null; then
30538   if test -s conftest.err; then
30539     ac_cpp_err=$ac_c_preproc_warn_flag
30540     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30541   else
30542     ac_cpp_err=
30543   fi
30544 else
30545   ac_cpp_err=yes
30546 fi
30547 if test -z "$ac_cpp_err"; then
30548   ac_header_preproc=yes
30549 else
30550   echo "$as_me: failed program was:" >&5
30551 sed 's/^/| /' conftest.$ac_ext >&5
30552
30553   ac_header_preproc=no
30554 fi
30555 rm -f conftest.err conftest.$ac_ext
30556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30557 echo "${ECHO_T}$ac_header_preproc" >&6
30558
30559 # So?  What about this header?
30560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30561   yes:no: )
30562     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30564     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30566     ac_header_preproc=yes
30567     ;;
30568   no:yes:* )
30569     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30571     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30572 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30573     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30575     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30576 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30577     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30579     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30581     (
30582       cat <<\_ASBOX
30583 ## ------------------------------------------ ##
30584 ## Report this to the AC_PACKAGE_NAME lists.  ##
30585 ## ------------------------------------------ ##
30586 _ASBOX
30587     ) |
30588       sed "s/^/$as_me: WARNING:     /" >&2
30589     ;;
30590 esac
30591 echo "$as_me:$LINENO: checking for $ac_header" >&5
30592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30594   echo $ECHO_N "(cached) $ECHO_C" >&6
30595 else
30596   eval "$as_ac_Header=\$ac_header_preproc"
30597 fi
30598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30600
30601 fi
30602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30603   cat >>confdefs.h <<_ACEOF
30604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30605 _ACEOF
30606
30607 fi
30608
30609 done
30610
30611                 fi
30612
30613
30614                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30615 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30616 if test "${ol_cv_pthread_create+set}" = set; then
30617   echo $ECHO_N "(cached) $ECHO_C" >&6
30618 else
30619
30620                         if test "$cross_compiling" = yes; then
30621   cat >conftest.$ac_ext <<_ACEOF
30622 /* confdefs.h.  */
30623 _ACEOF
30624 cat confdefs.h >>conftest.$ac_ext
30625 cat >>conftest.$ac_ext <<_ACEOF
30626 /* end confdefs.h.  */
30627
30628 /* pthread test headers */
30629 #include <pthread.h>
30630 #if HAVE_PTHREADS < 7
30631 #include <errno.h>
30632 #endif
30633 #ifndef NULL
30634 #define NULL (void*)0
30635 #endif
30636
30637 static void *task(p)
30638         void *p;
30639 {
30640         return (void *) (p == NULL);
30641 }
30642
30643 int
30644 main ()
30645 {
30646
30647         /* pthread test function */
30648 #ifndef PTHREAD_CREATE_DETACHED
30649 #define PTHREAD_CREATE_DETACHED 1
30650 #endif
30651         pthread_t t;
30652         int status;
30653         int detach = PTHREAD_CREATE_DETACHED;
30654
30655 #if HAVE_PTHREADS > 4
30656         /* Final pthreads */
30657         pthread_attr_t attr;
30658
30659         status = pthread_attr_init(&attr);
30660         if( status ) return status;
30661
30662 #if HAVE_PTHREADS < 7
30663         status = pthread_attr_setdetachstate(&attr, &detach);
30664         if( status < 0 ) status = errno;
30665 #else
30666         status = pthread_attr_setdetachstate(&attr, detach);
30667 #endif
30668         if( status ) return status;
30669         status = pthread_create( &t, &attr, task, NULL );
30670 #if HAVE_PTHREADS < 7
30671         if( status < 0 ) status = errno;
30672 #endif
30673         if( status ) return status;
30674 #else
30675         /* Draft 4 pthreads */
30676         status = pthread_create( &t, pthread_attr_default, task, NULL );
30677         if( status ) return errno;
30678
30679         /* give thread a chance to complete */
30680         /* it should remain joinable and hence detachable */
30681         sleep( 1 );
30682
30683         status = pthread_detach( &t );
30684         if( status ) return errno;
30685 #endif
30686
30687 #ifdef HAVE_LINUX_THREADS
30688         pthread_kill_other_threads_np();
30689 #endif
30690
30691         return 0;
30692
30693   ;
30694   return 0;
30695 }
30696 _ACEOF
30697 rm -f conftest.$ac_objext conftest$ac_exeext
30698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30699   (eval $ac_link) 2>conftest.er1
30700   ac_status=$?
30701   grep -v '^ *+' conftest.er1 >conftest.err
30702   rm -f conftest.er1
30703   cat conftest.err >&5
30704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705   (exit $ac_status); } &&
30706          { ac_try='test -z "$ac_c_werror_flag"
30707                          || test ! -s conftest.err'
30708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30709   (eval $ac_try) 2>&5
30710   ac_status=$?
30711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712   (exit $ac_status); }; } &&
30713          { ac_try='test -s conftest$ac_exeext'
30714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30715   (eval $ac_try) 2>&5
30716   ac_status=$?
30717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30718   (exit $ac_status); }; }; then
30719   ol_cv_pthread_create=yes
30720 else
30721   echo "$as_me: failed program was:" >&5
30722 sed 's/^/| /' conftest.$ac_ext >&5
30723
30724 ol_cv_pthread_create=no
30725 fi
30726 rm -f conftest.err conftest.$ac_objext \
30727       conftest$ac_exeext conftest.$ac_ext
30728 else
30729   cat >conftest.$ac_ext <<_ACEOF
30730 /* confdefs.h.  */
30731 _ACEOF
30732 cat confdefs.h >>conftest.$ac_ext
30733 cat >>conftest.$ac_ext <<_ACEOF
30734 /* end confdefs.h.  */
30735
30736 /* pthread test headers */
30737 #include <pthread.h>
30738 #if HAVE_PTHREADS < 7
30739 #include <errno.h>
30740 #endif
30741 #ifndef NULL
30742 #define NULL (void*)0
30743 #endif
30744
30745 static void *task(p)
30746         void *p;
30747 {
30748         return (void *) (p == NULL);
30749 }
30750
30751
30752 int main(argc, argv)
30753         int argc;
30754         char **argv;
30755 {
30756
30757         /* pthread test function */
30758 #ifndef PTHREAD_CREATE_DETACHED
30759 #define PTHREAD_CREATE_DETACHED 1
30760 #endif
30761         pthread_t t;
30762         int status;
30763         int detach = PTHREAD_CREATE_DETACHED;
30764
30765 #if HAVE_PTHREADS > 4
30766         /* Final pthreads */
30767         pthread_attr_t attr;
30768
30769         status = pthread_attr_init(&attr);
30770         if( status ) return status;
30771
30772 #if HAVE_PTHREADS < 7
30773         status = pthread_attr_setdetachstate(&attr, &detach);
30774         if( status < 0 ) status = errno;
30775 #else
30776         status = pthread_attr_setdetachstate(&attr, detach);
30777 #endif
30778         if( status ) return status;
30779         status = pthread_create( &t, &attr, task, NULL );
30780 #if HAVE_PTHREADS < 7
30781         if( status < 0 ) status = errno;
30782 #endif
30783         if( status ) return status;
30784 #else
30785         /* Draft 4 pthreads */
30786         status = pthread_create( &t, pthread_attr_default, task, NULL );
30787         if( status ) return errno;
30788
30789         /* give thread a chance to complete */
30790         /* it should remain joinable and hence detachable */
30791         sleep( 1 );
30792
30793         status = pthread_detach( &t );
30794         if( status ) return errno;
30795 #endif
30796
30797 #ifdef HAVE_LINUX_THREADS
30798         pthread_kill_other_threads_np();
30799 #endif
30800
30801         return 0;
30802
30803 }
30804
30805 _ACEOF
30806 rm -f conftest$ac_exeext
30807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30808   (eval $ac_link) 2>&5
30809   ac_status=$?
30810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30813   (eval $ac_try) 2>&5
30814   ac_status=$?
30815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816   (exit $ac_status); }; }; then
30817   ol_cv_pthread_create=yes
30818 else
30819   echo "$as_me: program exited with status $ac_status" >&5
30820 echo "$as_me: failed program was:" >&5
30821 sed 's/^/| /' conftest.$ac_ext >&5
30822
30823 ( exit $ac_status )
30824 ol_cv_pthread_create=no
30825 fi
30826 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30827 fi
30828 fi
30829 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30830 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30831
30832                 if test $ol_cv_pthread_create != no ; then
30833                         ol_link_threads=posix
30834                         ol_link_pthreads=""
30835                 fi
30836
30837                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30838 if test "$ol_link_threads" = no ; then
30839         # try -kthread
30840         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30841 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30842 if test "${ol_cv_pthread_kthread+set}" = set; then
30843   echo $ECHO_N "(cached) $ECHO_C" >&6
30844 else
30845
30846                 # save the flags
30847                 ol_LIBS="$LIBS"
30848                 LIBS="-kthread $LIBS"
30849
30850                 if test "$cross_compiling" = yes; then
30851   cat >conftest.$ac_ext <<_ACEOF
30852 /* confdefs.h.  */
30853 _ACEOF
30854 cat confdefs.h >>conftest.$ac_ext
30855 cat >>conftest.$ac_ext <<_ACEOF
30856 /* end confdefs.h.  */
30857
30858 /* pthread test headers */
30859 #include <pthread.h>
30860 #if HAVE_PTHREADS < 7
30861 #include <errno.h>
30862 #endif
30863 #ifndef NULL
30864 #define NULL (void*)0
30865 #endif
30866
30867 static void *task(p)
30868         void *p;
30869 {
30870         return (void *) (p == NULL);
30871 }
30872
30873 int
30874 main ()
30875 {
30876
30877         /* pthread test function */
30878 #ifndef PTHREAD_CREATE_DETACHED
30879 #define PTHREAD_CREATE_DETACHED 1
30880 #endif
30881         pthread_t t;
30882         int status;
30883         int detach = PTHREAD_CREATE_DETACHED;
30884
30885 #if HAVE_PTHREADS > 4
30886         /* Final pthreads */
30887         pthread_attr_t attr;
30888
30889         status = pthread_attr_init(&attr);
30890         if( status ) return status;
30891
30892 #if HAVE_PTHREADS < 7
30893         status = pthread_attr_setdetachstate(&attr, &detach);
30894         if( status < 0 ) status = errno;
30895 #else
30896         status = pthread_attr_setdetachstate(&attr, detach);
30897 #endif
30898         if( status ) return status;
30899         status = pthread_create( &t, &attr, task, NULL );
30900 #if HAVE_PTHREADS < 7
30901         if( status < 0 ) status = errno;
30902 #endif
30903         if( status ) return status;
30904 #else
30905         /* Draft 4 pthreads */
30906         status = pthread_create( &t, pthread_attr_default, task, NULL );
30907         if( status ) return errno;
30908
30909         /* give thread a chance to complete */
30910         /* it should remain joinable and hence detachable */
30911         sleep( 1 );
30912
30913         status = pthread_detach( &t );
30914         if( status ) return errno;
30915 #endif
30916
30917 #ifdef HAVE_LINUX_THREADS
30918         pthread_kill_other_threads_np();
30919 #endif
30920
30921         return 0;
30922
30923   ;
30924   return 0;
30925 }
30926 _ACEOF
30927 rm -f conftest.$ac_objext conftest$ac_exeext
30928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30929   (eval $ac_link) 2>conftest.er1
30930   ac_status=$?
30931   grep -v '^ *+' conftest.er1 >conftest.err
30932   rm -f conftest.er1
30933   cat conftest.err >&5
30934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935   (exit $ac_status); } &&
30936          { ac_try='test -z "$ac_c_werror_flag"
30937                          || test ! -s conftest.err'
30938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30939   (eval $ac_try) 2>&5
30940   ac_status=$?
30941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30942   (exit $ac_status); }; } &&
30943          { ac_try='test -s conftest$ac_exeext'
30944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30945   (eval $ac_try) 2>&5
30946   ac_status=$?
30947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30948   (exit $ac_status); }; }; then
30949   ol_cv_pthread_kthread=yes
30950 else
30951   echo "$as_me: failed program was:" >&5
30952 sed 's/^/| /' conftest.$ac_ext >&5
30953
30954 ol_cv_pthread_kthread=no
30955 fi
30956 rm -f conftest.err conftest.$ac_objext \
30957       conftest$ac_exeext conftest.$ac_ext
30958 else
30959   cat >conftest.$ac_ext <<_ACEOF
30960 /* confdefs.h.  */
30961 _ACEOF
30962 cat confdefs.h >>conftest.$ac_ext
30963 cat >>conftest.$ac_ext <<_ACEOF
30964 /* end confdefs.h.  */
30965
30966 /* pthread test headers */
30967 #include <pthread.h>
30968 #if HAVE_PTHREADS < 7
30969 #include <errno.h>
30970 #endif
30971 #ifndef NULL
30972 #define NULL (void*)0
30973 #endif
30974
30975 static void *task(p)
30976         void *p;
30977 {
30978         return (void *) (p == NULL);
30979 }
30980
30981
30982 int main(argc, argv)
30983         int argc;
30984         char **argv;
30985 {
30986
30987         /* pthread test function */
30988 #ifndef PTHREAD_CREATE_DETACHED
30989 #define PTHREAD_CREATE_DETACHED 1
30990 #endif
30991         pthread_t t;
30992         int status;
30993         int detach = PTHREAD_CREATE_DETACHED;
30994
30995 #if HAVE_PTHREADS > 4
30996         /* Final pthreads */
30997         pthread_attr_t attr;
30998
30999         status = pthread_attr_init(&attr);
31000         if( status ) return status;
31001
31002 #if HAVE_PTHREADS < 7
31003         status = pthread_attr_setdetachstate(&attr, &detach);
31004         if( status < 0 ) status = errno;
31005 #else
31006         status = pthread_attr_setdetachstate(&attr, detach);
31007 #endif
31008         if( status ) return status;
31009         status = pthread_create( &t, &attr, task, NULL );
31010 #if HAVE_PTHREADS < 7
31011         if( status < 0 ) status = errno;
31012 #endif
31013         if( status ) return status;
31014 #else
31015         /* Draft 4 pthreads */
31016         status = pthread_create( &t, pthread_attr_default, task, NULL );
31017         if( status ) return errno;
31018
31019         /* give thread a chance to complete */
31020         /* it should remain joinable and hence detachable */
31021         sleep( 1 );
31022
31023         status = pthread_detach( &t );
31024         if( status ) return errno;
31025 #endif
31026
31027 #ifdef HAVE_LINUX_THREADS
31028         pthread_kill_other_threads_np();
31029 #endif
31030
31031         return 0;
31032
31033 }
31034
31035 _ACEOF
31036 rm -f conftest$ac_exeext
31037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31038   (eval $ac_link) 2>&5
31039   ac_status=$?
31040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31041   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31043   (eval $ac_try) 2>&5
31044   ac_status=$?
31045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31046   (exit $ac_status); }; }; then
31047   ol_cv_pthread_kthread=yes
31048 else
31049   echo "$as_me: program exited with status $ac_status" >&5
31050 echo "$as_me: failed program was:" >&5
31051 sed 's/^/| /' conftest.$ac_ext >&5
31052
31053 ( exit $ac_status )
31054 ol_cv_pthread_kthread=no
31055 fi
31056 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31057 fi
31058
31059                 # restore the LIBS
31060                 LIBS="$ol_LIBS"
31061
31062 fi
31063 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
31064 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
31065
31066         if test $ol_cv_pthread_kthread = yes ; then
31067                 ol_link_pthreads="-kthread"
31068                 ol_link_threads=posix
31069         fi
31070 fi
31071
31072                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
31073 if test "$ol_link_threads" = no ; then
31074         # try -pthread
31075         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
31076 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
31077 if test "${ol_cv_pthread_pthread+set}" = set; then
31078   echo $ECHO_N "(cached) $ECHO_C" >&6
31079 else
31080
31081                 # save the flags
31082                 ol_LIBS="$LIBS"
31083                 LIBS="-pthread $LIBS"
31084
31085                 if test "$cross_compiling" = yes; then
31086   cat >conftest.$ac_ext <<_ACEOF
31087 /* confdefs.h.  */
31088 _ACEOF
31089 cat confdefs.h >>conftest.$ac_ext
31090 cat >>conftest.$ac_ext <<_ACEOF
31091 /* end confdefs.h.  */
31092
31093 /* pthread test headers */
31094 #include <pthread.h>
31095 #if HAVE_PTHREADS < 7
31096 #include <errno.h>
31097 #endif
31098 #ifndef NULL
31099 #define NULL (void*)0
31100 #endif
31101
31102 static void *task(p)
31103         void *p;
31104 {
31105         return (void *) (p == NULL);
31106 }
31107
31108 int
31109 main ()
31110 {
31111
31112         /* pthread test function */
31113 #ifndef PTHREAD_CREATE_DETACHED
31114 #define PTHREAD_CREATE_DETACHED 1
31115 #endif
31116         pthread_t t;
31117         int status;
31118         int detach = PTHREAD_CREATE_DETACHED;
31119
31120 #if HAVE_PTHREADS > 4
31121         /* Final pthreads */
31122         pthread_attr_t attr;
31123
31124         status = pthread_attr_init(&attr);
31125         if( status ) return status;
31126
31127 #if HAVE_PTHREADS < 7
31128         status = pthread_attr_setdetachstate(&attr, &detach);
31129         if( status < 0 ) status = errno;
31130 #else
31131         status = pthread_attr_setdetachstate(&attr, detach);
31132 #endif
31133         if( status ) return status;
31134         status = pthread_create( &t, &attr, task, NULL );
31135 #if HAVE_PTHREADS < 7
31136         if( status < 0 ) status = errno;
31137 #endif
31138         if( status ) return status;
31139 #else
31140         /* Draft 4 pthreads */
31141         status = pthread_create( &t, pthread_attr_default, task, NULL );
31142         if( status ) return errno;
31143
31144         /* give thread a chance to complete */
31145         /* it should remain joinable and hence detachable */
31146         sleep( 1 );
31147
31148         status = pthread_detach( &t );
31149         if( status ) return errno;
31150 #endif
31151
31152 #ifdef HAVE_LINUX_THREADS
31153         pthread_kill_other_threads_np();
31154 #endif
31155
31156         return 0;
31157
31158   ;
31159   return 0;
31160 }
31161 _ACEOF
31162 rm -f conftest.$ac_objext conftest$ac_exeext
31163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31164   (eval $ac_link) 2>conftest.er1
31165   ac_status=$?
31166   grep -v '^ *+' conftest.er1 >conftest.err
31167   rm -f conftest.er1
31168   cat conftest.err >&5
31169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170   (exit $ac_status); } &&
31171          { ac_try='test -z "$ac_c_werror_flag"
31172                          || test ! -s conftest.err'
31173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31174   (eval $ac_try) 2>&5
31175   ac_status=$?
31176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177   (exit $ac_status); }; } &&
31178          { ac_try='test -s conftest$ac_exeext'
31179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31180   (eval $ac_try) 2>&5
31181   ac_status=$?
31182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183   (exit $ac_status); }; }; then
31184   ol_cv_pthread_pthread=yes
31185 else
31186   echo "$as_me: failed program was:" >&5
31187 sed 's/^/| /' conftest.$ac_ext >&5
31188
31189 ol_cv_pthread_pthread=no
31190 fi
31191 rm -f conftest.err conftest.$ac_objext \
31192       conftest$ac_exeext conftest.$ac_ext
31193 else
31194   cat >conftest.$ac_ext <<_ACEOF
31195 /* confdefs.h.  */
31196 _ACEOF
31197 cat confdefs.h >>conftest.$ac_ext
31198 cat >>conftest.$ac_ext <<_ACEOF
31199 /* end confdefs.h.  */
31200
31201 /* pthread test headers */
31202 #include <pthread.h>
31203 #if HAVE_PTHREADS < 7
31204 #include <errno.h>
31205 #endif
31206 #ifndef NULL
31207 #define NULL (void*)0
31208 #endif
31209
31210 static void *task(p)
31211         void *p;
31212 {
31213         return (void *) (p == NULL);
31214 }
31215
31216
31217 int main(argc, argv)
31218         int argc;
31219         char **argv;
31220 {
31221
31222         /* pthread test function */
31223 #ifndef PTHREAD_CREATE_DETACHED
31224 #define PTHREAD_CREATE_DETACHED 1
31225 #endif
31226         pthread_t t;
31227         int status;
31228         int detach = PTHREAD_CREATE_DETACHED;
31229
31230 #if HAVE_PTHREADS > 4
31231         /* Final pthreads */
31232         pthread_attr_t attr;
31233
31234         status = pthread_attr_init(&attr);
31235         if( status ) return status;
31236
31237 #if HAVE_PTHREADS < 7
31238         status = pthread_attr_setdetachstate(&attr, &detach);
31239         if( status < 0 ) status = errno;
31240 #else
31241         status = pthread_attr_setdetachstate(&attr, detach);
31242 #endif
31243         if( status ) return status;
31244         status = pthread_create( &t, &attr, task, NULL );
31245 #if HAVE_PTHREADS < 7
31246         if( status < 0 ) status = errno;
31247 #endif
31248         if( status ) return status;
31249 #else
31250         /* Draft 4 pthreads */
31251         status = pthread_create( &t, pthread_attr_default, task, NULL );
31252         if( status ) return errno;
31253
31254         /* give thread a chance to complete */
31255         /* it should remain joinable and hence detachable */
31256         sleep( 1 );
31257
31258         status = pthread_detach( &t );
31259         if( status ) return errno;
31260 #endif
31261
31262 #ifdef HAVE_LINUX_THREADS
31263         pthread_kill_other_threads_np();
31264 #endif
31265
31266         return 0;
31267
31268 }
31269
31270 _ACEOF
31271 rm -f conftest$ac_exeext
31272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31273   (eval $ac_link) 2>&5
31274   ac_status=$?
31275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31276   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31278   (eval $ac_try) 2>&5
31279   ac_status=$?
31280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31281   (exit $ac_status); }; }; then
31282   ol_cv_pthread_pthread=yes
31283 else
31284   echo "$as_me: program exited with status $ac_status" >&5
31285 echo "$as_me: failed program was:" >&5
31286 sed 's/^/| /' conftest.$ac_ext >&5
31287
31288 ( exit $ac_status )
31289 ol_cv_pthread_pthread=no
31290 fi
31291 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31292 fi
31293
31294                 # restore the LIBS
31295                 LIBS="$ol_LIBS"
31296
31297 fi
31298 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31299 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31300
31301         if test $ol_cv_pthread_pthread = yes ; then
31302                 ol_link_pthreads="-pthread"
31303                 ol_link_threads=posix
31304         fi
31305 fi
31306
31307                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31308 if test "$ol_link_threads" = no ; then
31309         # try -pthreads
31310         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31311 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31312 if test "${ol_cv_pthread_pthreads+set}" = set; then
31313   echo $ECHO_N "(cached) $ECHO_C" >&6
31314 else
31315
31316                 # save the flags
31317                 ol_LIBS="$LIBS"
31318                 LIBS="-pthreads $LIBS"
31319
31320                 if test "$cross_compiling" = yes; then
31321   cat >conftest.$ac_ext <<_ACEOF
31322 /* confdefs.h.  */
31323 _ACEOF
31324 cat confdefs.h >>conftest.$ac_ext
31325 cat >>conftest.$ac_ext <<_ACEOF
31326 /* end confdefs.h.  */
31327
31328 /* pthread test headers */
31329 #include <pthread.h>
31330 #if HAVE_PTHREADS < 7
31331 #include <errno.h>
31332 #endif
31333 #ifndef NULL
31334 #define NULL (void*)0
31335 #endif
31336
31337 static void *task(p)
31338         void *p;
31339 {
31340         return (void *) (p == NULL);
31341 }
31342
31343 int
31344 main ()
31345 {
31346
31347         /* pthread test function */
31348 #ifndef PTHREAD_CREATE_DETACHED
31349 #define PTHREAD_CREATE_DETACHED 1
31350 #endif
31351         pthread_t t;
31352         int status;
31353         int detach = PTHREAD_CREATE_DETACHED;
31354
31355 #if HAVE_PTHREADS > 4
31356         /* Final pthreads */
31357         pthread_attr_t attr;
31358
31359         status = pthread_attr_init(&attr);
31360         if( status ) return status;
31361
31362 #if HAVE_PTHREADS < 7
31363         status = pthread_attr_setdetachstate(&attr, &detach);
31364         if( status < 0 ) status = errno;
31365 #else
31366         status = pthread_attr_setdetachstate(&attr, detach);
31367 #endif
31368         if( status ) return status;
31369         status = pthread_create( &t, &attr, task, NULL );
31370 #if HAVE_PTHREADS < 7
31371         if( status < 0 ) status = errno;
31372 #endif
31373         if( status ) return status;
31374 #else
31375         /* Draft 4 pthreads */
31376         status = pthread_create( &t, pthread_attr_default, task, NULL );
31377         if( status ) return errno;
31378
31379         /* give thread a chance to complete */
31380         /* it should remain joinable and hence detachable */
31381         sleep( 1 );
31382
31383         status = pthread_detach( &t );
31384         if( status ) return errno;
31385 #endif
31386
31387 #ifdef HAVE_LINUX_THREADS
31388         pthread_kill_other_threads_np();
31389 #endif
31390
31391         return 0;
31392
31393   ;
31394   return 0;
31395 }
31396 _ACEOF
31397 rm -f conftest.$ac_objext conftest$ac_exeext
31398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31399   (eval $ac_link) 2>conftest.er1
31400   ac_status=$?
31401   grep -v '^ *+' conftest.er1 >conftest.err
31402   rm -f conftest.er1
31403   cat conftest.err >&5
31404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31405   (exit $ac_status); } &&
31406          { ac_try='test -z "$ac_c_werror_flag"
31407                          || test ! -s conftest.err'
31408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31409   (eval $ac_try) 2>&5
31410   ac_status=$?
31411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412   (exit $ac_status); }; } &&
31413          { ac_try='test -s conftest$ac_exeext'
31414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31415   (eval $ac_try) 2>&5
31416   ac_status=$?
31417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31418   (exit $ac_status); }; }; then
31419   ol_cv_pthread_pthreads=yes
31420 else
31421   echo "$as_me: failed program was:" >&5
31422 sed 's/^/| /' conftest.$ac_ext >&5
31423
31424 ol_cv_pthread_pthreads=no
31425 fi
31426 rm -f conftest.err conftest.$ac_objext \
31427       conftest$ac_exeext conftest.$ac_ext
31428 else
31429   cat >conftest.$ac_ext <<_ACEOF
31430 /* confdefs.h.  */
31431 _ACEOF
31432 cat confdefs.h >>conftest.$ac_ext
31433 cat >>conftest.$ac_ext <<_ACEOF
31434 /* end confdefs.h.  */
31435
31436 /* pthread test headers */
31437 #include <pthread.h>
31438 #if HAVE_PTHREADS < 7
31439 #include <errno.h>
31440 #endif
31441 #ifndef NULL
31442 #define NULL (void*)0
31443 #endif
31444
31445 static void *task(p)
31446         void *p;
31447 {
31448         return (void *) (p == NULL);
31449 }
31450
31451
31452 int main(argc, argv)
31453         int argc;
31454         char **argv;
31455 {
31456
31457         /* pthread test function */
31458 #ifndef PTHREAD_CREATE_DETACHED
31459 #define PTHREAD_CREATE_DETACHED 1
31460 #endif
31461         pthread_t t;
31462         int status;
31463         int detach = PTHREAD_CREATE_DETACHED;
31464
31465 #if HAVE_PTHREADS > 4
31466         /* Final pthreads */
31467         pthread_attr_t attr;
31468
31469         status = pthread_attr_init(&attr);
31470         if( status ) return status;
31471
31472 #if HAVE_PTHREADS < 7
31473         status = pthread_attr_setdetachstate(&attr, &detach);
31474         if( status < 0 ) status = errno;
31475 #else
31476         status = pthread_attr_setdetachstate(&attr, detach);
31477 #endif
31478         if( status ) return status;
31479         status = pthread_create( &t, &attr, task, NULL );
31480 #if HAVE_PTHREADS < 7
31481         if( status < 0 ) status = errno;
31482 #endif
31483         if( status ) return status;
31484 #else
31485         /* Draft 4 pthreads */
31486         status = pthread_create( &t, pthread_attr_default, task, NULL );
31487         if( status ) return errno;
31488
31489         /* give thread a chance to complete */
31490         /* it should remain joinable and hence detachable */
31491         sleep( 1 );
31492
31493         status = pthread_detach( &t );
31494         if( status ) return errno;
31495 #endif
31496
31497 #ifdef HAVE_LINUX_THREADS
31498         pthread_kill_other_threads_np();
31499 #endif
31500
31501         return 0;
31502
31503 }
31504
31505 _ACEOF
31506 rm -f conftest$ac_exeext
31507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31508   (eval $ac_link) 2>&5
31509   ac_status=$?
31510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31511   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31513   (eval $ac_try) 2>&5
31514   ac_status=$?
31515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31516   (exit $ac_status); }; }; then
31517   ol_cv_pthread_pthreads=yes
31518 else
31519   echo "$as_me: program exited with status $ac_status" >&5
31520 echo "$as_me: failed program was:" >&5
31521 sed 's/^/| /' conftest.$ac_ext >&5
31522
31523 ( exit $ac_status )
31524 ol_cv_pthread_pthreads=no
31525 fi
31526 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31527 fi
31528
31529                 # restore the LIBS
31530                 LIBS="$ol_LIBS"
31531
31532 fi
31533 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31534 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31535
31536         if test $ol_cv_pthread_pthreads = yes ; then
31537                 ol_link_pthreads="-pthreads"
31538                 ol_link_threads=posix
31539         fi
31540 fi
31541
31542                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31543 if test "$ol_link_threads" = no ; then
31544         # try -mthreads
31545         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31546 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31547 if test "${ol_cv_pthread_mthreads+set}" = set; then
31548   echo $ECHO_N "(cached) $ECHO_C" >&6
31549 else
31550
31551                 # save the flags
31552                 ol_LIBS="$LIBS"
31553                 LIBS="-mthreads $LIBS"
31554
31555                 if test "$cross_compiling" = yes; then
31556   cat >conftest.$ac_ext <<_ACEOF
31557 /* confdefs.h.  */
31558 _ACEOF
31559 cat confdefs.h >>conftest.$ac_ext
31560 cat >>conftest.$ac_ext <<_ACEOF
31561 /* end confdefs.h.  */
31562
31563 /* pthread test headers */
31564 #include <pthread.h>
31565 #if HAVE_PTHREADS < 7
31566 #include <errno.h>
31567 #endif
31568 #ifndef NULL
31569 #define NULL (void*)0
31570 #endif
31571
31572 static void *task(p)
31573         void *p;
31574 {
31575         return (void *) (p == NULL);
31576 }
31577
31578 int
31579 main ()
31580 {
31581
31582         /* pthread test function */
31583 #ifndef PTHREAD_CREATE_DETACHED
31584 #define PTHREAD_CREATE_DETACHED 1
31585 #endif
31586         pthread_t t;
31587         int status;
31588         int detach = PTHREAD_CREATE_DETACHED;
31589
31590 #if HAVE_PTHREADS > 4
31591         /* Final pthreads */
31592         pthread_attr_t attr;
31593
31594         status = pthread_attr_init(&attr);
31595         if( status ) return status;
31596
31597 #if HAVE_PTHREADS < 7
31598         status = pthread_attr_setdetachstate(&attr, &detach);
31599         if( status < 0 ) status = errno;
31600 #else
31601         status = pthread_attr_setdetachstate(&attr, detach);
31602 #endif
31603         if( status ) return status;
31604         status = pthread_create( &t, &attr, task, NULL );
31605 #if HAVE_PTHREADS < 7
31606         if( status < 0 ) status = errno;
31607 #endif
31608         if( status ) return status;
31609 #else
31610         /* Draft 4 pthreads */
31611         status = pthread_create( &t, pthread_attr_default, task, NULL );
31612         if( status ) return errno;
31613
31614         /* give thread a chance to complete */
31615         /* it should remain joinable and hence detachable */
31616         sleep( 1 );
31617
31618         status = pthread_detach( &t );
31619         if( status ) return errno;
31620 #endif
31621
31622 #ifdef HAVE_LINUX_THREADS
31623         pthread_kill_other_threads_np();
31624 #endif
31625
31626         return 0;
31627
31628   ;
31629   return 0;
31630 }
31631 _ACEOF
31632 rm -f conftest.$ac_objext conftest$ac_exeext
31633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31634   (eval $ac_link) 2>conftest.er1
31635   ac_status=$?
31636   grep -v '^ *+' conftest.er1 >conftest.err
31637   rm -f conftest.er1
31638   cat conftest.err >&5
31639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640   (exit $ac_status); } &&
31641          { ac_try='test -z "$ac_c_werror_flag"
31642                          || test ! -s conftest.err'
31643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31644   (eval $ac_try) 2>&5
31645   ac_status=$?
31646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31647   (exit $ac_status); }; } &&
31648          { ac_try='test -s conftest$ac_exeext'
31649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31650   (eval $ac_try) 2>&5
31651   ac_status=$?
31652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653   (exit $ac_status); }; }; then
31654   ol_cv_pthread_mthreads=yes
31655 else
31656   echo "$as_me: failed program was:" >&5
31657 sed 's/^/| /' conftest.$ac_ext >&5
31658
31659 ol_cv_pthread_mthreads=no
31660 fi
31661 rm -f conftest.err conftest.$ac_objext \
31662       conftest$ac_exeext conftest.$ac_ext
31663 else
31664   cat >conftest.$ac_ext <<_ACEOF
31665 /* confdefs.h.  */
31666 _ACEOF
31667 cat confdefs.h >>conftest.$ac_ext
31668 cat >>conftest.$ac_ext <<_ACEOF
31669 /* end confdefs.h.  */
31670
31671 /* pthread test headers */
31672 #include <pthread.h>
31673 #if HAVE_PTHREADS < 7
31674 #include <errno.h>
31675 #endif
31676 #ifndef NULL
31677 #define NULL (void*)0
31678 #endif
31679
31680 static void *task(p)
31681         void *p;
31682 {
31683         return (void *) (p == NULL);
31684 }
31685
31686
31687 int main(argc, argv)
31688         int argc;
31689         char **argv;
31690 {
31691
31692         /* pthread test function */
31693 #ifndef PTHREAD_CREATE_DETACHED
31694 #define PTHREAD_CREATE_DETACHED 1
31695 #endif
31696         pthread_t t;
31697         int status;
31698         int detach = PTHREAD_CREATE_DETACHED;
31699
31700 #if HAVE_PTHREADS > 4
31701         /* Final pthreads */
31702         pthread_attr_t attr;
31703
31704         status = pthread_attr_init(&attr);
31705         if( status ) return status;
31706
31707 #if HAVE_PTHREADS < 7
31708         status = pthread_attr_setdetachstate(&attr, &detach);
31709         if( status < 0 ) status = errno;
31710 #else
31711         status = pthread_attr_setdetachstate(&attr, detach);
31712 #endif
31713         if( status ) return status;
31714         status = pthread_create( &t, &attr, task, NULL );
31715 #if HAVE_PTHREADS < 7
31716         if( status < 0 ) status = errno;
31717 #endif
31718         if( status ) return status;
31719 #else
31720         /* Draft 4 pthreads */
31721         status = pthread_create( &t, pthread_attr_default, task, NULL );
31722         if( status ) return errno;
31723
31724         /* give thread a chance to complete */
31725         /* it should remain joinable and hence detachable */
31726         sleep( 1 );
31727
31728         status = pthread_detach( &t );
31729         if( status ) return errno;
31730 #endif
31731
31732 #ifdef HAVE_LINUX_THREADS
31733         pthread_kill_other_threads_np();
31734 #endif
31735
31736         return 0;
31737
31738 }
31739
31740 _ACEOF
31741 rm -f conftest$ac_exeext
31742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31743   (eval $ac_link) 2>&5
31744   ac_status=$?
31745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31748   (eval $ac_try) 2>&5
31749   ac_status=$?
31750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31751   (exit $ac_status); }; }; then
31752   ol_cv_pthread_mthreads=yes
31753 else
31754   echo "$as_me: program exited with status $ac_status" >&5
31755 echo "$as_me: failed program was:" >&5
31756 sed 's/^/| /' conftest.$ac_ext >&5
31757
31758 ( exit $ac_status )
31759 ol_cv_pthread_mthreads=no
31760 fi
31761 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31762 fi
31763
31764                 # restore the LIBS
31765                 LIBS="$ol_LIBS"
31766
31767 fi
31768 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31769 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31770
31771         if test $ol_cv_pthread_mthreads = yes ; then
31772                 ol_link_pthreads="-mthreads"
31773                 ol_link_threads=posix
31774         fi
31775 fi
31776
31777                 # Pthread try link: -thread (ol_cv_pthread_thread)
31778 if test "$ol_link_threads" = no ; then
31779         # try -thread
31780         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31781 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31782 if test "${ol_cv_pthread_thread+set}" = set; then
31783   echo $ECHO_N "(cached) $ECHO_C" >&6
31784 else
31785
31786                 # save the flags
31787                 ol_LIBS="$LIBS"
31788                 LIBS="-thread $LIBS"
31789
31790                 if test "$cross_compiling" = yes; then
31791   cat >conftest.$ac_ext <<_ACEOF
31792 /* confdefs.h.  */
31793 _ACEOF
31794 cat confdefs.h >>conftest.$ac_ext
31795 cat >>conftest.$ac_ext <<_ACEOF
31796 /* end confdefs.h.  */
31797
31798 /* pthread test headers */
31799 #include <pthread.h>
31800 #if HAVE_PTHREADS < 7
31801 #include <errno.h>
31802 #endif
31803 #ifndef NULL
31804 #define NULL (void*)0
31805 #endif
31806
31807 static void *task(p)
31808         void *p;
31809 {
31810         return (void *) (p == NULL);
31811 }
31812
31813 int
31814 main ()
31815 {
31816
31817         /* pthread test function */
31818 #ifndef PTHREAD_CREATE_DETACHED
31819 #define PTHREAD_CREATE_DETACHED 1
31820 #endif
31821         pthread_t t;
31822         int status;
31823         int detach = PTHREAD_CREATE_DETACHED;
31824
31825 #if HAVE_PTHREADS > 4
31826         /* Final pthreads */
31827         pthread_attr_t attr;
31828
31829         status = pthread_attr_init(&attr);
31830         if( status ) return status;
31831
31832 #if HAVE_PTHREADS < 7
31833         status = pthread_attr_setdetachstate(&attr, &detach);
31834         if( status < 0 ) status = errno;
31835 #else
31836         status = pthread_attr_setdetachstate(&attr, detach);
31837 #endif
31838         if( status ) return status;
31839         status = pthread_create( &t, &attr, task, NULL );
31840 #if HAVE_PTHREADS < 7
31841         if( status < 0 ) status = errno;
31842 #endif
31843         if( status ) return status;
31844 #else
31845         /* Draft 4 pthreads */
31846         status = pthread_create( &t, pthread_attr_default, task, NULL );
31847         if( status ) return errno;
31848
31849         /* give thread a chance to complete */
31850         /* it should remain joinable and hence detachable */
31851         sleep( 1 );
31852
31853         status = pthread_detach( &t );
31854         if( status ) return errno;
31855 #endif
31856
31857 #ifdef HAVE_LINUX_THREADS
31858         pthread_kill_other_threads_np();
31859 #endif
31860
31861         return 0;
31862
31863   ;
31864   return 0;
31865 }
31866 _ACEOF
31867 rm -f conftest.$ac_objext conftest$ac_exeext
31868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31869   (eval $ac_link) 2>conftest.er1
31870   ac_status=$?
31871   grep -v '^ *+' conftest.er1 >conftest.err
31872   rm -f conftest.er1
31873   cat conftest.err >&5
31874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31875   (exit $ac_status); } &&
31876          { ac_try='test -z "$ac_c_werror_flag"
31877                          || test ! -s conftest.err'
31878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31879   (eval $ac_try) 2>&5
31880   ac_status=$?
31881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31882   (exit $ac_status); }; } &&
31883          { ac_try='test -s conftest$ac_exeext'
31884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31885   (eval $ac_try) 2>&5
31886   ac_status=$?
31887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31888   (exit $ac_status); }; }; then
31889   ol_cv_pthread_thread=yes
31890 else
31891   echo "$as_me: failed program was:" >&5
31892 sed 's/^/| /' conftest.$ac_ext >&5
31893
31894 ol_cv_pthread_thread=no
31895 fi
31896 rm -f conftest.err conftest.$ac_objext \
31897       conftest$ac_exeext conftest.$ac_ext
31898 else
31899   cat >conftest.$ac_ext <<_ACEOF
31900 /* confdefs.h.  */
31901 _ACEOF
31902 cat confdefs.h >>conftest.$ac_ext
31903 cat >>conftest.$ac_ext <<_ACEOF
31904 /* end confdefs.h.  */
31905
31906 /* pthread test headers */
31907 #include <pthread.h>
31908 #if HAVE_PTHREADS < 7
31909 #include <errno.h>
31910 #endif
31911 #ifndef NULL
31912 #define NULL (void*)0
31913 #endif
31914
31915 static void *task(p)
31916         void *p;
31917 {
31918         return (void *) (p == NULL);
31919 }
31920
31921
31922 int main(argc, argv)
31923         int argc;
31924         char **argv;
31925 {
31926
31927         /* pthread test function */
31928 #ifndef PTHREAD_CREATE_DETACHED
31929 #define PTHREAD_CREATE_DETACHED 1
31930 #endif
31931         pthread_t t;
31932         int status;
31933         int detach = PTHREAD_CREATE_DETACHED;
31934
31935 #if HAVE_PTHREADS > 4
31936         /* Final pthreads */
31937         pthread_attr_t attr;
31938
31939         status = pthread_attr_init(&attr);
31940         if( status ) return status;
31941
31942 #if HAVE_PTHREADS < 7
31943         status = pthread_attr_setdetachstate(&attr, &detach);
31944         if( status < 0 ) status = errno;
31945 #else
31946         status = pthread_attr_setdetachstate(&attr, detach);
31947 #endif
31948         if( status ) return status;
31949         status = pthread_create( &t, &attr, task, NULL );
31950 #if HAVE_PTHREADS < 7
31951         if( status < 0 ) status = errno;
31952 #endif
31953         if( status ) return status;
31954 #else
31955         /* Draft 4 pthreads */
31956         status = pthread_create( &t, pthread_attr_default, task, NULL );
31957         if( status ) return errno;
31958
31959         /* give thread a chance to complete */
31960         /* it should remain joinable and hence detachable */
31961         sleep( 1 );
31962
31963         status = pthread_detach( &t );
31964         if( status ) return errno;
31965 #endif
31966
31967 #ifdef HAVE_LINUX_THREADS
31968         pthread_kill_other_threads_np();
31969 #endif
31970
31971         return 0;
31972
31973 }
31974
31975 _ACEOF
31976 rm -f conftest$ac_exeext
31977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31978   (eval $ac_link) 2>&5
31979   ac_status=$?
31980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31981   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31983   (eval $ac_try) 2>&5
31984   ac_status=$?
31985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31986   (exit $ac_status); }; }; then
31987   ol_cv_pthread_thread=yes
31988 else
31989   echo "$as_me: program exited with status $ac_status" >&5
31990 echo "$as_me: failed program was:" >&5
31991 sed 's/^/| /' conftest.$ac_ext >&5
31992
31993 ( exit $ac_status )
31994 ol_cv_pthread_thread=no
31995 fi
31996 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31997 fi
31998
31999                 # restore the LIBS
32000                 LIBS="$ol_LIBS"
32001
32002 fi
32003 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
32004 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
32005
32006         if test $ol_cv_pthread_thread = yes ; then
32007                 ol_link_pthreads="-thread"
32008                 ol_link_threads=posix
32009         fi
32010 fi
32011
32012
32013                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
32014 if test "$ol_link_threads" = no ; then
32015         # try -lpthread -lmach -lexc -lc_r
32016         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
32017 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
32018 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
32019   echo $ECHO_N "(cached) $ECHO_C" >&6
32020 else
32021
32022                 # save the flags
32023                 ol_LIBS="$LIBS"
32024                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
32025
32026                 if test "$cross_compiling" = yes; then
32027   cat >conftest.$ac_ext <<_ACEOF
32028 /* confdefs.h.  */
32029 _ACEOF
32030 cat confdefs.h >>conftest.$ac_ext
32031 cat >>conftest.$ac_ext <<_ACEOF
32032 /* end confdefs.h.  */
32033
32034 /* pthread test headers */
32035 #include <pthread.h>
32036 #if HAVE_PTHREADS < 7
32037 #include <errno.h>
32038 #endif
32039 #ifndef NULL
32040 #define NULL (void*)0
32041 #endif
32042
32043 static void *task(p)
32044         void *p;
32045 {
32046         return (void *) (p == NULL);
32047 }
32048
32049 int
32050 main ()
32051 {
32052
32053         /* pthread test function */
32054 #ifndef PTHREAD_CREATE_DETACHED
32055 #define PTHREAD_CREATE_DETACHED 1
32056 #endif
32057         pthread_t t;
32058         int status;
32059         int detach = PTHREAD_CREATE_DETACHED;
32060
32061 #if HAVE_PTHREADS > 4
32062         /* Final pthreads */
32063         pthread_attr_t attr;
32064
32065         status = pthread_attr_init(&attr);
32066         if( status ) return status;
32067
32068 #if HAVE_PTHREADS < 7
32069         status = pthread_attr_setdetachstate(&attr, &detach);
32070         if( status < 0 ) status = errno;
32071 #else
32072         status = pthread_attr_setdetachstate(&attr, detach);
32073 #endif
32074         if( status ) return status;
32075         status = pthread_create( &t, &attr, task, NULL );
32076 #if HAVE_PTHREADS < 7
32077         if( status < 0 ) status = errno;
32078 #endif
32079         if( status ) return status;
32080 #else
32081         /* Draft 4 pthreads */
32082         status = pthread_create( &t, pthread_attr_default, task, NULL );
32083         if( status ) return errno;
32084
32085         /* give thread a chance to complete */
32086         /* it should remain joinable and hence detachable */
32087         sleep( 1 );
32088
32089         status = pthread_detach( &t );
32090         if( status ) return errno;
32091 #endif
32092
32093 #ifdef HAVE_LINUX_THREADS
32094         pthread_kill_other_threads_np();
32095 #endif
32096
32097         return 0;
32098
32099   ;
32100   return 0;
32101 }
32102 _ACEOF
32103 rm -f conftest.$ac_objext conftest$ac_exeext
32104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32105   (eval $ac_link) 2>conftest.er1
32106   ac_status=$?
32107   grep -v '^ *+' conftest.er1 >conftest.err
32108   rm -f conftest.er1
32109   cat conftest.err >&5
32110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111   (exit $ac_status); } &&
32112          { ac_try='test -z "$ac_c_werror_flag"
32113                          || test ! -s conftest.err'
32114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32115   (eval $ac_try) 2>&5
32116   ac_status=$?
32117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32118   (exit $ac_status); }; } &&
32119          { ac_try='test -s conftest$ac_exeext'
32120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32121   (eval $ac_try) 2>&5
32122   ac_status=$?
32123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124   (exit $ac_status); }; }; then
32125   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
32126 else
32127   echo "$as_me: failed program was:" >&5
32128 sed 's/^/| /' conftest.$ac_ext >&5
32129
32130 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
32131 fi
32132 rm -f conftest.err conftest.$ac_objext \
32133       conftest$ac_exeext conftest.$ac_ext
32134 else
32135   cat >conftest.$ac_ext <<_ACEOF
32136 /* confdefs.h.  */
32137 _ACEOF
32138 cat confdefs.h >>conftest.$ac_ext
32139 cat >>conftest.$ac_ext <<_ACEOF
32140 /* end confdefs.h.  */
32141
32142 /* pthread test headers */
32143 #include <pthread.h>
32144 #if HAVE_PTHREADS < 7
32145 #include <errno.h>
32146 #endif
32147 #ifndef NULL
32148 #define NULL (void*)0
32149 #endif
32150
32151 static void *task(p)
32152         void *p;
32153 {
32154         return (void *) (p == NULL);
32155 }
32156
32157
32158 int main(argc, argv)
32159         int argc;
32160         char **argv;
32161 {
32162
32163         /* pthread test function */
32164 #ifndef PTHREAD_CREATE_DETACHED
32165 #define PTHREAD_CREATE_DETACHED 1
32166 #endif
32167         pthread_t t;
32168         int status;
32169         int detach = PTHREAD_CREATE_DETACHED;
32170
32171 #if HAVE_PTHREADS > 4
32172         /* Final pthreads */
32173         pthread_attr_t attr;
32174
32175         status = pthread_attr_init(&attr);
32176         if( status ) return status;
32177
32178 #if HAVE_PTHREADS < 7
32179         status = pthread_attr_setdetachstate(&attr, &detach);
32180         if( status < 0 ) status = errno;
32181 #else
32182         status = pthread_attr_setdetachstate(&attr, detach);
32183 #endif
32184         if( status ) return status;
32185         status = pthread_create( &t, &attr, task, NULL );
32186 #if HAVE_PTHREADS < 7
32187         if( status < 0 ) status = errno;
32188 #endif
32189         if( status ) return status;
32190 #else
32191         /* Draft 4 pthreads */
32192         status = pthread_create( &t, pthread_attr_default, task, NULL );
32193         if( status ) return errno;
32194
32195         /* give thread a chance to complete */
32196         /* it should remain joinable and hence detachable */
32197         sleep( 1 );
32198
32199         status = pthread_detach( &t );
32200         if( status ) return errno;
32201 #endif
32202
32203 #ifdef HAVE_LINUX_THREADS
32204         pthread_kill_other_threads_np();
32205 #endif
32206
32207         return 0;
32208
32209 }
32210
32211 _ACEOF
32212 rm -f conftest$ac_exeext
32213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32214   (eval $ac_link) 2>&5
32215   ac_status=$?
32216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32219   (eval $ac_try) 2>&5
32220   ac_status=$?
32221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32222   (exit $ac_status); }; }; then
32223   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
32224 else
32225   echo "$as_me: program exited with status $ac_status" >&5
32226 echo "$as_me: failed program was:" >&5
32227 sed 's/^/| /' conftest.$ac_ext >&5
32228
32229 ( exit $ac_status )
32230 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
32231 fi
32232 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32233 fi
32234
32235                 # restore the LIBS
32236                 LIBS="$ol_LIBS"
32237
32238 fi
32239 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
32240 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
32241
32242         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
32243                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
32244                 ol_link_threads=posix
32245         fi
32246 fi
32247
32248                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
32249 if test "$ol_link_threads" = no ; then
32250         # try -lpthread -lmach -lexc
32251         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
32252 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
32253 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
32254   echo $ECHO_N "(cached) $ECHO_C" >&6
32255 else
32256
32257                 # save the flags
32258                 ol_LIBS="$LIBS"
32259                 LIBS="-lpthread -lmach -lexc $LIBS"
32260
32261                 if test "$cross_compiling" = yes; then
32262   cat >conftest.$ac_ext <<_ACEOF
32263 /* confdefs.h.  */
32264 _ACEOF
32265 cat confdefs.h >>conftest.$ac_ext
32266 cat >>conftest.$ac_ext <<_ACEOF
32267 /* end confdefs.h.  */
32268
32269 /* pthread test headers */
32270 #include <pthread.h>
32271 #if HAVE_PTHREADS < 7
32272 #include <errno.h>
32273 #endif
32274 #ifndef NULL
32275 #define NULL (void*)0
32276 #endif
32277
32278 static void *task(p)
32279         void *p;
32280 {
32281         return (void *) (p == NULL);
32282 }
32283
32284 int
32285 main ()
32286 {
32287
32288         /* pthread test function */
32289 #ifndef PTHREAD_CREATE_DETACHED
32290 #define PTHREAD_CREATE_DETACHED 1
32291 #endif
32292         pthread_t t;
32293         int status;
32294         int detach = PTHREAD_CREATE_DETACHED;
32295
32296 #if HAVE_PTHREADS > 4
32297         /* Final pthreads */
32298         pthread_attr_t attr;
32299
32300         status = pthread_attr_init(&attr);
32301         if( status ) return status;
32302
32303 #if HAVE_PTHREADS < 7
32304         status = pthread_attr_setdetachstate(&attr, &detach);
32305         if( status < 0 ) status = errno;
32306 #else
32307         status = pthread_attr_setdetachstate(&attr, detach);
32308 #endif
32309         if( status ) return status;
32310         status = pthread_create( &t, &attr, task, NULL );
32311 #if HAVE_PTHREADS < 7
32312         if( status < 0 ) status = errno;
32313 #endif
32314         if( status ) return status;
32315 #else
32316         /* Draft 4 pthreads */
32317         status = pthread_create( &t, pthread_attr_default, task, NULL );
32318         if( status ) return errno;
32319
32320         /* give thread a chance to complete */
32321         /* it should remain joinable and hence detachable */
32322         sleep( 1 );
32323
32324         status = pthread_detach( &t );
32325         if( status ) return errno;
32326 #endif
32327
32328 #ifdef HAVE_LINUX_THREADS
32329         pthread_kill_other_threads_np();
32330 #endif
32331
32332         return 0;
32333
32334   ;
32335   return 0;
32336 }
32337 _ACEOF
32338 rm -f conftest.$ac_objext conftest$ac_exeext
32339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32340   (eval $ac_link) 2>conftest.er1
32341   ac_status=$?
32342   grep -v '^ *+' conftest.er1 >conftest.err
32343   rm -f conftest.er1
32344   cat conftest.err >&5
32345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32346   (exit $ac_status); } &&
32347          { ac_try='test -z "$ac_c_werror_flag"
32348                          || test ! -s conftest.err'
32349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32350   (eval $ac_try) 2>&5
32351   ac_status=$?
32352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32353   (exit $ac_status); }; } &&
32354          { ac_try='test -s conftest$ac_exeext'
32355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32356   (eval $ac_try) 2>&5
32357   ac_status=$?
32358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359   (exit $ac_status); }; }; then
32360   ol_cv_pthread_lpthread_lmach_lexc=yes
32361 else
32362   echo "$as_me: failed program was:" >&5
32363 sed 's/^/| /' conftest.$ac_ext >&5
32364
32365 ol_cv_pthread_lpthread_lmach_lexc=no
32366 fi
32367 rm -f conftest.err conftest.$ac_objext \
32368       conftest$ac_exeext conftest.$ac_ext
32369 else
32370   cat >conftest.$ac_ext <<_ACEOF
32371 /* confdefs.h.  */
32372 _ACEOF
32373 cat confdefs.h >>conftest.$ac_ext
32374 cat >>conftest.$ac_ext <<_ACEOF
32375 /* end confdefs.h.  */
32376
32377 /* pthread test headers */
32378 #include <pthread.h>
32379 #if HAVE_PTHREADS < 7
32380 #include <errno.h>
32381 #endif
32382 #ifndef NULL
32383 #define NULL (void*)0
32384 #endif
32385
32386 static void *task(p)
32387         void *p;
32388 {
32389         return (void *) (p == NULL);
32390 }
32391
32392
32393 int main(argc, argv)
32394         int argc;
32395         char **argv;
32396 {
32397
32398         /* pthread test function */
32399 #ifndef PTHREAD_CREATE_DETACHED
32400 #define PTHREAD_CREATE_DETACHED 1
32401 #endif
32402         pthread_t t;
32403         int status;
32404         int detach = PTHREAD_CREATE_DETACHED;
32405
32406 #if HAVE_PTHREADS > 4
32407         /* Final pthreads */
32408         pthread_attr_t attr;
32409
32410         status = pthread_attr_init(&attr);
32411         if( status ) return status;
32412
32413 #if HAVE_PTHREADS < 7
32414         status = pthread_attr_setdetachstate(&attr, &detach);
32415         if( status < 0 ) status = errno;
32416 #else
32417         status = pthread_attr_setdetachstate(&attr, detach);
32418 #endif
32419         if( status ) return status;
32420         status = pthread_create( &t, &attr, task, NULL );
32421 #if HAVE_PTHREADS < 7
32422         if( status < 0 ) status = errno;
32423 #endif
32424         if( status ) return status;
32425 #else
32426         /* Draft 4 pthreads */
32427         status = pthread_create( &t, pthread_attr_default, task, NULL );
32428         if( status ) return errno;
32429
32430         /* give thread a chance to complete */
32431         /* it should remain joinable and hence detachable */
32432         sleep( 1 );
32433
32434         status = pthread_detach( &t );
32435         if( status ) return errno;
32436 #endif
32437
32438 #ifdef HAVE_LINUX_THREADS
32439         pthread_kill_other_threads_np();
32440 #endif
32441
32442         return 0;
32443
32444 }
32445
32446 _ACEOF
32447 rm -f conftest$ac_exeext
32448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32449   (eval $ac_link) 2>&5
32450   ac_status=$?
32451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32452   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32454   (eval $ac_try) 2>&5
32455   ac_status=$?
32456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32457   (exit $ac_status); }; }; then
32458   ol_cv_pthread_lpthread_lmach_lexc=yes
32459 else
32460   echo "$as_me: program exited with status $ac_status" >&5
32461 echo "$as_me: failed program was:" >&5
32462 sed 's/^/| /' conftest.$ac_ext >&5
32463
32464 ( exit $ac_status )
32465 ol_cv_pthread_lpthread_lmach_lexc=no
32466 fi
32467 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32468 fi
32469
32470                 # restore the LIBS
32471                 LIBS="$ol_LIBS"
32472
32473 fi
32474 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32475 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32476
32477         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32478                 ol_link_pthreads="-lpthread -lmach -lexc"
32479                 ol_link_threads=posix
32480         fi
32481 fi
32482
32483
32484                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32485 if test "$ol_link_threads" = no ; then
32486         # try -lpthread -Wl,-woff,85
32487         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32488 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32489 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32490   echo $ECHO_N "(cached) $ECHO_C" >&6
32491 else
32492
32493                 # save the flags
32494                 ol_LIBS="$LIBS"
32495                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32496
32497                 if test "$cross_compiling" = yes; then
32498   cat >conftest.$ac_ext <<_ACEOF
32499 /* confdefs.h.  */
32500 _ACEOF
32501 cat confdefs.h >>conftest.$ac_ext
32502 cat >>conftest.$ac_ext <<_ACEOF
32503 /* end confdefs.h.  */
32504
32505 /* pthread test headers */
32506 #include <pthread.h>
32507 #if HAVE_PTHREADS < 7
32508 #include <errno.h>
32509 #endif
32510 #ifndef NULL
32511 #define NULL (void*)0
32512 #endif
32513
32514 static void *task(p)
32515         void *p;
32516 {
32517         return (void *) (p == NULL);
32518 }
32519
32520 int
32521 main ()
32522 {
32523
32524         /* pthread test function */
32525 #ifndef PTHREAD_CREATE_DETACHED
32526 #define PTHREAD_CREATE_DETACHED 1
32527 #endif
32528         pthread_t t;
32529         int status;
32530         int detach = PTHREAD_CREATE_DETACHED;
32531
32532 #if HAVE_PTHREADS > 4
32533         /* Final pthreads */
32534         pthread_attr_t attr;
32535
32536         status = pthread_attr_init(&attr);
32537         if( status ) return status;
32538
32539 #if HAVE_PTHREADS < 7
32540         status = pthread_attr_setdetachstate(&attr, &detach);
32541         if( status < 0 ) status = errno;
32542 #else
32543         status = pthread_attr_setdetachstate(&attr, detach);
32544 #endif
32545         if( status ) return status;
32546         status = pthread_create( &t, &attr, task, NULL );
32547 #if HAVE_PTHREADS < 7
32548         if( status < 0 ) status = errno;
32549 #endif
32550         if( status ) return status;
32551 #else
32552         /* Draft 4 pthreads */
32553         status = pthread_create( &t, pthread_attr_default, task, NULL );
32554         if( status ) return errno;
32555
32556         /* give thread a chance to complete */
32557         /* it should remain joinable and hence detachable */
32558         sleep( 1 );
32559
32560         status = pthread_detach( &t );
32561         if( status ) return errno;
32562 #endif
32563
32564 #ifdef HAVE_LINUX_THREADS
32565         pthread_kill_other_threads_np();
32566 #endif
32567
32568         return 0;
32569
32570   ;
32571   return 0;
32572 }
32573 _ACEOF
32574 rm -f conftest.$ac_objext conftest$ac_exeext
32575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32576   (eval $ac_link) 2>conftest.er1
32577   ac_status=$?
32578   grep -v '^ *+' conftest.er1 >conftest.err
32579   rm -f conftest.er1
32580   cat conftest.err >&5
32581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32582   (exit $ac_status); } &&
32583          { ac_try='test -z "$ac_c_werror_flag"
32584                          || test ! -s conftest.err'
32585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32586   (eval $ac_try) 2>&5
32587   ac_status=$?
32588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32589   (exit $ac_status); }; } &&
32590          { ac_try='test -s conftest$ac_exeext'
32591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32592   (eval $ac_try) 2>&5
32593   ac_status=$?
32594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32595   (exit $ac_status); }; }; then
32596   ol_cv_pthread_lib_lpthread_woff=yes
32597 else
32598   echo "$as_me: failed program was:" >&5
32599 sed 's/^/| /' conftest.$ac_ext >&5
32600
32601 ol_cv_pthread_lib_lpthread_woff=no
32602 fi
32603 rm -f conftest.err conftest.$ac_objext \
32604       conftest$ac_exeext conftest.$ac_ext
32605 else
32606   cat >conftest.$ac_ext <<_ACEOF
32607 /* confdefs.h.  */
32608 _ACEOF
32609 cat confdefs.h >>conftest.$ac_ext
32610 cat >>conftest.$ac_ext <<_ACEOF
32611 /* end confdefs.h.  */
32612
32613 /* pthread test headers */
32614 #include <pthread.h>
32615 #if HAVE_PTHREADS < 7
32616 #include <errno.h>
32617 #endif
32618 #ifndef NULL
32619 #define NULL (void*)0
32620 #endif
32621
32622 static void *task(p)
32623         void *p;
32624 {
32625         return (void *) (p == NULL);
32626 }
32627
32628
32629 int main(argc, argv)
32630         int argc;
32631         char **argv;
32632 {
32633
32634         /* pthread test function */
32635 #ifndef PTHREAD_CREATE_DETACHED
32636 #define PTHREAD_CREATE_DETACHED 1
32637 #endif
32638         pthread_t t;
32639         int status;
32640         int detach = PTHREAD_CREATE_DETACHED;
32641
32642 #if HAVE_PTHREADS > 4
32643         /* Final pthreads */
32644         pthread_attr_t attr;
32645
32646         status = pthread_attr_init(&attr);
32647         if( status ) return status;
32648
32649 #if HAVE_PTHREADS < 7
32650         status = pthread_attr_setdetachstate(&attr, &detach);
32651         if( status < 0 ) status = errno;
32652 #else
32653         status = pthread_attr_setdetachstate(&attr, detach);
32654 #endif
32655         if( status ) return status;
32656         status = pthread_create( &t, &attr, task, NULL );
32657 #if HAVE_PTHREADS < 7
32658         if( status < 0 ) status = errno;
32659 #endif
32660         if( status ) return status;
32661 #else
32662         /* Draft 4 pthreads */
32663         status = pthread_create( &t, pthread_attr_default, task, NULL );
32664         if( status ) return errno;
32665
32666         /* give thread a chance to complete */
32667         /* it should remain joinable and hence detachable */
32668         sleep( 1 );
32669
32670         status = pthread_detach( &t );
32671         if( status ) return errno;
32672 #endif
32673
32674 #ifdef HAVE_LINUX_THREADS
32675         pthread_kill_other_threads_np();
32676 #endif
32677
32678         return 0;
32679
32680 }
32681
32682 _ACEOF
32683 rm -f conftest$ac_exeext
32684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32685   (eval $ac_link) 2>&5
32686   ac_status=$?
32687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32688   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32690   (eval $ac_try) 2>&5
32691   ac_status=$?
32692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693   (exit $ac_status); }; }; then
32694   ol_cv_pthread_lib_lpthread_woff=yes
32695 else
32696   echo "$as_me: program exited with status $ac_status" >&5
32697 echo "$as_me: failed program was:" >&5
32698 sed 's/^/| /' conftest.$ac_ext >&5
32699
32700 ( exit $ac_status )
32701 ol_cv_pthread_lib_lpthread_woff=no
32702 fi
32703 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32704 fi
32705
32706                 # restore the LIBS
32707                 LIBS="$ol_LIBS"
32708
32709 fi
32710 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32711 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32712
32713         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32714                 ol_link_pthreads="-lpthread -Wl,-woff,85"
32715                 ol_link_threads=posix
32716         fi
32717 fi
32718
32719
32720                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32721 if test "$ol_link_threads" = no ; then
32722         # try -lpthread
32723         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32724 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32725 if test "${ol_cv_pthread_lpthread+set}" = set; then
32726   echo $ECHO_N "(cached) $ECHO_C" >&6
32727 else
32728
32729                 # save the flags
32730                 ol_LIBS="$LIBS"
32731                 LIBS="-lpthread $LIBS"
32732
32733                 if test "$cross_compiling" = yes; then
32734   cat >conftest.$ac_ext <<_ACEOF
32735 /* confdefs.h.  */
32736 _ACEOF
32737 cat confdefs.h >>conftest.$ac_ext
32738 cat >>conftest.$ac_ext <<_ACEOF
32739 /* end confdefs.h.  */
32740
32741 /* pthread test headers */
32742 #include <pthread.h>
32743 #if HAVE_PTHREADS < 7
32744 #include <errno.h>
32745 #endif
32746 #ifndef NULL
32747 #define NULL (void*)0
32748 #endif
32749
32750 static void *task(p)
32751         void *p;
32752 {
32753         return (void *) (p == NULL);
32754 }
32755
32756 int
32757 main ()
32758 {
32759
32760         /* pthread test function */
32761 #ifndef PTHREAD_CREATE_DETACHED
32762 #define PTHREAD_CREATE_DETACHED 1
32763 #endif
32764         pthread_t t;
32765         int status;
32766         int detach = PTHREAD_CREATE_DETACHED;
32767
32768 #if HAVE_PTHREADS > 4
32769         /* Final pthreads */
32770         pthread_attr_t attr;
32771
32772         status = pthread_attr_init(&attr);
32773         if( status ) return status;
32774
32775 #if HAVE_PTHREADS < 7
32776         status = pthread_attr_setdetachstate(&attr, &detach);
32777         if( status < 0 ) status = errno;
32778 #else
32779         status = pthread_attr_setdetachstate(&attr, detach);
32780 #endif
32781         if( status ) return status;
32782         status = pthread_create( &t, &attr, task, NULL );
32783 #if HAVE_PTHREADS < 7
32784         if( status < 0 ) status = errno;
32785 #endif
32786         if( status ) return status;
32787 #else
32788         /* Draft 4 pthreads */
32789         status = pthread_create( &t, pthread_attr_default, task, NULL );
32790         if( status ) return errno;
32791
32792         /* give thread a chance to complete */
32793         /* it should remain joinable and hence detachable */
32794         sleep( 1 );
32795
32796         status = pthread_detach( &t );
32797         if( status ) return errno;
32798 #endif
32799
32800 #ifdef HAVE_LINUX_THREADS
32801         pthread_kill_other_threads_np();
32802 #endif
32803
32804         return 0;
32805
32806   ;
32807   return 0;
32808 }
32809 _ACEOF
32810 rm -f conftest.$ac_objext conftest$ac_exeext
32811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32812   (eval $ac_link) 2>conftest.er1
32813   ac_status=$?
32814   grep -v '^ *+' conftest.er1 >conftest.err
32815   rm -f conftest.er1
32816   cat conftest.err >&5
32817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32818   (exit $ac_status); } &&
32819          { ac_try='test -z "$ac_c_werror_flag"
32820                          || test ! -s conftest.err'
32821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32822   (eval $ac_try) 2>&5
32823   ac_status=$?
32824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825   (exit $ac_status); }; } &&
32826          { ac_try='test -s conftest$ac_exeext'
32827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32828   (eval $ac_try) 2>&5
32829   ac_status=$?
32830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831   (exit $ac_status); }; }; then
32832   ol_cv_pthread_lpthread=yes
32833 else
32834   echo "$as_me: failed program was:" >&5
32835 sed 's/^/| /' conftest.$ac_ext >&5
32836
32837 ol_cv_pthread_lpthread=no
32838 fi
32839 rm -f conftest.err conftest.$ac_objext \
32840       conftest$ac_exeext conftest.$ac_ext
32841 else
32842   cat >conftest.$ac_ext <<_ACEOF
32843 /* confdefs.h.  */
32844 _ACEOF
32845 cat confdefs.h >>conftest.$ac_ext
32846 cat >>conftest.$ac_ext <<_ACEOF
32847 /* end confdefs.h.  */
32848
32849 /* pthread test headers */
32850 #include <pthread.h>
32851 #if HAVE_PTHREADS < 7
32852 #include <errno.h>
32853 #endif
32854 #ifndef NULL
32855 #define NULL (void*)0
32856 #endif
32857
32858 static void *task(p)
32859         void *p;
32860 {
32861         return (void *) (p == NULL);
32862 }
32863
32864
32865 int main(argc, argv)
32866         int argc;
32867         char **argv;
32868 {
32869
32870         /* pthread test function */
32871 #ifndef PTHREAD_CREATE_DETACHED
32872 #define PTHREAD_CREATE_DETACHED 1
32873 #endif
32874         pthread_t t;
32875         int status;
32876         int detach = PTHREAD_CREATE_DETACHED;
32877
32878 #if HAVE_PTHREADS > 4
32879         /* Final pthreads */
32880         pthread_attr_t attr;
32881
32882         status = pthread_attr_init(&attr);
32883         if( status ) return status;
32884
32885 #if HAVE_PTHREADS < 7
32886         status = pthread_attr_setdetachstate(&attr, &detach);
32887         if( status < 0 ) status = errno;
32888 #else
32889         status = pthread_attr_setdetachstate(&attr, detach);
32890 #endif
32891         if( status ) return status;
32892         status = pthread_create( &t, &attr, task, NULL );
32893 #if HAVE_PTHREADS < 7
32894         if( status < 0 ) status = errno;
32895 #endif
32896         if( status ) return status;
32897 #else
32898         /* Draft 4 pthreads */
32899         status = pthread_create( &t, pthread_attr_default, task, NULL );
32900         if( status ) return errno;
32901
32902         /* give thread a chance to complete */
32903         /* it should remain joinable and hence detachable */
32904         sleep( 1 );
32905
32906         status = pthread_detach( &t );
32907         if( status ) return errno;
32908 #endif
32909
32910 #ifdef HAVE_LINUX_THREADS
32911         pthread_kill_other_threads_np();
32912 #endif
32913
32914         return 0;
32915
32916 }
32917
32918 _ACEOF
32919 rm -f conftest$ac_exeext
32920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32921   (eval $ac_link) 2>&5
32922   ac_status=$?
32923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32924   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32926   (eval $ac_try) 2>&5
32927   ac_status=$?
32928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929   (exit $ac_status); }; }; then
32930   ol_cv_pthread_lpthread=yes
32931 else
32932   echo "$as_me: program exited with status $ac_status" >&5
32933 echo "$as_me: failed program was:" >&5
32934 sed 's/^/| /' conftest.$ac_ext >&5
32935
32936 ( exit $ac_status )
32937 ol_cv_pthread_lpthread=no
32938 fi
32939 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32940 fi
32941
32942                 # restore the LIBS
32943                 LIBS="$ol_LIBS"
32944
32945 fi
32946 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32947 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32948
32949         if test $ol_cv_pthread_lpthread = yes ; then
32950                 ol_link_pthreads="-lpthread"
32951                 ol_link_threads=posix
32952         fi
32953 fi
32954
32955                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32956 if test "$ol_link_threads" = no ; then
32957         # try -lc_r
32958         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32959 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32960 if test "${ol_cv_pthread_lc_r+set}" = set; then
32961   echo $ECHO_N "(cached) $ECHO_C" >&6
32962 else
32963
32964                 # save the flags
32965                 ol_LIBS="$LIBS"
32966                 LIBS="-lc_r $LIBS"
32967
32968                 if test "$cross_compiling" = yes; then
32969   cat >conftest.$ac_ext <<_ACEOF
32970 /* confdefs.h.  */
32971 _ACEOF
32972 cat confdefs.h >>conftest.$ac_ext
32973 cat >>conftest.$ac_ext <<_ACEOF
32974 /* end confdefs.h.  */
32975
32976 /* pthread test headers */
32977 #include <pthread.h>
32978 #if HAVE_PTHREADS < 7
32979 #include <errno.h>
32980 #endif
32981 #ifndef NULL
32982 #define NULL (void*)0
32983 #endif
32984
32985 static void *task(p)
32986         void *p;
32987 {
32988         return (void *) (p == NULL);
32989 }
32990
32991 int
32992 main ()
32993 {
32994
32995         /* pthread test function */
32996 #ifndef PTHREAD_CREATE_DETACHED
32997 #define PTHREAD_CREATE_DETACHED 1
32998 #endif
32999         pthread_t t;
33000         int status;
33001         int detach = PTHREAD_CREATE_DETACHED;
33002
33003 #if HAVE_PTHREADS > 4
33004         /* Final pthreads */
33005         pthread_attr_t attr;
33006
33007         status = pthread_attr_init(&attr);
33008         if( status ) return status;
33009
33010 #if HAVE_PTHREADS < 7
33011         status = pthread_attr_setdetachstate(&attr, &detach);
33012         if( status < 0 ) status = errno;
33013 #else
33014         status = pthread_attr_setdetachstate(&attr, detach);
33015 #endif
33016         if( status ) return status;
33017         status = pthread_create( &t, &attr, task, NULL );
33018 #if HAVE_PTHREADS < 7
33019         if( status < 0 ) status = errno;
33020 #endif
33021         if( status ) return status;
33022 #else
33023         /* Draft 4 pthreads */
33024         status = pthread_create( &t, pthread_attr_default, task, NULL );
33025         if( status ) return errno;
33026
33027         /* give thread a chance to complete */
33028         /* it should remain joinable and hence detachable */
33029         sleep( 1 );
33030
33031         status = pthread_detach( &t );
33032         if( status ) return errno;
33033 #endif
33034
33035 #ifdef HAVE_LINUX_THREADS
33036         pthread_kill_other_threads_np();
33037 #endif
33038
33039         return 0;
33040
33041   ;
33042   return 0;
33043 }
33044 _ACEOF
33045 rm -f conftest.$ac_objext conftest$ac_exeext
33046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33047   (eval $ac_link) 2>conftest.er1
33048   ac_status=$?
33049   grep -v '^ *+' conftest.er1 >conftest.err
33050   rm -f conftest.er1
33051   cat conftest.err >&5
33052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053   (exit $ac_status); } &&
33054          { ac_try='test -z "$ac_c_werror_flag"
33055                          || test ! -s conftest.err'
33056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33057   (eval $ac_try) 2>&5
33058   ac_status=$?
33059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060   (exit $ac_status); }; } &&
33061          { ac_try='test -s conftest$ac_exeext'
33062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33063   (eval $ac_try) 2>&5
33064   ac_status=$?
33065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33066   (exit $ac_status); }; }; then
33067   ol_cv_pthread_lc_r=yes
33068 else
33069   echo "$as_me: failed program was:" >&5
33070 sed 's/^/| /' conftest.$ac_ext >&5
33071
33072 ol_cv_pthread_lc_r=no
33073 fi
33074 rm -f conftest.err conftest.$ac_objext \
33075       conftest$ac_exeext conftest.$ac_ext
33076 else
33077   cat >conftest.$ac_ext <<_ACEOF
33078 /* confdefs.h.  */
33079 _ACEOF
33080 cat confdefs.h >>conftest.$ac_ext
33081 cat >>conftest.$ac_ext <<_ACEOF
33082 /* end confdefs.h.  */
33083
33084 /* pthread test headers */
33085 #include <pthread.h>
33086 #if HAVE_PTHREADS < 7
33087 #include <errno.h>
33088 #endif
33089 #ifndef NULL
33090 #define NULL (void*)0
33091 #endif
33092
33093 static void *task(p)
33094         void *p;
33095 {
33096         return (void *) (p == NULL);
33097 }
33098
33099
33100 int main(argc, argv)
33101         int argc;
33102         char **argv;
33103 {
33104
33105         /* pthread test function */
33106 #ifndef PTHREAD_CREATE_DETACHED
33107 #define PTHREAD_CREATE_DETACHED 1
33108 #endif
33109         pthread_t t;
33110         int status;
33111         int detach = PTHREAD_CREATE_DETACHED;
33112
33113 #if HAVE_PTHREADS > 4
33114         /* Final pthreads */
33115         pthread_attr_t attr;
33116
33117         status = pthread_attr_init(&attr);
33118         if( status ) return status;
33119
33120 #if HAVE_PTHREADS < 7
33121         status = pthread_attr_setdetachstate(&attr, &detach);
33122         if( status < 0 ) status = errno;
33123 #else
33124         status = pthread_attr_setdetachstate(&attr, detach);
33125 #endif
33126         if( status ) return status;
33127         status = pthread_create( &t, &attr, task, NULL );
33128 #if HAVE_PTHREADS < 7
33129         if( status < 0 ) status = errno;
33130 #endif
33131         if( status ) return status;
33132 #else
33133         /* Draft 4 pthreads */
33134         status = pthread_create( &t, pthread_attr_default, task, NULL );
33135         if( status ) return errno;
33136
33137         /* give thread a chance to complete */
33138         /* it should remain joinable and hence detachable */
33139         sleep( 1 );
33140
33141         status = pthread_detach( &t );
33142         if( status ) return errno;
33143 #endif
33144
33145 #ifdef HAVE_LINUX_THREADS
33146         pthread_kill_other_threads_np();
33147 #endif
33148
33149         return 0;
33150
33151 }
33152
33153 _ACEOF
33154 rm -f conftest$ac_exeext
33155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33156   (eval $ac_link) 2>&5
33157   ac_status=$?
33158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33161   (eval $ac_try) 2>&5
33162   ac_status=$?
33163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33164   (exit $ac_status); }; }; then
33165   ol_cv_pthread_lc_r=yes
33166 else
33167   echo "$as_me: program exited with status $ac_status" >&5
33168 echo "$as_me: failed program was:" >&5
33169 sed 's/^/| /' conftest.$ac_ext >&5
33170
33171 ( exit $ac_status )
33172 ol_cv_pthread_lc_r=no
33173 fi
33174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33175 fi
33176
33177                 # restore the LIBS
33178                 LIBS="$ol_LIBS"
33179
33180 fi
33181 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
33182 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
33183
33184         if test $ol_cv_pthread_lc_r = yes ; then
33185                 ol_link_pthreads="-lc_r"
33186                 ol_link_threads=posix
33187         fi
33188 fi
33189
33190
33191                 # Pthread try link: -threads (ol_cv_pthread_threads)
33192 if test "$ol_link_threads" = no ; then
33193         # try -threads
33194         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
33195 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
33196 if test "${ol_cv_pthread_threads+set}" = set; then
33197   echo $ECHO_N "(cached) $ECHO_C" >&6
33198 else
33199
33200                 # save the flags
33201                 ol_LIBS="$LIBS"
33202                 LIBS="-threads $LIBS"
33203
33204                 if test "$cross_compiling" = yes; then
33205   cat >conftest.$ac_ext <<_ACEOF
33206 /* confdefs.h.  */
33207 _ACEOF
33208 cat confdefs.h >>conftest.$ac_ext
33209 cat >>conftest.$ac_ext <<_ACEOF
33210 /* end confdefs.h.  */
33211
33212 /* pthread test headers */
33213 #include <pthread.h>
33214 #if HAVE_PTHREADS < 7
33215 #include <errno.h>
33216 #endif
33217 #ifndef NULL
33218 #define NULL (void*)0
33219 #endif
33220
33221 static void *task(p)
33222         void *p;
33223 {
33224         return (void *) (p == NULL);
33225 }
33226
33227 int
33228 main ()
33229 {
33230
33231         /* pthread test function */
33232 #ifndef PTHREAD_CREATE_DETACHED
33233 #define PTHREAD_CREATE_DETACHED 1
33234 #endif
33235         pthread_t t;
33236         int status;
33237         int detach = PTHREAD_CREATE_DETACHED;
33238
33239 #if HAVE_PTHREADS > 4
33240         /* Final pthreads */
33241         pthread_attr_t attr;
33242
33243         status = pthread_attr_init(&attr);
33244         if( status ) return status;
33245
33246 #if HAVE_PTHREADS < 7
33247         status = pthread_attr_setdetachstate(&attr, &detach);
33248         if( status < 0 ) status = errno;
33249 #else
33250         status = pthread_attr_setdetachstate(&attr, detach);
33251 #endif
33252         if( status ) return status;
33253         status = pthread_create( &t, &attr, task, NULL );
33254 #if HAVE_PTHREADS < 7
33255         if( status < 0 ) status = errno;
33256 #endif
33257         if( status ) return status;
33258 #else
33259         /* Draft 4 pthreads */
33260         status = pthread_create( &t, pthread_attr_default, task, NULL );
33261         if( status ) return errno;
33262
33263         /* give thread a chance to complete */
33264         /* it should remain joinable and hence detachable */
33265         sleep( 1 );
33266
33267         status = pthread_detach( &t );
33268         if( status ) return errno;
33269 #endif
33270
33271 #ifdef HAVE_LINUX_THREADS
33272         pthread_kill_other_threads_np();
33273 #endif
33274
33275         return 0;
33276
33277   ;
33278   return 0;
33279 }
33280 _ACEOF
33281 rm -f conftest.$ac_objext conftest$ac_exeext
33282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33283   (eval $ac_link) 2>conftest.er1
33284   ac_status=$?
33285   grep -v '^ *+' conftest.er1 >conftest.err
33286   rm -f conftest.er1
33287   cat conftest.err >&5
33288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33289   (exit $ac_status); } &&
33290          { ac_try='test -z "$ac_c_werror_flag"
33291                          || test ! -s conftest.err'
33292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33293   (eval $ac_try) 2>&5
33294   ac_status=$?
33295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33296   (exit $ac_status); }; } &&
33297          { ac_try='test -s conftest$ac_exeext'
33298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33299   (eval $ac_try) 2>&5
33300   ac_status=$?
33301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33302   (exit $ac_status); }; }; then
33303   ol_cv_pthread_threads=yes
33304 else
33305   echo "$as_me: failed program was:" >&5
33306 sed 's/^/| /' conftest.$ac_ext >&5
33307
33308 ol_cv_pthread_threads=no
33309 fi
33310 rm -f conftest.err conftest.$ac_objext \
33311       conftest$ac_exeext conftest.$ac_ext
33312 else
33313   cat >conftest.$ac_ext <<_ACEOF
33314 /* confdefs.h.  */
33315 _ACEOF
33316 cat confdefs.h >>conftest.$ac_ext
33317 cat >>conftest.$ac_ext <<_ACEOF
33318 /* end confdefs.h.  */
33319
33320 /* pthread test headers */
33321 #include <pthread.h>
33322 #if HAVE_PTHREADS < 7
33323 #include <errno.h>
33324 #endif
33325 #ifndef NULL
33326 #define NULL (void*)0
33327 #endif
33328
33329 static void *task(p)
33330         void *p;
33331 {
33332         return (void *) (p == NULL);
33333 }
33334
33335
33336 int main(argc, argv)
33337         int argc;
33338         char **argv;
33339 {
33340
33341         /* pthread test function */
33342 #ifndef PTHREAD_CREATE_DETACHED
33343 #define PTHREAD_CREATE_DETACHED 1
33344 #endif
33345         pthread_t t;
33346         int status;
33347         int detach = PTHREAD_CREATE_DETACHED;
33348
33349 #if HAVE_PTHREADS > 4
33350         /* Final pthreads */
33351         pthread_attr_t attr;
33352
33353         status = pthread_attr_init(&attr);
33354         if( status ) return status;
33355
33356 #if HAVE_PTHREADS < 7
33357         status = pthread_attr_setdetachstate(&attr, &detach);
33358         if( status < 0 ) status = errno;
33359 #else
33360         status = pthread_attr_setdetachstate(&attr, detach);
33361 #endif
33362         if( status ) return status;
33363         status = pthread_create( &t, &attr, task, NULL );
33364 #if HAVE_PTHREADS < 7
33365         if( status < 0 ) status = errno;
33366 #endif
33367         if( status ) return status;
33368 #else
33369         /* Draft 4 pthreads */
33370         status = pthread_create( &t, pthread_attr_default, task, NULL );
33371         if( status ) return errno;
33372
33373         /* give thread a chance to complete */
33374         /* it should remain joinable and hence detachable */
33375         sleep( 1 );
33376
33377         status = pthread_detach( &t );
33378         if( status ) return errno;
33379 #endif
33380
33381 #ifdef HAVE_LINUX_THREADS
33382         pthread_kill_other_threads_np();
33383 #endif
33384
33385         return 0;
33386
33387 }
33388
33389 _ACEOF
33390 rm -f conftest$ac_exeext
33391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33392   (eval $ac_link) 2>&5
33393   ac_status=$?
33394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33397   (eval $ac_try) 2>&5
33398   ac_status=$?
33399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33400   (exit $ac_status); }; }; then
33401   ol_cv_pthread_threads=yes
33402 else
33403   echo "$as_me: program exited with status $ac_status" >&5
33404 echo "$as_me: failed program was:" >&5
33405 sed 's/^/| /' conftest.$ac_ext >&5
33406
33407 ( exit $ac_status )
33408 ol_cv_pthread_threads=no
33409 fi
33410 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33411 fi
33412
33413                 # restore the LIBS
33414                 LIBS="$ol_LIBS"
33415
33416 fi
33417 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33418 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33419
33420         if test $ol_cv_pthread_threads = yes ; then
33421                 ol_link_pthreads="-threads"
33422                 ol_link_threads=posix
33423         fi
33424 fi
33425
33426
33427                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33428 if test "$ol_link_threads" = no ; then
33429         # try -lpthreads -lmach -lexc -lc_r
33430         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33431 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33432 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33433   echo $ECHO_N "(cached) $ECHO_C" >&6
33434 else
33435
33436                 # save the flags
33437                 ol_LIBS="$LIBS"
33438                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33439
33440                 if test "$cross_compiling" = yes; then
33441   cat >conftest.$ac_ext <<_ACEOF
33442 /* confdefs.h.  */
33443 _ACEOF
33444 cat confdefs.h >>conftest.$ac_ext
33445 cat >>conftest.$ac_ext <<_ACEOF
33446 /* end confdefs.h.  */
33447
33448 /* pthread test headers */
33449 #include <pthread.h>
33450 #if HAVE_PTHREADS < 7
33451 #include <errno.h>
33452 #endif
33453 #ifndef NULL
33454 #define NULL (void*)0
33455 #endif
33456
33457 static void *task(p)
33458         void *p;
33459 {
33460         return (void *) (p == NULL);
33461 }
33462
33463 int
33464 main ()
33465 {
33466
33467         /* pthread test function */
33468 #ifndef PTHREAD_CREATE_DETACHED
33469 #define PTHREAD_CREATE_DETACHED 1
33470 #endif
33471         pthread_t t;
33472         int status;
33473         int detach = PTHREAD_CREATE_DETACHED;
33474
33475 #if HAVE_PTHREADS > 4
33476         /* Final pthreads */
33477         pthread_attr_t attr;
33478
33479         status = pthread_attr_init(&attr);
33480         if( status ) return status;
33481
33482 #if HAVE_PTHREADS < 7
33483         status = pthread_attr_setdetachstate(&attr, &detach);
33484         if( status < 0 ) status = errno;
33485 #else
33486         status = pthread_attr_setdetachstate(&attr, detach);
33487 #endif
33488         if( status ) return status;
33489         status = pthread_create( &t, &attr, task, NULL );
33490 #if HAVE_PTHREADS < 7
33491         if( status < 0 ) status = errno;
33492 #endif
33493         if( status ) return status;
33494 #else
33495         /* Draft 4 pthreads */
33496         status = pthread_create( &t, pthread_attr_default, task, NULL );
33497         if( status ) return errno;
33498
33499         /* give thread a chance to complete */
33500         /* it should remain joinable and hence detachable */
33501         sleep( 1 );
33502
33503         status = pthread_detach( &t );
33504         if( status ) return errno;
33505 #endif
33506
33507 #ifdef HAVE_LINUX_THREADS
33508         pthread_kill_other_threads_np();
33509 #endif
33510
33511         return 0;
33512
33513   ;
33514   return 0;
33515 }
33516 _ACEOF
33517 rm -f conftest.$ac_objext conftest$ac_exeext
33518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33519   (eval $ac_link) 2>conftest.er1
33520   ac_status=$?
33521   grep -v '^ *+' conftest.er1 >conftest.err
33522   rm -f conftest.er1
33523   cat conftest.err >&5
33524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33525   (exit $ac_status); } &&
33526          { ac_try='test -z "$ac_c_werror_flag"
33527                          || test ! -s conftest.err'
33528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33529   (eval $ac_try) 2>&5
33530   ac_status=$?
33531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33532   (exit $ac_status); }; } &&
33533          { ac_try='test -s conftest$ac_exeext'
33534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33535   (eval $ac_try) 2>&5
33536   ac_status=$?
33537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538   (exit $ac_status); }; }; then
33539   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33540 else
33541   echo "$as_me: failed program was:" >&5
33542 sed 's/^/| /' conftest.$ac_ext >&5
33543
33544 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33545 fi
33546 rm -f conftest.err conftest.$ac_objext \
33547       conftest$ac_exeext conftest.$ac_ext
33548 else
33549   cat >conftest.$ac_ext <<_ACEOF
33550 /* confdefs.h.  */
33551 _ACEOF
33552 cat confdefs.h >>conftest.$ac_ext
33553 cat >>conftest.$ac_ext <<_ACEOF
33554 /* end confdefs.h.  */
33555
33556 /* pthread test headers */
33557 #include <pthread.h>
33558 #if HAVE_PTHREADS < 7
33559 #include <errno.h>
33560 #endif
33561 #ifndef NULL
33562 #define NULL (void*)0
33563 #endif
33564
33565 static void *task(p)
33566         void *p;
33567 {
33568         return (void *) (p == NULL);
33569 }
33570
33571
33572 int main(argc, argv)
33573         int argc;
33574         char **argv;
33575 {
33576
33577         /* pthread test function */
33578 #ifndef PTHREAD_CREATE_DETACHED
33579 #define PTHREAD_CREATE_DETACHED 1
33580 #endif
33581         pthread_t t;
33582         int status;
33583         int detach = PTHREAD_CREATE_DETACHED;
33584
33585 #if HAVE_PTHREADS > 4
33586         /* Final pthreads */
33587         pthread_attr_t attr;
33588
33589         status = pthread_attr_init(&attr);
33590         if( status ) return status;
33591
33592 #if HAVE_PTHREADS < 7
33593         status = pthread_attr_setdetachstate(&attr, &detach);
33594         if( status < 0 ) status = errno;
33595 #else
33596         status = pthread_attr_setdetachstate(&attr, detach);
33597 #endif
33598         if( status ) return status;
33599         status = pthread_create( &t, &attr, task, NULL );
33600 #if HAVE_PTHREADS < 7
33601         if( status < 0 ) status = errno;
33602 #endif
33603         if( status ) return status;
33604 #else
33605         /* Draft 4 pthreads */
33606         status = pthread_create( &t, pthread_attr_default, task, NULL );
33607         if( status ) return errno;
33608
33609         /* give thread a chance to complete */
33610         /* it should remain joinable and hence detachable */
33611         sleep( 1 );
33612
33613         status = pthread_detach( &t );
33614         if( status ) return errno;
33615 #endif
33616
33617 #ifdef HAVE_LINUX_THREADS
33618         pthread_kill_other_threads_np();
33619 #endif
33620
33621         return 0;
33622
33623 }
33624
33625 _ACEOF
33626 rm -f conftest$ac_exeext
33627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33628   (eval $ac_link) 2>&5
33629   ac_status=$?
33630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33633   (eval $ac_try) 2>&5
33634   ac_status=$?
33635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33636   (exit $ac_status); }; }; then
33637   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33638 else
33639   echo "$as_me: program exited with status $ac_status" >&5
33640 echo "$as_me: failed program was:" >&5
33641 sed 's/^/| /' conftest.$ac_ext >&5
33642
33643 ( exit $ac_status )
33644 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33645 fi
33646 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33647 fi
33648
33649                 # restore the LIBS
33650                 LIBS="$ol_LIBS"
33651
33652 fi
33653 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33654 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33655
33656         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33657                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33658                 ol_link_threads=posix
33659         fi
33660 fi
33661
33662                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33663 if test "$ol_link_threads" = no ; then
33664         # try -lpthreads -lmach -lexc
33665         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33666 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33667 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33668   echo $ECHO_N "(cached) $ECHO_C" >&6
33669 else
33670
33671                 # save the flags
33672                 ol_LIBS="$LIBS"
33673                 LIBS="-lpthreads -lmach -lexc $LIBS"
33674
33675                 if test "$cross_compiling" = yes; then
33676   cat >conftest.$ac_ext <<_ACEOF
33677 /* confdefs.h.  */
33678 _ACEOF
33679 cat confdefs.h >>conftest.$ac_ext
33680 cat >>conftest.$ac_ext <<_ACEOF
33681 /* end confdefs.h.  */
33682
33683 /* pthread test headers */
33684 #include <pthread.h>
33685 #if HAVE_PTHREADS < 7
33686 #include <errno.h>
33687 #endif
33688 #ifndef NULL
33689 #define NULL (void*)0
33690 #endif
33691
33692 static void *task(p)
33693         void *p;
33694 {
33695         return (void *) (p == NULL);
33696 }
33697
33698 int
33699 main ()
33700 {
33701
33702         /* pthread test function */
33703 #ifndef PTHREAD_CREATE_DETACHED
33704 #define PTHREAD_CREATE_DETACHED 1
33705 #endif
33706         pthread_t t;
33707         int status;
33708         int detach = PTHREAD_CREATE_DETACHED;
33709
33710 #if HAVE_PTHREADS > 4
33711         /* Final pthreads */
33712         pthread_attr_t attr;
33713
33714         status = pthread_attr_init(&attr);
33715         if( status ) return status;
33716
33717 #if HAVE_PTHREADS < 7
33718         status = pthread_attr_setdetachstate(&attr, &detach);
33719         if( status < 0 ) status = errno;
33720 #else
33721         status = pthread_attr_setdetachstate(&attr, detach);
33722 #endif
33723         if( status ) return status;
33724         status = pthread_create( &t, &attr, task, NULL );
33725 #if HAVE_PTHREADS < 7
33726         if( status < 0 ) status = errno;
33727 #endif
33728         if( status ) return status;
33729 #else
33730         /* Draft 4 pthreads */
33731         status = pthread_create( &t, pthread_attr_default, task, NULL );
33732         if( status ) return errno;
33733
33734         /* give thread a chance to complete */
33735         /* it should remain joinable and hence detachable */
33736         sleep( 1 );
33737
33738         status = pthread_detach( &t );
33739         if( status ) return errno;
33740 #endif
33741
33742 #ifdef HAVE_LINUX_THREADS
33743         pthread_kill_other_threads_np();
33744 #endif
33745
33746         return 0;
33747
33748   ;
33749   return 0;
33750 }
33751 _ACEOF
33752 rm -f conftest.$ac_objext conftest$ac_exeext
33753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33754   (eval $ac_link) 2>conftest.er1
33755   ac_status=$?
33756   grep -v '^ *+' conftest.er1 >conftest.err
33757   rm -f conftest.er1
33758   cat conftest.err >&5
33759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33760   (exit $ac_status); } &&
33761          { ac_try='test -z "$ac_c_werror_flag"
33762                          || test ! -s conftest.err'
33763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33764   (eval $ac_try) 2>&5
33765   ac_status=$?
33766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33767   (exit $ac_status); }; } &&
33768          { ac_try='test -s conftest$ac_exeext'
33769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33770   (eval $ac_try) 2>&5
33771   ac_status=$?
33772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33773   (exit $ac_status); }; }; then
33774   ol_cv_pthread_lpthreads_lmach_lexc=yes
33775 else
33776   echo "$as_me: failed program was:" >&5
33777 sed 's/^/| /' conftest.$ac_ext >&5
33778
33779 ol_cv_pthread_lpthreads_lmach_lexc=no
33780 fi
33781 rm -f conftest.err conftest.$ac_objext \
33782       conftest$ac_exeext conftest.$ac_ext
33783 else
33784   cat >conftest.$ac_ext <<_ACEOF
33785 /* confdefs.h.  */
33786 _ACEOF
33787 cat confdefs.h >>conftest.$ac_ext
33788 cat >>conftest.$ac_ext <<_ACEOF
33789 /* end confdefs.h.  */
33790
33791 /* pthread test headers */
33792 #include <pthread.h>
33793 #if HAVE_PTHREADS < 7
33794 #include <errno.h>
33795 #endif
33796 #ifndef NULL
33797 #define NULL (void*)0
33798 #endif
33799
33800 static void *task(p)
33801         void *p;
33802 {
33803         return (void *) (p == NULL);
33804 }
33805
33806
33807 int main(argc, argv)
33808         int argc;
33809         char **argv;
33810 {
33811
33812         /* pthread test function */
33813 #ifndef PTHREAD_CREATE_DETACHED
33814 #define PTHREAD_CREATE_DETACHED 1
33815 #endif
33816         pthread_t t;
33817         int status;
33818         int detach = PTHREAD_CREATE_DETACHED;
33819
33820 #if HAVE_PTHREADS > 4
33821         /* Final pthreads */
33822         pthread_attr_t attr;
33823
33824         status = pthread_attr_init(&attr);
33825         if( status ) return status;
33826
33827 #if HAVE_PTHREADS < 7
33828         status = pthread_attr_setdetachstate(&attr, &detach);
33829         if( status < 0 ) status = errno;
33830 #else
33831         status = pthread_attr_setdetachstate(&attr, detach);
33832 #endif
33833         if( status ) return status;
33834         status = pthread_create( &t, &attr, task, NULL );
33835 #if HAVE_PTHREADS < 7
33836         if( status < 0 ) status = errno;
33837 #endif
33838         if( status ) return status;
33839 #else
33840         /* Draft 4 pthreads */
33841         status = pthread_create( &t, pthread_attr_default, task, NULL );
33842         if( status ) return errno;
33843
33844         /* give thread a chance to complete */
33845         /* it should remain joinable and hence detachable */
33846         sleep( 1 );
33847
33848         status = pthread_detach( &t );
33849         if( status ) return errno;
33850 #endif
33851
33852 #ifdef HAVE_LINUX_THREADS
33853         pthread_kill_other_threads_np();
33854 #endif
33855
33856         return 0;
33857
33858 }
33859
33860 _ACEOF
33861 rm -f conftest$ac_exeext
33862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33863   (eval $ac_link) 2>&5
33864   ac_status=$?
33865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33866   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33868   (eval $ac_try) 2>&5
33869   ac_status=$?
33870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33871   (exit $ac_status); }; }; then
33872   ol_cv_pthread_lpthreads_lmach_lexc=yes
33873 else
33874   echo "$as_me: program exited with status $ac_status" >&5
33875 echo "$as_me: failed program was:" >&5
33876 sed 's/^/| /' conftest.$ac_ext >&5
33877
33878 ( exit $ac_status )
33879 ol_cv_pthread_lpthreads_lmach_lexc=no
33880 fi
33881 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33882 fi
33883
33884                 # restore the LIBS
33885                 LIBS="$ol_LIBS"
33886
33887 fi
33888 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33889 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33890
33891         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33892                 ol_link_pthreads="-lpthreads -lmach -lexc"
33893                 ol_link_threads=posix
33894         fi
33895 fi
33896
33897                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33898 if test "$ol_link_threads" = no ; then
33899         # try -lpthreads -lexc
33900         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33901 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33902 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33903   echo $ECHO_N "(cached) $ECHO_C" >&6
33904 else
33905
33906                 # save the flags
33907                 ol_LIBS="$LIBS"
33908                 LIBS="-lpthreads -lexc $LIBS"
33909
33910                 if test "$cross_compiling" = yes; then
33911   cat >conftest.$ac_ext <<_ACEOF
33912 /* confdefs.h.  */
33913 _ACEOF
33914 cat confdefs.h >>conftest.$ac_ext
33915 cat >>conftest.$ac_ext <<_ACEOF
33916 /* end confdefs.h.  */
33917
33918 /* pthread test headers */
33919 #include <pthread.h>
33920 #if HAVE_PTHREADS < 7
33921 #include <errno.h>
33922 #endif
33923 #ifndef NULL
33924 #define NULL (void*)0
33925 #endif
33926
33927 static void *task(p)
33928         void *p;
33929 {
33930         return (void *) (p == NULL);
33931 }
33932
33933 int
33934 main ()
33935 {
33936
33937         /* pthread test function */
33938 #ifndef PTHREAD_CREATE_DETACHED
33939 #define PTHREAD_CREATE_DETACHED 1
33940 #endif
33941         pthread_t t;
33942         int status;
33943         int detach = PTHREAD_CREATE_DETACHED;
33944
33945 #if HAVE_PTHREADS > 4
33946         /* Final pthreads */
33947         pthread_attr_t attr;
33948
33949         status = pthread_attr_init(&attr);
33950         if( status ) return status;
33951
33952 #if HAVE_PTHREADS < 7
33953         status = pthread_attr_setdetachstate(&attr, &detach);
33954         if( status < 0 ) status = errno;
33955 #else
33956         status = pthread_attr_setdetachstate(&attr, detach);
33957 #endif
33958         if( status ) return status;
33959         status = pthread_create( &t, &attr, task, NULL );
33960 #if HAVE_PTHREADS < 7
33961         if( status < 0 ) status = errno;
33962 #endif
33963         if( status ) return status;
33964 #else
33965         /* Draft 4 pthreads */
33966         status = pthread_create( &t, pthread_attr_default, task, NULL );
33967         if( status ) return errno;
33968
33969         /* give thread a chance to complete */
33970         /* it should remain joinable and hence detachable */
33971         sleep( 1 );
33972
33973         status = pthread_detach( &t );
33974         if( status ) return errno;
33975 #endif
33976
33977 #ifdef HAVE_LINUX_THREADS
33978         pthread_kill_other_threads_np();
33979 #endif
33980
33981         return 0;
33982
33983   ;
33984   return 0;
33985 }
33986 _ACEOF
33987 rm -f conftest.$ac_objext conftest$ac_exeext
33988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33989   (eval $ac_link) 2>conftest.er1
33990   ac_status=$?
33991   grep -v '^ *+' conftest.er1 >conftest.err
33992   rm -f conftest.er1
33993   cat conftest.err >&5
33994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33995   (exit $ac_status); } &&
33996          { ac_try='test -z "$ac_c_werror_flag"
33997                          || test ! -s conftest.err'
33998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33999   (eval $ac_try) 2>&5
34000   ac_status=$?
34001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002   (exit $ac_status); }; } &&
34003          { ac_try='test -s conftest$ac_exeext'
34004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34005   (eval $ac_try) 2>&5
34006   ac_status=$?
34007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008   (exit $ac_status); }; }; then
34009   ol_cv_pthread_lpthreads_lexc=yes
34010 else
34011   echo "$as_me: failed program was:" >&5
34012 sed 's/^/| /' conftest.$ac_ext >&5
34013
34014 ol_cv_pthread_lpthreads_lexc=no
34015 fi
34016 rm -f conftest.err conftest.$ac_objext \
34017       conftest$ac_exeext conftest.$ac_ext
34018 else
34019   cat >conftest.$ac_ext <<_ACEOF
34020 /* confdefs.h.  */
34021 _ACEOF
34022 cat confdefs.h >>conftest.$ac_ext
34023 cat >>conftest.$ac_ext <<_ACEOF
34024 /* end confdefs.h.  */
34025
34026 /* pthread test headers */
34027 #include <pthread.h>
34028 #if HAVE_PTHREADS < 7
34029 #include <errno.h>
34030 #endif
34031 #ifndef NULL
34032 #define NULL (void*)0
34033 #endif
34034
34035 static void *task(p)
34036         void *p;
34037 {
34038         return (void *) (p == NULL);
34039 }
34040
34041
34042 int main(argc, argv)
34043         int argc;
34044         char **argv;
34045 {
34046
34047         /* pthread test function */
34048 #ifndef PTHREAD_CREATE_DETACHED
34049 #define PTHREAD_CREATE_DETACHED 1
34050 #endif
34051         pthread_t t;
34052         int status;
34053         int detach = PTHREAD_CREATE_DETACHED;
34054
34055 #if HAVE_PTHREADS > 4
34056         /* Final pthreads */
34057         pthread_attr_t attr;
34058
34059         status = pthread_attr_init(&attr);
34060         if( status ) return status;
34061
34062 #if HAVE_PTHREADS < 7
34063         status = pthread_attr_setdetachstate(&attr, &detach);
34064         if( status < 0 ) status = errno;
34065 #else
34066         status = pthread_attr_setdetachstate(&attr, detach);
34067 #endif
34068         if( status ) return status;
34069         status = pthread_create( &t, &attr, task, NULL );
34070 #if HAVE_PTHREADS < 7
34071         if( status < 0 ) status = errno;
34072 #endif
34073         if( status ) return status;
34074 #else
34075         /* Draft 4 pthreads */
34076         status = pthread_create( &t, pthread_attr_default, task, NULL );
34077         if( status ) return errno;
34078
34079         /* give thread a chance to complete */
34080         /* it should remain joinable and hence detachable */
34081         sleep( 1 );
34082
34083         status = pthread_detach( &t );
34084         if( status ) return errno;
34085 #endif
34086
34087 #ifdef HAVE_LINUX_THREADS
34088         pthread_kill_other_threads_np();
34089 #endif
34090
34091         return 0;
34092
34093 }
34094
34095 _ACEOF
34096 rm -f conftest$ac_exeext
34097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34098   (eval $ac_link) 2>&5
34099   ac_status=$?
34100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34101   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34103   (eval $ac_try) 2>&5
34104   ac_status=$?
34105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106   (exit $ac_status); }; }; then
34107   ol_cv_pthread_lpthreads_lexc=yes
34108 else
34109   echo "$as_me: program exited with status $ac_status" >&5
34110 echo "$as_me: failed program was:" >&5
34111 sed 's/^/| /' conftest.$ac_ext >&5
34112
34113 ( exit $ac_status )
34114 ol_cv_pthread_lpthreads_lexc=no
34115 fi
34116 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34117 fi
34118
34119                 # restore the LIBS
34120                 LIBS="$ol_LIBS"
34121
34122 fi
34123 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
34124 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
34125
34126         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
34127                 ol_link_pthreads="-lpthreads -lexc"
34128                 ol_link_threads=posix
34129         fi
34130 fi
34131
34132
34133                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
34134 if test "$ol_link_threads" = no ; then
34135         # try -lpthreads
34136         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
34137 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
34138 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
34139   echo $ECHO_N "(cached) $ECHO_C" >&6
34140 else
34141
34142                 # save the flags
34143                 ol_LIBS="$LIBS"
34144                 LIBS="-lpthreads $LIBS"
34145
34146                 if test "$cross_compiling" = yes; then
34147   cat >conftest.$ac_ext <<_ACEOF
34148 /* confdefs.h.  */
34149 _ACEOF
34150 cat confdefs.h >>conftest.$ac_ext
34151 cat >>conftest.$ac_ext <<_ACEOF
34152 /* end confdefs.h.  */
34153
34154 /* pthread test headers */
34155 #include <pthread.h>
34156 #if HAVE_PTHREADS < 7
34157 #include <errno.h>
34158 #endif
34159 #ifndef NULL
34160 #define NULL (void*)0
34161 #endif
34162
34163 static void *task(p)
34164         void *p;
34165 {
34166         return (void *) (p == NULL);
34167 }
34168
34169 int
34170 main ()
34171 {
34172
34173         /* pthread test function */
34174 #ifndef PTHREAD_CREATE_DETACHED
34175 #define PTHREAD_CREATE_DETACHED 1
34176 #endif
34177         pthread_t t;
34178         int status;
34179         int detach = PTHREAD_CREATE_DETACHED;
34180
34181 #if HAVE_PTHREADS > 4
34182         /* Final pthreads */
34183         pthread_attr_t attr;
34184
34185         status = pthread_attr_init(&attr);
34186         if( status ) return status;
34187
34188 #if HAVE_PTHREADS < 7
34189         status = pthread_attr_setdetachstate(&attr, &detach);
34190         if( status < 0 ) status = errno;
34191 #else
34192         status = pthread_attr_setdetachstate(&attr, detach);
34193 #endif
34194         if( status ) return status;
34195         status = pthread_create( &t, &attr, task, NULL );
34196 #if HAVE_PTHREADS < 7
34197         if( status < 0 ) status = errno;
34198 #endif
34199         if( status ) return status;
34200 #else
34201         /* Draft 4 pthreads */
34202         status = pthread_create( &t, pthread_attr_default, task, NULL );
34203         if( status ) return errno;
34204
34205         /* give thread a chance to complete */
34206         /* it should remain joinable and hence detachable */
34207         sleep( 1 );
34208
34209         status = pthread_detach( &t );
34210         if( status ) return errno;
34211 #endif
34212
34213 #ifdef HAVE_LINUX_THREADS
34214         pthread_kill_other_threads_np();
34215 #endif
34216
34217         return 0;
34218
34219   ;
34220   return 0;
34221 }
34222 _ACEOF
34223 rm -f conftest.$ac_objext conftest$ac_exeext
34224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34225   (eval $ac_link) 2>conftest.er1
34226   ac_status=$?
34227   grep -v '^ *+' conftest.er1 >conftest.err
34228   rm -f conftest.er1
34229   cat conftest.err >&5
34230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231   (exit $ac_status); } &&
34232          { ac_try='test -z "$ac_c_werror_flag"
34233                          || test ! -s conftest.err'
34234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34235   (eval $ac_try) 2>&5
34236   ac_status=$?
34237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34238   (exit $ac_status); }; } &&
34239          { ac_try='test -s conftest$ac_exeext'
34240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34241   (eval $ac_try) 2>&5
34242   ac_status=$?
34243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34244   (exit $ac_status); }; }; then
34245   ol_cv_pthread_lib_lpthreads=yes
34246 else
34247   echo "$as_me: failed program was:" >&5
34248 sed 's/^/| /' conftest.$ac_ext >&5
34249
34250 ol_cv_pthread_lib_lpthreads=no
34251 fi
34252 rm -f conftest.err conftest.$ac_objext \
34253       conftest$ac_exeext conftest.$ac_ext
34254 else
34255   cat >conftest.$ac_ext <<_ACEOF
34256 /* confdefs.h.  */
34257 _ACEOF
34258 cat confdefs.h >>conftest.$ac_ext
34259 cat >>conftest.$ac_ext <<_ACEOF
34260 /* end confdefs.h.  */
34261
34262 /* pthread test headers */
34263 #include <pthread.h>
34264 #if HAVE_PTHREADS < 7
34265 #include <errno.h>
34266 #endif
34267 #ifndef NULL
34268 #define NULL (void*)0
34269 #endif
34270
34271 static void *task(p)
34272         void *p;
34273 {
34274         return (void *) (p == NULL);
34275 }
34276
34277
34278 int main(argc, argv)
34279         int argc;
34280         char **argv;
34281 {
34282
34283         /* pthread test function */
34284 #ifndef PTHREAD_CREATE_DETACHED
34285 #define PTHREAD_CREATE_DETACHED 1
34286 #endif
34287         pthread_t t;
34288         int status;
34289         int detach = PTHREAD_CREATE_DETACHED;
34290
34291 #if HAVE_PTHREADS > 4
34292         /* Final pthreads */
34293         pthread_attr_t attr;
34294
34295         status = pthread_attr_init(&attr);
34296         if( status ) return status;
34297
34298 #if HAVE_PTHREADS < 7
34299         status = pthread_attr_setdetachstate(&attr, &detach);
34300         if( status < 0 ) status = errno;
34301 #else
34302         status = pthread_attr_setdetachstate(&attr, detach);
34303 #endif
34304         if( status ) return status;
34305         status = pthread_create( &t, &attr, task, NULL );
34306 #if HAVE_PTHREADS < 7
34307         if( status < 0 ) status = errno;
34308 #endif
34309         if( status ) return status;
34310 #else
34311         /* Draft 4 pthreads */
34312         status = pthread_create( &t, pthread_attr_default, task, NULL );
34313         if( status ) return errno;
34314
34315         /* give thread a chance to complete */
34316         /* it should remain joinable and hence detachable */
34317         sleep( 1 );
34318
34319         status = pthread_detach( &t );
34320         if( status ) return errno;
34321 #endif
34322
34323 #ifdef HAVE_LINUX_THREADS
34324         pthread_kill_other_threads_np();
34325 #endif
34326
34327         return 0;
34328
34329 }
34330
34331 _ACEOF
34332 rm -f conftest$ac_exeext
34333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34334   (eval $ac_link) 2>&5
34335   ac_status=$?
34336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34339   (eval $ac_try) 2>&5
34340   ac_status=$?
34341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34342   (exit $ac_status); }; }; then
34343   ol_cv_pthread_lib_lpthreads=yes
34344 else
34345   echo "$as_me: program exited with status $ac_status" >&5
34346 echo "$as_me: failed program was:" >&5
34347 sed 's/^/| /' conftest.$ac_ext >&5
34348
34349 ( exit $ac_status )
34350 ol_cv_pthread_lib_lpthreads=no
34351 fi
34352 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34353 fi
34354
34355                 # restore the LIBS
34356                 LIBS="$ol_LIBS"
34357
34358 fi
34359 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34360 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34361
34362         if test $ol_cv_pthread_lib_lpthreads = yes ; then
34363                 ol_link_pthreads="-lpthreads"
34364                 ol_link_threads=posix
34365         fi
34366 fi
34367
34368
34369                 if test $ol_link_threads != no ; then
34370                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34371
34372                                                 save_CPPFLAGS="$CPPFLAGS"
34373                         save_LIBS="$LIBS"
34374                         LIBS="$LTHREAD_LIBS $LIBS"
34375
34376
34377
34378
34379 for ac_func in sched_yield pthread_yield thr_yield
34380 do
34381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34382 echo "$as_me:$LINENO: checking for $ac_func" >&5
34383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34384 if eval "test \"\${$as_ac_var+set}\" = set"; then
34385   echo $ECHO_N "(cached) $ECHO_C" >&6
34386 else
34387   cat >conftest.$ac_ext <<_ACEOF
34388 /* confdefs.h.  */
34389 _ACEOF
34390 cat confdefs.h >>conftest.$ac_ext
34391 cat >>conftest.$ac_ext <<_ACEOF
34392 /* end confdefs.h.  */
34393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34395 #define $ac_func innocuous_$ac_func
34396
34397 /* System header to define __stub macros and hopefully few prototypes,
34398     which can conflict with char $ac_func (); below.
34399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34400     <limits.h> exists even on freestanding compilers.  */
34401
34402 #ifdef __STDC__
34403 # include <limits.h>
34404 #else
34405 # include <assert.h>
34406 #endif
34407
34408 #undef $ac_func
34409
34410 /* Override any gcc2 internal prototype to avoid an error.  */
34411 #ifdef __cplusplus
34412 extern "C"
34413 {
34414 #endif
34415 /* We use char because int might match the return type of a gcc2
34416    builtin and then its argument prototype would still apply.  */
34417 char $ac_func ();
34418 /* The GNU C library defines this for functions which it implements
34419     to always fail with ENOSYS.  Some functions are actually named
34420     something starting with __ and the normal name is an alias.  */
34421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34422 choke me
34423 #else
34424 char (*f) () = $ac_func;
34425 #endif
34426 #ifdef __cplusplus
34427 }
34428 #endif
34429
34430 int
34431 main ()
34432 {
34433 return f != $ac_func;
34434   ;
34435   return 0;
34436 }
34437 _ACEOF
34438 rm -f conftest.$ac_objext conftest$ac_exeext
34439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34440   (eval $ac_link) 2>conftest.er1
34441   ac_status=$?
34442   grep -v '^ *+' conftest.er1 >conftest.err
34443   rm -f conftest.er1
34444   cat conftest.err >&5
34445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34446   (exit $ac_status); } &&
34447          { ac_try='test -z "$ac_c_werror_flag"
34448                          || test ! -s conftest.err'
34449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34450   (eval $ac_try) 2>&5
34451   ac_status=$?
34452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34453   (exit $ac_status); }; } &&
34454          { ac_try='test -s conftest$ac_exeext'
34455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34456   (eval $ac_try) 2>&5
34457   ac_status=$?
34458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34459   (exit $ac_status); }; }; then
34460   eval "$as_ac_var=yes"
34461 else
34462   echo "$as_me: failed program was:" >&5
34463 sed 's/^/| /' conftest.$ac_ext >&5
34464
34465 eval "$as_ac_var=no"
34466 fi
34467 rm -f conftest.err conftest.$ac_objext \
34468       conftest$ac_exeext conftest.$ac_ext
34469 fi
34470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34471 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34472 if test `eval echo '${'$as_ac_var'}'` = yes; then
34473   cat >>confdefs.h <<_ACEOF
34474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34475 _ACEOF
34476
34477 fi
34478 done
34479
34480
34481                         if test $ac_cv_func_sched_yield = no -a \
34482                                 $ac_cv_func_pthread_yield = no -a \
34483                                 $ac_cv_func_thr_yield = no ; then
34484                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34485 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34486 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34487   echo $ECHO_N "(cached) $ECHO_C" >&6
34488 else
34489   ac_check_lib_save_LIBS=$LIBS
34490 LIBS="-lrt  $LIBS"
34491 cat >conftest.$ac_ext <<_ACEOF
34492 /* confdefs.h.  */
34493 _ACEOF
34494 cat confdefs.h >>conftest.$ac_ext
34495 cat >>conftest.$ac_ext <<_ACEOF
34496 /* end confdefs.h.  */
34497
34498 /* Override any gcc2 internal prototype to avoid an error.  */
34499 #ifdef __cplusplus
34500 extern "C"
34501 #endif
34502 /* We use char because int might match the return type of a gcc2
34503    builtin and then its argument prototype would still apply.  */
34504 char sched_yield ();
34505 int
34506 main ()
34507 {
34508 sched_yield ();
34509   ;
34510   return 0;
34511 }
34512 _ACEOF
34513 rm -f conftest.$ac_objext conftest$ac_exeext
34514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34515   (eval $ac_link) 2>conftest.er1
34516   ac_status=$?
34517   grep -v '^ *+' conftest.er1 >conftest.err
34518   rm -f conftest.er1
34519   cat conftest.err >&5
34520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34521   (exit $ac_status); } &&
34522          { ac_try='test -z "$ac_c_werror_flag"
34523                          || test ! -s conftest.err'
34524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34525   (eval $ac_try) 2>&5
34526   ac_status=$?
34527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34528   (exit $ac_status); }; } &&
34529          { ac_try='test -s conftest$ac_exeext'
34530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34531   (eval $ac_try) 2>&5
34532   ac_status=$?
34533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34534   (exit $ac_status); }; }; then
34535   ac_cv_lib_rt_sched_yield=yes
34536 else
34537   echo "$as_me: failed program was:" >&5
34538 sed 's/^/| /' conftest.$ac_ext >&5
34539
34540 ac_cv_lib_rt_sched_yield=no
34541 fi
34542 rm -f conftest.err conftest.$ac_objext \
34543       conftest$ac_exeext conftest.$ac_ext
34544 LIBS=$ac_check_lib_save_LIBS
34545 fi
34546 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34547 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34548 if test $ac_cv_lib_rt_sched_yield = yes; then
34549   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34550
34551 cat >>confdefs.h <<\_ACEOF
34552 #define HAVE_SCHED_YIELD 1
34553 _ACEOF
34554
34555                                         ac_cv_func_sched_yield=yes
34556 else
34557   ac_cv_func_sched_yield=no
34558 fi
34559
34560                         fi
34561                         if test $ac_cv_func_sched_yield = no -a \
34562                                 $ac_cv_func_pthread_yield = no -a \
34563                                 "$ac_cv_func_thr_yield" = no ; then
34564                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34565 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34566                         fi
34567
34568
34569
34570 for ac_func in pthread_kill pthread_rwlock_destroy
34571 do
34572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34573 echo "$as_me:$LINENO: checking for $ac_func" >&5
34574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34575 if eval "test \"\${$as_ac_var+set}\" = set"; then
34576   echo $ECHO_N "(cached) $ECHO_C" >&6
34577 else
34578   cat >conftest.$ac_ext <<_ACEOF
34579 /* confdefs.h.  */
34580 _ACEOF
34581 cat confdefs.h >>conftest.$ac_ext
34582 cat >>conftest.$ac_ext <<_ACEOF
34583 /* end confdefs.h.  */
34584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34585    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34586 #define $ac_func innocuous_$ac_func
34587
34588 /* System header to define __stub macros and hopefully few prototypes,
34589     which can conflict with char $ac_func (); below.
34590     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34591     <limits.h> exists even on freestanding compilers.  */
34592
34593 #ifdef __STDC__
34594 # include <limits.h>
34595 #else
34596 # include <assert.h>
34597 #endif
34598
34599 #undef $ac_func
34600
34601 /* Override any gcc2 internal prototype to avoid an error.  */
34602 #ifdef __cplusplus
34603 extern "C"
34604 {
34605 #endif
34606 /* We use char because int might match the return type of a gcc2
34607    builtin and then its argument prototype would still apply.  */
34608 char $ac_func ();
34609 /* The GNU C library defines this for functions which it implements
34610     to always fail with ENOSYS.  Some functions are actually named
34611     something starting with __ and the normal name is an alias.  */
34612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34613 choke me
34614 #else
34615 char (*f) () = $ac_func;
34616 #endif
34617 #ifdef __cplusplus
34618 }
34619 #endif
34620
34621 int
34622 main ()
34623 {
34624 return f != $ac_func;
34625   ;
34626   return 0;
34627 }
34628 _ACEOF
34629 rm -f conftest.$ac_objext conftest$ac_exeext
34630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34631   (eval $ac_link) 2>conftest.er1
34632   ac_status=$?
34633   grep -v '^ *+' conftest.er1 >conftest.err
34634   rm -f conftest.er1
34635   cat conftest.err >&5
34636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34637   (exit $ac_status); } &&
34638          { ac_try='test -z "$ac_c_werror_flag"
34639                          || test ! -s conftest.err'
34640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34641   (eval $ac_try) 2>&5
34642   ac_status=$?
34643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34644   (exit $ac_status); }; } &&
34645          { ac_try='test -s conftest$ac_exeext'
34646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34647   (eval $ac_try) 2>&5
34648   ac_status=$?
34649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34650   (exit $ac_status); }; }; then
34651   eval "$as_ac_var=yes"
34652 else
34653   echo "$as_me: failed program was:" >&5
34654 sed 's/^/| /' conftest.$ac_ext >&5
34655
34656 eval "$as_ac_var=no"
34657 fi
34658 rm -f conftest.err conftest.$ac_objext \
34659       conftest$ac_exeext conftest.$ac_ext
34660 fi
34661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34663 if test `eval echo '${'$as_ac_var'}'` = yes; then
34664   cat >>confdefs.h <<_ACEOF
34665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34666 _ACEOF
34667
34668 fi
34669 done
34670
34671
34672                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34673 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34674 if test "${ol_cv_func_pthread_detach+set}" = set; then
34675   echo $ECHO_N "(cached) $ECHO_C" >&6
34676 else
34677
34678                                                                 cat >conftest.$ac_ext <<_ACEOF
34679 /* confdefs.h.  */
34680 _ACEOF
34681 cat confdefs.h >>conftest.$ac_ext
34682 cat >>conftest.$ac_ext <<_ACEOF
34683 /* end confdefs.h.  */
34684
34685 #include <pthread.h>
34686 #ifndef NULL
34687 #define NULL (void*)0
34688 #endif
34689
34690 int
34691 main ()
34692 {
34693 pthread_detach(NULL);
34694   ;
34695   return 0;
34696 }
34697 _ACEOF
34698 rm -f conftest.$ac_objext conftest$ac_exeext
34699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34700   (eval $ac_link) 2>conftest.er1
34701   ac_status=$?
34702   grep -v '^ *+' conftest.er1 >conftest.err
34703   rm -f conftest.er1
34704   cat conftest.err >&5
34705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34706   (exit $ac_status); } &&
34707          { ac_try='test -z "$ac_c_werror_flag"
34708                          || test ! -s conftest.err'
34709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34710   (eval $ac_try) 2>&5
34711   ac_status=$?
34712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34713   (exit $ac_status); }; } &&
34714          { ac_try='test -s conftest$ac_exeext'
34715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34716   (eval $ac_try) 2>&5
34717   ac_status=$?
34718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34719   (exit $ac_status); }; }; then
34720   ol_cv_func_pthread_detach=yes
34721 else
34722   echo "$as_me: failed program was:" >&5
34723 sed 's/^/| /' conftest.$ac_ext >&5
34724
34725 ol_cv_func_pthread_detach=no
34726 fi
34727 rm -f conftest.err conftest.$ac_objext \
34728       conftest$ac_exeext conftest.$ac_ext
34729
34730 fi
34731 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34732 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34733
34734                         if test $ol_cv_func_pthread_detach = no ; then
34735                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34736 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34737    { (exit 1); exit 1; }; }
34738                         fi
34739
34740
34741 cat >>confdefs.h <<\_ACEOF
34742 #define HAVE_PTHREAD_DETACH 1
34743 _ACEOF
34744
34745
34746
34747
34748
34749
34750 for ac_func in \
34751                                 pthread_setconcurrency \
34752                                 pthread_getconcurrency \
34753                                 thr_setconcurrency \
34754                                 thr_getconcurrency \
34755
34756 do
34757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34758 echo "$as_me:$LINENO: checking for $ac_func" >&5
34759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34760 if eval "test \"\${$as_ac_var+set}\" = set"; then
34761   echo $ECHO_N "(cached) $ECHO_C" >&6
34762 else
34763   cat >conftest.$ac_ext <<_ACEOF
34764 /* confdefs.h.  */
34765 _ACEOF
34766 cat confdefs.h >>conftest.$ac_ext
34767 cat >>conftest.$ac_ext <<_ACEOF
34768 /* end confdefs.h.  */
34769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34771 #define $ac_func innocuous_$ac_func
34772
34773 /* System header to define __stub macros and hopefully few prototypes,
34774     which can conflict with char $ac_func (); below.
34775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34776     <limits.h> exists even on freestanding compilers.  */
34777
34778 #ifdef __STDC__
34779 # include <limits.h>
34780 #else
34781 # include <assert.h>
34782 #endif
34783
34784 #undef $ac_func
34785
34786 /* Override any gcc2 internal prototype to avoid an error.  */
34787 #ifdef __cplusplus
34788 extern "C"
34789 {
34790 #endif
34791 /* We use char because int might match the return type of a gcc2
34792    builtin and then its argument prototype would still apply.  */
34793 char $ac_func ();
34794 /* The GNU C library defines this for functions which it implements
34795     to always fail with ENOSYS.  Some functions are actually named
34796     something starting with __ and the normal name is an alias.  */
34797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34798 choke me
34799 #else
34800 char (*f) () = $ac_func;
34801 #endif
34802 #ifdef __cplusplus
34803 }
34804 #endif
34805
34806 int
34807 main ()
34808 {
34809 return f != $ac_func;
34810   ;
34811   return 0;
34812 }
34813 _ACEOF
34814 rm -f conftest.$ac_objext conftest$ac_exeext
34815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34816   (eval $ac_link) 2>conftest.er1
34817   ac_status=$?
34818   grep -v '^ *+' conftest.er1 >conftest.err
34819   rm -f conftest.er1
34820   cat conftest.err >&5
34821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34822   (exit $ac_status); } &&
34823          { ac_try='test -z "$ac_c_werror_flag"
34824                          || test ! -s conftest.err'
34825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34826   (eval $ac_try) 2>&5
34827   ac_status=$?
34828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34829   (exit $ac_status); }; } &&
34830          { ac_try='test -s conftest$ac_exeext'
34831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34832   (eval $ac_try) 2>&5
34833   ac_status=$?
34834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34835   (exit $ac_status); }; }; then
34836   eval "$as_ac_var=yes"
34837 else
34838   echo "$as_me: failed program was:" >&5
34839 sed 's/^/| /' conftest.$ac_ext >&5
34840
34841 eval "$as_ac_var=no"
34842 fi
34843 rm -f conftest.err conftest.$ac_objext \
34844       conftest$ac_exeext conftest.$ac_ext
34845 fi
34846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34848 if test `eval echo '${'$as_ac_var'}'` = yes; then
34849   cat >>confdefs.h <<_ACEOF
34850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34851 _ACEOF
34852
34853 fi
34854 done
34855
34856
34857
34858
34859 for ac_func in pthread_kill_other_threads_np
34860 do
34861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34862 echo "$as_me:$LINENO: checking for $ac_func" >&5
34863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34864 if eval "test \"\${$as_ac_var+set}\" = set"; then
34865   echo $ECHO_N "(cached) $ECHO_C" >&6
34866 else
34867   cat >conftest.$ac_ext <<_ACEOF
34868 /* confdefs.h.  */
34869 _ACEOF
34870 cat confdefs.h >>conftest.$ac_ext
34871 cat >>conftest.$ac_ext <<_ACEOF
34872 /* end confdefs.h.  */
34873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34874    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34875 #define $ac_func innocuous_$ac_func
34876
34877 /* System header to define __stub macros and hopefully few prototypes,
34878     which can conflict with char $ac_func (); below.
34879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34880     <limits.h> exists even on freestanding compilers.  */
34881
34882 #ifdef __STDC__
34883 # include <limits.h>
34884 #else
34885 # include <assert.h>
34886 #endif
34887
34888 #undef $ac_func
34889
34890 /* Override any gcc2 internal prototype to avoid an error.  */
34891 #ifdef __cplusplus
34892 extern "C"
34893 {
34894 #endif
34895 /* We use char because int might match the return type of a gcc2
34896    builtin and then its argument prototype would still apply.  */
34897 char $ac_func ();
34898 /* The GNU C library defines this for functions which it implements
34899     to always fail with ENOSYS.  Some functions are actually named
34900     something starting with __ and the normal name is an alias.  */
34901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34902 choke me
34903 #else
34904 char (*f) () = $ac_func;
34905 #endif
34906 #ifdef __cplusplus
34907 }
34908 #endif
34909
34910 int
34911 main ()
34912 {
34913 return f != $ac_func;
34914   ;
34915   return 0;
34916 }
34917 _ACEOF
34918 rm -f conftest.$ac_objext conftest$ac_exeext
34919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34920   (eval $ac_link) 2>conftest.er1
34921   ac_status=$?
34922   grep -v '^ *+' conftest.er1 >conftest.err
34923   rm -f conftest.er1
34924   cat conftest.err >&5
34925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926   (exit $ac_status); } &&
34927          { ac_try='test -z "$ac_c_werror_flag"
34928                          || test ! -s conftest.err'
34929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34930   (eval $ac_try) 2>&5
34931   ac_status=$?
34932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34933   (exit $ac_status); }; } &&
34934          { ac_try='test -s conftest$ac_exeext'
34935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34936   (eval $ac_try) 2>&5
34937   ac_status=$?
34938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34939   (exit $ac_status); }; }; then
34940   eval "$as_ac_var=yes"
34941 else
34942   echo "$as_me: failed program was:" >&5
34943 sed 's/^/| /' conftest.$ac_ext >&5
34944
34945 eval "$as_ac_var=no"
34946 fi
34947 rm -f conftest.err conftest.$ac_objext \
34948       conftest$ac_exeext conftest.$ac_ext
34949 fi
34950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34952 if test `eval echo '${'$as_ac_var'}'` = yes; then
34953   cat >>confdefs.h <<_ACEOF
34954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34955 _ACEOF
34956
34957 fi
34958 done
34959
34960         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34961 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34962 if test "${ol_cv_sys_linux_threads+set}" = set; then
34963   echo $ECHO_N "(cached) $ECHO_C" >&6
34964 else
34965   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34966 fi
34967 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34968 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34969
34970
34971
34972
34973         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34974 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34975 if test "${ol_cv_linux_threads+set}" = set; then
34976   echo $ECHO_N "(cached) $ECHO_C" >&6
34977 else
34978
34979                 if test $ol_cv_header_linux_threads = yes -a \
34980                         $ol_cv_sys_linux_threads = yes; then
34981                         ol_cv_linux_threads=yes
34982                 elif test $ol_cv_header_linux_threads = no -a \
34983                         $ol_cv_sys_linux_threads = no; then
34984                         ol_cv_linux_threads=no
34985                 else
34986                         ol_cv_linux_threads=error
34987                 fi
34988
34989 fi
34990 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34991 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34992
34993
34994                         if test $ol_cv_linux_threads = error; then
34995                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34996 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34997    { (exit 1); exit 1; }; };
34998                         fi
34999
35000                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
35001 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
35002 if test "${ol_cv_pthread_create_works+set}" = set; then
35003   echo $ECHO_N "(cached) $ECHO_C" >&6
35004 else
35005
35006                         if test "$cross_compiling" = yes; then
35007                                 ol_cv_pthread_create_works=yes
35008 else
35009   cat >conftest.$ac_ext <<_ACEOF
35010 /* confdefs.h.  */
35011 _ACEOF
35012 cat confdefs.h >>conftest.$ac_ext
35013 cat >>conftest.$ac_ext <<_ACEOF
35014 /* end confdefs.h.  */
35015
35016 /* pthread test headers */
35017 #include <pthread.h>
35018 #if HAVE_PTHREADS < 7
35019 #include <errno.h>
35020 #endif
35021 #ifndef NULL
35022 #define NULL (void*)0
35023 #endif
35024
35025 static void *task(p)
35026         void *p;
35027 {
35028         return (void *) (p == NULL);
35029 }
35030
35031
35032 int main(argc, argv)
35033         int argc;
35034         char **argv;
35035 {
35036
35037         /* pthread test function */
35038 #ifndef PTHREAD_CREATE_DETACHED
35039 #define PTHREAD_CREATE_DETACHED 1
35040 #endif
35041         pthread_t t;
35042         int status;
35043         int detach = PTHREAD_CREATE_DETACHED;
35044
35045 #if HAVE_PTHREADS > 4
35046         /* Final pthreads */
35047         pthread_attr_t attr;
35048
35049         status = pthread_attr_init(&attr);
35050         if( status ) return status;
35051
35052 #if HAVE_PTHREADS < 7
35053         status = pthread_attr_setdetachstate(&attr, &detach);
35054         if( status < 0 ) status = errno;
35055 #else
35056         status = pthread_attr_setdetachstate(&attr, detach);
35057 #endif
35058         if( status ) return status;
35059         status = pthread_create( &t, &attr, task, NULL );
35060 #if HAVE_PTHREADS < 7
35061         if( status < 0 ) status = errno;
35062 #endif
35063         if( status ) return status;
35064 #else
35065         /* Draft 4 pthreads */
35066         status = pthread_create( &t, pthread_attr_default, task, NULL );
35067         if( status ) return errno;
35068
35069         /* give thread a chance to complete */
35070         /* it should remain joinable and hence detachable */
35071         sleep( 1 );
35072
35073         status = pthread_detach( &t );
35074         if( status ) return errno;
35075 #endif
35076
35077 #ifdef HAVE_LINUX_THREADS
35078         pthread_kill_other_threads_np();
35079 #endif
35080
35081         return 0;
35082
35083 }
35084
35085 _ACEOF
35086 rm -f conftest$ac_exeext
35087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35088   (eval $ac_link) 2>&5
35089   ac_status=$?
35090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35091   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35093   (eval $ac_try) 2>&5
35094   ac_status=$?
35095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096   (exit $ac_status); }; }; then
35097   ol_cv_pthread_create_works=yes
35098 else
35099   echo "$as_me: program exited with status $ac_status" >&5
35100 echo "$as_me: failed program was:" >&5
35101 sed 's/^/| /' conftest.$ac_ext >&5
35102
35103 ( exit $ac_status )
35104 ol_cv_pthread_create_works=no
35105 fi
35106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35107 fi
35108 fi
35109 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
35110 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
35111
35112                         if test $ol_cv_pthread_create_works = no ; then
35113                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
35114 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
35115    { (exit 1); exit 1; }; }
35116                         fi
35117
35118                                                 if test $ol_with_yielding_select = auto ; then
35119                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
35120 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
35121 if test "${ol_cv_pthread_select_yields+set}" = set; then
35122   echo $ECHO_N "(cached) $ECHO_C" >&6
35123 else
35124
35125                                 if test "$cross_compiling" = yes; then
35126   ol_cv_pthread_select_yields=cross
35127 else
35128   cat >conftest.$ac_ext <<_ACEOF
35129 /* confdefs.h.  */
35130 _ACEOF
35131 cat confdefs.h >>conftest.$ac_ext
35132 cat >>conftest.$ac_ext <<_ACEOF
35133 /* end confdefs.h.  */
35134
35135 #include <sys/types.h>
35136 #include <sys/time.h>
35137 #include <unistd.h>
35138 #include <pthread.h>
35139 #ifndef NULL
35140 #define NULL (void*) 0
35141 #endif
35142
35143 static int fildes[2];
35144
35145 static void *task(p)
35146         void *p;
35147 {
35148         int i;
35149         struct timeval tv;
35150
35151         fd_set rfds;
35152
35153         tv.tv_sec=10;
35154         tv.tv_usec=0;
35155
35156         FD_ZERO(&rfds);
35157         FD_SET(fildes[0], &rfds);
35158
35159         /* we're not interested in any fds */
35160         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
35161
35162         if(i < 0) {
35163                 perror("select");
35164                 exit(10);
35165         }
35166
35167         exit(0); /* if we exit here, the select blocked the whole process */
35168 }
35169
35170 int main(argc, argv)
35171         int argc;
35172         char **argv;
35173 {
35174         pthread_t t;
35175
35176         /* create a pipe to select */
35177         if(pipe(&fildes[0])) {
35178                 perror("select");
35179                 exit(1);
35180         }
35181
35182 #ifdef HAVE_PTHREAD_SETCONCURRENCY
35183         (void) pthread_setconcurrency(2);
35184 #else
35185 #ifdef HAVE_THR_SETCONCURRENCY
35186         /* Set Solaris LWP concurrency to 2 */
35187         thr_setconcurrency(2);
35188 #endif
35189 #endif
35190
35191 #if HAVE_PTHREADS < 6
35192         pthread_create(&t, pthread_attr_default, task, NULL);
35193 #else
35194         pthread_create(&t, NULL, task, NULL);
35195 #endif
35196
35197         /* make sure task runs first */
35198 #if HAVE_THR_YIELD
35199         thr_yield();
35200 #elif defined( HAVE_SCHED_YIELD )
35201         sched_yield();
35202 #elif defined( HAVE_PTHREAD_YIELD )
35203         pthread_yield();
35204 #endif
35205
35206         exit(2);
35207 }
35208 _ACEOF
35209 rm -f conftest$ac_exeext
35210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35211   (eval $ac_link) 2>&5
35212   ac_status=$?
35213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35214   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35216   (eval $ac_try) 2>&5
35217   ac_status=$?
35218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35219   (exit $ac_status); }; }; then
35220   ol_cv_pthread_select_yields=no
35221 else
35222   echo "$as_me: program exited with status $ac_status" >&5
35223 echo "$as_me: failed program was:" >&5
35224 sed 's/^/| /' conftest.$ac_ext >&5
35225
35226 ( exit $ac_status )
35227 ol_cv_pthread_select_yields=yes
35228 fi
35229 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35230 fi
35231 fi
35232 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
35233 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
35234
35235                                 if test $ol_cv_pthread_select_yields = cross ; then
35236                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
35237 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
35238    { (exit 1); exit 1; }; }
35239                                 fi
35240
35241                                 if test $ol_cv_pthread_select_yields = yes ; then
35242                                         ol_with_yielding_select=yes
35243                                 fi
35244                         fi
35245
35246                                                 CPPFLAGS="$save_CPPFLAGS"
35247                         LIBS="$save_LIBS"
35248                 else
35249                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
35250 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
35251    { (exit 1); exit 1; }; }
35252                 fi
35253         fi
35254
35255         if test $ol_with_threads = posix ; then
35256                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
35257 echo "$as_me: error: could not locate POSIX Threads" >&2;}
35258    { (exit 1); exit 1; }; }
35259         fi
35260 fi
35261
35262 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35263         -o $ol_with_threads = mach ; then
35264
35265
35266
35267 for ac_header in mach/cthreads.h cthreads.h
35268 do
35269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35271   echo "$as_me:$LINENO: checking for $ac_header" >&5
35272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35274   echo $ECHO_N "(cached) $ECHO_C" >&6
35275 fi
35276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35278 else
35279   # Is the header compilable?
35280 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35282 cat >conftest.$ac_ext <<_ACEOF
35283 /* confdefs.h.  */
35284 _ACEOF
35285 cat confdefs.h >>conftest.$ac_ext
35286 cat >>conftest.$ac_ext <<_ACEOF
35287 /* end confdefs.h.  */
35288 $ac_includes_default
35289 #include <$ac_header>
35290 _ACEOF
35291 rm -f conftest.$ac_objext
35292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35293   (eval $ac_compile) 2>conftest.er1
35294   ac_status=$?
35295   grep -v '^ *+' conftest.er1 >conftest.err
35296   rm -f conftest.er1
35297   cat conftest.err >&5
35298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35299   (exit $ac_status); } &&
35300          { ac_try='test -z "$ac_c_werror_flag"
35301                          || test ! -s conftest.err'
35302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35303   (eval $ac_try) 2>&5
35304   ac_status=$?
35305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35306   (exit $ac_status); }; } &&
35307          { ac_try='test -s conftest.$ac_objext'
35308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35309   (eval $ac_try) 2>&5
35310   ac_status=$?
35311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35312   (exit $ac_status); }; }; then
35313   ac_header_compiler=yes
35314 else
35315   echo "$as_me: failed program was:" >&5
35316 sed 's/^/| /' conftest.$ac_ext >&5
35317
35318 ac_header_compiler=no
35319 fi
35320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35322 echo "${ECHO_T}$ac_header_compiler" >&6
35323
35324 # Is the header present?
35325 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35327 cat >conftest.$ac_ext <<_ACEOF
35328 /* confdefs.h.  */
35329 _ACEOF
35330 cat confdefs.h >>conftest.$ac_ext
35331 cat >>conftest.$ac_ext <<_ACEOF
35332 /* end confdefs.h.  */
35333 #include <$ac_header>
35334 _ACEOF
35335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35336   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35337   ac_status=$?
35338   grep -v '^ *+' conftest.er1 >conftest.err
35339   rm -f conftest.er1
35340   cat conftest.err >&5
35341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35342   (exit $ac_status); } >/dev/null; then
35343   if test -s conftest.err; then
35344     ac_cpp_err=$ac_c_preproc_warn_flag
35345     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35346   else
35347     ac_cpp_err=
35348   fi
35349 else
35350   ac_cpp_err=yes
35351 fi
35352 if test -z "$ac_cpp_err"; then
35353   ac_header_preproc=yes
35354 else
35355   echo "$as_me: failed program was:" >&5
35356 sed 's/^/| /' conftest.$ac_ext >&5
35357
35358   ac_header_preproc=no
35359 fi
35360 rm -f conftest.err conftest.$ac_ext
35361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35362 echo "${ECHO_T}$ac_header_preproc" >&6
35363
35364 # So?  What about this header?
35365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35366   yes:no: )
35367     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35369     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35371     ac_header_preproc=yes
35372     ;;
35373   no:yes:* )
35374     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35376     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35377 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35378     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35380     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35381 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35384     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35386     (
35387       cat <<\_ASBOX
35388 ## ------------------------------------------ ##
35389 ## Report this to the AC_PACKAGE_NAME lists.  ##
35390 ## ------------------------------------------ ##
35391 _ASBOX
35392     ) |
35393       sed "s/^/$as_me: WARNING:     /" >&2
35394     ;;
35395 esac
35396 echo "$as_me:$LINENO: checking for $ac_header" >&5
35397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35399   echo $ECHO_N "(cached) $ECHO_C" >&6
35400 else
35401   eval "$as_ac_Header=\$ac_header_preproc"
35402 fi
35403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35405
35406 fi
35407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35408   cat >>confdefs.h <<_ACEOF
35409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35410 _ACEOF
35411
35412 fi
35413
35414 done
35415
35416         if test $ac_cv_header_mach_cthreads_h = yes ; then
35417                 ol_with_threads=found
35418
35419                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35420 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35421 if test "${ac_cv_func_cthread_fork+set}" = set; then
35422   echo $ECHO_N "(cached) $ECHO_C" >&6
35423 else
35424   cat >conftest.$ac_ext <<_ACEOF
35425 /* confdefs.h.  */
35426 _ACEOF
35427 cat confdefs.h >>conftest.$ac_ext
35428 cat >>conftest.$ac_ext <<_ACEOF
35429 /* end confdefs.h.  */
35430 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35432 #define cthread_fork innocuous_cthread_fork
35433
35434 /* System header to define __stub macros and hopefully few prototypes,
35435     which can conflict with char cthread_fork (); below.
35436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35437     <limits.h> exists even on freestanding compilers.  */
35438
35439 #ifdef __STDC__
35440 # include <limits.h>
35441 #else
35442 # include <assert.h>
35443 #endif
35444
35445 #undef cthread_fork
35446
35447 /* Override any gcc2 internal prototype to avoid an error.  */
35448 #ifdef __cplusplus
35449 extern "C"
35450 {
35451 #endif
35452 /* We use char because int might match the return type of a gcc2
35453    builtin and then its argument prototype would still apply.  */
35454 char cthread_fork ();
35455 /* The GNU C library defines this for functions which it implements
35456     to always fail with ENOSYS.  Some functions are actually named
35457     something starting with __ and the normal name is an alias.  */
35458 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35459 choke me
35460 #else
35461 char (*f) () = cthread_fork;
35462 #endif
35463 #ifdef __cplusplus
35464 }
35465 #endif
35466
35467 int
35468 main ()
35469 {
35470 return f != cthread_fork;
35471   ;
35472   return 0;
35473 }
35474 _ACEOF
35475 rm -f conftest.$ac_objext conftest$ac_exeext
35476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35477   (eval $ac_link) 2>conftest.er1
35478   ac_status=$?
35479   grep -v '^ *+' conftest.er1 >conftest.err
35480   rm -f conftest.er1
35481   cat conftest.err >&5
35482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35483   (exit $ac_status); } &&
35484          { ac_try='test -z "$ac_c_werror_flag"
35485                          || test ! -s conftest.err'
35486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35487   (eval $ac_try) 2>&5
35488   ac_status=$?
35489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35490   (exit $ac_status); }; } &&
35491          { ac_try='test -s conftest$ac_exeext'
35492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35493   (eval $ac_try) 2>&5
35494   ac_status=$?
35495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35496   (exit $ac_status); }; }; then
35497   ac_cv_func_cthread_fork=yes
35498 else
35499   echo "$as_me: failed program was:" >&5
35500 sed 's/^/| /' conftest.$ac_ext >&5
35501
35502 ac_cv_func_cthread_fork=no
35503 fi
35504 rm -f conftest.err conftest.$ac_objext \
35505       conftest$ac_exeext conftest.$ac_ext
35506 fi
35507 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35508 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35509 if test $ac_cv_func_cthread_fork = yes; then
35510   ol_link_threads=yes
35511 fi
35512
35513
35514                 if test $ol_link_threads = no ; then
35515                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35516 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35517 if test "${ol_cv_cthread_all_load+set}" = set; then
35518   echo $ECHO_N "(cached) $ECHO_C" >&6
35519 else
35520
35521                                                                 save_LIBS="$LIBS"
35522                                 LIBS="-all_load $LIBS"
35523                                 cat >conftest.$ac_ext <<_ACEOF
35524 /* confdefs.h.  */
35525 _ACEOF
35526 cat confdefs.h >>conftest.$ac_ext
35527 cat >>conftest.$ac_ext <<_ACEOF
35528 /* end confdefs.h.  */
35529 #include <mach/cthreads.h>
35530 int
35531 main ()
35532 {
35533
35534                                         cthread_fork((void *)0, (void *)0);
35535
35536   ;
35537   return 0;
35538 }
35539 _ACEOF
35540 rm -f conftest.$ac_objext conftest$ac_exeext
35541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35542   (eval $ac_link) 2>conftest.er1
35543   ac_status=$?
35544   grep -v '^ *+' conftest.er1 >conftest.err
35545   rm -f conftest.er1
35546   cat conftest.err >&5
35547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35548   (exit $ac_status); } &&
35549          { ac_try='test -z "$ac_c_werror_flag"
35550                          || test ! -s conftest.err'
35551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35552   (eval $ac_try) 2>&5
35553   ac_status=$?
35554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35555   (exit $ac_status); }; } &&
35556          { ac_try='test -s conftest$ac_exeext'
35557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35558   (eval $ac_try) 2>&5
35559   ac_status=$?
35560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35561   (exit $ac_status); }; }; then
35562   ol_cv_cthread_all_load=yes
35563 else
35564   echo "$as_me: failed program was:" >&5
35565 sed 's/^/| /' conftest.$ac_ext >&5
35566
35567 ol_cv_cthread_all_load=no
35568 fi
35569 rm -f conftest.err conftest.$ac_objext \
35570       conftest$ac_exeext conftest.$ac_ext
35571                                                                 LIBS="$save_LIBS"
35572
35573 fi
35574 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35575 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35576
35577                         if test $ol_cv_cthread_all_load = yes ; then
35578                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35579                                 ol_link_threads=mach
35580                                 ol_with_threads=found
35581                         fi
35582                 fi
35583
35584         elif test $ac_cv_header_cthreads_h = yes ; then
35585
35586                 ol_with_threads=found
35587
35588                                 save_LIBS="$LIBS"
35589                 LIBS="$LIBS -lthreads"
35590                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35591 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35592 if test "${ac_cv_func_cthread_fork+set}" = set; then
35593   echo $ECHO_N "(cached) $ECHO_C" >&6
35594 else
35595   cat >conftest.$ac_ext <<_ACEOF
35596 /* confdefs.h.  */
35597 _ACEOF
35598 cat confdefs.h >>conftest.$ac_ext
35599 cat >>conftest.$ac_ext <<_ACEOF
35600 /* end confdefs.h.  */
35601 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35603 #define cthread_fork innocuous_cthread_fork
35604
35605 /* System header to define __stub macros and hopefully few prototypes,
35606     which can conflict with char cthread_fork (); below.
35607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35608     <limits.h> exists even on freestanding compilers.  */
35609
35610 #ifdef __STDC__
35611 # include <limits.h>
35612 #else
35613 # include <assert.h>
35614 #endif
35615
35616 #undef cthread_fork
35617
35618 /* Override any gcc2 internal prototype to avoid an error.  */
35619 #ifdef __cplusplus
35620 extern "C"
35621 {
35622 #endif
35623 /* We use char because int might match the return type of a gcc2
35624    builtin and then its argument prototype would still apply.  */
35625 char cthread_fork ();
35626 /* The GNU C library defines this for functions which it implements
35627     to always fail with ENOSYS.  Some functions are actually named
35628     something starting with __ and the normal name is an alias.  */
35629 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35630 choke me
35631 #else
35632 char (*f) () = cthread_fork;
35633 #endif
35634 #ifdef __cplusplus
35635 }
35636 #endif
35637
35638 int
35639 main ()
35640 {
35641 return f != cthread_fork;
35642   ;
35643   return 0;
35644 }
35645 _ACEOF
35646 rm -f conftest.$ac_objext conftest$ac_exeext
35647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35648   (eval $ac_link) 2>conftest.er1
35649   ac_status=$?
35650   grep -v '^ *+' conftest.er1 >conftest.err
35651   rm -f conftest.er1
35652   cat conftest.err >&5
35653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35654   (exit $ac_status); } &&
35655          { ac_try='test -z "$ac_c_werror_flag"
35656                          || test ! -s conftest.err'
35657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35658   (eval $ac_try) 2>&5
35659   ac_status=$?
35660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35661   (exit $ac_status); }; } &&
35662          { ac_try='test -s conftest$ac_exeext'
35663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35664   (eval $ac_try) 2>&5
35665   ac_status=$?
35666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35667   (exit $ac_status); }; }; then
35668   ac_cv_func_cthread_fork=yes
35669 else
35670   echo "$as_me: failed program was:" >&5
35671 sed 's/^/| /' conftest.$ac_ext >&5
35672
35673 ac_cv_func_cthread_fork=no
35674 fi
35675 rm -f conftest.err conftest.$ac_objext \
35676       conftest$ac_exeext conftest.$ac_ext
35677 fi
35678 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35679 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35680 if test $ac_cv_func_cthread_fork = yes; then
35681   ol_link_threads=yes
35682 fi
35683
35684                 LIBS="$save_LIBS"
35685
35686                 if test $ol_link_threads = yes ; then
35687                         LTHREAD_LIBS="-lthreads"
35688                         ol_link_threads=mach
35689                         ol_with_threads=found
35690                 else
35691                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35692 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35693    { (exit 1); exit 1; }; }
35694                 fi
35695
35696         elif test $ol_with_threads = mach ; then
35697                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35698 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35699    { (exit 1); exit 1; }; }
35700         fi
35701
35702         if test $ol_link_threads = mach ; then
35703
35704 cat >>confdefs.h <<\_ACEOF
35705 #define HAVE_MACH_CTHREADS 1
35706 _ACEOF
35707
35708         elif test $ol_with_threads = found ; then
35709                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35710 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35711    { (exit 1); exit 1; }; }
35712         fi
35713 fi
35714
35715 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35716         -o $ol_with_threads = pth ; then
35717
35718
35719 for ac_header in pth.h
35720 do
35721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35723   echo "$as_me:$LINENO: checking for $ac_header" >&5
35724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35726   echo $ECHO_N "(cached) $ECHO_C" >&6
35727 fi
35728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35730 else
35731   # Is the header compilable?
35732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35734 cat >conftest.$ac_ext <<_ACEOF
35735 /* confdefs.h.  */
35736 _ACEOF
35737 cat confdefs.h >>conftest.$ac_ext
35738 cat >>conftest.$ac_ext <<_ACEOF
35739 /* end confdefs.h.  */
35740 $ac_includes_default
35741 #include <$ac_header>
35742 _ACEOF
35743 rm -f conftest.$ac_objext
35744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35745   (eval $ac_compile) 2>conftest.er1
35746   ac_status=$?
35747   grep -v '^ *+' conftest.er1 >conftest.err
35748   rm -f conftest.er1
35749   cat conftest.err >&5
35750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35751   (exit $ac_status); } &&
35752          { ac_try='test -z "$ac_c_werror_flag"
35753                          || test ! -s conftest.err'
35754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35755   (eval $ac_try) 2>&5
35756   ac_status=$?
35757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758   (exit $ac_status); }; } &&
35759          { ac_try='test -s conftest.$ac_objext'
35760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35761   (eval $ac_try) 2>&5
35762   ac_status=$?
35763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35764   (exit $ac_status); }; }; then
35765   ac_header_compiler=yes
35766 else
35767   echo "$as_me: failed program was:" >&5
35768 sed 's/^/| /' conftest.$ac_ext >&5
35769
35770 ac_header_compiler=no
35771 fi
35772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35774 echo "${ECHO_T}$ac_header_compiler" >&6
35775
35776 # Is the header present?
35777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35779 cat >conftest.$ac_ext <<_ACEOF
35780 /* confdefs.h.  */
35781 _ACEOF
35782 cat confdefs.h >>conftest.$ac_ext
35783 cat >>conftest.$ac_ext <<_ACEOF
35784 /* end confdefs.h.  */
35785 #include <$ac_header>
35786 _ACEOF
35787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35788   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35789   ac_status=$?
35790   grep -v '^ *+' conftest.er1 >conftest.err
35791   rm -f conftest.er1
35792   cat conftest.err >&5
35793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35794   (exit $ac_status); } >/dev/null; then
35795   if test -s conftest.err; then
35796     ac_cpp_err=$ac_c_preproc_warn_flag
35797     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35798   else
35799     ac_cpp_err=
35800   fi
35801 else
35802   ac_cpp_err=yes
35803 fi
35804 if test -z "$ac_cpp_err"; then
35805   ac_header_preproc=yes
35806 else
35807   echo "$as_me: failed program was:" >&5
35808 sed 's/^/| /' conftest.$ac_ext >&5
35809
35810   ac_header_preproc=no
35811 fi
35812 rm -f conftest.err conftest.$ac_ext
35813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35814 echo "${ECHO_T}$ac_header_preproc" >&6
35815
35816 # So?  What about this header?
35817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35818   yes:no: )
35819     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35821     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35823     ac_header_preproc=yes
35824     ;;
35825   no:yes:* )
35826     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35828     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35829 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35830     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35832     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35833 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35834     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35836     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35838     (
35839       cat <<\_ASBOX
35840 ## ------------------------------------------ ##
35841 ## Report this to the AC_PACKAGE_NAME lists.  ##
35842 ## ------------------------------------------ ##
35843 _ASBOX
35844     ) |
35845       sed "s/^/$as_me: WARNING:     /" >&2
35846     ;;
35847 esac
35848 echo "$as_me:$LINENO: checking for $ac_header" >&5
35849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35851   echo $ECHO_N "(cached) $ECHO_C" >&6
35852 else
35853   eval "$as_ac_Header=\$ac_header_preproc"
35854 fi
35855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35857
35858 fi
35859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35860   cat >>confdefs.h <<_ACEOF
35861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35862 _ACEOF
35863
35864 fi
35865
35866 done
35867
35868
35869         if test $ac_cv_header_pth_h = yes ; then
35870                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35871 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35872 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35873   echo $ECHO_N "(cached) $ECHO_C" >&6
35874 else
35875   ac_check_lib_save_LIBS=$LIBS
35876 LIBS="-lpth  $LIBS"
35877 cat >conftest.$ac_ext <<_ACEOF
35878 /* confdefs.h.  */
35879 _ACEOF
35880 cat confdefs.h >>conftest.$ac_ext
35881 cat >>conftest.$ac_ext <<_ACEOF
35882 /* end confdefs.h.  */
35883
35884 /* Override any gcc2 internal prototype to avoid an error.  */
35885 #ifdef __cplusplus
35886 extern "C"
35887 #endif
35888 /* We use char because int might match the return type of a gcc2
35889    builtin and then its argument prototype would still apply.  */
35890 char pth_version ();
35891 int
35892 main ()
35893 {
35894 pth_version ();
35895   ;
35896   return 0;
35897 }
35898 _ACEOF
35899 rm -f conftest.$ac_objext conftest$ac_exeext
35900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35901   (eval $ac_link) 2>conftest.er1
35902   ac_status=$?
35903   grep -v '^ *+' conftest.er1 >conftest.err
35904   rm -f conftest.er1
35905   cat conftest.err >&5
35906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35907   (exit $ac_status); } &&
35908          { ac_try='test -z "$ac_c_werror_flag"
35909                          || test ! -s conftest.err'
35910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35911   (eval $ac_try) 2>&5
35912   ac_status=$?
35913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35914   (exit $ac_status); }; } &&
35915          { ac_try='test -s conftest$ac_exeext'
35916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35917   (eval $ac_try) 2>&5
35918   ac_status=$?
35919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35920   (exit $ac_status); }; }; then
35921   ac_cv_lib_pth_pth_version=yes
35922 else
35923   echo "$as_me: failed program was:" >&5
35924 sed 's/^/| /' conftest.$ac_ext >&5
35925
35926 ac_cv_lib_pth_pth_version=no
35927 fi
35928 rm -f conftest.err conftest.$ac_objext \
35929       conftest$ac_exeext conftest.$ac_ext
35930 LIBS=$ac_check_lib_save_LIBS
35931 fi
35932 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35933 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35934 if test $ac_cv_lib_pth_pth_version = yes; then
35935   have_pth=yes
35936 else
35937   have_pth=no
35938 fi
35939
35940
35941                 if test $have_pth = yes ; then
35942
35943 cat >>confdefs.h <<\_ACEOF
35944 #define HAVE_GNU_PTH 1
35945 _ACEOF
35946
35947                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35948                         ol_link_threads=pth
35949                         ol_with_threads=found
35950
35951                         if test $ol_with_yielding_select = auto ; then
35952                                 ol_with_yielding_select=yes
35953                         fi
35954                 fi
35955         fi
35956 fi
35957
35958 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35959         -o $ol_with_threads = lwp ; then
35960
35961
35962
35963 for ac_header in thread.h synch.h
35964 do
35965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35967   echo "$as_me:$LINENO: checking for $ac_header" >&5
35968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35970   echo $ECHO_N "(cached) $ECHO_C" >&6
35971 fi
35972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35974 else
35975   # Is the header compilable?
35976 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35978 cat >conftest.$ac_ext <<_ACEOF
35979 /* confdefs.h.  */
35980 _ACEOF
35981 cat confdefs.h >>conftest.$ac_ext
35982 cat >>conftest.$ac_ext <<_ACEOF
35983 /* end confdefs.h.  */
35984 $ac_includes_default
35985 #include <$ac_header>
35986 _ACEOF
35987 rm -f conftest.$ac_objext
35988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35989   (eval $ac_compile) 2>conftest.er1
35990   ac_status=$?
35991   grep -v '^ *+' conftest.er1 >conftest.err
35992   rm -f conftest.er1
35993   cat conftest.err >&5
35994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35995   (exit $ac_status); } &&
35996          { ac_try='test -z "$ac_c_werror_flag"
35997                          || test ! -s conftest.err'
35998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35999   (eval $ac_try) 2>&5
36000   ac_status=$?
36001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36002   (exit $ac_status); }; } &&
36003          { ac_try='test -s conftest.$ac_objext'
36004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36005   (eval $ac_try) 2>&5
36006   ac_status=$?
36007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008   (exit $ac_status); }; }; then
36009   ac_header_compiler=yes
36010 else
36011   echo "$as_me: failed program was:" >&5
36012 sed 's/^/| /' conftest.$ac_ext >&5
36013
36014 ac_header_compiler=no
36015 fi
36016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36018 echo "${ECHO_T}$ac_header_compiler" >&6
36019
36020 # Is the header present?
36021 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36023 cat >conftest.$ac_ext <<_ACEOF
36024 /* confdefs.h.  */
36025 _ACEOF
36026 cat confdefs.h >>conftest.$ac_ext
36027 cat >>conftest.$ac_ext <<_ACEOF
36028 /* end confdefs.h.  */
36029 #include <$ac_header>
36030 _ACEOF
36031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36032   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36033   ac_status=$?
36034   grep -v '^ *+' conftest.er1 >conftest.err
36035   rm -f conftest.er1
36036   cat conftest.err >&5
36037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36038   (exit $ac_status); } >/dev/null; then
36039   if test -s conftest.err; then
36040     ac_cpp_err=$ac_c_preproc_warn_flag
36041     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36042   else
36043     ac_cpp_err=
36044   fi
36045 else
36046   ac_cpp_err=yes
36047 fi
36048 if test -z "$ac_cpp_err"; then
36049   ac_header_preproc=yes
36050 else
36051   echo "$as_me: failed program was:" >&5
36052 sed 's/^/| /' conftest.$ac_ext >&5
36053
36054   ac_header_preproc=no
36055 fi
36056 rm -f conftest.err conftest.$ac_ext
36057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36058 echo "${ECHO_T}$ac_header_preproc" >&6
36059
36060 # So?  What about this header?
36061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36062   yes:no: )
36063     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36067     ac_header_preproc=yes
36068     ;;
36069   no:yes:* )
36070     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36072     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36073 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36074     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36076     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36077 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36080     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36082     (
36083       cat <<\_ASBOX
36084 ## ------------------------------------------ ##
36085 ## Report this to the AC_PACKAGE_NAME lists.  ##
36086 ## ------------------------------------------ ##
36087 _ASBOX
36088     ) |
36089       sed "s/^/$as_me: WARNING:     /" >&2
36090     ;;
36091 esac
36092 echo "$as_me:$LINENO: checking for $ac_header" >&5
36093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36095   echo $ECHO_N "(cached) $ECHO_C" >&6
36096 else
36097   eval "$as_ac_Header=\$ac_header_preproc"
36098 fi
36099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36101
36102 fi
36103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36104   cat >>confdefs.h <<_ACEOF
36105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36106 _ACEOF
36107
36108 fi
36109
36110 done
36111
36112         if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
36113                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
36114 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
36115 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
36116   echo $ECHO_N "(cached) $ECHO_C" >&6
36117 else
36118   ac_check_lib_save_LIBS=$LIBS
36119 LIBS="-lthread  $LIBS"
36120 cat >conftest.$ac_ext <<_ACEOF
36121 /* confdefs.h.  */
36122 _ACEOF
36123 cat confdefs.h >>conftest.$ac_ext
36124 cat >>conftest.$ac_ext <<_ACEOF
36125 /* end confdefs.h.  */
36126
36127 /* Override any gcc2 internal prototype to avoid an error.  */
36128 #ifdef __cplusplus
36129 extern "C"
36130 #endif
36131 /* We use char because int might match the return type of a gcc2
36132    builtin and then its argument prototype would still apply.  */
36133 char thr_create ();
36134 int
36135 main ()
36136 {
36137 thr_create ();
36138   ;
36139   return 0;
36140 }
36141 _ACEOF
36142 rm -f conftest.$ac_objext conftest$ac_exeext
36143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36144   (eval $ac_link) 2>conftest.er1
36145   ac_status=$?
36146   grep -v '^ *+' conftest.er1 >conftest.err
36147   rm -f conftest.er1
36148   cat conftest.err >&5
36149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36150   (exit $ac_status); } &&
36151          { ac_try='test -z "$ac_c_werror_flag"
36152                          || test ! -s conftest.err'
36153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36154   (eval $ac_try) 2>&5
36155   ac_status=$?
36156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36157   (exit $ac_status); }; } &&
36158          { ac_try='test -s conftest$ac_exeext'
36159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36160   (eval $ac_try) 2>&5
36161   ac_status=$?
36162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36163   (exit $ac_status); }; }; then
36164   ac_cv_lib_thread_thr_create=yes
36165 else
36166   echo "$as_me: failed program was:" >&5
36167 sed 's/^/| /' conftest.$ac_ext >&5
36168
36169 ac_cv_lib_thread_thr_create=no
36170 fi
36171 rm -f conftest.err conftest.$ac_objext \
36172       conftest$ac_exeext conftest.$ac_ext
36173 LIBS=$ac_check_lib_save_LIBS
36174 fi
36175 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
36176 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
36177 if test $ac_cv_lib_thread_thr_create = yes; then
36178   have_thr=yes
36179 else
36180   have_thr=no
36181 fi
36182
36183
36184                 if test $have_thr = yes ; then
36185
36186 cat >>confdefs.h <<\_ACEOF
36187 #define HAVE_THR 1
36188 _ACEOF
36189
36190                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
36191                         ol_link_threads=thr
36192
36193                         if test $ol_with_yielding_select = auto ; then
36194                                 ol_with_yielding_select=yes
36195                         fi
36196
36197
36198
36199 for ac_func in \
36200                                 thr_setconcurrency \
36201                                 thr_getconcurrency \
36202
36203 do
36204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36205 echo "$as_me:$LINENO: checking for $ac_func" >&5
36206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36207 if eval "test \"\${$as_ac_var+set}\" = set"; then
36208   echo $ECHO_N "(cached) $ECHO_C" >&6
36209 else
36210   cat >conftest.$ac_ext <<_ACEOF
36211 /* confdefs.h.  */
36212 _ACEOF
36213 cat confdefs.h >>conftest.$ac_ext
36214 cat >>conftest.$ac_ext <<_ACEOF
36215 /* end confdefs.h.  */
36216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36218 #define $ac_func innocuous_$ac_func
36219
36220 /* System header to define __stub macros and hopefully few prototypes,
36221     which can conflict with char $ac_func (); below.
36222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36223     <limits.h> exists even on freestanding compilers.  */
36224
36225 #ifdef __STDC__
36226 # include <limits.h>
36227 #else
36228 # include <assert.h>
36229 #endif
36230
36231 #undef $ac_func
36232
36233 /* Override any gcc2 internal prototype to avoid an error.  */
36234 #ifdef __cplusplus
36235 extern "C"
36236 {
36237 #endif
36238 /* We use char because int might match the return type of a gcc2
36239    builtin and then its argument prototype would still apply.  */
36240 char $ac_func ();
36241 /* The GNU C library defines this for functions which it implements
36242     to always fail with ENOSYS.  Some functions are actually named
36243     something starting with __ and the normal name is an alias.  */
36244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36245 choke me
36246 #else
36247 char (*f) () = $ac_func;
36248 #endif
36249 #ifdef __cplusplus
36250 }
36251 #endif
36252
36253 int
36254 main ()
36255 {
36256 return f != $ac_func;
36257   ;
36258   return 0;
36259 }
36260 _ACEOF
36261 rm -f conftest.$ac_objext conftest$ac_exeext
36262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36263   (eval $ac_link) 2>conftest.er1
36264   ac_status=$?
36265   grep -v '^ *+' conftest.er1 >conftest.err
36266   rm -f conftest.er1
36267   cat conftest.err >&5
36268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36269   (exit $ac_status); } &&
36270          { ac_try='test -z "$ac_c_werror_flag"
36271                          || test ! -s conftest.err'
36272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36273   (eval $ac_try) 2>&5
36274   ac_status=$?
36275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276   (exit $ac_status); }; } &&
36277          { ac_try='test -s conftest$ac_exeext'
36278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36279   (eval $ac_try) 2>&5
36280   ac_status=$?
36281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36282   (exit $ac_status); }; }; then
36283   eval "$as_ac_var=yes"
36284 else
36285   echo "$as_me: failed program was:" >&5
36286 sed 's/^/| /' conftest.$ac_ext >&5
36287
36288 eval "$as_ac_var=no"
36289 fi
36290 rm -f conftest.err conftest.$ac_objext \
36291       conftest$ac_exeext conftest.$ac_ext
36292 fi
36293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36295 if test `eval echo '${'$as_ac_var'}'` = yes; then
36296   cat >>confdefs.h <<_ACEOF
36297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36298 _ACEOF
36299
36300 fi
36301 done
36302
36303                 fi
36304         fi
36305
36306
36307 for ac_header in lwp/lwp.h
36308 do
36309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36311   echo "$as_me:$LINENO: checking for $ac_header" >&5
36312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36314   echo $ECHO_N "(cached) $ECHO_C" >&6
36315 fi
36316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36318 else
36319   # Is the header compilable?
36320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36322 cat >conftest.$ac_ext <<_ACEOF
36323 /* confdefs.h.  */
36324 _ACEOF
36325 cat confdefs.h >>conftest.$ac_ext
36326 cat >>conftest.$ac_ext <<_ACEOF
36327 /* end confdefs.h.  */
36328 $ac_includes_default
36329 #include <$ac_header>
36330 _ACEOF
36331 rm -f conftest.$ac_objext
36332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36333   (eval $ac_compile) 2>conftest.er1
36334   ac_status=$?
36335   grep -v '^ *+' conftest.er1 >conftest.err
36336   rm -f conftest.er1
36337   cat conftest.err >&5
36338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36339   (exit $ac_status); } &&
36340          { ac_try='test -z "$ac_c_werror_flag"
36341                          || test ! -s conftest.err'
36342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36343   (eval $ac_try) 2>&5
36344   ac_status=$?
36345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36346   (exit $ac_status); }; } &&
36347          { ac_try='test -s conftest.$ac_objext'
36348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36349   (eval $ac_try) 2>&5
36350   ac_status=$?
36351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36352   (exit $ac_status); }; }; then
36353   ac_header_compiler=yes
36354 else
36355   echo "$as_me: failed program was:" >&5
36356 sed 's/^/| /' conftest.$ac_ext >&5
36357
36358 ac_header_compiler=no
36359 fi
36360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36362 echo "${ECHO_T}$ac_header_compiler" >&6
36363
36364 # Is the header present?
36365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36367 cat >conftest.$ac_ext <<_ACEOF
36368 /* confdefs.h.  */
36369 _ACEOF
36370 cat confdefs.h >>conftest.$ac_ext
36371 cat >>conftest.$ac_ext <<_ACEOF
36372 /* end confdefs.h.  */
36373 #include <$ac_header>
36374 _ACEOF
36375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36376   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36377   ac_status=$?
36378   grep -v '^ *+' conftest.er1 >conftest.err
36379   rm -f conftest.er1
36380   cat conftest.err >&5
36381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36382   (exit $ac_status); } >/dev/null; then
36383   if test -s conftest.err; then
36384     ac_cpp_err=$ac_c_preproc_warn_flag
36385     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36386   else
36387     ac_cpp_err=
36388   fi
36389 else
36390   ac_cpp_err=yes
36391 fi
36392 if test -z "$ac_cpp_err"; then
36393   ac_header_preproc=yes
36394 else
36395   echo "$as_me: failed program was:" >&5
36396 sed 's/^/| /' conftest.$ac_ext >&5
36397
36398   ac_header_preproc=no
36399 fi
36400 rm -f conftest.err conftest.$ac_ext
36401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36402 echo "${ECHO_T}$ac_header_preproc" >&6
36403
36404 # So?  What about this header?
36405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36406   yes:no: )
36407     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36409     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36411     ac_header_preproc=yes
36412     ;;
36413   no:yes:* )
36414     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36416     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36417 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36418     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36420     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36421 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36424     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36426     (
36427       cat <<\_ASBOX
36428 ## ------------------------------------------ ##
36429 ## Report this to the AC_PACKAGE_NAME lists.  ##
36430 ## ------------------------------------------ ##
36431 _ASBOX
36432     ) |
36433       sed "s/^/$as_me: WARNING:     /" >&2
36434     ;;
36435 esac
36436 echo "$as_me:$LINENO: checking for $ac_header" >&5
36437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36439   echo $ECHO_N "(cached) $ECHO_C" >&6
36440 else
36441   eval "$as_ac_Header=\$ac_header_preproc"
36442 fi
36443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36445
36446 fi
36447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36448   cat >>confdefs.h <<_ACEOF
36449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36450 _ACEOF
36451
36452 fi
36453
36454 done
36455
36456         if test $ac_cv_header_lwp_lwp_h = yes ; then
36457                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36458 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36459 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36460   echo $ECHO_N "(cached) $ECHO_C" >&6
36461 else
36462   ac_check_lib_save_LIBS=$LIBS
36463 LIBS="-llwp  $LIBS"
36464 cat >conftest.$ac_ext <<_ACEOF
36465 /* confdefs.h.  */
36466 _ACEOF
36467 cat confdefs.h >>conftest.$ac_ext
36468 cat >>conftest.$ac_ext <<_ACEOF
36469 /* end confdefs.h.  */
36470
36471 /* Override any gcc2 internal prototype to avoid an error.  */
36472 #ifdef __cplusplus
36473 extern "C"
36474 #endif
36475 /* We use char because int might match the return type of a gcc2
36476    builtin and then its argument prototype would still apply.  */
36477 char lwp_create ();
36478 int
36479 main ()
36480 {
36481 lwp_create ();
36482   ;
36483   return 0;
36484 }
36485 _ACEOF
36486 rm -f conftest.$ac_objext conftest$ac_exeext
36487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36488   (eval $ac_link) 2>conftest.er1
36489   ac_status=$?
36490   grep -v '^ *+' conftest.er1 >conftest.err
36491   rm -f conftest.er1
36492   cat conftest.err >&5
36493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36494   (exit $ac_status); } &&
36495          { ac_try='test -z "$ac_c_werror_flag"
36496                          || test ! -s conftest.err'
36497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36498   (eval $ac_try) 2>&5
36499   ac_status=$?
36500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36501   (exit $ac_status); }; } &&
36502          { ac_try='test -s conftest$ac_exeext'
36503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36504   (eval $ac_try) 2>&5
36505   ac_status=$?
36506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36507   (exit $ac_status); }; }; then
36508   ac_cv_lib_lwp_lwp_create=yes
36509 else
36510   echo "$as_me: failed program was:" >&5
36511 sed 's/^/| /' conftest.$ac_ext >&5
36512
36513 ac_cv_lib_lwp_lwp_create=no
36514 fi
36515 rm -f conftest.err conftest.$ac_objext \
36516       conftest$ac_exeext conftest.$ac_ext
36517 LIBS=$ac_check_lib_save_LIBS
36518 fi
36519 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36520 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36521 if test $ac_cv_lib_lwp_lwp_create = yes; then
36522   have_lwp=yes
36523 else
36524   have_lwp=no
36525 fi
36526
36527
36528                 if test $have_lwp = yes ; then
36529
36530 cat >>confdefs.h <<\_ACEOF
36531 #define HAVE_LWP 1
36532 _ACEOF
36533
36534                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36535                         ol_link_threads=lwp
36536
36537                         if test $ol_with_yielding_select = auto ; then
36538                                 ol_with_yielding_select=no
36539                         fi
36540                 fi
36541         fi
36542 fi
36543
36544 if test $ol_with_yielding_select = yes ; then
36545
36546 cat >>confdefs.h <<\_ACEOF
36547 #define HAVE_YIELDING_SELECT 1
36548 _ACEOF
36549
36550 fi
36551
36552 if test $ol_with_threads = manual ; then
36553                 ol_link_threads=yes
36554
36555         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36556 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36557
36558
36559
36560 for ac_header in pthread.h sched.h
36561 do
36562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36564   echo "$as_me:$LINENO: checking for $ac_header" >&5
36565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36567   echo $ECHO_N "(cached) $ECHO_C" >&6
36568 fi
36569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36571 else
36572   # Is the header compilable?
36573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36575 cat >conftest.$ac_ext <<_ACEOF
36576 /* confdefs.h.  */
36577 _ACEOF
36578 cat confdefs.h >>conftest.$ac_ext
36579 cat >>conftest.$ac_ext <<_ACEOF
36580 /* end confdefs.h.  */
36581 $ac_includes_default
36582 #include <$ac_header>
36583 _ACEOF
36584 rm -f conftest.$ac_objext
36585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36586   (eval $ac_compile) 2>conftest.er1
36587   ac_status=$?
36588   grep -v '^ *+' conftest.er1 >conftest.err
36589   rm -f conftest.er1
36590   cat conftest.err >&5
36591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36592   (exit $ac_status); } &&
36593          { ac_try='test -z "$ac_c_werror_flag"
36594                          || test ! -s conftest.err'
36595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36596   (eval $ac_try) 2>&5
36597   ac_status=$?
36598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36599   (exit $ac_status); }; } &&
36600          { ac_try='test -s conftest.$ac_objext'
36601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36602   (eval $ac_try) 2>&5
36603   ac_status=$?
36604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36605   (exit $ac_status); }; }; then
36606   ac_header_compiler=yes
36607 else
36608   echo "$as_me: failed program was:" >&5
36609 sed 's/^/| /' conftest.$ac_ext >&5
36610
36611 ac_header_compiler=no
36612 fi
36613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36615 echo "${ECHO_T}$ac_header_compiler" >&6
36616
36617 # Is the header present?
36618 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36620 cat >conftest.$ac_ext <<_ACEOF
36621 /* confdefs.h.  */
36622 _ACEOF
36623 cat confdefs.h >>conftest.$ac_ext
36624 cat >>conftest.$ac_ext <<_ACEOF
36625 /* end confdefs.h.  */
36626 #include <$ac_header>
36627 _ACEOF
36628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36629   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36630   ac_status=$?
36631   grep -v '^ *+' conftest.er1 >conftest.err
36632   rm -f conftest.er1
36633   cat conftest.err >&5
36634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36635   (exit $ac_status); } >/dev/null; then
36636   if test -s conftest.err; then
36637     ac_cpp_err=$ac_c_preproc_warn_flag
36638     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36639   else
36640     ac_cpp_err=
36641   fi
36642 else
36643   ac_cpp_err=yes
36644 fi
36645 if test -z "$ac_cpp_err"; then
36646   ac_header_preproc=yes
36647 else
36648   echo "$as_me: failed program was:" >&5
36649 sed 's/^/| /' conftest.$ac_ext >&5
36650
36651   ac_header_preproc=no
36652 fi
36653 rm -f conftest.err conftest.$ac_ext
36654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36655 echo "${ECHO_T}$ac_header_preproc" >&6
36656
36657 # So?  What about this header?
36658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36659   yes:no: )
36660     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36662     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36664     ac_header_preproc=yes
36665     ;;
36666   no:yes:* )
36667     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36669     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36670 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36671     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36673     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36674 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36675     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36677     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36679     (
36680       cat <<\_ASBOX
36681 ## ------------------------------------------ ##
36682 ## Report this to the AC_PACKAGE_NAME lists.  ##
36683 ## ------------------------------------------ ##
36684 _ASBOX
36685     ) |
36686       sed "s/^/$as_me: WARNING:     /" >&2
36687     ;;
36688 esac
36689 echo "$as_me:$LINENO: checking for $ac_header" >&5
36690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36692   echo $ECHO_N "(cached) $ECHO_C" >&6
36693 else
36694   eval "$as_ac_Header=\$ac_header_preproc"
36695 fi
36696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36698
36699 fi
36700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36701   cat >>confdefs.h <<_ACEOF
36702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36703 _ACEOF
36704
36705 fi
36706
36707 done
36708
36709
36710
36711 for ac_func in sched_yield pthread_yield
36712 do
36713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36714 echo "$as_me:$LINENO: checking for $ac_func" >&5
36715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36716 if eval "test \"\${$as_ac_var+set}\" = set"; then
36717   echo $ECHO_N "(cached) $ECHO_C" >&6
36718 else
36719   cat >conftest.$ac_ext <<_ACEOF
36720 /* confdefs.h.  */
36721 _ACEOF
36722 cat confdefs.h >>conftest.$ac_ext
36723 cat >>conftest.$ac_ext <<_ACEOF
36724 /* end confdefs.h.  */
36725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36726    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36727 #define $ac_func innocuous_$ac_func
36728
36729 /* System header to define __stub macros and hopefully few prototypes,
36730     which can conflict with char $ac_func (); below.
36731     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36732     <limits.h> exists even on freestanding compilers.  */
36733
36734 #ifdef __STDC__
36735 # include <limits.h>
36736 #else
36737 # include <assert.h>
36738 #endif
36739
36740 #undef $ac_func
36741
36742 /* Override any gcc2 internal prototype to avoid an error.  */
36743 #ifdef __cplusplus
36744 extern "C"
36745 {
36746 #endif
36747 /* We use char because int might match the return type of a gcc2
36748    builtin and then its argument prototype would still apply.  */
36749 char $ac_func ();
36750 /* The GNU C library defines this for functions which it implements
36751     to always fail with ENOSYS.  Some functions are actually named
36752     something starting with __ and the normal name is an alias.  */
36753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36754 choke me
36755 #else
36756 char (*f) () = $ac_func;
36757 #endif
36758 #ifdef __cplusplus
36759 }
36760 #endif
36761
36762 int
36763 main ()
36764 {
36765 return f != $ac_func;
36766   ;
36767   return 0;
36768 }
36769 _ACEOF
36770 rm -f conftest.$ac_objext conftest$ac_exeext
36771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36772   (eval $ac_link) 2>conftest.er1
36773   ac_status=$?
36774   grep -v '^ *+' conftest.er1 >conftest.err
36775   rm -f conftest.er1
36776   cat conftest.err >&5
36777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36778   (exit $ac_status); } &&
36779          { ac_try='test -z "$ac_c_werror_flag"
36780                          || test ! -s conftest.err'
36781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36782   (eval $ac_try) 2>&5
36783   ac_status=$?
36784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36785   (exit $ac_status); }; } &&
36786          { ac_try='test -s conftest$ac_exeext'
36787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36788   (eval $ac_try) 2>&5
36789   ac_status=$?
36790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36791   (exit $ac_status); }; }; then
36792   eval "$as_ac_var=yes"
36793 else
36794   echo "$as_me: failed program was:" >&5
36795 sed 's/^/| /' conftest.$ac_ext >&5
36796
36797 eval "$as_ac_var=no"
36798 fi
36799 rm -f conftest.err conftest.$ac_objext \
36800       conftest$ac_exeext conftest.$ac_ext
36801 fi
36802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36804 if test `eval echo '${'$as_ac_var'}'` = yes; then
36805   cat >>confdefs.h <<_ACEOF
36806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36807 _ACEOF
36808
36809 fi
36810 done
36811
36812
36813         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36814 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36815 if test "${ol_cv_header_linux_threads+set}" = set; then
36816   echo $ECHO_N "(cached) $ECHO_C" >&6
36817 else
36818   cat >conftest.$ac_ext <<_ACEOF
36819 /* confdefs.h.  */
36820 _ACEOF
36821 cat confdefs.h >>conftest.$ac_ext
36822 cat >>conftest.$ac_ext <<_ACEOF
36823 /* end confdefs.h.  */
36824 #include <pthread.h>
36825 _ACEOF
36826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36827   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36828   ol_cv_header_linux_threads=yes
36829 else
36830   ol_cv_header_linux_threads=no
36831 fi
36832 rm -f conftest*
36833
36834
36835 fi
36836 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36837 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36838         if test $ol_cv_header_linux_threads = yes; then
36839
36840 cat >>confdefs.h <<\_ACEOF
36841 #define HAVE_LINUX_THREADS 1
36842 _ACEOF
36843
36844         fi
36845
36846
36847
36848 for ac_header in mach/cthreads.h
36849 do
36850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36852   echo "$as_me:$LINENO: checking for $ac_header" >&5
36853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36855   echo $ECHO_N "(cached) $ECHO_C" >&6
36856 fi
36857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36859 else
36860   # Is the header compilable?
36861 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36863 cat >conftest.$ac_ext <<_ACEOF
36864 /* confdefs.h.  */
36865 _ACEOF
36866 cat confdefs.h >>conftest.$ac_ext
36867 cat >>conftest.$ac_ext <<_ACEOF
36868 /* end confdefs.h.  */
36869 $ac_includes_default
36870 #include <$ac_header>
36871 _ACEOF
36872 rm -f conftest.$ac_objext
36873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36874   (eval $ac_compile) 2>conftest.er1
36875   ac_status=$?
36876   grep -v '^ *+' conftest.er1 >conftest.err
36877   rm -f conftest.er1
36878   cat conftest.err >&5
36879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36880   (exit $ac_status); } &&
36881          { ac_try='test -z "$ac_c_werror_flag"
36882                          || test ! -s conftest.err'
36883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36884   (eval $ac_try) 2>&5
36885   ac_status=$?
36886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36887   (exit $ac_status); }; } &&
36888          { ac_try='test -s conftest.$ac_objext'
36889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36890   (eval $ac_try) 2>&5
36891   ac_status=$?
36892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36893   (exit $ac_status); }; }; then
36894   ac_header_compiler=yes
36895 else
36896   echo "$as_me: failed program was:" >&5
36897 sed 's/^/| /' conftest.$ac_ext >&5
36898
36899 ac_header_compiler=no
36900 fi
36901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36902 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36903 echo "${ECHO_T}$ac_header_compiler" >&6
36904
36905 # Is the header present?
36906 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36908 cat >conftest.$ac_ext <<_ACEOF
36909 /* confdefs.h.  */
36910 _ACEOF
36911 cat confdefs.h >>conftest.$ac_ext
36912 cat >>conftest.$ac_ext <<_ACEOF
36913 /* end confdefs.h.  */
36914 #include <$ac_header>
36915 _ACEOF
36916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36917   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36918   ac_status=$?
36919   grep -v '^ *+' conftest.er1 >conftest.err
36920   rm -f conftest.er1
36921   cat conftest.err >&5
36922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36923   (exit $ac_status); } >/dev/null; then
36924   if test -s conftest.err; then
36925     ac_cpp_err=$ac_c_preproc_warn_flag
36926     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36927   else
36928     ac_cpp_err=
36929   fi
36930 else
36931   ac_cpp_err=yes
36932 fi
36933 if test -z "$ac_cpp_err"; then
36934   ac_header_preproc=yes
36935 else
36936   echo "$as_me: failed program was:" >&5
36937 sed 's/^/| /' conftest.$ac_ext >&5
36938
36939   ac_header_preproc=no
36940 fi
36941 rm -f conftest.err conftest.$ac_ext
36942 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36943 echo "${ECHO_T}$ac_header_preproc" >&6
36944
36945 # So?  What about this header?
36946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36947   yes:no: )
36948     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36950     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36952     ac_header_preproc=yes
36953     ;;
36954   no:yes:* )
36955     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36957     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36958 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36959     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36961     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36962 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36963     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36965     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36967     (
36968       cat <<\_ASBOX
36969 ## ------------------------------------------ ##
36970 ## Report this to the AC_PACKAGE_NAME lists.  ##
36971 ## ------------------------------------------ ##
36972 _ASBOX
36973     ) |
36974       sed "s/^/$as_me: WARNING:     /" >&2
36975     ;;
36976 esac
36977 echo "$as_me:$LINENO: checking for $ac_header" >&5
36978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36980   echo $ECHO_N "(cached) $ECHO_C" >&6
36981 else
36982   eval "$as_ac_Header=\$ac_header_preproc"
36983 fi
36984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36986
36987 fi
36988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36989   cat >>confdefs.h <<_ACEOF
36990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36991 _ACEOF
36992
36993 fi
36994
36995 done
36996
36997
36998 for ac_header in lwp/lwp.h
36999 do
37000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37002   echo "$as_me:$LINENO: checking for $ac_header" >&5
37003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37005   echo $ECHO_N "(cached) $ECHO_C" >&6
37006 fi
37007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37009 else
37010   # Is the header compilable?
37011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37013 cat >conftest.$ac_ext <<_ACEOF
37014 /* confdefs.h.  */
37015 _ACEOF
37016 cat confdefs.h >>conftest.$ac_ext
37017 cat >>conftest.$ac_ext <<_ACEOF
37018 /* end confdefs.h.  */
37019 $ac_includes_default
37020 #include <$ac_header>
37021 _ACEOF
37022 rm -f conftest.$ac_objext
37023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37024   (eval $ac_compile) 2>conftest.er1
37025   ac_status=$?
37026   grep -v '^ *+' conftest.er1 >conftest.err
37027   rm -f conftest.er1
37028   cat conftest.err >&5
37029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37030   (exit $ac_status); } &&
37031          { ac_try='test -z "$ac_c_werror_flag"
37032                          || test ! -s conftest.err'
37033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37034   (eval $ac_try) 2>&5
37035   ac_status=$?
37036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37037   (exit $ac_status); }; } &&
37038          { ac_try='test -s conftest.$ac_objext'
37039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37040   (eval $ac_try) 2>&5
37041   ac_status=$?
37042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37043   (exit $ac_status); }; }; then
37044   ac_header_compiler=yes
37045 else
37046   echo "$as_me: failed program was:" >&5
37047 sed 's/^/| /' conftest.$ac_ext >&5
37048
37049 ac_header_compiler=no
37050 fi
37051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37053 echo "${ECHO_T}$ac_header_compiler" >&6
37054
37055 # Is the header present?
37056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37058 cat >conftest.$ac_ext <<_ACEOF
37059 /* confdefs.h.  */
37060 _ACEOF
37061 cat confdefs.h >>conftest.$ac_ext
37062 cat >>conftest.$ac_ext <<_ACEOF
37063 /* end confdefs.h.  */
37064 #include <$ac_header>
37065 _ACEOF
37066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37067   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37068   ac_status=$?
37069   grep -v '^ *+' conftest.er1 >conftest.err
37070   rm -f conftest.er1
37071   cat conftest.err >&5
37072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37073   (exit $ac_status); } >/dev/null; then
37074   if test -s conftest.err; then
37075     ac_cpp_err=$ac_c_preproc_warn_flag
37076     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37077   else
37078     ac_cpp_err=
37079   fi
37080 else
37081   ac_cpp_err=yes
37082 fi
37083 if test -z "$ac_cpp_err"; then
37084   ac_header_preproc=yes
37085 else
37086   echo "$as_me: failed program was:" >&5
37087 sed 's/^/| /' conftest.$ac_ext >&5
37088
37089   ac_header_preproc=no
37090 fi
37091 rm -f conftest.err conftest.$ac_ext
37092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37093 echo "${ECHO_T}$ac_header_preproc" >&6
37094
37095 # So?  What about this header?
37096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37097   yes:no: )
37098     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37100     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37102     ac_header_preproc=yes
37103     ;;
37104   no:yes:* )
37105     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37107     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37108 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37109     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37111     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37112 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37113     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37115     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37117     (
37118       cat <<\_ASBOX
37119 ## ------------------------------------------ ##
37120 ## Report this to the AC_PACKAGE_NAME lists.  ##
37121 ## ------------------------------------------ ##
37122 _ASBOX
37123     ) |
37124       sed "s/^/$as_me: WARNING:     /" >&2
37125     ;;
37126 esac
37127 echo "$as_me:$LINENO: checking for $ac_header" >&5
37128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37130   echo $ECHO_N "(cached) $ECHO_C" >&6
37131 else
37132   eval "$as_ac_Header=\$ac_header_preproc"
37133 fi
37134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37136
37137 fi
37138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37139   cat >>confdefs.h <<_ACEOF
37140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37141 _ACEOF
37142
37143 fi
37144
37145 done
37146
37147
37148
37149 for ac_header in thread.h synch.h
37150 do
37151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37153   echo "$as_me:$LINENO: checking for $ac_header" >&5
37154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37156   echo $ECHO_N "(cached) $ECHO_C" >&6
37157 fi
37158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37160 else
37161   # Is the header compilable?
37162 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37163 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37164 cat >conftest.$ac_ext <<_ACEOF
37165 /* confdefs.h.  */
37166 _ACEOF
37167 cat confdefs.h >>conftest.$ac_ext
37168 cat >>conftest.$ac_ext <<_ACEOF
37169 /* end confdefs.h.  */
37170 $ac_includes_default
37171 #include <$ac_header>
37172 _ACEOF
37173 rm -f conftest.$ac_objext
37174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37175   (eval $ac_compile) 2>conftest.er1
37176   ac_status=$?
37177   grep -v '^ *+' conftest.er1 >conftest.err
37178   rm -f conftest.er1
37179   cat conftest.err >&5
37180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37181   (exit $ac_status); } &&
37182          { ac_try='test -z "$ac_c_werror_flag"
37183                          || test ! -s conftest.err'
37184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37185   (eval $ac_try) 2>&5
37186   ac_status=$?
37187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37188   (exit $ac_status); }; } &&
37189          { ac_try='test -s conftest.$ac_objext'
37190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37191   (eval $ac_try) 2>&5
37192   ac_status=$?
37193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37194   (exit $ac_status); }; }; then
37195   ac_header_compiler=yes
37196 else
37197   echo "$as_me: failed program was:" >&5
37198 sed 's/^/| /' conftest.$ac_ext >&5
37199
37200 ac_header_compiler=no
37201 fi
37202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37203 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37204 echo "${ECHO_T}$ac_header_compiler" >&6
37205
37206 # Is the header present?
37207 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37209 cat >conftest.$ac_ext <<_ACEOF
37210 /* confdefs.h.  */
37211 _ACEOF
37212 cat confdefs.h >>conftest.$ac_ext
37213 cat >>conftest.$ac_ext <<_ACEOF
37214 /* end confdefs.h.  */
37215 #include <$ac_header>
37216 _ACEOF
37217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37218   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37219   ac_status=$?
37220   grep -v '^ *+' conftest.er1 >conftest.err
37221   rm -f conftest.er1
37222   cat conftest.err >&5
37223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37224   (exit $ac_status); } >/dev/null; then
37225   if test -s conftest.err; then
37226     ac_cpp_err=$ac_c_preproc_warn_flag
37227     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37228   else
37229     ac_cpp_err=
37230   fi
37231 else
37232   ac_cpp_err=yes
37233 fi
37234 if test -z "$ac_cpp_err"; then
37235   ac_header_preproc=yes
37236 else
37237   echo "$as_me: failed program was:" >&5
37238 sed 's/^/| /' conftest.$ac_ext >&5
37239
37240   ac_header_preproc=no
37241 fi
37242 rm -f conftest.err conftest.$ac_ext
37243 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37244 echo "${ECHO_T}$ac_header_preproc" >&6
37245
37246 # So?  What about this header?
37247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37248   yes:no: )
37249     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37251     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37253     ac_header_preproc=yes
37254     ;;
37255   no:yes:* )
37256     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37258     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37259 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37260     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37262     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37263 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37264     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37266     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37268     (
37269       cat <<\_ASBOX
37270 ## ------------------------------------------ ##
37271 ## Report this to the AC_PACKAGE_NAME lists.  ##
37272 ## ------------------------------------------ ##
37273 _ASBOX
37274     ) |
37275       sed "s/^/$as_me: WARNING:     /" >&2
37276     ;;
37277 esac
37278 echo "$as_me:$LINENO: checking for $ac_header" >&5
37279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37281   echo $ECHO_N "(cached) $ECHO_C" >&6
37282 else
37283   eval "$as_ac_Header=\$ac_header_preproc"
37284 fi
37285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37287
37288 fi
37289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37290   cat >>confdefs.h <<_ACEOF
37291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37292 _ACEOF
37293
37294 fi
37295
37296 done
37297
37298 fi
37299
37300 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
37301                         cat >>confdefs.h <<\_ACEOF
37302 #define REENTRANT 1
37303 _ACEOF
37304
37305         cat >>confdefs.h <<\_ACEOF
37306 #define _REENTRANT 1
37307 _ACEOF
37308
37309         cat >>confdefs.h <<\_ACEOF
37310 #define THREAD_SAFE 1
37311 _ACEOF
37312
37313         cat >>confdefs.h <<\_ACEOF
37314 #define _THREAD_SAFE 1
37315 _ACEOF
37316
37317         cat >>confdefs.h <<\_ACEOF
37318 #define THREADSAFE 1
37319 _ACEOF
37320
37321         cat >>confdefs.h <<\_ACEOF
37322 #define _THREADSAFE 1
37323 _ACEOF
37324
37325         cat >>confdefs.h <<\_ACEOF
37326 #define _SGI_MP_SOURCE 1
37327 _ACEOF
37328
37329
37330                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
37331 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
37332 if test "${ol_cv_errno_thread_specific+set}" = set; then
37333   echo $ECHO_N "(cached) $ECHO_C" >&6
37334 else
37335
37336                 cat >conftest.$ac_ext <<_ACEOF
37337 /* confdefs.h.  */
37338 _ACEOF
37339 cat confdefs.h >>conftest.$ac_ext
37340 cat >>conftest.$ac_ext <<_ACEOF
37341 /* end confdefs.h.  */
37342 #include <errno.h>
37343 int
37344 main ()
37345 {
37346 errno = 0;
37347   ;
37348   return 0;
37349 }
37350 _ACEOF
37351 rm -f conftest.$ac_objext conftest$ac_exeext
37352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37353   (eval $ac_link) 2>conftest.er1
37354   ac_status=$?
37355   grep -v '^ *+' conftest.er1 >conftest.err
37356   rm -f conftest.er1
37357   cat conftest.err >&5
37358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37359   (exit $ac_status); } &&
37360          { ac_try='test -z "$ac_c_werror_flag"
37361                          || test ! -s conftest.err'
37362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37363   (eval $ac_try) 2>&5
37364   ac_status=$?
37365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37366   (exit $ac_status); }; } &&
37367          { ac_try='test -s conftest$ac_exeext'
37368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37369   (eval $ac_try) 2>&5
37370   ac_status=$?
37371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37372   (exit $ac_status); }; }; then
37373   ol_cv_errno_thread_specific=yes
37374 else
37375   echo "$as_me: failed program was:" >&5
37376 sed 's/^/| /' conftest.$ac_ext >&5
37377
37378 ol_cv_errno_thread_specific=no
37379 fi
37380 rm -f conftest.err conftest.$ac_objext \
37381       conftest$ac_exeext conftest.$ac_ext
37382
37383 fi
37384 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37385 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37386
37387                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37388 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37389 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37390   echo $ECHO_N "(cached) $ECHO_C" >&6
37391 else
37392
37393                 cat >conftest.$ac_ext <<_ACEOF
37394 /* confdefs.h.  */
37395 _ACEOF
37396 cat confdefs.h >>conftest.$ac_ext
37397 cat >>conftest.$ac_ext <<_ACEOF
37398 /* end confdefs.h.  */
37399 #include <netdb.h>
37400 int
37401 main ()
37402 {
37403 h_errno = 0;
37404   ;
37405   return 0;
37406 }
37407 _ACEOF
37408 rm -f conftest.$ac_objext conftest$ac_exeext
37409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37410   (eval $ac_link) 2>conftest.er1
37411   ac_status=$?
37412   grep -v '^ *+' conftest.er1 >conftest.err
37413   rm -f conftest.er1
37414   cat conftest.err >&5
37415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37416   (exit $ac_status); } &&
37417          { ac_try='test -z "$ac_c_werror_flag"
37418                          || test ! -s conftest.err'
37419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37420   (eval $ac_try) 2>&5
37421   ac_status=$?
37422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37423   (exit $ac_status); }; } &&
37424          { ac_try='test -s conftest$ac_exeext'
37425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37426   (eval $ac_try) 2>&5
37427   ac_status=$?
37428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37429   (exit $ac_status); }; }; then
37430   ol_cv_h_errno_thread_specific=yes
37431 else
37432   echo "$as_me: failed program was:" >&5
37433 sed 's/^/| /' conftest.$ac_ext >&5
37434
37435 ol_cv_h_errno_thread_specific=no
37436 fi
37437 rm -f conftest.err conftest.$ac_objext \
37438       conftest$ac_exeext conftest.$ac_ext
37439
37440 fi
37441 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37442 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37443
37444         if test $ol_cv_errno_thread_specific != yes \
37445                 -o $ol_cv_h_errno_thread_specific != yes ; then
37446                 LIBS="$LTHREAD_LIBS $LIBS"
37447                 LTHREAD_LIBS=""
37448         fi
37449
37450 fi
37451
37452 if test $ol_link_threads = no ; then
37453         if test $ol_with_threads = yes ; then
37454                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37455 echo "$as_me: error: no suitable thread support" >&2;}
37456    { (exit 1); exit 1; }; }
37457         fi
37458
37459         if test $ol_with_threads = auto ; then
37460                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37461 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37462                 ol_with_threads=no
37463         fi
37464
37465
37466 cat >>confdefs.h <<\_ACEOF
37467 #define NO_THREADS 1
37468 _ACEOF
37469
37470         LTHREAD_LIBS=""
37471 fi
37472
37473 if test $ol_link_threads != no ; then
37474
37475 cat >>confdefs.h <<\_ACEOF
37476 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37477 _ACEOF
37478
37479 fi
37480
37481
37482
37483
37484 for ac_func in \
37485         ctime_r                 \
37486         gethostbyname_r gethostbyaddr_r \
37487
37488 do
37489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37490 echo "$as_me:$LINENO: checking for $ac_func" >&5
37491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37492 if eval "test \"\${$as_ac_var+set}\" = set"; then
37493   echo $ECHO_N "(cached) $ECHO_C" >&6
37494 else
37495   cat >conftest.$ac_ext <<_ACEOF
37496 /* confdefs.h.  */
37497 _ACEOF
37498 cat confdefs.h >>conftest.$ac_ext
37499 cat >>conftest.$ac_ext <<_ACEOF
37500 /* end confdefs.h.  */
37501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37503 #define $ac_func innocuous_$ac_func
37504
37505 /* System header to define __stub macros and hopefully few prototypes,
37506     which can conflict with char $ac_func (); below.
37507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37508     <limits.h> exists even on freestanding compilers.  */
37509
37510 #ifdef __STDC__
37511 # include <limits.h>
37512 #else
37513 # include <assert.h>
37514 #endif
37515
37516 #undef $ac_func
37517
37518 /* Override any gcc2 internal prototype to avoid an error.  */
37519 #ifdef __cplusplus
37520 extern "C"
37521 {
37522 #endif
37523 /* We use char because int might match the return type of a gcc2
37524    builtin and then its argument prototype would still apply.  */
37525 char $ac_func ();
37526 /* The GNU C library defines this for functions which it implements
37527     to always fail with ENOSYS.  Some functions are actually named
37528     something starting with __ and the normal name is an alias.  */
37529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37530 choke me
37531 #else
37532 char (*f) () = $ac_func;
37533 #endif
37534 #ifdef __cplusplus
37535 }
37536 #endif
37537
37538 int
37539 main ()
37540 {
37541 return f != $ac_func;
37542   ;
37543   return 0;
37544 }
37545 _ACEOF
37546 rm -f conftest.$ac_objext conftest$ac_exeext
37547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37548   (eval $ac_link) 2>conftest.er1
37549   ac_status=$?
37550   grep -v '^ *+' conftest.er1 >conftest.err
37551   rm -f conftest.er1
37552   cat conftest.err >&5
37553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37554   (exit $ac_status); } &&
37555          { ac_try='test -z "$ac_c_werror_flag"
37556                          || test ! -s conftest.err'
37557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37558   (eval $ac_try) 2>&5
37559   ac_status=$?
37560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37561   (exit $ac_status); }; } &&
37562          { ac_try='test -s conftest$ac_exeext'
37563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37564   (eval $ac_try) 2>&5
37565   ac_status=$?
37566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37567   (exit $ac_status); }; }; then
37568   eval "$as_ac_var=yes"
37569 else
37570   echo "$as_me: failed program was:" >&5
37571 sed 's/^/| /' conftest.$ac_ext >&5
37572
37573 eval "$as_ac_var=no"
37574 fi
37575 rm -f conftest.err conftest.$ac_objext \
37576       conftest$ac_exeext conftest.$ac_ext
37577 fi
37578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37580 if test `eval echo '${'$as_ac_var'}'` = yes; then
37581   cat >>confdefs.h <<_ACEOF
37582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37583 _ACEOF
37584
37585 fi
37586 done
37587
37588
37589 if test "$ac_cv_func_ctime_r" = no ; then
37590         ol_cv_func_ctime_r_nargs=0
37591 else
37592         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37593 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37594 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37595   echo $ECHO_N "(cached) $ECHO_C" >&6
37596 else
37597   cat >conftest.$ac_ext <<_ACEOF
37598 /* confdefs.h.  */
37599 _ACEOF
37600 cat confdefs.h >>conftest.$ac_ext
37601 cat >>conftest.$ac_ext <<_ACEOF
37602 /* end confdefs.h.  */
37603 #include <time.h>
37604 int
37605 main ()
37606 {
37607 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37608   ;
37609   return 0;
37610 }
37611 _ACEOF
37612 rm -f conftest.$ac_objext
37613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37614   (eval $ac_compile) 2>conftest.er1
37615   ac_status=$?
37616   grep -v '^ *+' conftest.er1 >conftest.err
37617   rm -f conftest.er1
37618   cat conftest.err >&5
37619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37620   (exit $ac_status); } &&
37621          { ac_try='test -z "$ac_c_werror_flag"
37622                          || test ! -s conftest.err'
37623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37624   (eval $ac_try) 2>&5
37625   ac_status=$?
37626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37627   (exit $ac_status); }; } &&
37628          { ac_try='test -s conftest.$ac_objext'
37629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37630   (eval $ac_try) 2>&5
37631   ac_status=$?
37632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37633   (exit $ac_status); }; }; then
37634   ol_cv_func_ctime_r_nargs3=yes
37635 else
37636   echo "$as_me: failed program was:" >&5
37637 sed 's/^/| /' conftest.$ac_ext >&5
37638
37639 ol_cv_func_ctime_r_nargs3=no
37640 fi
37641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37642
37643         cat >conftest.$ac_ext <<_ACEOF
37644 /* confdefs.h.  */
37645 _ACEOF
37646 cat confdefs.h >>conftest.$ac_ext
37647 cat >>conftest.$ac_ext <<_ACEOF
37648 /* end confdefs.h.  */
37649 #include <time.h>
37650 int
37651 main ()
37652 {
37653 time_t ti; char *buffer; ctime_r(&ti,buffer);
37654   ;
37655   return 0;
37656 }
37657 _ACEOF
37658 rm -f conftest.$ac_objext
37659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37660   (eval $ac_compile) 2>conftest.er1
37661   ac_status=$?
37662   grep -v '^ *+' conftest.er1 >conftest.err
37663   rm -f conftest.er1
37664   cat conftest.err >&5
37665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37666   (exit $ac_status); } &&
37667          { ac_try='test -z "$ac_c_werror_flag"
37668                          || test ! -s conftest.err'
37669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37670   (eval $ac_try) 2>&5
37671   ac_status=$?
37672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37673   (exit $ac_status); }; } &&
37674          { ac_try='test -s conftest.$ac_objext'
37675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37676   (eval $ac_try) 2>&5
37677   ac_status=$?
37678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37679   (exit $ac_status); }; }; then
37680   ol_cv_func_ctime_r_nargs2=yes
37681 else
37682   echo "$as_me: failed program was:" >&5
37683 sed 's/^/| /' conftest.$ac_ext >&5
37684
37685 ol_cv_func_ctime_r_nargs2=no
37686 fi
37687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37688
37689         if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37690                 $ol_cv_func_ctime_r_nargs2 = no ; then
37691
37692                 ol_cv_func_ctime_r_nargs=3
37693
37694         elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37695                 $ol_cv_func_ctime_r_nargs2 = yes ; then
37696
37697                 ol_cv_func_ctime_r_nargs=2
37698
37699         else
37700                 ol_cv_func_ctime_r_nargs=0
37701         fi
37702
37703 fi
37704 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37705 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37706
37707   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37708
37709 cat >>confdefs.h <<_ACEOF
37710 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37711 _ACEOF
37712
37713   fi
37714
37715 fi
37716
37717 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37718         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37719 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37720 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37721   echo $ECHO_N "(cached) $ECHO_C" >&6
37722 else
37723   cat >conftest.$ac_ext <<_ACEOF
37724 /* confdefs.h.  */
37725 _ACEOF
37726 cat confdefs.h >>conftest.$ac_ext
37727 cat >>conftest.$ac_ext <<_ACEOF
37728 /* end confdefs.h.  */
37729 #include <sys/types.h>
37730 #include <sys/socket.h>
37731 #include <netinet/in.h>
37732 #include <netdb.h>
37733 #define BUFSIZE (sizeof(struct hostent)+10)
37734 int
37735 main ()
37736 {
37737 struct hostent hent; char buffer[BUFSIZE];
37738                 int bufsize=BUFSIZE;int h_errno;
37739                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37740                         buffer, bufsize, &h_errno);
37741   ;
37742   return 0;
37743 }
37744 _ACEOF
37745 rm -f conftest.$ac_objext
37746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37747   (eval $ac_compile) 2>conftest.er1
37748   ac_status=$?
37749   grep -v '^ *+' conftest.er1 >conftest.err
37750   rm -f conftest.er1
37751   cat conftest.err >&5
37752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37753   (exit $ac_status); } &&
37754          { ac_try='test -z "$ac_c_werror_flag"
37755                          || test ! -s conftest.err'
37756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37757   (eval $ac_try) 2>&5
37758   ac_status=$?
37759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37760   (exit $ac_status); }; } &&
37761          { ac_try='test -s conftest.$ac_objext'
37762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37763   (eval $ac_try) 2>&5
37764   ac_status=$?
37765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37766   (exit $ac_status); }; }; then
37767   ol_cv_func_gethostbyname_r_nargs5=yes
37768 else
37769   echo "$as_me: failed program was:" >&5
37770 sed 's/^/| /' conftest.$ac_ext >&5
37771
37772 ol_cv_func_gethostbyname_r_nargs5=no
37773 fi
37774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37775
37776         cat >conftest.$ac_ext <<_ACEOF
37777 /* confdefs.h.  */
37778 _ACEOF
37779 cat confdefs.h >>conftest.$ac_ext
37780 cat >>conftest.$ac_ext <<_ACEOF
37781 /* end confdefs.h.  */
37782 #include <sys/types.h>
37783 #include <sys/socket.h>
37784 #include <netinet/in.h>
37785 #include <netdb.h>
37786 #define BUFSIZE (sizeof(struct hostent)+10)
37787 int
37788 main ()
37789 {
37790 struct hostent hent;struct hostent *rhent;
37791                 char buffer[BUFSIZE];
37792                 int bufsize=BUFSIZE;int h_errno;
37793                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37794                         &rhent, &h_errno);
37795   ;
37796   return 0;
37797 }
37798 _ACEOF
37799 rm -f conftest.$ac_objext
37800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37801   (eval $ac_compile) 2>conftest.er1
37802   ac_status=$?
37803   grep -v '^ *+' conftest.er1 >conftest.err
37804   rm -f conftest.er1
37805   cat conftest.err >&5
37806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37807   (exit $ac_status); } &&
37808          { ac_try='test -z "$ac_c_werror_flag"
37809                          || test ! -s conftest.err'
37810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37811   (eval $ac_try) 2>&5
37812   ac_status=$?
37813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37814   (exit $ac_status); }; } &&
37815          { ac_try='test -s conftest.$ac_objext'
37816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37817   (eval $ac_try) 2>&5
37818   ac_status=$?
37819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37820   (exit $ac_status); }; }; then
37821   ol_cv_func_gethostbyname_r_nargs6=yes
37822 else
37823   echo "$as_me: failed program was:" >&5
37824 sed 's/^/| /' conftest.$ac_ext >&5
37825
37826 ol_cv_func_gethostbyname_r_nargs6=no
37827 fi
37828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37829
37830         if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37831                 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37832
37833                 ol_cv_func_gethostbyname_r_nargs=5
37834
37835         elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37836                 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37837
37838                 ol_cv_func_gethostbyname_r_nargs=6
37839
37840         else
37841                 ol_cv_func_gethostbyname_r_nargs=0
37842         fi
37843
37844 fi
37845 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37846 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37847   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37848
37849 cat >>confdefs.h <<_ACEOF
37850 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37851 _ACEOF
37852
37853   fi
37854
37855 else
37856         ol_cv_func_gethostbyname_r_nargs=0
37857 fi
37858
37859 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37860         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37861 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37862 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37863   echo $ECHO_N "(cached) $ECHO_C" >&6
37864 else
37865   cat >conftest.$ac_ext <<_ACEOF
37866 /* confdefs.h.  */
37867 _ACEOF
37868 cat confdefs.h >>conftest.$ac_ext
37869 cat >>conftest.$ac_ext <<_ACEOF
37870 /* end confdefs.h.  */
37871 #include <sys/types.h>
37872 #include <sys/socket.h>
37873 #include <netinet/in.h>
37874 #include <netdb.h>
37875 #define BUFSIZE (sizeof(struct hostent)+10)
37876 int
37877 main ()
37878 {
37879 struct hostent hent; char buffer[BUFSIZE];
37880             struct in_addr add;
37881             size_t alen=sizeof(struct in_addr);
37882             int bufsize=BUFSIZE;int h_errno;
37883                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37884                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37885   ;
37886   return 0;
37887 }
37888 _ACEOF
37889 rm -f conftest.$ac_objext
37890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37891   (eval $ac_compile) 2>conftest.er1
37892   ac_status=$?
37893   grep -v '^ *+' conftest.er1 >conftest.err
37894   rm -f conftest.er1
37895   cat conftest.err >&5
37896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37897   (exit $ac_status); } &&
37898          { ac_try='test -z "$ac_c_werror_flag"
37899                          || test ! -s conftest.err'
37900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37901   (eval $ac_try) 2>&5
37902   ac_status=$?
37903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37904   (exit $ac_status); }; } &&
37905          { ac_try='test -s conftest.$ac_objext'
37906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37907   (eval $ac_try) 2>&5
37908   ac_status=$?
37909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37910   (exit $ac_status); }; }; then
37911   ol_cv_func_gethostbyaddr_r_nargs7=yes
37912 else
37913   echo "$as_me: failed program was:" >&5
37914 sed 's/^/| /' conftest.$ac_ext >&5
37915
37916 ol_cv_func_gethostbyaddr_r_nargs7=no
37917 fi
37918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37919
37920         cat >conftest.$ac_ext <<_ACEOF
37921 /* confdefs.h.  */
37922 _ACEOF
37923 cat confdefs.h >>conftest.$ac_ext
37924 cat >>conftest.$ac_ext <<_ACEOF
37925 /* end confdefs.h.  */
37926 #include <sys/types.h>
37927 #include <sys/socket.h>
37928 #include <netinet/in.h>
37929 #include <netdb.h>
37930 #define BUFSIZE (sizeof(struct hostent)+10)
37931 int
37932 main ()
37933 {
37934 struct hostent hent;
37935                 struct hostent *rhent; char buffer[BUFSIZE];
37936                 struct in_addr add;
37937                 size_t alen=sizeof(struct in_addr);
37938                 int bufsize=BUFSIZE;int h_errno;
37939                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37940                         alen, AF_INET, &hent, buffer, bufsize,
37941                         &rhent, &h_errno);
37942   ;
37943   return 0;
37944 }
37945 _ACEOF
37946 rm -f conftest.$ac_objext
37947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37948   (eval $ac_compile) 2>conftest.er1
37949   ac_status=$?
37950   grep -v '^ *+' conftest.er1 >conftest.err
37951   rm -f conftest.er1
37952   cat conftest.err >&5
37953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37954   (exit $ac_status); } &&
37955          { ac_try='test -z "$ac_c_werror_flag"
37956                          || test ! -s conftest.err'
37957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37958   (eval $ac_try) 2>&5
37959   ac_status=$?
37960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37961   (exit $ac_status); }; } &&
37962          { ac_try='test -s conftest.$ac_objext'
37963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37964   (eval $ac_try) 2>&5
37965   ac_status=$?
37966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37967   (exit $ac_status); }; }; then
37968   ol_cv_func_gethostbyaddr_r_nargs8=yes
37969 else
37970   echo "$as_me: failed program was:" >&5
37971 sed 's/^/| /' conftest.$ac_ext >&5
37972
37973 ol_cv_func_gethostbyaddr_r_nargs8=no
37974 fi
37975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37976
37977         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37978                 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37979
37980                 ol_cv_func_gethostbyaddr_r_nargs=7
37981
37982         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37983                 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37984
37985                 ol_cv_func_gethostbyaddr_r_nargs=8
37986
37987         else
37988                 ol_cv_func_gethostbyaddr_r_nargs=0
37989         fi
37990
37991 fi
37992 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37993 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37994   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37995
37996 cat >>confdefs.h <<_ACEOF
37997 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37998 _ACEOF
37999
38000   fi
38001
38002 else
38003         ol_cv_func_gethostbyaddr_r_nargs=0
38004 fi
38005
38006 ol_link_ldbm=no
38007
38008 if test $ol_enable_ldbm_api = auto \
38009         -o $ol_enable_ldbm_api = berkeley \
38010         -o $ol_enable_ldbm_api = bcompat ; then
38011
38012         if test $ol_enable_ldbm_api = bcompat; then \
38013
38014
38015 for ac_header in db_185.h db.h
38016 do
38017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38019   echo "$as_me:$LINENO: checking for $ac_header" >&5
38020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38022   echo $ECHO_N "(cached) $ECHO_C" >&6
38023 fi
38024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38026 else
38027   # Is the header compilable?
38028 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38030 cat >conftest.$ac_ext <<_ACEOF
38031 /* confdefs.h.  */
38032 _ACEOF
38033 cat confdefs.h >>conftest.$ac_ext
38034 cat >>conftest.$ac_ext <<_ACEOF
38035 /* end confdefs.h.  */
38036 $ac_includes_default
38037 #include <$ac_header>
38038 _ACEOF
38039 rm -f conftest.$ac_objext
38040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38041   (eval $ac_compile) 2>conftest.er1
38042   ac_status=$?
38043   grep -v '^ *+' conftest.er1 >conftest.err
38044   rm -f conftest.er1
38045   cat conftest.err >&5
38046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38047   (exit $ac_status); } &&
38048          { ac_try='test -z "$ac_c_werror_flag"
38049                          || test ! -s conftest.err'
38050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38051   (eval $ac_try) 2>&5
38052   ac_status=$?
38053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38054   (exit $ac_status); }; } &&
38055          { ac_try='test -s conftest.$ac_objext'
38056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38057   (eval $ac_try) 2>&5
38058   ac_status=$?
38059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38060   (exit $ac_status); }; }; then
38061   ac_header_compiler=yes
38062 else
38063   echo "$as_me: failed program was:" >&5
38064 sed 's/^/| /' conftest.$ac_ext >&5
38065
38066 ac_header_compiler=no
38067 fi
38068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38069 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38070 echo "${ECHO_T}$ac_header_compiler" >&6
38071
38072 # Is the header present?
38073 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38075 cat >conftest.$ac_ext <<_ACEOF
38076 /* confdefs.h.  */
38077 _ACEOF
38078 cat confdefs.h >>conftest.$ac_ext
38079 cat >>conftest.$ac_ext <<_ACEOF
38080 /* end confdefs.h.  */
38081 #include <$ac_header>
38082 _ACEOF
38083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38084   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38085   ac_status=$?
38086   grep -v '^ *+' conftest.er1 >conftest.err
38087   rm -f conftest.er1
38088   cat conftest.err >&5
38089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38090   (exit $ac_status); } >/dev/null; then
38091   if test -s conftest.err; then
38092     ac_cpp_err=$ac_c_preproc_warn_flag
38093     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38094   else
38095     ac_cpp_err=
38096   fi
38097 else
38098   ac_cpp_err=yes
38099 fi
38100 if test -z "$ac_cpp_err"; then
38101   ac_header_preproc=yes
38102 else
38103   echo "$as_me: failed program was:" >&5
38104 sed 's/^/| /' conftest.$ac_ext >&5
38105
38106   ac_header_preproc=no
38107 fi
38108 rm -f conftest.err conftest.$ac_ext
38109 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38110 echo "${ECHO_T}$ac_header_preproc" >&6
38111
38112 # So?  What about this header?
38113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38114   yes:no: )
38115     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38117     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38119     ac_header_preproc=yes
38120     ;;
38121   no:yes:* )
38122     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38124     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38125 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38126     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38128     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38129 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38130     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38132     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38134     (
38135       cat <<\_ASBOX
38136 ## ------------------------------------------ ##
38137 ## Report this to the AC_PACKAGE_NAME lists.  ##
38138 ## ------------------------------------------ ##
38139 _ASBOX
38140     ) |
38141       sed "s/^/$as_me: WARNING:     /" >&2
38142     ;;
38143 esac
38144 echo "$as_me:$LINENO: checking for $ac_header" >&5
38145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38147   echo $ECHO_N "(cached) $ECHO_C" >&6
38148 else
38149   eval "$as_ac_Header=\$ac_header_preproc"
38150 fi
38151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38153
38154 fi
38155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38156   cat >>confdefs.h <<_ACEOF
38157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38158 _ACEOF
38159
38160 fi
38161
38162 done
38163
38164 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
38165         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
38166 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
38167 if test "${ol_cv_header_db1+set}" = set; then
38168   echo $ECHO_N "(cached) $ECHO_C" >&6
38169 else
38170
38171                 cat >conftest.$ac_ext <<_ACEOF
38172 /* confdefs.h.  */
38173 _ACEOF
38174 cat confdefs.h >>conftest.$ac_ext
38175 cat >>conftest.$ac_ext <<_ACEOF
38176 /* end confdefs.h.  */
38177
38178 #if HAVE_DB_185_H
38179 #       include <db_185.h>
38180 #else
38181 #       include <db.h>
38182 #endif
38183
38184  /* this check could be improved */
38185 #ifndef DB_VERSION_MAJOR
38186 #       define DB_VERSION_MAJOR 1
38187 #endif
38188
38189 #if DB_VERSION_MAJOR == 1
38190         __db_version_1
38191 #endif
38192
38193 _ACEOF
38194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38195   $EGREP "__db_version_1" >/dev/null 2>&1; then
38196   ol_cv_header_db1=yes
38197 else
38198   ol_cv_header_db1=no
38199 fi
38200 rm -f conftest*
38201
38202 fi
38203 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
38204 echo "${ECHO_T}$ol_cv_header_db1" >&6
38205
38206         if test $ol_cv_header_db1 = yes ; then
38207                 ol_cv_lib_db=no
38208 if test $ol_cv_lib_db = no ; then
38209         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
38210 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
38211 if test "${ol_cv_db_none+set}" = set; then
38212   echo $ECHO_N "(cached) $ECHO_C" >&6
38213 else
38214
38215         ol_DB_LIB=
38216         ol_LIBS=$LIBS
38217         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38218
38219         cat >conftest.$ac_ext <<_ACEOF
38220 /* confdefs.h.  */
38221 _ACEOF
38222 cat confdefs.h >>conftest.$ac_ext
38223 cat >>conftest.$ac_ext <<_ACEOF
38224 /* end confdefs.h.  */
38225
38226 #ifdef HAVE_DB_185_H
38227 # include <db_185.h>
38228 #else
38229 # include <db.h>
38230 #endif
38231
38232 #ifndef DB_VERSION_MAJOR
38233 # define DB_VERSION_MAJOR 1
38234 #endif
38235
38236 #ifndef NULL
38237 #define NULL ((void*)0)
38238 #endif
38239
38240 int
38241 main ()
38242 {
38243
38244 #if DB_VERSION_MAJOR > 1
38245         {
38246                 char *version;
38247                 int major, minor, patch;
38248
38249                 version = db_version( &major, &minor, &patch );
38250
38251                 if( major != DB_VERSION_MAJOR ||
38252                         minor < DB_VERSION_MINOR )
38253                 {
38254                         printf("Berkeley DB version mismatch\n"
38255                                 "\theader: %s\n\tlibrary: %s\n",
38256                                 DB_VERSION_STRING, version);
38257                         return 1;
38258                 }
38259         }
38260 #endif
38261
38262 #if DB_VERSION_MAJOR > 2
38263         db_env_create( NULL, 0 );
38264 #elif DB_VERSION_MAJOR > 1
38265         db_appexit( NULL );
38266 #else
38267         (void) dbopen( NULL, 0, 0, 0, NULL);
38268 #endif
38269
38270   ;
38271   return 0;
38272 }
38273 _ACEOF
38274 rm -f conftest.$ac_objext conftest$ac_exeext
38275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38276   (eval $ac_link) 2>conftest.er1
38277   ac_status=$?
38278   grep -v '^ *+' conftest.er1 >conftest.err
38279   rm -f conftest.er1
38280   cat conftest.err >&5
38281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38282   (exit $ac_status); } &&
38283          { ac_try='test -z "$ac_c_werror_flag"
38284                          || test ! -s conftest.err'
38285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38286   (eval $ac_try) 2>&5
38287   ac_status=$?
38288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38289   (exit $ac_status); }; } &&
38290          { ac_try='test -s conftest$ac_exeext'
38291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38292   (eval $ac_try) 2>&5
38293   ac_status=$?
38294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38295   (exit $ac_status); }; }; then
38296   ol_cv_db_none=yes
38297 else
38298   echo "$as_me: failed program was:" >&5
38299 sed 's/^/| /' conftest.$ac_ext >&5
38300
38301 ol_cv_db_none=no
38302 fi
38303 rm -f conftest.err conftest.$ac_objext \
38304       conftest$ac_exeext conftest.$ac_ext
38305
38306         LIBS="$ol_LIBS"
38307
38308 fi
38309 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
38310 echo "${ECHO_T}$ol_cv_db_none" >&6
38311
38312         if test $ol_cv_db_none = yes ; then
38313                 ol_cv_lib_db=yes
38314         fi
38315 fi
38316
38317 if test $ol_cv_lib_db = no ; then
38318         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
38319 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
38320 if test "${ol_cv_db_db43+set}" = set; then
38321   echo $ECHO_N "(cached) $ECHO_C" >&6
38322 else
38323
38324         ol_DB_LIB=-ldb43
38325         ol_LIBS=$LIBS
38326         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38327
38328         cat >conftest.$ac_ext <<_ACEOF
38329 /* confdefs.h.  */
38330 _ACEOF
38331 cat confdefs.h >>conftest.$ac_ext
38332 cat >>conftest.$ac_ext <<_ACEOF
38333 /* end confdefs.h.  */
38334
38335 #ifdef HAVE_DB_185_H
38336 # include <db_185.h>
38337 #else
38338 # include <db.h>
38339 #endif
38340
38341 #ifndef DB_VERSION_MAJOR
38342 # define DB_VERSION_MAJOR 1
38343 #endif
38344
38345 #ifndef NULL
38346 #define NULL ((void*)0)
38347 #endif
38348
38349 int
38350 main ()
38351 {
38352
38353 #if DB_VERSION_MAJOR > 1
38354         {
38355                 char *version;
38356                 int major, minor, patch;
38357
38358                 version = db_version( &major, &minor, &patch );
38359
38360                 if( major != DB_VERSION_MAJOR ||
38361                         minor < DB_VERSION_MINOR )
38362                 {
38363                         printf("Berkeley DB version mismatch\n"
38364                                 "\theader: %s\n\tlibrary: %s\n",
38365                                 DB_VERSION_STRING, version);
38366                         return 1;
38367                 }
38368         }
38369 #endif
38370
38371 #if DB_VERSION_MAJOR > 2
38372         db_env_create( NULL, 0 );
38373 #elif DB_VERSION_MAJOR > 1
38374         db_appexit( NULL );
38375 #else
38376         (void) dbopen( NULL, 0, 0, 0, NULL);
38377 #endif
38378
38379   ;
38380   return 0;
38381 }
38382 _ACEOF
38383 rm -f conftest.$ac_objext conftest$ac_exeext
38384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38385   (eval $ac_link) 2>conftest.er1
38386   ac_status=$?
38387   grep -v '^ *+' conftest.er1 >conftest.err
38388   rm -f conftest.er1
38389   cat conftest.err >&5
38390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38391   (exit $ac_status); } &&
38392          { ac_try='test -z "$ac_c_werror_flag"
38393                          || test ! -s conftest.err'
38394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38395   (eval $ac_try) 2>&5
38396   ac_status=$?
38397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38398   (exit $ac_status); }; } &&
38399          { ac_try='test -s conftest$ac_exeext'
38400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38401   (eval $ac_try) 2>&5
38402   ac_status=$?
38403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38404   (exit $ac_status); }; }; then
38405   ol_cv_db_db43=yes
38406 else
38407   echo "$as_me: failed program was:" >&5
38408 sed 's/^/| /' conftest.$ac_ext >&5
38409
38410 ol_cv_db_db43=no
38411 fi
38412 rm -f conftest.err conftest.$ac_objext \
38413       conftest$ac_exeext conftest.$ac_ext
38414
38415         LIBS="$ol_LIBS"
38416
38417 fi
38418 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38419 echo "${ECHO_T}$ol_cv_db_db43" >&6
38420
38421         if test $ol_cv_db_db43 = yes ; then
38422                 ol_cv_lib_db=-ldb43
38423         fi
38424 fi
38425
38426 if test $ol_cv_lib_db = no ; then
38427         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38428 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38429 if test "${ol_cv_db_db_43+set}" = set; then
38430   echo $ECHO_N "(cached) $ECHO_C" >&6
38431 else
38432
38433         ol_DB_LIB=-ldb-43
38434         ol_LIBS=$LIBS
38435         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38436
38437         cat >conftest.$ac_ext <<_ACEOF
38438 /* confdefs.h.  */
38439 _ACEOF
38440 cat confdefs.h >>conftest.$ac_ext
38441 cat >>conftest.$ac_ext <<_ACEOF
38442 /* end confdefs.h.  */
38443
38444 #ifdef HAVE_DB_185_H
38445 # include <db_185.h>
38446 #else
38447 # include <db.h>
38448 #endif
38449
38450 #ifndef DB_VERSION_MAJOR
38451 # define DB_VERSION_MAJOR 1
38452 #endif
38453
38454 #ifndef NULL
38455 #define NULL ((void*)0)
38456 #endif
38457
38458 int
38459 main ()
38460 {
38461
38462 #if DB_VERSION_MAJOR > 1
38463         {
38464                 char *version;
38465                 int major, minor, patch;
38466
38467                 version = db_version( &major, &minor, &patch );
38468
38469                 if( major != DB_VERSION_MAJOR ||
38470                         minor < DB_VERSION_MINOR )
38471                 {
38472                         printf("Berkeley DB version mismatch\n"
38473                                 "\theader: %s\n\tlibrary: %s\n",
38474                                 DB_VERSION_STRING, version);
38475                         return 1;
38476                 }
38477         }
38478 #endif
38479
38480 #if DB_VERSION_MAJOR > 2
38481         db_env_create( NULL, 0 );
38482 #elif DB_VERSION_MAJOR > 1
38483         db_appexit( NULL );
38484 #else
38485         (void) dbopen( NULL, 0, 0, 0, NULL);
38486 #endif
38487
38488   ;
38489   return 0;
38490 }
38491 _ACEOF
38492 rm -f conftest.$ac_objext conftest$ac_exeext
38493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38494   (eval $ac_link) 2>conftest.er1
38495   ac_status=$?
38496   grep -v '^ *+' conftest.er1 >conftest.err
38497   rm -f conftest.er1
38498   cat conftest.err >&5
38499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38500   (exit $ac_status); } &&
38501          { ac_try='test -z "$ac_c_werror_flag"
38502                          || test ! -s conftest.err'
38503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38504   (eval $ac_try) 2>&5
38505   ac_status=$?
38506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38507   (exit $ac_status); }; } &&
38508          { ac_try='test -s conftest$ac_exeext'
38509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38510   (eval $ac_try) 2>&5
38511   ac_status=$?
38512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38513   (exit $ac_status); }; }; then
38514   ol_cv_db_db_43=yes
38515 else
38516   echo "$as_me: failed program was:" >&5
38517 sed 's/^/| /' conftest.$ac_ext >&5
38518
38519 ol_cv_db_db_43=no
38520 fi
38521 rm -f conftest.err conftest.$ac_objext \
38522       conftest$ac_exeext conftest.$ac_ext
38523
38524         LIBS="$ol_LIBS"
38525
38526 fi
38527 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38528 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38529
38530         if test $ol_cv_db_db_43 = yes ; then
38531                 ol_cv_lib_db=-ldb-43
38532         fi
38533 fi
38534
38535 if test $ol_cv_lib_db = no ; then
38536         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38537 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38538 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38539   echo $ECHO_N "(cached) $ECHO_C" >&6
38540 else
38541
38542         ol_DB_LIB=-ldb-4.3
38543         ol_LIBS=$LIBS
38544         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38545
38546         cat >conftest.$ac_ext <<_ACEOF
38547 /* confdefs.h.  */
38548 _ACEOF
38549 cat confdefs.h >>conftest.$ac_ext
38550 cat >>conftest.$ac_ext <<_ACEOF
38551 /* end confdefs.h.  */
38552
38553 #ifdef HAVE_DB_185_H
38554 # include <db_185.h>
38555 #else
38556 # include <db.h>
38557 #endif
38558
38559 #ifndef DB_VERSION_MAJOR
38560 # define DB_VERSION_MAJOR 1
38561 #endif
38562
38563 #ifndef NULL
38564 #define NULL ((void*)0)
38565 #endif
38566
38567 int
38568 main ()
38569 {
38570
38571 #if DB_VERSION_MAJOR > 1
38572         {
38573                 char *version;
38574                 int major, minor, patch;
38575
38576                 version = db_version( &major, &minor, &patch );
38577
38578                 if( major != DB_VERSION_MAJOR ||
38579                         minor < DB_VERSION_MINOR )
38580                 {
38581                         printf("Berkeley DB version mismatch\n"
38582                                 "\theader: %s\n\tlibrary: %s\n",
38583                                 DB_VERSION_STRING, version);
38584                         return 1;
38585                 }
38586         }
38587 #endif
38588
38589 #if DB_VERSION_MAJOR > 2
38590         db_env_create( NULL, 0 );
38591 #elif DB_VERSION_MAJOR > 1
38592         db_appexit( NULL );
38593 #else
38594         (void) dbopen( NULL, 0, 0, 0, NULL);
38595 #endif
38596
38597   ;
38598   return 0;
38599 }
38600 _ACEOF
38601 rm -f conftest.$ac_objext conftest$ac_exeext
38602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38603   (eval $ac_link) 2>conftest.er1
38604   ac_status=$?
38605   grep -v '^ *+' conftest.er1 >conftest.err
38606   rm -f conftest.er1
38607   cat conftest.err >&5
38608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38609   (exit $ac_status); } &&
38610          { ac_try='test -z "$ac_c_werror_flag"
38611                          || test ! -s conftest.err'
38612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38613   (eval $ac_try) 2>&5
38614   ac_status=$?
38615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38616   (exit $ac_status); }; } &&
38617          { ac_try='test -s conftest$ac_exeext'
38618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38619   (eval $ac_try) 2>&5
38620   ac_status=$?
38621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38622   (exit $ac_status); }; }; then
38623   ol_cv_db_db_4_dot_3=yes
38624 else
38625   echo "$as_me: failed program was:" >&5
38626 sed 's/^/| /' conftest.$ac_ext >&5
38627
38628 ol_cv_db_db_4_dot_3=no
38629 fi
38630 rm -f conftest.err conftest.$ac_objext \
38631       conftest$ac_exeext conftest.$ac_ext
38632
38633         LIBS="$ol_LIBS"
38634
38635 fi
38636 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38637 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38638
38639         if test $ol_cv_db_db_4_dot_3 = yes ; then
38640                 ol_cv_lib_db=-ldb-4.3
38641         fi
38642 fi
38643
38644 if test $ol_cv_lib_db = no ; then
38645         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38646 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38647 if test "${ol_cv_db_db_4_3+set}" = set; then
38648   echo $ECHO_N "(cached) $ECHO_C" >&6
38649 else
38650
38651         ol_DB_LIB=-ldb-4-3
38652         ol_LIBS=$LIBS
38653         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38654
38655         cat >conftest.$ac_ext <<_ACEOF
38656 /* confdefs.h.  */
38657 _ACEOF
38658 cat confdefs.h >>conftest.$ac_ext
38659 cat >>conftest.$ac_ext <<_ACEOF
38660 /* end confdefs.h.  */
38661
38662 #ifdef HAVE_DB_185_H
38663 # include <db_185.h>
38664 #else
38665 # include <db.h>
38666 #endif
38667
38668 #ifndef DB_VERSION_MAJOR
38669 # define DB_VERSION_MAJOR 1
38670 #endif
38671
38672 #ifndef NULL
38673 #define NULL ((void*)0)
38674 #endif
38675
38676 int
38677 main ()
38678 {
38679
38680 #if DB_VERSION_MAJOR > 1
38681         {
38682                 char *version;
38683                 int major, minor, patch;
38684
38685                 version = db_version( &major, &minor, &patch );
38686
38687                 if( major != DB_VERSION_MAJOR ||
38688                         minor < DB_VERSION_MINOR )
38689                 {
38690                         printf("Berkeley DB version mismatch\n"
38691                                 "\theader: %s\n\tlibrary: %s\n",
38692                                 DB_VERSION_STRING, version);
38693                         return 1;
38694                 }
38695         }
38696 #endif
38697
38698 #if DB_VERSION_MAJOR > 2
38699         db_env_create( NULL, 0 );
38700 #elif DB_VERSION_MAJOR > 1
38701         db_appexit( NULL );
38702 #else
38703         (void) dbopen( NULL, 0, 0, 0, NULL);
38704 #endif
38705
38706   ;
38707   return 0;
38708 }
38709 _ACEOF
38710 rm -f conftest.$ac_objext conftest$ac_exeext
38711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38712   (eval $ac_link) 2>conftest.er1
38713   ac_status=$?
38714   grep -v '^ *+' conftest.er1 >conftest.err
38715   rm -f conftest.er1
38716   cat conftest.err >&5
38717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38718   (exit $ac_status); } &&
38719          { ac_try='test -z "$ac_c_werror_flag"
38720                          || test ! -s conftest.err'
38721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38722   (eval $ac_try) 2>&5
38723   ac_status=$?
38724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38725   (exit $ac_status); }; } &&
38726          { ac_try='test -s conftest$ac_exeext'
38727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38728   (eval $ac_try) 2>&5
38729   ac_status=$?
38730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38731   (exit $ac_status); }; }; then
38732   ol_cv_db_db_4_3=yes
38733 else
38734   echo "$as_me: failed program was:" >&5
38735 sed 's/^/| /' conftest.$ac_ext >&5
38736
38737 ol_cv_db_db_4_3=no
38738 fi
38739 rm -f conftest.err conftest.$ac_objext \
38740       conftest$ac_exeext conftest.$ac_ext
38741
38742         LIBS="$ol_LIBS"
38743
38744 fi
38745 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38746 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38747
38748         if test $ol_cv_db_db_4_3 = yes ; then
38749                 ol_cv_lib_db=-ldb-4-3
38750         fi
38751 fi
38752
38753 if test $ol_cv_lib_db = no ; then
38754         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38755 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38756 if test "${ol_cv_db_db42+set}" = set; then
38757   echo $ECHO_N "(cached) $ECHO_C" >&6
38758 else
38759
38760         ol_DB_LIB=-ldb42
38761         ol_LIBS=$LIBS
38762         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38763
38764         cat >conftest.$ac_ext <<_ACEOF
38765 /* confdefs.h.  */
38766 _ACEOF
38767 cat confdefs.h >>conftest.$ac_ext
38768 cat >>conftest.$ac_ext <<_ACEOF
38769 /* end confdefs.h.  */
38770
38771 #ifdef HAVE_DB_185_H
38772 # include <db_185.h>
38773 #else
38774 # include <db.h>
38775 #endif
38776
38777 #ifndef DB_VERSION_MAJOR
38778 # define DB_VERSION_MAJOR 1
38779 #endif
38780
38781 #ifndef NULL
38782 #define NULL ((void*)0)
38783 #endif
38784
38785 int
38786 main ()
38787 {
38788
38789 #if DB_VERSION_MAJOR > 1
38790         {
38791                 char *version;
38792                 int major, minor, patch;
38793
38794                 version = db_version( &major, &minor, &patch );
38795
38796                 if( major != DB_VERSION_MAJOR ||
38797                         minor < DB_VERSION_MINOR )
38798                 {
38799                         printf("Berkeley DB version mismatch\n"
38800                                 "\theader: %s\n\tlibrary: %s\n",
38801                                 DB_VERSION_STRING, version);
38802                         return 1;
38803                 }
38804         }
38805 #endif
38806
38807 #if DB_VERSION_MAJOR > 2
38808         db_env_create( NULL, 0 );
38809 #elif DB_VERSION_MAJOR > 1
38810         db_appexit( NULL );
38811 #else
38812         (void) dbopen( NULL, 0, 0, 0, NULL);
38813 #endif
38814
38815   ;
38816   return 0;
38817 }
38818 _ACEOF
38819 rm -f conftest.$ac_objext conftest$ac_exeext
38820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38821   (eval $ac_link) 2>conftest.er1
38822   ac_status=$?
38823   grep -v '^ *+' conftest.er1 >conftest.err
38824   rm -f conftest.er1
38825   cat conftest.err >&5
38826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38827   (exit $ac_status); } &&
38828          { ac_try='test -z "$ac_c_werror_flag"
38829                          || test ! -s conftest.err'
38830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38831   (eval $ac_try) 2>&5
38832   ac_status=$?
38833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38834   (exit $ac_status); }; } &&
38835          { ac_try='test -s conftest$ac_exeext'
38836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38837   (eval $ac_try) 2>&5
38838   ac_status=$?
38839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38840   (exit $ac_status); }; }; then
38841   ol_cv_db_db42=yes
38842 else
38843   echo "$as_me: failed program was:" >&5
38844 sed 's/^/| /' conftest.$ac_ext >&5
38845
38846 ol_cv_db_db42=no
38847 fi
38848 rm -f conftest.err conftest.$ac_objext \
38849       conftest$ac_exeext conftest.$ac_ext
38850
38851         LIBS="$ol_LIBS"
38852
38853 fi
38854 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38855 echo "${ECHO_T}$ol_cv_db_db42" >&6
38856
38857         if test $ol_cv_db_db42 = yes ; then
38858                 ol_cv_lib_db=-ldb42
38859         fi
38860 fi
38861
38862 if test $ol_cv_lib_db = no ; then
38863         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38864 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38865 if test "${ol_cv_db_db_42+set}" = set; then
38866   echo $ECHO_N "(cached) $ECHO_C" >&6
38867 else
38868
38869         ol_DB_LIB=-ldb-42
38870         ol_LIBS=$LIBS
38871         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38872
38873         cat >conftest.$ac_ext <<_ACEOF
38874 /* confdefs.h.  */
38875 _ACEOF
38876 cat confdefs.h >>conftest.$ac_ext
38877 cat >>conftest.$ac_ext <<_ACEOF
38878 /* end confdefs.h.  */
38879
38880 #ifdef HAVE_DB_185_H
38881 # include <db_185.h>
38882 #else
38883 # include <db.h>
38884 #endif
38885
38886 #ifndef DB_VERSION_MAJOR
38887 # define DB_VERSION_MAJOR 1
38888 #endif
38889
38890 #ifndef NULL
38891 #define NULL ((void*)0)
38892 #endif
38893
38894 int
38895 main ()
38896 {
38897
38898 #if DB_VERSION_MAJOR > 1
38899         {
38900                 char *version;
38901                 int major, minor, patch;
38902
38903                 version = db_version( &major, &minor, &patch );
38904
38905                 if( major != DB_VERSION_MAJOR ||
38906                         minor < DB_VERSION_MINOR )
38907                 {
38908                         printf("Berkeley DB version mismatch\n"
38909                                 "\theader: %s\n\tlibrary: %s\n",
38910                                 DB_VERSION_STRING, version);
38911                         return 1;
38912                 }
38913         }
38914 #endif
38915
38916 #if DB_VERSION_MAJOR > 2
38917         db_env_create( NULL, 0 );
38918 #elif DB_VERSION_MAJOR > 1
38919         db_appexit( NULL );
38920 #else
38921         (void) dbopen( NULL, 0, 0, 0, NULL);
38922 #endif
38923
38924   ;
38925   return 0;
38926 }
38927 _ACEOF
38928 rm -f conftest.$ac_objext conftest$ac_exeext
38929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38930   (eval $ac_link) 2>conftest.er1
38931   ac_status=$?
38932   grep -v '^ *+' conftest.er1 >conftest.err
38933   rm -f conftest.er1
38934   cat conftest.err >&5
38935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38936   (exit $ac_status); } &&
38937          { ac_try='test -z "$ac_c_werror_flag"
38938                          || test ! -s conftest.err'
38939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38940   (eval $ac_try) 2>&5
38941   ac_status=$?
38942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38943   (exit $ac_status); }; } &&
38944          { ac_try='test -s conftest$ac_exeext'
38945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38946   (eval $ac_try) 2>&5
38947   ac_status=$?
38948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38949   (exit $ac_status); }; }; then
38950   ol_cv_db_db_42=yes
38951 else
38952   echo "$as_me: failed program was:" >&5
38953 sed 's/^/| /' conftest.$ac_ext >&5
38954
38955 ol_cv_db_db_42=no
38956 fi
38957 rm -f conftest.err conftest.$ac_objext \
38958       conftest$ac_exeext conftest.$ac_ext
38959
38960         LIBS="$ol_LIBS"
38961
38962 fi
38963 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38964 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38965
38966         if test $ol_cv_db_db_42 = yes ; then
38967                 ol_cv_lib_db=-ldb-42
38968         fi
38969 fi
38970
38971 if test $ol_cv_lib_db = no ; then
38972         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38973 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38974 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38975   echo $ECHO_N "(cached) $ECHO_C" >&6
38976 else
38977
38978         ol_DB_LIB=-ldb-4.2
38979         ol_LIBS=$LIBS
38980         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38981
38982         cat >conftest.$ac_ext <<_ACEOF
38983 /* confdefs.h.  */
38984 _ACEOF
38985 cat confdefs.h >>conftest.$ac_ext
38986 cat >>conftest.$ac_ext <<_ACEOF
38987 /* end confdefs.h.  */
38988
38989 #ifdef HAVE_DB_185_H
38990 # include <db_185.h>
38991 #else
38992 # include <db.h>
38993 #endif
38994
38995 #ifndef DB_VERSION_MAJOR
38996 # define DB_VERSION_MAJOR 1
38997 #endif
38998
38999 #ifndef NULL
39000 #define NULL ((void*)0)
39001 #endif
39002
39003 int
39004 main ()
39005 {
39006
39007 #if DB_VERSION_MAJOR > 1
39008         {
39009                 char *version;
39010                 int major, minor, patch;
39011
39012                 version = db_version( &major, &minor, &patch );
39013
39014                 if( major != DB_VERSION_MAJOR ||
39015                         minor < DB_VERSION_MINOR )
39016                 {
39017                         printf("Berkeley DB version mismatch\n"
39018                                 "\theader: %s\n\tlibrary: %s\n",
39019                                 DB_VERSION_STRING, version);
39020                         return 1;
39021                 }
39022         }
39023 #endif
39024
39025 #if DB_VERSION_MAJOR > 2
39026         db_env_create( NULL, 0 );
39027 #elif DB_VERSION_MAJOR > 1
39028         db_appexit( NULL );
39029 #else
39030         (void) dbopen( NULL, 0, 0, 0, NULL);
39031 #endif
39032
39033   ;
39034   return 0;
39035 }
39036 _ACEOF
39037 rm -f conftest.$ac_objext conftest$ac_exeext
39038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39039   (eval $ac_link) 2>conftest.er1
39040   ac_status=$?
39041   grep -v '^ *+' conftest.er1 >conftest.err
39042   rm -f conftest.er1
39043   cat conftest.err >&5
39044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39045   (exit $ac_status); } &&
39046          { ac_try='test -z "$ac_c_werror_flag"
39047                          || test ! -s conftest.err'
39048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39049   (eval $ac_try) 2>&5
39050   ac_status=$?
39051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39052   (exit $ac_status); }; } &&
39053          { ac_try='test -s conftest$ac_exeext'
39054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39055   (eval $ac_try) 2>&5
39056   ac_status=$?
39057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39058   (exit $ac_status); }; }; then
39059   ol_cv_db_db_4_dot_2=yes
39060 else
39061   echo "$as_me: failed program was:" >&5
39062 sed 's/^/| /' conftest.$ac_ext >&5
39063
39064 ol_cv_db_db_4_dot_2=no
39065 fi
39066 rm -f conftest.err conftest.$ac_objext \
39067       conftest$ac_exeext conftest.$ac_ext
39068
39069         LIBS="$ol_LIBS"
39070
39071 fi
39072 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
39073 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
39074
39075         if test $ol_cv_db_db_4_dot_2 = yes ; then
39076                 ol_cv_lib_db=-ldb-4.2
39077         fi
39078 fi
39079
39080 if test $ol_cv_lib_db = no ; then
39081         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
39082 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
39083 if test "${ol_cv_db_db_4_2+set}" = set; then
39084   echo $ECHO_N "(cached) $ECHO_C" >&6
39085 else
39086
39087         ol_DB_LIB=-ldb-4-2
39088         ol_LIBS=$LIBS
39089         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39090
39091         cat >conftest.$ac_ext <<_ACEOF
39092 /* confdefs.h.  */
39093 _ACEOF
39094 cat confdefs.h >>conftest.$ac_ext
39095 cat >>conftest.$ac_ext <<_ACEOF
39096 /* end confdefs.h.  */
39097
39098 #ifdef HAVE_DB_185_H
39099 # include <db_185.h>
39100 #else
39101 # include <db.h>
39102 #endif
39103
39104 #ifndef DB_VERSION_MAJOR
39105 # define DB_VERSION_MAJOR 1
39106 #endif
39107
39108 #ifndef NULL
39109 #define NULL ((void*)0)
39110 #endif
39111
39112 int
39113 main ()
39114 {
39115
39116 #if DB_VERSION_MAJOR > 1
39117         {
39118                 char *version;
39119                 int major, minor, patch;
39120
39121                 version = db_version( &major, &minor, &patch );
39122
39123                 if( major != DB_VERSION_MAJOR ||
39124                         minor < DB_VERSION_MINOR )
39125                 {
39126                         printf("Berkeley DB version mismatch\n"
39127                                 "\theader: %s\n\tlibrary: %s\n",
39128                                 DB_VERSION_STRING, version);
39129                         return 1;
39130                 }
39131         }
39132 #endif
39133
39134 #if DB_VERSION_MAJOR > 2
39135         db_env_create( NULL, 0 );
39136 #elif DB_VERSION_MAJOR > 1
39137         db_appexit( NULL );
39138 #else
39139         (void) dbopen( NULL, 0, 0, 0, NULL);
39140 #endif
39141
39142   ;
39143   return 0;
39144 }
39145 _ACEOF
39146 rm -f conftest.$ac_objext conftest$ac_exeext
39147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39148   (eval $ac_link) 2>conftest.er1
39149   ac_status=$?
39150   grep -v '^ *+' conftest.er1 >conftest.err
39151   rm -f conftest.er1
39152   cat conftest.err >&5
39153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39154   (exit $ac_status); } &&
39155          { ac_try='test -z "$ac_c_werror_flag"
39156                          || test ! -s conftest.err'
39157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39158   (eval $ac_try) 2>&5
39159   ac_status=$?
39160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39161   (exit $ac_status); }; } &&
39162          { ac_try='test -s conftest$ac_exeext'
39163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39164   (eval $ac_try) 2>&5
39165   ac_status=$?
39166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39167   (exit $ac_status); }; }; then
39168   ol_cv_db_db_4_2=yes
39169 else
39170   echo "$as_me: failed program was:" >&5
39171 sed 's/^/| /' conftest.$ac_ext >&5
39172
39173 ol_cv_db_db_4_2=no
39174 fi
39175 rm -f conftest.err conftest.$ac_objext \
39176       conftest$ac_exeext conftest.$ac_ext
39177
39178         LIBS="$ol_LIBS"
39179
39180 fi
39181 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
39182 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
39183
39184         if test $ol_cv_db_db_4_2 = yes ; then
39185                 ol_cv_lib_db=-ldb-4-2
39186         fi
39187 fi
39188
39189 if test $ol_cv_lib_db = no ; then
39190         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
39191 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
39192 if test "${ol_cv_db_db_4+set}" = set; then
39193   echo $ECHO_N "(cached) $ECHO_C" >&6
39194 else
39195
39196         ol_DB_LIB=-ldb-4
39197         ol_LIBS=$LIBS
39198         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39199
39200         cat >conftest.$ac_ext <<_ACEOF
39201 /* confdefs.h.  */
39202 _ACEOF
39203 cat confdefs.h >>conftest.$ac_ext
39204 cat >>conftest.$ac_ext <<_ACEOF
39205 /* end confdefs.h.  */
39206
39207 #ifdef HAVE_DB_185_H
39208 # include <db_185.h>
39209 #else
39210 # include <db.h>
39211 #endif
39212
39213 #ifndef DB_VERSION_MAJOR
39214 # define DB_VERSION_MAJOR 1
39215 #endif
39216
39217 #ifndef NULL
39218 #define NULL ((void*)0)
39219 #endif
39220
39221 int
39222 main ()
39223 {
39224
39225 #if DB_VERSION_MAJOR > 1
39226         {
39227                 char *version;
39228                 int major, minor, patch;
39229
39230                 version = db_version( &major, &minor, &patch );
39231
39232                 if( major != DB_VERSION_MAJOR ||
39233                         minor < DB_VERSION_MINOR )
39234                 {
39235                         printf("Berkeley DB version mismatch\n"
39236                                 "\theader: %s\n\tlibrary: %s\n",
39237                                 DB_VERSION_STRING, version);
39238                         return 1;
39239                 }
39240         }
39241 #endif
39242
39243 #if DB_VERSION_MAJOR > 2
39244         db_env_create( NULL, 0 );
39245 #elif DB_VERSION_MAJOR > 1
39246         db_appexit( NULL );
39247 #else
39248         (void) dbopen( NULL, 0, 0, 0, NULL);
39249 #endif
39250
39251   ;
39252   return 0;
39253 }
39254 _ACEOF
39255 rm -f conftest.$ac_objext conftest$ac_exeext
39256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39257   (eval $ac_link) 2>conftest.er1
39258   ac_status=$?
39259   grep -v '^ *+' conftest.er1 >conftest.err
39260   rm -f conftest.er1
39261   cat conftest.err >&5
39262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39263   (exit $ac_status); } &&
39264          { ac_try='test -z "$ac_c_werror_flag"
39265                          || test ! -s conftest.err'
39266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39267   (eval $ac_try) 2>&5
39268   ac_status=$?
39269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39270   (exit $ac_status); }; } &&
39271          { ac_try='test -s conftest$ac_exeext'
39272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39273   (eval $ac_try) 2>&5
39274   ac_status=$?
39275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39276   (exit $ac_status); }; }; then
39277   ol_cv_db_db_4=yes
39278 else
39279   echo "$as_me: failed program was:" >&5
39280 sed 's/^/| /' conftest.$ac_ext >&5
39281
39282 ol_cv_db_db_4=no
39283 fi
39284 rm -f conftest.err conftest.$ac_objext \
39285       conftest$ac_exeext conftest.$ac_ext
39286
39287         LIBS="$ol_LIBS"
39288
39289 fi
39290 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
39291 echo "${ECHO_T}$ol_cv_db_db_4" >&6
39292
39293         if test $ol_cv_db_db_4 = yes ; then
39294                 ol_cv_lib_db=-ldb-4
39295         fi
39296 fi
39297
39298 if test $ol_cv_lib_db = no ; then
39299         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
39300 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
39301 if test "${ol_cv_db_db4+set}" = set; then
39302   echo $ECHO_N "(cached) $ECHO_C" >&6
39303 else
39304
39305         ol_DB_LIB=-ldb4
39306         ol_LIBS=$LIBS
39307         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39308
39309         cat >conftest.$ac_ext <<_ACEOF
39310 /* confdefs.h.  */
39311 _ACEOF
39312 cat confdefs.h >>conftest.$ac_ext
39313 cat >>conftest.$ac_ext <<_ACEOF
39314 /* end confdefs.h.  */
39315
39316 #ifdef HAVE_DB_185_H
39317 # include <db_185.h>
39318 #else
39319 # include <db.h>
39320 #endif
39321
39322 #ifndef DB_VERSION_MAJOR
39323 # define DB_VERSION_MAJOR 1
39324 #endif
39325
39326 #ifndef NULL
39327 #define NULL ((void*)0)
39328 #endif
39329
39330 int
39331 main ()
39332 {
39333
39334 #if DB_VERSION_MAJOR > 1
39335         {
39336                 char *version;
39337                 int major, minor, patch;
39338
39339                 version = db_version( &major, &minor, &patch );
39340
39341                 if( major != DB_VERSION_MAJOR ||
39342                         minor < DB_VERSION_MINOR )
39343                 {
39344                         printf("Berkeley DB version mismatch\n"
39345                                 "\theader: %s\n\tlibrary: %s\n",
39346                                 DB_VERSION_STRING, version);
39347                         return 1;
39348                 }
39349         }
39350 #endif
39351
39352 #if DB_VERSION_MAJOR > 2
39353         db_env_create( NULL, 0 );
39354 #elif DB_VERSION_MAJOR > 1
39355         db_appexit( NULL );
39356 #else
39357         (void) dbopen( NULL, 0, 0, 0, NULL);
39358 #endif
39359
39360   ;
39361   return 0;
39362 }
39363 _ACEOF
39364 rm -f conftest.$ac_objext conftest$ac_exeext
39365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39366   (eval $ac_link) 2>conftest.er1
39367   ac_status=$?
39368   grep -v '^ *+' conftest.er1 >conftest.err
39369   rm -f conftest.er1
39370   cat conftest.err >&5
39371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39372   (exit $ac_status); } &&
39373          { ac_try='test -z "$ac_c_werror_flag"
39374                          || test ! -s conftest.err'
39375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39376   (eval $ac_try) 2>&5
39377   ac_status=$?
39378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39379   (exit $ac_status); }; } &&
39380          { ac_try='test -s conftest$ac_exeext'
39381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39382   (eval $ac_try) 2>&5
39383   ac_status=$?
39384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39385   (exit $ac_status); }; }; then
39386   ol_cv_db_db4=yes
39387 else
39388   echo "$as_me: failed program was:" >&5
39389 sed 's/^/| /' conftest.$ac_ext >&5
39390
39391 ol_cv_db_db4=no
39392 fi
39393 rm -f conftest.err conftest.$ac_objext \
39394       conftest$ac_exeext conftest.$ac_ext
39395
39396         LIBS="$ol_LIBS"
39397
39398 fi
39399 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39400 echo "${ECHO_T}$ol_cv_db_db4" >&6
39401
39402         if test $ol_cv_db_db4 = yes ; then
39403                 ol_cv_lib_db=-ldb4
39404         fi
39405 fi
39406
39407 if test $ol_cv_lib_db = no ; then
39408         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39409 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39410 if test "${ol_cv_db_db+set}" = set; then
39411   echo $ECHO_N "(cached) $ECHO_C" >&6
39412 else
39413
39414         ol_DB_LIB=-ldb
39415         ol_LIBS=$LIBS
39416         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39417
39418         cat >conftest.$ac_ext <<_ACEOF
39419 /* confdefs.h.  */
39420 _ACEOF
39421 cat confdefs.h >>conftest.$ac_ext
39422 cat >>conftest.$ac_ext <<_ACEOF
39423 /* end confdefs.h.  */
39424
39425 #ifdef HAVE_DB_185_H
39426 # include <db_185.h>
39427 #else
39428 # include <db.h>
39429 #endif
39430
39431 #ifndef DB_VERSION_MAJOR
39432 # define DB_VERSION_MAJOR 1
39433 #endif
39434
39435 #ifndef NULL
39436 #define NULL ((void*)0)
39437 #endif
39438
39439 int
39440 main ()
39441 {
39442
39443 #if DB_VERSION_MAJOR > 1
39444         {
39445                 char *version;
39446                 int major, minor, patch;
39447
39448                 version = db_version( &major, &minor, &patch );
39449
39450                 if( major != DB_VERSION_MAJOR ||
39451                         minor < DB_VERSION_MINOR )
39452                 {
39453                         printf("Berkeley DB version mismatch\n"
39454                                 "\theader: %s\n\tlibrary: %s\n",
39455                                 DB_VERSION_STRING, version);
39456                         return 1;
39457                 }
39458         }
39459 #endif
39460
39461 #if DB_VERSION_MAJOR > 2
39462         db_env_create( NULL, 0 );
39463 #elif DB_VERSION_MAJOR > 1
39464         db_appexit( NULL );
39465 #else
39466         (void) dbopen( NULL, 0, 0, 0, NULL);
39467 #endif
39468
39469   ;
39470   return 0;
39471 }
39472 _ACEOF
39473 rm -f conftest.$ac_objext conftest$ac_exeext
39474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39475   (eval $ac_link) 2>conftest.er1
39476   ac_status=$?
39477   grep -v '^ *+' conftest.er1 >conftest.err
39478   rm -f conftest.er1
39479   cat conftest.err >&5
39480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39481   (exit $ac_status); } &&
39482          { ac_try='test -z "$ac_c_werror_flag"
39483                          || test ! -s conftest.err'
39484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39485   (eval $ac_try) 2>&5
39486   ac_status=$?
39487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39488   (exit $ac_status); }; } &&
39489          { ac_try='test -s conftest$ac_exeext'
39490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39491   (eval $ac_try) 2>&5
39492   ac_status=$?
39493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39494   (exit $ac_status); }; }; then
39495   ol_cv_db_db=yes
39496 else
39497   echo "$as_me: failed program was:" >&5
39498 sed 's/^/| /' conftest.$ac_ext >&5
39499
39500 ol_cv_db_db=no
39501 fi
39502 rm -f conftest.err conftest.$ac_objext \
39503       conftest$ac_exeext conftest.$ac_ext
39504
39505         LIBS="$ol_LIBS"
39506
39507 fi
39508 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39509 echo "${ECHO_T}$ol_cv_db_db" >&6
39510
39511         if test $ol_cv_db_db = yes ; then
39512                 ol_cv_lib_db=-ldb
39513         fi
39514 fi
39515
39516 if test $ol_cv_lib_db = no ; then
39517         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39518 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39519 if test "${ol_cv_db_db41+set}" = set; then
39520   echo $ECHO_N "(cached) $ECHO_C" >&6
39521 else
39522
39523         ol_DB_LIB=-ldb41
39524         ol_LIBS=$LIBS
39525         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39526
39527         cat >conftest.$ac_ext <<_ACEOF
39528 /* confdefs.h.  */
39529 _ACEOF
39530 cat confdefs.h >>conftest.$ac_ext
39531 cat >>conftest.$ac_ext <<_ACEOF
39532 /* end confdefs.h.  */
39533
39534 #ifdef HAVE_DB_185_H
39535 # include <db_185.h>
39536 #else
39537 # include <db.h>
39538 #endif
39539
39540 #ifndef DB_VERSION_MAJOR
39541 # define DB_VERSION_MAJOR 1
39542 #endif
39543
39544 #ifndef NULL
39545 #define NULL ((void*)0)
39546 #endif
39547
39548 int
39549 main ()
39550 {
39551
39552 #if DB_VERSION_MAJOR > 1
39553         {
39554                 char *version;
39555                 int major, minor, patch;
39556
39557                 version = db_version( &major, &minor, &patch );
39558
39559                 if( major != DB_VERSION_MAJOR ||
39560                         minor < DB_VERSION_MINOR )
39561                 {
39562                         printf("Berkeley DB version mismatch\n"
39563                                 "\theader: %s\n\tlibrary: %s\n",
39564                                 DB_VERSION_STRING, version);
39565                         return 1;
39566                 }
39567         }
39568 #endif
39569
39570 #if DB_VERSION_MAJOR > 2
39571         db_env_create( NULL, 0 );
39572 #elif DB_VERSION_MAJOR > 1
39573         db_appexit( NULL );
39574 #else
39575         (void) dbopen( NULL, 0, 0, 0, NULL);
39576 #endif
39577
39578   ;
39579   return 0;
39580 }
39581 _ACEOF
39582 rm -f conftest.$ac_objext conftest$ac_exeext
39583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39584   (eval $ac_link) 2>conftest.er1
39585   ac_status=$?
39586   grep -v '^ *+' conftest.er1 >conftest.err
39587   rm -f conftest.er1
39588   cat conftest.err >&5
39589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39590   (exit $ac_status); } &&
39591          { ac_try='test -z "$ac_c_werror_flag"
39592                          || test ! -s conftest.err'
39593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39594   (eval $ac_try) 2>&5
39595   ac_status=$?
39596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39597   (exit $ac_status); }; } &&
39598          { ac_try='test -s conftest$ac_exeext'
39599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39600   (eval $ac_try) 2>&5
39601   ac_status=$?
39602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39603   (exit $ac_status); }; }; then
39604   ol_cv_db_db41=yes
39605 else
39606   echo "$as_me: failed program was:" >&5
39607 sed 's/^/| /' conftest.$ac_ext >&5
39608
39609 ol_cv_db_db41=no
39610 fi
39611 rm -f conftest.err conftest.$ac_objext \
39612       conftest$ac_exeext conftest.$ac_ext
39613
39614         LIBS="$ol_LIBS"
39615
39616 fi
39617 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39618 echo "${ECHO_T}$ol_cv_db_db41" >&6
39619
39620         if test $ol_cv_db_db41 = yes ; then
39621                 ol_cv_lib_db=-ldb41
39622         fi
39623 fi
39624
39625 if test $ol_cv_lib_db = no ; then
39626         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39627 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39628 if test "${ol_cv_db_db_41+set}" = set; then
39629   echo $ECHO_N "(cached) $ECHO_C" >&6
39630 else
39631
39632         ol_DB_LIB=-ldb-41
39633         ol_LIBS=$LIBS
39634         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39635
39636         cat >conftest.$ac_ext <<_ACEOF
39637 /* confdefs.h.  */
39638 _ACEOF
39639 cat confdefs.h >>conftest.$ac_ext
39640 cat >>conftest.$ac_ext <<_ACEOF
39641 /* end confdefs.h.  */
39642
39643 #ifdef HAVE_DB_185_H
39644 # include <db_185.h>
39645 #else
39646 # include <db.h>
39647 #endif
39648
39649 #ifndef DB_VERSION_MAJOR
39650 # define DB_VERSION_MAJOR 1
39651 #endif
39652
39653 #ifndef NULL
39654 #define NULL ((void*)0)
39655 #endif
39656
39657 int
39658 main ()
39659 {
39660
39661 #if DB_VERSION_MAJOR > 1
39662         {
39663                 char *version;
39664                 int major, minor, patch;
39665
39666                 version = db_version( &major, &minor, &patch );
39667
39668                 if( major != DB_VERSION_MAJOR ||
39669                         minor < DB_VERSION_MINOR )
39670                 {
39671                         printf("Berkeley DB version mismatch\n"
39672                                 "\theader: %s\n\tlibrary: %s\n",
39673                                 DB_VERSION_STRING, version);
39674                         return 1;
39675                 }
39676         }
39677 #endif
39678
39679 #if DB_VERSION_MAJOR > 2
39680         db_env_create( NULL, 0 );
39681 #elif DB_VERSION_MAJOR > 1
39682         db_appexit( NULL );
39683 #else
39684         (void) dbopen( NULL, 0, 0, 0, NULL);
39685 #endif
39686
39687   ;
39688   return 0;
39689 }
39690 _ACEOF
39691 rm -f conftest.$ac_objext conftest$ac_exeext
39692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39693   (eval $ac_link) 2>conftest.er1
39694   ac_status=$?
39695   grep -v '^ *+' conftest.er1 >conftest.err
39696   rm -f conftest.er1
39697   cat conftest.err >&5
39698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39699   (exit $ac_status); } &&
39700          { ac_try='test -z "$ac_c_werror_flag"
39701                          || test ! -s conftest.err'
39702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39703   (eval $ac_try) 2>&5
39704   ac_status=$?
39705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39706   (exit $ac_status); }; } &&
39707          { ac_try='test -s conftest$ac_exeext'
39708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39709   (eval $ac_try) 2>&5
39710   ac_status=$?
39711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39712   (exit $ac_status); }; }; then
39713   ol_cv_db_db_41=yes
39714 else
39715   echo "$as_me: failed program was:" >&5
39716 sed 's/^/| /' conftest.$ac_ext >&5
39717
39718 ol_cv_db_db_41=no
39719 fi
39720 rm -f conftest.err conftest.$ac_objext \
39721       conftest$ac_exeext conftest.$ac_ext
39722
39723         LIBS="$ol_LIBS"
39724
39725 fi
39726 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39727 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39728
39729         if test $ol_cv_db_db_41 = yes ; then
39730                 ol_cv_lib_db=-ldb-41
39731         fi
39732 fi
39733
39734 if test $ol_cv_lib_db = no ; then
39735         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39736 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39737 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39738   echo $ECHO_N "(cached) $ECHO_C" >&6
39739 else
39740
39741         ol_DB_LIB=-ldb-4.1
39742         ol_LIBS=$LIBS
39743         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39744
39745         cat >conftest.$ac_ext <<_ACEOF
39746 /* confdefs.h.  */
39747 _ACEOF
39748 cat confdefs.h >>conftest.$ac_ext
39749 cat >>conftest.$ac_ext <<_ACEOF
39750 /* end confdefs.h.  */
39751
39752 #ifdef HAVE_DB_185_H
39753 # include <db_185.h>
39754 #else
39755 # include <db.h>
39756 #endif
39757
39758 #ifndef DB_VERSION_MAJOR
39759 # define DB_VERSION_MAJOR 1
39760 #endif
39761
39762 #ifndef NULL
39763 #define NULL ((void*)0)
39764 #endif
39765
39766 int
39767 main ()
39768 {
39769
39770 #if DB_VERSION_MAJOR > 1
39771         {
39772                 char *version;
39773                 int major, minor, patch;
39774
39775                 version = db_version( &major, &minor, &patch );
39776
39777                 if( major != DB_VERSION_MAJOR ||
39778                         minor < DB_VERSION_MINOR )
39779                 {
39780                         printf("Berkeley DB version mismatch\n"
39781                                 "\theader: %s\n\tlibrary: %s\n",
39782                                 DB_VERSION_STRING, version);
39783                         return 1;
39784                 }
39785         }
39786 #endif
39787
39788 #if DB_VERSION_MAJOR > 2
39789         db_env_create( NULL, 0 );
39790 #elif DB_VERSION_MAJOR > 1
39791         db_appexit( NULL );
39792 #else
39793         (void) dbopen( NULL, 0, 0, 0, NULL);
39794 #endif
39795
39796   ;
39797   return 0;
39798 }
39799 _ACEOF
39800 rm -f conftest.$ac_objext conftest$ac_exeext
39801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39802   (eval $ac_link) 2>conftest.er1
39803   ac_status=$?
39804   grep -v '^ *+' conftest.er1 >conftest.err
39805   rm -f conftest.er1
39806   cat conftest.err >&5
39807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39808   (exit $ac_status); } &&
39809          { ac_try='test -z "$ac_c_werror_flag"
39810                          || test ! -s conftest.err'
39811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39812   (eval $ac_try) 2>&5
39813   ac_status=$?
39814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39815   (exit $ac_status); }; } &&
39816          { ac_try='test -s conftest$ac_exeext'
39817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39818   (eval $ac_try) 2>&5
39819   ac_status=$?
39820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39821   (exit $ac_status); }; }; then
39822   ol_cv_db_db_4_dot_1=yes
39823 else
39824   echo "$as_me: failed program was:" >&5
39825 sed 's/^/| /' conftest.$ac_ext >&5
39826
39827 ol_cv_db_db_4_dot_1=no
39828 fi
39829 rm -f conftest.err conftest.$ac_objext \
39830       conftest$ac_exeext conftest.$ac_ext
39831
39832         LIBS="$ol_LIBS"
39833
39834 fi
39835 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39836 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39837
39838         if test $ol_cv_db_db_4_dot_1 = yes ; then
39839                 ol_cv_lib_db=-ldb-4.1
39840         fi
39841 fi
39842
39843 if test $ol_cv_lib_db = no ; then
39844         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39845 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39846 if test "${ol_cv_db_db_4_1+set}" = set; then
39847   echo $ECHO_N "(cached) $ECHO_C" >&6
39848 else
39849
39850         ol_DB_LIB=-ldb-4-1
39851         ol_LIBS=$LIBS
39852         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39853
39854         cat >conftest.$ac_ext <<_ACEOF
39855 /* confdefs.h.  */
39856 _ACEOF
39857 cat confdefs.h >>conftest.$ac_ext
39858 cat >>conftest.$ac_ext <<_ACEOF
39859 /* end confdefs.h.  */
39860
39861 #ifdef HAVE_DB_185_H
39862 # include <db_185.h>
39863 #else
39864 # include <db.h>
39865 #endif
39866
39867 #ifndef DB_VERSION_MAJOR
39868 # define DB_VERSION_MAJOR 1
39869 #endif
39870
39871 #ifndef NULL
39872 #define NULL ((void*)0)
39873 #endif
39874
39875 int
39876 main ()
39877 {
39878
39879 #if DB_VERSION_MAJOR > 1
39880         {
39881                 char *version;
39882                 int major, minor, patch;
39883
39884                 version = db_version( &major, &minor, &patch );
39885
39886                 if( major != DB_VERSION_MAJOR ||
39887                         minor < DB_VERSION_MINOR )
39888                 {
39889                         printf("Berkeley DB version mismatch\n"
39890                                 "\theader: %s\n\tlibrary: %s\n",
39891                                 DB_VERSION_STRING, version);
39892                         return 1;
39893                 }
39894         }
39895 #endif
39896
39897 #if DB_VERSION_MAJOR > 2
39898         db_env_create( NULL, 0 );
39899 #elif DB_VERSION_MAJOR > 1
39900         db_appexit( NULL );
39901 #else
39902         (void) dbopen( NULL, 0, 0, 0, NULL);
39903 #endif
39904
39905   ;
39906   return 0;
39907 }
39908 _ACEOF
39909 rm -f conftest.$ac_objext conftest$ac_exeext
39910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39911   (eval $ac_link) 2>conftest.er1
39912   ac_status=$?
39913   grep -v '^ *+' conftest.er1 >conftest.err
39914   rm -f conftest.er1
39915   cat conftest.err >&5
39916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39917   (exit $ac_status); } &&
39918          { ac_try='test -z "$ac_c_werror_flag"
39919                          || test ! -s conftest.err'
39920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39921   (eval $ac_try) 2>&5
39922   ac_status=$?
39923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39924   (exit $ac_status); }; } &&
39925          { ac_try='test -s conftest$ac_exeext'
39926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39927   (eval $ac_try) 2>&5
39928   ac_status=$?
39929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39930   (exit $ac_status); }; }; then
39931   ol_cv_db_db_4_1=yes
39932 else
39933   echo "$as_me: failed program was:" >&5
39934 sed 's/^/| /' conftest.$ac_ext >&5
39935
39936 ol_cv_db_db_4_1=no
39937 fi
39938 rm -f conftest.err conftest.$ac_objext \
39939       conftest$ac_exeext conftest.$ac_ext
39940
39941         LIBS="$ol_LIBS"
39942
39943 fi
39944 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39945 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39946
39947         if test $ol_cv_db_db_4_1 = yes ; then
39948                 ol_cv_lib_db=-ldb-4-1
39949         fi
39950 fi
39951
39952 if test $ol_cv_lib_db = no ; then
39953         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39954 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39955 if test "${ol_cv_db_db3+set}" = set; then
39956   echo $ECHO_N "(cached) $ECHO_C" >&6
39957 else
39958
39959         ol_DB_LIB=-ldb3
39960         ol_LIBS=$LIBS
39961         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39962
39963         cat >conftest.$ac_ext <<_ACEOF
39964 /* confdefs.h.  */
39965 _ACEOF
39966 cat confdefs.h >>conftest.$ac_ext
39967 cat >>conftest.$ac_ext <<_ACEOF
39968 /* end confdefs.h.  */
39969
39970 #ifdef HAVE_DB_185_H
39971 # include <db_185.h>
39972 #else
39973 # include <db.h>
39974 #endif
39975
39976 #ifndef DB_VERSION_MAJOR
39977 # define DB_VERSION_MAJOR 1
39978 #endif
39979
39980 #ifndef NULL
39981 #define NULL ((void*)0)
39982 #endif
39983
39984 int
39985 main ()
39986 {
39987
39988 #if DB_VERSION_MAJOR > 1
39989         {
39990                 char *version;
39991                 int major, minor, patch;
39992
39993                 version = db_version( &major, &minor, &patch );
39994
39995                 if( major != DB_VERSION_MAJOR ||
39996                         minor < DB_VERSION_MINOR )
39997                 {
39998                         printf("Berkeley DB version mismatch\n"
39999                                 "\theader: %s\n\tlibrary: %s\n",
40000                                 DB_VERSION_STRING, version);
40001                         return 1;
40002                 }
40003         }
40004 #endif
40005
40006 #if DB_VERSION_MAJOR > 2
40007         db_env_create( NULL, 0 );
40008 #elif DB_VERSION_MAJOR > 1
40009         db_appexit( NULL );
40010 #else
40011         (void) dbopen( NULL, 0, 0, 0, NULL);
40012 #endif
40013
40014   ;
40015   return 0;
40016 }
40017 _ACEOF
40018 rm -f conftest.$ac_objext conftest$ac_exeext
40019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40020   (eval $ac_link) 2>conftest.er1
40021   ac_status=$?
40022   grep -v '^ *+' conftest.er1 >conftest.err
40023   rm -f conftest.er1
40024   cat conftest.err >&5
40025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40026   (exit $ac_status); } &&
40027          { ac_try='test -z "$ac_c_werror_flag"
40028                          || test ! -s conftest.err'
40029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40030   (eval $ac_try) 2>&5
40031   ac_status=$?
40032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40033   (exit $ac_status); }; } &&
40034          { ac_try='test -s conftest$ac_exeext'
40035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40036   (eval $ac_try) 2>&5
40037   ac_status=$?
40038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40039   (exit $ac_status); }; }; then
40040   ol_cv_db_db3=yes
40041 else
40042   echo "$as_me: failed program was:" >&5
40043 sed 's/^/| /' conftest.$ac_ext >&5
40044
40045 ol_cv_db_db3=no
40046 fi
40047 rm -f conftest.err conftest.$ac_objext \
40048       conftest$ac_exeext conftest.$ac_ext
40049
40050         LIBS="$ol_LIBS"
40051
40052 fi
40053 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
40054 echo "${ECHO_T}$ol_cv_db_db3" >&6
40055
40056         if test $ol_cv_db_db3 = yes ; then
40057                 ol_cv_lib_db=-ldb3
40058         fi
40059 fi
40060
40061 if test $ol_cv_lib_db = no ; then
40062         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
40063 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
40064 if test "${ol_cv_db_db_3+set}" = set; then
40065   echo $ECHO_N "(cached) $ECHO_C" >&6
40066 else
40067
40068         ol_DB_LIB=-ldb-3
40069         ol_LIBS=$LIBS
40070         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40071
40072         cat >conftest.$ac_ext <<_ACEOF
40073 /* confdefs.h.  */
40074 _ACEOF
40075 cat confdefs.h >>conftest.$ac_ext
40076 cat >>conftest.$ac_ext <<_ACEOF
40077 /* end confdefs.h.  */
40078
40079 #ifdef HAVE_DB_185_H
40080 # include <db_185.h>
40081 #else
40082 # include <db.h>
40083 #endif
40084
40085 #ifndef DB_VERSION_MAJOR
40086 # define DB_VERSION_MAJOR 1
40087 #endif
40088
40089 #ifndef NULL
40090 #define NULL ((void*)0)
40091 #endif
40092
40093 int
40094 main ()
40095 {
40096
40097 #if DB_VERSION_MAJOR > 1
40098         {
40099                 char *version;
40100                 int major, minor, patch;
40101
40102                 version = db_version( &major, &minor, &patch );
40103
40104                 if( major != DB_VERSION_MAJOR ||
40105                         minor < DB_VERSION_MINOR )
40106                 {
40107                         printf("Berkeley DB version mismatch\n"
40108                                 "\theader: %s\n\tlibrary: %s\n",
40109                                 DB_VERSION_STRING, version);
40110                         return 1;
40111                 }
40112         }
40113 #endif
40114
40115 #if DB_VERSION_MAJOR > 2
40116         db_env_create( NULL, 0 );
40117 #elif DB_VERSION_MAJOR > 1
40118         db_appexit( NULL );
40119 #else
40120         (void) dbopen( NULL, 0, 0, 0, NULL);
40121 #endif
40122
40123   ;
40124   return 0;
40125 }
40126 _ACEOF
40127 rm -f conftest.$ac_objext conftest$ac_exeext
40128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40129   (eval $ac_link) 2>conftest.er1
40130   ac_status=$?
40131   grep -v '^ *+' conftest.er1 >conftest.err
40132   rm -f conftest.er1
40133   cat conftest.err >&5
40134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40135   (exit $ac_status); } &&
40136          { ac_try='test -z "$ac_c_werror_flag"
40137                          || test ! -s conftest.err'
40138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40139   (eval $ac_try) 2>&5
40140   ac_status=$?
40141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40142   (exit $ac_status); }; } &&
40143          { ac_try='test -s conftest$ac_exeext'
40144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40145   (eval $ac_try) 2>&5
40146   ac_status=$?
40147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40148   (exit $ac_status); }; }; then
40149   ol_cv_db_db_3=yes
40150 else
40151   echo "$as_me: failed program was:" >&5
40152 sed 's/^/| /' conftest.$ac_ext >&5
40153
40154 ol_cv_db_db_3=no
40155 fi
40156 rm -f conftest.err conftest.$ac_objext \
40157       conftest$ac_exeext conftest.$ac_ext
40158
40159         LIBS="$ol_LIBS"
40160
40161 fi
40162 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
40163 echo "${ECHO_T}$ol_cv_db_db_3" >&6
40164
40165         if test $ol_cv_db_db_3 = yes ; then
40166                 ol_cv_lib_db=-ldb-3
40167         fi
40168 fi
40169
40170 if test $ol_cv_lib_db = no ; then
40171         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
40172 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
40173 if test "${ol_cv_db_db2+set}" = set; then
40174   echo $ECHO_N "(cached) $ECHO_C" >&6
40175 else
40176
40177         ol_DB_LIB=-ldb2
40178         ol_LIBS=$LIBS
40179         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40180
40181         cat >conftest.$ac_ext <<_ACEOF
40182 /* confdefs.h.  */
40183 _ACEOF
40184 cat confdefs.h >>conftest.$ac_ext
40185 cat >>conftest.$ac_ext <<_ACEOF
40186 /* end confdefs.h.  */
40187
40188 #ifdef HAVE_DB_185_H
40189 # include <db_185.h>
40190 #else
40191 # include <db.h>
40192 #endif
40193
40194 #ifndef DB_VERSION_MAJOR
40195 # define DB_VERSION_MAJOR 1
40196 #endif
40197
40198 #ifndef NULL
40199 #define NULL ((void*)0)
40200 #endif
40201
40202 int
40203 main ()
40204 {
40205
40206 #if DB_VERSION_MAJOR > 1
40207         {
40208                 char *version;
40209                 int major, minor, patch;
40210
40211                 version = db_version( &major, &minor, &patch );
40212
40213                 if( major != DB_VERSION_MAJOR ||
40214                         minor < DB_VERSION_MINOR )
40215                 {
40216                         printf("Berkeley DB version mismatch\n"
40217                                 "\theader: %s\n\tlibrary: %s\n",
40218                                 DB_VERSION_STRING, version);
40219                         return 1;
40220                 }
40221         }
40222 #endif
40223
40224 #if DB_VERSION_MAJOR > 2
40225         db_env_create( NULL, 0 );
40226 #elif DB_VERSION_MAJOR > 1
40227         db_appexit( NULL );
40228 #else
40229         (void) dbopen( NULL, 0, 0, 0, NULL);
40230 #endif
40231
40232   ;
40233   return 0;
40234 }
40235 _ACEOF
40236 rm -f conftest.$ac_objext conftest$ac_exeext
40237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40238   (eval $ac_link) 2>conftest.er1
40239   ac_status=$?
40240   grep -v '^ *+' conftest.er1 >conftest.err
40241   rm -f conftest.er1
40242   cat conftest.err >&5
40243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40244   (exit $ac_status); } &&
40245          { ac_try='test -z "$ac_c_werror_flag"
40246                          || test ! -s conftest.err'
40247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40248   (eval $ac_try) 2>&5
40249   ac_status=$?
40250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40251   (exit $ac_status); }; } &&
40252          { ac_try='test -s conftest$ac_exeext'
40253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40254   (eval $ac_try) 2>&5
40255   ac_status=$?
40256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40257   (exit $ac_status); }; }; then
40258   ol_cv_db_db2=yes
40259 else
40260   echo "$as_me: failed program was:" >&5
40261 sed 's/^/| /' conftest.$ac_ext >&5
40262
40263 ol_cv_db_db2=no
40264 fi
40265 rm -f conftest.err conftest.$ac_objext \
40266       conftest$ac_exeext conftest.$ac_ext
40267
40268         LIBS="$ol_LIBS"
40269
40270 fi
40271 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
40272 echo "${ECHO_T}$ol_cv_db_db2" >&6
40273
40274         if test $ol_cv_db_db2 = yes ; then
40275                 ol_cv_lib_db=-ldb2
40276         fi
40277 fi
40278
40279 if test $ol_cv_lib_db = no ; then
40280         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
40281 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
40282 if test "${ol_cv_db_db_2+set}" = set; then
40283   echo $ECHO_N "(cached) $ECHO_C" >&6
40284 else
40285
40286         ol_DB_LIB=-ldb-2
40287         ol_LIBS=$LIBS
40288         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40289
40290         cat >conftest.$ac_ext <<_ACEOF
40291 /* confdefs.h.  */
40292 _ACEOF
40293 cat confdefs.h >>conftest.$ac_ext
40294 cat >>conftest.$ac_ext <<_ACEOF
40295 /* end confdefs.h.  */
40296
40297 #ifdef HAVE_DB_185_H
40298 # include <db_185.h>
40299 #else
40300 # include <db.h>
40301 #endif
40302
40303 #ifndef DB_VERSION_MAJOR
40304 # define DB_VERSION_MAJOR 1
40305 #endif
40306
40307 #ifndef NULL
40308 #define NULL ((void*)0)
40309 #endif
40310
40311 int
40312 main ()
40313 {
40314
40315 #if DB_VERSION_MAJOR > 1
40316         {
40317                 char *version;
40318                 int major, minor, patch;
40319
40320                 version = db_version( &major, &minor, &patch );
40321
40322                 if( major != DB_VERSION_MAJOR ||
40323                         minor < DB_VERSION_MINOR )
40324                 {
40325                         printf("Berkeley DB version mismatch\n"
40326                                 "\theader: %s\n\tlibrary: %s\n",
40327                                 DB_VERSION_STRING, version);
40328                         return 1;
40329                 }
40330         }
40331 #endif
40332
40333 #if DB_VERSION_MAJOR > 2
40334         db_env_create( NULL, 0 );
40335 #elif DB_VERSION_MAJOR > 1
40336         db_appexit( NULL );
40337 #else
40338         (void) dbopen( NULL, 0, 0, 0, NULL);
40339 #endif
40340
40341   ;
40342   return 0;
40343 }
40344 _ACEOF
40345 rm -f conftest.$ac_objext conftest$ac_exeext
40346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40347   (eval $ac_link) 2>conftest.er1
40348   ac_status=$?
40349   grep -v '^ *+' conftest.er1 >conftest.err
40350   rm -f conftest.er1
40351   cat conftest.err >&5
40352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40353   (exit $ac_status); } &&
40354          { ac_try='test -z "$ac_c_werror_flag"
40355                          || test ! -s conftest.err'
40356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40357   (eval $ac_try) 2>&5
40358   ac_status=$?
40359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40360   (exit $ac_status); }; } &&
40361          { ac_try='test -s conftest$ac_exeext'
40362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40363   (eval $ac_try) 2>&5
40364   ac_status=$?
40365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40366   (exit $ac_status); }; }; then
40367   ol_cv_db_db_2=yes
40368 else
40369   echo "$as_me: failed program was:" >&5
40370 sed 's/^/| /' conftest.$ac_ext >&5
40371
40372 ol_cv_db_db_2=no
40373 fi
40374 rm -f conftest.err conftest.$ac_objext \
40375       conftest$ac_exeext conftest.$ac_ext
40376
40377         LIBS="$ol_LIBS"
40378
40379 fi
40380 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40381 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40382
40383         if test $ol_cv_db_db_2 = yes ; then
40384                 ol_cv_lib_db=-ldb-2
40385         fi
40386 fi
40387
40388 if test $ol_cv_lib_db = no ; then
40389         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40390 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40391 if test "${ol_cv_db_db1+set}" = set; then
40392   echo $ECHO_N "(cached) $ECHO_C" >&6
40393 else
40394
40395         ol_DB_LIB=-ldb1
40396         ol_LIBS=$LIBS
40397         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40398
40399         cat >conftest.$ac_ext <<_ACEOF
40400 /* confdefs.h.  */
40401 _ACEOF
40402 cat confdefs.h >>conftest.$ac_ext
40403 cat >>conftest.$ac_ext <<_ACEOF
40404 /* end confdefs.h.  */
40405
40406 #ifdef HAVE_DB_185_H
40407 # include <db_185.h>
40408 #else
40409 # include <db.h>
40410 #endif
40411
40412 #ifndef DB_VERSION_MAJOR
40413 # define DB_VERSION_MAJOR 1
40414 #endif
40415
40416 #ifndef NULL
40417 #define NULL ((void*)0)
40418 #endif
40419
40420 int
40421 main ()
40422 {
40423
40424 #if DB_VERSION_MAJOR > 1
40425         {
40426                 char *version;
40427                 int major, minor, patch;
40428
40429                 version = db_version( &major, &minor, &patch );
40430
40431                 if( major != DB_VERSION_MAJOR ||
40432                         minor < DB_VERSION_MINOR )
40433                 {
40434                         printf("Berkeley DB version mismatch\n"
40435                                 "\theader: %s\n\tlibrary: %s\n",
40436                                 DB_VERSION_STRING, version);
40437                         return 1;
40438                 }
40439         }
40440 #endif
40441
40442 #if DB_VERSION_MAJOR > 2
40443         db_env_create( NULL, 0 );
40444 #elif DB_VERSION_MAJOR > 1
40445         db_appexit( NULL );
40446 #else
40447         (void) dbopen( NULL, 0, 0, 0, NULL);
40448 #endif
40449
40450   ;
40451   return 0;
40452 }
40453 _ACEOF
40454 rm -f conftest.$ac_objext conftest$ac_exeext
40455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40456   (eval $ac_link) 2>conftest.er1
40457   ac_status=$?
40458   grep -v '^ *+' conftest.er1 >conftest.err
40459   rm -f conftest.er1
40460   cat conftest.err >&5
40461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40462   (exit $ac_status); } &&
40463          { ac_try='test -z "$ac_c_werror_flag"
40464                          || test ! -s conftest.err'
40465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40466   (eval $ac_try) 2>&5
40467   ac_status=$?
40468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40469   (exit $ac_status); }; } &&
40470          { ac_try='test -s conftest$ac_exeext'
40471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40472   (eval $ac_try) 2>&5
40473   ac_status=$?
40474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40475   (exit $ac_status); }; }; then
40476   ol_cv_db_db1=yes
40477 else
40478   echo "$as_me: failed program was:" >&5
40479 sed 's/^/| /' conftest.$ac_ext >&5
40480
40481 ol_cv_db_db1=no
40482 fi
40483 rm -f conftest.err conftest.$ac_objext \
40484       conftest$ac_exeext conftest.$ac_ext
40485
40486         LIBS="$ol_LIBS"
40487
40488 fi
40489 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40490 echo "${ECHO_T}$ol_cv_db_db1" >&6
40491
40492         if test $ol_cv_db_db1 = yes ; then
40493                 ol_cv_lib_db=-ldb1
40494         fi
40495 fi
40496
40497 if test $ol_cv_lib_db = no ; then
40498         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40499 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40500 if test "${ol_cv_db_db_1+set}" = set; then
40501   echo $ECHO_N "(cached) $ECHO_C" >&6
40502 else
40503
40504         ol_DB_LIB=-ldb-1
40505         ol_LIBS=$LIBS
40506         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40507
40508         cat >conftest.$ac_ext <<_ACEOF
40509 /* confdefs.h.  */
40510 _ACEOF
40511 cat confdefs.h >>conftest.$ac_ext
40512 cat >>conftest.$ac_ext <<_ACEOF
40513 /* end confdefs.h.  */
40514
40515 #ifdef HAVE_DB_185_H
40516 # include <db_185.h>
40517 #else
40518 # include <db.h>
40519 #endif
40520
40521 #ifndef DB_VERSION_MAJOR
40522 # define DB_VERSION_MAJOR 1
40523 #endif
40524
40525 #ifndef NULL
40526 #define NULL ((void*)0)
40527 #endif
40528
40529 int
40530 main ()
40531 {
40532
40533 #if DB_VERSION_MAJOR > 1
40534         {
40535                 char *version;
40536                 int major, minor, patch;
40537
40538                 version = db_version( &major, &minor, &patch );
40539
40540                 if( major != DB_VERSION_MAJOR ||
40541                         minor < DB_VERSION_MINOR )
40542                 {
40543                         printf("Berkeley DB version mismatch\n"
40544                                 "\theader: %s\n\tlibrary: %s\n",
40545                                 DB_VERSION_STRING, version);
40546                         return 1;
40547                 }
40548         }
40549 #endif
40550
40551 #if DB_VERSION_MAJOR > 2
40552         db_env_create( NULL, 0 );
40553 #elif DB_VERSION_MAJOR > 1
40554         db_appexit( NULL );
40555 #else
40556         (void) dbopen( NULL, 0, 0, 0, NULL);
40557 #endif
40558
40559   ;
40560   return 0;
40561 }
40562 _ACEOF
40563 rm -f conftest.$ac_objext conftest$ac_exeext
40564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40565   (eval $ac_link) 2>conftest.er1
40566   ac_status=$?
40567   grep -v '^ *+' conftest.er1 >conftest.err
40568   rm -f conftest.er1
40569   cat conftest.err >&5
40570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40571   (exit $ac_status); } &&
40572          { ac_try='test -z "$ac_c_werror_flag"
40573                          || test ! -s conftest.err'
40574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40575   (eval $ac_try) 2>&5
40576   ac_status=$?
40577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40578   (exit $ac_status); }; } &&
40579          { ac_try='test -s conftest$ac_exeext'
40580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40581   (eval $ac_try) 2>&5
40582   ac_status=$?
40583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40584   (exit $ac_status); }; }; then
40585   ol_cv_db_db_1=yes
40586 else
40587   echo "$as_me: failed program was:" >&5
40588 sed 's/^/| /' conftest.$ac_ext >&5
40589
40590 ol_cv_db_db_1=no
40591 fi
40592 rm -f conftest.err conftest.$ac_objext \
40593       conftest$ac_exeext conftest.$ac_ext
40594
40595         LIBS="$ol_LIBS"
40596
40597 fi
40598 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40599 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40600
40601         if test $ol_cv_db_db_1 = yes ; then
40602                 ol_cv_lib_db=-ldb-1
40603         fi
40604 fi
40605
40606
40607                 if test "$ol_cv_lib_db" != no ; then
40608                         ol_cv_berkeley_db=yes
40609                 fi
40610         fi
40611 fi
40612
40613         else
40614                 ol_cv_berkeley_db=no
40615
40616 for ac_header in db.h
40617 do
40618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40620   echo "$as_me:$LINENO: checking for $ac_header" >&5
40621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40623   echo $ECHO_N "(cached) $ECHO_C" >&6
40624 fi
40625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40627 else
40628   # Is the header compilable?
40629 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40631 cat >conftest.$ac_ext <<_ACEOF
40632 /* confdefs.h.  */
40633 _ACEOF
40634 cat confdefs.h >>conftest.$ac_ext
40635 cat >>conftest.$ac_ext <<_ACEOF
40636 /* end confdefs.h.  */
40637 $ac_includes_default
40638 #include <$ac_header>
40639 _ACEOF
40640 rm -f conftest.$ac_objext
40641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40642   (eval $ac_compile) 2>conftest.er1
40643   ac_status=$?
40644   grep -v '^ *+' conftest.er1 >conftest.err
40645   rm -f conftest.er1
40646   cat conftest.err >&5
40647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40648   (exit $ac_status); } &&
40649          { ac_try='test -z "$ac_c_werror_flag"
40650                          || test ! -s conftest.err'
40651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40652   (eval $ac_try) 2>&5
40653   ac_status=$?
40654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40655   (exit $ac_status); }; } &&
40656          { ac_try='test -s conftest.$ac_objext'
40657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40658   (eval $ac_try) 2>&5
40659   ac_status=$?
40660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40661   (exit $ac_status); }; }; then
40662   ac_header_compiler=yes
40663 else
40664   echo "$as_me: failed program was:" >&5
40665 sed 's/^/| /' conftest.$ac_ext >&5
40666
40667 ac_header_compiler=no
40668 fi
40669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40670 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40671 echo "${ECHO_T}$ac_header_compiler" >&6
40672
40673 # Is the header present?
40674 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40675 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40676 cat >conftest.$ac_ext <<_ACEOF
40677 /* confdefs.h.  */
40678 _ACEOF
40679 cat confdefs.h >>conftest.$ac_ext
40680 cat >>conftest.$ac_ext <<_ACEOF
40681 /* end confdefs.h.  */
40682 #include <$ac_header>
40683 _ACEOF
40684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40685   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40686   ac_status=$?
40687   grep -v '^ *+' conftest.er1 >conftest.err
40688   rm -f conftest.er1
40689   cat conftest.err >&5
40690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40691   (exit $ac_status); } >/dev/null; then
40692   if test -s conftest.err; then
40693     ac_cpp_err=$ac_c_preproc_warn_flag
40694     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40695   else
40696     ac_cpp_err=
40697   fi
40698 else
40699   ac_cpp_err=yes
40700 fi
40701 if test -z "$ac_cpp_err"; then
40702   ac_header_preproc=yes
40703 else
40704   echo "$as_me: failed program was:" >&5
40705 sed 's/^/| /' conftest.$ac_ext >&5
40706
40707   ac_header_preproc=no
40708 fi
40709 rm -f conftest.err conftest.$ac_ext
40710 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40711 echo "${ECHO_T}$ac_header_preproc" >&6
40712
40713 # So?  What about this header?
40714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40715   yes:no: )
40716     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40717 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40718     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40719 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40720     ac_header_preproc=yes
40721     ;;
40722   no:yes:* )
40723     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40724 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40725     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40726 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40727     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40728 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40729     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40730 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40733     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40734 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40735     (
40736       cat <<\_ASBOX
40737 ## ------------------------------------------ ##
40738 ## Report this to the AC_PACKAGE_NAME lists.  ##
40739 ## ------------------------------------------ ##
40740 _ASBOX
40741     ) |
40742       sed "s/^/$as_me: WARNING:     /" >&2
40743     ;;
40744 esac
40745 echo "$as_me:$LINENO: checking for $ac_header" >&5
40746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40748   echo $ECHO_N "(cached) $ECHO_C" >&6
40749 else
40750   eval "$as_ac_Header=\$ac_header_preproc"
40751 fi
40752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40754
40755 fi
40756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40757   cat >>confdefs.h <<_ACEOF
40758 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40759 _ACEOF
40760
40761 fi
40762
40763 done
40764
40765 if test $ac_cv_header_db_h = yes; then
40766         ol_cv_lib_db=no
40767 if test $ol_cv_lib_db = no ; then
40768         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40769 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40770 if test "${ol_cv_db_none+set}" = set; then
40771   echo $ECHO_N "(cached) $ECHO_C" >&6
40772 else
40773
40774         ol_DB_LIB=
40775         ol_LIBS=$LIBS
40776         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40777
40778         cat >conftest.$ac_ext <<_ACEOF
40779 /* confdefs.h.  */
40780 _ACEOF
40781 cat confdefs.h >>conftest.$ac_ext
40782 cat >>conftest.$ac_ext <<_ACEOF
40783 /* end confdefs.h.  */
40784
40785 #ifdef HAVE_DB_185_H
40786 # include <db_185.h>
40787 #else
40788 # include <db.h>
40789 #endif
40790
40791 #ifndef DB_VERSION_MAJOR
40792 # define DB_VERSION_MAJOR 1
40793 #endif
40794
40795 #ifndef NULL
40796 #define NULL ((void*)0)
40797 #endif
40798
40799 int
40800 main ()
40801 {
40802
40803 #if DB_VERSION_MAJOR > 1
40804         {
40805                 char *version;
40806                 int major, minor, patch;
40807
40808                 version = db_version( &major, &minor, &patch );
40809
40810                 if( major != DB_VERSION_MAJOR ||
40811                         minor < DB_VERSION_MINOR )
40812                 {
40813                         printf("Berkeley DB version mismatch\n"
40814                                 "\theader: %s\n\tlibrary: %s\n",
40815                                 DB_VERSION_STRING, version);
40816                         return 1;
40817                 }
40818         }
40819 #endif
40820
40821 #if DB_VERSION_MAJOR > 2
40822         db_env_create( NULL, 0 );
40823 #elif DB_VERSION_MAJOR > 1
40824         db_appexit( NULL );
40825 #else
40826         (void) dbopen( NULL, 0, 0, 0, NULL);
40827 #endif
40828
40829   ;
40830   return 0;
40831 }
40832 _ACEOF
40833 rm -f conftest.$ac_objext conftest$ac_exeext
40834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40835   (eval $ac_link) 2>conftest.er1
40836   ac_status=$?
40837   grep -v '^ *+' conftest.er1 >conftest.err
40838   rm -f conftest.er1
40839   cat conftest.err >&5
40840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40841   (exit $ac_status); } &&
40842          { ac_try='test -z "$ac_c_werror_flag"
40843                          || test ! -s conftest.err'
40844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40845   (eval $ac_try) 2>&5
40846   ac_status=$?
40847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40848   (exit $ac_status); }; } &&
40849          { ac_try='test -s conftest$ac_exeext'
40850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40851   (eval $ac_try) 2>&5
40852   ac_status=$?
40853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40854   (exit $ac_status); }; }; then
40855   ol_cv_db_none=yes
40856 else
40857   echo "$as_me: failed program was:" >&5
40858 sed 's/^/| /' conftest.$ac_ext >&5
40859
40860 ol_cv_db_none=no
40861 fi
40862 rm -f conftest.err conftest.$ac_objext \
40863       conftest$ac_exeext conftest.$ac_ext
40864
40865         LIBS="$ol_LIBS"
40866
40867 fi
40868 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40869 echo "${ECHO_T}$ol_cv_db_none" >&6
40870
40871         if test $ol_cv_db_none = yes ; then
40872                 ol_cv_lib_db=yes
40873         fi
40874 fi
40875
40876 if test $ol_cv_lib_db = no ; then
40877         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40878 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40879 if test "${ol_cv_db_db43+set}" = set; then
40880   echo $ECHO_N "(cached) $ECHO_C" >&6
40881 else
40882
40883         ol_DB_LIB=-ldb43
40884         ol_LIBS=$LIBS
40885         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40886
40887         cat >conftest.$ac_ext <<_ACEOF
40888 /* confdefs.h.  */
40889 _ACEOF
40890 cat confdefs.h >>conftest.$ac_ext
40891 cat >>conftest.$ac_ext <<_ACEOF
40892 /* end confdefs.h.  */
40893
40894 #ifdef HAVE_DB_185_H
40895 # include <db_185.h>
40896 #else
40897 # include <db.h>
40898 #endif
40899
40900 #ifndef DB_VERSION_MAJOR
40901 # define DB_VERSION_MAJOR 1
40902 #endif
40903
40904 #ifndef NULL
40905 #define NULL ((void*)0)
40906 #endif
40907
40908 int
40909 main ()
40910 {
40911
40912 #if DB_VERSION_MAJOR > 1
40913         {
40914                 char *version;
40915                 int major, minor, patch;
40916
40917                 version = db_version( &major, &minor, &patch );
40918
40919                 if( major != DB_VERSION_MAJOR ||
40920                         minor < DB_VERSION_MINOR )
40921                 {
40922                         printf("Berkeley DB version mismatch\n"
40923                                 "\theader: %s\n\tlibrary: %s\n",
40924                                 DB_VERSION_STRING, version);
40925                         return 1;
40926                 }
40927         }
40928 #endif
40929
40930 #if DB_VERSION_MAJOR > 2
40931         db_env_create( NULL, 0 );
40932 #elif DB_VERSION_MAJOR > 1
40933         db_appexit( NULL );
40934 #else
40935         (void) dbopen( NULL, 0, 0, 0, NULL);
40936 #endif
40937
40938   ;
40939   return 0;
40940 }
40941 _ACEOF
40942 rm -f conftest.$ac_objext conftest$ac_exeext
40943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40944   (eval $ac_link) 2>conftest.er1
40945   ac_status=$?
40946   grep -v '^ *+' conftest.er1 >conftest.err
40947   rm -f conftest.er1
40948   cat conftest.err >&5
40949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40950   (exit $ac_status); } &&
40951          { ac_try='test -z "$ac_c_werror_flag"
40952                          || test ! -s conftest.err'
40953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40954   (eval $ac_try) 2>&5
40955   ac_status=$?
40956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40957   (exit $ac_status); }; } &&
40958          { ac_try='test -s conftest$ac_exeext'
40959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40960   (eval $ac_try) 2>&5
40961   ac_status=$?
40962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40963   (exit $ac_status); }; }; then
40964   ol_cv_db_db43=yes
40965 else
40966   echo "$as_me: failed program was:" >&5
40967 sed 's/^/| /' conftest.$ac_ext >&5
40968
40969 ol_cv_db_db43=no
40970 fi
40971 rm -f conftest.err conftest.$ac_objext \
40972       conftest$ac_exeext conftest.$ac_ext
40973
40974         LIBS="$ol_LIBS"
40975
40976 fi
40977 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40978 echo "${ECHO_T}$ol_cv_db_db43" >&6
40979
40980         if test $ol_cv_db_db43 = yes ; then
40981                 ol_cv_lib_db=-ldb43
40982         fi
40983 fi
40984
40985 if test $ol_cv_lib_db = no ; then
40986         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40987 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40988 if test "${ol_cv_db_db_43+set}" = set; then
40989   echo $ECHO_N "(cached) $ECHO_C" >&6
40990 else
40991
40992         ol_DB_LIB=-ldb-43
40993         ol_LIBS=$LIBS
40994         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40995
40996         cat >conftest.$ac_ext <<_ACEOF
40997 /* confdefs.h.  */
40998 _ACEOF
40999 cat confdefs.h >>conftest.$ac_ext
41000 cat >>conftest.$ac_ext <<_ACEOF
41001 /* end confdefs.h.  */
41002
41003 #ifdef HAVE_DB_185_H
41004 # include <db_185.h>
41005 #else
41006 # include <db.h>
41007 #endif
41008
41009 #ifndef DB_VERSION_MAJOR
41010 # define DB_VERSION_MAJOR 1
41011 #endif
41012
41013 #ifndef NULL
41014 #define NULL ((void*)0)
41015 #endif
41016
41017 int
41018 main ()
41019 {
41020
41021 #if DB_VERSION_MAJOR > 1
41022         {
41023                 char *version;
41024                 int major, minor, patch;
41025
41026                 version = db_version( &major, &minor, &patch );
41027
41028                 if( major != DB_VERSION_MAJOR ||
41029                         minor < DB_VERSION_MINOR )
41030                 {
41031                         printf("Berkeley DB version mismatch\n"
41032                                 "\theader: %s\n\tlibrary: %s\n",
41033                                 DB_VERSION_STRING, version);
41034                         return 1;
41035                 }
41036         }
41037 #endif
41038
41039 #if DB_VERSION_MAJOR > 2
41040         db_env_create( NULL, 0 );
41041 #elif DB_VERSION_MAJOR > 1
41042         db_appexit( NULL );
41043 #else
41044         (void) dbopen( NULL, 0, 0, 0, NULL);
41045 #endif
41046
41047   ;
41048   return 0;
41049 }
41050 _ACEOF
41051 rm -f conftest.$ac_objext conftest$ac_exeext
41052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41053   (eval $ac_link) 2>conftest.er1
41054   ac_status=$?
41055   grep -v '^ *+' conftest.er1 >conftest.err
41056   rm -f conftest.er1
41057   cat conftest.err >&5
41058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41059   (exit $ac_status); } &&
41060          { ac_try='test -z "$ac_c_werror_flag"
41061                          || test ! -s conftest.err'
41062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41063   (eval $ac_try) 2>&5
41064   ac_status=$?
41065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41066   (exit $ac_status); }; } &&
41067          { ac_try='test -s conftest$ac_exeext'
41068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41069   (eval $ac_try) 2>&5
41070   ac_status=$?
41071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41072   (exit $ac_status); }; }; then
41073   ol_cv_db_db_43=yes
41074 else
41075   echo "$as_me: failed program was:" >&5
41076 sed 's/^/| /' conftest.$ac_ext >&5
41077
41078 ol_cv_db_db_43=no
41079 fi
41080 rm -f conftest.err conftest.$ac_objext \
41081       conftest$ac_exeext conftest.$ac_ext
41082
41083         LIBS="$ol_LIBS"
41084
41085 fi
41086 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
41087 echo "${ECHO_T}$ol_cv_db_db_43" >&6
41088
41089         if test $ol_cv_db_db_43 = yes ; then
41090                 ol_cv_lib_db=-ldb-43
41091         fi
41092 fi
41093
41094 if test $ol_cv_lib_db = no ; then
41095         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
41096 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
41097 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
41098   echo $ECHO_N "(cached) $ECHO_C" >&6
41099 else
41100
41101         ol_DB_LIB=-ldb-4.3
41102         ol_LIBS=$LIBS
41103         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41104
41105         cat >conftest.$ac_ext <<_ACEOF
41106 /* confdefs.h.  */
41107 _ACEOF
41108 cat confdefs.h >>conftest.$ac_ext
41109 cat >>conftest.$ac_ext <<_ACEOF
41110 /* end confdefs.h.  */
41111
41112 #ifdef HAVE_DB_185_H
41113 # include <db_185.h>
41114 #else
41115 # include <db.h>
41116 #endif
41117
41118 #ifndef DB_VERSION_MAJOR
41119 # define DB_VERSION_MAJOR 1
41120 #endif
41121
41122 #ifndef NULL
41123 #define NULL ((void*)0)
41124 #endif
41125
41126 int
41127 main ()
41128 {
41129
41130 #if DB_VERSION_MAJOR > 1
41131         {
41132                 char *version;
41133                 int major, minor, patch;
41134
41135                 version = db_version( &major, &minor, &patch );
41136
41137                 if( major != DB_VERSION_MAJOR ||
41138                         minor < DB_VERSION_MINOR )
41139                 {
41140                         printf("Berkeley DB version mismatch\n"
41141                                 "\theader: %s\n\tlibrary: %s\n",
41142                                 DB_VERSION_STRING, version);
41143                         return 1;
41144                 }
41145         }
41146 #endif
41147
41148 #if DB_VERSION_MAJOR > 2
41149         db_env_create( NULL, 0 );
41150 #elif DB_VERSION_MAJOR > 1
41151         db_appexit( NULL );
41152 #else
41153         (void) dbopen( NULL, 0, 0, 0, NULL);
41154 #endif
41155
41156   ;
41157   return 0;
41158 }
41159 _ACEOF
41160 rm -f conftest.$ac_objext conftest$ac_exeext
41161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41162   (eval $ac_link) 2>conftest.er1
41163   ac_status=$?
41164   grep -v '^ *+' conftest.er1 >conftest.err
41165   rm -f conftest.er1
41166   cat conftest.err >&5
41167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41168   (exit $ac_status); } &&
41169          { ac_try='test -z "$ac_c_werror_flag"
41170                          || test ! -s conftest.err'
41171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41172   (eval $ac_try) 2>&5
41173   ac_status=$?
41174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41175   (exit $ac_status); }; } &&
41176          { ac_try='test -s conftest$ac_exeext'
41177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41178   (eval $ac_try) 2>&5
41179   ac_status=$?
41180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41181   (exit $ac_status); }; }; then
41182   ol_cv_db_db_4_dot_3=yes
41183 else
41184   echo "$as_me: failed program was:" >&5
41185 sed 's/^/| /' conftest.$ac_ext >&5
41186
41187 ol_cv_db_db_4_dot_3=no
41188 fi
41189 rm -f conftest.err conftest.$ac_objext \
41190       conftest$ac_exeext conftest.$ac_ext
41191
41192         LIBS="$ol_LIBS"
41193
41194 fi
41195 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
41196 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
41197
41198         if test $ol_cv_db_db_4_dot_3 = yes ; then
41199                 ol_cv_lib_db=-ldb-4.3
41200         fi
41201 fi
41202
41203 if test $ol_cv_lib_db = no ; then
41204         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
41205 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
41206 if test "${ol_cv_db_db_4_3+set}" = set; then
41207   echo $ECHO_N "(cached) $ECHO_C" >&6
41208 else
41209
41210         ol_DB_LIB=-ldb-4-3
41211         ol_LIBS=$LIBS
41212         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41213
41214         cat >conftest.$ac_ext <<_ACEOF
41215 /* confdefs.h.  */
41216 _ACEOF
41217 cat confdefs.h >>conftest.$ac_ext
41218 cat >>conftest.$ac_ext <<_ACEOF
41219 /* end confdefs.h.  */
41220
41221 #ifdef HAVE_DB_185_H
41222 # include <db_185.h>
41223 #else
41224 # include <db.h>
41225 #endif
41226
41227 #ifndef DB_VERSION_MAJOR
41228 # define DB_VERSION_MAJOR 1
41229 #endif
41230
41231 #ifndef NULL
41232 #define NULL ((void*)0)
41233 #endif
41234
41235 int
41236 main ()
41237 {
41238
41239 #if DB_VERSION_MAJOR > 1
41240         {
41241                 char *version;
41242                 int major, minor, patch;
41243
41244                 version = db_version( &major, &minor, &patch );
41245
41246                 if( major != DB_VERSION_MAJOR ||
41247                         minor < DB_VERSION_MINOR )
41248                 {
41249                         printf("Berkeley DB version mismatch\n"
41250                                 "\theader: %s\n\tlibrary: %s\n",
41251                                 DB_VERSION_STRING, version);
41252                         return 1;
41253                 }
41254         }
41255 #endif
41256
41257 #if DB_VERSION_MAJOR > 2
41258         db_env_create( NULL, 0 );
41259 #elif DB_VERSION_MAJOR > 1
41260         db_appexit( NULL );
41261 #else
41262         (void) dbopen( NULL, 0, 0, 0, NULL);
41263 #endif
41264
41265   ;
41266   return 0;
41267 }
41268 _ACEOF
41269 rm -f conftest.$ac_objext conftest$ac_exeext
41270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41271   (eval $ac_link) 2>conftest.er1
41272   ac_status=$?
41273   grep -v '^ *+' conftest.er1 >conftest.err
41274   rm -f conftest.er1
41275   cat conftest.err >&5
41276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41277   (exit $ac_status); } &&
41278          { ac_try='test -z "$ac_c_werror_flag"
41279                          || test ! -s conftest.err'
41280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41281   (eval $ac_try) 2>&5
41282   ac_status=$?
41283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41284   (exit $ac_status); }; } &&
41285          { ac_try='test -s conftest$ac_exeext'
41286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41287   (eval $ac_try) 2>&5
41288   ac_status=$?
41289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41290   (exit $ac_status); }; }; then
41291   ol_cv_db_db_4_3=yes
41292 else
41293   echo "$as_me: failed program was:" >&5
41294 sed 's/^/| /' conftest.$ac_ext >&5
41295
41296 ol_cv_db_db_4_3=no
41297 fi
41298 rm -f conftest.err conftest.$ac_objext \
41299       conftest$ac_exeext conftest.$ac_ext
41300
41301         LIBS="$ol_LIBS"
41302
41303 fi
41304 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
41305 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
41306
41307         if test $ol_cv_db_db_4_3 = yes ; then
41308                 ol_cv_lib_db=-ldb-4-3
41309         fi
41310 fi
41311
41312 if test $ol_cv_lib_db = no ; then
41313         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
41314 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
41315 if test "${ol_cv_db_db42+set}" = set; then
41316   echo $ECHO_N "(cached) $ECHO_C" >&6
41317 else
41318
41319         ol_DB_LIB=-ldb42
41320         ol_LIBS=$LIBS
41321         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41322
41323         cat >conftest.$ac_ext <<_ACEOF
41324 /* confdefs.h.  */
41325 _ACEOF
41326 cat confdefs.h >>conftest.$ac_ext
41327 cat >>conftest.$ac_ext <<_ACEOF
41328 /* end confdefs.h.  */
41329
41330 #ifdef HAVE_DB_185_H
41331 # include <db_185.h>
41332 #else
41333 # include <db.h>
41334 #endif
41335
41336 #ifndef DB_VERSION_MAJOR
41337 # define DB_VERSION_MAJOR 1
41338 #endif
41339
41340 #ifndef NULL
41341 #define NULL ((void*)0)
41342 #endif
41343
41344 int
41345 main ()
41346 {
41347
41348 #if DB_VERSION_MAJOR > 1
41349         {
41350                 char *version;
41351                 int major, minor, patch;
41352
41353                 version = db_version( &major, &minor, &patch );
41354
41355                 if( major != DB_VERSION_MAJOR ||
41356                         minor < DB_VERSION_MINOR )
41357                 {
41358                         printf("Berkeley DB version mismatch\n"
41359                                 "\theader: %s\n\tlibrary: %s\n",
41360                                 DB_VERSION_STRING, version);
41361                         return 1;
41362                 }
41363         }
41364 #endif
41365
41366 #if DB_VERSION_MAJOR > 2
41367         db_env_create( NULL, 0 );
41368 #elif DB_VERSION_MAJOR > 1
41369         db_appexit( NULL );
41370 #else
41371         (void) dbopen( NULL, 0, 0, 0, NULL);
41372 #endif
41373
41374   ;
41375   return 0;
41376 }
41377 _ACEOF
41378 rm -f conftest.$ac_objext conftest$ac_exeext
41379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41380   (eval $ac_link) 2>conftest.er1
41381   ac_status=$?
41382   grep -v '^ *+' conftest.er1 >conftest.err
41383   rm -f conftest.er1
41384   cat conftest.err >&5
41385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41386   (exit $ac_status); } &&
41387          { ac_try='test -z "$ac_c_werror_flag"
41388                          || test ! -s conftest.err'
41389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41390   (eval $ac_try) 2>&5
41391   ac_status=$?
41392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41393   (exit $ac_status); }; } &&
41394          { ac_try='test -s conftest$ac_exeext'
41395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41396   (eval $ac_try) 2>&5
41397   ac_status=$?
41398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41399   (exit $ac_status); }; }; then
41400   ol_cv_db_db42=yes
41401 else
41402   echo "$as_me: failed program was:" >&5
41403 sed 's/^/| /' conftest.$ac_ext >&5
41404
41405 ol_cv_db_db42=no
41406 fi
41407 rm -f conftest.err conftest.$ac_objext \
41408       conftest$ac_exeext conftest.$ac_ext
41409
41410         LIBS="$ol_LIBS"
41411
41412 fi
41413 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41414 echo "${ECHO_T}$ol_cv_db_db42" >&6
41415
41416         if test $ol_cv_db_db42 = yes ; then
41417                 ol_cv_lib_db=-ldb42
41418         fi
41419 fi
41420
41421 if test $ol_cv_lib_db = no ; then
41422         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41423 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41424 if test "${ol_cv_db_db_42+set}" = set; then
41425   echo $ECHO_N "(cached) $ECHO_C" >&6
41426 else
41427
41428         ol_DB_LIB=-ldb-42
41429         ol_LIBS=$LIBS
41430         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41431
41432         cat >conftest.$ac_ext <<_ACEOF
41433 /* confdefs.h.  */
41434 _ACEOF
41435 cat confdefs.h >>conftest.$ac_ext
41436 cat >>conftest.$ac_ext <<_ACEOF
41437 /* end confdefs.h.  */
41438
41439 #ifdef HAVE_DB_185_H
41440 # include <db_185.h>
41441 #else
41442 # include <db.h>
41443 #endif
41444
41445 #ifndef DB_VERSION_MAJOR
41446 # define DB_VERSION_MAJOR 1
41447 #endif
41448
41449 #ifndef NULL
41450 #define NULL ((void*)0)
41451 #endif
41452
41453 int
41454 main ()
41455 {
41456
41457 #if DB_VERSION_MAJOR > 1
41458         {
41459                 char *version;
41460                 int major, minor, patch;
41461
41462                 version = db_version( &major, &minor, &patch );
41463
41464                 if( major != DB_VERSION_MAJOR ||
41465                         minor < DB_VERSION_MINOR )
41466                 {
41467                         printf("Berkeley DB version mismatch\n"
41468                                 "\theader: %s\n\tlibrary: %s\n",
41469                                 DB_VERSION_STRING, version);
41470                         return 1;
41471                 }
41472         }
41473 #endif
41474
41475 #if DB_VERSION_MAJOR > 2
41476         db_env_create( NULL, 0 );
41477 #elif DB_VERSION_MAJOR > 1
41478         db_appexit( NULL );
41479 #else
41480         (void) dbopen( NULL, 0, 0, 0, NULL);
41481 #endif
41482
41483   ;
41484   return 0;
41485 }
41486 _ACEOF
41487 rm -f conftest.$ac_objext conftest$ac_exeext
41488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41489   (eval $ac_link) 2>conftest.er1
41490   ac_status=$?
41491   grep -v '^ *+' conftest.er1 >conftest.err
41492   rm -f conftest.er1
41493   cat conftest.err >&5
41494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41495   (exit $ac_status); } &&
41496          { ac_try='test -z "$ac_c_werror_flag"
41497                          || test ! -s conftest.err'
41498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41499   (eval $ac_try) 2>&5
41500   ac_status=$?
41501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41502   (exit $ac_status); }; } &&
41503          { ac_try='test -s conftest$ac_exeext'
41504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41505   (eval $ac_try) 2>&5
41506   ac_status=$?
41507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41508   (exit $ac_status); }; }; then
41509   ol_cv_db_db_42=yes
41510 else
41511   echo "$as_me: failed program was:" >&5
41512 sed 's/^/| /' conftest.$ac_ext >&5
41513
41514 ol_cv_db_db_42=no
41515 fi
41516 rm -f conftest.err conftest.$ac_objext \
41517       conftest$ac_exeext conftest.$ac_ext
41518
41519         LIBS="$ol_LIBS"
41520
41521 fi
41522 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41523 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41524
41525         if test $ol_cv_db_db_42 = yes ; then
41526                 ol_cv_lib_db=-ldb-42
41527         fi
41528 fi
41529
41530 if test $ol_cv_lib_db = no ; then
41531         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41532 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41533 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41534   echo $ECHO_N "(cached) $ECHO_C" >&6
41535 else
41536
41537         ol_DB_LIB=-ldb-4.2
41538         ol_LIBS=$LIBS
41539         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41540
41541         cat >conftest.$ac_ext <<_ACEOF
41542 /* confdefs.h.  */
41543 _ACEOF
41544 cat confdefs.h >>conftest.$ac_ext
41545 cat >>conftest.$ac_ext <<_ACEOF
41546 /* end confdefs.h.  */
41547
41548 #ifdef HAVE_DB_185_H
41549 # include <db_185.h>
41550 #else
41551 # include <db.h>
41552 #endif
41553
41554 #ifndef DB_VERSION_MAJOR
41555 # define DB_VERSION_MAJOR 1
41556 #endif
41557
41558 #ifndef NULL
41559 #define NULL ((void*)0)
41560 #endif
41561
41562 int
41563 main ()
41564 {
41565
41566 #if DB_VERSION_MAJOR > 1
41567         {
41568                 char *version;
41569                 int major, minor, patch;
41570
41571                 version = db_version( &major, &minor, &patch );
41572
41573                 if( major != DB_VERSION_MAJOR ||
41574                         minor < DB_VERSION_MINOR )
41575                 {
41576                         printf("Berkeley DB version mismatch\n"
41577                                 "\theader: %s\n\tlibrary: %s\n",
41578                                 DB_VERSION_STRING, version);
41579                         return 1;
41580                 }
41581         }
41582 #endif
41583
41584 #if DB_VERSION_MAJOR > 2
41585         db_env_create( NULL, 0 );
41586 #elif DB_VERSION_MAJOR > 1
41587         db_appexit( NULL );
41588 #else
41589         (void) dbopen( NULL, 0, 0, 0, NULL);
41590 #endif
41591
41592   ;
41593   return 0;
41594 }
41595 _ACEOF
41596 rm -f conftest.$ac_objext conftest$ac_exeext
41597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41598   (eval $ac_link) 2>conftest.er1
41599   ac_status=$?
41600   grep -v '^ *+' conftest.er1 >conftest.err
41601   rm -f conftest.er1
41602   cat conftest.err >&5
41603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41604   (exit $ac_status); } &&
41605          { ac_try='test -z "$ac_c_werror_flag"
41606                          || test ! -s conftest.err'
41607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41608   (eval $ac_try) 2>&5
41609   ac_status=$?
41610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41611   (exit $ac_status); }; } &&
41612          { ac_try='test -s conftest$ac_exeext'
41613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41614   (eval $ac_try) 2>&5
41615   ac_status=$?
41616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41617   (exit $ac_status); }; }; then
41618   ol_cv_db_db_4_dot_2=yes
41619 else
41620   echo "$as_me: failed program was:" >&5
41621 sed 's/^/| /' conftest.$ac_ext >&5
41622
41623 ol_cv_db_db_4_dot_2=no
41624 fi
41625 rm -f conftest.err conftest.$ac_objext \
41626       conftest$ac_exeext conftest.$ac_ext
41627
41628         LIBS="$ol_LIBS"
41629
41630 fi
41631 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41632 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41633
41634         if test $ol_cv_db_db_4_dot_2 = yes ; then
41635                 ol_cv_lib_db=-ldb-4.2
41636         fi
41637 fi
41638
41639 if test $ol_cv_lib_db = no ; then
41640         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41641 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41642 if test "${ol_cv_db_db_4_2+set}" = set; then
41643   echo $ECHO_N "(cached) $ECHO_C" >&6
41644 else
41645
41646         ol_DB_LIB=-ldb-4-2
41647         ol_LIBS=$LIBS
41648         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41649
41650         cat >conftest.$ac_ext <<_ACEOF
41651 /* confdefs.h.  */
41652 _ACEOF
41653 cat confdefs.h >>conftest.$ac_ext
41654 cat >>conftest.$ac_ext <<_ACEOF
41655 /* end confdefs.h.  */
41656
41657 #ifdef HAVE_DB_185_H
41658 # include <db_185.h>
41659 #else
41660 # include <db.h>
41661 #endif
41662
41663 #ifndef DB_VERSION_MAJOR
41664 # define DB_VERSION_MAJOR 1
41665 #endif
41666
41667 #ifndef NULL
41668 #define NULL ((void*)0)
41669 #endif
41670
41671 int
41672 main ()
41673 {
41674
41675 #if DB_VERSION_MAJOR > 1
41676         {
41677                 char *version;
41678                 int major, minor, patch;
41679
41680                 version = db_version( &major, &minor, &patch );
41681
41682                 if( major != DB_VERSION_MAJOR ||
41683                         minor < DB_VERSION_MINOR )
41684                 {
41685                         printf("Berkeley DB version mismatch\n"
41686                                 "\theader: %s\n\tlibrary: %s\n",
41687                                 DB_VERSION_STRING, version);
41688                         return 1;
41689                 }
41690         }
41691 #endif
41692
41693 #if DB_VERSION_MAJOR > 2
41694         db_env_create( NULL, 0 );
41695 #elif DB_VERSION_MAJOR > 1
41696         db_appexit( NULL );
41697 #else
41698         (void) dbopen( NULL, 0, 0, 0, NULL);
41699 #endif
41700
41701   ;
41702   return 0;
41703 }
41704 _ACEOF
41705 rm -f conftest.$ac_objext conftest$ac_exeext
41706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41707   (eval $ac_link) 2>conftest.er1
41708   ac_status=$?
41709   grep -v '^ *+' conftest.er1 >conftest.err
41710   rm -f conftest.er1
41711   cat conftest.err >&5
41712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41713   (exit $ac_status); } &&
41714          { ac_try='test -z "$ac_c_werror_flag"
41715                          || test ! -s conftest.err'
41716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41717   (eval $ac_try) 2>&5
41718   ac_status=$?
41719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41720   (exit $ac_status); }; } &&
41721          { ac_try='test -s conftest$ac_exeext'
41722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41723   (eval $ac_try) 2>&5
41724   ac_status=$?
41725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41726   (exit $ac_status); }; }; then
41727   ol_cv_db_db_4_2=yes
41728 else
41729   echo "$as_me: failed program was:" >&5
41730 sed 's/^/| /' conftest.$ac_ext >&5
41731
41732 ol_cv_db_db_4_2=no
41733 fi
41734 rm -f conftest.err conftest.$ac_objext \
41735       conftest$ac_exeext conftest.$ac_ext
41736
41737         LIBS="$ol_LIBS"
41738
41739 fi
41740 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41741 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41742
41743         if test $ol_cv_db_db_4_2 = yes ; then
41744                 ol_cv_lib_db=-ldb-4-2
41745         fi
41746 fi
41747
41748 if test $ol_cv_lib_db = no ; then
41749         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41750 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41751 if test "${ol_cv_db_db_4+set}" = set; then
41752   echo $ECHO_N "(cached) $ECHO_C" >&6
41753 else
41754
41755         ol_DB_LIB=-ldb-4
41756         ol_LIBS=$LIBS
41757         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41758
41759         cat >conftest.$ac_ext <<_ACEOF
41760 /* confdefs.h.  */
41761 _ACEOF
41762 cat confdefs.h >>conftest.$ac_ext
41763 cat >>conftest.$ac_ext <<_ACEOF
41764 /* end confdefs.h.  */
41765
41766 #ifdef HAVE_DB_185_H
41767 # include <db_185.h>
41768 #else
41769 # include <db.h>
41770 #endif
41771
41772 #ifndef DB_VERSION_MAJOR
41773 # define DB_VERSION_MAJOR 1
41774 #endif
41775
41776 #ifndef NULL
41777 #define NULL ((void*)0)
41778 #endif
41779
41780 int
41781 main ()
41782 {
41783
41784 #if DB_VERSION_MAJOR > 1
41785         {
41786                 char *version;
41787                 int major, minor, patch;
41788
41789                 version = db_version( &major, &minor, &patch );
41790
41791                 if( major != DB_VERSION_MAJOR ||
41792                         minor < DB_VERSION_MINOR )
41793                 {
41794                         printf("Berkeley DB version mismatch\n"
41795                                 "\theader: %s\n\tlibrary: %s\n",
41796                                 DB_VERSION_STRING, version);
41797                         return 1;
41798                 }
41799         }
41800 #endif
41801
41802 #if DB_VERSION_MAJOR > 2
41803         db_env_create( NULL, 0 );
41804 #elif DB_VERSION_MAJOR > 1
41805         db_appexit( NULL );
41806 #else
41807         (void) dbopen( NULL, 0, 0, 0, NULL);
41808 #endif
41809
41810   ;
41811   return 0;
41812 }
41813 _ACEOF
41814 rm -f conftest.$ac_objext conftest$ac_exeext
41815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41816   (eval $ac_link) 2>conftest.er1
41817   ac_status=$?
41818   grep -v '^ *+' conftest.er1 >conftest.err
41819   rm -f conftest.er1
41820   cat conftest.err >&5
41821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41822   (exit $ac_status); } &&
41823          { ac_try='test -z "$ac_c_werror_flag"
41824                          || test ! -s conftest.err'
41825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41826   (eval $ac_try) 2>&5
41827   ac_status=$?
41828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41829   (exit $ac_status); }; } &&
41830          { ac_try='test -s conftest$ac_exeext'
41831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41832   (eval $ac_try) 2>&5
41833   ac_status=$?
41834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41835   (exit $ac_status); }; }; then
41836   ol_cv_db_db_4=yes
41837 else
41838   echo "$as_me: failed program was:" >&5
41839 sed 's/^/| /' conftest.$ac_ext >&5
41840
41841 ol_cv_db_db_4=no
41842 fi
41843 rm -f conftest.err conftest.$ac_objext \
41844       conftest$ac_exeext conftest.$ac_ext
41845
41846         LIBS="$ol_LIBS"
41847
41848 fi
41849 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41850 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41851
41852         if test $ol_cv_db_db_4 = yes ; then
41853                 ol_cv_lib_db=-ldb-4
41854         fi
41855 fi
41856
41857 if test $ol_cv_lib_db = no ; then
41858         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41859 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41860 if test "${ol_cv_db_db4+set}" = set; then
41861   echo $ECHO_N "(cached) $ECHO_C" >&6
41862 else
41863
41864         ol_DB_LIB=-ldb4
41865         ol_LIBS=$LIBS
41866         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41867
41868         cat >conftest.$ac_ext <<_ACEOF
41869 /* confdefs.h.  */
41870 _ACEOF
41871 cat confdefs.h >>conftest.$ac_ext
41872 cat >>conftest.$ac_ext <<_ACEOF
41873 /* end confdefs.h.  */
41874
41875 #ifdef HAVE_DB_185_H
41876 # include <db_185.h>
41877 #else
41878 # include <db.h>
41879 #endif
41880
41881 #ifndef DB_VERSION_MAJOR
41882 # define DB_VERSION_MAJOR 1
41883 #endif
41884
41885 #ifndef NULL
41886 #define NULL ((void*)0)
41887 #endif
41888
41889 int
41890 main ()
41891 {
41892
41893 #if DB_VERSION_MAJOR > 1
41894         {
41895                 char *version;
41896                 int major, minor, patch;
41897
41898                 version = db_version( &major, &minor, &patch );
41899
41900                 if( major != DB_VERSION_MAJOR ||
41901                         minor < DB_VERSION_MINOR )
41902                 {
41903                         printf("Berkeley DB version mismatch\n"
41904                                 "\theader: %s\n\tlibrary: %s\n",
41905                                 DB_VERSION_STRING, version);
41906                         return 1;
41907                 }
41908         }
41909 #endif
41910
41911 #if DB_VERSION_MAJOR > 2
41912         db_env_create( NULL, 0 );
41913 #elif DB_VERSION_MAJOR > 1
41914         db_appexit( NULL );
41915 #else
41916         (void) dbopen( NULL, 0, 0, 0, NULL);
41917 #endif
41918
41919   ;
41920   return 0;
41921 }
41922 _ACEOF
41923 rm -f conftest.$ac_objext conftest$ac_exeext
41924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41925   (eval $ac_link) 2>conftest.er1
41926   ac_status=$?
41927   grep -v '^ *+' conftest.er1 >conftest.err
41928   rm -f conftest.er1
41929   cat conftest.err >&5
41930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41931   (exit $ac_status); } &&
41932          { ac_try='test -z "$ac_c_werror_flag"
41933                          || test ! -s conftest.err'
41934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41935   (eval $ac_try) 2>&5
41936   ac_status=$?
41937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41938   (exit $ac_status); }; } &&
41939          { ac_try='test -s conftest$ac_exeext'
41940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41941   (eval $ac_try) 2>&5
41942   ac_status=$?
41943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41944   (exit $ac_status); }; }; then
41945   ol_cv_db_db4=yes
41946 else
41947   echo "$as_me: failed program was:" >&5
41948 sed 's/^/| /' conftest.$ac_ext >&5
41949
41950 ol_cv_db_db4=no
41951 fi
41952 rm -f conftest.err conftest.$ac_objext \
41953       conftest$ac_exeext conftest.$ac_ext
41954
41955         LIBS="$ol_LIBS"
41956
41957 fi
41958 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41959 echo "${ECHO_T}$ol_cv_db_db4" >&6
41960
41961         if test $ol_cv_db_db4 = yes ; then
41962                 ol_cv_lib_db=-ldb4
41963         fi
41964 fi
41965
41966 if test $ol_cv_lib_db = no ; then
41967         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41968 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41969 if test "${ol_cv_db_db+set}" = set; then
41970   echo $ECHO_N "(cached) $ECHO_C" >&6
41971 else
41972
41973         ol_DB_LIB=-ldb
41974         ol_LIBS=$LIBS
41975         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41976
41977         cat >conftest.$ac_ext <<_ACEOF
41978 /* confdefs.h.  */
41979 _ACEOF
41980 cat confdefs.h >>conftest.$ac_ext
41981 cat >>conftest.$ac_ext <<_ACEOF
41982 /* end confdefs.h.  */
41983
41984 #ifdef HAVE_DB_185_H
41985 # include <db_185.h>
41986 #else
41987 # include <db.h>
41988 #endif
41989
41990 #ifndef DB_VERSION_MAJOR
41991 # define DB_VERSION_MAJOR 1
41992 #endif
41993
41994 #ifndef NULL
41995 #define NULL ((void*)0)
41996 #endif
41997
41998 int
41999 main ()
42000 {
42001
42002 #if DB_VERSION_MAJOR > 1
42003         {
42004                 char *version;
42005                 int major, minor, patch;
42006
42007                 version = db_version( &major, &minor, &patch );
42008
42009                 if( major != DB_VERSION_MAJOR ||
42010                         minor < DB_VERSION_MINOR )
42011                 {
42012                         printf("Berkeley DB version mismatch\n"
42013                                 "\theader: %s\n\tlibrary: %s\n",
42014                                 DB_VERSION_STRING, version);
42015                         return 1;
42016                 }
42017         }
42018 #endif
42019
42020 #if DB_VERSION_MAJOR > 2
42021         db_env_create( NULL, 0 );
42022 #elif DB_VERSION_MAJOR > 1
42023         db_appexit( NULL );
42024 #else
42025         (void) dbopen( NULL, 0, 0, 0, NULL);
42026 #endif
42027
42028   ;
42029   return 0;
42030 }
42031 _ACEOF
42032 rm -f conftest.$ac_objext conftest$ac_exeext
42033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42034   (eval $ac_link) 2>conftest.er1
42035   ac_status=$?
42036   grep -v '^ *+' conftest.er1 >conftest.err
42037   rm -f conftest.er1
42038   cat conftest.err >&5
42039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42040   (exit $ac_status); } &&
42041          { ac_try='test -z "$ac_c_werror_flag"
42042                          || test ! -s conftest.err'
42043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42044   (eval $ac_try) 2>&5
42045   ac_status=$?
42046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42047   (exit $ac_status); }; } &&
42048          { ac_try='test -s conftest$ac_exeext'
42049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42050   (eval $ac_try) 2>&5
42051   ac_status=$?
42052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42053   (exit $ac_status); }; }; then
42054   ol_cv_db_db=yes
42055 else
42056   echo "$as_me: failed program was:" >&5
42057 sed 's/^/| /' conftest.$ac_ext >&5
42058
42059 ol_cv_db_db=no
42060 fi
42061 rm -f conftest.err conftest.$ac_objext \
42062       conftest$ac_exeext conftest.$ac_ext
42063
42064         LIBS="$ol_LIBS"
42065
42066 fi
42067 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
42068 echo "${ECHO_T}$ol_cv_db_db" >&6
42069
42070         if test $ol_cv_db_db = yes ; then
42071                 ol_cv_lib_db=-ldb
42072         fi
42073 fi
42074
42075 if test $ol_cv_lib_db = no ; then
42076         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
42077 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
42078 if test "${ol_cv_db_db41+set}" = set; then
42079   echo $ECHO_N "(cached) $ECHO_C" >&6
42080 else
42081
42082         ol_DB_LIB=-ldb41
42083         ol_LIBS=$LIBS
42084         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42085
42086         cat >conftest.$ac_ext <<_ACEOF
42087 /* confdefs.h.  */
42088 _ACEOF
42089 cat confdefs.h >>conftest.$ac_ext
42090 cat >>conftest.$ac_ext <<_ACEOF
42091 /* end confdefs.h.  */
42092
42093 #ifdef HAVE_DB_185_H
42094 # include <db_185.h>
42095 #else
42096 # include <db.h>
42097 #endif
42098
42099 #ifndef DB_VERSION_MAJOR
42100 # define DB_VERSION_MAJOR 1
42101 #endif
42102
42103 #ifndef NULL
42104 #define NULL ((void*)0)
42105 #endif
42106
42107 int
42108 main ()
42109 {
42110
42111 #if DB_VERSION_MAJOR > 1
42112         {
42113                 char *version;
42114                 int major, minor, patch;
42115
42116                 version = db_version( &major, &minor, &patch );
42117
42118                 if( major != DB_VERSION_MAJOR ||
42119                         minor < DB_VERSION_MINOR )
42120                 {
42121                         printf("Berkeley DB version mismatch\n"
42122                                 "\theader: %s\n\tlibrary: %s\n",
42123                                 DB_VERSION_STRING, version);
42124                         return 1;
42125                 }
42126         }
42127 #endif
42128
42129 #if DB_VERSION_MAJOR > 2
42130         db_env_create( NULL, 0 );
42131 #elif DB_VERSION_MAJOR > 1
42132         db_appexit( NULL );
42133 #else
42134         (void) dbopen( NULL, 0, 0, 0, NULL);
42135 #endif
42136
42137   ;
42138   return 0;
42139 }
42140 _ACEOF
42141 rm -f conftest.$ac_objext conftest$ac_exeext
42142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42143   (eval $ac_link) 2>conftest.er1
42144   ac_status=$?
42145   grep -v '^ *+' conftest.er1 >conftest.err
42146   rm -f conftest.er1
42147   cat conftest.err >&5
42148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42149   (exit $ac_status); } &&
42150          { ac_try='test -z "$ac_c_werror_flag"
42151                          || test ! -s conftest.err'
42152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42153   (eval $ac_try) 2>&5
42154   ac_status=$?
42155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42156   (exit $ac_status); }; } &&
42157          { ac_try='test -s conftest$ac_exeext'
42158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42159   (eval $ac_try) 2>&5
42160   ac_status=$?
42161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42162   (exit $ac_status); }; }; then
42163   ol_cv_db_db41=yes
42164 else
42165   echo "$as_me: failed program was:" >&5
42166 sed 's/^/| /' conftest.$ac_ext >&5
42167
42168 ol_cv_db_db41=no
42169 fi
42170 rm -f conftest.err conftest.$ac_objext \
42171       conftest$ac_exeext conftest.$ac_ext
42172
42173         LIBS="$ol_LIBS"
42174
42175 fi
42176 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
42177 echo "${ECHO_T}$ol_cv_db_db41" >&6
42178
42179         if test $ol_cv_db_db41 = yes ; then
42180                 ol_cv_lib_db=-ldb41
42181         fi
42182 fi
42183
42184 if test $ol_cv_lib_db = no ; then
42185         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
42186 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
42187 if test "${ol_cv_db_db_41+set}" = set; then
42188   echo $ECHO_N "(cached) $ECHO_C" >&6
42189 else
42190
42191         ol_DB_LIB=-ldb-41
42192         ol_LIBS=$LIBS
42193         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42194
42195         cat >conftest.$ac_ext <<_ACEOF
42196 /* confdefs.h.  */
42197 _ACEOF
42198 cat confdefs.h >>conftest.$ac_ext
42199 cat >>conftest.$ac_ext <<_ACEOF
42200 /* end confdefs.h.  */
42201
42202 #ifdef HAVE_DB_185_H
42203 # include <db_185.h>
42204 #else
42205 # include <db.h>
42206 #endif
42207
42208 #ifndef DB_VERSION_MAJOR
42209 # define DB_VERSION_MAJOR 1
42210 #endif
42211
42212 #ifndef NULL
42213 #define NULL ((void*)0)
42214 #endif
42215
42216 int
42217 main ()
42218 {
42219
42220 #if DB_VERSION_MAJOR > 1
42221         {
42222                 char *version;
42223                 int major, minor, patch;
42224
42225                 version = db_version( &major, &minor, &patch );
42226
42227                 if( major != DB_VERSION_MAJOR ||
42228                         minor < DB_VERSION_MINOR )
42229                 {
42230                         printf("Berkeley DB version mismatch\n"
42231                                 "\theader: %s\n\tlibrary: %s\n",
42232                                 DB_VERSION_STRING, version);
42233                         return 1;
42234                 }
42235         }
42236 #endif
42237
42238 #if DB_VERSION_MAJOR > 2
42239         db_env_create( NULL, 0 );
42240 #elif DB_VERSION_MAJOR > 1
42241         db_appexit( NULL );
42242 #else
42243         (void) dbopen( NULL, 0, 0, 0, NULL);
42244 #endif
42245
42246   ;
42247   return 0;
42248 }
42249 _ACEOF
42250 rm -f conftest.$ac_objext conftest$ac_exeext
42251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42252   (eval $ac_link) 2>conftest.er1
42253   ac_status=$?
42254   grep -v '^ *+' conftest.er1 >conftest.err
42255   rm -f conftest.er1
42256   cat conftest.err >&5
42257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42258   (exit $ac_status); } &&
42259          { ac_try='test -z "$ac_c_werror_flag"
42260                          || test ! -s conftest.err'
42261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42262   (eval $ac_try) 2>&5
42263   ac_status=$?
42264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42265   (exit $ac_status); }; } &&
42266          { ac_try='test -s conftest$ac_exeext'
42267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42268   (eval $ac_try) 2>&5
42269   ac_status=$?
42270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42271   (exit $ac_status); }; }; then
42272   ol_cv_db_db_41=yes
42273 else
42274   echo "$as_me: failed program was:" >&5
42275 sed 's/^/| /' conftest.$ac_ext >&5
42276
42277 ol_cv_db_db_41=no
42278 fi
42279 rm -f conftest.err conftest.$ac_objext \
42280       conftest$ac_exeext conftest.$ac_ext
42281
42282         LIBS="$ol_LIBS"
42283
42284 fi
42285 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
42286 echo "${ECHO_T}$ol_cv_db_db_41" >&6
42287
42288         if test $ol_cv_db_db_41 = yes ; then
42289                 ol_cv_lib_db=-ldb-41
42290         fi
42291 fi
42292
42293 if test $ol_cv_lib_db = no ; then
42294         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
42295 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
42296 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
42297   echo $ECHO_N "(cached) $ECHO_C" >&6
42298 else
42299
42300         ol_DB_LIB=-ldb-4.1
42301         ol_LIBS=$LIBS
42302         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42303
42304         cat >conftest.$ac_ext <<_ACEOF
42305 /* confdefs.h.  */
42306 _ACEOF
42307 cat confdefs.h >>conftest.$ac_ext
42308 cat >>conftest.$ac_ext <<_ACEOF
42309 /* end confdefs.h.  */
42310
42311 #ifdef HAVE_DB_185_H
42312 # include <db_185.h>
42313 #else
42314 # include <db.h>
42315 #endif
42316
42317 #ifndef DB_VERSION_MAJOR
42318 # define DB_VERSION_MAJOR 1
42319 #endif
42320
42321 #ifndef NULL
42322 #define NULL ((void*)0)
42323 #endif
42324
42325 int
42326 main ()
42327 {
42328
42329 #if DB_VERSION_MAJOR > 1
42330         {
42331                 char *version;
42332                 int major, minor, patch;
42333
42334                 version = db_version( &major, &minor, &patch );
42335
42336                 if( major != DB_VERSION_MAJOR ||
42337                         minor < DB_VERSION_MINOR )
42338                 {
42339                         printf("Berkeley DB version mismatch\n"
42340                                 "\theader: %s\n\tlibrary: %s\n",
42341                                 DB_VERSION_STRING, version);
42342                         return 1;
42343                 }
42344         }
42345 #endif
42346
42347 #if DB_VERSION_MAJOR > 2
42348         db_env_create( NULL, 0 );
42349 #elif DB_VERSION_MAJOR > 1
42350         db_appexit( NULL );
42351 #else
42352         (void) dbopen( NULL, 0, 0, 0, NULL);
42353 #endif
42354
42355   ;
42356   return 0;
42357 }
42358 _ACEOF
42359 rm -f conftest.$ac_objext conftest$ac_exeext
42360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42361   (eval $ac_link) 2>conftest.er1
42362   ac_status=$?
42363   grep -v '^ *+' conftest.er1 >conftest.err
42364   rm -f conftest.er1
42365   cat conftest.err >&5
42366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42367   (exit $ac_status); } &&
42368          { ac_try='test -z "$ac_c_werror_flag"
42369                          || test ! -s conftest.err'
42370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42371   (eval $ac_try) 2>&5
42372   ac_status=$?
42373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42374   (exit $ac_status); }; } &&
42375          { ac_try='test -s conftest$ac_exeext'
42376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42377   (eval $ac_try) 2>&5
42378   ac_status=$?
42379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42380   (exit $ac_status); }; }; then
42381   ol_cv_db_db_4_dot_1=yes
42382 else
42383   echo "$as_me: failed program was:" >&5
42384 sed 's/^/| /' conftest.$ac_ext >&5
42385
42386 ol_cv_db_db_4_dot_1=no
42387 fi
42388 rm -f conftest.err conftest.$ac_objext \
42389       conftest$ac_exeext conftest.$ac_ext
42390
42391         LIBS="$ol_LIBS"
42392
42393 fi
42394 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42395 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42396
42397         if test $ol_cv_db_db_4_dot_1 = yes ; then
42398                 ol_cv_lib_db=-ldb-4.1
42399         fi
42400 fi
42401
42402 if test $ol_cv_lib_db = no ; then
42403         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42404 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42405 if test "${ol_cv_db_db_4_1+set}" = set; then
42406   echo $ECHO_N "(cached) $ECHO_C" >&6
42407 else
42408
42409         ol_DB_LIB=-ldb-4-1
42410         ol_LIBS=$LIBS
42411         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42412
42413         cat >conftest.$ac_ext <<_ACEOF
42414 /* confdefs.h.  */
42415 _ACEOF
42416 cat confdefs.h >>conftest.$ac_ext
42417 cat >>conftest.$ac_ext <<_ACEOF
42418 /* end confdefs.h.  */
42419
42420 #ifdef HAVE_DB_185_H
42421 # include <db_185.h>
42422 #else
42423 # include <db.h>
42424 #endif
42425
42426 #ifndef DB_VERSION_MAJOR
42427 # define DB_VERSION_MAJOR 1
42428 #endif
42429
42430 #ifndef NULL
42431 #define NULL ((void*)0)
42432 #endif
42433
42434 int
42435 main ()
42436 {
42437
42438 #if DB_VERSION_MAJOR > 1
42439         {
42440                 char *version;
42441                 int major, minor, patch;
42442
42443                 version = db_version( &major, &minor, &patch );
42444
42445                 if( major != DB_VERSION_MAJOR ||
42446                         minor < DB_VERSION_MINOR )
42447                 {
42448                         printf("Berkeley DB version mismatch\n"
42449                                 "\theader: %s\n\tlibrary: %s\n",
42450                                 DB_VERSION_STRING, version);
42451                         return 1;
42452                 }
42453         }
42454 #endif
42455
42456 #if DB_VERSION_MAJOR > 2
42457         db_env_create( NULL, 0 );
42458 #elif DB_VERSION_MAJOR > 1
42459         db_appexit( NULL );
42460 #else
42461         (void) dbopen( NULL, 0, 0, 0, NULL);
42462 #endif
42463
42464   ;
42465   return 0;
42466 }
42467 _ACEOF
42468 rm -f conftest.$ac_objext conftest$ac_exeext
42469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42470   (eval $ac_link) 2>conftest.er1
42471   ac_status=$?
42472   grep -v '^ *+' conftest.er1 >conftest.err
42473   rm -f conftest.er1
42474   cat conftest.err >&5
42475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42476   (exit $ac_status); } &&
42477          { ac_try='test -z "$ac_c_werror_flag"
42478                          || test ! -s conftest.err'
42479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42480   (eval $ac_try) 2>&5
42481   ac_status=$?
42482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42483   (exit $ac_status); }; } &&
42484          { ac_try='test -s conftest$ac_exeext'
42485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42486   (eval $ac_try) 2>&5
42487   ac_status=$?
42488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42489   (exit $ac_status); }; }; then
42490   ol_cv_db_db_4_1=yes
42491 else
42492   echo "$as_me: failed program was:" >&5
42493 sed 's/^/| /' conftest.$ac_ext >&5
42494
42495 ol_cv_db_db_4_1=no
42496 fi
42497 rm -f conftest.err conftest.$ac_objext \
42498       conftest$ac_exeext conftest.$ac_ext
42499
42500         LIBS="$ol_LIBS"
42501
42502 fi
42503 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42504 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42505
42506         if test $ol_cv_db_db_4_1 = yes ; then
42507                 ol_cv_lib_db=-ldb-4-1
42508         fi
42509 fi
42510
42511 if test $ol_cv_lib_db = no ; then
42512         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42513 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42514 if test "${ol_cv_db_db3+set}" = set; then
42515   echo $ECHO_N "(cached) $ECHO_C" >&6
42516 else
42517
42518         ol_DB_LIB=-ldb3
42519         ol_LIBS=$LIBS
42520         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42521
42522         cat >conftest.$ac_ext <<_ACEOF
42523 /* confdefs.h.  */
42524 _ACEOF
42525 cat confdefs.h >>conftest.$ac_ext
42526 cat >>conftest.$ac_ext <<_ACEOF
42527 /* end confdefs.h.  */
42528
42529 #ifdef HAVE_DB_185_H
42530 # include <db_185.h>
42531 #else
42532 # include <db.h>
42533 #endif
42534
42535 #ifndef DB_VERSION_MAJOR
42536 # define DB_VERSION_MAJOR 1
42537 #endif
42538
42539 #ifndef NULL
42540 #define NULL ((void*)0)
42541 #endif
42542
42543 int
42544 main ()
42545 {
42546
42547 #if DB_VERSION_MAJOR > 1
42548         {
42549                 char *version;
42550                 int major, minor, patch;
42551
42552                 version = db_version( &major, &minor, &patch );
42553
42554                 if( major != DB_VERSION_MAJOR ||
42555                         minor < DB_VERSION_MINOR )
42556                 {
42557                         printf("Berkeley DB version mismatch\n"
42558                                 "\theader: %s\n\tlibrary: %s\n",
42559                                 DB_VERSION_STRING, version);
42560                         return 1;
42561                 }
42562         }
42563 #endif
42564
42565 #if DB_VERSION_MAJOR > 2
42566         db_env_create( NULL, 0 );
42567 #elif DB_VERSION_MAJOR > 1
42568         db_appexit( NULL );
42569 #else
42570         (void) dbopen( NULL, 0, 0, 0, NULL);
42571 #endif
42572
42573   ;
42574   return 0;
42575 }
42576 _ACEOF
42577 rm -f conftest.$ac_objext conftest$ac_exeext
42578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42579   (eval $ac_link) 2>conftest.er1
42580   ac_status=$?
42581   grep -v '^ *+' conftest.er1 >conftest.err
42582   rm -f conftest.er1
42583   cat conftest.err >&5
42584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42585   (exit $ac_status); } &&
42586          { ac_try='test -z "$ac_c_werror_flag"
42587                          || test ! -s conftest.err'
42588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42589   (eval $ac_try) 2>&5
42590   ac_status=$?
42591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42592   (exit $ac_status); }; } &&
42593          { ac_try='test -s conftest$ac_exeext'
42594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42595   (eval $ac_try) 2>&5
42596   ac_status=$?
42597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42598   (exit $ac_status); }; }; then
42599   ol_cv_db_db3=yes
42600 else
42601   echo "$as_me: failed program was:" >&5
42602 sed 's/^/| /' conftest.$ac_ext >&5
42603
42604 ol_cv_db_db3=no
42605 fi
42606 rm -f conftest.err conftest.$ac_objext \
42607       conftest$ac_exeext conftest.$ac_ext
42608
42609         LIBS="$ol_LIBS"
42610
42611 fi
42612 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42613 echo "${ECHO_T}$ol_cv_db_db3" >&6
42614
42615         if test $ol_cv_db_db3 = yes ; then
42616                 ol_cv_lib_db=-ldb3
42617         fi
42618 fi
42619
42620 if test $ol_cv_lib_db = no ; then
42621         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42622 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42623 if test "${ol_cv_db_db_3+set}" = set; then
42624   echo $ECHO_N "(cached) $ECHO_C" >&6
42625 else
42626
42627         ol_DB_LIB=-ldb-3
42628         ol_LIBS=$LIBS
42629         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42630
42631         cat >conftest.$ac_ext <<_ACEOF
42632 /* confdefs.h.  */
42633 _ACEOF
42634 cat confdefs.h >>conftest.$ac_ext
42635 cat >>conftest.$ac_ext <<_ACEOF
42636 /* end confdefs.h.  */
42637
42638 #ifdef HAVE_DB_185_H
42639 # include <db_185.h>
42640 #else
42641 # include <db.h>
42642 #endif
42643
42644 #ifndef DB_VERSION_MAJOR
42645 # define DB_VERSION_MAJOR 1
42646 #endif
42647
42648 #ifndef NULL
42649 #define NULL ((void*)0)
42650 #endif
42651
42652 int
42653 main ()
42654 {
42655
42656 #if DB_VERSION_MAJOR > 1
42657         {
42658                 char *version;
42659                 int major, minor, patch;
42660
42661                 version = db_version( &major, &minor, &patch );
42662
42663                 if( major != DB_VERSION_MAJOR ||
42664                         minor < DB_VERSION_MINOR )
42665                 {
42666                         printf("Berkeley DB version mismatch\n"
42667                                 "\theader: %s\n\tlibrary: %s\n",
42668                                 DB_VERSION_STRING, version);
42669                         return 1;
42670                 }
42671         }
42672 #endif
42673
42674 #if DB_VERSION_MAJOR > 2
42675         db_env_create( NULL, 0 );
42676 #elif DB_VERSION_MAJOR > 1
42677         db_appexit( NULL );
42678 #else
42679         (void) dbopen( NULL, 0, 0, 0, NULL);
42680 #endif
42681
42682   ;
42683   return 0;
42684 }
42685 _ACEOF
42686 rm -f conftest.$ac_objext conftest$ac_exeext
42687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42688   (eval $ac_link) 2>conftest.er1
42689   ac_status=$?
42690   grep -v '^ *+' conftest.er1 >conftest.err
42691   rm -f conftest.er1
42692   cat conftest.err >&5
42693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42694   (exit $ac_status); } &&
42695          { ac_try='test -z "$ac_c_werror_flag"
42696                          || test ! -s conftest.err'
42697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42698   (eval $ac_try) 2>&5
42699   ac_status=$?
42700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42701   (exit $ac_status); }; } &&
42702          { ac_try='test -s conftest$ac_exeext'
42703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42704   (eval $ac_try) 2>&5
42705   ac_status=$?
42706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42707   (exit $ac_status); }; }; then
42708   ol_cv_db_db_3=yes
42709 else
42710   echo "$as_me: failed program was:" >&5
42711 sed 's/^/| /' conftest.$ac_ext >&5
42712
42713 ol_cv_db_db_3=no
42714 fi
42715 rm -f conftest.err conftest.$ac_objext \
42716       conftest$ac_exeext conftest.$ac_ext
42717
42718         LIBS="$ol_LIBS"
42719
42720 fi
42721 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42722 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42723
42724         if test $ol_cv_db_db_3 = yes ; then
42725                 ol_cv_lib_db=-ldb-3
42726         fi
42727 fi
42728
42729 if test $ol_cv_lib_db = no ; then
42730         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42731 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42732 if test "${ol_cv_db_db2+set}" = set; then
42733   echo $ECHO_N "(cached) $ECHO_C" >&6
42734 else
42735
42736         ol_DB_LIB=-ldb2
42737         ol_LIBS=$LIBS
42738         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42739
42740         cat >conftest.$ac_ext <<_ACEOF
42741 /* confdefs.h.  */
42742 _ACEOF
42743 cat confdefs.h >>conftest.$ac_ext
42744 cat >>conftest.$ac_ext <<_ACEOF
42745 /* end confdefs.h.  */
42746
42747 #ifdef HAVE_DB_185_H
42748 # include <db_185.h>
42749 #else
42750 # include <db.h>
42751 #endif
42752
42753 #ifndef DB_VERSION_MAJOR
42754 # define DB_VERSION_MAJOR 1
42755 #endif
42756
42757 #ifndef NULL
42758 #define NULL ((void*)0)
42759 #endif
42760
42761 int
42762 main ()
42763 {
42764
42765 #if DB_VERSION_MAJOR > 1
42766         {
42767                 char *version;
42768                 int major, minor, patch;
42769
42770                 version = db_version( &major, &minor, &patch );
42771
42772                 if( major != DB_VERSION_MAJOR ||
42773                         minor < DB_VERSION_MINOR )
42774                 {
42775                         printf("Berkeley DB version mismatch\n"
42776                                 "\theader: %s\n\tlibrary: %s\n",
42777                                 DB_VERSION_STRING, version);
42778                         return 1;
42779                 }
42780         }
42781 #endif
42782
42783 #if DB_VERSION_MAJOR > 2
42784         db_env_create( NULL, 0 );
42785 #elif DB_VERSION_MAJOR > 1
42786         db_appexit( NULL );
42787 #else
42788         (void) dbopen( NULL, 0, 0, 0, NULL);
42789 #endif
42790
42791   ;
42792   return 0;
42793 }
42794 _ACEOF
42795 rm -f conftest.$ac_objext conftest$ac_exeext
42796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42797   (eval $ac_link) 2>conftest.er1
42798   ac_status=$?
42799   grep -v '^ *+' conftest.er1 >conftest.err
42800   rm -f conftest.er1
42801   cat conftest.err >&5
42802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42803   (exit $ac_status); } &&
42804          { ac_try='test -z "$ac_c_werror_flag"
42805                          || test ! -s conftest.err'
42806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42807   (eval $ac_try) 2>&5
42808   ac_status=$?
42809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42810   (exit $ac_status); }; } &&
42811          { ac_try='test -s conftest$ac_exeext'
42812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42813   (eval $ac_try) 2>&5
42814   ac_status=$?
42815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42816   (exit $ac_status); }; }; then
42817   ol_cv_db_db2=yes
42818 else
42819   echo "$as_me: failed program was:" >&5
42820 sed 's/^/| /' conftest.$ac_ext >&5
42821
42822 ol_cv_db_db2=no
42823 fi
42824 rm -f conftest.err conftest.$ac_objext \
42825       conftest$ac_exeext conftest.$ac_ext
42826
42827         LIBS="$ol_LIBS"
42828
42829 fi
42830 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42831 echo "${ECHO_T}$ol_cv_db_db2" >&6
42832
42833         if test $ol_cv_db_db2 = yes ; then
42834                 ol_cv_lib_db=-ldb2
42835         fi
42836 fi
42837
42838 if test $ol_cv_lib_db = no ; then
42839         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42840 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42841 if test "${ol_cv_db_db_2+set}" = set; then
42842   echo $ECHO_N "(cached) $ECHO_C" >&6
42843 else
42844
42845         ol_DB_LIB=-ldb-2
42846         ol_LIBS=$LIBS
42847         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42848
42849         cat >conftest.$ac_ext <<_ACEOF
42850 /* confdefs.h.  */
42851 _ACEOF
42852 cat confdefs.h >>conftest.$ac_ext
42853 cat >>conftest.$ac_ext <<_ACEOF
42854 /* end confdefs.h.  */
42855
42856 #ifdef HAVE_DB_185_H
42857 # include <db_185.h>
42858 #else
42859 # include <db.h>
42860 #endif
42861
42862 #ifndef DB_VERSION_MAJOR
42863 # define DB_VERSION_MAJOR 1
42864 #endif
42865
42866 #ifndef NULL
42867 #define NULL ((void*)0)
42868 #endif
42869
42870 int
42871 main ()
42872 {
42873
42874 #if DB_VERSION_MAJOR > 1
42875         {
42876                 char *version;
42877                 int major, minor, patch;
42878
42879                 version = db_version( &major, &minor, &patch );
42880
42881                 if( major != DB_VERSION_MAJOR ||
42882                         minor < DB_VERSION_MINOR )
42883                 {
42884                         printf("Berkeley DB version mismatch\n"
42885                                 "\theader: %s\n\tlibrary: %s\n",
42886                                 DB_VERSION_STRING, version);
42887                         return 1;
42888                 }
42889         }
42890 #endif
42891
42892 #if DB_VERSION_MAJOR > 2
42893         db_env_create( NULL, 0 );
42894 #elif DB_VERSION_MAJOR > 1
42895         db_appexit( NULL );
42896 #else
42897         (void) dbopen( NULL, 0, 0, 0, NULL);
42898 #endif
42899
42900   ;
42901   return 0;
42902 }
42903 _ACEOF
42904 rm -f conftest.$ac_objext conftest$ac_exeext
42905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42906   (eval $ac_link) 2>conftest.er1
42907   ac_status=$?
42908   grep -v '^ *+' conftest.er1 >conftest.err
42909   rm -f conftest.er1
42910   cat conftest.err >&5
42911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42912   (exit $ac_status); } &&
42913          { ac_try='test -z "$ac_c_werror_flag"
42914                          || test ! -s conftest.err'
42915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42916   (eval $ac_try) 2>&5
42917   ac_status=$?
42918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42919   (exit $ac_status); }; } &&
42920          { ac_try='test -s conftest$ac_exeext'
42921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42922   (eval $ac_try) 2>&5
42923   ac_status=$?
42924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42925   (exit $ac_status); }; }; then
42926   ol_cv_db_db_2=yes
42927 else
42928   echo "$as_me: failed program was:" >&5
42929 sed 's/^/| /' conftest.$ac_ext >&5
42930
42931 ol_cv_db_db_2=no
42932 fi
42933 rm -f conftest.err conftest.$ac_objext \
42934       conftest$ac_exeext conftest.$ac_ext
42935
42936         LIBS="$ol_LIBS"
42937
42938 fi
42939 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42940 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42941
42942         if test $ol_cv_db_db_2 = yes ; then
42943                 ol_cv_lib_db=-ldb-2
42944         fi
42945 fi
42946
42947 if test $ol_cv_lib_db = no ; then
42948         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42949 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42950 if test "${ol_cv_db_db1+set}" = set; then
42951   echo $ECHO_N "(cached) $ECHO_C" >&6
42952 else
42953
42954         ol_DB_LIB=-ldb1
42955         ol_LIBS=$LIBS
42956         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42957
42958         cat >conftest.$ac_ext <<_ACEOF
42959 /* confdefs.h.  */
42960 _ACEOF
42961 cat confdefs.h >>conftest.$ac_ext
42962 cat >>conftest.$ac_ext <<_ACEOF
42963 /* end confdefs.h.  */
42964
42965 #ifdef HAVE_DB_185_H
42966 # include <db_185.h>
42967 #else
42968 # include <db.h>
42969 #endif
42970
42971 #ifndef DB_VERSION_MAJOR
42972 # define DB_VERSION_MAJOR 1
42973 #endif
42974
42975 #ifndef NULL
42976 #define NULL ((void*)0)
42977 #endif
42978
42979 int
42980 main ()
42981 {
42982
42983 #if DB_VERSION_MAJOR > 1
42984         {
42985                 char *version;
42986                 int major, minor, patch;
42987
42988                 version = db_version( &major, &minor, &patch );
42989
42990                 if( major != DB_VERSION_MAJOR ||
42991                         minor < DB_VERSION_MINOR )
42992                 {
42993                         printf("Berkeley DB version mismatch\n"
42994                                 "\theader: %s\n\tlibrary: %s\n",
42995                                 DB_VERSION_STRING, version);
42996                         return 1;
42997                 }
42998         }
42999 #endif
43000
43001 #if DB_VERSION_MAJOR > 2
43002         db_env_create( NULL, 0 );
43003 #elif DB_VERSION_MAJOR > 1
43004         db_appexit( NULL );
43005 #else
43006         (void) dbopen( NULL, 0, 0, 0, NULL);
43007 #endif
43008
43009   ;
43010   return 0;
43011 }
43012 _ACEOF
43013 rm -f conftest.$ac_objext conftest$ac_exeext
43014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43015   (eval $ac_link) 2>conftest.er1
43016   ac_status=$?
43017   grep -v '^ *+' conftest.er1 >conftest.err
43018   rm -f conftest.er1
43019   cat conftest.err >&5
43020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43021   (exit $ac_status); } &&
43022          { ac_try='test -z "$ac_c_werror_flag"
43023                          || test ! -s conftest.err'
43024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43025   (eval $ac_try) 2>&5
43026   ac_status=$?
43027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43028   (exit $ac_status); }; } &&
43029          { ac_try='test -s conftest$ac_exeext'
43030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43031   (eval $ac_try) 2>&5
43032   ac_status=$?
43033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43034   (exit $ac_status); }; }; then
43035   ol_cv_db_db1=yes
43036 else
43037   echo "$as_me: failed program was:" >&5
43038 sed 's/^/| /' conftest.$ac_ext >&5
43039
43040 ol_cv_db_db1=no
43041 fi
43042 rm -f conftest.err conftest.$ac_objext \
43043       conftest$ac_exeext conftest.$ac_ext
43044
43045         LIBS="$ol_LIBS"
43046
43047 fi
43048 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
43049 echo "${ECHO_T}$ol_cv_db_db1" >&6
43050
43051         if test $ol_cv_db_db1 = yes ; then
43052                 ol_cv_lib_db=-ldb1
43053         fi
43054 fi
43055
43056 if test $ol_cv_lib_db = no ; then
43057         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
43058 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
43059 if test "${ol_cv_db_db_1+set}" = set; then
43060   echo $ECHO_N "(cached) $ECHO_C" >&6
43061 else
43062
43063         ol_DB_LIB=-ldb-1
43064         ol_LIBS=$LIBS
43065         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
43066
43067         cat >conftest.$ac_ext <<_ACEOF
43068 /* confdefs.h.  */
43069 _ACEOF
43070 cat confdefs.h >>conftest.$ac_ext
43071 cat >>conftest.$ac_ext <<_ACEOF
43072 /* end confdefs.h.  */
43073
43074 #ifdef HAVE_DB_185_H
43075 # include <db_185.h>
43076 #else
43077 # include <db.h>
43078 #endif
43079
43080 #ifndef DB_VERSION_MAJOR
43081 # define DB_VERSION_MAJOR 1
43082 #endif
43083
43084 #ifndef NULL
43085 #define NULL ((void*)0)
43086 #endif
43087
43088 int
43089 main ()
43090 {
43091
43092 #if DB_VERSION_MAJOR > 1
43093         {
43094                 char *version;
43095                 int major, minor, patch;
43096
43097                 version = db_version( &major, &minor, &patch );
43098
43099                 if( major != DB_VERSION_MAJOR ||
43100                         minor < DB_VERSION_MINOR )
43101                 {
43102                         printf("Berkeley DB version mismatch\n"
43103                                 "\theader: %s\n\tlibrary: %s\n",
43104                                 DB_VERSION_STRING, version);
43105                         return 1;
43106                 }
43107         }
43108 #endif
43109
43110 #if DB_VERSION_MAJOR > 2
43111         db_env_create( NULL, 0 );
43112 #elif DB_VERSION_MAJOR > 1
43113         db_appexit( NULL );
43114 #else
43115         (void) dbopen( NULL, 0, 0, 0, NULL);
43116 #endif
43117
43118   ;
43119   return 0;
43120 }
43121 _ACEOF
43122 rm -f conftest.$ac_objext conftest$ac_exeext
43123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43124   (eval $ac_link) 2>conftest.er1
43125   ac_status=$?
43126   grep -v '^ *+' conftest.er1 >conftest.err
43127   rm -f conftest.er1
43128   cat conftest.err >&5
43129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43130   (exit $ac_status); } &&
43131          { ac_try='test -z "$ac_c_werror_flag"
43132                          || test ! -s conftest.err'
43133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43134   (eval $ac_try) 2>&5
43135   ac_status=$?
43136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43137   (exit $ac_status); }; } &&
43138          { ac_try='test -s conftest$ac_exeext'
43139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43140   (eval $ac_try) 2>&5
43141   ac_status=$?
43142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43143   (exit $ac_status); }; }; then
43144   ol_cv_db_db_1=yes
43145 else
43146   echo "$as_me: failed program was:" >&5
43147 sed 's/^/| /' conftest.$ac_ext >&5
43148
43149 ol_cv_db_db_1=no
43150 fi
43151 rm -f conftest.err conftest.$ac_objext \
43152       conftest$ac_exeext conftest.$ac_ext
43153
43154         LIBS="$ol_LIBS"
43155
43156 fi
43157 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
43158 echo "${ECHO_T}$ol_cv_db_db_1" >&6
43159
43160         if test $ol_cv_db_db_1 = yes ; then
43161                 ol_cv_lib_db=-ldb-1
43162         fi
43163 fi
43164
43165
43166         if test "$ol_cv_lib_db" != no ; then
43167                 ol_cv_berkeley_db=yes
43168                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
43169 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
43170 if test "${ol_cv_berkeley_db_version+set}" = set; then
43171   echo $ECHO_N "(cached) $ECHO_C" >&6
43172 else
43173
43174         ol_LIBS="$LIBS"
43175         LIBS="$LTHREAD_LIBS $LIBS"
43176         if test $ol_cv_lib_db != yes ; then
43177                 LIBS="$ol_cv_lib_db $LIBS"
43178         fi
43179
43180         if test "$cross_compiling" = yes; then
43181   ol_cv_berkeley_db_version=cross
43182 else
43183   cat >conftest.$ac_ext <<_ACEOF
43184 /* confdefs.h.  */
43185 _ACEOF
43186 cat confdefs.h >>conftest.$ac_ext
43187 cat >>conftest.$ac_ext <<_ACEOF
43188 /* end confdefs.h.  */
43189
43190 #ifdef HAVE_DB_185_H
43191         choke me;
43192 #else
43193 #include <db.h>
43194 #endif
43195 #ifndef DB_VERSION_MAJOR
43196 # define DB_VERSION_MAJOR 1
43197 #endif
43198 #ifndef NULL
43199 #define NULL ((void *)0)
43200 #endif
43201 main()
43202 {
43203 #if DB_VERSION_MAJOR > 1
43204         char *version;
43205         int major, minor, patch;
43206
43207         version = db_version( &major, &minor, &patch );
43208
43209         if( major != DB_VERSION_MAJOR ||
43210                 minor != DB_VERSION_MINOR ||
43211                 patch != DB_VERSION_PATCH )
43212         {
43213                 printf("Berkeley DB version mismatch\n"
43214                         "\theader: %s\n\tlibrary: %s\n",
43215                         DB_VERSION_STRING, version);
43216                 return 1;
43217         }
43218 #endif
43219
43220         return 0;
43221 }
43222 _ACEOF
43223 rm -f conftest$ac_exeext
43224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43225   (eval $ac_link) 2>&5
43226   ac_status=$?
43227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43230   (eval $ac_try) 2>&5
43231   ac_status=$?
43232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43233   (exit $ac_status); }; }; then
43234   ol_cv_berkeley_db_version=yes
43235 else
43236   echo "$as_me: program exited with status $ac_status" >&5
43237 echo "$as_me: failed program was:" >&5
43238 sed 's/^/| /' conftest.$ac_ext >&5
43239
43240 ( exit $ac_status )
43241 ol_cv_berkeley_db_version=no
43242 fi
43243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43244 fi
43245
43246         LIBS="$ol_LIBS"
43247
43248 fi
43249 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
43250 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
43251
43252         if test $ol_cv_berkeley_db_version = no ; then
43253                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
43254 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
43255    { (exit 1); exit 1; }; }
43256         fi
43257
43258                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
43259 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
43260 if test "${ol_cv_berkeley_db_thread+set}" = set; then
43261   echo $ECHO_N "(cached) $ECHO_C" >&6
43262 else
43263
43264         ol_LIBS="$LIBS"
43265         LIBS="$LTHREAD_LIBS $LIBS"
43266         if test $ol_cv_lib_db != yes ; then
43267                 LIBS="$ol_cv_lib_db $LIBS"
43268         fi
43269
43270         if test "$cross_compiling" = yes; then
43271   ol_cv_berkeley_db_thread=cross
43272 else
43273   cat >conftest.$ac_ext <<_ACEOF
43274 /* confdefs.h.  */
43275 _ACEOF
43276 cat confdefs.h >>conftest.$ac_ext
43277 cat >>conftest.$ac_ext <<_ACEOF
43278 /* end confdefs.h.  */
43279
43280 #ifdef HAVE_DB_185_H
43281         choke me;
43282 #else
43283 #include <db.h>
43284 #endif
43285 #ifndef NULL
43286 #define NULL ((void *)0)
43287 #endif
43288 main()
43289 {
43290         int rc;
43291         u_int32_t flags = DB_CREATE |
43292 #ifdef DB_PRIVATE
43293                 DB_PRIVATE |
43294 #endif
43295                 DB_THREAD;
43296
43297 #if DB_VERSION_MAJOR > 2
43298         DB_ENV *env = NULL;
43299
43300         rc = db_env_create( &env, 0 );
43301
43302         flags |= DB_INIT_MPOOL;
43303 #ifdef DB_MPOOL_PRIVATE
43304         flags |= DB_MPOOL_PRIVATE;
43305 #endif
43306
43307         if( rc ) {
43308                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43309                 return rc;
43310         }
43311
43312 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
43313         rc = env->open( env, NULL, flags, 0 );
43314 #else
43315         rc = env->open( env, NULL, NULL, flags, 0 );
43316 #endif
43317
43318         if ( rc == 0 ) {
43319                 rc = env->close( env, 0 );
43320         }
43321
43322         if( rc ) {
43323                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43324                 return rc;
43325         }
43326
43327 #else
43328         DB_ENV env;
43329         memset( &env, '\0', sizeof(env) );
43330
43331         rc = db_appinit( NULL, NULL, &env, flags );
43332
43333         if( rc == 0 ) {
43334                 db_appexit( &env );
43335         }
43336
43337         unlink("__db_mpool.share");
43338         unlink("__db_lock.share");
43339 #endif
43340
43341         return rc;
43342 }
43343 _ACEOF
43344 rm -f conftest$ac_exeext
43345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43346   (eval $ac_link) 2>&5
43347   ac_status=$?
43348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43349   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43351   (eval $ac_try) 2>&5
43352   ac_status=$?
43353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43354   (exit $ac_status); }; }; then
43355   ol_cv_berkeley_db_thread=yes
43356 else
43357   echo "$as_me: program exited with status $ac_status" >&5
43358 echo "$as_me: failed program was:" >&5
43359 sed 's/^/| /' conftest.$ac_ext >&5
43360
43361 ( exit $ac_status )
43362 ol_cv_berkeley_db_thread=no
43363 fi
43364 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43365 fi
43366
43367         LIBS="$ol_LIBS"
43368
43369 fi
43370 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43371 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43372
43373         if test $ol_cv_berkeley_db_thread != no ; then
43374
43375 cat >>confdefs.h <<\_ACEOF
43376 #define HAVE_BERKELEY_DB_THREAD 1
43377 _ACEOF
43378
43379         fi
43380
43381         fi
43382 fi
43383
43384         fi
43385
43386         if test $ol_cv_berkeley_db != no ; then
43387
43388 cat >>confdefs.h <<\_ACEOF
43389 #define HAVE_BERKELEY_DB 1
43390 _ACEOF
43391
43392
43393                 ol_link_ldbm=berkeley
43394                 ol_enable_ldbm_api=berkeley
43395
43396                 if test $ol_enable_ldbm_type = hash ; then
43397
43398 cat >>confdefs.h <<\_ACEOF
43399 #define LDBM_USE_DBHASH 1
43400 _ACEOF
43401
43402                 else
43403
43404 cat >>confdefs.h <<\_ACEOF
43405 #define LDBM_USE_DBBTREE 1
43406 _ACEOF
43407
43408                 fi
43409
43410                                                 if test $ol_cv_lib_db != yes ; then
43411                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43412                 fi
43413         fi
43414 fi
43415
43416 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43417         if test $ol_link_ldbm != berkeley ; then
43418                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43419 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43420    { (exit 1); exit 1; }; }
43421         else
43422                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
43423 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
43424 if test "${ol_cv_bdb_compat+set}" = set; then
43425   echo $ECHO_N "(cached) $ECHO_C" >&6
43426 else
43427
43428         cat >conftest.$ac_ext <<_ACEOF
43429 /* confdefs.h.  */
43430 _ACEOF
43431 cat confdefs.h >>conftest.$ac_ext
43432 cat >>conftest.$ac_ext <<_ACEOF
43433 /* end confdefs.h.  */
43434
43435 #include <db.h>
43436
43437  /* this check could be improved */
43438 #ifndef DB_VERSION_MAJOR
43439 #       define DB_VERSION_MAJOR 1
43440 #endif
43441 #ifndef DB_VERSION_MINOR
43442 #       define DB_VERSION_MINOR 0
43443 #endif
43444
43445 /* require 4.2 or later */
43446 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43447         __db_version_compat
43448 #endif
43449
43450 _ACEOF
43451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43452   $EGREP "__db_version_compat" >/dev/null 2>&1; then
43453   ol_cv_bdb_compat=yes
43454 else
43455   ol_cv_bdb_compat=no
43456 fi
43457 rm -f conftest*
43458
43459 fi
43460 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43461 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43462
43463
43464                 if test $ol_cv_bdb_compat != yes ; then
43465                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43466 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43467    { (exit 1); exit 1; }; }
43468                 fi
43469         fi
43470 fi
43471
43472 if test $ol_link_ldbm = no -a $ol_enable_ldbm_type = btree ; then
43473         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43474 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43475         ol_enable_ldbm_api=none
43476 fi
43477
43478 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = mdbm ; then
43479         echo "$as_me:$LINENO: checking for MDBM library" >&5
43480 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43481 if test "${ol_cv_lib_mdbm+set}" = set; then
43482   echo $ECHO_N "(cached) $ECHO_C" >&6
43483 else
43484         ol_LIBS="$LIBS"
43485         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43486 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43487 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43488   echo $ECHO_N "(cached) $ECHO_C" >&6
43489 else
43490   cat >conftest.$ac_ext <<_ACEOF
43491 /* confdefs.h.  */
43492 _ACEOF
43493 cat confdefs.h >>conftest.$ac_ext
43494 cat >>conftest.$ac_ext <<_ACEOF
43495 /* end confdefs.h.  */
43496 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43498 #define mdbm_set_chain innocuous_mdbm_set_chain
43499
43500 /* System header to define __stub macros and hopefully few prototypes,
43501     which can conflict with char mdbm_set_chain (); below.
43502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43503     <limits.h> exists even on freestanding compilers.  */
43504
43505 #ifdef __STDC__
43506 # include <limits.h>
43507 #else
43508 # include <assert.h>
43509 #endif
43510
43511 #undef mdbm_set_chain
43512
43513 /* Override any gcc2 internal prototype to avoid an error.  */
43514 #ifdef __cplusplus
43515 extern "C"
43516 {
43517 #endif
43518 /* We use char because int might match the return type of a gcc2
43519    builtin and then its argument prototype would still apply.  */
43520 char mdbm_set_chain ();
43521 /* The GNU C library defines this for functions which it implements
43522     to always fail with ENOSYS.  Some functions are actually named
43523     something starting with __ and the normal name is an alias.  */
43524 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43525 choke me
43526 #else
43527 char (*f) () = mdbm_set_chain;
43528 #endif
43529 #ifdef __cplusplus
43530 }
43531 #endif
43532
43533 int
43534 main ()
43535 {
43536 return f != mdbm_set_chain;
43537   ;
43538   return 0;
43539 }
43540 _ACEOF
43541 rm -f conftest.$ac_objext conftest$ac_exeext
43542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43543   (eval $ac_link) 2>conftest.er1
43544   ac_status=$?
43545   grep -v '^ *+' conftest.er1 >conftest.err
43546   rm -f conftest.er1
43547   cat conftest.err >&5
43548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43549   (exit $ac_status); } &&
43550          { ac_try='test -z "$ac_c_werror_flag"
43551                          || test ! -s conftest.err'
43552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43553   (eval $ac_try) 2>&5
43554   ac_status=$?
43555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43556   (exit $ac_status); }; } &&
43557          { ac_try='test -s conftest$ac_exeext'
43558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43559   (eval $ac_try) 2>&5
43560   ac_status=$?
43561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43562   (exit $ac_status); }; }; then
43563   ac_cv_func_mdbm_set_chain=yes
43564 else
43565   echo "$as_me: failed program was:" >&5
43566 sed 's/^/| /' conftest.$ac_ext >&5
43567
43568 ac_cv_func_mdbm_set_chain=no
43569 fi
43570 rm -f conftest.err conftest.$ac_objext \
43571       conftest$ac_exeext conftest.$ac_ext
43572 fi
43573 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43574 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43575 if test $ac_cv_func_mdbm_set_chain = yes; then
43576   ol_cv_lib_mdbm=yes
43577 else
43578
43579                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43580 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43581 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43582   echo $ECHO_N "(cached) $ECHO_C" >&6
43583 else
43584   ac_check_lib_save_LIBS=$LIBS
43585 LIBS="-lmdbm  $LIBS"
43586 cat >conftest.$ac_ext <<_ACEOF
43587 /* confdefs.h.  */
43588 _ACEOF
43589 cat confdefs.h >>conftest.$ac_ext
43590 cat >>conftest.$ac_ext <<_ACEOF
43591 /* end confdefs.h.  */
43592
43593 /* Override any gcc2 internal prototype to avoid an error.  */
43594 #ifdef __cplusplus
43595 extern "C"
43596 #endif
43597 /* We use char because int might match the return type of a gcc2
43598    builtin and then its argument prototype would still apply.  */
43599 char mdbm_set_chain ();
43600 int
43601 main ()
43602 {
43603 mdbm_set_chain ();
43604   ;
43605   return 0;
43606 }
43607 _ACEOF
43608 rm -f conftest.$ac_objext conftest$ac_exeext
43609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43610   (eval $ac_link) 2>conftest.er1
43611   ac_status=$?
43612   grep -v '^ *+' conftest.er1 >conftest.err
43613   rm -f conftest.er1
43614   cat conftest.err >&5
43615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43616   (exit $ac_status); } &&
43617          { ac_try='test -z "$ac_c_werror_flag"
43618                          || test ! -s conftest.err'
43619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43620   (eval $ac_try) 2>&5
43621   ac_status=$?
43622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43623   (exit $ac_status); }; } &&
43624          { ac_try='test -s conftest$ac_exeext'
43625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43626   (eval $ac_try) 2>&5
43627   ac_status=$?
43628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43629   (exit $ac_status); }; }; then
43630   ac_cv_lib_mdbm_mdbm_set_chain=yes
43631 else
43632   echo "$as_me: failed program was:" >&5
43633 sed 's/^/| /' conftest.$ac_ext >&5
43634
43635 ac_cv_lib_mdbm_mdbm_set_chain=no
43636 fi
43637 rm -f conftest.err conftest.$ac_objext \
43638       conftest$ac_exeext conftest.$ac_ext
43639 LIBS=$ac_check_lib_save_LIBS
43640 fi
43641 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43642 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43643 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43644   ol_cv_lib_mdbm=-lmdbm
43645 else
43646   ol_cv_lib_mdbm=no
43647 fi
43648
43649
43650 fi
43651
43652         LIBS="$ol_LIBS"
43653
43654 fi
43655 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43656 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43657
43658
43659
43660 for ac_header in mdbm.h
43661 do
43662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43664   echo "$as_me:$LINENO: checking for $ac_header" >&5
43665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43667   echo $ECHO_N "(cached) $ECHO_C" >&6
43668 fi
43669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43671 else
43672   # Is the header compilable?
43673 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43675 cat >conftest.$ac_ext <<_ACEOF
43676 /* confdefs.h.  */
43677 _ACEOF
43678 cat confdefs.h >>conftest.$ac_ext
43679 cat >>conftest.$ac_ext <<_ACEOF
43680 /* end confdefs.h.  */
43681 $ac_includes_default
43682 #include <$ac_header>
43683 _ACEOF
43684 rm -f conftest.$ac_objext
43685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43686   (eval $ac_compile) 2>conftest.er1
43687   ac_status=$?
43688   grep -v '^ *+' conftest.er1 >conftest.err
43689   rm -f conftest.er1
43690   cat conftest.err >&5
43691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43692   (exit $ac_status); } &&
43693          { ac_try='test -z "$ac_c_werror_flag"
43694                          || test ! -s conftest.err'
43695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43696   (eval $ac_try) 2>&5
43697   ac_status=$?
43698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43699   (exit $ac_status); }; } &&
43700          { ac_try='test -s conftest.$ac_objext'
43701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43702   (eval $ac_try) 2>&5
43703   ac_status=$?
43704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43705   (exit $ac_status); }; }; then
43706   ac_header_compiler=yes
43707 else
43708   echo "$as_me: failed program was:" >&5
43709 sed 's/^/| /' conftest.$ac_ext >&5
43710
43711 ac_header_compiler=no
43712 fi
43713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43715 echo "${ECHO_T}$ac_header_compiler" >&6
43716
43717 # Is the header present?
43718 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43720 cat >conftest.$ac_ext <<_ACEOF
43721 /* confdefs.h.  */
43722 _ACEOF
43723 cat confdefs.h >>conftest.$ac_ext
43724 cat >>conftest.$ac_ext <<_ACEOF
43725 /* end confdefs.h.  */
43726 #include <$ac_header>
43727 _ACEOF
43728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43729   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43730   ac_status=$?
43731   grep -v '^ *+' conftest.er1 >conftest.err
43732   rm -f conftest.er1
43733   cat conftest.err >&5
43734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43735   (exit $ac_status); } >/dev/null; then
43736   if test -s conftest.err; then
43737     ac_cpp_err=$ac_c_preproc_warn_flag
43738     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43739   else
43740     ac_cpp_err=
43741   fi
43742 else
43743   ac_cpp_err=yes
43744 fi
43745 if test -z "$ac_cpp_err"; then
43746   ac_header_preproc=yes
43747 else
43748   echo "$as_me: failed program was:" >&5
43749 sed 's/^/| /' conftest.$ac_ext >&5
43750
43751   ac_header_preproc=no
43752 fi
43753 rm -f conftest.err conftest.$ac_ext
43754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43755 echo "${ECHO_T}$ac_header_preproc" >&6
43756
43757 # So?  What about this header?
43758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43759   yes:no: )
43760     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43762     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43764     ac_header_preproc=yes
43765     ;;
43766   no:yes:* )
43767     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43769     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43770 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43771     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43773     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43774 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43775     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43777     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43779     (
43780       cat <<\_ASBOX
43781 ## ------------------------------------------ ##
43782 ## Report this to the AC_PACKAGE_NAME lists.  ##
43783 ## ------------------------------------------ ##
43784 _ASBOX
43785     ) |
43786       sed "s/^/$as_me: WARNING:     /" >&2
43787     ;;
43788 esac
43789 echo "$as_me:$LINENO: checking for $ac_header" >&5
43790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43792   echo $ECHO_N "(cached) $ECHO_C" >&6
43793 else
43794   eval "$as_ac_Header=\$ac_header_preproc"
43795 fi
43796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43798
43799 fi
43800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43801   cat >>confdefs.h <<_ACEOF
43802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43803 _ACEOF
43804
43805 fi
43806
43807 done
43808
43809  echo "$as_me:$LINENO: checking for db" >&5
43810 echo $ECHO_N "checking for db... $ECHO_C" >&6
43811 if test "${ol_cv_mdbm+set}" = set; then
43812   echo $ECHO_N "(cached) $ECHO_C" >&6
43813 else
43814
43815         if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43816                 ol_cv_mdbm=no
43817         else
43818                 ol_cv_mdbm=yes
43819         fi
43820
43821 fi
43822 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43823 echo "${ECHO_T}$ol_cv_mdbm" >&6
43824  if test $ol_cv_mdbm = yes ; then
43825
43826 cat >>confdefs.h <<\_ACEOF
43827 #define HAVE_MDBM 1
43828 _ACEOF
43829
43830  fi
43831
43832
43833         if test $ol_cv_mdbm = yes ; then
43834                 ol_link_ldbm=mdbm
43835                 ol_enable_ldbm_api=mdbm
43836                 if test $ol_cv_lib_mdbm != yes ; then
43837                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43838                 fi
43839         fi
43840 fi
43841
43842 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = gdbm ; then
43843         echo "$as_me:$LINENO: checking for GDBM library" >&5
43844 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43845 if test "${ol_cv_lib_gdbm+set}" = set; then
43846   echo $ECHO_N "(cached) $ECHO_C" >&6
43847 else
43848         ol_LIBS="$LIBS"
43849         echo "$as_me:$LINENO: checking for gdbm_open" >&5
43850 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43851 if test "${ac_cv_func_gdbm_open+set}" = set; then
43852   echo $ECHO_N "(cached) $ECHO_C" >&6
43853 else
43854   cat >conftest.$ac_ext <<_ACEOF
43855 /* confdefs.h.  */
43856 _ACEOF
43857 cat confdefs.h >>conftest.$ac_ext
43858 cat >>conftest.$ac_ext <<_ACEOF
43859 /* end confdefs.h.  */
43860 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43862 #define gdbm_open innocuous_gdbm_open
43863
43864 /* System header to define __stub macros and hopefully few prototypes,
43865     which can conflict with char gdbm_open (); below.
43866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43867     <limits.h> exists even on freestanding compilers.  */
43868
43869 #ifdef __STDC__
43870 # include <limits.h>
43871 #else
43872 # include <assert.h>
43873 #endif
43874
43875 #undef gdbm_open
43876
43877 /* Override any gcc2 internal prototype to avoid an error.  */
43878 #ifdef __cplusplus
43879 extern "C"
43880 {
43881 #endif
43882 /* We use char because int might match the return type of a gcc2
43883    builtin and then its argument prototype would still apply.  */
43884 char gdbm_open ();
43885 /* The GNU C library defines this for functions which it implements
43886     to always fail with ENOSYS.  Some functions are actually named
43887     something starting with __ and the normal name is an alias.  */
43888 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43889 choke me
43890 #else
43891 char (*f) () = gdbm_open;
43892 #endif
43893 #ifdef __cplusplus
43894 }
43895 #endif
43896
43897 int
43898 main ()
43899 {
43900 return f != gdbm_open;
43901   ;
43902   return 0;
43903 }
43904 _ACEOF
43905 rm -f conftest.$ac_objext conftest$ac_exeext
43906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43907   (eval $ac_link) 2>conftest.er1
43908   ac_status=$?
43909   grep -v '^ *+' conftest.er1 >conftest.err
43910   rm -f conftest.er1
43911   cat conftest.err >&5
43912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43913   (exit $ac_status); } &&
43914          { ac_try='test -z "$ac_c_werror_flag"
43915                          || test ! -s conftest.err'
43916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43917   (eval $ac_try) 2>&5
43918   ac_status=$?
43919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43920   (exit $ac_status); }; } &&
43921          { ac_try='test -s conftest$ac_exeext'
43922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43923   (eval $ac_try) 2>&5
43924   ac_status=$?
43925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43926   (exit $ac_status); }; }; then
43927   ac_cv_func_gdbm_open=yes
43928 else
43929   echo "$as_me: failed program was:" >&5
43930 sed 's/^/| /' conftest.$ac_ext >&5
43931
43932 ac_cv_func_gdbm_open=no
43933 fi
43934 rm -f conftest.err conftest.$ac_objext \
43935       conftest$ac_exeext conftest.$ac_ext
43936 fi
43937 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43938 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43939 if test $ac_cv_func_gdbm_open = yes; then
43940   ol_cv_lib_gdbm=yes
43941 else
43942
43943                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43944 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43945 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43946   echo $ECHO_N "(cached) $ECHO_C" >&6
43947 else
43948   ac_check_lib_save_LIBS=$LIBS
43949 LIBS="-lgdbm  $LIBS"
43950 cat >conftest.$ac_ext <<_ACEOF
43951 /* confdefs.h.  */
43952 _ACEOF
43953 cat confdefs.h >>conftest.$ac_ext
43954 cat >>conftest.$ac_ext <<_ACEOF
43955 /* end confdefs.h.  */
43956
43957 /* Override any gcc2 internal prototype to avoid an error.  */
43958 #ifdef __cplusplus
43959 extern "C"
43960 #endif
43961 /* We use char because int might match the return type of a gcc2
43962    builtin and then its argument prototype would still apply.  */
43963 char gdbm_open ();
43964 int
43965 main ()
43966 {
43967 gdbm_open ();
43968   ;
43969   return 0;
43970 }
43971 _ACEOF
43972 rm -f conftest.$ac_objext conftest$ac_exeext
43973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43974   (eval $ac_link) 2>conftest.er1
43975   ac_status=$?
43976   grep -v '^ *+' conftest.er1 >conftest.err
43977   rm -f conftest.er1
43978   cat conftest.err >&5
43979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43980   (exit $ac_status); } &&
43981          { ac_try='test -z "$ac_c_werror_flag"
43982                          || test ! -s conftest.err'
43983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43984   (eval $ac_try) 2>&5
43985   ac_status=$?
43986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43987   (exit $ac_status); }; } &&
43988          { ac_try='test -s conftest$ac_exeext'
43989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43990   (eval $ac_try) 2>&5
43991   ac_status=$?
43992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43993   (exit $ac_status); }; }; then
43994   ac_cv_lib_gdbm_gdbm_open=yes
43995 else
43996   echo "$as_me: failed program was:" >&5
43997 sed 's/^/| /' conftest.$ac_ext >&5
43998
43999 ac_cv_lib_gdbm_gdbm_open=no
44000 fi
44001 rm -f conftest.err conftest.$ac_objext \
44002       conftest$ac_exeext conftest.$ac_ext
44003 LIBS=$ac_check_lib_save_LIBS
44004 fi
44005 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
44006 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
44007 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
44008   ol_cv_lib_gdbm=-lgdbm
44009 else
44010   ol_cv_lib_gdbm=no
44011 fi
44012
44013
44014 fi
44015
44016         LIBS="$ol_LIBS"
44017
44018 fi
44019 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
44020 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
44021
44022
44023
44024 for ac_header in gdbm.h
44025 do
44026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44028   echo "$as_me:$LINENO: checking for $ac_header" >&5
44029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44031   echo $ECHO_N "(cached) $ECHO_C" >&6
44032 fi
44033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44035 else
44036   # Is the header compilable?
44037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44039 cat >conftest.$ac_ext <<_ACEOF
44040 /* confdefs.h.  */
44041 _ACEOF
44042 cat confdefs.h >>conftest.$ac_ext
44043 cat >>conftest.$ac_ext <<_ACEOF
44044 /* end confdefs.h.  */
44045 $ac_includes_default
44046 #include <$ac_header>
44047 _ACEOF
44048 rm -f conftest.$ac_objext
44049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44050   (eval $ac_compile) 2>conftest.er1
44051   ac_status=$?
44052   grep -v '^ *+' conftest.er1 >conftest.err
44053   rm -f conftest.er1
44054   cat conftest.err >&5
44055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44056   (exit $ac_status); } &&
44057          { ac_try='test -z "$ac_c_werror_flag"
44058                          || test ! -s conftest.err'
44059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44060   (eval $ac_try) 2>&5
44061   ac_status=$?
44062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44063   (exit $ac_status); }; } &&
44064          { ac_try='test -s conftest.$ac_objext'
44065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44066   (eval $ac_try) 2>&5
44067   ac_status=$?
44068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44069   (exit $ac_status); }; }; then
44070   ac_header_compiler=yes
44071 else
44072   echo "$as_me: failed program was:" >&5
44073 sed 's/^/| /' conftest.$ac_ext >&5
44074
44075 ac_header_compiler=no
44076 fi
44077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44079 echo "${ECHO_T}$ac_header_compiler" >&6
44080
44081 # Is the header present?
44082 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44084 cat >conftest.$ac_ext <<_ACEOF
44085 /* confdefs.h.  */
44086 _ACEOF
44087 cat confdefs.h >>conftest.$ac_ext
44088 cat >>conftest.$ac_ext <<_ACEOF
44089 /* end confdefs.h.  */
44090 #include <$ac_header>
44091 _ACEOF
44092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44093   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44094   ac_status=$?
44095   grep -v '^ *+' conftest.er1 >conftest.err
44096   rm -f conftest.er1
44097   cat conftest.err >&5
44098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44099   (exit $ac_status); } >/dev/null; then
44100   if test -s conftest.err; then
44101     ac_cpp_err=$ac_c_preproc_warn_flag
44102     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44103   else
44104     ac_cpp_err=
44105   fi
44106 else
44107   ac_cpp_err=yes
44108 fi
44109 if test -z "$ac_cpp_err"; then
44110   ac_header_preproc=yes
44111 else
44112   echo "$as_me: failed program was:" >&5
44113 sed 's/^/| /' conftest.$ac_ext >&5
44114
44115   ac_header_preproc=no
44116 fi
44117 rm -f conftest.err conftest.$ac_ext
44118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44119 echo "${ECHO_T}$ac_header_preproc" >&6
44120
44121 # So?  What about this header?
44122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44123   yes:no: )
44124     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44126     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44128     ac_header_preproc=yes
44129     ;;
44130   no:yes:* )
44131     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44133     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44134 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44135     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44137     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44138 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44139     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44141     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44143     (
44144       cat <<\_ASBOX
44145 ## ------------------------------------------ ##
44146 ## Report this to the AC_PACKAGE_NAME lists.  ##
44147 ## ------------------------------------------ ##
44148 _ASBOX
44149     ) |
44150       sed "s/^/$as_me: WARNING:     /" >&2
44151     ;;
44152 esac
44153 echo "$as_me:$LINENO: checking for $ac_header" >&5
44154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44156   echo $ECHO_N "(cached) $ECHO_C" >&6
44157 else
44158   eval "$as_ac_Header=\$ac_header_preproc"
44159 fi
44160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44162
44163 fi
44164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44165   cat >>confdefs.h <<_ACEOF
44166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44167 _ACEOF
44168
44169 fi
44170
44171 done
44172
44173  echo "$as_me:$LINENO: checking for db" >&5
44174 echo $ECHO_N "checking for db... $ECHO_C" >&6
44175 if test "${ol_cv_gdbm+set}" = set; then
44176   echo $ECHO_N "(cached) $ECHO_C" >&6
44177 else
44178
44179         if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
44180                 ol_cv_gdbm=no
44181         else
44182                 ol_cv_gdbm=yes
44183         fi
44184
44185 fi
44186 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
44187 echo "${ECHO_T}$ol_cv_gdbm" >&6
44188  if test $ol_cv_gdbm = yes ; then
44189
44190 cat >>confdefs.h <<\_ACEOF
44191 #define HAVE_GDBM 1
44192 _ACEOF
44193
44194  fi
44195
44196
44197         if test $ol_cv_gdbm = yes ; then
44198                 ol_link_ldbm=gdbm
44199                 ol_enable_ldbm_api=gdbm
44200
44201                 if test $ol_cv_lib_gdbm != yes ; then
44202                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
44203                 fi
44204         fi
44205 fi
44206
44207 if test $ol_enable_ldbm_api = ndbm ; then
44208         echo "$as_me:$LINENO: checking for NDBM library" >&5
44209 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
44210 if test "${ol_cv_lib_ndbm+set}" = set; then
44211   echo $ECHO_N "(cached) $ECHO_C" >&6
44212 else
44213         ol_LIBS="$LIBS"
44214         echo "$as_me:$LINENO: checking for dbm_open" >&5
44215 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
44216 if test "${ac_cv_func_dbm_open+set}" = set; then
44217   echo $ECHO_N "(cached) $ECHO_C" >&6
44218 else
44219   cat >conftest.$ac_ext <<_ACEOF
44220 /* confdefs.h.  */
44221 _ACEOF
44222 cat confdefs.h >>conftest.$ac_ext
44223 cat >>conftest.$ac_ext <<_ACEOF
44224 /* end confdefs.h.  */
44225 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
44226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44227 #define dbm_open innocuous_dbm_open
44228
44229 /* System header to define __stub macros and hopefully few prototypes,
44230     which can conflict with char dbm_open (); below.
44231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44232     <limits.h> exists even on freestanding compilers.  */
44233
44234 #ifdef __STDC__
44235 # include <limits.h>
44236 #else
44237 # include <assert.h>
44238 #endif
44239
44240 #undef dbm_open
44241
44242 /* Override any gcc2 internal prototype to avoid an error.  */
44243 #ifdef __cplusplus
44244 extern "C"
44245 {
44246 #endif
44247 /* We use char because int might match the return type of a gcc2
44248    builtin and then its argument prototype would still apply.  */
44249 char dbm_open ();
44250 /* The GNU C library defines this for functions which it implements
44251     to always fail with ENOSYS.  Some functions are actually named
44252     something starting with __ and the normal name is an alias.  */
44253 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
44254 choke me
44255 #else
44256 char (*f) () = dbm_open;
44257 #endif
44258 #ifdef __cplusplus
44259 }
44260 #endif
44261
44262 int
44263 main ()
44264 {
44265 return f != dbm_open;
44266   ;
44267   return 0;
44268 }
44269 _ACEOF
44270 rm -f conftest.$ac_objext conftest$ac_exeext
44271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44272   (eval $ac_link) 2>conftest.er1
44273   ac_status=$?
44274   grep -v '^ *+' conftest.er1 >conftest.err
44275   rm -f conftest.er1
44276   cat conftest.err >&5
44277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44278   (exit $ac_status); } &&
44279          { ac_try='test -z "$ac_c_werror_flag"
44280                          || test ! -s conftest.err'
44281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44282   (eval $ac_try) 2>&5
44283   ac_status=$?
44284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44285   (exit $ac_status); }; } &&
44286          { ac_try='test -s conftest$ac_exeext'
44287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44288   (eval $ac_try) 2>&5
44289   ac_status=$?
44290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44291   (exit $ac_status); }; }; then
44292   ac_cv_func_dbm_open=yes
44293 else
44294   echo "$as_me: failed program was:" >&5
44295 sed 's/^/| /' conftest.$ac_ext >&5
44296
44297 ac_cv_func_dbm_open=no
44298 fi
44299 rm -f conftest.err conftest.$ac_objext \
44300       conftest$ac_exeext conftest.$ac_ext
44301 fi
44302 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
44303 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
44304 if test $ac_cv_func_dbm_open = yes; then
44305   ol_cv_lib_ndbm=yes
44306 else
44307
44308                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
44309 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
44310 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
44311   echo $ECHO_N "(cached) $ECHO_C" >&6
44312 else
44313   ac_check_lib_save_LIBS=$LIBS
44314 LIBS="-lndbm  $LIBS"
44315 cat >conftest.$ac_ext <<_ACEOF
44316 /* confdefs.h.  */
44317 _ACEOF
44318 cat confdefs.h >>conftest.$ac_ext
44319 cat >>conftest.$ac_ext <<_ACEOF
44320 /* end confdefs.h.  */
44321
44322 /* Override any gcc2 internal prototype to avoid an error.  */
44323 #ifdef __cplusplus
44324 extern "C"
44325 #endif
44326 /* We use char because int might match the return type of a gcc2
44327    builtin and then its argument prototype would still apply.  */
44328 char dbm_open ();
44329 int
44330 main ()
44331 {
44332 dbm_open ();
44333   ;
44334   return 0;
44335 }
44336 _ACEOF
44337 rm -f conftest.$ac_objext conftest$ac_exeext
44338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44339   (eval $ac_link) 2>conftest.er1
44340   ac_status=$?
44341   grep -v '^ *+' conftest.er1 >conftest.err
44342   rm -f conftest.er1
44343   cat conftest.err >&5
44344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44345   (exit $ac_status); } &&
44346          { ac_try='test -z "$ac_c_werror_flag"
44347                          || test ! -s conftest.err'
44348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44349   (eval $ac_try) 2>&5
44350   ac_status=$?
44351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44352   (exit $ac_status); }; } &&
44353          { ac_try='test -s conftest$ac_exeext'
44354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44355   (eval $ac_try) 2>&5
44356   ac_status=$?
44357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44358   (exit $ac_status); }; }; then
44359   ac_cv_lib_ndbm_dbm_open=yes
44360 else
44361   echo "$as_me: failed program was:" >&5
44362 sed 's/^/| /' conftest.$ac_ext >&5
44363
44364 ac_cv_lib_ndbm_dbm_open=no
44365 fi
44366 rm -f conftest.err conftest.$ac_objext \
44367       conftest$ac_exeext conftest.$ac_ext
44368 LIBS=$ac_check_lib_save_LIBS
44369 fi
44370 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44371 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44372 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44373   ol_cv_lib_ndbm=-lndbm
44374 else
44375
44376                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44377 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44378 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44379   echo $ECHO_N "(cached) $ECHO_C" >&6
44380 else
44381   ac_check_lib_save_LIBS=$LIBS
44382 LIBS="-ldbm  $LIBS"
44383 cat >conftest.$ac_ext <<_ACEOF
44384 /* confdefs.h.  */
44385 _ACEOF
44386 cat confdefs.h >>conftest.$ac_ext
44387 cat >>conftest.$ac_ext <<_ACEOF
44388 /* end confdefs.h.  */
44389
44390 /* Override any gcc2 internal prototype to avoid an error.  */
44391 #ifdef __cplusplus
44392 extern "C"
44393 #endif
44394 /* We use char because int might match the return type of a gcc2
44395    builtin and then its argument prototype would still apply.  */
44396 char dbm_open ();
44397 int
44398 main ()
44399 {
44400 dbm_open ();
44401   ;
44402   return 0;
44403 }
44404 _ACEOF
44405 rm -f conftest.$ac_objext conftest$ac_exeext
44406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44407   (eval $ac_link) 2>conftest.er1
44408   ac_status=$?
44409   grep -v '^ *+' conftest.er1 >conftest.err
44410   rm -f conftest.er1
44411   cat conftest.err >&5
44412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44413   (exit $ac_status); } &&
44414          { ac_try='test -z "$ac_c_werror_flag"
44415                          || test ! -s conftest.err'
44416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44417   (eval $ac_try) 2>&5
44418   ac_status=$?
44419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44420   (exit $ac_status); }; } &&
44421          { ac_try='test -s conftest$ac_exeext'
44422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44423   (eval $ac_try) 2>&5
44424   ac_status=$?
44425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44426   (exit $ac_status); }; }; then
44427   ac_cv_lib_dbm_dbm_open=yes
44428 else
44429   echo "$as_me: failed program was:" >&5
44430 sed 's/^/| /' conftest.$ac_ext >&5
44431
44432 ac_cv_lib_dbm_dbm_open=no
44433 fi
44434 rm -f conftest.err conftest.$ac_objext \
44435       conftest$ac_exeext conftest.$ac_ext
44436 LIBS=$ac_check_lib_save_LIBS
44437 fi
44438 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44439 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44440 if test $ac_cv_lib_dbm_dbm_open = yes; then
44441   ol_cv_lib_ndbm=-ldbm
44442 else
44443   ol_cv_lib_ndbm=no
44444 fi
44445
44446 fi
44447
44448
44449 fi
44450
44451         LIBS="$ol_LIBS"
44452
44453 fi
44454 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44455 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44456
44457
44458
44459 for ac_header in ndbm.h
44460 do
44461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44463   echo "$as_me:$LINENO: checking for $ac_header" >&5
44464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44466   echo $ECHO_N "(cached) $ECHO_C" >&6
44467 fi
44468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44470 else
44471   # Is the header compilable?
44472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44474 cat >conftest.$ac_ext <<_ACEOF
44475 /* confdefs.h.  */
44476 _ACEOF
44477 cat confdefs.h >>conftest.$ac_ext
44478 cat >>conftest.$ac_ext <<_ACEOF
44479 /* end confdefs.h.  */
44480 $ac_includes_default
44481 #include <$ac_header>
44482 _ACEOF
44483 rm -f conftest.$ac_objext
44484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44485   (eval $ac_compile) 2>conftest.er1
44486   ac_status=$?
44487   grep -v '^ *+' conftest.er1 >conftest.err
44488   rm -f conftest.er1
44489   cat conftest.err >&5
44490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44491   (exit $ac_status); } &&
44492          { ac_try='test -z "$ac_c_werror_flag"
44493                          || test ! -s conftest.err'
44494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44495   (eval $ac_try) 2>&5
44496   ac_status=$?
44497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44498   (exit $ac_status); }; } &&
44499          { ac_try='test -s conftest.$ac_objext'
44500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44501   (eval $ac_try) 2>&5
44502   ac_status=$?
44503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44504   (exit $ac_status); }; }; then
44505   ac_header_compiler=yes
44506 else
44507   echo "$as_me: failed program was:" >&5
44508 sed 's/^/| /' conftest.$ac_ext >&5
44509
44510 ac_header_compiler=no
44511 fi
44512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44514 echo "${ECHO_T}$ac_header_compiler" >&6
44515
44516 # Is the header present?
44517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44519 cat >conftest.$ac_ext <<_ACEOF
44520 /* confdefs.h.  */
44521 _ACEOF
44522 cat confdefs.h >>conftest.$ac_ext
44523 cat >>conftest.$ac_ext <<_ACEOF
44524 /* end confdefs.h.  */
44525 #include <$ac_header>
44526 _ACEOF
44527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44528   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44529   ac_status=$?
44530   grep -v '^ *+' conftest.er1 >conftest.err
44531   rm -f conftest.er1
44532   cat conftest.err >&5
44533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44534   (exit $ac_status); } >/dev/null; then
44535   if test -s conftest.err; then
44536     ac_cpp_err=$ac_c_preproc_warn_flag
44537     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44538   else
44539     ac_cpp_err=
44540   fi
44541 else
44542   ac_cpp_err=yes
44543 fi
44544 if test -z "$ac_cpp_err"; then
44545   ac_header_preproc=yes
44546 else
44547   echo "$as_me: failed program was:" >&5
44548 sed 's/^/| /' conftest.$ac_ext >&5
44549
44550   ac_header_preproc=no
44551 fi
44552 rm -f conftest.err conftest.$ac_ext
44553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44554 echo "${ECHO_T}$ac_header_preproc" >&6
44555
44556 # So?  What about this header?
44557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44558   yes:no: )
44559     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44561     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44563     ac_header_preproc=yes
44564     ;;
44565   no:yes:* )
44566     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44568     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44569 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44570     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44572     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44573 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44576     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44578     (
44579       cat <<\_ASBOX
44580 ## ------------------------------------------ ##
44581 ## Report this to the AC_PACKAGE_NAME lists.  ##
44582 ## ------------------------------------------ ##
44583 _ASBOX
44584     ) |
44585       sed "s/^/$as_me: WARNING:     /" >&2
44586     ;;
44587 esac
44588 echo "$as_me:$LINENO: checking for $ac_header" >&5
44589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44591   echo $ECHO_N "(cached) $ECHO_C" >&6
44592 else
44593   eval "$as_ac_Header=\$ac_header_preproc"
44594 fi
44595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44597
44598 fi
44599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44600   cat >>confdefs.h <<_ACEOF
44601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44602 _ACEOF
44603
44604 fi
44605
44606 done
44607
44608  echo "$as_me:$LINENO: checking for db" >&5
44609 echo $ECHO_N "checking for db... $ECHO_C" >&6
44610 if test "${ol_cv_ndbm+set}" = set; then
44611   echo $ECHO_N "(cached) $ECHO_C" >&6
44612 else
44613
44614         if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44615                 ol_cv_ndbm=no
44616         else
44617                 ol_cv_ndbm=yes
44618         fi
44619
44620 fi
44621 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44622 echo "${ECHO_T}$ol_cv_ndbm" >&6
44623  if test $ol_cv_ndbm = yes ; then
44624
44625 cat >>confdefs.h <<\_ACEOF
44626 #define HAVE_NDBM 1
44627 _ACEOF
44628
44629  fi
44630
44631
44632         if test $ol_cv_ndbm = yes ; then
44633                 ol_link_ldbm=ndbm
44634                 ol_enable_ldbm_api=ndbm
44635
44636                 if test $ol_cv_lib_ndbm != yes ; then
44637                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44638                 fi
44639         fi
44640 fi
44641
44642 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44643         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44644 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44645    { (exit 1); exit 1; }; }
44646 fi
44647
44648 if test $ol_enable_bdb = yes -o \
44649         $ol_enable_hdb = yes -o \
44650         $ol_enable_ldbm = yes ; then
44651         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44652 fi
44653
44654
44655 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44656         BUILD_LIBS_DYNAMIC=shared
44657
44658 cat >>confdefs.h <<\_ACEOF
44659 #define LDAP_LIBS_DYNAMIC 1
44660 _ACEOF
44661
44662         LTSTATIC=""
44663 else
44664         BUILD_LIBS_DYNAMIC=static
44665         LTSTATIC="-static"
44666 fi
44667
44668 if test $ol_enable_wrappers != no ; then
44669
44670 for ac_header in tcpd.h
44671 do
44672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44674   echo "$as_me:$LINENO: checking for $ac_header" >&5
44675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44677   echo $ECHO_N "(cached) $ECHO_C" >&6
44678 fi
44679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44681 else
44682   # Is the header compilable?
44683 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44684 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44685 cat >conftest.$ac_ext <<_ACEOF
44686 /* confdefs.h.  */
44687 _ACEOF
44688 cat confdefs.h >>conftest.$ac_ext
44689 cat >>conftest.$ac_ext <<_ACEOF
44690 /* end confdefs.h.  */
44691 $ac_includes_default
44692 #include <$ac_header>
44693 _ACEOF
44694 rm -f conftest.$ac_objext
44695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44696   (eval $ac_compile) 2>conftest.er1
44697   ac_status=$?
44698   grep -v '^ *+' conftest.er1 >conftest.err
44699   rm -f conftest.er1
44700   cat conftest.err >&5
44701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44702   (exit $ac_status); } &&
44703          { ac_try='test -z "$ac_c_werror_flag"
44704                          || test ! -s conftest.err'
44705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44706   (eval $ac_try) 2>&5
44707   ac_status=$?
44708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44709   (exit $ac_status); }; } &&
44710          { ac_try='test -s conftest.$ac_objext'
44711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44712   (eval $ac_try) 2>&5
44713   ac_status=$?
44714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44715   (exit $ac_status); }; }; then
44716   ac_header_compiler=yes
44717 else
44718   echo "$as_me: failed program was:" >&5
44719 sed 's/^/| /' conftest.$ac_ext >&5
44720
44721 ac_header_compiler=no
44722 fi
44723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44725 echo "${ECHO_T}$ac_header_compiler" >&6
44726
44727 # Is the header present?
44728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44730 cat >conftest.$ac_ext <<_ACEOF
44731 /* confdefs.h.  */
44732 _ACEOF
44733 cat confdefs.h >>conftest.$ac_ext
44734 cat >>conftest.$ac_ext <<_ACEOF
44735 /* end confdefs.h.  */
44736 #include <$ac_header>
44737 _ACEOF
44738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44739   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44740   ac_status=$?
44741   grep -v '^ *+' conftest.er1 >conftest.err
44742   rm -f conftest.er1
44743   cat conftest.err >&5
44744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44745   (exit $ac_status); } >/dev/null; then
44746   if test -s conftest.err; then
44747     ac_cpp_err=$ac_c_preproc_warn_flag
44748     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44749   else
44750     ac_cpp_err=
44751   fi
44752 else
44753   ac_cpp_err=yes
44754 fi
44755 if test -z "$ac_cpp_err"; then
44756   ac_header_preproc=yes
44757 else
44758   echo "$as_me: failed program was:" >&5
44759 sed 's/^/| /' conftest.$ac_ext >&5
44760
44761   ac_header_preproc=no
44762 fi
44763 rm -f conftest.err conftest.$ac_ext
44764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44765 echo "${ECHO_T}$ac_header_preproc" >&6
44766
44767 # So?  What about this header?
44768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44769   yes:no: )
44770     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44772     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44774     ac_header_preproc=yes
44775     ;;
44776   no:yes:* )
44777     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44779     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44780 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44781     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44783     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44784 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44785     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44787     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44789     (
44790       cat <<\_ASBOX
44791 ## ------------------------------------------ ##
44792 ## Report this to the AC_PACKAGE_NAME lists.  ##
44793 ## ------------------------------------------ ##
44794 _ASBOX
44795     ) |
44796       sed "s/^/$as_me: WARNING:     /" >&2
44797     ;;
44798 esac
44799 echo "$as_me:$LINENO: checking for $ac_header" >&5
44800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44802   echo $ECHO_N "(cached) $ECHO_C" >&6
44803 else
44804   eval "$as_ac_Header=\$ac_header_preproc"
44805 fi
44806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44808
44809 fi
44810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44811   cat >>confdefs.h <<_ACEOF
44812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44813 _ACEOF
44814
44815                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44816 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44817                 save_LIBS="$LIBS"
44818                 LIBS="$LIBS -lwrap"
44819                 cat >conftest.$ac_ext <<_ACEOF
44820 /* confdefs.h.  */
44821 _ACEOF
44822 cat confdefs.h >>conftest.$ac_ext
44823 cat >>conftest.$ac_ext <<_ACEOF
44824 /* end confdefs.h.  */
44825
44826 #include <tcpd.h>
44827 int allow_severity = 0;
44828 int deny_severity  = 0;
44829
44830 struct request_info *req;
44831
44832 int
44833 main ()
44834 {
44835
44836 hosts_access(req)
44837
44838   ;
44839   return 0;
44840 }
44841 _ACEOF
44842 rm -f conftest.$ac_objext conftest$ac_exeext
44843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44844   (eval $ac_link) 2>conftest.er1
44845   ac_status=$?
44846   grep -v '^ *+' conftest.er1 >conftest.err
44847   rm -f conftest.er1
44848   cat conftest.err >&5
44849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44850   (exit $ac_status); } &&
44851          { ac_try='test -z "$ac_c_werror_flag"
44852                          || test ! -s conftest.err'
44853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44854   (eval $ac_try) 2>&5
44855   ac_status=$?
44856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44857   (exit $ac_status); }; } &&
44858          { ac_try='test -s conftest$ac_exeext'
44859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44860   (eval $ac_try) 2>&5
44861   ac_status=$?
44862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44863   (exit $ac_status); }; }; then
44864   echo "$as_me:$LINENO: result: -lwrap" >&5
44865 echo "${ECHO_T}-lwrap" >&6
44866                 have_wrappers=yes
44867                 LIBS="$save_LIBS"
44868 else
44869   echo "$as_me: failed program was:" >&5
44870 sed 's/^/| /' conftest.$ac_ext >&5
44871
44872
44873                                 LIBS="$LIBS -lnsl"
44874                 cat >conftest.$ac_ext <<_ACEOF
44875 /* confdefs.h.  */
44876 _ACEOF
44877 cat confdefs.h >>conftest.$ac_ext
44878 cat >>conftest.$ac_ext <<_ACEOF
44879 /* end confdefs.h.  */
44880
44881 #include <tcpd.h>
44882 int allow_severity = 0;
44883 int deny_severity  = 0;
44884
44885 struct request_info *req;
44886
44887 int
44888 main ()
44889 {
44890
44891 hosts_access(req)
44892
44893   ;
44894   return 0;
44895 }
44896 _ACEOF
44897 rm -f conftest.$ac_objext conftest$ac_exeext
44898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44899   (eval $ac_link) 2>conftest.er1
44900   ac_status=$?
44901   grep -v '^ *+' conftest.er1 >conftest.err
44902   rm -f conftest.er1
44903   cat conftest.err >&5
44904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44905   (exit $ac_status); } &&
44906          { ac_try='test -z "$ac_c_werror_flag"
44907                          || test ! -s conftest.err'
44908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44909   (eval $ac_try) 2>&5
44910   ac_status=$?
44911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44912   (exit $ac_status); }; } &&
44913          { ac_try='test -s conftest$ac_exeext'
44914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44915   (eval $ac_try) 2>&5
44916   ac_status=$?
44917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44918   (exit $ac_status); }; }; then
44919   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44920 echo "${ECHO_T}-lwrap -lnsl" >&6
44921                 have_wrappers=yes
44922                 LIBS="$save_LIBS -lnsl"
44923 else
44924   echo "$as_me: failed program was:" >&5
44925 sed 's/^/| /' conftest.$ac_ext >&5
44926
44927
44928                 echo "$as_me:$LINENO: result: no" >&5
44929 echo "${ECHO_T}no" >&6
44930                 have_wrappers=no
44931                 LIBS=$save_LIBS
44932 fi
44933 rm -f conftest.err conftest.$ac_objext \
44934       conftest$ac_exeext conftest.$ac_ext
44935 fi
44936 rm -f conftest.err conftest.$ac_objext \
44937       conftest$ac_exeext conftest.$ac_ext
44938 else
44939   have_wrappers=no
44940 fi
44941
44942 done
44943
44944
44945         if test $have_wrappers = yes ; then
44946
44947 cat >>confdefs.h <<\_ACEOF
44948 #define HAVE_TCPD 1
44949 _ACEOF
44950
44951                 WRAP_LIBS="-lwrap"
44952         elif test $ol_enable_wrappers = yes ; then
44953                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44954 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44955    { (exit 1); exit 1; }; }
44956         else
44957                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44958 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44959                 WRAP_LIBS=""
44960         fi
44961 fi
44962
44963 if test $ol_enable_syslog != no ; then
44964         echo "$as_me:$LINENO: checking for openlog" >&5
44965 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44966 if test "${ac_cv_func_openlog+set}" = set; then
44967   echo $ECHO_N "(cached) $ECHO_C" >&6
44968 else
44969   cat >conftest.$ac_ext <<_ACEOF
44970 /* confdefs.h.  */
44971 _ACEOF
44972 cat confdefs.h >>conftest.$ac_ext
44973 cat >>conftest.$ac_ext <<_ACEOF
44974 /* end confdefs.h.  */
44975 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44976    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44977 #define openlog innocuous_openlog
44978
44979 /* System header to define __stub macros and hopefully few prototypes,
44980     which can conflict with char openlog (); below.
44981     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44982     <limits.h> exists even on freestanding compilers.  */
44983
44984 #ifdef __STDC__
44985 # include <limits.h>
44986 #else
44987 # include <assert.h>
44988 #endif
44989
44990 #undef openlog
44991
44992 /* Override any gcc2 internal prototype to avoid an error.  */
44993 #ifdef __cplusplus
44994 extern "C"
44995 {
44996 #endif
44997 /* We use char because int might match the return type of a gcc2
44998    builtin and then its argument prototype would still apply.  */
44999 char openlog ();
45000 /* The GNU C library defines this for functions which it implements
45001     to always fail with ENOSYS.  Some functions are actually named
45002     something starting with __ and the normal name is an alias.  */
45003 #if defined (__stub_openlog) || defined (__stub___openlog)
45004 choke me
45005 #else
45006 char (*f) () = openlog;
45007 #endif
45008 #ifdef __cplusplus
45009 }
45010 #endif
45011
45012 int
45013 main ()
45014 {
45015 return f != openlog;
45016   ;
45017   return 0;
45018 }
45019 _ACEOF
45020 rm -f conftest.$ac_objext conftest$ac_exeext
45021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45022   (eval $ac_link) 2>conftest.er1
45023   ac_status=$?
45024   grep -v '^ *+' conftest.er1 >conftest.err
45025   rm -f conftest.er1
45026   cat conftest.err >&5
45027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45028   (exit $ac_status); } &&
45029          { ac_try='test -z "$ac_c_werror_flag"
45030                          || test ! -s conftest.err'
45031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45032   (eval $ac_try) 2>&5
45033   ac_status=$?
45034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45035   (exit $ac_status); }; } &&
45036          { ac_try='test -s conftest$ac_exeext'
45037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45038   (eval $ac_try) 2>&5
45039   ac_status=$?
45040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45041   (exit $ac_status); }; }; then
45042   ac_cv_func_openlog=yes
45043 else
45044   echo "$as_me: failed program was:" >&5
45045 sed 's/^/| /' conftest.$ac_ext >&5
45046
45047 ac_cv_func_openlog=no
45048 fi
45049 rm -f conftest.err conftest.$ac_objext \
45050       conftest$ac_exeext conftest.$ac_ext
45051 fi
45052 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
45053 echo "${ECHO_T}$ac_cv_func_openlog" >&6
45054
45055         if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
45056                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
45057 echo "$as_me: error: could not find syslog" >&2;}
45058    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
45059         fi
45060         ol_enable_syslog=$ac_cv_func_openlog
45061 fi
45062
45063 ol_link_sql=no
45064 if test $ol_enable_sql != no ; then
45065
45066
45067 for ac_header in sql.h sqlext.h
45068 do
45069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45071   echo "$as_me:$LINENO: checking for $ac_header" >&5
45072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45074   echo $ECHO_N "(cached) $ECHO_C" >&6
45075 fi
45076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45078 else
45079   # Is the header compilable?
45080 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45082 cat >conftest.$ac_ext <<_ACEOF
45083 /* confdefs.h.  */
45084 _ACEOF
45085 cat confdefs.h >>conftest.$ac_ext
45086 cat >>conftest.$ac_ext <<_ACEOF
45087 /* end confdefs.h.  */
45088 $ac_includes_default
45089 #include <$ac_header>
45090 _ACEOF
45091 rm -f conftest.$ac_objext
45092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45093   (eval $ac_compile) 2>conftest.er1
45094   ac_status=$?
45095   grep -v '^ *+' conftest.er1 >conftest.err
45096   rm -f conftest.er1
45097   cat conftest.err >&5
45098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45099   (exit $ac_status); } &&
45100          { ac_try='test -z "$ac_c_werror_flag"
45101                          || test ! -s conftest.err'
45102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45103   (eval $ac_try) 2>&5
45104   ac_status=$?
45105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45106   (exit $ac_status); }; } &&
45107          { ac_try='test -s conftest.$ac_objext'
45108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45109   (eval $ac_try) 2>&5
45110   ac_status=$?
45111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45112   (exit $ac_status); }; }; then
45113   ac_header_compiler=yes
45114 else
45115   echo "$as_me: failed program was:" >&5
45116 sed 's/^/| /' conftest.$ac_ext >&5
45117
45118 ac_header_compiler=no
45119 fi
45120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45122 echo "${ECHO_T}$ac_header_compiler" >&6
45123
45124 # Is the header present?
45125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45127 cat >conftest.$ac_ext <<_ACEOF
45128 /* confdefs.h.  */
45129 _ACEOF
45130 cat confdefs.h >>conftest.$ac_ext
45131 cat >>conftest.$ac_ext <<_ACEOF
45132 /* end confdefs.h.  */
45133 #include <$ac_header>
45134 _ACEOF
45135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45136   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45137   ac_status=$?
45138   grep -v '^ *+' conftest.er1 >conftest.err
45139   rm -f conftest.er1
45140   cat conftest.err >&5
45141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45142   (exit $ac_status); } >/dev/null; then
45143   if test -s conftest.err; then
45144     ac_cpp_err=$ac_c_preproc_warn_flag
45145     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45146   else
45147     ac_cpp_err=
45148   fi
45149 else
45150   ac_cpp_err=yes
45151 fi
45152 if test -z "$ac_cpp_err"; then
45153   ac_header_preproc=yes
45154 else
45155   echo "$as_me: failed program was:" >&5
45156 sed 's/^/| /' conftest.$ac_ext >&5
45157
45158   ac_header_preproc=no
45159 fi
45160 rm -f conftest.err conftest.$ac_ext
45161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45162 echo "${ECHO_T}$ac_header_preproc" >&6
45163
45164 # So?  What about this header?
45165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45166   yes:no: )
45167     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45169     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45171     ac_header_preproc=yes
45172     ;;
45173   no:yes:* )
45174     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45176     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45177 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45178     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45180     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45181 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45184     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45186     (
45187       cat <<\_ASBOX
45188 ## ------------------------------------------ ##
45189 ## Report this to the AC_PACKAGE_NAME lists.  ##
45190 ## ------------------------------------------ ##
45191 _ASBOX
45192     ) |
45193       sed "s/^/$as_me: WARNING:     /" >&2
45194     ;;
45195 esac
45196 echo "$as_me:$LINENO: checking for $ac_header" >&5
45197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45199   echo $ECHO_N "(cached) $ECHO_C" >&6
45200 else
45201   eval "$as_ac_Header=\$ac_header_preproc"
45202 fi
45203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45205
45206 fi
45207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45208   cat >>confdefs.h <<_ACEOF
45209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45210 _ACEOF
45211
45212 else
45213
45214                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
45215 echo "$as_me: error: could not locate SQL headers" >&2;}
45216    { (exit 1); exit 1; }; }
45217
45218 fi
45219
45220 done
45221
45222
45223         sql_LIBS="$LIBS"
45224         LIBS="$LTHREAD_LIBS"
45225
45226         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
45227 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
45228 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
45229   echo $ECHO_N "(cached) $ECHO_C" >&6
45230 else
45231   ac_check_lib_save_LIBS=$LIBS
45232 LIBS="-liodbc  $LIBS"
45233 cat >conftest.$ac_ext <<_ACEOF
45234 /* confdefs.h.  */
45235 _ACEOF
45236 cat confdefs.h >>conftest.$ac_ext
45237 cat >>conftest.$ac_ext <<_ACEOF
45238 /* end confdefs.h.  */
45239
45240 /* Override any gcc2 internal prototype to avoid an error.  */
45241 #ifdef __cplusplus
45242 extern "C"
45243 #endif
45244 /* We use char because int might match the return type of a gcc2
45245    builtin and then its argument prototype would still apply.  */
45246 char SQLDriverConnect ();
45247 int
45248 main ()
45249 {
45250 SQLDriverConnect ();
45251   ;
45252   return 0;
45253 }
45254 _ACEOF
45255 rm -f conftest.$ac_objext conftest$ac_exeext
45256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45257   (eval $ac_link) 2>conftest.er1
45258   ac_status=$?
45259   grep -v '^ *+' conftest.er1 >conftest.err
45260   rm -f conftest.er1
45261   cat conftest.err >&5
45262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45263   (exit $ac_status); } &&
45264          { ac_try='test -z "$ac_c_werror_flag"
45265                          || test ! -s conftest.err'
45266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45267   (eval $ac_try) 2>&5
45268   ac_status=$?
45269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45270   (exit $ac_status); }; } &&
45271          { ac_try='test -s conftest$ac_exeext'
45272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45273   (eval $ac_try) 2>&5
45274   ac_status=$?
45275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45276   (exit $ac_status); }; }; then
45277   ac_cv_lib_iodbc_SQLDriverConnect=yes
45278 else
45279   echo "$as_me: failed program was:" >&5
45280 sed 's/^/| /' conftest.$ac_ext >&5
45281
45282 ac_cv_lib_iodbc_SQLDriverConnect=no
45283 fi
45284 rm -f conftest.err conftest.$ac_objext \
45285       conftest$ac_exeext conftest.$ac_ext
45286 LIBS=$ac_check_lib_save_LIBS
45287 fi
45288 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
45289 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
45290 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
45291   have_iodbc=yes
45292 else
45293   have_iodbc=no
45294 fi
45295
45296         if test $have_iodbc = yes ; then
45297                 ol_link_sql="-liodbc"
45298         else
45299                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
45300 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
45301 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
45302   echo $ECHO_N "(cached) $ECHO_C" >&6
45303 else
45304   ac_check_lib_save_LIBS=$LIBS
45305 LIBS="-lodbc  $LIBS"
45306 cat >conftest.$ac_ext <<_ACEOF
45307 /* confdefs.h.  */
45308 _ACEOF
45309 cat confdefs.h >>conftest.$ac_ext
45310 cat >>conftest.$ac_ext <<_ACEOF
45311 /* end confdefs.h.  */
45312
45313 /* Override any gcc2 internal prototype to avoid an error.  */
45314 #ifdef __cplusplus
45315 extern "C"
45316 #endif
45317 /* We use char because int might match the return type of a gcc2
45318    builtin and then its argument prototype would still apply.  */
45319 char SQLDriverConnect ();
45320 int
45321 main ()
45322 {
45323 SQLDriverConnect ();
45324   ;
45325   return 0;
45326 }
45327 _ACEOF
45328 rm -f conftest.$ac_objext conftest$ac_exeext
45329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45330   (eval $ac_link) 2>conftest.er1
45331   ac_status=$?
45332   grep -v '^ *+' conftest.er1 >conftest.err
45333   rm -f conftest.er1
45334   cat conftest.err >&5
45335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45336   (exit $ac_status); } &&
45337          { ac_try='test -z "$ac_c_werror_flag"
45338                          || test ! -s conftest.err'
45339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45340   (eval $ac_try) 2>&5
45341   ac_status=$?
45342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45343   (exit $ac_status); }; } &&
45344          { ac_try='test -s conftest$ac_exeext'
45345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45346   (eval $ac_try) 2>&5
45347   ac_status=$?
45348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45349   (exit $ac_status); }; }; then
45350   ac_cv_lib_odbc_SQLDriverConnect=yes
45351 else
45352   echo "$as_me: failed program was:" >&5
45353 sed 's/^/| /' conftest.$ac_ext >&5
45354
45355 ac_cv_lib_odbc_SQLDriverConnect=no
45356 fi
45357 rm -f conftest.err conftest.$ac_objext \
45358       conftest$ac_exeext conftest.$ac_ext
45359 LIBS=$ac_check_lib_save_LIBS
45360 fi
45361 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45362 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45363 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45364   have_odbc=yes
45365 else
45366   have_odbc=no
45367 fi
45368
45369                 if test $have_odbc = yes ; then
45370                         ol_link_sql="-lodbc"
45371                 fi
45372         fi
45373
45374         LIBS="$sql_LIBS"
45375
45376         if test $ol_link_sql != no ; then
45377                 SLAPD_SQL_LIBS="$ol_link_sql"
45378
45379         elif test $ol_enable_sql != auto ; then
45380                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45381 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45382    { (exit 1); exit 1; }; }
45383         fi
45384 fi
45385
45386 WITH_SASL=no
45387 ol_link_sasl=no
45388 ol_link_spasswd=no
45389 if test $ol_with_cyrus_sasl != no ; then
45390
45391
45392 for ac_header in sasl/sasl.h sasl.h
45393 do
45394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45396   echo "$as_me:$LINENO: checking for $ac_header" >&5
45397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45399   echo $ECHO_N "(cached) $ECHO_C" >&6
45400 fi
45401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45403 else
45404   # Is the header compilable?
45405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45407 cat >conftest.$ac_ext <<_ACEOF
45408 /* confdefs.h.  */
45409 _ACEOF
45410 cat confdefs.h >>conftest.$ac_ext
45411 cat >>conftest.$ac_ext <<_ACEOF
45412 /* end confdefs.h.  */
45413 $ac_includes_default
45414 #include <$ac_header>
45415 _ACEOF
45416 rm -f conftest.$ac_objext
45417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45418   (eval $ac_compile) 2>conftest.er1
45419   ac_status=$?
45420   grep -v '^ *+' conftest.er1 >conftest.err
45421   rm -f conftest.er1
45422   cat conftest.err >&5
45423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45424   (exit $ac_status); } &&
45425          { ac_try='test -z "$ac_c_werror_flag"
45426                          || test ! -s conftest.err'
45427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45428   (eval $ac_try) 2>&5
45429   ac_status=$?
45430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45431   (exit $ac_status); }; } &&
45432          { ac_try='test -s conftest.$ac_objext'
45433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45434   (eval $ac_try) 2>&5
45435   ac_status=$?
45436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45437   (exit $ac_status); }; }; then
45438   ac_header_compiler=yes
45439 else
45440   echo "$as_me: failed program was:" >&5
45441 sed 's/^/| /' conftest.$ac_ext >&5
45442
45443 ac_header_compiler=no
45444 fi
45445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45447 echo "${ECHO_T}$ac_header_compiler" >&6
45448
45449 # Is the header present?
45450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45452 cat >conftest.$ac_ext <<_ACEOF
45453 /* confdefs.h.  */
45454 _ACEOF
45455 cat confdefs.h >>conftest.$ac_ext
45456 cat >>conftest.$ac_ext <<_ACEOF
45457 /* end confdefs.h.  */
45458 #include <$ac_header>
45459 _ACEOF
45460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45461   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45462   ac_status=$?
45463   grep -v '^ *+' conftest.er1 >conftest.err
45464   rm -f conftest.er1
45465   cat conftest.err >&5
45466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45467   (exit $ac_status); } >/dev/null; then
45468   if test -s conftest.err; then
45469     ac_cpp_err=$ac_c_preproc_warn_flag
45470     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45471   else
45472     ac_cpp_err=
45473   fi
45474 else
45475   ac_cpp_err=yes
45476 fi
45477 if test -z "$ac_cpp_err"; then
45478   ac_header_preproc=yes
45479 else
45480   echo "$as_me: failed program was:" >&5
45481 sed 's/^/| /' conftest.$ac_ext >&5
45482
45483   ac_header_preproc=no
45484 fi
45485 rm -f conftest.err conftest.$ac_ext
45486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45487 echo "${ECHO_T}$ac_header_preproc" >&6
45488
45489 # So?  What about this header?
45490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45491   yes:no: )
45492     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45496     ac_header_preproc=yes
45497     ;;
45498   no:yes:* )
45499     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45501     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45502 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45503     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45505     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45506 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45507     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45509     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45511     (
45512       cat <<\_ASBOX
45513 ## ------------------------------------------ ##
45514 ## Report this to the AC_PACKAGE_NAME lists.  ##
45515 ## ------------------------------------------ ##
45516 _ASBOX
45517     ) |
45518       sed "s/^/$as_me: WARNING:     /" >&2
45519     ;;
45520 esac
45521 echo "$as_me:$LINENO: checking for $ac_header" >&5
45522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45524   echo $ECHO_N "(cached) $ECHO_C" >&6
45525 else
45526   eval "$as_ac_Header=\$ac_header_preproc"
45527 fi
45528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45530
45531 fi
45532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45533   cat >>confdefs.h <<_ACEOF
45534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45535 _ACEOF
45536
45537 fi
45538
45539 done
45540
45541
45542         if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45543                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45544 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45545 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45546   echo $ECHO_N "(cached) $ECHO_C" >&6
45547 else
45548   ac_check_lib_save_LIBS=$LIBS
45549 LIBS="-lsasl2  $LIBS"
45550 cat >conftest.$ac_ext <<_ACEOF
45551 /* confdefs.h.  */
45552 _ACEOF
45553 cat confdefs.h >>conftest.$ac_ext
45554 cat >>conftest.$ac_ext <<_ACEOF
45555 /* end confdefs.h.  */
45556
45557 /* Override any gcc2 internal prototype to avoid an error.  */
45558 #ifdef __cplusplus
45559 extern "C"
45560 #endif
45561 /* We use char because int might match the return type of a gcc2
45562    builtin and then its argument prototype would still apply.  */
45563 char sasl_client_init ();
45564 int
45565 main ()
45566 {
45567 sasl_client_init ();
45568   ;
45569   return 0;
45570 }
45571 _ACEOF
45572 rm -f conftest.$ac_objext conftest$ac_exeext
45573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45574   (eval $ac_link) 2>conftest.er1
45575   ac_status=$?
45576   grep -v '^ *+' conftest.er1 >conftest.err
45577   rm -f conftest.er1
45578   cat conftest.err >&5
45579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45580   (exit $ac_status); } &&
45581          { ac_try='test -z "$ac_c_werror_flag"
45582                          || test ! -s conftest.err'
45583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45584   (eval $ac_try) 2>&5
45585   ac_status=$?
45586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45587   (exit $ac_status); }; } &&
45588          { ac_try='test -s conftest$ac_exeext'
45589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45590   (eval $ac_try) 2>&5
45591   ac_status=$?
45592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45593   (exit $ac_status); }; }; then
45594   ac_cv_lib_sasl2_sasl_client_init=yes
45595 else
45596   echo "$as_me: failed program was:" >&5
45597 sed 's/^/| /' conftest.$ac_ext >&5
45598
45599 ac_cv_lib_sasl2_sasl_client_init=no
45600 fi
45601 rm -f conftest.err conftest.$ac_objext \
45602       conftest$ac_exeext conftest.$ac_ext
45603 LIBS=$ac_check_lib_save_LIBS
45604 fi
45605 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45606 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45607 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45608   ol_link_sasl="-lsasl2"
45609 else
45610   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45611 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45612 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45613   echo $ECHO_N "(cached) $ECHO_C" >&6
45614 else
45615   ac_check_lib_save_LIBS=$LIBS
45616 LIBS="-lsasl  $LIBS"
45617 cat >conftest.$ac_ext <<_ACEOF
45618 /* confdefs.h.  */
45619 _ACEOF
45620 cat confdefs.h >>conftest.$ac_ext
45621 cat >>conftest.$ac_ext <<_ACEOF
45622 /* end confdefs.h.  */
45623
45624 /* Override any gcc2 internal prototype to avoid an error.  */
45625 #ifdef __cplusplus
45626 extern "C"
45627 #endif
45628 /* We use char because int might match the return type of a gcc2
45629    builtin and then its argument prototype would still apply.  */
45630 char sasl_client_init ();
45631 int
45632 main ()
45633 {
45634 sasl_client_init ();
45635   ;
45636   return 0;
45637 }
45638 _ACEOF
45639 rm -f conftest.$ac_objext conftest$ac_exeext
45640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45641   (eval $ac_link) 2>conftest.er1
45642   ac_status=$?
45643   grep -v '^ *+' conftest.er1 >conftest.err
45644   rm -f conftest.er1
45645   cat conftest.err >&5
45646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45647   (exit $ac_status); } &&
45648          { ac_try='test -z "$ac_c_werror_flag"
45649                          || test ! -s conftest.err'
45650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45651   (eval $ac_try) 2>&5
45652   ac_status=$?
45653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45654   (exit $ac_status); }; } &&
45655          { ac_try='test -s conftest$ac_exeext'
45656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45657   (eval $ac_try) 2>&5
45658   ac_status=$?
45659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45660   (exit $ac_status); }; }; then
45661   ac_cv_lib_sasl_sasl_client_init=yes
45662 else
45663   echo "$as_me: failed program was:" >&5
45664 sed 's/^/| /' conftest.$ac_ext >&5
45665
45666 ac_cv_lib_sasl_sasl_client_init=no
45667 fi
45668 rm -f conftest.err conftest.$ac_objext \
45669       conftest$ac_exeext conftest.$ac_ext
45670 LIBS=$ac_check_lib_save_LIBS
45671 fi
45672 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45673 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45674 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45675   ol_link_sasl="-lsasl"
45676 fi
45677
45678 fi
45679
45680         fi
45681
45682         if test $ol_link_sasl = no ; then
45683                 if test $ol_with_cyrus_sasl != auto ; then
45684                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45685 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45686    { (exit 1); exit 1; }; }
45687                 else
45688                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45689 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45690                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45691 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45692                         if test $ol_link_tls = no ; then
45693                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45694 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45695                         fi
45696                 fi
45697         else
45698                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45699 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45700 if test "${ol_cv_sasl_compat+set}" = set; then
45701   echo $ECHO_N "(cached) $ECHO_C" >&6
45702 else
45703
45704         cat >conftest.$ac_ext <<_ACEOF
45705 /* confdefs.h.  */
45706 _ACEOF
45707 cat confdefs.h >>conftest.$ac_ext
45708 cat >>conftest.$ac_ext <<_ACEOF
45709 /* end confdefs.h.  */
45710
45711 #ifdef HAVE_SASL_SASL_H
45712 #include <sasl/sasl.h>
45713 #else
45714 #include <sasl.h>
45715 #endif
45716
45717 /* Require 2.1.15+ */
45718 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
45719         char *__sasl_compat = "2.2+ or better okay (we guess)";
45720 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
45721         && SASL_VERSION_STEP >=15
45722         char *__sasl_compat = "2.1.15+ or better okay";
45723 #endif
45724
45725 _ACEOF
45726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45727   $EGREP "__sasl_compat" >/dev/null 2>&1; then
45728   ol_cv_sasl_compat=yes
45729 else
45730   ol_cv_sasl_compat=no
45731 fi
45732 rm -f conftest*
45733
45734 fi
45735 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45736 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45737
45738                 if test $ol_cv_sasl_compat = no ; then
45739                         ol_link_sasl=no
45740                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45741 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45742    { (exit 1); exit 1; }; }
45743                 fi
45744
45745
45746 cat >>confdefs.h <<\_ACEOF
45747 #define HAVE_CYRUS_SASL 1
45748 _ACEOF
45749
45750                 SASL_LIBS="$ol_link_sasl"
45751                 if test $ol_enable_spasswd != no ; then
45752                         ol_link_spasswd=yes
45753                 fi
45754
45755                 ac_save_LIBS="$LIBS"
45756                 LIBS="$LIBS $ol_link_sasl"
45757                 echo "$as_me:$LINENO: checking for sasl_version" >&5
45758 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45759 if test "${ac_cv_func_sasl_version+set}" = set; then
45760   echo $ECHO_N "(cached) $ECHO_C" >&6
45761 else
45762   cat >conftest.$ac_ext <<_ACEOF
45763 /* confdefs.h.  */
45764 _ACEOF
45765 cat confdefs.h >>conftest.$ac_ext
45766 cat >>conftest.$ac_ext <<_ACEOF
45767 /* end confdefs.h.  */
45768 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45770 #define sasl_version innocuous_sasl_version
45771
45772 /* System header to define __stub macros and hopefully few prototypes,
45773     which can conflict with char sasl_version (); below.
45774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45775     <limits.h> exists even on freestanding compilers.  */
45776
45777 #ifdef __STDC__
45778 # include <limits.h>
45779 #else
45780 # include <assert.h>
45781 #endif
45782
45783 #undef sasl_version
45784
45785 /* Override any gcc2 internal prototype to avoid an error.  */
45786 #ifdef __cplusplus
45787 extern "C"
45788 {
45789 #endif
45790 /* We use char because int might match the return type of a gcc2
45791    builtin and then its argument prototype would still apply.  */
45792 char sasl_version ();
45793 /* The GNU C library defines this for functions which it implements
45794     to always fail with ENOSYS.  Some functions are actually named
45795     something starting with __ and the normal name is an alias.  */
45796 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45797 choke me
45798 #else
45799 char (*f) () = sasl_version;
45800 #endif
45801 #ifdef __cplusplus
45802 }
45803 #endif
45804
45805 int
45806 main ()
45807 {
45808 return f != sasl_version;
45809   ;
45810   return 0;
45811 }
45812 _ACEOF
45813 rm -f conftest.$ac_objext conftest$ac_exeext
45814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45815   (eval $ac_link) 2>conftest.er1
45816   ac_status=$?
45817   grep -v '^ *+' conftest.er1 >conftest.err
45818   rm -f conftest.er1
45819   cat conftest.err >&5
45820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45821   (exit $ac_status); } &&
45822          { ac_try='test -z "$ac_c_werror_flag"
45823                          || test ! -s conftest.err'
45824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45825   (eval $ac_try) 2>&5
45826   ac_status=$?
45827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45828   (exit $ac_status); }; } &&
45829          { ac_try='test -s conftest$ac_exeext'
45830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45831   (eval $ac_try) 2>&5
45832   ac_status=$?
45833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45834   (exit $ac_status); }; }; then
45835   ac_cv_func_sasl_version=yes
45836 else
45837   echo "$as_me: failed program was:" >&5
45838 sed 's/^/| /' conftest.$ac_ext >&5
45839
45840 ac_cv_func_sasl_version=no
45841 fi
45842 rm -f conftest.err conftest.$ac_objext \
45843       conftest$ac_exeext conftest.$ac_ext
45844 fi
45845 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45846 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45847 if test $ac_cv_func_sasl_version = yes; then
45848
45849 cat >>confdefs.h <<\_ACEOF
45850 #define HAVE_SASL_VERSION 1
45851 _ACEOF
45852
45853 fi
45854
45855                 LIBS="$ac_save_LIBS"
45856
45857                 WITH_SASL=yes
45858         fi
45859
45860 else
45861         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45862 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45863         if test $ol_link_tls = no ; then
45864                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45865 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45866         fi
45867 fi
45868
45869 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45870         dev=no
45871         if test -r /dev/urandom ; then
45872                 dev="/dev/urandom";
45873         elif test -r /idev/urandom ; then
45874                 dev="/idev/urandom";
45875         elif test -r /dev/srandom ; then
45876                 dev="/dev/srandom";
45877         elif test -r /dev/random ; then
45878                 dev="/dev/random";
45879         elif test -r /idev/random ; then
45880                 dev="/idev/random";
45881         fi
45882
45883         if test $dev != no ; then
45884
45885 cat >>confdefs.h <<_ACEOF
45886 #define URANDOM_DEVICE "$dev"
45887 _ACEOF
45888
45889         fi
45890 fi
45891
45892 ol_link_fetch=no
45893 if test $ol_with_fetch != no ; then
45894         ol_LIBS=$LIBS
45895 LIBS="-lfetch -lcom_err $LIBS"
45896 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45897 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45898 if test "${ol_cv_lib_fetch+set}" = set; then
45899   echo $ECHO_N "(cached) $ECHO_C" >&6
45900 else
45901
45902         cat >conftest.$ac_ext <<_ACEOF
45903 /* confdefs.h.  */
45904 _ACEOF
45905 cat confdefs.h >>conftest.$ac_ext
45906 cat >>conftest.$ac_ext <<_ACEOF
45907 /* end confdefs.h.  */
45908
45909 #include <sys/param.h>
45910 #include <stdio.h>
45911 #include <fetch.h>
45912 int
45913 main ()
45914 {
45915 struct url *u = fetchParseURL("file:///");
45916   ;
45917   return 0;
45918 }
45919 _ACEOF
45920 rm -f conftest.$ac_objext conftest$ac_exeext
45921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45922   (eval $ac_link) 2>conftest.er1
45923   ac_status=$?
45924   grep -v '^ *+' conftest.er1 >conftest.err
45925   rm -f conftest.er1
45926   cat conftest.err >&5
45927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45928   (exit $ac_status); } &&
45929          { ac_try='test -z "$ac_c_werror_flag"
45930                          || test ! -s conftest.err'
45931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45932   (eval $ac_try) 2>&5
45933   ac_status=$?
45934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45935   (exit $ac_status); }; } &&
45936          { ac_try='test -s conftest$ac_exeext'
45937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45938   (eval $ac_try) 2>&5
45939   ac_status=$?
45940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45941   (exit $ac_status); }; }; then
45942   ol_cv_lib_fetch=yes
45943 else
45944   echo "$as_me: failed program was:" >&5
45945 sed 's/^/| /' conftest.$ac_ext >&5
45946
45947 ol_cv_lib_fetch=no
45948 fi
45949 rm -f conftest.err conftest.$ac_objext \
45950       conftest$ac_exeext conftest.$ac_ext
45951 fi
45952 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45953 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45954 LIBS=$ol_LIBS
45955 if test $ol_cv_lib_fetch != no ; then
45956         ol_link_fetch="-lfetch -lcom_err"
45957
45958 cat >>confdefs.h <<\_ACEOF
45959 #define HAVE_FETCH 1
45960 _ACEOF
45961
45962 fi
45963
45964
45965         if test $ol_cv_lib_fetch != no ; then
45966                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45967                 ol_link_fetch=freebsd
45968
45969         elif test $ol_with_fetch != auto ; then
45970                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45971 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45972    { (exit 1); exit 1; }; }
45973         fi
45974 fi
45975
45976 if test $ol_enable_crypt != no ; then
45977         save_LIBS="$LIBS"
45978         LIBS="$TLS_LIBS $LIBS"
45979
45980         echo "$as_me:$LINENO: checking for crypt" >&5
45981 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45982 if test "${ac_cv_func_crypt+set}" = set; then
45983   echo $ECHO_N "(cached) $ECHO_C" >&6
45984 else
45985   cat >conftest.$ac_ext <<_ACEOF
45986 /* confdefs.h.  */
45987 _ACEOF
45988 cat confdefs.h >>conftest.$ac_ext
45989 cat >>conftest.$ac_ext <<_ACEOF
45990 /* end confdefs.h.  */
45991 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45993 #define crypt innocuous_crypt
45994
45995 /* System header to define __stub macros and hopefully few prototypes,
45996     which can conflict with char crypt (); below.
45997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45998     <limits.h> exists even on freestanding compilers.  */
45999
46000 #ifdef __STDC__
46001 # include <limits.h>
46002 #else
46003 # include <assert.h>
46004 #endif
46005
46006 #undef crypt
46007
46008 /* Override any gcc2 internal prototype to avoid an error.  */
46009 #ifdef __cplusplus
46010 extern "C"
46011 {
46012 #endif
46013 /* We use char because int might match the return type of a gcc2
46014    builtin and then its argument prototype would still apply.  */
46015 char crypt ();
46016 /* The GNU C library defines this for functions which it implements
46017     to always fail with ENOSYS.  Some functions are actually named
46018     something starting with __ and the normal name is an alias.  */
46019 #if defined (__stub_crypt) || defined (__stub___crypt)
46020 choke me
46021 #else
46022 char (*f) () = crypt;
46023 #endif
46024 #ifdef __cplusplus
46025 }
46026 #endif
46027
46028 int
46029 main ()
46030 {
46031 return f != crypt;
46032   ;
46033   return 0;
46034 }
46035 _ACEOF
46036 rm -f conftest.$ac_objext conftest$ac_exeext
46037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46038   (eval $ac_link) 2>conftest.er1
46039   ac_status=$?
46040   grep -v '^ *+' conftest.er1 >conftest.err
46041   rm -f conftest.er1
46042   cat conftest.err >&5
46043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46044   (exit $ac_status); } &&
46045          { ac_try='test -z "$ac_c_werror_flag"
46046                          || test ! -s conftest.err'
46047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46048   (eval $ac_try) 2>&5
46049   ac_status=$?
46050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46051   (exit $ac_status); }; } &&
46052          { ac_try='test -s conftest$ac_exeext'
46053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46054   (eval $ac_try) 2>&5
46055   ac_status=$?
46056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46057   (exit $ac_status); }; }; then
46058   ac_cv_func_crypt=yes
46059 else
46060   echo "$as_me: failed program was:" >&5
46061 sed 's/^/| /' conftest.$ac_ext >&5
46062
46063 ac_cv_func_crypt=no
46064 fi
46065 rm -f conftest.err conftest.$ac_objext \
46066       conftest$ac_exeext conftest.$ac_ext
46067 fi
46068 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
46069 echo "${ECHO_T}$ac_cv_func_crypt" >&6
46070 if test $ac_cv_func_crypt = yes; then
46071   have_crypt=yes
46072 else
46073
46074                 LIBS="$save_LIBS"
46075                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
46076 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
46077 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
46078   echo $ECHO_N "(cached) $ECHO_C" >&6
46079 else
46080   ac_check_lib_save_LIBS=$LIBS
46081 LIBS="-lcrypt  $LIBS"
46082 cat >conftest.$ac_ext <<_ACEOF
46083 /* confdefs.h.  */
46084 _ACEOF
46085 cat confdefs.h >>conftest.$ac_ext
46086 cat >>conftest.$ac_ext <<_ACEOF
46087 /* end confdefs.h.  */
46088
46089 /* Override any gcc2 internal prototype to avoid an error.  */
46090 #ifdef __cplusplus
46091 extern "C"
46092 #endif
46093 /* We use char because int might match the return type of a gcc2
46094    builtin and then its argument prototype would still apply.  */
46095 char crypt ();
46096 int
46097 main ()
46098 {
46099 crypt ();
46100   ;
46101   return 0;
46102 }
46103 _ACEOF
46104 rm -f conftest.$ac_objext conftest$ac_exeext
46105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46106   (eval $ac_link) 2>conftest.er1
46107   ac_status=$?
46108   grep -v '^ *+' conftest.er1 >conftest.err
46109   rm -f conftest.er1
46110   cat conftest.err >&5
46111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46112   (exit $ac_status); } &&
46113          { ac_try='test -z "$ac_c_werror_flag"
46114                          || test ! -s conftest.err'
46115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46116   (eval $ac_try) 2>&5
46117   ac_status=$?
46118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46119   (exit $ac_status); }; } &&
46120          { ac_try='test -s conftest$ac_exeext'
46121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46122   (eval $ac_try) 2>&5
46123   ac_status=$?
46124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46125   (exit $ac_status); }; }; then
46126   ac_cv_lib_crypt_crypt=yes
46127 else
46128   echo "$as_me: failed program was:" >&5
46129 sed 's/^/| /' conftest.$ac_ext >&5
46130
46131 ac_cv_lib_crypt_crypt=no
46132 fi
46133 rm -f conftest.err conftest.$ac_objext \
46134       conftest$ac_exeext conftest.$ac_ext
46135 LIBS=$ac_check_lib_save_LIBS
46136 fi
46137 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
46138 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
46139 if test $ac_cv_lib_crypt_crypt = yes; then
46140   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
46141                         have_crypt=yes
46142 else
46143   have_crypt=no
46144 fi
46145
46146 fi
46147
46148
46149         LIBS="$save_LIBS"
46150
46151         if test $have_crypt = yes ; then
46152
46153 cat >>confdefs.h <<\_ACEOF
46154 #define HAVE_CRYPT 1
46155 _ACEOF
46156
46157         else
46158                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
46159 echo "$as_me: WARNING: could not find crypt" >&2;}
46160                 if test $ol_enable_crypt = yes ; then
46161                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
46162 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
46163    { (exit 1); exit 1; }; }
46164                 fi
46165
46166                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
46167 echo "$as_me: WARNING: disabling crypt support" >&2;}
46168                 ol_enable_crypt=no
46169         fi
46170 fi
46171
46172 if test $ol_enable_proctitle != no ; then
46173         echo "$as_me:$LINENO: checking for setproctitle" >&5
46174 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
46175 if test "${ac_cv_func_setproctitle+set}" = set; then
46176   echo $ECHO_N "(cached) $ECHO_C" >&6
46177 else
46178   cat >conftest.$ac_ext <<_ACEOF
46179 /* confdefs.h.  */
46180 _ACEOF
46181 cat confdefs.h >>conftest.$ac_ext
46182 cat >>conftest.$ac_ext <<_ACEOF
46183 /* end confdefs.h.  */
46184 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
46185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46186 #define setproctitle innocuous_setproctitle
46187
46188 /* System header to define __stub macros and hopefully few prototypes,
46189     which can conflict with char setproctitle (); below.
46190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46191     <limits.h> exists even on freestanding compilers.  */
46192
46193 #ifdef __STDC__
46194 # include <limits.h>
46195 #else
46196 # include <assert.h>
46197 #endif
46198
46199 #undef setproctitle
46200
46201 /* Override any gcc2 internal prototype to avoid an error.  */
46202 #ifdef __cplusplus
46203 extern "C"
46204 {
46205 #endif
46206 /* We use char because int might match the return type of a gcc2
46207    builtin and then its argument prototype would still apply.  */
46208 char setproctitle ();
46209 /* The GNU C library defines this for functions which it implements
46210     to always fail with ENOSYS.  Some functions are actually named
46211     something starting with __ and the normal name is an alias.  */
46212 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
46213 choke me
46214 #else
46215 char (*f) () = setproctitle;
46216 #endif
46217 #ifdef __cplusplus
46218 }
46219 #endif
46220
46221 int
46222 main ()
46223 {
46224 return f != setproctitle;
46225   ;
46226   return 0;
46227 }
46228 _ACEOF
46229 rm -f conftest.$ac_objext conftest$ac_exeext
46230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46231   (eval $ac_link) 2>conftest.er1
46232   ac_status=$?
46233   grep -v '^ *+' conftest.er1 >conftest.err
46234   rm -f conftest.er1
46235   cat conftest.err >&5
46236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46237   (exit $ac_status); } &&
46238          { ac_try='test -z "$ac_c_werror_flag"
46239                          || test ! -s conftest.err'
46240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46241   (eval $ac_try) 2>&5
46242   ac_status=$?
46243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46244   (exit $ac_status); }; } &&
46245          { ac_try='test -s conftest$ac_exeext'
46246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46247   (eval $ac_try) 2>&5
46248   ac_status=$?
46249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46250   (exit $ac_status); }; }; then
46251   ac_cv_func_setproctitle=yes
46252 else
46253   echo "$as_me: failed program was:" >&5
46254 sed 's/^/| /' conftest.$ac_ext >&5
46255
46256 ac_cv_func_setproctitle=no
46257 fi
46258 rm -f conftest.err conftest.$ac_objext \
46259       conftest$ac_exeext conftest.$ac_ext
46260 fi
46261 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
46262 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
46263 if test $ac_cv_func_setproctitle = yes; then
46264   have_setproctitle=yes
46265 else
46266
46267                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
46268 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
46269 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
46270   echo $ECHO_N "(cached) $ECHO_C" >&6
46271 else
46272   ac_check_lib_save_LIBS=$LIBS
46273 LIBS="-lutil  $LIBS"
46274 cat >conftest.$ac_ext <<_ACEOF
46275 /* confdefs.h.  */
46276 _ACEOF
46277 cat confdefs.h >>conftest.$ac_ext
46278 cat >>conftest.$ac_ext <<_ACEOF
46279 /* end confdefs.h.  */
46280
46281 /* Override any gcc2 internal prototype to avoid an error.  */
46282 #ifdef __cplusplus
46283 extern "C"
46284 #endif
46285 /* We use char because int might match the return type of a gcc2
46286    builtin and then its argument prototype would still apply.  */
46287 char setproctitle ();
46288 int
46289 main ()
46290 {
46291 setproctitle ();
46292   ;
46293   return 0;
46294 }
46295 _ACEOF
46296 rm -f conftest.$ac_objext conftest$ac_exeext
46297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46298   (eval $ac_link) 2>conftest.er1
46299   ac_status=$?
46300   grep -v '^ *+' conftest.er1 >conftest.err
46301   rm -f conftest.er1
46302   cat conftest.err >&5
46303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46304   (exit $ac_status); } &&
46305          { ac_try='test -z "$ac_c_werror_flag"
46306                          || test ! -s conftest.err'
46307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46308   (eval $ac_try) 2>&5
46309   ac_status=$?
46310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46311   (exit $ac_status); }; } &&
46312          { ac_try='test -s conftest$ac_exeext'
46313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46314   (eval $ac_try) 2>&5
46315   ac_status=$?
46316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46317   (exit $ac_status); }; }; then
46318   ac_cv_lib_util_setproctitle=yes
46319 else
46320   echo "$as_me: failed program was:" >&5
46321 sed 's/^/| /' conftest.$ac_ext >&5
46322
46323 ac_cv_lib_util_setproctitle=no
46324 fi
46325 rm -f conftest.err conftest.$ac_objext \
46326       conftest$ac_exeext conftest.$ac_ext
46327 LIBS=$ac_check_lib_save_LIBS
46328 fi
46329 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
46330 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
46331 if test $ac_cv_lib_util_setproctitle = yes; then
46332   have_setproctitle=yes
46333                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
46334 else
46335   have_setproctitle=no
46336                         case $LIBOBJS in
46337     "setproctitle.$ac_objext"   | \
46338   *" setproctitle.$ac_objext"   | \
46339     "setproctitle.$ac_objext "* | \
46340   *" setproctitle.$ac_objext "* ) ;;
46341   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
46342 esac
46343
46344                         LIBSRCS="$LIBSRCS setproctitle.c"
46345 fi
46346
46347 fi
46348
46349
46350         if test $have_setproctitle = yes ; then
46351
46352 cat >>confdefs.h <<\_ACEOF
46353 #define HAVE_SETPROCTITLE 1
46354 _ACEOF
46355
46356         fi
46357 fi
46358
46359 if test $ol_enable_slp != no ; then
46360
46361 for ac_header in slp.h
46362 do
46363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46365   echo "$as_me:$LINENO: checking for $ac_header" >&5
46366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46368   echo $ECHO_N "(cached) $ECHO_C" >&6
46369 fi
46370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46372 else
46373   # Is the header compilable?
46374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46376 cat >conftest.$ac_ext <<_ACEOF
46377 /* confdefs.h.  */
46378 _ACEOF
46379 cat confdefs.h >>conftest.$ac_ext
46380 cat >>conftest.$ac_ext <<_ACEOF
46381 /* end confdefs.h.  */
46382 $ac_includes_default
46383 #include <$ac_header>
46384 _ACEOF
46385 rm -f conftest.$ac_objext
46386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46387   (eval $ac_compile) 2>conftest.er1
46388   ac_status=$?
46389   grep -v '^ *+' conftest.er1 >conftest.err
46390   rm -f conftest.er1
46391   cat conftest.err >&5
46392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46393   (exit $ac_status); } &&
46394          { ac_try='test -z "$ac_c_werror_flag"
46395                          || test ! -s conftest.err'
46396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46397   (eval $ac_try) 2>&5
46398   ac_status=$?
46399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46400   (exit $ac_status); }; } &&
46401          { ac_try='test -s conftest.$ac_objext'
46402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46403   (eval $ac_try) 2>&5
46404   ac_status=$?
46405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46406   (exit $ac_status); }; }; then
46407   ac_header_compiler=yes
46408 else
46409   echo "$as_me: failed program was:" >&5
46410 sed 's/^/| /' conftest.$ac_ext >&5
46411
46412 ac_header_compiler=no
46413 fi
46414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46416 echo "${ECHO_T}$ac_header_compiler" >&6
46417
46418 # Is the header present?
46419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46421 cat >conftest.$ac_ext <<_ACEOF
46422 /* confdefs.h.  */
46423 _ACEOF
46424 cat confdefs.h >>conftest.$ac_ext
46425 cat >>conftest.$ac_ext <<_ACEOF
46426 /* end confdefs.h.  */
46427 #include <$ac_header>
46428 _ACEOF
46429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46430   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46431   ac_status=$?
46432   grep -v '^ *+' conftest.er1 >conftest.err
46433   rm -f conftest.er1
46434   cat conftest.err >&5
46435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46436   (exit $ac_status); } >/dev/null; then
46437   if test -s conftest.err; then
46438     ac_cpp_err=$ac_c_preproc_warn_flag
46439     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46440   else
46441     ac_cpp_err=
46442   fi
46443 else
46444   ac_cpp_err=yes
46445 fi
46446 if test -z "$ac_cpp_err"; then
46447   ac_header_preproc=yes
46448 else
46449   echo "$as_me: failed program was:" >&5
46450 sed 's/^/| /' conftest.$ac_ext >&5
46451
46452   ac_header_preproc=no
46453 fi
46454 rm -f conftest.err conftest.$ac_ext
46455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46456 echo "${ECHO_T}$ac_header_preproc" >&6
46457
46458 # So?  What about this header?
46459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46460   yes:no: )
46461     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46465     ac_header_preproc=yes
46466     ;;
46467   no:yes:* )
46468     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46470     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46471 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46472     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46474     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46475 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46476     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46478     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46480     (
46481       cat <<\_ASBOX
46482 ## ------------------------------------------ ##
46483 ## Report this to the AC_PACKAGE_NAME lists.  ##
46484 ## ------------------------------------------ ##
46485 _ASBOX
46486     ) |
46487       sed "s/^/$as_me: WARNING:     /" >&2
46488     ;;
46489 esac
46490 echo "$as_me:$LINENO: checking for $ac_header" >&5
46491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46493   echo $ECHO_N "(cached) $ECHO_C" >&6
46494 else
46495   eval "$as_ac_Header=\$ac_header_preproc"
46496 fi
46497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46499
46500 fi
46501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46502   cat >>confdefs.h <<_ACEOF
46503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46504 _ACEOF
46505
46506 fi
46507
46508 done
46509
46510
46511         if test $ac_cv_header_slp_h = yes ; then
46512                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46513 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46514 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46515   echo $ECHO_N "(cached) $ECHO_C" >&6
46516 else
46517   ac_check_lib_save_LIBS=$LIBS
46518 LIBS="-lslp  $LIBS"
46519 cat >conftest.$ac_ext <<_ACEOF
46520 /* confdefs.h.  */
46521 _ACEOF
46522 cat confdefs.h >>conftest.$ac_ext
46523 cat >>conftest.$ac_ext <<_ACEOF
46524 /* end confdefs.h.  */
46525
46526 /* Override any gcc2 internal prototype to avoid an error.  */
46527 #ifdef __cplusplus
46528 extern "C"
46529 #endif
46530 /* We use char because int might match the return type of a gcc2
46531    builtin and then its argument prototype would still apply.  */
46532 char SLPOpen ();
46533 int
46534 main ()
46535 {
46536 SLPOpen ();
46537   ;
46538   return 0;
46539 }
46540 _ACEOF
46541 rm -f conftest.$ac_objext conftest$ac_exeext
46542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46543   (eval $ac_link) 2>conftest.er1
46544   ac_status=$?
46545   grep -v '^ *+' conftest.er1 >conftest.err
46546   rm -f conftest.er1
46547   cat conftest.err >&5
46548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46549   (exit $ac_status); } &&
46550          { ac_try='test -z "$ac_c_werror_flag"
46551                          || test ! -s conftest.err'
46552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46553   (eval $ac_try) 2>&5
46554   ac_status=$?
46555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46556   (exit $ac_status); }; } &&
46557          { ac_try='test -s conftest$ac_exeext'
46558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46559   (eval $ac_try) 2>&5
46560   ac_status=$?
46561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46562   (exit $ac_status); }; }; then
46563   ac_cv_lib_slp_SLPOpen=yes
46564 else
46565   echo "$as_me: failed program was:" >&5
46566 sed 's/^/| /' conftest.$ac_ext >&5
46567
46568 ac_cv_lib_slp_SLPOpen=no
46569 fi
46570 rm -f conftest.err conftest.$ac_objext \
46571       conftest$ac_exeext conftest.$ac_ext
46572 LIBS=$ac_check_lib_save_LIBS
46573 fi
46574 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46575 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46576 if test $ac_cv_lib_slp_SLPOpen = yes; then
46577   have_slp=yes
46578 else
46579   have_slp=no
46580 fi
46581
46582                 if test $have_slp = yes ; then
46583
46584 cat >>confdefs.h <<\_ACEOF
46585 #define HAVE_SLP 1
46586 _ACEOF
46587
46588                         SLAPD_SLP_LIBS=-lslp
46589                 fi
46590
46591         elif test $ol_enable_slp = yes ; then
46592                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46593 echo "$as_me: error: SLP not found" >&2;}
46594    { (exit 1); exit 1; }; }
46595         fi
46596 fi
46597
46598 if test "$ol_with_multiple_precision" != "no" ; then
46599         ol_have_bignum=no
46600         ol_have_gmp=no
46601
46602
46603
46604 for ac_header in openssl/bn.h bn.h
46605 do
46606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46608   echo "$as_me:$LINENO: checking for $ac_header" >&5
46609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46611   echo $ECHO_N "(cached) $ECHO_C" >&6
46612 fi
46613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46615 else
46616   # Is the header compilable?
46617 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46619 cat >conftest.$ac_ext <<_ACEOF
46620 /* confdefs.h.  */
46621 _ACEOF
46622 cat confdefs.h >>conftest.$ac_ext
46623 cat >>conftest.$ac_ext <<_ACEOF
46624 /* end confdefs.h.  */
46625 $ac_includes_default
46626 #include <$ac_header>
46627 _ACEOF
46628 rm -f conftest.$ac_objext
46629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46630   (eval $ac_compile) 2>conftest.er1
46631   ac_status=$?
46632   grep -v '^ *+' conftest.er1 >conftest.err
46633   rm -f conftest.er1
46634   cat conftest.err >&5
46635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46636   (exit $ac_status); } &&
46637          { ac_try='test -z "$ac_c_werror_flag"
46638                          || test ! -s conftest.err'
46639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46640   (eval $ac_try) 2>&5
46641   ac_status=$?
46642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46643   (exit $ac_status); }; } &&
46644          { ac_try='test -s conftest.$ac_objext'
46645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46646   (eval $ac_try) 2>&5
46647   ac_status=$?
46648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46649   (exit $ac_status); }; }; then
46650   ac_header_compiler=yes
46651 else
46652   echo "$as_me: failed program was:" >&5
46653 sed 's/^/| /' conftest.$ac_ext >&5
46654
46655 ac_header_compiler=no
46656 fi
46657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46658 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46659 echo "${ECHO_T}$ac_header_compiler" >&6
46660
46661 # Is the header present?
46662 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46664 cat >conftest.$ac_ext <<_ACEOF
46665 /* confdefs.h.  */
46666 _ACEOF
46667 cat confdefs.h >>conftest.$ac_ext
46668 cat >>conftest.$ac_ext <<_ACEOF
46669 /* end confdefs.h.  */
46670 #include <$ac_header>
46671 _ACEOF
46672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46673   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46674   ac_status=$?
46675   grep -v '^ *+' conftest.er1 >conftest.err
46676   rm -f conftest.er1
46677   cat conftest.err >&5
46678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46679   (exit $ac_status); } >/dev/null; then
46680   if test -s conftest.err; then
46681     ac_cpp_err=$ac_c_preproc_warn_flag
46682     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46683   else
46684     ac_cpp_err=
46685   fi
46686 else
46687   ac_cpp_err=yes
46688 fi
46689 if test -z "$ac_cpp_err"; then
46690   ac_header_preproc=yes
46691 else
46692   echo "$as_me: failed program was:" >&5
46693 sed 's/^/| /' conftest.$ac_ext >&5
46694
46695   ac_header_preproc=no
46696 fi
46697 rm -f conftest.err conftest.$ac_ext
46698 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46699 echo "${ECHO_T}$ac_header_preproc" >&6
46700
46701 # So?  What about this header?
46702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46703   yes:no: )
46704     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46706     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46707 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46708     ac_header_preproc=yes
46709     ;;
46710   no:yes:* )
46711     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46713     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46714 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46715     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46716 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46717     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46718 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46719     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46721     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46722 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46723     (
46724       cat <<\_ASBOX
46725 ## ------------------------------------------ ##
46726 ## Report this to the AC_PACKAGE_NAME lists.  ##
46727 ## ------------------------------------------ ##
46728 _ASBOX
46729     ) |
46730       sed "s/^/$as_me: WARNING:     /" >&2
46731     ;;
46732 esac
46733 echo "$as_me:$LINENO: checking for $ac_header" >&5
46734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46736   echo $ECHO_N "(cached) $ECHO_C" >&6
46737 else
46738   eval "$as_ac_Header=\$ac_header_preproc"
46739 fi
46740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46742
46743 fi
46744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46745   cat >>confdefs.h <<_ACEOF
46746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46747 _ACEOF
46748
46749 fi
46750
46751 done
46752
46753
46754
46755 for ac_header in openssl/crypto.h crypto.h
46756 do
46757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46759   echo "$as_me:$LINENO: checking for $ac_header" >&5
46760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46762   echo $ECHO_N "(cached) $ECHO_C" >&6
46763 fi
46764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46766 else
46767   # Is the header compilable?
46768 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46770 cat >conftest.$ac_ext <<_ACEOF
46771 /* confdefs.h.  */
46772 _ACEOF
46773 cat confdefs.h >>conftest.$ac_ext
46774 cat >>conftest.$ac_ext <<_ACEOF
46775 /* end confdefs.h.  */
46776 $ac_includes_default
46777 #include <$ac_header>
46778 _ACEOF
46779 rm -f conftest.$ac_objext
46780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46781   (eval $ac_compile) 2>conftest.er1
46782   ac_status=$?
46783   grep -v '^ *+' conftest.er1 >conftest.err
46784   rm -f conftest.er1
46785   cat conftest.err >&5
46786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46787   (exit $ac_status); } &&
46788          { ac_try='test -z "$ac_c_werror_flag"
46789                          || test ! -s conftest.err'
46790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46791   (eval $ac_try) 2>&5
46792   ac_status=$?
46793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46794   (exit $ac_status); }; } &&
46795          { ac_try='test -s conftest.$ac_objext'
46796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46797   (eval $ac_try) 2>&5
46798   ac_status=$?
46799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46800   (exit $ac_status); }; }; then
46801   ac_header_compiler=yes
46802 else
46803   echo "$as_me: failed program was:" >&5
46804 sed 's/^/| /' conftest.$ac_ext >&5
46805
46806 ac_header_compiler=no
46807 fi
46808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46809 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46810 echo "${ECHO_T}$ac_header_compiler" >&6
46811
46812 # Is the header present?
46813 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46815 cat >conftest.$ac_ext <<_ACEOF
46816 /* confdefs.h.  */
46817 _ACEOF
46818 cat confdefs.h >>conftest.$ac_ext
46819 cat >>conftest.$ac_ext <<_ACEOF
46820 /* end confdefs.h.  */
46821 #include <$ac_header>
46822 _ACEOF
46823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46824   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46825   ac_status=$?
46826   grep -v '^ *+' conftest.er1 >conftest.err
46827   rm -f conftest.er1
46828   cat conftest.err >&5
46829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46830   (exit $ac_status); } >/dev/null; then
46831   if test -s conftest.err; then
46832     ac_cpp_err=$ac_c_preproc_warn_flag
46833     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46834   else
46835     ac_cpp_err=
46836   fi
46837 else
46838   ac_cpp_err=yes
46839 fi
46840 if test -z "$ac_cpp_err"; then
46841   ac_header_preproc=yes
46842 else
46843   echo "$as_me: failed program was:" >&5
46844 sed 's/^/| /' conftest.$ac_ext >&5
46845
46846   ac_header_preproc=no
46847 fi
46848 rm -f conftest.err conftest.$ac_ext
46849 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46850 echo "${ECHO_T}$ac_header_preproc" >&6
46851
46852 # So?  What about this header?
46853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46854   yes:no: )
46855     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46857     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46859     ac_header_preproc=yes
46860     ;;
46861   no:yes:* )
46862     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46864     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46865 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46866     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46868     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46869 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46870     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46872     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46874     (
46875       cat <<\_ASBOX
46876 ## ------------------------------------------ ##
46877 ## Report this to the AC_PACKAGE_NAME lists.  ##
46878 ## ------------------------------------------ ##
46879 _ASBOX
46880     ) |
46881       sed "s/^/$as_me: WARNING:     /" >&2
46882     ;;
46883 esac
46884 echo "$as_me:$LINENO: checking for $ac_header" >&5
46885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46887   echo $ECHO_N "(cached) $ECHO_C" >&6
46888 else
46889   eval "$as_ac_Header=\$ac_header_preproc"
46890 fi
46891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46893
46894 fi
46895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46896   cat >>confdefs.h <<_ACEOF
46897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46898 _ACEOF
46899
46900 fi
46901
46902 done
46903
46904
46905 for ac_header in gmp.h
46906 do
46907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46909   echo "$as_me:$LINENO: checking for $ac_header" >&5
46910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46912   echo $ECHO_N "(cached) $ECHO_C" >&6
46913 fi
46914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46916 else
46917   # Is the header compilable?
46918 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46920 cat >conftest.$ac_ext <<_ACEOF
46921 /* confdefs.h.  */
46922 _ACEOF
46923 cat confdefs.h >>conftest.$ac_ext
46924 cat >>conftest.$ac_ext <<_ACEOF
46925 /* end confdefs.h.  */
46926 $ac_includes_default
46927 #include <$ac_header>
46928 _ACEOF
46929 rm -f conftest.$ac_objext
46930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46931   (eval $ac_compile) 2>conftest.er1
46932   ac_status=$?
46933   grep -v '^ *+' conftest.er1 >conftest.err
46934   rm -f conftest.er1
46935   cat conftest.err >&5
46936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46937   (exit $ac_status); } &&
46938          { ac_try='test -z "$ac_c_werror_flag"
46939                          || test ! -s conftest.err'
46940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46941   (eval $ac_try) 2>&5
46942   ac_status=$?
46943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46944   (exit $ac_status); }; } &&
46945          { ac_try='test -s conftest.$ac_objext'
46946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46947   (eval $ac_try) 2>&5
46948   ac_status=$?
46949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46950   (exit $ac_status); }; }; then
46951   ac_header_compiler=yes
46952 else
46953   echo "$as_me: failed program was:" >&5
46954 sed 's/^/| /' conftest.$ac_ext >&5
46955
46956 ac_header_compiler=no
46957 fi
46958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46959 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46960 echo "${ECHO_T}$ac_header_compiler" >&6
46961
46962 # Is the header present?
46963 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46965 cat >conftest.$ac_ext <<_ACEOF
46966 /* confdefs.h.  */
46967 _ACEOF
46968 cat confdefs.h >>conftest.$ac_ext
46969 cat >>conftest.$ac_ext <<_ACEOF
46970 /* end confdefs.h.  */
46971 #include <$ac_header>
46972 _ACEOF
46973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46974   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46975   ac_status=$?
46976   grep -v '^ *+' conftest.er1 >conftest.err
46977   rm -f conftest.er1
46978   cat conftest.err >&5
46979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46980   (exit $ac_status); } >/dev/null; then
46981   if test -s conftest.err; then
46982     ac_cpp_err=$ac_c_preproc_warn_flag
46983     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46984   else
46985     ac_cpp_err=
46986   fi
46987 else
46988   ac_cpp_err=yes
46989 fi
46990 if test -z "$ac_cpp_err"; then
46991   ac_header_preproc=yes
46992 else
46993   echo "$as_me: failed program was:" >&5
46994 sed 's/^/| /' conftest.$ac_ext >&5
46995
46996   ac_header_preproc=no
46997 fi
46998 rm -f conftest.err conftest.$ac_ext
46999 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47000 echo "${ECHO_T}$ac_header_preproc" >&6
47001
47002 # So?  What about this header?
47003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47004   yes:no: )
47005     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
47008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
47009     ac_header_preproc=yes
47010     ;;
47011   no:yes:* )
47012     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47014     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
47015 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
47016     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
47017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
47018     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
47019 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
47020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47022     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
47023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
47024     (
47025       cat <<\_ASBOX
47026 ## ------------------------------------------ ##
47027 ## Report this to the AC_PACKAGE_NAME lists.  ##
47028 ## ------------------------------------------ ##
47029 _ASBOX
47030     ) |
47031       sed "s/^/$as_me: WARNING:     /" >&2
47032     ;;
47033 esac
47034 echo "$as_me:$LINENO: checking for $ac_header" >&5
47035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47037   echo $ECHO_N "(cached) $ECHO_C" >&6
47038 else
47039   eval "$as_ac_Header=\$ac_header_preproc"
47040 fi
47041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47043
47044 fi
47045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47046   cat >>confdefs.h <<_ACEOF
47047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47048 _ACEOF
47049
47050 fi
47051
47052 done
47053
47054
47055         if test "$ol_with_tls" = "found" ; then
47056                 ol_have_bn_h=no
47057                 ol_have_crypto_h=no
47058
47059                 if test "$ac_cv_header_openssl_bn_h" = "yes" \
47060                                 -o "$ac_cv_header_bn_h" = "yes" ; then
47061                         ol_have_bn_h=yes
47062                 fi
47063
47064                 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
47065                                 -o "$ac_cv_header_crypto_h" = "yes" ; then
47066                         ol_have_crypto_h=yes
47067                 fi
47068
47069                 if test "$ol_have_bn_h" = "yes" \
47070                                 -a "$ol_have_crypto_h" = "yes" ; then
47071                         ol_have_bignum=yes
47072                 fi
47073         fi
47074
47075         if test $ac_cv_header_gmp_h = yes ; then
47076                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
47077 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
47078 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
47079   echo $ECHO_N "(cached) $ECHO_C" >&6
47080 else
47081   ac_check_lib_save_LIBS=$LIBS
47082 LIBS="-lgmp  $LIBS"
47083 cat >conftest.$ac_ext <<_ACEOF
47084 /* confdefs.h.  */
47085 _ACEOF
47086 cat confdefs.h >>conftest.$ac_ext
47087 cat >>conftest.$ac_ext <<_ACEOF
47088 /* end confdefs.h.  */
47089
47090 /* Override any gcc2 internal prototype to avoid an error.  */
47091 #ifdef __cplusplus
47092 extern "C"
47093 #endif
47094 /* We use char because int might match the return type of a gcc2
47095    builtin and then its argument prototype would still apply.  */
47096 char __gmpz_add_ui ();
47097 int
47098 main ()
47099 {
47100 __gmpz_add_ui ();
47101   ;
47102   return 0;
47103 }
47104 _ACEOF
47105 rm -f conftest.$ac_objext conftest$ac_exeext
47106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47107   (eval $ac_link) 2>conftest.er1
47108   ac_status=$?
47109   grep -v '^ *+' conftest.er1 >conftest.err
47110   rm -f conftest.er1
47111   cat conftest.err >&5
47112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47113   (exit $ac_status); } &&
47114          { ac_try='test -z "$ac_c_werror_flag"
47115                          || test ! -s conftest.err'
47116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47117   (eval $ac_try) 2>&5
47118   ac_status=$?
47119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47120   (exit $ac_status); }; } &&
47121          { ac_try='test -s conftest$ac_exeext'
47122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47123   (eval $ac_try) 2>&5
47124   ac_status=$?
47125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47126   (exit $ac_status); }; }; then
47127   ac_cv_lib_gmp___gmpz_add_ui=yes
47128 else
47129   echo "$as_me: failed program was:" >&5
47130 sed 's/^/| /' conftest.$ac_ext >&5
47131
47132 ac_cv_lib_gmp___gmpz_add_ui=no
47133 fi
47134 rm -f conftest.err conftest.$ac_objext \
47135       conftest$ac_exeext conftest.$ac_ext
47136 LIBS=$ac_check_lib_save_LIBS
47137 fi
47138 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
47139 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
47140 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
47141   have_gmp=yes
47142 else
47143   have_gmp=no
47144 fi
47145
47146                 if test $have_gmp = yes ; then
47147                         ol_have_gmp=yes
47148                 fi
47149         fi
47150
47151         echo "$as_me:$LINENO: checking for multiple precision support" >&5
47152 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
47153
47154         ol_mp_support="none"
47155         case "$ol_with_multiple_precision" in
47156         auto)
47157                                                                                 if test "$ol_have_bignum" = "yes" ; then
47158                         ol_mp_support="bignum"
47159                 else
47160                         if test "$ol_have_gmp" = "yes" ; then
47161                                 ol_mp_support="gmp"
47162                         fi
47163                 fi
47164                 ;;
47165         bignum)
47166                 if test "$ol_have_bignum" != "yes" ; then
47167                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
47168 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
47169    { (exit 1); exit 1; }; }
47170                 fi
47171                 ol_mp_support="bignum"
47172                 ;;
47173         gmp)
47174                 if test "$ol_have_gmp" != "yes" ; then
47175                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
47176 echo "$as_me: error: GMP not available" >&2;}
47177    { (exit 1); exit 1; }; }
47178                 fi
47179                 ol_mp_support="gmp"
47180                 ;;
47181         yes)
47182                 if test "$ol_have_bignum" = "yes" ; then
47183                         ol_mp_support="bignum"
47184                 elif test "$ol_have_gmp" = "yes" ; then
47185                         ol_mp_support="gmp"
47186                 else
47187                         { { echo "$as_me:$LINENO: error: not available" >&5
47188 echo "$as_me: error: not available" >&2;}
47189    { (exit 1); exit 1; }; }
47190                 fi
47191                 ;;
47192         esac
47193
47194         case "$ol_mp_support" in
47195         bignum)
47196
47197 cat >>confdefs.h <<\_ACEOF
47198 #define HAVE_BIGNUM 1
47199 _ACEOF
47200
47201                 ;;
47202         gmp)
47203
47204 cat >>confdefs.h <<\_ACEOF
47205 #define HAVE_GMP 1
47206 _ACEOF
47207
47208                 SLAPD_GMP_LIBS=-lgmp
47209                 ;;
47210         none)
47211                 ;;
47212         esac
47213
47214         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
47215 echo "${ECHO_T}$ol_mp_support" >&6
47216 fi
47217
47218
47219 echo "$as_me:$LINENO: checking for mode_t" >&5
47220 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
47221 if test "${ac_cv_type_mode_t+set}" = set; then
47222   echo $ECHO_N "(cached) $ECHO_C" >&6
47223 else
47224   cat >conftest.$ac_ext <<_ACEOF
47225 /* confdefs.h.  */
47226 _ACEOF
47227 cat confdefs.h >>conftest.$ac_ext
47228 cat >>conftest.$ac_ext <<_ACEOF
47229 /* end confdefs.h.  */
47230 $ac_includes_default
47231 int
47232 main ()
47233 {
47234 if ((mode_t *) 0)
47235   return 0;
47236 if (sizeof (mode_t))
47237   return 0;
47238   ;
47239   return 0;
47240 }
47241 _ACEOF
47242 rm -f conftest.$ac_objext
47243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47244   (eval $ac_compile) 2>conftest.er1
47245   ac_status=$?
47246   grep -v '^ *+' conftest.er1 >conftest.err
47247   rm -f conftest.er1
47248   cat conftest.err >&5
47249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47250   (exit $ac_status); } &&
47251          { ac_try='test -z "$ac_c_werror_flag"
47252                          || test ! -s conftest.err'
47253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47254   (eval $ac_try) 2>&5
47255   ac_status=$?
47256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47257   (exit $ac_status); }; } &&
47258          { ac_try='test -s conftest.$ac_objext'
47259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47260   (eval $ac_try) 2>&5
47261   ac_status=$?
47262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47263   (exit $ac_status); }; }; then
47264   ac_cv_type_mode_t=yes
47265 else
47266   echo "$as_me: failed program was:" >&5
47267 sed 's/^/| /' conftest.$ac_ext >&5
47268
47269 ac_cv_type_mode_t=no
47270 fi
47271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47272 fi
47273 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
47274 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
47275 if test $ac_cv_type_mode_t = yes; then
47276   :
47277 else
47278
47279 cat >>confdefs.h <<_ACEOF
47280 #define mode_t int
47281 _ACEOF
47282
47283 fi
47284
47285 echo "$as_me:$LINENO: checking for off_t" >&5
47286 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47287 if test "${ac_cv_type_off_t+set}" = set; then
47288   echo $ECHO_N "(cached) $ECHO_C" >&6
47289 else
47290   cat >conftest.$ac_ext <<_ACEOF
47291 /* confdefs.h.  */
47292 _ACEOF
47293 cat confdefs.h >>conftest.$ac_ext
47294 cat >>conftest.$ac_ext <<_ACEOF
47295 /* end confdefs.h.  */
47296 $ac_includes_default
47297 int
47298 main ()
47299 {
47300 if ((off_t *) 0)
47301   return 0;
47302 if (sizeof (off_t))
47303   return 0;
47304   ;
47305   return 0;
47306 }
47307 _ACEOF
47308 rm -f conftest.$ac_objext
47309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47310   (eval $ac_compile) 2>conftest.er1
47311   ac_status=$?
47312   grep -v '^ *+' conftest.er1 >conftest.err
47313   rm -f conftest.er1
47314   cat conftest.err >&5
47315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47316   (exit $ac_status); } &&
47317          { ac_try='test -z "$ac_c_werror_flag"
47318                          || test ! -s conftest.err'
47319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47320   (eval $ac_try) 2>&5
47321   ac_status=$?
47322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47323   (exit $ac_status); }; } &&
47324          { ac_try='test -s conftest.$ac_objext'
47325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47326   (eval $ac_try) 2>&5
47327   ac_status=$?
47328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47329   (exit $ac_status); }; }; then
47330   ac_cv_type_off_t=yes
47331 else
47332   echo "$as_me: failed program was:" >&5
47333 sed 's/^/| /' conftest.$ac_ext >&5
47334
47335 ac_cv_type_off_t=no
47336 fi
47337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47338 fi
47339 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47340 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47341 if test $ac_cv_type_off_t = yes; then
47342   :
47343 else
47344
47345 cat >>confdefs.h <<_ACEOF
47346 #define off_t long
47347 _ACEOF
47348
47349 fi
47350
47351 echo "$as_me:$LINENO: checking for pid_t" >&5
47352 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47353 if test "${ac_cv_type_pid_t+set}" = set; then
47354   echo $ECHO_N "(cached) $ECHO_C" >&6
47355 else
47356   cat >conftest.$ac_ext <<_ACEOF
47357 /* confdefs.h.  */
47358 _ACEOF
47359 cat confdefs.h >>conftest.$ac_ext
47360 cat >>conftest.$ac_ext <<_ACEOF
47361 /* end confdefs.h.  */
47362 $ac_includes_default
47363 int
47364 main ()
47365 {
47366 if ((pid_t *) 0)
47367   return 0;
47368 if (sizeof (pid_t))
47369   return 0;
47370   ;
47371   return 0;
47372 }
47373 _ACEOF
47374 rm -f conftest.$ac_objext
47375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47376   (eval $ac_compile) 2>conftest.er1
47377   ac_status=$?
47378   grep -v '^ *+' conftest.er1 >conftest.err
47379   rm -f conftest.er1
47380   cat conftest.err >&5
47381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47382   (exit $ac_status); } &&
47383          { ac_try='test -z "$ac_c_werror_flag"
47384                          || test ! -s conftest.err'
47385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47386   (eval $ac_try) 2>&5
47387   ac_status=$?
47388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47389   (exit $ac_status); }; } &&
47390          { ac_try='test -s conftest.$ac_objext'
47391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47392   (eval $ac_try) 2>&5
47393   ac_status=$?
47394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47395   (exit $ac_status); }; }; then
47396   ac_cv_type_pid_t=yes
47397 else
47398   echo "$as_me: failed program was:" >&5
47399 sed 's/^/| /' conftest.$ac_ext >&5
47400
47401 ac_cv_type_pid_t=no
47402 fi
47403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47404 fi
47405 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47406 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47407 if test $ac_cv_type_pid_t = yes; then
47408   :
47409 else
47410
47411 cat >>confdefs.h <<_ACEOF
47412 #define pid_t int
47413 _ACEOF
47414
47415 fi
47416
47417 echo "$as_me:$LINENO: checking for ssize_t" >&5
47418 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47419 if test "${ac_cv_type_ssize_t+set}" = set; then
47420   echo $ECHO_N "(cached) $ECHO_C" >&6
47421 else
47422   cat >conftest.$ac_ext <<_ACEOF
47423 /* confdefs.h.  */
47424 _ACEOF
47425 cat confdefs.h >>conftest.$ac_ext
47426 cat >>conftest.$ac_ext <<_ACEOF
47427 /* end confdefs.h.  */
47428 $ac_includes_default
47429 int
47430 main ()
47431 {
47432 if ((ssize_t *) 0)
47433   return 0;
47434 if (sizeof (ssize_t))
47435   return 0;
47436   ;
47437   return 0;
47438 }
47439 _ACEOF
47440 rm -f conftest.$ac_objext
47441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47442   (eval $ac_compile) 2>conftest.er1
47443   ac_status=$?
47444   grep -v '^ *+' conftest.er1 >conftest.err
47445   rm -f conftest.er1
47446   cat conftest.err >&5
47447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47448   (exit $ac_status); } &&
47449          { ac_try='test -z "$ac_c_werror_flag"
47450                          || test ! -s conftest.err'
47451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47452   (eval $ac_try) 2>&5
47453   ac_status=$?
47454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47455   (exit $ac_status); }; } &&
47456          { ac_try='test -s conftest.$ac_objext'
47457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47458   (eval $ac_try) 2>&5
47459   ac_status=$?
47460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47461   (exit $ac_status); }; }; then
47462   ac_cv_type_ssize_t=yes
47463 else
47464   echo "$as_me: failed program was:" >&5
47465 sed 's/^/| /' conftest.$ac_ext >&5
47466
47467 ac_cv_type_ssize_t=no
47468 fi
47469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47470 fi
47471 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47472 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47473 if test $ac_cv_type_ssize_t = yes; then
47474   :
47475 else
47476
47477 cat >>confdefs.h <<_ACEOF
47478 #define ssize_t signed int
47479 _ACEOF
47480
47481 fi
47482
47483 echo "$as_me:$LINENO: checking for caddr_t" >&5
47484 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47485 if test "${ac_cv_type_caddr_t+set}" = set; then
47486   echo $ECHO_N "(cached) $ECHO_C" >&6
47487 else
47488   cat >conftest.$ac_ext <<_ACEOF
47489 /* confdefs.h.  */
47490 _ACEOF
47491 cat confdefs.h >>conftest.$ac_ext
47492 cat >>conftest.$ac_ext <<_ACEOF
47493 /* end confdefs.h.  */
47494 $ac_includes_default
47495 int
47496 main ()
47497 {
47498 if ((caddr_t *) 0)
47499   return 0;
47500 if (sizeof (caddr_t))
47501   return 0;
47502   ;
47503   return 0;
47504 }
47505 _ACEOF
47506 rm -f conftest.$ac_objext
47507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47508   (eval $ac_compile) 2>conftest.er1
47509   ac_status=$?
47510   grep -v '^ *+' conftest.er1 >conftest.err
47511   rm -f conftest.er1
47512   cat conftest.err >&5
47513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47514   (exit $ac_status); } &&
47515          { ac_try='test -z "$ac_c_werror_flag"
47516                          || test ! -s conftest.err'
47517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47518   (eval $ac_try) 2>&5
47519   ac_status=$?
47520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47521   (exit $ac_status); }; } &&
47522          { ac_try='test -s conftest.$ac_objext'
47523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47524   (eval $ac_try) 2>&5
47525   ac_status=$?
47526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47527   (exit $ac_status); }; }; then
47528   ac_cv_type_caddr_t=yes
47529 else
47530   echo "$as_me: failed program was:" >&5
47531 sed 's/^/| /' conftest.$ac_ext >&5
47532
47533 ac_cv_type_caddr_t=no
47534 fi
47535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47536 fi
47537 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47538 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47539 if test $ac_cv_type_caddr_t = yes; then
47540   :
47541 else
47542
47543 cat >>confdefs.h <<_ACEOF
47544 #define caddr_t char *
47545 _ACEOF
47546
47547 fi
47548
47549 echo "$as_me:$LINENO: checking for size_t" >&5
47550 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47551 if test "${ac_cv_type_size_t+set}" = set; then
47552   echo $ECHO_N "(cached) $ECHO_C" >&6
47553 else
47554   cat >conftest.$ac_ext <<_ACEOF
47555 /* confdefs.h.  */
47556 _ACEOF
47557 cat confdefs.h >>conftest.$ac_ext
47558 cat >>conftest.$ac_ext <<_ACEOF
47559 /* end confdefs.h.  */
47560 $ac_includes_default
47561 int
47562 main ()
47563 {
47564 if ((size_t *) 0)
47565   return 0;
47566 if (sizeof (size_t))
47567   return 0;
47568   ;
47569   return 0;
47570 }
47571 _ACEOF
47572 rm -f conftest.$ac_objext
47573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47574   (eval $ac_compile) 2>conftest.er1
47575   ac_status=$?
47576   grep -v '^ *+' conftest.er1 >conftest.err
47577   rm -f conftest.er1
47578   cat conftest.err >&5
47579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47580   (exit $ac_status); } &&
47581          { ac_try='test -z "$ac_c_werror_flag"
47582                          || test ! -s conftest.err'
47583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47584   (eval $ac_try) 2>&5
47585   ac_status=$?
47586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47587   (exit $ac_status); }; } &&
47588          { ac_try='test -s conftest.$ac_objext'
47589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47590   (eval $ac_try) 2>&5
47591   ac_status=$?
47592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47593   (exit $ac_status); }; }; then
47594   ac_cv_type_size_t=yes
47595 else
47596   echo "$as_me: failed program was:" >&5
47597 sed 's/^/| /' conftest.$ac_ext >&5
47598
47599 ac_cv_type_size_t=no
47600 fi
47601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47602 fi
47603 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47604 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47605 if test $ac_cv_type_size_t = yes; then
47606   :
47607 else
47608
47609 cat >>confdefs.h <<_ACEOF
47610 #define size_t unsigned
47611 _ACEOF
47612
47613 fi
47614
47615
47616 echo "$as_me:$LINENO: checking for long long" >&5
47617 echo $ECHO_N "checking for long long... $ECHO_C" >&6
47618 if test "${ac_cv_type_long_long+set}" = set; then
47619   echo $ECHO_N "(cached) $ECHO_C" >&6
47620 else
47621   cat >conftest.$ac_ext <<_ACEOF
47622 /* confdefs.h.  */
47623 _ACEOF
47624 cat confdefs.h >>conftest.$ac_ext
47625 cat >>conftest.$ac_ext <<_ACEOF
47626 /* end confdefs.h.  */
47627 $ac_includes_default
47628 int
47629 main ()
47630 {
47631 if ((long long *) 0)
47632   return 0;
47633 if (sizeof (long long))
47634   return 0;
47635   ;
47636   return 0;
47637 }
47638 _ACEOF
47639 rm -f conftest.$ac_objext
47640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47641   (eval $ac_compile) 2>conftest.er1
47642   ac_status=$?
47643   grep -v '^ *+' conftest.er1 >conftest.err
47644   rm -f conftest.er1
47645   cat conftest.err >&5
47646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47647   (exit $ac_status); } &&
47648          { ac_try='test -z "$ac_c_werror_flag"
47649                          || test ! -s conftest.err'
47650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47651   (eval $ac_try) 2>&5
47652   ac_status=$?
47653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47654   (exit $ac_status); }; } &&
47655          { ac_try='test -s conftest.$ac_objext'
47656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47657   (eval $ac_try) 2>&5
47658   ac_status=$?
47659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47660   (exit $ac_status); }; }; then
47661   ac_cv_type_long_long=yes
47662 else
47663   echo "$as_me: failed program was:" >&5
47664 sed 's/^/| /' conftest.$ac_ext >&5
47665
47666 ac_cv_type_long_long=no
47667 fi
47668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47669 fi
47670 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
47671 echo "${ECHO_T}$ac_cv_type_long_long" >&6
47672 if test $ac_cv_type_long_long = yes; then
47673
47674 cat >>confdefs.h <<_ACEOF
47675 #define HAVE_LONG_LONG 1
47676 _ACEOF
47677
47678
47679 fi
47680
47681 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47682 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47683 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47684   echo $ECHO_N "(cached) $ECHO_C" >&6
47685 else
47686   cat >conftest.$ac_ext <<_ACEOF
47687 /* confdefs.h.  */
47688 _ACEOF
47689 cat confdefs.h >>conftest.$ac_ext
47690 cat >>conftest.$ac_ext <<_ACEOF
47691 /* end confdefs.h.  */
47692 $ac_includes_default
47693 int
47694 main ()
47695 {
47696 if ((ptrdiff_t *) 0)
47697   return 0;
47698 if (sizeof (ptrdiff_t))
47699   return 0;
47700   ;
47701   return 0;
47702 }
47703 _ACEOF
47704 rm -f conftest.$ac_objext
47705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47706   (eval $ac_compile) 2>conftest.er1
47707   ac_status=$?
47708   grep -v '^ *+' conftest.er1 >conftest.err
47709   rm -f conftest.er1
47710   cat conftest.err >&5
47711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47712   (exit $ac_status); } &&
47713          { ac_try='test -z "$ac_c_werror_flag"
47714                          || test ! -s conftest.err'
47715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47716   (eval $ac_try) 2>&5
47717   ac_status=$?
47718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47719   (exit $ac_status); }; } &&
47720          { ac_try='test -s conftest.$ac_objext'
47721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47722   (eval $ac_try) 2>&5
47723   ac_status=$?
47724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47725   (exit $ac_status); }; }; then
47726   ac_cv_type_ptrdiff_t=yes
47727 else
47728   echo "$as_me: failed program was:" >&5
47729 sed 's/^/| /' conftest.$ac_ext >&5
47730
47731 ac_cv_type_ptrdiff_t=no
47732 fi
47733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47734 fi
47735 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47736 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47737 if test $ac_cv_type_ptrdiff_t = yes; then
47738
47739 cat >>confdefs.h <<_ACEOF
47740 #define HAVE_PTRDIFF_T 1
47741 _ACEOF
47742
47743
47744 fi
47745
47746
47747 echo "$as_me:$LINENO: checking for socklen_t" >&5
47748 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47749 if test "${ac_cv_type_socklen_t+set}" = set; then
47750   echo $ECHO_N "(cached) $ECHO_C" >&6
47751 else
47752   cat >conftest.$ac_ext <<_ACEOF
47753 /* confdefs.h.  */
47754 _ACEOF
47755 cat confdefs.h >>conftest.$ac_ext
47756 cat >>conftest.$ac_ext <<_ACEOF
47757 /* end confdefs.h.  */
47758 $ac_includes_default
47759 #ifdef HAVE_SYS_SOCKET_H
47760 #include <sys/socket.h>
47761 #endif
47762
47763
47764 int
47765 main ()
47766 {
47767 if ((socklen_t *) 0)
47768   return 0;
47769 if (sizeof (socklen_t))
47770   return 0;
47771   ;
47772   return 0;
47773 }
47774 _ACEOF
47775 rm -f conftest.$ac_objext
47776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47777   (eval $ac_compile) 2>conftest.er1
47778   ac_status=$?
47779   grep -v '^ *+' conftest.er1 >conftest.err
47780   rm -f conftest.er1
47781   cat conftest.err >&5
47782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47783   (exit $ac_status); } &&
47784          { ac_try='test -z "$ac_c_werror_flag"
47785                          || test ! -s conftest.err'
47786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47787   (eval $ac_try) 2>&5
47788   ac_status=$?
47789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47790   (exit $ac_status); }; } &&
47791          { ac_try='test -s conftest.$ac_objext'
47792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47793   (eval $ac_try) 2>&5
47794   ac_status=$?
47795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47796   (exit $ac_status); }; }; then
47797   ac_cv_type_socklen_t=yes
47798 else
47799   echo "$as_me: failed program was:" >&5
47800 sed 's/^/| /' conftest.$ac_ext >&5
47801
47802 ac_cv_type_socklen_t=no
47803 fi
47804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47805 fi
47806 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
47807 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
47808 if test $ac_cv_type_socklen_t = yes; then
47809   :
47810 else
47811
47812 cat >>confdefs.h <<_ACEOF
47813 #define socklen_t int
47814 _ACEOF
47815
47816 fi
47817
47818
47819 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47820 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47821 if test "${ac_cv_type_signal+set}" = set; then
47822   echo $ECHO_N "(cached) $ECHO_C" >&6
47823 else
47824   cat >conftest.$ac_ext <<_ACEOF
47825 /* confdefs.h.  */
47826 _ACEOF
47827 cat confdefs.h >>conftest.$ac_ext
47828 cat >>conftest.$ac_ext <<_ACEOF
47829 /* end confdefs.h.  */
47830 #include <sys/types.h>
47831 #include <signal.h>
47832 #ifdef signal
47833 # undef signal
47834 #endif
47835 #ifdef __cplusplus
47836 extern "C" void (*signal (int, void (*)(int)))(int);
47837 #else
47838 void (*signal ()) ();
47839 #endif
47840
47841 int
47842 main ()
47843 {
47844 int i;
47845   ;
47846   return 0;
47847 }
47848 _ACEOF
47849 rm -f conftest.$ac_objext
47850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47851   (eval $ac_compile) 2>conftest.er1
47852   ac_status=$?
47853   grep -v '^ *+' conftest.er1 >conftest.err
47854   rm -f conftest.er1
47855   cat conftest.err >&5
47856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47857   (exit $ac_status); } &&
47858          { ac_try='test -z "$ac_c_werror_flag"
47859                          || test ! -s conftest.err'
47860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47861   (eval $ac_try) 2>&5
47862   ac_status=$?
47863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47864   (exit $ac_status); }; } &&
47865          { ac_try='test -s conftest.$ac_objext'
47866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47867   (eval $ac_try) 2>&5
47868   ac_status=$?
47869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47870   (exit $ac_status); }; }; then
47871   ac_cv_type_signal=void
47872 else
47873   echo "$as_me: failed program was:" >&5
47874 sed 's/^/| /' conftest.$ac_ext >&5
47875
47876 ac_cv_type_signal=int
47877 fi
47878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47879 fi
47880 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47881 echo "${ECHO_T}$ac_cv_type_signal" >&6
47882
47883 cat >>confdefs.h <<_ACEOF
47884 #define RETSIGTYPE $ac_cv_type_signal
47885 _ACEOF
47886
47887
47888
47889 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47890 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47891 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
47892   echo $ECHO_N "(cached) $ECHO_C" >&6
47893 else
47894   cat >conftest.$ac_ext <<_ACEOF
47895 /* confdefs.h.  */
47896 _ACEOF
47897 cat confdefs.h >>conftest.$ac_ext
47898 cat >>conftest.$ac_ext <<_ACEOF
47899 /* end confdefs.h.  */
47900 $ac_includes_default
47901 #include <signal.h>
47902
47903
47904 int
47905 main ()
47906 {
47907 if ((sig_atomic_t *) 0)
47908   return 0;
47909 if (sizeof (sig_atomic_t))
47910   return 0;
47911   ;
47912   return 0;
47913 }
47914 _ACEOF
47915 rm -f conftest.$ac_objext
47916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47917   (eval $ac_compile) 2>conftest.er1
47918   ac_status=$?
47919   grep -v '^ *+' conftest.er1 >conftest.err
47920   rm -f conftest.er1
47921   cat conftest.err >&5
47922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47923   (exit $ac_status); } &&
47924          { ac_try='test -z "$ac_c_werror_flag"
47925                          || test ! -s conftest.err'
47926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47927   (eval $ac_try) 2>&5
47928   ac_status=$?
47929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47930   (exit $ac_status); }; } &&
47931          { ac_try='test -s conftest.$ac_objext'
47932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47933   (eval $ac_try) 2>&5
47934   ac_status=$?
47935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47936   (exit $ac_status); }; }; then
47937   ac_cv_type_sig_atomic_t=yes
47938 else
47939   echo "$as_me: failed program was:" >&5
47940 sed 's/^/| /' conftest.$ac_ext >&5
47941
47942 ac_cv_type_sig_atomic_t=no
47943 fi
47944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47945 fi
47946 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
47947 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
47948 if test $ac_cv_type_sig_atomic_t = yes; then
47949   :
47950 else
47951
47952 cat >>confdefs.h <<_ACEOF
47953 #define sig_atomic_t int
47954 _ACEOF
47955
47956 fi
47957
47958
47959 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47960 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47961 if test "${ac_cv_type_uid_t+set}" = set; then
47962   echo $ECHO_N "(cached) $ECHO_C" >&6
47963 else
47964   cat >conftest.$ac_ext <<_ACEOF
47965 /* confdefs.h.  */
47966 _ACEOF
47967 cat confdefs.h >>conftest.$ac_ext
47968 cat >>conftest.$ac_ext <<_ACEOF
47969 /* end confdefs.h.  */
47970 #include <sys/types.h>
47971
47972 _ACEOF
47973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47974   $EGREP "uid_t" >/dev/null 2>&1; then
47975   ac_cv_type_uid_t=yes
47976 else
47977   ac_cv_type_uid_t=no
47978 fi
47979 rm -f conftest*
47980
47981 fi
47982 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47983 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47984 if test $ac_cv_type_uid_t = no; then
47985
47986 cat >>confdefs.h <<\_ACEOF
47987 #define uid_t int
47988 _ACEOF
47989
47990
47991 cat >>confdefs.h <<\_ACEOF
47992 #define gid_t int
47993 _ACEOF
47994
47995 fi
47996
47997
47998 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47999 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
48000 if test "${ac_cv_header_time+set}" = set; then
48001   echo $ECHO_N "(cached) $ECHO_C" >&6
48002 else
48003   cat >conftest.$ac_ext <<_ACEOF
48004 /* confdefs.h.  */
48005 _ACEOF
48006 cat confdefs.h >>conftest.$ac_ext
48007 cat >>conftest.$ac_ext <<_ACEOF
48008 /* end confdefs.h.  */
48009 #include <sys/types.h>
48010 #include <sys/time.h>
48011 #include <time.h>
48012
48013 int
48014 main ()
48015 {
48016 if ((struct tm *) 0)
48017 return 0;
48018   ;
48019   return 0;
48020 }
48021 _ACEOF
48022 rm -f conftest.$ac_objext
48023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48024   (eval $ac_compile) 2>conftest.er1
48025   ac_status=$?
48026   grep -v '^ *+' conftest.er1 >conftest.err
48027   rm -f conftest.er1
48028   cat conftest.err >&5
48029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48030   (exit $ac_status); } &&
48031          { ac_try='test -z "$ac_c_werror_flag"
48032                          || test ! -s conftest.err'
48033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48034   (eval $ac_try) 2>&5
48035   ac_status=$?
48036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48037   (exit $ac_status); }; } &&
48038          { ac_try='test -s conftest.$ac_objext'
48039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48040   (eval $ac_try) 2>&5
48041   ac_status=$?
48042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48043   (exit $ac_status); }; }; then
48044   ac_cv_header_time=yes
48045 else
48046   echo "$as_me: failed program was:" >&5
48047 sed 's/^/| /' conftest.$ac_ext >&5
48048
48049 ac_cv_header_time=no
48050 fi
48051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48052 fi
48053 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
48054 echo "${ECHO_T}$ac_cv_header_time" >&6
48055 if test $ac_cv_header_time = yes; then
48056
48057 cat >>confdefs.h <<\_ACEOF
48058 #define TIME_WITH_SYS_TIME 1
48059 _ACEOF
48060
48061 fi
48062
48063 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
48064 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
48065 if test "${ac_cv_struct_tm+set}" = set; then
48066   echo $ECHO_N "(cached) $ECHO_C" >&6
48067 else
48068   cat >conftest.$ac_ext <<_ACEOF
48069 /* confdefs.h.  */
48070 _ACEOF
48071 cat confdefs.h >>conftest.$ac_ext
48072 cat >>conftest.$ac_ext <<_ACEOF
48073 /* end confdefs.h.  */
48074 #include <sys/types.h>
48075 #include <time.h>
48076
48077 int
48078 main ()
48079 {
48080 struct tm *tp; tp->tm_sec;
48081   ;
48082   return 0;
48083 }
48084 _ACEOF
48085 rm -f conftest.$ac_objext
48086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48087   (eval $ac_compile) 2>conftest.er1
48088   ac_status=$?
48089   grep -v '^ *+' conftest.er1 >conftest.err
48090   rm -f conftest.er1
48091   cat conftest.err >&5
48092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48093   (exit $ac_status); } &&
48094          { ac_try='test -z "$ac_c_werror_flag"
48095                          || test ! -s conftest.err'
48096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48097   (eval $ac_try) 2>&5
48098   ac_status=$?
48099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48100   (exit $ac_status); }; } &&
48101          { ac_try='test -s conftest.$ac_objext'
48102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48103   (eval $ac_try) 2>&5
48104   ac_status=$?
48105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48106   (exit $ac_status); }; }; then
48107   ac_cv_struct_tm=time.h
48108 else
48109   echo "$as_me: failed program was:" >&5
48110 sed 's/^/| /' conftest.$ac_ext >&5
48111
48112 ac_cv_struct_tm=sys/time.h
48113 fi
48114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48115 fi
48116 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
48117 echo "${ECHO_T}$ac_cv_struct_tm" >&6
48118 if test $ac_cv_struct_tm = sys/time.h; then
48119
48120 cat >>confdefs.h <<\_ACEOF
48121 #define TM_IN_SYS_TIME 1
48122 _ACEOF
48123
48124 fi
48125
48126 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
48127 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
48128 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
48129   echo $ECHO_N "(cached) $ECHO_C" >&6
48130 else
48131   cat >conftest.$ac_ext <<_ACEOF
48132 /* confdefs.h.  */
48133 _ACEOF
48134 cat confdefs.h >>conftest.$ac_ext
48135 cat >>conftest.$ac_ext <<_ACEOF
48136 /* end confdefs.h.  */
48137 $ac_includes_default
48138 int
48139 main ()
48140 {
48141 static struct stat ac_aggr;
48142 if (ac_aggr.st_blksize)
48143 return 0;
48144   ;
48145   return 0;
48146 }
48147 _ACEOF
48148 rm -f conftest.$ac_objext
48149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48150   (eval $ac_compile) 2>conftest.er1
48151   ac_status=$?
48152   grep -v '^ *+' conftest.er1 >conftest.err
48153   rm -f conftest.er1
48154   cat conftest.err >&5
48155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48156   (exit $ac_status); } &&
48157          { ac_try='test -z "$ac_c_werror_flag"
48158                          || test ! -s conftest.err'
48159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48160   (eval $ac_try) 2>&5
48161   ac_status=$?
48162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48163   (exit $ac_status); }; } &&
48164          { ac_try='test -s conftest.$ac_objext'
48165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48166   (eval $ac_try) 2>&5
48167   ac_status=$?
48168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48169   (exit $ac_status); }; }; then
48170   ac_cv_member_struct_stat_st_blksize=yes
48171 else
48172   echo "$as_me: failed program was:" >&5
48173 sed 's/^/| /' conftest.$ac_ext >&5
48174
48175 cat >conftest.$ac_ext <<_ACEOF
48176 /* confdefs.h.  */
48177 _ACEOF
48178 cat confdefs.h >>conftest.$ac_ext
48179 cat >>conftest.$ac_ext <<_ACEOF
48180 /* end confdefs.h.  */
48181 $ac_includes_default
48182 int
48183 main ()
48184 {
48185 static struct stat ac_aggr;
48186 if (sizeof ac_aggr.st_blksize)
48187 return 0;
48188   ;
48189   return 0;
48190 }
48191 _ACEOF
48192 rm -f conftest.$ac_objext
48193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48194   (eval $ac_compile) 2>conftest.er1
48195   ac_status=$?
48196   grep -v '^ *+' conftest.er1 >conftest.err
48197   rm -f conftest.er1
48198   cat conftest.err >&5
48199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48200   (exit $ac_status); } &&
48201          { ac_try='test -z "$ac_c_werror_flag"
48202                          || test ! -s conftest.err'
48203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48204   (eval $ac_try) 2>&5
48205   ac_status=$?
48206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48207   (exit $ac_status); }; } &&
48208          { ac_try='test -s conftest.$ac_objext'
48209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48210   (eval $ac_try) 2>&5
48211   ac_status=$?
48212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48213   (exit $ac_status); }; }; then
48214   ac_cv_member_struct_stat_st_blksize=yes
48215 else
48216   echo "$as_me: failed program was:" >&5
48217 sed 's/^/| /' conftest.$ac_ext >&5
48218
48219 ac_cv_member_struct_stat_st_blksize=no
48220 fi
48221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48222 fi
48223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48224 fi
48225 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
48226 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
48227 if test $ac_cv_member_struct_stat_st_blksize = yes; then
48228
48229 cat >>confdefs.h <<_ACEOF
48230 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
48231 _ACEOF
48232
48233
48234 fi
48235
48236 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
48237 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
48238 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
48239   echo $ECHO_N "(cached) $ECHO_C" >&6
48240 else
48241   cat >conftest.$ac_ext <<_ACEOF
48242 /* confdefs.h.  */
48243 _ACEOF
48244 cat confdefs.h >>conftest.$ac_ext
48245 cat >>conftest.$ac_ext <<_ACEOF
48246 /* end confdefs.h.  */
48247 $ac_includes_default
48248 #include <pwd.h>
48249
48250 int
48251 main ()
48252 {
48253 static struct passwd ac_aggr;
48254 if (ac_aggr.pw_gecos)
48255 return 0;
48256   ;
48257   return 0;
48258 }
48259 _ACEOF
48260 rm -f conftest.$ac_objext
48261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48262   (eval $ac_compile) 2>conftest.er1
48263   ac_status=$?
48264   grep -v '^ *+' conftest.er1 >conftest.err
48265   rm -f conftest.er1
48266   cat conftest.err >&5
48267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48268   (exit $ac_status); } &&
48269          { ac_try='test -z "$ac_c_werror_flag"
48270                          || test ! -s conftest.err'
48271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48272   (eval $ac_try) 2>&5
48273   ac_status=$?
48274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48275   (exit $ac_status); }; } &&
48276          { ac_try='test -s conftest.$ac_objext'
48277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48278   (eval $ac_try) 2>&5
48279   ac_status=$?
48280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48281   (exit $ac_status); }; }; then
48282   ac_cv_member_struct_passwd_pw_gecos=yes
48283 else
48284   echo "$as_me: failed program was:" >&5
48285 sed 's/^/| /' conftest.$ac_ext >&5
48286
48287 cat >conftest.$ac_ext <<_ACEOF
48288 /* confdefs.h.  */
48289 _ACEOF
48290 cat confdefs.h >>conftest.$ac_ext
48291 cat >>conftest.$ac_ext <<_ACEOF
48292 /* end confdefs.h.  */
48293 $ac_includes_default
48294 #include <pwd.h>
48295
48296 int
48297 main ()
48298 {
48299 static struct passwd ac_aggr;
48300 if (sizeof ac_aggr.pw_gecos)
48301 return 0;
48302   ;
48303   return 0;
48304 }
48305 _ACEOF
48306 rm -f conftest.$ac_objext
48307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48308   (eval $ac_compile) 2>conftest.er1
48309   ac_status=$?
48310   grep -v '^ *+' conftest.er1 >conftest.err
48311   rm -f conftest.er1
48312   cat conftest.err >&5
48313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48314   (exit $ac_status); } &&
48315          { ac_try='test -z "$ac_c_werror_flag"
48316                          || test ! -s conftest.err'
48317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48318   (eval $ac_try) 2>&5
48319   ac_status=$?
48320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48321   (exit $ac_status); }; } &&
48322          { ac_try='test -s conftest.$ac_objext'
48323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48324   (eval $ac_try) 2>&5
48325   ac_status=$?
48326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48327   (exit $ac_status); }; }; then
48328   ac_cv_member_struct_passwd_pw_gecos=yes
48329 else
48330   echo "$as_me: failed program was:" >&5
48331 sed 's/^/| /' conftest.$ac_ext >&5
48332
48333 ac_cv_member_struct_passwd_pw_gecos=no
48334 fi
48335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48336 fi
48337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48338 fi
48339 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
48340 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
48341 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
48342
48343 cat >>confdefs.h <<_ACEOF
48344 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
48345 _ACEOF
48346
48347
48348 fi
48349
48350 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
48351 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
48352 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
48353   echo $ECHO_N "(cached) $ECHO_C" >&6
48354 else
48355   cat >conftest.$ac_ext <<_ACEOF
48356 /* confdefs.h.  */
48357 _ACEOF
48358 cat confdefs.h >>conftest.$ac_ext
48359 cat >>conftest.$ac_ext <<_ACEOF
48360 /* end confdefs.h.  */
48361 $ac_includes_default
48362 #include <pwd.h>
48363
48364 int
48365 main ()
48366 {
48367 static struct passwd ac_aggr;
48368 if (ac_aggr.pw_passwd)
48369 return 0;
48370   ;
48371   return 0;
48372 }
48373 _ACEOF
48374 rm -f conftest.$ac_objext
48375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48376   (eval $ac_compile) 2>conftest.er1
48377   ac_status=$?
48378   grep -v '^ *+' conftest.er1 >conftest.err
48379   rm -f conftest.er1
48380   cat conftest.err >&5
48381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48382   (exit $ac_status); } &&
48383          { ac_try='test -z "$ac_c_werror_flag"
48384                          || test ! -s conftest.err'
48385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48386   (eval $ac_try) 2>&5
48387   ac_status=$?
48388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48389   (exit $ac_status); }; } &&
48390          { ac_try='test -s conftest.$ac_objext'
48391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48392   (eval $ac_try) 2>&5
48393   ac_status=$?
48394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48395   (exit $ac_status); }; }; then
48396   ac_cv_member_struct_passwd_pw_passwd=yes
48397 else
48398   echo "$as_me: failed program was:" >&5
48399 sed 's/^/| /' conftest.$ac_ext >&5
48400
48401 cat >conftest.$ac_ext <<_ACEOF
48402 /* confdefs.h.  */
48403 _ACEOF
48404 cat confdefs.h >>conftest.$ac_ext
48405 cat >>conftest.$ac_ext <<_ACEOF
48406 /* end confdefs.h.  */
48407 $ac_includes_default
48408 #include <pwd.h>
48409
48410 int
48411 main ()
48412 {
48413 static struct passwd ac_aggr;
48414 if (sizeof ac_aggr.pw_passwd)
48415 return 0;
48416   ;
48417   return 0;
48418 }
48419 _ACEOF
48420 rm -f conftest.$ac_objext
48421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48422   (eval $ac_compile) 2>conftest.er1
48423   ac_status=$?
48424   grep -v '^ *+' conftest.er1 >conftest.err
48425   rm -f conftest.er1
48426   cat conftest.err >&5
48427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48428   (exit $ac_status); } &&
48429          { ac_try='test -z "$ac_c_werror_flag"
48430                          || test ! -s conftest.err'
48431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48432   (eval $ac_try) 2>&5
48433   ac_status=$?
48434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48435   (exit $ac_status); }; } &&
48436          { ac_try='test -s conftest.$ac_objext'
48437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48438   (eval $ac_try) 2>&5
48439   ac_status=$?
48440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48441   (exit $ac_status); }; }; then
48442   ac_cv_member_struct_passwd_pw_passwd=yes
48443 else
48444   echo "$as_me: failed program was:" >&5
48445 sed 's/^/| /' conftest.$ac_ext >&5
48446
48447 ac_cv_member_struct_passwd_pw_passwd=no
48448 fi
48449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48450 fi
48451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48452 fi
48453 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
48454 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
48455 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
48456
48457 cat >>confdefs.h <<_ACEOF
48458 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
48459 _ACEOF
48460
48461
48462 fi
48463
48464
48465 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48466 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48467 if test "${ol_cv_c_upper_lower+set}" = set; then
48468   echo $ECHO_N "(cached) $ECHO_C" >&6
48469 else
48470
48471         if test "$cross_compiling" = yes; then
48472   ol_cv_c_upper_lower=safe
48473 else
48474   cat >conftest.$ac_ext <<_ACEOF
48475 /* confdefs.h.  */
48476 _ACEOF
48477 cat confdefs.h >>conftest.$ac_ext
48478 cat >>conftest.$ac_ext <<_ACEOF
48479 /* end confdefs.h.  */
48480
48481 #include <ctype.h>
48482 main()
48483 {
48484         if ('C' == toupper('C'))
48485                 exit(0);
48486         else
48487                 exit(1);
48488 }
48489 _ACEOF
48490 rm -f conftest$ac_exeext
48491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48492   (eval $ac_link) 2>&5
48493   ac_status=$?
48494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48495   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48497   (eval $ac_try) 2>&5
48498   ac_status=$?
48499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48500   (exit $ac_status); }; }; then
48501   ol_cv_c_upper_lower=no
48502 else
48503   echo "$as_me: program exited with status $ac_status" >&5
48504 echo "$as_me: failed program was:" >&5
48505 sed 's/^/| /' conftest.$ac_ext >&5
48506
48507 ( exit $ac_status )
48508 ol_cv_c_upper_lower=yes
48509 fi
48510 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48511 fi
48512 fi
48513 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48514 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48515 if test $ol_cv_c_upper_lower != no ; then
48516
48517 cat >>confdefs.h <<\_ACEOF
48518 #define C_UPPER_LOWER 1
48519 _ACEOF
48520
48521 fi
48522
48523 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48524 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48525 if test "${ac_cv_c_const+set}" = set; then
48526   echo $ECHO_N "(cached) $ECHO_C" >&6
48527 else
48528   cat >conftest.$ac_ext <<_ACEOF
48529 /* confdefs.h.  */
48530 _ACEOF
48531 cat confdefs.h >>conftest.$ac_ext
48532 cat >>conftest.$ac_ext <<_ACEOF
48533 /* end confdefs.h.  */
48534
48535 int
48536 main ()
48537 {
48538 /* FIXME: Include the comments suggested by Paul. */
48539 #ifndef __cplusplus
48540   /* Ultrix mips cc rejects this.  */
48541   typedef int charset[2];
48542   const charset x;
48543   /* SunOS 4.1.1 cc rejects this.  */
48544   char const *const *ccp;
48545   char **p;
48546   /* NEC SVR4.0.2 mips cc rejects this.  */
48547   struct point {int x, y;};
48548   static struct point const zero = {0,0};
48549   /* AIX XL C 1.02.0.0 rejects this.
48550      It does not let you subtract one const X* pointer from another in
48551      an arm of an if-expression whose if-part is not a constant
48552      expression */
48553   const char *g = "string";
48554   ccp = &g + (g ? g-g : 0);
48555   /* HPUX 7.0 cc rejects these. */
48556   ++ccp;
48557   p = (char**) ccp;
48558   ccp = (char const *const *) p;
48559   { /* SCO 3.2v4 cc rejects this.  */
48560     char *t;
48561     char const *s = 0 ? (char *) 0 : (char const *) 0;
48562
48563     *t++ = 0;
48564   }
48565   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
48566     int x[] = {25, 17};
48567     const int *foo = &x[0];
48568     ++foo;
48569   }
48570   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48571     typedef const int *iptr;
48572     iptr p = 0;
48573     ++p;
48574   }
48575   { /* AIX XL C 1.02.0.0 rejects this saying
48576        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48577     struct s { int j; const int *ap[3]; };
48578     struct s *b; b->j = 5;
48579   }
48580   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48581     const int foo = 10;
48582   }
48583 #endif
48584
48585   ;
48586   return 0;
48587 }
48588 _ACEOF
48589 rm -f conftest.$ac_objext
48590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48591   (eval $ac_compile) 2>conftest.er1
48592   ac_status=$?
48593   grep -v '^ *+' conftest.er1 >conftest.err
48594   rm -f conftest.er1
48595   cat conftest.err >&5
48596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48597   (exit $ac_status); } &&
48598          { ac_try='test -z "$ac_c_werror_flag"
48599                          || test ! -s conftest.err'
48600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48601   (eval $ac_try) 2>&5
48602   ac_status=$?
48603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48604   (exit $ac_status); }; } &&
48605          { ac_try='test -s conftest.$ac_objext'
48606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48607   (eval $ac_try) 2>&5
48608   ac_status=$?
48609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48610   (exit $ac_status); }; }; then
48611   ac_cv_c_const=yes
48612 else
48613   echo "$as_me: failed program was:" >&5
48614 sed 's/^/| /' conftest.$ac_ext >&5
48615
48616 ac_cv_c_const=no
48617 fi
48618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48619 fi
48620 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48621 echo "${ECHO_T}$ac_cv_c_const" >&6
48622 if test $ac_cv_c_const = no; then
48623
48624 cat >>confdefs.h <<\_ACEOF
48625 #define const
48626 _ACEOF
48627
48628 fi
48629
48630 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48631 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48632 if test "${ol_cv_c_volatile+set}" = set; then
48633   echo $ECHO_N "(cached) $ECHO_C" >&6
48634 else
48635   cat >conftest.$ac_ext <<_ACEOF
48636 /* confdefs.h.  */
48637 _ACEOF
48638 cat confdefs.h >>conftest.$ac_ext
48639 cat >>conftest.$ac_ext <<_ACEOF
48640 /* end confdefs.h.  */
48641 int x, y, z;
48642 int
48643 main ()
48644 {
48645 volatile int a; int * volatile b = x ? &y : &z;
48646       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48647       *b = 0;
48648   ;
48649   return 0;
48650 }
48651 _ACEOF
48652 rm -f conftest.$ac_objext
48653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48654   (eval $ac_compile) 2>conftest.er1
48655   ac_status=$?
48656   grep -v '^ *+' conftest.er1 >conftest.err
48657   rm -f conftest.er1
48658   cat conftest.err >&5
48659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48660   (exit $ac_status); } &&
48661          { ac_try='test -z "$ac_c_werror_flag"
48662                          || test ! -s conftest.err'
48663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48664   (eval $ac_try) 2>&5
48665   ac_status=$?
48666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48667   (exit $ac_status); }; } &&
48668          { ac_try='test -s conftest.$ac_objext'
48669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48670   (eval $ac_try) 2>&5
48671   ac_status=$?
48672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48673   (exit $ac_status); }; }; then
48674   ol_cv_c_volatile=yes
48675 else
48676   echo "$as_me: failed program was:" >&5
48677 sed 's/^/| /' conftest.$ac_ext >&5
48678
48679 ol_cv_c_volatile=no
48680 fi
48681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48682 fi
48683 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48684 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48685   if test $ol_cv_c_volatile = yes; then
48686     :
48687   else
48688
48689 cat >>confdefs.h <<\_ACEOF
48690 #define volatile
48691 _ACEOF
48692
48693   fi
48694
48695
48696 if test $cross_compiling = yes ; then
48697         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48698 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48699
48700 cat >>confdefs.h <<\_ACEOF
48701 #define CROSS_COMPILING 1
48702 _ACEOF
48703
48704 else
48705         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48706 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48707 if test "${ac_cv_c_bigendian+set}" = set; then
48708   echo $ECHO_N "(cached) $ECHO_C" >&6
48709 else
48710   # See if sys/param.h defines the BYTE_ORDER macro.
48711 cat >conftest.$ac_ext <<_ACEOF
48712 /* confdefs.h.  */
48713 _ACEOF
48714 cat confdefs.h >>conftest.$ac_ext
48715 cat >>conftest.$ac_ext <<_ACEOF
48716 /* end confdefs.h.  */
48717 #include <sys/types.h>
48718 #include <sys/param.h>
48719
48720 int
48721 main ()
48722 {
48723 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48724  bogus endian macros
48725 #endif
48726
48727   ;
48728   return 0;
48729 }
48730 _ACEOF
48731 rm -f conftest.$ac_objext
48732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48733   (eval $ac_compile) 2>conftest.er1
48734   ac_status=$?
48735   grep -v '^ *+' conftest.er1 >conftest.err
48736   rm -f conftest.er1
48737   cat conftest.err >&5
48738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48739   (exit $ac_status); } &&
48740          { ac_try='test -z "$ac_c_werror_flag"
48741                          || test ! -s conftest.err'
48742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48743   (eval $ac_try) 2>&5
48744   ac_status=$?
48745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48746   (exit $ac_status); }; } &&
48747          { ac_try='test -s conftest.$ac_objext'
48748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48749   (eval $ac_try) 2>&5
48750   ac_status=$?
48751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48752   (exit $ac_status); }; }; then
48753   # It does; now see whether it defined to BIG_ENDIAN or not.
48754 cat >conftest.$ac_ext <<_ACEOF
48755 /* confdefs.h.  */
48756 _ACEOF
48757 cat confdefs.h >>conftest.$ac_ext
48758 cat >>conftest.$ac_ext <<_ACEOF
48759 /* end confdefs.h.  */
48760 #include <sys/types.h>
48761 #include <sys/param.h>
48762
48763 int
48764 main ()
48765 {
48766 #if BYTE_ORDER != BIG_ENDIAN
48767  not big endian
48768 #endif
48769
48770   ;
48771   return 0;
48772 }
48773 _ACEOF
48774 rm -f conftest.$ac_objext
48775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48776   (eval $ac_compile) 2>conftest.er1
48777   ac_status=$?
48778   grep -v '^ *+' conftest.er1 >conftest.err
48779   rm -f conftest.er1
48780   cat conftest.err >&5
48781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48782   (exit $ac_status); } &&
48783          { ac_try='test -z "$ac_c_werror_flag"
48784                          || test ! -s conftest.err'
48785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48786   (eval $ac_try) 2>&5
48787   ac_status=$?
48788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48789   (exit $ac_status); }; } &&
48790          { ac_try='test -s conftest.$ac_objext'
48791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48792   (eval $ac_try) 2>&5
48793   ac_status=$?
48794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48795   (exit $ac_status); }; }; then
48796   ac_cv_c_bigendian=yes
48797 else
48798   echo "$as_me: failed program was:" >&5
48799 sed 's/^/| /' conftest.$ac_ext >&5
48800
48801 ac_cv_c_bigendian=no
48802 fi
48803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48804 else
48805   echo "$as_me: failed program was:" >&5
48806 sed 's/^/| /' conftest.$ac_ext >&5
48807
48808 # It does not; compile a test program.
48809 if test "$cross_compiling" = yes; then
48810   # try to guess the endianness by grepping values into an object file
48811   ac_cv_c_bigendian=unknown
48812   cat >conftest.$ac_ext <<_ACEOF
48813 /* confdefs.h.  */
48814 _ACEOF
48815 cat confdefs.h >>conftest.$ac_ext
48816 cat >>conftest.$ac_ext <<_ACEOF
48817 /* end confdefs.h.  */
48818 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48819 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48820 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48821 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48822 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48823 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48824 int
48825 main ()
48826 {
48827  _ascii (); _ebcdic ();
48828   ;
48829   return 0;
48830 }
48831 _ACEOF
48832 rm -f conftest.$ac_objext
48833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48834   (eval $ac_compile) 2>conftest.er1
48835   ac_status=$?
48836   grep -v '^ *+' conftest.er1 >conftest.err
48837   rm -f conftest.er1
48838   cat conftest.err >&5
48839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48840   (exit $ac_status); } &&
48841          { ac_try='test -z "$ac_c_werror_flag"
48842                          || test ! -s conftest.err'
48843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48844   (eval $ac_try) 2>&5
48845   ac_status=$?
48846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48847   (exit $ac_status); }; } &&
48848          { ac_try='test -s conftest.$ac_objext'
48849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48850   (eval $ac_try) 2>&5
48851   ac_status=$?
48852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48853   (exit $ac_status); }; }; then
48854   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48855   ac_cv_c_bigendian=yes
48856 fi
48857 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48858   if test "$ac_cv_c_bigendian" = unknown; then
48859     ac_cv_c_bigendian=no
48860   else
48861     # finding both strings is unlikely to happen, but who knows?
48862     ac_cv_c_bigendian=unknown
48863   fi
48864 fi
48865 else
48866   echo "$as_me: failed program was:" >&5
48867 sed 's/^/| /' conftest.$ac_ext >&5
48868
48869 fi
48870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48871 else
48872   cat >conftest.$ac_ext <<_ACEOF
48873 /* confdefs.h.  */
48874 _ACEOF
48875 cat confdefs.h >>conftest.$ac_ext
48876 cat >>conftest.$ac_ext <<_ACEOF
48877 /* end confdefs.h.  */
48878 int
48879 main ()
48880 {
48881   /* Are we little or big endian?  From Harbison&Steele.  */
48882   union
48883   {
48884     long l;
48885     char c[sizeof (long)];
48886   } u;
48887   u.l = 1;
48888   exit (u.c[sizeof (long) - 1] == 1);
48889 }
48890 _ACEOF
48891 rm -f conftest$ac_exeext
48892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48893   (eval $ac_link) 2>&5
48894   ac_status=$?
48895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48896   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48898   (eval $ac_try) 2>&5
48899   ac_status=$?
48900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48901   (exit $ac_status); }; }; then
48902   ac_cv_c_bigendian=no
48903 else
48904   echo "$as_me: program exited with status $ac_status" >&5
48905 echo "$as_me: failed program was:" >&5
48906 sed 's/^/| /' conftest.$ac_ext >&5
48907
48908 ( exit $ac_status )
48909 ac_cv_c_bigendian=yes
48910 fi
48911 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48912 fi
48913 fi
48914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48915 fi
48916 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48917 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48918 case $ac_cv_c_bigendian in
48919   yes)
48920
48921 cat >>confdefs.h <<\_ACEOF
48922 #define WORDS_BIGENDIAN 1
48923 _ACEOF
48924  ;;
48925   no)
48926      ;;
48927   *)
48928     { { echo "$as_me:$LINENO: error: unknown endianness
48929 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48930 echo "$as_me: error: unknown endianness
48931 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48932    { (exit 1); exit 1; }; } ;;
48933 esac
48934
48935 fi
48936
48937 echo "$as_me:$LINENO: checking for short" >&5
48938 echo $ECHO_N "checking for short... $ECHO_C" >&6
48939 if test "${ac_cv_type_short+set}" = set; then
48940   echo $ECHO_N "(cached) $ECHO_C" >&6
48941 else
48942   cat >conftest.$ac_ext <<_ACEOF
48943 /* confdefs.h.  */
48944 _ACEOF
48945 cat confdefs.h >>conftest.$ac_ext
48946 cat >>conftest.$ac_ext <<_ACEOF
48947 /* end confdefs.h.  */
48948 $ac_includes_default
48949 int
48950 main ()
48951 {
48952 if ((short *) 0)
48953   return 0;
48954 if (sizeof (short))
48955   return 0;
48956   ;
48957   return 0;
48958 }
48959 _ACEOF
48960 rm -f conftest.$ac_objext
48961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48962   (eval $ac_compile) 2>conftest.er1
48963   ac_status=$?
48964   grep -v '^ *+' conftest.er1 >conftest.err
48965   rm -f conftest.er1
48966   cat conftest.err >&5
48967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48968   (exit $ac_status); } &&
48969          { ac_try='test -z "$ac_c_werror_flag"
48970                          || test ! -s conftest.err'
48971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48972   (eval $ac_try) 2>&5
48973   ac_status=$?
48974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48975   (exit $ac_status); }; } &&
48976          { ac_try='test -s conftest.$ac_objext'
48977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48978   (eval $ac_try) 2>&5
48979   ac_status=$?
48980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48981   (exit $ac_status); }; }; then
48982   ac_cv_type_short=yes
48983 else
48984   echo "$as_me: failed program was:" >&5
48985 sed 's/^/| /' conftest.$ac_ext >&5
48986
48987 ac_cv_type_short=no
48988 fi
48989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48990 fi
48991 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
48992 echo "${ECHO_T}$ac_cv_type_short" >&6
48993
48994 echo "$as_me:$LINENO: checking size of short" >&5
48995 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48996 if test "${ac_cv_sizeof_short+set}" = set; then
48997   echo $ECHO_N "(cached) $ECHO_C" >&6
48998 else
48999   if test "$ac_cv_type_short" = yes; then
49000   # The cast to unsigned long works around a bug in the HP C Compiler
49001   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49002   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49003   # This bug is HP SR number 8606223364.
49004   if test "$cross_compiling" = yes; then
49005   # Depending upon the size, compute the lo and hi bounds.
49006 cat >conftest.$ac_ext <<_ACEOF
49007 /* confdefs.h.  */
49008 _ACEOF
49009 cat confdefs.h >>conftest.$ac_ext
49010 cat >>conftest.$ac_ext <<_ACEOF
49011 /* end confdefs.h.  */
49012 $ac_includes_default
49013 int
49014 main ()
49015 {
49016 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
49017 test_array [0] = 0
49018
49019   ;
49020   return 0;
49021 }
49022 _ACEOF
49023 rm -f conftest.$ac_objext
49024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49025   (eval $ac_compile) 2>conftest.er1
49026   ac_status=$?
49027   grep -v '^ *+' conftest.er1 >conftest.err
49028   rm -f conftest.er1
49029   cat conftest.err >&5
49030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49031   (exit $ac_status); } &&
49032          { ac_try='test -z "$ac_c_werror_flag"
49033                          || test ! -s conftest.err'
49034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49035   (eval $ac_try) 2>&5
49036   ac_status=$?
49037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49038   (exit $ac_status); }; } &&
49039          { ac_try='test -s conftest.$ac_objext'
49040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49041   (eval $ac_try) 2>&5
49042   ac_status=$?
49043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49044   (exit $ac_status); }; }; then
49045   ac_lo=0 ac_mid=0
49046   while :; do
49047     cat >conftest.$ac_ext <<_ACEOF
49048 /* confdefs.h.  */
49049 _ACEOF
49050 cat confdefs.h >>conftest.$ac_ext
49051 cat >>conftest.$ac_ext <<_ACEOF
49052 /* end confdefs.h.  */
49053 $ac_includes_default
49054 int
49055 main ()
49056 {
49057 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
49058 test_array [0] = 0
49059
49060   ;
49061   return 0;
49062 }
49063 _ACEOF
49064 rm -f conftest.$ac_objext
49065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49066   (eval $ac_compile) 2>conftest.er1
49067   ac_status=$?
49068   grep -v '^ *+' conftest.er1 >conftest.err
49069   rm -f conftest.er1
49070   cat conftest.err >&5
49071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49072   (exit $ac_status); } &&
49073          { ac_try='test -z "$ac_c_werror_flag"
49074                          || test ! -s conftest.err'
49075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49076   (eval $ac_try) 2>&5
49077   ac_status=$?
49078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49079   (exit $ac_status); }; } &&
49080          { ac_try='test -s conftest.$ac_objext'
49081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49082   (eval $ac_try) 2>&5
49083   ac_status=$?
49084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49085   (exit $ac_status); }; }; then
49086   ac_hi=$ac_mid; break
49087 else
49088   echo "$as_me: failed program was:" >&5
49089 sed 's/^/| /' conftest.$ac_ext >&5
49090
49091 ac_lo=`expr $ac_mid + 1`
49092                     if test $ac_lo -le $ac_mid; then
49093                       ac_lo= ac_hi=
49094                       break
49095                     fi
49096                     ac_mid=`expr 2 '*' $ac_mid + 1`
49097 fi
49098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49099   done
49100 else
49101   echo "$as_me: failed program was:" >&5
49102 sed 's/^/| /' conftest.$ac_ext >&5
49103
49104 cat >conftest.$ac_ext <<_ACEOF
49105 /* confdefs.h.  */
49106 _ACEOF
49107 cat confdefs.h >>conftest.$ac_ext
49108 cat >>conftest.$ac_ext <<_ACEOF
49109 /* end confdefs.h.  */
49110 $ac_includes_default
49111 int
49112 main ()
49113 {
49114 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
49115 test_array [0] = 0
49116
49117   ;
49118   return 0;
49119 }
49120 _ACEOF
49121 rm -f conftest.$ac_objext
49122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49123   (eval $ac_compile) 2>conftest.er1
49124   ac_status=$?
49125   grep -v '^ *+' conftest.er1 >conftest.err
49126   rm -f conftest.er1
49127   cat conftest.err >&5
49128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49129   (exit $ac_status); } &&
49130          { ac_try='test -z "$ac_c_werror_flag"
49131                          || test ! -s conftest.err'
49132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49133   (eval $ac_try) 2>&5
49134   ac_status=$?
49135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49136   (exit $ac_status); }; } &&
49137          { ac_try='test -s conftest.$ac_objext'
49138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49139   (eval $ac_try) 2>&5
49140   ac_status=$?
49141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49142   (exit $ac_status); }; }; then
49143   ac_hi=-1 ac_mid=-1
49144   while :; do
49145     cat >conftest.$ac_ext <<_ACEOF
49146 /* confdefs.h.  */
49147 _ACEOF
49148 cat confdefs.h >>conftest.$ac_ext
49149 cat >>conftest.$ac_ext <<_ACEOF
49150 /* end confdefs.h.  */
49151 $ac_includes_default
49152 int
49153 main ()
49154 {
49155 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
49156 test_array [0] = 0
49157
49158   ;
49159   return 0;
49160 }
49161 _ACEOF
49162 rm -f conftest.$ac_objext
49163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49164   (eval $ac_compile) 2>conftest.er1
49165   ac_status=$?
49166   grep -v '^ *+' conftest.er1 >conftest.err
49167   rm -f conftest.er1
49168   cat conftest.err >&5
49169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49170   (exit $ac_status); } &&
49171          { ac_try='test -z "$ac_c_werror_flag"
49172                          || test ! -s conftest.err'
49173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49174   (eval $ac_try) 2>&5
49175   ac_status=$?
49176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49177   (exit $ac_status); }; } &&
49178          { ac_try='test -s conftest.$ac_objext'
49179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49180   (eval $ac_try) 2>&5
49181   ac_status=$?
49182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49183   (exit $ac_status); }; }; then
49184   ac_lo=$ac_mid; break
49185 else
49186   echo "$as_me: failed program was:" >&5
49187 sed 's/^/| /' conftest.$ac_ext >&5
49188
49189 ac_hi=`expr '(' $ac_mid ')' - 1`
49190                        if test $ac_mid -le $ac_hi; then
49191                          ac_lo= ac_hi=
49192                          break
49193                        fi
49194                        ac_mid=`expr 2 '*' $ac_mid`
49195 fi
49196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49197   done
49198 else
49199   echo "$as_me: failed program was:" >&5
49200 sed 's/^/| /' conftest.$ac_ext >&5
49201
49202 ac_lo= ac_hi=
49203 fi
49204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49205 fi
49206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49207 # Binary search between lo and hi bounds.
49208 while test "x$ac_lo" != "x$ac_hi"; do
49209   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49210   cat >conftest.$ac_ext <<_ACEOF
49211 /* confdefs.h.  */
49212 _ACEOF
49213 cat confdefs.h >>conftest.$ac_ext
49214 cat >>conftest.$ac_ext <<_ACEOF
49215 /* end confdefs.h.  */
49216 $ac_includes_default
49217 int
49218 main ()
49219 {
49220 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
49221 test_array [0] = 0
49222
49223   ;
49224   return 0;
49225 }
49226 _ACEOF
49227 rm -f conftest.$ac_objext
49228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49229   (eval $ac_compile) 2>conftest.er1
49230   ac_status=$?
49231   grep -v '^ *+' conftest.er1 >conftest.err
49232   rm -f conftest.er1
49233   cat conftest.err >&5
49234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49235   (exit $ac_status); } &&
49236          { ac_try='test -z "$ac_c_werror_flag"
49237                          || test ! -s conftest.err'
49238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49239   (eval $ac_try) 2>&5
49240   ac_status=$?
49241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49242   (exit $ac_status); }; } &&
49243          { ac_try='test -s conftest.$ac_objext'
49244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49245   (eval $ac_try) 2>&5
49246   ac_status=$?
49247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49248   (exit $ac_status); }; }; then
49249   ac_hi=$ac_mid
49250 else
49251   echo "$as_me: failed program was:" >&5
49252 sed 's/^/| /' conftest.$ac_ext >&5
49253
49254 ac_lo=`expr '(' $ac_mid ')' + 1`
49255 fi
49256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49257 done
49258 case $ac_lo in
49259 ?*) ac_cv_sizeof_short=$ac_lo;;
49260 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49261 See \`config.log' for more details." >&5
49262 echo "$as_me: error: cannot compute sizeof (short), 77
49263 See \`config.log' for more details." >&2;}
49264    { (exit 1); exit 1; }; } ;;
49265 esac
49266 else
49267   if test "$cross_compiling" = yes; then
49268   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49269 See \`config.log' for more details." >&5
49270 echo "$as_me: error: cannot run test program while cross compiling
49271 See \`config.log' for more details." >&2;}
49272    { (exit 1); exit 1; }; }
49273 else
49274   cat >conftest.$ac_ext <<_ACEOF
49275 /* confdefs.h.  */
49276 _ACEOF
49277 cat confdefs.h >>conftest.$ac_ext
49278 cat >>conftest.$ac_ext <<_ACEOF
49279 /* end confdefs.h.  */
49280 $ac_includes_default
49281 long longval () { return (long) (sizeof (short)); }
49282 unsigned long ulongval () { return (long) (sizeof (short)); }
49283 #include <stdio.h>
49284 #include <stdlib.h>
49285 int
49286 main ()
49287 {
49288
49289   FILE *f = fopen ("conftest.val", "w");
49290   if (! f)
49291     exit (1);
49292   if (((long) (sizeof (short))) < 0)
49293     {
49294       long i = longval ();
49295       if (i != ((long) (sizeof (short))))
49296         exit (1);
49297       fprintf (f, "%ld\n", i);
49298     }
49299   else
49300     {
49301       unsigned long i = ulongval ();
49302       if (i != ((long) (sizeof (short))))
49303         exit (1);
49304       fprintf (f, "%lu\n", i);
49305     }
49306   exit (ferror (f) || fclose (f) != 0);
49307
49308   ;
49309   return 0;
49310 }
49311 _ACEOF
49312 rm -f conftest$ac_exeext
49313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49314   (eval $ac_link) 2>&5
49315   ac_status=$?
49316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49317   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49319   (eval $ac_try) 2>&5
49320   ac_status=$?
49321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49322   (exit $ac_status); }; }; then
49323   ac_cv_sizeof_short=`cat conftest.val`
49324 else
49325   echo "$as_me: program exited with status $ac_status" >&5
49326 echo "$as_me: failed program was:" >&5
49327 sed 's/^/| /' conftest.$ac_ext >&5
49328
49329 ( exit $ac_status )
49330 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49331 See \`config.log' for more details." >&5
49332 echo "$as_me: error: cannot compute sizeof (short), 77
49333 See \`config.log' for more details." >&2;}
49334    { (exit 1); exit 1; }; }
49335 fi
49336 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49337 fi
49338 fi
49339 rm -f conftest.val
49340 else
49341   ac_cv_sizeof_short=0
49342 fi
49343 fi
49344 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
49345 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
49346 cat >>confdefs.h <<_ACEOF
49347 #define SIZEOF_SHORT $ac_cv_sizeof_short
49348 _ACEOF
49349
49350
49351 echo "$as_me:$LINENO: checking for int" >&5
49352 echo $ECHO_N "checking for int... $ECHO_C" >&6
49353 if test "${ac_cv_type_int+set}" = set; then
49354   echo $ECHO_N "(cached) $ECHO_C" >&6
49355 else
49356   cat >conftest.$ac_ext <<_ACEOF
49357 /* confdefs.h.  */
49358 _ACEOF
49359 cat confdefs.h >>conftest.$ac_ext
49360 cat >>conftest.$ac_ext <<_ACEOF
49361 /* end confdefs.h.  */
49362 $ac_includes_default
49363 int
49364 main ()
49365 {
49366 if ((int *) 0)
49367   return 0;
49368 if (sizeof (int))
49369   return 0;
49370   ;
49371   return 0;
49372 }
49373 _ACEOF
49374 rm -f conftest.$ac_objext
49375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49376   (eval $ac_compile) 2>conftest.er1
49377   ac_status=$?
49378   grep -v '^ *+' conftest.er1 >conftest.err
49379   rm -f conftest.er1
49380   cat conftest.err >&5
49381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49382   (exit $ac_status); } &&
49383          { ac_try='test -z "$ac_c_werror_flag"
49384                          || test ! -s conftest.err'
49385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49386   (eval $ac_try) 2>&5
49387   ac_status=$?
49388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49389   (exit $ac_status); }; } &&
49390          { ac_try='test -s conftest.$ac_objext'
49391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49392   (eval $ac_try) 2>&5
49393   ac_status=$?
49394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49395   (exit $ac_status); }; }; then
49396   ac_cv_type_int=yes
49397 else
49398   echo "$as_me: failed program was:" >&5
49399 sed 's/^/| /' conftest.$ac_ext >&5
49400
49401 ac_cv_type_int=no
49402 fi
49403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49404 fi
49405 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
49406 echo "${ECHO_T}$ac_cv_type_int" >&6
49407
49408 echo "$as_me:$LINENO: checking size of int" >&5
49409 echo $ECHO_N "checking size of int... $ECHO_C" >&6
49410 if test "${ac_cv_sizeof_int+set}" = set; then
49411   echo $ECHO_N "(cached) $ECHO_C" >&6
49412 else
49413   if test "$ac_cv_type_int" = yes; then
49414   # The cast to unsigned long works around a bug in the HP C Compiler
49415   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49416   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49417   # This bug is HP SR number 8606223364.
49418   if test "$cross_compiling" = yes; then
49419   # Depending upon the size, compute the lo and hi bounds.
49420 cat >conftest.$ac_ext <<_ACEOF
49421 /* confdefs.h.  */
49422 _ACEOF
49423 cat confdefs.h >>conftest.$ac_ext
49424 cat >>conftest.$ac_ext <<_ACEOF
49425 /* end confdefs.h.  */
49426 $ac_includes_default
49427 int
49428 main ()
49429 {
49430 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
49431 test_array [0] = 0
49432
49433   ;
49434   return 0;
49435 }
49436 _ACEOF
49437 rm -f conftest.$ac_objext
49438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49439   (eval $ac_compile) 2>conftest.er1
49440   ac_status=$?
49441   grep -v '^ *+' conftest.er1 >conftest.err
49442   rm -f conftest.er1
49443   cat conftest.err >&5
49444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49445   (exit $ac_status); } &&
49446          { ac_try='test -z "$ac_c_werror_flag"
49447                          || test ! -s conftest.err'
49448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49449   (eval $ac_try) 2>&5
49450   ac_status=$?
49451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49452   (exit $ac_status); }; } &&
49453          { ac_try='test -s conftest.$ac_objext'
49454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49455   (eval $ac_try) 2>&5
49456   ac_status=$?
49457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49458   (exit $ac_status); }; }; then
49459   ac_lo=0 ac_mid=0
49460   while :; do
49461     cat >conftest.$ac_ext <<_ACEOF
49462 /* confdefs.h.  */
49463 _ACEOF
49464 cat confdefs.h >>conftest.$ac_ext
49465 cat >>conftest.$ac_ext <<_ACEOF
49466 /* end confdefs.h.  */
49467 $ac_includes_default
49468 int
49469 main ()
49470 {
49471 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49472 test_array [0] = 0
49473
49474   ;
49475   return 0;
49476 }
49477 _ACEOF
49478 rm -f conftest.$ac_objext
49479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49480   (eval $ac_compile) 2>conftest.er1
49481   ac_status=$?
49482   grep -v '^ *+' conftest.er1 >conftest.err
49483   rm -f conftest.er1
49484   cat conftest.err >&5
49485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49486   (exit $ac_status); } &&
49487          { ac_try='test -z "$ac_c_werror_flag"
49488                          || test ! -s conftest.err'
49489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49490   (eval $ac_try) 2>&5
49491   ac_status=$?
49492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49493   (exit $ac_status); }; } &&
49494          { ac_try='test -s conftest.$ac_objext'
49495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49496   (eval $ac_try) 2>&5
49497   ac_status=$?
49498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49499   (exit $ac_status); }; }; then
49500   ac_hi=$ac_mid; break
49501 else
49502   echo "$as_me: failed program was:" >&5
49503 sed 's/^/| /' conftest.$ac_ext >&5
49504
49505 ac_lo=`expr $ac_mid + 1`
49506                     if test $ac_lo -le $ac_mid; then
49507                       ac_lo= ac_hi=
49508                       break
49509                     fi
49510                     ac_mid=`expr 2 '*' $ac_mid + 1`
49511 fi
49512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49513   done
49514 else
49515   echo "$as_me: failed program was:" >&5
49516 sed 's/^/| /' conftest.$ac_ext >&5
49517
49518 cat >conftest.$ac_ext <<_ACEOF
49519 /* confdefs.h.  */
49520 _ACEOF
49521 cat confdefs.h >>conftest.$ac_ext
49522 cat >>conftest.$ac_ext <<_ACEOF
49523 /* end confdefs.h.  */
49524 $ac_includes_default
49525 int
49526 main ()
49527 {
49528 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
49529 test_array [0] = 0
49530
49531   ;
49532   return 0;
49533 }
49534 _ACEOF
49535 rm -f conftest.$ac_objext
49536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49537   (eval $ac_compile) 2>conftest.er1
49538   ac_status=$?
49539   grep -v '^ *+' conftest.er1 >conftest.err
49540   rm -f conftest.er1
49541   cat conftest.err >&5
49542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49543   (exit $ac_status); } &&
49544          { ac_try='test -z "$ac_c_werror_flag"
49545                          || test ! -s conftest.err'
49546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49547   (eval $ac_try) 2>&5
49548   ac_status=$?
49549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49550   (exit $ac_status); }; } &&
49551          { ac_try='test -s conftest.$ac_objext'
49552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49553   (eval $ac_try) 2>&5
49554   ac_status=$?
49555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49556   (exit $ac_status); }; }; then
49557   ac_hi=-1 ac_mid=-1
49558   while :; do
49559     cat >conftest.$ac_ext <<_ACEOF
49560 /* confdefs.h.  */
49561 _ACEOF
49562 cat confdefs.h >>conftest.$ac_ext
49563 cat >>conftest.$ac_ext <<_ACEOF
49564 /* end confdefs.h.  */
49565 $ac_includes_default
49566 int
49567 main ()
49568 {
49569 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
49570 test_array [0] = 0
49571
49572   ;
49573   return 0;
49574 }
49575 _ACEOF
49576 rm -f conftest.$ac_objext
49577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49578   (eval $ac_compile) 2>conftest.er1
49579   ac_status=$?
49580   grep -v '^ *+' conftest.er1 >conftest.err
49581   rm -f conftest.er1
49582   cat conftest.err >&5
49583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49584   (exit $ac_status); } &&
49585          { ac_try='test -z "$ac_c_werror_flag"
49586                          || test ! -s conftest.err'
49587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49588   (eval $ac_try) 2>&5
49589   ac_status=$?
49590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49591   (exit $ac_status); }; } &&
49592          { ac_try='test -s conftest.$ac_objext'
49593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49594   (eval $ac_try) 2>&5
49595   ac_status=$?
49596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49597   (exit $ac_status); }; }; then
49598   ac_lo=$ac_mid; break
49599 else
49600   echo "$as_me: failed program was:" >&5
49601 sed 's/^/| /' conftest.$ac_ext >&5
49602
49603 ac_hi=`expr '(' $ac_mid ')' - 1`
49604                        if test $ac_mid -le $ac_hi; then
49605                          ac_lo= ac_hi=
49606                          break
49607                        fi
49608                        ac_mid=`expr 2 '*' $ac_mid`
49609 fi
49610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49611   done
49612 else
49613   echo "$as_me: failed program was:" >&5
49614 sed 's/^/| /' conftest.$ac_ext >&5
49615
49616 ac_lo= ac_hi=
49617 fi
49618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49619 fi
49620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49621 # Binary search between lo and hi bounds.
49622 while test "x$ac_lo" != "x$ac_hi"; do
49623   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49624   cat >conftest.$ac_ext <<_ACEOF
49625 /* confdefs.h.  */
49626 _ACEOF
49627 cat confdefs.h >>conftest.$ac_ext
49628 cat >>conftest.$ac_ext <<_ACEOF
49629 /* end confdefs.h.  */
49630 $ac_includes_default
49631 int
49632 main ()
49633 {
49634 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49635 test_array [0] = 0
49636
49637   ;
49638   return 0;
49639 }
49640 _ACEOF
49641 rm -f conftest.$ac_objext
49642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49643   (eval $ac_compile) 2>conftest.er1
49644   ac_status=$?
49645   grep -v '^ *+' conftest.er1 >conftest.err
49646   rm -f conftest.er1
49647   cat conftest.err >&5
49648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49649   (exit $ac_status); } &&
49650          { ac_try='test -z "$ac_c_werror_flag"
49651                          || test ! -s conftest.err'
49652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49653   (eval $ac_try) 2>&5
49654   ac_status=$?
49655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49656   (exit $ac_status); }; } &&
49657          { ac_try='test -s conftest.$ac_objext'
49658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49659   (eval $ac_try) 2>&5
49660   ac_status=$?
49661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49662   (exit $ac_status); }; }; then
49663   ac_hi=$ac_mid
49664 else
49665   echo "$as_me: failed program was:" >&5
49666 sed 's/^/| /' conftest.$ac_ext >&5
49667
49668 ac_lo=`expr '(' $ac_mid ')' + 1`
49669 fi
49670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49671 done
49672 case $ac_lo in
49673 ?*) ac_cv_sizeof_int=$ac_lo;;
49674 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49675 See \`config.log' for more details." >&5
49676 echo "$as_me: error: cannot compute sizeof (int), 77
49677 See \`config.log' for more details." >&2;}
49678    { (exit 1); exit 1; }; } ;;
49679 esac
49680 else
49681   if test "$cross_compiling" = yes; then
49682   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49683 See \`config.log' for more details." >&5
49684 echo "$as_me: error: cannot run test program while cross compiling
49685 See \`config.log' for more details." >&2;}
49686    { (exit 1); exit 1; }; }
49687 else
49688   cat >conftest.$ac_ext <<_ACEOF
49689 /* confdefs.h.  */
49690 _ACEOF
49691 cat confdefs.h >>conftest.$ac_ext
49692 cat >>conftest.$ac_ext <<_ACEOF
49693 /* end confdefs.h.  */
49694 $ac_includes_default
49695 long longval () { return (long) (sizeof (int)); }
49696 unsigned long ulongval () { return (long) (sizeof (int)); }
49697 #include <stdio.h>
49698 #include <stdlib.h>
49699 int
49700 main ()
49701 {
49702
49703   FILE *f = fopen ("conftest.val", "w");
49704   if (! f)
49705     exit (1);
49706   if (((long) (sizeof (int))) < 0)
49707     {
49708       long i = longval ();
49709       if (i != ((long) (sizeof (int))))
49710         exit (1);
49711       fprintf (f, "%ld\n", i);
49712     }
49713   else
49714     {
49715       unsigned long i = ulongval ();
49716       if (i != ((long) (sizeof (int))))
49717         exit (1);
49718       fprintf (f, "%lu\n", i);
49719     }
49720   exit (ferror (f) || fclose (f) != 0);
49721
49722   ;
49723   return 0;
49724 }
49725 _ACEOF
49726 rm -f conftest$ac_exeext
49727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49728   (eval $ac_link) 2>&5
49729   ac_status=$?
49730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49731   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49733   (eval $ac_try) 2>&5
49734   ac_status=$?
49735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49736   (exit $ac_status); }; }; then
49737   ac_cv_sizeof_int=`cat conftest.val`
49738 else
49739   echo "$as_me: program exited with status $ac_status" >&5
49740 echo "$as_me: failed program was:" >&5
49741 sed 's/^/| /' conftest.$ac_ext >&5
49742
49743 ( exit $ac_status )
49744 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49745 See \`config.log' for more details." >&5
49746 echo "$as_me: error: cannot compute sizeof (int), 77
49747 See \`config.log' for more details." >&2;}
49748    { (exit 1); exit 1; }; }
49749 fi
49750 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49751 fi
49752 fi
49753 rm -f conftest.val
49754 else
49755   ac_cv_sizeof_int=0
49756 fi
49757 fi
49758 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
49759 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
49760 cat >>confdefs.h <<_ACEOF
49761 #define SIZEOF_INT $ac_cv_sizeof_int
49762 _ACEOF
49763
49764
49765 echo "$as_me:$LINENO: checking for long" >&5
49766 echo $ECHO_N "checking for long... $ECHO_C" >&6
49767 if test "${ac_cv_type_long+set}" = set; then
49768   echo $ECHO_N "(cached) $ECHO_C" >&6
49769 else
49770   cat >conftest.$ac_ext <<_ACEOF
49771 /* confdefs.h.  */
49772 _ACEOF
49773 cat confdefs.h >>conftest.$ac_ext
49774 cat >>conftest.$ac_ext <<_ACEOF
49775 /* end confdefs.h.  */
49776 $ac_includes_default
49777 int
49778 main ()
49779 {
49780 if ((long *) 0)
49781   return 0;
49782 if (sizeof (long))
49783   return 0;
49784   ;
49785   return 0;
49786 }
49787 _ACEOF
49788 rm -f conftest.$ac_objext
49789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49790   (eval $ac_compile) 2>conftest.er1
49791   ac_status=$?
49792   grep -v '^ *+' conftest.er1 >conftest.err
49793   rm -f conftest.er1
49794   cat conftest.err >&5
49795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49796   (exit $ac_status); } &&
49797          { ac_try='test -z "$ac_c_werror_flag"
49798                          || test ! -s conftest.err'
49799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49800   (eval $ac_try) 2>&5
49801   ac_status=$?
49802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49803   (exit $ac_status); }; } &&
49804          { ac_try='test -s conftest.$ac_objext'
49805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49806   (eval $ac_try) 2>&5
49807   ac_status=$?
49808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49809   (exit $ac_status); }; }; then
49810   ac_cv_type_long=yes
49811 else
49812   echo "$as_me: failed program was:" >&5
49813 sed 's/^/| /' conftest.$ac_ext >&5
49814
49815 ac_cv_type_long=no
49816 fi
49817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49818 fi
49819 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
49820 echo "${ECHO_T}$ac_cv_type_long" >&6
49821
49822 echo "$as_me:$LINENO: checking size of long" >&5
49823 echo $ECHO_N "checking size of long... $ECHO_C" >&6
49824 if test "${ac_cv_sizeof_long+set}" = set; then
49825   echo $ECHO_N "(cached) $ECHO_C" >&6
49826 else
49827   if test "$ac_cv_type_long" = yes; then
49828   # The cast to unsigned long works around a bug in the HP C Compiler
49829   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49830   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49831   # This bug is HP SR number 8606223364.
49832   if test "$cross_compiling" = yes; then
49833   # Depending upon the size, compute the lo and hi bounds.
49834 cat >conftest.$ac_ext <<_ACEOF
49835 /* confdefs.h.  */
49836 _ACEOF
49837 cat confdefs.h >>conftest.$ac_ext
49838 cat >>conftest.$ac_ext <<_ACEOF
49839 /* end confdefs.h.  */
49840 $ac_includes_default
49841 int
49842 main ()
49843 {
49844 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
49845 test_array [0] = 0
49846
49847   ;
49848   return 0;
49849 }
49850 _ACEOF
49851 rm -f conftest.$ac_objext
49852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49853   (eval $ac_compile) 2>conftest.er1
49854   ac_status=$?
49855   grep -v '^ *+' conftest.er1 >conftest.err
49856   rm -f conftest.er1
49857   cat conftest.err >&5
49858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49859   (exit $ac_status); } &&
49860          { ac_try='test -z "$ac_c_werror_flag"
49861                          || test ! -s conftest.err'
49862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49863   (eval $ac_try) 2>&5
49864   ac_status=$?
49865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49866   (exit $ac_status); }; } &&
49867          { ac_try='test -s conftest.$ac_objext'
49868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49869   (eval $ac_try) 2>&5
49870   ac_status=$?
49871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49872   (exit $ac_status); }; }; then
49873   ac_lo=0 ac_mid=0
49874   while :; do
49875     cat >conftest.$ac_ext <<_ACEOF
49876 /* confdefs.h.  */
49877 _ACEOF
49878 cat confdefs.h >>conftest.$ac_ext
49879 cat >>conftest.$ac_ext <<_ACEOF
49880 /* end confdefs.h.  */
49881 $ac_includes_default
49882 int
49883 main ()
49884 {
49885 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49886 test_array [0] = 0
49887
49888   ;
49889   return 0;
49890 }
49891 _ACEOF
49892 rm -f conftest.$ac_objext
49893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49894   (eval $ac_compile) 2>conftest.er1
49895   ac_status=$?
49896   grep -v '^ *+' conftest.er1 >conftest.err
49897   rm -f conftest.er1
49898   cat conftest.err >&5
49899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49900   (exit $ac_status); } &&
49901          { ac_try='test -z "$ac_c_werror_flag"
49902                          || test ! -s conftest.err'
49903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49904   (eval $ac_try) 2>&5
49905   ac_status=$?
49906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49907   (exit $ac_status); }; } &&
49908          { ac_try='test -s conftest.$ac_objext'
49909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49910   (eval $ac_try) 2>&5
49911   ac_status=$?
49912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49913   (exit $ac_status); }; }; then
49914   ac_hi=$ac_mid; break
49915 else
49916   echo "$as_me: failed program was:" >&5
49917 sed 's/^/| /' conftest.$ac_ext >&5
49918
49919 ac_lo=`expr $ac_mid + 1`
49920                     if test $ac_lo -le $ac_mid; then
49921                       ac_lo= ac_hi=
49922                       break
49923                     fi
49924                     ac_mid=`expr 2 '*' $ac_mid + 1`
49925 fi
49926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49927   done
49928 else
49929   echo "$as_me: failed program was:" >&5
49930 sed 's/^/| /' conftest.$ac_ext >&5
49931
49932 cat >conftest.$ac_ext <<_ACEOF
49933 /* confdefs.h.  */
49934 _ACEOF
49935 cat confdefs.h >>conftest.$ac_ext
49936 cat >>conftest.$ac_ext <<_ACEOF
49937 /* end confdefs.h.  */
49938 $ac_includes_default
49939 int
49940 main ()
49941 {
49942 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
49943 test_array [0] = 0
49944
49945   ;
49946   return 0;
49947 }
49948 _ACEOF
49949 rm -f conftest.$ac_objext
49950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49951   (eval $ac_compile) 2>conftest.er1
49952   ac_status=$?
49953   grep -v '^ *+' conftest.er1 >conftest.err
49954   rm -f conftest.er1
49955   cat conftest.err >&5
49956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49957   (exit $ac_status); } &&
49958          { ac_try='test -z "$ac_c_werror_flag"
49959                          || test ! -s conftest.err'
49960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49961   (eval $ac_try) 2>&5
49962   ac_status=$?
49963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49964   (exit $ac_status); }; } &&
49965          { ac_try='test -s conftest.$ac_objext'
49966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49967   (eval $ac_try) 2>&5
49968   ac_status=$?
49969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49970   (exit $ac_status); }; }; then
49971   ac_hi=-1 ac_mid=-1
49972   while :; do
49973     cat >conftest.$ac_ext <<_ACEOF
49974 /* confdefs.h.  */
49975 _ACEOF
49976 cat confdefs.h >>conftest.$ac_ext
49977 cat >>conftest.$ac_ext <<_ACEOF
49978 /* end confdefs.h.  */
49979 $ac_includes_default
49980 int
49981 main ()
49982 {
49983 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
49984 test_array [0] = 0
49985
49986   ;
49987   return 0;
49988 }
49989 _ACEOF
49990 rm -f conftest.$ac_objext
49991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49992   (eval $ac_compile) 2>conftest.er1
49993   ac_status=$?
49994   grep -v '^ *+' conftest.er1 >conftest.err
49995   rm -f conftest.er1
49996   cat conftest.err >&5
49997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49998   (exit $ac_status); } &&
49999          { ac_try='test -z "$ac_c_werror_flag"
50000                          || test ! -s conftest.err'
50001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50002   (eval $ac_try) 2>&5
50003   ac_status=$?
50004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50005   (exit $ac_status); }; } &&
50006          { ac_try='test -s conftest.$ac_objext'
50007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50008   (eval $ac_try) 2>&5
50009   ac_status=$?
50010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50011   (exit $ac_status); }; }; then
50012   ac_lo=$ac_mid; break
50013 else
50014   echo "$as_me: failed program was:" >&5
50015 sed 's/^/| /' conftest.$ac_ext >&5
50016
50017 ac_hi=`expr '(' $ac_mid ')' - 1`
50018                        if test $ac_mid -le $ac_hi; then
50019                          ac_lo= ac_hi=
50020                          break
50021                        fi
50022                        ac_mid=`expr 2 '*' $ac_mid`
50023 fi
50024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50025   done
50026 else
50027   echo "$as_me: failed program was:" >&5
50028 sed 's/^/| /' conftest.$ac_ext >&5
50029
50030 ac_lo= ac_hi=
50031 fi
50032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50033 fi
50034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50035 # Binary search between lo and hi bounds.
50036 while test "x$ac_lo" != "x$ac_hi"; do
50037   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50038   cat >conftest.$ac_ext <<_ACEOF
50039 /* confdefs.h.  */
50040 _ACEOF
50041 cat confdefs.h >>conftest.$ac_ext
50042 cat >>conftest.$ac_ext <<_ACEOF
50043 /* end confdefs.h.  */
50044 $ac_includes_default
50045 int
50046 main ()
50047 {
50048 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
50049 test_array [0] = 0
50050
50051   ;
50052   return 0;
50053 }
50054 _ACEOF
50055 rm -f conftest.$ac_objext
50056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50057   (eval $ac_compile) 2>conftest.er1
50058   ac_status=$?
50059   grep -v '^ *+' conftest.er1 >conftest.err
50060   rm -f conftest.er1
50061   cat conftest.err >&5
50062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50063   (exit $ac_status); } &&
50064          { ac_try='test -z "$ac_c_werror_flag"
50065                          || test ! -s conftest.err'
50066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50067   (eval $ac_try) 2>&5
50068   ac_status=$?
50069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50070   (exit $ac_status); }; } &&
50071          { ac_try='test -s conftest.$ac_objext'
50072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50073   (eval $ac_try) 2>&5
50074   ac_status=$?
50075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50076   (exit $ac_status); }; }; then
50077   ac_hi=$ac_mid
50078 else
50079   echo "$as_me: failed program was:" >&5
50080 sed 's/^/| /' conftest.$ac_ext >&5
50081
50082 ac_lo=`expr '(' $ac_mid ')' + 1`
50083 fi
50084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50085 done
50086 case $ac_lo in
50087 ?*) ac_cv_sizeof_long=$ac_lo;;
50088 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
50089 See \`config.log' for more details." >&5
50090 echo "$as_me: error: cannot compute sizeof (long), 77
50091 See \`config.log' for more details." >&2;}
50092    { (exit 1); exit 1; }; } ;;
50093 esac
50094 else
50095   if test "$cross_compiling" = yes; then
50096   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50097 See \`config.log' for more details." >&5
50098 echo "$as_me: error: cannot run test program while cross compiling
50099 See \`config.log' for more details." >&2;}
50100    { (exit 1); exit 1; }; }
50101 else
50102   cat >conftest.$ac_ext <<_ACEOF
50103 /* confdefs.h.  */
50104 _ACEOF
50105 cat confdefs.h >>conftest.$ac_ext
50106 cat >>conftest.$ac_ext <<_ACEOF
50107 /* end confdefs.h.  */
50108 $ac_includes_default
50109 long longval () { return (long) (sizeof (long)); }
50110 unsigned long ulongval () { return (long) (sizeof (long)); }
50111 #include <stdio.h>
50112 #include <stdlib.h>
50113 int
50114 main ()
50115 {
50116
50117   FILE *f = fopen ("conftest.val", "w");
50118   if (! f)
50119     exit (1);
50120   if (((long) (sizeof (long))) < 0)
50121     {
50122       long i = longval ();
50123       if (i != ((long) (sizeof (long))))
50124         exit (1);
50125       fprintf (f, "%ld\n", i);
50126     }
50127   else
50128     {
50129       unsigned long i = ulongval ();
50130       if (i != ((long) (sizeof (long))))
50131         exit (1);
50132       fprintf (f, "%lu\n", i);
50133     }
50134   exit (ferror (f) || fclose (f) != 0);
50135
50136   ;
50137   return 0;
50138 }
50139 _ACEOF
50140 rm -f conftest$ac_exeext
50141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50142   (eval $ac_link) 2>&5
50143   ac_status=$?
50144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50145   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50147   (eval $ac_try) 2>&5
50148   ac_status=$?
50149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50150   (exit $ac_status); }; }; then
50151   ac_cv_sizeof_long=`cat conftest.val`
50152 else
50153   echo "$as_me: program exited with status $ac_status" >&5
50154 echo "$as_me: failed program was:" >&5
50155 sed 's/^/| /' conftest.$ac_ext >&5
50156
50157 ( exit $ac_status )
50158 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
50159 See \`config.log' for more details." >&5
50160 echo "$as_me: error: cannot compute sizeof (long), 77
50161 See \`config.log' for more details." >&2;}
50162    { (exit 1); exit 1; }; }
50163 fi
50164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50165 fi
50166 fi
50167 rm -f conftest.val
50168 else
50169   ac_cv_sizeof_long=0
50170 fi
50171 fi
50172 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
50173 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
50174 cat >>confdefs.h <<_ACEOF
50175 #define SIZEOF_LONG $ac_cv_sizeof_long
50176 _ACEOF
50177
50178
50179 echo "$as_me:$LINENO: checking for wchar_t" >&5
50180 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
50181 if test "${ac_cv_type_wchar_t+set}" = set; then
50182   echo $ECHO_N "(cached) $ECHO_C" >&6
50183 else
50184   cat >conftest.$ac_ext <<_ACEOF
50185 /* confdefs.h.  */
50186 _ACEOF
50187 cat confdefs.h >>conftest.$ac_ext
50188 cat >>conftest.$ac_ext <<_ACEOF
50189 /* end confdefs.h.  */
50190 $ac_includes_default
50191 int
50192 main ()
50193 {
50194 if ((wchar_t *) 0)
50195   return 0;
50196 if (sizeof (wchar_t))
50197   return 0;
50198   ;
50199   return 0;
50200 }
50201 _ACEOF
50202 rm -f conftest.$ac_objext
50203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50204   (eval $ac_compile) 2>conftest.er1
50205   ac_status=$?
50206   grep -v '^ *+' conftest.er1 >conftest.err
50207   rm -f conftest.er1
50208   cat conftest.err >&5
50209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50210   (exit $ac_status); } &&
50211          { ac_try='test -z "$ac_c_werror_flag"
50212                          || test ! -s conftest.err'
50213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50214   (eval $ac_try) 2>&5
50215   ac_status=$?
50216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50217   (exit $ac_status); }; } &&
50218          { ac_try='test -s conftest.$ac_objext'
50219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50220   (eval $ac_try) 2>&5
50221   ac_status=$?
50222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50223   (exit $ac_status); }; }; then
50224   ac_cv_type_wchar_t=yes
50225 else
50226   echo "$as_me: failed program was:" >&5
50227 sed 's/^/| /' conftest.$ac_ext >&5
50228
50229 ac_cv_type_wchar_t=no
50230 fi
50231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50232 fi
50233 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
50234 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
50235
50236 echo "$as_me:$LINENO: checking size of wchar_t" >&5
50237 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
50238 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
50239   echo $ECHO_N "(cached) $ECHO_C" >&6
50240 else
50241   if test "$ac_cv_type_wchar_t" = yes; then
50242   # The cast to unsigned long works around a bug in the HP C Compiler
50243   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50244   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50245   # This bug is HP SR number 8606223364.
50246   if test "$cross_compiling" = yes; then
50247   # Depending upon the size, compute the lo and hi bounds.
50248 cat >conftest.$ac_ext <<_ACEOF
50249 /* confdefs.h.  */
50250 _ACEOF
50251 cat confdefs.h >>conftest.$ac_ext
50252 cat >>conftest.$ac_ext <<_ACEOF
50253 /* end confdefs.h.  */
50254 $ac_includes_default
50255 int
50256 main ()
50257 {
50258 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
50259 test_array [0] = 0
50260
50261   ;
50262   return 0;
50263 }
50264 _ACEOF
50265 rm -f conftest.$ac_objext
50266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50267   (eval $ac_compile) 2>conftest.er1
50268   ac_status=$?
50269   grep -v '^ *+' conftest.er1 >conftest.err
50270   rm -f conftest.er1
50271   cat conftest.err >&5
50272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50273   (exit $ac_status); } &&
50274          { ac_try='test -z "$ac_c_werror_flag"
50275                          || test ! -s conftest.err'
50276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50277   (eval $ac_try) 2>&5
50278   ac_status=$?
50279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50280   (exit $ac_status); }; } &&
50281          { ac_try='test -s conftest.$ac_objext'
50282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50283   (eval $ac_try) 2>&5
50284   ac_status=$?
50285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50286   (exit $ac_status); }; }; then
50287   ac_lo=0 ac_mid=0
50288   while :; do
50289     cat >conftest.$ac_ext <<_ACEOF
50290 /* confdefs.h.  */
50291 _ACEOF
50292 cat confdefs.h >>conftest.$ac_ext
50293 cat >>conftest.$ac_ext <<_ACEOF
50294 /* end confdefs.h.  */
50295 $ac_includes_default
50296 int
50297 main ()
50298 {
50299 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50300 test_array [0] = 0
50301
50302   ;
50303   return 0;
50304 }
50305 _ACEOF
50306 rm -f conftest.$ac_objext
50307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50308   (eval $ac_compile) 2>conftest.er1
50309   ac_status=$?
50310   grep -v '^ *+' conftest.er1 >conftest.err
50311   rm -f conftest.er1
50312   cat conftest.err >&5
50313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50314   (exit $ac_status); } &&
50315          { ac_try='test -z "$ac_c_werror_flag"
50316                          || test ! -s conftest.err'
50317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50318   (eval $ac_try) 2>&5
50319   ac_status=$?
50320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50321   (exit $ac_status); }; } &&
50322          { ac_try='test -s conftest.$ac_objext'
50323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50324   (eval $ac_try) 2>&5
50325   ac_status=$?
50326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50327   (exit $ac_status); }; }; then
50328   ac_hi=$ac_mid; break
50329 else
50330   echo "$as_me: failed program was:" >&5
50331 sed 's/^/| /' conftest.$ac_ext >&5
50332
50333 ac_lo=`expr $ac_mid + 1`
50334                     if test $ac_lo -le $ac_mid; then
50335                       ac_lo= ac_hi=
50336                       break
50337                     fi
50338                     ac_mid=`expr 2 '*' $ac_mid + 1`
50339 fi
50340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50341   done
50342 else
50343   echo "$as_me: failed program was:" >&5
50344 sed 's/^/| /' conftest.$ac_ext >&5
50345
50346 cat >conftest.$ac_ext <<_ACEOF
50347 /* confdefs.h.  */
50348 _ACEOF
50349 cat confdefs.h >>conftest.$ac_ext
50350 cat >>conftest.$ac_ext <<_ACEOF
50351 /* end confdefs.h.  */
50352 $ac_includes_default
50353 int
50354 main ()
50355 {
50356 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
50357 test_array [0] = 0
50358
50359   ;
50360   return 0;
50361 }
50362 _ACEOF
50363 rm -f conftest.$ac_objext
50364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50365   (eval $ac_compile) 2>conftest.er1
50366   ac_status=$?
50367   grep -v '^ *+' conftest.er1 >conftest.err
50368   rm -f conftest.er1
50369   cat conftest.err >&5
50370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50371   (exit $ac_status); } &&
50372          { ac_try='test -z "$ac_c_werror_flag"
50373                          || test ! -s conftest.err'
50374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50375   (eval $ac_try) 2>&5
50376   ac_status=$?
50377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50378   (exit $ac_status); }; } &&
50379          { ac_try='test -s conftest.$ac_objext'
50380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50381   (eval $ac_try) 2>&5
50382   ac_status=$?
50383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50384   (exit $ac_status); }; }; then
50385   ac_hi=-1 ac_mid=-1
50386   while :; do
50387     cat >conftest.$ac_ext <<_ACEOF
50388 /* confdefs.h.  */
50389 _ACEOF
50390 cat confdefs.h >>conftest.$ac_ext
50391 cat >>conftest.$ac_ext <<_ACEOF
50392 /* end confdefs.h.  */
50393 $ac_includes_default
50394 int
50395 main ()
50396 {
50397 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
50398 test_array [0] = 0
50399
50400   ;
50401   return 0;
50402 }
50403 _ACEOF
50404 rm -f conftest.$ac_objext
50405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50406   (eval $ac_compile) 2>conftest.er1
50407   ac_status=$?
50408   grep -v '^ *+' conftest.er1 >conftest.err
50409   rm -f conftest.er1
50410   cat conftest.err >&5
50411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50412   (exit $ac_status); } &&
50413          { ac_try='test -z "$ac_c_werror_flag"
50414                          || test ! -s conftest.err'
50415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50416   (eval $ac_try) 2>&5
50417   ac_status=$?
50418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50419   (exit $ac_status); }; } &&
50420          { ac_try='test -s conftest.$ac_objext'
50421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50422   (eval $ac_try) 2>&5
50423   ac_status=$?
50424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50425   (exit $ac_status); }; }; then
50426   ac_lo=$ac_mid; break
50427 else
50428   echo "$as_me: failed program was:" >&5
50429 sed 's/^/| /' conftest.$ac_ext >&5
50430
50431 ac_hi=`expr '(' $ac_mid ')' - 1`
50432                        if test $ac_mid -le $ac_hi; then
50433                          ac_lo= ac_hi=
50434                          break
50435                        fi
50436                        ac_mid=`expr 2 '*' $ac_mid`
50437 fi
50438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50439   done
50440 else
50441   echo "$as_me: failed program was:" >&5
50442 sed 's/^/| /' conftest.$ac_ext >&5
50443
50444 ac_lo= ac_hi=
50445 fi
50446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50447 fi
50448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50449 # Binary search between lo and hi bounds.
50450 while test "x$ac_lo" != "x$ac_hi"; do
50451   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50452   cat >conftest.$ac_ext <<_ACEOF
50453 /* confdefs.h.  */
50454 _ACEOF
50455 cat confdefs.h >>conftest.$ac_ext
50456 cat >>conftest.$ac_ext <<_ACEOF
50457 /* end confdefs.h.  */
50458 $ac_includes_default
50459 int
50460 main ()
50461 {
50462 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50463 test_array [0] = 0
50464
50465   ;
50466   return 0;
50467 }
50468 _ACEOF
50469 rm -f conftest.$ac_objext
50470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50471   (eval $ac_compile) 2>conftest.er1
50472   ac_status=$?
50473   grep -v '^ *+' conftest.er1 >conftest.err
50474   rm -f conftest.er1
50475   cat conftest.err >&5
50476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50477   (exit $ac_status); } &&
50478          { ac_try='test -z "$ac_c_werror_flag"
50479                          || test ! -s conftest.err'
50480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50481   (eval $ac_try) 2>&5
50482   ac_status=$?
50483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50484   (exit $ac_status); }; } &&
50485          { ac_try='test -s conftest.$ac_objext'
50486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50487   (eval $ac_try) 2>&5
50488   ac_status=$?
50489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50490   (exit $ac_status); }; }; then
50491   ac_hi=$ac_mid
50492 else
50493   echo "$as_me: failed program was:" >&5
50494 sed 's/^/| /' conftest.$ac_ext >&5
50495
50496 ac_lo=`expr '(' $ac_mid ')' + 1`
50497 fi
50498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50499 done
50500 case $ac_lo in
50501 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
50502 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50503 See \`config.log' for more details." >&5
50504 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50505 See \`config.log' for more details." >&2;}
50506    { (exit 1); exit 1; }; } ;;
50507 esac
50508 else
50509   if test "$cross_compiling" = yes; then
50510   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50511 See \`config.log' for more details." >&5
50512 echo "$as_me: error: cannot run test program while cross compiling
50513 See \`config.log' for more details." >&2;}
50514    { (exit 1); exit 1; }; }
50515 else
50516   cat >conftest.$ac_ext <<_ACEOF
50517 /* confdefs.h.  */
50518 _ACEOF
50519 cat confdefs.h >>conftest.$ac_ext
50520 cat >>conftest.$ac_ext <<_ACEOF
50521 /* end confdefs.h.  */
50522 $ac_includes_default
50523 long longval () { return (long) (sizeof (wchar_t)); }
50524 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
50525 #include <stdio.h>
50526 #include <stdlib.h>
50527 int
50528 main ()
50529 {
50530
50531   FILE *f = fopen ("conftest.val", "w");
50532   if (! f)
50533     exit (1);
50534   if (((long) (sizeof (wchar_t))) < 0)
50535     {
50536       long i = longval ();
50537       if (i != ((long) (sizeof (wchar_t))))
50538         exit (1);
50539       fprintf (f, "%ld\n", i);
50540     }
50541   else
50542     {
50543       unsigned long i = ulongval ();
50544       if (i != ((long) (sizeof (wchar_t))))
50545         exit (1);
50546       fprintf (f, "%lu\n", i);
50547     }
50548   exit (ferror (f) || fclose (f) != 0);
50549
50550   ;
50551   return 0;
50552 }
50553 _ACEOF
50554 rm -f conftest$ac_exeext
50555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50556   (eval $ac_link) 2>&5
50557   ac_status=$?
50558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50559   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50561   (eval $ac_try) 2>&5
50562   ac_status=$?
50563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50564   (exit $ac_status); }; }; then
50565   ac_cv_sizeof_wchar_t=`cat conftest.val`
50566 else
50567   echo "$as_me: program exited with status $ac_status" >&5
50568 echo "$as_me: failed program was:" >&5
50569 sed 's/^/| /' conftest.$ac_ext >&5
50570
50571 ( exit $ac_status )
50572 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50573 See \`config.log' for more details." >&5
50574 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50575 See \`config.log' for more details." >&2;}
50576    { (exit 1); exit 1; }; }
50577 fi
50578 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50579 fi
50580 fi
50581 rm -f conftest.val
50582 else
50583   ac_cv_sizeof_wchar_t=0
50584 fi
50585 fi
50586 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
50587 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
50588 cat >>confdefs.h <<_ACEOF
50589 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
50590 _ACEOF
50591
50592
50593
50594 if test "$ac_cv_sizeof_int" -lt 4 ; then
50595         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
50596 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
50597
50598
50599 cat >>confdefs.h <<\_ACEOF
50600 #define LBER_INT_T long
50601 _ACEOF
50602
50603 else
50604
50605 cat >>confdefs.h <<\_ACEOF
50606 #define LBER_INT_T int
50607 _ACEOF
50608
50609 fi
50610
50611
50612 cat >>confdefs.h <<\_ACEOF
50613 #define LBER_LEN_T long
50614 _ACEOF
50615
50616
50617 cat >>confdefs.h <<\_ACEOF
50618 #define LBER_SOCKET_T int
50619 _ACEOF
50620
50621
50622 cat >>confdefs.h <<\_ACEOF
50623 #define LBER_TAG_T long
50624 _ACEOF
50625
50626
50627 echo "$as_me:$LINENO: checking for working memcmp" >&5
50628 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
50629 if test "${ac_cv_func_memcmp_working+set}" = set; then
50630   echo $ECHO_N "(cached) $ECHO_C" >&6
50631 else
50632   if test "$cross_compiling" = yes; then
50633   ac_cv_func_memcmp_working=no
50634 else
50635   cat >conftest.$ac_ext <<_ACEOF
50636 /* confdefs.h.  */
50637 _ACEOF
50638 cat confdefs.h >>conftest.$ac_ext
50639 cat >>conftest.$ac_ext <<_ACEOF
50640 /* end confdefs.h.  */
50641 $ac_includes_default
50642 int
50643 main ()
50644 {
50645
50646   /* Some versions of memcmp are not 8-bit clean.  */
50647   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
50648   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
50649     exit (1);
50650
50651   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
50652      or more and with at least one buffer not starting on a 4-byte boundary.
50653      William Lewis provided this test program.   */
50654   {
50655     char foo[21];
50656     char bar[21];
50657     int i;
50658     for (i = 0; i < 4; i++)
50659       {
50660         char *a = foo + i;
50661         char *b = bar + i;
50662         strcpy (a, "--------01111111");
50663         strcpy (b, "--------10000000");
50664         if (memcmp (a, b, 16) >= 0)
50665           exit (1);
50666       }
50667     exit (0);
50668   }
50669
50670   ;
50671   return 0;
50672 }
50673 _ACEOF
50674 rm -f conftest$ac_exeext
50675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50676   (eval $ac_link) 2>&5
50677   ac_status=$?
50678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50679   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50681   (eval $ac_try) 2>&5
50682   ac_status=$?
50683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50684   (exit $ac_status); }; }; then
50685   ac_cv_func_memcmp_working=yes
50686 else
50687   echo "$as_me: program exited with status $ac_status" >&5
50688 echo "$as_me: failed program was:" >&5
50689 sed 's/^/| /' conftest.$ac_ext >&5
50690
50691 ( exit $ac_status )
50692 ac_cv_func_memcmp_working=no
50693 fi
50694 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50695 fi
50696 fi
50697 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
50698 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
50699 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
50700     "memcmp.$ac_objext"   | \
50701   *" memcmp.$ac_objext"   | \
50702     "memcmp.$ac_objext "* | \
50703   *" memcmp.$ac_objext "* ) ;;
50704   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
50705 esac
50706
50707
50708
50709 if test $ac_cv_func_memcmp_working = no ; then
50710
50711 cat >>confdefs.h <<\_ACEOF
50712 #define NEED_MEMCMP_REPLACEMENT 1
50713 _ACEOF
50714
50715 fi
50716
50717
50718 for ac_func in strftime
50719 do
50720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50721 echo "$as_me:$LINENO: checking for $ac_func" >&5
50722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50723 if eval "test \"\${$as_ac_var+set}\" = set"; then
50724   echo $ECHO_N "(cached) $ECHO_C" >&6
50725 else
50726   cat >conftest.$ac_ext <<_ACEOF
50727 /* confdefs.h.  */
50728 _ACEOF
50729 cat confdefs.h >>conftest.$ac_ext
50730 cat >>conftest.$ac_ext <<_ACEOF
50731 /* end confdefs.h.  */
50732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50733    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50734 #define $ac_func innocuous_$ac_func
50735
50736 /* System header to define __stub macros and hopefully few prototypes,
50737     which can conflict with char $ac_func (); below.
50738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50739     <limits.h> exists even on freestanding compilers.  */
50740
50741 #ifdef __STDC__
50742 # include <limits.h>
50743 #else
50744 # include <assert.h>
50745 #endif
50746
50747 #undef $ac_func
50748
50749 /* Override any gcc2 internal prototype to avoid an error.  */
50750 #ifdef __cplusplus
50751 extern "C"
50752 {
50753 #endif
50754 /* We use char because int might match the return type of a gcc2
50755    builtin and then its argument prototype would still apply.  */
50756 char $ac_func ();
50757 /* The GNU C library defines this for functions which it implements
50758     to always fail with ENOSYS.  Some functions are actually named
50759     something starting with __ and the normal name is an alias.  */
50760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50761 choke me
50762 #else
50763 char (*f) () = $ac_func;
50764 #endif
50765 #ifdef __cplusplus
50766 }
50767 #endif
50768
50769 int
50770 main ()
50771 {
50772 return f != $ac_func;
50773   ;
50774   return 0;
50775 }
50776 _ACEOF
50777 rm -f conftest.$ac_objext conftest$ac_exeext
50778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50779   (eval $ac_link) 2>conftest.er1
50780   ac_status=$?
50781   grep -v '^ *+' conftest.er1 >conftest.err
50782   rm -f conftest.er1
50783   cat conftest.err >&5
50784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50785   (exit $ac_status); } &&
50786          { ac_try='test -z "$ac_c_werror_flag"
50787                          || test ! -s conftest.err'
50788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50789   (eval $ac_try) 2>&5
50790   ac_status=$?
50791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50792   (exit $ac_status); }; } &&
50793          { ac_try='test -s conftest$ac_exeext'
50794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50795   (eval $ac_try) 2>&5
50796   ac_status=$?
50797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50798   (exit $ac_status); }; }; then
50799   eval "$as_ac_var=yes"
50800 else
50801   echo "$as_me: failed program was:" >&5
50802 sed 's/^/| /' conftest.$ac_ext >&5
50803
50804 eval "$as_ac_var=no"
50805 fi
50806 rm -f conftest.err conftest.$ac_objext \
50807       conftest$ac_exeext conftest.$ac_ext
50808 fi
50809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50810 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50811 if test `eval echo '${'$as_ac_var'}'` = yes; then
50812   cat >>confdefs.h <<_ACEOF
50813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50814 _ACEOF
50815
50816 else
50817   # strftime is in -lintl on SCO UNIX.
50818 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
50819 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
50820 if test "${ac_cv_lib_intl_strftime+set}" = set; then
50821   echo $ECHO_N "(cached) $ECHO_C" >&6
50822 else
50823   ac_check_lib_save_LIBS=$LIBS
50824 LIBS="-lintl  $LIBS"
50825 cat >conftest.$ac_ext <<_ACEOF
50826 /* confdefs.h.  */
50827 _ACEOF
50828 cat confdefs.h >>conftest.$ac_ext
50829 cat >>conftest.$ac_ext <<_ACEOF
50830 /* end confdefs.h.  */
50831
50832 /* Override any gcc2 internal prototype to avoid an error.  */
50833 #ifdef __cplusplus
50834 extern "C"
50835 #endif
50836 /* We use char because int might match the return type of a gcc2
50837    builtin and then its argument prototype would still apply.  */
50838 char strftime ();
50839 int
50840 main ()
50841 {
50842 strftime ();
50843   ;
50844   return 0;
50845 }
50846 _ACEOF
50847 rm -f conftest.$ac_objext conftest$ac_exeext
50848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50849   (eval $ac_link) 2>conftest.er1
50850   ac_status=$?
50851   grep -v '^ *+' conftest.er1 >conftest.err
50852   rm -f conftest.er1
50853   cat conftest.err >&5
50854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50855   (exit $ac_status); } &&
50856          { ac_try='test -z "$ac_c_werror_flag"
50857                          || test ! -s conftest.err'
50858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50859   (eval $ac_try) 2>&5
50860   ac_status=$?
50861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50862   (exit $ac_status); }; } &&
50863          { ac_try='test -s conftest$ac_exeext'
50864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50865   (eval $ac_try) 2>&5
50866   ac_status=$?
50867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50868   (exit $ac_status); }; }; then
50869   ac_cv_lib_intl_strftime=yes
50870 else
50871   echo "$as_me: failed program was:" >&5
50872 sed 's/^/| /' conftest.$ac_ext >&5
50873
50874 ac_cv_lib_intl_strftime=no
50875 fi
50876 rm -f conftest.err conftest.$ac_objext \
50877       conftest$ac_exeext conftest.$ac_ext
50878 LIBS=$ac_check_lib_save_LIBS
50879 fi
50880 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
50881 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
50882 if test $ac_cv_lib_intl_strftime = yes; then
50883   cat >>confdefs.h <<\_ACEOF
50884 #define HAVE_STRFTIME 1
50885 _ACEOF
50886
50887 LIBS="-lintl $LIBS"
50888 fi
50889
50890 fi
50891 done
50892
50893
50894 echo "$as_me:$LINENO: checking for inet_aton()" >&5
50895 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
50896 if test "${ol_cv_func_inet_aton+set}" = set; then
50897   echo $ECHO_N "(cached) $ECHO_C" >&6
50898 else
50899   cat >conftest.$ac_ext <<_ACEOF
50900 /* confdefs.h.  */
50901 _ACEOF
50902 cat confdefs.h >>conftest.$ac_ext
50903 cat >>conftest.$ac_ext <<_ACEOF
50904 /* end confdefs.h.  */
50905
50906 #ifdef HAVE_SYS_TYPES_H
50907 #       include <sys/types.h>
50908 #endif
50909 #ifdef HAVE_SYS_SOCKET_H
50910 #       include <sys/socket.h>
50911 #       ifdef HAVE_SYS_SELECT_H
50912 #               include <sys/select.h>
50913 #       endif
50914 #       include <netinet/in.h>
50915 #       ifdef HAVE_ARPA_INET_H
50916 #               include <arpa/inet.h>
50917 #       endif
50918 #endif
50919
50920 int
50921 main ()
50922 {
50923 struct in_addr in;
50924 int rc = inet_aton( "255.255.255.255", &in );
50925   ;
50926   return 0;
50927 }
50928 _ACEOF
50929 rm -f conftest.$ac_objext conftest$ac_exeext
50930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50931   (eval $ac_link) 2>conftest.er1
50932   ac_status=$?
50933   grep -v '^ *+' conftest.er1 >conftest.err
50934   rm -f conftest.er1
50935   cat conftest.err >&5
50936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50937   (exit $ac_status); } &&
50938          { ac_try='test -z "$ac_c_werror_flag"
50939                          || test ! -s conftest.err'
50940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50941   (eval $ac_try) 2>&5
50942   ac_status=$?
50943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50944   (exit $ac_status); }; } &&
50945          { ac_try='test -s conftest$ac_exeext'
50946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50947   (eval $ac_try) 2>&5
50948   ac_status=$?
50949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50950   (exit $ac_status); }; }; then
50951   ol_cv_func_inet_aton=yes
50952 else
50953   echo "$as_me: failed program was:" >&5
50954 sed 's/^/| /' conftest.$ac_ext >&5
50955
50956 ol_cv_func_inet_aton=no
50957 fi
50958 rm -f conftest.err conftest.$ac_objext \
50959       conftest$ac_exeext conftest.$ac_ext
50960 fi
50961 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
50962 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
50963   if test $ol_cv_func_inet_aton != no; then
50964
50965 cat >>confdefs.h <<\_ACEOF
50966 #define HAVE_INET_ATON 1
50967 _ACEOF
50968
50969   fi
50970
50971
50972 echo "$as_me:$LINENO: checking for _spawnlp" >&5
50973 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
50974 if test "${ac_cv_func__spawnlp+set}" = set; then
50975   echo $ECHO_N "(cached) $ECHO_C" >&6
50976 else
50977   cat >conftest.$ac_ext <<_ACEOF
50978 /* confdefs.h.  */
50979 _ACEOF
50980 cat confdefs.h >>conftest.$ac_ext
50981 cat >>conftest.$ac_ext <<_ACEOF
50982 /* end confdefs.h.  */
50983 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
50984    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50985 #define _spawnlp innocuous__spawnlp
50986
50987 /* System header to define __stub macros and hopefully few prototypes,
50988     which can conflict with char _spawnlp (); below.
50989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50990     <limits.h> exists even on freestanding compilers.  */
50991
50992 #ifdef __STDC__
50993 # include <limits.h>
50994 #else
50995 # include <assert.h>
50996 #endif
50997
50998 #undef _spawnlp
50999
51000 /* Override any gcc2 internal prototype to avoid an error.  */
51001 #ifdef __cplusplus
51002 extern "C"
51003 {
51004 #endif
51005 /* We use char because int might match the return type of a gcc2
51006    builtin and then its argument prototype would still apply.  */
51007 char _spawnlp ();
51008 /* The GNU C library defines this for functions which it implements
51009     to always fail with ENOSYS.  Some functions are actually named
51010     something starting with __ and the normal name is an alias.  */
51011 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
51012 choke me
51013 #else
51014 char (*f) () = _spawnlp;
51015 #endif
51016 #ifdef __cplusplus
51017 }
51018 #endif
51019
51020 int
51021 main ()
51022 {
51023 return f != _spawnlp;
51024   ;
51025   return 0;
51026 }
51027 _ACEOF
51028 rm -f conftest.$ac_objext conftest$ac_exeext
51029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51030   (eval $ac_link) 2>conftest.er1
51031   ac_status=$?
51032   grep -v '^ *+' conftest.er1 >conftest.err
51033   rm -f conftest.er1
51034   cat conftest.err >&5
51035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51036   (exit $ac_status); } &&
51037          { ac_try='test -z "$ac_c_werror_flag"
51038                          || test ! -s conftest.err'
51039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51040   (eval $ac_try) 2>&5
51041   ac_status=$?
51042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51043   (exit $ac_status); }; } &&
51044          { ac_try='test -s conftest$ac_exeext'
51045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51046   (eval $ac_try) 2>&5
51047   ac_status=$?
51048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51049   (exit $ac_status); }; }; then
51050   ac_cv_func__spawnlp=yes
51051 else
51052   echo "$as_me: failed program was:" >&5
51053 sed 's/^/| /' conftest.$ac_ext >&5
51054
51055 ac_cv_func__spawnlp=no
51056 fi
51057 rm -f conftest.err conftest.$ac_objext \
51058       conftest$ac_exeext conftest.$ac_ext
51059 fi
51060 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
51061 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
51062 if test $ac_cv_func__spawnlp = yes; then
51063
51064 cat >>confdefs.h <<\_ACEOF
51065 #define HAVE_SPAWNLP 1
51066 _ACEOF
51067
51068 fi
51069
51070
51071 echo "$as_me:$LINENO: checking for _snprintf" >&5
51072 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
51073 if test "${ac_cv_func__snprintf+set}" = set; then
51074   echo $ECHO_N "(cached) $ECHO_C" >&6
51075 else
51076   cat >conftest.$ac_ext <<_ACEOF
51077 /* confdefs.h.  */
51078 _ACEOF
51079 cat confdefs.h >>conftest.$ac_ext
51080 cat >>conftest.$ac_ext <<_ACEOF
51081 /* end confdefs.h.  */
51082 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
51083    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51084 #define _snprintf innocuous__snprintf
51085
51086 /* System header to define __stub macros and hopefully few prototypes,
51087     which can conflict with char _snprintf (); below.
51088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51089     <limits.h> exists even on freestanding compilers.  */
51090
51091 #ifdef __STDC__
51092 # include <limits.h>
51093 #else
51094 # include <assert.h>
51095 #endif
51096
51097 #undef _snprintf
51098
51099 /* Override any gcc2 internal prototype to avoid an error.  */
51100 #ifdef __cplusplus
51101 extern "C"
51102 {
51103 #endif
51104 /* We use char because int might match the return type of a gcc2
51105    builtin and then its argument prototype would still apply.  */
51106 char _snprintf ();
51107 /* The GNU C library defines this for functions which it implements
51108     to always fail with ENOSYS.  Some functions are actually named
51109     something starting with __ and the normal name is an alias.  */
51110 #if defined (__stub__snprintf) || defined (__stub____snprintf)
51111 choke me
51112 #else
51113 char (*f) () = _snprintf;
51114 #endif
51115 #ifdef __cplusplus
51116 }
51117 #endif
51118
51119 int
51120 main ()
51121 {
51122 return f != _snprintf;
51123   ;
51124   return 0;
51125 }
51126 _ACEOF
51127 rm -f conftest.$ac_objext conftest$ac_exeext
51128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51129   (eval $ac_link) 2>conftest.er1
51130   ac_status=$?
51131   grep -v '^ *+' conftest.er1 >conftest.err
51132   rm -f conftest.er1
51133   cat conftest.err >&5
51134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51135   (exit $ac_status); } &&
51136          { ac_try='test -z "$ac_c_werror_flag"
51137                          || test ! -s conftest.err'
51138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51139   (eval $ac_try) 2>&5
51140   ac_status=$?
51141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51142   (exit $ac_status); }; } &&
51143          { ac_try='test -s conftest$ac_exeext'
51144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51145   (eval $ac_try) 2>&5
51146   ac_status=$?
51147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51148   (exit $ac_status); }; }; then
51149   ac_cv_func__snprintf=yes
51150 else
51151   echo "$as_me: failed program was:" >&5
51152 sed 's/^/| /' conftest.$ac_ext >&5
51153
51154 ac_cv_func__snprintf=no
51155 fi
51156 rm -f conftest.err conftest.$ac_objext \
51157       conftest$ac_exeext conftest.$ac_ext
51158 fi
51159 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
51160 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
51161 if test $ac_cv_func__snprintf = yes; then
51162   ac_cv_func_snprintf=yes
51163
51164 cat >>confdefs.h <<\_ACEOF
51165 #define snprintf _snprintf
51166 _ACEOF
51167
51168
51169 fi
51170
51171
51172 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
51173 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
51174 if test "${ac_cv_func__vsnprintf+set}" = set; then
51175   echo $ECHO_N "(cached) $ECHO_C" >&6
51176 else
51177   cat >conftest.$ac_ext <<_ACEOF
51178 /* confdefs.h.  */
51179 _ACEOF
51180 cat confdefs.h >>conftest.$ac_ext
51181 cat >>conftest.$ac_ext <<_ACEOF
51182 /* end confdefs.h.  */
51183 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
51184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51185 #define _vsnprintf innocuous__vsnprintf
51186
51187 /* System header to define __stub macros and hopefully few prototypes,
51188     which can conflict with char _vsnprintf (); below.
51189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51190     <limits.h> exists even on freestanding compilers.  */
51191
51192 #ifdef __STDC__
51193 # include <limits.h>
51194 #else
51195 # include <assert.h>
51196 #endif
51197
51198 #undef _vsnprintf
51199
51200 /* Override any gcc2 internal prototype to avoid an error.  */
51201 #ifdef __cplusplus
51202 extern "C"
51203 {
51204 #endif
51205 /* We use char because int might match the return type of a gcc2
51206    builtin and then its argument prototype would still apply.  */
51207 char _vsnprintf ();
51208 /* The GNU C library defines this for functions which it implements
51209     to always fail with ENOSYS.  Some functions are actually named
51210     something starting with __ and the normal name is an alias.  */
51211 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
51212 choke me
51213 #else
51214 char (*f) () = _vsnprintf;
51215 #endif
51216 #ifdef __cplusplus
51217 }
51218 #endif
51219
51220 int
51221 main ()
51222 {
51223 return f != _vsnprintf;
51224   ;
51225   return 0;
51226 }
51227 _ACEOF
51228 rm -f conftest.$ac_objext conftest$ac_exeext
51229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51230   (eval $ac_link) 2>conftest.er1
51231   ac_status=$?
51232   grep -v '^ *+' conftest.er1 >conftest.err
51233   rm -f conftest.er1
51234   cat conftest.err >&5
51235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51236   (exit $ac_status); } &&
51237          { ac_try='test -z "$ac_c_werror_flag"
51238                          || test ! -s conftest.err'
51239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51240   (eval $ac_try) 2>&5
51241   ac_status=$?
51242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51243   (exit $ac_status); }; } &&
51244          { ac_try='test -s conftest$ac_exeext'
51245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51246   (eval $ac_try) 2>&5
51247   ac_status=$?
51248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51249   (exit $ac_status); }; }; then
51250   ac_cv_func__vsnprintf=yes
51251 else
51252   echo "$as_me: failed program was:" >&5
51253 sed 's/^/| /' conftest.$ac_ext >&5
51254
51255 ac_cv_func__vsnprintf=no
51256 fi
51257 rm -f conftest.err conftest.$ac_objext \
51258       conftest$ac_exeext conftest.$ac_ext
51259 fi
51260 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
51261 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
51262 if test $ac_cv_func__vsnprintf = yes; then
51263   ac_cv_func_vsnprintf=yes
51264
51265 cat >>confdefs.h <<\_ACEOF
51266 #define vsnprintf _vsnprintf
51267 _ACEOF
51268
51269
51270 fi
51271
51272
51273
51274 for ac_func in vprintf
51275 do
51276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51277 echo "$as_me:$LINENO: checking for $ac_func" >&5
51278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51279 if eval "test \"\${$as_ac_var+set}\" = set"; then
51280   echo $ECHO_N "(cached) $ECHO_C" >&6
51281 else
51282   cat >conftest.$ac_ext <<_ACEOF
51283 /* confdefs.h.  */
51284 _ACEOF
51285 cat confdefs.h >>conftest.$ac_ext
51286 cat >>conftest.$ac_ext <<_ACEOF
51287 /* end confdefs.h.  */
51288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51289    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51290 #define $ac_func innocuous_$ac_func
51291
51292 /* System header to define __stub macros and hopefully few prototypes,
51293     which can conflict with char $ac_func (); below.
51294     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51295     <limits.h> exists even on freestanding compilers.  */
51296
51297 #ifdef __STDC__
51298 # include <limits.h>
51299 #else
51300 # include <assert.h>
51301 #endif
51302
51303 #undef $ac_func
51304
51305 /* Override any gcc2 internal prototype to avoid an error.  */
51306 #ifdef __cplusplus
51307 extern "C"
51308 {
51309 #endif
51310 /* We use char because int might match the return type of a gcc2
51311    builtin and then its argument prototype would still apply.  */
51312 char $ac_func ();
51313 /* The GNU C library defines this for functions which it implements
51314     to always fail with ENOSYS.  Some functions are actually named
51315     something starting with __ and the normal name is an alias.  */
51316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51317 choke me
51318 #else
51319 char (*f) () = $ac_func;
51320 #endif
51321 #ifdef __cplusplus
51322 }
51323 #endif
51324
51325 int
51326 main ()
51327 {
51328 return f != $ac_func;
51329   ;
51330   return 0;
51331 }
51332 _ACEOF
51333 rm -f conftest.$ac_objext conftest$ac_exeext
51334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51335   (eval $ac_link) 2>conftest.er1
51336   ac_status=$?
51337   grep -v '^ *+' conftest.er1 >conftest.err
51338   rm -f conftest.er1
51339   cat conftest.err >&5
51340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51341   (exit $ac_status); } &&
51342          { ac_try='test -z "$ac_c_werror_flag"
51343                          || test ! -s conftest.err'
51344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51345   (eval $ac_try) 2>&5
51346   ac_status=$?
51347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51348   (exit $ac_status); }; } &&
51349          { ac_try='test -s conftest$ac_exeext'
51350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51351   (eval $ac_try) 2>&5
51352   ac_status=$?
51353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51354   (exit $ac_status); }; }; then
51355   eval "$as_ac_var=yes"
51356 else
51357   echo "$as_me: failed program was:" >&5
51358 sed 's/^/| /' conftest.$ac_ext >&5
51359
51360 eval "$as_ac_var=no"
51361 fi
51362 rm -f conftest.err conftest.$ac_objext \
51363       conftest$ac_exeext conftest.$ac_ext
51364 fi
51365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51367 if test `eval echo '${'$as_ac_var'}'` = yes; then
51368   cat >>confdefs.h <<_ACEOF
51369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51370 _ACEOF
51371
51372 echo "$as_me:$LINENO: checking for _doprnt" >&5
51373 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
51374 if test "${ac_cv_func__doprnt+set}" = set; then
51375   echo $ECHO_N "(cached) $ECHO_C" >&6
51376 else
51377   cat >conftest.$ac_ext <<_ACEOF
51378 /* confdefs.h.  */
51379 _ACEOF
51380 cat confdefs.h >>conftest.$ac_ext
51381 cat >>conftest.$ac_ext <<_ACEOF
51382 /* end confdefs.h.  */
51383 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
51384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51385 #define _doprnt innocuous__doprnt
51386
51387 /* System header to define __stub macros and hopefully few prototypes,
51388     which can conflict with char _doprnt (); below.
51389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51390     <limits.h> exists even on freestanding compilers.  */
51391
51392 #ifdef __STDC__
51393 # include <limits.h>
51394 #else
51395 # include <assert.h>
51396 #endif
51397
51398 #undef _doprnt
51399
51400 /* Override any gcc2 internal prototype to avoid an error.  */
51401 #ifdef __cplusplus
51402 extern "C"
51403 {
51404 #endif
51405 /* We use char because int might match the return type of a gcc2
51406    builtin and then its argument prototype would still apply.  */
51407 char _doprnt ();
51408 /* The GNU C library defines this for functions which it implements
51409     to always fail with ENOSYS.  Some functions are actually named
51410     something starting with __ and the normal name is an alias.  */
51411 #if defined (__stub__doprnt) || defined (__stub____doprnt)
51412 choke me
51413 #else
51414 char (*f) () = _doprnt;
51415 #endif
51416 #ifdef __cplusplus
51417 }
51418 #endif
51419
51420 int
51421 main ()
51422 {
51423 return f != _doprnt;
51424   ;
51425   return 0;
51426 }
51427 _ACEOF
51428 rm -f conftest.$ac_objext conftest$ac_exeext
51429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51430   (eval $ac_link) 2>conftest.er1
51431   ac_status=$?
51432   grep -v '^ *+' conftest.er1 >conftest.err
51433   rm -f conftest.er1
51434   cat conftest.err >&5
51435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51436   (exit $ac_status); } &&
51437          { ac_try='test -z "$ac_c_werror_flag"
51438                          || test ! -s conftest.err'
51439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51440   (eval $ac_try) 2>&5
51441   ac_status=$?
51442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51443   (exit $ac_status); }; } &&
51444          { ac_try='test -s conftest$ac_exeext'
51445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51446   (eval $ac_try) 2>&5
51447   ac_status=$?
51448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51449   (exit $ac_status); }; }; then
51450   ac_cv_func__doprnt=yes
51451 else
51452   echo "$as_me: failed program was:" >&5
51453 sed 's/^/| /' conftest.$ac_ext >&5
51454
51455 ac_cv_func__doprnt=no
51456 fi
51457 rm -f conftest.err conftest.$ac_objext \
51458       conftest$ac_exeext conftest.$ac_ext
51459 fi
51460 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
51461 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
51462 if test $ac_cv_func__doprnt = yes; then
51463
51464 cat >>confdefs.h <<\_ACEOF
51465 #define HAVE_DOPRNT 1
51466 _ACEOF
51467
51468 fi
51469
51470 fi
51471 done
51472
51473
51474
51475 if test $ac_cv_func_vprintf = yes ; then
51476
51477
51478 for ac_func in snprintf vsnprintf
51479 do
51480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51481 echo "$as_me:$LINENO: checking for $ac_func" >&5
51482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51483 if eval "test \"\${$as_ac_var+set}\" = set"; then
51484   echo $ECHO_N "(cached) $ECHO_C" >&6
51485 else
51486   cat >conftest.$ac_ext <<_ACEOF
51487 /* confdefs.h.  */
51488 _ACEOF
51489 cat confdefs.h >>conftest.$ac_ext
51490 cat >>conftest.$ac_ext <<_ACEOF
51491 /* end confdefs.h.  */
51492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51493    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51494 #define $ac_func innocuous_$ac_func
51495
51496 /* System header to define __stub macros and hopefully few prototypes,
51497     which can conflict with char $ac_func (); below.
51498     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51499     <limits.h> exists even on freestanding compilers.  */
51500
51501 #ifdef __STDC__
51502 # include <limits.h>
51503 #else
51504 # include <assert.h>
51505 #endif
51506
51507 #undef $ac_func
51508
51509 /* Override any gcc2 internal prototype to avoid an error.  */
51510 #ifdef __cplusplus
51511 extern "C"
51512 {
51513 #endif
51514 /* We use char because int might match the return type of a gcc2
51515    builtin and then its argument prototype would still apply.  */
51516 char $ac_func ();
51517 /* The GNU C library defines this for functions which it implements
51518     to always fail with ENOSYS.  Some functions are actually named
51519     something starting with __ and the normal name is an alias.  */
51520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51521 choke me
51522 #else
51523 char (*f) () = $ac_func;
51524 #endif
51525 #ifdef __cplusplus
51526 }
51527 #endif
51528
51529 int
51530 main ()
51531 {
51532 return f != $ac_func;
51533   ;
51534   return 0;
51535 }
51536 _ACEOF
51537 rm -f conftest.$ac_objext conftest$ac_exeext
51538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51539   (eval $ac_link) 2>conftest.er1
51540   ac_status=$?
51541   grep -v '^ *+' conftest.er1 >conftest.err
51542   rm -f conftest.er1
51543   cat conftest.err >&5
51544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51545   (exit $ac_status); } &&
51546          { ac_try='test -z "$ac_c_werror_flag"
51547                          || test ! -s conftest.err'
51548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51549   (eval $ac_try) 2>&5
51550   ac_status=$?
51551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51552   (exit $ac_status); }; } &&
51553          { ac_try='test -s conftest$ac_exeext'
51554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51555   (eval $ac_try) 2>&5
51556   ac_status=$?
51557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51558   (exit $ac_status); }; }; then
51559   eval "$as_ac_var=yes"
51560 else
51561   echo "$as_me: failed program was:" >&5
51562 sed 's/^/| /' conftest.$ac_ext >&5
51563
51564 eval "$as_ac_var=no"
51565 fi
51566 rm -f conftest.err conftest.$ac_objext \
51567       conftest$ac_exeext conftest.$ac_ext
51568 fi
51569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51571 if test `eval echo '${'$as_ac_var'}'` = yes; then
51572   cat >>confdefs.h <<_ACEOF
51573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51574 _ACEOF
51575
51576 fi
51577 done
51578
51579 fi
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
51624
51625
51626
51627
51628
51629
51630
51631
51632
51633
51634 for ac_func in \
51635         bcopy                   \
51636         closesocket             \
51637         chroot                  \
51638         endgrent                \
51639         endpwent                \
51640         fcntl                   \
51641         flock                   \
51642         fstat                   \
51643         getdtablesize   \
51644         getgrgid                \
51645         gethostname             \
51646         getpass                 \
51647         getpassphrase   \
51648         getpwuid                \
51649         getpwnam                \
51650         getspnam                \
51651         gettimeofday    \
51652         initgroups              \
51653         lockf                   \
51654         memcpy                  \
51655         memmove                 \
51656         mkstemp                 \
51657         mktemp                  \
51658         pipe                    \
51659         read                    \
51660         recv                    \
51661         recvfrom                \
51662         setpwfile               \
51663         setgid                  \
51664         setegid                 \
51665         setsid                  \
51666         setuid                  \
51667         seteuid                 \
51668         signal                  \
51669         strdup                  \
51670         strpbrk                 \
51671         strrchr                 \
51672         strsep                  \
51673         strstr                  \
51674         strtol                  \
51675         strtoul                 \
51676         strtoq                  \
51677         strtouq                 \
51678         strtoll                 \
51679         strspn                  \
51680         sysconf                 \
51681         usleep                  \
51682         waitpid                 \
51683         wait4                   \
51684         write                   \
51685         send                    \
51686         sendmsg                 \
51687         sendto                  \
51688
51689 do
51690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51691 echo "$as_me:$LINENO: checking for $ac_func" >&5
51692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51693 if eval "test \"\${$as_ac_var+set}\" = set"; then
51694   echo $ECHO_N "(cached) $ECHO_C" >&6
51695 else
51696   cat >conftest.$ac_ext <<_ACEOF
51697 /* confdefs.h.  */
51698 _ACEOF
51699 cat confdefs.h >>conftest.$ac_ext
51700 cat >>conftest.$ac_ext <<_ACEOF
51701 /* end confdefs.h.  */
51702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51704 #define $ac_func innocuous_$ac_func
51705
51706 /* System header to define __stub macros and hopefully few prototypes,
51707     which can conflict with char $ac_func (); below.
51708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51709     <limits.h> exists even on freestanding compilers.  */
51710
51711 #ifdef __STDC__
51712 # include <limits.h>
51713 #else
51714 # include <assert.h>
51715 #endif
51716
51717 #undef $ac_func
51718
51719 /* Override any gcc2 internal prototype to avoid an error.  */
51720 #ifdef __cplusplus
51721 extern "C"
51722 {
51723 #endif
51724 /* We use char because int might match the return type of a gcc2
51725    builtin and then its argument prototype would still apply.  */
51726 char $ac_func ();
51727 /* The GNU C library defines this for functions which it implements
51728     to always fail with ENOSYS.  Some functions are actually named
51729     something starting with __ and the normal name is an alias.  */
51730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51731 choke me
51732 #else
51733 char (*f) () = $ac_func;
51734 #endif
51735 #ifdef __cplusplus
51736 }
51737 #endif
51738
51739 int
51740 main ()
51741 {
51742 return f != $ac_func;
51743   ;
51744   return 0;
51745 }
51746 _ACEOF
51747 rm -f conftest.$ac_objext conftest$ac_exeext
51748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51749   (eval $ac_link) 2>conftest.er1
51750   ac_status=$?
51751   grep -v '^ *+' conftest.er1 >conftest.err
51752   rm -f conftest.er1
51753   cat conftest.err >&5
51754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51755   (exit $ac_status); } &&
51756          { ac_try='test -z "$ac_c_werror_flag"
51757                          || test ! -s conftest.err'
51758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51759   (eval $ac_try) 2>&5
51760   ac_status=$?
51761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51762   (exit $ac_status); }; } &&
51763          { ac_try='test -s conftest$ac_exeext'
51764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51765   (eval $ac_try) 2>&5
51766   ac_status=$?
51767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51768   (exit $ac_status); }; }; then
51769   eval "$as_ac_var=yes"
51770 else
51771   echo "$as_me: failed program was:" >&5
51772 sed 's/^/| /' conftest.$ac_ext >&5
51773
51774 eval "$as_ac_var=no"
51775 fi
51776 rm -f conftest.err conftest.$ac_objext \
51777       conftest$ac_exeext conftest.$ac_ext
51778 fi
51779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51781 if test `eval echo '${'$as_ac_var'}'` = yes; then
51782   cat >>confdefs.h <<_ACEOF
51783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51784 _ACEOF
51785
51786 fi
51787 done
51788
51789
51790
51791
51792 for ac_func in getopt getpeereid
51793 do
51794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51795 echo "$as_me:$LINENO: checking for $ac_func" >&5
51796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51797 if eval "test \"\${$as_ac_var+set}\" = set"; then
51798   echo $ECHO_N "(cached) $ECHO_C" >&6
51799 else
51800   cat >conftest.$ac_ext <<_ACEOF
51801 /* confdefs.h.  */
51802 _ACEOF
51803 cat confdefs.h >>conftest.$ac_ext
51804 cat >>conftest.$ac_ext <<_ACEOF
51805 /* end confdefs.h.  */
51806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51807    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51808 #define $ac_func innocuous_$ac_func
51809
51810 /* System header to define __stub macros and hopefully few prototypes,
51811     which can conflict with char $ac_func (); below.
51812     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51813     <limits.h> exists even on freestanding compilers.  */
51814
51815 #ifdef __STDC__
51816 # include <limits.h>
51817 #else
51818 # include <assert.h>
51819 #endif
51820
51821 #undef $ac_func
51822
51823 /* Override any gcc2 internal prototype to avoid an error.  */
51824 #ifdef __cplusplus
51825 extern "C"
51826 {
51827 #endif
51828 /* We use char because int might match the return type of a gcc2
51829    builtin and then its argument prototype would still apply.  */
51830 char $ac_func ();
51831 /* The GNU C library defines this for functions which it implements
51832     to always fail with ENOSYS.  Some functions are actually named
51833     something starting with __ and the normal name is an alias.  */
51834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51835 choke me
51836 #else
51837 char (*f) () = $ac_func;
51838 #endif
51839 #ifdef __cplusplus
51840 }
51841 #endif
51842
51843 int
51844 main ()
51845 {
51846 return f != $ac_func;
51847   ;
51848   return 0;
51849 }
51850 _ACEOF
51851 rm -f conftest.$ac_objext conftest$ac_exeext
51852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51853   (eval $ac_link) 2>conftest.er1
51854   ac_status=$?
51855   grep -v '^ *+' conftest.er1 >conftest.err
51856   rm -f conftest.er1
51857   cat conftest.err >&5
51858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51859   (exit $ac_status); } &&
51860          { ac_try='test -z "$ac_c_werror_flag"
51861                          || test ! -s conftest.err'
51862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51863   (eval $ac_try) 2>&5
51864   ac_status=$?
51865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51866   (exit $ac_status); }; } &&
51867          { ac_try='test -s conftest$ac_exeext'
51868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51869   (eval $ac_try) 2>&5
51870   ac_status=$?
51871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51872   (exit $ac_status); }; }; then
51873   eval "$as_ac_var=yes"
51874 else
51875   echo "$as_me: failed program was:" >&5
51876 sed 's/^/| /' conftest.$ac_ext >&5
51877
51878 eval "$as_ac_var=no"
51879 fi
51880 rm -f conftest.err conftest.$ac_objext \
51881       conftest$ac_exeext conftest.$ac_ext
51882 fi
51883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51885 if test `eval echo '${'$as_ac_var'}'` = yes; then
51886   cat >>confdefs.h <<_ACEOF
51887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51888 _ACEOF
51889
51890 else
51891   case $LIBOBJS in
51892     "$ac_func.$ac_objext"   | \
51893   *" $ac_func.$ac_objext"   | \
51894     "$ac_func.$ac_objext "* | \
51895   *" $ac_func.$ac_objext "* ) ;;
51896   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51897 esac
51898
51899 fi
51900 done
51901
51902
51903
51904 if test "$ac_cv_func_getopt" != yes; then
51905         LIBSRCS="$LIBSRCS getopt.c"
51906 fi
51907 if test "$ac_cv_func_getpeereid" != yes; then
51908         echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
51909 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
51910 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
51911   echo $ECHO_N "(cached) $ECHO_C" >&6
51912 else
51913   cat >conftest.$ac_ext <<_ACEOF
51914 /* confdefs.h.  */
51915 _ACEOF
51916 cat confdefs.h >>conftest.$ac_ext
51917 cat >>conftest.$ac_ext <<_ACEOF
51918 /* end confdefs.h.  */
51919 $ac_includes_default
51920 #ifdef HAVE_SYS_SOCKET_H
51921 #include <sys/socket.h>
51922 #endif
51923
51924 int
51925 main ()
51926 {
51927 static struct msghdr ac_aggr;
51928 if (ac_aggr.msg_accrightslen)
51929 return 0;
51930   ;
51931   return 0;
51932 }
51933 _ACEOF
51934 rm -f conftest.$ac_objext
51935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51936   (eval $ac_compile) 2>conftest.er1
51937   ac_status=$?
51938   grep -v '^ *+' conftest.er1 >conftest.err
51939   rm -f conftest.er1
51940   cat conftest.err >&5
51941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51942   (exit $ac_status); } &&
51943          { ac_try='test -z "$ac_c_werror_flag"
51944                          || test ! -s conftest.err'
51945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51946   (eval $ac_try) 2>&5
51947   ac_status=$?
51948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51949   (exit $ac_status); }; } &&
51950          { ac_try='test -s conftest.$ac_objext'
51951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51952   (eval $ac_try) 2>&5
51953   ac_status=$?
51954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51955   (exit $ac_status); }; }; then
51956   ac_cv_member_struct_msghdr_msg_accrightslen=yes
51957 else
51958   echo "$as_me: failed program was:" >&5
51959 sed 's/^/| /' conftest.$ac_ext >&5
51960
51961 cat >conftest.$ac_ext <<_ACEOF
51962 /* confdefs.h.  */
51963 _ACEOF
51964 cat confdefs.h >>conftest.$ac_ext
51965 cat >>conftest.$ac_ext <<_ACEOF
51966 /* end confdefs.h.  */
51967 $ac_includes_default
51968 #ifdef HAVE_SYS_SOCKET_H
51969 #include <sys/socket.h>
51970 #endif
51971
51972 int
51973 main ()
51974 {
51975 static struct msghdr ac_aggr;
51976 if (sizeof ac_aggr.msg_accrightslen)
51977 return 0;
51978   ;
51979   return 0;
51980 }
51981 _ACEOF
51982 rm -f conftest.$ac_objext
51983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51984   (eval $ac_compile) 2>conftest.er1
51985   ac_status=$?
51986   grep -v '^ *+' conftest.er1 >conftest.err
51987   rm -f conftest.er1
51988   cat conftest.err >&5
51989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51990   (exit $ac_status); } &&
51991          { ac_try='test -z "$ac_c_werror_flag"
51992                          || test ! -s conftest.err'
51993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51994   (eval $ac_try) 2>&5
51995   ac_status=$?
51996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51997   (exit $ac_status); }; } &&
51998          { ac_try='test -s conftest.$ac_objext'
51999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52000   (eval $ac_try) 2>&5
52001   ac_status=$?
52002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52003   (exit $ac_status); }; }; then
52004   ac_cv_member_struct_msghdr_msg_accrightslen=yes
52005 else
52006   echo "$as_me: failed program was:" >&5
52007 sed 's/^/| /' conftest.$ac_ext >&5
52008
52009 ac_cv_member_struct_msghdr_msg_accrightslen=no
52010 fi
52011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52012 fi
52013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52014 fi
52015 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
52016 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
52017 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
52018
52019 cat >>confdefs.h <<_ACEOF
52020 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
52021 _ACEOF
52022
52023
52024 fi
52025
52026         if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
52027                 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
52028 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
52029 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
52030   echo $ECHO_N "(cached) $ECHO_C" >&6
52031 else
52032   cat >conftest.$ac_ext <<_ACEOF
52033 /* confdefs.h.  */
52034 _ACEOF
52035 cat confdefs.h >>conftest.$ac_ext
52036 cat >>conftest.$ac_ext <<_ACEOF
52037 /* end confdefs.h.  */
52038 $ac_includes_default
52039 #ifdef HAVE_SYS_SOCKET_H
52040 #include <sys/socket.h>
52041 #endif
52042
52043 int
52044 main ()
52045 {
52046 static struct msghdr ac_aggr;
52047 if (ac_aggr.msg_control)
52048 return 0;
52049   ;
52050   return 0;
52051 }
52052 _ACEOF
52053 rm -f conftest.$ac_objext
52054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52055   (eval $ac_compile) 2>conftest.er1
52056   ac_status=$?
52057   grep -v '^ *+' conftest.er1 >conftest.err
52058   rm -f conftest.er1
52059   cat conftest.err >&5
52060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52061   (exit $ac_status); } &&
52062          { ac_try='test -z "$ac_c_werror_flag"
52063                          || test ! -s conftest.err'
52064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52065   (eval $ac_try) 2>&5
52066   ac_status=$?
52067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52068   (exit $ac_status); }; } &&
52069          { ac_try='test -s conftest.$ac_objext'
52070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52071   (eval $ac_try) 2>&5
52072   ac_status=$?
52073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52074   (exit $ac_status); }; }; then
52075   ac_cv_member_struct_msghdr_msg_control=yes
52076 else
52077   echo "$as_me: failed program was:" >&5
52078 sed 's/^/| /' conftest.$ac_ext >&5
52079
52080 cat >conftest.$ac_ext <<_ACEOF
52081 /* confdefs.h.  */
52082 _ACEOF
52083 cat confdefs.h >>conftest.$ac_ext
52084 cat >>conftest.$ac_ext <<_ACEOF
52085 /* end confdefs.h.  */
52086 $ac_includes_default
52087 #ifdef HAVE_SYS_SOCKET_H
52088 #include <sys/socket.h>
52089 #endif
52090
52091 int
52092 main ()
52093 {
52094 static struct msghdr ac_aggr;
52095 if (sizeof ac_aggr.msg_control)
52096 return 0;
52097   ;
52098   return 0;
52099 }
52100 _ACEOF
52101 rm -f conftest.$ac_objext
52102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52103   (eval $ac_compile) 2>conftest.er1
52104   ac_status=$?
52105   grep -v '^ *+' conftest.er1 >conftest.err
52106   rm -f conftest.er1
52107   cat conftest.err >&5
52108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52109   (exit $ac_status); } &&
52110          { ac_try='test -z "$ac_c_werror_flag"
52111                          || test ! -s conftest.err'
52112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52113   (eval $ac_try) 2>&5
52114   ac_status=$?
52115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52116   (exit $ac_status); }; } &&
52117          { ac_try='test -s conftest.$ac_objext'
52118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52119   (eval $ac_try) 2>&5
52120   ac_status=$?
52121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52122   (exit $ac_status); }; }; then
52123   ac_cv_member_struct_msghdr_msg_control=yes
52124 else
52125   echo "$as_me: failed program was:" >&5
52126 sed 's/^/| /' conftest.$ac_ext >&5
52127
52128 ac_cv_member_struct_msghdr_msg_control=no
52129 fi
52130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52131 fi
52132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52133 fi
52134 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
52135 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
52136 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
52137
52138 cat >>confdefs.h <<_ACEOF
52139 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
52140 _ACEOF
52141
52142
52143 fi
52144
52145         fi
52146         LIBSRCS="$LIBSRCS getpeereid.c"
52147 fi
52148 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
52149         if test "$ac_cv_func_snprintf" != yes; then
52150
52151 cat >>confdefs.h <<\_ACEOF
52152 #define snprintf ber_pvt_snprintf
52153 _ACEOF
52154
52155         fi
52156         if test "$ac_cv_func_vsnprintf" != yes; then
52157
52158 cat >>confdefs.h <<\_ACEOF
52159 #define vsnprintf ber_pvt_vsnprintf
52160 _ACEOF
52161
52162         fi
52163 fi
52164
52165
52166 if test "$ol_enable_slapi" != no ; then
52167
52168 for ac_header in ltdl.h
52169 do
52170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52172   echo "$as_me:$LINENO: checking for $ac_header" >&5
52173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52175   echo $ECHO_N "(cached) $ECHO_C" >&6
52176 fi
52177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52179 else
52180   # Is the header compilable?
52181 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52183 cat >conftest.$ac_ext <<_ACEOF
52184 /* confdefs.h.  */
52185 _ACEOF
52186 cat confdefs.h >>conftest.$ac_ext
52187 cat >>conftest.$ac_ext <<_ACEOF
52188 /* end confdefs.h.  */
52189 $ac_includes_default
52190 #include <$ac_header>
52191 _ACEOF
52192 rm -f conftest.$ac_objext
52193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52194   (eval $ac_compile) 2>conftest.er1
52195   ac_status=$?
52196   grep -v '^ *+' conftest.er1 >conftest.err
52197   rm -f conftest.er1
52198   cat conftest.err >&5
52199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52200   (exit $ac_status); } &&
52201          { ac_try='test -z "$ac_c_werror_flag"
52202                          || test ! -s conftest.err'
52203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52204   (eval $ac_try) 2>&5
52205   ac_status=$?
52206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52207   (exit $ac_status); }; } &&
52208          { ac_try='test -s conftest.$ac_objext'
52209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52210   (eval $ac_try) 2>&5
52211   ac_status=$?
52212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52213   (exit $ac_status); }; }; then
52214   ac_header_compiler=yes
52215 else
52216   echo "$as_me: failed program was:" >&5
52217 sed 's/^/| /' conftest.$ac_ext >&5
52218
52219 ac_header_compiler=no
52220 fi
52221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52223 echo "${ECHO_T}$ac_header_compiler" >&6
52224
52225 # Is the header present?
52226 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52228 cat >conftest.$ac_ext <<_ACEOF
52229 /* confdefs.h.  */
52230 _ACEOF
52231 cat confdefs.h >>conftest.$ac_ext
52232 cat >>conftest.$ac_ext <<_ACEOF
52233 /* end confdefs.h.  */
52234 #include <$ac_header>
52235 _ACEOF
52236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52237   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52238   ac_status=$?
52239   grep -v '^ *+' conftest.er1 >conftest.err
52240   rm -f conftest.er1
52241   cat conftest.err >&5
52242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52243   (exit $ac_status); } >/dev/null; then
52244   if test -s conftest.err; then
52245     ac_cpp_err=$ac_c_preproc_warn_flag
52246     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52247   else
52248     ac_cpp_err=
52249   fi
52250 else
52251   ac_cpp_err=yes
52252 fi
52253 if test -z "$ac_cpp_err"; then
52254   ac_header_preproc=yes
52255 else
52256   echo "$as_me: failed program was:" >&5
52257 sed 's/^/| /' conftest.$ac_ext >&5
52258
52259   ac_header_preproc=no
52260 fi
52261 rm -f conftest.err conftest.$ac_ext
52262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52263 echo "${ECHO_T}$ac_header_preproc" >&6
52264
52265 # So?  What about this header?
52266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52267   yes:no: )
52268     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52272     ac_header_preproc=yes
52273     ;;
52274   no:yes:* )
52275     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52277     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
52278 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
52279     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52281     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
52282 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
52283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52285     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52287     (
52288       cat <<\_ASBOX
52289 ## ------------------------------------------ ##
52290 ## Report this to the AC_PACKAGE_NAME lists.  ##
52291 ## ------------------------------------------ ##
52292 _ASBOX
52293     ) |
52294       sed "s/^/$as_me: WARNING:     /" >&2
52295     ;;
52296 esac
52297 echo "$as_me:$LINENO: checking for $ac_header" >&5
52298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52300   echo $ECHO_N "(cached) $ECHO_C" >&6
52301 else
52302   eval "$as_ac_Header=\$ac_header_preproc"
52303 fi
52304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52306
52307 fi
52308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52309   cat >>confdefs.h <<_ACEOF
52310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52311 _ACEOF
52312
52313 fi
52314
52315 done
52316
52317
52318         if test $ac_cv_header_ltdl_h != yes ; then
52319                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
52320 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
52321    { (exit 1); exit 1; }; }
52322         fi
52323         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
52324 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
52325 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
52326   echo $ECHO_N "(cached) $ECHO_C" >&6
52327 else
52328   ac_check_lib_save_LIBS=$LIBS
52329 LIBS="-lltdl  $LIBS"
52330 cat >conftest.$ac_ext <<_ACEOF
52331 /* confdefs.h.  */
52332 _ACEOF
52333 cat confdefs.h >>conftest.$ac_ext
52334 cat >>conftest.$ac_ext <<_ACEOF
52335 /* end confdefs.h.  */
52336
52337 /* Override any gcc2 internal prototype to avoid an error.  */
52338 #ifdef __cplusplus
52339 extern "C"
52340 #endif
52341 /* We use char because int might match the return type of a gcc2
52342    builtin and then its argument prototype would still apply.  */
52343 char lt_dlinit ();
52344 int
52345 main ()
52346 {
52347 lt_dlinit ();
52348   ;
52349   return 0;
52350 }
52351 _ACEOF
52352 rm -f conftest.$ac_objext conftest$ac_exeext
52353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52354   (eval $ac_link) 2>conftest.er1
52355   ac_status=$?
52356   grep -v '^ *+' conftest.er1 >conftest.err
52357   rm -f conftest.er1
52358   cat conftest.err >&5
52359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52360   (exit $ac_status); } &&
52361          { ac_try='test -z "$ac_c_werror_flag"
52362                          || test ! -s conftest.err'
52363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52364   (eval $ac_try) 2>&5
52365   ac_status=$?
52366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52367   (exit $ac_status); }; } &&
52368          { ac_try='test -s conftest$ac_exeext'
52369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52370   (eval $ac_try) 2>&5
52371   ac_status=$?
52372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52373   (exit $ac_status); }; }; then
52374   ac_cv_lib_ltdl_lt_dlinit=yes
52375 else
52376   echo "$as_me: failed program was:" >&5
52377 sed 's/^/| /' conftest.$ac_ext >&5
52378
52379 ac_cv_lib_ltdl_lt_dlinit=no
52380 fi
52381 rm -f conftest.err conftest.$ac_objext \
52382       conftest$ac_exeext conftest.$ac_ext
52383 LIBS=$ac_check_lib_save_LIBS
52384 fi
52385 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
52386 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
52387 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
52388
52389                 SLAPI_LIBS=-lltdl
52390                 LIBSLAPI=libslapi.a
52391                 LIBSLAPITOOLS=../libslapi.a
52392
52393 cat >>confdefs.h <<\_ACEOF
52394 #define HAVE_LIBLTDL 1
52395 _ACEOF
52396
52397
52398 else
52399   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
52400 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
52401    { (exit 1); exit 1; }; }
52402 fi
52403
52404
52405
52406 cat >>confdefs.h <<\_ACEOF
52407 #define LDAP_SLAPI 1
52408 _ACEOF
52409
52410 fi
52411
52412 if test "$ol_enable_debug" != no ; then
52413
52414 cat >>confdefs.h <<\_ACEOF
52415 #define LDAP_DEBUG 1
52416 _ACEOF
52417
52418 fi
52419 if test "$ol_enable_syslog" = yes ; then
52420
52421 cat >>confdefs.h <<\_ACEOF
52422 #define LDAP_SYSLOG 1
52423 _ACEOF
52424
52425 fi
52426 if test "$ol_link_kbind" != no ; then
52427
52428 cat >>confdefs.h <<\_ACEOF
52429 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
52430 _ACEOF
52431
52432 fi
52433 if test "$ol_enable_proctitle" != no ; then
52434
52435 cat >>confdefs.h <<\_ACEOF
52436 #define LDAP_PROCTITLE 1
52437 _ACEOF
52438
52439 fi
52440 if test "$ol_enable_referrals" != no ; then
52441
52442 cat >>confdefs.h <<\_ACEOF
52443 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
52444 _ACEOF
52445
52446 fi
52447 if test "$ol_enable_local" != no; then
52448
52449 cat >>confdefs.h <<\_ACEOF
52450 #define LDAP_PF_LOCAL 1
52451 _ACEOF
52452
52453 fi
52454 if test "$ol_link_ipv6" != no; then
52455
52456 cat >>confdefs.h <<\_ACEOF
52457 #define LDAP_PF_INET6 1
52458 _ACEOF
52459
52460 fi
52461 if test "$ol_enable_cleartext" != no ; then
52462
52463 cat >>confdefs.h <<\_ACEOF
52464 #define SLAPD_CLEARTEXT 1
52465 _ACEOF
52466
52467 fi
52468 if test "$ol_enable_crypt" != no ; then
52469
52470 cat >>confdefs.h <<\_ACEOF
52471 #define SLAPD_CRYPT 1
52472 _ACEOF
52473
52474 fi
52475 if test "$ol_link_spasswd" != no ; then
52476
52477 cat >>confdefs.h <<\_ACEOF
52478 #define SLAPD_SPASSWD 1
52479 _ACEOF
52480
52481 fi
52482 if test "$ol_enable_multimaster" != no ; then
52483
52484 cat >>confdefs.h <<\_ACEOF
52485 #define SLAPD_MULTIMASTER 1
52486 _ACEOF
52487
52488 fi
52489 if test "$ol_enable_rlookups" != no ; then
52490
52491 cat >>confdefs.h <<\_ACEOF
52492 #define SLAPD_RLOOKUPS 1
52493 _ACEOF
52494
52495 fi
52496 if test "$ol_enable_aci" != no ; then
52497
52498 cat >>confdefs.h <<\_ACEOF
52499 #define SLAPD_ACI_ENABLED 1
52500 _ACEOF
52501
52502 fi
52503
52504 if test "$ol_link_modules" != no ; then
52505
52506 cat >>confdefs.h <<\_ACEOF
52507 #define SLAPD_MODULES 1
52508 _ACEOF
52509
52510         BUILD_SLAPD=yes
52511         SLAPD_MODULES_LDFLAGS="-dlopen self"
52512 fi
52513
52514
52515 cat >>confdefs.h <<\_ACEOF
52516 #define SLAPD_MOD_STATIC 1
52517 _ACEOF
52518
52519
52520 cat >>confdefs.h <<\_ACEOF
52521 #define SLAPD_MOD_DYNAMIC 2
52522 _ACEOF
52523
52524
52525 if test "$ol_enable_bdb" != no ; then
52526         BUILD_SLAPD=yes
52527         BUILD_BDB=$ol_enable_bdb
52528         if test "$ol_enable_bdb" = mod ; then
52529                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
52530                 MFLAG=SLAPD_MOD_DYNAMIC
52531         else
52532                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
52533                 MFLAG=SLAPD_MOD_STATIC
52534         fi
52535
52536 cat >>confdefs.h <<_ACEOF
52537 #define SLAPD_BDB $MFLAG
52538 _ACEOF
52539
52540 fi
52541
52542 if test "$ol_enable_dnssrv" != no ; then
52543         BUILD_SLAPD=yes
52544         BUILD_DNSSRV=$ol_enable_dnssrv
52545         if test "$ol_enable_dnssrv" = mod ; then
52546                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
52547                 MFLAG=SLAPD_MOD_DYNAMIC
52548         else
52549                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
52550                 MFLAG=SLAPD_MOD_STATIC
52551         fi
52552
52553 cat >>confdefs.h <<_ACEOF
52554 #define SLAPD_DNSSRV $MFLAG
52555 _ACEOF
52556
52557 fi
52558
52559 if test "$ol_enable_hdb" != no ; then
52560         BUILD_SLAPD=yes
52561         BUILD_HDB=$ol_enable_hdb
52562         if test "$ol_enable_hdb" = mod ; then
52563                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
52564                 MFLAG=SLAPD_MOD_DYNAMIC
52565         else
52566                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
52567                 MFLAG=SLAPD_MOD_STATIC
52568         fi
52569
52570 cat >>confdefs.h <<_ACEOF
52571 #define SLAPD_HDB $MFLAG
52572 _ACEOF
52573
52574 fi
52575
52576 if test "$ol_enable_ldap" != no ; then
52577         BUILD_SLAPD=yes
52578         BUILD_LDAP=$ol_enable_ldap
52579         if test "$ol_enable_ldap" = mod ; then
52580                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
52581                 MFLAG=SLAPD_MOD_DYNAMIC
52582         else
52583                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
52584                 MFLAG=SLAPD_MOD_STATIC
52585         fi
52586
52587 cat >>confdefs.h <<_ACEOF
52588 #define SLAPD_LDAP $MFLAG
52589 _ACEOF
52590
52591 fi
52592
52593 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
52594         BUILD_SLAPD=yes
52595         BUILD_LDBM=$ol_enable_ldbm
52596         if test "$ol_enable_ldbm" = mod ; then
52597                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
52598                 MFLAG=SLAPD_MOD_DYNAMIC
52599         else
52600                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
52601                 MFLAG=SLAPD_MOD_STATIC
52602         fi
52603
52604 cat >>confdefs.h <<_ACEOF
52605 #define SLAPD_LDBM $MFLAG
52606 _ACEOF
52607
52608 fi
52609
52610 if test "$ol_enable_meta" != no ; then
52611         BUILD_SLAPD=yes
52612         BUILD_META=$ol_enable_meta
52613         BUILD_REWRITE=yes
52614         if test "$ol_enable_meta" = mod ; then
52615                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
52616                 MFLAG=SLAPD_MOD_DYNAMIC
52617         else
52618                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
52619                 MFLAG=SLAPD_MOD_STATIC
52620         fi
52621
52622 cat >>confdefs.h <<_ACEOF
52623 #define SLAPD_META $MFLAG
52624 _ACEOF
52625
52626 fi
52627
52628 if test "$ol_enable_monitor" != no ; then
52629         BUILD_SLAPD=yes
52630         BUILD_MONITOR=$ol_enable_monitor
52631         if test "$ol_enable_monitor" = mod ; then
52632                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
52633                 MFLAG=SLAPD_MOD_DYNAMIC
52634         else
52635                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
52636                 MFLAG=SLAPD_MOD_STATIC
52637         fi
52638
52639 cat >>confdefs.h <<_ACEOF
52640 #define SLAPD_MONITOR $MFLAG
52641 _ACEOF
52642
52643 fi
52644
52645 if test "$ol_enable_null" != no ; then
52646         BUILD_SLAPD=yes
52647         BUILD_NULL=$ol_enable_null
52648         if test "$ol_enable_null" = mod ; then
52649                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
52650                 MFLAG=SLAPD_MOD_DYNAMIC
52651         else
52652                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
52653                 MFLAG=SLAPD_MOD_STATIC
52654         fi
52655
52656 cat >>confdefs.h <<_ACEOF
52657 #define SLAPD_NULL $MFLAG
52658 _ACEOF
52659
52660 fi
52661
52662 if test "$ol_enable_passwd" != no ; then
52663         BUILD_SLAPD=yes
52664         BUILD_PASSWD=$ol_enable_passwd
52665         if test "$ol_enable_passwd" = mod ; then
52666                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
52667                 MFLAG=SLAPD_MOD_DYNAMIC
52668         else
52669                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
52670                 MFLAG=SLAPD_MOD_STATIC
52671         fi
52672
52673 cat >>confdefs.h <<_ACEOF
52674 #define SLAPD_PASSWD $MFLAG
52675 _ACEOF
52676
52677 fi
52678
52679 if test "$ol_link_perl" != no ; then
52680         BUILD_SLAPD=yes
52681         BUILD_PERL=$ol_enable_perl
52682         if test "$ol_enable_perl" = mod ; then
52683                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
52684                 MFLAG=SLAPD_MOD_DYNAMIC
52685         else
52686                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
52687                 MFLAG=SLAPD_MOD_STATIC
52688         fi
52689
52690 cat >>confdefs.h <<_ACEOF
52691 #define SLAPD_PERL $MFLAG
52692 _ACEOF
52693
52694 fi
52695
52696 if test "$ol_enable_relay" != no ; then
52697         BUILD_SLAPD=yes
52698         BUILD_RELAY=$ol_enable_relay
52699         if test "$ol_enable_relay" = mod ; then
52700                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
52701                 MFLAG=SLAPD_MOD_DYNAMIC
52702         else
52703                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
52704                 MFLAG=SLAPD_MOD_STATIC
52705         fi
52706
52707 cat >>confdefs.h <<_ACEOF
52708 #define SLAPD_RELAY $MFLAG
52709 _ACEOF
52710
52711 fi
52712
52713 if test "$ol_enable_shell" != no ; then
52714         if test "$ol_link_threads" != no ; then
52715                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
52716 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
52717         fi
52718         BUILD_SLAPD=yes
52719         BUILD_SHELL=$ol_enable_shell
52720         if test "$ol_enable_shell" = mod ; then
52721                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
52722                 MFLAG=SLAPD_MOD_DYNAMIC
52723         else
52724                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
52725                 MFLAG=SLAPD_MOD_STATIC
52726         fi
52727
52728 cat >>confdefs.h <<_ACEOF
52729 #define SLAPD_SHELL $MFLAG
52730 _ACEOF
52731
52732 fi
52733
52734 if test "$ol_link_sql" != no ; then
52735         BUILD_SLAPD=yes
52736         BUILD_SQL=$ol_enable_sql
52737         if test "$ol_enable_sql" = mod; then
52738                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
52739                 MFLAG=SLAPD_MOD_DYNAMIC
52740         else
52741                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
52742                 MFLAG=SLAPD_MOD_STATIC
52743         fi
52744
52745 cat >>confdefs.h <<_ACEOF
52746 #define SLAPD_SQL $MFLAG
52747 _ACEOF
52748
52749 fi
52750
52751 if test "$ol_enable_accesslog" != no ; then
52752         BUILD_ACCESSLOG=$ol_enable_accesslog
52753         if test "$ol_enable_accesslog" = mod ; then
52754                 MFLAG=SLAPD_MOD_DYNAMIC
52755                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
52756         else
52757                 MFLAG=SLAPD_MOD_STATIC
52758                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
52759         fi
52760
52761 cat >>confdefs.h <<_ACEOF
52762 #define SLAPD_OVER_ACCESSLOG $MFLAG
52763 _ACEOF
52764
52765 fi
52766
52767 if test "$ol_enable_denyop" != no ; then
52768         BUILD_DENYOP=$ol_enable_denyop
52769         if test "$ol_enable_denyop" = mod ; then
52770                 MFLAG=SLAPD_MOD_DYNAMIC
52771                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
52772         else
52773                 MFLAG=SLAPD_MOD_STATIC
52774                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
52775         fi
52776
52777 cat >>confdefs.h <<_ACEOF
52778 #define SLAPD_OVER_DENYOP $MFLAG
52779 _ACEOF
52780
52781 fi
52782
52783 if test "$ol_enable_dyngroup" != no ; then
52784         BUILD_DYNGROUP=$ol_enable_dyngroup
52785         if test "$ol_enable_dyngroup" = mod ; then
52786                 MFLAG=SLAPD_MOD_DYNAMIC
52787                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
52788         else
52789                 MFLAG=SLAPD_MOD_STATIC
52790                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
52791         fi
52792
52793 cat >>confdefs.h <<_ACEOF
52794 #define SLAPD_OVER_DYNGROUP $MFLAG
52795 _ACEOF
52796
52797 fi
52798
52799 if test "$ol_enable_dynlist" != no ; then
52800         BUILD_DYNLIST=$ol_enable_dynlist
52801         if test "$ol_enable_dynlist" = mod ; then
52802                 MFLAG=SLAPD_MOD_DYNAMIC
52803                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
52804         else
52805                 MFLAG=SLAPD_MOD_STATIC
52806                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
52807         fi
52808
52809 cat >>confdefs.h <<_ACEOF
52810 #define SLAPD_OVER_DYNLIST $MFLAG
52811 _ACEOF
52812
52813 fi
52814
52815 if test "$ol_enable_glue" != no ; then
52816         BUILD_GLUE=$ol_enable_glue
52817         if test "$ol_enable_glue" = mod ; then
52818                 MFLAG=SLAPD_MOD_DYNAMIC
52819                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
52820         else
52821                 MFLAG=SLAPD_MOD_STATIC
52822                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
52823         fi
52824
52825 cat >>confdefs.h <<_ACEOF
52826 #define SLAPD_OVER_GLUE $MFLAG
52827 _ACEOF
52828
52829 fi
52830
52831 if test "$ol_enable_lastmod" != no ; then
52832         BUILD_LASTMOD=$ol_enable_lastmod
52833         if test "$ol_enable_lastmod" = mod ; then
52834                 MFLAG=SLAPD_MOD_DYNAMIC
52835                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
52836         else
52837                 MFLAG=SLAPD_MOD_STATIC
52838                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
52839         fi
52840
52841 cat >>confdefs.h <<_ACEOF
52842 #define SLAPD_OVER_LASTMOD $MFLAG
52843 _ACEOF
52844
52845 fi
52846
52847 if test "$ol_enable_ppolicy" != no ; then
52848         BUILD_PPOLICY=$ol_enable_ppolicy
52849         if test "$ol_enable_ppolicy" = mod ; then
52850                 MFLAG=SLAPD_MOD_DYNAMIC
52851                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
52852         else
52853                 MFLAG=SLAPD_MOD_STATIC
52854                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
52855         fi
52856
52857 cat >>confdefs.h <<_ACEOF
52858 #define SLAPD_OVER_PPOLICY $MFLAG
52859 _ACEOF
52860
52861 fi
52862
52863 if test "$ol_enable_proxycache" != no ; then
52864         BUILD_PROXYCACHE=$ol_enable_proxycache
52865         if test "$ol_enable_proxycache" = mod ; then
52866                 MFLAG=SLAPD_MOD_DYNAMIC
52867                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
52868         else
52869                 MFLAG=SLAPD_MOD_STATIC
52870                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
52871         fi
52872
52873 cat >>confdefs.h <<_ACEOF
52874 #define SLAPD_OVER_PROXYCACHE $MFLAG
52875 _ACEOF
52876
52877 fi
52878
52879 if test "$ol_enable_refint" != no ; then
52880         BUILD_REFINT=$ol_enable_refint
52881         if test "$ol_enable_refint" = mod ; then
52882                 MFLAG=SLAPD_MOD_DYNAMIC
52883                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
52884         else
52885                 MFLAG=SLAPD_MOD_STATIC
52886                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
52887         fi
52888
52889 cat >>confdefs.h <<_ACEOF
52890 #define SLAPD_OVER_REFINT $MFLAG
52891 _ACEOF
52892
52893 fi
52894
52895 if test "$ol_enable_retcode" != no ; then
52896         BUILD_RETCODE=$ol_enable_retcode
52897         if test "$ol_enable_retcode" = mod ; then
52898                 MFLAG=SLAPD_MOD_DYNAMIC
52899                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
52900         else
52901                 MFLAG=SLAPD_MOD_STATIC
52902                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
52903         fi
52904
52905 cat >>confdefs.h <<_ACEOF
52906 #define SLAPD_OVER_RETCODE $MFLAG
52907 _ACEOF
52908
52909 fi
52910
52911 if test "$ol_enable_rwm" != no ; then
52912         BUILD_REWRITE=yes
52913         BUILD_RWM=$ol_enable_rwm
52914         if test "$ol_enable_rwm" = mod ; then
52915                 MFLAG=SLAPD_MOD_DYNAMIC
52916                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
52917         else
52918                 MFLAG=SLAPD_MOD_STATIC
52919                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
52920         fi
52921
52922 cat >>confdefs.h <<_ACEOF
52923 #define SLAPD_OVER_RWM $MFLAG
52924 _ACEOF
52925
52926 fi
52927
52928 if test "$ol_enable_syncprov" != no ; then
52929         BUILD_SYNCPROV=$ol_enable_syncprov
52930         if test "$ol_enable_syncprov" = mod ; then
52931                 MFLAG=SLAPD_MOD_DYNAMIC
52932                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
52933         else
52934                 MFLAG=SLAPD_MOD_STATIC
52935                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
52936         fi
52937
52938 cat >>confdefs.h <<_ACEOF
52939 #define SLAPD_OVER_SYNCPROV $MFLAG
52940 _ACEOF
52941
52942 fi
52943
52944 if test "$ol_enable_translucent" != no ; then
52945         BUILD_TRANSLUCENT=$ol_enable_translucent
52946         if test "$ol_enable_translucent" = mod ; then
52947                 MFLAG=SLAPD_MOD_DYNAMIC
52948                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
52949         else
52950                 MFLAG=SLAPD_MOD_STATIC
52951                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
52952         fi
52953
52954 cat >>confdefs.h <<_ACEOF
52955 #define SLAPD_OVER_TRANSLUCENT $MFLAG
52956 _ACEOF
52957
52958 fi
52959
52960 if test "$ol_enable_unique" != no ; then
52961         BUILD_UNIQUE=$ol_enable_unique
52962         if test "$ol_enable_unique" = mod ; then
52963                 MFLAG=SLAPD_MOD_DYNAMIC
52964                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
52965         else
52966                 MFLAG=SLAPD_MOD_STATIC
52967                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
52968         fi
52969
52970 cat >>confdefs.h <<_ACEOF
52971 #define SLAPD_OVER_UNIQUE $MFLAG
52972 _ACEOF
52973
52974 fi
52975
52976 if test "$ol_enable_valsort" != no ; then
52977         BUILD_VALSORT=$ol_enable_valsort
52978         if test "$ol_enable_valsort" = mod ; then
52979                 MFLAG=SLAPD_MOD_DYNAMIC
52980                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
52981         else
52982                 MFLAG=SLAPD_MOD_STATIC
52983                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
52984         fi
52985
52986 cat >>confdefs.h <<_ACEOF
52987 #define SLAPD_OVER_VALSORT $MFLAG
52988 _ACEOF
52989
52990 fi
52991
52992 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
52993         $BUILD_SLAPD = yes ; then
52994         BUILD_SLURPD=yes
52995 fi
52996
52997 if test "$ol_enable_rewrite" != no ; then
52998
52999 cat >>confdefs.h <<\_ACEOF
53000 #define ENABLE_REWRITE 1
53001 _ACEOF
53002
53003         BUILD_REWRITE=yes
53004 fi
53005
53006 if test "$ol_enable_slapi" != no ; then
53007
53008 cat >>confdefs.h <<\_ACEOF
53009 #define ENABLE_SLAPI 1
53010 _ACEOF
53011
53012         BUILD_SLAPI=yes
53013         SLAPD_SLAPI_DEPEND=libslapi.a
53014 fi
53015
53016
53017
53018 if test "$ac_cv_mingw32" = yes ; then
53019         PLAT=NT
53020         SLAPD_MODULES_LDFLAGS=
53021 else
53022         PLAT=UNIX
53023 fi
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
53094
53095
53096
53097
53098
53099
53100
53101
53102
53103
53104 # Check whether --with-xxinstall or --without-xxinstall was given.
53105 if test "${with_xxinstall+set}" = set; then
53106   withval="$with_xxinstall"
53107
53108 fi;
53109
53110
53111                                                                                                                                                                                                                                                                                                                                                                                                                 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"
53112
53113
53114           ac_config_commands="$ac_config_commands default"
53115
53116
53117
53118 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53119 # Let make expand exec_prefix.
53120 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53121
53122 # VPATH may cause trouble with some makes, so we remove $(srcdir),
53123 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
53124 # trailing colons and then remove the whole line if VPATH becomes empty
53125 # (actually we leave an empty line to preserve line numbers).
53126 if test "x$srcdir" = x.; then
53127   ac_vpsub='/^[  ]*VPATH[        ]*=/{
53128 s/:*\$(srcdir):*/:/;
53129 s/:*\${srcdir}:*/:/;
53130 s/:*@srcdir@:*/:/;
53131 s/^\([^=]*=[     ]*\):*/\1/;
53132 s/:*$//;
53133 s/^[^=]*=[       ]*$//;
53134 }'
53135 fi
53136
53137 DEFS=-DHAVE_CONFIG_H
53138
53139 ac_libobjs=
53140 ac_ltlibobjs=
53141 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53142   # 1. Remove the extension, and $U if already installed.
53143   ac_i=`echo "$ac_i" |
53144          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
53145   # 2. Add them.
53146   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
53147   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
53148 done
53149 LIBOBJS=$ac_libobjs
53150
53151 LTLIBOBJS=$ac_ltlibobjs
53152
53153
53154 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
53155   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
53156 Usually this means the macro was only invoked conditionally." >&5
53157 echo "$as_me: error: conditional \"AMDEP\" was never defined.
53158 Usually this means the macro was only invoked conditionally." >&2;}
53159    { (exit 1); exit 1; }; }
53160 fi
53161 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53162   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53163 Usually this means the macro was only invoked conditionally." >&5
53164 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53165 Usually this means the macro was only invoked conditionally." >&2;}
53166    { (exit 1); exit 1; }; }
53167 fi
53168 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
53169   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
53170 Usually this means the macro was only invoked conditionally." >&5
53171 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
53172 Usually this means the macro was only invoked conditionally." >&2;}
53173    { (exit 1); exit 1; }; }
53174 fi
53175 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53176   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53177 Usually this means the macro was only invoked conditionally." >&5
53178 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53179 Usually this means the macro was only invoked conditionally." >&2;}
53180    { (exit 1); exit 1; }; }
53181 fi
53182
53183 : ${CONFIG_STATUS=./config.status}
53184 ac_clean_files_save=$ac_clean_files
53185 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53186 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53187 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53188 cat >$CONFIG_STATUS <<_ACEOF
53189 #! $SHELL
53190 # Generated by $as_me.
53191 # Run this file to recreate the current configuration.
53192 # Compiler output produced by configure, useful for debugging
53193 # configure, is in config.log if it exists.
53194
53195 debug=false
53196 ac_cs_recheck=false
53197 ac_cs_silent=false
53198 SHELL=\${CONFIG_SHELL-$SHELL}
53199 _ACEOF
53200
53201 cat >>$CONFIG_STATUS <<\_ACEOF
53202 ## --------------------- ##
53203 ## M4sh Initialization.  ##
53204 ## --------------------- ##
53205
53206 # Be Bourne compatible
53207 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53208   emulate sh
53209   NULLCMD=:
53210   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53211   # is contrary to our usage.  Disable this feature.
53212   alias -g '${1+"$@"}'='"$@"'
53213 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
53214   set -o posix
53215 fi
53216 DUALCASE=1; export DUALCASE # for MKS sh
53217
53218 # Support unset when possible.
53219 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53220   as_unset=unset
53221 else
53222   as_unset=false
53223 fi
53224
53225
53226 # Work around bugs in pre-3.0 UWIN ksh.
53227 $as_unset ENV MAIL MAILPATH
53228 PS1='$ '
53229 PS2='> '
53230 PS4='+ '
53231
53232 # NLS nuisances.
53233 for as_var in \
53234   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53235   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53236   LC_TELEPHONE LC_TIME
53237 do
53238   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53239     eval $as_var=C; export $as_var
53240   else
53241     $as_unset $as_var
53242   fi
53243 done
53244
53245 # Required to use basename.
53246 if expr a : '\(a\)' >/dev/null 2>&1; then
53247   as_expr=expr
53248 else
53249   as_expr=false
53250 fi
53251
53252 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
53253   as_basename=basename
53254 else
53255   as_basename=false
53256 fi
53257
53258
53259 # Name of the executable.
53260 as_me=`$as_basename "$0" ||
53261 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53262          X"$0" : 'X\(//\)$' \| \
53263          X"$0" : 'X\(/\)$' \| \
53264          .     : '\(.\)' 2>/dev/null ||
53265 echo X/"$0" |
53266     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
53267           /^X\/\(\/\/\)$/{ s//\1/; q; }
53268           /^X\/\(\/\).*/{ s//\1/; q; }
53269           s/.*/./; q'`
53270
53271
53272 # PATH needs CR, and LINENO needs CR and PATH.
53273 # Avoid depending upon Character Ranges.
53274 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53275 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53276 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53277 as_cr_digits='0123456789'
53278 as_cr_alnum=$as_cr_Letters$as_cr_digits
53279
53280 # The user is always right.
53281 if test "${PATH_SEPARATOR+set}" != set; then
53282   echo "#! /bin/sh" >conf$$.sh
53283   echo  "exit 0"   >>conf$$.sh
53284   chmod +x conf$$.sh
53285   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53286     PATH_SEPARATOR=';'
53287   else
53288     PATH_SEPARATOR=:
53289   fi
53290   rm -f conf$$.sh
53291 fi
53292
53293
53294   as_lineno_1=$LINENO
53295   as_lineno_2=$LINENO
53296   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53297   test "x$as_lineno_1" != "x$as_lineno_2" &&
53298   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
53299   # Find who we are.  Look in the path if we contain no path at all
53300   # relative or not.
53301   case $0 in
53302     *[\\/]* ) as_myself=$0 ;;
53303     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53304 for as_dir in $PATH
53305 do
53306   IFS=$as_save_IFS
53307   test -z "$as_dir" && as_dir=.
53308   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53309 done
53310
53311        ;;
53312   esac
53313   # We did not find ourselves, most probably we were run as `sh COMMAND'
53314   # in which case we are not to be found in the path.
53315   if test "x$as_myself" = x; then
53316     as_myself=$0
53317   fi
53318   if test ! -f "$as_myself"; then
53319     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
53320 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
53321    { (exit 1); exit 1; }; }
53322   fi
53323   case $CONFIG_SHELL in
53324   '')
53325     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53326 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
53327 do
53328   IFS=$as_save_IFS
53329   test -z "$as_dir" && as_dir=.
53330   for as_base in sh bash ksh sh5; do
53331          case $as_dir in
53332          /*)
53333            if ("$as_dir/$as_base" -c '
53334   as_lineno_1=$LINENO
53335   as_lineno_2=$LINENO
53336   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53337   test "x$as_lineno_1" != "x$as_lineno_2" &&
53338   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
53339              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
53340              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
53341              CONFIG_SHELL=$as_dir/$as_base
53342              export CONFIG_SHELL
53343              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
53344            fi;;
53345          esac
53346        done
53347 done
53348 ;;
53349   esac
53350
53351   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53352   # uniformly replaced by the line number.  The first 'sed' inserts a
53353   # line-number line before each line; the second 'sed' does the real
53354   # work.  The second script uses 'N' to pair each line-number line
53355   # with the numbered line, and appends trailing '-' during
53356   # substitution so that $LINENO is not a special case at line end.
53357   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53358   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
53359   sed '=' <$as_myself |
53360     sed '
53361       N
53362       s,$,-,
53363       : loop
53364       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
53365       t loop
53366       s,-$,,
53367       s,^['$as_cr_digits']*\n,,
53368     ' >$as_me.lineno &&
53369   chmod +x $as_me.lineno ||
53370     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
53371 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
53372    { (exit 1); exit 1; }; }
53373
53374   # Don't try to exec as it changes $[0], causing all sort of problems
53375   # (the dirname of $[0] is not the place where we might find the
53376   # original and so on.  Autoconf is especially sensible to this).
53377   . ./$as_me.lineno
53378   # Exit status is that of the last command.
53379   exit
53380 }
53381
53382
53383 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
53384   *c*,-n*) ECHO_N= ECHO_C='
53385 ' ECHO_T='      ' ;;
53386   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
53387   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
53388 esac
53389
53390 if expr a : '\(a\)' >/dev/null 2>&1; then
53391   as_expr=expr
53392 else
53393   as_expr=false
53394 fi
53395
53396 rm -f conf$$ conf$$.exe conf$$.file
53397 echo >conf$$.file
53398 if ln -s conf$$.file conf$$ 2>/dev/null; then
53399   # We could just check for DJGPP; but this test a) works b) is more generic
53400   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
53401   if test -f conf$$.exe; then
53402     # Don't use ln at all; we don't have any links
53403     as_ln_s='cp -p'
53404   else
53405     as_ln_s='ln -s'
53406   fi
53407 elif ln conf$$.file conf$$ 2>/dev/null; then
53408   as_ln_s=ln
53409 else
53410   as_ln_s='cp -p'
53411 fi
53412 rm -f conf$$ conf$$.exe conf$$.file
53413
53414 if mkdir -p . 2>/dev/null; then
53415   as_mkdir_p=:
53416 else
53417   test -d ./-p && rmdir ./-p
53418   as_mkdir_p=false
53419 fi
53420
53421 as_executable_p="test -f"
53422
53423 # Sed expression to map a string onto a valid CPP name.
53424 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53425
53426 # Sed expression to map a string onto a valid variable name.
53427 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53428
53429
53430 # IFS
53431 # We need space, tab and new line, in precisely that order.
53432 as_nl='
53433 '
53434 IFS="   $as_nl"
53435
53436 # CDPATH.
53437 $as_unset CDPATH
53438
53439 exec 6>&1
53440
53441 # Open the log real soon, to keep \$[0] and so on meaningful, and to
53442 # report actual input values of CONFIG_FILES etc. instead of their
53443 # values after options handling.  Logging --version etc. is OK.
53444 exec 5>>config.log
53445 {
53446   echo
53447   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53448 ## Running $as_me. ##
53449 _ASBOX
53450 } >&5
53451 cat >&5 <<_CSEOF
53452
53453 This file was extended by $as_me, which was
53454 generated by GNU Autoconf 2.59.  Invocation command line was
53455
53456   CONFIG_FILES    = $CONFIG_FILES
53457   CONFIG_HEADERS  = $CONFIG_HEADERS
53458   CONFIG_LINKS    = $CONFIG_LINKS
53459   CONFIG_COMMANDS = $CONFIG_COMMANDS
53460   $ $0 $@
53461
53462 _CSEOF
53463 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
53464 echo >&5
53465 _ACEOF
53466
53467 # Files that config.status was made for.
53468 if test -n "$ac_config_files"; then
53469   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
53470 fi
53471
53472 if test -n "$ac_config_headers"; then
53473   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
53474 fi
53475
53476 if test -n "$ac_config_links"; then
53477   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
53478 fi
53479
53480 if test -n "$ac_config_commands"; then
53481   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
53482 fi
53483
53484 cat >>$CONFIG_STATUS <<\_ACEOF
53485
53486 ac_cs_usage="\
53487 \`$as_me' instantiates files from templates according to the
53488 current configuration.
53489
53490 Usage: $0 [OPTIONS] [FILE]...
53491
53492   -h, --help       print this help, then exit
53493   -V, --version    print version number, then exit
53494   -q, --quiet      do not print progress messages
53495   -d, --debug      don't remove temporary files
53496       --recheck    update $as_me by reconfiguring in the same conditions
53497   --file=FILE[:TEMPLATE]
53498                    instantiate the configuration file FILE
53499   --header=FILE[:TEMPLATE]
53500                    instantiate the configuration header FILE
53501
53502 Configuration files:
53503 $config_files
53504
53505 Configuration headers:
53506 $config_headers
53507
53508 Configuration commands:
53509 $config_commands
53510
53511 Report bugs to <bug-autoconf@gnu.org>."
53512 _ACEOF
53513
53514 cat >>$CONFIG_STATUS <<_ACEOF
53515 ac_cs_version="\\
53516 config.status
53517 configured by $0, generated by GNU Autoconf 2.59,
53518   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
53519
53520 Copyright (C) 2003 Free Software Foundation, Inc.
53521 This config.status script is free software; the Free Software Foundation
53522 gives unlimited permission to copy, distribute and modify it."
53523 srcdir=$srcdir
53524 INSTALL="$INSTALL"
53525 _ACEOF
53526
53527 cat >>$CONFIG_STATUS <<\_ACEOF
53528 # If no file are specified by the user, then we need to provide default
53529 # value.  By we need to know if files were specified by the user.
53530 ac_need_defaults=:
53531 while test $# != 0
53532 do
53533   case $1 in
53534   --*=*)
53535     ac_option=`expr "x$1" : 'x\([^=]*\)='`
53536     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53537     ac_shift=:
53538     ;;
53539   -*)
53540     ac_option=$1
53541     ac_optarg=$2
53542     ac_shift=shift
53543     ;;
53544   *) # This is not an option, so the user has probably given explicit
53545      # arguments.
53546      ac_option=$1
53547      ac_need_defaults=false;;
53548   esac
53549
53550   case $ac_option in
53551   # Handling of the options.
53552 _ACEOF
53553 cat >>$CONFIG_STATUS <<\_ACEOF
53554   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53555     ac_cs_recheck=: ;;
53556   --version | --vers* | -V )
53557     echo "$ac_cs_version"; exit 0 ;;
53558   --he | --h)
53559     # Conflict between --help and --header
53560     { { echo "$as_me:$LINENO: error: ambiguous option: $1
53561 Try \`$0 --help' for more information." >&5
53562 echo "$as_me: error: ambiguous option: $1
53563 Try \`$0 --help' for more information." >&2;}
53564    { (exit 1); exit 1; }; };;
53565   --help | --hel | -h )
53566     echo "$ac_cs_usage"; exit 0 ;;
53567   --debug | --d* | -d )
53568     debug=: ;;
53569   --file | --fil | --fi | --f )
53570     $ac_shift
53571     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53572     ac_need_defaults=false;;
53573   --header | --heade | --head | --hea )
53574     $ac_shift
53575     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53576     ac_need_defaults=false;;
53577   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53578   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53579     ac_cs_silent=: ;;
53580
53581   # This is an error.
53582   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53583 Try \`$0 --help' for more information." >&5
53584 echo "$as_me: error: unrecognized option: $1
53585 Try \`$0 --help' for more information." >&2;}
53586    { (exit 1); exit 1; }; } ;;
53587
53588   *) ac_config_targets="$ac_config_targets $1" ;;
53589
53590   esac
53591   shift
53592 done
53593
53594 ac_configure_extra_args=
53595
53596 if $ac_cs_silent; then
53597   exec 6>/dev/null
53598   ac_configure_extra_args="$ac_configure_extra_args --silent"
53599 fi
53600
53601 _ACEOF
53602 cat >>$CONFIG_STATUS <<_ACEOF
53603 if \$ac_cs_recheck; then
53604   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53605   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53606 fi
53607
53608 _ACEOF
53609
53610 cat >>$CONFIG_STATUS <<_ACEOF
53611 #
53612 # INIT-COMMANDS section.
53613 #
53614
53615 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
53616 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
53617
53618 _ACEOF
53619
53620
53621
53622 cat >>$CONFIG_STATUS <<\_ACEOF
53623 for ac_config_target in $ac_config_targets
53624 do
53625   case "$ac_config_target" in
53626   # Handling of arguments.
53627   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
53628   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
53629   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
53630   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
53631   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
53632   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
53633   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
53634   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
53635   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
53636   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
53637   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
53638   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53639   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53640   "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" ;;
53641   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53642   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53643   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53644   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
53645   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
53646   "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" ;;
53647   "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" ;;
53648   "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" ;;
53649   "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" ;;
53650   "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" ;;
53651   "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" ;;
53652   "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" ;;
53653   "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" ;;
53654   "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" ;;
53655   "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" ;;
53656   "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" ;;
53657   "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" ;;
53658   "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" ;;
53659   "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" ;;
53660   "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" ;;
53661   "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" ;;
53662   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
53663   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
53664   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
53665   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
53666   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
53667   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
53668   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
53669   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
53670   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
53671   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
53672   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53673 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53674    { (exit 1); exit 1; }; };;
53675   esac
53676 done
53677
53678 # If the user did not use the arguments to specify the items to instantiate,
53679 # then the envvar interface is used.  Set only those that are not.
53680 # We use the long form for the default assignment because of an extremely
53681 # bizarre bug on SunOS 4.1.3.
53682 if $ac_need_defaults; then
53683   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53684   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53685   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53686 fi
53687
53688 # Have a temporary directory for convenience.  Make it in the build tree
53689 # simply because there is no reason to put it here, and in addition,
53690 # creating and moving files from /tmp can sometimes cause problems.
53691 # Create a temporary directory, and hook for its removal unless debugging.
53692 $debug ||
53693 {
53694   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
53695   trap '{ (exit 1); exit 1; }' 1 2 13 15
53696 }
53697
53698 # Create a (secure) tmp directory for tmp files.
53699
53700 {
53701   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
53702   test -n "$tmp" && test -d "$tmp"
53703 }  ||
53704 {
53705   tmp=./confstat$$-$RANDOM
53706   (umask 077 && mkdir $tmp)
53707 } ||
53708 {
53709    echo "$me: cannot create a temporary directory in ." >&2
53710    { (exit 1); exit 1; }
53711 }
53712
53713 _ACEOF
53714
53715 cat >>$CONFIG_STATUS <<_ACEOF
53716
53717 #
53718 # CONFIG_FILES section.
53719 #
53720
53721 # No need to generate the scripts if there are no CONFIG_FILES.
53722 # This happens for instance when ./config.status config.h
53723 if test -n "\$CONFIG_FILES"; then
53724   # Protect against being on the right side of a sed subst in config.status.
53725   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
53726    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
53727 s,@SHELL@,$SHELL,;t t
53728 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
53729 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
53730 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
53731 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
53732 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
53733 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
53734 s,@exec_prefix@,$exec_prefix,;t t
53735 s,@prefix@,$prefix,;t t
53736 s,@program_transform_name@,$program_transform_name,;t t
53737 s,@bindir@,$bindir,;t t
53738 s,@sbindir@,$sbindir,;t t
53739 s,@libexecdir@,$libexecdir,;t t
53740 s,@datadir@,$datadir,;t t
53741 s,@sysconfdir@,$sysconfdir,;t t
53742 s,@sharedstatedir@,$sharedstatedir,;t t
53743 s,@localstatedir@,$localstatedir,;t t
53744 s,@libdir@,$libdir,;t t
53745 s,@includedir@,$includedir,;t t
53746 s,@oldincludedir@,$oldincludedir,;t t
53747 s,@infodir@,$infodir,;t t
53748 s,@mandir@,$mandir,;t t
53749 s,@build_alias@,$build_alias,;t t
53750 s,@host_alias@,$host_alias,;t t
53751 s,@target_alias@,$target_alias,;t t
53752 s,@DEFS@,$DEFS,;t t
53753 s,@ECHO_C@,$ECHO_C,;t t
53754 s,@ECHO_N@,$ECHO_N,;t t
53755 s,@ECHO_T@,$ECHO_T,;t t
53756 s,@LIBS@,$LIBS,;t t
53757 s,@build@,$build,;t t
53758 s,@build_cpu@,$build_cpu,;t t
53759 s,@build_vendor@,$build_vendor,;t t
53760 s,@build_os@,$build_os,;t t
53761 s,@host@,$host,;t t
53762 s,@host_cpu@,$host_cpu,;t t
53763 s,@host_vendor@,$host_vendor,;t t
53764 s,@host_os@,$host_os,;t t
53765 s,@target@,$target,;t t
53766 s,@target_cpu@,$target_cpu,;t t
53767 s,@target_vendor@,$target_vendor,;t t
53768 s,@target_os@,$target_os,;t t
53769 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
53770 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
53771 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
53772 s,@CYGPATH_W@,$CYGPATH_W,;t t
53773 s,@PACKAGE@,$PACKAGE,;t t
53774 s,@VERSION@,$VERSION,;t t
53775 s,@ACLOCAL@,$ACLOCAL,;t t
53776 s,@AUTOCONF@,$AUTOCONF,;t t
53777 s,@AUTOMAKE@,$AUTOMAKE,;t t
53778 s,@AUTOHEADER@,$AUTOHEADER,;t t
53779 s,@MAKEINFO@,$MAKEINFO,;t t
53780 s,@install_sh@,$install_sh,;t t
53781 s,@STRIP@,$STRIP,;t t
53782 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
53783 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
53784 s,@mkdir_p@,$mkdir_p,;t t
53785 s,@AWK@,$AWK,;t t
53786 s,@SET_MAKE@,$SET_MAKE,;t t
53787 s,@am__leading_dot@,$am__leading_dot,;t t
53788 s,@AMTAR@,$AMTAR,;t t
53789 s,@am__tar@,$am__tar,;t t
53790 s,@am__untar@,$am__untar,;t t
53791 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
53792 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
53793 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
53794 s,@top_builddir@,$top_builddir,;t t
53795 s,@ldap_subdir@,$ldap_subdir,;t t
53796 s,@CC@,$CC,;t t
53797 s,@AR@,$AR,;t t
53798 s,@CFLAGS@,$CFLAGS,;t t
53799 s,@LDFLAGS@,$LDFLAGS,;t t
53800 s,@CPPFLAGS@,$CPPFLAGS,;t t
53801 s,@ac_ct_CC@,$ac_ct_CC,;t t
53802 s,@EXEEXT@,$EXEEXT,;t t
53803 s,@OBJEXT@,$OBJEXT,;t t
53804 s,@DEPDIR@,$DEPDIR,;t t
53805 s,@am__include@,$am__include,;t t
53806 s,@am__quote@,$am__quote,;t t
53807 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
53808 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
53809 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
53810 s,@CCDEPMODE@,$CCDEPMODE,;t t
53811 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
53812 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
53813 s,@EGREP@,$EGREP,;t t
53814 s,@LN_S@,$LN_S,;t t
53815 s,@ECHO@,$ECHO,;t t
53816 s,@ac_ct_AR@,$ac_ct_AR,;t t
53817 s,@RANLIB@,$RANLIB,;t t
53818 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
53819 s,@DLLTOOL@,$DLLTOOL,;t t
53820 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
53821 s,@AS@,$AS,;t t
53822 s,@ac_ct_AS@,$ac_ct_AS,;t t
53823 s,@OBJDUMP@,$OBJDUMP,;t t
53824 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
53825 s,@CPP@,$CPP,;t t
53826 s,@CXX@,$CXX,;t t
53827 s,@CXXFLAGS@,$CXXFLAGS,;t t
53828 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
53829 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
53830 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
53831 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
53832 s,@CXXCPP@,$CXXCPP,;t t
53833 s,@F77@,$F77,;t t
53834 s,@FFLAGS@,$FFLAGS,;t t
53835 s,@ac_ct_F77@,$ac_ct_F77,;t t
53836 s,@LIBTOOL@,$LIBTOOL,;t t
53837 s,@PERLBIN@,$PERLBIN,;t t
53838 s,@OL_MKDEP@,$OL_MKDEP,;t t
53839 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
53840 s,@LTSTATIC@,$LTSTATIC,;t t
53841 s,@LIBOBJS@,$LIBOBJS,;t t
53842 s,@LIBSRCS@,$LIBSRCS,;t t
53843 s,@PLAT@,$PLAT,;t t
53844 s,@WITH_SASL@,$WITH_SASL,;t t
53845 s,@WITH_TLS@,$WITH_TLS,;t t
53846 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
53847 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
53848 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
53849 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
53850 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
53851 s,@BUILD_BDB@,$BUILD_BDB,;t t
53852 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
53853 s,@BUILD_HDB@,$BUILD_HDB,;t t
53854 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
53855 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
53856 s,@BUILD_META@,$BUILD_META,;t t
53857 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
53858 s,@BUILD_NULL@,$BUILD_NULL,;t t
53859 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
53860 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
53861 s,@BUILD_PERL@,$BUILD_PERL,;t t
53862 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
53863 s,@BUILD_SQL@,$BUILD_SQL,;t t
53864 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
53865 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
53866 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
53867 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
53868 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
53869 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
53870 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
53871 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
53872 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
53873 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
53874 s,@BUILD_RWM@,$BUILD_RWM,;t t
53875 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
53876 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
53877 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
53878 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
53879 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
53880 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
53881 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
53882 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
53883 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
53884 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
53885 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
53886 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
53887 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
53888 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
53889 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
53890 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
53891 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
53892 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
53893 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
53894 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
53895 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
53896 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
53897 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
53898 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
53899 s,@SASL_LIBS@,$SASL_LIBS,;t t
53900 s,@TLS_LIBS@,$TLS_LIBS,;t t
53901 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
53902 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
53903 s,@LIBSLAPI@,$LIBSLAPI,;t t
53904 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
53905 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
53906 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
53907 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
53908 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
53909 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
53910 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
53911 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
53912 CEOF
53913
53914 _ACEOF
53915
53916   cat >>$CONFIG_STATUS <<\_ACEOF
53917   # Split the substitutions into bite-sized pieces for seds with
53918   # small command number limits, like on Digital OSF/1 and HP-UX.
53919   ac_max_sed_lines=48
53920   ac_sed_frag=1 # Number of current file.
53921   ac_beg=1 # First line for current file.
53922   ac_end=$ac_max_sed_lines # Line after last line for current file.
53923   ac_more_lines=:
53924   ac_sed_cmds=
53925   while $ac_more_lines; do
53926     if test $ac_beg -gt 1; then
53927       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53928     else
53929       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53930     fi
53931     if test ! -s $tmp/subs.frag; then
53932       ac_more_lines=false
53933     else
53934       # The purpose of the label and of the branching condition is to
53935       # speed up the sed processing (if there are no `@' at all, there
53936       # is no need to browse any of the substitutions).
53937       # These are the two extra sed commands mentioned above.
53938       (echo ':t
53939   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
53940       if test -z "$ac_sed_cmds"; then
53941         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
53942       else
53943         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
53944       fi
53945       ac_sed_frag=`expr $ac_sed_frag + 1`
53946       ac_beg=$ac_end
53947       ac_end=`expr $ac_end + $ac_max_sed_lines`
53948     fi
53949   done
53950   if test -z "$ac_sed_cmds"; then
53951     ac_sed_cmds=cat
53952   fi
53953 fi # test -n "$CONFIG_FILES"
53954
53955 _ACEOF
53956 cat >>$CONFIG_STATUS <<\_ACEOF
53957 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
53958   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53959   case $ac_file in
53960   - | *:- | *:-:* ) # input from stdin
53961         cat >$tmp/stdin
53962         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53963         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53964   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53965         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53966   * )   ac_file_in=$ac_file.in ;;
53967   esac
53968
53969   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
53970   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53971 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53972          X"$ac_file" : 'X\(//\)[^/]' \| \
53973          X"$ac_file" : 'X\(//\)$' \| \
53974          X"$ac_file" : 'X\(/\)' \| \
53975          .     : '\(.\)' 2>/dev/null ||
53976 echo X"$ac_file" |
53977     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53978           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53979           /^X\(\/\/\)$/{ s//\1/; q; }
53980           /^X\(\/\).*/{ s//\1/; q; }
53981           s/.*/./; q'`
53982   { if $as_mkdir_p; then
53983     mkdir -p "$ac_dir"
53984   else
53985     as_dir="$ac_dir"
53986     as_dirs=
53987     while test ! -d "$as_dir"; do
53988       as_dirs="$as_dir $as_dirs"
53989       as_dir=`(dirname "$as_dir") 2>/dev/null ||
53990 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53991          X"$as_dir" : 'X\(//\)[^/]' \| \
53992          X"$as_dir" : 'X\(//\)$' \| \
53993          X"$as_dir" : 'X\(/\)' \| \
53994          .     : '\(.\)' 2>/dev/null ||
53995 echo X"$as_dir" |
53996     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53997           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53998           /^X\(\/\/\)$/{ s//\1/; q; }
53999           /^X\(\/\).*/{ s//\1/; q; }
54000           s/.*/./; q'`
54001     done
54002     test ! -n "$as_dirs" || mkdir $as_dirs
54003   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54004 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54005    { (exit 1); exit 1; }; }; }
54006
54007   ac_builddir=.
54008
54009 if test "$ac_dir" != .; then
54010   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54011   # A "../" for each directory in $ac_dir_suffix.
54012   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54013 else
54014   ac_dir_suffix= ac_top_builddir=
54015 fi
54016
54017 case $srcdir in
54018   .)  # No --srcdir option.  We are building in place.
54019     ac_srcdir=.
54020     if test -z "$ac_top_builddir"; then
54021        ac_top_srcdir=.
54022     else
54023        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54024     fi ;;
54025   [\\/]* | ?:[\\/]* )  # Absolute path.
54026     ac_srcdir=$srcdir$ac_dir_suffix;
54027     ac_top_srcdir=$srcdir ;;
54028   *) # Relative path.
54029     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54030     ac_top_srcdir=$ac_top_builddir$srcdir ;;
54031 esac
54032
54033 # Do not use `cd foo && pwd` to compute absolute paths, because
54034 # the directories may not exist.
54035 case `pwd` in
54036 .) ac_abs_builddir="$ac_dir";;
54037 *)
54038   case "$ac_dir" in
54039   .) ac_abs_builddir=`pwd`;;
54040   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54041   *) ac_abs_builddir=`pwd`/"$ac_dir";;
54042   esac;;
54043 esac
54044 case $ac_abs_builddir in
54045 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54046 *)
54047   case ${ac_top_builddir}. in
54048   .) ac_abs_top_builddir=$ac_abs_builddir;;
54049   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54050   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54051   esac;;
54052 esac
54053 case $ac_abs_builddir in
54054 .) ac_abs_srcdir=$ac_srcdir;;
54055 *)
54056   case $ac_srcdir in
54057   .) ac_abs_srcdir=$ac_abs_builddir;;
54058   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54059   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54060   esac;;
54061 esac
54062 case $ac_abs_builddir in
54063 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54064 *)
54065   case $ac_top_srcdir in
54066   .) ac_abs_top_srcdir=$ac_abs_builddir;;
54067   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54068   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54069   esac;;
54070 esac
54071
54072
54073   case $INSTALL in
54074   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54075   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
54076   esac
54077
54078   if test x"$ac_file" != x-; then
54079     { echo "$as_me:$LINENO: creating $ac_file" >&5
54080 echo "$as_me: creating $ac_file" >&6;}
54081     rm -f "$ac_file"
54082   fi
54083   # Let's still pretend it is `configure' which instantiates (i.e., don't
54084   # use $as_me), people would be surprised to read:
54085   #    /* config.h.  Generated by config.status.  */
54086   if test x"$ac_file" = x-; then
54087     configure_input=
54088   else
54089     configure_input="$ac_file.  "
54090   fi
54091   configure_input=$configure_input"Generated from `echo $ac_file_in |
54092                                      sed 's,.*/,,'` by configure."
54093
54094   # First look for the input files in the build tree, otherwise in the
54095   # src tree.
54096   ac_file_inputs=`IFS=:
54097     for f in $ac_file_in; do
54098       case $f in
54099       -) echo $tmp/stdin ;;
54100       [\\/$]*)
54101          # Absolute (can't be DOS-style, as IFS=:)
54102          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54103 echo "$as_me: error: cannot find input file: $f" >&2;}
54104    { (exit 1); exit 1; }; }
54105          echo "$f";;
54106       *) # Relative
54107          if test -f "$f"; then
54108            # Build tree
54109            echo "$f"
54110          elif test -f "$srcdir/$f"; then
54111            # Source tree
54112            echo "$srcdir/$f"
54113          else
54114            # /dev/null tree
54115            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54116 echo "$as_me: error: cannot find input file: $f" >&2;}
54117    { (exit 1); exit 1; }; }
54118          fi;;
54119       esac
54120     done` || { (exit 1); exit 1; }
54121 _ACEOF
54122 cat >>$CONFIG_STATUS <<_ACEOF
54123   sed "$ac_vpsub
54124 $extrasub
54125 _ACEOF
54126 cat >>$CONFIG_STATUS <<\_ACEOF
54127 :t
54128 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54129 s,@configure_input@,$configure_input,;t t
54130 s,@srcdir@,$ac_srcdir,;t t
54131 s,@abs_srcdir@,$ac_abs_srcdir,;t t
54132 s,@top_srcdir@,$ac_top_srcdir,;t t
54133 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
54134 s,@builddir@,$ac_builddir,;t t
54135 s,@abs_builddir@,$ac_abs_builddir,;t t
54136 s,@top_builddir@,$ac_top_builddir,;t t
54137 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
54138 s,@INSTALL@,$ac_INSTALL,;t t
54139 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
54140   rm -f $tmp/stdin
54141   if test x"$ac_file" != x-; then
54142     mv $tmp/out $ac_file
54143   else
54144     cat $tmp/out
54145     rm -f $tmp/out
54146   fi
54147
54148 done
54149 _ACEOF
54150 cat >>$CONFIG_STATUS <<\_ACEOF
54151
54152 #
54153 # CONFIG_HEADER section.
54154 #
54155
54156 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
54157 # NAME is the cpp macro being defined and VALUE is the value it is being given.
54158 #
54159 # ac_d sets the value in "#define NAME VALUE" lines.
54160 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
54161 ac_dB='[         ].*$,\1#\2'
54162 ac_dC=' '
54163 ac_dD=',;t'
54164 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
54165 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
54166 ac_uB='$,\1#\2define\3'
54167 ac_uC=' '
54168 ac_uD=',;t'
54169
54170 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
54171   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
54172   case $ac_file in
54173   - | *:- | *:-:* ) # input from stdin
54174         cat >$tmp/stdin
54175         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54176         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54177   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54178         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54179   * )   ac_file_in=$ac_file.in ;;
54180   esac
54181
54182   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
54183 echo "$as_me: creating $ac_file" >&6;}
54184
54185   # First look for the input files in the build tree, otherwise in the
54186   # src tree.
54187   ac_file_inputs=`IFS=:
54188     for f in $ac_file_in; do
54189       case $f in
54190       -) echo $tmp/stdin ;;
54191       [\\/$]*)
54192          # Absolute (can't be DOS-style, as IFS=:)
54193          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54194 echo "$as_me: error: cannot find input file: $f" >&2;}
54195    { (exit 1); exit 1; }; }
54196          # Do quote $f, to prevent DOS paths from being IFS'd.
54197          echo "$f";;
54198       *) # Relative
54199          if test -f "$f"; then
54200            # Build tree
54201            echo "$f"
54202          elif test -f "$srcdir/$f"; then
54203            # Source tree
54204            echo "$srcdir/$f"
54205          else
54206            # /dev/null tree
54207            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54208 echo "$as_me: error: cannot find input file: $f" >&2;}
54209    { (exit 1); exit 1; }; }
54210          fi;;
54211       esac
54212     done` || { (exit 1); exit 1; }
54213   # Remove the trailing spaces.
54214   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
54215
54216 _ACEOF
54217
54218 # Transform confdefs.h into two sed scripts, `conftest.defines' and
54219 # `conftest.undefs', that substitutes the proper values into
54220 # config.h.in to produce config.h.  The first handles `#define'
54221 # templates, and the second `#undef' templates.
54222 # And first: Protect against being on the right side of a sed subst in
54223 # config.status.  Protect against being in an unquoted here document
54224 # in config.status.
54225 rm -f conftest.defines conftest.undefs
54226 # Using a here document instead of a string reduces the quoting nightmare.
54227 # Putting comments in sed scripts is not portable.
54228 #
54229 # `end' is used to avoid that the second main sed command (meant for
54230 # 0-ary CPP macros) applies to n-ary macro definitions.
54231 # See the Autoconf documentation for `clear'.
54232 cat >confdef2sed.sed <<\_ACEOF
54233 s/[\\&,]/\\&/g
54234 s,[\\$`],\\&,g
54235 t clear
54236 : clear
54237 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
54238 t end
54239 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
54240 : end
54241 _ACEOF
54242 # If some macros were called several times there might be several times
54243 # the same #defines, which is useless.  Nevertheless, we may not want to
54244 # sort them, since we want the *last* AC-DEFINE to be honored.
54245 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
54246 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
54247 rm -f confdef2sed.sed
54248
54249 # This sed command replaces #undef with comments.  This is necessary, for
54250 # example, in the case of _POSIX_SOURCE, which is predefined and required
54251 # on some systems where configure will not decide to define it.
54252 cat >>conftest.undefs <<\_ACEOF
54253 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
54254 _ACEOF
54255
54256 # Break up conftest.defines because some shells have a limit on the size
54257 # of here documents, and old seds have small limits too (100 cmds).
54258 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
54259 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
54260 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
54261 echo '  :' >>$CONFIG_STATUS
54262 rm -f conftest.tail
54263 while grep . conftest.defines >/dev/null
54264 do
54265   # Write a limited-size here document to $tmp/defines.sed.
54266   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
54267   # Speed up: don't consider the non `#define' lines.
54268   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
54269   # Work around the forget-to-reset-the-flag bug.
54270   echo 't clr' >>$CONFIG_STATUS
54271   echo ': clr' >>$CONFIG_STATUS
54272   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
54273   echo 'CEOF
54274   sed -f $tmp/defines.sed $tmp/in >$tmp/out
54275   rm -f $tmp/in
54276   mv $tmp/out $tmp/in
54277 ' >>$CONFIG_STATUS
54278   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
54279   rm -f conftest.defines
54280   mv conftest.tail conftest.defines
54281 done
54282 rm -f conftest.defines
54283 echo '  fi # grep' >>$CONFIG_STATUS
54284 echo >>$CONFIG_STATUS
54285
54286 # Break up conftest.undefs because some shells have a limit on the size
54287 # of here documents, and old seds have small limits too (100 cmds).
54288 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
54289 rm -f conftest.tail
54290 while grep . conftest.undefs >/dev/null
54291 do
54292   # Write a limited-size here document to $tmp/undefs.sed.
54293   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
54294   # Speed up: don't consider the non `#undef'
54295   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
54296   # Work around the forget-to-reset-the-flag bug.
54297   echo 't clr' >>$CONFIG_STATUS
54298   echo ': clr' >>$CONFIG_STATUS
54299   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
54300   echo 'CEOF
54301   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
54302   rm -f $tmp/in
54303   mv $tmp/out $tmp/in
54304 ' >>$CONFIG_STATUS
54305   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
54306   rm -f conftest.undefs
54307   mv conftest.tail conftest.undefs
54308 done
54309 rm -f conftest.undefs
54310
54311 cat >>$CONFIG_STATUS <<\_ACEOF
54312   # Let's still pretend it is `configure' which instantiates (i.e., don't
54313   # use $as_me), people would be surprised to read:
54314   #    /* config.h.  Generated by config.status.  */
54315   if test x"$ac_file" = x-; then
54316     echo "/* Generated by configure.  */" >$tmp/config.h
54317   else
54318     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
54319   fi
54320   cat $tmp/in >>$tmp/config.h
54321   rm -f $tmp/in
54322   if test x"$ac_file" != x-; then
54323     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
54324       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54325 echo "$as_me: $ac_file is unchanged" >&6;}
54326     else
54327       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54328 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54329          X"$ac_file" : 'X\(//\)[^/]' \| \
54330          X"$ac_file" : 'X\(//\)$' \| \
54331          X"$ac_file" : 'X\(/\)' \| \
54332          .     : '\(.\)' 2>/dev/null ||
54333 echo X"$ac_file" |
54334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54335           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54336           /^X\(\/\/\)$/{ s//\1/; q; }
54337           /^X\(\/\).*/{ s//\1/; q; }
54338           s/.*/./; q'`
54339       { if $as_mkdir_p; then
54340     mkdir -p "$ac_dir"
54341   else
54342     as_dir="$ac_dir"
54343     as_dirs=
54344     while test ! -d "$as_dir"; do
54345       as_dirs="$as_dir $as_dirs"
54346       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54348          X"$as_dir" : 'X\(//\)[^/]' \| \
54349          X"$as_dir" : 'X\(//\)$' \| \
54350          X"$as_dir" : 'X\(/\)' \| \
54351          .     : '\(.\)' 2>/dev/null ||
54352 echo X"$as_dir" |
54353     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54354           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54355           /^X\(\/\/\)$/{ s//\1/; q; }
54356           /^X\(\/\).*/{ s//\1/; q; }
54357           s/.*/./; q'`
54358     done
54359     test ! -n "$as_dirs" || mkdir $as_dirs
54360   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54361 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54362    { (exit 1); exit 1; }; }; }
54363
54364       rm -f $ac_file
54365       mv $tmp/config.h $ac_file
54366     fi
54367   else
54368     cat $tmp/config.h
54369     rm -f $tmp/config.h
54370   fi
54371 # Compute $ac_file's index in $config_headers.
54372 _am_stamp_count=1
54373 for _am_header in $config_headers :; do
54374   case $_am_header in
54375     $ac_file | $ac_file:* )
54376       break ;;
54377     * )
54378       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
54379   esac
54380 done
54381 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
54382 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54383          X$ac_file : 'X\(//\)[^/]' \| \
54384          X$ac_file : 'X\(//\)$' \| \
54385          X$ac_file : 'X\(/\)' \| \
54386          .     : '\(.\)' 2>/dev/null ||
54387 echo X$ac_file |
54388     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54389           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54390           /^X\(\/\/\)$/{ s//\1/; q; }
54391           /^X\(\/\).*/{ s//\1/; q; }
54392           s/.*/./; q'`/stamp-h$_am_stamp_count
54393 done
54394 _ACEOF
54395 cat >>$CONFIG_STATUS <<\_ACEOF
54396
54397 #
54398 # CONFIG_COMMANDS section.
54399 #
54400 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
54401   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
54402   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
54403   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
54404 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54405          X"$ac_dest" : 'X\(//\)[^/]' \| \
54406          X"$ac_dest" : 'X\(//\)$' \| \
54407          X"$ac_dest" : 'X\(/\)' \| \
54408          .     : '\(.\)' 2>/dev/null ||
54409 echo X"$ac_dest" |
54410     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54411           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54412           /^X\(\/\/\)$/{ s//\1/; q; }
54413           /^X\(\/\).*/{ s//\1/; q; }
54414           s/.*/./; q'`
54415   { if $as_mkdir_p; then
54416     mkdir -p "$ac_dir"
54417   else
54418     as_dir="$ac_dir"
54419     as_dirs=
54420     while test ! -d "$as_dir"; do
54421       as_dirs="$as_dir $as_dirs"
54422       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54423 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54424          X"$as_dir" : 'X\(//\)[^/]' \| \
54425          X"$as_dir" : 'X\(//\)$' \| \
54426          X"$as_dir" : 'X\(/\)' \| \
54427          .     : '\(.\)' 2>/dev/null ||
54428 echo X"$as_dir" |
54429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54430           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54431           /^X\(\/\/\)$/{ s//\1/; q; }
54432           /^X\(\/\).*/{ s//\1/; q; }
54433           s/.*/./; q'`
54434     done
54435     test ! -n "$as_dirs" || mkdir $as_dirs
54436   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54437 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54438    { (exit 1); exit 1; }; }; }
54439
54440   ac_builddir=.
54441
54442 if test "$ac_dir" != .; then
54443   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54444   # A "../" for each directory in $ac_dir_suffix.
54445   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54446 else
54447   ac_dir_suffix= ac_top_builddir=
54448 fi
54449
54450 case $srcdir in
54451   .)  # No --srcdir option.  We are building in place.
54452     ac_srcdir=.
54453     if test -z "$ac_top_builddir"; then
54454        ac_top_srcdir=.
54455     else
54456        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54457     fi ;;
54458   [\\/]* | ?:[\\/]* )  # Absolute path.
54459     ac_srcdir=$srcdir$ac_dir_suffix;
54460     ac_top_srcdir=$srcdir ;;
54461   *) # Relative path.
54462     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54463     ac_top_srcdir=$ac_top_builddir$srcdir ;;
54464 esac
54465
54466 # Do not use `cd foo && pwd` to compute absolute paths, because
54467 # the directories may not exist.
54468 case `pwd` in
54469 .) ac_abs_builddir="$ac_dir";;
54470 *)
54471   case "$ac_dir" in
54472   .) ac_abs_builddir=`pwd`;;
54473   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54474   *) ac_abs_builddir=`pwd`/"$ac_dir";;
54475   esac;;
54476 esac
54477 case $ac_abs_builddir in
54478 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54479 *)
54480   case ${ac_top_builddir}. in
54481   .) ac_abs_top_builddir=$ac_abs_builddir;;
54482   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54483   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54484   esac;;
54485 esac
54486 case $ac_abs_builddir in
54487 .) ac_abs_srcdir=$ac_srcdir;;
54488 *)
54489   case $ac_srcdir in
54490   .) ac_abs_srcdir=$ac_abs_builddir;;
54491   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54492   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54493   esac;;
54494 esac
54495 case $ac_abs_builddir in
54496 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54497 *)
54498   case $ac_top_srcdir in
54499   .) ac_abs_top_srcdir=$ac_abs_builddir;;
54500   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54501   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54502   esac;;
54503 esac
54504
54505
54506   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
54507 echo "$as_me: executing $ac_dest commands" >&6;}
54508   case $ac_dest in
54509     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
54510   # Strip MF so we end up with the name of the file.
54511   mf=`echo "$mf" | sed -e 's/:.*$//'`
54512   # Check whether this is an Automake generated Makefile or not.
54513   # We used to match only the files named `Makefile.in', but
54514   # some people rename them; so instead we look at the file content.
54515   # Grep'ing the first line is not enough: some people post-process
54516   # each Makefile.in and add a new line on top of each file to say so.
54517   # So let's grep whole file.
54518   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
54519     dirpart=`(dirname "$mf") 2>/dev/null ||
54520 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54521          X"$mf" : 'X\(//\)[^/]' \| \
54522          X"$mf" : 'X\(//\)$' \| \
54523          X"$mf" : 'X\(/\)' \| \
54524          .     : '\(.\)' 2>/dev/null ||
54525 echo X"$mf" |
54526     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54527           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54528           /^X\(\/\/\)$/{ s//\1/; q; }
54529           /^X\(\/\).*/{ s//\1/; q; }
54530           s/.*/./; q'`
54531   else
54532     continue
54533   fi
54534   # Extract the definition of DEPDIR, am__include, and am__quote
54535   # from the Makefile without running `make'.
54536   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
54537   test -z "$DEPDIR" && continue
54538   am__include=`sed -n 's/^am__include = //p' < "$mf"`
54539   test -z "am__include" && continue
54540   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
54541   # When using ansi2knr, U may be empty or an underscore; expand it
54542   U=`sed -n 's/^U = //p' < "$mf"`
54543   # Find all dependency output files, they are included files with
54544   # $(DEPDIR) in their names.  We invoke sed twice because it is the
54545   # simplest approach to changing $(DEPDIR) to its actual value in the
54546   # expansion.
54547   for file in `sed -n "
54548     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
54549        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
54550     # Make sure the directory exists.
54551     test -f "$dirpart/$file" && continue
54552     fdir=`(dirname "$file") 2>/dev/null ||
54553 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54554          X"$file" : 'X\(//\)[^/]' \| \
54555          X"$file" : 'X\(//\)$' \| \
54556          X"$file" : 'X\(/\)' \| \
54557          .     : '\(.\)' 2>/dev/null ||
54558 echo X"$file" |
54559     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54560           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54561           /^X\(\/\/\)$/{ s//\1/; q; }
54562           /^X\(\/\).*/{ s//\1/; q; }
54563           s/.*/./; q'`
54564     { if $as_mkdir_p; then
54565     mkdir -p $dirpart/$fdir
54566   else
54567     as_dir=$dirpart/$fdir
54568     as_dirs=
54569     while test ! -d "$as_dir"; do
54570       as_dirs="$as_dir $as_dirs"
54571       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54572 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54573          X"$as_dir" : 'X\(//\)[^/]' \| \
54574          X"$as_dir" : 'X\(//\)$' \| \
54575          X"$as_dir" : 'X\(/\)' \| \
54576          .     : '\(.\)' 2>/dev/null ||
54577 echo X"$as_dir" |
54578     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54579           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54580           /^X\(\/\/\)$/{ s//\1/; q; }
54581           /^X\(\/\).*/{ s//\1/; q; }
54582           s/.*/./; q'`
54583     done
54584     test ! -n "$as_dirs" || mkdir $as_dirs
54585   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
54586 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
54587    { (exit 1); exit 1; }; }; }
54588
54589     # echo "creating $dirpart/$file"
54590     echo '# dummy' > "$dirpart/$file"
54591   done
54592 done
54593  ;;
54594     default )
54595 chmod +x tests/run
54596 date > stamp-h
54597 BACKENDSC="servers/slapd/backends.c"
54598 echo "Making $BACKENDSC"
54599 rm -f $BACKENDSC
54600 cat > $BACKENDSC << ENDX
54601 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
54602  *
54603  * Copyright 1998-2005 The OpenLDAP Foundation.
54604  * All rights reserved.
54605  *
54606  * Redistribution and use in source and binary forms, with or without
54607  * modification, are permitted only as authorized by the OpenLDAP
54608  * Public License.
54609  *
54610  * A copy of this license is available in the file LICENSE in the
54611  * top-level directory of the distribution or, alternatively, at
54612  * <http://www.OpenLDAP.org/license.html>.
54613  */
54614 /* This file is automatically generated by configure; please do not edit. */
54615
54616 #include "portable.h"
54617 #include "slap.h"
54618
54619 ENDX
54620 if test "${STATIC_BACKENDS}"; then
54621         for b in config ${STATIC_BACKENDS}; do
54622                 bb=`echo "${b}" | sed -e 's/back-//'`
54623                 cat >> $BACKENDSC << ENDX
54624 extern BI_init ${bb}_back_initialize;
54625 ENDX
54626         done
54627
54628         cat >> $BACKENDSC << ENDX
54629
54630 BackendInfo slap_binfo[] = {
54631 ENDX
54632
54633         for b in config ${STATIC_BACKENDS}; do
54634                 bb=`echo "${b}" | sed -e 's/back-//'`
54635                 echo "    Add ${bb} ..."
54636                 cat >> $BACKENDSC << ENDX
54637         { "${bb}", ${bb}_back_initialize },
54638 ENDX
54639         done
54640
54641         cat >> $BACKENDSC << ENDX
54642         { NULL, NULL },
54643 };
54644
54645 /* end of generated file */
54646 ENDX
54647 fi
54648
54649 echo Please run \"make depend\" to build dependencies
54650  ;;
54651   esac
54652 done
54653 _ACEOF
54654
54655 cat >>$CONFIG_STATUS <<\_ACEOF
54656
54657 { (exit 0); exit 0; }
54658 _ACEOF
54659 chmod +x $CONFIG_STATUS
54660 ac_clean_files=$ac_clean_files_save
54661
54662
54663 # configure is writing to config.log, and then calls config.status.
54664 # config.status does its own redirection, appending to config.log.
54665 # Unfortunately, on DOS this fails, as config.log is still kept open
54666 # by configure, so config.status won't be able to write to it; its
54667 # output is simply discarded.  So we exec the FD to /dev/null,
54668 # effectively closing config.log, so it can be properly (re)opened and
54669 # appended to by config.status.  When coming back to configure, we
54670 # need to make the FD available again.
54671 if test "$no_create" != yes; then
54672   ac_cs_success=:
54673   ac_config_status_args=
54674   test "$silent" = yes &&
54675     ac_config_status_args="$ac_config_status_args --quiet"
54676   exec 5>/dev/null
54677   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54678   exec 5>>config.log
54679   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54680   # would make configure fail if this is the last instruction.
54681   $ac_cs_success || { (exit 1); exit 1; }
54682 fi
54683