]> git.sur5r.net Git - openldap/blob - configure
Enhance OL_ARG_ENABLE for overridable defaults, trim some redundancy in
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.586.2.19 2005/08/13 03:48:06 kurt Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293        echo_test_string="`eval $cmd`" &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 tagnames=${tagnames+${tagnames},}CXX
399
400 tagnames=${tagnames+${tagnames},}F77
401
402 # Name of the host.
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407 exec 6>&1
408
409 #
410 # Initializations.
411 #
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
414 cross_compiling=no
415 subdirs=
416 MFLAGS=
417 MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete.  It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
424
425 # Identity of this package.
426 PACKAGE_NAME=
427 PACKAGE_TARNAME=
428 PACKAGE_VERSION=
429 PACKAGE_STRING=
430 PACKAGE_BUGREPORT=
431
432 ac_unique_file="OpenLDAP"
433 ac_unique_file="build/version.sh"
434 ac_default_prefix=/usr/local
435 # Factoring default headers for most tests.
436 ac_includes_default="\
437 #include <stdio.h>
438 #if HAVE_SYS_TYPES_H
439 # include <sys/types.h>
440 #endif
441 #if HAVE_SYS_STAT_H
442 # include <sys/stat.h>
443 #endif
444 #if STDC_HEADERS
445 # include <stdlib.h>
446 # include <stddef.h>
447 #else
448 # if HAVE_STDLIB_H
449 #  include <stdlib.h>
450 # endif
451 #endif
452 #if HAVE_STRING_H
453 # if !STDC_HEADERS && HAVE_MEMORY_H
454 #  include <memory.h>
455 # endif
456 # include <string.h>
457 #endif
458 #if HAVE_STRINGS_H
459 # include <strings.h>
460 #endif
461 #if HAVE_INTTYPES_H
462 # include <inttypes.h>
463 #else
464 # if HAVE_STDINT_H
465 #  include <stdint.h>
466 # endif
467 #endif
468 #if HAVE_UNISTD_H
469 # include <unistd.h>
470 #endif"
471
472 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_GLUE BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
473 ac_subst_files=''
474
475 # Initialize some variables set by options.
476 ac_init_help=
477 ac_init_version=false
478 # The variables have the same names as the options, with
479 # dashes changed to underlines.
480 cache_file=/dev/null
481 exec_prefix=NONE
482 no_create=
483 no_recursion=
484 prefix=NONE
485 program_prefix=NONE
486 program_suffix=NONE
487 program_transform_name=s,x,x,
488 silent=
489 site=
490 srcdir=
491 verbose=
492 x_includes=NONE
493 x_libraries=NONE
494
495 # Installation directory options.
496 # These are left unexpanded so users can "make install exec_prefix=/foo"
497 # and all the variables that are supposed to be based on exec_prefix
498 # by default will actually change.
499 # Use braces instead of parens because sh, perl, etc. also accept them.
500 bindir='${exec_prefix}/bin'
501 sbindir='${exec_prefix}/sbin'
502 libexecdir='${exec_prefix}/libexec'
503 datadir='${prefix}/share'
504 sysconfdir='${prefix}/etc'
505 sharedstatedir='${prefix}/com'
506 localstatedir='${prefix}/var'
507 libdir='${exec_prefix}/lib'
508 includedir='${prefix}/include'
509 oldincludedir='/usr/include'
510 infodir='${prefix}/info'
511 mandir='${prefix}/man'
512
513 ac_prev=
514 for ac_option
515 do
516   # If the previous option needs an argument, assign it.
517   if test -n "$ac_prev"; then
518     eval "$ac_prev=\$ac_option"
519     ac_prev=
520     continue
521   fi
522
523   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
524
525   # Accept the important Cygnus configure options, so we can diagnose typos.
526
527   case $ac_option in
528
529   -bindir | --bindir | --bindi | --bind | --bin | --bi)
530     ac_prev=bindir ;;
531   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
532     bindir=$ac_optarg ;;
533
534   -build | --build | --buil | --bui | --bu)
535     ac_prev=build_alias ;;
536   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
537     build_alias=$ac_optarg ;;
538
539   -cache-file | --cache-file | --cache-fil | --cache-fi \
540   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
541     ac_prev=cache_file ;;
542   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
543   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
544     cache_file=$ac_optarg ;;
545
546   --config-cache | -C)
547     cache_file=config.cache ;;
548
549   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
550     ac_prev=datadir ;;
551   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
552   | --da=*)
553     datadir=$ac_optarg ;;
554
555   -disable-* | --disable-*)
556     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
557     # Reject names that are not valid shell variable names.
558     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560    { (exit 1); exit 1; }; }
561     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562     eval "enable_$ac_feature=no" ;;
563
564   -enable-* | --enable-*)
565     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
566     # Reject names that are not valid shell variable names.
567     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
568       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
569    { (exit 1); exit 1; }; }
570     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
571     case $ac_option in
572       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
573       *) ac_optarg=yes ;;
574     esac
575     eval "enable_$ac_feature='$ac_optarg'" ;;
576
577   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
578   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
579   | --exec | --exe | --ex)
580     ac_prev=exec_prefix ;;
581   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
582   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
583   | --exec=* | --exe=* | --ex=*)
584     exec_prefix=$ac_optarg ;;
585
586   -gas | --gas | --ga | --g)
587     # Obsolete; use --with-gas.
588     with_gas=yes ;;
589
590   -help | --help | --hel | --he | -h)
591     ac_init_help=long ;;
592   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
593     ac_init_help=recursive ;;
594   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
595     ac_init_help=short ;;
596
597   -host | --host | --hos | --ho)
598     ac_prev=host_alias ;;
599   -host=* | --host=* | --hos=* | --ho=*)
600     host_alias=$ac_optarg ;;
601
602   -includedir | --includedir | --includedi | --included | --include \
603   | --includ | --inclu | --incl | --inc)
604     ac_prev=includedir ;;
605   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
606   | --includ=* | --inclu=* | --incl=* | --inc=*)
607     includedir=$ac_optarg ;;
608
609   -infodir | --infodir | --infodi | --infod | --info | --inf)
610     ac_prev=infodir ;;
611   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
612     infodir=$ac_optarg ;;
613
614   -libdir | --libdir | --libdi | --libd)
615     ac_prev=libdir ;;
616   -libdir=* | --libdir=* | --libdi=* | --libd=*)
617     libdir=$ac_optarg ;;
618
619   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
620   | --libexe | --libex | --libe)
621     ac_prev=libexecdir ;;
622   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
623   | --libexe=* | --libex=* | --libe=*)
624     libexecdir=$ac_optarg ;;
625
626   -localstatedir | --localstatedir | --localstatedi | --localstated \
627   | --localstate | --localstat | --localsta | --localst \
628   | --locals | --local | --loca | --loc | --lo)
629     ac_prev=localstatedir ;;
630   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
632   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
633     localstatedir=$ac_optarg ;;
634
635   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
636     ac_prev=mandir ;;
637   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
638     mandir=$ac_optarg ;;
639
640   -nfp | --nfp | --nf)
641     # Obsolete; use --without-fp.
642     with_fp=no ;;
643
644   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
645   | --no-cr | --no-c | -n)
646     no_create=yes ;;
647
648   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
649   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650     no_recursion=yes ;;
651
652   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
653   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
654   | --oldin | --oldi | --old | --ol | --o)
655     ac_prev=oldincludedir ;;
656   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
657   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
658   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
659     oldincludedir=$ac_optarg ;;
660
661   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
662     ac_prev=prefix ;;
663   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
664     prefix=$ac_optarg ;;
665
666   -program-prefix | --program-prefix | --program-prefi | --program-pref \
667   | --program-pre | --program-pr | --program-p)
668     ac_prev=program_prefix ;;
669   -program-prefix=* | --program-prefix=* | --program-prefi=* \
670   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
671     program_prefix=$ac_optarg ;;
672
673   -program-suffix | --program-suffix | --program-suffi | --program-suff \
674   | --program-suf | --program-su | --program-s)
675     ac_prev=program_suffix ;;
676   -program-suffix=* | --program-suffix=* | --program-suffi=* \
677   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
678     program_suffix=$ac_optarg ;;
679
680   -program-transform-name | --program-transform-name \
681   | --program-transform-nam | --program-transform-na \
682   | --program-transform-n | --program-transform- \
683   | --program-transform | --program-transfor \
684   | --program-transfo | --program-transf \
685   | --program-trans | --program-tran \
686   | --progr-tra | --program-tr | --program-t)
687     ac_prev=program_transform_name ;;
688   -program-transform-name=* | --program-transform-name=* \
689   | --program-transform-nam=* | --program-transform-na=* \
690   | --program-transform-n=* | --program-transform-=* \
691   | --program-transform=* | --program-transfor=* \
692   | --program-transfo=* | --program-transf=* \
693   | --program-trans=* | --program-tran=* \
694   | --progr-tra=* | --program-tr=* | --program-t=*)
695     program_transform_name=$ac_optarg ;;
696
697   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
698   | -silent | --silent | --silen | --sile | --sil)
699     silent=yes ;;
700
701   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
702     ac_prev=sbindir ;;
703   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
704   | --sbi=* | --sb=*)
705     sbindir=$ac_optarg ;;
706
707   -sharedstatedir | --sharedstatedir | --sharedstatedi \
708   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
709   | --sharedst | --shareds | --shared | --share | --shar \
710   | --sha | --sh)
711     ac_prev=sharedstatedir ;;
712   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
713   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
714   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
715   | --sha=* | --sh=*)
716     sharedstatedir=$ac_optarg ;;
717
718   -site | --site | --sit)
719     ac_prev=site ;;
720   -site=* | --site=* | --sit=*)
721     site=$ac_optarg ;;
722
723   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
724     ac_prev=srcdir ;;
725   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
726     srcdir=$ac_optarg ;;
727
728   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
729   | --syscon | --sysco | --sysc | --sys | --sy)
730     ac_prev=sysconfdir ;;
731   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
732   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
733     sysconfdir=$ac_optarg ;;
734
735   -target | --target | --targe | --targ | --tar | --ta | --t)
736     ac_prev=target_alias ;;
737   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
738     target_alias=$ac_optarg ;;
739
740   -v | -verbose | --verbose | --verbos | --verbo | --verb)
741     verbose=yes ;;
742
743   -version | --version | --versio | --versi | --vers | -V)
744     ac_init_version=: ;;
745
746   -with-* | --with-*)
747     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
748     # Reject names that are not valid shell variable names.
749     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
750       { echo "$as_me: error: invalid package name: $ac_package" >&2
751    { (exit 1); exit 1; }; }
752     ac_package=`echo $ac_package| sed 's/-/_/g'`
753     case $ac_option in
754       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
755       *) ac_optarg=yes ;;
756     esac
757     eval "with_$ac_package='$ac_optarg'" ;;
758
759   -without-* | --without-*)
760     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
761     # Reject names that are not valid shell variable names.
762     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
763       { echo "$as_me: error: invalid package name: $ac_package" >&2
764    { (exit 1); exit 1; }; }
765     ac_package=`echo $ac_package | sed 's/-/_/g'`
766     eval "with_$ac_package=no" ;;
767
768   --x)
769     # Obsolete; use --with-x.
770     with_x=yes ;;
771
772   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
773   | --x-incl | --x-inc | --x-in | --x-i)
774     ac_prev=x_includes ;;
775   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
776   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
777     x_includes=$ac_optarg ;;
778
779   -x-libraries | --x-libraries | --x-librarie | --x-librari \
780   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
781     ac_prev=x_libraries ;;
782   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
783   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
784     x_libraries=$ac_optarg ;;
785
786   -*) { echo "$as_me: error: unrecognized option: $ac_option
787 Try \`$0 --help' for more information." >&2
788    { (exit 1); exit 1; }; }
789     ;;
790
791   *=*)
792     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
793     # Reject names that are not valid shell variable names.
794     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
795       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
796    { (exit 1); exit 1; }; }
797     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
798     eval "$ac_envvar='$ac_optarg'"
799     export $ac_envvar ;;
800
801   *)
802     # FIXME: should be removed in autoconf 3.0.
803     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
804     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
806     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807     ;;
808
809   esac
810 done
811
812 if test -n "$ac_prev"; then
813   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
814   { echo "$as_me: error: missing argument to $ac_option" >&2
815    { (exit 1); exit 1; }; }
816 fi
817
818 # Be sure to have absolute paths.
819 for ac_var in exec_prefix prefix
820 do
821   eval ac_val=$`echo $ac_var`
822   case $ac_val in
823     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
824     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825    { (exit 1); exit 1; }; };;
826   esac
827 done
828
829 # Be sure to have absolute paths.
830 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
831               localstatedir libdir includedir oldincludedir infodir mandir
832 do
833   eval ac_val=$`echo $ac_var`
834   case $ac_val in
835     [\\/$]* | ?:[\\/]* ) ;;
836     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
837    { (exit 1); exit 1; }; };;
838   esac
839 done
840
841 # There might be people who depend on the old broken behavior: `$host'
842 # used to hold the argument of --host etc.
843 # FIXME: To remove some day.
844 build=$build_alias
845 host=$host_alias
846 target=$target_alias
847
848 # FIXME: To remove some day.
849 if test "x$host_alias" != x; then
850   if test "x$build_alias" = x; then
851     cross_compiling=maybe
852     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
853     If a cross compiler is detected then cross compile mode will be used." >&2
854   elif test "x$build_alias" != "x$host_alias"; then
855     cross_compiling=yes
856   fi
857 fi
858
859 ac_tool_prefix=
860 test -n "$host_alias" && ac_tool_prefix=$host_alias-
861
862 test "$silent" = yes && exec 6>/dev/null
863
864
865 # Find the source files, if location was not specified.
866 if test -z "$srcdir"; then
867   ac_srcdir_defaulted=yes
868   # Try the directory containing this script, then its parent.
869   ac_confdir=`(dirname "$0") 2>/dev/null ||
870 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
871          X"$0" : 'X\(//\)[^/]' \| \
872          X"$0" : 'X\(//\)$' \| \
873          X"$0" : 'X\(/\)' \| \
874          .     : '\(.\)' 2>/dev/null ||
875 echo X"$0" |
876     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
877           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
878           /^X\(\/\/\)$/{ s//\1/; q; }
879           /^X\(\/\).*/{ s//\1/; q; }
880           s/.*/./; q'`
881   srcdir=$ac_confdir
882   if test ! -r $srcdir/$ac_unique_file; then
883     srcdir=..
884   fi
885 else
886   ac_srcdir_defaulted=no
887 fi
888 if test ! -r $srcdir/$ac_unique_file; then
889   if test "$ac_srcdir_defaulted" = yes; then
890     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
891    { (exit 1); exit 1; }; }
892   else
893     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
894    { (exit 1); exit 1; }; }
895   fi
896 fi
897 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
898   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
899    { (exit 1); exit 1; }; }
900 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
901 ac_env_build_alias_set=${build_alias+set}
902 ac_env_build_alias_value=$build_alias
903 ac_cv_env_build_alias_set=${build_alias+set}
904 ac_cv_env_build_alias_value=$build_alias
905 ac_env_host_alias_set=${host_alias+set}
906 ac_env_host_alias_value=$host_alias
907 ac_cv_env_host_alias_set=${host_alias+set}
908 ac_cv_env_host_alias_value=$host_alias
909 ac_env_target_alias_set=${target_alias+set}
910 ac_env_target_alias_value=$target_alias
911 ac_cv_env_target_alias_set=${target_alias+set}
912 ac_cv_env_target_alias_value=$target_alias
913 ac_env_CC_set=${CC+set}
914 ac_env_CC_value=$CC
915 ac_cv_env_CC_set=${CC+set}
916 ac_cv_env_CC_value=$CC
917 ac_env_CFLAGS_set=${CFLAGS+set}
918 ac_env_CFLAGS_value=$CFLAGS
919 ac_cv_env_CFLAGS_set=${CFLAGS+set}
920 ac_cv_env_CFLAGS_value=$CFLAGS
921 ac_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_env_LDFLAGS_value=$LDFLAGS
923 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
924 ac_cv_env_LDFLAGS_value=$LDFLAGS
925 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_env_CPPFLAGS_value=$CPPFLAGS
927 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
928 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
929 ac_env_CPP_set=${CPP+set}
930 ac_env_CPP_value=$CPP
931 ac_cv_env_CPP_set=${CPP+set}
932 ac_cv_env_CPP_value=$CPP
933 ac_env_CXX_set=${CXX+set}
934 ac_env_CXX_value=$CXX
935 ac_cv_env_CXX_set=${CXX+set}
936 ac_cv_env_CXX_value=$CXX
937 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
938 ac_env_CXXFLAGS_value=$CXXFLAGS
939 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
940 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
941 ac_env_CXXCPP_set=${CXXCPP+set}
942 ac_env_CXXCPP_value=$CXXCPP
943 ac_cv_env_CXXCPP_set=${CXXCPP+set}
944 ac_cv_env_CXXCPP_value=$CXXCPP
945 ac_env_F77_set=${F77+set}
946 ac_env_F77_value=$F77
947 ac_cv_env_F77_set=${F77+set}
948 ac_cv_env_F77_value=$F77
949 ac_env_FFLAGS_set=${FFLAGS+set}
950 ac_env_FFLAGS_value=$FFLAGS
951 ac_cv_env_FFLAGS_set=${FFLAGS+set}
952 ac_cv_env_FFLAGS_value=$FFLAGS
953
954 #
955 # Report the --help message.
956 #
957 if test "$ac_init_help" = "long"; then
958   # Omit some internal or obsolete options to make the list less imposing.
959   # This message is too long to be a string in the A/UX 3.1 sh.
960   cat <<_ACEOF
961 \`configure' configures this package to adapt to many kinds of systems.
962
963 Usage: $0 [OPTION]... [VAR=VALUE]...
964
965 To assign environment variables (e.g., CC, CFLAGS...), specify them as
966 VAR=VALUE.  See below for descriptions of some of the useful variables.
967
968 Defaults for the options are specified in brackets.
969
970 Configuration:
971   -h, --help              display this help and exit
972       --help=short        display options specific to this package
973       --help=recursive    display the short help of all the included packages
974   -V, --version           display version information and exit
975   -q, --quiet, --silent   do not print \`checking...' messages
976       --cache-file=FILE   cache test results in FILE [disabled]
977   -C, --config-cache      alias for \`--cache-file=config.cache'
978   -n, --no-create         do not create output files
979       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
980
981 _ACEOF
982
983   cat <<_ACEOF
984 Installation directories:
985   --prefix=PREFIX         install architecture-independent files in PREFIX
986                           [$ac_default_prefix]
987   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
988                           [PREFIX]
989
990 By default, \`make install' will install all the files in
991 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
992 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
993 for instance \`--prefix=\$HOME'.
994
995 For better control, use the options below.
996
997 Fine tuning of the installation directories:
998   --bindir=DIR           user executables [EPREFIX/bin]
999   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1000   --libexecdir=DIR       program executables [EPREFIX/libexec]
1001   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1002   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1003   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1004   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1005   --libdir=DIR           object code libraries [EPREFIX/lib]
1006   --includedir=DIR       C header files [PREFIX/include]
1007   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1008   --infodir=DIR          info documentation [PREFIX/info]
1009   --mandir=DIR           man documentation [PREFIX/man]
1010 _ACEOF
1011
1012   cat <<\_ACEOF
1013
1014 Program names:
1015   --program-prefix=PREFIX            prepend PREFIX to installed program names
1016   --program-suffix=SUFFIX            append SUFFIX to installed program names
1017   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1018
1019 System types:
1020   --build=BUILD     configure for building on BUILD [guessed]
1021   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1022   --target=TARGET   configure for building compilers for TARGET [HOST]
1023 _ACEOF
1024 fi
1025
1026 if test -n "$ac_init_help"; then
1027
1028   cat <<\_ACEOF
1029
1030 Optional Features:
1031   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1032   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1033   --enable-debug          enable debugging yes
1034   --enable-dynamic        enable linking built binaries with dynamic libs no
1035   --enable-syslog         enable syslog support auto
1036   --enable-proctitle      enable proctitle support yes
1037   --enable-ipv6           enable IPv6 support auto
1038   --enable-local          enable AF_LOCAL (AF_UNIX) socket support auto
1039   --enable-slapd          enable building slapd yes
1040     --enable-aci          enable per-object ACIs (experimental) no
1041     --enable-cleartext    enable cleartext passwords yes
1042     --enable-crypt        enable crypt(3) passwords no
1043     --enable-lmpasswd     enable LAN Manager passwords no
1044     --enable-spasswd      enable (Cyrus) SASL password verification no
1045     --enable-modules      enable dynamic module support no
1046     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay auto
1047     --enable-rlookups     enable reverse lookups of client hostnames no
1048     --enable-slapi        enable SLAPI support (experimental) no
1049     --enable-slp          enable SLPv2 support no
1050     --enable-wrappers     enable tcp wrapper support no
1051     --enable-backends     enable all available backends no|yes|mod
1052     --enable-bdb          enable Berkeley DB backend no|yes|mod ${ol_dflt_backends-yes}
1053     --enable-dnssrv       enable dnssrv backend no|yes|mod ${ol_dflt_backends-no}
1054     --enable-hdb          enable Hierarchical DB backend no|yes|mod ${ol_dflt_backends-yes}
1055     --enable-ldap         enable ldap backend no|yes|mod ${ol_dflt_backends-no}
1056     --enable-ldbm         enable ldbm backend no|yes|mod ${ol_dflt_backends-no}
1057     --enable-meta         enable metadirectory backend no|yes|mod ${ol_dflt_backends-no}
1058     --enable-monitor      enable monitor backend no|yes|mod ${ol_dflt_backends-yes}
1059     --enable-null         enable null backend no|yes|mod ${ol_dflt_backends-no}
1060     --enable-passwd       enable passwd backend no|yes|mod ${ol_dflt_backends-no}
1061     --enable-perl         enable perl backend no|yes|mod ${ol_dflt_backends-no}
1062     --enable-relay        enable relay backend no|yes|mod ${ol_dflt_backends-yes}
1063     --enable-shell        enable shell backend no|yes|mod ${ol_dflt_backends-no}
1064     --enable-sql          enable sql backend no|yes|mod ${ol_dflt_backends-no}
1065     --enable-overlays     enable all available overlays no|yes|mod
1066     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod ${ol_dflt_overlays-no}
1067     --enable-denyop       Deny Operation overlay no|yes|mod ${ol_dflt_overlays-no}
1068     --enable-dyngroup     Dynamic Group overlay no|yes|mod ${ol_dflt_overlays-no}
1069     --enable-dynlist      Dynamic List overlay no|yes|mod ${ol_dflt_overlays-no}
1070     --enable-glue         Backend Glue overlay no|yes|mod ${ol_dflt_overlays-yes}
1071     --enable-lastmod      Last Modification overlay no|yes|mod ${ol_dflt_overlays-no}
1072     --enable-ppolicy      Password Policy overlay no|yes|mod ${ol_dflt_overlays-no}
1073     --enable-proxycache   Proxy Cache overlay no|yes|mod ${ol_dflt_overlays-no}
1074     --enable-refint       Referential Integrity overlay no|yes|mod ${ol_dflt_overlays-no}
1075     --enable-retcode      Return Code testing overlay no|yes|mod ${ol_dflt_overlays-no}
1076     --enable-rwm          Rewrite/Remap overlay no|yes|mod ${ol_dflt_overlays-no}
1077     --enable-syncprov     Syncrepl Provider overlay no|yes|mod ${ol_dflt_overlays-yes}
1078     --enable-translucent  Translucent Proxy overlay no|yes|mod ${ol_dflt_overlays-no}
1079     --enable-unique       Attribute Uniqueness overlay no|yes|mod ${ol_dflt_overlays-no}
1080   --enable-slurpd         enable building slurpd auto
1081   --enable-static[=PKGS]
1082                           build static libraries [default=yes]
1083   --enable-shared[=PKGS]
1084                           build shared libraries [default=yes]
1085   --enable-fast-install[=PKGS]
1086                           optimize for fast installation [default=yes]
1087   --disable-dependency-tracking  speeds up one-time build
1088   --enable-dependency-tracking   do not reject slow dependency extractors
1089   --disable-libtool-lock  avoid locking (might break parallel builds)
1090
1091 Optional Packages:
1092   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1093   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1094   --with-subdir=DIR       change default subdirectory used for installs
1095   --with-cyrus-sasl       with Cyrus SASL support auto
1096   --with-fetch            with fetch(3) URL support auto
1097   --with-threads          with threads auto
1098   --with-tls              with TLS/SSL support auto
1099   --with-yielding-select  with implicitly yielding select auto
1100   --with-multiple-precision
1101                           multiple precision support for statistics
1102                           auto|bignum|gmp auto
1103
1104 SLAPD (Standalone LDAP Daemon) Options:
1105
1106 SLAPD Backend Options:
1107       --with-ldbm-api     with LDBM API auto|berkeley|bcompat|mdbm|gdbm auto
1108       --with-ldbm-type    use LDBM type auto|btree|hash auto
1109
1110 SLAPD Overlay Options:
1111
1112 SLURPD (Replication Daemon) Options:
1113
1114 Library Generation & Linking Options
1115   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1116   --with-pic              try to use only PIC/non-PIC objects [default=use
1117                           both]
1118   --with-tags[=TAGS]
1119                           include additional configurations [automatic]
1120
1121 See INSTALL file for further details.
1122
1123 Some influential environment variables:
1124   CC          C compiler command
1125   CFLAGS      C compiler flags
1126   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1127               nonstandard directory <lib dir>
1128   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1129               headers in a nonstandard directory <include dir>
1130   CPP         C preprocessor
1131   CXX         C++ compiler command
1132   CXXFLAGS    C++ compiler flags
1133   CXXCPP      C++ preprocessor
1134   F77         Fortran 77 compiler command
1135   FFLAGS      Fortran 77 compiler flags
1136
1137 Use these variables to override the choices made by `configure' or to help
1138 it to find libraries and programs with nonstandard names/locations.
1139
1140 _ACEOF
1141 fi
1142
1143 if test "$ac_init_help" = "recursive"; then
1144   # If there are subdirs, report their specific --help.
1145   ac_popdir=`pwd`
1146   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1147     test -d $ac_dir || continue
1148     ac_builddir=.
1149
1150 if test "$ac_dir" != .; then
1151   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1152   # A "../" for each directory in $ac_dir_suffix.
1153   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1154 else
1155   ac_dir_suffix= ac_top_builddir=
1156 fi
1157
1158 case $srcdir in
1159   .)  # No --srcdir option.  We are building in place.
1160     ac_srcdir=.
1161     if test -z "$ac_top_builddir"; then
1162        ac_top_srcdir=.
1163     else
1164        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1165     fi ;;
1166   [\\/]* | ?:[\\/]* )  # Absolute path.
1167     ac_srcdir=$srcdir$ac_dir_suffix;
1168     ac_top_srcdir=$srcdir ;;
1169   *) # Relative path.
1170     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1171     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1172 esac
1173
1174 # Do not use `cd foo && pwd` to compute absolute paths, because
1175 # the directories may not exist.
1176 case `pwd` in
1177 .) ac_abs_builddir="$ac_dir";;
1178 *)
1179   case "$ac_dir" in
1180   .) ac_abs_builddir=`pwd`;;
1181   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1182   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1183   esac;;
1184 esac
1185 case $ac_abs_builddir in
1186 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1187 *)
1188   case ${ac_top_builddir}. in
1189   .) ac_abs_top_builddir=$ac_abs_builddir;;
1190   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1191   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1192   esac;;
1193 esac
1194 case $ac_abs_builddir in
1195 .) ac_abs_srcdir=$ac_srcdir;;
1196 *)
1197   case $ac_srcdir in
1198   .) ac_abs_srcdir=$ac_abs_builddir;;
1199   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1200   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1201   esac;;
1202 esac
1203 case $ac_abs_builddir in
1204 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1205 *)
1206   case $ac_top_srcdir in
1207   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1208   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1209   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1210   esac;;
1211 esac
1212
1213     cd $ac_dir
1214     # Check for guested configure; otherwise get Cygnus style configure.
1215     if test -f $ac_srcdir/configure.gnu; then
1216       echo
1217       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1218     elif test -f $ac_srcdir/configure; then
1219       echo
1220       $SHELL $ac_srcdir/configure  --help=recursive
1221     elif test -f $ac_srcdir/configure.ac ||
1222            test -f $ac_srcdir/configure.in; then
1223       echo
1224       $ac_configure --help
1225     else
1226       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1227     fi
1228     cd $ac_popdir
1229   done
1230 fi
1231
1232 test -n "$ac_init_help" && exit 0
1233 if $ac_init_version; then
1234   cat <<\_ACEOF
1235
1236 Copyright (C) 2003 Free Software Foundation, Inc.
1237 This configure script is free software; the Free Software Foundation
1238 gives unlimited permission to copy, distribute and modify it.
1239
1240 Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
1241 Restrictions apply, see COPYRIGHT and LICENSE files.
1242 _ACEOF
1243   exit 0
1244 fi
1245 exec 5>config.log
1246 cat >&5 <<_ACEOF
1247 This file contains any messages produced by compilers while
1248 running configure, to aid debugging if configure makes a mistake.
1249
1250 It was created by $as_me, which was
1251 generated by GNU Autoconf 2.59.  Invocation command line was
1252
1253   $ $0 $@
1254
1255 _ACEOF
1256 {
1257 cat <<_ASUNAME
1258 ## --------- ##
1259 ## Platform. ##
1260 ## --------- ##
1261
1262 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1263 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1264 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1265 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1266 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1267
1268 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1269 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1270
1271 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1272 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1273 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1274 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1275 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1276 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1277 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1278
1279 _ASUNAME
1280
1281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1282 for as_dir in $PATH
1283 do
1284   IFS=$as_save_IFS
1285   test -z "$as_dir" && as_dir=.
1286   echo "PATH: $as_dir"
1287 done
1288
1289 } >&5
1290
1291 cat >&5 <<_ACEOF
1292
1293
1294 ## ----------- ##
1295 ## Core tests. ##
1296 ## ----------- ##
1297
1298 _ACEOF
1299
1300
1301 # Keep a trace of the command line.
1302 # Strip out --no-create and --no-recursion so they do not pile up.
1303 # Strip out --silent because we don't want to record it for future runs.
1304 # Also quote any args containing shell meta-characters.
1305 # Make two passes to allow for proper duplicate-argument suppression.
1306 ac_configure_args=
1307 ac_configure_args0=
1308 ac_configure_args1=
1309 ac_sep=
1310 ac_must_keep_next=false
1311 for ac_pass in 1 2
1312 do
1313   for ac_arg
1314   do
1315     case $ac_arg in
1316     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1317     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1318     | -silent | --silent | --silen | --sile | --sil)
1319       continue ;;
1320     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1321       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1322     esac
1323     case $ac_pass in
1324     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1325     2)
1326       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1327       if test $ac_must_keep_next = true; then
1328         ac_must_keep_next=false # Got value, back to normal.
1329       else
1330         case $ac_arg in
1331           *=* | --config-cache | -C | -disable-* | --disable-* \
1332           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1333           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1334           | -with-* | --with-* | -without-* | --without-* | --x)
1335             case "$ac_configure_args0 " in
1336               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1337             esac
1338             ;;
1339           -* ) ac_must_keep_next=true ;;
1340         esac
1341       fi
1342       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1343       # Get rid of the leading space.
1344       ac_sep=" "
1345       ;;
1346     esac
1347   done
1348 done
1349 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1350 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1351
1352 # When interrupted or exit'd, cleanup temporary files, and complete
1353 # config.log.  We remove comments because anyway the quotes in there
1354 # would cause problems or look ugly.
1355 # WARNING: Be sure not to use single quotes in there, as some shells,
1356 # such as our DU 5.0 friend, will then `close' the trap.
1357 trap 'exit_status=$?
1358   # Save into config.log some information that might help in debugging.
1359   {
1360     echo
1361
1362     cat <<\_ASBOX
1363 ## ---------------- ##
1364 ## Cache variables. ##
1365 ## ---------------- ##
1366 _ASBOX
1367     echo
1368     # The following way of writing the cache mishandles newlines in values,
1369 {
1370   (set) 2>&1 |
1371     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1372     *ac_space=\ *)
1373       sed -n \
1374         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1375           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1376       ;;
1377     *)
1378       sed -n \
1379         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1380       ;;
1381     esac;
1382 }
1383     echo
1384
1385     cat <<\_ASBOX
1386 ## ----------------- ##
1387 ## Output variables. ##
1388 ## ----------------- ##
1389 _ASBOX
1390     echo
1391     for ac_var in $ac_subst_vars
1392     do
1393       eval ac_val=$`echo $ac_var`
1394       echo "$ac_var='"'"'$ac_val'"'"'"
1395     done | sort
1396     echo
1397
1398     if test -n "$ac_subst_files"; then
1399       cat <<\_ASBOX
1400 ## ------------- ##
1401 ## Output files. ##
1402 ## ------------- ##
1403 _ASBOX
1404       echo
1405       for ac_var in $ac_subst_files
1406       do
1407         eval ac_val=$`echo $ac_var`
1408         echo "$ac_var='"'"'$ac_val'"'"'"
1409       done | sort
1410       echo
1411     fi
1412
1413     if test -s confdefs.h; then
1414       cat <<\_ASBOX
1415 ## ----------- ##
1416 ## confdefs.h. ##
1417 ## ----------- ##
1418 _ASBOX
1419       echo
1420       sed "/^$/d" confdefs.h | sort
1421       echo
1422     fi
1423     test "$ac_signal" != 0 &&
1424       echo "$as_me: caught signal $ac_signal"
1425     echo "$as_me: exit $exit_status"
1426   } >&5
1427   rm -f core *.core &&
1428   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1429     exit $exit_status
1430      ' 0
1431 for ac_signal in 1 2 13 15; do
1432   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1433 done
1434 ac_signal=0
1435
1436 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1437 rm -rf conftest* confdefs.h
1438 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1439 echo >confdefs.h
1440
1441 # Predefined preprocessor variables.
1442
1443 cat >>confdefs.h <<_ACEOF
1444 #define PACKAGE_NAME "$PACKAGE_NAME"
1445 _ACEOF
1446
1447
1448 cat >>confdefs.h <<_ACEOF
1449 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1450 _ACEOF
1451
1452
1453 cat >>confdefs.h <<_ACEOF
1454 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1455 _ACEOF
1456
1457
1458 cat >>confdefs.h <<_ACEOF
1459 #define PACKAGE_STRING "$PACKAGE_STRING"
1460 _ACEOF
1461
1462
1463 cat >>confdefs.h <<_ACEOF
1464 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1465 _ACEOF
1466
1467
1468 # Let the site file select an alternate cache file if it wants to.
1469 # Prefer explicitly selected file to automatically selected ones.
1470 if test -z "$CONFIG_SITE"; then
1471   if test "x$prefix" != xNONE; then
1472     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1473   else
1474     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1475   fi
1476 fi
1477 for ac_site_file in $CONFIG_SITE; do
1478   if test -r "$ac_site_file"; then
1479     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1480 echo "$as_me: loading site script $ac_site_file" >&6;}
1481     sed 's/^/| /' "$ac_site_file" >&5
1482     . "$ac_site_file"
1483   fi
1484 done
1485
1486
1487 # Check that the precious variables saved in the cache have kept the same
1488 # value.
1489 ac_cache_corrupted=false
1490 for ac_var in `(set) 2>&1 |
1491                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1492   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1493   eval ac_new_set=\$ac_env_${ac_var}_set
1494   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1495   eval ac_new_val="\$ac_env_${ac_var}_value"
1496   case $ac_old_set,$ac_new_set in
1497     set,)
1498       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1499 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1500       ac_cache_corrupted=: ;;
1501     ,set)
1502       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1503 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1504       ac_cache_corrupted=: ;;
1505     ,);;
1506     *)
1507       if test "x$ac_old_val" != "x$ac_new_val"; then
1508         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1509 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1510         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1511 echo "$as_me:   former value:  $ac_old_val" >&2;}
1512         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1513 echo "$as_me:   current value: $ac_new_val" >&2;}
1514         ac_cache_corrupted=:
1515       fi;;
1516   esac
1517   # Pass precious variables to config.status.
1518   if test "$ac_new_set" = set; then
1519     case $ac_new_val in
1520     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1521       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1522     *) ac_arg=$ac_var=$ac_new_val ;;
1523     esac
1524     case " $ac_configure_args " in
1525       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1526       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1527     esac
1528   fi
1529 done
1530 if $ac_cache_corrupted; then
1531   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1532 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1533   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1534 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1535    { (exit 1); exit 1; }; }
1536 fi
1537
1538 ac_ext=c
1539 ac_cpp='$CPP $CPPFLAGS'
1540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584 ac_aux_dir=
1585 for ac_dir in build $srcdir/build; do
1586   if test -f $ac_dir/install-sh; then
1587     ac_aux_dir=$ac_dir
1588     ac_install_sh="$ac_aux_dir/install-sh -c"
1589     break
1590   elif test -f $ac_dir/install.sh; then
1591     ac_aux_dir=$ac_dir
1592     ac_install_sh="$ac_aux_dir/install.sh -c"
1593     break
1594   elif test -f $ac_dir/shtool; then
1595     ac_aux_dir=$ac_dir
1596     ac_install_sh="$ac_aux_dir/shtool install -c"
1597     break
1598   fi
1599 done
1600 if test -z "$ac_aux_dir"; then
1601   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1602 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1603    { (exit 1); exit 1; }; }
1604 fi
1605 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1606 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1607 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1608
1609 eval `$ac_aux_dir/version.sh`
1610 if test -z "$OL_STRING"; then
1611         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1612 echo "$as_me: error: could not determine version" >&2;}
1613    { (exit 1); exit 1; }; }
1614 fi
1615
1616 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
1617         ac_cv_shtool="$ac_aux_dir/shtool"
1618 else
1619         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1620 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1621    { (exit 1); exit 1; }; }
1622 fi
1623
1624 SHTOOL="$ac_cv_shtool"
1625
1626 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1627 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1628
1629 OPENLDAP_CVS=""
1630 if test -d $ac_aux_dir/CVS; then
1631         OPENLDAP_CVS="(from CVS sources) "
1632 fi
1633
1634 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1635
1636 # Make sure we can run config.sub.
1637 $ac_config_sub sun4 >/dev/null 2>&1 ||
1638   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1639 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1640    { (exit 1); exit 1; }; }
1641
1642 echo "$as_me:$LINENO: checking build system type" >&5
1643 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1644 if test "${ac_cv_build+set}" = set; then
1645   echo $ECHO_N "(cached) $ECHO_C" >&6
1646 else
1647   ac_cv_build_alias=$build_alias
1648 test -z "$ac_cv_build_alias" &&
1649   ac_cv_build_alias=`$ac_config_guess`
1650 test -z "$ac_cv_build_alias" &&
1651   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1652 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1653    { (exit 1); exit 1; }; }
1654 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1655   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1656 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1657    { (exit 1); exit 1; }; }
1658
1659 fi
1660 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1661 echo "${ECHO_T}$ac_cv_build" >&6
1662 build=$ac_cv_build
1663 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1664 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1665 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1666
1667
1668 echo "$as_me:$LINENO: checking host system type" >&5
1669 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1670 if test "${ac_cv_host+set}" = set; then
1671   echo $ECHO_N "(cached) $ECHO_C" >&6
1672 else
1673   ac_cv_host_alias=$host_alias
1674 test -z "$ac_cv_host_alias" &&
1675   ac_cv_host_alias=$ac_cv_build_alias
1676 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1677   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1678 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1679    { (exit 1); exit 1; }; }
1680
1681 fi
1682 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1683 echo "${ECHO_T}$ac_cv_host" >&6
1684 host=$ac_cv_host
1685 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1686 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1687 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1688
1689
1690 echo "$as_me:$LINENO: checking target system type" >&5
1691 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1692 if test "${ac_cv_target+set}" = set; then
1693   echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695   ac_cv_target_alias=$target_alias
1696 test "x$ac_cv_target_alias" = "x" &&
1697   ac_cv_target_alias=$ac_cv_host_alias
1698 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1699   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1700 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1701    { (exit 1); exit 1; }; }
1702
1703 fi
1704 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1705 echo "${ECHO_T}$ac_cv_target" >&6
1706 target=$ac_cv_target
1707 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1708 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1709 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1710
1711
1712 # The aliases save the names the user supplied, while $host etc.
1713 # will get canonicalized.
1714 test -n "$target_alias" &&
1715   test "$program_prefix$program_suffix$program_transform_name" = \
1716     NONENONEs,x,x, &&
1717   program_prefix=${target_alias}-
1718
1719 am__api_version="1.9"
1720 # Find a good install program.  We prefer a C program (faster),
1721 # so one script is as good as another.  But avoid the broken or
1722 # incompatible versions:
1723 # SysV /etc/install, /usr/sbin/install
1724 # SunOS /usr/etc/install
1725 # IRIX /sbin/install
1726 # AIX /bin/install
1727 # AmigaOS /C/install, which installs bootblocks on floppy discs
1728 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1729 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1730 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1731 # OS/2's system install, which has a completely different semantic
1732 # ./install, which can be erroneously created by make from ./install.sh.
1733 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1734 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1735 if test -z "$INSTALL"; then
1736 if test "${ac_cv_path_install+set}" = set; then
1737   echo $ECHO_N "(cached) $ECHO_C" >&6
1738 else
1739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 for as_dir in $PATH
1741 do
1742   IFS=$as_save_IFS
1743   test -z "$as_dir" && as_dir=.
1744   # Account for people who put trailing slashes in PATH elements.
1745 case $as_dir/ in
1746   ./ | .// | /cC/* | \
1747   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1748   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1749   /usr/ucb/* ) ;;
1750   *)
1751     # OSF1 and SCO ODT 3.0 have their own names for install.
1752     # Don't use installbsd from OSF since it installs stuff as root
1753     # by default.
1754     for ac_prog in ginstall scoinst install; do
1755       for ac_exec_ext in '' $ac_executable_extensions; do
1756         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1757           if test $ac_prog = install &&
1758             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1759             # AIX install.  It has an incompatible calling convention.
1760             :
1761           elif test $ac_prog = install &&
1762             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1763             # program-specific install script used by HP pwplus--don't use.
1764             :
1765           else
1766             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1767             break 3
1768           fi
1769         fi
1770       done
1771     done
1772     ;;
1773 esac
1774 done
1775
1776
1777 fi
1778   if test "${ac_cv_path_install+set}" = set; then
1779     INSTALL=$ac_cv_path_install
1780   else
1781     # As a last resort, use the slow shell script.  We don't cache a
1782     # path for INSTALL within a source directory, because that will
1783     # break other packages using the cache if that directory is
1784     # removed, or if the path is relative.
1785     INSTALL=$ac_install_sh
1786   fi
1787 fi
1788 echo "$as_me:$LINENO: result: $INSTALL" >&5
1789 echo "${ECHO_T}$INSTALL" >&6
1790
1791 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1792 # It thinks the first close brace ends the variable substitution.
1793 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1794
1795 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1796
1797 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1798
1799 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1800 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1801 # Just in case
1802 sleep 1
1803 echo timestamp > conftest.file
1804 # Do `set' in a subshell so we don't clobber the current shell's
1805 # arguments.  Must try -L first in case configure is actually a
1806 # symlink; some systems play weird games with the mod time of symlinks
1807 # (eg FreeBSD returns the mod time of the symlink's containing
1808 # directory).
1809 if (
1810    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1811    if test "$*" = "X"; then
1812       # -L didn't work.
1813       set X `ls -t $srcdir/configure conftest.file`
1814    fi
1815    rm -f conftest.file
1816    if test "$*" != "X $srcdir/configure conftest.file" \
1817       && test "$*" != "X conftest.file $srcdir/configure"; then
1818
1819       # If neither matched, then we have a broken ls.  This can happen
1820       # if, for instance, CONFIG_SHELL is bash and it inherits a
1821       # broken ls alias from the environment.  This has actually
1822       # happened.  Such a system could not be considered "sane".
1823       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1824 alias in your environment" >&5
1825 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1826 alias in your environment" >&2;}
1827    { (exit 1); exit 1; }; }
1828    fi
1829
1830    test "$2" = conftest.file
1831    )
1832 then
1833    # Ok.
1834    :
1835 else
1836    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1837 Check your system clock" >&5
1838 echo "$as_me: error: newly created file is older than distributed files!
1839 Check your system clock" >&2;}
1840    { (exit 1); exit 1; }; }
1841 fi
1842 echo "$as_me:$LINENO: result: yes" >&5
1843 echo "${ECHO_T}yes" >&6
1844 test "$program_prefix" != NONE &&
1845   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1846 # Use a double $ so make ignores it.
1847 test "$program_suffix" != NONE &&
1848   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1849 # Double any \ or $.  echo might interpret backslashes.
1850 # By default was `s,x,x', remove it if useless.
1851 cat <<\_ACEOF >conftest.sed
1852 s/[\\$]/&&/g;s/;s,x,x,$//
1853 _ACEOF
1854 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1855 rm conftest.sed
1856
1857 # expand $ac_aux_dir to an absolute path
1858 am_aux_dir=`cd $ac_aux_dir && pwd`
1859
1860 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1861 # Use eval to expand $SHELL
1862 if eval "$MISSING --run true"; then
1863   am_missing_run="$MISSING --run "
1864 else
1865   am_missing_run=
1866   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1867 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1868 fi
1869
1870 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1871   # We used to keeping the `.' as first argument, in order to
1872   # allow $(mkdir_p) to be used without argument.  As in
1873   #   $(mkdir_p) $(somedir)
1874   # where $(somedir) is conditionally defined.  However this is wrong
1875   # for two reasons:
1876   #  1. if the package is installed by a user who cannot write `.'
1877   #     make install will fail,
1878   #  2. the above comment should most certainly read
1879   #     $(mkdir_p) $(DESTDIR)$(somedir)
1880   #     so it does not work when $(somedir) is undefined and
1881   #     $(DESTDIR) is not.
1882   #  To support the latter case, we have to write
1883   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1884   #  so the `.' trick is pointless.
1885   mkdir_p='mkdir -p --'
1886 else
1887   # On NextStep and OpenStep, the `mkdir' command does not
1888   # recognize any option.  It will interpret all options as
1889   # directories to create, and then abort because `.' already
1890   # exists.
1891   for d in ./-p ./--version;
1892   do
1893     test -d $d && rmdir $d
1894   done
1895   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1896   if test -f "$ac_aux_dir/mkinstalldirs"; then
1897     mkdir_p='$(mkinstalldirs)'
1898   else
1899     mkdir_p='$(install_sh) -d'
1900   fi
1901 fi
1902
1903 for ac_prog in gawk mawk nawk awk
1904 do
1905   # Extract the first word of "$ac_prog", so it can be a program name with args.
1906 set dummy $ac_prog; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_AWK+set}" = set; then
1910   echo $ECHO_N "(cached) $ECHO_C" >&6
1911 else
1912   if test -n "$AWK"; then
1913   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1914 else
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1917 do
1918   IFS=$as_save_IFS
1919   test -z "$as_dir" && as_dir=.
1920   for ac_exec_ext in '' $ac_executable_extensions; do
1921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922     ac_cv_prog_AWK="$ac_prog"
1923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924     break 2
1925   fi
1926 done
1927 done
1928
1929 fi
1930 fi
1931 AWK=$ac_cv_prog_AWK
1932 if test -n "$AWK"; then
1933   echo "$as_me:$LINENO: result: $AWK" >&5
1934 echo "${ECHO_T}$AWK" >&6
1935 else
1936   echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1938 fi
1939
1940   test -n "$AWK" && break
1941 done
1942
1943 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1944 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1945 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1946 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1947   echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949   cat >conftest.make <<\_ACEOF
1950 all:
1951         @echo 'ac_maketemp="$(MAKE)"'
1952 _ACEOF
1953 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1954 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1955 if test -n "$ac_maketemp"; then
1956   eval ac_cv_prog_make_${ac_make}_set=yes
1957 else
1958   eval ac_cv_prog_make_${ac_make}_set=no
1959 fi
1960 rm -f conftest.make
1961 fi
1962 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1963   echo "$as_me:$LINENO: result: yes" >&5
1964 echo "${ECHO_T}yes" >&6
1965   SET_MAKE=
1966 else
1967   echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1969   SET_MAKE="MAKE=${MAKE-make}"
1970 fi
1971
1972 rm -rf .tst 2>/dev/null
1973 mkdir .tst 2>/dev/null
1974 if test -d .tst; then
1975   am__leading_dot=.
1976 else
1977   am__leading_dot=_
1978 fi
1979 rmdir .tst 2>/dev/null
1980
1981 # test to see if srcdir already configured
1982 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1983    test -f $srcdir/config.status; then
1984   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1985 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1986    { (exit 1); exit 1; }; }
1987 fi
1988
1989 # test whether we have cygpath
1990 if test -z "$CYGPATH_W"; then
1991   if (cygpath --version) >/dev/null 2>/dev/null; then
1992     CYGPATH_W='cygpath -w'
1993   else
1994     CYGPATH_W=echo
1995   fi
1996 fi
1997
1998
1999 # Define the identity of the package.
2000  PACKAGE=$OL_PACKAGE
2001  VERSION=$OL_VERSION
2002
2003
2004 # Some tools Automake needs.
2005
2006 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2007
2008
2009 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2010
2011
2012 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2013
2014
2015 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2016
2017
2018 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2019
2020 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2021
2022 # Installed binaries are usually stripped using `strip' when the user
2023 # run `make install-strip'.  However `strip' might not be the right
2024 # tool to use in cross-compilation environments, therefore Automake
2025 # will honor the `STRIP' environment variable to overrule this program.
2026 if test "$cross_compiling" != no; then
2027   if test -n "$ac_tool_prefix"; then
2028   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2029 set dummy ${ac_tool_prefix}strip; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_STRIP+set}" = set; then
2033   echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035   if test -n "$STRIP"; then
2036   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2037 else
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2040 do
2041   IFS=$as_save_IFS
2042   test -z "$as_dir" && as_dir=.
2043   for ac_exec_ext in '' $ac_executable_extensions; do
2044   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047     break 2
2048   fi
2049 done
2050 done
2051
2052 fi
2053 fi
2054 STRIP=$ac_cv_prog_STRIP
2055 if test -n "$STRIP"; then
2056   echo "$as_me:$LINENO: result: $STRIP" >&5
2057 echo "${ECHO_T}$STRIP" >&6
2058 else
2059   echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2061 fi
2062
2063 fi
2064 if test -z "$ac_cv_prog_STRIP"; then
2065   ac_ct_STRIP=$STRIP
2066   # Extract the first word of "strip", so it can be a program name with args.
2067 set dummy strip; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2071   echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073   if test -n "$ac_ct_STRIP"; then
2074   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2078 do
2079   IFS=$as_save_IFS
2080   test -z "$as_dir" && as_dir=.
2081   for ac_exec_ext in '' $ac_executable_extensions; do
2082   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083     ac_cv_prog_ac_ct_STRIP="strip"
2084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085     break 2
2086   fi
2087 done
2088 done
2089
2090   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2091 fi
2092 fi
2093 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2094 if test -n "$ac_ct_STRIP"; then
2095   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2096 echo "${ECHO_T}$ac_ct_STRIP" >&6
2097 else
2098   echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6
2100 fi
2101
2102   STRIP=$ac_ct_STRIP
2103 else
2104   STRIP="$ac_cv_prog_STRIP"
2105 fi
2106
2107 fi
2108 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2109
2110 # We need awk for the "check" target.  The system "awk" is bad on
2111 # some platforms.
2112 # Always define AMTAR for backward compatibility.
2113
2114 AMTAR=${AMTAR-"${am_missing_run}tar"}
2115
2116 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2117
2118
2119
2120
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define OPENLDAP_PACKAGE "$PACKAGE"
2124 _ACEOF
2125
2126
2127 cat >>confdefs.h <<_ACEOF
2128 #define OPENLDAP_VERSION "$VERSION"
2129 _ACEOF
2130
2131
2132
2133 cat >>confdefs.h <<_ACEOF
2134 #define LDAP_VENDOR_VERSION $OL_API_INC
2135 _ACEOF
2136
2137
2138 cat >>confdefs.h <<_ACEOF
2139 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2140 _ACEOF
2141
2142
2143 cat >>confdefs.h <<_ACEOF
2144 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2145 _ACEOF
2146
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2150 _ACEOF
2151
2152
2153 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2154
2155 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2156
2157 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2158
2159
2160
2161
2162
2163
2164
2165           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2166
2167           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2168
2169           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2170
2171
2172 echo "$as_me:$LINENO: checking configure arguments" >&5
2173 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2174
2175
2176 top_builddir=`pwd`
2177
2178 ldap_subdir="/openldap"
2179
2180
2181 # Check whether --with-subdir or --without-subdir was given.
2182 if test "${with_subdir+set}" = set; then
2183   withval="$with_subdir"
2184   case "$withval" in
2185         no) ldap_subdir=""
2186                 ;;
2187         yes)
2188                 ;;
2189         /*|\\*)
2190                 ldap_subdir="$withval"
2191                 ;;
2192         *)
2193                 ldap_subdir="/$withval"
2194                 ;;
2195 esac
2196
2197 fi;
2198
2199 # OpenLDAP --enable-debug
2200         # Check whether --enable-debug or --disable-debug was given.
2201 if test "${enable_debug+set}" = set; then
2202   enableval="$enable_debug"
2203
2204         ol_arg=invalid
2205         for ol_val in auto yes no ; do
2206                 if test "$enableval" = "$ol_val" ; then
2207                         ol_arg="$ol_val"
2208                 fi
2209         done
2210         if test "$ol_arg" = "invalid" ; then
2211                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2212 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2213    { (exit 1); exit 1; }; }
2214         fi
2215         ol_enable_debug="$ol_arg"
2216
2217 else
2218         ol_enable_debug="yes"
2219 fi; # end --enable-debug
2220 # OpenLDAP --enable-dynamic
2221         # Check whether --enable-dynamic or --disable-dynamic was given.
2222 if test "${enable_dynamic+set}" = set; then
2223   enableval="$enable_dynamic"
2224
2225         ol_arg=invalid
2226         for ol_val in auto yes no ; do
2227                 if test "$enableval" = "$ol_val" ; then
2228                         ol_arg="$ol_val"
2229                 fi
2230         done
2231         if test "$ol_arg" = "invalid" ; then
2232                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2233 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2234    { (exit 1); exit 1; }; }
2235         fi
2236         ol_enable_dynamic="$ol_arg"
2237
2238 else
2239         ol_enable_dynamic="no"
2240 fi; # end --enable-dynamic
2241 # OpenLDAP --enable-syslog
2242         # Check whether --enable-syslog or --disable-syslog was given.
2243 if test "${enable_syslog+set}" = set; then
2244   enableval="$enable_syslog"
2245
2246         ol_arg=invalid
2247         for ol_val in auto yes no ; do
2248                 if test "$enableval" = "$ol_val" ; then
2249                         ol_arg="$ol_val"
2250                 fi
2251         done
2252         if test "$ol_arg" = "invalid" ; then
2253                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2254 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2255    { (exit 1); exit 1; }; }
2256         fi
2257         ol_enable_syslog="$ol_arg"
2258
2259 else
2260         ol_enable_syslog="auto"
2261 fi; # end --enable-syslog
2262 # OpenLDAP --enable-proctitle
2263         # Check whether --enable-proctitle or --disable-proctitle was given.
2264 if test "${enable_proctitle+set}" = set; then
2265   enableval="$enable_proctitle"
2266
2267         ol_arg=invalid
2268         for ol_val in auto yes no ; do
2269                 if test "$enableval" = "$ol_val" ; then
2270                         ol_arg="$ol_val"
2271                 fi
2272         done
2273         if test "$ol_arg" = "invalid" ; then
2274                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2275 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2276    { (exit 1); exit 1; }; }
2277         fi
2278         ol_enable_proctitle="$ol_arg"
2279
2280 else
2281         ol_enable_proctitle="yes"
2282 fi; # end --enable-proctitle
2283 ol_enable_referrals=${ol_enable_referrals-no}
2284 ol_enable_kbind=${ol_enable_kbind-no}
2285 # OpenLDAP --enable-ipv6
2286         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2287 if test "${enable_ipv6+set}" = set; then
2288   enableval="$enable_ipv6"
2289
2290         ol_arg=invalid
2291         for ol_val in auto yes no ; do
2292                 if test "$enableval" = "$ol_val" ; then
2293                         ol_arg="$ol_val"
2294                 fi
2295         done
2296         if test "$ol_arg" = "invalid" ; then
2297                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2298 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2299    { (exit 1); exit 1; }; }
2300         fi
2301         ol_enable_ipv6="$ol_arg"
2302
2303 else
2304         ol_enable_ipv6="auto"
2305 fi; # end --enable-ipv6
2306 # OpenLDAP --enable-local
2307         # Check whether --enable-local or --disable-local was given.
2308 if test "${enable_local+set}" = set; then
2309   enableval="$enable_local"
2310
2311         ol_arg=invalid
2312         for ol_val in auto yes no ; do
2313                 if test "$enableval" = "$ol_val" ; then
2314                         ol_arg="$ol_val"
2315                 fi
2316         done
2317         if test "$ol_arg" = "invalid" ; then
2318                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2319 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2320    { (exit 1); exit 1; }; }
2321         fi
2322         ol_enable_local="$ol_arg"
2323
2324 else
2325         ol_enable_local="auto"
2326 fi; # end --enable-local
2327
2328 # OpenLDAP --with-cyrus_sasl
2329
2330 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2331 if test "${with_cyrus_sasl+set}" = set; then
2332   withval="$with_cyrus_sasl"
2333
2334         ol_arg=invalid
2335         for ol_val in auto yes no  ; do
2336                 if test "$withval" = "$ol_val" ; then
2337                         ol_arg="$ol_val"
2338                 fi
2339         done
2340         if test "$ol_arg" = "invalid" ; then
2341                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2342 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2343    { (exit 1); exit 1; }; }
2344         fi
2345         ol_with_cyrus_sasl="$ol_arg"
2346
2347 else
2348         ol_with_cyrus_sasl="auto"
2349 fi; # end --with-cyrus_sasl
2350
2351 # OpenLDAP --with-fetch
2352
2353 # Check whether --with-fetch or --without-fetch was given.
2354 if test "${with_fetch+set}" = set; then
2355   withval="$with_fetch"
2356
2357         ol_arg=invalid
2358         for ol_val in auto yes no  ; do
2359                 if test "$withval" = "$ol_val" ; then
2360                         ol_arg="$ol_val"
2361                 fi
2362         done
2363         if test "$ol_arg" = "invalid" ; then
2364                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2365 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2366    { (exit 1); exit 1; }; }
2367         fi
2368         ol_with_fetch="$ol_arg"
2369
2370 else
2371         ol_with_fetch="auto"
2372 fi; # end --with-fetch
2373
2374 ol_with_kerberos=${ol_with_kerberos-auto}
2375 # OpenLDAP --with-threads
2376
2377 # Check whether --with-threads or --without-threads was given.
2378 if test "${with_threads+set}" = set; then
2379   withval="$with_threads"
2380
2381         ol_arg=invalid
2382         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2383                 if test "$withval" = "$ol_val" ; then
2384                         ol_arg="$ol_val"
2385                 fi
2386         done
2387         if test "$ol_arg" = "invalid" ; then
2388                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2389 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2390    { (exit 1); exit 1; }; }
2391         fi
2392         ol_with_threads="$ol_arg"
2393
2394 else
2395         ol_with_threads="auto"
2396 fi; # end --with-threads
2397
2398 # OpenLDAP --with-tls
2399
2400 # Check whether --with-tls or --without-tls was given.
2401 if test "${with_tls+set}" = set; then
2402   withval="$with_tls"
2403
2404         ol_arg=invalid
2405         for ol_val in auto ssleay openssl yes no  ; do
2406                 if test "$withval" = "$ol_val" ; then
2407                         ol_arg="$ol_val"
2408                 fi
2409         done
2410         if test "$ol_arg" = "invalid" ; then
2411                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2412 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2413    { (exit 1); exit 1; }; }
2414         fi
2415         ol_with_tls="$ol_arg"
2416
2417 else
2418         ol_with_tls="auto"
2419 fi; # end --with-tls
2420
2421 # OpenLDAP --with-yielding_select
2422
2423 # Check whether --with-yielding_select or --without-yielding_select was given.
2424 if test "${with_yielding_select+set}" = set; then
2425   withval="$with_yielding_select"
2426
2427         ol_arg=invalid
2428         for ol_val in auto yes no manual  ; do
2429                 if test "$withval" = "$ol_val" ; then
2430                         ol_arg="$ol_val"
2431                 fi
2432         done
2433         if test "$ol_arg" = "invalid" ; then
2434                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2435 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2436    { (exit 1); exit 1; }; }
2437         fi
2438         ol_with_yielding_select="$ol_arg"
2439
2440 else
2441         ol_with_yielding_select="auto"
2442 fi; # end --with-yielding_select
2443
2444 # OpenLDAP --with-multiple_precision
2445
2446 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2447 if test "${with_multiple_precision+set}" = set; then
2448   withval="$with_multiple_precision"
2449
2450         ol_arg=invalid
2451         for ol_val in auto bignum gmp yes no  ; do
2452                 if test "$withval" = "$ol_val" ; then
2453                         ol_arg="$ol_val"
2454                 fi
2455         done
2456         if test "$ol_arg" = "invalid" ; then
2457                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2458 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2459    { (exit 1); exit 1; }; }
2460         fi
2461         ol_with_multiple_precision="$ol_arg"
2462
2463 else
2464         ol_with_multiple_precision="auto"
2465 fi; # end --with-multiple_precision
2466
2467
2468
2469
2470 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
2471 if test "${with_xxslapdoptions+set}" = set; then
2472   withval="$with_xxslapdoptions"
2473
2474 fi;
2475 # OpenLDAP --enable-slapd
2476         # Check whether --enable-slapd or --disable-slapd was given.
2477 if test "${enable_slapd+set}" = set; then
2478   enableval="$enable_slapd"
2479
2480         ol_arg=invalid
2481         for ol_val in auto yes no ; do
2482                 if test "$enableval" = "$ol_val" ; then
2483                         ol_arg="$ol_val"
2484                 fi
2485         done
2486         if test "$ol_arg" = "invalid" ; then
2487                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2488 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2489    { (exit 1); exit 1; }; }
2490         fi
2491         ol_enable_slapd="$ol_arg"
2492
2493 else
2494         ol_enable_slapd="yes"
2495 fi; # end --enable-slapd
2496 # OpenLDAP --enable-aci
2497         # Check whether --enable-aci or --disable-aci was given.
2498 if test "${enable_aci+set}" = set; then
2499   enableval="$enable_aci"
2500
2501         ol_arg=invalid
2502         for ol_val in auto yes no ; do
2503                 if test "$enableval" = "$ol_val" ; then
2504                         ol_arg="$ol_val"
2505                 fi
2506         done
2507         if test "$ol_arg" = "invalid" ; then
2508                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2509 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2510    { (exit 1); exit 1; }; }
2511         fi
2512         ol_enable_aci="$ol_arg"
2513
2514 else
2515         ol_enable_aci="no"
2516 fi; # end --enable-aci
2517 # OpenLDAP --enable-cleartext
2518         # Check whether --enable-cleartext or --disable-cleartext was given.
2519 if test "${enable_cleartext+set}" = set; then
2520   enableval="$enable_cleartext"
2521
2522         ol_arg=invalid
2523         for ol_val in auto yes no ; do
2524                 if test "$enableval" = "$ol_val" ; then
2525                         ol_arg="$ol_val"
2526                 fi
2527         done
2528         if test "$ol_arg" = "invalid" ; then
2529                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2530 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2531    { (exit 1); exit 1; }; }
2532         fi
2533         ol_enable_cleartext="$ol_arg"
2534
2535 else
2536         ol_enable_cleartext="yes"
2537 fi; # end --enable-cleartext
2538 # OpenLDAP --enable-crypt
2539         # Check whether --enable-crypt or --disable-crypt was given.
2540 if test "${enable_crypt+set}" = set; then
2541   enableval="$enable_crypt"
2542
2543         ol_arg=invalid
2544         for ol_val in auto yes no ; do
2545                 if test "$enableval" = "$ol_val" ; then
2546                         ol_arg="$ol_val"
2547                 fi
2548         done
2549         if test "$ol_arg" = "invalid" ; then
2550                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2551 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2552    { (exit 1); exit 1; }; }
2553         fi
2554         ol_enable_crypt="$ol_arg"
2555
2556 else
2557         ol_enable_crypt="no"
2558 fi; # end --enable-crypt
2559 # OpenLDAP --enable-lmpasswd
2560         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2561 if test "${enable_lmpasswd+set}" = set; then
2562   enableval="$enable_lmpasswd"
2563
2564         ol_arg=invalid
2565         for ol_val in auto yes no ; do
2566                 if test "$enableval" = "$ol_val" ; then
2567                         ol_arg="$ol_val"
2568                 fi
2569         done
2570         if test "$ol_arg" = "invalid" ; then
2571                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2572 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2573    { (exit 1); exit 1; }; }
2574         fi
2575         ol_enable_lmpasswd="$ol_arg"
2576
2577 else
2578         ol_enable_lmpasswd="no"
2579 fi; # end --enable-lmpasswd
2580 # OpenLDAP --enable-spasswd
2581         # Check whether --enable-spasswd or --disable-spasswd was given.
2582 if test "${enable_spasswd+set}" = set; then
2583   enableval="$enable_spasswd"
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-spasswd" >&5
2593 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2594    { (exit 1); exit 1; }; }
2595         fi
2596         ol_enable_spasswd="$ol_arg"
2597
2598 else
2599         ol_enable_spasswd="no"
2600 fi; # end --enable-spasswd
2601 # OpenLDAP --enable-modules
2602         # Check whether --enable-modules or --disable-modules was given.
2603 if test "${enable_modules+set}" = set; then
2604   enableval="$enable_modules"
2605
2606         ol_arg=invalid
2607         for ol_val in auto yes no ; do
2608                 if test "$enableval" = "$ol_val" ; then
2609                         ol_arg="$ol_val"
2610                 fi
2611         done
2612         if test "$ol_arg" = "invalid" ; then
2613                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2614 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2615    { (exit 1); exit 1; }; }
2616         fi
2617         ol_enable_modules="$ol_arg"
2618
2619 else
2620         ol_enable_modules="no"
2621 fi; # end --enable-modules
2622 ol_enable_multimaster=${ol_enable_multimaster-no}
2623 # OpenLDAP --enable-rewrite
2624         # Check whether --enable-rewrite or --disable-rewrite was given.
2625 if test "${enable_rewrite+set}" = set; then
2626   enableval="$enable_rewrite"
2627
2628         ol_arg=invalid
2629         for ol_val in auto yes no ; do
2630                 if test "$enableval" = "$ol_val" ; then
2631                         ol_arg="$ol_val"
2632                 fi
2633         done
2634         if test "$ol_arg" = "invalid" ; then
2635                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2636 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2637    { (exit 1); exit 1; }; }
2638         fi
2639         ol_enable_rewrite="$ol_arg"
2640
2641 else
2642         ol_enable_rewrite="auto"
2643 fi; # end --enable-rewrite
2644 # OpenLDAP --enable-rlookups
2645         # Check whether --enable-rlookups or --disable-rlookups was given.
2646 if test "${enable_rlookups+set}" = set; then
2647   enableval="$enable_rlookups"
2648
2649         ol_arg=invalid
2650         for ol_val in auto yes no ; do
2651                 if test "$enableval" = "$ol_val" ; then
2652                         ol_arg="$ol_val"
2653                 fi
2654         done
2655         if test "$ol_arg" = "invalid" ; then
2656                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2657 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2658    { (exit 1); exit 1; }; }
2659         fi
2660         ol_enable_rlookups="$ol_arg"
2661
2662 else
2663         ol_enable_rlookups="no"
2664 fi; # end --enable-rlookups
2665 # OpenLDAP --enable-slapi
2666         # Check whether --enable-slapi or --disable-slapi was given.
2667 if test "${enable_slapi+set}" = set; then
2668   enableval="$enable_slapi"
2669
2670         ol_arg=invalid
2671         for ol_val in auto yes no ; do
2672                 if test "$enableval" = "$ol_val" ; then
2673                         ol_arg="$ol_val"
2674                 fi
2675         done
2676         if test "$ol_arg" = "invalid" ; then
2677                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2678 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2679    { (exit 1); exit 1; }; }
2680         fi
2681         ol_enable_slapi="$ol_arg"
2682
2683 else
2684         ol_enable_slapi="no"
2685 fi; # end --enable-slapi
2686 # OpenLDAP --enable-slp
2687         # Check whether --enable-slp or --disable-slp was given.
2688 if test "${enable_slp+set}" = set; then
2689   enableval="$enable_slp"
2690
2691         ol_arg=invalid
2692         for ol_val in auto yes no ; do
2693                 if test "$enableval" = "$ol_val" ; then
2694                         ol_arg="$ol_val"
2695                 fi
2696         done
2697         if test "$ol_arg" = "invalid" ; then
2698                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2699 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2700    { (exit 1); exit 1; }; }
2701         fi
2702         ol_enable_slp="$ol_arg"
2703
2704 else
2705         ol_enable_slp="no"
2706 fi; # end --enable-slp
2707 # OpenLDAP --enable-wrappers
2708         # Check whether --enable-wrappers or --disable-wrappers was given.
2709 if test "${enable_wrappers+set}" = set; then
2710   enableval="$enable_wrappers"
2711
2712         ol_arg=invalid
2713         for ol_val in auto yes no ; do
2714                 if test "$enableval" = "$ol_val" ; then
2715                         ol_arg="$ol_val"
2716                 fi
2717         done
2718         if test "$ol_arg" = "invalid" ; then
2719                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2720 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2721    { (exit 1); exit 1; }; }
2722         fi
2723         ol_enable_wrappers="$ol_arg"
2724
2725 else
2726         ol_enable_wrappers="no"
2727 fi; # end --enable-wrappers
2728
2729 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
2730         passwd perl relay shell sql"
2731
2732
2733 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
2734 if test "${with_xxslapbackends+set}" = set; then
2735   withval="$with_xxslapbackends"
2736
2737 fi;
2738
2739 # OpenLDAP --enable-backends
2740         # Check whether --enable-backends or --disable-backends was given.
2741 if test "${enable_backends+set}" = set; then
2742   enableval="$enable_backends"
2743
2744         ol_arg=invalid
2745         for ol_val in no yes mod ; do
2746                 if test "$enableval" = "$ol_val" ; then
2747                         ol_arg="$ol_val"
2748                 fi
2749         done
2750         if test "$ol_arg" = "invalid" ; then
2751                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2752 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2753    { (exit 1); exit 1; }; }
2754         fi
2755         ol_enable_backends="$ol_arg"
2756
2757 fi; # end --enable-backends
2758 test -n "$ol_enable_backends" && ol_dflt_backends="$ol_enable_backends"
2759 # OpenLDAP --enable-bdb
2760         # Check whether --enable-bdb or --disable-bdb was given.
2761 if test "${enable_bdb+set}" = set; then
2762   enableval="$enable_bdb"
2763
2764         ol_arg=invalid
2765         for ol_val in no yes mod ; do
2766                 if test "$enableval" = "$ol_val" ; then
2767                         ol_arg="$ol_val"
2768                 fi
2769         done
2770         if test "$ol_arg" = "invalid" ; then
2771                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2772 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2773    { (exit 1); exit 1; }; }
2774         fi
2775         ol_enable_bdb="$ol_arg"
2776
2777 else
2778         ol_enable_bdb="${ol_dflt_backends-yes}"
2779 fi; # end --enable-bdb
2780 # OpenLDAP --enable-dnssrv
2781         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2782 if test "${enable_dnssrv+set}" = set; then
2783   enableval="$enable_dnssrv"
2784
2785         ol_arg=invalid
2786         for ol_val in no yes mod ; do
2787                 if test "$enableval" = "$ol_val" ; then
2788                         ol_arg="$ol_val"
2789                 fi
2790         done
2791         if test "$ol_arg" = "invalid" ; then
2792                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2793 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2794    { (exit 1); exit 1; }; }
2795         fi
2796         ol_enable_dnssrv="$ol_arg"
2797
2798 else
2799         ol_enable_dnssrv="${ol_dflt_backends-no}"
2800 fi; # end --enable-dnssrv
2801 # OpenLDAP --enable-hdb
2802         # Check whether --enable-hdb or --disable-hdb was given.
2803 if test "${enable_hdb+set}" = set; then
2804   enableval="$enable_hdb"
2805
2806         ol_arg=invalid
2807         for ol_val in no yes mod ; do
2808                 if test "$enableval" = "$ol_val" ; then
2809                         ol_arg="$ol_val"
2810                 fi
2811         done
2812         if test "$ol_arg" = "invalid" ; then
2813                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2814 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2815    { (exit 1); exit 1; }; }
2816         fi
2817         ol_enable_hdb="$ol_arg"
2818
2819 else
2820         ol_enable_hdb="${ol_dflt_backends-yes}"
2821 fi; # end --enable-hdb
2822 # OpenLDAP --enable-ldap
2823         # Check whether --enable-ldap or --disable-ldap was given.
2824 if test "${enable_ldap+set}" = set; then
2825   enableval="$enable_ldap"
2826
2827         ol_arg=invalid
2828         for ol_val in no yes mod ; do
2829                 if test "$enableval" = "$ol_val" ; then
2830                         ol_arg="$ol_val"
2831                 fi
2832         done
2833         if test "$ol_arg" = "invalid" ; then
2834                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2835 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2836    { (exit 1); exit 1; }; }
2837         fi
2838         ol_enable_ldap="$ol_arg"
2839
2840 else
2841         ol_enable_ldap="${ol_dflt_backends-no}"
2842 fi; # end --enable-ldap
2843 # OpenLDAP --enable-ldbm
2844         # Check whether --enable-ldbm or --disable-ldbm was given.
2845 if test "${enable_ldbm+set}" = set; then
2846   enableval="$enable_ldbm"
2847
2848         ol_arg=invalid
2849         for ol_val in no yes mod ; do
2850                 if test "$enableval" = "$ol_val" ; then
2851                         ol_arg="$ol_val"
2852                 fi
2853         done
2854         if test "$ol_arg" = "invalid" ; then
2855                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2856 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2857    { (exit 1); exit 1; }; }
2858         fi
2859         ol_enable_ldbm="$ol_arg"
2860
2861 else
2862         ol_enable_ldbm="${ol_dflt_backends-no}"
2863 fi; # end --enable-ldbm
2864 # OpenLDAP --with-ldbm_api
2865
2866 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2867 if test "${with_ldbm_api+set}" = set; then
2868   withval="$with_ldbm_api"
2869
2870         ol_arg=invalid
2871         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2872                 if test "$withval" = "$ol_val" ; then
2873                         ol_arg="$ol_val"
2874                 fi
2875         done
2876         if test "$ol_arg" = "invalid" ; then
2877                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_api" >&5
2878 echo "$as_me: error: bad value $withval for --with-ldbm_api" >&2;}
2879    { (exit 1); exit 1; }; }
2880         fi
2881         ol_with_ldbm_api="$ol_arg"
2882
2883 else
2884         ol_with_ldbm_api="auto"
2885 fi; # end --with-ldbm_api
2886
2887 # OpenLDAP --with-ldbm_type
2888
2889 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2890 if test "${with_ldbm_type+set}" = set; then
2891   withval="$with_ldbm_type"
2892
2893         ol_arg=invalid
2894         for ol_val in auto btree hash ; do
2895                 if test "$withval" = "$ol_val" ; then
2896                         ol_arg="$ol_val"
2897                 fi
2898         done
2899         if test "$ol_arg" = "invalid" ; then
2900                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_type" >&5
2901 echo "$as_me: error: bad value $withval for --with-ldbm_type" >&2;}
2902    { (exit 1); exit 1; }; }
2903         fi
2904         ol_with_ldbm_type="$ol_arg"
2905
2906 else
2907         ol_with_ldbm_type="auto"
2908 fi; # end --with-ldbm_type
2909
2910 # OpenLDAP --enable-meta
2911         # Check whether --enable-meta or --disable-meta was given.
2912 if test "${enable_meta+set}" = set; then
2913   enableval="$enable_meta"
2914
2915         ol_arg=invalid
2916         for ol_val in no yes mod ; do
2917                 if test "$enableval" = "$ol_val" ; then
2918                         ol_arg="$ol_val"
2919                 fi
2920         done
2921         if test "$ol_arg" = "invalid" ; then
2922                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2923 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2924    { (exit 1); exit 1; }; }
2925         fi
2926         ol_enable_meta="$ol_arg"
2927
2928 else
2929         ol_enable_meta="${ol_dflt_backends-no}"
2930 fi; # end --enable-meta
2931 # OpenLDAP --enable-monitor
2932         # Check whether --enable-monitor or --disable-monitor was given.
2933 if test "${enable_monitor+set}" = set; then
2934   enableval="$enable_monitor"
2935
2936         ol_arg=invalid
2937         for ol_val in no yes mod ; do
2938                 if test "$enableval" = "$ol_val" ; then
2939                         ol_arg="$ol_val"
2940                 fi
2941         done
2942         if test "$ol_arg" = "invalid" ; then
2943                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2944 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2945    { (exit 1); exit 1; }; }
2946         fi
2947         ol_enable_monitor="$ol_arg"
2948
2949 else
2950         ol_enable_monitor="${ol_dflt_backends-yes}"
2951 fi; # end --enable-monitor
2952 # OpenLDAP --enable-null
2953         # Check whether --enable-null or --disable-null was given.
2954 if test "${enable_null+set}" = set; then
2955   enableval="$enable_null"
2956
2957         ol_arg=invalid
2958         for ol_val in no yes mod ; do
2959                 if test "$enableval" = "$ol_val" ; then
2960                         ol_arg="$ol_val"
2961                 fi
2962         done
2963         if test "$ol_arg" = "invalid" ; then
2964                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2965 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2966    { (exit 1); exit 1; }; }
2967         fi
2968         ol_enable_null="$ol_arg"
2969
2970 else
2971         ol_enable_null="${ol_dflt_backends-no}"
2972 fi; # end --enable-null
2973 # OpenLDAP --enable-passwd
2974         # Check whether --enable-passwd or --disable-passwd was given.
2975 if test "${enable_passwd+set}" = set; then
2976   enableval="$enable_passwd"
2977
2978         ol_arg=invalid
2979         for ol_val in no yes mod ; do
2980                 if test "$enableval" = "$ol_val" ; then
2981                         ol_arg="$ol_val"
2982                 fi
2983         done
2984         if test "$ol_arg" = "invalid" ; then
2985                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2986 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2987    { (exit 1); exit 1; }; }
2988         fi
2989         ol_enable_passwd="$ol_arg"
2990
2991 else
2992         ol_enable_passwd="${ol_dflt_backends-no}"
2993 fi; # end --enable-passwd
2994 # OpenLDAP --enable-perl
2995         # Check whether --enable-perl or --disable-perl was given.
2996 if test "${enable_perl+set}" = set; then
2997   enableval="$enable_perl"
2998
2999         ol_arg=invalid
3000         for ol_val in no yes mod ; do
3001                 if test "$enableval" = "$ol_val" ; then
3002                         ol_arg="$ol_val"
3003                 fi
3004         done
3005         if test "$ol_arg" = "invalid" ; then
3006                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3007 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3008    { (exit 1); exit 1; }; }
3009         fi
3010         ol_enable_perl="$ol_arg"
3011
3012 else
3013         ol_enable_perl="${ol_dflt_backends-no}"
3014 fi; # end --enable-perl
3015 # OpenLDAP --enable-relay
3016         # Check whether --enable-relay or --disable-relay was given.
3017 if test "${enable_relay+set}" = set; then
3018   enableval="$enable_relay"
3019
3020         ol_arg=invalid
3021         for ol_val in no yes mod ; do
3022                 if test "$enableval" = "$ol_val" ; then
3023                         ol_arg="$ol_val"
3024                 fi
3025         done
3026         if test "$ol_arg" = "invalid" ; then
3027                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3028 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3029    { (exit 1); exit 1; }; }
3030         fi
3031         ol_enable_relay="$ol_arg"
3032
3033 else
3034         ol_enable_relay="${ol_dflt_backends-yes}"
3035 fi; # end --enable-relay
3036 # OpenLDAP --enable-shell
3037         # Check whether --enable-shell or --disable-shell was given.
3038 if test "${enable_shell+set}" = set; then
3039   enableval="$enable_shell"
3040
3041         ol_arg=invalid
3042         for ol_val in no yes mod ; do
3043                 if test "$enableval" = "$ol_val" ; then
3044                         ol_arg="$ol_val"
3045                 fi
3046         done
3047         if test "$ol_arg" = "invalid" ; then
3048                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3049 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3050    { (exit 1); exit 1; }; }
3051         fi
3052         ol_enable_shell="$ol_arg"
3053
3054 else
3055         ol_enable_shell="${ol_dflt_backends-no}"
3056 fi; # end --enable-shell
3057 # OpenLDAP --enable-sql
3058         # Check whether --enable-sql or --disable-sql was given.
3059 if test "${enable_sql+set}" = set; then
3060   enableval="$enable_sql"
3061
3062         ol_arg=invalid
3063         for ol_val in no yes mod ; do
3064                 if test "$enableval" = "$ol_val" ; then
3065                         ol_arg="$ol_val"
3066                 fi
3067         done
3068         if test "$ol_arg" = "invalid" ; then
3069                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3070 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3071    { (exit 1); exit 1; }; }
3072         fi
3073         ol_enable_sql="$ol_arg"
3074
3075 else
3076         ol_enable_sql="${ol_dflt_backends-no}"
3077 fi; # end --enable-sql
3078
3079 Overlays="accesslog denyop dyngroup dynlist glue lastmod ppolicy proxycache \
3080         refint retcode rwm syncprov translucent unique"
3081
3082
3083 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
3084 if test "${with_xxslapoverlays+set}" = set; then
3085   withval="$with_xxslapoverlays"
3086
3087 fi;
3088
3089 # OpenLDAP --enable-overlays
3090         # Check whether --enable-overlays or --disable-overlays was given.
3091 if test "${enable_overlays+set}" = set; then
3092   enableval="$enable_overlays"
3093
3094         ol_arg=invalid
3095         for ol_val in no yes mod ; do
3096                 if test "$enableval" = "$ol_val" ; then
3097                         ol_arg="$ol_val"
3098                 fi
3099         done
3100         if test "$ol_arg" = "invalid" ; then
3101                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3102 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3103    { (exit 1); exit 1; }; }
3104         fi
3105         ol_enable_overlays="$ol_arg"
3106
3107 fi; # end --enable-overlays
3108 test -n "$ol_enable_overlays" && ol_dflt_overlays="$ol_enable_overlays"
3109 # OpenLDAP --enable-accesslog
3110         # Check whether --enable-accesslog or --disable-accesslog was given.
3111 if test "${enable_accesslog+set}" = set; then
3112   enableval="$enable_accesslog"
3113
3114         ol_arg=invalid
3115         for ol_val in no yes mod ; do
3116                 if test "$enableval" = "$ol_val" ; then
3117                         ol_arg="$ol_val"
3118                 fi
3119         done
3120         if test "$ol_arg" = "invalid" ; then
3121                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3122 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3123    { (exit 1); exit 1; }; }
3124         fi
3125         ol_enable_accesslog="$ol_arg"
3126
3127 else
3128         ol_enable_accesslog="${ol_dflt_overlays-no}"
3129 fi; # end --enable-accesslog
3130
3131 # OpenLDAP --enable-denyop
3132         # Check whether --enable-denyop or --disable-denyop was given.
3133 if test "${enable_denyop+set}" = set; then
3134   enableval="$enable_denyop"
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-denyop" >&5
3144 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3145    { (exit 1); exit 1; }; }
3146         fi
3147         ol_enable_denyop="$ol_arg"
3148
3149 else
3150         ol_enable_denyop="${ol_dflt_overlays-no}"
3151 fi; # end --enable-denyop
3152
3153 # OpenLDAP --enable-dyngroup
3154         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3155 if test "${enable_dyngroup+set}" = set; then
3156   enableval="$enable_dyngroup"
3157
3158         ol_arg=invalid
3159         for ol_val in no yes mod ; do
3160                 if test "$enableval" = "$ol_val" ; then
3161                         ol_arg="$ol_val"
3162                 fi
3163         done
3164         if test "$ol_arg" = "invalid" ; then
3165                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3166 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3167    { (exit 1); exit 1; }; }
3168         fi
3169         ol_enable_dyngroup="$ol_arg"
3170
3171 else
3172         ol_enable_dyngroup="${ol_dflt_overlays-no}"
3173 fi; # end --enable-dyngroup
3174
3175 # OpenLDAP --enable-dynlist
3176         # Check whether --enable-dynlist or --disable-dynlist was given.
3177 if test "${enable_dynlist+set}" = set; then
3178   enableval="$enable_dynlist"
3179
3180         ol_arg=invalid
3181         for ol_val in no yes mod ; do
3182                 if test "$enableval" = "$ol_val" ; then
3183                         ol_arg="$ol_val"
3184                 fi
3185         done
3186         if test "$ol_arg" = "invalid" ; then
3187                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3188 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3189    { (exit 1); exit 1; }; }
3190         fi
3191         ol_enable_dynlist="$ol_arg"
3192
3193 else
3194         ol_enable_dynlist="${ol_dflt_overlays-no}"
3195 fi; # end --enable-dynlist
3196
3197 # OpenLDAP --enable-glue
3198         # Check whether --enable-glue or --disable-glue was given.
3199 if test "${enable_glue+set}" = set; then
3200   enableval="$enable_glue"
3201
3202         ol_arg=invalid
3203         for ol_val in no yes mod ; do
3204                 if test "$enableval" = "$ol_val" ; then
3205                         ol_arg="$ol_val"
3206                 fi
3207         done
3208         if test "$ol_arg" = "invalid" ; then
3209                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3210 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3211    { (exit 1); exit 1; }; }
3212         fi
3213         ol_enable_glue="$ol_arg"
3214
3215 else
3216         ol_enable_glue="${ol_dflt_overlays-yes}"
3217 fi; # end --enable-glue
3218
3219 # OpenLDAP --enable-lastmod
3220         # Check whether --enable-lastmod or --disable-lastmod was given.
3221 if test "${enable_lastmod+set}" = set; then
3222   enableval="$enable_lastmod"
3223
3224         ol_arg=invalid
3225         for ol_val in no yes mod ; do
3226                 if test "$enableval" = "$ol_val" ; then
3227                         ol_arg="$ol_val"
3228                 fi
3229         done
3230         if test "$ol_arg" = "invalid" ; then
3231                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3232 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3233    { (exit 1); exit 1; }; }
3234         fi
3235         ol_enable_lastmod="$ol_arg"
3236
3237 else
3238         ol_enable_lastmod="${ol_dflt_overlays-no}"
3239 fi; # end --enable-lastmod
3240
3241 # OpenLDAP --enable-ppolicy
3242         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3243 if test "${enable_ppolicy+set}" = set; then
3244   enableval="$enable_ppolicy"
3245
3246         ol_arg=invalid
3247         for ol_val in no yes mod ; do
3248                 if test "$enableval" = "$ol_val" ; then
3249                         ol_arg="$ol_val"
3250                 fi
3251         done
3252         if test "$ol_arg" = "invalid" ; then
3253                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3254 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3255    { (exit 1); exit 1; }; }
3256         fi
3257         ol_enable_ppolicy="$ol_arg"
3258
3259 else
3260         ol_enable_ppolicy="${ol_dflt_overlays-no}"
3261 fi; # end --enable-ppolicy
3262
3263 # OpenLDAP --enable-proxycache
3264         # Check whether --enable-proxycache or --disable-proxycache was given.
3265 if test "${enable_proxycache+set}" = set; then
3266   enableval="$enable_proxycache"
3267
3268         ol_arg=invalid
3269         for ol_val in no yes mod ; do
3270                 if test "$enableval" = "$ol_val" ; then
3271                         ol_arg="$ol_val"
3272                 fi
3273         done
3274         if test "$ol_arg" = "invalid" ; then
3275                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3276 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3277    { (exit 1); exit 1; }; }
3278         fi
3279         ol_enable_proxycache="$ol_arg"
3280
3281 else
3282         ol_enable_proxycache="${ol_dflt_overlays-no}"
3283 fi; # end --enable-proxycache
3284
3285 # OpenLDAP --enable-refint
3286         # Check whether --enable-refint or --disable-refint was given.
3287 if test "${enable_refint+set}" = set; then
3288   enableval="$enable_refint"
3289
3290         ol_arg=invalid
3291         for ol_val in no yes mod ; do
3292                 if test "$enableval" = "$ol_val" ; then
3293                         ol_arg="$ol_val"
3294                 fi
3295         done
3296         if test "$ol_arg" = "invalid" ; then
3297                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3298 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3299    { (exit 1); exit 1; }; }
3300         fi
3301         ol_enable_refint="$ol_arg"
3302
3303 else
3304         ol_enable_refint="${ol_dflt_overlays-no}"
3305 fi; # end --enable-refint
3306
3307 # OpenLDAP --enable-retcode
3308         # Check whether --enable-retcode or --disable-retcode was given.
3309 if test "${enable_retcode+set}" = set; then
3310   enableval="$enable_retcode"
3311
3312         ol_arg=invalid
3313         for ol_val in no yes mod ; do
3314                 if test "$enableval" = "$ol_val" ; then
3315                         ol_arg="$ol_val"
3316                 fi
3317         done
3318         if test "$ol_arg" = "invalid" ; then
3319                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3320 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3321    { (exit 1); exit 1; }; }
3322         fi
3323         ol_enable_retcode="$ol_arg"
3324
3325 else
3326         ol_enable_retcode="${ol_dflt_overlays-no}"
3327 fi; # end --enable-retcode
3328
3329 # OpenLDAP --enable-rwm
3330         # Check whether --enable-rwm or --disable-rwm was given.
3331 if test "${enable_rwm+set}" = set; then
3332   enableval="$enable_rwm"
3333
3334         ol_arg=invalid
3335         for ol_val in no yes mod ; do
3336                 if test "$enableval" = "$ol_val" ; then
3337                         ol_arg="$ol_val"
3338                 fi
3339         done
3340         if test "$ol_arg" = "invalid" ; then
3341                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3342 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3343    { (exit 1); exit 1; }; }
3344         fi
3345         ol_enable_rwm="$ol_arg"
3346
3347 else
3348         ol_enable_rwm="${ol_dflt_overlays-no}"
3349 fi; # end --enable-rwm
3350
3351 # OpenLDAP --enable-syncprov
3352         # Check whether --enable-syncprov or --disable-syncprov was given.
3353 if test "${enable_syncprov+set}" = set; then
3354   enableval="$enable_syncprov"
3355
3356         ol_arg=invalid
3357         for ol_val in no yes mod ; do
3358                 if test "$enableval" = "$ol_val" ; then
3359                         ol_arg="$ol_val"
3360                 fi
3361         done
3362         if test "$ol_arg" = "invalid" ; then
3363                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3364 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3365    { (exit 1); exit 1; }; }
3366         fi
3367         ol_enable_syncprov="$ol_arg"
3368
3369 else
3370         ol_enable_syncprov="${ol_dflt_overlays-yes}"
3371 fi; # end --enable-syncprov
3372
3373 # OpenLDAP --enable-translucent
3374         # Check whether --enable-translucent or --disable-translucent was given.
3375 if test "${enable_translucent+set}" = set; then
3376   enableval="$enable_translucent"
3377
3378         ol_arg=invalid
3379         for ol_val in no yes mod ; do
3380                 if test "$enableval" = "$ol_val" ; then
3381                         ol_arg="$ol_val"
3382                 fi
3383         done
3384         if test "$ol_arg" = "invalid" ; then
3385                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3386 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3387    { (exit 1); exit 1; }; }
3388         fi
3389         ol_enable_translucent="$ol_arg"
3390
3391 else
3392         ol_enable_translucent="${ol_dflt_overlays-no}"
3393 fi; # end --enable-translucent
3394
3395 # OpenLDAP --enable-unique
3396         # Check whether --enable-unique or --disable-unique was given.
3397 if test "${enable_unique+set}" = set; then
3398   enableval="$enable_unique"
3399
3400         ol_arg=invalid
3401         for ol_val in no yes mod ; do
3402                 if test "$enableval" = "$ol_val" ; then
3403                         ol_arg="$ol_val"
3404                 fi
3405         done
3406         if test "$ol_arg" = "invalid" ; then
3407                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3408 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3409    { (exit 1); exit 1; }; }
3410         fi
3411         ol_enable_unique="$ol_arg"
3412
3413 else
3414         ol_enable_unique="${ol_dflt_overlays-no}"
3415 fi; # end --enable-unique
3416
3417
3418
3419
3420 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
3421 if test "${with_xxslurpdoptions+set}" = set; then
3422   withval="$with_xxslurpdoptions"
3423
3424 fi;
3425 # OpenLDAP --enable-slurpd
3426         # Check whether --enable-slurpd or --disable-slurpd was given.
3427 if test "${enable_slurpd+set}" = set; then
3428   enableval="$enable_slurpd"
3429
3430         ol_arg=invalid
3431         for ol_val in auto yes no ; do
3432                 if test "$enableval" = "$ol_val" ; then
3433                         ol_arg="$ol_val"
3434                 fi
3435         done
3436         if test "$ol_arg" = "invalid" ; then
3437                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3438 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3439    { (exit 1); exit 1; }; }
3440         fi
3441         ol_enable_slurpd="$ol_arg"
3442
3443 else
3444         ol_enable_slurpd="auto"
3445 fi; # end --enable-slurpd
3446
3447
3448 # Check whether --with-xxliboptions or --without-xxliboptions was given.
3449 if test "${with_xxliboptions+set}" = set; then
3450   withval="$with_xxliboptions"
3451
3452 fi;
3453 # Check whether --enable-static or --disable-static was given.
3454 if test "${enable_static+set}" = set; then
3455   enableval="$enable_static"
3456   p=${PACKAGE-default}
3457     case $enableval in
3458     yes) enable_static=yes ;;
3459     no) enable_static=no ;;
3460     *)
3461      enable_static=no
3462       # Look at the argument we got.  We use all the common list separators.
3463       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3464       for pkg in $enableval; do
3465         IFS="$lt_save_ifs"
3466         if test "X$pkg" = "X$p"; then
3467           enable_static=yes
3468         fi
3469       done
3470       IFS="$lt_save_ifs"
3471       ;;
3472     esac
3473 else
3474   enable_static=yes
3475 fi;
3476
3477 # Check whether --enable-shared or --disable-shared was given.
3478 if test "${enable_shared+set}" = set; then
3479   enableval="$enable_shared"
3480   p=${PACKAGE-default}
3481     case $enableval in
3482     yes) enable_shared=yes ;;
3483     no) enable_shared=no ;;
3484     *)
3485       enable_shared=no
3486       # Look at the argument we got.  We use all the common list separators.
3487       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3488       for pkg in $enableval; do
3489         IFS="$lt_save_ifs"
3490         if test "X$pkg" = "X$p"; then
3491           enable_shared=yes
3492         fi
3493       done
3494       IFS="$lt_save_ifs"
3495       ;;
3496     esac
3497 else
3498   enable_shared=yes
3499 fi;
3500
3501
3502
3503 # validate options
3504 if test $ol_enable_slapd = no ; then
3505                 if test $ol_enable_slapi = yes ; then
3506                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3507 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3508         fi
3509         case "$ol_enable_backends" in yes | mod)
3510                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3511 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3512         esac
3513         for i in $Backends; do
3514                 eval "ol_tmp=\$ol_enable_$i"
3515                 if test $ol_tmp != no ; then
3516                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3517 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3518                         eval "ol_enable_$i=no"
3519                 fi
3520         done
3521         if test $ol_enable_modules = yes ; then
3522                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3523 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3524         fi
3525         if test $ol_enable_multimaster = yes ; then
3526                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3527 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3528         fi
3529         if test $ol_enable_wrappers = yes ; then
3530                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3531 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3532         fi
3533         if test $ol_enable_rlookups = yes ; then
3534                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3535 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3536         fi
3537         if test $ol_enable_aci = yes ; then
3538                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3539 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3540         fi
3541         if test $ol_with_ldbm_api != auto ; then
3542                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&5
3543 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&2;}
3544         fi
3545         if test $ol_with_ldbm_type != auto ; then
3546                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&5
3547 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&2;}
3548         fi
3549         if test $ol_enable_slurpd = yes ; then
3550                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3551 echo "$as_me: error: slurpd requires slapd" >&2;}
3552    { (exit 1); exit 1; }; }
3553         fi
3554         if test $ol_enable_rewrite = yes ; then
3555                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3556 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3557         fi
3558                 case "$ol_enable_overlays" in yes | mod)
3559                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3560 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3561         esac
3562         for i in $Overlays; do
3563                 eval "ol_tmp=\$ol_enable_$i"
3564                 if test $ol_tmp != no ; then
3565                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3566 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3567                         eval "ol_enable_$i=no"
3568                 fi
3569         done
3570
3571         # force settings to no
3572         ol_enable_slapi=no
3573
3574         ol_enable_backends=
3575         ol_enable_overlays=
3576         ol_enable_modules=no
3577         ol_enable_multimaster=no
3578         ol_enable_rlookups=no
3579         ol_enable_aci=no
3580         ol_enable_wrappers=no
3581
3582         ol_with_ldbm_api=no
3583         ol_with_ldbm_type=no
3584
3585         ol_enable_slurpd=no
3586
3587         ol_enable_rewrite=no
3588
3589 elif test $ol_enable_ldbm = no ; then
3590
3591         if test $ol_with_ldbm_api != auto ; then
3592                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&5
3593 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&2;}
3594         fi
3595
3596         if test $ol_with_ldbm_type != auto ; then
3597                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&5
3598 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&2;}
3599         fi
3600
3601         if test $ol_enable_modules != yes -a \
3602                 $ol_enable_bdb = no -a \
3603                 $ol_enable_dnssrv = no -a \
3604                 $ol_enable_hdb = no -a \
3605                 $ol_enable_ldap = no -a \
3606                 $ol_enable_meta = no -a \
3607                 $ol_enable_monitor = no -a \
3608                 $ol_enable_null = no -a \
3609                 $ol_enable_passwd = no -a \
3610                 $ol_enable_perl = no -a \
3611                 $ol_enable_relay = no -a \
3612                 $ol_enable_shell = no -a \
3613                 $ol_enable_sql = no ; then
3614
3615                 if test $ol_enable_slapd = yes ; then
3616                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3617 echo "$as_me: error: slapd requires a backend" >&2;}
3618    { (exit 1); exit 1; }; }
3619                 else
3620                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3621 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3622                         ol_enable_slapd=no
3623                 fi
3624         fi
3625
3626         ol_with_ldbm_api=no
3627         ol_with_ldbm_type=no
3628
3629         if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3630                 ol_with_ldbm_api=berkeley
3631         fi
3632
3633 else
3634                 if test $ol_with_ldbm_api = gdbm -a \
3635                 $ol_with_ldbm_type = btree ; then
3636                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3637 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3638    { (exit 1); exit 1; }; }
3639         fi
3640         if test $ol_with_ldbm_api = mdbm -a \
3641                 $ol_with_ldbm_type = btree ; then
3642                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3643 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3644    { (exit 1); exit 1; }; }
3645         fi
3646         if test $ol_with_ldbm_api = ndbm -a \
3647                 $ol_with_ldbm_type = btree ; then
3648                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3649 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3650    { (exit 1); exit 1; }; }
3651         fi
3652
3653         if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3654                 if test $ol_with_ldbm_api = auto ; then
3655                         ol_with_ldbm_api=berkeley
3656                 elif test $ol_with_ldbm_api != berkeley ; then
3657                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3658 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3659    { (exit 1); exit 1; }; }
3660                 fi
3661         fi
3662 fi
3663
3664 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3665         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3666 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3667    { (exit 1); exit 1; }; }
3668 fi
3669
3670 if test $ol_enable_slurpd = yes ; then
3671                 if test $ol_with_threads = no ; then
3672                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3673 echo "$as_me: error: slurpd requires threads" >&2;}
3674    { (exit 1); exit 1; }; }
3675         fi
3676 fi
3677
3678 if test $ol_enable_lmpasswd = yes ; then
3679         if test $ol_with_tls = no ; then
3680                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3681 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3682    { (exit 1); exit 1; }; }
3683         fi
3684 fi
3685
3686 if test $ol_enable_kbind = yes ; then
3687         if test $ol_with_kerberos = no ; then
3688                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3689 echo "$as_me: error: options require --with-kerberos" >&2;}
3690    { (exit 1); exit 1; }; }
3691         elif test $ol_with_kerberos = auto ; then
3692                 ol_with_kerberos=yes
3693         fi
3694
3695 elif test $ol_enable_kbind = no ; then
3696         if test $ol_with_kerberos = auto ; then
3697                 ol_with_kerberos=no
3698         elif test $ol_with_kerberos != no ; then
3699                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3700 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3701                 ol_with_kerberos=no
3702         fi
3703 fi
3704
3705 if test $ol_enable_spasswd = yes ; then
3706         if test $ol_with_cyrus_sasl = no ; then
3707                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3708 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3709    { (exit 1); exit 1; }; }
3710         fi
3711         ol_with_cyrus_sasl=yes
3712 fi
3713
3714 echo "$as_me:$LINENO: result: done" >&5
3715 echo "${ECHO_T}done" >&6
3716
3717 LDAP_LIBS=
3718 LDBM_LIBS=
3719 LTHREAD_LIBS=
3720 LUTIL_LIBS=
3721
3722 SLAPD_LIBS=
3723 SLURPD_LIBS=
3724
3725 BUILD_SLAPD=no
3726 BUILD_SLURPD=no
3727
3728 BUILD_THREAD=no
3729
3730 BUILD_SLAPI=no
3731 SLAPD_SLAPI_DEPEND=
3732
3733 BUILD_BDB=no
3734 BUILD_DNSSRV=no
3735 BUILD_HDB=no
3736 BUILD_LDAP=no
3737 BUILD_LDBM=no
3738 BUILD_META=no
3739 BUILD_MONITOR=no
3740 BUILD_NULL=no
3741 BUILD_PASSWD=no
3742 BUILD_PERL=no
3743 BUILD_RELAY=no
3744 BUILD_SHELL=no
3745 BUILD_SQL=no
3746
3747 BUILD_ACCESSLOG=no
3748 BUILD_DENYOP=no
3749 BUILD_DYNGROUP=no
3750 BUILD_DYNLIST=no
3751 BUILD_GLUE=no
3752 BUILD_LASTMOD=no
3753 BUILD_PPOLICY=no
3754 BUILD_PROXYCACHE=no
3755 BUILD_REFINT=no
3756 BUILD_RETCODE=no
3757 BUILD_RWM=no
3758 BUILD_SYNCPROV=no
3759 BUILD_TRANSLUCENT=no
3760 BUILD_UNIQUE=no
3761
3762 SLAPD_STATIC_OVERLAYS=
3763 SLAPD_DYNAMIC_OVERLAYS=
3764
3765 SLAPD_MODULES_LDFLAGS=
3766 SLAPD_MODULES_CPPFLAGS=
3767
3768 SLAPD_STATIC_BACKENDS=back-ldif
3769 SLAPD_DYNAMIC_BACKENDS=
3770
3771 SLAPD_PERL_LDFLAGS=
3772 MOD_PERL_LDFLAGS=
3773 PERL_CPPFLAGS=
3774
3775 SLAPD_SQL_LDFLAGS=
3776 SLAPD_SQL_LIBS=
3777 SLAPD_SQL_INCLUDES=
3778
3779 KRB4_LIBS=
3780 KRB5_LIBS=
3781 SASL_LIBS=
3782 TLS_LIBS=
3783 MODULES_LIBS=
3784 SLAPI_LIBS=
3785 LIBSLAPI=
3786 LIBSLAPITOOLS=
3787 AUTH_LIBS=
3788
3789 SLAPD_SLP_LIBS=
3790 SLAPD_GMP_LIBS=
3791
3792
3793
3794 cat >>confdefs.h <<\_ACEOF
3795 #define HAVE_MKVERSION 1
3796 _ACEOF
3797
3798
3799
3800
3801 ol_aix_threads=no
3802 case "$target" in
3803 *-*-aix*)       if test -z "$CC" ; then
3804                 case "$ol_with_threads" in
3805                 auto | yes |  posix) ol_aix_threads=yes ;;
3806                 esac
3807         fi
3808 ;;
3809 esac
3810
3811 if test $ol_aix_threads = yes ; then
3812         if test -z "${CC}" ; then
3813                 for ac_prog in cc_r xlc_r cc
3814 do
3815   # Extract the first word of "$ac_prog", so it can be a program name with args.
3816 set dummy $ac_prog; ac_word=$2
3817 echo "$as_me:$LINENO: checking for $ac_word" >&5
3818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3819 if test "${ac_cv_prog_CC+set}" = set; then
3820   echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822   if test -n "$CC"; then
3823   ac_cv_prog_CC="$CC" # Let the user override the test.
3824 else
3825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826 for as_dir in $PATH
3827 do
3828   IFS=$as_save_IFS
3829   test -z "$as_dir" && as_dir=.
3830   for ac_exec_ext in '' $ac_executable_extensions; do
3831   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3832     ac_cv_prog_CC="$ac_prog"
3833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3834     break 2
3835   fi
3836 done
3837 done
3838
3839 fi
3840 fi
3841 CC=$ac_cv_prog_CC
3842 if test -n "$CC"; then
3843   echo "$as_me:$LINENO: result: $CC" >&5
3844 echo "${ECHO_T}$CC" >&6
3845 else
3846   echo "$as_me:$LINENO: result: no" >&5
3847 echo "${ECHO_T}no" >&6
3848 fi
3849
3850   test -n "$CC" && break
3851 done
3852
3853
3854                 if test "$CC" = cc ; then
3855                                                 if test $ol_with_threads != auto ; then
3856                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3857 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3858    { (exit 1); exit 1; }; }
3859                         else
3860                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3861 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3862                         fi
3863                         ol_with_threads=no
3864                 fi
3865         fi
3866
3867         if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3868                 ol_with_threads=posix
3869                 ol_cv_pthread_create=yes
3870         fi
3871 fi
3872
3873 if test -z "${CC}"; then
3874         for ac_prog in cc gcc
3875 do
3876   # Extract the first word of "$ac_prog", so it can be a program name with args.
3877 set dummy $ac_prog; ac_word=$2
3878 echo "$as_me:$LINENO: checking for $ac_word" >&5
3879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3880 if test "${ac_cv_prog_CC+set}" = set; then
3881   echo $ECHO_N "(cached) $ECHO_C" >&6
3882 else
3883   if test -n "$CC"; then
3884   ac_cv_prog_CC="$CC" # Let the user override the test.
3885 else
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3888 do
3889   IFS=$as_save_IFS
3890   test -z "$as_dir" && as_dir=.
3891   for ac_exec_ext in '' $ac_executable_extensions; do
3892   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3893     ac_cv_prog_CC="$ac_prog"
3894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3895     break 2
3896   fi
3897 done
3898 done
3899
3900 fi
3901 fi
3902 CC=$ac_cv_prog_CC
3903 if test -n "$CC"; then
3904   echo "$as_me:$LINENO: result: $CC" >&5
3905 echo "${ECHO_T}$CC" >&6
3906 else
3907   echo "$as_me:$LINENO: result: no" >&5
3908 echo "${ECHO_T}no" >&6
3909 fi
3910
3911   test -n "$CC" && break
3912 done
3913 test -n "$CC" || CC="missing"
3914
3915
3916         if test "${CC}" = "missing" ; then
3917                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
3918 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
3919    { (exit 1); exit 1; }; }
3920         fi
3921 fi
3922
3923 if test -z "${AR}"; then
3924         for ac_prog in ar gar
3925 do
3926   # Extract the first word of "$ac_prog", so it can be a program name with args.
3927 set dummy $ac_prog; ac_word=$2
3928 echo "$as_me:$LINENO: checking for $ac_word" >&5
3929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3930 if test "${ac_cv_prog_AR+set}" = set; then
3931   echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933   if test -n "$AR"; then
3934   ac_cv_prog_AR="$AR" # Let the user override the test.
3935 else
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH
3938 do
3939   IFS=$as_save_IFS
3940   test -z "$as_dir" && as_dir=.
3941   for ac_exec_ext in '' $ac_executable_extensions; do
3942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3943     ac_cv_prog_AR="$ac_prog"
3944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3945     break 2
3946   fi
3947 done
3948 done
3949
3950 fi
3951 fi
3952 AR=$ac_cv_prog_AR
3953 if test -n "$AR"; then
3954   echo "$as_me:$LINENO: result: $AR" >&5
3955 echo "${ECHO_T}$AR" >&6
3956 else
3957   echo "$as_me:$LINENO: result: no" >&5
3958 echo "${ECHO_T}no" >&6
3959 fi
3960
3961   test -n "$AR" && break
3962 done
3963 test -n "$AR" || AR="missing"
3964
3965
3966         if test "${AR}" = "missing" ; then
3967                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
3968 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
3969    { (exit 1); exit 1; }; }
3970         fi
3971 fi
3972
3973
3974
3975
3976
3977 # Check whether --enable-fast-install or --disable-fast-install was given.
3978 if test "${enable_fast_install+set}" = set; then
3979   enableval="$enable_fast_install"
3980   p=${PACKAGE-default}
3981     case $enableval in
3982     yes) enable_fast_install=yes ;;
3983     no) enable_fast_install=no ;;
3984     *)
3985       enable_fast_install=no
3986       # Look at the argument we got.  We use all the common list separators.
3987       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3988       for pkg in $enableval; do
3989         IFS="$lt_save_ifs"
3990         if test "X$pkg" = "X$p"; then
3991           enable_fast_install=yes
3992         fi
3993       done
3994       IFS="$lt_save_ifs"
3995       ;;
3996     esac
3997 else
3998   enable_fast_install=yes
3999 fi;
4000
4001 DEPDIR="${am__leading_dot}deps"
4002
4003           ac_config_commands="$ac_config_commands depfiles"
4004
4005
4006 am_make=${MAKE-make}
4007 cat > confinc << 'END'
4008 am__doit:
4009         @echo done
4010 .PHONY: am__doit
4011 END
4012 # If we don't find an include directive, just comment out the code.
4013 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4014 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4015 am__include="#"
4016 am__quote=
4017 _am_result=none
4018 # First try GNU make style include.
4019 echo "include confinc" > confmf
4020 # We grep out `Entering directory' and `Leaving directory'
4021 # messages which can occur if `w' ends up in MAKEFLAGS.
4022 # In particular we don't look at `^make:' because GNU make might
4023 # be invoked under some other name (usually "gmake"), in which
4024 # case it prints its new name instead of `make'.
4025 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4026    am__include=include
4027    am__quote=
4028    _am_result=GNU
4029 fi
4030 # Now try BSD make style include.
4031 if test "$am__include" = "#"; then
4032    echo '.include "confinc"' > confmf
4033    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4034       am__include=.include
4035       am__quote="\""
4036       _am_result=BSD
4037    fi
4038 fi
4039
4040
4041 echo "$as_me:$LINENO: result: $_am_result" >&5
4042 echo "${ECHO_T}$_am_result" >&6
4043 rm -f confinc confmf
4044
4045 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4046 if test "${enable_dependency_tracking+set}" = set; then
4047   enableval="$enable_dependency_tracking"
4048
4049 fi;
4050 if test "x$enable_dependency_tracking" != xno; then
4051   am_depcomp="$ac_aux_dir/depcomp"
4052   AMDEPBACKSLASH='\'
4053 fi
4054
4055
4056 if test "x$enable_dependency_tracking" != xno; then
4057   AMDEP_TRUE=
4058   AMDEP_FALSE='#'
4059 else
4060   AMDEP_TRUE='#'
4061   AMDEP_FALSE=
4062 fi
4063
4064
4065
4066 ac_ext=c
4067 ac_cpp='$CPP $CPPFLAGS'
4068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4071 if test -n "$ac_tool_prefix"; then
4072   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4073 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4074 echo "$as_me:$LINENO: checking for $ac_word" >&5
4075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4076 if test "${ac_cv_prog_CC+set}" = set; then
4077   echo $ECHO_N "(cached) $ECHO_C" >&6
4078 else
4079   if test -n "$CC"; then
4080   ac_cv_prog_CC="$CC" # Let the user override the test.
4081 else
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH
4084 do
4085   IFS=$as_save_IFS
4086   test -z "$as_dir" && as_dir=.
4087   for ac_exec_ext in '' $ac_executable_extensions; do
4088   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4091     break 2
4092   fi
4093 done
4094 done
4095
4096 fi
4097 fi
4098 CC=$ac_cv_prog_CC
4099 if test -n "$CC"; then
4100   echo "$as_me:$LINENO: result: $CC" >&5
4101 echo "${ECHO_T}$CC" >&6
4102 else
4103   echo "$as_me:$LINENO: result: no" >&5
4104 echo "${ECHO_T}no" >&6
4105 fi
4106
4107 fi
4108 if test -z "$ac_cv_prog_CC"; then
4109   ac_ct_CC=$CC
4110   # Extract the first word of "gcc", so it can be a program name with args.
4111 set dummy gcc; ac_word=$2
4112 echo "$as_me:$LINENO: checking for $ac_word" >&5
4113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4114 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4115   echo $ECHO_N "(cached) $ECHO_C" >&6
4116 else
4117   if test -n "$ac_ct_CC"; then
4118   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4119 else
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4122 do
4123   IFS=$as_save_IFS
4124   test -z "$as_dir" && as_dir=.
4125   for ac_exec_ext in '' $ac_executable_extensions; do
4126   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4127     ac_cv_prog_ac_ct_CC="gcc"
4128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4129     break 2
4130   fi
4131 done
4132 done
4133
4134 fi
4135 fi
4136 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4137 if test -n "$ac_ct_CC"; then
4138   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4139 echo "${ECHO_T}$ac_ct_CC" >&6
4140 else
4141   echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6
4143 fi
4144
4145   CC=$ac_ct_CC
4146 else
4147   CC="$ac_cv_prog_CC"
4148 fi
4149
4150 if test -z "$CC"; then
4151   if test -n "$ac_tool_prefix"; then
4152   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4153 set dummy ${ac_tool_prefix}cc; ac_word=$2
4154 echo "$as_me:$LINENO: checking for $ac_word" >&5
4155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4156 if test "${ac_cv_prog_CC+set}" = set; then
4157   echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159   if test -n "$CC"; then
4160   ac_cv_prog_CC="$CC" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4164 do
4165   IFS=$as_save_IFS
4166   test -z "$as_dir" && as_dir=.
4167   for ac_exec_ext in '' $ac_executable_extensions; do
4168   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169     ac_cv_prog_CC="${ac_tool_prefix}cc"
4170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171     break 2
4172   fi
4173 done
4174 done
4175
4176 fi
4177 fi
4178 CC=$ac_cv_prog_CC
4179 if test -n "$CC"; then
4180   echo "$as_me:$LINENO: result: $CC" >&5
4181 echo "${ECHO_T}$CC" >&6
4182 else
4183   echo "$as_me:$LINENO: result: no" >&5
4184 echo "${ECHO_T}no" >&6
4185 fi
4186
4187 fi
4188 if test -z "$ac_cv_prog_CC"; then
4189   ac_ct_CC=$CC
4190   # Extract the first word of "cc", so it can be a program name with args.
4191 set dummy cc; ac_word=$2
4192 echo "$as_me:$LINENO: checking for $ac_word" >&5
4193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4195   echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197   if test -n "$ac_ct_CC"; then
4198   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4199 else
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4202 do
4203   IFS=$as_save_IFS
4204   test -z "$as_dir" && as_dir=.
4205   for ac_exec_ext in '' $ac_executable_extensions; do
4206   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4207     ac_cv_prog_ac_ct_CC="cc"
4208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4209     break 2
4210   fi
4211 done
4212 done
4213
4214 fi
4215 fi
4216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4217 if test -n "$ac_ct_CC"; then
4218   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4219 echo "${ECHO_T}$ac_ct_CC" >&6
4220 else
4221   echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6
4223 fi
4224
4225   CC=$ac_ct_CC
4226 else
4227   CC="$ac_cv_prog_CC"
4228 fi
4229
4230 fi
4231 if test -z "$CC"; then
4232   # Extract the first word of "cc", so it can be a program name with args.
4233 set dummy cc; ac_word=$2
4234 echo "$as_me:$LINENO: checking for $ac_word" >&5
4235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4236 if test "${ac_cv_prog_CC+set}" = set; then
4237   echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239   if test -n "$CC"; then
4240   ac_cv_prog_CC="$CC" # Let the user override the test.
4241 else
4242   ac_prog_rejected=no
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246   IFS=$as_save_IFS
4247   test -z "$as_dir" && as_dir=.
4248   for ac_exec_ext in '' $ac_executable_extensions; do
4249   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4250     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4251        ac_prog_rejected=yes
4252        continue
4253      fi
4254     ac_cv_prog_CC="cc"
4255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4256     break 2
4257   fi
4258 done
4259 done
4260
4261 if test $ac_prog_rejected = yes; then
4262   # We found a bogon in the path, so make sure we never use it.
4263   set dummy $ac_cv_prog_CC
4264   shift
4265   if test $# != 0; then
4266     # We chose a different compiler from the bogus one.
4267     # However, it has the same basename, so the bogon will be chosen
4268     # first if we set CC to just the basename; use the full file name.
4269     shift
4270     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4271   fi
4272 fi
4273 fi
4274 fi
4275 CC=$ac_cv_prog_CC
4276 if test -n "$CC"; then
4277   echo "$as_me:$LINENO: result: $CC" >&5
4278 echo "${ECHO_T}$CC" >&6
4279 else
4280   echo "$as_me:$LINENO: result: no" >&5
4281 echo "${ECHO_T}no" >&6
4282 fi
4283
4284 fi
4285 if test -z "$CC"; then
4286   if test -n "$ac_tool_prefix"; then
4287   for ac_prog in cl
4288   do
4289     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4291 echo "$as_me:$LINENO: checking for $ac_word" >&5
4292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4293 if test "${ac_cv_prog_CC+set}" = set; then
4294   echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296   if test -n "$CC"; then
4297   ac_cv_prog_CC="$CC" # Let the user override the test.
4298 else
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4301 do
4302   IFS=$as_save_IFS
4303   test -z "$as_dir" && as_dir=.
4304   for ac_exec_ext in '' $ac_executable_extensions; do
4305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4306     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308     break 2
4309   fi
4310 done
4311 done
4312
4313 fi
4314 fi
4315 CC=$ac_cv_prog_CC
4316 if test -n "$CC"; then
4317   echo "$as_me:$LINENO: result: $CC" >&5
4318 echo "${ECHO_T}$CC" >&6
4319 else
4320   echo "$as_me:$LINENO: result: no" >&5
4321 echo "${ECHO_T}no" >&6
4322 fi
4323
4324     test -n "$CC" && break
4325   done
4326 fi
4327 if test -z "$CC"; then
4328   ac_ct_CC=$CC
4329   for ac_prog in cl
4330 do
4331   # Extract the first word of "$ac_prog", so it can be a program name with args.
4332 set dummy $ac_prog; ac_word=$2
4333 echo "$as_me:$LINENO: checking for $ac_word" >&5
4334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4335 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4336   echo $ECHO_N "(cached) $ECHO_C" >&6
4337 else
4338   if test -n "$ac_ct_CC"; then
4339   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4340 else
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 for as_dir in $PATH
4343 do
4344   IFS=$as_save_IFS
4345   test -z "$as_dir" && as_dir=.
4346   for ac_exec_ext in '' $ac_executable_extensions; do
4347   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4348     ac_cv_prog_ac_ct_CC="$ac_prog"
4349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4350     break 2
4351   fi
4352 done
4353 done
4354
4355 fi
4356 fi
4357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4358 if test -n "$ac_ct_CC"; then
4359   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4360 echo "${ECHO_T}$ac_ct_CC" >&6
4361 else
4362   echo "$as_me:$LINENO: result: no" >&5
4363 echo "${ECHO_T}no" >&6
4364 fi
4365
4366   test -n "$ac_ct_CC" && break
4367 done
4368
4369   CC=$ac_ct_CC
4370 fi
4371
4372 fi
4373
4374
4375 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4376 See \`config.log' for more details." >&5
4377 echo "$as_me: error: no acceptable C compiler found in \$PATH
4378 See \`config.log' for more details." >&2;}
4379    { (exit 1); exit 1; }; }
4380
4381 # Provide some information about the compiler.
4382 echo "$as_me:$LINENO:" \
4383      "checking for C compiler version" >&5
4384 ac_compiler=`set X $ac_compile; echo $2`
4385 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4386   (eval $ac_compiler --version </dev/null >&5) 2>&5
4387   ac_status=$?
4388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389   (exit $ac_status); }
4390 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4391   (eval $ac_compiler -v </dev/null >&5) 2>&5
4392   ac_status=$?
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); }
4395 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4396   (eval $ac_compiler -V </dev/null >&5) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }
4400
4401 cat >conftest.$ac_ext <<_ACEOF
4402 /* confdefs.h.  */
4403 _ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h.  */
4407
4408 int
4409 main ()
4410 {
4411
4412   ;
4413   return 0;
4414 }
4415 _ACEOF
4416 ac_clean_files_save=$ac_clean_files
4417 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4418 # Try to create an executable without -o first, disregard a.out.
4419 # It will help us diagnose broken compilers, and finding out an intuition
4420 # of exeext.
4421 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4422 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4423 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4424 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4425   (eval $ac_link_default) 2>&5
4426   ac_status=$?
4427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428   (exit $ac_status); }; then
4429   # Find the output, starting from the most likely.  This scheme is
4430 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4431 # resort.
4432
4433 # Be careful to initialize this variable, since it used to be cached.
4434 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4435 ac_cv_exeext=
4436 # b.out is created by i960 compilers.
4437 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4438 do
4439   test -f "$ac_file" || continue
4440   case $ac_file in
4441     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4442         ;;
4443     conftest.$ac_ext )
4444         # This is the source file.
4445         ;;
4446     [ab].out )
4447         # We found the default executable, but exeext='' is most
4448         # certainly right.
4449         break;;
4450     *.* )
4451         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4452         # FIXME: I believe we export ac_cv_exeext for Libtool,
4453         # but it would be cool to find out if it's true.  Does anybody
4454         # maintain Libtool? --akim.
4455         export ac_cv_exeext
4456         break;;
4457     * )
4458         break;;
4459   esac
4460 done
4461 else
4462   echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4464
4465 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4466 See \`config.log' for more details." >&5
4467 echo "$as_me: error: C compiler cannot create executables
4468 See \`config.log' for more details." >&2;}
4469    { (exit 77); exit 77; }; }
4470 fi
4471
4472 ac_exeext=$ac_cv_exeext
4473 echo "$as_me:$LINENO: result: $ac_file" >&5
4474 echo "${ECHO_T}$ac_file" >&6
4475
4476 # Check the compiler produces executables we can run.  If not, either
4477 # the compiler is broken, or we cross compile.
4478 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4479 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4480 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4481 # If not cross compiling, check that we can run a simple program.
4482 if test "$cross_compiling" != yes; then
4483   if { ac_try='./$ac_file'
4484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485   (eval $ac_try) 2>&5
4486   ac_status=$?
4487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488   (exit $ac_status); }; }; then
4489     cross_compiling=no
4490   else
4491     if test "$cross_compiling" = maybe; then
4492         cross_compiling=yes
4493     else
4494         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4495 If you meant to cross compile, use \`--host'.
4496 See \`config.log' for more details." >&5
4497 echo "$as_me: error: cannot run C compiled programs.
4498 If you meant to cross compile, use \`--host'.
4499 See \`config.log' for more details." >&2;}
4500    { (exit 1); exit 1; }; }
4501     fi
4502   fi
4503 fi
4504 echo "$as_me:$LINENO: result: yes" >&5
4505 echo "${ECHO_T}yes" >&6
4506
4507 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4508 ac_clean_files=$ac_clean_files_save
4509 # Check the compiler produces executables we can run.  If not, either
4510 # the compiler is broken, or we cross compile.
4511 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4512 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4513 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4514 echo "${ECHO_T}$cross_compiling" >&6
4515
4516 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4517 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4519   (eval $ac_link) 2>&5
4520   ac_status=$?
4521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); }; then
4523   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4524 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4525 # work properly (i.e., refer to `conftest.exe'), while it won't with
4526 # `rm'.
4527 for ac_file in conftest.exe conftest conftest.*; do
4528   test -f "$ac_file" || continue
4529   case $ac_file in
4530     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4531     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4532           export ac_cv_exeext
4533           break;;
4534     * ) break;;
4535   esac
4536 done
4537 else
4538   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4539 See \`config.log' for more details." >&5
4540 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4541 See \`config.log' for more details." >&2;}
4542    { (exit 1); exit 1; }; }
4543 fi
4544
4545 rm -f conftest$ac_cv_exeext
4546 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4547 echo "${ECHO_T}$ac_cv_exeext" >&6
4548
4549 rm -f conftest.$ac_ext
4550 EXEEXT=$ac_cv_exeext
4551 ac_exeext=$EXEEXT
4552 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4553 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4554 if test "${ac_cv_objext+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   cat >conftest.$ac_ext <<_ACEOF
4558 /* confdefs.h.  */
4559 _ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h.  */
4563
4564 int
4565 main ()
4566 {
4567
4568   ;
4569   return 0;
4570 }
4571 _ACEOF
4572 rm -f conftest.o conftest.obj
4573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4574   (eval $ac_compile) 2>&5
4575   ac_status=$?
4576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); }; then
4578   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4579   case $ac_file in
4580     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4581     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4582        break;;
4583   esac
4584 done
4585 else
4586   echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4588
4589 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4590 See \`config.log' for more details." >&5
4591 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4592 See \`config.log' for more details." >&2;}
4593    { (exit 1); exit 1; }; }
4594 fi
4595
4596 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4597 fi
4598 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4599 echo "${ECHO_T}$ac_cv_objext" >&6
4600 OBJEXT=$ac_cv_objext
4601 ac_objext=$OBJEXT
4602 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4603 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4604 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4605   echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607   cat >conftest.$ac_ext <<_ACEOF
4608 /* confdefs.h.  */
4609 _ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h.  */
4613
4614 int
4615 main ()
4616 {
4617 #ifndef __GNUC__
4618        choke me
4619 #endif
4620
4621   ;
4622   return 0;
4623 }
4624 _ACEOF
4625 rm -f conftest.$ac_objext
4626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4627   (eval $ac_compile) 2>conftest.er1
4628   ac_status=$?
4629   grep -v '^ *+' conftest.er1 >conftest.err
4630   rm -f conftest.er1
4631   cat conftest.err >&5
4632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633   (exit $ac_status); } &&
4634          { ac_try='test -z "$ac_c_werror_flag"
4635                          || test ! -s conftest.err'
4636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637   (eval $ac_try) 2>&5
4638   ac_status=$?
4639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640   (exit $ac_status); }; } &&
4641          { ac_try='test -s conftest.$ac_objext'
4642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643   (eval $ac_try) 2>&5
4644   ac_status=$?
4645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646   (exit $ac_status); }; }; then
4647   ac_compiler_gnu=yes
4648 else
4649   echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.$ac_ext >&5
4651
4652 ac_compiler_gnu=no
4653 fi
4654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4655 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4656
4657 fi
4658 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4659 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4660 GCC=`test $ac_compiler_gnu = yes && echo yes`
4661 ac_test_CFLAGS=${CFLAGS+set}
4662 ac_save_CFLAGS=$CFLAGS
4663 CFLAGS="-g"
4664 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4665 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4666 if test "${ac_cv_prog_cc_g+set}" = set; then
4667   echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669   cat >conftest.$ac_ext <<_ACEOF
4670 /* confdefs.h.  */
4671 _ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h.  */
4675
4676 int
4677 main ()
4678 {
4679
4680   ;
4681   return 0;
4682 }
4683 _ACEOF
4684 rm -f conftest.$ac_objext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686   (eval $ac_compile) 2>conftest.er1
4687   ac_status=$?
4688   grep -v '^ *+' conftest.er1 >conftest.err
4689   rm -f conftest.er1
4690   cat conftest.err >&5
4691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); } &&
4693          { ac_try='test -z "$ac_c_werror_flag"
4694                          || test ! -s conftest.err'
4695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696   (eval $ac_try) 2>&5
4697   ac_status=$?
4698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); }; } &&
4700          { ac_try='test -s conftest.$ac_objext'
4701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702   (eval $ac_try) 2>&5
4703   ac_status=$?
4704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); }; }; then
4706   ac_cv_prog_cc_g=yes
4707 else
4708   echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4710
4711 ac_cv_prog_cc_g=no
4712 fi
4713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4714 fi
4715 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4716 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4717 if test "$ac_test_CFLAGS" = set; then
4718   CFLAGS=$ac_save_CFLAGS
4719 elif test $ac_cv_prog_cc_g = yes; then
4720   if test "$GCC" = yes; then
4721     CFLAGS="-g -O2"
4722   else
4723     CFLAGS="-g"
4724   fi
4725 else
4726   if test "$GCC" = yes; then
4727     CFLAGS="-O2"
4728   else
4729     CFLAGS=
4730   fi
4731 fi
4732 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4733 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4734 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4735   echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737   ac_cv_prog_cc_stdc=no
4738 ac_save_CC=$CC
4739 cat >conftest.$ac_ext <<_ACEOF
4740 /* confdefs.h.  */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h.  */
4745 #include <stdarg.h>
4746 #include <stdio.h>
4747 #include <sys/types.h>
4748 #include <sys/stat.h>
4749 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4750 struct buf { int x; };
4751 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4752 static char *e (p, i)
4753      char **p;
4754      int i;
4755 {
4756   return p[i];
4757 }
4758 static char *f (char * (*g) (char **, int), char **p, ...)
4759 {
4760   char *s;
4761   va_list v;
4762   va_start (v,p);
4763   s = g (p, va_arg (v,int));
4764   va_end (v);
4765   return s;
4766 }
4767
4768 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4769    function prototypes and stuff, but not '\xHH' hex character constants.
4770    These don't provoke an error unfortunately, instead are silently treated
4771    as 'x'.  The following induces an error, until -std1 is added to get
4772    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4773    array size at least.  It's necessary to write '\x00'==0 to get something
4774    that's true only with -std1.  */
4775 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4776
4777 int test (int i, double x);
4778 struct s1 {int (*f) (int a);};
4779 struct s2 {int (*f) (double a);};
4780 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4781 int argc;
4782 char **argv;
4783 int
4784 main ()
4785 {
4786 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4787   ;
4788   return 0;
4789 }
4790 _ACEOF
4791 # Don't try gcc -ansi; that turns off useful extensions and
4792 # breaks some systems' header files.
4793 # AIX                   -qlanglvl=ansi
4794 # Ultrix and OSF/1      -std1
4795 # HP-UX 10.20 and later -Ae
4796 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4797 # SVR4                  -Xc -D__EXTENSIONS__
4798 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4799 do
4800   CC="$ac_save_CC $ac_arg"
4801   rm -f conftest.$ac_objext
4802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4803   (eval $ac_compile) 2>conftest.er1
4804   ac_status=$?
4805   grep -v '^ *+' conftest.er1 >conftest.err
4806   rm -f conftest.er1
4807   cat conftest.err >&5
4808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809   (exit $ac_status); } &&
4810          { ac_try='test -z "$ac_c_werror_flag"
4811                          || test ! -s conftest.err'
4812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813   (eval $ac_try) 2>&5
4814   ac_status=$?
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); }; } &&
4817          { ac_try='test -s conftest.$ac_objext'
4818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819   (eval $ac_try) 2>&5
4820   ac_status=$?
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); }; }; then
4823   ac_cv_prog_cc_stdc=$ac_arg
4824 break
4825 else
4826   echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4828
4829 fi
4830 rm -f conftest.err conftest.$ac_objext
4831 done
4832 rm -f conftest.$ac_ext conftest.$ac_objext
4833 CC=$ac_save_CC
4834
4835 fi
4836
4837 case "x$ac_cv_prog_cc_stdc" in
4838   x|xno)
4839     echo "$as_me:$LINENO: result: none needed" >&5
4840 echo "${ECHO_T}none needed" >&6 ;;
4841   *)
4842     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4843 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4844     CC="$CC $ac_cv_prog_cc_stdc" ;;
4845 esac
4846
4847 # Some people use a C++ compiler to compile C.  Since we use `exit',
4848 # in C++ we need to declare it.  In case someone uses the same compiler
4849 # for both compiling C and C++ we need to have the C++ compiler decide
4850 # the declaration of exit, since it's the most demanding environment.
4851 cat >conftest.$ac_ext <<_ACEOF
4852 #ifndef __cplusplus
4853   choke me
4854 #endif
4855 _ACEOF
4856 rm -f conftest.$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858   (eval $ac_compile) 2>conftest.er1
4859   ac_status=$?
4860   grep -v '^ *+' conftest.er1 >conftest.err
4861   rm -f conftest.er1
4862   cat conftest.err >&5
4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); } &&
4865          { ac_try='test -z "$ac_c_werror_flag"
4866                          || test ! -s conftest.err'
4867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868   (eval $ac_try) 2>&5
4869   ac_status=$?
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); }; } &&
4872          { ac_try='test -s conftest.$ac_objext'
4873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874   (eval $ac_try) 2>&5
4875   ac_status=$?
4876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877   (exit $ac_status); }; }; then
4878   for ac_declaration in \
4879    '' \
4880    'extern "C" void std::exit (int) throw (); using std::exit;' \
4881    'extern "C" void std::exit (int); using std::exit;' \
4882    'extern "C" void exit (int) throw ();' \
4883    'extern "C" void exit (int);' \
4884    'void exit (int);'
4885 do
4886   cat >conftest.$ac_ext <<_ACEOF
4887 /* confdefs.h.  */
4888 _ACEOF
4889 cat confdefs.h >>conftest.$ac_ext
4890 cat >>conftest.$ac_ext <<_ACEOF
4891 /* end confdefs.h.  */
4892 $ac_declaration
4893 #include <stdlib.h>
4894 int
4895 main ()
4896 {
4897 exit (42);
4898   ;
4899   return 0;
4900 }
4901 _ACEOF
4902 rm -f conftest.$ac_objext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904   (eval $ac_compile) 2>conftest.er1
4905   ac_status=$?
4906   grep -v '^ *+' conftest.er1 >conftest.err
4907   rm -f conftest.er1
4908   cat conftest.err >&5
4909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910   (exit $ac_status); } &&
4911          { ac_try='test -z "$ac_c_werror_flag"
4912                          || test ! -s conftest.err'
4913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914   (eval $ac_try) 2>&5
4915   ac_status=$?
4916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917   (exit $ac_status); }; } &&
4918          { ac_try='test -s conftest.$ac_objext'
4919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920   (eval $ac_try) 2>&5
4921   ac_status=$?
4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); }; }; then
4924   :
4925 else
4926   echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4928
4929 continue
4930 fi
4931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4932   cat >conftest.$ac_ext <<_ACEOF
4933 /* confdefs.h.  */
4934 _ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h.  */
4938 $ac_declaration
4939 int
4940 main ()
4941 {
4942 exit (42);
4943   ;
4944   return 0;
4945 }
4946 _ACEOF
4947 rm -f conftest.$ac_objext
4948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4949   (eval $ac_compile) 2>conftest.er1
4950   ac_status=$?
4951   grep -v '^ *+' conftest.er1 >conftest.err
4952   rm -f conftest.er1
4953   cat conftest.err >&5
4954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955   (exit $ac_status); } &&
4956          { ac_try='test -z "$ac_c_werror_flag"
4957                          || test ! -s conftest.err'
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); }; } &&
4963          { ac_try='test -s conftest.$ac_objext'
4964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965   (eval $ac_try) 2>&5
4966   ac_status=$?
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); }; }; then
4969   break
4970 else
4971   echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.$ac_ext >&5
4973
4974 fi
4975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4976 done
4977 rm -f conftest*
4978 if test -n "$ac_declaration"; then
4979   echo '#ifdef __cplusplus' >>confdefs.h
4980   echo $ac_declaration      >>confdefs.h
4981   echo '#endif'             >>confdefs.h
4982 fi
4983
4984 else
4985   echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4987
4988 fi
4989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4990 ac_ext=c
4991 ac_cpp='$CPP $CPPFLAGS'
4992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4995
4996 depcc="$CC"   am_compiler_list=
4997
4998 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4999 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5000 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5001   echo $ECHO_N "(cached) $ECHO_C" >&6
5002 else
5003   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5004   # We make a subdir and do the tests there.  Otherwise we can end up
5005   # making bogus files that we don't know about and never remove.  For
5006   # instance it was reported that on HP-UX the gcc test will end up
5007   # making a dummy file named `D' -- because `-MD' means `put the output
5008   # in D'.
5009   mkdir conftest.dir
5010   # Copy depcomp to subdir because otherwise we won't find it if we're
5011   # using a relative directory.
5012   cp "$am_depcomp" conftest.dir
5013   cd conftest.dir
5014   # We will build objects and dependencies in a subdirectory because
5015   # it helps to detect inapplicable dependency modes.  For instance
5016   # both Tru64's cc and ICC support -MD to output dependencies as a
5017   # side effect of compilation, but ICC will put the dependencies in
5018   # the current directory while Tru64 will put them in the object
5019   # directory.
5020   mkdir sub
5021
5022   am_cv_CC_dependencies_compiler_type=none
5023   if test "$am_compiler_list" = ""; then
5024      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5025   fi
5026   for depmode in $am_compiler_list; do
5027     # Setup a source with many dependencies, because some compilers
5028     # like to wrap large dependency lists on column 80 (with \), and
5029     # we should not choose a depcomp mode which is confused by this.
5030     #
5031     # We need to recreate these files for each test, as the compiler may
5032     # overwrite some of them when testing with obscure command lines.
5033     # This happens at least with the AIX C compiler.
5034     : > sub/conftest.c
5035     for i in 1 2 3 4 5 6; do
5036       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5037       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5038       # Solaris 8's {/usr,}/bin/sh.
5039       touch sub/conftst$i.h
5040     done
5041     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5042
5043     case $depmode in
5044     nosideeffect)
5045       # after this tag, mechanisms are not by side-effect, so they'll
5046       # only be used when explicitly requested
5047       if test "x$enable_dependency_tracking" = xyes; then
5048         continue
5049       else
5050         break
5051       fi
5052       ;;
5053     none) break ;;
5054     esac
5055     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5056     # mode.  It turns out that the SunPro C++ compiler does not properly
5057     # handle `-M -o', and we need to detect this.
5058     if depmode=$depmode \
5059        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5060        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5061        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5062          >/dev/null 2>conftest.err &&
5063        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5064        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5065        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5066       # icc doesn't choke on unknown options, it will just issue warnings
5067       # or remarks (even with -Werror).  So we grep stderr for any message
5068       # that says an option was ignored or not supported.
5069       # When given -MP, icc 7.0 and 7.1 complain thusly:
5070       #   icc: Command line warning: ignoring option '-M'; no argument required
5071       # The diagnosis changed in icc 8.0:
5072       #   icc: Command line remark: option '-MP' not supported
5073       if (grep 'ignoring option' conftest.err ||
5074           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5075         am_cv_CC_dependencies_compiler_type=$depmode
5076         break
5077       fi
5078     fi
5079   done
5080
5081   cd ..
5082   rm -rf conftest.dir
5083 else
5084   am_cv_CC_dependencies_compiler_type=none
5085 fi
5086
5087 fi
5088 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5089 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5090 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5091
5092
5093
5094 if
5095   test "x$enable_dependency_tracking" != xno \
5096   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5097   am__fastdepCC_TRUE=
5098   am__fastdepCC_FALSE='#'
5099 else
5100   am__fastdepCC_TRUE='#'
5101   am__fastdepCC_FALSE=
5102 fi
5103
5104
5105 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5106 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5107 if test "${lt_cv_path_SED+set}" = set; then
5108   echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110   # Loop through the user's path and test for sed and gsed.
5111 # Then use that list of sed's as ones to test for truncation.
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5114 do
5115   IFS=$as_save_IFS
5116   test -z "$as_dir" && as_dir=.
5117   for lt_ac_prog in sed gsed; do
5118     for ac_exec_ext in '' $ac_executable_extensions; do
5119       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5120         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5121       fi
5122     done
5123   done
5124 done
5125 lt_ac_max=0
5126 lt_ac_count=0
5127 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5128 # along with /bin/sed that truncates output.
5129 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5130   test ! -f $lt_ac_sed && continue
5131   cat /dev/null > conftest.in
5132   lt_ac_count=0
5133   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5134   # Check for GNU sed and select it if it is found.
5135   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5136     lt_cv_path_SED=$lt_ac_sed
5137     break
5138   fi
5139   while true; do
5140     cat conftest.in conftest.in >conftest.tmp
5141     mv conftest.tmp conftest.in
5142     cp conftest.in conftest.nl
5143     echo >>conftest.nl
5144     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5145     cmp -s conftest.out conftest.nl || break
5146     # 10000 chars as input seems more than enough
5147     test $lt_ac_count -gt 10 && break
5148     lt_ac_count=`expr $lt_ac_count + 1`
5149     if test $lt_ac_count -gt $lt_ac_max; then
5150       lt_ac_max=$lt_ac_count
5151       lt_cv_path_SED=$lt_ac_sed
5152     fi
5153   done
5154 done
5155
5156 fi
5157
5158 SED=$lt_cv_path_SED
5159 echo "$as_me:$LINENO: result: $SED" >&5
5160 echo "${ECHO_T}$SED" >&6
5161
5162 echo "$as_me:$LINENO: checking for egrep" >&5
5163 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5164 if test "${ac_cv_prog_egrep+set}" = set; then
5165   echo $ECHO_N "(cached) $ECHO_C" >&6
5166 else
5167   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5168     then ac_cv_prog_egrep='grep -E'
5169     else ac_cv_prog_egrep='egrep'
5170     fi
5171 fi
5172 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5173 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5174  EGREP=$ac_cv_prog_egrep
5175
5176
5177
5178 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5179 if test "${with_gnu_ld+set}" = set; then
5180   withval="$with_gnu_ld"
5181   test "$withval" = no || with_gnu_ld=yes
5182 else
5183   with_gnu_ld=no
5184 fi;
5185 ac_prog=ld
5186 if test "$GCC" = yes; then
5187   # Check if gcc -print-prog-name=ld gives a path.
5188   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5189 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5190   case $host in
5191   *-*-mingw*)
5192     # gcc leaves a trailing carriage return which upsets mingw
5193     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5194   *)
5195     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5196   esac
5197   case $ac_prog in
5198     # Accept absolute paths.
5199     [\\/]* | ?:[\\/]*)
5200       re_direlt='/[^/][^/]*/\.\./'
5201       # Canonicalize the pathname of ld
5202       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5203       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5204         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5205       done
5206       test -z "$LD" && LD="$ac_prog"
5207       ;;
5208   "")
5209     # If it fails, then pretend we aren't using GCC.
5210     ac_prog=ld
5211     ;;
5212   *)
5213     # If it is relative, then search for the first ld in PATH.
5214     with_gnu_ld=unknown
5215     ;;
5216   esac
5217 elif test "$with_gnu_ld" = yes; then
5218   echo "$as_me:$LINENO: checking for GNU ld" >&5
5219 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5220 else
5221   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5222 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5223 fi
5224 if test "${lt_cv_path_LD+set}" = set; then
5225   echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227   if test -z "$LD"; then
5228   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5229   for ac_dir in $PATH; do
5230     IFS="$lt_save_ifs"
5231     test -z "$ac_dir" && ac_dir=.
5232     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5233       lt_cv_path_LD="$ac_dir/$ac_prog"
5234       # Check to see if the program is GNU ld.  I'd rather use --version,
5235       # but apparently some GNU ld's only accept -v.
5236       # Break only if it was the GNU/non-GNU ld that we prefer.
5237       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5238       *GNU* | *'with BFD'*)
5239         test "$with_gnu_ld" != no && break
5240         ;;
5241       *)
5242         test "$with_gnu_ld" != yes && break
5243         ;;
5244       esac
5245     fi
5246   done
5247   IFS="$lt_save_ifs"
5248 else
5249   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5250 fi
5251 fi
5252
5253 LD="$lt_cv_path_LD"
5254 if test -n "$LD"; then
5255   echo "$as_me:$LINENO: result: $LD" >&5
5256 echo "${ECHO_T}$LD" >&6
5257 else
5258   echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6
5260 fi
5261 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5262 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5263    { (exit 1); exit 1; }; }
5264 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5265 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5266 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5270 case `$LD -v 2>&1 </dev/null` in
5271 *GNU* | *'with BFD'*)
5272   lt_cv_prog_gnu_ld=yes
5273   ;;
5274 *)
5275   lt_cv_prog_gnu_ld=no
5276   ;;
5277 esac
5278 fi
5279 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5280 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5281 with_gnu_ld=$lt_cv_prog_gnu_ld
5282
5283
5284 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5285 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5286 if test "${lt_cv_ld_reload_flag+set}" = set; then
5287   echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289   lt_cv_ld_reload_flag='-r'
5290 fi
5291 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5292 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5293 reload_flag=$lt_cv_ld_reload_flag
5294 case $reload_flag in
5295 "" | " "*) ;;
5296 *) reload_flag=" $reload_flag" ;;
5297 esac
5298 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5299 case $host_os in
5300   darwin*)
5301     if test "$GCC" = yes; then
5302       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5303     else
5304       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5305     fi
5306     ;;
5307 esac
5308
5309 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5310 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5311 if test "${lt_cv_path_NM+set}" = set; then
5312   echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314   if test -n "$NM"; then
5315   # Let the user override the test.
5316   lt_cv_path_NM="$NM"
5317 else
5318   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5319   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5320     IFS="$lt_save_ifs"
5321     test -z "$ac_dir" && ac_dir=.
5322     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5323     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5324       # Check to see if the nm accepts a BSD-compat flag.
5325       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5326       #   nm: unknown option "B" ignored
5327       # Tru64's nm complains that /dev/null is an invalid object file
5328       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5329       */dev/null* | *'Invalid file or object type'*)
5330         lt_cv_path_NM="$tmp_nm -B"
5331         break
5332         ;;
5333       *)
5334         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5335         */dev/null*)
5336           lt_cv_path_NM="$tmp_nm -p"
5337           break
5338           ;;
5339         *)
5340           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5341           continue # so that we can try to find one that supports BSD flags
5342           ;;
5343         esac
5344       esac
5345     fi
5346   done
5347   IFS="$lt_save_ifs"
5348   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5349 fi
5350 fi
5351 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5352 echo "${ECHO_T}$lt_cv_path_NM" >&6
5353 NM="$lt_cv_path_NM"
5354
5355 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5356 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5357 LN_S=$as_ln_s
5358 if test "$LN_S" = "ln -s"; then
5359   echo "$as_me:$LINENO: result: yes" >&5
5360 echo "${ECHO_T}yes" >&6
5361 else
5362   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5363 echo "${ECHO_T}no, using $LN_S" >&6
5364 fi
5365
5366 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5367 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5368 if test "${lt_cv_deplibs_check_method+set}" = set; then
5369   echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371   lt_cv_file_magic_cmd='$MAGIC_CMD'
5372 lt_cv_file_magic_test_file=
5373 lt_cv_deplibs_check_method='unknown'
5374 # Need to set the preceding variable on all platforms that support
5375 # interlibrary dependencies.
5376 # 'none' -- dependencies not supported.
5377 # `unknown' -- same as none, but documents that we really don't know.
5378 # 'pass_all' -- all dependencies passed with no checks.
5379 # 'test_compile' -- check by making test program.
5380 # 'file_magic [[regex]]' -- check by looking for files in library path
5381 # which responds to the $file_magic_cmd with a given extended regex.
5382 # If you have `file' or equivalent on your system and you're not sure
5383 # whether `pass_all' will *always* work, you probably want this one.
5384
5385 case $host_os in
5386 aix4* | aix5*)
5387   lt_cv_deplibs_check_method=pass_all
5388   ;;
5389
5390 beos*)
5391   lt_cv_deplibs_check_method=pass_all
5392   ;;
5393
5394 bsdi[45]*)
5395   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5396   lt_cv_file_magic_cmd='/usr/bin/file -L'
5397   lt_cv_file_magic_test_file=/shlib/libc.so
5398   ;;
5399
5400 cygwin*)
5401   # func_win32_libid is a shell function defined in ltmain.sh
5402   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5403   lt_cv_file_magic_cmd='func_win32_libid'
5404   ;;
5405
5406 mingw* | pw32*)
5407   # Base MSYS/MinGW do not provide the 'file' command needed by
5408   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5409   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5410   lt_cv_file_magic_cmd='$OBJDUMP -f'
5411   ;;
5412
5413 darwin* | rhapsody*)
5414   lt_cv_deplibs_check_method=pass_all
5415   ;;
5416
5417 freebsd* | kfreebsd*-gnu | dragonfly*)
5418   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5419     case $host_cpu in
5420     i*86 )
5421       # Not sure whether the presence of OpenBSD here was a mistake.
5422       # Let's accept both of them until this is cleared up.
5423       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5424       lt_cv_file_magic_cmd=/usr/bin/file
5425       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5426       ;;
5427     esac
5428   else
5429     lt_cv_deplibs_check_method=pass_all
5430   fi
5431   ;;
5432
5433 gnu*)
5434   lt_cv_deplibs_check_method=pass_all
5435   ;;
5436
5437 hpux10.20* | hpux11*)
5438   lt_cv_file_magic_cmd=/usr/bin/file
5439   case "$host_cpu" in
5440   ia64*)
5441     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5442     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5443     ;;
5444   hppa*64*)
5445     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]'
5446     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5447     ;;
5448   *)
5449     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5450     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5451     ;;
5452   esac
5453   ;;
5454
5455 irix5* | irix6* | nonstopux*)
5456   case $LD in
5457   *-32|*"-32 ") libmagic=32-bit;;
5458   *-n32|*"-n32 ") libmagic=N32;;
5459   *-64|*"-64 ") libmagic=64-bit;;
5460   *) libmagic=never-match;;
5461   esac
5462   lt_cv_deplibs_check_method=pass_all
5463   ;;
5464
5465 # This must be Linux ELF.
5466 linux*)
5467   lt_cv_deplibs_check_method=pass_all
5468   ;;
5469
5470 netbsd*)
5471   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5472     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5473   else
5474     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5475   fi
5476   ;;
5477
5478 newos6*)
5479   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5480   lt_cv_file_magic_cmd=/usr/bin/file
5481   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5482   ;;
5483
5484 nto-qnx*)
5485   lt_cv_deplibs_check_method=unknown
5486   ;;
5487
5488 openbsd*)
5489   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5490     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5491   else
5492     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5493   fi
5494   ;;
5495
5496 osf3* | osf4* | osf5*)
5497   lt_cv_deplibs_check_method=pass_all
5498   ;;
5499
5500 sco3.2v5*)
5501   lt_cv_deplibs_check_method=pass_all
5502   ;;
5503
5504 solaris*)
5505   lt_cv_deplibs_check_method=pass_all
5506   ;;
5507
5508 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5509   case $host_vendor in
5510   motorola)
5511     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]'
5512     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5513     ;;
5514   ncr)
5515     lt_cv_deplibs_check_method=pass_all
5516     ;;
5517   sequent)
5518     lt_cv_file_magic_cmd='/bin/file'
5519     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5520     ;;
5521   sni)
5522     lt_cv_file_magic_cmd='/bin/file'
5523     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5524     lt_cv_file_magic_test_file=/lib/libc.so
5525     ;;
5526   siemens)
5527     lt_cv_deplibs_check_method=pass_all
5528     ;;
5529   esac
5530   ;;
5531
5532 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5533   lt_cv_deplibs_check_method=pass_all
5534   ;;
5535 esac
5536
5537 fi
5538 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5539 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5540 file_magic_cmd=$lt_cv_file_magic_cmd
5541 deplibs_check_method=$lt_cv_deplibs_check_method
5542 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5543
5544
5545
5546
5547 # If no C compiler was specified, use CC.
5548 LTCC=${LTCC-"$CC"}
5549
5550 # Allow CC to be a program name with arguments.
5551 compiler=$CC
5552
5553
5554 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5555 if test "${enable_libtool_lock+set}" = set; then
5556   enableval="$enable_libtool_lock"
5557
5558 fi;
5559 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5560
5561 # Some flags need to be propagated to the compiler or linker for good
5562 # libtool support.
5563 case $host in
5564 ia64-*-hpux*)
5565   # Find out which ABI we are using.
5566   echo 'int i;' > conftest.$ac_ext
5567   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5568   (eval $ac_compile) 2>&5
5569   ac_status=$?
5570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571   (exit $ac_status); }; then
5572     case `/usr/bin/file conftest.$ac_objext` in
5573     *ELF-32*)
5574       HPUX_IA64_MODE="32"
5575       ;;
5576     *ELF-64*)
5577       HPUX_IA64_MODE="64"
5578       ;;
5579     esac
5580   fi
5581   rm -rf conftest*
5582   ;;
5583 *-*-irix6*)
5584   # Find out which ABI we are using.
5585   echo '#line 5585 "configure"' > conftest.$ac_ext
5586   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5587   (eval $ac_compile) 2>&5
5588   ac_status=$?
5589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590   (exit $ac_status); }; then
5591    if test "$lt_cv_prog_gnu_ld" = yes; then
5592     case `/usr/bin/file conftest.$ac_objext` in
5593     *32-bit*)
5594       LD="${LD-ld} -melf32bsmip"
5595       ;;
5596     *N32*)
5597       LD="${LD-ld} -melf32bmipn32"
5598       ;;
5599     *64-bit*)
5600       LD="${LD-ld} -melf64bmip"
5601       ;;
5602     esac
5603    else
5604     case `/usr/bin/file conftest.$ac_objext` in
5605     *32-bit*)
5606       LD="${LD-ld} -32"
5607       ;;
5608     *N32*)
5609       LD="${LD-ld} -n32"
5610       ;;
5611     *64-bit*)
5612       LD="${LD-ld} -64"
5613       ;;
5614     esac
5615    fi
5616   fi
5617   rm -rf conftest*
5618   ;;
5619
5620 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5621   # Find out which ABI we are using.
5622   echo 'int i;' > conftest.$ac_ext
5623   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5624   (eval $ac_compile) 2>&5
5625   ac_status=$?
5626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627   (exit $ac_status); }; then
5628     case "`/usr/bin/file conftest.o`" in
5629     *32-bit*)
5630       case $host in
5631         x86_64-*linux*)
5632           LD="${LD-ld} -m elf_i386"
5633           ;;
5634         ppc64-*linux*|powerpc64-*linux*)
5635           LD="${LD-ld} -m elf32ppclinux"
5636           ;;
5637         s390x-*linux*)
5638           LD="${LD-ld} -m elf_s390"
5639           ;;
5640         sparc64-*linux*)
5641           LD="${LD-ld} -m elf32_sparc"
5642           ;;
5643       esac
5644       ;;
5645     *64-bit*)
5646       case $host in
5647         x86_64-*linux*)
5648           LD="${LD-ld} -m elf_x86_64"
5649           ;;
5650         ppc*-*linux*|powerpc*-*linux*)
5651           LD="${LD-ld} -m elf64ppc"
5652           ;;
5653         s390*-*linux*)
5654           LD="${LD-ld} -m elf64_s390"
5655           ;;
5656         sparc*-*linux*)
5657           LD="${LD-ld} -m elf64_sparc"
5658           ;;
5659       esac
5660       ;;
5661     esac
5662   fi
5663   rm -rf conftest*
5664   ;;
5665
5666 *-*-sco3.2v5*)
5667   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5668   SAVE_CFLAGS="$CFLAGS"
5669   CFLAGS="$CFLAGS -belf"
5670   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5671 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5672 if test "${lt_cv_cc_needs_belf+set}" = set; then
5673   echo $ECHO_N "(cached) $ECHO_C" >&6
5674 else
5675   ac_ext=c
5676 ac_cpp='$CPP $CPPFLAGS'
5677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5680
5681      cat >conftest.$ac_ext <<_ACEOF
5682 /* confdefs.h.  */
5683 _ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h.  */
5687
5688 int
5689 main ()
5690 {
5691
5692   ;
5693   return 0;
5694 }
5695 _ACEOF
5696 rm -f conftest.$ac_objext conftest$ac_exeext
5697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5698   (eval $ac_link) 2>conftest.er1
5699   ac_status=$?
5700   grep -v '^ *+' conftest.er1 >conftest.err
5701   rm -f conftest.er1
5702   cat conftest.err >&5
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); } &&
5705          { ac_try='test -z "$ac_c_werror_flag"
5706                          || test ! -s conftest.err'
5707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708   (eval $ac_try) 2>&5
5709   ac_status=$?
5710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711   (exit $ac_status); }; } &&
5712          { ac_try='test -s conftest$ac_exeext'
5713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714   (eval $ac_try) 2>&5
5715   ac_status=$?
5716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717   (exit $ac_status); }; }; then
5718   lt_cv_cc_needs_belf=yes
5719 else
5720   echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5722
5723 lt_cv_cc_needs_belf=no
5724 fi
5725 rm -f conftest.err conftest.$ac_objext \
5726       conftest$ac_exeext conftest.$ac_ext
5727      ac_ext=c
5728 ac_cpp='$CPP $CPPFLAGS'
5729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5732
5733 fi
5734 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5735 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5736   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5737     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5738     CFLAGS="$SAVE_CFLAGS"
5739   fi
5740   ;;
5741 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5742   if test -n "$ac_tool_prefix"; then
5743   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5744 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5745 echo "$as_me:$LINENO: checking for $ac_word" >&5
5746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5747 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5748   echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750   if test -n "$DLLTOOL"; then
5751   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5752 else
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5755 do
5756   IFS=$as_save_IFS
5757   test -z "$as_dir" && as_dir=.
5758   for ac_exec_ext in '' $ac_executable_extensions; do
5759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5760     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5762     break 2
5763   fi
5764 done
5765 done
5766
5767 fi
5768 fi
5769 DLLTOOL=$ac_cv_prog_DLLTOOL
5770 if test -n "$DLLTOOL"; then
5771   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5772 echo "${ECHO_T}$DLLTOOL" >&6
5773 else
5774   echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6
5776 fi
5777
5778 fi
5779 if test -z "$ac_cv_prog_DLLTOOL"; then
5780   ac_ct_DLLTOOL=$DLLTOOL
5781   # Extract the first word of "dlltool", so it can be a program name with args.
5782 set dummy dlltool; ac_word=$2
5783 echo "$as_me:$LINENO: checking for $ac_word" >&5
5784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5785 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5786   echo $ECHO_N "(cached) $ECHO_C" >&6
5787 else
5788   if test -n "$ac_ct_DLLTOOL"; then
5789   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5790 else
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 for as_dir in $PATH
5793 do
5794   IFS=$as_save_IFS
5795   test -z "$as_dir" && as_dir=.
5796   for ac_exec_ext in '' $ac_executable_extensions; do
5797   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5798     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5800     break 2
5801   fi
5802 done
5803 done
5804
5805   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5806 fi
5807 fi
5808 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5809 if test -n "$ac_ct_DLLTOOL"; then
5810   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5811 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5812 else
5813   echo "$as_me:$LINENO: result: no" >&5
5814 echo "${ECHO_T}no" >&6
5815 fi
5816
5817   DLLTOOL=$ac_ct_DLLTOOL
5818 else
5819   DLLTOOL="$ac_cv_prog_DLLTOOL"
5820 fi
5821
5822   if test -n "$ac_tool_prefix"; then
5823   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5824 set dummy ${ac_tool_prefix}as; ac_word=$2
5825 echo "$as_me:$LINENO: checking for $ac_word" >&5
5826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5827 if test "${ac_cv_prog_AS+set}" = set; then
5828   echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830   if test -n "$AS"; then
5831   ac_cv_prog_AS="$AS" # Let the user override the test.
5832 else
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 for as_dir in $PATH
5835 do
5836   IFS=$as_save_IFS
5837   test -z "$as_dir" && as_dir=.
5838   for ac_exec_ext in '' $ac_executable_extensions; do
5839   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5840     ac_cv_prog_AS="${ac_tool_prefix}as"
5841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5842     break 2
5843   fi
5844 done
5845 done
5846
5847 fi
5848 fi
5849 AS=$ac_cv_prog_AS
5850 if test -n "$AS"; then
5851   echo "$as_me:$LINENO: result: $AS" >&5
5852 echo "${ECHO_T}$AS" >&6
5853 else
5854   echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6
5856 fi
5857
5858 fi
5859 if test -z "$ac_cv_prog_AS"; then
5860   ac_ct_AS=$AS
5861   # Extract the first word of "as", so it can be a program name with args.
5862 set dummy as; ac_word=$2
5863 echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5865 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5866   echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868   if test -n "$ac_ct_AS"; then
5869   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5870 else
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5873 do
5874   IFS=$as_save_IFS
5875   test -z "$as_dir" && as_dir=.
5876   for ac_exec_ext in '' $ac_executable_extensions; do
5877   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5878     ac_cv_prog_ac_ct_AS="as"
5879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880     break 2
5881   fi
5882 done
5883 done
5884
5885   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5886 fi
5887 fi
5888 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5889 if test -n "$ac_ct_AS"; then
5890   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5891 echo "${ECHO_T}$ac_ct_AS" >&6
5892 else
5893   echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6
5895 fi
5896
5897   AS=$ac_ct_AS
5898 else
5899   AS="$ac_cv_prog_AS"
5900 fi
5901
5902   if test -n "$ac_tool_prefix"; then
5903   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5904 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5905 echo "$as_me:$LINENO: checking for $ac_word" >&5
5906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5907 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5908   echo $ECHO_N "(cached) $ECHO_C" >&6
5909 else
5910   if test -n "$OBJDUMP"; then
5911   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5912 else
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 for as_dir in $PATH
5915 do
5916   IFS=$as_save_IFS
5917   test -z "$as_dir" && as_dir=.
5918   for ac_exec_ext in '' $ac_executable_extensions; do
5919   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5920     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922     break 2
5923   fi
5924 done
5925 done
5926
5927 fi
5928 fi
5929 OBJDUMP=$ac_cv_prog_OBJDUMP
5930 if test -n "$OBJDUMP"; then
5931   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5932 echo "${ECHO_T}$OBJDUMP" >&6
5933 else
5934   echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6
5936 fi
5937
5938 fi
5939 if test -z "$ac_cv_prog_OBJDUMP"; then
5940   ac_ct_OBJDUMP=$OBJDUMP
5941   # Extract the first word of "objdump", so it can be a program name with args.
5942 set dummy objdump; ac_word=$2
5943 echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5945 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5946   echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948   if test -n "$ac_ct_OBJDUMP"; then
5949   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5953 do
5954   IFS=$as_save_IFS
5955   test -z "$as_dir" && as_dir=.
5956   for ac_exec_ext in '' $ac_executable_extensions; do
5957   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5958     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960     break 2
5961   fi
5962 done
5963 done
5964
5965   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5966 fi
5967 fi
5968 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5969 if test -n "$ac_ct_OBJDUMP"; then
5970   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5971 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5972 else
5973   echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6
5975 fi
5976
5977   OBJDUMP=$ac_ct_OBJDUMP
5978 else
5979   OBJDUMP="$ac_cv_prog_OBJDUMP"
5980 fi
5981
5982   ;;
5983
5984 esac
5985
5986 need_locks="$enable_libtool_lock"
5987
5988
5989 ac_ext=c
5990 ac_cpp='$CPP $CPPFLAGS'
5991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5994 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5995 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5996 # On Suns, sometimes $CPP names a directory.
5997 if test -n "$CPP" && test -d "$CPP"; then
5998   CPP=
5999 fi
6000 if test -z "$CPP"; then
6001   if test "${ac_cv_prog_CPP+set}" = set; then
6002   echo $ECHO_N "(cached) $ECHO_C" >&6
6003 else
6004       # Double quotes because CPP needs to be expanded
6005     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6006     do
6007       ac_preproc_ok=false
6008 for ac_c_preproc_warn_flag in '' yes
6009 do
6010   # Use a header file that comes with gcc, so configuring glibc
6011   # with a fresh cross-compiler works.
6012   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6013   # <limits.h> exists even on freestanding compilers.
6014   # On the NeXT, cc -E runs the code through the compiler's parser,
6015   # not just through cpp. "Syntax error" is here to catch this case.
6016   cat >conftest.$ac_ext <<_ACEOF
6017 /* confdefs.h.  */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h.  */
6022 #ifdef __STDC__
6023 # include <limits.h>
6024 #else
6025 # include <assert.h>
6026 #endif
6027                      Syntax error
6028 _ACEOF
6029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6030   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6031   ac_status=$?
6032   grep -v '^ *+' conftest.er1 >conftest.err
6033   rm -f conftest.er1
6034   cat conftest.err >&5
6035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036   (exit $ac_status); } >/dev/null; then
6037   if test -s conftest.err; then
6038     ac_cpp_err=$ac_c_preproc_warn_flag
6039     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6040   else
6041     ac_cpp_err=
6042   fi
6043 else
6044   ac_cpp_err=yes
6045 fi
6046 if test -z "$ac_cpp_err"; then
6047   :
6048 else
6049   echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6051
6052   # Broken: fails on valid input.
6053 continue
6054 fi
6055 rm -f conftest.err conftest.$ac_ext
6056
6057   # OK, works on sane cases.  Now check whether non-existent headers
6058   # can be detected and how.
6059   cat >conftest.$ac_ext <<_ACEOF
6060 /* confdefs.h.  */
6061 _ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h.  */
6065 #include <ac_nonexistent.h>
6066 _ACEOF
6067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6068   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6069   ac_status=$?
6070   grep -v '^ *+' conftest.er1 >conftest.err
6071   rm -f conftest.er1
6072   cat conftest.err >&5
6073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074   (exit $ac_status); } >/dev/null; then
6075   if test -s conftest.err; then
6076     ac_cpp_err=$ac_c_preproc_warn_flag
6077     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6078   else
6079     ac_cpp_err=
6080   fi
6081 else
6082   ac_cpp_err=yes
6083 fi
6084 if test -z "$ac_cpp_err"; then
6085   # Broken: success on invalid input.
6086 continue
6087 else
6088   echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6090
6091   # Passes both tests.
6092 ac_preproc_ok=:
6093 break
6094 fi
6095 rm -f conftest.err conftest.$ac_ext
6096
6097 done
6098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6099 rm -f conftest.err conftest.$ac_ext
6100 if $ac_preproc_ok; then
6101   break
6102 fi
6103
6104     done
6105     ac_cv_prog_CPP=$CPP
6106
6107 fi
6108   CPP=$ac_cv_prog_CPP
6109 else
6110   ac_cv_prog_CPP=$CPP
6111 fi
6112 echo "$as_me:$LINENO: result: $CPP" >&5
6113 echo "${ECHO_T}$CPP" >&6
6114 ac_preproc_ok=false
6115 for ac_c_preproc_warn_flag in '' yes
6116 do
6117   # Use a header file that comes with gcc, so configuring glibc
6118   # with a fresh cross-compiler works.
6119   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6120   # <limits.h> exists even on freestanding compilers.
6121   # On the NeXT, cc -E runs the code through the compiler's parser,
6122   # not just through cpp. "Syntax error" is here to catch this case.
6123   cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h.  */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h.  */
6129 #ifdef __STDC__
6130 # include <limits.h>
6131 #else
6132 # include <assert.h>
6133 #endif
6134                      Syntax error
6135 _ACEOF
6136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6137   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6138   ac_status=$?
6139   grep -v '^ *+' conftest.er1 >conftest.err
6140   rm -f conftest.er1
6141   cat conftest.err >&5
6142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143   (exit $ac_status); } >/dev/null; then
6144   if test -s conftest.err; then
6145     ac_cpp_err=$ac_c_preproc_warn_flag
6146     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6147   else
6148     ac_cpp_err=
6149   fi
6150 else
6151   ac_cpp_err=yes
6152 fi
6153 if test -z "$ac_cpp_err"; then
6154   :
6155 else
6156   echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6158
6159   # Broken: fails on valid input.
6160 continue
6161 fi
6162 rm -f conftest.err conftest.$ac_ext
6163
6164   # OK, works on sane cases.  Now check whether non-existent headers
6165   # can be detected and how.
6166   cat >conftest.$ac_ext <<_ACEOF
6167 /* confdefs.h.  */
6168 _ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h.  */
6172 #include <ac_nonexistent.h>
6173 _ACEOF
6174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6175   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6176   ac_status=$?
6177   grep -v '^ *+' conftest.er1 >conftest.err
6178   rm -f conftest.er1
6179   cat conftest.err >&5
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); } >/dev/null; then
6182   if test -s conftest.err; then
6183     ac_cpp_err=$ac_c_preproc_warn_flag
6184     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6185   else
6186     ac_cpp_err=
6187   fi
6188 else
6189   ac_cpp_err=yes
6190 fi
6191 if test -z "$ac_cpp_err"; then
6192   # Broken: success on invalid input.
6193 continue
6194 else
6195   echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6197
6198   # Passes both tests.
6199 ac_preproc_ok=:
6200 break
6201 fi
6202 rm -f conftest.err conftest.$ac_ext
6203
6204 done
6205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6206 rm -f conftest.err conftest.$ac_ext
6207 if $ac_preproc_ok; then
6208   :
6209 else
6210   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6211 See \`config.log' for more details." >&5
6212 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6213 See \`config.log' for more details." >&2;}
6214    { (exit 1); exit 1; }; }
6215 fi
6216
6217 ac_ext=c
6218 ac_cpp='$CPP $CPPFLAGS'
6219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6222
6223
6224 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6225 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6226 if test "${ac_cv_header_stdc+set}" = set; then
6227   echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229   cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h.  */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h.  */
6235 #include <stdlib.h>
6236 #include <stdarg.h>
6237 #include <string.h>
6238 #include <float.h>
6239
6240 int
6241 main ()
6242 {
6243
6244   ;
6245   return 0;
6246 }
6247 _ACEOF
6248 rm -f conftest.$ac_objext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250   (eval $ac_compile) 2>conftest.er1
6251   ac_status=$?
6252   grep -v '^ *+' conftest.er1 >conftest.err
6253   rm -f conftest.er1
6254   cat conftest.err >&5
6255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256   (exit $ac_status); } &&
6257          { ac_try='test -z "$ac_c_werror_flag"
6258                          || test ! -s conftest.err'
6259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260   (eval $ac_try) 2>&5
6261   ac_status=$?
6262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263   (exit $ac_status); }; } &&
6264          { ac_try='test -s conftest.$ac_objext'
6265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266   (eval $ac_try) 2>&5
6267   ac_status=$?
6268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269   (exit $ac_status); }; }; then
6270   ac_cv_header_stdc=yes
6271 else
6272   echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6274
6275 ac_cv_header_stdc=no
6276 fi
6277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6278
6279 if test $ac_cv_header_stdc = yes; then
6280   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6281   cat >conftest.$ac_ext <<_ACEOF
6282 /* confdefs.h.  */
6283 _ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h.  */
6287 #include <string.h>
6288
6289 _ACEOF
6290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6291   $EGREP "memchr" >/dev/null 2>&1; then
6292   :
6293 else
6294   ac_cv_header_stdc=no
6295 fi
6296 rm -f conftest*
6297
6298 fi
6299
6300 if test $ac_cv_header_stdc = yes; then
6301   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6302   cat >conftest.$ac_ext <<_ACEOF
6303 /* confdefs.h.  */
6304 _ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h.  */
6308 #include <stdlib.h>
6309
6310 _ACEOF
6311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6312   $EGREP "free" >/dev/null 2>&1; then
6313   :
6314 else
6315   ac_cv_header_stdc=no
6316 fi
6317 rm -f conftest*
6318
6319 fi
6320
6321 if test $ac_cv_header_stdc = yes; then
6322   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6323   if test "$cross_compiling" = yes; then
6324   :
6325 else
6326   cat >conftest.$ac_ext <<_ACEOF
6327 /* confdefs.h.  */
6328 _ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h.  */
6332 #include <ctype.h>
6333 #if ((' ' & 0x0FF) == 0x020)
6334 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6335 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6336 #else
6337 # define ISLOWER(c) \
6338                    (('a' <= (c) && (c) <= 'i') \
6339                      || ('j' <= (c) && (c) <= 'r') \
6340                      || ('s' <= (c) && (c) <= 'z'))
6341 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6342 #endif
6343
6344 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6345 int
6346 main ()
6347 {
6348   int i;
6349   for (i = 0; i < 256; i++)
6350     if (XOR (islower (i), ISLOWER (i))
6351         || toupper (i) != TOUPPER (i))
6352       exit(2);
6353   exit (0);
6354 }
6355 _ACEOF
6356 rm -f conftest$ac_exeext
6357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6358   (eval $ac_link) 2>&5
6359   ac_status=$?
6360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363   (eval $ac_try) 2>&5
6364   ac_status=$?
6365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366   (exit $ac_status); }; }; then
6367   :
6368 else
6369   echo "$as_me: program exited with status $ac_status" >&5
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6372
6373 ( exit $ac_status )
6374 ac_cv_header_stdc=no
6375 fi
6376 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6377 fi
6378 fi
6379 fi
6380 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6381 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6382 if test $ac_cv_header_stdc = yes; then
6383
6384 cat >>confdefs.h <<\_ACEOF
6385 #define STDC_HEADERS 1
6386 _ACEOF
6387
6388 fi
6389
6390 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6401                   inttypes.h stdint.h unistd.h
6402 do
6403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6404 echo "$as_me:$LINENO: checking for $ac_header" >&5
6405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6407   echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else
6409   cat >conftest.$ac_ext <<_ACEOF
6410 /* confdefs.h.  */
6411 _ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h.  */
6415 $ac_includes_default
6416
6417 #include <$ac_header>
6418 _ACEOF
6419 rm -f conftest.$ac_objext
6420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6421   (eval $ac_compile) 2>conftest.er1
6422   ac_status=$?
6423   grep -v '^ *+' conftest.er1 >conftest.err
6424   rm -f conftest.er1
6425   cat conftest.err >&5
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); } &&
6428          { ac_try='test -z "$ac_c_werror_flag"
6429                          || test ! -s conftest.err'
6430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431   (eval $ac_try) 2>&5
6432   ac_status=$?
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); }; } &&
6435          { ac_try='test -s conftest.$ac_objext'
6436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437   (eval $ac_try) 2>&5
6438   ac_status=$?
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); }; }; then
6441   eval "$as_ac_Header=yes"
6442 else
6443   echo "$as_me: failed program was:" >&5
6444 sed 's/^/| /' conftest.$ac_ext >&5
6445
6446 eval "$as_ac_Header=no"
6447 fi
6448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6449 fi
6450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6453   cat >>confdefs.h <<_ACEOF
6454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6455 _ACEOF
6456
6457 fi
6458
6459 done
6460
6461
6462
6463 for ac_header in dlfcn.h
6464 do
6465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6467   echo "$as_me:$LINENO: checking for $ac_header" >&5
6468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6470   echo $ECHO_N "(cached) $ECHO_C" >&6
6471 fi
6472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6474 else
6475   # Is the header compilable?
6476 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6478 cat >conftest.$ac_ext <<_ACEOF
6479 /* confdefs.h.  */
6480 _ACEOF
6481 cat confdefs.h >>conftest.$ac_ext
6482 cat >>conftest.$ac_ext <<_ACEOF
6483 /* end confdefs.h.  */
6484 $ac_includes_default
6485 #include <$ac_header>
6486 _ACEOF
6487 rm -f conftest.$ac_objext
6488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6489   (eval $ac_compile) 2>conftest.er1
6490   ac_status=$?
6491   grep -v '^ *+' conftest.er1 >conftest.err
6492   rm -f conftest.er1
6493   cat conftest.err >&5
6494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495   (exit $ac_status); } &&
6496          { ac_try='test -z "$ac_c_werror_flag"
6497                          || test ! -s conftest.err'
6498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499   (eval $ac_try) 2>&5
6500   ac_status=$?
6501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502   (exit $ac_status); }; } &&
6503          { ac_try='test -s conftest.$ac_objext'
6504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505   (eval $ac_try) 2>&5
6506   ac_status=$?
6507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); }; }; then
6509   ac_header_compiler=yes
6510 else
6511   echo "$as_me: failed program was:" >&5
6512 sed 's/^/| /' conftest.$ac_ext >&5
6513
6514 ac_header_compiler=no
6515 fi
6516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6518 echo "${ECHO_T}$ac_header_compiler" >&6
6519
6520 # Is the header present?
6521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6523 cat >conftest.$ac_ext <<_ACEOF
6524 /* confdefs.h.  */
6525 _ACEOF
6526 cat confdefs.h >>conftest.$ac_ext
6527 cat >>conftest.$ac_ext <<_ACEOF
6528 /* end confdefs.h.  */
6529 #include <$ac_header>
6530 _ACEOF
6531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6532   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6533   ac_status=$?
6534   grep -v '^ *+' conftest.er1 >conftest.err
6535   rm -f conftest.er1
6536   cat conftest.err >&5
6537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538   (exit $ac_status); } >/dev/null; then
6539   if test -s conftest.err; then
6540     ac_cpp_err=$ac_c_preproc_warn_flag
6541     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6542   else
6543     ac_cpp_err=
6544   fi
6545 else
6546   ac_cpp_err=yes
6547 fi
6548 if test -z "$ac_cpp_err"; then
6549   ac_header_preproc=yes
6550 else
6551   echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6553
6554   ac_header_preproc=no
6555 fi
6556 rm -f conftest.err conftest.$ac_ext
6557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6558 echo "${ECHO_T}$ac_header_preproc" >&6
6559
6560 # So?  What about this header?
6561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6562   yes:no: )
6563     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6567     ac_header_preproc=yes
6568     ;;
6569   no:yes:* )
6570     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6572     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6573 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6574     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6576     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6577 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6580     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6582     (
6583       cat <<\_ASBOX
6584 ## ------------------------------------------ ##
6585 ## Report this to the AC_PACKAGE_NAME lists.  ##
6586 ## ------------------------------------------ ##
6587 _ASBOX
6588     ) |
6589       sed "s/^/$as_me: WARNING:     /" >&2
6590     ;;
6591 esac
6592 echo "$as_me:$LINENO: checking for $ac_header" >&5
6593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6595   echo $ECHO_N "(cached) $ECHO_C" >&6
6596 else
6597   eval "$as_ac_Header=\$ac_header_preproc"
6598 fi
6599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6601
6602 fi
6603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6604   cat >>confdefs.h <<_ACEOF
6605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6606 _ACEOF
6607
6608 fi
6609
6610 done
6611
6612 ac_ext=cc
6613 ac_cpp='$CXXCPP $CPPFLAGS'
6614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6617 if test -n "$ac_tool_prefix"; then
6618   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6619   do
6620     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6622 echo "$as_me:$LINENO: checking for $ac_word" >&5
6623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6624 if test "${ac_cv_prog_CXX+set}" = set; then
6625   echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6627   if test -n "$CXX"; then
6628   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6629 else
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6632 do
6633   IFS=$as_save_IFS
6634   test -z "$as_dir" && as_dir=.
6635   for ac_exec_ext in '' $ac_executable_extensions; do
6636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6637     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639     break 2
6640   fi
6641 done
6642 done
6643
6644 fi
6645 fi
6646 CXX=$ac_cv_prog_CXX
6647 if test -n "$CXX"; then
6648   echo "$as_me:$LINENO: result: $CXX" >&5
6649 echo "${ECHO_T}$CXX" >&6
6650 else
6651   echo "$as_me:$LINENO: result: no" >&5
6652 echo "${ECHO_T}no" >&6
6653 fi
6654
6655     test -n "$CXX" && break
6656   done
6657 fi
6658 if test -z "$CXX"; then
6659   ac_ct_CXX=$CXX
6660   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6661 do
6662   # Extract the first word of "$ac_prog", so it can be a program name with args.
6663 set dummy $ac_prog; ac_word=$2
6664 echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6666 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6667   echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669   if test -n "$ac_ct_CXX"; then
6670   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675   IFS=$as_save_IFS
6676   test -z "$as_dir" && as_dir=.
6677   for ac_exec_ext in '' $ac_executable_extensions; do
6678   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679     ac_cv_prog_ac_ct_CXX="$ac_prog"
6680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681     break 2
6682   fi
6683 done
6684 done
6685
6686 fi
6687 fi
6688 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6689 if test -n "$ac_ct_CXX"; then
6690   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6691 echo "${ECHO_T}$ac_ct_CXX" >&6
6692 else
6693   echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6
6695 fi
6696
6697   test -n "$ac_ct_CXX" && break
6698 done
6699 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6700
6701   CXX=$ac_ct_CXX
6702 fi
6703
6704
6705 # Provide some information about the compiler.
6706 echo "$as_me:$LINENO:" \
6707      "checking for C++ compiler version" >&5
6708 ac_compiler=`set X $ac_compile; echo $2`
6709 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6710   (eval $ac_compiler --version </dev/null >&5) 2>&5
6711   ac_status=$?
6712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713   (exit $ac_status); }
6714 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6715   (eval $ac_compiler -v </dev/null >&5) 2>&5
6716   ac_status=$?
6717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718   (exit $ac_status); }
6719 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6720   (eval $ac_compiler -V </dev/null >&5) 2>&5
6721   ac_status=$?
6722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723   (exit $ac_status); }
6724
6725 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6726 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6727 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6728   echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730   cat >conftest.$ac_ext <<_ACEOF
6731 /* confdefs.h.  */
6732 _ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h.  */
6736
6737 int
6738 main ()
6739 {
6740 #ifndef __GNUC__
6741        choke me
6742 #endif
6743
6744   ;
6745   return 0;
6746 }
6747 _ACEOF
6748 rm -f conftest.$ac_objext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6750   (eval $ac_compile) 2>conftest.er1
6751   ac_status=$?
6752   grep -v '^ *+' conftest.er1 >conftest.err
6753   rm -f conftest.er1
6754   cat conftest.err >&5
6755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756   (exit $ac_status); } &&
6757          { ac_try='test -z "$ac_cxx_werror_flag"
6758                          || test ! -s conftest.err'
6759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760   (eval $ac_try) 2>&5
6761   ac_status=$?
6762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763   (exit $ac_status); }; } &&
6764          { ac_try='test -s conftest.$ac_objext'
6765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766   (eval $ac_try) 2>&5
6767   ac_status=$?
6768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769   (exit $ac_status); }; }; then
6770   ac_compiler_gnu=yes
6771 else
6772   echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6774
6775 ac_compiler_gnu=no
6776 fi
6777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6778 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6779
6780 fi
6781 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6782 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6783 GXX=`test $ac_compiler_gnu = yes && echo yes`
6784 ac_test_CXXFLAGS=${CXXFLAGS+set}
6785 ac_save_CXXFLAGS=$CXXFLAGS
6786 CXXFLAGS="-g"
6787 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6788 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6789 if test "${ac_cv_prog_cxx_g+set}" = set; then
6790   echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792   cat >conftest.$ac_ext <<_ACEOF
6793 /* confdefs.h.  */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h.  */
6798
6799 int
6800 main ()
6801 {
6802
6803   ;
6804   return 0;
6805 }
6806 _ACEOF
6807 rm -f conftest.$ac_objext
6808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6809   (eval $ac_compile) 2>conftest.er1
6810   ac_status=$?
6811   grep -v '^ *+' conftest.er1 >conftest.err
6812   rm -f conftest.er1
6813   cat conftest.err >&5
6814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815   (exit $ac_status); } &&
6816          { ac_try='test -z "$ac_cxx_werror_flag"
6817                          || test ! -s conftest.err'
6818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819   (eval $ac_try) 2>&5
6820   ac_status=$?
6821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822   (exit $ac_status); }; } &&
6823          { ac_try='test -s conftest.$ac_objext'
6824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825   (eval $ac_try) 2>&5
6826   ac_status=$?
6827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828   (exit $ac_status); }; }; then
6829   ac_cv_prog_cxx_g=yes
6830 else
6831   echo "$as_me: failed program was:" >&5
6832 sed 's/^/| /' conftest.$ac_ext >&5
6833
6834 ac_cv_prog_cxx_g=no
6835 fi
6836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6837 fi
6838 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6839 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6840 if test "$ac_test_CXXFLAGS" = set; then
6841   CXXFLAGS=$ac_save_CXXFLAGS
6842 elif test $ac_cv_prog_cxx_g = yes; then
6843   if test "$GXX" = yes; then
6844     CXXFLAGS="-g -O2"
6845   else
6846     CXXFLAGS="-g"
6847   fi
6848 else
6849   if test "$GXX" = yes; then
6850     CXXFLAGS="-O2"
6851   else
6852     CXXFLAGS=
6853   fi
6854 fi
6855 for ac_declaration in \
6856    '' \
6857    'extern "C" void std::exit (int) throw (); using std::exit;' \
6858    'extern "C" void std::exit (int); using std::exit;' \
6859    'extern "C" void exit (int) throw ();' \
6860    'extern "C" void exit (int);' \
6861    'void exit (int);'
6862 do
6863   cat >conftest.$ac_ext <<_ACEOF
6864 /* confdefs.h.  */
6865 _ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h.  */
6869 $ac_declaration
6870 #include <stdlib.h>
6871 int
6872 main ()
6873 {
6874 exit (42);
6875   ;
6876   return 0;
6877 }
6878 _ACEOF
6879 rm -f conftest.$ac_objext
6880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6881   (eval $ac_compile) 2>conftest.er1
6882   ac_status=$?
6883   grep -v '^ *+' conftest.er1 >conftest.err
6884   rm -f conftest.er1
6885   cat conftest.err >&5
6886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887   (exit $ac_status); } &&
6888          { ac_try='test -z "$ac_cxx_werror_flag"
6889                          || test ! -s conftest.err'
6890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891   (eval $ac_try) 2>&5
6892   ac_status=$?
6893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894   (exit $ac_status); }; } &&
6895          { ac_try='test -s conftest.$ac_objext'
6896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897   (eval $ac_try) 2>&5
6898   ac_status=$?
6899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900   (exit $ac_status); }; }; then
6901   :
6902 else
6903   echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6905
6906 continue
6907 fi
6908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6909   cat >conftest.$ac_ext <<_ACEOF
6910 /* confdefs.h.  */
6911 _ACEOF
6912 cat confdefs.h >>conftest.$ac_ext
6913 cat >>conftest.$ac_ext <<_ACEOF
6914 /* end confdefs.h.  */
6915 $ac_declaration
6916 int
6917 main ()
6918 {
6919 exit (42);
6920   ;
6921   return 0;
6922 }
6923 _ACEOF
6924 rm -f conftest.$ac_objext
6925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6926   (eval $ac_compile) 2>conftest.er1
6927   ac_status=$?
6928   grep -v '^ *+' conftest.er1 >conftest.err
6929   rm -f conftest.er1
6930   cat conftest.err >&5
6931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932   (exit $ac_status); } &&
6933          { ac_try='test -z "$ac_cxx_werror_flag"
6934                          || test ! -s conftest.err'
6935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936   (eval $ac_try) 2>&5
6937   ac_status=$?
6938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939   (exit $ac_status); }; } &&
6940          { ac_try='test -s conftest.$ac_objext'
6941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6942   (eval $ac_try) 2>&5
6943   ac_status=$?
6944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945   (exit $ac_status); }; }; then
6946   break
6947 else
6948   echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6950
6951 fi
6952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6953 done
6954 rm -f conftest*
6955 if test -n "$ac_declaration"; then
6956   echo '#ifdef __cplusplus' >>confdefs.h
6957   echo $ac_declaration      >>confdefs.h
6958   echo '#endif'             >>confdefs.h
6959 fi
6960
6961 ac_ext=cc
6962 ac_cpp='$CXXCPP $CPPFLAGS'
6963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6966
6967 depcc="$CXX"  am_compiler_list=
6968
6969 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6970 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6971 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6972   echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6975   # We make a subdir and do the tests there.  Otherwise we can end up
6976   # making bogus files that we don't know about and never remove.  For
6977   # instance it was reported that on HP-UX the gcc test will end up
6978   # making a dummy file named `D' -- because `-MD' means `put the output
6979   # in D'.
6980   mkdir conftest.dir
6981   # Copy depcomp to subdir because otherwise we won't find it if we're
6982   # using a relative directory.
6983   cp "$am_depcomp" conftest.dir
6984   cd conftest.dir
6985   # We will build objects and dependencies in a subdirectory because
6986   # it helps to detect inapplicable dependency modes.  For instance
6987   # both Tru64's cc and ICC support -MD to output dependencies as a
6988   # side effect of compilation, but ICC will put the dependencies in
6989   # the current directory while Tru64 will put them in the object
6990   # directory.
6991   mkdir sub
6992
6993   am_cv_CXX_dependencies_compiler_type=none
6994   if test "$am_compiler_list" = ""; then
6995      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6996   fi
6997   for depmode in $am_compiler_list; do
6998     # Setup a source with many dependencies, because some compilers
6999     # like to wrap large dependency lists on column 80 (with \), and
7000     # we should not choose a depcomp mode which is confused by this.
7001     #
7002     # We need to recreate these files for each test, as the compiler may
7003     # overwrite some of them when testing with obscure command lines.
7004     # This happens at least with the AIX C compiler.
7005     : > sub/conftest.c
7006     for i in 1 2 3 4 5 6; do
7007       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7008       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7009       # Solaris 8's {/usr,}/bin/sh.
7010       touch sub/conftst$i.h
7011     done
7012     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7013
7014     case $depmode in
7015     nosideeffect)
7016       # after this tag, mechanisms are not by side-effect, so they'll
7017       # only be used when explicitly requested
7018       if test "x$enable_dependency_tracking" = xyes; then
7019         continue
7020       else
7021         break
7022       fi
7023       ;;
7024     none) break ;;
7025     esac
7026     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7027     # mode.  It turns out that the SunPro C++ compiler does not properly
7028     # handle `-M -o', and we need to detect this.
7029     if depmode=$depmode \
7030        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7031        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7032        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7033          >/dev/null 2>conftest.err &&
7034        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7035        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7036        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7037       # icc doesn't choke on unknown options, it will just issue warnings
7038       # or remarks (even with -Werror).  So we grep stderr for any message
7039       # that says an option was ignored or not supported.
7040       # When given -MP, icc 7.0 and 7.1 complain thusly:
7041       #   icc: Command line warning: ignoring option '-M'; no argument required
7042       # The diagnosis changed in icc 8.0:
7043       #   icc: Command line remark: option '-MP' not supported
7044       if (grep 'ignoring option' conftest.err ||
7045           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7046         am_cv_CXX_dependencies_compiler_type=$depmode
7047         break
7048       fi
7049     fi
7050   done
7051
7052   cd ..
7053   rm -rf conftest.dir
7054 else
7055   am_cv_CXX_dependencies_compiler_type=none
7056 fi
7057
7058 fi
7059 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7060 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7061 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7062
7063
7064
7065 if
7066   test "x$enable_dependency_tracking" != xno \
7067   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7068   am__fastdepCXX_TRUE=
7069   am__fastdepCXX_FALSE='#'
7070 else
7071   am__fastdepCXX_TRUE='#'
7072   am__fastdepCXX_FALSE=
7073 fi
7074
7075
7076
7077
7078 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7079     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7080     (test "X$CXX" != "Xg++"))) ; then
7081   ac_ext=cc
7082 ac_cpp='$CXXCPP $CPPFLAGS'
7083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7086 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7087 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7088 if test -z "$CXXCPP"; then
7089   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7090   echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092       # Double quotes because CXXCPP needs to be expanded
7093     for CXXCPP in "$CXX -E" "/lib/cpp"
7094     do
7095       ac_preproc_ok=false
7096 for ac_cxx_preproc_warn_flag in '' yes
7097 do
7098   # Use a header file that comes with gcc, so configuring glibc
7099   # with a fresh cross-compiler works.
7100   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7101   # <limits.h> exists even on freestanding compilers.
7102   # On the NeXT, cc -E runs the code through the compiler's parser,
7103   # not just through cpp. "Syntax error" is here to catch this case.
7104   cat >conftest.$ac_ext <<_ACEOF
7105 /* confdefs.h.  */
7106 _ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h.  */
7110 #ifdef __STDC__
7111 # include <limits.h>
7112 #else
7113 # include <assert.h>
7114 #endif
7115                      Syntax error
7116 _ACEOF
7117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7118   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7119   ac_status=$?
7120   grep -v '^ *+' conftest.er1 >conftest.err
7121   rm -f conftest.er1
7122   cat conftest.err >&5
7123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); } >/dev/null; then
7125   if test -s conftest.err; then
7126     ac_cpp_err=$ac_cxx_preproc_warn_flag
7127     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7128   else
7129     ac_cpp_err=
7130   fi
7131 else
7132   ac_cpp_err=yes
7133 fi
7134 if test -z "$ac_cpp_err"; then
7135   :
7136 else
7137   echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.$ac_ext >&5
7139
7140   # Broken: fails on valid input.
7141 continue
7142 fi
7143 rm -f conftest.err conftest.$ac_ext
7144
7145   # OK, works on sane cases.  Now check whether non-existent headers
7146   # can be detected and how.
7147   cat >conftest.$ac_ext <<_ACEOF
7148 /* confdefs.h.  */
7149 _ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h.  */
7153 #include <ac_nonexistent.h>
7154 _ACEOF
7155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7156   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7157   ac_status=$?
7158   grep -v '^ *+' conftest.er1 >conftest.err
7159   rm -f conftest.er1
7160   cat conftest.err >&5
7161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162   (exit $ac_status); } >/dev/null; then
7163   if test -s conftest.err; then
7164     ac_cpp_err=$ac_cxx_preproc_warn_flag
7165     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7166   else
7167     ac_cpp_err=
7168   fi
7169 else
7170   ac_cpp_err=yes
7171 fi
7172 if test -z "$ac_cpp_err"; then
7173   # Broken: success on invalid input.
7174 continue
7175 else
7176   echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7178
7179   # Passes both tests.
7180 ac_preproc_ok=:
7181 break
7182 fi
7183 rm -f conftest.err conftest.$ac_ext
7184
7185 done
7186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7187 rm -f conftest.err conftest.$ac_ext
7188 if $ac_preproc_ok; then
7189   break
7190 fi
7191
7192     done
7193     ac_cv_prog_CXXCPP=$CXXCPP
7194
7195 fi
7196   CXXCPP=$ac_cv_prog_CXXCPP
7197 else
7198   ac_cv_prog_CXXCPP=$CXXCPP
7199 fi
7200 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7201 echo "${ECHO_T}$CXXCPP" >&6
7202 ac_preproc_ok=false
7203 for ac_cxx_preproc_warn_flag in '' yes
7204 do
7205   # Use a header file that comes with gcc, so configuring glibc
7206   # with a fresh cross-compiler works.
7207   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7208   # <limits.h> exists even on freestanding compilers.
7209   # On the NeXT, cc -E runs the code through the compiler's parser,
7210   # not just through cpp. "Syntax error" is here to catch this case.
7211   cat >conftest.$ac_ext <<_ACEOF
7212 /* confdefs.h.  */
7213 _ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h.  */
7217 #ifdef __STDC__
7218 # include <limits.h>
7219 #else
7220 # include <assert.h>
7221 #endif
7222                      Syntax error
7223 _ACEOF
7224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7225   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7226   ac_status=$?
7227   grep -v '^ *+' conftest.er1 >conftest.err
7228   rm -f conftest.er1
7229   cat conftest.err >&5
7230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231   (exit $ac_status); } >/dev/null; then
7232   if test -s conftest.err; then
7233     ac_cpp_err=$ac_cxx_preproc_warn_flag
7234     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7235   else
7236     ac_cpp_err=
7237   fi
7238 else
7239   ac_cpp_err=yes
7240 fi
7241 if test -z "$ac_cpp_err"; then
7242   :
7243 else
7244   echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7246
7247   # Broken: fails on valid input.
7248 continue
7249 fi
7250 rm -f conftest.err conftest.$ac_ext
7251
7252   # OK, works on sane cases.  Now check whether non-existent headers
7253   # can be detected and how.
7254   cat >conftest.$ac_ext <<_ACEOF
7255 /* confdefs.h.  */
7256 _ACEOF
7257 cat confdefs.h >>conftest.$ac_ext
7258 cat >>conftest.$ac_ext <<_ACEOF
7259 /* end confdefs.h.  */
7260 #include <ac_nonexistent.h>
7261 _ACEOF
7262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7263   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7264   ac_status=$?
7265   grep -v '^ *+' conftest.er1 >conftest.err
7266   rm -f conftest.er1
7267   cat conftest.err >&5
7268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269   (exit $ac_status); } >/dev/null; then
7270   if test -s conftest.err; then
7271     ac_cpp_err=$ac_cxx_preproc_warn_flag
7272     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7273   else
7274     ac_cpp_err=
7275   fi
7276 else
7277   ac_cpp_err=yes
7278 fi
7279 if test -z "$ac_cpp_err"; then
7280   # Broken: success on invalid input.
7281 continue
7282 else
7283   echo "$as_me: failed program was:" >&5
7284 sed 's/^/| /' conftest.$ac_ext >&5
7285
7286   # Passes both tests.
7287 ac_preproc_ok=:
7288 break
7289 fi
7290 rm -f conftest.err conftest.$ac_ext
7291
7292 done
7293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7294 rm -f conftest.err conftest.$ac_ext
7295 if $ac_preproc_ok; then
7296   :
7297 else
7298   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7299 See \`config.log' for more details." >&5
7300 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7301 See \`config.log' for more details." >&2;}
7302    { (exit 1); exit 1; }; }
7303 fi
7304
7305 ac_ext=cc
7306 ac_cpp='$CXXCPP $CPPFLAGS'
7307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7310
7311 fi
7312
7313
7314 ac_ext=f
7315 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7316 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7317 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7318 if test -n "$ac_tool_prefix"; then
7319   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7320   do
7321     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7322 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7323 echo "$as_me:$LINENO: checking for $ac_word" >&5
7324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7325 if test "${ac_cv_prog_F77+set}" = set; then
7326   echo $ECHO_N "(cached) $ECHO_C" >&6
7327 else
7328   if test -n "$F77"; then
7329   ac_cv_prog_F77="$F77" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7333 do
7334   IFS=$as_save_IFS
7335   test -z "$as_dir" && as_dir=.
7336   for ac_exec_ext in '' $ac_executable_extensions; do
7337   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340     break 2
7341   fi
7342 done
7343 done
7344
7345 fi
7346 fi
7347 F77=$ac_cv_prog_F77
7348 if test -n "$F77"; then
7349   echo "$as_me:$LINENO: result: $F77" >&5
7350 echo "${ECHO_T}$F77" >&6
7351 else
7352   echo "$as_me:$LINENO: result: no" >&5
7353 echo "${ECHO_T}no" >&6
7354 fi
7355
7356     test -n "$F77" && break
7357   done
7358 fi
7359 if test -z "$F77"; then
7360   ac_ct_F77=$F77
7361   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7362 do
7363   # Extract the first word of "$ac_prog", so it can be a program name with args.
7364 set dummy $ac_prog; ac_word=$2
7365 echo "$as_me:$LINENO: checking for $ac_word" >&5
7366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7367 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7368   echo $ECHO_N "(cached) $ECHO_C" >&6
7369 else
7370   if test -n "$ac_ct_F77"; then
7371   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7372 else
7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 for as_dir in $PATH
7375 do
7376   IFS=$as_save_IFS
7377   test -z "$as_dir" && as_dir=.
7378   for ac_exec_ext in '' $ac_executable_extensions; do
7379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7380     ac_cv_prog_ac_ct_F77="$ac_prog"
7381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7382     break 2
7383   fi
7384 done
7385 done
7386
7387 fi
7388 fi
7389 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7390 if test -n "$ac_ct_F77"; then
7391   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7392 echo "${ECHO_T}$ac_ct_F77" >&6
7393 else
7394   echo "$as_me:$LINENO: result: no" >&5
7395 echo "${ECHO_T}no" >&6
7396 fi
7397
7398   test -n "$ac_ct_F77" && break
7399 done
7400
7401   F77=$ac_ct_F77
7402 fi
7403
7404
7405 # Provide some information about the compiler.
7406 echo "$as_me:7406:" \
7407      "checking for Fortran 77 compiler version" >&5
7408 ac_compiler=`set X $ac_compile; echo $2`
7409 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7410   (eval $ac_compiler --version </dev/null >&5) 2>&5
7411   ac_status=$?
7412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413   (exit $ac_status); }
7414 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7415   (eval $ac_compiler -v </dev/null >&5) 2>&5
7416   ac_status=$?
7417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418   (exit $ac_status); }
7419 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7420   (eval $ac_compiler -V </dev/null >&5) 2>&5
7421   ac_status=$?
7422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423   (exit $ac_status); }
7424 rm -f a.out
7425
7426 # If we don't use `.F' as extension, the preprocessor is not run on the
7427 # input file.  (Note that this only needs to work for GNU compilers.)
7428 ac_save_ext=$ac_ext
7429 ac_ext=F
7430 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7431 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7432 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7433   echo $ECHO_N "(cached) $ECHO_C" >&6
7434 else
7435   cat >conftest.$ac_ext <<_ACEOF
7436       program main
7437 #ifndef __GNUC__
7438        choke me
7439 #endif
7440
7441       end
7442 _ACEOF
7443 rm -f conftest.$ac_objext
7444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7445   (eval $ac_compile) 2>conftest.er1
7446   ac_status=$?
7447   grep -v '^ *+' conftest.er1 >conftest.err
7448   rm -f conftest.er1
7449   cat conftest.err >&5
7450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451   (exit $ac_status); } &&
7452          { ac_try='test -z "$ac_f77_werror_flag"
7453                          || test ! -s conftest.err'
7454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455   (eval $ac_try) 2>&5
7456   ac_status=$?
7457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458   (exit $ac_status); }; } &&
7459          { ac_try='test -s conftest.$ac_objext'
7460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461   (eval $ac_try) 2>&5
7462   ac_status=$?
7463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464   (exit $ac_status); }; }; then
7465   ac_compiler_gnu=yes
7466 else
7467   echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7469
7470 ac_compiler_gnu=no
7471 fi
7472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7473 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7474
7475 fi
7476 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7477 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7478 ac_ext=$ac_save_ext
7479 ac_test_FFLAGS=${FFLAGS+set}
7480 ac_save_FFLAGS=$FFLAGS
7481 FFLAGS=
7482 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7483 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7484 if test "${ac_cv_prog_f77_g+set}" = set; then
7485   echo $ECHO_N "(cached) $ECHO_C" >&6
7486 else
7487   FFLAGS=-g
7488 cat >conftest.$ac_ext <<_ACEOF
7489       program main
7490
7491       end
7492 _ACEOF
7493 rm -f conftest.$ac_objext
7494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7495   (eval $ac_compile) 2>conftest.er1
7496   ac_status=$?
7497   grep -v '^ *+' conftest.er1 >conftest.err
7498   rm -f conftest.er1
7499   cat conftest.err >&5
7500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501   (exit $ac_status); } &&
7502          { ac_try='test -z "$ac_f77_werror_flag"
7503                          || test ! -s conftest.err'
7504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7505   (eval $ac_try) 2>&5
7506   ac_status=$?
7507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508   (exit $ac_status); }; } &&
7509          { ac_try='test -s conftest.$ac_objext'
7510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511   (eval $ac_try) 2>&5
7512   ac_status=$?
7513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514   (exit $ac_status); }; }; then
7515   ac_cv_prog_f77_g=yes
7516 else
7517   echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7519
7520 ac_cv_prog_f77_g=no
7521 fi
7522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7523
7524 fi
7525 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7526 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7527 if test "$ac_test_FFLAGS" = set; then
7528   FFLAGS=$ac_save_FFLAGS
7529 elif test $ac_cv_prog_f77_g = yes; then
7530   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7531     FFLAGS="-g -O2"
7532   else
7533     FFLAGS="-g"
7534   fi
7535 else
7536   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7537     FFLAGS="-O2"
7538   else
7539     FFLAGS=
7540   fi
7541 fi
7542
7543 G77=`test $ac_compiler_gnu = yes && echo yes`
7544 ac_ext=c
7545 ac_cpp='$CPP $CPPFLAGS'
7546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7549
7550
7551
7552 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7553
7554 # find the maximum length of command line arguments
7555 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7556 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7557 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7558   echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560     i=0
7561   teststring="ABCD"
7562
7563   case $build_os in
7564   msdosdjgpp*)
7565     # On DJGPP, this test can blow up pretty badly due to problems in libc
7566     # (any single argument exceeding 2000 bytes causes a buffer overrun
7567     # during glob expansion).  Even if it were fixed, the result of this
7568     # check would be larger than it should be.
7569     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7570     ;;
7571
7572   gnu*)
7573     # Under GNU Hurd, this test is not required because there is
7574     # no limit to the length of command line arguments.
7575     # Libtool will interpret -1 as no limit whatsoever
7576     lt_cv_sys_max_cmd_len=-1;
7577     ;;
7578
7579   cygwin* | mingw*)
7580     # On Win9x/ME, this test blows up -- it succeeds, but takes
7581     # about 5 minutes as the teststring grows exponentially.
7582     # Worse, since 9x/ME are not pre-emptively multitasking,
7583     # you end up with a "frozen" computer, even though with patience
7584     # the test eventually succeeds (with a max line length of 256k).
7585     # Instead, let's just punt: use the minimum linelength reported by
7586     # all of the supported platforms: 8192 (on NT/2K/XP).
7587     lt_cv_sys_max_cmd_len=8192;
7588     ;;
7589
7590   amigaos*)
7591     # On AmigaOS with pdksh, this test takes hours, literally.
7592     # So we just punt and use a minimum line length of 8192.
7593     lt_cv_sys_max_cmd_len=8192;
7594     ;;
7595
7596   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7597     # This has been around since 386BSD, at least.  Likely further.
7598     if test -x /sbin/sysctl; then
7599       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7600     elif test -x /usr/sbin/sysctl; then
7601       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7602     else
7603       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7604     fi
7605     # And add a safety zone
7606     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7607     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7608     ;;
7609   osf*)
7610     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7611     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7612     # nice to cause kernel panics so lets avoid the loop below.
7613     # First set a reasonable default.
7614     lt_cv_sys_max_cmd_len=16384
7615     #
7616     if test -x /sbin/sysconfig; then
7617       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7618         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7619       esac
7620     fi
7621     ;;
7622   *)
7623     # If test is not a shell built-in, we'll probably end up computing a
7624     # maximum length that is only half of the actual maximum length, but
7625     # we can't tell.
7626     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7627     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7628                = "XX$teststring") >/dev/null 2>&1 &&
7629             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7630             lt_cv_sys_max_cmd_len=$new_result &&
7631             test $i != 17 # 1/2 MB should be enough
7632     do
7633       i=`expr $i + 1`
7634       teststring=$teststring$teststring
7635     done
7636     teststring=
7637     # Add a significant safety factor because C++ compilers can tack on massive
7638     # amounts of additional arguments before passing them to the linker.
7639     # It appears as though 1/2 is a usable value.
7640     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7641     ;;
7642   esac
7643
7644 fi
7645
7646 if test -n $lt_cv_sys_max_cmd_len ; then
7647   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7648 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7649 else
7650   echo "$as_me:$LINENO: result: none" >&5
7651 echo "${ECHO_T}none" >&6
7652 fi
7653
7654
7655
7656
7657 # Check for command to grab the raw symbol name followed by C symbol from nm.
7658 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7659 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7660 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7661   echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663
7664 # These are sane defaults that work on at least a few old systems.
7665 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7666
7667 # Character class describing NM global symbol codes.
7668 symcode='[BCDEGRST]'
7669
7670 # Regexp to match symbols that can be accessed directly from C.
7671 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7672
7673 # Transform an extracted symbol line into a proper C declaration
7674 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7675
7676 # Transform an extracted symbol line into symbol name and symbol address
7677 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'"
7678
7679 # Define system-specific variables.
7680 case $host_os in
7681 aix*)
7682   symcode='[BCDT]'
7683   ;;
7684 cygwin* | mingw* | pw32*)
7685   symcode='[ABCDGISTW]'
7686   ;;
7687 hpux*) # Its linker distinguishes data from code symbols
7688   if test "$host_cpu" = ia64; then
7689     symcode='[ABCDEGRST]'
7690   fi
7691   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7692   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'"
7693   ;;
7694 linux*)
7695   if test "$host_cpu" = ia64; then
7696     symcode='[ABCDGIRSTW]'
7697     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7698     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'"
7699   fi
7700   ;;
7701 irix* | nonstopux*)
7702   symcode='[BCDEGRST]'
7703   ;;
7704 osf*)
7705   symcode='[BCDEGQRST]'
7706   ;;
7707 solaris* | sysv5*)
7708   symcode='[BDRT]'
7709   ;;
7710 sysv4)
7711   symcode='[DFNSTU]'
7712   ;;
7713 esac
7714
7715 # Handle CRLF in mingw tool chain
7716 opt_cr=
7717 case $build_os in
7718 mingw*)
7719   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7720   ;;
7721 esac
7722
7723 # If we're using GNU nm, then use its standard symbol codes.
7724 case `$NM -V 2>&1` in
7725 *GNU* | *'with BFD'*)
7726   symcode='[ABCDGIRSTW]' ;;
7727 esac
7728
7729 # Try without a prefix undercore, then with it.
7730 for ac_symprfx in "" "_"; do
7731
7732   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7733   symxfrm="\\1 $ac_symprfx\\2 \\2"
7734
7735   # Write the raw and C identifiers.
7736   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7737
7738   # Check to see that the pipe works correctly.
7739   pipe_works=no
7740
7741   rm -f conftest*
7742   cat > conftest.$ac_ext <<EOF
7743 #ifdef __cplusplus
7744 extern "C" {
7745 #endif
7746 char nm_test_var;
7747 void nm_test_func(){}
7748 #ifdef __cplusplus
7749 }
7750 #endif
7751 int main(){nm_test_var='a';nm_test_func();return(0);}
7752 EOF
7753
7754   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7755   (eval $ac_compile) 2>&5
7756   ac_status=$?
7757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758   (exit $ac_status); }; then
7759     # Now try to grab the symbols.
7760     nlist=conftest.nm
7761     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7762   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7763   ac_status=$?
7764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765   (exit $ac_status); } && test -s "$nlist"; then
7766       # Try sorting and uniquifying the output.
7767       if sort "$nlist" | uniq > "$nlist"T; then
7768         mv -f "$nlist"T "$nlist"
7769       else
7770         rm -f "$nlist"T
7771       fi
7772
7773       # Make sure that we snagged all the symbols we need.
7774       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7775         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7776           cat <<EOF > conftest.$ac_ext
7777 #ifdef __cplusplus
7778 extern "C" {
7779 #endif
7780
7781 EOF
7782           # Now generate the symbol file.
7783           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7784
7785           cat <<EOF >> conftest.$ac_ext
7786 #if defined (__STDC__) && __STDC__
7787 # define lt_ptr_t void *
7788 #else
7789 # define lt_ptr_t char *
7790 # define const
7791 #endif
7792
7793 /* The mapping between symbol names and symbols. */
7794 const struct {
7795   const char *name;
7796   lt_ptr_t address;
7797 }
7798 lt_preloaded_symbols[] =
7799 {
7800 EOF
7801           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7802           cat <<\EOF >> conftest.$ac_ext
7803   {0, (lt_ptr_t) 0}
7804 };
7805
7806 #ifdef __cplusplus
7807 }
7808 #endif
7809 EOF
7810           # Now try linking the two files.
7811           mv conftest.$ac_objext conftstm.$ac_objext
7812           lt_save_LIBS="$LIBS"
7813           lt_save_CFLAGS="$CFLAGS"
7814           LIBS="conftstm.$ac_objext"
7815           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7816           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7817   (eval $ac_link) 2>&5
7818   ac_status=$?
7819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7821             pipe_works=yes
7822           fi
7823           LIBS="$lt_save_LIBS"
7824           CFLAGS="$lt_save_CFLAGS"
7825         else
7826           echo "cannot find nm_test_func in $nlist" >&5
7827         fi
7828       else
7829         echo "cannot find nm_test_var in $nlist" >&5
7830       fi
7831     else
7832       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7833     fi
7834   else
7835     echo "$progname: failed program was:" >&5
7836     cat conftest.$ac_ext >&5
7837   fi
7838   rm -f conftest* conftst*
7839
7840   # Do not use the global_symbol_pipe unless it works.
7841   if test "$pipe_works" = yes; then
7842     break
7843   else
7844     lt_cv_sys_global_symbol_pipe=
7845   fi
7846 done
7847
7848 fi
7849
7850 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7851   lt_cv_sys_global_symbol_to_cdecl=
7852 fi
7853 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7854   echo "$as_me:$LINENO: result: failed" >&5
7855 echo "${ECHO_T}failed" >&6
7856 else
7857   echo "$as_me:$LINENO: result: ok" >&5
7858 echo "${ECHO_T}ok" >&6
7859 fi
7860
7861 echo "$as_me:$LINENO: checking for objdir" >&5
7862 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7863 if test "${lt_cv_objdir+set}" = set; then
7864   echo $ECHO_N "(cached) $ECHO_C" >&6
7865 else
7866   rm -f .libs 2>/dev/null
7867 mkdir .libs 2>/dev/null
7868 if test -d .libs; then
7869   lt_cv_objdir=.libs
7870 else
7871   # MS-DOS does not allow filenames that begin with a dot.
7872   lt_cv_objdir=_libs
7873 fi
7874 rmdir .libs 2>/dev/null
7875 fi
7876 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7877 echo "${ECHO_T}$lt_cv_objdir" >&6
7878 objdir=$lt_cv_objdir
7879
7880
7881
7882
7883
7884 case $host_os in
7885 aix3*)
7886   # AIX sometimes has problems with the GCC collect2 program.  For some
7887   # reason, if we set the COLLECT_NAMES environment variable, the problems
7888   # vanish in a puff of smoke.
7889   if test "X${COLLECT_NAMES+set}" != Xset; then
7890     COLLECT_NAMES=
7891     export COLLECT_NAMES
7892   fi
7893   ;;
7894 esac
7895
7896 # Sed substitution that helps us do robust quoting.  It backslashifies
7897 # metacharacters that are still active within double-quoted strings.
7898 Xsed='sed -e 1s/^X//'
7899 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7900
7901 # Same as above, but do not quote variable references.
7902 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7903
7904 # Sed substitution to delay expansion of an escaped shell variable in a
7905 # double_quote_subst'ed string.
7906 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7907
7908 # Sed substitution to avoid accidental globbing in evaled expressions
7909 no_glob_subst='s/\*/\\\*/g'
7910
7911 # Constants:
7912 rm="rm -f"
7913
7914 # Global variables:
7915 default_ofile=libtool
7916 can_build_shared=yes
7917
7918 # All known linkers require a `.a' archive for static linking (except M$VC,
7919 # which needs '.lib').
7920 libext=a
7921 ltmain="$ac_aux_dir/ltmain.sh"
7922 ofile="$default_ofile"
7923 with_gnu_ld="$lt_cv_prog_gnu_ld"
7924
7925 if test -n "$ac_tool_prefix"; then
7926   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7927 set dummy ${ac_tool_prefix}ar; ac_word=$2
7928 echo "$as_me:$LINENO: checking for $ac_word" >&5
7929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7930 if test "${ac_cv_prog_AR+set}" = set; then
7931   echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933   if test -n "$AR"; then
7934   ac_cv_prog_AR="$AR" # Let the user override the test.
7935 else
7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937 for as_dir in $PATH
7938 do
7939   IFS=$as_save_IFS
7940   test -z "$as_dir" && as_dir=.
7941   for ac_exec_ext in '' $ac_executable_extensions; do
7942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7943     ac_cv_prog_AR="${ac_tool_prefix}ar"
7944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7945     break 2
7946   fi
7947 done
7948 done
7949
7950 fi
7951 fi
7952 AR=$ac_cv_prog_AR
7953 if test -n "$AR"; then
7954   echo "$as_me:$LINENO: result: $AR" >&5
7955 echo "${ECHO_T}$AR" >&6
7956 else
7957   echo "$as_me:$LINENO: result: no" >&5
7958 echo "${ECHO_T}no" >&6
7959 fi
7960
7961 fi
7962 if test -z "$ac_cv_prog_AR"; then
7963   ac_ct_AR=$AR
7964   # Extract the first word of "ar", so it can be a program name with args.
7965 set dummy ar; ac_word=$2
7966 echo "$as_me:$LINENO: checking for $ac_word" >&5
7967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7968 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7969   echo $ECHO_N "(cached) $ECHO_C" >&6
7970 else
7971   if test -n "$ac_ct_AR"; then
7972   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7973 else
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 for as_dir in $PATH
7976 do
7977   IFS=$as_save_IFS
7978   test -z "$as_dir" && as_dir=.
7979   for ac_exec_ext in '' $ac_executable_extensions; do
7980   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7981     ac_cv_prog_ac_ct_AR="ar"
7982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7983     break 2
7984   fi
7985 done
7986 done
7987
7988   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7989 fi
7990 fi
7991 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7992 if test -n "$ac_ct_AR"; then
7993   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7994 echo "${ECHO_T}$ac_ct_AR" >&6
7995 else
7996   echo "$as_me:$LINENO: result: no" >&5
7997 echo "${ECHO_T}no" >&6
7998 fi
7999
8000   AR=$ac_ct_AR
8001 else
8002   AR="$ac_cv_prog_AR"
8003 fi
8004
8005 if test -n "$ac_tool_prefix"; then
8006   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8007 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8008 echo "$as_me:$LINENO: checking for $ac_word" >&5
8009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8010 if test "${ac_cv_prog_RANLIB+set}" = set; then
8011   echo $ECHO_N "(cached) $ECHO_C" >&6
8012 else
8013   if test -n "$RANLIB"; then
8014   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8015 else
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017 for as_dir in $PATH
8018 do
8019   IFS=$as_save_IFS
8020   test -z "$as_dir" && as_dir=.
8021   for ac_exec_ext in '' $ac_executable_extensions; do
8022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8023     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8025     break 2
8026   fi
8027 done
8028 done
8029
8030 fi
8031 fi
8032 RANLIB=$ac_cv_prog_RANLIB
8033 if test -n "$RANLIB"; then
8034   echo "$as_me:$LINENO: result: $RANLIB" >&5
8035 echo "${ECHO_T}$RANLIB" >&6
8036 else
8037   echo "$as_me:$LINENO: result: no" >&5
8038 echo "${ECHO_T}no" >&6
8039 fi
8040
8041 fi
8042 if test -z "$ac_cv_prog_RANLIB"; then
8043   ac_ct_RANLIB=$RANLIB
8044   # Extract the first word of "ranlib", so it can be a program name with args.
8045 set dummy ranlib; ac_word=$2
8046 echo "$as_me:$LINENO: checking for $ac_word" >&5
8047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8048 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8049   echo $ECHO_N "(cached) $ECHO_C" >&6
8050 else
8051   if test -n "$ac_ct_RANLIB"; then
8052   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8053 else
8054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 for as_dir in $PATH
8056 do
8057   IFS=$as_save_IFS
8058   test -z "$as_dir" && as_dir=.
8059   for ac_exec_ext in '' $ac_executable_extensions; do
8060   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8061     ac_cv_prog_ac_ct_RANLIB="ranlib"
8062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8063     break 2
8064   fi
8065 done
8066 done
8067
8068   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8069 fi
8070 fi
8071 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8072 if test -n "$ac_ct_RANLIB"; then
8073   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8074 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8075 else
8076   echo "$as_me:$LINENO: result: no" >&5
8077 echo "${ECHO_T}no" >&6
8078 fi
8079
8080   RANLIB=$ac_ct_RANLIB
8081 else
8082   RANLIB="$ac_cv_prog_RANLIB"
8083 fi
8084
8085 if test -n "$ac_tool_prefix"; then
8086   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8087 set dummy ${ac_tool_prefix}strip; ac_word=$2
8088 echo "$as_me:$LINENO: checking for $ac_word" >&5
8089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8090 if test "${ac_cv_prog_STRIP+set}" = set; then
8091   echo $ECHO_N "(cached) $ECHO_C" >&6
8092 else
8093   if test -n "$STRIP"; then
8094   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8095 else
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 for as_dir in $PATH
8098 do
8099   IFS=$as_save_IFS
8100   test -z "$as_dir" && as_dir=.
8101   for ac_exec_ext in '' $ac_executable_extensions; do
8102   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8103     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8105     break 2
8106   fi
8107 done
8108 done
8109
8110 fi
8111 fi
8112 STRIP=$ac_cv_prog_STRIP
8113 if test -n "$STRIP"; then
8114   echo "$as_me:$LINENO: result: $STRIP" >&5
8115 echo "${ECHO_T}$STRIP" >&6
8116 else
8117   echo "$as_me:$LINENO: result: no" >&5
8118 echo "${ECHO_T}no" >&6
8119 fi
8120
8121 fi
8122 if test -z "$ac_cv_prog_STRIP"; then
8123   ac_ct_STRIP=$STRIP
8124   # Extract the first word of "strip", so it can be a program name with args.
8125 set dummy strip; ac_word=$2
8126 echo "$as_me:$LINENO: checking for $ac_word" >&5
8127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8128 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8129   echo $ECHO_N "(cached) $ECHO_C" >&6
8130 else
8131   if test -n "$ac_ct_STRIP"; then
8132   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8133 else
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 for as_dir in $PATH
8136 do
8137   IFS=$as_save_IFS
8138   test -z "$as_dir" && as_dir=.
8139   for ac_exec_ext in '' $ac_executable_extensions; do
8140   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8141     ac_cv_prog_ac_ct_STRIP="strip"
8142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8143     break 2
8144   fi
8145 done
8146 done
8147
8148   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8149 fi
8150 fi
8151 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8152 if test -n "$ac_ct_STRIP"; then
8153   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8154 echo "${ECHO_T}$ac_ct_STRIP" >&6
8155 else
8156   echo "$as_me:$LINENO: result: no" >&5
8157 echo "${ECHO_T}no" >&6
8158 fi
8159
8160   STRIP=$ac_ct_STRIP
8161 else
8162   STRIP="$ac_cv_prog_STRIP"
8163 fi
8164
8165
8166 old_CC="$CC"
8167 old_CFLAGS="$CFLAGS"
8168
8169 # Set sane defaults for various variables
8170 test -z "$AR" && AR=ar
8171 test -z "$AR_FLAGS" && AR_FLAGS=cru
8172 test -z "$AS" && AS=as
8173 test -z "$CC" && CC=cc
8174 test -z "$LTCC" && LTCC=$CC
8175 test -z "$DLLTOOL" && DLLTOOL=dlltool
8176 test -z "$LD" && LD=ld
8177 test -z "$LN_S" && LN_S="ln -s"
8178 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8179 test -z "$NM" && NM=nm
8180 test -z "$SED" && SED=sed
8181 test -z "$OBJDUMP" && OBJDUMP=objdump
8182 test -z "$RANLIB" && RANLIB=:
8183 test -z "$STRIP" && STRIP=:
8184 test -z "$ac_objext" && ac_objext=o
8185
8186 # Determine commands to create old-style static archives.
8187 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8188 old_postinstall_cmds='chmod 644 $oldlib'
8189 old_postuninstall_cmds=
8190
8191 if test -n "$RANLIB"; then
8192   case $host_os in
8193   openbsd*)
8194     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8195     ;;
8196   *)
8197     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8198     ;;
8199   esac
8200   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8201 fi
8202
8203 for cc_temp in $compiler""; do
8204   case $cc_temp in
8205     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8206     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8207     \-*) ;;
8208     *) break;;
8209   esac
8210 done
8211 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8212
8213
8214 # Only perform the check for file, if the check method requires it
8215 case $deplibs_check_method in
8216 file_magic*)
8217   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8218     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8219 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8220 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8221   echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223   case $MAGIC_CMD in
8224 [\\/*] |  ?:[\\/]*)
8225   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8226   ;;
8227 *)
8228   lt_save_MAGIC_CMD="$MAGIC_CMD"
8229   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8230   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8231   for ac_dir in $ac_dummy; do
8232     IFS="$lt_save_ifs"
8233     test -z "$ac_dir" && ac_dir=.
8234     if test -f $ac_dir/${ac_tool_prefix}file; then
8235       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8236       if test -n "$file_magic_test_file"; then
8237         case $deplibs_check_method in
8238         "file_magic "*)
8239           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8240           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8241           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8242             $EGREP "$file_magic_regex" > /dev/null; then
8243             :
8244           else
8245             cat <<EOF 1>&2
8246
8247 *** Warning: the command libtool uses to detect shared libraries,
8248 *** $file_magic_cmd, produces output that libtool cannot recognize.
8249 *** The result is that libtool may fail to recognize shared libraries
8250 *** as such.  This will affect the creation of libtool libraries that
8251 *** depend on shared libraries, but programs linked with such libtool
8252 *** libraries will work regardless of this problem.  Nevertheless, you
8253 *** may want to report the problem to your system manager and/or to
8254 *** bug-libtool@gnu.org
8255
8256 EOF
8257           fi ;;
8258         esac
8259       fi
8260       break
8261     fi
8262   done
8263   IFS="$lt_save_ifs"
8264   MAGIC_CMD="$lt_save_MAGIC_CMD"
8265   ;;
8266 esac
8267 fi
8268
8269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8270 if test -n "$MAGIC_CMD"; then
8271   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8272 echo "${ECHO_T}$MAGIC_CMD" >&6
8273 else
8274   echo "$as_me:$LINENO: result: no" >&5
8275 echo "${ECHO_T}no" >&6
8276 fi
8277
8278 if test -z "$lt_cv_path_MAGIC_CMD"; then
8279   if test -n "$ac_tool_prefix"; then
8280     echo "$as_me:$LINENO: checking for file" >&5
8281 echo $ECHO_N "checking for file... $ECHO_C" >&6
8282 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8283   echo $ECHO_N "(cached) $ECHO_C" >&6
8284 else
8285   case $MAGIC_CMD in
8286 [\\/*] |  ?:[\\/]*)
8287   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8288   ;;
8289 *)
8290   lt_save_MAGIC_CMD="$MAGIC_CMD"
8291   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8292   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8293   for ac_dir in $ac_dummy; do
8294     IFS="$lt_save_ifs"
8295     test -z "$ac_dir" && ac_dir=.
8296     if test -f $ac_dir/file; then
8297       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8298       if test -n "$file_magic_test_file"; then
8299         case $deplibs_check_method in
8300         "file_magic "*)
8301           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8302           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8303           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8304             $EGREP "$file_magic_regex" > /dev/null; then
8305             :
8306           else
8307             cat <<EOF 1>&2
8308
8309 *** Warning: the command libtool uses to detect shared libraries,
8310 *** $file_magic_cmd, produces output that libtool cannot recognize.
8311 *** The result is that libtool may fail to recognize shared libraries
8312 *** as such.  This will affect the creation of libtool libraries that
8313 *** depend on shared libraries, but programs linked with such libtool
8314 *** libraries will work regardless of this problem.  Nevertheless, you
8315 *** may want to report the problem to your system manager and/or to
8316 *** bug-libtool@gnu.org
8317
8318 EOF
8319           fi ;;
8320         esac
8321       fi
8322       break
8323     fi
8324   done
8325   IFS="$lt_save_ifs"
8326   MAGIC_CMD="$lt_save_MAGIC_CMD"
8327   ;;
8328 esac
8329 fi
8330
8331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8332 if test -n "$MAGIC_CMD"; then
8333   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8334 echo "${ECHO_T}$MAGIC_CMD" >&6
8335 else
8336   echo "$as_me:$LINENO: result: no" >&5
8337 echo "${ECHO_T}no" >&6
8338 fi
8339
8340   else
8341     MAGIC_CMD=:
8342   fi
8343 fi
8344
8345   fi
8346   ;;
8347 esac
8348
8349 enable_dlopen=yes
8350 enable_win32_dll=yes
8351
8352 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8353 if test "${enable_libtool_lock+set}" = set; then
8354   enableval="$enable_libtool_lock"
8355
8356 fi;
8357 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8358
8359
8360 # Check whether --with-pic or --without-pic was given.
8361 if test "${with_pic+set}" = set; then
8362   withval="$with_pic"
8363   pic_mode="$withval"
8364 else
8365   pic_mode=default
8366 fi;
8367 test -z "$pic_mode" && pic_mode=default
8368
8369 # Use C for the default configuration in the libtool script
8370 tagname=
8371 lt_save_CC="$CC"
8372 ac_ext=c
8373 ac_cpp='$CPP $CPPFLAGS'
8374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8377
8378
8379 # Source file extension for C test sources.
8380 ac_ext=c
8381
8382 # Object file extension for compiled C test sources.
8383 objext=o
8384 objext=$objext
8385
8386 # Code to be used in simple compile tests
8387 lt_simple_compile_test_code="int some_variable = 0;\n"
8388
8389 # Code to be used in simple link tests
8390 lt_simple_link_test_code='int main(){return(0);}\n'
8391
8392
8393 # If no C compiler was specified, use CC.
8394 LTCC=${LTCC-"$CC"}
8395
8396 # Allow CC to be a program name with arguments.
8397 compiler=$CC
8398
8399
8400 # save warnings/boilerplate of simple test code
8401 ac_outfile=conftest.$ac_objext
8402 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8403 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8404 _lt_compiler_boilerplate=`cat conftest.err`
8405 $rm conftest*
8406
8407 ac_outfile=conftest.$ac_objext
8408 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8409 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8410 _lt_linker_boilerplate=`cat conftest.err`
8411 $rm conftest*
8412
8413
8414 #
8415 # Check for any special shared library compilation flags.
8416 #
8417 lt_prog_cc_shlib=
8418 if test "$GCC" = no; then
8419   case $host_os in
8420   sco3.2v5*)
8421     lt_prog_cc_shlib='-belf'
8422     ;;
8423   esac
8424 fi
8425 if test -n "$lt_prog_cc_shlib"; then
8426   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8427 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8428   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8429   else
8430     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8431 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8432     lt_cv_prog_cc_can_build_shared=no
8433   fi
8434 fi
8435
8436
8437 #
8438 # Check to make sure the static flag actually works.
8439 #
8440 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8441 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8442 if test "${lt_prog_compiler_static_works+set}" = set; then
8443   echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445   lt_prog_compiler_static_works=no
8446    save_LDFLAGS="$LDFLAGS"
8447    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8448    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8449    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8450      # The compiler can only warn and ignore the option if not recognized
8451      # So say no if there are warnings
8452      if test -s conftest.err; then
8453        # Append any errors to the config.log.
8454        cat conftest.err 1>&5
8455        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8456        $SED '/^$/d' conftest.err >conftest.er2
8457        if diff conftest.exp conftest.er2 >/dev/null; then
8458          lt_prog_compiler_static_works=yes
8459        fi
8460      else
8461        lt_prog_compiler_static_works=yes
8462      fi
8463    fi
8464    $rm conftest*
8465    LDFLAGS="$save_LDFLAGS"
8466
8467 fi
8468 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8469 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8470
8471 if test x"$lt_prog_compiler_static_works" = xyes; then
8472     :
8473 else
8474     lt_prog_compiler_static=
8475 fi
8476
8477
8478
8479
8480 lt_prog_compiler_no_builtin_flag=
8481
8482 if test "$GCC" = yes; then
8483   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8484
8485
8486 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8487 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8488 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8489   echo $ECHO_N "(cached) $ECHO_C" >&6
8490 else
8491   lt_cv_prog_compiler_rtti_exceptions=no
8492   ac_outfile=conftest.$ac_objext
8493    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8494    lt_compiler_flag="-fno-rtti -fno-exceptions"
8495    # Insert the option either (1) after the last *FLAGS variable, or
8496    # (2) before a word containing "conftest.", or (3) at the end.
8497    # Note that $ac_compile itself does not contain backslashes and begins
8498    # with a dollar sign (not a hyphen), so the echo should work correctly.
8499    # The option is referenced via a variable to avoid confusing sed.
8500    lt_compile=`echo "$ac_compile" | $SED \
8501    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8502    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8503    -e 's:$: $lt_compiler_flag:'`
8504    (eval echo "\"\$as_me:8504: $lt_compile\"" >&5)
8505    (eval "$lt_compile" 2>conftest.err)
8506    ac_status=$?
8507    cat conftest.err >&5
8508    echo "$as_me:8508: \$? = $ac_status" >&5
8509    if (exit $ac_status) && test -s "$ac_outfile"; then
8510      # The compiler can only warn and ignore the option if not recognized
8511      # So say no if there are warnings other than the usual output.
8512      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8513      $SED '/^$/d' conftest.err >conftest.er2
8514      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8515        lt_cv_prog_compiler_rtti_exceptions=yes
8516      fi
8517    fi
8518    $rm conftest*
8519
8520 fi
8521 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8522 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8523
8524 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8525     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8526 else
8527     :
8528 fi
8529
8530 fi
8531
8532 lt_prog_compiler_wl=
8533 lt_prog_compiler_pic=
8534 lt_prog_compiler_static=
8535
8536 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8537 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8538
8539   if test "$GCC" = yes; then
8540     lt_prog_compiler_wl='-Wl,'
8541     lt_prog_compiler_static='-static'
8542
8543     case $host_os in
8544       aix*)
8545       # All AIX code is PIC.
8546       if test "$host_cpu" = ia64; then
8547         # AIX 5 now supports IA64 processor
8548         lt_prog_compiler_static='-Bstatic'
8549       fi
8550       ;;
8551
8552     amigaos*)
8553       # FIXME: we need at least 68020 code to build shared libraries, but
8554       # adding the `-m68020' flag to GCC prevents building anything better,
8555       # like `-m68040'.
8556       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8557       ;;
8558
8559     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8560       # PIC is the default for these OSes.
8561       ;;
8562
8563     mingw* | pw32* | os2*)
8564       # This hack is so that the source file can tell whether it is being
8565       # built for inclusion in a dll (and should export symbols for example).
8566       lt_prog_compiler_pic='-DDLL_EXPORT'
8567       ;;
8568
8569     darwin* | rhapsody*)
8570       # PIC is the default on this platform
8571       # Common symbols not allowed in MH_DYLIB files
8572       lt_prog_compiler_pic='-fno-common'
8573       ;;
8574
8575     msdosdjgpp*)
8576       # Just because we use GCC doesn't mean we suddenly get shared libraries
8577       # on systems that don't support them.
8578       lt_prog_compiler_can_build_shared=no
8579       enable_shared=no
8580       ;;
8581
8582     sysv4*MP*)
8583       if test -d /usr/nec; then
8584         lt_prog_compiler_pic=-Kconform_pic
8585       fi
8586       ;;
8587
8588     hpux*)
8589       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8590       # not for PA HP-UX.
8591       case "$host_cpu" in
8592       hppa*64*|ia64*)
8593         # +Z the default
8594         ;;
8595       *)
8596         lt_prog_compiler_pic='-fPIC'
8597         ;;
8598       esac
8599       ;;
8600
8601     *)
8602       lt_prog_compiler_pic='-fPIC'
8603       ;;
8604     esac
8605   else
8606     # PORTME Check for flag to pass linker flags through the system compiler.
8607     case $host_os in
8608     aix*)
8609       lt_prog_compiler_wl='-Wl,'
8610       if test "$host_cpu" = ia64; then
8611         # AIX 5 now supports IA64 processor
8612         lt_prog_compiler_static='-Bstatic'
8613       else
8614         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8615       fi
8616       ;;
8617       darwin*)
8618         # PIC is the default on this platform
8619         # Common symbols not allowed in MH_DYLIB files
8620        case $cc_basename in
8621          xlc*)
8622          lt_prog_compiler_pic='-qnocommon'
8623          lt_prog_compiler_wl='-Wl,'
8624          ;;
8625        esac
8626        ;;
8627
8628     mingw* | pw32* | os2*)
8629       # This hack is so that the source file can tell whether it is being
8630       # built for inclusion in a dll (and should export symbols for example).
8631       lt_prog_compiler_pic='-DDLL_EXPORT'
8632       ;;
8633
8634     hpux9* | hpux10* | hpux11*)
8635       lt_prog_compiler_wl='-Wl,'
8636       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8637       # not for PA HP-UX.
8638       case "$host_cpu" in
8639       hppa*64*|ia64*)
8640         # +Z the default
8641         ;;
8642       *)
8643         lt_prog_compiler_pic='+Z'
8644         ;;
8645       esac
8646       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8647       lt_prog_compiler_static='${wl}-a ${wl}archive'
8648       ;;
8649
8650     irix5* | irix6* | nonstopux*)
8651       lt_prog_compiler_wl='-Wl,'
8652       # PIC (with -KPIC) is the default.
8653       lt_prog_compiler_static='-non_shared'
8654       ;;
8655
8656     newsos6)
8657       lt_prog_compiler_pic='-KPIC'
8658       lt_prog_compiler_static='-Bstatic'
8659       ;;
8660
8661     linux*)
8662       case $cc_basename in
8663       icc* | ecc*)
8664         lt_prog_compiler_wl='-Wl,'
8665         lt_prog_compiler_pic='-KPIC'
8666         lt_prog_compiler_static='-static'
8667         ;;
8668       pgcc* | pgf77* | pgf90*)
8669         # Portland Group compilers (*not* the Pentium gcc compiler,
8670         # which looks to be a dead project)
8671         lt_prog_compiler_wl='-Wl,'
8672         lt_prog_compiler_pic='-fpic'
8673         lt_prog_compiler_static='-static'
8674         ;;
8675       ccc*)
8676         lt_prog_compiler_wl='-Wl,'
8677         # All Alpha code is PIC.
8678         lt_prog_compiler_static='-non_shared'
8679         ;;
8680       esac
8681       ;;
8682
8683     osf3* | osf4* | osf5*)
8684       lt_prog_compiler_wl='-Wl,'
8685       # All OSF/1 code is PIC.
8686       lt_prog_compiler_static='-non_shared'
8687       ;;
8688
8689     sco3.2v5*)
8690       lt_prog_compiler_pic='-Kpic'
8691       lt_prog_compiler_static='-dn'
8692       ;;
8693
8694     solaris*)
8695       lt_prog_compiler_pic='-KPIC'
8696       lt_prog_compiler_static='-Bstatic'
8697       case $cc_basename in
8698       f77* | f90* | f95*)
8699         lt_prog_compiler_wl='-Qoption ld ';;
8700       *)
8701         lt_prog_compiler_wl='-Wl,';;
8702       esac
8703       ;;
8704
8705     sunos4*)
8706       lt_prog_compiler_wl='-Qoption ld '
8707       lt_prog_compiler_pic='-PIC'
8708       lt_prog_compiler_static='-Bstatic'
8709       ;;
8710
8711     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8712       lt_prog_compiler_wl='-Wl,'
8713       lt_prog_compiler_pic='-KPIC'
8714       lt_prog_compiler_static='-Bstatic'
8715       ;;
8716
8717     sysv4*MP*)
8718       if test -d /usr/nec ;then
8719         lt_prog_compiler_pic='-Kconform_pic'
8720         lt_prog_compiler_static='-Bstatic'
8721       fi
8722       ;;
8723
8724     unicos*)
8725       lt_prog_compiler_wl='-Wl,'
8726       lt_prog_compiler_can_build_shared=no
8727       ;;
8728
8729     uts4*)
8730       lt_prog_compiler_pic='-pic'
8731       lt_prog_compiler_static='-Bstatic'
8732       ;;
8733
8734     *)
8735       lt_prog_compiler_can_build_shared=no
8736       ;;
8737     esac
8738   fi
8739
8740 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8741 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8742
8743 #
8744 # Check to make sure the PIC flag actually works.
8745 #
8746 if test -n "$lt_prog_compiler_pic"; then
8747
8748 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8749 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8750 if test "${lt_prog_compiler_pic_works+set}" = set; then
8751   echo $ECHO_N "(cached) $ECHO_C" >&6
8752 else
8753   lt_prog_compiler_pic_works=no
8754   ac_outfile=conftest.$ac_objext
8755    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8756    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8757    # Insert the option either (1) after the last *FLAGS variable, or
8758    # (2) before a word containing "conftest.", or (3) at the end.
8759    # Note that $ac_compile itself does not contain backslashes and begins
8760    # with a dollar sign (not a hyphen), so the echo should work correctly.
8761    # The option is referenced via a variable to avoid confusing sed.
8762    lt_compile=`echo "$ac_compile" | $SED \
8763    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8764    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8765    -e 's:$: $lt_compiler_flag:'`
8766    (eval echo "\"\$as_me:8766: $lt_compile\"" >&5)
8767    (eval "$lt_compile" 2>conftest.err)
8768    ac_status=$?
8769    cat conftest.err >&5
8770    echo "$as_me:8770: \$? = $ac_status" >&5
8771    if (exit $ac_status) && test -s "$ac_outfile"; then
8772      # The compiler can only warn and ignore the option if not recognized
8773      # So say no if there are warnings other than the usual output.
8774      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8775      $SED '/^$/d' conftest.err >conftest.er2
8776      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8777        lt_prog_compiler_pic_works=yes
8778      fi
8779    fi
8780    $rm conftest*
8781
8782 fi
8783 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8784 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8785
8786 if test x"$lt_prog_compiler_pic_works" = xyes; then
8787     case $lt_prog_compiler_pic in
8788      "" | " "*) ;;
8789      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8790      esac
8791 else
8792     lt_prog_compiler_pic=
8793      lt_prog_compiler_can_build_shared=no
8794 fi
8795
8796 fi
8797 case "$host_os" in
8798   # For platforms which do not support PIC, -DPIC is meaningless:
8799   *djgpp*)
8800     lt_prog_compiler_pic=
8801     ;;
8802   *)
8803     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8804     ;;
8805 esac
8806
8807 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8808 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8809 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8810   echo $ECHO_N "(cached) $ECHO_C" >&6
8811 else
8812   lt_cv_prog_compiler_c_o=no
8813    $rm -r conftest 2>/dev/null
8814    mkdir conftest
8815    cd conftest
8816    mkdir out
8817    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8818
8819    lt_compiler_flag="-o out/conftest2.$ac_objext"
8820    # Insert the option either (1) after the last *FLAGS variable, or
8821    # (2) before a word containing "conftest.", or (3) at the end.
8822    # Note that $ac_compile itself does not contain backslashes and begins
8823    # with a dollar sign (not a hyphen), so the echo should work correctly.
8824    lt_compile=`echo "$ac_compile" | $SED \
8825    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8826    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8827    -e 's:$: $lt_compiler_flag:'`
8828    (eval echo "\"\$as_me:8828: $lt_compile\"" >&5)
8829    (eval "$lt_compile" 2>out/conftest.err)
8830    ac_status=$?
8831    cat out/conftest.err >&5
8832    echo "$as_me:8832: \$? = $ac_status" >&5
8833    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8834    then
8835      # The compiler can only warn and ignore the option if not recognized
8836      # So say no if there are warnings
8837      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8838      $SED '/^$/d' out/conftest.err >out/conftest.er2
8839      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8840        lt_cv_prog_compiler_c_o=yes
8841      fi
8842    fi
8843    chmod u+w .
8844    $rm conftest*
8845    # SGI C++ compiler will create directory out/ii_files/ for
8846    # template instantiation
8847    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8848    $rm out/* && rmdir out
8849    cd ..
8850    rmdir conftest
8851    $rm conftest*
8852
8853 fi
8854 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8855 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8856
8857
8858 hard_links="nottested"
8859 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8860   # do not overwrite the value of need_locks provided by the user
8861   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8862 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8863   hard_links=yes
8864   $rm conftest*
8865   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8866   touch conftest.a
8867   ln conftest.a conftest.b 2>&5 || hard_links=no
8868   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8869   echo "$as_me:$LINENO: result: $hard_links" >&5
8870 echo "${ECHO_T}$hard_links" >&6
8871   if test "$hard_links" = no; then
8872     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8873 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8874     need_locks=warn
8875   fi
8876 else
8877   need_locks=no
8878 fi
8879
8880 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8881 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8882
8883   runpath_var=
8884   allow_undefined_flag=
8885   enable_shared_with_static_runtimes=no
8886   archive_cmds=
8887   archive_expsym_cmds=
8888   old_archive_From_new_cmds=
8889   old_archive_from_expsyms_cmds=
8890   export_dynamic_flag_spec=
8891   whole_archive_flag_spec=
8892   thread_safe_flag_spec=
8893   hardcode_libdir_flag_spec=
8894   hardcode_libdir_flag_spec_ld=
8895   hardcode_libdir_separator=
8896   hardcode_direct=no
8897   hardcode_minus_L=no
8898   hardcode_shlibpath_var=unsupported
8899   link_all_deplibs=unknown
8900   hardcode_automatic=no
8901   module_cmds=
8902   module_expsym_cmds=
8903   always_export_symbols=no
8904   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8905   # include_expsyms should be a list of space-separated symbols to be *always*
8906   # included in the symbol list
8907   include_expsyms=
8908   # exclude_expsyms can be an extended regexp of symbols to exclude
8909   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8910   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8911   # as well as any symbol that contains `d'.
8912   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8913   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8914   # platforms (ab)use it in PIC code, but their linkers get confused if
8915   # the symbol is explicitly referenced.  Since portable code cannot
8916   # rely on this symbol name, it's probably fine to never include it in
8917   # preloaded symbol tables.
8918   extract_expsyms_cmds=
8919   # Just being paranoid about ensuring that cc_basename is set.
8920   for cc_temp in $compiler""; do
8921   case $cc_temp in
8922     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8923     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8924     \-*) ;;
8925     *) break;;
8926   esac
8927 done
8928 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8929
8930   case $host_os in
8931   cygwin* | mingw* | pw32*)
8932     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8933     # When not using gcc, we currently assume that we are using
8934     # Microsoft Visual C++.
8935     if test "$GCC" != yes; then
8936       with_gnu_ld=no
8937     fi
8938     ;;
8939   openbsd*)
8940     with_gnu_ld=no
8941     ;;
8942   esac
8943
8944   ld_shlibs=yes
8945   if test "$with_gnu_ld" = yes; then
8946     # If archive_cmds runs LD, not CC, wlarc should be empty
8947     wlarc='${wl}'
8948
8949     # Set some defaults for GNU ld with shared library support. These
8950     # are reset later if shared libraries are not supported. Putting them
8951     # here allows them to be overridden if necessary.
8952     runpath_var=LD_RUN_PATH
8953     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8954     export_dynamic_flag_spec='${wl}--export-dynamic'
8955     # ancient GNU ld didn't support --whole-archive et. al.
8956     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8957         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8958       else
8959         whole_archive_flag_spec=
8960     fi
8961     supports_anon_versioning=no
8962     case `$LD -v 2>/dev/null` in
8963       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8964       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8965       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8966       *\ 2.11.*) ;; # other 2.11 versions
8967       *) supports_anon_versioning=yes ;;
8968     esac
8969
8970     # See if GNU ld supports shared libraries.
8971     case $host_os in
8972     aix3* | aix4* | aix5*)
8973       # On AIX/PPC, the GNU linker is very broken
8974       if test "$host_cpu" != ia64; then
8975         ld_shlibs=no
8976         cat <<EOF 1>&2
8977
8978 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8979 *** to be unable to reliably create shared libraries on AIX.
8980 *** Therefore, libtool is disabling shared libraries support.  If you
8981 *** really care for shared libraries, you may want to modify your PATH
8982 *** so that a non-GNU linker is found, and then restart.
8983
8984 EOF
8985       fi
8986       ;;
8987
8988     amigaos*)
8989       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)'
8990       hardcode_libdir_flag_spec='-L$libdir'
8991       hardcode_minus_L=yes
8992
8993       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8994       # that the semantics of dynamic libraries on AmigaOS, at least up
8995       # to version 4, is to share data among multiple programs linked
8996       # with the same dynamic library.  Since this doesn't match the
8997       # behavior of shared libraries on other platforms, we can't use
8998       # them.
8999       ld_shlibs=no
9000       ;;
9001
9002     beos*)
9003       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9004         allow_undefined_flag=unsupported
9005         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9006         # support --undefined.  This deserves some investigation.  FIXME
9007         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9008       else
9009         ld_shlibs=no
9010       fi
9011       ;;
9012
9013     cygwin* | mingw* | pw32*)
9014       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9015       # as there is no search path for DLLs.
9016       hardcode_libdir_flag_spec='-L$libdir'
9017       allow_undefined_flag=unsupported
9018       always_export_symbols=no
9019       enable_shared_with_static_runtimes=yes
9020       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9021
9022       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9023         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9024         # If the export-symbols file already is a .def file (1st line
9025         # is EXPORTS), use it as is; otherwise, prepend...
9026         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9027           cp $export_symbols $output_objdir/$soname.def;
9028         else
9029           echo EXPORTS > $output_objdir/$soname.def;
9030           cat $export_symbols >> $output_objdir/$soname.def;
9031         fi~
9032         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9033       else
9034         ld_shlibs=no
9035       fi
9036       ;;
9037
9038     linux*)
9039       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9040         tmp_addflag=
9041         case $cc_basename,$host_cpu in
9042         pgcc*)                          # Portland Group C compiler
9043           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'
9044           tmp_addflag=' $pic_flag'
9045           ;;
9046         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
9047           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'
9048           tmp_addflag=' $pic_flag -Mnomain' ;;
9049         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9050           tmp_addflag=' -i_dynamic' ;;
9051         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9052           tmp_addflag=' -i_dynamic -nofor_main' ;;
9053         ifc* | ifort*)                  # Intel Fortran compiler
9054           tmp_addflag=' -nofor_main' ;;
9055         esac
9056         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9057
9058         if test $supports_anon_versioning = yes; then
9059           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9060   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9061   $echo "local: *; };" >> $output_objdir/$libname.ver~
9062           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9063         fi
9064       else
9065         ld_shlibs=no
9066       fi
9067       ;;
9068
9069     netbsd*)
9070       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9071         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9072         wlarc=
9073       else
9074         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9076       fi
9077       ;;
9078
9079     solaris* | sysv5*)
9080       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9081         ld_shlibs=no
9082         cat <<EOF 1>&2
9083
9084 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9085 *** create shared libraries on Solaris systems.  Therefore, libtool
9086 *** is disabling shared libraries support.  We urge you to upgrade GNU
9087 *** binutils to release 2.9.1 or newer.  Another option is to modify
9088 *** your PATH or compiler configuration so that the native linker is
9089 *** used, and then restart.
9090
9091 EOF
9092       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9093         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9094         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9095       else
9096         ld_shlibs=no
9097       fi
9098       ;;
9099
9100     sunos4*)
9101       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9102       wlarc=
9103       hardcode_direct=yes
9104       hardcode_shlibpath_var=no
9105       ;;
9106
9107     *)
9108       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9109         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9110         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9111       else
9112         ld_shlibs=no
9113       fi
9114       ;;
9115     esac
9116
9117     if test "$ld_shlibs" = no; then
9118       runpath_var=
9119       hardcode_libdir_flag_spec=
9120       export_dynamic_flag_spec=
9121       whole_archive_flag_spec=
9122     fi
9123   else
9124     # PORTME fill in a description of your system's linker (not GNU ld)
9125     case $host_os in
9126     aix3*)
9127       allow_undefined_flag=unsupported
9128       always_export_symbols=yes
9129       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'
9130       # Note: this linker hardcodes the directories in LIBPATH if there
9131       # are no directories specified by -L.
9132       hardcode_minus_L=yes
9133       if test "$GCC" = yes && test -z "$link_static_flag"; then
9134         # Neither direct hardcoding nor static linking is supported with a
9135         # broken collect2.
9136         hardcode_direct=unsupported
9137       fi
9138       ;;
9139
9140     aix4* | aix5*)
9141       if test "$host_cpu" = ia64; then
9142         # On IA64, the linker does run time linking by default, so we don't
9143         # have to do anything special.
9144         aix_use_runtimelinking=no
9145         exp_sym_flag='-Bexport'
9146         no_entry_flag=""
9147       else
9148         # If we're using GNU nm, then we don't want the "-C" option.
9149         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9150         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9151           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'
9152         else
9153           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'
9154         fi
9155         aix_use_runtimelinking=no
9156
9157         # Test if we are trying to use run time linking or normal
9158         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9159         # need to do runtime linking.
9160         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9161           for ld_flag in $LDFLAGS; do
9162           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9163             aix_use_runtimelinking=yes
9164             break
9165           fi
9166           done
9167         esac
9168
9169         exp_sym_flag='-bexport'
9170         no_entry_flag='-bnoentry'
9171       fi
9172
9173       # When large executables or shared objects are built, AIX ld can
9174       # have problems creating the table of contents.  If linking a library
9175       # or program results in "error TOC overflow" add -mminimal-toc to
9176       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9177       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9178
9179       archive_cmds=''
9180       hardcode_direct=yes
9181       hardcode_libdir_separator=':'
9182       link_all_deplibs=yes
9183
9184       if test "$GCC" = yes; then
9185         case $host_os in aix4.[012]|aix4.[012].*)
9186         # We only want to do this on AIX 4.2 and lower, the check
9187         # below for broken collect2 doesn't work under 4.3+
9188           collect2name=`${CC} -print-prog-name=collect2`
9189           if test -f "$collect2name" && \
9190            strings "$collect2name" | grep resolve_lib_name >/dev/null
9191           then
9192           # We have reworked collect2
9193           hardcode_direct=yes
9194           else
9195           # We have old collect2
9196           hardcode_direct=unsupported
9197           # It fails to find uninstalled libraries when the uninstalled
9198           # path is not listed in the libpath.  Setting hardcode_minus_L
9199           # to unsupported forces relinking
9200           hardcode_minus_L=yes
9201           hardcode_libdir_flag_spec='-L$libdir'
9202           hardcode_libdir_separator=
9203           fi
9204         esac
9205         shared_flag='-shared'
9206         if test "$aix_use_runtimelinking" = yes; then
9207           shared_flag="$shared_flag "'${wl}-G'
9208         fi
9209       else
9210         # not using gcc
9211         if test "$host_cpu" = ia64; then
9212         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9213         # chokes on -Wl,-G. The following line is correct:
9214           shared_flag='-G'
9215         else
9216         if test "$aix_use_runtimelinking" = yes; then
9217             shared_flag='${wl}-G'
9218           else
9219             shared_flag='${wl}-bM:SRE'
9220         fi
9221         fi
9222       fi
9223
9224       # It seems that -bexpall does not export symbols beginning with
9225       # underscore (_), so it is better to generate a list of symbols to export.
9226       always_export_symbols=yes
9227       if test "$aix_use_runtimelinking" = yes; then
9228         # Warning - without using the other runtime loading flags (-brtl),
9229         # -berok will link without error, but may produce a broken library.
9230         allow_undefined_flag='-berok'
9231        # Determine the default libpath from the value encoded in an empty executable.
9232        cat >conftest.$ac_ext <<_ACEOF
9233 /* confdefs.h.  */
9234 _ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h.  */
9238
9239 int
9240 main ()
9241 {
9242
9243   ;
9244   return 0;
9245 }
9246 _ACEOF
9247 rm -f conftest.$ac_objext conftest$ac_exeext
9248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9249   (eval $ac_link) 2>conftest.er1
9250   ac_status=$?
9251   grep -v '^ *+' conftest.er1 >conftest.err
9252   rm -f conftest.er1
9253   cat conftest.err >&5
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); } &&
9256          { ac_try='test -z "$ac_c_werror_flag"
9257                          || test ! -s conftest.err'
9258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259   (eval $ac_try) 2>&5
9260   ac_status=$?
9261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262   (exit $ac_status); }; } &&
9263          { ac_try='test -s conftest$ac_exeext'
9264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265   (eval $ac_try) 2>&5
9266   ac_status=$?
9267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268   (exit $ac_status); }; }; then
9269
9270 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9271 }'`
9272 # Check for a 64-bit object if we didn't find anything.
9273 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; }
9274 }'`; fi
9275 else
9276   echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.$ac_ext >&5
9278
9279 fi
9280 rm -f conftest.err conftest.$ac_objext \
9281       conftest$ac_exeext conftest.$ac_ext
9282 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9283
9284        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9285         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"
9286        else
9287         if test "$host_cpu" = ia64; then
9288           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9289           allow_undefined_flag="-z nodefs"
9290           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"
9291         else
9292          # Determine the default libpath from the value encoded in an empty executable.
9293          cat >conftest.$ac_ext <<_ACEOF
9294 /* confdefs.h.  */
9295 _ACEOF
9296 cat confdefs.h >>conftest.$ac_ext
9297 cat >>conftest.$ac_ext <<_ACEOF
9298 /* end confdefs.h.  */
9299
9300 int
9301 main ()
9302 {
9303
9304   ;
9305   return 0;
9306 }
9307 _ACEOF
9308 rm -f conftest.$ac_objext conftest$ac_exeext
9309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9310   (eval $ac_link) 2>conftest.er1
9311   ac_status=$?
9312   grep -v '^ *+' conftest.er1 >conftest.err
9313   rm -f conftest.er1
9314   cat conftest.err >&5
9315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316   (exit $ac_status); } &&
9317          { ac_try='test -z "$ac_c_werror_flag"
9318                          || test ! -s conftest.err'
9319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320   (eval $ac_try) 2>&5
9321   ac_status=$?
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); }; } &&
9324          { ac_try='test -s conftest$ac_exeext'
9325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326   (eval $ac_try) 2>&5
9327   ac_status=$?
9328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329   (exit $ac_status); }; }; then
9330
9331 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9332 }'`
9333 # Check for a 64-bit object if we didn't find anything.
9334 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; }
9335 }'`; fi
9336 else
9337   echo "$as_me: failed program was:" >&5
9338 sed 's/^/| /' conftest.$ac_ext >&5
9339
9340 fi
9341 rm -f conftest.err conftest.$ac_objext \
9342       conftest$ac_exeext conftest.$ac_ext
9343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9344
9345          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9346           # Warning - without using the other run time loading flags,
9347           # -berok will link without error, but may produce a broken library.
9348           no_undefined_flag=' ${wl}-bernotok'
9349           allow_undefined_flag=' ${wl}-berok'
9350           # -bexpall does not export symbols beginning with underscore (_)
9351           always_export_symbols=yes
9352           # Exported symbols can be pulled into shared objects from archives
9353           whole_archive_flag_spec=' '
9354           archive_cmds_need_lc=yes
9355           # This is similar to how AIX traditionally builds it's shared libraries.
9356           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'
9357         fi
9358       fi
9359       ;;
9360
9361     amigaos*)
9362       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)'
9363       hardcode_libdir_flag_spec='-L$libdir'
9364       hardcode_minus_L=yes
9365       # see comment about different semantics on the GNU ld section
9366       ld_shlibs=no
9367       ;;
9368
9369     bsdi[45]*)
9370       export_dynamic_flag_spec=-rdynamic
9371       ;;
9372
9373     cygwin* | mingw* | pw32*)
9374       # When not using gcc, we currently assume that we are using
9375       # Microsoft Visual C++.
9376       # hardcode_libdir_flag_spec is actually meaningless, as there is
9377       # no search path for DLLs.
9378       hardcode_libdir_flag_spec=' '
9379       allow_undefined_flag=unsupported
9380       # Tell ltmain to make .lib files, not .a files.
9381       libext=lib
9382       # Tell ltmain to make .dll files, not .so files.
9383       shrext_cmds=".dll"
9384       # FIXME: Setting linknames here is a bad hack.
9385       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9386       # The linker will automatically build a .lib file if we build a DLL.
9387       old_archive_From_new_cmds='true'
9388       # FIXME: Should let the user specify the lib program.
9389       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9390       fix_srcfile_path='`cygpath -w "$srcfile"`'
9391       enable_shared_with_static_runtimes=yes
9392       ;;
9393
9394     darwin* | rhapsody*)
9395       case "$host_os" in
9396         rhapsody* | darwin1.[012])
9397          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9398          ;;
9399        *) # Darwin 1.3 on
9400          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9401            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9402          else
9403            case ${MACOSX_DEPLOYMENT_TARGET} in
9404              10.[012])
9405                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9406                ;;
9407              10.*)
9408                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9409                ;;
9410            esac
9411          fi
9412          ;;
9413       esac
9414       archive_cmds_need_lc=no
9415       hardcode_direct=no
9416       hardcode_automatic=yes
9417       hardcode_shlibpath_var=unsupported
9418       whole_archive_flag_spec=''
9419       link_all_deplibs=yes
9420     if test "$GCC" = yes ; then
9421         output_verbose_link_cmd='echo'
9422         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9423       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9424       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9425       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}'
9426       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}'
9427     else
9428       case $cc_basename in
9429         xlc*)
9430          output_verbose_link_cmd='echo'
9431          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9432          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9433           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9434          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -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}'
9435           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9436           ;;
9437        *)
9438          ld_shlibs=no
9439           ;;
9440       esac
9441     fi
9442       ;;
9443
9444     dgux*)
9445       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446       hardcode_libdir_flag_spec='-L$libdir'
9447       hardcode_shlibpath_var=no
9448       ;;
9449
9450     freebsd1*)
9451       ld_shlibs=no
9452       ;;
9453
9454     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9455     # support.  Future versions do this automatically, but an explicit c++rt0.o
9456     # does not break anything, and helps significantly (at the cost of a little
9457     # extra space).
9458     freebsd2.2*)
9459       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9460       hardcode_libdir_flag_spec='-R$libdir'
9461       hardcode_direct=yes
9462       hardcode_shlibpath_var=no
9463       ;;
9464
9465     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9466     freebsd2*)
9467       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9468       hardcode_direct=yes
9469       hardcode_minus_L=yes
9470       hardcode_shlibpath_var=no
9471       ;;
9472
9473     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9474     freebsd* | kfreebsd*-gnu | dragonfly*)
9475       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9476       hardcode_libdir_flag_spec='-R$libdir'
9477       hardcode_direct=yes
9478       hardcode_shlibpath_var=no
9479       ;;
9480
9481     hpux9*)
9482       if test "$GCC" = yes; then
9483         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'
9484       else
9485         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'
9486       fi
9487       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9488       hardcode_libdir_separator=:
9489       hardcode_direct=yes
9490
9491       # hardcode_minus_L: Not really in the search PATH,
9492       # but as the default location of the library.
9493       hardcode_minus_L=yes
9494       export_dynamic_flag_spec='${wl}-E'
9495       ;;
9496
9497     hpux10* | hpux11*)
9498       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9499         case "$host_cpu" in
9500         hppa*64*|ia64*)
9501           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9502           ;;
9503         *)
9504           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9505           ;;
9506         esac
9507       else
9508         case "$host_cpu" in
9509         hppa*64*|ia64*)
9510           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9511           ;;
9512         *)
9513           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9514           ;;
9515         esac
9516       fi
9517       if test "$with_gnu_ld" = no; then
9518         case "$host_cpu" in
9519         hppa*64*)
9520           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9521           hardcode_libdir_flag_spec_ld='+b $libdir'
9522           hardcode_libdir_separator=:
9523           hardcode_direct=no
9524           hardcode_shlibpath_var=no
9525           ;;
9526         ia64*)
9527           hardcode_libdir_flag_spec='-L$libdir'
9528           hardcode_direct=no
9529           hardcode_shlibpath_var=no
9530
9531           # hardcode_minus_L: Not really in the search PATH,
9532           # but as the default location of the library.
9533           hardcode_minus_L=yes
9534           ;;
9535         *)
9536           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9537           hardcode_libdir_separator=:
9538           hardcode_direct=yes
9539           export_dynamic_flag_spec='${wl}-E'
9540
9541           # hardcode_minus_L: Not really in the search PATH,
9542           # but as the default location of the library.
9543           hardcode_minus_L=yes
9544           ;;
9545         esac
9546       fi
9547       ;;
9548
9549     irix5* | irix6* | nonstopux*)
9550       if test "$GCC" = yes; then
9551         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'
9552       else
9553         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'
9554         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9555       fi
9556       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9557       hardcode_libdir_separator=:
9558       link_all_deplibs=yes
9559       ;;
9560
9561     netbsd*)
9562       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9563         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9564       else
9565         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9566       fi
9567       hardcode_libdir_flag_spec='-R$libdir'
9568       hardcode_direct=yes
9569       hardcode_shlibpath_var=no
9570       ;;
9571
9572     newsos6)
9573       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9574       hardcode_direct=yes
9575       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9576       hardcode_libdir_separator=:
9577       hardcode_shlibpath_var=no
9578       ;;
9579
9580     openbsd*)
9581       hardcode_direct=yes
9582       hardcode_shlibpath_var=no
9583       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9584         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9585         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9586         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9587         export_dynamic_flag_spec='${wl}-E'
9588       else
9589        case $host_os in
9590          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9591            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9592            hardcode_libdir_flag_spec='-R$libdir'
9593            ;;
9594          *)
9595            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9596            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9597            ;;
9598        esac
9599       fi
9600       ;;
9601
9602     os2*)
9603       hardcode_libdir_flag_spec='-L$libdir'
9604       hardcode_minus_L=yes
9605       allow_undefined_flag=unsupported
9606       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'
9607       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9608       ;;
9609
9610     osf3*)
9611       if test "$GCC" = yes; then
9612         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9613         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'
9614       else
9615         allow_undefined_flag=' -expect_unresolved \*'
9616         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'
9617       fi
9618       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9619       hardcode_libdir_separator=:
9620       ;;
9621
9622     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9623       if test "$GCC" = yes; then
9624         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9625         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'
9626         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9627       else
9628         allow_undefined_flag=' -expect_unresolved \*'
9629         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'
9630         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9631         $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'
9632
9633         # Both c and cxx compiler support -rpath directly
9634         hardcode_libdir_flag_spec='-rpath $libdir'
9635       fi
9636       hardcode_libdir_separator=:
9637       ;;
9638
9639     sco3.2v5*)
9640       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9641       hardcode_shlibpath_var=no
9642       export_dynamic_flag_spec='${wl}-Bexport'
9643       runpath_var=LD_RUN_PATH
9644       hardcode_runpath_var=yes
9645       ;;
9646
9647     solaris*)
9648       no_undefined_flag=' -z text'
9649       if test "$GCC" = yes; then
9650         wlarc='${wl}'
9651         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9652         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9653           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9654       else
9655         wlarc=''
9656         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9658         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9659       fi
9660       hardcode_libdir_flag_spec='-R$libdir'
9661       hardcode_shlibpath_var=no
9662       case $host_os in
9663       solaris2.[0-5] | solaris2.[0-5].*) ;;
9664       *)
9665         # The compiler driver will combine linker options so we
9666         # cannot just pass the convience library names through
9667         # without $wl, iff we do not link with $LD.
9668         # Luckily, gcc supports the same syntax we need for Sun Studio.
9669         # Supported since Solaris 2.6 (maybe 2.5.1?)
9670         case $wlarc in
9671         '')
9672           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9673         *)
9674           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' ;;
9675         esac ;;
9676       esac
9677       link_all_deplibs=yes
9678       ;;
9679
9680     sunos4*)
9681       if test "x$host_vendor" = xsequent; then
9682         # Use $CC to link under sequent, because it throws in some extra .o
9683         # files that make .init and .fini sections work.
9684         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9685       else
9686         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9687       fi
9688       hardcode_libdir_flag_spec='-L$libdir'
9689       hardcode_direct=yes
9690       hardcode_minus_L=yes
9691       hardcode_shlibpath_var=no
9692       ;;
9693
9694     sysv4)
9695       case $host_vendor in
9696         sni)
9697           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698           hardcode_direct=yes # is this really true???
9699         ;;
9700         siemens)
9701           ## LD is ld it makes a PLAMLIB
9702           ## CC just makes a GrossModule.
9703           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9704           reload_cmds='$CC -r -o $output$reload_objs'
9705           hardcode_direct=no
9706         ;;
9707         motorola)
9708           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9709           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9710         ;;
9711       esac
9712       runpath_var='LD_RUN_PATH'
9713       hardcode_shlibpath_var=no
9714       ;;
9715
9716     sysv4.3*)
9717       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9718       hardcode_shlibpath_var=no
9719       export_dynamic_flag_spec='-Bexport'
9720       ;;
9721
9722     sysv4*MP*)
9723       if test -d /usr/nec; then
9724         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725         hardcode_shlibpath_var=no
9726         runpath_var=LD_RUN_PATH
9727         hardcode_runpath_var=yes
9728         ld_shlibs=yes
9729       fi
9730       ;;
9731
9732     sysv4.2uw2*)
9733       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9734       hardcode_direct=yes
9735       hardcode_minus_L=no
9736       hardcode_shlibpath_var=no
9737       hardcode_runpath_var=yes
9738       runpath_var=LD_RUN_PATH
9739       ;;
9740
9741    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9742       no_undefined_flag='${wl}-z ${wl}text'
9743       if test "$GCC" = yes; then
9744         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9745       else
9746         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9747       fi
9748       runpath_var='LD_RUN_PATH'
9749       hardcode_shlibpath_var=no
9750       ;;
9751
9752     sysv5*)
9753       no_undefined_flag=' -z text'
9754       # $CC -shared without GNU ld will not create a library from C++
9755       # object files and a static libstdc++, better avoid it by now
9756       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9757       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9758                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9759       hardcode_libdir_flag_spec=
9760       hardcode_shlibpath_var=no
9761       runpath_var='LD_RUN_PATH'
9762       ;;
9763
9764     uts4*)
9765       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9766       hardcode_libdir_flag_spec='-L$libdir'
9767       hardcode_shlibpath_var=no
9768       ;;
9769
9770     *)
9771       ld_shlibs=no
9772       ;;
9773     esac
9774   fi
9775
9776 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9777 echo "${ECHO_T}$ld_shlibs" >&6
9778 test "$ld_shlibs" = no && can_build_shared=no
9779
9780 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9781 if test "$GCC" = yes; then
9782   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9783 fi
9784
9785 #
9786 # Do we need to explicitly link libc?
9787 #
9788 case "x$archive_cmds_need_lc" in
9789 x|xyes)
9790   # Assume -lc should be added
9791   archive_cmds_need_lc=yes
9792
9793   if test "$enable_shared" = yes && test "$GCC" = yes; then
9794     case $archive_cmds in
9795     *'~'*)
9796       # FIXME: we may have to deal with multi-command sequences.
9797       ;;
9798     '$CC '*)
9799       # Test whether the compiler implicitly links with -lc since on some
9800       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9801       # to ld, don't add -lc before -lgcc.
9802       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9803 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9804       $rm conftest*
9805       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9806
9807       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9808   (eval $ac_compile) 2>&5
9809   ac_status=$?
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); } 2>conftest.err; then
9812         soname=conftest
9813         lib=conftest
9814         libobjs=conftest.$ac_objext
9815         deplibs=
9816         wl=$lt_prog_compiler_wl
9817         compiler_flags=-v
9818         linker_flags=-v
9819         verstring=
9820         output_objdir=.
9821         libname=conftest
9822         lt_save_allow_undefined_flag=$allow_undefined_flag
9823         allow_undefined_flag=
9824         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9825   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9826   ac_status=$?
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); }
9829         then
9830           archive_cmds_need_lc=no
9831         else
9832           archive_cmds_need_lc=yes
9833         fi
9834         allow_undefined_flag=$lt_save_allow_undefined_flag
9835       else
9836         cat conftest.err 1>&5
9837       fi
9838       $rm conftest*
9839       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9840 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9841       ;;
9842     esac
9843   fi
9844   ;;
9845 esac
9846
9847 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9848 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9849 library_names_spec=
9850 libname_spec='lib$name'
9851 soname_spec=
9852 shrext_cmds=".so"
9853 postinstall_cmds=
9854 postuninstall_cmds=
9855 finish_cmds=
9856 finish_eval=
9857 shlibpath_var=
9858 shlibpath_overrides_runpath=unknown
9859 version_type=none
9860 dynamic_linker="$host_os ld.so"
9861 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9862 if test "$GCC" = yes; then
9863   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9864   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9865     # if the path contains ";" then we assume it to be the separator
9866     # otherwise default to the standard path separator (i.e. ":") - it is
9867     # assumed that no part of a normal pathname contains ";" but that should
9868     # okay in the real world where ";" in dirpaths is itself problematic.
9869     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9870   else
9871     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9872   fi
9873 else
9874   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9875 fi
9876 need_lib_prefix=unknown
9877 hardcode_into_libs=no
9878
9879 # when you set need_version to no, make sure it does not cause -set_version
9880 # flags to be left without arguments
9881 need_version=unknown
9882
9883 case $host_os in
9884 aix3*)
9885   version_type=linux
9886   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9887   shlibpath_var=LIBPATH
9888
9889   # AIX 3 has no versioning support, so we append a major version to the name.
9890   soname_spec='${libname}${release}${shared_ext}$major'
9891   ;;
9892
9893 aix4* | aix5*)
9894   version_type=linux
9895   need_lib_prefix=no
9896   need_version=no
9897   hardcode_into_libs=yes
9898   if test "$host_cpu" = ia64; then
9899     # AIX 5 supports IA64
9900     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9901     shlibpath_var=LD_LIBRARY_PATH
9902   else
9903     # With GCC up to 2.95.x, collect2 would create an import file
9904     # for dependence libraries.  The import file would start with
9905     # the line `#! .'.  This would cause the generated library to
9906     # depend on `.', always an invalid library.  This was fixed in
9907     # development snapshots of GCC prior to 3.0.
9908     case $host_os in
9909       aix4 | aix4.[01] | aix4.[01].*)
9910       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9911            echo ' yes '
9912            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9913         :
9914       else
9915         can_build_shared=no
9916       fi
9917       ;;
9918     esac
9919     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9920     # soname into executable. Probably we can add versioning support to
9921     # collect2, so additional links can be useful in future.
9922     if test "$aix_use_runtimelinking" = yes; then
9923       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9924       # instead of lib<name>.a to let people know that these are not
9925       # typical AIX shared libraries.
9926       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9927     else
9928       # We preserve .a as extension for shared libraries through AIX4.2
9929       # and later when we are not doing run time linking.
9930       library_names_spec='${libname}${release}.a $libname.a'
9931       soname_spec='${libname}${release}${shared_ext}$major'
9932     fi
9933     shlibpath_var=LIBPATH
9934   fi
9935   ;;
9936
9937 amigaos*)
9938   library_names_spec='$libname.ixlibrary $libname.a'
9939   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9940   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'
9941   ;;
9942
9943 beos*)
9944   library_names_spec='${libname}${shared_ext}'
9945   dynamic_linker="$host_os ld.so"
9946   shlibpath_var=LIBRARY_PATH
9947   ;;
9948
9949 bsdi[45]*)
9950   version_type=linux
9951   need_version=no
9952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953   soname_spec='${libname}${release}${shared_ext}$major'
9954   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9955   shlibpath_var=LD_LIBRARY_PATH
9956   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9957   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9958   # the default ld.so.conf also contains /usr/contrib/lib and
9959   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9960   # libtool to hard-code these into programs
9961   ;;
9962
9963 cygwin* | mingw* | pw32*)
9964   version_type=windows
9965   shrext_cmds=".dll"
9966   need_version=no
9967   need_lib_prefix=no
9968
9969   case $GCC,$host_os in
9970   yes,cygwin* | yes,mingw* | yes,pw32*)
9971     library_names_spec='$libname.dll.a'
9972     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9973     postinstall_cmds='base_file=`basename \${file}`~
9974       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9975       dldir=$destdir/`dirname \$dlpath`~
9976       test -d \$dldir || mkdir -p \$dldir~
9977       $install_prog $dir/$dlname \$dldir/$dlname'
9978     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9979       dlpath=$dir/\$dldll~
9980        $rm \$dlpath'
9981     shlibpath_overrides_runpath=yes
9982
9983     case $host_os in
9984     cygwin*)
9985       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9986       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9987       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9988       ;;
9989     mingw*)
9990       # MinGW DLLs use traditional 'lib' prefix
9991       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9992       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9993       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9994         # It is most probably a Windows format PATH printed by
9995         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9996         # path with ; separators, and with drive letters. We can handle the
9997         # drive letters (cygwin fileutils understands them), so leave them,
9998         # especially as we might pass files found there to a mingw objdump,
9999         # which wouldn't understand a cygwinified path. Ahh.
10000         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10001       else
10002         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10003       fi
10004       ;;
10005     pw32*)
10006       # pw32 DLLs use 'pw' prefix rather than 'lib'
10007       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10008       ;;
10009     esac
10010     ;;
10011
10012   *)
10013     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10014     ;;
10015   esac
10016   dynamic_linker='Win32 ld.exe'
10017   # FIXME: first we should search . and the directory the executable is in
10018   shlibpath_var=PATH
10019   ;;
10020
10021 darwin* | rhapsody*)
10022   dynamic_linker="$host_os dyld"
10023   version_type=darwin
10024   need_lib_prefix=no
10025   need_version=no
10026   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10027   soname_spec='${libname}${release}${major}$shared_ext'
10028   shlibpath_overrides_runpath=yes
10029   shlibpath_var=DYLD_LIBRARY_PATH
10030   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10031   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10032   if test "$GCC" = yes; then
10033     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"`
10034   else
10035     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10036   fi
10037   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10038   ;;
10039
10040 dgux*)
10041   version_type=linux
10042   need_lib_prefix=no
10043   need_version=no
10044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10045   soname_spec='${libname}${release}${shared_ext}$major'
10046   shlibpath_var=LD_LIBRARY_PATH
10047   ;;
10048
10049 freebsd1*)
10050   dynamic_linker=no
10051   ;;
10052
10053 kfreebsd*-gnu)
10054   version_type=linux
10055   need_lib_prefix=no
10056   need_version=no
10057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10058   soname_spec='${libname}${release}${shared_ext}$major'
10059   shlibpath_var=LD_LIBRARY_PATH
10060   shlibpath_overrides_runpath=no
10061   hardcode_into_libs=yes
10062   dynamic_linker='GNU ld.so'
10063   ;;
10064
10065 freebsd* | dragonfly*)
10066   # DragonFly does not have aout.  When/if they implement a new
10067   # versioning mechanism, adjust this.
10068   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10069   version_type=freebsd-$objformat
10070   case $version_type in
10071     freebsd-elf*)
10072       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10073       need_version=no
10074       need_lib_prefix=no
10075       ;;
10076     freebsd-*)
10077       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10078       need_version=yes
10079       ;;
10080   esac
10081   shlibpath_var=LD_LIBRARY_PATH
10082   case $host_os in
10083   freebsd2*)
10084     shlibpath_overrides_runpath=yes
10085     ;;
10086   freebsd3.[01]* | freebsdelf3.[01]*)
10087     shlibpath_overrides_runpath=yes
10088     hardcode_into_libs=yes
10089     ;;
10090   *) # from 3.2 on
10091     shlibpath_overrides_runpath=no
10092     hardcode_into_libs=yes
10093     ;;
10094   esac
10095   ;;
10096
10097 gnu*)
10098   version_type=linux
10099   need_lib_prefix=no
10100   need_version=no
10101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10102   soname_spec='${libname}${release}${shared_ext}$major'
10103   shlibpath_var=LD_LIBRARY_PATH
10104   hardcode_into_libs=yes
10105   ;;
10106
10107 hpux9* | hpux10* | hpux11*)
10108   # Give a soname corresponding to the major version so that dld.sl refuses to
10109   # link against other versions.
10110   version_type=sunos
10111   need_lib_prefix=no
10112   need_version=no
10113   case "$host_cpu" in
10114   ia64*)
10115     shrext_cmds='.so'
10116     hardcode_into_libs=yes
10117     dynamic_linker="$host_os dld.so"
10118     shlibpath_var=LD_LIBRARY_PATH
10119     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121     soname_spec='${libname}${release}${shared_ext}$major'
10122     if test "X$HPUX_IA64_MODE" = X32; then
10123       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10124     else
10125       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10126     fi
10127     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10128     ;;
10129    hppa*64*)
10130      shrext_cmds='.sl'
10131      hardcode_into_libs=yes
10132      dynamic_linker="$host_os dld.sl"
10133      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10134      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10135      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10136      soname_spec='${libname}${release}${shared_ext}$major'
10137      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10138      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10139      ;;
10140    *)
10141     shrext_cmds='.sl'
10142     dynamic_linker="$host_os dld.sl"
10143     shlibpath_var=SHLIB_PATH
10144     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10145     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146     soname_spec='${libname}${release}${shared_ext}$major'
10147     ;;
10148   esac
10149   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10150   postinstall_cmds='chmod 555 $lib'
10151   ;;
10152
10153 irix5* | irix6* | nonstopux*)
10154   case $host_os in
10155     nonstopux*) version_type=nonstopux ;;
10156     *)
10157         if test "$lt_cv_prog_gnu_ld" = yes; then
10158                 version_type=linux
10159         else
10160                 version_type=irix
10161         fi ;;
10162   esac
10163   need_lib_prefix=no
10164   need_version=no
10165   soname_spec='${libname}${release}${shared_ext}$major'
10166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10167   case $host_os in
10168   irix5* | nonstopux*)
10169     libsuff= shlibsuff=
10170     ;;
10171   *)
10172     case $LD in # libtool.m4 will add one of these switches to LD
10173     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10174       libsuff= shlibsuff= libmagic=32-bit;;
10175     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10176       libsuff=32 shlibsuff=N32 libmagic=N32;;
10177     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10178       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10179     *) libsuff= shlibsuff= libmagic=never-match;;
10180     esac
10181     ;;
10182   esac
10183   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10184   shlibpath_overrides_runpath=no
10185   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10186   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10187   hardcode_into_libs=yes
10188   ;;
10189
10190 # No shared lib support for Linux oldld, aout, or coff.
10191 linux*oldld* | linux*aout* | linux*coff*)
10192   dynamic_linker=no
10193   ;;
10194
10195 # This must be Linux ELF.
10196 linux*)
10197   version_type=linux
10198   need_lib_prefix=no
10199   need_version=no
10200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10201   soname_spec='${libname}${release}${shared_ext}$major'
10202   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10203   shlibpath_var=LD_LIBRARY_PATH
10204   shlibpath_overrides_runpath=no
10205   # This implies no fast_install, which is unacceptable.
10206   # Some rework will be needed to allow for fast_install
10207   # before this can be enabled.
10208   hardcode_into_libs=yes
10209
10210   # Append ld.so.conf contents to the search path
10211   if test -f /etc/ld.so.conf; then
10212     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' ' '`
10213     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10214   fi
10215
10216   # We used to test for /lib/ld.so.1 and disable shared libraries on
10217   # powerpc, because MkLinux only supported shared libraries with the
10218   # GNU dynamic linker.  Since this was broken with cross compilers,
10219   # most powerpc-linux boxes support dynamic linking these days and
10220   # people can always --disable-shared, the test was removed, and we
10221   # assume the GNU/Linux dynamic linker is in use.
10222   dynamic_linker='GNU/Linux ld.so'
10223   ;;
10224
10225 knetbsd*-gnu)
10226   version_type=linux
10227   need_lib_prefix=no
10228   need_version=no
10229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10230   soname_spec='${libname}${release}${shared_ext}$major'
10231   shlibpath_var=LD_LIBRARY_PATH
10232   shlibpath_overrides_runpath=no
10233   hardcode_into_libs=yes
10234   dynamic_linker='GNU ld.so'
10235   ;;
10236
10237 netbsd*)
10238   version_type=sunos
10239   need_lib_prefix=no
10240   need_version=no
10241   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10242     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10243     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10244     dynamic_linker='NetBSD (a.out) ld.so'
10245   else
10246     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10247     soname_spec='${libname}${release}${shared_ext}$major'
10248     dynamic_linker='NetBSD ld.elf_so'
10249   fi
10250   shlibpath_var=LD_LIBRARY_PATH
10251   shlibpath_overrides_runpath=yes
10252   hardcode_into_libs=yes
10253   ;;
10254
10255 newsos6)
10256   version_type=linux
10257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10258   shlibpath_var=LD_LIBRARY_PATH
10259   shlibpath_overrides_runpath=yes
10260   ;;
10261
10262 nto-qnx*)
10263   version_type=linux
10264   need_lib_prefix=no
10265   need_version=no
10266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267   soname_spec='${libname}${release}${shared_ext}$major'
10268   shlibpath_var=LD_LIBRARY_PATH
10269   shlibpath_overrides_runpath=yes
10270   ;;
10271
10272 openbsd*)
10273   version_type=sunos
10274   need_lib_prefix=no
10275   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10276   case $host_os in
10277     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10278     *)                         need_version=no  ;;
10279   esac
10280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10281   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10282   shlibpath_var=LD_LIBRARY_PATH
10283   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10284     case $host_os in
10285       openbsd2.[89] | openbsd2.[89].*)
10286         shlibpath_overrides_runpath=no
10287         ;;
10288       *)
10289         shlibpath_overrides_runpath=yes
10290         ;;
10291       esac
10292   else
10293     shlibpath_overrides_runpath=yes
10294   fi
10295   ;;
10296
10297 os2*)
10298   libname_spec='$name'
10299   shrext_cmds=".dll"
10300   need_lib_prefix=no
10301   library_names_spec='$libname${shared_ext} $libname.a'
10302   dynamic_linker='OS/2 ld.exe'
10303   shlibpath_var=LIBPATH
10304   ;;
10305
10306 osf3* | osf4* | osf5*)
10307   version_type=osf
10308   need_lib_prefix=no
10309   need_version=no
10310   soname_spec='${libname}${release}${shared_ext}$major'
10311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10312   shlibpath_var=LD_LIBRARY_PATH
10313   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10314   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10315   ;;
10316
10317 sco3.2v5*)
10318   version_type=osf
10319   soname_spec='${libname}${release}${shared_ext}$major'
10320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10321   shlibpath_var=LD_LIBRARY_PATH
10322   ;;
10323
10324 solaris*)
10325   version_type=linux
10326   need_lib_prefix=no
10327   need_version=no
10328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329   soname_spec='${libname}${release}${shared_ext}$major'
10330   shlibpath_var=LD_LIBRARY_PATH
10331   shlibpath_overrides_runpath=yes
10332   hardcode_into_libs=yes
10333   # ldd complains unless libraries are executable
10334   postinstall_cmds='chmod +x $lib'
10335   ;;
10336
10337 sunos4*)
10338   version_type=sunos
10339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10340   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10341   shlibpath_var=LD_LIBRARY_PATH
10342   shlibpath_overrides_runpath=yes
10343   if test "$with_gnu_ld" = yes; then
10344     need_lib_prefix=no
10345   fi
10346   need_version=yes
10347   ;;
10348
10349 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10350   version_type=linux
10351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352   soname_spec='${libname}${release}${shared_ext}$major'
10353   shlibpath_var=LD_LIBRARY_PATH
10354   case $host_vendor in
10355     sni)
10356       shlibpath_overrides_runpath=no
10357       need_lib_prefix=no
10358       export_dynamic_flag_spec='${wl}-Blargedynsym'
10359       runpath_var=LD_RUN_PATH
10360       ;;
10361     siemens)
10362       need_lib_prefix=no
10363       ;;
10364     motorola)
10365       need_lib_prefix=no
10366       need_version=no
10367       shlibpath_overrides_runpath=no
10368       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10369       ;;
10370   esac
10371   ;;
10372
10373 sysv4*MP*)
10374   if test -d /usr/nec ;then
10375     version_type=linux
10376     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10377     soname_spec='$libname${shared_ext}.$major'
10378     shlibpath_var=LD_LIBRARY_PATH
10379   fi
10380   ;;
10381
10382 uts4*)
10383   version_type=linux
10384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385   soname_spec='${libname}${release}${shared_ext}$major'
10386   shlibpath_var=LD_LIBRARY_PATH
10387   ;;
10388
10389 *)
10390   dynamic_linker=no
10391   ;;
10392 esac
10393 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10394 echo "${ECHO_T}$dynamic_linker" >&6
10395 test "$dynamic_linker" = no && can_build_shared=no
10396
10397 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10398 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10399 hardcode_action=
10400 if test -n "$hardcode_libdir_flag_spec" || \
10401    test -n "$runpath_var" || \
10402    test "X$hardcode_automatic" = "Xyes" ; then
10403
10404   # We can hardcode non-existant directories.
10405   if test "$hardcode_direct" != no &&
10406      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10407      # have to relink, otherwise we might link with an installed library
10408      # when we should be linking with a yet-to-be-installed one
10409      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10410      test "$hardcode_minus_L" != no; then
10411     # Linking always hardcodes the temporary library directory.
10412     hardcode_action=relink
10413   else
10414     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10415     hardcode_action=immediate
10416   fi
10417 else
10418   # We cannot hardcode anything, or else we can only hardcode existing
10419   # directories.
10420   hardcode_action=unsupported
10421 fi
10422 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10423 echo "${ECHO_T}$hardcode_action" >&6
10424
10425 if test "$hardcode_action" = relink; then
10426   # Fast installation is not supported
10427   enable_fast_install=no
10428 elif test "$shlibpath_overrides_runpath" = yes ||
10429      test "$enable_shared" = no; then
10430   # Fast installation is not necessary
10431   enable_fast_install=needless
10432 fi
10433
10434 striplib=
10435 old_striplib=
10436 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10437 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10438 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10439   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10440   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10441   echo "$as_me:$LINENO: result: yes" >&5
10442 echo "${ECHO_T}yes" >&6
10443 else
10444 # FIXME - insert some real tests, host_os isn't really good enough
10445   case $host_os in
10446    darwin*)
10447        if test -n "$STRIP" ; then
10448          striplib="$STRIP -x"
10449          echo "$as_me:$LINENO: result: yes" >&5
10450 echo "${ECHO_T}yes" >&6
10451        else
10452   echo "$as_me:$LINENO: result: no" >&5
10453 echo "${ECHO_T}no" >&6
10454 fi
10455        ;;
10456    *)
10457   echo "$as_me:$LINENO: result: no" >&5
10458 echo "${ECHO_T}no" >&6
10459     ;;
10460   esac
10461 fi
10462
10463 if test "x$enable_dlopen" != xyes; then
10464   enable_dlopen=unknown
10465   enable_dlopen_self=unknown
10466   enable_dlopen_self_static=unknown
10467 else
10468   lt_cv_dlopen=no
10469   lt_cv_dlopen_libs=
10470
10471   case $host_os in
10472   beos*)
10473     lt_cv_dlopen="load_add_on"
10474     lt_cv_dlopen_libs=
10475     lt_cv_dlopen_self=yes
10476     ;;
10477
10478   mingw* | pw32*)
10479     lt_cv_dlopen="LoadLibrary"
10480     lt_cv_dlopen_libs=
10481    ;;
10482
10483   cygwin*)
10484     lt_cv_dlopen="dlopen"
10485     lt_cv_dlopen_libs=
10486    ;;
10487
10488   darwin*)
10489   # if libdl is installed we need to link against it
10490     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10491 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10492 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10493   echo $ECHO_N "(cached) $ECHO_C" >&6
10494 else
10495   ac_check_lib_save_LIBS=$LIBS
10496 LIBS="-ldl  $LIBS"
10497 cat >conftest.$ac_ext <<_ACEOF
10498 /* confdefs.h.  */
10499 _ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h.  */
10503
10504 /* Override any gcc2 internal prototype to avoid an error.  */
10505 #ifdef __cplusplus
10506 extern "C"
10507 #endif
10508 /* We use char because int might match the return type of a gcc2
10509    builtin and then its argument prototype would still apply.  */
10510 char dlopen ();
10511 int
10512 main ()
10513 {
10514 dlopen ();
10515   ;
10516   return 0;
10517 }
10518 _ACEOF
10519 rm -f conftest.$ac_objext conftest$ac_exeext
10520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10521   (eval $ac_link) 2>conftest.er1
10522   ac_status=$?
10523   grep -v '^ *+' conftest.er1 >conftest.err
10524   rm -f conftest.er1
10525   cat conftest.err >&5
10526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527   (exit $ac_status); } &&
10528          { ac_try='test -z "$ac_c_werror_flag"
10529                          || test ! -s conftest.err'
10530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531   (eval $ac_try) 2>&5
10532   ac_status=$?
10533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534   (exit $ac_status); }; } &&
10535          { ac_try='test -s conftest$ac_exeext'
10536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537   (eval $ac_try) 2>&5
10538   ac_status=$?
10539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540   (exit $ac_status); }; }; then
10541   ac_cv_lib_dl_dlopen=yes
10542 else
10543   echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10545
10546 ac_cv_lib_dl_dlopen=no
10547 fi
10548 rm -f conftest.err conftest.$ac_objext \
10549       conftest$ac_exeext conftest.$ac_ext
10550 LIBS=$ac_check_lib_save_LIBS
10551 fi
10552 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10553 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10554 if test $ac_cv_lib_dl_dlopen = yes; then
10555   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10556 else
10557
10558     lt_cv_dlopen="dyld"
10559     lt_cv_dlopen_libs=
10560     lt_cv_dlopen_self=yes
10561
10562 fi
10563
10564    ;;
10565
10566   *)
10567     echo "$as_me:$LINENO: checking for shl_load" >&5
10568 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10569 if test "${ac_cv_func_shl_load+set}" = set; then
10570   echo $ECHO_N "(cached) $ECHO_C" >&6
10571 else
10572   cat >conftest.$ac_ext <<_ACEOF
10573 /* confdefs.h.  */
10574 _ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h.  */
10578 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10579    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10580 #define shl_load innocuous_shl_load
10581
10582 /* System header to define __stub macros and hopefully few prototypes,
10583     which can conflict with char shl_load (); below.
10584     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10585     <limits.h> exists even on freestanding compilers.  */
10586
10587 #ifdef __STDC__
10588 # include <limits.h>
10589 #else
10590 # include <assert.h>
10591 #endif
10592
10593 #undef shl_load
10594
10595 /* Override any gcc2 internal prototype to avoid an error.  */
10596 #ifdef __cplusplus
10597 extern "C"
10598 {
10599 #endif
10600 /* We use char because int might match the return type of a gcc2
10601    builtin and then its argument prototype would still apply.  */
10602 char shl_load ();
10603 /* The GNU C library defines this for functions which it implements
10604     to always fail with ENOSYS.  Some functions are actually named
10605     something starting with __ and the normal name is an alias.  */
10606 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10607 choke me
10608 #else
10609 char (*f) () = shl_load;
10610 #endif
10611 #ifdef __cplusplus
10612 }
10613 #endif
10614
10615 int
10616 main ()
10617 {
10618 return f != shl_load;
10619   ;
10620   return 0;
10621 }
10622 _ACEOF
10623 rm -f conftest.$ac_objext conftest$ac_exeext
10624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10625   (eval $ac_link) 2>conftest.er1
10626   ac_status=$?
10627   grep -v '^ *+' conftest.er1 >conftest.err
10628   rm -f conftest.er1
10629   cat conftest.err >&5
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   (exit $ac_status); } &&
10632          { ac_try='test -z "$ac_c_werror_flag"
10633                          || test ! -s conftest.err'
10634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635   (eval $ac_try) 2>&5
10636   ac_status=$?
10637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638   (exit $ac_status); }; } &&
10639          { ac_try='test -s conftest$ac_exeext'
10640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641   (eval $ac_try) 2>&5
10642   ac_status=$?
10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644   (exit $ac_status); }; }; then
10645   ac_cv_func_shl_load=yes
10646 else
10647   echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10649
10650 ac_cv_func_shl_load=no
10651 fi
10652 rm -f conftest.err conftest.$ac_objext \
10653       conftest$ac_exeext conftest.$ac_ext
10654 fi
10655 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10656 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10657 if test $ac_cv_func_shl_load = yes; then
10658   lt_cv_dlopen="shl_load"
10659 else
10660   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10661 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10662 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10663   echo $ECHO_N "(cached) $ECHO_C" >&6
10664 else
10665   ac_check_lib_save_LIBS=$LIBS
10666 LIBS="-ldld  $LIBS"
10667 cat >conftest.$ac_ext <<_ACEOF
10668 /* confdefs.h.  */
10669 _ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h.  */
10673
10674 /* Override any gcc2 internal prototype to avoid an error.  */
10675 #ifdef __cplusplus
10676 extern "C"
10677 #endif
10678 /* We use char because int might match the return type of a gcc2
10679    builtin and then its argument prototype would still apply.  */
10680 char shl_load ();
10681 int
10682 main ()
10683 {
10684 shl_load ();
10685   ;
10686   return 0;
10687 }
10688 _ACEOF
10689 rm -f conftest.$ac_objext conftest$ac_exeext
10690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10691   (eval $ac_link) 2>conftest.er1
10692   ac_status=$?
10693   grep -v '^ *+' conftest.er1 >conftest.err
10694   rm -f conftest.er1
10695   cat conftest.err >&5
10696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697   (exit $ac_status); } &&
10698          { ac_try='test -z "$ac_c_werror_flag"
10699                          || test ! -s conftest.err'
10700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701   (eval $ac_try) 2>&5
10702   ac_status=$?
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); }; } &&
10705          { ac_try='test -s conftest$ac_exeext'
10706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707   (eval $ac_try) 2>&5
10708   ac_status=$?
10709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710   (exit $ac_status); }; }; then
10711   ac_cv_lib_dld_shl_load=yes
10712 else
10713   echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10715
10716 ac_cv_lib_dld_shl_load=no
10717 fi
10718 rm -f conftest.err conftest.$ac_objext \
10719       conftest$ac_exeext conftest.$ac_ext
10720 LIBS=$ac_check_lib_save_LIBS
10721 fi
10722 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10723 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10724 if test $ac_cv_lib_dld_shl_load = yes; then
10725   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10726 else
10727   echo "$as_me:$LINENO: checking for dlopen" >&5
10728 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10729 if test "${ac_cv_func_dlopen+set}" = set; then
10730   echo $ECHO_N "(cached) $ECHO_C" >&6
10731 else
10732   cat >conftest.$ac_ext <<_ACEOF
10733 /* confdefs.h.  */
10734 _ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h.  */
10738 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10740 #define dlopen innocuous_dlopen
10741
10742 /* System header to define __stub macros and hopefully few prototypes,
10743     which can conflict with char dlopen (); below.
10744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10745     <limits.h> exists even on freestanding compilers.  */
10746
10747 #ifdef __STDC__
10748 # include <limits.h>
10749 #else
10750 # include <assert.h>
10751 #endif
10752
10753 #undef dlopen
10754
10755 /* Override any gcc2 internal prototype to avoid an error.  */
10756 #ifdef __cplusplus
10757 extern "C"
10758 {
10759 #endif
10760 /* We use char because int might match the return type of a gcc2
10761    builtin and then its argument prototype would still apply.  */
10762 char dlopen ();
10763 /* The GNU C library defines this for functions which it implements
10764     to always fail with ENOSYS.  Some functions are actually named
10765     something starting with __ and the normal name is an alias.  */
10766 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10767 choke me
10768 #else
10769 char (*f) () = dlopen;
10770 #endif
10771 #ifdef __cplusplus
10772 }
10773 #endif
10774
10775 int
10776 main ()
10777 {
10778 return f != dlopen;
10779   ;
10780   return 0;
10781 }
10782 _ACEOF
10783 rm -f conftest.$ac_objext conftest$ac_exeext
10784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10785   (eval $ac_link) 2>conftest.er1
10786   ac_status=$?
10787   grep -v '^ *+' conftest.er1 >conftest.err
10788   rm -f conftest.er1
10789   cat conftest.err >&5
10790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791   (exit $ac_status); } &&
10792          { ac_try='test -z "$ac_c_werror_flag"
10793                          || test ! -s conftest.err'
10794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795   (eval $ac_try) 2>&5
10796   ac_status=$?
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); }; } &&
10799          { ac_try='test -s conftest$ac_exeext'
10800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801   (eval $ac_try) 2>&5
10802   ac_status=$?
10803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804   (exit $ac_status); }; }; then
10805   ac_cv_func_dlopen=yes
10806 else
10807   echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.$ac_ext >&5
10809
10810 ac_cv_func_dlopen=no
10811 fi
10812 rm -f conftest.err conftest.$ac_objext \
10813       conftest$ac_exeext conftest.$ac_ext
10814 fi
10815 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10816 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10817 if test $ac_cv_func_dlopen = yes; then
10818   lt_cv_dlopen="dlopen"
10819 else
10820   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10821 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10822 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10823   echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825   ac_check_lib_save_LIBS=$LIBS
10826 LIBS="-ldl  $LIBS"
10827 cat >conftest.$ac_ext <<_ACEOF
10828 /* confdefs.h.  */
10829 _ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h.  */
10833
10834 /* Override any gcc2 internal prototype to avoid an error.  */
10835 #ifdef __cplusplus
10836 extern "C"
10837 #endif
10838 /* We use char because int might match the return type of a gcc2
10839    builtin and then its argument prototype would still apply.  */
10840 char dlopen ();
10841 int
10842 main ()
10843 {
10844 dlopen ();
10845   ;
10846   return 0;
10847 }
10848 _ACEOF
10849 rm -f conftest.$ac_objext conftest$ac_exeext
10850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10851   (eval $ac_link) 2>conftest.er1
10852   ac_status=$?
10853   grep -v '^ *+' conftest.er1 >conftest.err
10854   rm -f conftest.er1
10855   cat conftest.err >&5
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); } &&
10858          { ac_try='test -z "$ac_c_werror_flag"
10859                          || test ! -s conftest.err'
10860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861   (eval $ac_try) 2>&5
10862   ac_status=$?
10863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864   (exit $ac_status); }; } &&
10865          { ac_try='test -s conftest$ac_exeext'
10866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867   (eval $ac_try) 2>&5
10868   ac_status=$?
10869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870   (exit $ac_status); }; }; then
10871   ac_cv_lib_dl_dlopen=yes
10872 else
10873   echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10875
10876 ac_cv_lib_dl_dlopen=no
10877 fi
10878 rm -f conftest.err conftest.$ac_objext \
10879       conftest$ac_exeext conftest.$ac_ext
10880 LIBS=$ac_check_lib_save_LIBS
10881 fi
10882 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10883 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10884 if test $ac_cv_lib_dl_dlopen = yes; then
10885   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10886 else
10887   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10888 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10889 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10890   echo $ECHO_N "(cached) $ECHO_C" >&6
10891 else
10892   ac_check_lib_save_LIBS=$LIBS
10893 LIBS="-lsvld  $LIBS"
10894 cat >conftest.$ac_ext <<_ACEOF
10895 /* confdefs.h.  */
10896 _ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h.  */
10900
10901 /* Override any gcc2 internal prototype to avoid an error.  */
10902 #ifdef __cplusplus
10903 extern "C"
10904 #endif
10905 /* We use char because int might match the return type of a gcc2
10906    builtin and then its argument prototype would still apply.  */
10907 char dlopen ();
10908 int
10909 main ()
10910 {
10911 dlopen ();
10912   ;
10913   return 0;
10914 }
10915 _ACEOF
10916 rm -f conftest.$ac_objext conftest$ac_exeext
10917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10918   (eval $ac_link) 2>conftest.er1
10919   ac_status=$?
10920   grep -v '^ *+' conftest.er1 >conftest.err
10921   rm -f conftest.er1
10922   cat conftest.err >&5
10923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924   (exit $ac_status); } &&
10925          { ac_try='test -z "$ac_c_werror_flag"
10926                          || test ! -s conftest.err'
10927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928   (eval $ac_try) 2>&5
10929   ac_status=$?
10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); }; } &&
10932          { ac_try='test -s conftest$ac_exeext'
10933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934   (eval $ac_try) 2>&5
10935   ac_status=$?
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); }; }; then
10938   ac_cv_lib_svld_dlopen=yes
10939 else
10940   echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10942
10943 ac_cv_lib_svld_dlopen=no
10944 fi
10945 rm -f conftest.err conftest.$ac_objext \
10946       conftest$ac_exeext conftest.$ac_ext
10947 LIBS=$ac_check_lib_save_LIBS
10948 fi
10949 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10950 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10951 if test $ac_cv_lib_svld_dlopen = yes; then
10952   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10953 else
10954   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10955 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10956 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10957   echo $ECHO_N "(cached) $ECHO_C" >&6
10958 else
10959   ac_check_lib_save_LIBS=$LIBS
10960 LIBS="-ldld  $LIBS"
10961 cat >conftest.$ac_ext <<_ACEOF
10962 /* confdefs.h.  */
10963 _ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h.  */
10967
10968 /* Override any gcc2 internal prototype to avoid an error.  */
10969 #ifdef __cplusplus
10970 extern "C"
10971 #endif
10972 /* We use char because int might match the return type of a gcc2
10973    builtin and then its argument prototype would still apply.  */
10974 char dld_link ();
10975 int
10976 main ()
10977 {
10978 dld_link ();
10979   ;
10980   return 0;
10981 }
10982 _ACEOF
10983 rm -f conftest.$ac_objext conftest$ac_exeext
10984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10985   (eval $ac_link) 2>conftest.er1
10986   ac_status=$?
10987   grep -v '^ *+' conftest.er1 >conftest.err
10988   rm -f conftest.er1
10989   cat conftest.err >&5
10990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991   (exit $ac_status); } &&
10992          { ac_try='test -z "$ac_c_werror_flag"
10993                          || test ! -s conftest.err'
10994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995   (eval $ac_try) 2>&5
10996   ac_status=$?
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); }; } &&
10999          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11005   ac_cv_lib_dld_dld_link=yes
11006 else
11007   echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11009
11010 ac_cv_lib_dld_dld_link=no
11011 fi
11012 rm -f conftest.err conftest.$ac_objext \
11013       conftest$ac_exeext conftest.$ac_ext
11014 LIBS=$ac_check_lib_save_LIBS
11015 fi
11016 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11017 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11018 if test $ac_cv_lib_dld_dld_link = yes; then
11019   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11020 fi
11021
11022
11023 fi
11024
11025
11026 fi
11027
11028
11029 fi
11030
11031
11032 fi
11033
11034
11035 fi
11036
11037     ;;
11038   esac
11039
11040   if test "x$lt_cv_dlopen" != xno; then
11041     enable_dlopen=yes
11042   else
11043     enable_dlopen=no
11044   fi
11045
11046   case $lt_cv_dlopen in
11047   dlopen)
11048     save_CPPFLAGS="$CPPFLAGS"
11049     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11050
11051     save_LDFLAGS="$LDFLAGS"
11052     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11053
11054     save_LIBS="$LIBS"
11055     LIBS="$lt_cv_dlopen_libs $LIBS"
11056
11057     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11058 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11059 if test "${lt_cv_dlopen_self+set}" = set; then
11060   echo $ECHO_N "(cached) $ECHO_C" >&6
11061 else
11062           if test "$cross_compiling" = yes; then :
11063   lt_cv_dlopen_self=cross
11064 else
11065   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11066   lt_status=$lt_dlunknown
11067   cat > conftest.$ac_ext <<EOF
11068 #line 11068 "configure"
11069 #include "confdefs.h"
11070
11071 #if HAVE_DLFCN_H
11072 #include <dlfcn.h>
11073 #endif
11074
11075 #include <stdio.h>
11076
11077 #ifdef RTLD_GLOBAL
11078 #  define LT_DLGLOBAL           RTLD_GLOBAL
11079 #else
11080 #  ifdef DL_GLOBAL
11081 #    define LT_DLGLOBAL         DL_GLOBAL
11082 #  else
11083 #    define LT_DLGLOBAL         0
11084 #  endif
11085 #endif
11086
11087 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11088    find out it does not work in some platform. */
11089 #ifndef LT_DLLAZY_OR_NOW
11090 #  ifdef RTLD_LAZY
11091 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11092 #  else
11093 #    ifdef DL_LAZY
11094 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11095 #    else
11096 #      ifdef RTLD_NOW
11097 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11098 #      else
11099 #        ifdef DL_NOW
11100 #          define LT_DLLAZY_OR_NOW      DL_NOW
11101 #        else
11102 #          define LT_DLLAZY_OR_NOW      0
11103 #        endif
11104 #      endif
11105 #    endif
11106 #  endif
11107 #endif
11108
11109 #ifdef __cplusplus
11110 extern "C" void exit (int);
11111 #endif
11112
11113 void fnord() { int i=42;}
11114 int main ()
11115 {
11116   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11117   int status = $lt_dlunknown;
11118
11119   if (self)
11120     {
11121       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11122       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11123       /* dlclose (self); */
11124     }
11125
11126     exit (status);
11127 }
11128 EOF
11129   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11130   (eval $ac_link) 2>&5
11131   ac_status=$?
11132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11134     (./conftest; exit; ) 2>/dev/null
11135     lt_status=$?
11136     case x$lt_status in
11137       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11138       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11139       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11140     esac
11141   else :
11142     # compilation failed
11143     lt_cv_dlopen_self=no
11144   fi
11145 fi
11146 rm -fr conftest*
11147
11148
11149 fi
11150 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11151 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11152
11153     if test "x$lt_cv_dlopen_self" = xyes; then
11154       LDFLAGS="$LDFLAGS $link_static_flag"
11155       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11156 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11157 if test "${lt_cv_dlopen_self_static+set}" = set; then
11158   echo $ECHO_N "(cached) $ECHO_C" >&6
11159 else
11160           if test "$cross_compiling" = yes; then :
11161   lt_cv_dlopen_self_static=cross
11162 else
11163   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11164   lt_status=$lt_dlunknown
11165   cat > conftest.$ac_ext <<EOF
11166 #line 11166 "configure"
11167 #include "confdefs.h"
11168
11169 #if HAVE_DLFCN_H
11170 #include <dlfcn.h>
11171 #endif
11172
11173 #include <stdio.h>
11174
11175 #ifdef RTLD_GLOBAL
11176 #  define LT_DLGLOBAL           RTLD_GLOBAL
11177 #else
11178 #  ifdef DL_GLOBAL
11179 #    define LT_DLGLOBAL         DL_GLOBAL
11180 #  else
11181 #    define LT_DLGLOBAL         0
11182 #  endif
11183 #endif
11184
11185 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11186    find out it does not work in some platform. */
11187 #ifndef LT_DLLAZY_OR_NOW
11188 #  ifdef RTLD_LAZY
11189 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11190 #  else
11191 #    ifdef DL_LAZY
11192 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11193 #    else
11194 #      ifdef RTLD_NOW
11195 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11196 #      else
11197 #        ifdef DL_NOW
11198 #          define LT_DLLAZY_OR_NOW      DL_NOW
11199 #        else
11200 #          define LT_DLLAZY_OR_NOW      0
11201 #        endif
11202 #      endif
11203 #    endif
11204 #  endif
11205 #endif
11206
11207 #ifdef __cplusplus
11208 extern "C" void exit (int);
11209 #endif
11210
11211 void fnord() { int i=42;}
11212 int main ()
11213 {
11214   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11215   int status = $lt_dlunknown;
11216
11217   if (self)
11218     {
11219       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11220       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11221       /* dlclose (self); */
11222     }
11223
11224     exit (status);
11225 }
11226 EOF
11227   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11228   (eval $ac_link) 2>&5
11229   ac_status=$?
11230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11232     (./conftest; exit; ) 2>/dev/null
11233     lt_status=$?
11234     case x$lt_status in
11235       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11236       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11237       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11238     esac
11239   else :
11240     # compilation failed
11241     lt_cv_dlopen_self_static=no
11242   fi
11243 fi
11244 rm -fr conftest*
11245
11246
11247 fi
11248 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11249 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11250     fi
11251
11252     CPPFLAGS="$save_CPPFLAGS"
11253     LDFLAGS="$save_LDFLAGS"
11254     LIBS="$save_LIBS"
11255     ;;
11256   esac
11257
11258   case $lt_cv_dlopen_self in
11259   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11260   *) enable_dlopen_self=unknown ;;
11261   esac
11262
11263   case $lt_cv_dlopen_self_static in
11264   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11265   *) enable_dlopen_self_static=unknown ;;
11266   esac
11267 fi
11268
11269
11270 # Report which librarie types wil actually be built
11271 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11272 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11273 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11274 echo "${ECHO_T}$can_build_shared" >&6
11275
11276 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11277 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11278 test "$can_build_shared" = "no" && enable_shared=no
11279
11280 # On AIX, shared libraries and static libraries use the same namespace, and
11281 # are all built from PIC.
11282 case "$host_os" in
11283 aix3*)
11284   test "$enable_shared" = yes && enable_static=no
11285   if test -n "$RANLIB"; then
11286     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11287     postinstall_cmds='$RANLIB $lib'
11288   fi
11289   ;;
11290
11291 aix4* | aix5*)
11292   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11293     test "$enable_shared" = yes && enable_static=no
11294   fi
11295     ;;
11296 esac
11297 echo "$as_me:$LINENO: result: $enable_shared" >&5
11298 echo "${ECHO_T}$enable_shared" >&6
11299
11300 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11301 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11302 # Make sure either enable_shared or enable_static is yes.
11303 test "$enable_shared" = yes || enable_static=yes
11304 echo "$as_me:$LINENO: result: $enable_static" >&5
11305 echo "${ECHO_T}$enable_static" >&6
11306
11307 # The else clause should only fire when bootstrapping the
11308 # libtool distribution, otherwise you forgot to ship ltmain.sh
11309 # with your package, and you will get complaints that there are
11310 # no rules to generate ltmain.sh.
11311 if test -f "$ltmain"; then
11312   # See if we are running on zsh, and set the options which allow our commands through
11313   # without removal of \ escapes.
11314   if test -n "${ZSH_VERSION+set}" ; then
11315     setopt NO_GLOB_SUBST
11316   fi
11317   # Now quote all the things that may contain metacharacters while being
11318   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11319   # variables and quote the copies for generation of the libtool script.
11320   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11321     SED SHELL STRIP \
11322     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11323     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11324     deplibs_check_method reload_flag reload_cmds need_locks \
11325     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11326     lt_cv_sys_global_symbol_to_c_name_address \
11327     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11328     old_postinstall_cmds old_postuninstall_cmds \
11329     compiler \
11330     CC \
11331     LD \
11332     lt_prog_compiler_wl \
11333     lt_prog_compiler_pic \
11334     lt_prog_compiler_static \
11335     lt_prog_compiler_no_builtin_flag \
11336     export_dynamic_flag_spec \
11337     thread_safe_flag_spec \
11338     whole_archive_flag_spec \
11339     enable_shared_with_static_runtimes \
11340     old_archive_cmds \
11341     old_archive_from_new_cmds \
11342     predep_objects \
11343     postdep_objects \
11344     predeps \
11345     postdeps \
11346     compiler_lib_search_path \
11347     archive_cmds \
11348     archive_expsym_cmds \
11349     postinstall_cmds \
11350     postuninstall_cmds \
11351     old_archive_from_expsyms_cmds \
11352     allow_undefined_flag \
11353     no_undefined_flag \
11354     export_symbols_cmds \
11355     hardcode_libdir_flag_spec \
11356     hardcode_libdir_flag_spec_ld \
11357     hardcode_libdir_separator \
11358     hardcode_automatic \
11359     module_cmds \
11360     module_expsym_cmds \
11361     lt_cv_prog_compiler_c_o \
11362     exclude_expsyms \
11363     include_expsyms; do
11364
11365     case $var in
11366     old_archive_cmds | \
11367     old_archive_from_new_cmds | \
11368     archive_cmds | \
11369     archive_expsym_cmds | \
11370     module_cmds | \
11371     module_expsym_cmds | \
11372     old_archive_from_expsyms_cmds | \
11373     export_symbols_cmds | \
11374     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11375     postinstall_cmds | postuninstall_cmds | \
11376     old_postinstall_cmds | old_postuninstall_cmds | \
11377     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11378       # Double-quote double-evaled strings.
11379       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11380       ;;
11381     *)
11382       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11383       ;;
11384     esac
11385   done
11386
11387   case $lt_echo in
11388   *'\$0 --fallback-echo"')
11389     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11390     ;;
11391   esac
11392
11393 cfgfile="${ofile}T"
11394   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11395   $rm -f "$cfgfile"
11396   { echo "$as_me:$LINENO: creating $ofile" >&5
11397 echo "$as_me: creating $ofile" >&6;}
11398
11399   cat <<__EOF__ >> "$cfgfile"
11400 #! $SHELL
11401
11402 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11403 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11404 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11405 #
11406 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11407 # Free Software Foundation, Inc.
11408 #
11409 # This file is part of GNU Libtool:
11410 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11411 #
11412 # This program is free software; you can redistribute it and/or modify
11413 # it under the terms of the GNU General Public License as published by
11414 # the Free Software Foundation; either version 2 of the License, or
11415 # (at your option) any later version.
11416 #
11417 # This program is distributed in the hope that it will be useful, but
11418 # WITHOUT ANY WARRANTY; without even the implied warranty of
11419 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11420 # General Public License for more details.
11421 #
11422 # You should have received a copy of the GNU General Public License
11423 # along with this program; if not, write to the Free Software
11424 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11425 #
11426 # As a special exception to the GNU General Public License, if you
11427 # distribute this file as part of a program that contains a
11428 # configuration script generated by Autoconf, you may include it under
11429 # the same distribution terms that you use for the rest of that program.
11430
11431 # A sed program that does not truncate output.
11432 SED=$lt_SED
11433
11434 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11435 Xsed="$SED -e 1s/^X//"
11436
11437 # The HP-UX ksh and POSIX shell print the target directory to stdout
11438 # if CDPATH is set.
11439 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11440
11441 # The names of the tagged configurations supported by this script.
11442 available_tags=
11443
11444 # ### BEGIN LIBTOOL CONFIG
11445
11446 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11447
11448 # Shell to use when invoking shell scripts.
11449 SHELL=$lt_SHELL
11450
11451 # Whether or not to build shared libraries.
11452 build_libtool_libs=$enable_shared
11453
11454 # Whether or not to build static libraries.
11455 build_old_libs=$enable_static
11456
11457 # Whether or not to add -lc for building shared libraries.
11458 build_libtool_need_lc=$archive_cmds_need_lc
11459
11460 # Whether or not to disallow shared libs when runtime libs are static
11461 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11462
11463 # Whether or not to optimize for fast installation.
11464 fast_install=$enable_fast_install
11465
11466 # The host system.
11467 host_alias=$host_alias
11468 host=$host
11469 host_os=$host_os
11470
11471 # The build system.
11472 build_alias=$build_alias
11473 build=$build
11474 build_os=$build_os
11475
11476 # An echo program that does not interpret backslashes.
11477 echo=$lt_echo
11478
11479 # The archiver.
11480 AR=$lt_AR
11481 AR_FLAGS=$lt_AR_FLAGS
11482
11483 # A C compiler.
11484 LTCC=$lt_LTCC
11485
11486 # A language-specific compiler.
11487 CC=$lt_compiler
11488
11489 # Is the compiler the GNU C compiler?
11490 with_gcc=$GCC
11491
11492 # An ERE matcher.
11493 EGREP=$lt_EGREP
11494
11495 # The linker used to build libraries.
11496 LD=$lt_LD
11497
11498 # Whether we need hard or soft links.
11499 LN_S=$lt_LN_S
11500
11501 # A BSD-compatible nm program.
11502 NM=$lt_NM
11503
11504 # A symbol stripping program
11505 STRIP=$lt_STRIP
11506
11507 # Used to examine libraries when file_magic_cmd begins "file"
11508 MAGIC_CMD=$MAGIC_CMD
11509
11510 # Used on cygwin: DLL creation program.
11511 DLLTOOL="$DLLTOOL"
11512
11513 # Used on cygwin: object dumper.
11514 OBJDUMP="$OBJDUMP"
11515
11516 # Used on cygwin: assembler.
11517 AS="$AS"
11518
11519 # The name of the directory that contains temporary libtool files.
11520 objdir=$objdir
11521
11522 # How to create reloadable object files.
11523 reload_flag=$lt_reload_flag
11524 reload_cmds=$lt_reload_cmds
11525
11526 # How to pass a linker flag through the compiler.
11527 wl=$lt_lt_prog_compiler_wl
11528
11529 # Object file suffix (normally "o").
11530 objext="$ac_objext"
11531
11532 # Old archive suffix (normally "a").
11533 libext="$libext"
11534
11535 # Shared library suffix (normally ".so").
11536 shrext_cmds='$shrext_cmds'
11537
11538 # Executable file suffix (normally "").
11539 exeext="$exeext"
11540
11541 # Additional compiler flags for building library objects.
11542 pic_flag=$lt_lt_prog_compiler_pic
11543 pic_mode=$pic_mode
11544
11545 # What is the maximum length of a command?
11546 max_cmd_len=$lt_cv_sys_max_cmd_len
11547
11548 # Does compiler simultaneously support -c and -o options?
11549 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11550
11551 # Must we lock files when doing compilation?
11552 need_locks=$lt_need_locks
11553
11554 # Do we need the lib prefix for modules?
11555 need_lib_prefix=$need_lib_prefix
11556
11557 # Do we need a version for libraries?
11558 need_version=$need_version
11559
11560 # Whether dlopen is supported.
11561 dlopen_support=$enable_dlopen
11562
11563 # Whether dlopen of programs is supported.
11564 dlopen_self=$enable_dlopen_self
11565
11566 # Whether dlopen of statically linked programs is supported.
11567 dlopen_self_static=$enable_dlopen_self_static
11568
11569 # Compiler flag to prevent dynamic linking.
11570 link_static_flag=$lt_lt_prog_compiler_static
11571
11572 # Compiler flag to turn off builtin functions.
11573 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11574
11575 # Compiler flag to allow reflexive dlopens.
11576 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11577
11578 # Compiler flag to generate shared objects directly from archives.
11579 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11580
11581 # Compiler flag to generate thread-safe objects.
11582 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11583
11584 # Library versioning type.
11585 version_type=$version_type
11586
11587 # Format of library name prefix.
11588 libname_spec=$lt_libname_spec
11589
11590 # List of archive names.  First name is the real one, the rest are links.
11591 # The last name is the one that the linker finds with -lNAME.
11592 library_names_spec=$lt_library_names_spec
11593
11594 # The coded name of the library, if different from the real name.
11595 soname_spec=$lt_soname_spec
11596
11597 # Commands used to build and install an old-style archive.
11598 RANLIB=$lt_RANLIB
11599 old_archive_cmds=$lt_old_archive_cmds
11600 old_postinstall_cmds=$lt_old_postinstall_cmds
11601 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11602
11603 # Create an old-style archive from a shared archive.
11604 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11605
11606 # Create a temporary old-style archive to link instead of a shared archive.
11607 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11608
11609 # Commands used to build and install a shared archive.
11610 archive_cmds=$lt_archive_cmds
11611 archive_expsym_cmds=$lt_archive_expsym_cmds
11612 postinstall_cmds=$lt_postinstall_cmds
11613 postuninstall_cmds=$lt_postuninstall_cmds
11614
11615 # Commands used to build a loadable module (assumed same as above if empty)
11616 module_cmds=$lt_module_cmds
11617 module_expsym_cmds=$lt_module_expsym_cmds
11618
11619 # Commands to strip libraries.
11620 old_striplib=$lt_old_striplib
11621 striplib=$lt_striplib
11622
11623 # Dependencies to place before the objects being linked to create a
11624 # shared library.
11625 predep_objects=$lt_predep_objects
11626
11627 # Dependencies to place after the objects being linked to create a
11628 # shared library.
11629 postdep_objects=$lt_postdep_objects
11630
11631 # Dependencies to place before the objects being linked to create a
11632 # shared library.
11633 predeps=$lt_predeps
11634
11635 # Dependencies to place after the objects being linked to create a
11636 # shared library.
11637 postdeps=$lt_postdeps
11638
11639 # The library search path used internally by the compiler when linking
11640 # a shared library.
11641 compiler_lib_search_path=$lt_compiler_lib_search_path
11642
11643 # Method to check whether dependent libraries are shared objects.
11644 deplibs_check_method=$lt_deplibs_check_method
11645
11646 # Command to use when deplibs_check_method == file_magic.
11647 file_magic_cmd=$lt_file_magic_cmd
11648
11649 # Flag that allows shared libraries with undefined symbols to be built.
11650 allow_undefined_flag=$lt_allow_undefined_flag
11651
11652 # Flag that forces no undefined symbols.
11653 no_undefined_flag=$lt_no_undefined_flag
11654
11655 # Commands used to finish a libtool library installation in a directory.
11656 finish_cmds=$lt_finish_cmds
11657
11658 # Same as above, but a single script fragment to be evaled but not shown.
11659 finish_eval=$lt_finish_eval
11660
11661 # Take the output of nm and produce a listing of raw symbols and C names.
11662 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11663
11664 # Transform the output of nm in a proper C declaration
11665 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11666
11667 # Transform the output of nm in a C name address pair
11668 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11669
11670 # This is the shared library runtime path variable.
11671 runpath_var=$runpath_var
11672
11673 # This is the shared library path variable.
11674 shlibpath_var=$shlibpath_var
11675
11676 # Is shlibpath searched before the hard-coded library search path?
11677 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11678
11679 # How to hardcode a shared library path into an executable.
11680 hardcode_action=$hardcode_action
11681
11682 # Whether we should hardcode library paths into libraries.
11683 hardcode_into_libs=$hardcode_into_libs
11684
11685 # Flag to hardcode \$libdir into a binary during linking.
11686 # This must work even if \$libdir does not exist.
11687 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11688
11689 # If ld is used when linking, flag to hardcode \$libdir into
11690 # a binary during linking. This must work even if \$libdir does
11691 # not exist.
11692 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11693
11694 # Whether we need a single -rpath flag with a separated argument.
11695 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11696
11697 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11698 # resulting binary.
11699 hardcode_direct=$hardcode_direct
11700
11701 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11702 # resulting binary.
11703 hardcode_minus_L=$hardcode_minus_L
11704
11705 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11706 # the resulting binary.
11707 hardcode_shlibpath_var=$hardcode_shlibpath_var
11708
11709 # Set to yes if building a shared library automatically hardcodes DIR into the library
11710 # and all subsequent libraries and executables linked against it.
11711 hardcode_automatic=$hardcode_automatic
11712
11713 # Variables whose values should be saved in libtool wrapper scripts and
11714 # restored at relink time.
11715 variables_saved_for_relink="$variables_saved_for_relink"
11716
11717 # Whether libtool must link a program against all its dependency libraries.
11718 link_all_deplibs=$link_all_deplibs
11719
11720 # Compile-time system search path for libraries
11721 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11722
11723 # Run-time system search path for libraries
11724 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11725
11726 # Fix the shell variable \$srcfile for the compiler.
11727 fix_srcfile_path="$fix_srcfile_path"
11728
11729 # Set to yes if exported symbols are required.
11730 always_export_symbols=$always_export_symbols
11731
11732 # The commands to list exported symbols.
11733 export_symbols_cmds=$lt_export_symbols_cmds
11734
11735 # The commands to extract the exported symbol list from a shared archive.
11736 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11737
11738 # Symbols that should not be listed in the preloaded symbols.
11739 exclude_expsyms=$lt_exclude_expsyms
11740
11741 # Symbols that must always be exported.
11742 include_expsyms=$lt_include_expsyms
11743
11744 # ### END LIBTOOL CONFIG
11745
11746 __EOF__
11747
11748
11749   case $host_os in
11750   aix3*)
11751     cat <<\EOF >> "$cfgfile"
11752
11753 # AIX sometimes has problems with the GCC collect2 program.  For some
11754 # reason, if we set the COLLECT_NAMES environment variable, the problems
11755 # vanish in a puff of smoke.
11756 if test "X${COLLECT_NAMES+set}" != Xset; then
11757   COLLECT_NAMES=
11758   export COLLECT_NAMES
11759 fi
11760 EOF
11761     ;;
11762   esac
11763
11764   # We use sed instead of cat because bash on DJGPP gets confused if
11765   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11766   # text mode, it properly converts lines to CR/LF.  This bash problem
11767   # is reportedly fixed, but why not run on old versions too?
11768   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11769
11770   mv -f "$cfgfile" "$ofile" || \
11771     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11772   chmod +x "$ofile"
11773
11774 else
11775   # If there is no Makefile yet, we rely on a make rule to execute
11776   # `config.status --recheck' to rerun these tests and create the
11777   # libtool script then.
11778   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11779   if test -f "$ltmain_in"; then
11780     test -f Makefile && make "$ltmain"
11781   fi
11782 fi
11783
11784
11785 ac_ext=c
11786 ac_cpp='$CPP $CPPFLAGS'
11787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11790
11791 CC="$lt_save_CC"
11792
11793
11794 # Check whether --with-tags or --without-tags was given.
11795 if test "${with_tags+set}" = set; then
11796   withval="$with_tags"
11797   tagnames="$withval"
11798 fi;
11799
11800 if test -f "$ltmain" && test -n "$tagnames"; then
11801   if test ! -f "${ofile}"; then
11802     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11803 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11804   fi
11805
11806   if test -z "$LTCC"; then
11807     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11808     if test -z "$LTCC"; then
11809       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11810 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11811     else
11812       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11813 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11814     fi
11815   fi
11816
11817   # Extract list of available tagged configurations in $ofile.
11818   # Note that this assumes the entire list is on one line.
11819   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11820
11821   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11822   for tagname in $tagnames; do
11823     IFS="$lt_save_ifs"
11824     # Check whether tagname contains only valid characters
11825     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11826     "") ;;
11827     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11828 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11829    { (exit 1); exit 1; }; }
11830         ;;
11831     esac
11832
11833     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11834     then
11835       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11836 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11837    { (exit 1); exit 1; }; }
11838     fi
11839
11840     # Update the list of available tags.
11841     if test -n "$tagname"; then
11842       echo appending configuration tag \"$tagname\" to $ofile
11843
11844       case $tagname in
11845       CXX)
11846         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11847             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11848             (test "X$CXX" != "Xg++"))) ; then
11849           ac_ext=cc
11850 ac_cpp='$CXXCPP $CPPFLAGS'
11851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11854
11855
11856
11857
11858 archive_cmds_need_lc_CXX=no
11859 allow_undefined_flag_CXX=
11860 always_export_symbols_CXX=no
11861 archive_expsym_cmds_CXX=
11862 export_dynamic_flag_spec_CXX=
11863 hardcode_direct_CXX=no
11864 hardcode_libdir_flag_spec_CXX=
11865 hardcode_libdir_flag_spec_ld_CXX=
11866 hardcode_libdir_separator_CXX=
11867 hardcode_minus_L_CXX=no
11868 hardcode_automatic_CXX=no
11869 module_cmds_CXX=
11870 module_expsym_cmds_CXX=
11871 link_all_deplibs_CXX=unknown
11872 old_archive_cmds_CXX=$old_archive_cmds
11873 no_undefined_flag_CXX=
11874 whole_archive_flag_spec_CXX=
11875 enable_shared_with_static_runtimes_CXX=no
11876
11877 # Dependencies to place before and after the object being linked:
11878 predep_objects_CXX=
11879 postdep_objects_CXX=
11880 predeps_CXX=
11881 postdeps_CXX=
11882 compiler_lib_search_path_CXX=
11883
11884 # Source file extension for C++ test sources.
11885 ac_ext=cc
11886
11887 # Object file extension for compiled C++ test sources.
11888 objext=o
11889 objext_CXX=$objext
11890
11891 # Code to be used in simple compile tests
11892 lt_simple_compile_test_code="int some_variable = 0;\n"
11893
11894 # Code to be used in simple link tests
11895 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11896
11897 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11898
11899 # If no C compiler was specified, use CC.
11900 LTCC=${LTCC-"$CC"}
11901
11902 # Allow CC to be a program name with arguments.
11903 compiler=$CC
11904
11905
11906 # save warnings/boilerplate of simple test code
11907 ac_outfile=conftest.$ac_objext
11908 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11909 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11910 _lt_compiler_boilerplate=`cat conftest.err`
11911 $rm conftest*
11912
11913 ac_outfile=conftest.$ac_objext
11914 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11915 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11916 _lt_linker_boilerplate=`cat conftest.err`
11917 $rm conftest*
11918
11919
11920 # Allow CC to be a program name with arguments.
11921 lt_save_CC=$CC
11922 lt_save_LD=$LD
11923 lt_save_GCC=$GCC
11924 GCC=$GXX
11925 lt_save_with_gnu_ld=$with_gnu_ld
11926 lt_save_path_LD=$lt_cv_path_LD
11927 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11928   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11929 else
11930   unset lt_cv_prog_gnu_ld
11931 fi
11932 if test -n "${lt_cv_path_LDCXX+set}"; then
11933   lt_cv_path_LD=$lt_cv_path_LDCXX
11934 else
11935   unset lt_cv_path_LD
11936 fi
11937 test -z "${LDCXX+set}" || LD=$LDCXX
11938 CC=${CXX-"c++"}
11939 compiler=$CC
11940 compiler_CXX=$CC
11941 for cc_temp in $compiler""; do
11942   case $cc_temp in
11943     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11944     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11945     \-*) ;;
11946     *) break;;
11947   esac
11948 done
11949 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11950
11951
11952 # We don't want -fno-exception wen compiling C++ code, so set the
11953 # no_builtin_flag separately
11954 if test "$GXX" = yes; then
11955   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11956 else
11957   lt_prog_compiler_no_builtin_flag_CXX=
11958 fi
11959
11960 if test "$GXX" = yes; then
11961   # Set up default GNU C++ configuration
11962
11963
11964 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11965 if test "${with_gnu_ld+set}" = set; then
11966   withval="$with_gnu_ld"
11967   test "$withval" = no || with_gnu_ld=yes
11968 else
11969   with_gnu_ld=no
11970 fi;
11971 ac_prog=ld
11972 if test "$GCC" = yes; then
11973   # Check if gcc -print-prog-name=ld gives a path.
11974   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11975 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11976   case $host in
11977   *-*-mingw*)
11978     # gcc leaves a trailing carriage return which upsets mingw
11979     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11980   *)
11981     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11982   esac
11983   case $ac_prog in
11984     # Accept absolute paths.
11985     [\\/]* | ?:[\\/]*)
11986       re_direlt='/[^/][^/]*/\.\./'
11987       # Canonicalize the pathname of ld
11988       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11989       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11990         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11991       done
11992       test -z "$LD" && LD="$ac_prog"
11993       ;;
11994   "")
11995     # If it fails, then pretend we aren't using GCC.
11996     ac_prog=ld
11997     ;;
11998   *)
11999     # If it is relative, then search for the first ld in PATH.
12000     with_gnu_ld=unknown
12001     ;;
12002   esac
12003 elif test "$with_gnu_ld" = yes; then
12004   echo "$as_me:$LINENO: checking for GNU ld" >&5
12005 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12006 else
12007   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12008 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12009 fi
12010 if test "${lt_cv_path_LD+set}" = set; then
12011   echo $ECHO_N "(cached) $ECHO_C" >&6
12012 else
12013   if test -z "$LD"; then
12014   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12015   for ac_dir in $PATH; do
12016     IFS="$lt_save_ifs"
12017     test -z "$ac_dir" && ac_dir=.
12018     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12019       lt_cv_path_LD="$ac_dir/$ac_prog"
12020       # Check to see if the program is GNU ld.  I'd rather use --version,
12021       # but apparently some GNU ld's only accept -v.
12022       # Break only if it was the GNU/non-GNU ld that we prefer.
12023       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12024       *GNU* | *'with BFD'*)
12025         test "$with_gnu_ld" != no && break
12026         ;;
12027       *)
12028         test "$with_gnu_ld" != yes && break
12029         ;;
12030       esac
12031     fi
12032   done
12033   IFS="$lt_save_ifs"
12034 else
12035   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12036 fi
12037 fi
12038
12039 LD="$lt_cv_path_LD"
12040 if test -n "$LD"; then
12041   echo "$as_me:$LINENO: result: $LD" >&5
12042 echo "${ECHO_T}$LD" >&6
12043 else
12044   echo "$as_me:$LINENO: result: no" >&5
12045 echo "${ECHO_T}no" >&6
12046 fi
12047 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12048 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12049    { (exit 1); exit 1; }; }
12050 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12051 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12052 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12053   echo $ECHO_N "(cached) $ECHO_C" >&6
12054 else
12055   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12056 case `$LD -v 2>&1 </dev/null` in
12057 *GNU* | *'with BFD'*)
12058   lt_cv_prog_gnu_ld=yes
12059   ;;
12060 *)
12061   lt_cv_prog_gnu_ld=no
12062   ;;
12063 esac
12064 fi
12065 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12066 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12067 with_gnu_ld=$lt_cv_prog_gnu_ld
12068
12069
12070
12071   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12072   # archiving commands below assume that GNU ld is being used.
12073   if test "$with_gnu_ld" = yes; then
12074     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12075     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'
12076
12077     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12078     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12079
12080     # If archive_cmds runs LD, not CC, wlarc should be empty
12081     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12082     #     investigate it a little bit more. (MM)
12083     wlarc='${wl}'
12084
12085     # ancient GNU ld didn't support --whole-archive et. al.
12086     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12087         grep 'no-whole-archive' > /dev/null; then
12088       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12089     else
12090       whole_archive_flag_spec_CXX=
12091     fi
12092   else
12093     with_gnu_ld=no
12094     wlarc=
12095
12096     # A generic and very simple default shared library creation
12097     # command for GNU C++ for the case where it uses the native
12098     # linker, instead of GNU ld.  If possible, this setting should
12099     # overridden to take advantage of the native linker features on
12100     # the platform it is being used on.
12101     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12102   fi
12103
12104   # Commands to make compiler produce verbose output that lists
12105   # what "hidden" libraries, object files and flags are used when
12106   # linking a shared library.
12107   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12108
12109 else
12110   GXX=no
12111   with_gnu_ld=no
12112   wlarc=
12113 fi
12114
12115 # PORTME: fill in a description of your system's C++ link characteristics
12116 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12117 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12118 ld_shlibs_CXX=yes
12119 case $host_os in
12120   aix3*)
12121     # FIXME: insert proper C++ library support
12122     ld_shlibs_CXX=no
12123     ;;
12124   aix4* | aix5*)
12125     if test "$host_cpu" = ia64; then
12126       # On IA64, the linker does run time linking by default, so we don't
12127       # have to do anything special.
12128       aix_use_runtimelinking=no
12129       exp_sym_flag='-Bexport'
12130       no_entry_flag=""
12131     else
12132       aix_use_runtimelinking=no
12133
12134       # Test if we are trying to use run time linking or normal
12135       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12136       # need to do runtime linking.
12137       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12138         for ld_flag in $LDFLAGS; do
12139           case $ld_flag in
12140           *-brtl*)
12141             aix_use_runtimelinking=yes
12142             break
12143             ;;
12144           esac
12145         done
12146       esac
12147
12148       exp_sym_flag='-bexport'
12149       no_entry_flag='-bnoentry'
12150     fi
12151
12152     # When large executables or shared objects are built, AIX ld can
12153     # have problems creating the table of contents.  If linking a library
12154     # or program results in "error TOC overflow" add -mminimal-toc to
12155     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12156     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12157
12158     archive_cmds_CXX=''
12159     hardcode_direct_CXX=yes
12160     hardcode_libdir_separator_CXX=':'
12161     link_all_deplibs_CXX=yes
12162
12163     if test "$GXX" = yes; then
12164       case $host_os in aix4.[012]|aix4.[012].*)
12165       # We only want to do this on AIX 4.2 and lower, the check
12166       # below for broken collect2 doesn't work under 4.3+
12167         collect2name=`${CC} -print-prog-name=collect2`
12168         if test -f "$collect2name" && \
12169            strings "$collect2name" | grep resolve_lib_name >/dev/null
12170         then
12171           # We have reworked collect2
12172           hardcode_direct_CXX=yes
12173         else
12174           # We have old collect2
12175           hardcode_direct_CXX=unsupported
12176           # It fails to find uninstalled libraries when the uninstalled
12177           # path is not listed in the libpath.  Setting hardcode_minus_L
12178           # to unsupported forces relinking
12179           hardcode_minus_L_CXX=yes
12180           hardcode_libdir_flag_spec_CXX='-L$libdir'
12181           hardcode_libdir_separator_CXX=
12182         fi
12183       esac
12184       shared_flag='-shared'
12185       if test "$aix_use_runtimelinking" = yes; then
12186         shared_flag="$shared_flag "'${wl}-G'
12187       fi
12188     else
12189       # not using gcc
12190       if test "$host_cpu" = ia64; then
12191         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12192         # chokes on -Wl,-G. The following line is correct:
12193         shared_flag='-G'
12194       else
12195         if test "$aix_use_runtimelinking" = yes; then
12196           shared_flag='${wl}-G'
12197         else
12198           shared_flag='${wl}-bM:SRE'
12199         fi
12200       fi
12201     fi
12202
12203     # It seems that -bexpall does not export symbols beginning with
12204     # underscore (_), so it is better to generate a list of symbols to export.
12205     always_export_symbols_CXX=yes
12206     if test "$aix_use_runtimelinking" = yes; then
12207       # Warning - without using the other runtime loading flags (-brtl),
12208       # -berok will link without error, but may produce a broken library.
12209       allow_undefined_flag_CXX='-berok'
12210       # Determine the default libpath from the value encoded in an empty executable.
12211       cat >conftest.$ac_ext <<_ACEOF
12212 /* confdefs.h.  */
12213 _ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h.  */
12217
12218 int
12219 main ()
12220 {
12221
12222   ;
12223   return 0;
12224 }
12225 _ACEOF
12226 rm -f conftest.$ac_objext conftest$ac_exeext
12227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12228   (eval $ac_link) 2>conftest.er1
12229   ac_status=$?
12230   grep -v '^ *+' conftest.er1 >conftest.err
12231   rm -f conftest.er1
12232   cat conftest.err >&5
12233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234   (exit $ac_status); } &&
12235          { ac_try='test -z "$ac_cxx_werror_flag"
12236                          || test ! -s conftest.err'
12237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238   (eval $ac_try) 2>&5
12239   ac_status=$?
12240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241   (exit $ac_status); }; } &&
12242          { ac_try='test -s conftest$ac_exeext'
12243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244   (eval $ac_try) 2>&5
12245   ac_status=$?
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); }; }; then
12248
12249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12250 }'`
12251 # Check for a 64-bit object if we didn't find anything.
12252 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; }
12253 }'`; fi
12254 else
12255   echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12257
12258 fi
12259 rm -f conftest.err conftest.$ac_objext \
12260       conftest$ac_exeext conftest.$ac_ext
12261 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12262
12263       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12264
12265       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"
12266      else
12267       if test "$host_cpu" = ia64; then
12268         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12269         allow_undefined_flag_CXX="-z nodefs"
12270         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"
12271       else
12272         # Determine the default libpath from the value encoded in an empty executable.
12273         cat >conftest.$ac_ext <<_ACEOF
12274 /* confdefs.h.  */
12275 _ACEOF
12276 cat confdefs.h >>conftest.$ac_ext
12277 cat >>conftest.$ac_ext <<_ACEOF
12278 /* end confdefs.h.  */
12279
12280 int
12281 main ()
12282 {
12283
12284   ;
12285   return 0;
12286 }
12287 _ACEOF
12288 rm -f conftest.$ac_objext conftest$ac_exeext
12289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12290   (eval $ac_link) 2>conftest.er1
12291   ac_status=$?
12292   grep -v '^ *+' conftest.er1 >conftest.err
12293   rm -f conftest.er1
12294   cat conftest.err >&5
12295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); } &&
12297          { ac_try='test -z "$ac_cxx_werror_flag"
12298                          || test ! -s conftest.err'
12299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300   (eval $ac_try) 2>&5
12301   ac_status=$?
12302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303   (exit $ac_status); }; } &&
12304          { ac_try='test -s conftest$ac_exeext'
12305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306   (eval $ac_try) 2>&5
12307   ac_status=$?
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); }; }; then
12310
12311 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12312 }'`
12313 # Check for a 64-bit object if we didn't find anything.
12314 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; }
12315 }'`; fi
12316 else
12317   echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12319
12320 fi
12321 rm -f conftest.err conftest.$ac_objext \
12322       conftest$ac_exeext conftest.$ac_ext
12323 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12324
12325         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12326         # Warning - without using the other run time loading flags,
12327         # -berok will link without error, but may produce a broken library.
12328         no_undefined_flag_CXX=' ${wl}-bernotok'
12329         allow_undefined_flag_CXX=' ${wl}-berok'
12330         # -bexpall does not export symbols beginning with underscore (_)
12331         always_export_symbols_CXX=yes
12332         # Exported symbols can be pulled into shared objects from archives
12333         whole_archive_flag_spec_CXX=' '
12334         archive_cmds_need_lc_CXX=yes
12335         # This is similar to how AIX traditionally builds it's shared libraries.
12336         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'
12337       fi
12338     fi
12339     ;;
12340   chorus*)
12341     case $cc_basename in
12342       *)
12343         # FIXME: insert proper C++ library support
12344         ld_shlibs_CXX=no
12345         ;;
12346     esac
12347     ;;
12348
12349
12350   cygwin* | mingw* | pw32*)
12351     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12352     # as there is no search path for DLLs.
12353     hardcode_libdir_flag_spec_CXX='-L$libdir'
12354     allow_undefined_flag_CXX=unsupported
12355     always_export_symbols_CXX=no
12356     enable_shared_with_static_runtimes_CXX=yes
12357
12358     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12359       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'
12360       # If the export-symbols file already is a .def file (1st line
12361       # is EXPORTS), use it as is; otherwise, prepend...
12362       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12363         cp $export_symbols $output_objdir/$soname.def;
12364       else
12365         echo EXPORTS > $output_objdir/$soname.def;
12366         cat $export_symbols >> $output_objdir/$soname.def;
12367       fi~
12368       $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'
12369     else
12370       ld_shlibs_CXX=no
12371     fi
12372   ;;
12373       darwin* | rhapsody*)
12374         case "$host_os" in
12375         rhapsody* | darwin1.[012])
12376          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12377          ;;
12378        *) # Darwin 1.3 on
12379          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12380            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12381          else
12382            case ${MACOSX_DEPLOYMENT_TARGET} in
12383              10.[012])
12384                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12385                ;;
12386              10.*)
12387                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12388                ;;
12389            esac
12390          fi
12391          ;;
12392         esac
12393       archive_cmds_need_lc_CXX=no
12394       hardcode_direct_CXX=no
12395       hardcode_automatic_CXX=yes
12396       hardcode_shlibpath_var_CXX=unsupported
12397       whole_archive_flag_spec_CXX=''
12398       link_all_deplibs_CXX=yes
12399
12400     if test "$GXX" = yes ; then
12401       lt_int_apple_cc_single_mod=no
12402       output_verbose_link_cmd='echo'
12403       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12404        lt_int_apple_cc_single_mod=yes
12405       fi
12406       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12407        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12408       else
12409           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'
12410         fi
12411         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12412         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12413           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12414             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}'
12415           else
12416             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}'
12417           fi
12418             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}'
12419       else
12420       case $cc_basename in
12421         xlc*)
12422          output_verbose_link_cmd='echo'
12423           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'
12424           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12425           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12426           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}'
12427           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12428           ;;
12429        *)
12430          ld_shlibs_CXX=no
12431           ;;
12432       esac
12433       fi
12434         ;;
12435
12436   dgux*)
12437     case $cc_basename in
12438       ec++*)
12439         # FIXME: insert proper C++ library support
12440         ld_shlibs_CXX=no
12441         ;;
12442       ghcx*)
12443         # Green Hills C++ Compiler
12444         # FIXME: insert proper C++ library support
12445         ld_shlibs_CXX=no
12446         ;;
12447       *)
12448         # FIXME: insert proper C++ library support
12449         ld_shlibs_CXX=no
12450         ;;
12451     esac
12452     ;;
12453   freebsd[12]*)
12454     # C++ shared libraries reported to be fairly broken before switch to ELF
12455     ld_shlibs_CXX=no
12456     ;;
12457   freebsd-elf*)
12458     archive_cmds_need_lc_CXX=no
12459     ;;
12460   freebsd* | kfreebsd*-gnu | dragonfly*)
12461     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12462     # conventions
12463     ld_shlibs_CXX=yes
12464     ;;
12465   gnu*)
12466     ;;
12467   hpux9*)
12468     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12469     hardcode_libdir_separator_CXX=:
12470     export_dynamic_flag_spec_CXX='${wl}-E'
12471     hardcode_direct_CXX=yes
12472     hardcode_minus_L_CXX=yes # Not in the search PATH,
12473                                 # but as the default
12474                                 # location of the library.
12475
12476     case $cc_basename in
12477     CC*)
12478       # FIXME: insert proper C++ library support
12479       ld_shlibs_CXX=no
12480       ;;
12481     aCC*)
12482       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'
12483       # Commands to make compiler produce verbose output that lists
12484       # what "hidden" libraries, object files and flags are used when
12485       # linking a shared library.
12486       #
12487       # There doesn't appear to be a way to prevent this compiler from
12488       # explicitly linking system object files so we need to strip them
12489       # from the output so that they don't get included in the library
12490       # dependencies.
12491       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'
12492       ;;
12493     *)
12494       if test "$GXX" = yes; then
12495         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'
12496       else
12497         # FIXME: insert proper C++ library support
12498         ld_shlibs_CXX=no
12499       fi
12500       ;;
12501     esac
12502     ;;
12503   hpux10*|hpux11*)
12504     if test $with_gnu_ld = no; then
12505       case "$host_cpu" in
12506       hppa*64*)
12507         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12508         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12509         hardcode_libdir_separator_CXX=:
12510         ;;
12511       ia64*)
12512         hardcode_libdir_flag_spec_CXX='-L$libdir'
12513         ;;
12514       *)
12515         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12516         hardcode_libdir_separator_CXX=:
12517         export_dynamic_flag_spec_CXX='${wl}-E'
12518         ;;
12519       esac
12520     fi
12521     case "$host_cpu" in
12522     hppa*64*)
12523       hardcode_direct_CXX=no
12524       hardcode_shlibpath_var_CXX=no
12525       ;;
12526     ia64*)
12527       hardcode_direct_CXX=no
12528       hardcode_shlibpath_var_CXX=no
12529       hardcode_minus_L_CXX=yes # Not in the search PATH,
12530                                               # but as the default
12531                                               # location of the library.
12532       ;;
12533     *)
12534       hardcode_direct_CXX=yes
12535       hardcode_minus_L_CXX=yes # Not in the search PATH,
12536                                               # but as the default
12537                                               # location of the library.
12538       ;;
12539     esac
12540
12541     case $cc_basename in
12542       CC*)
12543         # FIXME: insert proper C++ library support
12544         ld_shlibs_CXX=no
12545         ;;
12546       aCC*)
12547         case "$host_cpu" in
12548         hppa*64*|ia64*)
12549           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12550           ;;
12551         *)
12552           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12553           ;;
12554         esac
12555         # Commands to make compiler produce verbose output that lists
12556         # what "hidden" libraries, object files and flags are used when
12557         # linking a shared library.
12558         #
12559         # There doesn't appear to be a way to prevent this compiler from
12560         # explicitly linking system object files so we need to strip them
12561         # from the output so that they don't get included in the library
12562         # dependencies.
12563         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'
12564         ;;
12565       *)
12566         if test "$GXX" = yes; then
12567           if test $with_gnu_ld = no; then
12568             case "$host_cpu" in
12569             ia64*|hppa*64*)
12570               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12571               ;;
12572             *)
12573               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'
12574               ;;
12575             esac
12576           fi
12577         else
12578           # FIXME: insert proper C++ library support
12579           ld_shlibs_CXX=no
12580         fi
12581         ;;
12582     esac
12583     ;;
12584   irix5* | irix6*)
12585     case $cc_basename in
12586       CC*)
12587         # SGI C++
12588         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'
12589
12590         # Archives containing C++ object files must be created using
12591         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12592         # necessary to make sure instantiated templates are included
12593         # in the archive.
12594         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12595         ;;
12596       *)
12597         if test "$GXX" = yes; then
12598           if test "$with_gnu_ld" = no; then
12599             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'
12600           else
12601             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'
12602           fi
12603         fi
12604         link_all_deplibs_CXX=yes
12605         ;;
12606     esac
12607     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12608     hardcode_libdir_separator_CXX=:
12609     ;;
12610   linux*)
12611     case $cc_basename in
12612       KCC*)
12613         # Kuck and Associates, Inc. (KAI) C++ Compiler
12614
12615         # KCC will only create a shared library if the output file
12616         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12617         # to its proper name (with version) after linking.
12618         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'
12619         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'
12620         # Commands to make compiler produce verbose output that lists
12621         # what "hidden" libraries, object files and flags are used when
12622         # linking a shared library.
12623         #
12624         # There doesn't appear to be a way to prevent this compiler from
12625         # explicitly linking system object files so we need to strip them
12626         # from the output so that they don't get included in the library
12627         # dependencies.
12628         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'
12629
12630         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12631         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12632
12633         # Archives containing C++ object files must be created using
12634         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12635         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12636         ;;
12637       icpc*)
12638         # Intel C++
12639         with_gnu_ld=yes
12640         # version 8.0 and above of icpc choke on multiply defined symbols
12641         # if we add $predep_objects and $postdep_objects, however 7.1 and
12642         # earlier do not add the objects themselves.
12643         case `$CC -V 2>&1` in
12644         *"Version 7."*)
12645           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12646           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'
12647           ;;
12648         *)  # Version 8.0 or newer
12649           tmp_idyn=
12650           case $host_cpu in
12651             ia64*) tmp_idyn=' -i_dynamic';;
12652           esac
12653           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12654           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'
12655           ;;
12656         esac
12657         archive_cmds_need_lc_CXX=no
12658         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12659         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12660         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12661         ;;
12662       pgCC*)
12663         # Portland Group C++ compiler
12664         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12665         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'
12666
12667         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12668         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12669         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'
12670         ;;
12671       cxx*)
12672         # Compaq C++
12673         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12674         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'
12675
12676         runpath_var=LD_RUN_PATH
12677         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12678         hardcode_libdir_separator_CXX=:
12679
12680         # Commands to make compiler produce verbose output that lists
12681         # what "hidden" libraries, object files and flags are used when
12682         # linking a shared library.
12683         #
12684         # There doesn't appear to be a way to prevent this compiler from
12685         # explicitly linking system object files so we need to strip them
12686         # from the output so that they don't get included in the library
12687         # dependencies.
12688         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'
12689         ;;
12690     esac
12691     ;;
12692   lynxos*)
12693     # FIXME: insert proper C++ library support
12694     ld_shlibs_CXX=no
12695     ;;
12696   m88k*)
12697     # FIXME: insert proper C++ library support
12698     ld_shlibs_CXX=no
12699     ;;
12700   mvs*)
12701     case $cc_basename in
12702       cxx*)
12703         # FIXME: insert proper C++ library support
12704         ld_shlibs_CXX=no
12705         ;;
12706       *)
12707         # FIXME: insert proper C++ library support
12708         ld_shlibs_CXX=no
12709         ;;
12710     esac
12711     ;;
12712   netbsd*)
12713     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12714       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12715       wlarc=
12716       hardcode_libdir_flag_spec_CXX='-R$libdir'
12717       hardcode_direct_CXX=yes
12718       hardcode_shlibpath_var_CXX=no
12719     fi
12720     # Workaround some broken pre-1.5 toolchains
12721     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12722     ;;
12723   openbsd2*)
12724     # C++ shared libraries are fairly broken
12725     ld_shlibs_CXX=no
12726     ;;
12727   openbsd*)
12728     hardcode_direct_CXX=yes
12729     hardcode_shlibpath_var_CXX=no
12730     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12731     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12732     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12733       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12734       export_dynamic_flag_spec_CXX='${wl}-E'
12735       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12736     fi
12737     output_verbose_link_cmd='echo'
12738     ;;
12739   osf3*)
12740     case $cc_basename in
12741       KCC*)
12742         # Kuck and Associates, Inc. (KAI) C++ Compiler
12743
12744         # KCC will only create a shared library if the output file
12745         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12746         # to its proper name (with version) after linking.
12747         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12748
12749         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12750         hardcode_libdir_separator_CXX=:
12751
12752         # Archives containing C++ object files must be created using
12753         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12754         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12755
12756         ;;
12757       RCC*)
12758         # Rational C++ 2.4.1
12759         # FIXME: insert proper C++ library support
12760         ld_shlibs_CXX=no
12761         ;;
12762       cxx*)
12763         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12764         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'
12765
12766         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12767         hardcode_libdir_separator_CXX=:
12768
12769         # Commands to make compiler produce verbose output that lists
12770         # what "hidden" libraries, object files and flags are used when
12771         # linking a shared library.
12772         #
12773         # There doesn't appear to be a way to prevent this compiler from
12774         # explicitly linking system object files so we need to strip them
12775         # from the output so that they don't get included in the library
12776         # dependencies.
12777         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'
12778         ;;
12779       *)
12780         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12781           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12782           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'
12783
12784           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12785           hardcode_libdir_separator_CXX=:
12786
12787           # Commands to make compiler produce verbose output that lists
12788           # what "hidden" libraries, object files and flags are used when
12789           # linking a shared library.
12790           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12791
12792         else
12793           # FIXME: insert proper C++ library support
12794           ld_shlibs_CXX=no
12795         fi
12796         ;;
12797     esac
12798     ;;
12799   osf4* | osf5*)
12800     case $cc_basename in
12801       KCC*)
12802         # Kuck and Associates, Inc. (KAI) C++ Compiler
12803
12804         # KCC will only create a shared library if the output file
12805         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12806         # to its proper name (with version) after linking.
12807         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'
12808
12809         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12810         hardcode_libdir_separator_CXX=:
12811
12812         # Archives containing C++ object files must be created using
12813         # the KAI C++ compiler.
12814         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12815         ;;
12816       RCC*)
12817         # Rational C++ 2.4.1
12818         # FIXME: insert proper C++ library support
12819         ld_shlibs_CXX=no
12820         ;;
12821       cxx*)
12822         allow_undefined_flag_CXX=' -expect_unresolved \*'
12823         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'
12824         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12825           echo "-hidden">> $lib.exp~
12826           $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~
12827           $rm $lib.exp'
12828
12829         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12830         hardcode_libdir_separator_CXX=:
12831
12832         # Commands to make compiler produce verbose output that lists
12833         # what "hidden" libraries, object files and flags are used when
12834         # linking a shared library.
12835         #
12836         # There doesn't appear to be a way to prevent this compiler from
12837         # explicitly linking system object files so we need to strip them
12838         # from the output so that they don't get included in the library
12839         # dependencies.
12840         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'
12841         ;;
12842       *)
12843         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12844           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12845          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'
12846
12847           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12848           hardcode_libdir_separator_CXX=:
12849
12850           # Commands to make compiler produce verbose output that lists
12851           # what "hidden" libraries, object files and flags are used when
12852           # linking a shared library.
12853           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12854
12855         else
12856           # FIXME: insert proper C++ library support
12857           ld_shlibs_CXX=no
12858         fi
12859         ;;
12860     esac
12861     ;;
12862   psos*)
12863     # FIXME: insert proper C++ library support
12864     ld_shlibs_CXX=no
12865     ;;
12866   sco*)
12867     archive_cmds_need_lc_CXX=no
12868     case $cc_basename in
12869       CC*)
12870         # FIXME: insert proper C++ library support
12871         ld_shlibs_CXX=no
12872         ;;
12873       *)
12874         # FIXME: insert proper C++ library support
12875         ld_shlibs_CXX=no
12876         ;;
12877     esac
12878     ;;
12879   sunos4*)
12880     case $cc_basename in
12881       CC*)
12882         # Sun C++ 4.x
12883         # FIXME: insert proper C++ library support
12884         ld_shlibs_CXX=no
12885         ;;
12886       lcc*)
12887         # Lucid
12888         # FIXME: insert proper C++ library support
12889         ld_shlibs_CXX=no
12890         ;;
12891       *)
12892         # FIXME: insert proper C++ library support
12893         ld_shlibs_CXX=no
12894         ;;
12895     esac
12896     ;;
12897   solaris*)
12898     case $cc_basename in
12899       CC*)
12900         # Sun C++ 4.2, 5.x and Centerline C++
12901         no_undefined_flag_CXX=' -zdefs'
12902         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12903         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12904         $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'
12905
12906         hardcode_libdir_flag_spec_CXX='-R$libdir'
12907         hardcode_shlibpath_var_CXX=no
12908         case $host_os in
12909           solaris2.[0-5] | solaris2.[0-5].*) ;;
12910           *)
12911             # The C++ compiler is used as linker so we must use $wl
12912             # flag to pass the commands to the underlying system
12913             # linker. We must also pass each convience library through
12914             # to the system linker between allextract/defaultextract.
12915             # The C++ compiler will combine linker options so we
12916             # cannot just pass the convience library names through
12917             # without $wl.
12918             # Supported since Solaris 2.6 (maybe 2.5.1?)
12919             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'
12920             ;;
12921         esac
12922         link_all_deplibs_CXX=yes
12923
12924         # Commands to make compiler produce verbose output that lists
12925         # what "hidden" libraries, object files and flags are used when
12926         # linking a shared library.
12927         #
12928         # There doesn't appear to be a way to prevent this compiler from
12929         # explicitly linking system object files so we need to strip them
12930         # from the output so that they don't get included in the library
12931         # dependencies.
12932         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'
12933
12934         # Archives containing C++ object files must be created using
12935         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12936         # necessary to make sure instantiated templates are included
12937         # in the archive.
12938         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12939         ;;
12940       gcx*)
12941         # Green Hills C++ Compiler
12942         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12943
12944         # The C++ compiler must be used to create the archive.
12945         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12946         ;;
12947       *)
12948         # GNU C++ compiler with Solaris linker
12949         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12950           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12951           if $CC --version | grep -v '^2\.7' > /dev/null; then
12952             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12953             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12954                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12955
12956             # Commands to make compiler produce verbose output that lists
12957             # what "hidden" libraries, object files and flags are used when
12958             # linking a shared library.
12959             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12960           else
12961             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12962             # platform.
12963             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12964             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12965                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12966
12967             # Commands to make compiler produce verbose output that lists
12968             # what "hidden" libraries, object files and flags are used when
12969             # linking a shared library.
12970             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12971           fi
12972
12973           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12974         fi
12975         ;;
12976     esac
12977     ;;
12978   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12979     archive_cmds_need_lc_CXX=no
12980     ;;
12981   tandem*)
12982     case $cc_basename in
12983       NCC*)
12984         # NonStop-UX NCC 3.20
12985         # FIXME: insert proper C++ library support
12986         ld_shlibs_CXX=no
12987         ;;
12988       *)
12989         # FIXME: insert proper C++ library support
12990         ld_shlibs_CXX=no
12991         ;;
12992     esac
12993     ;;
12994   vxworks*)
12995     # FIXME: insert proper C++ library support
12996     ld_shlibs_CXX=no
12997     ;;
12998   *)
12999     # FIXME: insert proper C++ library support
13000     ld_shlibs_CXX=no
13001     ;;
13002 esac
13003 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13004 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13005 test "$ld_shlibs_CXX" = no && can_build_shared=no
13006
13007 GCC_CXX="$GXX"
13008 LD_CXX="$LD"
13009
13010
13011 cat > conftest.$ac_ext <<EOF
13012 class Foo
13013 {
13014 public:
13015   Foo (void) { a = 0; }
13016 private:
13017   int a;
13018 };
13019 EOF
13020
13021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13022   (eval $ac_compile) 2>&5
13023   ac_status=$?
13024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025   (exit $ac_status); }; then
13026   # Parse the compiler output and extract the necessary
13027   # objects, libraries and library flags.
13028
13029   # Sentinel used to keep track of whether or not we are before
13030   # the conftest object file.
13031   pre_test_object_deps_done=no
13032
13033   # The `*' in the case matches for architectures that use `case' in
13034   # $output_verbose_cmd can trigger glob expansion during the loop
13035   # eval without this substitution.
13036   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13037
13038   for p in `eval $output_verbose_link_cmd`; do
13039     case $p in
13040
13041     -L* | -R* | -l*)
13042        # Some compilers place space between "-{L,R}" and the path.
13043        # Remove the space.
13044        if test $p = "-L" \
13045           || test $p = "-R"; then
13046          prev=$p
13047          continue
13048        else
13049          prev=
13050        fi
13051
13052        if test "$pre_test_object_deps_done" = no; then
13053          case $p in
13054          -L* | -R*)
13055            # Internal compiler library paths should come after those
13056            # provided the user.  The postdeps already come after the
13057            # user supplied libs so there is no need to process them.
13058            if test -z "$compiler_lib_search_path_CXX"; then
13059              compiler_lib_search_path_CXX="${prev}${p}"
13060            else
13061              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13062            fi
13063            ;;
13064          # The "-l" case would never come before the object being
13065          # linked, so don't bother handling this case.
13066          esac
13067        else
13068          if test -z "$postdeps_CXX"; then
13069            postdeps_CXX="${prev}${p}"
13070          else
13071            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13072          fi
13073        fi
13074        ;;
13075
13076     *.$objext)
13077        # This assumes that the test object file only shows up
13078        # once in the compiler output.
13079        if test "$p" = "conftest.$objext"; then
13080          pre_test_object_deps_done=yes
13081          continue
13082        fi
13083
13084        if test "$pre_test_object_deps_done" = no; then
13085          if test -z "$predep_objects_CXX"; then
13086            predep_objects_CXX="$p"
13087          else
13088            predep_objects_CXX="$predep_objects_CXX $p"
13089          fi
13090        else
13091          if test -z "$postdep_objects_CXX"; then
13092            postdep_objects_CXX="$p"
13093          else
13094            postdep_objects_CXX="$postdep_objects_CXX $p"
13095          fi
13096        fi
13097        ;;
13098
13099     *) ;; # Ignore the rest.
13100
13101     esac
13102   done
13103
13104   # Clean up.
13105   rm -f a.out a.exe
13106 else
13107   echo "libtool.m4: error: problem compiling CXX test program"
13108 fi
13109
13110 $rm -f confest.$objext
13111
13112 case " $postdeps_CXX " in
13113 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13114 esac
13115
13116 lt_prog_compiler_wl_CXX=
13117 lt_prog_compiler_pic_CXX=
13118 lt_prog_compiler_static_CXX=
13119
13120 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13121 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13122
13123   # C++ specific cases for pic, static, wl, etc.
13124   if test "$GXX" = yes; then
13125     lt_prog_compiler_wl_CXX='-Wl,'
13126     lt_prog_compiler_static_CXX='-static'
13127
13128     case $host_os in
13129     aix*)
13130       # All AIX code is PIC.
13131       if test "$host_cpu" = ia64; then
13132         # AIX 5 now supports IA64 processor
13133         lt_prog_compiler_static_CXX='-Bstatic'
13134       fi
13135       ;;
13136     amigaos*)
13137       # FIXME: we need at least 68020 code to build shared libraries, but
13138       # adding the `-m68020' flag to GCC prevents building anything better,
13139       # like `-m68040'.
13140       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13141       ;;
13142     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13143       # PIC is the default for these OSes.
13144       ;;
13145     mingw* | os2* | pw32*)
13146       # This hack is so that the source file can tell whether it is being
13147       # built for inclusion in a dll (and should export symbols for example).
13148       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13149       ;;
13150     darwin* | rhapsody*)
13151       # PIC is the default on this platform
13152       # Common symbols not allowed in MH_DYLIB files
13153       lt_prog_compiler_pic_CXX='-fno-common'
13154       ;;
13155     *djgpp*)
13156       # DJGPP does not support shared libraries at all
13157       lt_prog_compiler_pic_CXX=
13158       ;;
13159     sysv4*MP*)
13160       if test -d /usr/nec; then
13161         lt_prog_compiler_pic_CXX=-Kconform_pic
13162       fi
13163       ;;
13164     hpux*)
13165       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13166       # not for PA HP-UX.
13167       case "$host_cpu" in
13168       hppa*64*|ia64*)
13169         ;;
13170       *)
13171         lt_prog_compiler_pic_CXX='-fPIC'
13172         ;;
13173       esac
13174       ;;
13175     *)
13176       lt_prog_compiler_pic_CXX='-fPIC'
13177       ;;
13178     esac
13179   else
13180     case $host_os in
13181       aix4* | aix5*)
13182         # All AIX code is PIC.
13183         if test "$host_cpu" = ia64; then
13184           # AIX 5 now supports IA64 processor
13185           lt_prog_compiler_static_CXX='-Bstatic'
13186         else
13187           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13188         fi
13189         ;;
13190       chorus*)
13191         case $cc_basename in
13192         cxch68*)
13193           # Green Hills C++ Compiler
13194           # _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"
13195           ;;
13196         esac
13197         ;;
13198        darwin*)
13199          # PIC is the default on this platform
13200          # Common symbols not allowed in MH_DYLIB files
13201          case $cc_basename in
13202            xlc*)
13203            lt_prog_compiler_pic_CXX='-qnocommon'
13204            lt_prog_compiler_wl_CXX='-Wl,'
13205            ;;
13206          esac
13207        ;;
13208       dgux*)
13209         case $cc_basename in
13210           ec++*)
13211             lt_prog_compiler_pic_CXX='-KPIC'
13212             ;;
13213           ghcx*)
13214             # Green Hills C++ Compiler
13215             lt_prog_compiler_pic_CXX='-pic'
13216             ;;
13217           *)
13218             ;;
13219         esac
13220         ;;
13221       freebsd* | kfreebsd*-gnu | dragonfly*)
13222         # FreeBSD uses GNU C++
13223         ;;
13224       hpux9* | hpux10* | hpux11*)
13225         case $cc_basename in
13226           CC*)
13227             lt_prog_compiler_wl_CXX='-Wl,'
13228             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13229             if test "$host_cpu" != ia64; then
13230               lt_prog_compiler_pic_CXX='+Z'
13231             fi
13232             ;;
13233           aCC*)
13234             lt_prog_compiler_wl_CXX='-Wl,'
13235             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13236             case "$host_cpu" in
13237             hppa*64*|ia64*)
13238               # +Z the default
13239               ;;
13240             *)
13241               lt_prog_compiler_pic_CXX='+Z'
13242               ;;
13243             esac
13244             ;;
13245           *)
13246             ;;
13247         esac
13248         ;;
13249       irix5* | irix6* | nonstopux*)
13250         case $cc_basename in
13251           CC*)
13252             lt_prog_compiler_wl_CXX='-Wl,'
13253             lt_prog_compiler_static_CXX='-non_shared'
13254             # CC pic flag -KPIC is the default.
13255             ;;
13256           *)
13257             ;;
13258         esac
13259         ;;
13260       linux*)
13261         case $cc_basename in
13262           KCC*)
13263             # KAI C++ Compiler
13264             lt_prog_compiler_wl_CXX='--backend -Wl,'
13265             lt_prog_compiler_pic_CXX='-fPIC'
13266             ;;
13267           icpc* | ecpc*)
13268             # Intel C++
13269             lt_prog_compiler_wl_CXX='-Wl,'
13270             lt_prog_compiler_pic_CXX='-KPIC'
13271             lt_prog_compiler_static_CXX='-static'
13272             ;;
13273           pgCC*)
13274             # Portland Group C++ compiler.
13275             lt_prog_compiler_wl_CXX='-Wl,'
13276             lt_prog_compiler_pic_CXX='-fpic'
13277             lt_prog_compiler_static_CXX='-static'
13278             ;;
13279           cxx*)
13280             # Compaq C++
13281             # Make sure the PIC flag is empty.  It appears that all Alpha
13282             # Linux and Compaq Tru64 Unix objects are PIC.
13283             lt_prog_compiler_pic_CXX=
13284             lt_prog_compiler_static_CXX='-non_shared'
13285             ;;
13286           *)
13287             ;;
13288         esac
13289         ;;
13290       lynxos*)
13291         ;;
13292       m88k*)
13293         ;;
13294       mvs*)
13295         case $cc_basename in
13296           cxx*)
13297             lt_prog_compiler_pic_CXX='-W c,exportall'
13298             ;;
13299           *)
13300             ;;
13301         esac
13302         ;;
13303       netbsd*)
13304         ;;
13305       osf3* | osf4* | osf5*)
13306         case $cc_basename in
13307           KCC*)
13308             lt_prog_compiler_wl_CXX='--backend -Wl,'
13309             ;;
13310           RCC*)
13311             # Rational C++ 2.4.1
13312             lt_prog_compiler_pic_CXX='-pic'
13313             ;;
13314           cxx*)
13315             # Digital/Compaq C++
13316             lt_prog_compiler_wl_CXX='-Wl,'
13317             # Make sure the PIC flag is empty.  It appears that all Alpha
13318             # Linux and Compaq Tru64 Unix objects are PIC.
13319             lt_prog_compiler_pic_CXX=
13320             lt_prog_compiler_static_CXX='-non_shared'
13321             ;;
13322           *)
13323             ;;
13324         esac
13325         ;;
13326       psos*)
13327         ;;
13328       sco*)
13329         case $cc_basename in
13330           CC*)
13331             lt_prog_compiler_pic_CXX='-fPIC'
13332             ;;
13333           *)
13334             ;;
13335         esac
13336         ;;
13337       solaris*)
13338         case $cc_basename in
13339           CC*)
13340             # Sun C++ 4.2, 5.x and Centerline C++
13341             lt_prog_compiler_pic_CXX='-KPIC'
13342             lt_prog_compiler_static_CXX='-Bstatic'
13343             lt_prog_compiler_wl_CXX='-Qoption ld '
13344             ;;
13345           gcx*)
13346             # Green Hills C++ Compiler
13347             lt_prog_compiler_pic_CXX='-PIC'
13348             ;;
13349           *)
13350             ;;
13351         esac
13352         ;;
13353       sunos4*)
13354         case $cc_basename in
13355           CC*)
13356             # Sun C++ 4.x
13357             lt_prog_compiler_pic_CXX='-pic'
13358             lt_prog_compiler_static_CXX='-Bstatic'
13359             ;;
13360           lcc*)
13361             # Lucid
13362             lt_prog_compiler_pic_CXX='-pic'
13363             ;;
13364           *)
13365             ;;
13366         esac
13367         ;;
13368       tandem*)
13369         case $cc_basename in
13370           NCC*)
13371             # NonStop-UX NCC 3.20
13372             lt_prog_compiler_pic_CXX='-KPIC'
13373             ;;
13374           *)
13375             ;;
13376         esac
13377         ;;
13378       unixware*)
13379         ;;
13380       vxworks*)
13381         ;;
13382       *)
13383         lt_prog_compiler_can_build_shared_CXX=no
13384         ;;
13385     esac
13386   fi
13387
13388 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13389 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13390
13391 #
13392 # Check to make sure the PIC flag actually works.
13393 #
13394 if test -n "$lt_prog_compiler_pic_CXX"; then
13395
13396 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13397 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13398 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13399   echo $ECHO_N "(cached) $ECHO_C" >&6
13400 else
13401   lt_prog_compiler_pic_works_CXX=no
13402   ac_outfile=conftest.$ac_objext
13403    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13404    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13405    # Insert the option either (1) after the last *FLAGS variable, or
13406    # (2) before a word containing "conftest.", or (3) at the end.
13407    # Note that $ac_compile itself does not contain backslashes and begins
13408    # with a dollar sign (not a hyphen), so the echo should work correctly.
13409    # The option is referenced via a variable to avoid confusing sed.
13410    lt_compile=`echo "$ac_compile" | $SED \
13411    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13412    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13413    -e 's:$: $lt_compiler_flag:'`
13414    (eval echo "\"\$as_me:13414: $lt_compile\"" >&5)
13415    (eval "$lt_compile" 2>conftest.err)
13416    ac_status=$?
13417    cat conftest.err >&5
13418    echo "$as_me:13418: \$? = $ac_status" >&5
13419    if (exit $ac_status) && test -s "$ac_outfile"; then
13420      # The compiler can only warn and ignore the option if not recognized
13421      # So say no if there are warnings other than the usual output.
13422      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13423      $SED '/^$/d' conftest.err >conftest.er2
13424      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13425        lt_prog_compiler_pic_works_CXX=yes
13426      fi
13427    fi
13428    $rm conftest*
13429
13430 fi
13431 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13432 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13433
13434 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13435     case $lt_prog_compiler_pic_CXX in
13436      "" | " "*) ;;
13437      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13438      esac
13439 else
13440     lt_prog_compiler_pic_CXX=
13441      lt_prog_compiler_can_build_shared_CXX=no
13442 fi
13443
13444 fi
13445 case "$host_os" in
13446   # For platforms which do not support PIC, -DPIC is meaningless:
13447   *djgpp*)
13448     lt_prog_compiler_pic_CXX=
13449     ;;
13450   *)
13451     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13452     ;;
13453 esac
13454
13455 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13456 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13457 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13458   echo $ECHO_N "(cached) $ECHO_C" >&6
13459 else
13460   lt_cv_prog_compiler_c_o_CXX=no
13461    $rm -r conftest 2>/dev/null
13462    mkdir conftest
13463    cd conftest
13464    mkdir out
13465    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13466
13467    lt_compiler_flag="-o out/conftest2.$ac_objext"
13468    # Insert the option either (1) after the last *FLAGS variable, or
13469    # (2) before a word containing "conftest.", or (3) at the end.
13470    # Note that $ac_compile itself does not contain backslashes and begins
13471    # with a dollar sign (not a hyphen), so the echo should work correctly.
13472    lt_compile=`echo "$ac_compile" | $SED \
13473    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13474    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13475    -e 's:$: $lt_compiler_flag:'`
13476    (eval echo "\"\$as_me:13476: $lt_compile\"" >&5)
13477    (eval "$lt_compile" 2>out/conftest.err)
13478    ac_status=$?
13479    cat out/conftest.err >&5
13480    echo "$as_me:13480: \$? = $ac_status" >&5
13481    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13482    then
13483      # The compiler can only warn and ignore the option if not recognized
13484      # So say no if there are warnings
13485      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13486      $SED '/^$/d' out/conftest.err >out/conftest.er2
13487      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13488        lt_cv_prog_compiler_c_o_CXX=yes
13489      fi
13490    fi
13491    chmod u+w .
13492    $rm conftest*
13493    # SGI C++ compiler will create directory out/ii_files/ for
13494    # template instantiation
13495    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13496    $rm out/* && rmdir out
13497    cd ..
13498    rmdir conftest
13499    $rm conftest*
13500
13501 fi
13502 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13503 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13504
13505
13506 hard_links="nottested"
13507 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13508   # do not overwrite the value of need_locks provided by the user
13509   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13510 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13511   hard_links=yes
13512   $rm conftest*
13513   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13514   touch conftest.a
13515   ln conftest.a conftest.b 2>&5 || hard_links=no
13516   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13517   echo "$as_me:$LINENO: result: $hard_links" >&5
13518 echo "${ECHO_T}$hard_links" >&6
13519   if test "$hard_links" = no; then
13520     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13521 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13522     need_locks=warn
13523   fi
13524 else
13525   need_locks=no
13526 fi
13527
13528 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13529 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13530
13531   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13532   case $host_os in
13533   aix4* | aix5*)
13534     # If we're using GNU nm, then we don't want the "-C" option.
13535     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13536     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13537       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'
13538     else
13539       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'
13540     fi
13541     ;;
13542   pw32*)
13543     export_symbols_cmds_CXX="$ltdll_cmds"
13544   ;;
13545   cygwin* | mingw*)
13546     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'
13547   ;;
13548   *)
13549     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13550   ;;
13551   esac
13552
13553 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13554 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13555 test "$ld_shlibs_CXX" = no && can_build_shared=no
13556
13557 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13558 if test "$GCC" = yes; then
13559   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13560 fi
13561
13562 #
13563 # Do we need to explicitly link libc?
13564 #
13565 case "x$archive_cmds_need_lc_CXX" in
13566 x|xyes)
13567   # Assume -lc should be added
13568   archive_cmds_need_lc_CXX=yes
13569
13570   if test "$enable_shared" = yes && test "$GCC" = yes; then
13571     case $archive_cmds_CXX in
13572     *'~'*)
13573       # FIXME: we may have to deal with multi-command sequences.
13574       ;;
13575     '$CC '*)
13576       # Test whether the compiler implicitly links with -lc since on some
13577       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13578       # to ld, don't add -lc before -lgcc.
13579       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13580 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13581       $rm conftest*
13582       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13583
13584       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13585   (eval $ac_compile) 2>&5
13586   ac_status=$?
13587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588   (exit $ac_status); } 2>conftest.err; then
13589         soname=conftest
13590         lib=conftest
13591         libobjs=conftest.$ac_objext
13592         deplibs=
13593         wl=$lt_prog_compiler_wl_CXX
13594         compiler_flags=-v
13595         linker_flags=-v
13596         verstring=
13597         output_objdir=.
13598         libname=conftest
13599         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13600         allow_undefined_flag_CXX=
13601         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13602   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13603   ac_status=$?
13604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605   (exit $ac_status); }
13606         then
13607           archive_cmds_need_lc_CXX=no
13608         else
13609           archive_cmds_need_lc_CXX=yes
13610         fi
13611         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13612       else
13613         cat conftest.err 1>&5
13614       fi
13615       $rm conftest*
13616       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13617 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13618       ;;
13619     esac
13620   fi
13621   ;;
13622 esac
13623
13624 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13625 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13626 library_names_spec=
13627 libname_spec='lib$name'
13628 soname_spec=
13629 shrext_cmds=".so"
13630 postinstall_cmds=
13631 postuninstall_cmds=
13632 finish_cmds=
13633 finish_eval=
13634 shlibpath_var=
13635 shlibpath_overrides_runpath=unknown
13636 version_type=none
13637 dynamic_linker="$host_os ld.so"
13638 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13639 if test "$GCC" = yes; then
13640   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13641   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13642     # if the path contains ";" then we assume it to be the separator
13643     # otherwise default to the standard path separator (i.e. ":") - it is
13644     # assumed that no part of a normal pathname contains ";" but that should
13645     # okay in the real world where ";" in dirpaths is itself problematic.
13646     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13647   else
13648     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13649   fi
13650 else
13651   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13652 fi
13653 need_lib_prefix=unknown
13654 hardcode_into_libs=no
13655
13656 # when you set need_version to no, make sure it does not cause -set_version
13657 # flags to be left without arguments
13658 need_version=unknown
13659
13660 case $host_os in
13661 aix3*)
13662   version_type=linux
13663   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13664   shlibpath_var=LIBPATH
13665
13666   # AIX 3 has no versioning support, so we append a major version to the name.
13667   soname_spec='${libname}${release}${shared_ext}$major'
13668   ;;
13669
13670 aix4* | aix5*)
13671   version_type=linux
13672   need_lib_prefix=no
13673   need_version=no
13674   hardcode_into_libs=yes
13675   if test "$host_cpu" = ia64; then
13676     # AIX 5 supports IA64
13677     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13678     shlibpath_var=LD_LIBRARY_PATH
13679   else
13680     # With GCC up to 2.95.x, collect2 would create an import file
13681     # for dependence libraries.  The import file would start with
13682     # the line `#! .'.  This would cause the generated library to
13683     # depend on `.', always an invalid library.  This was fixed in
13684     # development snapshots of GCC prior to 3.0.
13685     case $host_os in
13686       aix4 | aix4.[01] | aix4.[01].*)
13687       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13688            echo ' yes '
13689            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13690         :
13691       else
13692         can_build_shared=no
13693       fi
13694       ;;
13695     esac
13696     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13697     # soname into executable. Probably we can add versioning support to
13698     # collect2, so additional links can be useful in future.
13699     if test "$aix_use_runtimelinking" = yes; then
13700       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13701       # instead of lib<name>.a to let people know that these are not
13702       # typical AIX shared libraries.
13703       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13704     else
13705       # We preserve .a as extension for shared libraries through AIX4.2
13706       # and later when we are not doing run time linking.
13707       library_names_spec='${libname}${release}.a $libname.a'
13708       soname_spec='${libname}${release}${shared_ext}$major'
13709     fi
13710     shlibpath_var=LIBPATH
13711   fi
13712   ;;
13713
13714 amigaos*)
13715   library_names_spec='$libname.ixlibrary $libname.a'
13716   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13717   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'
13718   ;;
13719
13720 beos*)
13721   library_names_spec='${libname}${shared_ext}'
13722   dynamic_linker="$host_os ld.so"
13723   shlibpath_var=LIBRARY_PATH
13724   ;;
13725
13726 bsdi[45]*)
13727   version_type=linux
13728   need_version=no
13729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13730   soname_spec='${libname}${release}${shared_ext}$major'
13731   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13732   shlibpath_var=LD_LIBRARY_PATH
13733   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13734   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13735   # the default ld.so.conf also contains /usr/contrib/lib and
13736   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13737   # libtool to hard-code these into programs
13738   ;;
13739
13740 cygwin* | mingw* | pw32*)
13741   version_type=windows
13742   shrext_cmds=".dll"
13743   need_version=no
13744   need_lib_prefix=no
13745
13746   case $GCC,$host_os in
13747   yes,cygwin* | yes,mingw* | yes,pw32*)
13748     library_names_spec='$libname.dll.a'
13749     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13750     postinstall_cmds='base_file=`basename \${file}`~
13751       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13752       dldir=$destdir/`dirname \$dlpath`~
13753       test -d \$dldir || mkdir -p \$dldir~
13754       $install_prog $dir/$dlname \$dldir/$dlname'
13755     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13756       dlpath=$dir/\$dldll~
13757        $rm \$dlpath'
13758     shlibpath_overrides_runpath=yes
13759
13760     case $host_os in
13761     cygwin*)
13762       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13763       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13764       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13765       ;;
13766     mingw*)
13767       # MinGW DLLs use traditional 'lib' prefix
13768       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13769       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13770       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13771         # It is most probably a Windows format PATH printed by
13772         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13773         # path with ; separators, and with drive letters. We can handle the
13774         # drive letters (cygwin fileutils understands them), so leave them,
13775         # especially as we might pass files found there to a mingw objdump,
13776         # which wouldn't understand a cygwinified path. Ahh.
13777         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13778       else
13779         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13780       fi
13781       ;;
13782     pw32*)
13783       # pw32 DLLs use 'pw' prefix rather than 'lib'
13784       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13785       ;;
13786     esac
13787     ;;
13788
13789   *)
13790     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13791     ;;
13792   esac
13793   dynamic_linker='Win32 ld.exe'
13794   # FIXME: first we should search . and the directory the executable is in
13795   shlibpath_var=PATH
13796   ;;
13797
13798 darwin* | rhapsody*)
13799   dynamic_linker="$host_os dyld"
13800   version_type=darwin
13801   need_lib_prefix=no
13802   need_version=no
13803   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13804   soname_spec='${libname}${release}${major}$shared_ext'
13805   shlibpath_overrides_runpath=yes
13806   shlibpath_var=DYLD_LIBRARY_PATH
13807   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13808   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13809   if test "$GCC" = yes; then
13810     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"`
13811   else
13812     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13813   fi
13814   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13815   ;;
13816
13817 dgux*)
13818   version_type=linux
13819   need_lib_prefix=no
13820   need_version=no
13821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13822   soname_spec='${libname}${release}${shared_ext}$major'
13823   shlibpath_var=LD_LIBRARY_PATH
13824   ;;
13825
13826 freebsd1*)
13827   dynamic_linker=no
13828   ;;
13829
13830 kfreebsd*-gnu)
13831   version_type=linux
13832   need_lib_prefix=no
13833   need_version=no
13834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13835   soname_spec='${libname}${release}${shared_ext}$major'
13836   shlibpath_var=LD_LIBRARY_PATH
13837   shlibpath_overrides_runpath=no
13838   hardcode_into_libs=yes
13839   dynamic_linker='GNU ld.so'
13840   ;;
13841
13842 freebsd* | dragonfly*)
13843   # DragonFly does not have aout.  When/if they implement a new
13844   # versioning mechanism, adjust this.
13845   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13846   version_type=freebsd-$objformat
13847   case $version_type in
13848     freebsd-elf*)
13849       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13850       need_version=no
13851       need_lib_prefix=no
13852       ;;
13853     freebsd-*)
13854       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13855       need_version=yes
13856       ;;
13857   esac
13858   shlibpath_var=LD_LIBRARY_PATH
13859   case $host_os in
13860   freebsd2*)
13861     shlibpath_overrides_runpath=yes
13862     ;;
13863   freebsd3.[01]* | freebsdelf3.[01]*)
13864     shlibpath_overrides_runpath=yes
13865     hardcode_into_libs=yes
13866     ;;
13867   *) # from 3.2 on
13868     shlibpath_overrides_runpath=no
13869     hardcode_into_libs=yes
13870     ;;
13871   esac
13872   ;;
13873
13874 gnu*)
13875   version_type=linux
13876   need_lib_prefix=no
13877   need_version=no
13878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13879   soname_spec='${libname}${release}${shared_ext}$major'
13880   shlibpath_var=LD_LIBRARY_PATH
13881   hardcode_into_libs=yes
13882   ;;
13883
13884 hpux9* | hpux10* | hpux11*)
13885   # Give a soname corresponding to the major version so that dld.sl refuses to
13886   # link against other versions.
13887   version_type=sunos
13888   need_lib_prefix=no
13889   need_version=no
13890   case "$host_cpu" in
13891   ia64*)
13892     shrext_cmds='.so'
13893     hardcode_into_libs=yes
13894     dynamic_linker="$host_os dld.so"
13895     shlibpath_var=LD_LIBRARY_PATH
13896     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13897     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13898     soname_spec='${libname}${release}${shared_ext}$major'
13899     if test "X$HPUX_IA64_MODE" = X32; then
13900       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13901     else
13902       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13903     fi
13904     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13905     ;;
13906    hppa*64*)
13907      shrext_cmds='.sl'
13908      hardcode_into_libs=yes
13909      dynamic_linker="$host_os dld.sl"
13910      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13911      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13912      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13913      soname_spec='${libname}${release}${shared_ext}$major'
13914      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13915      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13916      ;;
13917    *)
13918     shrext_cmds='.sl'
13919     dynamic_linker="$host_os dld.sl"
13920     shlibpath_var=SHLIB_PATH
13921     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13922     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13923     soname_spec='${libname}${release}${shared_ext}$major'
13924     ;;
13925   esac
13926   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13927   postinstall_cmds='chmod 555 $lib'
13928   ;;
13929
13930 irix5* | irix6* | nonstopux*)
13931   case $host_os in
13932     nonstopux*) version_type=nonstopux ;;
13933     *)
13934         if test "$lt_cv_prog_gnu_ld" = yes; then
13935                 version_type=linux
13936         else
13937                 version_type=irix
13938         fi ;;
13939   esac
13940   need_lib_prefix=no
13941   need_version=no
13942   soname_spec='${libname}${release}${shared_ext}$major'
13943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13944   case $host_os in
13945   irix5* | nonstopux*)
13946     libsuff= shlibsuff=
13947     ;;
13948   *)
13949     case $LD in # libtool.m4 will add one of these switches to LD
13950     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13951       libsuff= shlibsuff= libmagic=32-bit;;
13952     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13953       libsuff=32 shlibsuff=N32 libmagic=N32;;
13954     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13955       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13956     *) libsuff= shlibsuff= libmagic=never-match;;
13957     esac
13958     ;;
13959   esac
13960   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13961   shlibpath_overrides_runpath=no
13962   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13963   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13964   hardcode_into_libs=yes
13965   ;;
13966
13967 # No shared lib support for Linux oldld, aout, or coff.
13968 linux*oldld* | linux*aout* | linux*coff*)
13969   dynamic_linker=no
13970   ;;
13971
13972 # This must be Linux ELF.
13973 linux*)
13974   version_type=linux
13975   need_lib_prefix=no
13976   need_version=no
13977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13978   soname_spec='${libname}${release}${shared_ext}$major'
13979   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13980   shlibpath_var=LD_LIBRARY_PATH
13981   shlibpath_overrides_runpath=no
13982   # This implies no fast_install, which is unacceptable.
13983   # Some rework will be needed to allow for fast_install
13984   # before this can be enabled.
13985   hardcode_into_libs=yes
13986
13987   # Append ld.so.conf contents to the search path
13988   if test -f /etc/ld.so.conf; then
13989     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' ' '`
13990     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13991   fi
13992
13993   # We used to test for /lib/ld.so.1 and disable shared libraries on
13994   # powerpc, because MkLinux only supported shared libraries with the
13995   # GNU dynamic linker.  Since this was broken with cross compilers,
13996   # most powerpc-linux boxes support dynamic linking these days and
13997   # people can always --disable-shared, the test was removed, and we
13998   # assume the GNU/Linux dynamic linker is in use.
13999   dynamic_linker='GNU/Linux ld.so'
14000   ;;
14001
14002 knetbsd*-gnu)
14003   version_type=linux
14004   need_lib_prefix=no
14005   need_version=no
14006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14007   soname_spec='${libname}${release}${shared_ext}$major'
14008   shlibpath_var=LD_LIBRARY_PATH
14009   shlibpath_overrides_runpath=no
14010   hardcode_into_libs=yes
14011   dynamic_linker='GNU ld.so'
14012   ;;
14013
14014 netbsd*)
14015   version_type=sunos
14016   need_lib_prefix=no
14017   need_version=no
14018   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14019     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14020     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14021     dynamic_linker='NetBSD (a.out) ld.so'
14022   else
14023     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14024     soname_spec='${libname}${release}${shared_ext}$major'
14025     dynamic_linker='NetBSD ld.elf_so'
14026   fi
14027   shlibpath_var=LD_LIBRARY_PATH
14028   shlibpath_overrides_runpath=yes
14029   hardcode_into_libs=yes
14030   ;;
14031
14032 newsos6)
14033   version_type=linux
14034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14035   shlibpath_var=LD_LIBRARY_PATH
14036   shlibpath_overrides_runpath=yes
14037   ;;
14038
14039 nto-qnx*)
14040   version_type=linux
14041   need_lib_prefix=no
14042   need_version=no
14043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14044   soname_spec='${libname}${release}${shared_ext}$major'
14045   shlibpath_var=LD_LIBRARY_PATH
14046   shlibpath_overrides_runpath=yes
14047   ;;
14048
14049 openbsd*)
14050   version_type=sunos
14051   need_lib_prefix=no
14052   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14053   case $host_os in
14054     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14055     *)                         need_version=no  ;;
14056   esac
14057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14058   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14059   shlibpath_var=LD_LIBRARY_PATH
14060   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14061     case $host_os in
14062       openbsd2.[89] | openbsd2.[89].*)
14063         shlibpath_overrides_runpath=no
14064         ;;
14065       *)
14066         shlibpath_overrides_runpath=yes
14067         ;;
14068       esac
14069   else
14070     shlibpath_overrides_runpath=yes
14071   fi
14072   ;;
14073
14074 os2*)
14075   libname_spec='$name'
14076   shrext_cmds=".dll"
14077   need_lib_prefix=no
14078   library_names_spec='$libname${shared_ext} $libname.a'
14079   dynamic_linker='OS/2 ld.exe'
14080   shlibpath_var=LIBPATH
14081   ;;
14082
14083 osf3* | osf4* | osf5*)
14084   version_type=osf
14085   need_lib_prefix=no
14086   need_version=no
14087   soname_spec='${libname}${release}${shared_ext}$major'
14088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14089   shlibpath_var=LD_LIBRARY_PATH
14090   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14091   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14092   ;;
14093
14094 sco3.2v5*)
14095   version_type=osf
14096   soname_spec='${libname}${release}${shared_ext}$major'
14097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14098   shlibpath_var=LD_LIBRARY_PATH
14099   ;;
14100
14101 solaris*)
14102   version_type=linux
14103   need_lib_prefix=no
14104   need_version=no
14105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14106   soname_spec='${libname}${release}${shared_ext}$major'
14107   shlibpath_var=LD_LIBRARY_PATH
14108   shlibpath_overrides_runpath=yes
14109   hardcode_into_libs=yes
14110   # ldd complains unless libraries are executable
14111   postinstall_cmds='chmod +x $lib'
14112   ;;
14113
14114 sunos4*)
14115   version_type=sunos
14116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14117   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14118   shlibpath_var=LD_LIBRARY_PATH
14119   shlibpath_overrides_runpath=yes
14120   if test "$with_gnu_ld" = yes; then
14121     need_lib_prefix=no
14122   fi
14123   need_version=yes
14124   ;;
14125
14126 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14127   version_type=linux
14128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14129   soname_spec='${libname}${release}${shared_ext}$major'
14130   shlibpath_var=LD_LIBRARY_PATH
14131   case $host_vendor in
14132     sni)
14133       shlibpath_overrides_runpath=no
14134       need_lib_prefix=no
14135       export_dynamic_flag_spec='${wl}-Blargedynsym'
14136       runpath_var=LD_RUN_PATH
14137       ;;
14138     siemens)
14139       need_lib_prefix=no
14140       ;;
14141     motorola)
14142       need_lib_prefix=no
14143       need_version=no
14144       shlibpath_overrides_runpath=no
14145       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14146       ;;
14147   esac
14148   ;;
14149
14150 sysv4*MP*)
14151   if test -d /usr/nec ;then
14152     version_type=linux
14153     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14154     soname_spec='$libname${shared_ext}.$major'
14155     shlibpath_var=LD_LIBRARY_PATH
14156   fi
14157   ;;
14158
14159 uts4*)
14160   version_type=linux
14161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14162   soname_spec='${libname}${release}${shared_ext}$major'
14163   shlibpath_var=LD_LIBRARY_PATH
14164   ;;
14165
14166 *)
14167   dynamic_linker=no
14168   ;;
14169 esac
14170 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14171 echo "${ECHO_T}$dynamic_linker" >&6
14172 test "$dynamic_linker" = no && can_build_shared=no
14173
14174 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14175 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14176 hardcode_action_CXX=
14177 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14178    test -n "$runpath_var_CXX" || \
14179    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14180
14181   # We can hardcode non-existant directories.
14182   if test "$hardcode_direct_CXX" != no &&
14183      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14184      # have to relink, otherwise we might link with an installed library
14185      # when we should be linking with a yet-to-be-installed one
14186      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14187      test "$hardcode_minus_L_CXX" != no; then
14188     # Linking always hardcodes the temporary library directory.
14189     hardcode_action_CXX=relink
14190   else
14191     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14192     hardcode_action_CXX=immediate
14193   fi
14194 else
14195   # We cannot hardcode anything, or else we can only hardcode existing
14196   # directories.
14197   hardcode_action_CXX=unsupported
14198 fi
14199 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14200 echo "${ECHO_T}$hardcode_action_CXX" >&6
14201
14202 if test "$hardcode_action_CXX" = relink; then
14203   # Fast installation is not supported
14204   enable_fast_install=no
14205 elif test "$shlibpath_overrides_runpath" = yes ||
14206      test "$enable_shared" = no; then
14207   # Fast installation is not necessary
14208   enable_fast_install=needless
14209 fi
14210
14211 striplib=
14212 old_striplib=
14213 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14214 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14215 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14216   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14217   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14218   echo "$as_me:$LINENO: result: yes" >&5
14219 echo "${ECHO_T}yes" >&6
14220 else
14221 # FIXME - insert some real tests, host_os isn't really good enough
14222   case $host_os in
14223    darwin*)
14224        if test -n "$STRIP" ; then
14225          striplib="$STRIP -x"
14226          echo "$as_me:$LINENO: result: yes" >&5
14227 echo "${ECHO_T}yes" >&6
14228        else
14229   echo "$as_me:$LINENO: result: no" >&5
14230 echo "${ECHO_T}no" >&6
14231 fi
14232        ;;
14233    *)
14234   echo "$as_me:$LINENO: result: no" >&5
14235 echo "${ECHO_T}no" >&6
14236     ;;
14237   esac
14238 fi
14239
14240 if test "x$enable_dlopen" != xyes; then
14241   enable_dlopen=unknown
14242   enable_dlopen_self=unknown
14243   enable_dlopen_self_static=unknown
14244 else
14245   lt_cv_dlopen=no
14246   lt_cv_dlopen_libs=
14247
14248   case $host_os in
14249   beos*)
14250     lt_cv_dlopen="load_add_on"
14251     lt_cv_dlopen_libs=
14252     lt_cv_dlopen_self=yes
14253     ;;
14254
14255   mingw* | pw32*)
14256     lt_cv_dlopen="LoadLibrary"
14257     lt_cv_dlopen_libs=
14258    ;;
14259
14260   cygwin*)
14261     lt_cv_dlopen="dlopen"
14262     lt_cv_dlopen_libs=
14263    ;;
14264
14265   darwin*)
14266   # if libdl is installed we need to link against it
14267     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14268 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14269 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14270   echo $ECHO_N "(cached) $ECHO_C" >&6
14271 else
14272   ac_check_lib_save_LIBS=$LIBS
14273 LIBS="-ldl  $LIBS"
14274 cat >conftest.$ac_ext <<_ACEOF
14275 /* confdefs.h.  */
14276 _ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h.  */
14280
14281 /* Override any gcc2 internal prototype to avoid an error.  */
14282 #ifdef __cplusplus
14283 extern "C"
14284 #endif
14285 /* We use char because int might match the return type of a gcc2
14286    builtin and then its argument prototype would still apply.  */
14287 char dlopen ();
14288 int
14289 main ()
14290 {
14291 dlopen ();
14292   ;
14293   return 0;
14294 }
14295 _ACEOF
14296 rm -f conftest.$ac_objext conftest$ac_exeext
14297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14298   (eval $ac_link) 2>conftest.er1
14299   ac_status=$?
14300   grep -v '^ *+' conftest.er1 >conftest.err
14301   rm -f conftest.er1
14302   cat conftest.err >&5
14303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304   (exit $ac_status); } &&
14305          { ac_try='test -z "$ac_cxx_werror_flag"
14306                          || test ! -s conftest.err'
14307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308   (eval $ac_try) 2>&5
14309   ac_status=$?
14310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311   (exit $ac_status); }; } &&
14312          { ac_try='test -s conftest$ac_exeext'
14313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314   (eval $ac_try) 2>&5
14315   ac_status=$?
14316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317   (exit $ac_status); }; }; then
14318   ac_cv_lib_dl_dlopen=yes
14319 else
14320   echo "$as_me: failed program was:" >&5
14321 sed 's/^/| /' conftest.$ac_ext >&5
14322
14323 ac_cv_lib_dl_dlopen=no
14324 fi
14325 rm -f conftest.err conftest.$ac_objext \
14326       conftest$ac_exeext conftest.$ac_ext
14327 LIBS=$ac_check_lib_save_LIBS
14328 fi
14329 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14330 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14331 if test $ac_cv_lib_dl_dlopen = yes; then
14332   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14333 else
14334
14335     lt_cv_dlopen="dyld"
14336     lt_cv_dlopen_libs=
14337     lt_cv_dlopen_self=yes
14338
14339 fi
14340
14341    ;;
14342
14343   *)
14344     echo "$as_me:$LINENO: checking for shl_load" >&5
14345 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14346 if test "${ac_cv_func_shl_load+set}" = set; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349   cat >conftest.$ac_ext <<_ACEOF
14350 /* confdefs.h.  */
14351 _ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h.  */
14355 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14357 #define shl_load innocuous_shl_load
14358
14359 /* System header to define __stub macros and hopefully few prototypes,
14360     which can conflict with char shl_load (); below.
14361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14362     <limits.h> exists even on freestanding compilers.  */
14363
14364 #ifdef __STDC__
14365 # include <limits.h>
14366 #else
14367 # include <assert.h>
14368 #endif
14369
14370 #undef shl_load
14371
14372 /* Override any gcc2 internal prototype to avoid an error.  */
14373 #ifdef __cplusplus
14374 extern "C"
14375 {
14376 #endif
14377 /* We use char because int might match the return type of a gcc2
14378    builtin and then its argument prototype would still apply.  */
14379 char shl_load ();
14380 /* The GNU C library defines this for functions which it implements
14381     to always fail with ENOSYS.  Some functions are actually named
14382     something starting with __ and the normal name is an alias.  */
14383 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14384 choke me
14385 #else
14386 char (*f) () = shl_load;
14387 #endif
14388 #ifdef __cplusplus
14389 }
14390 #endif
14391
14392 int
14393 main ()
14394 {
14395 return f != shl_load;
14396   ;
14397   return 0;
14398 }
14399 _ACEOF
14400 rm -f conftest.$ac_objext conftest$ac_exeext
14401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14402   (eval $ac_link) 2>conftest.er1
14403   ac_status=$?
14404   grep -v '^ *+' conftest.er1 >conftest.err
14405   rm -f conftest.er1
14406   cat conftest.err >&5
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); } &&
14409          { ac_try='test -z "$ac_cxx_werror_flag"
14410                          || test ! -s conftest.err'
14411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412   (eval $ac_try) 2>&5
14413   ac_status=$?
14414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415   (exit $ac_status); }; } &&
14416          { ac_try='test -s conftest$ac_exeext'
14417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418   (eval $ac_try) 2>&5
14419   ac_status=$?
14420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421   (exit $ac_status); }; }; then
14422   ac_cv_func_shl_load=yes
14423 else
14424   echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14426
14427 ac_cv_func_shl_load=no
14428 fi
14429 rm -f conftest.err conftest.$ac_objext \
14430       conftest$ac_exeext conftest.$ac_ext
14431 fi
14432 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14433 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14434 if test $ac_cv_func_shl_load = yes; then
14435   lt_cv_dlopen="shl_load"
14436 else
14437   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14438 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14439 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14440   echo $ECHO_N "(cached) $ECHO_C" >&6
14441 else
14442   ac_check_lib_save_LIBS=$LIBS
14443 LIBS="-ldld  $LIBS"
14444 cat >conftest.$ac_ext <<_ACEOF
14445 /* confdefs.h.  */
14446 _ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h.  */
14450
14451 /* Override any gcc2 internal prototype to avoid an error.  */
14452 #ifdef __cplusplus
14453 extern "C"
14454 #endif
14455 /* We use char because int might match the return type of a gcc2
14456    builtin and then its argument prototype would still apply.  */
14457 char shl_load ();
14458 int
14459 main ()
14460 {
14461 shl_load ();
14462   ;
14463   return 0;
14464 }
14465 _ACEOF
14466 rm -f conftest.$ac_objext conftest$ac_exeext
14467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14468   (eval $ac_link) 2>conftest.er1
14469   ac_status=$?
14470   grep -v '^ *+' conftest.er1 >conftest.err
14471   rm -f conftest.er1
14472   cat conftest.err >&5
14473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474   (exit $ac_status); } &&
14475          { ac_try='test -z "$ac_cxx_werror_flag"
14476                          || test ! -s conftest.err'
14477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478   (eval $ac_try) 2>&5
14479   ac_status=$?
14480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481   (exit $ac_status); }; } &&
14482          { ac_try='test -s conftest$ac_exeext'
14483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484   (eval $ac_try) 2>&5
14485   ac_status=$?
14486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487   (exit $ac_status); }; }; then
14488   ac_cv_lib_dld_shl_load=yes
14489 else
14490   echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14492
14493 ac_cv_lib_dld_shl_load=no
14494 fi
14495 rm -f conftest.err conftest.$ac_objext \
14496       conftest$ac_exeext conftest.$ac_ext
14497 LIBS=$ac_check_lib_save_LIBS
14498 fi
14499 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14500 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14501 if test $ac_cv_lib_dld_shl_load = yes; then
14502   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14503 else
14504   echo "$as_me:$LINENO: checking for dlopen" >&5
14505 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14506 if test "${ac_cv_func_dlopen+set}" = set; then
14507   echo $ECHO_N "(cached) $ECHO_C" >&6
14508 else
14509   cat >conftest.$ac_ext <<_ACEOF
14510 /* confdefs.h.  */
14511 _ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h.  */
14515 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14516    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14517 #define dlopen innocuous_dlopen
14518
14519 /* System header to define __stub macros and hopefully few prototypes,
14520     which can conflict with char dlopen (); below.
14521     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14522     <limits.h> exists even on freestanding compilers.  */
14523
14524 #ifdef __STDC__
14525 # include <limits.h>
14526 #else
14527 # include <assert.h>
14528 #endif
14529
14530 #undef dlopen
14531
14532 /* Override any gcc2 internal prototype to avoid an error.  */
14533 #ifdef __cplusplus
14534 extern "C"
14535 {
14536 #endif
14537 /* We use char because int might match the return type of a gcc2
14538    builtin and then its argument prototype would still apply.  */
14539 char dlopen ();
14540 /* The GNU C library defines this for functions which it implements
14541     to always fail with ENOSYS.  Some functions are actually named
14542     something starting with __ and the normal name is an alias.  */
14543 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14544 choke me
14545 #else
14546 char (*f) () = dlopen;
14547 #endif
14548 #ifdef __cplusplus
14549 }
14550 #endif
14551
14552 int
14553 main ()
14554 {
14555 return f != dlopen;
14556   ;
14557   return 0;
14558 }
14559 _ACEOF
14560 rm -f conftest.$ac_objext conftest$ac_exeext
14561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14562   (eval $ac_link) 2>conftest.er1
14563   ac_status=$?
14564   grep -v '^ *+' conftest.er1 >conftest.err
14565   rm -f conftest.er1
14566   cat conftest.err >&5
14567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568   (exit $ac_status); } &&
14569          { ac_try='test -z "$ac_cxx_werror_flag"
14570                          || test ! -s conftest.err'
14571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14572   (eval $ac_try) 2>&5
14573   ac_status=$?
14574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575   (exit $ac_status); }; } &&
14576          { ac_try='test -s conftest$ac_exeext'
14577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578   (eval $ac_try) 2>&5
14579   ac_status=$?
14580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581   (exit $ac_status); }; }; then
14582   ac_cv_func_dlopen=yes
14583 else
14584   echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14586
14587 ac_cv_func_dlopen=no
14588 fi
14589 rm -f conftest.err conftest.$ac_objext \
14590       conftest$ac_exeext conftest.$ac_ext
14591 fi
14592 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14593 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14594 if test $ac_cv_func_dlopen = yes; then
14595   lt_cv_dlopen="dlopen"
14596 else
14597   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14598 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14599 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14600   echo $ECHO_N "(cached) $ECHO_C" >&6
14601 else
14602   ac_check_lib_save_LIBS=$LIBS
14603 LIBS="-ldl  $LIBS"
14604 cat >conftest.$ac_ext <<_ACEOF
14605 /* confdefs.h.  */
14606 _ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h.  */
14610
14611 /* Override any gcc2 internal prototype to avoid an error.  */
14612 #ifdef __cplusplus
14613 extern "C"
14614 #endif
14615 /* We use char because int might match the return type of a gcc2
14616    builtin and then its argument prototype would still apply.  */
14617 char dlopen ();
14618 int
14619 main ()
14620 {
14621 dlopen ();
14622   ;
14623   return 0;
14624 }
14625 _ACEOF
14626 rm -f conftest.$ac_objext conftest$ac_exeext
14627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14628   (eval $ac_link) 2>conftest.er1
14629   ac_status=$?
14630   grep -v '^ *+' conftest.er1 >conftest.err
14631   rm -f conftest.er1
14632   cat conftest.err >&5
14633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634   (exit $ac_status); } &&
14635          { ac_try='test -z "$ac_cxx_werror_flag"
14636                          || test ! -s conftest.err'
14637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638   (eval $ac_try) 2>&5
14639   ac_status=$?
14640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641   (exit $ac_status); }; } &&
14642          { ac_try='test -s conftest$ac_exeext'
14643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644   (eval $ac_try) 2>&5
14645   ac_status=$?
14646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647   (exit $ac_status); }; }; then
14648   ac_cv_lib_dl_dlopen=yes
14649 else
14650   echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14652
14653 ac_cv_lib_dl_dlopen=no
14654 fi
14655 rm -f conftest.err conftest.$ac_objext \
14656       conftest$ac_exeext conftest.$ac_ext
14657 LIBS=$ac_check_lib_save_LIBS
14658 fi
14659 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14660 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14661 if test $ac_cv_lib_dl_dlopen = yes; then
14662   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14663 else
14664   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14665 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14666 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14667   echo $ECHO_N "(cached) $ECHO_C" >&6
14668 else
14669   ac_check_lib_save_LIBS=$LIBS
14670 LIBS="-lsvld  $LIBS"
14671 cat >conftest.$ac_ext <<_ACEOF
14672 /* confdefs.h.  */
14673 _ACEOF
14674 cat confdefs.h >>conftest.$ac_ext
14675 cat >>conftest.$ac_ext <<_ACEOF
14676 /* end confdefs.h.  */
14677
14678 /* Override any gcc2 internal prototype to avoid an error.  */
14679 #ifdef __cplusplus
14680 extern "C"
14681 #endif
14682 /* We use char because int might match the return type of a gcc2
14683    builtin and then its argument prototype would still apply.  */
14684 char dlopen ();
14685 int
14686 main ()
14687 {
14688 dlopen ();
14689   ;
14690   return 0;
14691 }
14692 _ACEOF
14693 rm -f conftest.$ac_objext conftest$ac_exeext
14694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14695   (eval $ac_link) 2>conftest.er1
14696   ac_status=$?
14697   grep -v '^ *+' conftest.er1 >conftest.err
14698   rm -f conftest.er1
14699   cat conftest.err >&5
14700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701   (exit $ac_status); } &&
14702          { ac_try='test -z "$ac_cxx_werror_flag"
14703                          || test ! -s conftest.err'
14704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705   (eval $ac_try) 2>&5
14706   ac_status=$?
14707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708   (exit $ac_status); }; } &&
14709          { ac_try='test -s conftest$ac_exeext'
14710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711   (eval $ac_try) 2>&5
14712   ac_status=$?
14713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714   (exit $ac_status); }; }; then
14715   ac_cv_lib_svld_dlopen=yes
14716 else
14717   echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14719
14720 ac_cv_lib_svld_dlopen=no
14721 fi
14722 rm -f conftest.err conftest.$ac_objext \
14723       conftest$ac_exeext conftest.$ac_ext
14724 LIBS=$ac_check_lib_save_LIBS
14725 fi
14726 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14727 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14728 if test $ac_cv_lib_svld_dlopen = yes; then
14729   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14730 else
14731   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14732 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14733 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14734   echo $ECHO_N "(cached) $ECHO_C" >&6
14735 else
14736   ac_check_lib_save_LIBS=$LIBS
14737 LIBS="-ldld  $LIBS"
14738 cat >conftest.$ac_ext <<_ACEOF
14739 /* confdefs.h.  */
14740 _ACEOF
14741 cat confdefs.h >>conftest.$ac_ext
14742 cat >>conftest.$ac_ext <<_ACEOF
14743 /* end confdefs.h.  */
14744
14745 /* Override any gcc2 internal prototype to avoid an error.  */
14746 #ifdef __cplusplus
14747 extern "C"
14748 #endif
14749 /* We use char because int might match the return type of a gcc2
14750    builtin and then its argument prototype would still apply.  */
14751 char dld_link ();
14752 int
14753 main ()
14754 {
14755 dld_link ();
14756   ;
14757   return 0;
14758 }
14759 _ACEOF
14760 rm -f conftest.$ac_objext conftest$ac_exeext
14761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14762   (eval $ac_link) 2>conftest.er1
14763   ac_status=$?
14764   grep -v '^ *+' conftest.er1 >conftest.err
14765   rm -f conftest.er1
14766   cat conftest.err >&5
14767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768   (exit $ac_status); } &&
14769          { ac_try='test -z "$ac_cxx_werror_flag"
14770                          || test ! -s conftest.err'
14771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772   (eval $ac_try) 2>&5
14773   ac_status=$?
14774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775   (exit $ac_status); }; } &&
14776          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14782   ac_cv_lib_dld_dld_link=yes
14783 else
14784   echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14786
14787 ac_cv_lib_dld_dld_link=no
14788 fi
14789 rm -f conftest.err conftest.$ac_objext \
14790       conftest$ac_exeext conftest.$ac_ext
14791 LIBS=$ac_check_lib_save_LIBS
14792 fi
14793 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14794 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14795 if test $ac_cv_lib_dld_dld_link = yes; then
14796   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14797 fi
14798
14799
14800 fi
14801
14802
14803 fi
14804
14805
14806 fi
14807
14808
14809 fi
14810
14811
14812 fi
14813
14814     ;;
14815   esac
14816
14817   if test "x$lt_cv_dlopen" != xno; then
14818     enable_dlopen=yes
14819   else
14820     enable_dlopen=no
14821   fi
14822
14823   case $lt_cv_dlopen in
14824   dlopen)
14825     save_CPPFLAGS="$CPPFLAGS"
14826     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14827
14828     save_LDFLAGS="$LDFLAGS"
14829     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14830
14831     save_LIBS="$LIBS"
14832     LIBS="$lt_cv_dlopen_libs $LIBS"
14833
14834     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14835 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14836 if test "${lt_cv_dlopen_self+set}" = set; then
14837   echo $ECHO_N "(cached) $ECHO_C" >&6
14838 else
14839           if test "$cross_compiling" = yes; then :
14840   lt_cv_dlopen_self=cross
14841 else
14842   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14843   lt_status=$lt_dlunknown
14844   cat > conftest.$ac_ext <<EOF
14845 #line 14845 "configure"
14846 #include "confdefs.h"
14847
14848 #if HAVE_DLFCN_H
14849 #include <dlfcn.h>
14850 #endif
14851
14852 #include <stdio.h>
14853
14854 #ifdef RTLD_GLOBAL
14855 #  define LT_DLGLOBAL           RTLD_GLOBAL
14856 #else
14857 #  ifdef DL_GLOBAL
14858 #    define LT_DLGLOBAL         DL_GLOBAL
14859 #  else
14860 #    define LT_DLGLOBAL         0
14861 #  endif
14862 #endif
14863
14864 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14865    find out it does not work in some platform. */
14866 #ifndef LT_DLLAZY_OR_NOW
14867 #  ifdef RTLD_LAZY
14868 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14869 #  else
14870 #    ifdef DL_LAZY
14871 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14872 #    else
14873 #      ifdef RTLD_NOW
14874 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14875 #      else
14876 #        ifdef DL_NOW
14877 #          define LT_DLLAZY_OR_NOW      DL_NOW
14878 #        else
14879 #          define LT_DLLAZY_OR_NOW      0
14880 #        endif
14881 #      endif
14882 #    endif
14883 #  endif
14884 #endif
14885
14886 #ifdef __cplusplus
14887 extern "C" void exit (int);
14888 #endif
14889
14890 void fnord() { int i=42;}
14891 int main ()
14892 {
14893   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14894   int status = $lt_dlunknown;
14895
14896   if (self)
14897     {
14898       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14899       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14900       /* dlclose (self); */
14901     }
14902
14903     exit (status);
14904 }
14905 EOF
14906   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14907   (eval $ac_link) 2>&5
14908   ac_status=$?
14909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14911     (./conftest; exit; ) 2>/dev/null
14912     lt_status=$?
14913     case x$lt_status in
14914       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14915       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14916       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14917     esac
14918   else :
14919     # compilation failed
14920     lt_cv_dlopen_self=no
14921   fi
14922 fi
14923 rm -fr conftest*
14924
14925
14926 fi
14927 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14928 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14929
14930     if test "x$lt_cv_dlopen_self" = xyes; then
14931       LDFLAGS="$LDFLAGS $link_static_flag"
14932       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14933 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14934 if test "${lt_cv_dlopen_self_static+set}" = set; then
14935   echo $ECHO_N "(cached) $ECHO_C" >&6
14936 else
14937           if test "$cross_compiling" = yes; then :
14938   lt_cv_dlopen_self_static=cross
14939 else
14940   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14941   lt_status=$lt_dlunknown
14942   cat > conftest.$ac_ext <<EOF
14943 #line 14943 "configure"
14944 #include "confdefs.h"
14945
14946 #if HAVE_DLFCN_H
14947 #include <dlfcn.h>
14948 #endif
14949
14950 #include <stdio.h>
14951
14952 #ifdef RTLD_GLOBAL
14953 #  define LT_DLGLOBAL           RTLD_GLOBAL
14954 #else
14955 #  ifdef DL_GLOBAL
14956 #    define LT_DLGLOBAL         DL_GLOBAL
14957 #  else
14958 #    define LT_DLGLOBAL         0
14959 #  endif
14960 #endif
14961
14962 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14963    find out it does not work in some platform. */
14964 #ifndef LT_DLLAZY_OR_NOW
14965 #  ifdef RTLD_LAZY
14966 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14967 #  else
14968 #    ifdef DL_LAZY
14969 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14970 #    else
14971 #      ifdef RTLD_NOW
14972 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14973 #      else
14974 #        ifdef DL_NOW
14975 #          define LT_DLLAZY_OR_NOW      DL_NOW
14976 #        else
14977 #          define LT_DLLAZY_OR_NOW      0
14978 #        endif
14979 #      endif
14980 #    endif
14981 #  endif
14982 #endif
14983
14984 #ifdef __cplusplus
14985 extern "C" void exit (int);
14986 #endif
14987
14988 void fnord() { int i=42;}
14989 int main ()
14990 {
14991   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14992   int status = $lt_dlunknown;
14993
14994   if (self)
14995     {
14996       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14997       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14998       /* dlclose (self); */
14999     }
15000
15001     exit (status);
15002 }
15003 EOF
15004   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15005   (eval $ac_link) 2>&5
15006   ac_status=$?
15007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15009     (./conftest; exit; ) 2>/dev/null
15010     lt_status=$?
15011     case x$lt_status in
15012       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15013       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15014       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15015     esac
15016   else :
15017     # compilation failed
15018     lt_cv_dlopen_self_static=no
15019   fi
15020 fi
15021 rm -fr conftest*
15022
15023
15024 fi
15025 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15026 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15027     fi
15028
15029     CPPFLAGS="$save_CPPFLAGS"
15030     LDFLAGS="$save_LDFLAGS"
15031     LIBS="$save_LIBS"
15032     ;;
15033   esac
15034
15035   case $lt_cv_dlopen_self in
15036   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15037   *) enable_dlopen_self=unknown ;;
15038   esac
15039
15040   case $lt_cv_dlopen_self_static in
15041   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15042   *) enable_dlopen_self_static=unknown ;;
15043   esac
15044 fi
15045
15046
15047 # The else clause should only fire when bootstrapping the
15048 # libtool distribution, otherwise you forgot to ship ltmain.sh
15049 # with your package, and you will get complaints that there are
15050 # no rules to generate ltmain.sh.
15051 if test -f "$ltmain"; then
15052   # See if we are running on zsh, and set the options which allow our commands through
15053   # without removal of \ escapes.
15054   if test -n "${ZSH_VERSION+set}" ; then
15055     setopt NO_GLOB_SUBST
15056   fi
15057   # Now quote all the things that may contain metacharacters while being
15058   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15059   # variables and quote the copies for generation of the libtool script.
15060   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15061     SED SHELL STRIP \
15062     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15063     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15064     deplibs_check_method reload_flag reload_cmds need_locks \
15065     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15066     lt_cv_sys_global_symbol_to_c_name_address \
15067     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15068     old_postinstall_cmds old_postuninstall_cmds \
15069     compiler_CXX \
15070     CC_CXX \
15071     LD_CXX \
15072     lt_prog_compiler_wl_CXX \
15073     lt_prog_compiler_pic_CXX \
15074     lt_prog_compiler_static_CXX \
15075     lt_prog_compiler_no_builtin_flag_CXX \
15076     export_dynamic_flag_spec_CXX \
15077     thread_safe_flag_spec_CXX \
15078     whole_archive_flag_spec_CXX \
15079     enable_shared_with_static_runtimes_CXX \
15080     old_archive_cmds_CXX \
15081     old_archive_from_new_cmds_CXX \
15082     predep_objects_CXX \
15083     postdep_objects_CXX \
15084     predeps_CXX \
15085     postdeps_CXX \
15086     compiler_lib_search_path_CXX \
15087     archive_cmds_CXX \
15088     archive_expsym_cmds_CXX \
15089     postinstall_cmds_CXX \
15090     postuninstall_cmds_CXX \
15091     old_archive_from_expsyms_cmds_CXX \
15092     allow_undefined_flag_CXX \
15093     no_undefined_flag_CXX \
15094     export_symbols_cmds_CXX \
15095     hardcode_libdir_flag_spec_CXX \
15096     hardcode_libdir_flag_spec_ld_CXX \
15097     hardcode_libdir_separator_CXX \
15098     hardcode_automatic_CXX \
15099     module_cmds_CXX \
15100     module_expsym_cmds_CXX \
15101     lt_cv_prog_compiler_c_o_CXX \
15102     exclude_expsyms_CXX \
15103     include_expsyms_CXX; do
15104
15105     case $var in
15106     old_archive_cmds_CXX | \
15107     old_archive_from_new_cmds_CXX | \
15108     archive_cmds_CXX | \
15109     archive_expsym_cmds_CXX | \
15110     module_cmds_CXX | \
15111     module_expsym_cmds_CXX | \
15112     old_archive_from_expsyms_cmds_CXX | \
15113     export_symbols_cmds_CXX | \
15114     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15115     postinstall_cmds | postuninstall_cmds | \
15116     old_postinstall_cmds | old_postuninstall_cmds | \
15117     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15118       # Double-quote double-evaled strings.
15119       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15120       ;;
15121     *)
15122       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15123       ;;
15124     esac
15125   done
15126
15127   case $lt_echo in
15128   *'\$0 --fallback-echo"')
15129     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15130     ;;
15131   esac
15132
15133 cfgfile="$ofile"
15134
15135   cat <<__EOF__ >> "$cfgfile"
15136 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15137
15138 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15139
15140 # Shell to use when invoking shell scripts.
15141 SHELL=$lt_SHELL
15142
15143 # Whether or not to build shared libraries.
15144 build_libtool_libs=$enable_shared
15145
15146 # Whether or not to build static libraries.
15147 build_old_libs=$enable_static
15148
15149 # Whether or not to add -lc for building shared libraries.
15150 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15151
15152 # Whether or not to disallow shared libs when runtime libs are static
15153 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15154
15155 # Whether or not to optimize for fast installation.
15156 fast_install=$enable_fast_install
15157
15158 # The host system.
15159 host_alias=$host_alias
15160 host=$host
15161 host_os=$host_os
15162
15163 # The build system.
15164 build_alias=$build_alias
15165 build=$build
15166 build_os=$build_os
15167
15168 # An echo program that does not interpret backslashes.
15169 echo=$lt_echo
15170
15171 # The archiver.
15172 AR=$lt_AR
15173 AR_FLAGS=$lt_AR_FLAGS
15174
15175 # A C compiler.
15176 LTCC=$lt_LTCC
15177
15178 # A language-specific compiler.
15179 CC=$lt_compiler_CXX
15180
15181 # Is the compiler the GNU C compiler?
15182 with_gcc=$GCC_CXX
15183
15184 # An ERE matcher.
15185 EGREP=$lt_EGREP
15186
15187 # The linker used to build libraries.
15188 LD=$lt_LD_CXX
15189
15190 # Whether we need hard or soft links.
15191 LN_S=$lt_LN_S
15192
15193 # A BSD-compatible nm program.
15194 NM=$lt_NM
15195
15196 # A symbol stripping program
15197 STRIP=$lt_STRIP
15198
15199 # Used to examine libraries when file_magic_cmd begins "file"
15200 MAGIC_CMD=$MAGIC_CMD
15201
15202 # Used on cygwin: DLL creation program.
15203 DLLTOOL="$DLLTOOL"
15204
15205 # Used on cygwin: object dumper.
15206 OBJDUMP="$OBJDUMP"
15207
15208 # Used on cygwin: assembler.
15209 AS="$AS"
15210
15211 # The name of the directory that contains temporary libtool files.
15212 objdir=$objdir
15213
15214 # How to create reloadable object files.
15215 reload_flag=$lt_reload_flag
15216 reload_cmds=$lt_reload_cmds
15217
15218 # How to pass a linker flag through the compiler.
15219 wl=$lt_lt_prog_compiler_wl_CXX
15220
15221 # Object file suffix (normally "o").
15222 objext="$ac_objext"
15223
15224 # Old archive suffix (normally "a").
15225 libext="$libext"
15226
15227 # Shared library suffix (normally ".so").
15228 shrext_cmds='$shrext_cmds'
15229
15230 # Executable file suffix (normally "").
15231 exeext="$exeext"
15232
15233 # Additional compiler flags for building library objects.
15234 pic_flag=$lt_lt_prog_compiler_pic_CXX
15235 pic_mode=$pic_mode
15236
15237 # What is the maximum length of a command?
15238 max_cmd_len=$lt_cv_sys_max_cmd_len
15239
15240 # Does compiler simultaneously support -c and -o options?
15241 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15242
15243 # Must we lock files when doing compilation?
15244 need_locks=$lt_need_locks
15245
15246 # Do we need the lib prefix for modules?
15247 need_lib_prefix=$need_lib_prefix
15248
15249 # Do we need a version for libraries?
15250 need_version=$need_version
15251
15252 # Whether dlopen is supported.
15253 dlopen_support=$enable_dlopen
15254
15255 # Whether dlopen of programs is supported.
15256 dlopen_self=$enable_dlopen_self
15257
15258 # Whether dlopen of statically linked programs is supported.
15259 dlopen_self_static=$enable_dlopen_self_static
15260
15261 # Compiler flag to prevent dynamic linking.
15262 link_static_flag=$lt_lt_prog_compiler_static_CXX
15263
15264 # Compiler flag to turn off builtin functions.
15265 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15266
15267 # Compiler flag to allow reflexive dlopens.
15268 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15269
15270 # Compiler flag to generate shared objects directly from archives.
15271 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15272
15273 # Compiler flag to generate thread-safe objects.
15274 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15275
15276 # Library versioning type.
15277 version_type=$version_type
15278
15279 # Format of library name prefix.
15280 libname_spec=$lt_libname_spec
15281
15282 # List of archive names.  First name is the real one, the rest are links.
15283 # The last name is the one that the linker finds with -lNAME.
15284 library_names_spec=$lt_library_names_spec
15285
15286 # The coded name of the library, if different from the real name.
15287 soname_spec=$lt_soname_spec
15288
15289 # Commands used to build and install an old-style archive.
15290 RANLIB=$lt_RANLIB
15291 old_archive_cmds=$lt_old_archive_cmds_CXX
15292 old_postinstall_cmds=$lt_old_postinstall_cmds
15293 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15294
15295 # Create an old-style archive from a shared archive.
15296 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15297
15298 # Create a temporary old-style archive to link instead of a shared archive.
15299 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15300
15301 # Commands used to build and install a shared archive.
15302 archive_cmds=$lt_archive_cmds_CXX
15303 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15304 postinstall_cmds=$lt_postinstall_cmds
15305 postuninstall_cmds=$lt_postuninstall_cmds
15306
15307 # Commands used to build a loadable module (assumed same as above if empty)
15308 module_cmds=$lt_module_cmds_CXX
15309 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15310
15311 # Commands to strip libraries.
15312 old_striplib=$lt_old_striplib
15313 striplib=$lt_striplib
15314
15315 # Dependencies to place before the objects being linked to create a
15316 # shared library.
15317 predep_objects=$lt_predep_objects_CXX
15318
15319 # Dependencies to place after the objects being linked to create a
15320 # shared library.
15321 postdep_objects=$lt_postdep_objects_CXX
15322
15323 # Dependencies to place before the objects being linked to create a
15324 # shared library.
15325 predeps=$lt_predeps_CXX
15326
15327 # Dependencies to place after the objects being linked to create a
15328 # shared library.
15329 postdeps=$lt_postdeps_CXX
15330
15331 # The library search path used internally by the compiler when linking
15332 # a shared library.
15333 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15334
15335 # Method to check whether dependent libraries are shared objects.
15336 deplibs_check_method=$lt_deplibs_check_method
15337
15338 # Command to use when deplibs_check_method == file_magic.
15339 file_magic_cmd=$lt_file_magic_cmd
15340
15341 # Flag that allows shared libraries with undefined symbols to be built.
15342 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15343
15344 # Flag that forces no undefined symbols.
15345 no_undefined_flag=$lt_no_undefined_flag_CXX
15346
15347 # Commands used to finish a libtool library installation in a directory.
15348 finish_cmds=$lt_finish_cmds
15349
15350 # Same as above, but a single script fragment to be evaled but not shown.
15351 finish_eval=$lt_finish_eval
15352
15353 # Take the output of nm and produce a listing of raw symbols and C names.
15354 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15355
15356 # Transform the output of nm in a proper C declaration
15357 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15358
15359 # Transform the output of nm in a C name address pair
15360 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15361
15362 # This is the shared library runtime path variable.
15363 runpath_var=$runpath_var
15364
15365 # This is the shared library path variable.
15366 shlibpath_var=$shlibpath_var
15367
15368 # Is shlibpath searched before the hard-coded library search path?
15369 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15370
15371 # How to hardcode a shared library path into an executable.
15372 hardcode_action=$hardcode_action_CXX
15373
15374 # Whether we should hardcode library paths into libraries.
15375 hardcode_into_libs=$hardcode_into_libs
15376
15377 # Flag to hardcode \$libdir into a binary during linking.
15378 # This must work even if \$libdir does not exist.
15379 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15380
15381 # If ld is used when linking, flag to hardcode \$libdir into
15382 # a binary during linking. This must work even if \$libdir does
15383 # not exist.
15384 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15385
15386 # Whether we need a single -rpath flag with a separated argument.
15387 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15388
15389 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15390 # resulting binary.
15391 hardcode_direct=$hardcode_direct_CXX
15392
15393 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15394 # resulting binary.
15395 hardcode_minus_L=$hardcode_minus_L_CXX
15396
15397 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15398 # the resulting binary.
15399 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15400
15401 # Set to yes if building a shared library automatically hardcodes DIR into the library
15402 # and all subsequent libraries and executables linked against it.
15403 hardcode_automatic=$hardcode_automatic_CXX
15404
15405 # Variables whose values should be saved in libtool wrapper scripts and
15406 # restored at relink time.
15407 variables_saved_for_relink="$variables_saved_for_relink"
15408
15409 # Whether libtool must link a program against all its dependency libraries.
15410 link_all_deplibs=$link_all_deplibs_CXX
15411
15412 # Compile-time system search path for libraries
15413 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15414
15415 # Run-time system search path for libraries
15416 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15417
15418 # Fix the shell variable \$srcfile for the compiler.
15419 fix_srcfile_path="$fix_srcfile_path_CXX"
15420
15421 # Set to yes if exported symbols are required.
15422 always_export_symbols=$always_export_symbols_CXX
15423
15424 # The commands to list exported symbols.
15425 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15426
15427 # The commands to extract the exported symbol list from a shared archive.
15428 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15429
15430 # Symbols that should not be listed in the preloaded symbols.
15431 exclude_expsyms=$lt_exclude_expsyms_CXX
15432
15433 # Symbols that must always be exported.
15434 include_expsyms=$lt_include_expsyms_CXX
15435
15436 # ### END LIBTOOL TAG CONFIG: $tagname
15437
15438 __EOF__
15439
15440
15441 else
15442   # If there is no Makefile yet, we rely on a make rule to execute
15443   # `config.status --recheck' to rerun these tests and create the
15444   # libtool script then.
15445   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15446   if test -f "$ltmain_in"; then
15447     test -f Makefile && make "$ltmain"
15448   fi
15449 fi
15450
15451
15452 ac_ext=c
15453 ac_cpp='$CPP $CPPFLAGS'
15454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15457
15458 CC=$lt_save_CC
15459 LDCXX=$LD
15460 LD=$lt_save_LD
15461 GCC=$lt_save_GCC
15462 with_gnu_ldcxx=$with_gnu_ld
15463 with_gnu_ld=$lt_save_with_gnu_ld
15464 lt_cv_path_LDCXX=$lt_cv_path_LD
15465 lt_cv_path_LD=$lt_save_path_LD
15466 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15467 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15468
15469         else
15470           tagname=""
15471         fi
15472         ;;
15473
15474       F77)
15475         if test -n "$F77" && test "X$F77" != "Xno"; then
15476
15477 ac_ext=f
15478 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15479 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15480 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15481
15482
15483 archive_cmds_need_lc_F77=no
15484 allow_undefined_flag_F77=
15485 always_export_symbols_F77=no
15486 archive_expsym_cmds_F77=
15487 export_dynamic_flag_spec_F77=
15488 hardcode_direct_F77=no
15489 hardcode_libdir_flag_spec_F77=
15490 hardcode_libdir_flag_spec_ld_F77=
15491 hardcode_libdir_separator_F77=
15492 hardcode_minus_L_F77=no
15493 hardcode_automatic_F77=no
15494 module_cmds_F77=
15495 module_expsym_cmds_F77=
15496 link_all_deplibs_F77=unknown
15497 old_archive_cmds_F77=$old_archive_cmds
15498 no_undefined_flag_F77=
15499 whole_archive_flag_spec_F77=
15500 enable_shared_with_static_runtimes_F77=no
15501
15502 # Source file extension for f77 test sources.
15503 ac_ext=f
15504
15505 # Object file extension for compiled f77 test sources.
15506 objext=o
15507 objext_F77=$objext
15508
15509 # Code to be used in simple compile tests
15510 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15511
15512 # Code to be used in simple link tests
15513 lt_simple_link_test_code="      program t\n      end\n"
15514
15515 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15516
15517 # If no C compiler was specified, use CC.
15518 LTCC=${LTCC-"$CC"}
15519
15520 # Allow CC to be a program name with arguments.
15521 compiler=$CC
15522
15523
15524 # save warnings/boilerplate of simple test code
15525 ac_outfile=conftest.$ac_objext
15526 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15527 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15528 _lt_compiler_boilerplate=`cat conftest.err`
15529 $rm conftest*
15530
15531 ac_outfile=conftest.$ac_objext
15532 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15533 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15534 _lt_linker_boilerplate=`cat conftest.err`
15535 $rm conftest*
15536
15537
15538 # Allow CC to be a program name with arguments.
15539 lt_save_CC="$CC"
15540 CC=${F77-"f77"}
15541 compiler=$CC
15542 compiler_F77=$CC
15543 for cc_temp in $compiler""; do
15544   case $cc_temp in
15545     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15546     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15547     \-*) ;;
15548     *) break;;
15549   esac
15550 done
15551 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15552
15553
15554 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15555 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15556 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15557 echo "${ECHO_T}$can_build_shared" >&6
15558
15559 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15560 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15561 test "$can_build_shared" = "no" && enable_shared=no
15562
15563 # On AIX, shared libraries and static libraries use the same namespace, and
15564 # are all built from PIC.
15565 case "$host_os" in
15566 aix3*)
15567   test "$enable_shared" = yes && enable_static=no
15568   if test -n "$RANLIB"; then
15569     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15570     postinstall_cmds='$RANLIB $lib'
15571   fi
15572   ;;
15573 aix4* | aix5*)
15574   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15575     test "$enable_shared" = yes && enable_static=no
15576   fi
15577   ;;
15578 esac
15579 echo "$as_me:$LINENO: result: $enable_shared" >&5
15580 echo "${ECHO_T}$enable_shared" >&6
15581
15582 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15583 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15584 # Make sure either enable_shared or enable_static is yes.
15585 test "$enable_shared" = yes || enable_static=yes
15586 echo "$as_me:$LINENO: result: $enable_static" >&5
15587 echo "${ECHO_T}$enable_static" >&6
15588
15589 test "$ld_shlibs_F77" = no && can_build_shared=no
15590
15591 GCC_F77="$G77"
15592 LD_F77="$LD"
15593
15594 lt_prog_compiler_wl_F77=
15595 lt_prog_compiler_pic_F77=
15596 lt_prog_compiler_static_F77=
15597
15598 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15599 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15600
15601   if test "$GCC" = yes; then
15602     lt_prog_compiler_wl_F77='-Wl,'
15603     lt_prog_compiler_static_F77='-static'
15604
15605     case $host_os in
15606       aix*)
15607       # All AIX code is PIC.
15608       if test "$host_cpu" = ia64; then
15609         # AIX 5 now supports IA64 processor
15610         lt_prog_compiler_static_F77='-Bstatic'
15611       fi
15612       ;;
15613
15614     amigaos*)
15615       # FIXME: we need at least 68020 code to build shared libraries, but
15616       # adding the `-m68020' flag to GCC prevents building anything better,
15617       # like `-m68040'.
15618       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15619       ;;
15620
15621     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15622       # PIC is the default for these OSes.
15623       ;;
15624
15625     mingw* | pw32* | os2*)
15626       # This hack is so that the source file can tell whether it is being
15627       # built for inclusion in a dll (and should export symbols for example).
15628       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15629       ;;
15630
15631     darwin* | rhapsody*)
15632       # PIC is the default on this platform
15633       # Common symbols not allowed in MH_DYLIB files
15634       lt_prog_compiler_pic_F77='-fno-common'
15635       ;;
15636
15637     msdosdjgpp*)
15638       # Just because we use GCC doesn't mean we suddenly get shared libraries
15639       # on systems that don't support them.
15640       lt_prog_compiler_can_build_shared_F77=no
15641       enable_shared=no
15642       ;;
15643
15644     sysv4*MP*)
15645       if test -d /usr/nec; then
15646         lt_prog_compiler_pic_F77=-Kconform_pic
15647       fi
15648       ;;
15649
15650     hpux*)
15651       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15652       # not for PA HP-UX.
15653       case "$host_cpu" in
15654       hppa*64*|ia64*)
15655         # +Z the default
15656         ;;
15657       *)
15658         lt_prog_compiler_pic_F77='-fPIC'
15659         ;;
15660       esac
15661       ;;
15662
15663     *)
15664       lt_prog_compiler_pic_F77='-fPIC'
15665       ;;
15666     esac
15667   else
15668     # PORTME Check for flag to pass linker flags through the system compiler.
15669     case $host_os in
15670     aix*)
15671       lt_prog_compiler_wl_F77='-Wl,'
15672       if test "$host_cpu" = ia64; then
15673         # AIX 5 now supports IA64 processor
15674         lt_prog_compiler_static_F77='-Bstatic'
15675       else
15676         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15677       fi
15678       ;;
15679       darwin*)
15680         # PIC is the default on this platform
15681         # Common symbols not allowed in MH_DYLIB files
15682        case $cc_basename in
15683          xlc*)
15684          lt_prog_compiler_pic_F77='-qnocommon'
15685          lt_prog_compiler_wl_F77='-Wl,'
15686          ;;
15687        esac
15688        ;;
15689
15690     mingw* | pw32* | os2*)
15691       # This hack is so that the source file can tell whether it is being
15692       # built for inclusion in a dll (and should export symbols for example).
15693       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15694       ;;
15695
15696     hpux9* | hpux10* | hpux11*)
15697       lt_prog_compiler_wl_F77='-Wl,'
15698       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15699       # not for PA HP-UX.
15700       case "$host_cpu" in
15701       hppa*64*|ia64*)
15702         # +Z the default
15703         ;;
15704       *)
15705         lt_prog_compiler_pic_F77='+Z'
15706         ;;
15707       esac
15708       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15709       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15710       ;;
15711
15712     irix5* | irix6* | nonstopux*)
15713       lt_prog_compiler_wl_F77='-Wl,'
15714       # PIC (with -KPIC) is the default.
15715       lt_prog_compiler_static_F77='-non_shared'
15716       ;;
15717
15718     newsos6)
15719       lt_prog_compiler_pic_F77='-KPIC'
15720       lt_prog_compiler_static_F77='-Bstatic'
15721       ;;
15722
15723     linux*)
15724       case $cc_basename in
15725       icc* | ecc*)
15726         lt_prog_compiler_wl_F77='-Wl,'
15727         lt_prog_compiler_pic_F77='-KPIC'
15728         lt_prog_compiler_static_F77='-static'
15729         ;;
15730       pgcc* | pgf77* | pgf90*)
15731         # Portland Group compilers (*not* the Pentium gcc compiler,
15732         # which looks to be a dead project)
15733         lt_prog_compiler_wl_F77='-Wl,'
15734         lt_prog_compiler_pic_F77='-fpic'
15735         lt_prog_compiler_static_F77='-static'
15736         ;;
15737       ccc*)
15738         lt_prog_compiler_wl_F77='-Wl,'
15739         # All Alpha code is PIC.
15740         lt_prog_compiler_static_F77='-non_shared'
15741         ;;
15742       esac
15743       ;;
15744
15745     osf3* | osf4* | osf5*)
15746       lt_prog_compiler_wl_F77='-Wl,'
15747       # All OSF/1 code is PIC.
15748       lt_prog_compiler_static_F77='-non_shared'
15749       ;;
15750
15751     sco3.2v5*)
15752       lt_prog_compiler_pic_F77='-Kpic'
15753       lt_prog_compiler_static_F77='-dn'
15754       ;;
15755
15756     solaris*)
15757       lt_prog_compiler_pic_F77='-KPIC'
15758       lt_prog_compiler_static_F77='-Bstatic'
15759       case $cc_basename in
15760       f77* | f90* | f95*)
15761         lt_prog_compiler_wl_F77='-Qoption ld ';;
15762       *)
15763         lt_prog_compiler_wl_F77='-Wl,';;
15764       esac
15765       ;;
15766
15767     sunos4*)
15768       lt_prog_compiler_wl_F77='-Qoption ld '
15769       lt_prog_compiler_pic_F77='-PIC'
15770       lt_prog_compiler_static_F77='-Bstatic'
15771       ;;
15772
15773     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15774       lt_prog_compiler_wl_F77='-Wl,'
15775       lt_prog_compiler_pic_F77='-KPIC'
15776       lt_prog_compiler_static_F77='-Bstatic'
15777       ;;
15778
15779     sysv4*MP*)
15780       if test -d /usr/nec ;then
15781         lt_prog_compiler_pic_F77='-Kconform_pic'
15782         lt_prog_compiler_static_F77='-Bstatic'
15783       fi
15784       ;;
15785
15786     unicos*)
15787       lt_prog_compiler_wl_F77='-Wl,'
15788       lt_prog_compiler_can_build_shared_F77=no
15789       ;;
15790
15791     uts4*)
15792       lt_prog_compiler_pic_F77='-pic'
15793       lt_prog_compiler_static_F77='-Bstatic'
15794       ;;
15795
15796     *)
15797       lt_prog_compiler_can_build_shared_F77=no
15798       ;;
15799     esac
15800   fi
15801
15802 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15803 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15804
15805 #
15806 # Check to make sure the PIC flag actually works.
15807 #
15808 if test -n "$lt_prog_compiler_pic_F77"; then
15809
15810 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15811 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15812 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15813   echo $ECHO_N "(cached) $ECHO_C" >&6
15814 else
15815   lt_prog_compiler_pic_works_F77=no
15816   ac_outfile=conftest.$ac_objext
15817    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15818    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15819    # Insert the option either (1) after the last *FLAGS variable, or
15820    # (2) before a word containing "conftest.", or (3) at the end.
15821    # Note that $ac_compile itself does not contain backslashes and begins
15822    # with a dollar sign (not a hyphen), so the echo should work correctly.
15823    # The option is referenced via a variable to avoid confusing sed.
15824    lt_compile=`echo "$ac_compile" | $SED \
15825    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15826    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15827    -e 's:$: $lt_compiler_flag:'`
15828    (eval echo "\"\$as_me:15828: $lt_compile\"" >&5)
15829    (eval "$lt_compile" 2>conftest.err)
15830    ac_status=$?
15831    cat conftest.err >&5
15832    echo "$as_me:15832: \$? = $ac_status" >&5
15833    if (exit $ac_status) && test -s "$ac_outfile"; then
15834      # The compiler can only warn and ignore the option if not recognized
15835      # So say no if there are warnings other than the usual output.
15836      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15837      $SED '/^$/d' conftest.err >conftest.er2
15838      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15839        lt_prog_compiler_pic_works_F77=yes
15840      fi
15841    fi
15842    $rm conftest*
15843
15844 fi
15845 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15846 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15847
15848 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15849     case $lt_prog_compiler_pic_F77 in
15850      "" | " "*) ;;
15851      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15852      esac
15853 else
15854     lt_prog_compiler_pic_F77=
15855      lt_prog_compiler_can_build_shared_F77=no
15856 fi
15857
15858 fi
15859 case "$host_os" in
15860   # For platforms which do not support PIC, -DPIC is meaningless:
15861   *djgpp*)
15862     lt_prog_compiler_pic_F77=
15863     ;;
15864   *)
15865     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15866     ;;
15867 esac
15868
15869 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15870 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15871 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15872   echo $ECHO_N "(cached) $ECHO_C" >&6
15873 else
15874   lt_cv_prog_compiler_c_o_F77=no
15875    $rm -r conftest 2>/dev/null
15876    mkdir conftest
15877    cd conftest
15878    mkdir out
15879    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15880
15881    lt_compiler_flag="-o out/conftest2.$ac_objext"
15882    # Insert the option either (1) after the last *FLAGS variable, or
15883    # (2) before a word containing "conftest.", or (3) at the end.
15884    # Note that $ac_compile itself does not contain backslashes and begins
15885    # with a dollar sign (not a hyphen), so the echo should work correctly.
15886    lt_compile=`echo "$ac_compile" | $SED \
15887    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15888    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15889    -e 's:$: $lt_compiler_flag:'`
15890    (eval echo "\"\$as_me:15890: $lt_compile\"" >&5)
15891    (eval "$lt_compile" 2>out/conftest.err)
15892    ac_status=$?
15893    cat out/conftest.err >&5
15894    echo "$as_me:15894: \$? = $ac_status" >&5
15895    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15896    then
15897      # The compiler can only warn and ignore the option if not recognized
15898      # So say no if there are warnings
15899      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15900      $SED '/^$/d' out/conftest.err >out/conftest.er2
15901      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15902        lt_cv_prog_compiler_c_o_F77=yes
15903      fi
15904    fi
15905    chmod u+w .
15906    $rm conftest*
15907    # SGI C++ compiler will create directory out/ii_files/ for
15908    # template instantiation
15909    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15910    $rm out/* && rmdir out
15911    cd ..
15912    rmdir conftest
15913    $rm conftest*
15914
15915 fi
15916 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15917 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15918
15919
15920 hard_links="nottested"
15921 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15922   # do not overwrite the value of need_locks provided by the user
15923   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15924 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15925   hard_links=yes
15926   $rm conftest*
15927   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15928   touch conftest.a
15929   ln conftest.a conftest.b 2>&5 || hard_links=no
15930   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15931   echo "$as_me:$LINENO: result: $hard_links" >&5
15932 echo "${ECHO_T}$hard_links" >&6
15933   if test "$hard_links" = no; then
15934     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15935 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15936     need_locks=warn
15937   fi
15938 else
15939   need_locks=no
15940 fi
15941
15942 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15943 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15944
15945   runpath_var=
15946   allow_undefined_flag_F77=
15947   enable_shared_with_static_runtimes_F77=no
15948   archive_cmds_F77=
15949   archive_expsym_cmds_F77=
15950   old_archive_From_new_cmds_F77=
15951   old_archive_from_expsyms_cmds_F77=
15952   export_dynamic_flag_spec_F77=
15953   whole_archive_flag_spec_F77=
15954   thread_safe_flag_spec_F77=
15955   hardcode_libdir_flag_spec_F77=
15956   hardcode_libdir_flag_spec_ld_F77=
15957   hardcode_libdir_separator_F77=
15958   hardcode_direct_F77=no
15959   hardcode_minus_L_F77=no
15960   hardcode_shlibpath_var_F77=unsupported
15961   link_all_deplibs_F77=unknown
15962   hardcode_automatic_F77=no
15963   module_cmds_F77=
15964   module_expsym_cmds_F77=
15965   always_export_symbols_F77=no
15966   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15967   # include_expsyms should be a list of space-separated symbols to be *always*
15968   # included in the symbol list
15969   include_expsyms_F77=
15970   # exclude_expsyms can be an extended regexp of symbols to exclude
15971   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15972   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15973   # as well as any symbol that contains `d'.
15974   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15975   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15976   # platforms (ab)use it in PIC code, but their linkers get confused if
15977   # the symbol is explicitly referenced.  Since portable code cannot
15978   # rely on this symbol name, it's probably fine to never include it in
15979   # preloaded symbol tables.
15980   extract_expsyms_cmds=
15981   # Just being paranoid about ensuring that cc_basename is set.
15982   for cc_temp in $compiler""; do
15983   case $cc_temp in
15984     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15985     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15986     \-*) ;;
15987     *) break;;
15988   esac
15989 done
15990 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15991
15992   case $host_os in
15993   cygwin* | mingw* | pw32*)
15994     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15995     # When not using gcc, we currently assume that we are using
15996     # Microsoft Visual C++.
15997     if test "$GCC" != yes; then
15998       with_gnu_ld=no
15999     fi
16000     ;;
16001   openbsd*)
16002     with_gnu_ld=no
16003     ;;
16004   esac
16005
16006   ld_shlibs_F77=yes
16007   if test "$with_gnu_ld" = yes; then
16008     # If archive_cmds runs LD, not CC, wlarc should be empty
16009     wlarc='${wl}'
16010
16011     # Set some defaults for GNU ld with shared library support. These
16012     # are reset later if shared libraries are not supported. Putting them
16013     # here allows them to be overridden if necessary.
16014     runpath_var=LD_RUN_PATH
16015     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16016     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16017     # ancient GNU ld didn't support --whole-archive et. al.
16018     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16019         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16020       else
16021         whole_archive_flag_spec_F77=
16022     fi
16023     supports_anon_versioning=no
16024     case `$LD -v 2>/dev/null` in
16025       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16026       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16027       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16028       *\ 2.11.*) ;; # other 2.11 versions
16029       *) supports_anon_versioning=yes ;;
16030     esac
16031
16032     # See if GNU ld supports shared libraries.
16033     case $host_os in
16034     aix3* | aix4* | aix5*)
16035       # On AIX/PPC, the GNU linker is very broken
16036       if test "$host_cpu" != ia64; then
16037         ld_shlibs_F77=no
16038         cat <<EOF 1>&2
16039
16040 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16041 *** to be unable to reliably create shared libraries on AIX.
16042 *** Therefore, libtool is disabling shared libraries support.  If you
16043 *** really care for shared libraries, you may want to modify your PATH
16044 *** so that a non-GNU linker is found, and then restart.
16045
16046 EOF
16047       fi
16048       ;;
16049
16050     amigaos*)
16051       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)'
16052       hardcode_libdir_flag_spec_F77='-L$libdir'
16053       hardcode_minus_L_F77=yes
16054
16055       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16056       # that the semantics of dynamic libraries on AmigaOS, at least up
16057       # to version 4, is to share data among multiple programs linked
16058       # with the same dynamic library.  Since this doesn't match the
16059       # behavior of shared libraries on other platforms, we can't use
16060       # them.
16061       ld_shlibs_F77=no
16062       ;;
16063
16064     beos*)
16065       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16066         allow_undefined_flag_F77=unsupported
16067         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16068         # support --undefined.  This deserves some investigation.  FIXME
16069         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16070       else
16071         ld_shlibs_F77=no
16072       fi
16073       ;;
16074
16075     cygwin* | mingw* | pw32*)
16076       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16077       # as there is no search path for DLLs.
16078       hardcode_libdir_flag_spec_F77='-L$libdir'
16079       allow_undefined_flag_F77=unsupported
16080       always_export_symbols_F77=no
16081       enable_shared_with_static_runtimes_F77=yes
16082       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16083
16084       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16085         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16086         # If the export-symbols file already is a .def file (1st line
16087         # is EXPORTS), use it as is; otherwise, prepend...
16088         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16089           cp $export_symbols $output_objdir/$soname.def;
16090         else
16091           echo EXPORTS > $output_objdir/$soname.def;
16092           cat $export_symbols >> $output_objdir/$soname.def;
16093         fi~
16094         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16095       else
16096         ld_shlibs_F77=no
16097       fi
16098       ;;
16099
16100     linux*)
16101       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16102         tmp_addflag=
16103         case $cc_basename,$host_cpu in
16104         pgcc*)                          # Portland Group C compiler
16105           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'
16106           tmp_addflag=' $pic_flag'
16107           ;;
16108         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
16109           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'
16110           tmp_addflag=' $pic_flag -Mnomain' ;;
16111         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16112           tmp_addflag=' -i_dynamic' ;;
16113         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16114           tmp_addflag=' -i_dynamic -nofor_main' ;;
16115         ifc* | ifort*)                  # Intel Fortran compiler
16116           tmp_addflag=' -nofor_main' ;;
16117         esac
16118         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16119
16120         if test $supports_anon_versioning = yes; then
16121           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16122   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16123   $echo "local: *; };" >> $output_objdir/$libname.ver~
16124           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16125         fi
16126       else
16127         ld_shlibs_F77=no
16128       fi
16129       ;;
16130
16131     netbsd*)
16132       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16133         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16134         wlarc=
16135       else
16136         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16137         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16138       fi
16139       ;;
16140
16141     solaris* | sysv5*)
16142       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16143         ld_shlibs_F77=no
16144         cat <<EOF 1>&2
16145
16146 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16147 *** create shared libraries on Solaris systems.  Therefore, libtool
16148 *** is disabling shared libraries support.  We urge you to upgrade GNU
16149 *** binutils to release 2.9.1 or newer.  Another option is to modify
16150 *** your PATH or compiler configuration so that the native linker is
16151 *** used, and then restart.
16152
16153 EOF
16154       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16155         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16156         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16157       else
16158         ld_shlibs_F77=no
16159       fi
16160       ;;
16161
16162     sunos4*)
16163       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16164       wlarc=
16165       hardcode_direct_F77=yes
16166       hardcode_shlibpath_var_F77=no
16167       ;;
16168
16169     *)
16170       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16171         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16172         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16173       else
16174         ld_shlibs_F77=no
16175       fi
16176       ;;
16177     esac
16178
16179     if test "$ld_shlibs_F77" = no; then
16180       runpath_var=
16181       hardcode_libdir_flag_spec_F77=
16182       export_dynamic_flag_spec_F77=
16183       whole_archive_flag_spec_F77=
16184     fi
16185   else
16186     # PORTME fill in a description of your system's linker (not GNU ld)
16187     case $host_os in
16188     aix3*)
16189       allow_undefined_flag_F77=unsupported
16190       always_export_symbols_F77=yes
16191       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'
16192       # Note: this linker hardcodes the directories in LIBPATH if there
16193       # are no directories specified by -L.
16194       hardcode_minus_L_F77=yes
16195       if test "$GCC" = yes && test -z "$link_static_flag"; then
16196         # Neither direct hardcoding nor static linking is supported with a
16197         # broken collect2.
16198         hardcode_direct_F77=unsupported
16199       fi
16200       ;;
16201
16202     aix4* | aix5*)
16203       if test "$host_cpu" = ia64; then
16204         # On IA64, the linker does run time linking by default, so we don't
16205         # have to do anything special.
16206         aix_use_runtimelinking=no
16207         exp_sym_flag='-Bexport'
16208         no_entry_flag=""
16209       else
16210         # If we're using GNU nm, then we don't want the "-C" option.
16211         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16212         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16213           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'
16214         else
16215           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'
16216         fi
16217         aix_use_runtimelinking=no
16218
16219         # Test if we are trying to use run time linking or normal
16220         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16221         # need to do runtime linking.
16222         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16223           for ld_flag in $LDFLAGS; do
16224           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16225             aix_use_runtimelinking=yes
16226             break
16227           fi
16228           done
16229         esac
16230
16231         exp_sym_flag='-bexport'
16232         no_entry_flag='-bnoentry'
16233       fi
16234
16235       # When large executables or shared objects are built, AIX ld can
16236       # have problems creating the table of contents.  If linking a library
16237       # or program results in "error TOC overflow" add -mminimal-toc to
16238       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16239       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16240
16241       archive_cmds_F77=''
16242       hardcode_direct_F77=yes
16243       hardcode_libdir_separator_F77=':'
16244       link_all_deplibs_F77=yes
16245
16246       if test "$GCC" = yes; then
16247         case $host_os in aix4.[012]|aix4.[012].*)
16248         # We only want to do this on AIX 4.2 and lower, the check
16249         # below for broken collect2 doesn't work under 4.3+
16250           collect2name=`${CC} -print-prog-name=collect2`
16251           if test -f "$collect2name" && \
16252            strings "$collect2name" | grep resolve_lib_name >/dev/null
16253           then
16254           # We have reworked collect2
16255           hardcode_direct_F77=yes
16256           else
16257           # We have old collect2
16258           hardcode_direct_F77=unsupported
16259           # It fails to find uninstalled libraries when the uninstalled
16260           # path is not listed in the libpath.  Setting hardcode_minus_L
16261           # to unsupported forces relinking
16262           hardcode_minus_L_F77=yes
16263           hardcode_libdir_flag_spec_F77='-L$libdir'
16264           hardcode_libdir_separator_F77=
16265           fi
16266         esac
16267         shared_flag='-shared'
16268         if test "$aix_use_runtimelinking" = yes; then
16269           shared_flag="$shared_flag "'${wl}-G'
16270         fi
16271       else
16272         # not using gcc
16273         if test "$host_cpu" = ia64; then
16274         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16275         # chokes on -Wl,-G. The following line is correct:
16276           shared_flag='-G'
16277         else
16278         if test "$aix_use_runtimelinking" = yes; then
16279             shared_flag='${wl}-G'
16280           else
16281             shared_flag='${wl}-bM:SRE'
16282         fi
16283         fi
16284       fi
16285
16286       # It seems that -bexpall does not export symbols beginning with
16287       # underscore (_), so it is better to generate a list of symbols to export.
16288       always_export_symbols_F77=yes
16289       if test "$aix_use_runtimelinking" = yes; then
16290         # Warning - without using the other runtime loading flags (-brtl),
16291         # -berok will link without error, but may produce a broken library.
16292         allow_undefined_flag_F77='-berok'
16293        # Determine the default libpath from the value encoded in an empty executable.
16294        cat >conftest.$ac_ext <<_ACEOF
16295       program main
16296
16297       end
16298 _ACEOF
16299 rm -f conftest.$ac_objext conftest$ac_exeext
16300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16301   (eval $ac_link) 2>conftest.er1
16302   ac_status=$?
16303   grep -v '^ *+' conftest.er1 >conftest.err
16304   rm -f conftest.er1
16305   cat conftest.err >&5
16306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307   (exit $ac_status); } &&
16308          { ac_try='test -z "$ac_f77_werror_flag"
16309                          || test ! -s conftest.err'
16310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16311   (eval $ac_try) 2>&5
16312   ac_status=$?
16313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314   (exit $ac_status); }; } &&
16315          { ac_try='test -s conftest$ac_exeext'
16316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16317   (eval $ac_try) 2>&5
16318   ac_status=$?
16319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320   (exit $ac_status); }; }; then
16321
16322 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16323 }'`
16324 # Check for a 64-bit object if we didn't find anything.
16325 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; }
16326 }'`; fi
16327 else
16328   echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16330
16331 fi
16332 rm -f conftest.err conftest.$ac_objext \
16333       conftest$ac_exeext conftest.$ac_ext
16334 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16335
16336        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16337         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"
16338        else
16339         if test "$host_cpu" = ia64; then
16340           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16341           allow_undefined_flag_F77="-z nodefs"
16342           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"
16343         else
16344          # Determine the default libpath from the value encoded in an empty executable.
16345          cat >conftest.$ac_ext <<_ACEOF
16346       program main
16347
16348       end
16349 _ACEOF
16350 rm -f conftest.$ac_objext conftest$ac_exeext
16351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16352   (eval $ac_link) 2>conftest.er1
16353   ac_status=$?
16354   grep -v '^ *+' conftest.er1 >conftest.err
16355   rm -f conftest.er1
16356   cat conftest.err >&5
16357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358   (exit $ac_status); } &&
16359          { ac_try='test -z "$ac_f77_werror_flag"
16360                          || test ! -s conftest.err'
16361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362   (eval $ac_try) 2>&5
16363   ac_status=$?
16364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365   (exit $ac_status); }; } &&
16366          { ac_try='test -s conftest$ac_exeext'
16367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16368   (eval $ac_try) 2>&5
16369   ac_status=$?
16370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371   (exit $ac_status); }; }; then
16372
16373 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16374 }'`
16375 # Check for a 64-bit object if we didn't find anything.
16376 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; }
16377 }'`; fi
16378 else
16379   echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16381
16382 fi
16383 rm -f conftest.err conftest.$ac_objext \
16384       conftest$ac_exeext conftest.$ac_ext
16385 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16386
16387          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16388           # Warning - without using the other run time loading flags,
16389           # -berok will link without error, but may produce a broken library.
16390           no_undefined_flag_F77=' ${wl}-bernotok'
16391           allow_undefined_flag_F77=' ${wl}-berok'
16392           # -bexpall does not export symbols beginning with underscore (_)
16393           always_export_symbols_F77=yes
16394           # Exported symbols can be pulled into shared objects from archives
16395           whole_archive_flag_spec_F77=' '
16396           archive_cmds_need_lc_F77=yes
16397           # This is similar to how AIX traditionally builds it's shared libraries.
16398           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'
16399         fi
16400       fi
16401       ;;
16402
16403     amigaos*)
16404       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)'
16405       hardcode_libdir_flag_spec_F77='-L$libdir'
16406       hardcode_minus_L_F77=yes
16407       # see comment about different semantics on the GNU ld section
16408       ld_shlibs_F77=no
16409       ;;
16410
16411     bsdi[45]*)
16412       export_dynamic_flag_spec_F77=-rdynamic
16413       ;;
16414
16415     cygwin* | mingw* | pw32*)
16416       # When not using gcc, we currently assume that we are using
16417       # Microsoft Visual C++.
16418       # hardcode_libdir_flag_spec is actually meaningless, as there is
16419       # no search path for DLLs.
16420       hardcode_libdir_flag_spec_F77=' '
16421       allow_undefined_flag_F77=unsupported
16422       # Tell ltmain to make .lib files, not .a files.
16423       libext=lib
16424       # Tell ltmain to make .dll files, not .so files.
16425       shrext_cmds=".dll"
16426       # FIXME: Setting linknames here is a bad hack.
16427       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16428       # The linker will automatically build a .lib file if we build a DLL.
16429       old_archive_From_new_cmds_F77='true'
16430       # FIXME: Should let the user specify the lib program.
16431       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16432       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16433       enable_shared_with_static_runtimes_F77=yes
16434       ;;
16435
16436     darwin* | rhapsody*)
16437       case "$host_os" in
16438         rhapsody* | darwin1.[012])
16439          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16440          ;;
16441        *) # Darwin 1.3 on
16442          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16443            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16444          else
16445            case ${MACOSX_DEPLOYMENT_TARGET} in
16446              10.[012])
16447                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16448                ;;
16449              10.*)
16450                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16451                ;;
16452            esac
16453          fi
16454          ;;
16455       esac
16456       archive_cmds_need_lc_F77=no
16457       hardcode_direct_F77=no
16458       hardcode_automatic_F77=yes
16459       hardcode_shlibpath_var_F77=unsupported
16460       whole_archive_flag_spec_F77=''
16461       link_all_deplibs_F77=yes
16462     if test "$GCC" = yes ; then
16463         output_verbose_link_cmd='echo'
16464         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16465       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16466       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16467       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}'
16468       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}'
16469     else
16470       case $cc_basename in
16471         xlc*)
16472          output_verbose_link_cmd='echo'
16473          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16474          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16475           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16476          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -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}'
16477           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16478           ;;
16479        *)
16480          ld_shlibs_F77=no
16481           ;;
16482       esac
16483     fi
16484       ;;
16485
16486     dgux*)
16487       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16488       hardcode_libdir_flag_spec_F77='-L$libdir'
16489       hardcode_shlibpath_var_F77=no
16490       ;;
16491
16492     freebsd1*)
16493       ld_shlibs_F77=no
16494       ;;
16495
16496     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16497     # support.  Future versions do this automatically, but an explicit c++rt0.o
16498     # does not break anything, and helps significantly (at the cost of a little
16499     # extra space).
16500     freebsd2.2*)
16501       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16502       hardcode_libdir_flag_spec_F77='-R$libdir'
16503       hardcode_direct_F77=yes
16504       hardcode_shlibpath_var_F77=no
16505       ;;
16506
16507     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16508     freebsd2*)
16509       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16510       hardcode_direct_F77=yes
16511       hardcode_minus_L_F77=yes
16512       hardcode_shlibpath_var_F77=no
16513       ;;
16514
16515     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16516     freebsd* | kfreebsd*-gnu | dragonfly*)
16517       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16518       hardcode_libdir_flag_spec_F77='-R$libdir'
16519       hardcode_direct_F77=yes
16520       hardcode_shlibpath_var_F77=no
16521       ;;
16522
16523     hpux9*)
16524       if test "$GCC" = yes; then
16525         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'
16526       else
16527         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'
16528       fi
16529       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16530       hardcode_libdir_separator_F77=:
16531       hardcode_direct_F77=yes
16532
16533       # hardcode_minus_L: Not really in the search PATH,
16534       # but as the default location of the library.
16535       hardcode_minus_L_F77=yes
16536       export_dynamic_flag_spec_F77='${wl}-E'
16537       ;;
16538
16539     hpux10* | hpux11*)
16540       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16541         case "$host_cpu" in
16542         hppa*64*|ia64*)
16543           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16544           ;;
16545         *)
16546           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16547           ;;
16548         esac
16549       else
16550         case "$host_cpu" in
16551         hppa*64*|ia64*)
16552           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16553           ;;
16554         *)
16555           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16556           ;;
16557         esac
16558       fi
16559       if test "$with_gnu_ld" = no; then
16560         case "$host_cpu" in
16561         hppa*64*)
16562           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16563           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16564           hardcode_libdir_separator_F77=:
16565           hardcode_direct_F77=no
16566           hardcode_shlibpath_var_F77=no
16567           ;;
16568         ia64*)
16569           hardcode_libdir_flag_spec_F77='-L$libdir'
16570           hardcode_direct_F77=no
16571           hardcode_shlibpath_var_F77=no
16572
16573           # hardcode_minus_L: Not really in the search PATH,
16574           # but as the default location of the library.
16575           hardcode_minus_L_F77=yes
16576           ;;
16577         *)
16578           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16579           hardcode_libdir_separator_F77=:
16580           hardcode_direct_F77=yes
16581           export_dynamic_flag_spec_F77='${wl}-E'
16582
16583           # hardcode_minus_L: Not really in the search PATH,
16584           # but as the default location of the library.
16585           hardcode_minus_L_F77=yes
16586           ;;
16587         esac
16588       fi
16589       ;;
16590
16591     irix5* | irix6* | nonstopux*)
16592       if test "$GCC" = yes; then
16593         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'
16594       else
16595         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'
16596         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16597       fi
16598       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16599       hardcode_libdir_separator_F77=:
16600       link_all_deplibs_F77=yes
16601       ;;
16602
16603     netbsd*)
16604       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16605         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16606       else
16607         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16608       fi
16609       hardcode_libdir_flag_spec_F77='-R$libdir'
16610       hardcode_direct_F77=yes
16611       hardcode_shlibpath_var_F77=no
16612       ;;
16613
16614     newsos6)
16615       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16616       hardcode_direct_F77=yes
16617       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16618       hardcode_libdir_separator_F77=:
16619       hardcode_shlibpath_var_F77=no
16620       ;;
16621
16622     openbsd*)
16623       hardcode_direct_F77=yes
16624       hardcode_shlibpath_var_F77=no
16625       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16626         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16627         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16628         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16629         export_dynamic_flag_spec_F77='${wl}-E'
16630       else
16631        case $host_os in
16632          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16633            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16634            hardcode_libdir_flag_spec_F77='-R$libdir'
16635            ;;
16636          *)
16637            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16638            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16639            ;;
16640        esac
16641       fi
16642       ;;
16643
16644     os2*)
16645       hardcode_libdir_flag_spec_F77='-L$libdir'
16646       hardcode_minus_L_F77=yes
16647       allow_undefined_flag_F77=unsupported
16648       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'
16649       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16650       ;;
16651
16652     osf3*)
16653       if test "$GCC" = yes; then
16654         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16655         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'
16656       else
16657         allow_undefined_flag_F77=' -expect_unresolved \*'
16658         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'
16659       fi
16660       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16661       hardcode_libdir_separator_F77=:
16662       ;;
16663
16664     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16665       if test "$GCC" = yes; then
16666         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16667         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'
16668         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16669       else
16670         allow_undefined_flag_F77=' -expect_unresolved \*'
16671         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'
16672         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~
16673         $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'
16674
16675         # Both c and cxx compiler support -rpath directly
16676         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16677       fi
16678       hardcode_libdir_separator_F77=:
16679       ;;
16680
16681     sco3.2v5*)
16682       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16683       hardcode_shlibpath_var_F77=no
16684       export_dynamic_flag_spec_F77='${wl}-Bexport'
16685       runpath_var=LD_RUN_PATH
16686       hardcode_runpath_var=yes
16687       ;;
16688
16689     solaris*)
16690       no_undefined_flag_F77=' -z text'
16691       if test "$GCC" = yes; then
16692         wlarc='${wl}'
16693         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16694         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16695           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16696       else
16697         wlarc=''
16698         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16699         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16700         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16701       fi
16702       hardcode_libdir_flag_spec_F77='-R$libdir'
16703       hardcode_shlibpath_var_F77=no
16704       case $host_os in
16705       solaris2.[0-5] | solaris2.[0-5].*) ;;
16706       *)
16707         # The compiler driver will combine linker options so we
16708         # cannot just pass the convience library names through
16709         # without $wl, iff we do not link with $LD.
16710         # Luckily, gcc supports the same syntax we need for Sun Studio.
16711         # Supported since Solaris 2.6 (maybe 2.5.1?)
16712         case $wlarc in
16713         '')
16714           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16715         *)
16716           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' ;;
16717         esac ;;
16718       esac
16719       link_all_deplibs_F77=yes
16720       ;;
16721
16722     sunos4*)
16723       if test "x$host_vendor" = xsequent; then
16724         # Use $CC to link under sequent, because it throws in some extra .o
16725         # files that make .init and .fini sections work.
16726         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16727       else
16728         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16729       fi
16730       hardcode_libdir_flag_spec_F77='-L$libdir'
16731       hardcode_direct_F77=yes
16732       hardcode_minus_L_F77=yes
16733       hardcode_shlibpath_var_F77=no
16734       ;;
16735
16736     sysv4)
16737       case $host_vendor in
16738         sni)
16739           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16740           hardcode_direct_F77=yes # is this really true???
16741         ;;
16742         siemens)
16743           ## LD is ld it makes a PLAMLIB
16744           ## CC just makes a GrossModule.
16745           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16746           reload_cmds_F77='$CC -r -o $output$reload_objs'
16747           hardcode_direct_F77=no
16748         ;;
16749         motorola)
16750           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16751           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16752         ;;
16753       esac
16754       runpath_var='LD_RUN_PATH'
16755       hardcode_shlibpath_var_F77=no
16756       ;;
16757
16758     sysv4.3*)
16759       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16760       hardcode_shlibpath_var_F77=no
16761       export_dynamic_flag_spec_F77='-Bexport'
16762       ;;
16763
16764     sysv4*MP*)
16765       if test -d /usr/nec; then
16766         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16767         hardcode_shlibpath_var_F77=no
16768         runpath_var=LD_RUN_PATH
16769         hardcode_runpath_var=yes
16770         ld_shlibs_F77=yes
16771       fi
16772       ;;
16773
16774     sysv4.2uw2*)
16775       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16776       hardcode_direct_F77=yes
16777       hardcode_minus_L_F77=no
16778       hardcode_shlibpath_var_F77=no
16779       hardcode_runpath_var=yes
16780       runpath_var=LD_RUN_PATH
16781       ;;
16782
16783    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16784       no_undefined_flag_F77='${wl}-z ${wl}text'
16785       if test "$GCC" = yes; then
16786         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16787       else
16788         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16789       fi
16790       runpath_var='LD_RUN_PATH'
16791       hardcode_shlibpath_var_F77=no
16792       ;;
16793
16794     sysv5*)
16795       no_undefined_flag_F77=' -z text'
16796       # $CC -shared without GNU ld will not create a library from C++
16797       # object files and a static libstdc++, better avoid it by now
16798       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16799       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16800                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16801       hardcode_libdir_flag_spec_F77=
16802       hardcode_shlibpath_var_F77=no
16803       runpath_var='LD_RUN_PATH'
16804       ;;
16805
16806     uts4*)
16807       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16808       hardcode_libdir_flag_spec_F77='-L$libdir'
16809       hardcode_shlibpath_var_F77=no
16810       ;;
16811
16812     *)
16813       ld_shlibs_F77=no
16814       ;;
16815     esac
16816   fi
16817
16818 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16819 echo "${ECHO_T}$ld_shlibs_F77" >&6
16820 test "$ld_shlibs_F77" = no && can_build_shared=no
16821
16822 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16823 if test "$GCC" = yes; then
16824   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16825 fi
16826
16827 #
16828 # Do we need to explicitly link libc?
16829 #
16830 case "x$archive_cmds_need_lc_F77" in
16831 x|xyes)
16832   # Assume -lc should be added
16833   archive_cmds_need_lc_F77=yes
16834
16835   if test "$enable_shared" = yes && test "$GCC" = yes; then
16836     case $archive_cmds_F77 in
16837     *'~'*)
16838       # FIXME: we may have to deal with multi-command sequences.
16839       ;;
16840     '$CC '*)
16841       # Test whether the compiler implicitly links with -lc since on some
16842       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16843       # to ld, don't add -lc before -lgcc.
16844       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16845 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16846       $rm conftest*
16847       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16848
16849       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16850   (eval $ac_compile) 2>&5
16851   ac_status=$?
16852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853   (exit $ac_status); } 2>conftest.err; then
16854         soname=conftest
16855         lib=conftest
16856         libobjs=conftest.$ac_objext
16857         deplibs=
16858         wl=$lt_prog_compiler_wl_F77
16859         compiler_flags=-v
16860         linker_flags=-v
16861         verstring=
16862         output_objdir=.
16863         libname=conftest
16864         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16865         allow_undefined_flag_F77=
16866         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16867   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16868   ac_status=$?
16869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870   (exit $ac_status); }
16871         then
16872           archive_cmds_need_lc_F77=no
16873         else
16874           archive_cmds_need_lc_F77=yes
16875         fi
16876         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16877       else
16878         cat conftest.err 1>&5
16879       fi
16880       $rm conftest*
16881       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16882 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16883       ;;
16884     esac
16885   fi
16886   ;;
16887 esac
16888
16889 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16890 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16891 library_names_spec=
16892 libname_spec='lib$name'
16893 soname_spec=
16894 shrext_cmds=".so"
16895 postinstall_cmds=
16896 postuninstall_cmds=
16897 finish_cmds=
16898 finish_eval=
16899 shlibpath_var=
16900 shlibpath_overrides_runpath=unknown
16901 version_type=none
16902 dynamic_linker="$host_os ld.so"
16903 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16904 if test "$GCC" = yes; then
16905   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16906   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16907     # if the path contains ";" then we assume it to be the separator
16908     # otherwise default to the standard path separator (i.e. ":") - it is
16909     # assumed that no part of a normal pathname contains ";" but that should
16910     # okay in the real world where ";" in dirpaths is itself problematic.
16911     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16912   else
16913     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16914   fi
16915 else
16916   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16917 fi
16918 need_lib_prefix=unknown
16919 hardcode_into_libs=no
16920
16921 # when you set need_version to no, make sure it does not cause -set_version
16922 # flags to be left without arguments
16923 need_version=unknown
16924
16925 case $host_os in
16926 aix3*)
16927   version_type=linux
16928   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16929   shlibpath_var=LIBPATH
16930
16931   # AIX 3 has no versioning support, so we append a major version to the name.
16932   soname_spec='${libname}${release}${shared_ext}$major'
16933   ;;
16934
16935 aix4* | aix5*)
16936   version_type=linux
16937   need_lib_prefix=no
16938   need_version=no
16939   hardcode_into_libs=yes
16940   if test "$host_cpu" = ia64; then
16941     # AIX 5 supports IA64
16942     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16943     shlibpath_var=LD_LIBRARY_PATH
16944   else
16945     # With GCC up to 2.95.x, collect2 would create an import file
16946     # for dependence libraries.  The import file would start with
16947     # the line `#! .'.  This would cause the generated library to
16948     # depend on `.', always an invalid library.  This was fixed in
16949     # development snapshots of GCC prior to 3.0.
16950     case $host_os in
16951       aix4 | aix4.[01] | aix4.[01].*)
16952       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16953            echo ' yes '
16954            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16955         :
16956       else
16957         can_build_shared=no
16958       fi
16959       ;;
16960     esac
16961     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16962     # soname into executable. Probably we can add versioning support to
16963     # collect2, so additional links can be useful in future.
16964     if test "$aix_use_runtimelinking" = yes; then
16965       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16966       # instead of lib<name>.a to let people know that these are not
16967       # typical AIX shared libraries.
16968       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16969     else
16970       # We preserve .a as extension for shared libraries through AIX4.2
16971       # and later when we are not doing run time linking.
16972       library_names_spec='${libname}${release}.a $libname.a'
16973       soname_spec='${libname}${release}${shared_ext}$major'
16974     fi
16975     shlibpath_var=LIBPATH
16976   fi
16977   ;;
16978
16979 amigaos*)
16980   library_names_spec='$libname.ixlibrary $libname.a'
16981   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16982   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'
16983   ;;
16984
16985 beos*)
16986   library_names_spec='${libname}${shared_ext}'
16987   dynamic_linker="$host_os ld.so"
16988   shlibpath_var=LIBRARY_PATH
16989   ;;
16990
16991 bsdi[45]*)
16992   version_type=linux
16993   need_version=no
16994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16995   soname_spec='${libname}${release}${shared_ext}$major'
16996   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16997   shlibpath_var=LD_LIBRARY_PATH
16998   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16999   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17000   # the default ld.so.conf also contains /usr/contrib/lib and
17001   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17002   # libtool to hard-code these into programs
17003   ;;
17004
17005 cygwin* | mingw* | pw32*)
17006   version_type=windows
17007   shrext_cmds=".dll"
17008   need_version=no
17009   need_lib_prefix=no
17010
17011   case $GCC,$host_os in
17012   yes,cygwin* | yes,mingw* | yes,pw32*)
17013     library_names_spec='$libname.dll.a'
17014     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17015     postinstall_cmds='base_file=`basename \${file}`~
17016       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17017       dldir=$destdir/`dirname \$dlpath`~
17018       test -d \$dldir || mkdir -p \$dldir~
17019       $install_prog $dir/$dlname \$dldir/$dlname'
17020     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17021       dlpath=$dir/\$dldll~
17022        $rm \$dlpath'
17023     shlibpath_overrides_runpath=yes
17024
17025     case $host_os in
17026     cygwin*)
17027       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17028       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17029       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17030       ;;
17031     mingw*)
17032       # MinGW DLLs use traditional 'lib' prefix
17033       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17034       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17035       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17036         # It is most probably a Windows format PATH printed by
17037         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17038         # path with ; separators, and with drive letters. We can handle the
17039         # drive letters (cygwin fileutils understands them), so leave them,
17040         # especially as we might pass files found there to a mingw objdump,
17041         # which wouldn't understand a cygwinified path. Ahh.
17042         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17043       else
17044         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17045       fi
17046       ;;
17047     pw32*)
17048       # pw32 DLLs use 'pw' prefix rather than 'lib'
17049       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17050       ;;
17051     esac
17052     ;;
17053
17054   *)
17055     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17056     ;;
17057   esac
17058   dynamic_linker='Win32 ld.exe'
17059   # FIXME: first we should search . and the directory the executable is in
17060   shlibpath_var=PATH
17061   ;;
17062
17063 darwin* | rhapsody*)
17064   dynamic_linker="$host_os dyld"
17065   version_type=darwin
17066   need_lib_prefix=no
17067   need_version=no
17068   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17069   soname_spec='${libname}${release}${major}$shared_ext'
17070   shlibpath_overrides_runpath=yes
17071   shlibpath_var=DYLD_LIBRARY_PATH
17072   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17073   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17074   if test "$GCC" = yes; then
17075     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"`
17076   else
17077     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17078   fi
17079   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17080   ;;
17081
17082 dgux*)
17083   version_type=linux
17084   need_lib_prefix=no
17085   need_version=no
17086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17087   soname_spec='${libname}${release}${shared_ext}$major'
17088   shlibpath_var=LD_LIBRARY_PATH
17089   ;;
17090
17091 freebsd1*)
17092   dynamic_linker=no
17093   ;;
17094
17095 kfreebsd*-gnu)
17096   version_type=linux
17097   need_lib_prefix=no
17098   need_version=no
17099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17100   soname_spec='${libname}${release}${shared_ext}$major'
17101   shlibpath_var=LD_LIBRARY_PATH
17102   shlibpath_overrides_runpath=no
17103   hardcode_into_libs=yes
17104   dynamic_linker='GNU ld.so'
17105   ;;
17106
17107 freebsd* | dragonfly*)
17108   # DragonFly does not have aout.  When/if they implement a new
17109   # versioning mechanism, adjust this.
17110   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17111   version_type=freebsd-$objformat
17112   case $version_type in
17113     freebsd-elf*)
17114       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17115       need_version=no
17116       need_lib_prefix=no
17117       ;;
17118     freebsd-*)
17119       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17120       need_version=yes
17121       ;;
17122   esac
17123   shlibpath_var=LD_LIBRARY_PATH
17124   case $host_os in
17125   freebsd2*)
17126     shlibpath_overrides_runpath=yes
17127     ;;
17128   freebsd3.[01]* | freebsdelf3.[01]*)
17129     shlibpath_overrides_runpath=yes
17130     hardcode_into_libs=yes
17131     ;;
17132   *) # from 3.2 on
17133     shlibpath_overrides_runpath=no
17134     hardcode_into_libs=yes
17135     ;;
17136   esac
17137   ;;
17138
17139 gnu*)
17140   version_type=linux
17141   need_lib_prefix=no
17142   need_version=no
17143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17144   soname_spec='${libname}${release}${shared_ext}$major'
17145   shlibpath_var=LD_LIBRARY_PATH
17146   hardcode_into_libs=yes
17147   ;;
17148
17149 hpux9* | hpux10* | hpux11*)
17150   # Give a soname corresponding to the major version so that dld.sl refuses to
17151   # link against other versions.
17152   version_type=sunos
17153   need_lib_prefix=no
17154   need_version=no
17155   case "$host_cpu" in
17156   ia64*)
17157     shrext_cmds='.so'
17158     hardcode_into_libs=yes
17159     dynamic_linker="$host_os dld.so"
17160     shlibpath_var=LD_LIBRARY_PATH
17161     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17162     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17163     soname_spec='${libname}${release}${shared_ext}$major'
17164     if test "X$HPUX_IA64_MODE" = X32; then
17165       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17166     else
17167       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17168     fi
17169     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17170     ;;
17171    hppa*64*)
17172      shrext_cmds='.sl'
17173      hardcode_into_libs=yes
17174      dynamic_linker="$host_os dld.sl"
17175      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17176      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17177      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17178      soname_spec='${libname}${release}${shared_ext}$major'
17179      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17180      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17181      ;;
17182    *)
17183     shrext_cmds='.sl'
17184     dynamic_linker="$host_os dld.sl"
17185     shlibpath_var=SHLIB_PATH
17186     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17187     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17188     soname_spec='${libname}${release}${shared_ext}$major'
17189     ;;
17190   esac
17191   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17192   postinstall_cmds='chmod 555 $lib'
17193   ;;
17194
17195 irix5* | irix6* | nonstopux*)
17196   case $host_os in
17197     nonstopux*) version_type=nonstopux ;;
17198     *)
17199         if test "$lt_cv_prog_gnu_ld" = yes; then
17200                 version_type=linux
17201         else
17202                 version_type=irix
17203         fi ;;
17204   esac
17205   need_lib_prefix=no
17206   need_version=no
17207   soname_spec='${libname}${release}${shared_ext}$major'
17208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17209   case $host_os in
17210   irix5* | nonstopux*)
17211     libsuff= shlibsuff=
17212     ;;
17213   *)
17214     case $LD in # libtool.m4 will add one of these switches to LD
17215     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17216       libsuff= shlibsuff= libmagic=32-bit;;
17217     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17218       libsuff=32 shlibsuff=N32 libmagic=N32;;
17219     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17220       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17221     *) libsuff= shlibsuff= libmagic=never-match;;
17222     esac
17223     ;;
17224   esac
17225   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17226   shlibpath_overrides_runpath=no
17227   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17228   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17229   hardcode_into_libs=yes
17230   ;;
17231
17232 # No shared lib support for Linux oldld, aout, or coff.
17233 linux*oldld* | linux*aout* | linux*coff*)
17234   dynamic_linker=no
17235   ;;
17236
17237 # This must be Linux ELF.
17238 linux*)
17239   version_type=linux
17240   need_lib_prefix=no
17241   need_version=no
17242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17243   soname_spec='${libname}${release}${shared_ext}$major'
17244   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17245   shlibpath_var=LD_LIBRARY_PATH
17246   shlibpath_overrides_runpath=no
17247   # This implies no fast_install, which is unacceptable.
17248   # Some rework will be needed to allow for fast_install
17249   # before this can be enabled.
17250   hardcode_into_libs=yes
17251
17252   # Append ld.so.conf contents to the search path
17253   if test -f /etc/ld.so.conf; then
17254     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' ' '`
17255     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17256   fi
17257
17258   # We used to test for /lib/ld.so.1 and disable shared libraries on
17259   # powerpc, because MkLinux only supported shared libraries with the
17260   # GNU dynamic linker.  Since this was broken with cross compilers,
17261   # most powerpc-linux boxes support dynamic linking these days and
17262   # people can always --disable-shared, the test was removed, and we
17263   # assume the GNU/Linux dynamic linker is in use.
17264   dynamic_linker='GNU/Linux ld.so'
17265   ;;
17266
17267 knetbsd*-gnu)
17268   version_type=linux
17269   need_lib_prefix=no
17270   need_version=no
17271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17272   soname_spec='${libname}${release}${shared_ext}$major'
17273   shlibpath_var=LD_LIBRARY_PATH
17274   shlibpath_overrides_runpath=no
17275   hardcode_into_libs=yes
17276   dynamic_linker='GNU ld.so'
17277   ;;
17278
17279 netbsd*)
17280   version_type=sunos
17281   need_lib_prefix=no
17282   need_version=no
17283   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17284     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17285     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17286     dynamic_linker='NetBSD (a.out) ld.so'
17287   else
17288     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17289     soname_spec='${libname}${release}${shared_ext}$major'
17290     dynamic_linker='NetBSD ld.elf_so'
17291   fi
17292   shlibpath_var=LD_LIBRARY_PATH
17293   shlibpath_overrides_runpath=yes
17294   hardcode_into_libs=yes
17295   ;;
17296
17297 newsos6)
17298   version_type=linux
17299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17300   shlibpath_var=LD_LIBRARY_PATH
17301   shlibpath_overrides_runpath=yes
17302   ;;
17303
17304 nto-qnx*)
17305   version_type=linux
17306   need_lib_prefix=no
17307   need_version=no
17308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17309   soname_spec='${libname}${release}${shared_ext}$major'
17310   shlibpath_var=LD_LIBRARY_PATH
17311   shlibpath_overrides_runpath=yes
17312   ;;
17313
17314 openbsd*)
17315   version_type=sunos
17316   need_lib_prefix=no
17317   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17318   case $host_os in
17319     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17320     *)                         need_version=no  ;;
17321   esac
17322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17323   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17324   shlibpath_var=LD_LIBRARY_PATH
17325   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17326     case $host_os in
17327       openbsd2.[89] | openbsd2.[89].*)
17328         shlibpath_overrides_runpath=no
17329         ;;
17330       *)
17331         shlibpath_overrides_runpath=yes
17332         ;;
17333       esac
17334   else
17335     shlibpath_overrides_runpath=yes
17336   fi
17337   ;;
17338
17339 os2*)
17340   libname_spec='$name'
17341   shrext_cmds=".dll"
17342   need_lib_prefix=no
17343   library_names_spec='$libname${shared_ext} $libname.a'
17344   dynamic_linker='OS/2 ld.exe'
17345   shlibpath_var=LIBPATH
17346   ;;
17347
17348 osf3* | osf4* | osf5*)
17349   version_type=osf
17350   need_lib_prefix=no
17351   need_version=no
17352   soname_spec='${libname}${release}${shared_ext}$major'
17353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17354   shlibpath_var=LD_LIBRARY_PATH
17355   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17356   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17357   ;;
17358
17359 sco3.2v5*)
17360   version_type=osf
17361   soname_spec='${libname}${release}${shared_ext}$major'
17362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17363   shlibpath_var=LD_LIBRARY_PATH
17364   ;;
17365
17366 solaris*)
17367   version_type=linux
17368   need_lib_prefix=no
17369   need_version=no
17370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17371   soname_spec='${libname}${release}${shared_ext}$major'
17372   shlibpath_var=LD_LIBRARY_PATH
17373   shlibpath_overrides_runpath=yes
17374   hardcode_into_libs=yes
17375   # ldd complains unless libraries are executable
17376   postinstall_cmds='chmod +x $lib'
17377   ;;
17378
17379 sunos4*)
17380   version_type=sunos
17381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17382   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17383   shlibpath_var=LD_LIBRARY_PATH
17384   shlibpath_overrides_runpath=yes
17385   if test "$with_gnu_ld" = yes; then
17386     need_lib_prefix=no
17387   fi
17388   need_version=yes
17389   ;;
17390
17391 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17392   version_type=linux
17393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17394   soname_spec='${libname}${release}${shared_ext}$major'
17395   shlibpath_var=LD_LIBRARY_PATH
17396   case $host_vendor in
17397     sni)
17398       shlibpath_overrides_runpath=no
17399       need_lib_prefix=no
17400       export_dynamic_flag_spec='${wl}-Blargedynsym'
17401       runpath_var=LD_RUN_PATH
17402       ;;
17403     siemens)
17404       need_lib_prefix=no
17405       ;;
17406     motorola)
17407       need_lib_prefix=no
17408       need_version=no
17409       shlibpath_overrides_runpath=no
17410       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17411       ;;
17412   esac
17413   ;;
17414
17415 sysv4*MP*)
17416   if test -d /usr/nec ;then
17417     version_type=linux
17418     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17419     soname_spec='$libname${shared_ext}.$major'
17420     shlibpath_var=LD_LIBRARY_PATH
17421   fi
17422   ;;
17423
17424 uts4*)
17425   version_type=linux
17426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17427   soname_spec='${libname}${release}${shared_ext}$major'
17428   shlibpath_var=LD_LIBRARY_PATH
17429   ;;
17430
17431 *)
17432   dynamic_linker=no
17433   ;;
17434 esac
17435 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17436 echo "${ECHO_T}$dynamic_linker" >&6
17437 test "$dynamic_linker" = no && can_build_shared=no
17438
17439 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17440 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17441 hardcode_action_F77=
17442 if test -n "$hardcode_libdir_flag_spec_F77" || \
17443    test -n "$runpath_var_F77" || \
17444    test "X$hardcode_automatic_F77" = "Xyes" ; then
17445
17446   # We can hardcode non-existant directories.
17447   if test "$hardcode_direct_F77" != no &&
17448      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17449      # have to relink, otherwise we might link with an installed library
17450      # when we should be linking with a yet-to-be-installed one
17451      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17452      test "$hardcode_minus_L_F77" != no; then
17453     # Linking always hardcodes the temporary library directory.
17454     hardcode_action_F77=relink
17455   else
17456     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17457     hardcode_action_F77=immediate
17458   fi
17459 else
17460   # We cannot hardcode anything, or else we can only hardcode existing
17461   # directories.
17462   hardcode_action_F77=unsupported
17463 fi
17464 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17465 echo "${ECHO_T}$hardcode_action_F77" >&6
17466
17467 if test "$hardcode_action_F77" = relink; then
17468   # Fast installation is not supported
17469   enable_fast_install=no
17470 elif test "$shlibpath_overrides_runpath" = yes ||
17471      test "$enable_shared" = no; then
17472   # Fast installation is not necessary
17473   enable_fast_install=needless
17474 fi
17475
17476 striplib=
17477 old_striplib=
17478 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17479 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17480 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17481   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17482   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17483   echo "$as_me:$LINENO: result: yes" >&5
17484 echo "${ECHO_T}yes" >&6
17485 else
17486 # FIXME - insert some real tests, host_os isn't really good enough
17487   case $host_os in
17488    darwin*)
17489        if test -n "$STRIP" ; then
17490          striplib="$STRIP -x"
17491          echo "$as_me:$LINENO: result: yes" >&5
17492 echo "${ECHO_T}yes" >&6
17493        else
17494   echo "$as_me:$LINENO: result: no" >&5
17495 echo "${ECHO_T}no" >&6
17496 fi
17497        ;;
17498    *)
17499   echo "$as_me:$LINENO: result: no" >&5
17500 echo "${ECHO_T}no" >&6
17501     ;;
17502   esac
17503 fi
17504
17505
17506
17507 # The else clause should only fire when bootstrapping the
17508 # libtool distribution, otherwise you forgot to ship ltmain.sh
17509 # with your package, and you will get complaints that there are
17510 # no rules to generate ltmain.sh.
17511 if test -f "$ltmain"; then
17512   # See if we are running on zsh, and set the options which allow our commands through
17513   # without removal of \ escapes.
17514   if test -n "${ZSH_VERSION+set}" ; then
17515     setopt NO_GLOB_SUBST
17516   fi
17517   # Now quote all the things that may contain metacharacters while being
17518   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17519   # variables and quote the copies for generation of the libtool script.
17520   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17521     SED SHELL STRIP \
17522     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17523     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17524     deplibs_check_method reload_flag reload_cmds need_locks \
17525     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17526     lt_cv_sys_global_symbol_to_c_name_address \
17527     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17528     old_postinstall_cmds old_postuninstall_cmds \
17529     compiler_F77 \
17530     CC_F77 \
17531     LD_F77 \
17532     lt_prog_compiler_wl_F77 \
17533     lt_prog_compiler_pic_F77 \
17534     lt_prog_compiler_static_F77 \
17535     lt_prog_compiler_no_builtin_flag_F77 \
17536     export_dynamic_flag_spec_F77 \
17537     thread_safe_flag_spec_F77 \
17538     whole_archive_flag_spec_F77 \
17539     enable_shared_with_static_runtimes_F77 \
17540     old_archive_cmds_F77 \
17541     old_archive_from_new_cmds_F77 \
17542     predep_objects_F77 \
17543     postdep_objects_F77 \
17544     predeps_F77 \
17545     postdeps_F77 \
17546     compiler_lib_search_path_F77 \
17547     archive_cmds_F77 \
17548     archive_expsym_cmds_F77 \
17549     postinstall_cmds_F77 \
17550     postuninstall_cmds_F77 \
17551     old_archive_from_expsyms_cmds_F77 \
17552     allow_undefined_flag_F77 \
17553     no_undefined_flag_F77 \
17554     export_symbols_cmds_F77 \
17555     hardcode_libdir_flag_spec_F77 \
17556     hardcode_libdir_flag_spec_ld_F77 \
17557     hardcode_libdir_separator_F77 \
17558     hardcode_automatic_F77 \
17559     module_cmds_F77 \
17560     module_expsym_cmds_F77 \
17561     lt_cv_prog_compiler_c_o_F77 \
17562     exclude_expsyms_F77 \
17563     include_expsyms_F77; do
17564
17565     case $var in
17566     old_archive_cmds_F77 | \
17567     old_archive_from_new_cmds_F77 | \
17568     archive_cmds_F77 | \
17569     archive_expsym_cmds_F77 | \
17570     module_cmds_F77 | \
17571     module_expsym_cmds_F77 | \
17572     old_archive_from_expsyms_cmds_F77 | \
17573     export_symbols_cmds_F77 | \
17574     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17575     postinstall_cmds | postuninstall_cmds | \
17576     old_postinstall_cmds | old_postuninstall_cmds | \
17577     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17578       # Double-quote double-evaled strings.
17579       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17580       ;;
17581     *)
17582       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17583       ;;
17584     esac
17585   done
17586
17587   case $lt_echo in
17588   *'\$0 --fallback-echo"')
17589     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17590     ;;
17591   esac
17592
17593 cfgfile="$ofile"
17594
17595   cat <<__EOF__ >> "$cfgfile"
17596 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17597
17598 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17599
17600 # Shell to use when invoking shell scripts.
17601 SHELL=$lt_SHELL
17602
17603 # Whether or not to build shared libraries.
17604 build_libtool_libs=$enable_shared
17605
17606 # Whether or not to build static libraries.
17607 build_old_libs=$enable_static
17608
17609 # Whether or not to add -lc for building shared libraries.
17610 build_libtool_need_lc=$archive_cmds_need_lc_F77
17611
17612 # Whether or not to disallow shared libs when runtime libs are static
17613 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17614
17615 # Whether or not to optimize for fast installation.
17616 fast_install=$enable_fast_install
17617
17618 # The host system.
17619 host_alias=$host_alias
17620 host=$host
17621 host_os=$host_os
17622
17623 # The build system.
17624 build_alias=$build_alias
17625 build=$build
17626 build_os=$build_os
17627
17628 # An echo program that does not interpret backslashes.
17629 echo=$lt_echo
17630
17631 # The archiver.
17632 AR=$lt_AR
17633 AR_FLAGS=$lt_AR_FLAGS
17634
17635 # A C compiler.
17636 LTCC=$lt_LTCC
17637
17638 # A language-specific compiler.
17639 CC=$lt_compiler_F77
17640
17641 # Is the compiler the GNU C compiler?
17642 with_gcc=$GCC_F77
17643
17644 # An ERE matcher.
17645 EGREP=$lt_EGREP
17646
17647 # The linker used to build libraries.
17648 LD=$lt_LD_F77
17649
17650 # Whether we need hard or soft links.
17651 LN_S=$lt_LN_S
17652
17653 # A BSD-compatible nm program.
17654 NM=$lt_NM
17655
17656 # A symbol stripping program
17657 STRIP=$lt_STRIP
17658
17659 # Used to examine libraries when file_magic_cmd begins "file"
17660 MAGIC_CMD=$MAGIC_CMD
17661
17662 # Used on cygwin: DLL creation program.
17663 DLLTOOL="$DLLTOOL"
17664
17665 # Used on cygwin: object dumper.
17666 OBJDUMP="$OBJDUMP"
17667
17668 # Used on cygwin: assembler.
17669 AS="$AS"
17670
17671 # The name of the directory that contains temporary libtool files.
17672 objdir=$objdir
17673
17674 # How to create reloadable object files.
17675 reload_flag=$lt_reload_flag
17676 reload_cmds=$lt_reload_cmds
17677
17678 # How to pass a linker flag through the compiler.
17679 wl=$lt_lt_prog_compiler_wl_F77
17680
17681 # Object file suffix (normally "o").
17682 objext="$ac_objext"
17683
17684 # Old archive suffix (normally "a").
17685 libext="$libext"
17686
17687 # Shared library suffix (normally ".so").
17688 shrext_cmds='$shrext_cmds'
17689
17690 # Executable file suffix (normally "").
17691 exeext="$exeext"
17692
17693 # Additional compiler flags for building library objects.
17694 pic_flag=$lt_lt_prog_compiler_pic_F77
17695 pic_mode=$pic_mode
17696
17697 # What is the maximum length of a command?
17698 max_cmd_len=$lt_cv_sys_max_cmd_len
17699
17700 # Does compiler simultaneously support -c and -o options?
17701 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17702
17703 # Must we lock files when doing compilation?
17704 need_locks=$lt_need_locks
17705
17706 # Do we need the lib prefix for modules?
17707 need_lib_prefix=$need_lib_prefix
17708
17709 # Do we need a version for libraries?
17710 need_version=$need_version
17711
17712 # Whether dlopen is supported.
17713 dlopen_support=$enable_dlopen
17714
17715 # Whether dlopen of programs is supported.
17716 dlopen_self=$enable_dlopen_self
17717
17718 # Whether dlopen of statically linked programs is supported.
17719 dlopen_self_static=$enable_dlopen_self_static
17720
17721 # Compiler flag to prevent dynamic linking.
17722 link_static_flag=$lt_lt_prog_compiler_static_F77
17723
17724 # Compiler flag to turn off builtin functions.
17725 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17726
17727 # Compiler flag to allow reflexive dlopens.
17728 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17729
17730 # Compiler flag to generate shared objects directly from archives.
17731 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17732
17733 # Compiler flag to generate thread-safe objects.
17734 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17735
17736 # Library versioning type.
17737 version_type=$version_type
17738
17739 # Format of library name prefix.
17740 libname_spec=$lt_libname_spec
17741
17742 # List of archive names.  First name is the real one, the rest are links.
17743 # The last name is the one that the linker finds with -lNAME.
17744 library_names_spec=$lt_library_names_spec
17745
17746 # The coded name of the library, if different from the real name.
17747 soname_spec=$lt_soname_spec
17748
17749 # Commands used to build and install an old-style archive.
17750 RANLIB=$lt_RANLIB
17751 old_archive_cmds=$lt_old_archive_cmds_F77
17752 old_postinstall_cmds=$lt_old_postinstall_cmds
17753 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17754
17755 # Create an old-style archive from a shared archive.
17756 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17757
17758 # Create a temporary old-style archive to link instead of a shared archive.
17759 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17760
17761 # Commands used to build and install a shared archive.
17762 archive_cmds=$lt_archive_cmds_F77
17763 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17764 postinstall_cmds=$lt_postinstall_cmds
17765 postuninstall_cmds=$lt_postuninstall_cmds
17766
17767 # Commands used to build a loadable module (assumed same as above if empty)
17768 module_cmds=$lt_module_cmds_F77
17769 module_expsym_cmds=$lt_module_expsym_cmds_F77
17770
17771 # Commands to strip libraries.
17772 old_striplib=$lt_old_striplib
17773 striplib=$lt_striplib
17774
17775 # Dependencies to place before the objects being linked to create a
17776 # shared library.
17777 predep_objects=$lt_predep_objects_F77
17778
17779 # Dependencies to place after the objects being linked to create a
17780 # shared library.
17781 postdep_objects=$lt_postdep_objects_F77
17782
17783 # Dependencies to place before the objects being linked to create a
17784 # shared library.
17785 predeps=$lt_predeps_F77
17786
17787 # Dependencies to place after the objects being linked to create a
17788 # shared library.
17789 postdeps=$lt_postdeps_F77
17790
17791 # The library search path used internally by the compiler when linking
17792 # a shared library.
17793 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17794
17795 # Method to check whether dependent libraries are shared objects.
17796 deplibs_check_method=$lt_deplibs_check_method
17797
17798 # Command to use when deplibs_check_method == file_magic.
17799 file_magic_cmd=$lt_file_magic_cmd
17800
17801 # Flag that allows shared libraries with undefined symbols to be built.
17802 allow_undefined_flag=$lt_allow_undefined_flag_F77
17803
17804 # Flag that forces no undefined symbols.
17805 no_undefined_flag=$lt_no_undefined_flag_F77
17806
17807 # Commands used to finish a libtool library installation in a directory.
17808 finish_cmds=$lt_finish_cmds
17809
17810 # Same as above, but a single script fragment to be evaled but not shown.
17811 finish_eval=$lt_finish_eval
17812
17813 # Take the output of nm and produce a listing of raw symbols and C names.
17814 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17815
17816 # Transform the output of nm in a proper C declaration
17817 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17818
17819 # Transform the output of nm in a C name address pair
17820 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17821
17822 # This is the shared library runtime path variable.
17823 runpath_var=$runpath_var
17824
17825 # This is the shared library path variable.
17826 shlibpath_var=$shlibpath_var
17827
17828 # Is shlibpath searched before the hard-coded library search path?
17829 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17830
17831 # How to hardcode a shared library path into an executable.
17832 hardcode_action=$hardcode_action_F77
17833
17834 # Whether we should hardcode library paths into libraries.
17835 hardcode_into_libs=$hardcode_into_libs
17836
17837 # Flag to hardcode \$libdir into a binary during linking.
17838 # This must work even if \$libdir does not exist.
17839 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17840
17841 # If ld is used when linking, flag to hardcode \$libdir into
17842 # a binary during linking. This must work even if \$libdir does
17843 # not exist.
17844 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17845
17846 # Whether we need a single -rpath flag with a separated argument.
17847 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17848
17849 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17850 # resulting binary.
17851 hardcode_direct=$hardcode_direct_F77
17852
17853 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17854 # resulting binary.
17855 hardcode_minus_L=$hardcode_minus_L_F77
17856
17857 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17858 # the resulting binary.
17859 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17860
17861 # Set to yes if building a shared library automatically hardcodes DIR into the library
17862 # and all subsequent libraries and executables linked against it.
17863 hardcode_automatic=$hardcode_automatic_F77
17864
17865 # Variables whose values should be saved in libtool wrapper scripts and
17866 # restored at relink time.
17867 variables_saved_for_relink="$variables_saved_for_relink"
17868
17869 # Whether libtool must link a program against all its dependency libraries.
17870 link_all_deplibs=$link_all_deplibs_F77
17871
17872 # Compile-time system search path for libraries
17873 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17874
17875 # Run-time system search path for libraries
17876 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17877
17878 # Fix the shell variable \$srcfile for the compiler.
17879 fix_srcfile_path="$fix_srcfile_path_F77"
17880
17881 # Set to yes if exported symbols are required.
17882 always_export_symbols=$always_export_symbols_F77
17883
17884 # The commands to list exported symbols.
17885 export_symbols_cmds=$lt_export_symbols_cmds_F77
17886
17887 # The commands to extract the exported symbol list from a shared archive.
17888 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17889
17890 # Symbols that should not be listed in the preloaded symbols.
17891 exclude_expsyms=$lt_exclude_expsyms_F77
17892
17893 # Symbols that must always be exported.
17894 include_expsyms=$lt_include_expsyms_F77
17895
17896 # ### END LIBTOOL TAG CONFIG: $tagname
17897
17898 __EOF__
17899
17900
17901 else
17902   # If there is no Makefile yet, we rely on a make rule to execute
17903   # `config.status --recheck' to rerun these tests and create the
17904   # libtool script then.
17905   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17906   if test -f "$ltmain_in"; then
17907     test -f Makefile && make "$ltmain"
17908   fi
17909 fi
17910
17911
17912 ac_ext=c
17913 ac_cpp='$CPP $CPPFLAGS'
17914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17917
17918 CC="$lt_save_CC"
17919
17920         else
17921           tagname=""
17922         fi
17923         ;;
17924
17925       GCJ)
17926         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17927
17928
17929
17930 # Source file extension for Java test sources.
17931 ac_ext=java
17932
17933 # Object file extension for compiled Java test sources.
17934 objext=o
17935 objext_GCJ=$objext
17936
17937 # Code to be used in simple compile tests
17938 lt_simple_compile_test_code="class foo {}\n"
17939
17940 # Code to be used in simple link tests
17941 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17942
17943 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17944
17945 # If no C compiler was specified, use CC.
17946 LTCC=${LTCC-"$CC"}
17947
17948 # Allow CC to be a program name with arguments.
17949 compiler=$CC
17950
17951
17952 # save warnings/boilerplate of simple test code
17953 ac_outfile=conftest.$ac_objext
17954 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17955 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17956 _lt_compiler_boilerplate=`cat conftest.err`
17957 $rm conftest*
17958
17959 ac_outfile=conftest.$ac_objext
17960 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17961 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17962 _lt_linker_boilerplate=`cat conftest.err`
17963 $rm conftest*
17964
17965
17966 # Allow CC to be a program name with arguments.
17967 lt_save_CC="$CC"
17968 CC=${GCJ-"gcj"}
17969 compiler=$CC
17970 compiler_GCJ=$CC
17971 for cc_temp in $compiler""; do
17972   case $cc_temp in
17973     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17974     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17975     \-*) ;;
17976     *) break;;
17977   esac
17978 done
17979 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17980
17981
17982 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17983 archive_cmds_need_lc_GCJ=no
17984
17985 old_archive_cmds_GCJ=$old_archive_cmds
17986
17987
17988 lt_prog_compiler_no_builtin_flag_GCJ=
17989
17990 if test "$GCC" = yes; then
17991   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17992
17993
17994 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17995 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17996 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17997   echo $ECHO_N "(cached) $ECHO_C" >&6
17998 else
17999   lt_cv_prog_compiler_rtti_exceptions=no
18000   ac_outfile=conftest.$ac_objext
18001    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18002    lt_compiler_flag="-fno-rtti -fno-exceptions"
18003    # Insert the option either (1) after the last *FLAGS variable, or
18004    # (2) before a word containing "conftest.", or (3) at the end.
18005    # Note that $ac_compile itself does not contain backslashes and begins
18006    # with a dollar sign (not a hyphen), so the echo should work correctly.
18007    # The option is referenced via a variable to avoid confusing sed.
18008    lt_compile=`echo "$ac_compile" | $SED \
18009    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18010    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18011    -e 's:$: $lt_compiler_flag:'`
18012    (eval echo "\"\$as_me:18012: $lt_compile\"" >&5)
18013    (eval "$lt_compile" 2>conftest.err)
18014    ac_status=$?
18015    cat conftest.err >&5
18016    echo "$as_me:18016: \$? = $ac_status" >&5
18017    if (exit $ac_status) && test -s "$ac_outfile"; then
18018      # The compiler can only warn and ignore the option if not recognized
18019      # So say no if there are warnings other than the usual output.
18020      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18021      $SED '/^$/d' conftest.err >conftest.er2
18022      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18023        lt_cv_prog_compiler_rtti_exceptions=yes
18024      fi
18025    fi
18026    $rm conftest*
18027
18028 fi
18029 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18030 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18031
18032 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18033     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18034 else
18035     :
18036 fi
18037
18038 fi
18039
18040 lt_prog_compiler_wl_GCJ=
18041 lt_prog_compiler_pic_GCJ=
18042 lt_prog_compiler_static_GCJ=
18043
18044 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18045 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18046
18047   if test "$GCC" = yes; then
18048     lt_prog_compiler_wl_GCJ='-Wl,'
18049     lt_prog_compiler_static_GCJ='-static'
18050
18051     case $host_os in
18052       aix*)
18053       # All AIX code is PIC.
18054       if test "$host_cpu" = ia64; then
18055         # AIX 5 now supports IA64 processor
18056         lt_prog_compiler_static_GCJ='-Bstatic'
18057       fi
18058       ;;
18059
18060     amigaos*)
18061       # FIXME: we need at least 68020 code to build shared libraries, but
18062       # adding the `-m68020' flag to GCC prevents building anything better,
18063       # like `-m68040'.
18064       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18065       ;;
18066
18067     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18068       # PIC is the default for these OSes.
18069       ;;
18070
18071     mingw* | pw32* | os2*)
18072       # This hack is so that the source file can tell whether it is being
18073       # built for inclusion in a dll (and should export symbols for example).
18074       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18075       ;;
18076
18077     darwin* | rhapsody*)
18078       # PIC is the default on this platform
18079       # Common symbols not allowed in MH_DYLIB files
18080       lt_prog_compiler_pic_GCJ='-fno-common'
18081       ;;
18082
18083     msdosdjgpp*)
18084       # Just because we use GCC doesn't mean we suddenly get shared libraries
18085       # on systems that don't support them.
18086       lt_prog_compiler_can_build_shared_GCJ=no
18087       enable_shared=no
18088       ;;
18089
18090     sysv4*MP*)
18091       if test -d /usr/nec; then
18092         lt_prog_compiler_pic_GCJ=-Kconform_pic
18093       fi
18094       ;;
18095
18096     hpux*)
18097       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18098       # not for PA HP-UX.
18099       case "$host_cpu" in
18100       hppa*64*|ia64*)
18101         # +Z the default
18102         ;;
18103       *)
18104         lt_prog_compiler_pic_GCJ='-fPIC'
18105         ;;
18106       esac
18107       ;;
18108
18109     *)
18110       lt_prog_compiler_pic_GCJ='-fPIC'
18111       ;;
18112     esac
18113   else
18114     # PORTME Check for flag to pass linker flags through the system compiler.
18115     case $host_os in
18116     aix*)
18117       lt_prog_compiler_wl_GCJ='-Wl,'
18118       if test "$host_cpu" = ia64; then
18119         # AIX 5 now supports IA64 processor
18120         lt_prog_compiler_static_GCJ='-Bstatic'
18121       else
18122         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18123       fi
18124       ;;
18125       darwin*)
18126         # PIC is the default on this platform
18127         # Common symbols not allowed in MH_DYLIB files
18128        case $cc_basename in
18129          xlc*)
18130          lt_prog_compiler_pic_GCJ='-qnocommon'
18131          lt_prog_compiler_wl_GCJ='-Wl,'
18132          ;;
18133        esac
18134        ;;
18135
18136     mingw* | pw32* | os2*)
18137       # This hack is so that the source file can tell whether it is being
18138       # built for inclusion in a dll (and should export symbols for example).
18139       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18140       ;;
18141
18142     hpux9* | hpux10* | hpux11*)
18143       lt_prog_compiler_wl_GCJ='-Wl,'
18144       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18145       # not for PA HP-UX.
18146       case "$host_cpu" in
18147       hppa*64*|ia64*)
18148         # +Z the default
18149         ;;
18150       *)
18151         lt_prog_compiler_pic_GCJ='+Z'
18152         ;;
18153       esac
18154       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18155       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18156       ;;
18157
18158     irix5* | irix6* | nonstopux*)
18159       lt_prog_compiler_wl_GCJ='-Wl,'
18160       # PIC (with -KPIC) is the default.
18161       lt_prog_compiler_static_GCJ='-non_shared'
18162       ;;
18163
18164     newsos6)
18165       lt_prog_compiler_pic_GCJ='-KPIC'
18166       lt_prog_compiler_static_GCJ='-Bstatic'
18167       ;;
18168
18169     linux*)
18170       case $cc_basename in
18171       icc* | ecc*)
18172         lt_prog_compiler_wl_GCJ='-Wl,'
18173         lt_prog_compiler_pic_GCJ='-KPIC'
18174         lt_prog_compiler_static_GCJ='-static'
18175         ;;
18176       pgcc* | pgf77* | pgf90*)
18177         # Portland Group compilers (*not* the Pentium gcc compiler,
18178         # which looks to be a dead project)
18179         lt_prog_compiler_wl_GCJ='-Wl,'
18180         lt_prog_compiler_pic_GCJ='-fpic'
18181         lt_prog_compiler_static_GCJ='-static'
18182         ;;
18183       ccc*)
18184         lt_prog_compiler_wl_GCJ='-Wl,'
18185         # All Alpha code is PIC.
18186         lt_prog_compiler_static_GCJ='-non_shared'
18187         ;;
18188       esac
18189       ;;
18190
18191     osf3* | osf4* | osf5*)
18192       lt_prog_compiler_wl_GCJ='-Wl,'
18193       # All OSF/1 code is PIC.
18194       lt_prog_compiler_static_GCJ='-non_shared'
18195       ;;
18196
18197     sco3.2v5*)
18198       lt_prog_compiler_pic_GCJ='-Kpic'
18199       lt_prog_compiler_static_GCJ='-dn'
18200       ;;
18201
18202     solaris*)
18203       lt_prog_compiler_pic_GCJ='-KPIC'
18204       lt_prog_compiler_static_GCJ='-Bstatic'
18205       case $cc_basename in
18206       f77* | f90* | f95*)
18207         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18208       *)
18209         lt_prog_compiler_wl_GCJ='-Wl,';;
18210       esac
18211       ;;
18212
18213     sunos4*)
18214       lt_prog_compiler_wl_GCJ='-Qoption ld '
18215       lt_prog_compiler_pic_GCJ='-PIC'
18216       lt_prog_compiler_static_GCJ='-Bstatic'
18217       ;;
18218
18219     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18220       lt_prog_compiler_wl_GCJ='-Wl,'
18221       lt_prog_compiler_pic_GCJ='-KPIC'
18222       lt_prog_compiler_static_GCJ='-Bstatic'
18223       ;;
18224
18225     sysv4*MP*)
18226       if test -d /usr/nec ;then
18227         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18228         lt_prog_compiler_static_GCJ='-Bstatic'
18229       fi
18230       ;;
18231
18232     unicos*)
18233       lt_prog_compiler_wl_GCJ='-Wl,'
18234       lt_prog_compiler_can_build_shared_GCJ=no
18235       ;;
18236
18237     uts4*)
18238       lt_prog_compiler_pic_GCJ='-pic'
18239       lt_prog_compiler_static_GCJ='-Bstatic'
18240       ;;
18241
18242     *)
18243       lt_prog_compiler_can_build_shared_GCJ=no
18244       ;;
18245     esac
18246   fi
18247
18248 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18249 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18250
18251 #
18252 # Check to make sure the PIC flag actually works.
18253 #
18254 if test -n "$lt_prog_compiler_pic_GCJ"; then
18255
18256 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18257 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18258 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18259   echo $ECHO_N "(cached) $ECHO_C" >&6
18260 else
18261   lt_prog_compiler_pic_works_GCJ=no
18262   ac_outfile=conftest.$ac_objext
18263    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18264    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18265    # Insert the option either (1) after the last *FLAGS variable, or
18266    # (2) before a word containing "conftest.", or (3) at the end.
18267    # Note that $ac_compile itself does not contain backslashes and begins
18268    # with a dollar sign (not a hyphen), so the echo should work correctly.
18269    # The option is referenced via a variable to avoid confusing sed.
18270    lt_compile=`echo "$ac_compile" | $SED \
18271    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18272    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18273    -e 's:$: $lt_compiler_flag:'`
18274    (eval echo "\"\$as_me:18274: $lt_compile\"" >&5)
18275    (eval "$lt_compile" 2>conftest.err)
18276    ac_status=$?
18277    cat conftest.err >&5
18278    echo "$as_me:18278: \$? = $ac_status" >&5
18279    if (exit $ac_status) && test -s "$ac_outfile"; then
18280      # The compiler can only warn and ignore the option if not recognized
18281      # So say no if there are warnings other than the usual output.
18282      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18283      $SED '/^$/d' conftest.err >conftest.er2
18284      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18285        lt_prog_compiler_pic_works_GCJ=yes
18286      fi
18287    fi
18288    $rm conftest*
18289
18290 fi
18291 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18292 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18293
18294 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18295     case $lt_prog_compiler_pic_GCJ in
18296      "" | " "*) ;;
18297      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18298      esac
18299 else
18300     lt_prog_compiler_pic_GCJ=
18301      lt_prog_compiler_can_build_shared_GCJ=no
18302 fi
18303
18304 fi
18305 case "$host_os" in
18306   # For platforms which do not support PIC, -DPIC is meaningless:
18307   *djgpp*)
18308     lt_prog_compiler_pic_GCJ=
18309     ;;
18310   *)
18311     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18312     ;;
18313 esac
18314
18315 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18316 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18317 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18318   echo $ECHO_N "(cached) $ECHO_C" >&6
18319 else
18320   lt_cv_prog_compiler_c_o_GCJ=no
18321    $rm -r conftest 2>/dev/null
18322    mkdir conftest
18323    cd conftest
18324    mkdir out
18325    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18326
18327    lt_compiler_flag="-o out/conftest2.$ac_objext"
18328    # Insert the option either (1) after the last *FLAGS variable, or
18329    # (2) before a word containing "conftest.", or (3) at the end.
18330    # Note that $ac_compile itself does not contain backslashes and begins
18331    # with a dollar sign (not a hyphen), so the echo should work correctly.
18332    lt_compile=`echo "$ac_compile" | $SED \
18333    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18334    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18335    -e 's:$: $lt_compiler_flag:'`
18336    (eval echo "\"\$as_me:18336: $lt_compile\"" >&5)
18337    (eval "$lt_compile" 2>out/conftest.err)
18338    ac_status=$?
18339    cat out/conftest.err >&5
18340    echo "$as_me:18340: \$? = $ac_status" >&5
18341    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18342    then
18343      # The compiler can only warn and ignore the option if not recognized
18344      # So say no if there are warnings
18345      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18346      $SED '/^$/d' out/conftest.err >out/conftest.er2
18347      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18348        lt_cv_prog_compiler_c_o_GCJ=yes
18349      fi
18350    fi
18351    chmod u+w .
18352    $rm conftest*
18353    # SGI C++ compiler will create directory out/ii_files/ for
18354    # template instantiation
18355    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18356    $rm out/* && rmdir out
18357    cd ..
18358    rmdir conftest
18359    $rm conftest*
18360
18361 fi
18362 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18363 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18364
18365
18366 hard_links="nottested"
18367 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18368   # do not overwrite the value of need_locks provided by the user
18369   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18370 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18371   hard_links=yes
18372   $rm conftest*
18373   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18374   touch conftest.a
18375   ln conftest.a conftest.b 2>&5 || hard_links=no
18376   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18377   echo "$as_me:$LINENO: result: $hard_links" >&5
18378 echo "${ECHO_T}$hard_links" >&6
18379   if test "$hard_links" = no; then
18380     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18381 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18382     need_locks=warn
18383   fi
18384 else
18385   need_locks=no
18386 fi
18387
18388 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18389 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18390
18391   runpath_var=
18392   allow_undefined_flag_GCJ=
18393   enable_shared_with_static_runtimes_GCJ=no
18394   archive_cmds_GCJ=
18395   archive_expsym_cmds_GCJ=
18396   old_archive_From_new_cmds_GCJ=
18397   old_archive_from_expsyms_cmds_GCJ=
18398   export_dynamic_flag_spec_GCJ=
18399   whole_archive_flag_spec_GCJ=
18400   thread_safe_flag_spec_GCJ=
18401   hardcode_libdir_flag_spec_GCJ=
18402   hardcode_libdir_flag_spec_ld_GCJ=
18403   hardcode_libdir_separator_GCJ=
18404   hardcode_direct_GCJ=no
18405   hardcode_minus_L_GCJ=no
18406   hardcode_shlibpath_var_GCJ=unsupported
18407   link_all_deplibs_GCJ=unknown
18408   hardcode_automatic_GCJ=no
18409   module_cmds_GCJ=
18410   module_expsym_cmds_GCJ=
18411   always_export_symbols_GCJ=no
18412   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18413   # include_expsyms should be a list of space-separated symbols to be *always*
18414   # included in the symbol list
18415   include_expsyms_GCJ=
18416   # exclude_expsyms can be an extended regexp of symbols to exclude
18417   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18418   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18419   # as well as any symbol that contains `d'.
18420   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18421   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18422   # platforms (ab)use it in PIC code, but their linkers get confused if
18423   # the symbol is explicitly referenced.  Since portable code cannot
18424   # rely on this symbol name, it's probably fine to never include it in
18425   # preloaded symbol tables.
18426   extract_expsyms_cmds=
18427   # Just being paranoid about ensuring that cc_basename is set.
18428   for cc_temp in $compiler""; do
18429   case $cc_temp in
18430     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18431     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18432     \-*) ;;
18433     *) break;;
18434   esac
18435 done
18436 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18437
18438   case $host_os in
18439   cygwin* | mingw* | pw32*)
18440     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18441     # When not using gcc, we currently assume that we are using
18442     # Microsoft Visual C++.
18443     if test "$GCC" != yes; then
18444       with_gnu_ld=no
18445     fi
18446     ;;
18447   openbsd*)
18448     with_gnu_ld=no
18449     ;;
18450   esac
18451
18452   ld_shlibs_GCJ=yes
18453   if test "$with_gnu_ld" = yes; then
18454     # If archive_cmds runs LD, not CC, wlarc should be empty
18455     wlarc='${wl}'
18456
18457     # Set some defaults for GNU ld with shared library support. These
18458     # are reset later if shared libraries are not supported. Putting them
18459     # here allows them to be overridden if necessary.
18460     runpath_var=LD_RUN_PATH
18461     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18462     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18463     # ancient GNU ld didn't support --whole-archive et. al.
18464     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18465         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18466       else
18467         whole_archive_flag_spec_GCJ=
18468     fi
18469     supports_anon_versioning=no
18470     case `$LD -v 2>/dev/null` in
18471       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18472       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18473       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18474       *\ 2.11.*) ;; # other 2.11 versions
18475       *) supports_anon_versioning=yes ;;
18476     esac
18477
18478     # See if GNU ld supports shared libraries.
18479     case $host_os in
18480     aix3* | aix4* | aix5*)
18481       # On AIX/PPC, the GNU linker is very broken
18482       if test "$host_cpu" != ia64; then
18483         ld_shlibs_GCJ=no
18484         cat <<EOF 1>&2
18485
18486 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18487 *** to be unable to reliably create shared libraries on AIX.
18488 *** Therefore, libtool is disabling shared libraries support.  If you
18489 *** really care for shared libraries, you may want to modify your PATH
18490 *** so that a non-GNU linker is found, and then restart.
18491
18492 EOF
18493       fi
18494       ;;
18495
18496     amigaos*)
18497       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)'
18498       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18499       hardcode_minus_L_GCJ=yes
18500
18501       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18502       # that the semantics of dynamic libraries on AmigaOS, at least up
18503       # to version 4, is to share data among multiple programs linked
18504       # with the same dynamic library.  Since this doesn't match the
18505       # behavior of shared libraries on other platforms, we can't use
18506       # them.
18507       ld_shlibs_GCJ=no
18508       ;;
18509
18510     beos*)
18511       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18512         allow_undefined_flag_GCJ=unsupported
18513         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18514         # support --undefined.  This deserves some investigation.  FIXME
18515         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18516       else
18517         ld_shlibs_GCJ=no
18518       fi
18519       ;;
18520
18521     cygwin* | mingw* | pw32*)
18522       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18523       # as there is no search path for DLLs.
18524       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18525       allow_undefined_flag_GCJ=unsupported
18526       always_export_symbols_GCJ=no
18527       enable_shared_with_static_runtimes_GCJ=yes
18528       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18529
18530       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18531         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18532         # If the export-symbols file already is a .def file (1st line
18533         # is EXPORTS), use it as is; otherwise, prepend...
18534         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18535           cp $export_symbols $output_objdir/$soname.def;
18536         else
18537           echo EXPORTS > $output_objdir/$soname.def;
18538           cat $export_symbols >> $output_objdir/$soname.def;
18539         fi~
18540         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
18541       else
18542         ld_shlibs_GCJ=no
18543       fi
18544       ;;
18545
18546     linux*)
18547       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18548         tmp_addflag=
18549         case $cc_basename,$host_cpu in
18550         pgcc*)                          # Portland Group C compiler
18551           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'
18552           tmp_addflag=' $pic_flag'
18553           ;;
18554         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
18555           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'
18556           tmp_addflag=' $pic_flag -Mnomain' ;;
18557         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18558           tmp_addflag=' -i_dynamic' ;;
18559         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18560           tmp_addflag=' -i_dynamic -nofor_main' ;;
18561         ifc* | ifort*)                  # Intel Fortran compiler
18562           tmp_addflag=' -nofor_main' ;;
18563         esac
18564         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18565
18566         if test $supports_anon_versioning = yes; then
18567           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18568   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18569   $echo "local: *; };" >> $output_objdir/$libname.ver~
18570           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18571         fi
18572       else
18573         ld_shlibs_GCJ=no
18574       fi
18575       ;;
18576
18577     netbsd*)
18578       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18579         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18580         wlarc=
18581       else
18582         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18583         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18584       fi
18585       ;;
18586
18587     solaris* | sysv5*)
18588       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18589         ld_shlibs_GCJ=no
18590         cat <<EOF 1>&2
18591
18592 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18593 *** create shared libraries on Solaris systems.  Therefore, libtool
18594 *** is disabling shared libraries support.  We urge you to upgrade GNU
18595 *** binutils to release 2.9.1 or newer.  Another option is to modify
18596 *** your PATH or compiler configuration so that the native linker is
18597 *** used, and then restart.
18598
18599 EOF
18600       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18601         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18602         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18603       else
18604         ld_shlibs_GCJ=no
18605       fi
18606       ;;
18607
18608     sunos4*)
18609       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18610       wlarc=
18611       hardcode_direct_GCJ=yes
18612       hardcode_shlibpath_var_GCJ=no
18613       ;;
18614
18615     *)
18616       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18617         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18618         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18619       else
18620         ld_shlibs_GCJ=no
18621       fi
18622       ;;
18623     esac
18624
18625     if test "$ld_shlibs_GCJ" = no; then
18626       runpath_var=
18627       hardcode_libdir_flag_spec_GCJ=
18628       export_dynamic_flag_spec_GCJ=
18629       whole_archive_flag_spec_GCJ=
18630     fi
18631   else
18632     # PORTME fill in a description of your system's linker (not GNU ld)
18633     case $host_os in
18634     aix3*)
18635       allow_undefined_flag_GCJ=unsupported
18636       always_export_symbols_GCJ=yes
18637       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'
18638       # Note: this linker hardcodes the directories in LIBPATH if there
18639       # are no directories specified by -L.
18640       hardcode_minus_L_GCJ=yes
18641       if test "$GCC" = yes && test -z "$link_static_flag"; then
18642         # Neither direct hardcoding nor static linking is supported with a
18643         # broken collect2.
18644         hardcode_direct_GCJ=unsupported
18645       fi
18646       ;;
18647
18648     aix4* | aix5*)
18649       if test "$host_cpu" = ia64; then
18650         # On IA64, the linker does run time linking by default, so we don't
18651         # have to do anything special.
18652         aix_use_runtimelinking=no
18653         exp_sym_flag='-Bexport'
18654         no_entry_flag=""
18655       else
18656         # If we're using GNU nm, then we don't want the "-C" option.
18657         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18658         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18659           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'
18660         else
18661           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'
18662         fi
18663         aix_use_runtimelinking=no
18664
18665         # Test if we are trying to use run time linking or normal
18666         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18667         # need to do runtime linking.
18668         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18669           for ld_flag in $LDFLAGS; do
18670           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18671             aix_use_runtimelinking=yes
18672             break
18673           fi
18674           done
18675         esac
18676
18677         exp_sym_flag='-bexport'
18678         no_entry_flag='-bnoentry'
18679       fi
18680
18681       # When large executables or shared objects are built, AIX ld can
18682       # have problems creating the table of contents.  If linking a library
18683       # or program results in "error TOC overflow" add -mminimal-toc to
18684       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18685       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18686
18687       archive_cmds_GCJ=''
18688       hardcode_direct_GCJ=yes
18689       hardcode_libdir_separator_GCJ=':'
18690       link_all_deplibs_GCJ=yes
18691
18692       if test "$GCC" = yes; then
18693         case $host_os in aix4.[012]|aix4.[012].*)
18694         # We only want to do this on AIX 4.2 and lower, the check
18695         # below for broken collect2 doesn't work under 4.3+
18696           collect2name=`${CC} -print-prog-name=collect2`
18697           if test -f "$collect2name" && \
18698            strings "$collect2name" | grep resolve_lib_name >/dev/null
18699           then
18700           # We have reworked collect2
18701           hardcode_direct_GCJ=yes
18702           else
18703           # We have old collect2
18704           hardcode_direct_GCJ=unsupported
18705           # It fails to find uninstalled libraries when the uninstalled
18706           # path is not listed in the libpath.  Setting hardcode_minus_L
18707           # to unsupported forces relinking
18708           hardcode_minus_L_GCJ=yes
18709           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18710           hardcode_libdir_separator_GCJ=
18711           fi
18712         esac
18713         shared_flag='-shared'
18714         if test "$aix_use_runtimelinking" = yes; then
18715           shared_flag="$shared_flag "'${wl}-G'
18716         fi
18717       else
18718         # not using gcc
18719         if test "$host_cpu" = ia64; then
18720         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18721         # chokes on -Wl,-G. The following line is correct:
18722           shared_flag='-G'
18723         else
18724         if test "$aix_use_runtimelinking" = yes; then
18725             shared_flag='${wl}-G'
18726           else
18727             shared_flag='${wl}-bM:SRE'
18728         fi
18729         fi
18730       fi
18731
18732       # It seems that -bexpall does not export symbols beginning with
18733       # underscore (_), so it is better to generate a list of symbols to export.
18734       always_export_symbols_GCJ=yes
18735       if test "$aix_use_runtimelinking" = yes; then
18736         # Warning - without using the other runtime loading flags (-brtl),
18737         # -berok will link without error, but may produce a broken library.
18738         allow_undefined_flag_GCJ='-berok'
18739        # Determine the default libpath from the value encoded in an empty executable.
18740        cat >conftest.$ac_ext <<_ACEOF
18741 /* confdefs.h.  */
18742 _ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h.  */
18746
18747 int
18748 main ()
18749 {
18750
18751   ;
18752   return 0;
18753 }
18754 _ACEOF
18755 rm -f conftest.$ac_objext conftest$ac_exeext
18756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18757   (eval $ac_link) 2>conftest.er1
18758   ac_status=$?
18759   grep -v '^ *+' conftest.er1 >conftest.err
18760   rm -f conftest.er1
18761   cat conftest.err >&5
18762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763   (exit $ac_status); } &&
18764          { ac_try='test -z "$ac_c_werror_flag"
18765                          || test ! -s conftest.err'
18766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767   (eval $ac_try) 2>&5
18768   ac_status=$?
18769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770   (exit $ac_status); }; } &&
18771          { ac_try='test -s conftest$ac_exeext'
18772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773   (eval $ac_try) 2>&5
18774   ac_status=$?
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); }; }; then
18777
18778 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18779 }'`
18780 # Check for a 64-bit object if we didn't find anything.
18781 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; }
18782 }'`; fi
18783 else
18784   echo "$as_me: failed program was:" >&5
18785 sed 's/^/| /' conftest.$ac_ext >&5
18786
18787 fi
18788 rm -f conftest.err conftest.$ac_objext \
18789       conftest$ac_exeext conftest.$ac_ext
18790 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18791
18792        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18793         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"
18794        else
18795         if test "$host_cpu" = ia64; then
18796           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18797           allow_undefined_flag_GCJ="-z nodefs"
18798           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"
18799         else
18800          # Determine the default libpath from the value encoded in an empty executable.
18801          cat >conftest.$ac_ext <<_ACEOF
18802 /* confdefs.h.  */
18803 _ACEOF
18804 cat confdefs.h >>conftest.$ac_ext
18805 cat >>conftest.$ac_ext <<_ACEOF
18806 /* end confdefs.h.  */
18807
18808 int
18809 main ()
18810 {
18811
18812   ;
18813   return 0;
18814 }
18815 _ACEOF
18816 rm -f conftest.$ac_objext conftest$ac_exeext
18817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18818   (eval $ac_link) 2>conftest.er1
18819   ac_status=$?
18820   grep -v '^ *+' conftest.er1 >conftest.err
18821   rm -f conftest.er1
18822   cat conftest.err >&5
18823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824   (exit $ac_status); } &&
18825          { ac_try='test -z "$ac_c_werror_flag"
18826                          || test ! -s conftest.err'
18827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828   (eval $ac_try) 2>&5
18829   ac_status=$?
18830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831   (exit $ac_status); }; } &&
18832          { ac_try='test -s conftest$ac_exeext'
18833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18834   (eval $ac_try) 2>&5
18835   ac_status=$?
18836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837   (exit $ac_status); }; }; then
18838
18839 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18840 }'`
18841 # Check for a 64-bit object if we didn't find anything.
18842 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; }
18843 }'`; fi
18844 else
18845   echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.$ac_ext >&5
18847
18848 fi
18849 rm -f conftest.err conftest.$ac_objext \
18850       conftest$ac_exeext conftest.$ac_ext
18851 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18852
18853          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18854           # Warning - without using the other run time loading flags,
18855           # -berok will link without error, but may produce a broken library.
18856           no_undefined_flag_GCJ=' ${wl}-bernotok'
18857           allow_undefined_flag_GCJ=' ${wl}-berok'
18858           # -bexpall does not export symbols beginning with underscore (_)
18859           always_export_symbols_GCJ=yes
18860           # Exported symbols can be pulled into shared objects from archives
18861           whole_archive_flag_spec_GCJ=' '
18862           archive_cmds_need_lc_GCJ=yes
18863           # This is similar to how AIX traditionally builds it's shared libraries.
18864           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'
18865         fi
18866       fi
18867       ;;
18868
18869     amigaos*)
18870       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)'
18871       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18872       hardcode_minus_L_GCJ=yes
18873       # see comment about different semantics on the GNU ld section
18874       ld_shlibs_GCJ=no
18875       ;;
18876
18877     bsdi[45]*)
18878       export_dynamic_flag_spec_GCJ=-rdynamic
18879       ;;
18880
18881     cygwin* | mingw* | pw32*)
18882       # When not using gcc, we currently assume that we are using
18883       # Microsoft Visual C++.
18884       # hardcode_libdir_flag_spec is actually meaningless, as there is
18885       # no search path for DLLs.
18886       hardcode_libdir_flag_spec_GCJ=' '
18887       allow_undefined_flag_GCJ=unsupported
18888       # Tell ltmain to make .lib files, not .a files.
18889       libext=lib
18890       # Tell ltmain to make .dll files, not .so files.
18891       shrext_cmds=".dll"
18892       # FIXME: Setting linknames here is a bad hack.
18893       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18894       # The linker will automatically build a .lib file if we build a DLL.
18895       old_archive_From_new_cmds_GCJ='true'
18896       # FIXME: Should let the user specify the lib program.
18897       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18898       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18899       enable_shared_with_static_runtimes_GCJ=yes
18900       ;;
18901
18902     darwin* | rhapsody*)
18903       case "$host_os" in
18904         rhapsody* | darwin1.[012])
18905          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18906          ;;
18907        *) # Darwin 1.3 on
18908          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18909            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18910          else
18911            case ${MACOSX_DEPLOYMENT_TARGET} in
18912              10.[012])
18913                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18914                ;;
18915              10.*)
18916                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18917                ;;
18918            esac
18919          fi
18920          ;;
18921       esac
18922       archive_cmds_need_lc_GCJ=no
18923       hardcode_direct_GCJ=no
18924       hardcode_automatic_GCJ=yes
18925       hardcode_shlibpath_var_GCJ=unsupported
18926       whole_archive_flag_spec_GCJ=''
18927       link_all_deplibs_GCJ=yes
18928     if test "$GCC" = yes ; then
18929         output_verbose_link_cmd='echo'
18930         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18931       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18932       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18933       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}'
18934       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}'
18935     else
18936       case $cc_basename in
18937         xlc*)
18938          output_verbose_link_cmd='echo'
18939          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18940          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18941           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18942          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -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}'
18943           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18944           ;;
18945        *)
18946          ld_shlibs_GCJ=no
18947           ;;
18948       esac
18949     fi
18950       ;;
18951
18952     dgux*)
18953       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18954       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18955       hardcode_shlibpath_var_GCJ=no
18956       ;;
18957
18958     freebsd1*)
18959       ld_shlibs_GCJ=no
18960       ;;
18961
18962     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18963     # support.  Future versions do this automatically, but an explicit c++rt0.o
18964     # does not break anything, and helps significantly (at the cost of a little
18965     # extra space).
18966     freebsd2.2*)
18967       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18968       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18969       hardcode_direct_GCJ=yes
18970       hardcode_shlibpath_var_GCJ=no
18971       ;;
18972
18973     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18974     freebsd2*)
18975       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18976       hardcode_direct_GCJ=yes
18977       hardcode_minus_L_GCJ=yes
18978       hardcode_shlibpath_var_GCJ=no
18979       ;;
18980
18981     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18982     freebsd* | kfreebsd*-gnu | dragonfly*)
18983       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18984       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18985       hardcode_direct_GCJ=yes
18986       hardcode_shlibpath_var_GCJ=no
18987       ;;
18988
18989     hpux9*)
18990       if test "$GCC" = yes; then
18991         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'
18992       else
18993         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'
18994       fi
18995       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18996       hardcode_libdir_separator_GCJ=:
18997       hardcode_direct_GCJ=yes
18998
18999       # hardcode_minus_L: Not really in the search PATH,
19000       # but as the default location of the library.
19001       hardcode_minus_L_GCJ=yes
19002       export_dynamic_flag_spec_GCJ='${wl}-E'
19003       ;;
19004
19005     hpux10* | hpux11*)
19006       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19007         case "$host_cpu" in
19008         hppa*64*|ia64*)
19009           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19010           ;;
19011         *)
19012           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19013           ;;
19014         esac
19015       else
19016         case "$host_cpu" in
19017         hppa*64*|ia64*)
19018           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19019           ;;
19020         *)
19021           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19022           ;;
19023         esac
19024       fi
19025       if test "$with_gnu_ld" = no; then
19026         case "$host_cpu" in
19027         hppa*64*)
19028           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19029           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19030           hardcode_libdir_separator_GCJ=:
19031           hardcode_direct_GCJ=no
19032           hardcode_shlibpath_var_GCJ=no
19033           ;;
19034         ia64*)
19035           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19036           hardcode_direct_GCJ=no
19037           hardcode_shlibpath_var_GCJ=no
19038
19039           # hardcode_minus_L: Not really in the search PATH,
19040           # but as the default location of the library.
19041           hardcode_minus_L_GCJ=yes
19042           ;;
19043         *)
19044           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19045           hardcode_libdir_separator_GCJ=:
19046           hardcode_direct_GCJ=yes
19047           export_dynamic_flag_spec_GCJ='${wl}-E'
19048
19049           # hardcode_minus_L: Not really in the search PATH,
19050           # but as the default location of the library.
19051           hardcode_minus_L_GCJ=yes
19052           ;;
19053         esac
19054       fi
19055       ;;
19056
19057     irix5* | irix6* | nonstopux*)
19058       if test "$GCC" = yes; then
19059         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'
19060       else
19061         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'
19062         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19063       fi
19064       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19065       hardcode_libdir_separator_GCJ=:
19066       link_all_deplibs_GCJ=yes
19067       ;;
19068
19069     netbsd*)
19070       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19071         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19072       else
19073         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19074       fi
19075       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19076       hardcode_direct_GCJ=yes
19077       hardcode_shlibpath_var_GCJ=no
19078       ;;
19079
19080     newsos6)
19081       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19082       hardcode_direct_GCJ=yes
19083       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19084       hardcode_libdir_separator_GCJ=:
19085       hardcode_shlibpath_var_GCJ=no
19086       ;;
19087
19088     openbsd*)
19089       hardcode_direct_GCJ=yes
19090       hardcode_shlibpath_var_GCJ=no
19091       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19092         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19093         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19094         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19095         export_dynamic_flag_spec_GCJ='${wl}-E'
19096       else
19097        case $host_os in
19098          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19099            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19100            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19101            ;;
19102          *)
19103            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19104            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19105            ;;
19106        esac
19107       fi
19108       ;;
19109
19110     os2*)
19111       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19112       hardcode_minus_L_GCJ=yes
19113       allow_undefined_flag_GCJ=unsupported
19114       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'
19115       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19116       ;;
19117
19118     osf3*)
19119       if test "$GCC" = yes; then
19120         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19121         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'
19122       else
19123         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19124         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'
19125       fi
19126       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19127       hardcode_libdir_separator_GCJ=:
19128       ;;
19129
19130     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19131       if test "$GCC" = yes; then
19132         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19133         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'
19134         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19135       else
19136         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19137         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'
19138         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~
19139         $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'
19140
19141         # Both c and cxx compiler support -rpath directly
19142         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19143       fi
19144       hardcode_libdir_separator_GCJ=:
19145       ;;
19146
19147     sco3.2v5*)
19148       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19149       hardcode_shlibpath_var_GCJ=no
19150       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19151       runpath_var=LD_RUN_PATH
19152       hardcode_runpath_var=yes
19153       ;;
19154
19155     solaris*)
19156       no_undefined_flag_GCJ=' -z text'
19157       if test "$GCC" = yes; then
19158         wlarc='${wl}'
19159         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19160         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19161           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19162       else
19163         wlarc=''
19164         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19165         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19166         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19167       fi
19168       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19169       hardcode_shlibpath_var_GCJ=no
19170       case $host_os in
19171       solaris2.[0-5] | solaris2.[0-5].*) ;;
19172       *)
19173         # The compiler driver will combine linker options so we
19174         # cannot just pass the convience library names through
19175         # without $wl, iff we do not link with $LD.
19176         # Luckily, gcc supports the same syntax we need for Sun Studio.
19177         # Supported since Solaris 2.6 (maybe 2.5.1?)
19178         case $wlarc in
19179         '')
19180           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19181         *)
19182           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' ;;
19183         esac ;;
19184       esac
19185       link_all_deplibs_GCJ=yes
19186       ;;
19187
19188     sunos4*)
19189       if test "x$host_vendor" = xsequent; then
19190         # Use $CC to link under sequent, because it throws in some extra .o
19191         # files that make .init and .fini sections work.
19192         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19193       else
19194         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19195       fi
19196       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19197       hardcode_direct_GCJ=yes
19198       hardcode_minus_L_GCJ=yes
19199       hardcode_shlibpath_var_GCJ=no
19200       ;;
19201
19202     sysv4)
19203       case $host_vendor in
19204         sni)
19205           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19206           hardcode_direct_GCJ=yes # is this really true???
19207         ;;
19208         siemens)
19209           ## LD is ld it makes a PLAMLIB
19210           ## CC just makes a GrossModule.
19211           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19212           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19213           hardcode_direct_GCJ=no
19214         ;;
19215         motorola)
19216           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19217           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19218         ;;
19219       esac
19220       runpath_var='LD_RUN_PATH'
19221       hardcode_shlibpath_var_GCJ=no
19222       ;;
19223
19224     sysv4.3*)
19225       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19226       hardcode_shlibpath_var_GCJ=no
19227       export_dynamic_flag_spec_GCJ='-Bexport'
19228       ;;
19229
19230     sysv4*MP*)
19231       if test -d /usr/nec; then
19232         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19233         hardcode_shlibpath_var_GCJ=no
19234         runpath_var=LD_RUN_PATH
19235         hardcode_runpath_var=yes
19236         ld_shlibs_GCJ=yes
19237       fi
19238       ;;
19239
19240     sysv4.2uw2*)
19241       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19242       hardcode_direct_GCJ=yes
19243       hardcode_minus_L_GCJ=no
19244       hardcode_shlibpath_var_GCJ=no
19245       hardcode_runpath_var=yes
19246       runpath_var=LD_RUN_PATH
19247       ;;
19248
19249    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19250       no_undefined_flag_GCJ='${wl}-z ${wl}text'
19251       if test "$GCC" = yes; then
19252         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19253       else
19254         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19255       fi
19256       runpath_var='LD_RUN_PATH'
19257       hardcode_shlibpath_var_GCJ=no
19258       ;;
19259
19260     sysv5*)
19261       no_undefined_flag_GCJ=' -z text'
19262       # $CC -shared without GNU ld will not create a library from C++
19263       # object files and a static libstdc++, better avoid it by now
19264       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19265       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19266                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19267       hardcode_libdir_flag_spec_GCJ=
19268       hardcode_shlibpath_var_GCJ=no
19269       runpath_var='LD_RUN_PATH'
19270       ;;
19271
19272     uts4*)
19273       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19274       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19275       hardcode_shlibpath_var_GCJ=no
19276       ;;
19277
19278     *)
19279       ld_shlibs_GCJ=no
19280       ;;
19281     esac
19282   fi
19283
19284 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19285 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19286 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19287
19288 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19289 if test "$GCC" = yes; then
19290   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19291 fi
19292
19293 #
19294 # Do we need to explicitly link libc?
19295 #
19296 case "x$archive_cmds_need_lc_GCJ" in
19297 x|xyes)
19298   # Assume -lc should be added
19299   archive_cmds_need_lc_GCJ=yes
19300
19301   if test "$enable_shared" = yes && test "$GCC" = yes; then
19302     case $archive_cmds_GCJ in
19303     *'~'*)
19304       # FIXME: we may have to deal with multi-command sequences.
19305       ;;
19306     '$CC '*)
19307       # Test whether the compiler implicitly links with -lc since on some
19308       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19309       # to ld, don't add -lc before -lgcc.
19310       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19311 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19312       $rm conftest*
19313       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19314
19315       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19316   (eval $ac_compile) 2>&5
19317   ac_status=$?
19318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319   (exit $ac_status); } 2>conftest.err; then
19320         soname=conftest
19321         lib=conftest
19322         libobjs=conftest.$ac_objext
19323         deplibs=
19324         wl=$lt_prog_compiler_wl_GCJ
19325         compiler_flags=-v
19326         linker_flags=-v
19327         verstring=
19328         output_objdir=.
19329         libname=conftest
19330         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19331         allow_undefined_flag_GCJ=
19332         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19333   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19334   ac_status=$?
19335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336   (exit $ac_status); }
19337         then
19338           archive_cmds_need_lc_GCJ=no
19339         else
19340           archive_cmds_need_lc_GCJ=yes
19341         fi
19342         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19343       else
19344         cat conftest.err 1>&5
19345       fi
19346       $rm conftest*
19347       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19348 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19349       ;;
19350     esac
19351   fi
19352   ;;
19353 esac
19354
19355 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19356 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19357 library_names_spec=
19358 libname_spec='lib$name'
19359 soname_spec=
19360 shrext_cmds=".so"
19361 postinstall_cmds=
19362 postuninstall_cmds=
19363 finish_cmds=
19364 finish_eval=
19365 shlibpath_var=
19366 shlibpath_overrides_runpath=unknown
19367 version_type=none
19368 dynamic_linker="$host_os ld.so"
19369 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19370 if test "$GCC" = yes; then
19371   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19372   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19373     # if the path contains ";" then we assume it to be the separator
19374     # otherwise default to the standard path separator (i.e. ":") - it is
19375     # assumed that no part of a normal pathname contains ";" but that should
19376     # okay in the real world where ";" in dirpaths is itself problematic.
19377     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19378   else
19379     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19380   fi
19381 else
19382   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19383 fi
19384 need_lib_prefix=unknown
19385 hardcode_into_libs=no
19386
19387 # when you set need_version to no, make sure it does not cause -set_version
19388 # flags to be left without arguments
19389 need_version=unknown
19390
19391 case $host_os in
19392 aix3*)
19393   version_type=linux
19394   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19395   shlibpath_var=LIBPATH
19396
19397   # AIX 3 has no versioning support, so we append a major version to the name.
19398   soname_spec='${libname}${release}${shared_ext}$major'
19399   ;;
19400
19401 aix4* | aix5*)
19402   version_type=linux
19403   need_lib_prefix=no
19404   need_version=no
19405   hardcode_into_libs=yes
19406   if test "$host_cpu" = ia64; then
19407     # AIX 5 supports IA64
19408     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19409     shlibpath_var=LD_LIBRARY_PATH
19410   else
19411     # With GCC up to 2.95.x, collect2 would create an import file
19412     # for dependence libraries.  The import file would start with
19413     # the line `#! .'.  This would cause the generated library to
19414     # depend on `.', always an invalid library.  This was fixed in
19415     # development snapshots of GCC prior to 3.0.
19416     case $host_os in
19417       aix4 | aix4.[01] | aix4.[01].*)
19418       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19419            echo ' yes '
19420            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19421         :
19422       else
19423         can_build_shared=no
19424       fi
19425       ;;
19426     esac
19427     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19428     # soname into executable. Probably we can add versioning support to
19429     # collect2, so additional links can be useful in future.
19430     if test "$aix_use_runtimelinking" = yes; then
19431       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19432       # instead of lib<name>.a to let people know that these are not
19433       # typical AIX shared libraries.
19434       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19435     else
19436       # We preserve .a as extension for shared libraries through AIX4.2
19437       # and later when we are not doing run time linking.
19438       library_names_spec='${libname}${release}.a $libname.a'
19439       soname_spec='${libname}${release}${shared_ext}$major'
19440     fi
19441     shlibpath_var=LIBPATH
19442   fi
19443   ;;
19444
19445 amigaos*)
19446   library_names_spec='$libname.ixlibrary $libname.a'
19447   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19448   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'
19449   ;;
19450
19451 beos*)
19452   library_names_spec='${libname}${shared_ext}'
19453   dynamic_linker="$host_os ld.so"
19454   shlibpath_var=LIBRARY_PATH
19455   ;;
19456
19457 bsdi[45]*)
19458   version_type=linux
19459   need_version=no
19460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19461   soname_spec='${libname}${release}${shared_ext}$major'
19462   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19463   shlibpath_var=LD_LIBRARY_PATH
19464   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19465   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19466   # the default ld.so.conf also contains /usr/contrib/lib and
19467   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19468   # libtool to hard-code these into programs
19469   ;;
19470
19471 cygwin* | mingw* | pw32*)
19472   version_type=windows
19473   shrext_cmds=".dll"
19474   need_version=no
19475   need_lib_prefix=no
19476
19477   case $GCC,$host_os in
19478   yes,cygwin* | yes,mingw* | yes,pw32*)
19479     library_names_spec='$libname.dll.a'
19480     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19481     postinstall_cmds='base_file=`basename \${file}`~
19482       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19483       dldir=$destdir/`dirname \$dlpath`~
19484       test -d \$dldir || mkdir -p \$dldir~
19485       $install_prog $dir/$dlname \$dldir/$dlname'
19486     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19487       dlpath=$dir/\$dldll~
19488        $rm \$dlpath'
19489     shlibpath_overrides_runpath=yes
19490
19491     case $host_os in
19492     cygwin*)
19493       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19494       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19495       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19496       ;;
19497     mingw*)
19498       # MinGW DLLs use traditional 'lib' prefix
19499       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19500       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19501       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19502         # It is most probably a Windows format PATH printed by
19503         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19504         # path with ; separators, and with drive letters. We can handle the
19505         # drive letters (cygwin fileutils understands them), so leave them,
19506         # especially as we might pass files found there to a mingw objdump,
19507         # which wouldn't understand a cygwinified path. Ahh.
19508         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19509       else
19510         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19511       fi
19512       ;;
19513     pw32*)
19514       # pw32 DLLs use 'pw' prefix rather than 'lib'
19515       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19516       ;;
19517     esac
19518     ;;
19519
19520   *)
19521     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19522     ;;
19523   esac
19524   dynamic_linker='Win32 ld.exe'
19525   # FIXME: first we should search . and the directory the executable is in
19526   shlibpath_var=PATH
19527   ;;
19528
19529 darwin* | rhapsody*)
19530   dynamic_linker="$host_os dyld"
19531   version_type=darwin
19532   need_lib_prefix=no
19533   need_version=no
19534   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19535   soname_spec='${libname}${release}${major}$shared_ext'
19536   shlibpath_overrides_runpath=yes
19537   shlibpath_var=DYLD_LIBRARY_PATH
19538   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19539   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19540   if test "$GCC" = yes; then
19541     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"`
19542   else
19543     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19544   fi
19545   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19546   ;;
19547
19548 dgux*)
19549   version_type=linux
19550   need_lib_prefix=no
19551   need_version=no
19552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19553   soname_spec='${libname}${release}${shared_ext}$major'
19554   shlibpath_var=LD_LIBRARY_PATH
19555   ;;
19556
19557 freebsd1*)
19558   dynamic_linker=no
19559   ;;
19560
19561 kfreebsd*-gnu)
19562   version_type=linux
19563   need_lib_prefix=no
19564   need_version=no
19565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19566   soname_spec='${libname}${release}${shared_ext}$major'
19567   shlibpath_var=LD_LIBRARY_PATH
19568   shlibpath_overrides_runpath=no
19569   hardcode_into_libs=yes
19570   dynamic_linker='GNU ld.so'
19571   ;;
19572
19573 freebsd* | dragonfly*)
19574   # DragonFly does not have aout.  When/if they implement a new
19575   # versioning mechanism, adjust this.
19576   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19577   version_type=freebsd-$objformat
19578   case $version_type in
19579     freebsd-elf*)
19580       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19581       need_version=no
19582       need_lib_prefix=no
19583       ;;
19584     freebsd-*)
19585       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19586       need_version=yes
19587       ;;
19588   esac
19589   shlibpath_var=LD_LIBRARY_PATH
19590   case $host_os in
19591   freebsd2*)
19592     shlibpath_overrides_runpath=yes
19593     ;;
19594   freebsd3.[01]* | freebsdelf3.[01]*)
19595     shlibpath_overrides_runpath=yes
19596     hardcode_into_libs=yes
19597     ;;
19598   *) # from 3.2 on
19599     shlibpath_overrides_runpath=no
19600     hardcode_into_libs=yes
19601     ;;
19602   esac
19603   ;;
19604
19605 gnu*)
19606   version_type=linux
19607   need_lib_prefix=no
19608   need_version=no
19609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19610   soname_spec='${libname}${release}${shared_ext}$major'
19611   shlibpath_var=LD_LIBRARY_PATH
19612   hardcode_into_libs=yes
19613   ;;
19614
19615 hpux9* | hpux10* | hpux11*)
19616   # Give a soname corresponding to the major version so that dld.sl refuses to
19617   # link against other versions.
19618   version_type=sunos
19619   need_lib_prefix=no
19620   need_version=no
19621   case "$host_cpu" in
19622   ia64*)
19623     shrext_cmds='.so'
19624     hardcode_into_libs=yes
19625     dynamic_linker="$host_os dld.so"
19626     shlibpath_var=LD_LIBRARY_PATH
19627     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19628     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19629     soname_spec='${libname}${release}${shared_ext}$major'
19630     if test "X$HPUX_IA64_MODE" = X32; then
19631       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19632     else
19633       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19634     fi
19635     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19636     ;;
19637    hppa*64*)
19638      shrext_cmds='.sl'
19639      hardcode_into_libs=yes
19640      dynamic_linker="$host_os dld.sl"
19641      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19642      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19643      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19644      soname_spec='${libname}${release}${shared_ext}$major'
19645      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19646      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19647      ;;
19648    *)
19649     shrext_cmds='.sl'
19650     dynamic_linker="$host_os dld.sl"
19651     shlibpath_var=SHLIB_PATH
19652     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19653     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19654     soname_spec='${libname}${release}${shared_ext}$major'
19655     ;;
19656   esac
19657   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19658   postinstall_cmds='chmod 555 $lib'
19659   ;;
19660
19661 irix5* | irix6* | nonstopux*)
19662   case $host_os in
19663     nonstopux*) version_type=nonstopux ;;
19664     *)
19665         if test "$lt_cv_prog_gnu_ld" = yes; then
19666                 version_type=linux
19667         else
19668                 version_type=irix
19669         fi ;;
19670   esac
19671   need_lib_prefix=no
19672   need_version=no
19673   soname_spec='${libname}${release}${shared_ext}$major'
19674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19675   case $host_os in
19676   irix5* | nonstopux*)
19677     libsuff= shlibsuff=
19678     ;;
19679   *)
19680     case $LD in # libtool.m4 will add one of these switches to LD
19681     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19682       libsuff= shlibsuff= libmagic=32-bit;;
19683     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19684       libsuff=32 shlibsuff=N32 libmagic=N32;;
19685     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19686       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19687     *) libsuff= shlibsuff= libmagic=never-match;;
19688     esac
19689     ;;
19690   esac
19691   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19692   shlibpath_overrides_runpath=no
19693   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19694   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19695   hardcode_into_libs=yes
19696   ;;
19697
19698 # No shared lib support for Linux oldld, aout, or coff.
19699 linux*oldld* | linux*aout* | linux*coff*)
19700   dynamic_linker=no
19701   ;;
19702
19703 # This must be Linux ELF.
19704 linux*)
19705   version_type=linux
19706   need_lib_prefix=no
19707   need_version=no
19708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19709   soname_spec='${libname}${release}${shared_ext}$major'
19710   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19711   shlibpath_var=LD_LIBRARY_PATH
19712   shlibpath_overrides_runpath=no
19713   # This implies no fast_install, which is unacceptable.
19714   # Some rework will be needed to allow for fast_install
19715   # before this can be enabled.
19716   hardcode_into_libs=yes
19717
19718   # Append ld.so.conf contents to the search path
19719   if test -f /etc/ld.so.conf; then
19720     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' ' '`
19721     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19722   fi
19723
19724   # We used to test for /lib/ld.so.1 and disable shared libraries on
19725   # powerpc, because MkLinux only supported shared libraries with the
19726   # GNU dynamic linker.  Since this was broken with cross compilers,
19727   # most powerpc-linux boxes support dynamic linking these days and
19728   # people can always --disable-shared, the test was removed, and we
19729   # assume the GNU/Linux dynamic linker is in use.
19730   dynamic_linker='GNU/Linux ld.so'
19731   ;;
19732
19733 knetbsd*-gnu)
19734   version_type=linux
19735   need_lib_prefix=no
19736   need_version=no
19737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19738   soname_spec='${libname}${release}${shared_ext}$major'
19739   shlibpath_var=LD_LIBRARY_PATH
19740   shlibpath_overrides_runpath=no
19741   hardcode_into_libs=yes
19742   dynamic_linker='GNU ld.so'
19743   ;;
19744
19745 netbsd*)
19746   version_type=sunos
19747   need_lib_prefix=no
19748   need_version=no
19749   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19750     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19751     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19752     dynamic_linker='NetBSD (a.out) ld.so'
19753   else
19754     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19755     soname_spec='${libname}${release}${shared_ext}$major'
19756     dynamic_linker='NetBSD ld.elf_so'
19757   fi
19758   shlibpath_var=LD_LIBRARY_PATH
19759   shlibpath_overrides_runpath=yes
19760   hardcode_into_libs=yes
19761   ;;
19762
19763 newsos6)
19764   version_type=linux
19765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19766   shlibpath_var=LD_LIBRARY_PATH
19767   shlibpath_overrides_runpath=yes
19768   ;;
19769
19770 nto-qnx*)
19771   version_type=linux
19772   need_lib_prefix=no
19773   need_version=no
19774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19775   soname_spec='${libname}${release}${shared_ext}$major'
19776   shlibpath_var=LD_LIBRARY_PATH
19777   shlibpath_overrides_runpath=yes
19778   ;;
19779
19780 openbsd*)
19781   version_type=sunos
19782   need_lib_prefix=no
19783   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19784   case $host_os in
19785     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19786     *)                         need_version=no  ;;
19787   esac
19788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19789   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19790   shlibpath_var=LD_LIBRARY_PATH
19791   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19792     case $host_os in
19793       openbsd2.[89] | openbsd2.[89].*)
19794         shlibpath_overrides_runpath=no
19795         ;;
19796       *)
19797         shlibpath_overrides_runpath=yes
19798         ;;
19799       esac
19800   else
19801     shlibpath_overrides_runpath=yes
19802   fi
19803   ;;
19804
19805 os2*)
19806   libname_spec='$name'
19807   shrext_cmds=".dll"
19808   need_lib_prefix=no
19809   library_names_spec='$libname${shared_ext} $libname.a'
19810   dynamic_linker='OS/2 ld.exe'
19811   shlibpath_var=LIBPATH
19812   ;;
19813
19814 osf3* | osf4* | osf5*)
19815   version_type=osf
19816   need_lib_prefix=no
19817   need_version=no
19818   soname_spec='${libname}${release}${shared_ext}$major'
19819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19820   shlibpath_var=LD_LIBRARY_PATH
19821   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19822   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19823   ;;
19824
19825 sco3.2v5*)
19826   version_type=osf
19827   soname_spec='${libname}${release}${shared_ext}$major'
19828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19829   shlibpath_var=LD_LIBRARY_PATH
19830   ;;
19831
19832 solaris*)
19833   version_type=linux
19834   need_lib_prefix=no
19835   need_version=no
19836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19837   soname_spec='${libname}${release}${shared_ext}$major'
19838   shlibpath_var=LD_LIBRARY_PATH
19839   shlibpath_overrides_runpath=yes
19840   hardcode_into_libs=yes
19841   # ldd complains unless libraries are executable
19842   postinstall_cmds='chmod +x $lib'
19843   ;;
19844
19845 sunos4*)
19846   version_type=sunos
19847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19848   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19849   shlibpath_var=LD_LIBRARY_PATH
19850   shlibpath_overrides_runpath=yes
19851   if test "$with_gnu_ld" = yes; then
19852     need_lib_prefix=no
19853   fi
19854   need_version=yes
19855   ;;
19856
19857 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19858   version_type=linux
19859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19860   soname_spec='${libname}${release}${shared_ext}$major'
19861   shlibpath_var=LD_LIBRARY_PATH
19862   case $host_vendor in
19863     sni)
19864       shlibpath_overrides_runpath=no
19865       need_lib_prefix=no
19866       export_dynamic_flag_spec='${wl}-Blargedynsym'
19867       runpath_var=LD_RUN_PATH
19868       ;;
19869     siemens)
19870       need_lib_prefix=no
19871       ;;
19872     motorola)
19873       need_lib_prefix=no
19874       need_version=no
19875       shlibpath_overrides_runpath=no
19876       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19877       ;;
19878   esac
19879   ;;
19880
19881 sysv4*MP*)
19882   if test -d /usr/nec ;then
19883     version_type=linux
19884     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19885     soname_spec='$libname${shared_ext}.$major'
19886     shlibpath_var=LD_LIBRARY_PATH
19887   fi
19888   ;;
19889
19890 uts4*)
19891   version_type=linux
19892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19893   soname_spec='${libname}${release}${shared_ext}$major'
19894   shlibpath_var=LD_LIBRARY_PATH
19895   ;;
19896
19897 *)
19898   dynamic_linker=no
19899   ;;
19900 esac
19901 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19902 echo "${ECHO_T}$dynamic_linker" >&6
19903 test "$dynamic_linker" = no && can_build_shared=no
19904
19905 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19906 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19907 hardcode_action_GCJ=
19908 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19909    test -n "$runpath_var_GCJ" || \
19910    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19911
19912   # We can hardcode non-existant directories.
19913   if test "$hardcode_direct_GCJ" != no &&
19914      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19915      # have to relink, otherwise we might link with an installed library
19916      # when we should be linking with a yet-to-be-installed one
19917      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19918      test "$hardcode_minus_L_GCJ" != no; then
19919     # Linking always hardcodes the temporary library directory.
19920     hardcode_action_GCJ=relink
19921   else
19922     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19923     hardcode_action_GCJ=immediate
19924   fi
19925 else
19926   # We cannot hardcode anything, or else we can only hardcode existing
19927   # directories.
19928   hardcode_action_GCJ=unsupported
19929 fi
19930 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19931 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19932
19933 if test "$hardcode_action_GCJ" = relink; then
19934   # Fast installation is not supported
19935   enable_fast_install=no
19936 elif test "$shlibpath_overrides_runpath" = yes ||
19937      test "$enable_shared" = no; then
19938   # Fast installation is not necessary
19939   enable_fast_install=needless
19940 fi
19941
19942 striplib=
19943 old_striplib=
19944 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19945 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19946 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19947   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19948   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19949   echo "$as_me:$LINENO: result: yes" >&5
19950 echo "${ECHO_T}yes" >&6
19951 else
19952 # FIXME - insert some real tests, host_os isn't really good enough
19953   case $host_os in
19954    darwin*)
19955        if test -n "$STRIP" ; then
19956          striplib="$STRIP -x"
19957          echo "$as_me:$LINENO: result: yes" >&5
19958 echo "${ECHO_T}yes" >&6
19959        else
19960   echo "$as_me:$LINENO: result: no" >&5
19961 echo "${ECHO_T}no" >&6
19962 fi
19963        ;;
19964    *)
19965   echo "$as_me:$LINENO: result: no" >&5
19966 echo "${ECHO_T}no" >&6
19967     ;;
19968   esac
19969 fi
19970
19971 if test "x$enable_dlopen" != xyes; then
19972   enable_dlopen=unknown
19973   enable_dlopen_self=unknown
19974   enable_dlopen_self_static=unknown
19975 else
19976   lt_cv_dlopen=no
19977   lt_cv_dlopen_libs=
19978
19979   case $host_os in
19980   beos*)
19981     lt_cv_dlopen="load_add_on"
19982     lt_cv_dlopen_libs=
19983     lt_cv_dlopen_self=yes
19984     ;;
19985
19986   mingw* | pw32*)
19987     lt_cv_dlopen="LoadLibrary"
19988     lt_cv_dlopen_libs=
19989    ;;
19990
19991   cygwin*)
19992     lt_cv_dlopen="dlopen"
19993     lt_cv_dlopen_libs=
19994    ;;
19995
19996   darwin*)
19997   # if libdl is installed we need to link against it
19998     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19999 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20000 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20001   echo $ECHO_N "(cached) $ECHO_C" >&6
20002 else
20003   ac_check_lib_save_LIBS=$LIBS
20004 LIBS="-ldl  $LIBS"
20005 cat >conftest.$ac_ext <<_ACEOF
20006 /* confdefs.h.  */
20007 _ACEOF
20008 cat confdefs.h >>conftest.$ac_ext
20009 cat >>conftest.$ac_ext <<_ACEOF
20010 /* end confdefs.h.  */
20011
20012 /* Override any gcc2 internal prototype to avoid an error.  */
20013 #ifdef __cplusplus
20014 extern "C"
20015 #endif
20016 /* We use char because int might match the return type of a gcc2
20017    builtin and then its argument prototype would still apply.  */
20018 char dlopen ();
20019 int
20020 main ()
20021 {
20022 dlopen ();
20023   ;
20024   return 0;
20025 }
20026 _ACEOF
20027 rm -f conftest.$ac_objext conftest$ac_exeext
20028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20029   (eval $ac_link) 2>conftest.er1
20030   ac_status=$?
20031   grep -v '^ *+' conftest.er1 >conftest.err
20032   rm -f conftest.er1
20033   cat conftest.err >&5
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); } &&
20036          { ac_try='test -z "$ac_c_werror_flag"
20037                          || test ! -s conftest.err'
20038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20039   (eval $ac_try) 2>&5
20040   ac_status=$?
20041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042   (exit $ac_status); }; } &&
20043          { ac_try='test -s conftest$ac_exeext'
20044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20045   (eval $ac_try) 2>&5
20046   ac_status=$?
20047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048   (exit $ac_status); }; }; then
20049   ac_cv_lib_dl_dlopen=yes
20050 else
20051   echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20053
20054 ac_cv_lib_dl_dlopen=no
20055 fi
20056 rm -f conftest.err conftest.$ac_objext \
20057       conftest$ac_exeext conftest.$ac_ext
20058 LIBS=$ac_check_lib_save_LIBS
20059 fi
20060 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20061 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20062 if test $ac_cv_lib_dl_dlopen = yes; then
20063   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20064 else
20065
20066     lt_cv_dlopen="dyld"
20067     lt_cv_dlopen_libs=
20068     lt_cv_dlopen_self=yes
20069
20070 fi
20071
20072    ;;
20073
20074   *)
20075     echo "$as_me:$LINENO: checking for shl_load" >&5
20076 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20077 if test "${ac_cv_func_shl_load+set}" = set; then
20078   echo $ECHO_N "(cached) $ECHO_C" >&6
20079 else
20080   cat >conftest.$ac_ext <<_ACEOF
20081 /* confdefs.h.  */
20082 _ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h.  */
20086 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20088 #define shl_load innocuous_shl_load
20089
20090 /* System header to define __stub macros and hopefully few prototypes,
20091     which can conflict with char shl_load (); below.
20092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20093     <limits.h> exists even on freestanding compilers.  */
20094
20095 #ifdef __STDC__
20096 # include <limits.h>
20097 #else
20098 # include <assert.h>
20099 #endif
20100
20101 #undef shl_load
20102
20103 /* Override any gcc2 internal prototype to avoid an error.  */
20104 #ifdef __cplusplus
20105 extern "C"
20106 {
20107 #endif
20108 /* We use char because int might match the return type of a gcc2
20109    builtin and then its argument prototype would still apply.  */
20110 char shl_load ();
20111 /* The GNU C library defines this for functions which it implements
20112     to always fail with ENOSYS.  Some functions are actually named
20113     something starting with __ and the normal name is an alias.  */
20114 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20115 choke me
20116 #else
20117 char (*f) () = shl_load;
20118 #endif
20119 #ifdef __cplusplus
20120 }
20121 #endif
20122
20123 int
20124 main ()
20125 {
20126 return f != shl_load;
20127   ;
20128   return 0;
20129 }
20130 _ACEOF
20131 rm -f conftest.$ac_objext conftest$ac_exeext
20132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20133   (eval $ac_link) 2>conftest.er1
20134   ac_status=$?
20135   grep -v '^ *+' conftest.er1 >conftest.err
20136   rm -f conftest.er1
20137   cat conftest.err >&5
20138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139   (exit $ac_status); } &&
20140          { ac_try='test -z "$ac_c_werror_flag"
20141                          || test ! -s conftest.err'
20142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143   (eval $ac_try) 2>&5
20144   ac_status=$?
20145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146   (exit $ac_status); }; } &&
20147          { ac_try='test -s conftest$ac_exeext'
20148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20149   (eval $ac_try) 2>&5
20150   ac_status=$?
20151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152   (exit $ac_status); }; }; then
20153   ac_cv_func_shl_load=yes
20154 else
20155   echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20157
20158 ac_cv_func_shl_load=no
20159 fi
20160 rm -f conftest.err conftest.$ac_objext \
20161       conftest$ac_exeext conftest.$ac_ext
20162 fi
20163 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20164 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20165 if test $ac_cv_func_shl_load = yes; then
20166   lt_cv_dlopen="shl_load"
20167 else
20168   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20169 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20170 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20171   echo $ECHO_N "(cached) $ECHO_C" >&6
20172 else
20173   ac_check_lib_save_LIBS=$LIBS
20174 LIBS="-ldld  $LIBS"
20175 cat >conftest.$ac_ext <<_ACEOF
20176 /* confdefs.h.  */
20177 _ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h.  */
20181
20182 /* Override any gcc2 internal prototype to avoid an error.  */
20183 #ifdef __cplusplus
20184 extern "C"
20185 #endif
20186 /* We use char because int might match the return type of a gcc2
20187    builtin and then its argument prototype would still apply.  */
20188 char shl_load ();
20189 int
20190 main ()
20191 {
20192 shl_load ();
20193   ;
20194   return 0;
20195 }
20196 _ACEOF
20197 rm -f conftest.$ac_objext conftest$ac_exeext
20198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20199   (eval $ac_link) 2>conftest.er1
20200   ac_status=$?
20201   grep -v '^ *+' conftest.er1 >conftest.err
20202   rm -f conftest.er1
20203   cat conftest.err >&5
20204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205   (exit $ac_status); } &&
20206          { ac_try='test -z "$ac_c_werror_flag"
20207                          || test ! -s conftest.err'
20208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209   (eval $ac_try) 2>&5
20210   ac_status=$?
20211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212   (exit $ac_status); }; } &&
20213          { ac_try='test -s conftest$ac_exeext'
20214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215   (eval $ac_try) 2>&5
20216   ac_status=$?
20217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218   (exit $ac_status); }; }; then
20219   ac_cv_lib_dld_shl_load=yes
20220 else
20221   echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20223
20224 ac_cv_lib_dld_shl_load=no
20225 fi
20226 rm -f conftest.err conftest.$ac_objext \
20227       conftest$ac_exeext conftest.$ac_ext
20228 LIBS=$ac_check_lib_save_LIBS
20229 fi
20230 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20231 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20232 if test $ac_cv_lib_dld_shl_load = yes; then
20233   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20234 else
20235   echo "$as_me:$LINENO: checking for dlopen" >&5
20236 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20237 if test "${ac_cv_func_dlopen+set}" = set; then
20238   echo $ECHO_N "(cached) $ECHO_C" >&6
20239 else
20240   cat >conftest.$ac_ext <<_ACEOF
20241 /* confdefs.h.  */
20242 _ACEOF
20243 cat confdefs.h >>conftest.$ac_ext
20244 cat >>conftest.$ac_ext <<_ACEOF
20245 /* end confdefs.h.  */
20246 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20247    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20248 #define dlopen innocuous_dlopen
20249
20250 /* System header to define __stub macros and hopefully few prototypes,
20251     which can conflict with char dlopen (); below.
20252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20253     <limits.h> exists even on freestanding compilers.  */
20254
20255 #ifdef __STDC__
20256 # include <limits.h>
20257 #else
20258 # include <assert.h>
20259 #endif
20260
20261 #undef dlopen
20262
20263 /* Override any gcc2 internal prototype to avoid an error.  */
20264 #ifdef __cplusplus
20265 extern "C"
20266 {
20267 #endif
20268 /* We use char because int might match the return type of a gcc2
20269    builtin and then its argument prototype would still apply.  */
20270 char dlopen ();
20271 /* The GNU C library defines this for functions which it implements
20272     to always fail with ENOSYS.  Some functions are actually named
20273     something starting with __ and the normal name is an alias.  */
20274 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20275 choke me
20276 #else
20277 char (*f) () = dlopen;
20278 #endif
20279 #ifdef __cplusplus
20280 }
20281 #endif
20282
20283 int
20284 main ()
20285 {
20286 return f != dlopen;
20287   ;
20288   return 0;
20289 }
20290 _ACEOF
20291 rm -f conftest.$ac_objext conftest$ac_exeext
20292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20293   (eval $ac_link) 2>conftest.er1
20294   ac_status=$?
20295   grep -v '^ *+' conftest.er1 >conftest.err
20296   rm -f conftest.er1
20297   cat conftest.err >&5
20298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299   (exit $ac_status); } &&
20300          { ac_try='test -z "$ac_c_werror_flag"
20301                          || test ! -s conftest.err'
20302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303   (eval $ac_try) 2>&5
20304   ac_status=$?
20305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306   (exit $ac_status); }; } &&
20307          { ac_try='test -s conftest$ac_exeext'
20308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309   (eval $ac_try) 2>&5
20310   ac_status=$?
20311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312   (exit $ac_status); }; }; then
20313   ac_cv_func_dlopen=yes
20314 else
20315   echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20317
20318 ac_cv_func_dlopen=no
20319 fi
20320 rm -f conftest.err conftest.$ac_objext \
20321       conftest$ac_exeext conftest.$ac_ext
20322 fi
20323 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20324 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20325 if test $ac_cv_func_dlopen = yes; then
20326   lt_cv_dlopen="dlopen"
20327 else
20328   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20329 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20330 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20331   echo $ECHO_N "(cached) $ECHO_C" >&6
20332 else
20333   ac_check_lib_save_LIBS=$LIBS
20334 LIBS="-ldl  $LIBS"
20335 cat >conftest.$ac_ext <<_ACEOF
20336 /* confdefs.h.  */
20337 _ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h.  */
20341
20342 /* Override any gcc2 internal prototype to avoid an error.  */
20343 #ifdef __cplusplus
20344 extern "C"
20345 #endif
20346 /* We use char because int might match the return type of a gcc2
20347    builtin and then its argument prototype would still apply.  */
20348 char dlopen ();
20349 int
20350 main ()
20351 {
20352 dlopen ();
20353   ;
20354   return 0;
20355 }
20356 _ACEOF
20357 rm -f conftest.$ac_objext conftest$ac_exeext
20358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20359   (eval $ac_link) 2>conftest.er1
20360   ac_status=$?
20361   grep -v '^ *+' conftest.er1 >conftest.err
20362   rm -f conftest.er1
20363   cat conftest.err >&5
20364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365   (exit $ac_status); } &&
20366          { ac_try='test -z "$ac_c_werror_flag"
20367                          || test ! -s conftest.err'
20368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369   (eval $ac_try) 2>&5
20370   ac_status=$?
20371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372   (exit $ac_status); }; } &&
20373          { ac_try='test -s conftest$ac_exeext'
20374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375   (eval $ac_try) 2>&5
20376   ac_status=$?
20377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378   (exit $ac_status); }; }; then
20379   ac_cv_lib_dl_dlopen=yes
20380 else
20381   echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20383
20384 ac_cv_lib_dl_dlopen=no
20385 fi
20386 rm -f conftest.err conftest.$ac_objext \
20387       conftest$ac_exeext conftest.$ac_ext
20388 LIBS=$ac_check_lib_save_LIBS
20389 fi
20390 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20391 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20392 if test $ac_cv_lib_dl_dlopen = yes; then
20393   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20394 else
20395   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20396 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20397 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20398   echo $ECHO_N "(cached) $ECHO_C" >&6
20399 else
20400   ac_check_lib_save_LIBS=$LIBS
20401 LIBS="-lsvld  $LIBS"
20402 cat >conftest.$ac_ext <<_ACEOF
20403 /* confdefs.h.  */
20404 _ACEOF
20405 cat confdefs.h >>conftest.$ac_ext
20406 cat >>conftest.$ac_ext <<_ACEOF
20407 /* end confdefs.h.  */
20408
20409 /* Override any gcc2 internal prototype to avoid an error.  */
20410 #ifdef __cplusplus
20411 extern "C"
20412 #endif
20413 /* We use char because int might match the return type of a gcc2
20414    builtin and then its argument prototype would still apply.  */
20415 char dlopen ();
20416 int
20417 main ()
20418 {
20419 dlopen ();
20420   ;
20421   return 0;
20422 }
20423 _ACEOF
20424 rm -f conftest.$ac_objext conftest$ac_exeext
20425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20426   (eval $ac_link) 2>conftest.er1
20427   ac_status=$?
20428   grep -v '^ *+' conftest.er1 >conftest.err
20429   rm -f conftest.er1
20430   cat conftest.err >&5
20431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432   (exit $ac_status); } &&
20433          { ac_try='test -z "$ac_c_werror_flag"
20434                          || test ! -s conftest.err'
20435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20436   (eval $ac_try) 2>&5
20437   ac_status=$?
20438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439   (exit $ac_status); }; } &&
20440          { ac_try='test -s conftest$ac_exeext'
20441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20442   (eval $ac_try) 2>&5
20443   ac_status=$?
20444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445   (exit $ac_status); }; }; then
20446   ac_cv_lib_svld_dlopen=yes
20447 else
20448   echo "$as_me: failed program was:" >&5
20449 sed 's/^/| /' conftest.$ac_ext >&5
20450
20451 ac_cv_lib_svld_dlopen=no
20452 fi
20453 rm -f conftest.err conftest.$ac_objext \
20454       conftest$ac_exeext conftest.$ac_ext
20455 LIBS=$ac_check_lib_save_LIBS
20456 fi
20457 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20458 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20459 if test $ac_cv_lib_svld_dlopen = yes; then
20460   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20461 else
20462   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20463 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20464 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20465   echo $ECHO_N "(cached) $ECHO_C" >&6
20466 else
20467   ac_check_lib_save_LIBS=$LIBS
20468 LIBS="-ldld  $LIBS"
20469 cat >conftest.$ac_ext <<_ACEOF
20470 /* confdefs.h.  */
20471 _ACEOF
20472 cat confdefs.h >>conftest.$ac_ext
20473 cat >>conftest.$ac_ext <<_ACEOF
20474 /* end confdefs.h.  */
20475
20476 /* Override any gcc2 internal prototype to avoid an error.  */
20477 #ifdef __cplusplus
20478 extern "C"
20479 #endif
20480 /* We use char because int might match the return type of a gcc2
20481    builtin and then its argument prototype would still apply.  */
20482 char dld_link ();
20483 int
20484 main ()
20485 {
20486 dld_link ();
20487   ;
20488   return 0;
20489 }
20490 _ACEOF
20491 rm -f conftest.$ac_objext conftest$ac_exeext
20492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20493   (eval $ac_link) 2>conftest.er1
20494   ac_status=$?
20495   grep -v '^ *+' conftest.er1 >conftest.err
20496   rm -f conftest.er1
20497   cat conftest.err >&5
20498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499   (exit $ac_status); } &&
20500          { ac_try='test -z "$ac_c_werror_flag"
20501                          || test ! -s conftest.err'
20502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503   (eval $ac_try) 2>&5
20504   ac_status=$?
20505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506   (exit $ac_status); }; } &&
20507          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20513   ac_cv_lib_dld_dld_link=yes
20514 else
20515   echo "$as_me: failed program was:" >&5
20516 sed 's/^/| /' conftest.$ac_ext >&5
20517
20518 ac_cv_lib_dld_dld_link=no
20519 fi
20520 rm -f conftest.err conftest.$ac_objext \
20521       conftest$ac_exeext conftest.$ac_ext
20522 LIBS=$ac_check_lib_save_LIBS
20523 fi
20524 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20525 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20526 if test $ac_cv_lib_dld_dld_link = yes; then
20527   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20528 fi
20529
20530
20531 fi
20532
20533
20534 fi
20535
20536
20537 fi
20538
20539
20540 fi
20541
20542
20543 fi
20544
20545     ;;
20546   esac
20547
20548   if test "x$lt_cv_dlopen" != xno; then
20549     enable_dlopen=yes
20550   else
20551     enable_dlopen=no
20552   fi
20553
20554   case $lt_cv_dlopen in
20555   dlopen)
20556     save_CPPFLAGS="$CPPFLAGS"
20557     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20558
20559     save_LDFLAGS="$LDFLAGS"
20560     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20561
20562     save_LIBS="$LIBS"
20563     LIBS="$lt_cv_dlopen_libs $LIBS"
20564
20565     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20566 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20567 if test "${lt_cv_dlopen_self+set}" = set; then
20568   echo $ECHO_N "(cached) $ECHO_C" >&6
20569 else
20570           if test "$cross_compiling" = yes; then :
20571   lt_cv_dlopen_self=cross
20572 else
20573   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20574   lt_status=$lt_dlunknown
20575   cat > conftest.$ac_ext <<EOF
20576 #line 20576 "configure"
20577 #include "confdefs.h"
20578
20579 #if HAVE_DLFCN_H
20580 #include <dlfcn.h>
20581 #endif
20582
20583 #include <stdio.h>
20584
20585 #ifdef RTLD_GLOBAL
20586 #  define LT_DLGLOBAL           RTLD_GLOBAL
20587 #else
20588 #  ifdef DL_GLOBAL
20589 #    define LT_DLGLOBAL         DL_GLOBAL
20590 #  else
20591 #    define LT_DLGLOBAL         0
20592 #  endif
20593 #endif
20594
20595 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20596    find out it does not work in some platform. */
20597 #ifndef LT_DLLAZY_OR_NOW
20598 #  ifdef RTLD_LAZY
20599 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20600 #  else
20601 #    ifdef DL_LAZY
20602 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20603 #    else
20604 #      ifdef RTLD_NOW
20605 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20606 #      else
20607 #        ifdef DL_NOW
20608 #          define LT_DLLAZY_OR_NOW      DL_NOW
20609 #        else
20610 #          define LT_DLLAZY_OR_NOW      0
20611 #        endif
20612 #      endif
20613 #    endif
20614 #  endif
20615 #endif
20616
20617 #ifdef __cplusplus
20618 extern "C" void exit (int);
20619 #endif
20620
20621 void fnord() { int i=42;}
20622 int main ()
20623 {
20624   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20625   int status = $lt_dlunknown;
20626
20627   if (self)
20628     {
20629       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20630       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20631       /* dlclose (self); */
20632     }
20633
20634     exit (status);
20635 }
20636 EOF
20637   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20638   (eval $ac_link) 2>&5
20639   ac_status=$?
20640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20642     (./conftest; exit; ) 2>/dev/null
20643     lt_status=$?
20644     case x$lt_status in
20645       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20646       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20647       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20648     esac
20649   else :
20650     # compilation failed
20651     lt_cv_dlopen_self=no
20652   fi
20653 fi
20654 rm -fr conftest*
20655
20656
20657 fi
20658 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20659 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20660
20661     if test "x$lt_cv_dlopen_self" = xyes; then
20662       LDFLAGS="$LDFLAGS $link_static_flag"
20663       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20664 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20665 if test "${lt_cv_dlopen_self_static+set}" = set; then
20666   echo $ECHO_N "(cached) $ECHO_C" >&6
20667 else
20668           if test "$cross_compiling" = yes; then :
20669   lt_cv_dlopen_self_static=cross
20670 else
20671   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20672   lt_status=$lt_dlunknown
20673   cat > conftest.$ac_ext <<EOF
20674 #line 20674 "configure"
20675 #include "confdefs.h"
20676
20677 #if HAVE_DLFCN_H
20678 #include <dlfcn.h>
20679 #endif
20680
20681 #include <stdio.h>
20682
20683 #ifdef RTLD_GLOBAL
20684 #  define LT_DLGLOBAL           RTLD_GLOBAL
20685 #else
20686 #  ifdef DL_GLOBAL
20687 #    define LT_DLGLOBAL         DL_GLOBAL
20688 #  else
20689 #    define LT_DLGLOBAL         0
20690 #  endif
20691 #endif
20692
20693 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20694    find out it does not work in some platform. */
20695 #ifndef LT_DLLAZY_OR_NOW
20696 #  ifdef RTLD_LAZY
20697 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20698 #  else
20699 #    ifdef DL_LAZY
20700 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20701 #    else
20702 #      ifdef RTLD_NOW
20703 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20704 #      else
20705 #        ifdef DL_NOW
20706 #          define LT_DLLAZY_OR_NOW      DL_NOW
20707 #        else
20708 #          define LT_DLLAZY_OR_NOW      0
20709 #        endif
20710 #      endif
20711 #    endif
20712 #  endif
20713 #endif
20714
20715 #ifdef __cplusplus
20716 extern "C" void exit (int);
20717 #endif
20718
20719 void fnord() { int i=42;}
20720 int main ()
20721 {
20722   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20723   int status = $lt_dlunknown;
20724
20725   if (self)
20726     {
20727       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20728       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20729       /* dlclose (self); */
20730     }
20731
20732     exit (status);
20733 }
20734 EOF
20735   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20736   (eval $ac_link) 2>&5
20737   ac_status=$?
20738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20740     (./conftest; exit; ) 2>/dev/null
20741     lt_status=$?
20742     case x$lt_status in
20743       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20744       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20745       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20746     esac
20747   else :
20748     # compilation failed
20749     lt_cv_dlopen_self_static=no
20750   fi
20751 fi
20752 rm -fr conftest*
20753
20754
20755 fi
20756 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20757 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20758     fi
20759
20760     CPPFLAGS="$save_CPPFLAGS"
20761     LDFLAGS="$save_LDFLAGS"
20762     LIBS="$save_LIBS"
20763     ;;
20764   esac
20765
20766   case $lt_cv_dlopen_self in
20767   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20768   *) enable_dlopen_self=unknown ;;
20769   esac
20770
20771   case $lt_cv_dlopen_self_static in
20772   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20773   *) enable_dlopen_self_static=unknown ;;
20774   esac
20775 fi
20776
20777
20778 # The else clause should only fire when bootstrapping the
20779 # libtool distribution, otherwise you forgot to ship ltmain.sh
20780 # with your package, and you will get complaints that there are
20781 # no rules to generate ltmain.sh.
20782 if test -f "$ltmain"; then
20783   # See if we are running on zsh, and set the options which allow our commands through
20784   # without removal of \ escapes.
20785   if test -n "${ZSH_VERSION+set}" ; then
20786     setopt NO_GLOB_SUBST
20787   fi
20788   # Now quote all the things that may contain metacharacters while being
20789   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20790   # variables and quote the copies for generation of the libtool script.
20791   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20792     SED SHELL STRIP \
20793     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20794     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20795     deplibs_check_method reload_flag reload_cmds need_locks \
20796     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20797     lt_cv_sys_global_symbol_to_c_name_address \
20798     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20799     old_postinstall_cmds old_postuninstall_cmds \
20800     compiler_GCJ \
20801     CC_GCJ \
20802     LD_GCJ \
20803     lt_prog_compiler_wl_GCJ \
20804     lt_prog_compiler_pic_GCJ \
20805     lt_prog_compiler_static_GCJ \
20806     lt_prog_compiler_no_builtin_flag_GCJ \
20807     export_dynamic_flag_spec_GCJ \
20808     thread_safe_flag_spec_GCJ \
20809     whole_archive_flag_spec_GCJ \
20810     enable_shared_with_static_runtimes_GCJ \
20811     old_archive_cmds_GCJ \
20812     old_archive_from_new_cmds_GCJ \
20813     predep_objects_GCJ \
20814     postdep_objects_GCJ \
20815     predeps_GCJ \
20816     postdeps_GCJ \
20817     compiler_lib_search_path_GCJ \
20818     archive_cmds_GCJ \
20819     archive_expsym_cmds_GCJ \
20820     postinstall_cmds_GCJ \
20821     postuninstall_cmds_GCJ \
20822     old_archive_from_expsyms_cmds_GCJ \
20823     allow_undefined_flag_GCJ \
20824     no_undefined_flag_GCJ \
20825     export_symbols_cmds_GCJ \
20826     hardcode_libdir_flag_spec_GCJ \
20827     hardcode_libdir_flag_spec_ld_GCJ \
20828     hardcode_libdir_separator_GCJ \
20829     hardcode_automatic_GCJ \
20830     module_cmds_GCJ \
20831     module_expsym_cmds_GCJ \
20832     lt_cv_prog_compiler_c_o_GCJ \
20833     exclude_expsyms_GCJ \
20834     include_expsyms_GCJ; do
20835
20836     case $var in
20837     old_archive_cmds_GCJ | \
20838     old_archive_from_new_cmds_GCJ | \
20839     archive_cmds_GCJ | \
20840     archive_expsym_cmds_GCJ | \
20841     module_cmds_GCJ | \
20842     module_expsym_cmds_GCJ | \
20843     old_archive_from_expsyms_cmds_GCJ | \
20844     export_symbols_cmds_GCJ | \
20845     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20846     postinstall_cmds | postuninstall_cmds | \
20847     old_postinstall_cmds | old_postuninstall_cmds | \
20848     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20849       # Double-quote double-evaled strings.
20850       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20851       ;;
20852     *)
20853       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20854       ;;
20855     esac
20856   done
20857
20858   case $lt_echo in
20859   *'\$0 --fallback-echo"')
20860     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20861     ;;
20862   esac
20863
20864 cfgfile="$ofile"
20865
20866   cat <<__EOF__ >> "$cfgfile"
20867 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20868
20869 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20870
20871 # Shell to use when invoking shell scripts.
20872 SHELL=$lt_SHELL
20873
20874 # Whether or not to build shared libraries.
20875 build_libtool_libs=$enable_shared
20876
20877 # Whether or not to build static libraries.
20878 build_old_libs=$enable_static
20879
20880 # Whether or not to add -lc for building shared libraries.
20881 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20882
20883 # Whether or not to disallow shared libs when runtime libs are static
20884 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20885
20886 # Whether or not to optimize for fast installation.
20887 fast_install=$enable_fast_install
20888
20889 # The host system.
20890 host_alias=$host_alias
20891 host=$host
20892 host_os=$host_os
20893
20894 # The build system.
20895 build_alias=$build_alias
20896 build=$build
20897 build_os=$build_os
20898
20899 # An echo program that does not interpret backslashes.
20900 echo=$lt_echo
20901
20902 # The archiver.
20903 AR=$lt_AR
20904 AR_FLAGS=$lt_AR_FLAGS
20905
20906 # A C compiler.
20907 LTCC=$lt_LTCC
20908
20909 # A language-specific compiler.
20910 CC=$lt_compiler_GCJ
20911
20912 # Is the compiler the GNU C compiler?
20913 with_gcc=$GCC_GCJ
20914
20915 # An ERE matcher.
20916 EGREP=$lt_EGREP
20917
20918 # The linker used to build libraries.
20919 LD=$lt_LD_GCJ
20920
20921 # Whether we need hard or soft links.
20922 LN_S=$lt_LN_S
20923
20924 # A BSD-compatible nm program.
20925 NM=$lt_NM
20926
20927 # A symbol stripping program
20928 STRIP=$lt_STRIP
20929
20930 # Used to examine libraries when file_magic_cmd begins "file"
20931 MAGIC_CMD=$MAGIC_CMD
20932
20933 # Used on cygwin: DLL creation program.
20934 DLLTOOL="$DLLTOOL"
20935
20936 # Used on cygwin: object dumper.
20937 OBJDUMP="$OBJDUMP"
20938
20939 # Used on cygwin: assembler.
20940 AS="$AS"
20941
20942 # The name of the directory that contains temporary libtool files.
20943 objdir=$objdir
20944
20945 # How to create reloadable object files.
20946 reload_flag=$lt_reload_flag
20947 reload_cmds=$lt_reload_cmds
20948
20949 # How to pass a linker flag through the compiler.
20950 wl=$lt_lt_prog_compiler_wl_GCJ
20951
20952 # Object file suffix (normally "o").
20953 objext="$ac_objext"
20954
20955 # Old archive suffix (normally "a").
20956 libext="$libext"
20957
20958 # Shared library suffix (normally ".so").
20959 shrext_cmds='$shrext_cmds'
20960
20961 # Executable file suffix (normally "").
20962 exeext="$exeext"
20963
20964 # Additional compiler flags for building library objects.
20965 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20966 pic_mode=$pic_mode
20967
20968 # What is the maximum length of a command?
20969 max_cmd_len=$lt_cv_sys_max_cmd_len
20970
20971 # Does compiler simultaneously support -c and -o options?
20972 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20973
20974 # Must we lock files when doing compilation?
20975 need_locks=$lt_need_locks
20976
20977 # Do we need the lib prefix for modules?
20978 need_lib_prefix=$need_lib_prefix
20979
20980 # Do we need a version for libraries?
20981 need_version=$need_version
20982
20983 # Whether dlopen is supported.
20984 dlopen_support=$enable_dlopen
20985
20986 # Whether dlopen of programs is supported.
20987 dlopen_self=$enable_dlopen_self
20988
20989 # Whether dlopen of statically linked programs is supported.
20990 dlopen_self_static=$enable_dlopen_self_static
20991
20992 # Compiler flag to prevent dynamic linking.
20993 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20994
20995 # Compiler flag to turn off builtin functions.
20996 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20997
20998 # Compiler flag to allow reflexive dlopens.
20999 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21000
21001 # Compiler flag to generate shared objects directly from archives.
21002 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21003
21004 # Compiler flag to generate thread-safe objects.
21005 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21006
21007 # Library versioning type.
21008 version_type=$version_type
21009
21010 # Format of library name prefix.
21011 libname_spec=$lt_libname_spec
21012
21013 # List of archive names.  First name is the real one, the rest are links.
21014 # The last name is the one that the linker finds with -lNAME.
21015 library_names_spec=$lt_library_names_spec
21016
21017 # The coded name of the library, if different from the real name.
21018 soname_spec=$lt_soname_spec
21019
21020 # Commands used to build and install an old-style archive.
21021 RANLIB=$lt_RANLIB
21022 old_archive_cmds=$lt_old_archive_cmds_GCJ
21023 old_postinstall_cmds=$lt_old_postinstall_cmds
21024 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21025
21026 # Create an old-style archive from a shared archive.
21027 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21028
21029 # Create a temporary old-style archive to link instead of a shared archive.
21030 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21031
21032 # Commands used to build and install a shared archive.
21033 archive_cmds=$lt_archive_cmds_GCJ
21034 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21035 postinstall_cmds=$lt_postinstall_cmds
21036 postuninstall_cmds=$lt_postuninstall_cmds
21037
21038 # Commands used to build a loadable module (assumed same as above if empty)
21039 module_cmds=$lt_module_cmds_GCJ
21040 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21041
21042 # Commands to strip libraries.
21043 old_striplib=$lt_old_striplib
21044 striplib=$lt_striplib
21045
21046 # Dependencies to place before the objects being linked to create a
21047 # shared library.
21048 predep_objects=$lt_predep_objects_GCJ
21049
21050 # Dependencies to place after the objects being linked to create a
21051 # shared library.
21052 postdep_objects=$lt_postdep_objects_GCJ
21053
21054 # Dependencies to place before the objects being linked to create a
21055 # shared library.
21056 predeps=$lt_predeps_GCJ
21057
21058 # Dependencies to place after the objects being linked to create a
21059 # shared library.
21060 postdeps=$lt_postdeps_GCJ
21061
21062 # The library search path used internally by the compiler when linking
21063 # a shared library.
21064 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21065
21066 # Method to check whether dependent libraries are shared objects.
21067 deplibs_check_method=$lt_deplibs_check_method
21068
21069 # Command to use when deplibs_check_method == file_magic.
21070 file_magic_cmd=$lt_file_magic_cmd
21071
21072 # Flag that allows shared libraries with undefined symbols to be built.
21073 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21074
21075 # Flag that forces no undefined symbols.
21076 no_undefined_flag=$lt_no_undefined_flag_GCJ
21077
21078 # Commands used to finish a libtool library installation in a directory.
21079 finish_cmds=$lt_finish_cmds
21080
21081 # Same as above, but a single script fragment to be evaled but not shown.
21082 finish_eval=$lt_finish_eval
21083
21084 # Take the output of nm and produce a listing of raw symbols and C names.
21085 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21086
21087 # Transform the output of nm in a proper C declaration
21088 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21089
21090 # Transform the output of nm in a C name address pair
21091 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21092
21093 # This is the shared library runtime path variable.
21094 runpath_var=$runpath_var
21095
21096 # This is the shared library path variable.
21097 shlibpath_var=$shlibpath_var
21098
21099 # Is shlibpath searched before the hard-coded library search path?
21100 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21101
21102 # How to hardcode a shared library path into an executable.
21103 hardcode_action=$hardcode_action_GCJ
21104
21105 # Whether we should hardcode library paths into libraries.
21106 hardcode_into_libs=$hardcode_into_libs
21107
21108 # Flag to hardcode \$libdir into a binary during linking.
21109 # This must work even if \$libdir does not exist.
21110 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21111
21112 # If ld is used when linking, flag to hardcode \$libdir into
21113 # a binary during linking. This must work even if \$libdir does
21114 # not exist.
21115 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21116
21117 # Whether we need a single -rpath flag with a separated argument.
21118 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21119
21120 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21121 # resulting binary.
21122 hardcode_direct=$hardcode_direct_GCJ
21123
21124 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21125 # resulting binary.
21126 hardcode_minus_L=$hardcode_minus_L_GCJ
21127
21128 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21129 # the resulting binary.
21130 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21131
21132 # Set to yes if building a shared library automatically hardcodes DIR into the library
21133 # and all subsequent libraries and executables linked against it.
21134 hardcode_automatic=$hardcode_automatic_GCJ
21135
21136 # Variables whose values should be saved in libtool wrapper scripts and
21137 # restored at relink time.
21138 variables_saved_for_relink="$variables_saved_for_relink"
21139
21140 # Whether libtool must link a program against all its dependency libraries.
21141 link_all_deplibs=$link_all_deplibs_GCJ
21142
21143 # Compile-time system search path for libraries
21144 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21145
21146 # Run-time system search path for libraries
21147 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21148
21149 # Fix the shell variable \$srcfile for the compiler.
21150 fix_srcfile_path="$fix_srcfile_path_GCJ"
21151
21152 # Set to yes if exported symbols are required.
21153 always_export_symbols=$always_export_symbols_GCJ
21154
21155 # The commands to list exported symbols.
21156 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21157
21158 # The commands to extract the exported symbol list from a shared archive.
21159 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21160
21161 # Symbols that should not be listed in the preloaded symbols.
21162 exclude_expsyms=$lt_exclude_expsyms_GCJ
21163
21164 # Symbols that must always be exported.
21165 include_expsyms=$lt_include_expsyms_GCJ
21166
21167 # ### END LIBTOOL TAG CONFIG: $tagname
21168
21169 __EOF__
21170
21171
21172 else
21173   # If there is no Makefile yet, we rely on a make rule to execute
21174   # `config.status --recheck' to rerun these tests and create the
21175   # libtool script then.
21176   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21177   if test -f "$ltmain_in"; then
21178     test -f Makefile && make "$ltmain"
21179   fi
21180 fi
21181
21182
21183 ac_ext=c
21184 ac_cpp='$CPP $CPPFLAGS'
21185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21188
21189 CC="$lt_save_CC"
21190
21191         else
21192           tagname=""
21193         fi
21194         ;;
21195
21196       RC)
21197
21198
21199
21200 # Source file extension for RC test sources.
21201 ac_ext=rc
21202
21203 # Object file extension for compiled RC test sources.
21204 objext=o
21205 objext_RC=$objext
21206
21207 # Code to be used in simple compile tests
21208 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21209
21210 # Code to be used in simple link tests
21211 lt_simple_link_test_code="$lt_simple_compile_test_code"
21212
21213 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21214
21215 # If no C compiler was specified, use CC.
21216 LTCC=${LTCC-"$CC"}
21217
21218 # Allow CC to be a program name with arguments.
21219 compiler=$CC
21220
21221
21222 # save warnings/boilerplate of simple test code
21223 ac_outfile=conftest.$ac_objext
21224 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21225 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21226 _lt_compiler_boilerplate=`cat conftest.err`
21227 $rm conftest*
21228
21229 ac_outfile=conftest.$ac_objext
21230 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21231 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21232 _lt_linker_boilerplate=`cat conftest.err`
21233 $rm conftest*
21234
21235
21236 # Allow CC to be a program name with arguments.
21237 lt_save_CC="$CC"
21238 CC=${RC-"windres"}
21239 compiler=$CC
21240 compiler_RC=$CC
21241 for cc_temp in $compiler""; do
21242   case $cc_temp in
21243     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21244     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21245     \-*) ;;
21246     *) break;;
21247   esac
21248 done
21249 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21250
21251 lt_cv_prog_compiler_c_o_RC=yes
21252
21253 # The else clause should only fire when bootstrapping the
21254 # libtool distribution, otherwise you forgot to ship ltmain.sh
21255 # with your package, and you will get complaints that there are
21256 # no rules to generate ltmain.sh.
21257 if test -f "$ltmain"; then
21258   # See if we are running on zsh, and set the options which allow our commands through
21259   # without removal of \ escapes.
21260   if test -n "${ZSH_VERSION+set}" ; then
21261     setopt NO_GLOB_SUBST
21262   fi
21263   # Now quote all the things that may contain metacharacters while being
21264   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21265   # variables and quote the copies for generation of the libtool script.
21266   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21267     SED SHELL STRIP \
21268     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21269     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21270     deplibs_check_method reload_flag reload_cmds need_locks \
21271     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21272     lt_cv_sys_global_symbol_to_c_name_address \
21273     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21274     old_postinstall_cmds old_postuninstall_cmds \
21275     compiler_RC \
21276     CC_RC \
21277     LD_RC \
21278     lt_prog_compiler_wl_RC \
21279     lt_prog_compiler_pic_RC \
21280     lt_prog_compiler_static_RC \
21281     lt_prog_compiler_no_builtin_flag_RC \
21282     export_dynamic_flag_spec_RC \
21283     thread_safe_flag_spec_RC \
21284     whole_archive_flag_spec_RC \
21285     enable_shared_with_static_runtimes_RC \
21286     old_archive_cmds_RC \
21287     old_archive_from_new_cmds_RC \
21288     predep_objects_RC \
21289     postdep_objects_RC \
21290     predeps_RC \
21291     postdeps_RC \
21292     compiler_lib_search_path_RC \
21293     archive_cmds_RC \
21294     archive_expsym_cmds_RC \
21295     postinstall_cmds_RC \
21296     postuninstall_cmds_RC \
21297     old_archive_from_expsyms_cmds_RC \
21298     allow_undefined_flag_RC \
21299     no_undefined_flag_RC \
21300     export_symbols_cmds_RC \
21301     hardcode_libdir_flag_spec_RC \
21302     hardcode_libdir_flag_spec_ld_RC \
21303     hardcode_libdir_separator_RC \
21304     hardcode_automatic_RC \
21305     module_cmds_RC \
21306     module_expsym_cmds_RC \
21307     lt_cv_prog_compiler_c_o_RC \
21308     exclude_expsyms_RC \
21309     include_expsyms_RC; do
21310
21311     case $var in
21312     old_archive_cmds_RC | \
21313     old_archive_from_new_cmds_RC | \
21314     archive_cmds_RC | \
21315     archive_expsym_cmds_RC | \
21316     module_cmds_RC | \
21317     module_expsym_cmds_RC | \
21318     old_archive_from_expsyms_cmds_RC | \
21319     export_symbols_cmds_RC | \
21320     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21321     postinstall_cmds | postuninstall_cmds | \
21322     old_postinstall_cmds | old_postuninstall_cmds | \
21323     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21324       # Double-quote double-evaled strings.
21325       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21326       ;;
21327     *)
21328       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21329       ;;
21330     esac
21331   done
21332
21333   case $lt_echo in
21334   *'\$0 --fallback-echo"')
21335     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21336     ;;
21337   esac
21338
21339 cfgfile="$ofile"
21340
21341   cat <<__EOF__ >> "$cfgfile"
21342 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21343
21344 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21345
21346 # Shell to use when invoking shell scripts.
21347 SHELL=$lt_SHELL
21348
21349 # Whether or not to build shared libraries.
21350 build_libtool_libs=$enable_shared
21351
21352 # Whether or not to build static libraries.
21353 build_old_libs=$enable_static
21354
21355 # Whether or not to add -lc for building shared libraries.
21356 build_libtool_need_lc=$archive_cmds_need_lc_RC
21357
21358 # Whether or not to disallow shared libs when runtime libs are static
21359 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21360
21361 # Whether or not to optimize for fast installation.
21362 fast_install=$enable_fast_install
21363
21364 # The host system.
21365 host_alias=$host_alias
21366 host=$host
21367 host_os=$host_os
21368
21369 # The build system.
21370 build_alias=$build_alias
21371 build=$build
21372 build_os=$build_os
21373
21374 # An echo program that does not interpret backslashes.
21375 echo=$lt_echo
21376
21377 # The archiver.
21378 AR=$lt_AR
21379 AR_FLAGS=$lt_AR_FLAGS
21380
21381 # A C compiler.
21382 LTCC=$lt_LTCC
21383
21384 # A language-specific compiler.
21385 CC=$lt_compiler_RC
21386
21387 # Is the compiler the GNU C compiler?
21388 with_gcc=$GCC_RC
21389
21390 # An ERE matcher.
21391 EGREP=$lt_EGREP
21392
21393 # The linker used to build libraries.
21394 LD=$lt_LD_RC
21395
21396 # Whether we need hard or soft links.
21397 LN_S=$lt_LN_S
21398
21399 # A BSD-compatible nm program.
21400 NM=$lt_NM
21401
21402 # A symbol stripping program
21403 STRIP=$lt_STRIP
21404
21405 # Used to examine libraries when file_magic_cmd begins "file"
21406 MAGIC_CMD=$MAGIC_CMD
21407
21408 # Used on cygwin: DLL creation program.
21409 DLLTOOL="$DLLTOOL"
21410
21411 # Used on cygwin: object dumper.
21412 OBJDUMP="$OBJDUMP"
21413
21414 # Used on cygwin: assembler.
21415 AS="$AS"
21416
21417 # The name of the directory that contains temporary libtool files.
21418 objdir=$objdir
21419
21420 # How to create reloadable object files.
21421 reload_flag=$lt_reload_flag
21422 reload_cmds=$lt_reload_cmds
21423
21424 # How to pass a linker flag through the compiler.
21425 wl=$lt_lt_prog_compiler_wl_RC
21426
21427 # Object file suffix (normally "o").
21428 objext="$ac_objext"
21429
21430 # Old archive suffix (normally "a").
21431 libext="$libext"
21432
21433 # Shared library suffix (normally ".so").
21434 shrext_cmds='$shrext_cmds'
21435
21436 # Executable file suffix (normally "").
21437 exeext="$exeext"
21438
21439 # Additional compiler flags for building library objects.
21440 pic_flag=$lt_lt_prog_compiler_pic_RC
21441 pic_mode=$pic_mode
21442
21443 # What is the maximum length of a command?
21444 max_cmd_len=$lt_cv_sys_max_cmd_len
21445
21446 # Does compiler simultaneously support -c and -o options?
21447 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21448
21449 # Must we lock files when doing compilation?
21450 need_locks=$lt_need_locks
21451
21452 # Do we need the lib prefix for modules?
21453 need_lib_prefix=$need_lib_prefix
21454
21455 # Do we need a version for libraries?
21456 need_version=$need_version
21457
21458 # Whether dlopen is supported.
21459 dlopen_support=$enable_dlopen
21460
21461 # Whether dlopen of programs is supported.
21462 dlopen_self=$enable_dlopen_self
21463
21464 # Whether dlopen of statically linked programs is supported.
21465 dlopen_self_static=$enable_dlopen_self_static
21466
21467 # Compiler flag to prevent dynamic linking.
21468 link_static_flag=$lt_lt_prog_compiler_static_RC
21469
21470 # Compiler flag to turn off builtin functions.
21471 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21472
21473 # Compiler flag to allow reflexive dlopens.
21474 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21475
21476 # Compiler flag to generate shared objects directly from archives.
21477 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21478
21479 # Compiler flag to generate thread-safe objects.
21480 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21481
21482 # Library versioning type.
21483 version_type=$version_type
21484
21485 # Format of library name prefix.
21486 libname_spec=$lt_libname_spec
21487
21488 # List of archive names.  First name is the real one, the rest are links.
21489 # The last name is the one that the linker finds with -lNAME.
21490 library_names_spec=$lt_library_names_spec
21491
21492 # The coded name of the library, if different from the real name.
21493 soname_spec=$lt_soname_spec
21494
21495 # Commands used to build and install an old-style archive.
21496 RANLIB=$lt_RANLIB
21497 old_archive_cmds=$lt_old_archive_cmds_RC
21498 old_postinstall_cmds=$lt_old_postinstall_cmds
21499 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21500
21501 # Create an old-style archive from a shared archive.
21502 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21503
21504 # Create a temporary old-style archive to link instead of a shared archive.
21505 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21506
21507 # Commands used to build and install a shared archive.
21508 archive_cmds=$lt_archive_cmds_RC
21509 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21510 postinstall_cmds=$lt_postinstall_cmds
21511 postuninstall_cmds=$lt_postuninstall_cmds
21512
21513 # Commands used to build a loadable module (assumed same as above if empty)
21514 module_cmds=$lt_module_cmds_RC
21515 module_expsym_cmds=$lt_module_expsym_cmds_RC
21516
21517 # Commands to strip libraries.
21518 old_striplib=$lt_old_striplib
21519 striplib=$lt_striplib
21520
21521 # Dependencies to place before the objects being linked to create a
21522 # shared library.
21523 predep_objects=$lt_predep_objects_RC
21524
21525 # Dependencies to place after the objects being linked to create a
21526 # shared library.
21527 postdep_objects=$lt_postdep_objects_RC
21528
21529 # Dependencies to place before the objects being linked to create a
21530 # shared library.
21531 predeps=$lt_predeps_RC
21532
21533 # Dependencies to place after the objects being linked to create a
21534 # shared library.
21535 postdeps=$lt_postdeps_RC
21536
21537 # The library search path used internally by the compiler when linking
21538 # a shared library.
21539 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21540
21541 # Method to check whether dependent libraries are shared objects.
21542 deplibs_check_method=$lt_deplibs_check_method
21543
21544 # Command to use when deplibs_check_method == file_magic.
21545 file_magic_cmd=$lt_file_magic_cmd
21546
21547 # Flag that allows shared libraries with undefined symbols to be built.
21548 allow_undefined_flag=$lt_allow_undefined_flag_RC
21549
21550 # Flag that forces no undefined symbols.
21551 no_undefined_flag=$lt_no_undefined_flag_RC
21552
21553 # Commands used to finish a libtool library installation in a directory.
21554 finish_cmds=$lt_finish_cmds
21555
21556 # Same as above, but a single script fragment to be evaled but not shown.
21557 finish_eval=$lt_finish_eval
21558
21559 # Take the output of nm and produce a listing of raw symbols and C names.
21560 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21561
21562 # Transform the output of nm in a proper C declaration
21563 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21564
21565 # Transform the output of nm in a C name address pair
21566 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21567
21568 # This is the shared library runtime path variable.
21569 runpath_var=$runpath_var
21570
21571 # This is the shared library path variable.
21572 shlibpath_var=$shlibpath_var
21573
21574 # Is shlibpath searched before the hard-coded library search path?
21575 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21576
21577 # How to hardcode a shared library path into an executable.
21578 hardcode_action=$hardcode_action_RC
21579
21580 # Whether we should hardcode library paths into libraries.
21581 hardcode_into_libs=$hardcode_into_libs
21582
21583 # Flag to hardcode \$libdir into a binary during linking.
21584 # This must work even if \$libdir does not exist.
21585 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21586
21587 # If ld is used when linking, flag to hardcode \$libdir into
21588 # a binary during linking. This must work even if \$libdir does
21589 # not exist.
21590 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21591
21592 # Whether we need a single -rpath flag with a separated argument.
21593 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21594
21595 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21596 # resulting binary.
21597 hardcode_direct=$hardcode_direct_RC
21598
21599 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21600 # resulting binary.
21601 hardcode_minus_L=$hardcode_minus_L_RC
21602
21603 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21604 # the resulting binary.
21605 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21606
21607 # Set to yes if building a shared library automatically hardcodes DIR into the library
21608 # and all subsequent libraries and executables linked against it.
21609 hardcode_automatic=$hardcode_automatic_RC
21610
21611 # Variables whose values should be saved in libtool wrapper scripts and
21612 # restored at relink time.
21613 variables_saved_for_relink="$variables_saved_for_relink"
21614
21615 # Whether libtool must link a program against all its dependency libraries.
21616 link_all_deplibs=$link_all_deplibs_RC
21617
21618 # Compile-time system search path for libraries
21619 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21620
21621 # Run-time system search path for libraries
21622 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21623
21624 # Fix the shell variable \$srcfile for the compiler.
21625 fix_srcfile_path="$fix_srcfile_path_RC"
21626
21627 # Set to yes if exported symbols are required.
21628 always_export_symbols=$always_export_symbols_RC
21629
21630 # The commands to list exported symbols.
21631 export_symbols_cmds=$lt_export_symbols_cmds_RC
21632
21633 # The commands to extract the exported symbol list from a shared archive.
21634 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21635
21636 # Symbols that should not be listed in the preloaded symbols.
21637 exclude_expsyms=$lt_exclude_expsyms_RC
21638
21639 # Symbols that must always be exported.
21640 include_expsyms=$lt_include_expsyms_RC
21641
21642 # ### END LIBTOOL TAG CONFIG: $tagname
21643
21644 __EOF__
21645
21646
21647 else
21648   # If there is no Makefile yet, we rely on a make rule to execute
21649   # `config.status --recheck' to rerun these tests and create the
21650   # libtool script then.
21651   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21652   if test -f "$ltmain_in"; then
21653     test -f Makefile && make "$ltmain"
21654   fi
21655 fi
21656
21657
21658 ac_ext=c
21659 ac_cpp='$CPP $CPPFLAGS'
21660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21663
21664 CC="$lt_save_CC"
21665
21666         ;;
21667
21668       *)
21669         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21670 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21671    { (exit 1); exit 1; }; }
21672         ;;
21673       esac
21674
21675       # Append the new tag name to the list of available tags.
21676       if test -n "$tagname" ; then
21677       available_tags="$available_tags $tagname"
21678     fi
21679     fi
21680   done
21681   IFS="$lt_save_ifs"
21682
21683   # Now substitute the updated list of available tags.
21684   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21685     mv "${ofile}T" "$ofile"
21686     chmod +x "$ofile"
21687   else
21688     rm -f "${ofile}T"
21689     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21690 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21691    { (exit 1); exit 1; }; }
21692   fi
21693 fi
21694
21695
21696
21697 # This can be used to rebuild libtool when needed
21698 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21699
21700 # Always use our own libtool.
21701 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21702
21703 # Prevent multiple expansion
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725 ol_link_perl=no
21726 if test $ol_enable_perl != no ; then
21727         # Extract the first word of "perl", so it can be a program name with args.
21728 set dummy perl; ac_word=$2
21729 echo "$as_me:$LINENO: checking for $ac_word" >&5
21730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21731 if test "${ac_cv_path_PERLBIN+set}" = set; then
21732   echo $ECHO_N "(cached) $ECHO_C" >&6
21733 else
21734   case $PERLBIN in
21735   [\\/]* | ?:[\\/]*)
21736   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21737   ;;
21738   *)
21739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21740 for as_dir in $PATH
21741 do
21742   IFS=$as_save_IFS
21743   test -z "$as_dir" && as_dir=.
21744   for ac_exec_ext in '' $ac_executable_extensions; do
21745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21746     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21748     break 2
21749   fi
21750 done
21751 done
21752
21753   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21754   ;;
21755 esac
21756 fi
21757 PERLBIN=$ac_cv_path_PERLBIN
21758
21759 if test -n "$PERLBIN"; then
21760   echo "$as_me:$LINENO: result: $PERLBIN" >&5
21761 echo "${ECHO_T}$PERLBIN" >&6
21762 else
21763   echo "$as_me:$LINENO: result: no" >&5
21764 echo "${ECHO_T}no" >&6
21765 fi
21766
21767
21768         if test "no$PERLBIN" = "no" ; then
21769                 if test $ol_enable_perl = yes ; then
21770                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21771 echo "$as_me: error: could not locate perl" >&2;}
21772    { (exit 1); exit 1; }; }
21773                 fi
21774
21775         else
21776                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21777                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21778
21779                 if test x"$ol_enable_perl" = "xyes" ; then
21780                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21781                 else
21782                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21783                 fi
21784                                 ol_link_perl=yes
21785         fi
21786 fi
21787
21788 ac_ext=c
21789 ac_cpp='$CPP $CPPFLAGS'
21790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21793 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21794 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21795 # On Suns, sometimes $CPP names a directory.
21796 if test -n "$CPP" && test -d "$CPP"; then
21797   CPP=
21798 fi
21799 if test -z "$CPP"; then
21800   if test "${ac_cv_prog_CPP+set}" = set; then
21801   echo $ECHO_N "(cached) $ECHO_C" >&6
21802 else
21803       # Double quotes because CPP needs to be expanded
21804     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21805     do
21806       ac_preproc_ok=false
21807 for ac_c_preproc_warn_flag in '' yes
21808 do
21809   # Use a header file that comes with gcc, so configuring glibc
21810   # with a fresh cross-compiler works.
21811   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21812   # <limits.h> exists even on freestanding compilers.
21813   # On the NeXT, cc -E runs the code through the compiler's parser,
21814   # not just through cpp. "Syntax error" is here to catch this case.
21815   cat >conftest.$ac_ext <<_ACEOF
21816 /* confdefs.h.  */
21817 _ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h.  */
21821 #ifdef __STDC__
21822 # include <limits.h>
21823 #else
21824 # include <assert.h>
21825 #endif
21826                      Syntax error
21827 _ACEOF
21828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21829   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21830   ac_status=$?
21831   grep -v '^ *+' conftest.er1 >conftest.err
21832   rm -f conftest.er1
21833   cat conftest.err >&5
21834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835   (exit $ac_status); } >/dev/null; then
21836   if test -s conftest.err; then
21837     ac_cpp_err=$ac_c_preproc_warn_flag
21838     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21839   else
21840     ac_cpp_err=
21841   fi
21842 else
21843   ac_cpp_err=yes
21844 fi
21845 if test -z "$ac_cpp_err"; then
21846   :
21847 else
21848   echo "$as_me: failed program was:" >&5
21849 sed 's/^/| /' conftest.$ac_ext >&5
21850
21851   # Broken: fails on valid input.
21852 continue
21853 fi
21854 rm -f conftest.err conftest.$ac_ext
21855
21856   # OK, works on sane cases.  Now check whether non-existent headers
21857   # can be detected and how.
21858   cat >conftest.$ac_ext <<_ACEOF
21859 /* confdefs.h.  */
21860 _ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h.  */
21864 #include <ac_nonexistent.h>
21865 _ACEOF
21866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21867   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21868   ac_status=$?
21869   grep -v '^ *+' conftest.er1 >conftest.err
21870   rm -f conftest.er1
21871   cat conftest.err >&5
21872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873   (exit $ac_status); } >/dev/null; then
21874   if test -s conftest.err; then
21875     ac_cpp_err=$ac_c_preproc_warn_flag
21876     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21877   else
21878     ac_cpp_err=
21879   fi
21880 else
21881   ac_cpp_err=yes
21882 fi
21883 if test -z "$ac_cpp_err"; then
21884   # Broken: success on invalid input.
21885 continue
21886 else
21887   echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21889
21890   # Passes both tests.
21891 ac_preproc_ok=:
21892 break
21893 fi
21894 rm -f conftest.err conftest.$ac_ext
21895
21896 done
21897 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21898 rm -f conftest.err conftest.$ac_ext
21899 if $ac_preproc_ok; then
21900   break
21901 fi
21902
21903     done
21904     ac_cv_prog_CPP=$CPP
21905
21906 fi
21907   CPP=$ac_cv_prog_CPP
21908 else
21909   ac_cv_prog_CPP=$CPP
21910 fi
21911 echo "$as_me:$LINENO: result: $CPP" >&5
21912 echo "${ECHO_T}$CPP" >&6
21913 ac_preproc_ok=false
21914 for ac_c_preproc_warn_flag in '' yes
21915 do
21916   # Use a header file that comes with gcc, so configuring glibc
21917   # with a fresh cross-compiler works.
21918   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21919   # <limits.h> exists even on freestanding compilers.
21920   # On the NeXT, cc -E runs the code through the compiler's parser,
21921   # not just through cpp. "Syntax error" is here to catch this case.
21922   cat >conftest.$ac_ext <<_ACEOF
21923 /* confdefs.h.  */
21924 _ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h.  */
21928 #ifdef __STDC__
21929 # include <limits.h>
21930 #else
21931 # include <assert.h>
21932 #endif
21933                      Syntax error
21934 _ACEOF
21935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21936   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21937   ac_status=$?
21938   grep -v '^ *+' conftest.er1 >conftest.err
21939   rm -f conftest.er1
21940   cat conftest.err >&5
21941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942   (exit $ac_status); } >/dev/null; then
21943   if test -s conftest.err; then
21944     ac_cpp_err=$ac_c_preproc_warn_flag
21945     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21946   else
21947     ac_cpp_err=
21948   fi
21949 else
21950   ac_cpp_err=yes
21951 fi
21952 if test -z "$ac_cpp_err"; then
21953   :
21954 else
21955   echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21957
21958   # Broken: fails on valid input.
21959 continue
21960 fi
21961 rm -f conftest.err conftest.$ac_ext
21962
21963   # OK, works on sane cases.  Now check whether non-existent headers
21964   # can be detected and how.
21965   cat >conftest.$ac_ext <<_ACEOF
21966 /* confdefs.h.  */
21967 _ACEOF
21968 cat confdefs.h >>conftest.$ac_ext
21969 cat >>conftest.$ac_ext <<_ACEOF
21970 /* end confdefs.h.  */
21971 #include <ac_nonexistent.h>
21972 _ACEOF
21973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21974   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21975   ac_status=$?
21976   grep -v '^ *+' conftest.er1 >conftest.err
21977   rm -f conftest.er1
21978   cat conftest.err >&5
21979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980   (exit $ac_status); } >/dev/null; then
21981   if test -s conftest.err; then
21982     ac_cpp_err=$ac_c_preproc_warn_flag
21983     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21984   else
21985     ac_cpp_err=
21986   fi
21987 else
21988   ac_cpp_err=yes
21989 fi
21990 if test -z "$ac_cpp_err"; then
21991   # Broken: success on invalid input.
21992 continue
21993 else
21994   echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.$ac_ext >&5
21996
21997   # Passes both tests.
21998 ac_preproc_ok=:
21999 break
22000 fi
22001 rm -f conftest.err conftest.$ac_ext
22002
22003 done
22004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22005 rm -f conftest.err conftest.$ac_ext
22006 if $ac_preproc_ok; then
22007   :
22008 else
22009   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
22010 See \`config.log' for more details." >&5
22011 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
22012 See \`config.log' for more details." >&2;}
22013    { (exit 1); exit 1; }; }
22014 fi
22015
22016 ac_ext=c
22017 ac_cpp='$CPP $CPPFLAGS'
22018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22021
22022
22023
22024
22025
22026 cat >>confdefs.h <<_ACEOF
22027 #define EXEEXT "${EXEEXT}"
22028 _ACEOF
22029
22030
22031 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22032 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22033 if test "${ac_cv_lib_be_be_app+set}" = set; then
22034   echo $ECHO_N "(cached) $ECHO_C" >&6
22035 else
22036   ac_check_lib_save_LIBS=$LIBS
22037 LIBS="-lbe -lroot -lnet $LIBS"
22038 cat >conftest.$ac_ext <<_ACEOF
22039 /* confdefs.h.  */
22040 _ACEOF
22041 cat confdefs.h >>conftest.$ac_ext
22042 cat >>conftest.$ac_ext <<_ACEOF
22043 /* end confdefs.h.  */
22044
22045 /* Override any gcc2 internal prototype to avoid an error.  */
22046 #ifdef __cplusplus
22047 extern "C"
22048 #endif
22049 /* We use char because int might match the return type of a gcc2
22050    builtin and then its argument prototype would still apply.  */
22051 char be_app ();
22052 int
22053 main ()
22054 {
22055 be_app ();
22056   ;
22057   return 0;
22058 }
22059 _ACEOF
22060 rm -f conftest.$ac_objext conftest$ac_exeext
22061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22062   (eval $ac_link) 2>conftest.er1
22063   ac_status=$?
22064   grep -v '^ *+' conftest.er1 >conftest.err
22065   rm -f conftest.er1
22066   cat conftest.err >&5
22067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068   (exit $ac_status); } &&
22069          { ac_try='test -z "$ac_c_werror_flag"
22070                          || test ! -s conftest.err'
22071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22072   (eval $ac_try) 2>&5
22073   ac_status=$?
22074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075   (exit $ac_status); }; } &&
22076          { ac_try='test -s conftest$ac_exeext'
22077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22078   (eval $ac_try) 2>&5
22079   ac_status=$?
22080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081   (exit $ac_status); }; }; then
22082   ac_cv_lib_be_be_app=yes
22083 else
22084   echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22086
22087 ac_cv_lib_be_be_app=no
22088 fi
22089 rm -f conftest.err conftest.$ac_objext \
22090       conftest$ac_exeext conftest.$ac_ext
22091 LIBS=$ac_check_lib_save_LIBS
22092 fi
22093 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22094 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22095 if test $ac_cv_lib_be_be_app = yes; then
22096   LIBS="$LIBS -lbe -lroot -lnet"
22097 else
22098   :
22099 fi
22100
22101
22102 ac_ext=c
22103 ac_cpp='$CPP $CPPFLAGS'
22104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22107 if test -n "$ac_tool_prefix"; then
22108   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22109 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22110 echo "$as_me:$LINENO: checking for $ac_word" >&5
22111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22112 if test "${ac_cv_prog_CC+set}" = set; then
22113   echo $ECHO_N "(cached) $ECHO_C" >&6
22114 else
22115   if test -n "$CC"; then
22116   ac_cv_prog_CC="$CC" # Let the user override the test.
22117 else
22118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22119 for as_dir in $PATH
22120 do
22121   IFS=$as_save_IFS
22122   test -z "$as_dir" && as_dir=.
22123   for ac_exec_ext in '' $ac_executable_extensions; do
22124   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22125     ac_cv_prog_CC="${ac_tool_prefix}gcc"
22126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22127     break 2
22128   fi
22129 done
22130 done
22131
22132 fi
22133 fi
22134 CC=$ac_cv_prog_CC
22135 if test -n "$CC"; then
22136   echo "$as_me:$LINENO: result: $CC" >&5
22137 echo "${ECHO_T}$CC" >&6
22138 else
22139   echo "$as_me:$LINENO: result: no" >&5
22140 echo "${ECHO_T}no" >&6
22141 fi
22142
22143 fi
22144 if test -z "$ac_cv_prog_CC"; then
22145   ac_ct_CC=$CC
22146   # Extract the first word of "gcc", so it can be a program name with args.
22147 set dummy gcc; ac_word=$2
22148 echo "$as_me:$LINENO: checking for $ac_word" >&5
22149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22150 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22151   echo $ECHO_N "(cached) $ECHO_C" >&6
22152 else
22153   if test -n "$ac_ct_CC"; then
22154   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22155 else
22156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22157 for as_dir in $PATH
22158 do
22159   IFS=$as_save_IFS
22160   test -z "$as_dir" && as_dir=.
22161   for ac_exec_ext in '' $ac_executable_extensions; do
22162   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22163     ac_cv_prog_ac_ct_CC="gcc"
22164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22165     break 2
22166   fi
22167 done
22168 done
22169
22170 fi
22171 fi
22172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22173 if test -n "$ac_ct_CC"; then
22174   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22175 echo "${ECHO_T}$ac_ct_CC" >&6
22176 else
22177   echo "$as_me:$LINENO: result: no" >&5
22178 echo "${ECHO_T}no" >&6
22179 fi
22180
22181   CC=$ac_ct_CC
22182 else
22183   CC="$ac_cv_prog_CC"
22184 fi
22185
22186 if test -z "$CC"; then
22187   if test -n "$ac_tool_prefix"; then
22188   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22189 set dummy ${ac_tool_prefix}cc; ac_word=$2
22190 echo "$as_me:$LINENO: checking for $ac_word" >&5
22191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22192 if test "${ac_cv_prog_CC+set}" = set; then
22193   echo $ECHO_N "(cached) $ECHO_C" >&6
22194 else
22195   if test -n "$CC"; then
22196   ac_cv_prog_CC="$CC" # Let the user override the test.
22197 else
22198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22199 for as_dir in $PATH
22200 do
22201   IFS=$as_save_IFS
22202   test -z "$as_dir" && as_dir=.
22203   for ac_exec_ext in '' $ac_executable_extensions; do
22204   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22205     ac_cv_prog_CC="${ac_tool_prefix}cc"
22206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22207     break 2
22208   fi
22209 done
22210 done
22211
22212 fi
22213 fi
22214 CC=$ac_cv_prog_CC
22215 if test -n "$CC"; then
22216   echo "$as_me:$LINENO: result: $CC" >&5
22217 echo "${ECHO_T}$CC" >&6
22218 else
22219   echo "$as_me:$LINENO: result: no" >&5
22220 echo "${ECHO_T}no" >&6
22221 fi
22222
22223 fi
22224 if test -z "$ac_cv_prog_CC"; then
22225   ac_ct_CC=$CC
22226   # Extract the first word of "cc", so it can be a program name with args.
22227 set dummy cc; ac_word=$2
22228 echo "$as_me:$LINENO: checking for $ac_word" >&5
22229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22230 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22231   echo $ECHO_N "(cached) $ECHO_C" >&6
22232 else
22233   if test -n "$ac_ct_CC"; then
22234   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22235 else
22236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22237 for as_dir in $PATH
22238 do
22239   IFS=$as_save_IFS
22240   test -z "$as_dir" && as_dir=.
22241   for ac_exec_ext in '' $ac_executable_extensions; do
22242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22243     ac_cv_prog_ac_ct_CC="cc"
22244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22245     break 2
22246   fi
22247 done
22248 done
22249
22250 fi
22251 fi
22252 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22253 if test -n "$ac_ct_CC"; then
22254   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22255 echo "${ECHO_T}$ac_ct_CC" >&6
22256 else
22257   echo "$as_me:$LINENO: result: no" >&5
22258 echo "${ECHO_T}no" >&6
22259 fi
22260
22261   CC=$ac_ct_CC
22262 else
22263   CC="$ac_cv_prog_CC"
22264 fi
22265
22266 fi
22267 if test -z "$CC"; then
22268   # Extract the first word of "cc", so it can be a program name with args.
22269 set dummy cc; ac_word=$2
22270 echo "$as_me:$LINENO: checking for $ac_word" >&5
22271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22272 if test "${ac_cv_prog_CC+set}" = set; then
22273   echo $ECHO_N "(cached) $ECHO_C" >&6
22274 else
22275   if test -n "$CC"; then
22276   ac_cv_prog_CC="$CC" # Let the user override the test.
22277 else
22278   ac_prog_rejected=no
22279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22280 for as_dir in $PATH
22281 do
22282   IFS=$as_save_IFS
22283   test -z "$as_dir" && as_dir=.
22284   for ac_exec_ext in '' $ac_executable_extensions; do
22285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22286     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22287        ac_prog_rejected=yes
22288        continue
22289      fi
22290     ac_cv_prog_CC="cc"
22291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22292     break 2
22293   fi
22294 done
22295 done
22296
22297 if test $ac_prog_rejected = yes; then
22298   # We found a bogon in the path, so make sure we never use it.
22299   set dummy $ac_cv_prog_CC
22300   shift
22301   if test $# != 0; then
22302     # We chose a different compiler from the bogus one.
22303     # However, it has the same basename, so the bogon will be chosen
22304     # first if we set CC to just the basename; use the full file name.
22305     shift
22306     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22307   fi
22308 fi
22309 fi
22310 fi
22311 CC=$ac_cv_prog_CC
22312 if test -n "$CC"; then
22313   echo "$as_me:$LINENO: result: $CC" >&5
22314 echo "${ECHO_T}$CC" >&6
22315 else
22316   echo "$as_me:$LINENO: result: no" >&5
22317 echo "${ECHO_T}no" >&6
22318 fi
22319
22320 fi
22321 if test -z "$CC"; then
22322   if test -n "$ac_tool_prefix"; then
22323   for ac_prog in cl
22324   do
22325     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22327 echo "$as_me:$LINENO: checking for $ac_word" >&5
22328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22329 if test "${ac_cv_prog_CC+set}" = set; then
22330   echo $ECHO_N "(cached) $ECHO_C" >&6
22331 else
22332   if test -n "$CC"; then
22333   ac_cv_prog_CC="$CC" # Let the user override the test.
22334 else
22335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22336 for as_dir in $PATH
22337 do
22338   IFS=$as_save_IFS
22339   test -z "$as_dir" && as_dir=.
22340   for ac_exec_ext in '' $ac_executable_extensions; do
22341   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22342     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22344     break 2
22345   fi
22346 done
22347 done
22348
22349 fi
22350 fi
22351 CC=$ac_cv_prog_CC
22352 if test -n "$CC"; then
22353   echo "$as_me:$LINENO: result: $CC" >&5
22354 echo "${ECHO_T}$CC" >&6
22355 else
22356   echo "$as_me:$LINENO: result: no" >&5
22357 echo "${ECHO_T}no" >&6
22358 fi
22359
22360     test -n "$CC" && break
22361   done
22362 fi
22363 if test -z "$CC"; then
22364   ac_ct_CC=$CC
22365   for ac_prog in cl
22366 do
22367   # Extract the first word of "$ac_prog", so it can be a program name with args.
22368 set dummy $ac_prog; ac_word=$2
22369 echo "$as_me:$LINENO: checking for $ac_word" >&5
22370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22371 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22372   echo $ECHO_N "(cached) $ECHO_C" >&6
22373 else
22374   if test -n "$ac_ct_CC"; then
22375   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22376 else
22377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22378 for as_dir in $PATH
22379 do
22380   IFS=$as_save_IFS
22381   test -z "$as_dir" && as_dir=.
22382   for ac_exec_ext in '' $ac_executable_extensions; do
22383   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22384     ac_cv_prog_ac_ct_CC="$ac_prog"
22385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22386     break 2
22387   fi
22388 done
22389 done
22390
22391 fi
22392 fi
22393 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22394 if test -n "$ac_ct_CC"; then
22395   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22396 echo "${ECHO_T}$ac_ct_CC" >&6
22397 else
22398   echo "$as_me:$LINENO: result: no" >&5
22399 echo "${ECHO_T}no" >&6
22400 fi
22401
22402   test -n "$ac_ct_CC" && break
22403 done
22404
22405   CC=$ac_ct_CC
22406 fi
22407
22408 fi
22409
22410
22411 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22412 See \`config.log' for more details." >&5
22413 echo "$as_me: error: no acceptable C compiler found in \$PATH
22414 See \`config.log' for more details." >&2;}
22415    { (exit 1); exit 1; }; }
22416
22417 # Provide some information about the compiler.
22418 echo "$as_me:$LINENO:" \
22419      "checking for C compiler version" >&5
22420 ac_compiler=`set X $ac_compile; echo $2`
22421 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22422   (eval $ac_compiler --version </dev/null >&5) 2>&5
22423   ac_status=$?
22424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425   (exit $ac_status); }
22426 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22427   (eval $ac_compiler -v </dev/null >&5) 2>&5
22428   ac_status=$?
22429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430   (exit $ac_status); }
22431 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22432   (eval $ac_compiler -V </dev/null >&5) 2>&5
22433   ac_status=$?
22434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435   (exit $ac_status); }
22436
22437 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22438 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22439 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22440   echo $ECHO_N "(cached) $ECHO_C" >&6
22441 else
22442   cat >conftest.$ac_ext <<_ACEOF
22443 /* confdefs.h.  */
22444 _ACEOF
22445 cat confdefs.h >>conftest.$ac_ext
22446 cat >>conftest.$ac_ext <<_ACEOF
22447 /* end confdefs.h.  */
22448
22449 int
22450 main ()
22451 {
22452 #ifndef __GNUC__
22453        choke me
22454 #endif
22455
22456   ;
22457   return 0;
22458 }
22459 _ACEOF
22460 rm -f conftest.$ac_objext
22461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22462   (eval $ac_compile) 2>conftest.er1
22463   ac_status=$?
22464   grep -v '^ *+' conftest.er1 >conftest.err
22465   rm -f conftest.er1
22466   cat conftest.err >&5
22467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468   (exit $ac_status); } &&
22469          { ac_try='test -z "$ac_c_werror_flag"
22470                          || test ! -s conftest.err'
22471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472   (eval $ac_try) 2>&5
22473   ac_status=$?
22474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475   (exit $ac_status); }; } &&
22476          { ac_try='test -s conftest.$ac_objext'
22477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22478   (eval $ac_try) 2>&5
22479   ac_status=$?
22480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481   (exit $ac_status); }; }; then
22482   ac_compiler_gnu=yes
22483 else
22484   echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22486
22487 ac_compiler_gnu=no
22488 fi
22489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22490 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22491
22492 fi
22493 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22494 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22495 GCC=`test $ac_compiler_gnu = yes && echo yes`
22496 ac_test_CFLAGS=${CFLAGS+set}
22497 ac_save_CFLAGS=$CFLAGS
22498 CFLAGS="-g"
22499 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22500 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22501 if test "${ac_cv_prog_cc_g+set}" = set; then
22502   echo $ECHO_N "(cached) $ECHO_C" >&6
22503 else
22504   cat >conftest.$ac_ext <<_ACEOF
22505 /* confdefs.h.  */
22506 _ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h.  */
22510
22511 int
22512 main ()
22513 {
22514
22515   ;
22516   return 0;
22517 }
22518 _ACEOF
22519 rm -f conftest.$ac_objext
22520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22521   (eval $ac_compile) 2>conftest.er1
22522   ac_status=$?
22523   grep -v '^ *+' conftest.er1 >conftest.err
22524   rm -f conftest.er1
22525   cat conftest.err >&5
22526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527   (exit $ac_status); } &&
22528          { ac_try='test -z "$ac_c_werror_flag"
22529                          || test ! -s conftest.err'
22530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22531   (eval $ac_try) 2>&5
22532   ac_status=$?
22533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534   (exit $ac_status); }; } &&
22535          { ac_try='test -s conftest.$ac_objext'
22536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22537   (eval $ac_try) 2>&5
22538   ac_status=$?
22539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540   (exit $ac_status); }; }; then
22541   ac_cv_prog_cc_g=yes
22542 else
22543   echo "$as_me: failed program was:" >&5
22544 sed 's/^/| /' conftest.$ac_ext >&5
22545
22546 ac_cv_prog_cc_g=no
22547 fi
22548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22549 fi
22550 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22551 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22552 if test "$ac_test_CFLAGS" = set; then
22553   CFLAGS=$ac_save_CFLAGS
22554 elif test $ac_cv_prog_cc_g = yes; then
22555   if test "$GCC" = yes; then
22556     CFLAGS="-g -O2"
22557   else
22558     CFLAGS="-g"
22559   fi
22560 else
22561   if test "$GCC" = yes; then
22562     CFLAGS="-O2"
22563   else
22564     CFLAGS=
22565   fi
22566 fi
22567 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22568 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22569 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22570   echo $ECHO_N "(cached) $ECHO_C" >&6
22571 else
22572   ac_cv_prog_cc_stdc=no
22573 ac_save_CC=$CC
22574 cat >conftest.$ac_ext <<_ACEOF
22575 /* confdefs.h.  */
22576 _ACEOF
22577 cat confdefs.h >>conftest.$ac_ext
22578 cat >>conftest.$ac_ext <<_ACEOF
22579 /* end confdefs.h.  */
22580 #include <stdarg.h>
22581 #include <stdio.h>
22582 #include <sys/types.h>
22583 #include <sys/stat.h>
22584 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
22585 struct buf { int x; };
22586 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22587 static char *e (p, i)
22588      char **p;
22589      int i;
22590 {
22591   return p[i];
22592 }
22593 static char *f (char * (*g) (char **, int), char **p, ...)
22594 {
22595   char *s;
22596   va_list v;
22597   va_start (v,p);
22598   s = g (p, va_arg (v,int));
22599   va_end (v);
22600   return s;
22601 }
22602
22603 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
22604    function prototypes and stuff, but not '\xHH' hex character constants.
22605    These don't provoke an error unfortunately, instead are silently treated
22606    as 'x'.  The following induces an error, until -std1 is added to get
22607    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
22608    array size at least.  It's necessary to write '\x00'==0 to get something
22609    that's true only with -std1.  */
22610 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22611
22612 int test (int i, double x);
22613 struct s1 {int (*f) (int a);};
22614 struct s2 {int (*f) (double a);};
22615 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22616 int argc;
22617 char **argv;
22618 int
22619 main ()
22620 {
22621 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
22622   ;
22623   return 0;
22624 }
22625 _ACEOF
22626 # Don't try gcc -ansi; that turns off useful extensions and
22627 # breaks some systems' header files.
22628 # AIX                   -qlanglvl=ansi
22629 # Ultrix and OSF/1      -std1
22630 # HP-UX 10.20 and later -Ae
22631 # HP-UX older versions  -Aa -D_HPUX_SOURCE
22632 # SVR4                  -Xc -D__EXTENSIONS__
22633 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22634 do
22635   CC="$ac_save_CC $ac_arg"
22636   rm -f conftest.$ac_objext
22637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22638   (eval $ac_compile) 2>conftest.er1
22639   ac_status=$?
22640   grep -v '^ *+' conftest.er1 >conftest.err
22641   rm -f conftest.er1
22642   cat conftest.err >&5
22643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644   (exit $ac_status); } &&
22645          { ac_try='test -z "$ac_c_werror_flag"
22646                          || test ! -s conftest.err'
22647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22648   (eval $ac_try) 2>&5
22649   ac_status=$?
22650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651   (exit $ac_status); }; } &&
22652          { ac_try='test -s conftest.$ac_objext'
22653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22654   (eval $ac_try) 2>&5
22655   ac_status=$?
22656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657   (exit $ac_status); }; }; then
22658   ac_cv_prog_cc_stdc=$ac_arg
22659 break
22660 else
22661   echo "$as_me: failed program was:" >&5
22662 sed 's/^/| /' conftest.$ac_ext >&5
22663
22664 fi
22665 rm -f conftest.err conftest.$ac_objext
22666 done
22667 rm -f conftest.$ac_ext conftest.$ac_objext
22668 CC=$ac_save_CC
22669
22670 fi
22671
22672 case "x$ac_cv_prog_cc_stdc" in
22673   x|xno)
22674     echo "$as_me:$LINENO: result: none needed" >&5
22675 echo "${ECHO_T}none needed" >&6 ;;
22676   *)
22677     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22678 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22679     CC="$CC $ac_cv_prog_cc_stdc" ;;
22680 esac
22681
22682 # Some people use a C++ compiler to compile C.  Since we use `exit',
22683 # in C++ we need to declare it.  In case someone uses the same compiler
22684 # for both compiling C and C++ we need to have the C++ compiler decide
22685 # the declaration of exit, since it's the most demanding environment.
22686 cat >conftest.$ac_ext <<_ACEOF
22687 #ifndef __cplusplus
22688   choke me
22689 #endif
22690 _ACEOF
22691 rm -f conftest.$ac_objext
22692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22693   (eval $ac_compile) 2>conftest.er1
22694   ac_status=$?
22695   grep -v '^ *+' conftest.er1 >conftest.err
22696   rm -f conftest.er1
22697   cat conftest.err >&5
22698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699   (exit $ac_status); } &&
22700          { ac_try='test -z "$ac_c_werror_flag"
22701                          || test ! -s conftest.err'
22702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22703   (eval $ac_try) 2>&5
22704   ac_status=$?
22705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706   (exit $ac_status); }; } &&
22707          { ac_try='test -s conftest.$ac_objext'
22708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22709   (eval $ac_try) 2>&5
22710   ac_status=$?
22711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712   (exit $ac_status); }; }; then
22713   for ac_declaration in \
22714    '' \
22715    'extern "C" void std::exit (int) throw (); using std::exit;' \
22716    'extern "C" void std::exit (int); using std::exit;' \
22717    'extern "C" void exit (int) throw ();' \
22718    'extern "C" void exit (int);' \
22719    'void exit (int);'
22720 do
22721   cat >conftest.$ac_ext <<_ACEOF
22722 /* confdefs.h.  */
22723 _ACEOF
22724 cat confdefs.h >>conftest.$ac_ext
22725 cat >>conftest.$ac_ext <<_ACEOF
22726 /* end confdefs.h.  */
22727 $ac_declaration
22728 #include <stdlib.h>
22729 int
22730 main ()
22731 {
22732 exit (42);
22733   ;
22734   return 0;
22735 }
22736 _ACEOF
22737 rm -f conftest.$ac_objext
22738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22739   (eval $ac_compile) 2>conftest.er1
22740   ac_status=$?
22741   grep -v '^ *+' conftest.er1 >conftest.err
22742   rm -f conftest.er1
22743   cat conftest.err >&5
22744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745   (exit $ac_status); } &&
22746          { ac_try='test -z "$ac_c_werror_flag"
22747                          || test ! -s conftest.err'
22748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22749   (eval $ac_try) 2>&5
22750   ac_status=$?
22751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752   (exit $ac_status); }; } &&
22753          { ac_try='test -s conftest.$ac_objext'
22754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22755   (eval $ac_try) 2>&5
22756   ac_status=$?
22757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758   (exit $ac_status); }; }; then
22759   :
22760 else
22761   echo "$as_me: failed program was:" >&5
22762 sed 's/^/| /' conftest.$ac_ext >&5
22763
22764 continue
22765 fi
22766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22767   cat >conftest.$ac_ext <<_ACEOF
22768 /* confdefs.h.  */
22769 _ACEOF
22770 cat confdefs.h >>conftest.$ac_ext
22771 cat >>conftest.$ac_ext <<_ACEOF
22772 /* end confdefs.h.  */
22773 $ac_declaration
22774 int
22775 main ()
22776 {
22777 exit (42);
22778   ;
22779   return 0;
22780 }
22781 _ACEOF
22782 rm -f conftest.$ac_objext
22783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22784   (eval $ac_compile) 2>conftest.er1
22785   ac_status=$?
22786   grep -v '^ *+' conftest.er1 >conftest.err
22787   rm -f conftest.er1
22788   cat conftest.err >&5
22789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790   (exit $ac_status); } &&
22791          { ac_try='test -z "$ac_c_werror_flag"
22792                          || test ! -s conftest.err'
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); }; } &&
22798          { ac_try='test -s conftest.$ac_objext'
22799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22800   (eval $ac_try) 2>&5
22801   ac_status=$?
22802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803   (exit $ac_status); }; }; then
22804   break
22805 else
22806   echo "$as_me: failed program was:" >&5
22807 sed 's/^/| /' conftest.$ac_ext >&5
22808
22809 fi
22810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22811 done
22812 rm -f conftest*
22813 if test -n "$ac_declaration"; then
22814   echo '#ifdef __cplusplus' >>confdefs.h
22815   echo $ac_declaration      >>confdefs.h
22816   echo '#endif'             >>confdefs.h
22817 fi
22818
22819 else
22820   echo "$as_me: failed program was:" >&5
22821 sed 's/^/| /' conftest.$ac_ext >&5
22822
22823 fi
22824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22825 ac_ext=c
22826 ac_cpp='$CPP $CPPFLAGS'
22827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22830
22831 depcc="$CC"   am_compiler_list=
22832
22833 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22834 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22835 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22836   echo $ECHO_N "(cached) $ECHO_C" >&6
22837 else
22838   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22839   # We make a subdir and do the tests there.  Otherwise we can end up
22840   # making bogus files that we don't know about and never remove.  For
22841   # instance it was reported that on HP-UX the gcc test will end up
22842   # making a dummy file named `D' -- because `-MD' means `put the output
22843   # in D'.
22844   mkdir conftest.dir
22845   # Copy depcomp to subdir because otherwise we won't find it if we're
22846   # using a relative directory.
22847   cp "$am_depcomp" conftest.dir
22848   cd conftest.dir
22849   # We will build objects and dependencies in a subdirectory because
22850   # it helps to detect inapplicable dependency modes.  For instance
22851   # both Tru64's cc and ICC support -MD to output dependencies as a
22852   # side effect of compilation, but ICC will put the dependencies in
22853   # the current directory while Tru64 will put them in the object
22854   # directory.
22855   mkdir sub
22856
22857   am_cv_CC_dependencies_compiler_type=none
22858   if test "$am_compiler_list" = ""; then
22859      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22860   fi
22861   for depmode in $am_compiler_list; do
22862     # Setup a source with many dependencies, because some compilers
22863     # like to wrap large dependency lists on column 80 (with \), and
22864     # we should not choose a depcomp mode which is confused by this.
22865     #
22866     # We need to recreate these files for each test, as the compiler may
22867     # overwrite some of them when testing with obscure command lines.
22868     # This happens at least with the AIX C compiler.
22869     : > sub/conftest.c
22870     for i in 1 2 3 4 5 6; do
22871       echo '#include "conftst'$i'.h"' >> sub/conftest.c
22872       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22873       # Solaris 8's {/usr,}/bin/sh.
22874       touch sub/conftst$i.h
22875     done
22876     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22877
22878     case $depmode in
22879     nosideeffect)
22880       # after this tag, mechanisms are not by side-effect, so they'll
22881       # only be used when explicitly requested
22882       if test "x$enable_dependency_tracking" = xyes; then
22883         continue
22884       else
22885         break
22886       fi
22887       ;;
22888     none) break ;;
22889     esac
22890     # We check with `-c' and `-o' for the sake of the "dashmstdout"
22891     # mode.  It turns out that the SunPro C++ compiler does not properly
22892     # handle `-M -o', and we need to detect this.
22893     if depmode=$depmode \
22894        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22895        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22896        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22897          >/dev/null 2>conftest.err &&
22898        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22899        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22900        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22901       # icc doesn't choke on unknown options, it will just issue warnings
22902       # or remarks (even with -Werror).  So we grep stderr for any message
22903       # that says an option was ignored or not supported.
22904       # When given -MP, icc 7.0 and 7.1 complain thusly:
22905       #   icc: Command line warning: ignoring option '-M'; no argument required
22906       # The diagnosis changed in icc 8.0:
22907       #   icc: Command line remark: option '-MP' not supported
22908       if (grep 'ignoring option' conftest.err ||
22909           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22910         am_cv_CC_dependencies_compiler_type=$depmode
22911         break
22912       fi
22913     fi
22914   done
22915
22916   cd ..
22917   rm -rf conftest.dir
22918 else
22919   am_cv_CC_dependencies_compiler_type=none
22920 fi
22921
22922 fi
22923 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
22924 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
22925 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
22926
22927
22928
22929 if
22930   test "x$enable_dependency_tracking" != xno \
22931   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
22932   am__fastdepCC_TRUE=
22933   am__fastdepCC_FALSE='#'
22934 else
22935   am__fastdepCC_TRUE='#'
22936   am__fastdepCC_FALSE=
22937 fi
22938
22939
22940 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
22941         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
22942 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
22943    { (exit 1); exit 1; }; }
22944 fi
22945
22946 # test for make depend flag
22947 OL_MKDEP=
22948 OL_MKDEP_FLAGS=
22949 if test -z "${MKDEP}"; then
22950         OL_MKDEP="${CC-cc}"
22951         if test -z "${MKDEP_FLAGS}"; then
22952                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
22953 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
22954 if test "${ol_cv_mkdep+set}" = set; then
22955   echo $ECHO_N "(cached) $ECHO_C" >&6
22956 else
22957
22958                         ol_cv_mkdep=no
22959                         for flag in "-M" "-xM"; do
22960                                 cat > conftest.c <<EOF
22961  noCode;
22962 EOF
22963                                 if { ac_try='$OL_MKDEP $flag conftest.c'
22964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22965   (eval $ac_try) 2>&5
22966   ac_status=$?
22967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968   (exit $ac_status); }; } \
22969                                         | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
22970                                 then
22971                                         if test ! -f conftest."${ac_object}" ; then
22972                                                 ol_cv_mkdep=$flag
22973                                                 OL_MKDEP_FLAGS="$flag"
22974                                                 break
22975                                         fi
22976                                 fi
22977                         done
22978                         rm -f conftest*
22979
22980 fi
22981 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
22982 echo "${ECHO_T}$ol_cv_mkdep" >&6
22983         else
22984                 cc_cv_mkdep=yes
22985                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22986         fi
22987 else
22988         cc_cv_mkdep=yes
22989         OL_MKDEP="${MKDEP}"
22990         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22991 fi
22992
22993
22994
22995 if test "${ol_cv_mkdep}" = no ; then
22996         # this will soon become an error
22997         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
22998 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
22999 fi
23000
23001 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
23002 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
23003 if test "${ac_cv_lib_s_afopen+set}" = set; then
23004   echo $ECHO_N "(cached) $ECHO_C" >&6
23005 else
23006   ac_check_lib_save_LIBS=$LIBS
23007 LIBS="-ls  $LIBS"
23008 cat >conftest.$ac_ext <<_ACEOF
23009 /* confdefs.h.  */
23010 _ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h.  */
23014
23015 /* Override any gcc2 internal prototype to avoid an error.  */
23016 #ifdef __cplusplus
23017 extern "C"
23018 #endif
23019 /* We use char because int might match the return type of a gcc2
23020    builtin and then its argument prototype would still apply.  */
23021 char afopen ();
23022 int
23023 main ()
23024 {
23025 afopen ();
23026   ;
23027   return 0;
23028 }
23029 _ACEOF
23030 rm -f conftest.$ac_objext conftest$ac_exeext
23031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23032   (eval $ac_link) 2>conftest.er1
23033   ac_status=$?
23034   grep -v '^ *+' conftest.er1 >conftest.err
23035   rm -f conftest.er1
23036   cat conftest.err >&5
23037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038   (exit $ac_status); } &&
23039          { ac_try='test -z "$ac_c_werror_flag"
23040                          || test ! -s conftest.err'
23041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042   (eval $ac_try) 2>&5
23043   ac_status=$?
23044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045   (exit $ac_status); }; } &&
23046          { ac_try='test -s conftest$ac_exeext'
23047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048   (eval $ac_try) 2>&5
23049   ac_status=$?
23050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051   (exit $ac_status); }; }; then
23052   ac_cv_lib_s_afopen=yes
23053 else
23054   echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23056
23057 ac_cv_lib_s_afopen=no
23058 fi
23059 rm -f conftest.err conftest.$ac_objext \
23060       conftest$ac_exeext conftest.$ac_ext
23061 LIBS=$ac_check_lib_save_LIBS
23062 fi
23063 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23064 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23065 if test $ac_cv_lib_s_afopen = yes; then
23066
23067         AUTH_LIBS=-ls
23068
23069 cat >>confdefs.h <<\_ACEOF
23070 #define HAVE_AIX_SECURITY 1
23071 _ACEOF
23072
23073
23074 fi
23075
23076
23077 case "$target" in
23078 *-ibm-openedition)
23079         ac_cv_func_getopt=no
23080
23081 cat >>confdefs.h <<\_ACEOF
23082 #define BOTH_STRINGS_H 1
23083 _ACEOF
23084
23085         ;;
23086 esac
23087
23088 ol_link_modules=no
23089 WITH_MODULES_ENABLED=no
23090 if test $ol_enable_modules != no ; then
23091
23092 for ac_header in ltdl.h
23093 do
23094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23096   echo "$as_me:$LINENO: checking for $ac_header" >&5
23097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23099   echo $ECHO_N "(cached) $ECHO_C" >&6
23100 fi
23101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23103 else
23104   # Is the header compilable?
23105 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23107 cat >conftest.$ac_ext <<_ACEOF
23108 /* confdefs.h.  */
23109 _ACEOF
23110 cat confdefs.h >>conftest.$ac_ext
23111 cat >>conftest.$ac_ext <<_ACEOF
23112 /* end confdefs.h.  */
23113 $ac_includes_default
23114 #include <$ac_header>
23115 _ACEOF
23116 rm -f conftest.$ac_objext
23117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23118   (eval $ac_compile) 2>conftest.er1
23119   ac_status=$?
23120   grep -v '^ *+' conftest.er1 >conftest.err
23121   rm -f conftest.er1
23122   cat conftest.err >&5
23123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124   (exit $ac_status); } &&
23125          { ac_try='test -z "$ac_c_werror_flag"
23126                          || test ! -s conftest.err'
23127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23128   (eval $ac_try) 2>&5
23129   ac_status=$?
23130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131   (exit $ac_status); }; } &&
23132          { ac_try='test -s conftest.$ac_objext'
23133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23134   (eval $ac_try) 2>&5
23135   ac_status=$?
23136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137   (exit $ac_status); }; }; then
23138   ac_header_compiler=yes
23139 else
23140   echo "$as_me: failed program was:" >&5
23141 sed 's/^/| /' conftest.$ac_ext >&5
23142
23143 ac_header_compiler=no
23144 fi
23145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23147 echo "${ECHO_T}$ac_header_compiler" >&6
23148
23149 # Is the header present?
23150 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23152 cat >conftest.$ac_ext <<_ACEOF
23153 /* confdefs.h.  */
23154 _ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h.  */
23158 #include <$ac_header>
23159 _ACEOF
23160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23161   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23162   ac_status=$?
23163   grep -v '^ *+' conftest.er1 >conftest.err
23164   rm -f conftest.er1
23165   cat conftest.err >&5
23166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167   (exit $ac_status); } >/dev/null; then
23168   if test -s conftest.err; then
23169     ac_cpp_err=$ac_c_preproc_warn_flag
23170     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23171   else
23172     ac_cpp_err=
23173   fi
23174 else
23175   ac_cpp_err=yes
23176 fi
23177 if test -z "$ac_cpp_err"; then
23178   ac_header_preproc=yes
23179 else
23180   echo "$as_me: failed program was:" >&5
23181 sed 's/^/| /' conftest.$ac_ext >&5
23182
23183   ac_header_preproc=no
23184 fi
23185 rm -f conftest.err conftest.$ac_ext
23186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23187 echo "${ECHO_T}$ac_header_preproc" >&6
23188
23189 # So?  What about this header?
23190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23191   yes:no: )
23192     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23196     ac_header_preproc=yes
23197     ;;
23198   no:yes:* )
23199     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23201     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23202 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23203     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23205     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23206 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23207     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23209     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23211     (
23212       cat <<\_ASBOX
23213 ## ------------------------------------------ ##
23214 ## Report this to the AC_PACKAGE_NAME lists.  ##
23215 ## ------------------------------------------ ##
23216 _ASBOX
23217     ) |
23218       sed "s/^/$as_me: WARNING:     /" >&2
23219     ;;
23220 esac
23221 echo "$as_me:$LINENO: checking for $ac_header" >&5
23222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23224   echo $ECHO_N "(cached) $ECHO_C" >&6
23225 else
23226   eval "$as_ac_Header=\$ac_header_preproc"
23227 fi
23228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23230
23231 fi
23232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23233   cat >>confdefs.h <<_ACEOF
23234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23235 _ACEOF
23236
23237 fi
23238
23239 done
23240
23241
23242         if test $ac_cv_header_ltdl_h = no ; then
23243                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23244 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23245    { (exit 1); exit 1; }; }
23246         fi
23247
23248         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23249 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23250 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23251   echo $ECHO_N "(cached) $ECHO_C" >&6
23252 else
23253   ac_check_lib_save_LIBS=$LIBS
23254 LIBS="-lltdl  $LIBS"
23255 cat >conftest.$ac_ext <<_ACEOF
23256 /* confdefs.h.  */
23257 _ACEOF
23258 cat confdefs.h >>conftest.$ac_ext
23259 cat >>conftest.$ac_ext <<_ACEOF
23260 /* end confdefs.h.  */
23261
23262 /* Override any gcc2 internal prototype to avoid an error.  */
23263 #ifdef __cplusplus
23264 extern "C"
23265 #endif
23266 /* We use char because int might match the return type of a gcc2
23267    builtin and then its argument prototype would still apply.  */
23268 char lt_dlinit ();
23269 int
23270 main ()
23271 {
23272 lt_dlinit ();
23273   ;
23274   return 0;
23275 }
23276 _ACEOF
23277 rm -f conftest.$ac_objext conftest$ac_exeext
23278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23279   (eval $ac_link) 2>conftest.er1
23280   ac_status=$?
23281   grep -v '^ *+' conftest.er1 >conftest.err
23282   rm -f conftest.er1
23283   cat conftest.err >&5
23284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285   (exit $ac_status); } &&
23286          { ac_try='test -z "$ac_c_werror_flag"
23287                          || test ! -s conftest.err'
23288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23289   (eval $ac_try) 2>&5
23290   ac_status=$?
23291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292   (exit $ac_status); }; } &&
23293          { ac_try='test -s conftest$ac_exeext'
23294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23295   (eval $ac_try) 2>&5
23296   ac_status=$?
23297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298   (exit $ac_status); }; }; then
23299   ac_cv_lib_ltdl_lt_dlinit=yes
23300 else
23301   echo "$as_me: failed program was:" >&5
23302 sed 's/^/| /' conftest.$ac_ext >&5
23303
23304 ac_cv_lib_ltdl_lt_dlinit=no
23305 fi
23306 rm -f conftest.err conftest.$ac_objext \
23307       conftest$ac_exeext conftest.$ac_ext
23308 LIBS=$ac_check_lib_save_LIBS
23309 fi
23310 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23311 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23312 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23313
23314                 MODULES_LIBS=-lltdl
23315
23316 cat >>confdefs.h <<\_ACEOF
23317 #define HAVE_LIBLTDL 1
23318 _ACEOF
23319
23320
23321 fi
23322
23323
23324         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23325                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23326 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23327    { (exit 1); exit 1; }; }
23328         fi
23329         ol_link_modules=yes
23330         WITH_MODULES_ENABLED=yes
23331
23332 else
23333         for i in $Backends; do
23334                 eval "ol_tmp=\$ol_enable_$i"
23335                 if test $ol_tmp = mod ; then
23336                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23337 echo "$as_me: WARNING: building static $i backend" >&2;}
23338                         eval "ol_enable_$i=yes"
23339                 fi
23340         done
23341         for i in $Overlays; do
23342                 eval "ol_tmp=\$ol_enable_$i"
23343                 if test $ol_tmp = mod ; then
23344                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23345 echo "$as_me: WARNING: building static $i overlay" >&2;}
23346                         eval "ol_enable_$i=yes"
23347                 fi
23348         done
23349 fi
23350
23351 # test for EBCDIC
23352 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23353 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23354 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23355   echo $ECHO_N "(cached) $ECHO_C" >&6
23356 else
23357
23358         cat >conftest.$ac_ext <<_ACEOF
23359 /* confdefs.h.  */
23360 _ACEOF
23361 cat confdefs.h >>conftest.$ac_ext
23362 cat >>conftest.$ac_ext <<_ACEOF
23363 /* end confdefs.h.  */
23364
23365 #if !('M' == 0xd4)
23366 #include <__ASCII__/generate_error.h>
23367 #endif
23368
23369 _ACEOF
23370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23371   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23372   ac_status=$?
23373   grep -v '^ *+' conftest.er1 >conftest.err
23374   rm -f conftest.er1
23375   cat conftest.err >&5
23376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377   (exit $ac_status); } >/dev/null; then
23378   if test -s conftest.err; then
23379     ac_cpp_err=$ac_c_preproc_warn_flag
23380     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23381   else
23382     ac_cpp_err=
23383   fi
23384 else
23385   ac_cpp_err=yes
23386 fi
23387 if test -z "$ac_cpp_err"; then
23388   ol_cv_cpp_ebcdic=yes
23389 else
23390   echo "$as_me: failed program was:" >&5
23391 sed 's/^/| /' conftest.$ac_ext >&5
23392
23393   ol_cv_cpp_ebcdic=no
23394 fi
23395 rm -f conftest.err conftest.$ac_ext
23396 fi
23397 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23398 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23399 if test $ol_cv_cpp_ebcdic = yes ; then
23400
23401 cat >>confdefs.h <<\_ACEOF
23402 #define HAVE_EBCDIC 1
23403 _ACEOF
23404
23405 fi
23406
23407 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23408 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23409 if test "${ol_cv_header_stdc+set}" = set; then
23410   echo $ECHO_N "(cached) $ECHO_C" >&6
23411 else
23412   cat >conftest.$ac_ext <<_ACEOF
23413 /* confdefs.h.  */
23414 _ACEOF
23415 cat confdefs.h >>conftest.$ac_ext
23416 cat >>conftest.$ac_ext <<_ACEOF
23417 /* end confdefs.h.  */
23418 #include <stdlib.h>
23419 #include <stdarg.h>
23420 #include <string.h>
23421 #include <float.h>
23422 _ACEOF
23423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23424   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23425   ac_status=$?
23426   grep -v '^ *+' conftest.er1 >conftest.err
23427   rm -f conftest.er1
23428   cat conftest.err >&5
23429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430   (exit $ac_status); } >/dev/null; then
23431   if test -s conftest.err; then
23432     ac_cpp_err=$ac_c_preproc_warn_flag
23433     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23434   else
23435     ac_cpp_err=
23436   fi
23437 else
23438   ac_cpp_err=yes
23439 fi
23440 if test -z "$ac_cpp_err"; then
23441   ol_cv_header_stdc=yes
23442 else
23443   echo "$as_me: failed program was:" >&5
23444 sed 's/^/| /' conftest.$ac_ext >&5
23445
23446   ol_cv_header_stdc=no
23447 fi
23448 rm -f conftest.err conftest.$ac_ext
23449
23450 if test $ol_cv_header_stdc = yes; then
23451   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23452 cat >conftest.$ac_ext <<_ACEOF
23453 /* confdefs.h.  */
23454 _ACEOF
23455 cat confdefs.h >>conftest.$ac_ext
23456 cat >>conftest.$ac_ext <<_ACEOF
23457 /* end confdefs.h.  */
23458 #include <string.h>
23459
23460 _ACEOF
23461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23462   $EGREP "memchr" >/dev/null 2>&1; then
23463   :
23464 else
23465   ol_cv_header_stdc=no
23466 fi
23467 rm -f conftest*
23468
23469 fi
23470
23471 if test $ol_cv_header_stdc = yes; then
23472   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23473 cat >conftest.$ac_ext <<_ACEOF
23474 /* confdefs.h.  */
23475 _ACEOF
23476 cat confdefs.h >>conftest.$ac_ext
23477 cat >>conftest.$ac_ext <<_ACEOF
23478 /* end confdefs.h.  */
23479 #include <stdlib.h>
23480
23481 _ACEOF
23482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23483   $EGREP "free" >/dev/null 2>&1; then
23484   :
23485 else
23486   ol_cv_header_stdc=no
23487 fi
23488 rm -f conftest*
23489
23490 fi
23491
23492 if test $ol_cv_header_stdc = yes; then
23493   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23494 if test "$cross_compiling" = yes; then
23495   :
23496 else
23497   cat >conftest.$ac_ext <<_ACEOF
23498 /* confdefs.h.  */
23499 _ACEOF
23500 cat confdefs.h >>conftest.$ac_ext
23501 cat >>conftest.$ac_ext <<_ACEOF
23502 /* end confdefs.h.  */
23503 #include <ctype.h>
23504 #ifndef HAVE_EBCDIC
23505 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23506 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23507 #else
23508 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23509                 || ('j' <= (c) && (c) <= 'r') \
23510                 || ('s' <= (c) && (c) <= 'z'))
23511 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
23512 #endif
23513 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23514 int main () { int i; for (i = 0; i < 256; i++)
23515 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23516 exit (0); }
23517
23518 _ACEOF
23519 rm -f conftest$ac_exeext
23520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23521   (eval $ac_link) 2>&5
23522   ac_status=$?
23523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23526   (eval $ac_try) 2>&5
23527   ac_status=$?
23528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529   (exit $ac_status); }; }; then
23530   :
23531 else
23532   echo "$as_me: program exited with status $ac_status" >&5
23533 echo "$as_me: failed program was:" >&5
23534 sed 's/^/| /' conftest.$ac_ext >&5
23535
23536 ( exit $ac_status )
23537 ol_cv_header_stdc=no
23538 fi
23539 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23540 fi
23541 fi
23542 fi
23543 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23544 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23545 if test $ol_cv_header_stdc = yes; then
23546   cat >>confdefs.h <<\_ACEOF
23547 #define STDC_HEADERS 1
23548 _ACEOF
23549
23550 fi
23551 ac_cv_header_stdc=disable
23552
23553
23554 if test $ol_cv_header_stdc != yes; then
23555         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23556 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23557 fi
23558
23559
23560
23561
23562
23563
23564 ac_header_dirent=no
23565 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23566   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23567 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23568 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23570   echo $ECHO_N "(cached) $ECHO_C" >&6
23571 else
23572   cat >conftest.$ac_ext <<_ACEOF
23573 /* confdefs.h.  */
23574 _ACEOF
23575 cat confdefs.h >>conftest.$ac_ext
23576 cat >>conftest.$ac_ext <<_ACEOF
23577 /* end confdefs.h.  */
23578 #include <sys/types.h>
23579 #include <$ac_hdr>
23580
23581 int
23582 main ()
23583 {
23584 if ((DIR *) 0)
23585 return 0;
23586   ;
23587   return 0;
23588 }
23589 _ACEOF
23590 rm -f conftest.$ac_objext
23591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23592   (eval $ac_compile) 2>conftest.er1
23593   ac_status=$?
23594   grep -v '^ *+' conftest.er1 >conftest.err
23595   rm -f conftest.er1
23596   cat conftest.err >&5
23597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598   (exit $ac_status); } &&
23599          { ac_try='test -z "$ac_c_werror_flag"
23600                          || test ! -s conftest.err'
23601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23602   (eval $ac_try) 2>&5
23603   ac_status=$?
23604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605   (exit $ac_status); }; } &&
23606          { ac_try='test -s conftest.$ac_objext'
23607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23608   (eval $ac_try) 2>&5
23609   ac_status=$?
23610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23611   (exit $ac_status); }; }; then
23612   eval "$as_ac_Header=yes"
23613 else
23614   echo "$as_me: failed program was:" >&5
23615 sed 's/^/| /' conftest.$ac_ext >&5
23616
23617 eval "$as_ac_Header=no"
23618 fi
23619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23620 fi
23621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23624   cat >>confdefs.h <<_ACEOF
23625 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23626 _ACEOF
23627
23628 ac_header_dirent=$ac_hdr; break
23629 fi
23630
23631 done
23632 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23633 if test $ac_header_dirent = dirent.h; then
23634   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23635 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23636 if test "${ac_cv_search_opendir+set}" = set; then
23637   echo $ECHO_N "(cached) $ECHO_C" >&6
23638 else
23639   ac_func_search_save_LIBS=$LIBS
23640 ac_cv_search_opendir=no
23641 cat >conftest.$ac_ext <<_ACEOF
23642 /* confdefs.h.  */
23643 _ACEOF
23644 cat confdefs.h >>conftest.$ac_ext
23645 cat >>conftest.$ac_ext <<_ACEOF
23646 /* end confdefs.h.  */
23647
23648 /* Override any gcc2 internal prototype to avoid an error.  */
23649 #ifdef __cplusplus
23650 extern "C"
23651 #endif
23652 /* We use char because int might match the return type of a gcc2
23653    builtin and then its argument prototype would still apply.  */
23654 char opendir ();
23655 int
23656 main ()
23657 {
23658 opendir ();
23659   ;
23660   return 0;
23661 }
23662 _ACEOF
23663 rm -f conftest.$ac_objext conftest$ac_exeext
23664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23665   (eval $ac_link) 2>conftest.er1
23666   ac_status=$?
23667   grep -v '^ *+' conftest.er1 >conftest.err
23668   rm -f conftest.er1
23669   cat conftest.err >&5
23670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671   (exit $ac_status); } &&
23672          { ac_try='test -z "$ac_c_werror_flag"
23673                          || test ! -s conftest.err'
23674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23675   (eval $ac_try) 2>&5
23676   ac_status=$?
23677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678   (exit $ac_status); }; } &&
23679          { ac_try='test -s conftest$ac_exeext'
23680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23681   (eval $ac_try) 2>&5
23682   ac_status=$?
23683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684   (exit $ac_status); }; }; then
23685   ac_cv_search_opendir="none required"
23686 else
23687   echo "$as_me: failed program was:" >&5
23688 sed 's/^/| /' conftest.$ac_ext >&5
23689
23690 fi
23691 rm -f conftest.err conftest.$ac_objext \
23692       conftest$ac_exeext conftest.$ac_ext
23693 if test "$ac_cv_search_opendir" = no; then
23694   for ac_lib in dir; do
23695     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23696     cat >conftest.$ac_ext <<_ACEOF
23697 /* confdefs.h.  */
23698 _ACEOF
23699 cat confdefs.h >>conftest.$ac_ext
23700 cat >>conftest.$ac_ext <<_ACEOF
23701 /* end confdefs.h.  */
23702
23703 /* Override any gcc2 internal prototype to avoid an error.  */
23704 #ifdef __cplusplus
23705 extern "C"
23706 #endif
23707 /* We use char because int might match the return type of a gcc2
23708    builtin and then its argument prototype would still apply.  */
23709 char opendir ();
23710 int
23711 main ()
23712 {
23713 opendir ();
23714   ;
23715   return 0;
23716 }
23717 _ACEOF
23718 rm -f conftest.$ac_objext conftest$ac_exeext
23719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23720   (eval $ac_link) 2>conftest.er1
23721   ac_status=$?
23722   grep -v '^ *+' conftest.er1 >conftest.err
23723   rm -f conftest.er1
23724   cat conftest.err >&5
23725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726   (exit $ac_status); } &&
23727          { ac_try='test -z "$ac_c_werror_flag"
23728                          || test ! -s conftest.err'
23729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730   (eval $ac_try) 2>&5
23731   ac_status=$?
23732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733   (exit $ac_status); }; } &&
23734          { ac_try='test -s conftest$ac_exeext'
23735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736   (eval $ac_try) 2>&5
23737   ac_status=$?
23738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739   (exit $ac_status); }; }; then
23740   ac_cv_search_opendir="-l$ac_lib"
23741 break
23742 else
23743   echo "$as_me: failed program was:" >&5
23744 sed 's/^/| /' conftest.$ac_ext >&5
23745
23746 fi
23747 rm -f conftest.err conftest.$ac_objext \
23748       conftest$ac_exeext conftest.$ac_ext
23749   done
23750 fi
23751 LIBS=$ac_func_search_save_LIBS
23752 fi
23753 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23754 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23755 if test "$ac_cv_search_opendir" != no; then
23756   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23757
23758 fi
23759
23760 else
23761   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23762 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23763 if test "${ac_cv_search_opendir+set}" = set; then
23764   echo $ECHO_N "(cached) $ECHO_C" >&6
23765 else
23766   ac_func_search_save_LIBS=$LIBS
23767 ac_cv_search_opendir=no
23768 cat >conftest.$ac_ext <<_ACEOF
23769 /* confdefs.h.  */
23770 _ACEOF
23771 cat confdefs.h >>conftest.$ac_ext
23772 cat >>conftest.$ac_ext <<_ACEOF
23773 /* end confdefs.h.  */
23774
23775 /* Override any gcc2 internal prototype to avoid an error.  */
23776 #ifdef __cplusplus
23777 extern "C"
23778 #endif
23779 /* We use char because int might match the return type of a gcc2
23780    builtin and then its argument prototype would still apply.  */
23781 char opendir ();
23782 int
23783 main ()
23784 {
23785 opendir ();
23786   ;
23787   return 0;
23788 }
23789 _ACEOF
23790 rm -f conftest.$ac_objext conftest$ac_exeext
23791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23792   (eval $ac_link) 2>conftest.er1
23793   ac_status=$?
23794   grep -v '^ *+' conftest.er1 >conftest.err
23795   rm -f conftest.er1
23796   cat conftest.err >&5
23797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798   (exit $ac_status); } &&
23799          { ac_try='test -z "$ac_c_werror_flag"
23800                          || test ! -s conftest.err'
23801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23802   (eval $ac_try) 2>&5
23803   ac_status=$?
23804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805   (exit $ac_status); }; } &&
23806          { ac_try='test -s conftest$ac_exeext'
23807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23808   (eval $ac_try) 2>&5
23809   ac_status=$?
23810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811   (exit $ac_status); }; }; then
23812   ac_cv_search_opendir="none required"
23813 else
23814   echo "$as_me: failed program was:" >&5
23815 sed 's/^/| /' conftest.$ac_ext >&5
23816
23817 fi
23818 rm -f conftest.err conftest.$ac_objext \
23819       conftest$ac_exeext conftest.$ac_ext
23820 if test "$ac_cv_search_opendir" = no; then
23821   for ac_lib in x; do
23822     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23823     cat >conftest.$ac_ext <<_ACEOF
23824 /* confdefs.h.  */
23825 _ACEOF
23826 cat confdefs.h >>conftest.$ac_ext
23827 cat >>conftest.$ac_ext <<_ACEOF
23828 /* end confdefs.h.  */
23829
23830 /* Override any gcc2 internal prototype to avoid an error.  */
23831 #ifdef __cplusplus
23832 extern "C"
23833 #endif
23834 /* We use char because int might match the return type of a gcc2
23835    builtin and then its argument prototype would still apply.  */
23836 char opendir ();
23837 int
23838 main ()
23839 {
23840 opendir ();
23841   ;
23842   return 0;
23843 }
23844 _ACEOF
23845 rm -f conftest.$ac_objext conftest$ac_exeext
23846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23847   (eval $ac_link) 2>conftest.er1
23848   ac_status=$?
23849   grep -v '^ *+' conftest.er1 >conftest.err
23850   rm -f conftest.er1
23851   cat conftest.err >&5
23852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853   (exit $ac_status); } &&
23854          { ac_try='test -z "$ac_c_werror_flag"
23855                          || test ! -s conftest.err'
23856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23857   (eval $ac_try) 2>&5
23858   ac_status=$?
23859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860   (exit $ac_status); }; } &&
23861          { ac_try='test -s conftest$ac_exeext'
23862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23863   (eval $ac_try) 2>&5
23864   ac_status=$?
23865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866   (exit $ac_status); }; }; then
23867   ac_cv_search_opendir="-l$ac_lib"
23868 break
23869 else
23870   echo "$as_me: failed program was:" >&5
23871 sed 's/^/| /' conftest.$ac_ext >&5
23872
23873 fi
23874 rm -f conftest.err conftest.$ac_objext \
23875       conftest$ac_exeext conftest.$ac_ext
23876   done
23877 fi
23878 LIBS=$ac_func_search_save_LIBS
23879 fi
23880 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23881 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23882 if test "$ac_cv_search_opendir" != no; then
23883   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23884
23885 fi
23886
23887 fi
23888
23889 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23890 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
23891 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23892   echo $ECHO_N "(cached) $ECHO_C" >&6
23893 else
23894   cat >conftest.$ac_ext <<_ACEOF
23895 /* confdefs.h.  */
23896 _ACEOF
23897 cat confdefs.h >>conftest.$ac_ext
23898 cat >>conftest.$ac_ext <<_ACEOF
23899 /* end confdefs.h.  */
23900 #include <sys/types.h>
23901 #include <sys/wait.h>
23902 #ifndef WEXITSTATUS
23903 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
23904 #endif
23905 #ifndef WIFEXITED
23906 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23907 #endif
23908
23909 int
23910 main ()
23911 {
23912   int s;
23913   wait (&s);
23914   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23915   ;
23916   return 0;
23917 }
23918 _ACEOF
23919 rm -f conftest.$ac_objext
23920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23921   (eval $ac_compile) 2>conftest.er1
23922   ac_status=$?
23923   grep -v '^ *+' conftest.er1 >conftest.err
23924   rm -f conftest.er1
23925   cat conftest.err >&5
23926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927   (exit $ac_status); } &&
23928          { ac_try='test -z "$ac_c_werror_flag"
23929                          || test ! -s conftest.err'
23930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23931   (eval $ac_try) 2>&5
23932   ac_status=$?
23933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934   (exit $ac_status); }; } &&
23935          { ac_try='test -s conftest.$ac_objext'
23936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23937   (eval $ac_try) 2>&5
23938   ac_status=$?
23939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940   (exit $ac_status); }; }; then
23941   ac_cv_header_sys_wait_h=yes
23942 else
23943   echo "$as_me: failed program was:" >&5
23944 sed 's/^/| /' conftest.$ac_ext >&5
23945
23946 ac_cv_header_sys_wait_h=no
23947 fi
23948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23949 fi
23950 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23951 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
23952 if test $ac_cv_header_sys_wait_h = yes; then
23953
23954 cat >>confdefs.h <<\_ACEOF
23955 #define HAVE_SYS_WAIT_H 1
23956 _ACEOF
23957
23958 fi
23959
23960 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
23961 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
23962 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
23963   echo $ECHO_N "(cached) $ECHO_C" >&6
23964 else
23965   cat >conftest.$ac_ext <<_ACEOF
23966 /* confdefs.h.  */
23967 _ACEOF
23968 cat confdefs.h >>conftest.$ac_ext
23969 cat >>conftest.$ac_ext <<_ACEOF
23970 /* end confdefs.h.  */
23971 #include <sys/types.h>
23972 #include <termios.h>
23973 #ifdef TIOCGWINSZ
23974   yes
23975 #endif
23976
23977 _ACEOF
23978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23979   $EGREP "yes" >/dev/null 2>&1; then
23980   ac_cv_sys_tiocgwinsz_in_termios_h=yes
23981 else
23982   ac_cv_sys_tiocgwinsz_in_termios_h=no
23983 fi
23984 rm -f conftest*
23985
23986 fi
23987 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
23988 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
23989
23990 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
23991   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
23992 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
23993 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
23994   echo $ECHO_N "(cached) $ECHO_C" >&6
23995 else
23996   cat >conftest.$ac_ext <<_ACEOF
23997 /* confdefs.h.  */
23998 _ACEOF
23999 cat confdefs.h >>conftest.$ac_ext
24000 cat >>conftest.$ac_ext <<_ACEOF
24001 /* end confdefs.h.  */
24002 #include <sys/types.h>
24003 #include <sys/ioctl.h>
24004 #ifdef TIOCGWINSZ
24005   yes
24006 #endif
24007
24008 _ACEOF
24009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24010   $EGREP "yes" >/dev/null 2>&1; then
24011   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
24012 else
24013   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
24014 fi
24015 rm -f conftest*
24016
24017 fi
24018 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24019 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24020
24021   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24022
24023 cat >>confdefs.h <<\_ACEOF
24024 #define GWINSZ_IN_SYS_IOCTL 1
24025 _ACEOF
24026
24027   fi
24028 fi
24029
24030
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040
24041
24042
24043
24044
24045
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060
24061
24062
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078 for ac_header in \
24079         arpa/inet.h             \
24080         arpa/nameser.h          \
24081         assert.h                \
24082         bits/types.h            \
24083         conio.h                 \
24084         crypt.h                 \
24085         direct.h                \
24086         errno.h                 \
24087         fcntl.h                 \
24088         filio.h                 \
24089         getopt.h                \
24090         grp.h                   \
24091         io.h                    \
24092         libutil.h               \
24093         limits.h                \
24094         locale.h                \
24095         netinet/tcp.h           \
24096         malloc.h                \
24097         memory.h                \
24098         psap.h                  \
24099         pwd.h                   \
24100         process.h               \
24101         sgtty.h                 \
24102         shadow.h                \
24103         stddef.h                \
24104         string.h                \
24105         strings.h               \
24106         sysexits.h              \
24107         sys/file.h              \
24108         sys/filio.h             \
24109         sys/errno.h             \
24110         sys/ioctl.h             \
24111         sys/param.h             \
24112         sys/resource.h          \
24113         sys/select.h            \
24114         sys/socket.h            \
24115         sys/stat.h              \
24116         sys/syslog.h            \
24117         sys/time.h              \
24118         sys/types.h             \
24119         sys/uio.h               \
24120         syslog.h                \
24121         termios.h               \
24122         unistd.h                \
24123         utime.h                 \
24124         winsock.h               \
24125         winsock2.h              \
24126
24127 do
24128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24130   echo "$as_me:$LINENO: checking for $ac_header" >&5
24131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24133   echo $ECHO_N "(cached) $ECHO_C" >&6
24134 fi
24135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24137 else
24138   # Is the header compilable?
24139 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24141 cat >conftest.$ac_ext <<_ACEOF
24142 /* confdefs.h.  */
24143 _ACEOF
24144 cat confdefs.h >>conftest.$ac_ext
24145 cat >>conftest.$ac_ext <<_ACEOF
24146 /* end confdefs.h.  */
24147 $ac_includes_default
24148 #include <$ac_header>
24149 _ACEOF
24150 rm -f conftest.$ac_objext
24151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24152   (eval $ac_compile) 2>conftest.er1
24153   ac_status=$?
24154   grep -v '^ *+' conftest.er1 >conftest.err
24155   rm -f conftest.er1
24156   cat conftest.err >&5
24157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158   (exit $ac_status); } &&
24159          { ac_try='test -z "$ac_c_werror_flag"
24160                          || test ! -s conftest.err'
24161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24162   (eval $ac_try) 2>&5
24163   ac_status=$?
24164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165   (exit $ac_status); }; } &&
24166          { ac_try='test -s conftest.$ac_objext'
24167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24168   (eval $ac_try) 2>&5
24169   ac_status=$?
24170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171   (exit $ac_status); }; }; then
24172   ac_header_compiler=yes
24173 else
24174   echo "$as_me: failed program was:" >&5
24175 sed 's/^/| /' conftest.$ac_ext >&5
24176
24177 ac_header_compiler=no
24178 fi
24179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24181 echo "${ECHO_T}$ac_header_compiler" >&6
24182
24183 # Is the header present?
24184 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24186 cat >conftest.$ac_ext <<_ACEOF
24187 /* confdefs.h.  */
24188 _ACEOF
24189 cat confdefs.h >>conftest.$ac_ext
24190 cat >>conftest.$ac_ext <<_ACEOF
24191 /* end confdefs.h.  */
24192 #include <$ac_header>
24193 _ACEOF
24194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24195   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24196   ac_status=$?
24197   grep -v '^ *+' conftest.er1 >conftest.err
24198   rm -f conftest.er1
24199   cat conftest.err >&5
24200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201   (exit $ac_status); } >/dev/null; then
24202   if test -s conftest.err; then
24203     ac_cpp_err=$ac_c_preproc_warn_flag
24204     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24205   else
24206     ac_cpp_err=
24207   fi
24208 else
24209   ac_cpp_err=yes
24210 fi
24211 if test -z "$ac_cpp_err"; then
24212   ac_header_preproc=yes
24213 else
24214   echo "$as_me: failed program was:" >&5
24215 sed 's/^/| /' conftest.$ac_ext >&5
24216
24217   ac_header_preproc=no
24218 fi
24219 rm -f conftest.err conftest.$ac_ext
24220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24221 echo "${ECHO_T}$ac_header_preproc" >&6
24222
24223 # So?  What about this header?
24224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24225   yes:no: )
24226     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24228     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24230     ac_header_preproc=yes
24231     ;;
24232   no:yes:* )
24233     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24235     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24236 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24237     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24239     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24240 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24243     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24245     (
24246       cat <<\_ASBOX
24247 ## ------------------------------------------ ##
24248 ## Report this to the AC_PACKAGE_NAME lists.  ##
24249 ## ------------------------------------------ ##
24250 _ASBOX
24251     ) |
24252       sed "s/^/$as_me: WARNING:     /" >&2
24253     ;;
24254 esac
24255 echo "$as_me:$LINENO: checking for $ac_header" >&5
24256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24258   echo $ECHO_N "(cached) $ECHO_C" >&6
24259 else
24260   eval "$as_ac_Header=\$ac_header_preproc"
24261 fi
24262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24264
24265 fi
24266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24267   cat >>confdefs.h <<_ACEOF
24268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24269 _ACEOF
24270
24271 fi
24272
24273 done
24274
24275
24276
24277 for ac_header in resolv.h
24278 do
24279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24280 echo "$as_me:$LINENO: checking for $ac_header" >&5
24281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24283   echo $ECHO_N "(cached) $ECHO_C" >&6
24284 else
24285   cat >conftest.$ac_ext <<_ACEOF
24286 /* confdefs.h.  */
24287 _ACEOF
24288 cat confdefs.h >>conftest.$ac_ext
24289 cat >>conftest.$ac_ext <<_ACEOF
24290 /* end confdefs.h.  */
24291 $ac_includes_default
24292 #include <netinet/in.h>
24293
24294
24295 #include <$ac_header>
24296 _ACEOF
24297 rm -f conftest.$ac_objext
24298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24299   (eval $ac_compile) 2>conftest.er1
24300   ac_status=$?
24301   grep -v '^ *+' conftest.er1 >conftest.err
24302   rm -f conftest.er1
24303   cat conftest.err >&5
24304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305   (exit $ac_status); } &&
24306          { ac_try='test -z "$ac_c_werror_flag"
24307                          || test ! -s conftest.err'
24308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24309   (eval $ac_try) 2>&5
24310   ac_status=$?
24311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312   (exit $ac_status); }; } &&
24313          { ac_try='test -s conftest.$ac_objext'
24314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24315   (eval $ac_try) 2>&5
24316   ac_status=$?
24317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318   (exit $ac_status); }; }; then
24319   eval "$as_ac_Header=yes"
24320 else
24321   echo "$as_me: failed program was:" >&5
24322 sed 's/^/| /' conftest.$ac_ext >&5
24323
24324 eval "$as_ac_Header=no"
24325 fi
24326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24327 fi
24328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24331   cat >>confdefs.h <<_ACEOF
24332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24333 _ACEOF
24334
24335 fi
24336
24337 done
24338
24339
24340
24341 for ac_header in sys/ucred.h
24342 do
24343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24344 echo "$as_me:$LINENO: checking for $ac_header" >&5
24345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24347   echo $ECHO_N "(cached) $ECHO_C" >&6
24348 else
24349   cat >conftest.$ac_ext <<_ACEOF
24350 /* confdefs.h.  */
24351 _ACEOF
24352 cat confdefs.h >>conftest.$ac_ext
24353 cat >>conftest.$ac_ext <<_ACEOF
24354 /* end confdefs.h.  */
24355 $ac_includes_default
24356 #ifdef HAVE_SYS_PARAM_H
24357 #include <sys/param.h>
24358 #endif
24359
24360
24361 #include <$ac_header>
24362 _ACEOF
24363 rm -f conftest.$ac_objext
24364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24365   (eval $ac_compile) 2>conftest.er1
24366   ac_status=$?
24367   grep -v '^ *+' conftest.er1 >conftest.err
24368   rm -f conftest.er1
24369   cat conftest.err >&5
24370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371   (exit $ac_status); } &&
24372          { ac_try='test -z "$ac_c_werror_flag"
24373                          || test ! -s conftest.err'
24374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24375   (eval $ac_try) 2>&5
24376   ac_status=$?
24377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378   (exit $ac_status); }; } &&
24379          { ac_try='test -s conftest.$ac_objext'
24380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24381   (eval $ac_try) 2>&5
24382   ac_status=$?
24383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384   (exit $ac_status); }; }; then
24385   eval "$as_ac_Header=yes"
24386 else
24387   echo "$as_me: failed program was:" >&5
24388 sed 's/^/| /' conftest.$ac_ext >&5
24389
24390 eval "$as_ac_Header=no"
24391 fi
24392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24393 fi
24394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24397   cat >>confdefs.h <<_ACEOF
24398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24399 _ACEOF
24400
24401 fi
24402
24403 done
24404
24405
24406
24407
24408
24409 for ac_func in sigaction sigset
24410 do
24411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24412 echo "$as_me:$LINENO: checking for $ac_func" >&5
24413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24414 if eval "test \"\${$as_ac_var+set}\" = set"; then
24415   echo $ECHO_N "(cached) $ECHO_C" >&6
24416 else
24417   cat >conftest.$ac_ext <<_ACEOF
24418 /* confdefs.h.  */
24419 _ACEOF
24420 cat confdefs.h >>conftest.$ac_ext
24421 cat >>conftest.$ac_ext <<_ACEOF
24422 /* end confdefs.h.  */
24423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24424    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24425 #define $ac_func innocuous_$ac_func
24426
24427 /* System header to define __stub macros and hopefully few prototypes,
24428     which can conflict with char $ac_func (); below.
24429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24430     <limits.h> exists even on freestanding compilers.  */
24431
24432 #ifdef __STDC__
24433 # include <limits.h>
24434 #else
24435 # include <assert.h>
24436 #endif
24437
24438 #undef $ac_func
24439
24440 /* Override any gcc2 internal prototype to avoid an error.  */
24441 #ifdef __cplusplus
24442 extern "C"
24443 {
24444 #endif
24445 /* We use char because int might match the return type of a gcc2
24446    builtin and then its argument prototype would still apply.  */
24447 char $ac_func ();
24448 /* The GNU C library defines this for functions which it implements
24449     to always fail with ENOSYS.  Some functions are actually named
24450     something starting with __ and the normal name is an alias.  */
24451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24452 choke me
24453 #else
24454 char (*f) () = $ac_func;
24455 #endif
24456 #ifdef __cplusplus
24457 }
24458 #endif
24459
24460 int
24461 main ()
24462 {
24463 return f != $ac_func;
24464   ;
24465   return 0;
24466 }
24467 _ACEOF
24468 rm -f conftest.$ac_objext conftest$ac_exeext
24469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24470   (eval $ac_link) 2>conftest.er1
24471   ac_status=$?
24472   grep -v '^ *+' conftest.er1 >conftest.err
24473   rm -f conftest.er1
24474   cat conftest.err >&5
24475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476   (exit $ac_status); } &&
24477          { ac_try='test -z "$ac_c_werror_flag"
24478                          || test ! -s conftest.err'
24479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24480   (eval $ac_try) 2>&5
24481   ac_status=$?
24482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483   (exit $ac_status); }; } &&
24484          { ac_try='test -s conftest$ac_exeext'
24485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24486   (eval $ac_try) 2>&5
24487   ac_status=$?
24488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489   (exit $ac_status); }; }; then
24490   eval "$as_ac_var=yes"
24491 else
24492   echo "$as_me: failed program was:" >&5
24493 sed 's/^/| /' conftest.$ac_ext >&5
24494
24495 eval "$as_ac_var=no"
24496 fi
24497 rm -f conftest.err conftest.$ac_objext \
24498       conftest$ac_exeext conftest.$ac_ext
24499 fi
24500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24502 if test `eval echo '${'$as_ac_var'}'` = yes; then
24503   cat >>confdefs.h <<_ACEOF
24504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24505 _ACEOF
24506
24507 fi
24508 done
24509
24510
24511 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24512
24513 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24514 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24515 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24516   echo $ECHO_N "(cached) $ECHO_C" >&6
24517 else
24518   ac_check_lib_save_LIBS=$LIBS
24519 LIBS="-lV3  $LIBS"
24520 cat >conftest.$ac_ext <<_ACEOF
24521 /* confdefs.h.  */
24522 _ACEOF
24523 cat confdefs.h >>conftest.$ac_ext
24524 cat >>conftest.$ac_ext <<_ACEOF
24525 /* end confdefs.h.  */
24526
24527 /* Override any gcc2 internal prototype to avoid an error.  */
24528 #ifdef __cplusplus
24529 extern "C"
24530 #endif
24531 /* We use char because int might match the return type of a gcc2
24532    builtin and then its argument prototype would still apply.  */
24533 char sigset ();
24534 int
24535 main ()
24536 {
24537 sigset ();
24538   ;
24539   return 0;
24540 }
24541 _ACEOF
24542 rm -f conftest.$ac_objext conftest$ac_exeext
24543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24544   (eval $ac_link) 2>conftest.er1
24545   ac_status=$?
24546   grep -v '^ *+' conftest.er1 >conftest.err
24547   rm -f conftest.er1
24548   cat conftest.err >&5
24549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550   (exit $ac_status); } &&
24551          { ac_try='test -z "$ac_c_werror_flag"
24552                          || test ! -s conftest.err'
24553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24554   (eval $ac_try) 2>&5
24555   ac_status=$?
24556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557   (exit $ac_status); }; } &&
24558          { ac_try='test -s conftest$ac_exeext'
24559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24560   (eval $ac_try) 2>&5
24561   ac_status=$?
24562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563   (exit $ac_status); }; }; then
24564   ac_cv_lib_V3_sigset=yes
24565 else
24566   echo "$as_me: failed program was:" >&5
24567 sed 's/^/| /' conftest.$ac_ext >&5
24568
24569 ac_cv_lib_V3_sigset=no
24570 fi
24571 rm -f conftest.err conftest.$ac_objext \
24572       conftest$ac_exeext conftest.$ac_ext
24573 LIBS=$ac_check_lib_save_LIBS
24574 fi
24575 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24576 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24577 if test $ac_cv_lib_V3_sigset = yes; then
24578   cat >>confdefs.h <<_ACEOF
24579 #define HAVE_LIBV3 1
24580 _ACEOF
24581
24582   LIBS="-lV3 $LIBS"
24583
24584 fi
24585
24586 fi
24587
24588 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24589 echo "$as_me:$LINENO: checking for winsock" >&5
24590 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24591 if test "${ol_cv_winsock+set}" = set; then
24592   echo $ECHO_N "(cached) $ECHO_C" >&6
24593 else
24594   save_LIBS="$LIBS"
24595 for curlib in ws2_32 wsock32; do
24596         LIBS="$LIBS -l$curlib"
24597         cat >conftest.$ac_ext <<_ACEOF
24598 /* confdefs.h.  */
24599 _ACEOF
24600 cat confdefs.h >>conftest.$ac_ext
24601 cat >>conftest.$ac_ext <<_ACEOF
24602 /* end confdefs.h.  */
24603 #include <winsock.h>
24604
24605 int
24606 main ()
24607 {
24608
24609                         socket(0,0,0);
24610                         select(0,NULL,NULL,NULL,NULL);
24611                         closesocket(0);
24612                         gethostname(NULL,0);
24613
24614   ;
24615   return 0;
24616 }
24617 _ACEOF
24618 rm -f conftest.$ac_objext conftest$ac_exeext
24619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24620   (eval $ac_link) 2>conftest.er1
24621   ac_status=$?
24622   grep -v '^ *+' conftest.er1 >conftest.err
24623   rm -f conftest.er1
24624   cat conftest.err >&5
24625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626   (exit $ac_status); } &&
24627          { ac_try='test -z "$ac_c_werror_flag"
24628                          || test ! -s conftest.err'
24629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24630   (eval $ac_try) 2>&5
24631   ac_status=$?
24632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633   (exit $ac_status); }; } &&
24634          { ac_try='test -s conftest$ac_exeext'
24635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24636   (eval $ac_try) 2>&5
24637   ac_status=$?
24638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639   (exit $ac_status); }; }; then
24640   ol_cv_winsock=yes
24641 else
24642   echo "$as_me: failed program was:" >&5
24643 sed 's/^/| /' conftest.$ac_ext >&5
24644
24645 ol_cv_winsock=no
24646 fi
24647 rm -f conftest.err conftest.$ac_objext \
24648       conftest$ac_exeext conftest.$ac_ext
24649
24650         if test $ol_cv_winsock = yes; then
24651
24652 cat >>confdefs.h <<\_ACEOF
24653 #define HAVE_WINSOCK 1
24654 _ACEOF
24655
24656                 ac_cv_func_socket=yes
24657                 ac_cv_func_select=yes
24658                 ac_cv_func_closesocket=yes
24659                 ac_cv_func_gethostname=yes
24660                 if test $curlib = ws2_32; then
24661                         ol_cv_winsock=winsock2
24662
24663 cat >>confdefs.h <<\_ACEOF
24664 #define HAVE_WINSOCK2 1
24665 _ACEOF
24666
24667                 fi
24668                 break
24669         fi
24670         LIBS="$save_LIBS"
24671 done
24672 fi
24673 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24674 echo "${ECHO_T}$ol_cv_winsock" >&6
24675 fi
24676
24677
24678 echo "$as_me:$LINENO: checking for socket" >&5
24679 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24680 if test "${ac_cv_func_socket+set}" = set; then
24681   echo $ECHO_N "(cached) $ECHO_C" >&6
24682 else
24683   cat >conftest.$ac_ext <<_ACEOF
24684 /* confdefs.h.  */
24685 _ACEOF
24686 cat confdefs.h >>conftest.$ac_ext
24687 cat >>conftest.$ac_ext <<_ACEOF
24688 /* end confdefs.h.  */
24689 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24691 #define socket innocuous_socket
24692
24693 /* System header to define __stub macros and hopefully few prototypes,
24694     which can conflict with char socket (); below.
24695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24696     <limits.h> exists even on freestanding compilers.  */
24697
24698 #ifdef __STDC__
24699 # include <limits.h>
24700 #else
24701 # include <assert.h>
24702 #endif
24703
24704 #undef socket
24705
24706 /* Override any gcc2 internal prototype to avoid an error.  */
24707 #ifdef __cplusplus
24708 extern "C"
24709 {
24710 #endif
24711 /* We use char because int might match the return type of a gcc2
24712    builtin and then its argument prototype would still apply.  */
24713 char socket ();
24714 /* The GNU C library defines this for functions which it implements
24715     to always fail with ENOSYS.  Some functions are actually named
24716     something starting with __ and the normal name is an alias.  */
24717 #if defined (__stub_socket) || defined (__stub___socket)
24718 choke me
24719 #else
24720 char (*f) () = socket;
24721 #endif
24722 #ifdef __cplusplus
24723 }
24724 #endif
24725
24726 int
24727 main ()
24728 {
24729 return f != socket;
24730   ;
24731   return 0;
24732 }
24733 _ACEOF
24734 rm -f conftest.$ac_objext conftest$ac_exeext
24735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24736   (eval $ac_link) 2>conftest.er1
24737   ac_status=$?
24738   grep -v '^ *+' conftest.er1 >conftest.err
24739   rm -f conftest.er1
24740   cat conftest.err >&5
24741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742   (exit $ac_status); } &&
24743          { ac_try='test -z "$ac_c_werror_flag"
24744                          || test ! -s conftest.err'
24745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24746   (eval $ac_try) 2>&5
24747   ac_status=$?
24748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749   (exit $ac_status); }; } &&
24750          { ac_try='test -s conftest$ac_exeext'
24751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24752   (eval $ac_try) 2>&5
24753   ac_status=$?
24754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755   (exit $ac_status); }; }; then
24756   ac_cv_func_socket=yes
24757 else
24758   echo "$as_me: failed program was:" >&5
24759 sed 's/^/| /' conftest.$ac_ext >&5
24760
24761 ac_cv_func_socket=no
24762 fi
24763 rm -f conftest.err conftest.$ac_objext \
24764       conftest$ac_exeext conftest.$ac_ext
24765 fi
24766 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24767 echo "${ECHO_T}$ac_cv_func_socket" >&6
24768 if test $ac_cv_func_socket = yes; then
24769   :
24770 else
24771
24772
24773 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24774 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24775 if test "${ac_cv_lib_socket_main+set}" = set; then
24776   echo $ECHO_N "(cached) $ECHO_C" >&6
24777 else
24778   ac_check_lib_save_LIBS=$LIBS
24779 LIBS="-lsocket  $LIBS"
24780 cat >conftest.$ac_ext <<_ACEOF
24781 /* confdefs.h.  */
24782 _ACEOF
24783 cat confdefs.h >>conftest.$ac_ext
24784 cat >>conftest.$ac_ext <<_ACEOF
24785 /* end confdefs.h.  */
24786
24787
24788 int
24789 main ()
24790 {
24791 main ();
24792   ;
24793   return 0;
24794 }
24795 _ACEOF
24796 rm -f conftest.$ac_objext conftest$ac_exeext
24797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24798   (eval $ac_link) 2>conftest.er1
24799   ac_status=$?
24800   grep -v '^ *+' conftest.er1 >conftest.err
24801   rm -f conftest.er1
24802   cat conftest.err >&5
24803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804   (exit $ac_status); } &&
24805          { ac_try='test -z "$ac_c_werror_flag"
24806                          || test ! -s conftest.err'
24807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24808   (eval $ac_try) 2>&5
24809   ac_status=$?
24810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811   (exit $ac_status); }; } &&
24812          { ac_try='test -s conftest$ac_exeext'
24813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24814   (eval $ac_try) 2>&5
24815   ac_status=$?
24816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817   (exit $ac_status); }; }; then
24818   ac_cv_lib_socket_main=yes
24819 else
24820   echo "$as_me: failed program was:" >&5
24821 sed 's/^/| /' conftest.$ac_ext >&5
24822
24823 ac_cv_lib_socket_main=no
24824 fi
24825 rm -f conftest.err conftest.$ac_objext \
24826       conftest$ac_exeext conftest.$ac_ext
24827 LIBS=$ac_check_lib_save_LIBS
24828 fi
24829 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24830 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24831 if test $ac_cv_lib_socket_main = yes; then
24832   cat >>confdefs.h <<_ACEOF
24833 #define HAVE_LIBSOCKET 1
24834 _ACEOF
24835
24836   LIBS="-lsocket $LIBS"
24837
24838 fi
24839
24840
24841 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24842 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24843 if test "${ac_cv_lib_net_main+set}" = set; then
24844   echo $ECHO_N "(cached) $ECHO_C" >&6
24845 else
24846   ac_check_lib_save_LIBS=$LIBS
24847 LIBS="-lnet  $LIBS"
24848 cat >conftest.$ac_ext <<_ACEOF
24849 /* confdefs.h.  */
24850 _ACEOF
24851 cat confdefs.h >>conftest.$ac_ext
24852 cat >>conftest.$ac_ext <<_ACEOF
24853 /* end confdefs.h.  */
24854
24855
24856 int
24857 main ()
24858 {
24859 main ();
24860   ;
24861   return 0;
24862 }
24863 _ACEOF
24864 rm -f conftest.$ac_objext conftest$ac_exeext
24865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24866   (eval $ac_link) 2>conftest.er1
24867   ac_status=$?
24868   grep -v '^ *+' conftest.er1 >conftest.err
24869   rm -f conftest.er1
24870   cat conftest.err >&5
24871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24872   (exit $ac_status); } &&
24873          { ac_try='test -z "$ac_c_werror_flag"
24874                          || test ! -s conftest.err'
24875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24876   (eval $ac_try) 2>&5
24877   ac_status=$?
24878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879   (exit $ac_status); }; } &&
24880          { ac_try='test -s conftest$ac_exeext'
24881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24882   (eval $ac_try) 2>&5
24883   ac_status=$?
24884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885   (exit $ac_status); }; }; then
24886   ac_cv_lib_net_main=yes
24887 else
24888   echo "$as_me: failed program was:" >&5
24889 sed 's/^/| /' conftest.$ac_ext >&5
24890
24891 ac_cv_lib_net_main=no
24892 fi
24893 rm -f conftest.err conftest.$ac_objext \
24894       conftest$ac_exeext conftest.$ac_ext
24895 LIBS=$ac_check_lib_save_LIBS
24896 fi
24897 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
24898 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
24899 if test $ac_cv_lib_net_main = yes; then
24900   cat >>confdefs.h <<_ACEOF
24901 #define HAVE_LIBNET 1
24902 _ACEOF
24903
24904   LIBS="-lnet $LIBS"
24905
24906 fi
24907
24908
24909 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
24910 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
24911 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
24912   echo $ECHO_N "(cached) $ECHO_C" >&6
24913 else
24914   ac_check_lib_save_LIBS=$LIBS
24915 LIBS="-lnsl_s  $LIBS"
24916 cat >conftest.$ac_ext <<_ACEOF
24917 /* confdefs.h.  */
24918 _ACEOF
24919 cat confdefs.h >>conftest.$ac_ext
24920 cat >>conftest.$ac_ext <<_ACEOF
24921 /* end confdefs.h.  */
24922
24923
24924 int
24925 main ()
24926 {
24927 main ();
24928   ;
24929   return 0;
24930 }
24931 _ACEOF
24932 rm -f conftest.$ac_objext conftest$ac_exeext
24933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24934   (eval $ac_link) 2>conftest.er1
24935   ac_status=$?
24936   grep -v '^ *+' conftest.er1 >conftest.err
24937   rm -f conftest.er1
24938   cat conftest.err >&5
24939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940   (exit $ac_status); } &&
24941          { ac_try='test -z "$ac_c_werror_flag"
24942                          || test ! -s conftest.err'
24943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24944   (eval $ac_try) 2>&5
24945   ac_status=$?
24946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947   (exit $ac_status); }; } &&
24948          { ac_try='test -s conftest$ac_exeext'
24949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24950   (eval $ac_try) 2>&5
24951   ac_status=$?
24952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953   (exit $ac_status); }; }; then
24954   ac_cv_lib_nsl_s_main=yes
24955 else
24956   echo "$as_me: failed program was:" >&5
24957 sed 's/^/| /' conftest.$ac_ext >&5
24958
24959 ac_cv_lib_nsl_s_main=no
24960 fi
24961 rm -f conftest.err conftest.$ac_objext \
24962       conftest$ac_exeext conftest.$ac_ext
24963 LIBS=$ac_check_lib_save_LIBS
24964 fi
24965 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
24966 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
24967 if test $ac_cv_lib_nsl_s_main = yes; then
24968   cat >>confdefs.h <<_ACEOF
24969 #define HAVE_LIBNSL_S 1
24970 _ACEOF
24971
24972   LIBS="-lnsl_s $LIBS"
24973
24974 fi
24975
24976
24977 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24978 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24979 if test "${ac_cv_lib_nsl_main+set}" = set; then
24980   echo $ECHO_N "(cached) $ECHO_C" >&6
24981 else
24982   ac_check_lib_save_LIBS=$LIBS
24983 LIBS="-lnsl  $LIBS"
24984 cat >conftest.$ac_ext <<_ACEOF
24985 /* confdefs.h.  */
24986 _ACEOF
24987 cat confdefs.h >>conftest.$ac_ext
24988 cat >>conftest.$ac_ext <<_ACEOF
24989 /* end confdefs.h.  */
24990
24991
24992 int
24993 main ()
24994 {
24995 main ();
24996   ;
24997   return 0;
24998 }
24999 _ACEOF
25000 rm -f conftest.$ac_objext conftest$ac_exeext
25001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25002   (eval $ac_link) 2>conftest.er1
25003   ac_status=$?
25004   grep -v '^ *+' conftest.er1 >conftest.err
25005   rm -f conftest.er1
25006   cat conftest.err >&5
25007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008   (exit $ac_status); } &&
25009          { ac_try='test -z "$ac_c_werror_flag"
25010                          || test ! -s conftest.err'
25011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25012   (eval $ac_try) 2>&5
25013   ac_status=$?
25014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015   (exit $ac_status); }; } &&
25016          { ac_try='test -s conftest$ac_exeext'
25017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25018   (eval $ac_try) 2>&5
25019   ac_status=$?
25020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25021   (exit $ac_status); }; }; then
25022   ac_cv_lib_nsl_main=yes
25023 else
25024   echo "$as_me: failed program was:" >&5
25025 sed 's/^/| /' conftest.$ac_ext >&5
25026
25027 ac_cv_lib_nsl_main=no
25028 fi
25029 rm -f conftest.err conftest.$ac_objext \
25030       conftest$ac_exeext conftest.$ac_ext
25031 LIBS=$ac_check_lib_save_LIBS
25032 fi
25033 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
25034 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
25035 if test $ac_cv_lib_nsl_main = yes; then
25036   cat >>confdefs.h <<_ACEOF
25037 #define HAVE_LIBNSL 1
25038 _ACEOF
25039
25040   LIBS="-lnsl $LIBS"
25041
25042 fi
25043
25044
25045 echo "$as_me:$LINENO: checking for socket in -linet" >&5
25046 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
25047 if test "${ac_cv_lib_inet_socket+set}" = set; then
25048   echo $ECHO_N "(cached) $ECHO_C" >&6
25049 else
25050   ac_check_lib_save_LIBS=$LIBS
25051 LIBS="-linet  $LIBS"
25052 cat >conftest.$ac_ext <<_ACEOF
25053 /* confdefs.h.  */
25054 _ACEOF
25055 cat confdefs.h >>conftest.$ac_ext
25056 cat >>conftest.$ac_ext <<_ACEOF
25057 /* end confdefs.h.  */
25058
25059 /* Override any gcc2 internal prototype to avoid an error.  */
25060 #ifdef __cplusplus
25061 extern "C"
25062 #endif
25063 /* We use char because int might match the return type of a gcc2
25064    builtin and then its argument prototype would still apply.  */
25065 char socket ();
25066 int
25067 main ()
25068 {
25069 socket ();
25070   ;
25071   return 0;
25072 }
25073 _ACEOF
25074 rm -f conftest.$ac_objext conftest$ac_exeext
25075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25076   (eval $ac_link) 2>conftest.er1
25077   ac_status=$?
25078   grep -v '^ *+' conftest.er1 >conftest.err
25079   rm -f conftest.er1
25080   cat conftest.err >&5
25081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082   (exit $ac_status); } &&
25083          { ac_try='test -z "$ac_c_werror_flag"
25084                          || test ! -s conftest.err'
25085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25086   (eval $ac_try) 2>&5
25087   ac_status=$?
25088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089   (exit $ac_status); }; } &&
25090          { ac_try='test -s conftest$ac_exeext'
25091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25092   (eval $ac_try) 2>&5
25093   ac_status=$?
25094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095   (exit $ac_status); }; }; then
25096   ac_cv_lib_inet_socket=yes
25097 else
25098   echo "$as_me: failed program was:" >&5
25099 sed 's/^/| /' conftest.$ac_ext >&5
25100
25101 ac_cv_lib_inet_socket=no
25102 fi
25103 rm -f conftest.err conftest.$ac_objext \
25104       conftest$ac_exeext conftest.$ac_ext
25105 LIBS=$ac_check_lib_save_LIBS
25106 fi
25107 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
25108 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
25109 if test $ac_cv_lib_inet_socket = yes; then
25110   cat >>confdefs.h <<_ACEOF
25111 #define HAVE_LIBINET 1
25112 _ACEOF
25113
25114   LIBS="-linet $LIBS"
25115
25116 fi
25117
25118
25119 echo "$as_me:$LINENO: checking for main in -lgen" >&5
25120 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
25121 if test "${ac_cv_lib_gen_main+set}" = set; then
25122   echo $ECHO_N "(cached) $ECHO_C" >&6
25123 else
25124   ac_check_lib_save_LIBS=$LIBS
25125 LIBS="-lgen  $LIBS"
25126 cat >conftest.$ac_ext <<_ACEOF
25127 /* confdefs.h.  */
25128 _ACEOF
25129 cat confdefs.h >>conftest.$ac_ext
25130 cat >>conftest.$ac_ext <<_ACEOF
25131 /* end confdefs.h.  */
25132
25133
25134 int
25135 main ()
25136 {
25137 main ();
25138   ;
25139   return 0;
25140 }
25141 _ACEOF
25142 rm -f conftest.$ac_objext conftest$ac_exeext
25143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25144   (eval $ac_link) 2>conftest.er1
25145   ac_status=$?
25146   grep -v '^ *+' conftest.er1 >conftest.err
25147   rm -f conftest.er1
25148   cat conftest.err >&5
25149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150   (exit $ac_status); } &&
25151          { ac_try='test -z "$ac_c_werror_flag"
25152                          || test ! -s conftest.err'
25153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25154   (eval $ac_try) 2>&5
25155   ac_status=$?
25156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157   (exit $ac_status); }; } &&
25158          { ac_try='test -s conftest$ac_exeext'
25159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25160   (eval $ac_try) 2>&5
25161   ac_status=$?
25162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163   (exit $ac_status); }; }; then
25164   ac_cv_lib_gen_main=yes
25165 else
25166   echo "$as_me: failed program was:" >&5
25167 sed 's/^/| /' conftest.$ac_ext >&5
25168
25169 ac_cv_lib_gen_main=no
25170 fi
25171 rm -f conftest.err conftest.$ac_objext \
25172       conftest$ac_exeext conftest.$ac_ext
25173 LIBS=$ac_check_lib_save_LIBS
25174 fi
25175 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25176 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25177 if test $ac_cv_lib_gen_main = yes; then
25178   cat >>confdefs.h <<_ACEOF
25179 #define HAVE_LIBGEN 1
25180 _ACEOF
25181
25182   LIBS="-lgen $LIBS"
25183
25184 fi
25185
25186
25187 fi
25188
25189
25190 echo "$as_me:$LINENO: checking for select" >&5
25191 echo $ECHO_N "checking for select... $ECHO_C" >&6
25192 if test "${ac_cv_func_select+set}" = set; then
25193   echo $ECHO_N "(cached) $ECHO_C" >&6
25194 else
25195   cat >conftest.$ac_ext <<_ACEOF
25196 /* confdefs.h.  */
25197 _ACEOF
25198 cat confdefs.h >>conftest.$ac_ext
25199 cat >>conftest.$ac_ext <<_ACEOF
25200 /* end confdefs.h.  */
25201 /* Define select to an innocuous variant, in case <limits.h> declares select.
25202    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25203 #define select innocuous_select
25204
25205 /* System header to define __stub macros and hopefully few prototypes,
25206     which can conflict with char select (); below.
25207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25208     <limits.h> exists even on freestanding compilers.  */
25209
25210 #ifdef __STDC__
25211 # include <limits.h>
25212 #else
25213 # include <assert.h>
25214 #endif
25215
25216 #undef select
25217
25218 /* Override any gcc2 internal prototype to avoid an error.  */
25219 #ifdef __cplusplus
25220 extern "C"
25221 {
25222 #endif
25223 /* We use char because int might match the return type of a gcc2
25224    builtin and then its argument prototype would still apply.  */
25225 char select ();
25226 /* The GNU C library defines this for functions which it implements
25227     to always fail with ENOSYS.  Some functions are actually named
25228     something starting with __ and the normal name is an alias.  */
25229 #if defined (__stub_select) || defined (__stub___select)
25230 choke me
25231 #else
25232 char (*f) () = select;
25233 #endif
25234 #ifdef __cplusplus
25235 }
25236 #endif
25237
25238 int
25239 main ()
25240 {
25241 return f != select;
25242   ;
25243   return 0;
25244 }
25245 _ACEOF
25246 rm -f conftest.$ac_objext conftest$ac_exeext
25247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25248   (eval $ac_link) 2>conftest.er1
25249   ac_status=$?
25250   grep -v '^ *+' conftest.er1 >conftest.err
25251   rm -f conftest.er1
25252   cat conftest.err >&5
25253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254   (exit $ac_status); } &&
25255          { ac_try='test -z "$ac_c_werror_flag"
25256                          || test ! -s conftest.err'
25257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25258   (eval $ac_try) 2>&5
25259   ac_status=$?
25260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261   (exit $ac_status); }; } &&
25262          { ac_try='test -s conftest$ac_exeext'
25263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25264   (eval $ac_try) 2>&5
25265   ac_status=$?
25266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25267   (exit $ac_status); }; }; then
25268   ac_cv_func_select=yes
25269 else
25270   echo "$as_me: failed program was:" >&5
25271 sed 's/^/| /' conftest.$ac_ext >&5
25272
25273 ac_cv_func_select=no
25274 fi
25275 rm -f conftest.err conftest.$ac_objext \
25276       conftest$ac_exeext conftest.$ac_ext
25277 fi
25278 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25279 echo "${ECHO_T}$ac_cv_func_select" >&6
25280 if test $ac_cv_func_select = yes; then
25281   :
25282 else
25283   { { echo "$as_me:$LINENO: error: select() required." >&5
25284 echo "$as_me: error: select() required." >&2;}
25285    { (exit 1); exit 1; }; }
25286 fi
25287
25288
25289 if test "${ac_cv_header_winsock_h}" != yes; then
25290
25291
25292 for ac_header in sys/select.h sys/socket.h
25293 do
25294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25296   echo "$as_me:$LINENO: checking for $ac_header" >&5
25297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25299   echo $ECHO_N "(cached) $ECHO_C" >&6
25300 fi
25301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25303 else
25304   # Is the header compilable?
25305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25307 cat >conftest.$ac_ext <<_ACEOF
25308 /* confdefs.h.  */
25309 _ACEOF
25310 cat confdefs.h >>conftest.$ac_ext
25311 cat >>conftest.$ac_ext <<_ACEOF
25312 /* end confdefs.h.  */
25313 $ac_includes_default
25314 #include <$ac_header>
25315 _ACEOF
25316 rm -f conftest.$ac_objext
25317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25318   (eval $ac_compile) 2>conftest.er1
25319   ac_status=$?
25320   grep -v '^ *+' conftest.er1 >conftest.err
25321   rm -f conftest.er1
25322   cat conftest.err >&5
25323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324   (exit $ac_status); } &&
25325          { ac_try='test -z "$ac_c_werror_flag"
25326                          || test ! -s conftest.err'
25327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25328   (eval $ac_try) 2>&5
25329   ac_status=$?
25330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331   (exit $ac_status); }; } &&
25332          { ac_try='test -s conftest.$ac_objext'
25333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25334   (eval $ac_try) 2>&5
25335   ac_status=$?
25336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337   (exit $ac_status); }; }; then
25338   ac_header_compiler=yes
25339 else
25340   echo "$as_me: failed program was:" >&5
25341 sed 's/^/| /' conftest.$ac_ext >&5
25342
25343 ac_header_compiler=no
25344 fi
25345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25347 echo "${ECHO_T}$ac_header_compiler" >&6
25348
25349 # Is the header present?
25350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25352 cat >conftest.$ac_ext <<_ACEOF
25353 /* confdefs.h.  */
25354 _ACEOF
25355 cat confdefs.h >>conftest.$ac_ext
25356 cat >>conftest.$ac_ext <<_ACEOF
25357 /* end confdefs.h.  */
25358 #include <$ac_header>
25359 _ACEOF
25360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25361   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25362   ac_status=$?
25363   grep -v '^ *+' conftest.er1 >conftest.err
25364   rm -f conftest.er1
25365   cat conftest.err >&5
25366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25367   (exit $ac_status); } >/dev/null; then
25368   if test -s conftest.err; then
25369     ac_cpp_err=$ac_c_preproc_warn_flag
25370     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25371   else
25372     ac_cpp_err=
25373   fi
25374 else
25375   ac_cpp_err=yes
25376 fi
25377 if test -z "$ac_cpp_err"; then
25378   ac_header_preproc=yes
25379 else
25380   echo "$as_me: failed program was:" >&5
25381 sed 's/^/| /' conftest.$ac_ext >&5
25382
25383   ac_header_preproc=no
25384 fi
25385 rm -f conftest.err conftest.$ac_ext
25386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25387 echo "${ECHO_T}$ac_header_preproc" >&6
25388
25389 # So?  What about this header?
25390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25391   yes:no: )
25392     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25396     ac_header_preproc=yes
25397     ;;
25398   no:yes:* )
25399     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25401     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25402 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25403     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25405     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25406 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25409     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25411     (
25412       cat <<\_ASBOX
25413 ## ------------------------------------------ ##
25414 ## Report this to the AC_PACKAGE_NAME lists.  ##
25415 ## ------------------------------------------ ##
25416 _ASBOX
25417     ) |
25418       sed "s/^/$as_me: WARNING:     /" >&2
25419     ;;
25420 esac
25421 echo "$as_me:$LINENO: checking for $ac_header" >&5
25422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25424   echo $ECHO_N "(cached) $ECHO_C" >&6
25425 else
25426   eval "$as_ac_Header=\$ac_header_preproc"
25427 fi
25428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25430
25431 fi
25432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25433   cat >>confdefs.h <<_ACEOF
25434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25435 _ACEOF
25436
25437 fi
25438
25439 done
25440
25441 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25442 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25443 if test "${ac_cv_func_select_args+set}" = set; then
25444   echo $ECHO_N "(cached) $ECHO_C" >&6
25445 else
25446   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25447  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25448   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25449    cat >conftest.$ac_ext <<_ACEOF
25450 /* confdefs.h.  */
25451 _ACEOF
25452 cat confdefs.h >>conftest.$ac_ext
25453 cat >>conftest.$ac_ext <<_ACEOF
25454 /* end confdefs.h.  */
25455 $ac_includes_default
25456 #if HAVE_SYS_SELECT_H
25457 # include <sys/select.h>
25458 #endif
25459 #if HAVE_SYS_SOCKET_H
25460 # include <sys/socket.h>
25461 #endif
25462
25463 int
25464 main ()
25465 {
25466 extern int select ($ac_arg1,
25467                                             $ac_arg234, $ac_arg234, $ac_arg234,
25468                                             $ac_arg5);
25469   ;
25470   return 0;
25471 }
25472 _ACEOF
25473 rm -f conftest.$ac_objext
25474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25475   (eval $ac_compile) 2>conftest.er1
25476   ac_status=$?
25477   grep -v '^ *+' conftest.er1 >conftest.err
25478   rm -f conftest.er1
25479   cat conftest.err >&5
25480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25481   (exit $ac_status); } &&
25482          { ac_try='test -z "$ac_c_werror_flag"
25483                          || test ! -s conftest.err'
25484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25485   (eval $ac_try) 2>&5
25486   ac_status=$?
25487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488   (exit $ac_status); }; } &&
25489          { ac_try='test -s conftest.$ac_objext'
25490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25491   (eval $ac_try) 2>&5
25492   ac_status=$?
25493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494   (exit $ac_status); }; }; then
25495   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25496 else
25497   echo "$as_me: failed program was:" >&5
25498 sed 's/^/| /' conftest.$ac_ext >&5
25499
25500 fi
25501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25502   done
25503  done
25504 done
25505 # Provide a safe default value.
25506 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25507
25508 fi
25509 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25510 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25511 ac_save_IFS=$IFS; IFS=','
25512 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25513 IFS=$ac_save_IFS
25514 shift
25515
25516 cat >>confdefs.h <<_ACEOF
25517 #define SELECT_TYPE_ARG1 $1
25518 _ACEOF
25519
25520
25521 cat >>confdefs.h <<_ACEOF
25522 #define SELECT_TYPE_ARG234 ($2)
25523 _ACEOF
25524
25525
25526 cat >>confdefs.h <<_ACEOF
25527 #define SELECT_TYPE_ARG5 ($3)
25528 _ACEOF
25529
25530 rm -f conftest*
25531
25532 fi
25533
25534
25535
25536 for ac_func in poll
25537 do
25538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25539 echo "$as_me:$LINENO: checking for $ac_func" >&5
25540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25541 if eval "test \"\${$as_ac_var+set}\" = set"; then
25542   echo $ECHO_N "(cached) $ECHO_C" >&6
25543 else
25544   cat >conftest.$ac_ext <<_ACEOF
25545 /* confdefs.h.  */
25546 _ACEOF
25547 cat confdefs.h >>conftest.$ac_ext
25548 cat >>conftest.$ac_ext <<_ACEOF
25549 /* end confdefs.h.  */
25550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25552 #define $ac_func innocuous_$ac_func
25553
25554 /* System header to define __stub macros and hopefully few prototypes,
25555     which can conflict with char $ac_func (); below.
25556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25557     <limits.h> exists even on freestanding compilers.  */
25558
25559 #ifdef __STDC__
25560 # include <limits.h>
25561 #else
25562 # include <assert.h>
25563 #endif
25564
25565 #undef $ac_func
25566
25567 /* Override any gcc2 internal prototype to avoid an error.  */
25568 #ifdef __cplusplus
25569 extern "C"
25570 {
25571 #endif
25572 /* We use char because int might match the return type of a gcc2
25573    builtin and then its argument prototype would still apply.  */
25574 char $ac_func ();
25575 /* The GNU C library defines this for functions which it implements
25576     to always fail with ENOSYS.  Some functions are actually named
25577     something starting with __ and the normal name is an alias.  */
25578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25579 choke me
25580 #else
25581 char (*f) () = $ac_func;
25582 #endif
25583 #ifdef __cplusplus
25584 }
25585 #endif
25586
25587 int
25588 main ()
25589 {
25590 return f != $ac_func;
25591   ;
25592   return 0;
25593 }
25594 _ACEOF
25595 rm -f conftest.$ac_objext conftest$ac_exeext
25596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25597   (eval $ac_link) 2>conftest.er1
25598   ac_status=$?
25599   grep -v '^ *+' conftest.er1 >conftest.err
25600   rm -f conftest.er1
25601   cat conftest.err >&5
25602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603   (exit $ac_status); } &&
25604          { ac_try='test -z "$ac_c_werror_flag"
25605                          || test ! -s conftest.err'
25606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25607   (eval $ac_try) 2>&5
25608   ac_status=$?
25609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610   (exit $ac_status); }; } &&
25611          { ac_try='test -s conftest$ac_exeext'
25612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25613   (eval $ac_try) 2>&5
25614   ac_status=$?
25615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616   (exit $ac_status); }; }; then
25617   eval "$as_ac_var=yes"
25618 else
25619   echo "$as_me: failed program was:" >&5
25620 sed 's/^/| /' conftest.$ac_ext >&5
25621
25622 eval "$as_ac_var=no"
25623 fi
25624 rm -f conftest.err conftest.$ac_objext \
25625       conftest$ac_exeext conftest.$ac_ext
25626 fi
25627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25629 if test `eval echo '${'$as_ac_var'}'` = yes; then
25630   cat >>confdefs.h <<_ACEOF
25631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25632 _ACEOF
25633
25634 fi
25635 done
25636
25637
25638 for ac_header in poll.h
25639 do
25640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25642   echo "$as_me:$LINENO: checking for $ac_header" >&5
25643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25645   echo $ECHO_N "(cached) $ECHO_C" >&6
25646 fi
25647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25649 else
25650   # Is the header compilable?
25651 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25653 cat >conftest.$ac_ext <<_ACEOF
25654 /* confdefs.h.  */
25655 _ACEOF
25656 cat confdefs.h >>conftest.$ac_ext
25657 cat >>conftest.$ac_ext <<_ACEOF
25658 /* end confdefs.h.  */
25659 $ac_includes_default
25660 #include <$ac_header>
25661 _ACEOF
25662 rm -f conftest.$ac_objext
25663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25664   (eval $ac_compile) 2>conftest.er1
25665   ac_status=$?
25666   grep -v '^ *+' conftest.er1 >conftest.err
25667   rm -f conftest.er1
25668   cat conftest.err >&5
25669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670   (exit $ac_status); } &&
25671          { ac_try='test -z "$ac_c_werror_flag"
25672                          || test ! -s conftest.err'
25673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25674   (eval $ac_try) 2>&5
25675   ac_status=$?
25676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677   (exit $ac_status); }; } &&
25678          { ac_try='test -s conftest.$ac_objext'
25679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25680   (eval $ac_try) 2>&5
25681   ac_status=$?
25682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683   (exit $ac_status); }; }; then
25684   ac_header_compiler=yes
25685 else
25686   echo "$as_me: failed program was:" >&5
25687 sed 's/^/| /' conftest.$ac_ext >&5
25688
25689 ac_header_compiler=no
25690 fi
25691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25692 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25693 echo "${ECHO_T}$ac_header_compiler" >&6
25694
25695 # Is the header present?
25696 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25698 cat >conftest.$ac_ext <<_ACEOF
25699 /* confdefs.h.  */
25700 _ACEOF
25701 cat confdefs.h >>conftest.$ac_ext
25702 cat >>conftest.$ac_ext <<_ACEOF
25703 /* end confdefs.h.  */
25704 #include <$ac_header>
25705 _ACEOF
25706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25707   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25708   ac_status=$?
25709   grep -v '^ *+' conftest.er1 >conftest.err
25710   rm -f conftest.er1
25711   cat conftest.err >&5
25712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713   (exit $ac_status); } >/dev/null; then
25714   if test -s conftest.err; then
25715     ac_cpp_err=$ac_c_preproc_warn_flag
25716     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25717   else
25718     ac_cpp_err=
25719   fi
25720 else
25721   ac_cpp_err=yes
25722 fi
25723 if test -z "$ac_cpp_err"; then
25724   ac_header_preproc=yes
25725 else
25726   echo "$as_me: failed program was:" >&5
25727 sed 's/^/| /' conftest.$ac_ext >&5
25728
25729   ac_header_preproc=no
25730 fi
25731 rm -f conftest.err conftest.$ac_ext
25732 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25733 echo "${ECHO_T}$ac_header_preproc" >&6
25734
25735 # So?  What about this header?
25736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25737   yes:no: )
25738     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25740     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25742     ac_header_preproc=yes
25743     ;;
25744   no:yes:* )
25745     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25747     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25748 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25749     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25751     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25752 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25753     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25755     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25757     (
25758       cat <<\_ASBOX
25759 ## ------------------------------------------ ##
25760 ## Report this to the AC_PACKAGE_NAME lists.  ##
25761 ## ------------------------------------------ ##
25762 _ASBOX
25763     ) |
25764       sed "s/^/$as_me: WARNING:     /" >&2
25765     ;;
25766 esac
25767 echo "$as_me:$LINENO: checking for $ac_header" >&5
25768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25770   echo $ECHO_N "(cached) $ECHO_C" >&6
25771 else
25772   eval "$as_ac_Header=\$ac_header_preproc"
25773 fi
25774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25776
25777 fi
25778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25779   cat >>confdefs.h <<_ACEOF
25780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25781 _ACEOF
25782
25783 fi
25784
25785 done
25786
25787
25788
25789 for ac_header in sys/epoll.h
25790 do
25791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25793   echo "$as_me:$LINENO: checking for $ac_header" >&5
25794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25796   echo $ECHO_N "(cached) $ECHO_C" >&6
25797 fi
25798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25800 else
25801   # Is the header compilable?
25802 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25804 cat >conftest.$ac_ext <<_ACEOF
25805 /* confdefs.h.  */
25806 _ACEOF
25807 cat confdefs.h >>conftest.$ac_ext
25808 cat >>conftest.$ac_ext <<_ACEOF
25809 /* end confdefs.h.  */
25810 $ac_includes_default
25811 #include <$ac_header>
25812 _ACEOF
25813 rm -f conftest.$ac_objext
25814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25815   (eval $ac_compile) 2>conftest.er1
25816   ac_status=$?
25817   grep -v '^ *+' conftest.er1 >conftest.err
25818   rm -f conftest.er1
25819   cat conftest.err >&5
25820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821   (exit $ac_status); } &&
25822          { ac_try='test -z "$ac_c_werror_flag"
25823                          || test ! -s conftest.err'
25824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25825   (eval $ac_try) 2>&5
25826   ac_status=$?
25827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828   (exit $ac_status); }; } &&
25829          { ac_try='test -s conftest.$ac_objext'
25830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25831   (eval $ac_try) 2>&5
25832   ac_status=$?
25833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834   (exit $ac_status); }; }; then
25835   ac_header_compiler=yes
25836 else
25837   echo "$as_me: failed program was:" >&5
25838 sed 's/^/| /' conftest.$ac_ext >&5
25839
25840 ac_header_compiler=no
25841 fi
25842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25843 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25844 echo "${ECHO_T}$ac_header_compiler" >&6
25845
25846 # Is the header present?
25847 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25849 cat >conftest.$ac_ext <<_ACEOF
25850 /* confdefs.h.  */
25851 _ACEOF
25852 cat confdefs.h >>conftest.$ac_ext
25853 cat >>conftest.$ac_ext <<_ACEOF
25854 /* end confdefs.h.  */
25855 #include <$ac_header>
25856 _ACEOF
25857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25858   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25859   ac_status=$?
25860   grep -v '^ *+' conftest.er1 >conftest.err
25861   rm -f conftest.er1
25862   cat conftest.err >&5
25863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864   (exit $ac_status); } >/dev/null; then
25865   if test -s conftest.err; then
25866     ac_cpp_err=$ac_c_preproc_warn_flag
25867     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25868   else
25869     ac_cpp_err=
25870   fi
25871 else
25872   ac_cpp_err=yes
25873 fi
25874 if test -z "$ac_cpp_err"; then
25875   ac_header_preproc=yes
25876 else
25877   echo "$as_me: failed program was:" >&5
25878 sed 's/^/| /' conftest.$ac_ext >&5
25879
25880   ac_header_preproc=no
25881 fi
25882 rm -f conftest.err conftest.$ac_ext
25883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25884 echo "${ECHO_T}$ac_header_preproc" >&6
25885
25886 # So?  What about this header?
25887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25888   yes:no: )
25889     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25893     ac_header_preproc=yes
25894     ;;
25895   no:yes:* )
25896     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25898     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25899 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25900     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25902     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25903 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25904     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25906     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25908     (
25909       cat <<\_ASBOX
25910 ## ------------------------------------------ ##
25911 ## Report this to the AC_PACKAGE_NAME lists.  ##
25912 ## ------------------------------------------ ##
25913 _ASBOX
25914     ) |
25915       sed "s/^/$as_me: WARNING:     /" >&2
25916     ;;
25917 esac
25918 echo "$as_me:$LINENO: checking for $ac_header" >&5
25919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25921   echo $ECHO_N "(cached) $ECHO_C" >&6
25922 else
25923   eval "$as_ac_Header=\$ac_header_preproc"
25924 fi
25925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25927
25928 fi
25929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25930   cat >>confdefs.h <<_ACEOF
25931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25932 _ACEOF
25933
25934 fi
25935
25936 done
25937
25938 if test "${ac_cv_header_sys_epoll_h}" = yes; then
25939 echo "$as_me:$LINENO: checking for epoll system call" >&5
25940 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
25941 if test "$cross_compiling" = yes; then
25942   echo "$as_me:$LINENO: result: no" >&5
25943 echo "${ECHO_T}no" >&6
25944 else
25945   cat >conftest.$ac_ext <<_ACEOF
25946 /* confdefs.h.  */
25947 _ACEOF
25948 cat confdefs.h >>conftest.$ac_ext
25949 cat >>conftest.$ac_ext <<_ACEOF
25950 /* end confdefs.h.  */
25951 int main(int argc, char *argv)
25952 {
25953         int epfd = epoll_create(256);
25954         exit (epfd == -1 ? 1 : 0);
25955 }
25956 _ACEOF
25957 rm -f conftest$ac_exeext
25958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25959   (eval $ac_link) 2>&5
25960   ac_status=$?
25961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25964   (eval $ac_try) 2>&5
25965   ac_status=$?
25966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967   (exit $ac_status); }; }; then
25968   echo "$as_me:$LINENO: result: yes" >&5
25969 echo "${ECHO_T}yes" >&6
25970
25971 cat >>confdefs.h <<\_ACEOF
25972 #define HAVE_EPOLL 1
25973 _ACEOF
25974
25975 else
25976   echo "$as_me: program exited with status $ac_status" >&5
25977 echo "$as_me: failed program was:" >&5
25978 sed 's/^/| /' conftest.$ac_ext >&5
25979
25980 ( exit $ac_status )
25981 echo "$as_me:$LINENO: result: no" >&5
25982 echo "${ECHO_T}no" >&6
25983 fi
25984 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25985 fi
25986 fi
25987
25988 # strerror checks
25989 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
25990 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
25991 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
25992   echo $ECHO_N "(cached) $ECHO_C" >&6
25993 else
25994
25995         cat >conftest.$ac_ext <<_ACEOF
25996 /* confdefs.h.  */
25997 _ACEOF
25998 cat confdefs.h >>conftest.$ac_ext
25999 cat >>conftest.$ac_ext <<_ACEOF
26000 /* end confdefs.h.  */
26001
26002 #include <stdio.h>
26003 #include <sys/types.h>
26004 #include <errno.h>
26005 #ifdef WINNT
26006 #include <stdlib.h>
26007 #endif
26008 int
26009 main ()
26010 {
26011 char *c = (char *) *sys_errlist
26012   ;
26013   return 0;
26014 }
26015 _ACEOF
26016 rm -f conftest.$ac_objext
26017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26018   (eval $ac_compile) 2>conftest.er1
26019   ac_status=$?
26020   grep -v '^ *+' conftest.er1 >conftest.err
26021   rm -f conftest.er1
26022   cat conftest.err >&5
26023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024   (exit $ac_status); } &&
26025          { ac_try='test -z "$ac_c_werror_flag"
26026                          || test ! -s conftest.err'
26027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26028   (eval $ac_try) 2>&5
26029   ac_status=$?
26030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031   (exit $ac_status); }; } &&
26032          { ac_try='test -s conftest.$ac_objext'
26033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26034   (eval $ac_try) 2>&5
26035   ac_status=$?
26036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037   (exit $ac_status); }; }; then
26038   ol_cv_dcl_sys_errlist=yes
26039         ol_cv_have_sys_errlist=yes
26040 else
26041   echo "$as_me: failed program was:" >&5
26042 sed 's/^/| /' conftest.$ac_ext >&5
26043
26044 ol_cv_dcl_sys_errlist=no
26045 fi
26046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26047 fi
26048 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26049 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26050 #
26051 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26052 if test $ol_cv_dcl_sys_errlist = no ; then
26053
26054 cat >>confdefs.h <<\_ACEOF
26055 #define DECL_SYS_ERRLIST 1
26056 _ACEOF
26057
26058
26059         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26060 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26061 if test "${ol_cv_have_sys_errlist+set}" = set; then
26062   echo $ECHO_N "(cached) $ECHO_C" >&6
26063 else
26064
26065                 cat >conftest.$ac_ext <<_ACEOF
26066 /* confdefs.h.  */
26067 _ACEOF
26068 cat confdefs.h >>conftest.$ac_ext
26069 cat >>conftest.$ac_ext <<_ACEOF
26070 /* end confdefs.h.  */
26071 #include <errno.h>
26072 int
26073 main ()
26074 {
26075 char *c = (char *) *sys_errlist
26076   ;
26077   return 0;
26078 }
26079 _ACEOF
26080 rm -f conftest.$ac_objext conftest$ac_exeext
26081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26082   (eval $ac_link) 2>conftest.er1
26083   ac_status=$?
26084   grep -v '^ *+' conftest.er1 >conftest.err
26085   rm -f conftest.er1
26086   cat conftest.err >&5
26087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088   (exit $ac_status); } &&
26089          { ac_try='test -z "$ac_c_werror_flag"
26090                          || test ! -s conftest.err'
26091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26092   (eval $ac_try) 2>&5
26093   ac_status=$?
26094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095   (exit $ac_status); }; } &&
26096          { ac_try='test -s conftest$ac_exeext'
26097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26098   (eval $ac_try) 2>&5
26099   ac_status=$?
26100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101   (exit $ac_status); }; }; then
26102   ol_cv_have_sys_errlist=yes
26103 else
26104   echo "$as_me: failed program was:" >&5
26105 sed 's/^/| /' conftest.$ac_ext >&5
26106
26107 ol_cv_have_sys_errlist=no
26108 fi
26109 rm -f conftest.err conftest.$ac_objext \
26110       conftest$ac_exeext conftest.$ac_ext
26111 fi
26112 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26113 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26114 fi
26115 if test $ol_cv_have_sys_errlist = yes ; then
26116
26117 cat >>confdefs.h <<\_ACEOF
26118 #define HAVE_SYS_ERRLIST 1
26119 _ACEOF
26120
26121 fi
26122
26123
26124 for ac_func in strerror strerror_r
26125 do
26126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26127 echo "$as_me:$LINENO: checking for $ac_func" >&5
26128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26129 if eval "test \"\${$as_ac_var+set}\" = set"; then
26130   echo $ECHO_N "(cached) $ECHO_C" >&6
26131 else
26132   cat >conftest.$ac_ext <<_ACEOF
26133 /* confdefs.h.  */
26134 _ACEOF
26135 cat confdefs.h >>conftest.$ac_ext
26136 cat >>conftest.$ac_ext <<_ACEOF
26137 /* end confdefs.h.  */
26138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26139    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26140 #define $ac_func innocuous_$ac_func
26141
26142 /* System header to define __stub macros and hopefully few prototypes,
26143     which can conflict with char $ac_func (); below.
26144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26145     <limits.h> exists even on freestanding compilers.  */
26146
26147 #ifdef __STDC__
26148 # include <limits.h>
26149 #else
26150 # include <assert.h>
26151 #endif
26152
26153 #undef $ac_func
26154
26155 /* Override any gcc2 internal prototype to avoid an error.  */
26156 #ifdef __cplusplus
26157 extern "C"
26158 {
26159 #endif
26160 /* We use char because int might match the return type of a gcc2
26161    builtin and then its argument prototype would still apply.  */
26162 char $ac_func ();
26163 /* The GNU C library defines this for functions which it implements
26164     to always fail with ENOSYS.  Some functions are actually named
26165     something starting with __ and the normal name is an alias.  */
26166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26167 choke me
26168 #else
26169 char (*f) () = $ac_func;
26170 #endif
26171 #ifdef __cplusplus
26172 }
26173 #endif
26174
26175 int
26176 main ()
26177 {
26178 return f != $ac_func;
26179   ;
26180   return 0;
26181 }
26182 _ACEOF
26183 rm -f conftest.$ac_objext conftest$ac_exeext
26184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26185   (eval $ac_link) 2>conftest.er1
26186   ac_status=$?
26187   grep -v '^ *+' conftest.er1 >conftest.err
26188   rm -f conftest.er1
26189   cat conftest.err >&5
26190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191   (exit $ac_status); } &&
26192          { ac_try='test -z "$ac_c_werror_flag"
26193                          || test ! -s conftest.err'
26194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26195   (eval $ac_try) 2>&5
26196   ac_status=$?
26197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198   (exit $ac_status); }; } &&
26199          { ac_try='test -s conftest$ac_exeext'
26200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26201   (eval $ac_try) 2>&5
26202   ac_status=$?
26203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26204   (exit $ac_status); }; }; then
26205   eval "$as_ac_var=yes"
26206 else
26207   echo "$as_me: failed program was:" >&5
26208 sed 's/^/| /' conftest.$ac_ext >&5
26209
26210 eval "$as_ac_var=no"
26211 fi
26212 rm -f conftest.err conftest.$ac_objext \
26213       conftest$ac_exeext conftest.$ac_ext
26214 fi
26215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26216 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26217 if test `eval echo '${'$as_ac_var'}'` = yes; then
26218   cat >>confdefs.h <<_ACEOF
26219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26220 _ACEOF
26221
26222 fi
26223 done
26224
26225 ol_cv_func_strerror_r=no
26226 if test "${ac_cv_func_strerror_r}" = yes ; then
26227         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26228 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26229 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26230   echo $ECHO_N "(cached) $ECHO_C" >&6
26231 else
26232
26233         cat >conftest.$ac_ext <<_ACEOF
26234 /* confdefs.h.  */
26235 _ACEOF
26236 cat confdefs.h >>conftest.$ac_ext
26237 cat >>conftest.$ac_ext <<_ACEOF
26238 /* end confdefs.h.  */
26239 #include <string.h>
26240 _ACEOF
26241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26242   $EGREP "strerror_r" >/dev/null 2>&1; then
26243   ol_decl_strerror_r=yes
26244 else
26245   ol_decl_strerror_r=no
26246 fi
26247 rm -f conftest*
26248
26249         if test $ol_decl_strerror_r = yes ; then
26250                 cat >conftest.$ac_ext <<_ACEOF
26251 /* confdefs.h.  */
26252 _ACEOF
26253 cat confdefs.h >>conftest.$ac_ext
26254 cat >>conftest.$ac_ext <<_ACEOF
26255 /* end confdefs.h.  */
26256 #include <string.h>
26257 int
26258 main ()
26259 {
26260    /* from autoconf 2.59 */
26261                                 char buf[100];
26262                                 char x = *strerror_r (0, buf, sizeof buf);
26263                                 char *p = strerror_r (0, buf, sizeof buf);
26264
26265   ;
26266   return 0;
26267 }
26268 _ACEOF
26269 rm -f conftest.$ac_objext
26270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26271   (eval $ac_compile) 2>conftest.er1
26272   ac_status=$?
26273   grep -v '^ *+' conftest.er1 >conftest.err
26274   rm -f conftest.er1
26275   cat conftest.err >&5
26276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277   (exit $ac_status); } &&
26278          { ac_try='test -z "$ac_c_werror_flag"
26279                          || test ! -s conftest.err'
26280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26281   (eval $ac_try) 2>&5
26282   ac_status=$?
26283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284   (exit $ac_status); }; } &&
26285          { ac_try='test -s conftest.$ac_objext'
26286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26287   (eval $ac_try) 2>&5
26288   ac_status=$?
26289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290   (exit $ac_status); }; }; then
26291   ol_cv_nonposix_strerror_r=yes
26292 else
26293   echo "$as_me: failed program was:" >&5
26294 sed 's/^/| /' conftest.$ac_ext >&5
26295
26296 ol_cv_nonposix_strerror_r=no
26297 fi
26298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26299         else
26300                 if test "$cross_compiling" = yes; then
26301   ol_cv_nonposix_strerror=no
26302 else
26303   cat >conftest.$ac_ext <<_ACEOF
26304 /* confdefs.h.  */
26305 _ACEOF
26306 cat confdefs.h >>conftest.$ac_ext
26307 cat >>conftest.$ac_ext <<_ACEOF
26308 /* end confdefs.h.  */
26309
26310                         main() {
26311                                 char buf[100];
26312                                 buf[0] = 0;
26313                                 strerror_r( 1, buf, sizeof buf );
26314                                 exit( buf[0] == 0 );
26315                         }
26316
26317 _ACEOF
26318 rm -f conftest$ac_exeext
26319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26320   (eval $ac_link) 2>&5
26321   ac_status=$?
26322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325   (eval $ac_try) 2>&5
26326   ac_status=$?
26327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328   (exit $ac_status); }; }; then
26329   ol_cv_nonposix_strerror_r=yes
26330 else
26331   echo "$as_me: program exited with status $ac_status" >&5
26332 echo "$as_me: failed program was:" >&5
26333 sed 's/^/| /' conftest.$ac_ext >&5
26334
26335 ( exit $ac_status )
26336 ol_cv_nonposix_strerror=no
26337 fi
26338 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26339 fi
26340         fi
26341
26342 fi
26343 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26344 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26345 if test $ol_cv_nonposix_strerror_r = yes ; then
26346
26347 cat >>confdefs.h <<\_ACEOF
26348 #define HAVE_NONPOSIX_STRERROR_R 1
26349 _ACEOF
26350
26351 fi
26352
26353 elif test "${ac_cv_func_strerror}" = no ; then
26354         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26355 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26356 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26357   echo $ECHO_N "(cached) $ECHO_C" >&6
26358 else
26359
26360         cat >conftest.$ac_ext <<_ACEOF
26361 /* confdefs.h.  */
26362 _ACEOF
26363 cat confdefs.h >>conftest.$ac_ext
26364 cat >>conftest.$ac_ext <<_ACEOF
26365 /* end confdefs.h.  */
26366
26367 #include <stdio.h>
26368 #include <sys/types.h>
26369 #include <errno.h>
26370 #ifdef WINNT
26371 #include <stdlib.h>
26372 #endif
26373 int
26374 main ()
26375 {
26376 char *c = (char *) *sys_errlist
26377   ;
26378   return 0;
26379 }
26380 _ACEOF
26381 rm -f conftest.$ac_objext
26382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26383   (eval $ac_compile) 2>conftest.er1
26384   ac_status=$?
26385   grep -v '^ *+' conftest.er1 >conftest.err
26386   rm -f conftest.er1
26387   cat conftest.err >&5
26388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389   (exit $ac_status); } &&
26390          { ac_try='test -z "$ac_c_werror_flag"
26391                          || test ! -s conftest.err'
26392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26393   (eval $ac_try) 2>&5
26394   ac_status=$?
26395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396   (exit $ac_status); }; } &&
26397          { ac_try='test -s conftest.$ac_objext'
26398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26399   (eval $ac_try) 2>&5
26400   ac_status=$?
26401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26402   (exit $ac_status); }; }; then
26403   ol_cv_dcl_sys_errlist=yes
26404         ol_cv_have_sys_errlist=yes
26405 else
26406   echo "$as_me: failed program was:" >&5
26407 sed 's/^/| /' conftest.$ac_ext >&5
26408
26409 ol_cv_dcl_sys_errlist=no
26410 fi
26411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26412 fi
26413 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26414 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26415 #
26416 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26417 if test $ol_cv_dcl_sys_errlist = no ; then
26418
26419 cat >>confdefs.h <<\_ACEOF
26420 #define DECL_SYS_ERRLIST 1
26421 _ACEOF
26422
26423
26424         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26425 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26426 if test "${ol_cv_have_sys_errlist+set}" = set; then
26427   echo $ECHO_N "(cached) $ECHO_C" >&6
26428 else
26429
26430                 cat >conftest.$ac_ext <<_ACEOF
26431 /* confdefs.h.  */
26432 _ACEOF
26433 cat confdefs.h >>conftest.$ac_ext
26434 cat >>conftest.$ac_ext <<_ACEOF
26435 /* end confdefs.h.  */
26436 #include <errno.h>
26437 int
26438 main ()
26439 {
26440 char *c = (char *) *sys_errlist
26441   ;
26442   return 0;
26443 }
26444 _ACEOF
26445 rm -f conftest.$ac_objext conftest$ac_exeext
26446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26447   (eval $ac_link) 2>conftest.er1
26448   ac_status=$?
26449   grep -v '^ *+' conftest.er1 >conftest.err
26450   rm -f conftest.er1
26451   cat conftest.err >&5
26452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453   (exit $ac_status); } &&
26454          { ac_try='test -z "$ac_c_werror_flag"
26455                          || test ! -s conftest.err'
26456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26457   (eval $ac_try) 2>&5
26458   ac_status=$?
26459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460   (exit $ac_status); }; } &&
26461          { ac_try='test -s conftest$ac_exeext'
26462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26463   (eval $ac_try) 2>&5
26464   ac_status=$?
26465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26466   (exit $ac_status); }; }; then
26467   ol_cv_have_sys_errlist=yes
26468 else
26469   echo "$as_me: failed program was:" >&5
26470 sed 's/^/| /' conftest.$ac_ext >&5
26471
26472 ol_cv_have_sys_errlist=no
26473 fi
26474 rm -f conftest.err conftest.$ac_objext \
26475       conftest$ac_exeext conftest.$ac_ext
26476 fi
26477 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26478 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26479 fi
26480 if test $ol_cv_have_sys_errlist = yes ; then
26481
26482 cat >>confdefs.h <<\_ACEOF
26483 #define HAVE_SYS_ERRLIST 1
26484 _ACEOF
26485
26486 fi
26487
26488 fi
26489
26490
26491
26492 for ac_header in regex.h
26493 do
26494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26496   echo "$as_me:$LINENO: checking for $ac_header" >&5
26497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26499   echo $ECHO_N "(cached) $ECHO_C" >&6
26500 fi
26501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26503 else
26504   # Is the header compilable?
26505 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26507 cat >conftest.$ac_ext <<_ACEOF
26508 /* confdefs.h.  */
26509 _ACEOF
26510 cat confdefs.h >>conftest.$ac_ext
26511 cat >>conftest.$ac_ext <<_ACEOF
26512 /* end confdefs.h.  */
26513 $ac_includes_default
26514 #include <$ac_header>
26515 _ACEOF
26516 rm -f conftest.$ac_objext
26517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26518   (eval $ac_compile) 2>conftest.er1
26519   ac_status=$?
26520   grep -v '^ *+' conftest.er1 >conftest.err
26521   rm -f conftest.er1
26522   cat conftest.err >&5
26523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26524   (exit $ac_status); } &&
26525          { ac_try='test -z "$ac_c_werror_flag"
26526                          || test ! -s conftest.err'
26527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26528   (eval $ac_try) 2>&5
26529   ac_status=$?
26530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531   (exit $ac_status); }; } &&
26532          { ac_try='test -s conftest.$ac_objext'
26533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26534   (eval $ac_try) 2>&5
26535   ac_status=$?
26536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537   (exit $ac_status); }; }; then
26538   ac_header_compiler=yes
26539 else
26540   echo "$as_me: failed program was:" >&5
26541 sed 's/^/| /' conftest.$ac_ext >&5
26542
26543 ac_header_compiler=no
26544 fi
26545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26547 echo "${ECHO_T}$ac_header_compiler" >&6
26548
26549 # Is the header present?
26550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26552 cat >conftest.$ac_ext <<_ACEOF
26553 /* confdefs.h.  */
26554 _ACEOF
26555 cat confdefs.h >>conftest.$ac_ext
26556 cat >>conftest.$ac_ext <<_ACEOF
26557 /* end confdefs.h.  */
26558 #include <$ac_header>
26559 _ACEOF
26560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26561   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26562   ac_status=$?
26563   grep -v '^ *+' conftest.er1 >conftest.err
26564   rm -f conftest.er1
26565   cat conftest.err >&5
26566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567   (exit $ac_status); } >/dev/null; then
26568   if test -s conftest.err; then
26569     ac_cpp_err=$ac_c_preproc_warn_flag
26570     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26571   else
26572     ac_cpp_err=
26573   fi
26574 else
26575   ac_cpp_err=yes
26576 fi
26577 if test -z "$ac_cpp_err"; then
26578   ac_header_preproc=yes
26579 else
26580   echo "$as_me: failed program was:" >&5
26581 sed 's/^/| /' conftest.$ac_ext >&5
26582
26583   ac_header_preproc=no
26584 fi
26585 rm -f conftest.err conftest.$ac_ext
26586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26587 echo "${ECHO_T}$ac_header_preproc" >&6
26588
26589 # So?  What about this header?
26590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26591   yes:no: )
26592     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26596     ac_header_preproc=yes
26597     ;;
26598   no:yes:* )
26599     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26601     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26602 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26603     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26605     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26606 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26609     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26611     (
26612       cat <<\_ASBOX
26613 ## ------------------------------------------ ##
26614 ## Report this to the AC_PACKAGE_NAME lists.  ##
26615 ## ------------------------------------------ ##
26616 _ASBOX
26617     ) |
26618       sed "s/^/$as_me: WARNING:     /" >&2
26619     ;;
26620 esac
26621 echo "$as_me:$LINENO: checking for $ac_header" >&5
26622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26624   echo $ECHO_N "(cached) $ECHO_C" >&6
26625 else
26626   eval "$as_ac_Header=\$ac_header_preproc"
26627 fi
26628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26630
26631 fi
26632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26633   cat >>confdefs.h <<_ACEOF
26634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26635 _ACEOF
26636
26637 fi
26638
26639 done
26640
26641 if test "$ac_cv_header_regex_h" != yes ; then
26642         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26643 echo "$as_me: error: POSIX regex.h required." >&2;}
26644    { (exit 1); exit 1; }; }
26645 fi
26646 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26647 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26648 if test "${ac_cv_search_regfree+set}" = set; then
26649   echo $ECHO_N "(cached) $ECHO_C" >&6
26650 else
26651   ac_func_search_save_LIBS=$LIBS
26652 ac_cv_search_regfree=no
26653 cat >conftest.$ac_ext <<_ACEOF
26654 /* confdefs.h.  */
26655 _ACEOF
26656 cat confdefs.h >>conftest.$ac_ext
26657 cat >>conftest.$ac_ext <<_ACEOF
26658 /* end confdefs.h.  */
26659
26660 /* Override any gcc2 internal prototype to avoid an error.  */
26661 #ifdef __cplusplus
26662 extern "C"
26663 #endif
26664 /* We use char because int might match the return type of a gcc2
26665    builtin and then its argument prototype would still apply.  */
26666 char regfree ();
26667 int
26668 main ()
26669 {
26670 regfree ();
26671   ;
26672   return 0;
26673 }
26674 _ACEOF
26675 rm -f conftest.$ac_objext conftest$ac_exeext
26676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26677   (eval $ac_link) 2>conftest.er1
26678   ac_status=$?
26679   grep -v '^ *+' conftest.er1 >conftest.err
26680   rm -f conftest.er1
26681   cat conftest.err >&5
26682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683   (exit $ac_status); } &&
26684          { ac_try='test -z "$ac_c_werror_flag"
26685                          || test ! -s conftest.err'
26686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26687   (eval $ac_try) 2>&5
26688   ac_status=$?
26689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690   (exit $ac_status); }; } &&
26691          { ac_try='test -s conftest$ac_exeext'
26692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26693   (eval $ac_try) 2>&5
26694   ac_status=$?
26695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696   (exit $ac_status); }; }; then
26697   ac_cv_search_regfree="none required"
26698 else
26699   echo "$as_me: failed program was:" >&5
26700 sed 's/^/| /' conftest.$ac_ext >&5
26701
26702 fi
26703 rm -f conftest.err conftest.$ac_objext \
26704       conftest$ac_exeext conftest.$ac_ext
26705 if test "$ac_cv_search_regfree" = no; then
26706   for ac_lib in regex gnuregex; do
26707     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26708     cat >conftest.$ac_ext <<_ACEOF
26709 /* confdefs.h.  */
26710 _ACEOF
26711 cat confdefs.h >>conftest.$ac_ext
26712 cat >>conftest.$ac_ext <<_ACEOF
26713 /* end confdefs.h.  */
26714
26715 /* Override any gcc2 internal prototype to avoid an error.  */
26716 #ifdef __cplusplus
26717 extern "C"
26718 #endif
26719 /* We use char because int might match the return type of a gcc2
26720    builtin and then its argument prototype would still apply.  */
26721 char regfree ();
26722 int
26723 main ()
26724 {
26725 regfree ();
26726   ;
26727   return 0;
26728 }
26729 _ACEOF
26730 rm -f conftest.$ac_objext conftest$ac_exeext
26731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26732   (eval $ac_link) 2>conftest.er1
26733   ac_status=$?
26734   grep -v '^ *+' conftest.er1 >conftest.err
26735   rm -f conftest.er1
26736   cat conftest.err >&5
26737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738   (exit $ac_status); } &&
26739          { ac_try='test -z "$ac_c_werror_flag"
26740                          || test ! -s conftest.err'
26741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26742   (eval $ac_try) 2>&5
26743   ac_status=$?
26744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745   (exit $ac_status); }; } &&
26746          { ac_try='test -s conftest$ac_exeext'
26747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26748   (eval $ac_try) 2>&5
26749   ac_status=$?
26750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26751   (exit $ac_status); }; }; then
26752   ac_cv_search_regfree="-l$ac_lib"
26753 break
26754 else
26755   echo "$as_me: failed program was:" >&5
26756 sed 's/^/| /' conftest.$ac_ext >&5
26757
26758 fi
26759 rm -f conftest.err conftest.$ac_objext \
26760       conftest$ac_exeext conftest.$ac_ext
26761   done
26762 fi
26763 LIBS=$ac_func_search_save_LIBS
26764 fi
26765 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26766 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26767 if test "$ac_cv_search_regfree" != no; then
26768   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26769   :
26770 else
26771   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26772 echo "$as_me: error: POSIX regex required." >&2;}
26773    { (exit 1); exit 1; }; }
26774 fi
26775
26776
26777
26778 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26779 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26780 if test "${ol_cv_c_posix_regex+set}" = set; then
26781   echo $ECHO_N "(cached) $ECHO_C" >&6
26782 else
26783
26784         if test "$cross_compiling" = yes; then
26785   ol_cv_c_posix_regex=cross
26786 else
26787   cat >conftest.$ac_ext <<_ACEOF
26788 /* confdefs.h.  */
26789 _ACEOF
26790 cat confdefs.h >>conftest.$ac_ext
26791 cat >>conftest.$ac_ext <<_ACEOF
26792 /* end confdefs.h.  */
26793
26794 #include <sys/types.h>
26795 #include <regex.h>
26796 static char *pattern, *string;
26797 main()
26798 {
26799         int rc;
26800         regex_t re;
26801
26802         pattern = "^A";
26803
26804         if(regcomp(&re, pattern, 0)) {
26805                 return -1;
26806         }
26807
26808         string = "ALL MATCH";
26809
26810         rc = regexec(&re, string, 0, (void*)0, 0);
26811
26812         regfree(&re);
26813
26814         return rc;
26815 }
26816 _ACEOF
26817 rm -f conftest$ac_exeext
26818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26819   (eval $ac_link) 2>&5
26820   ac_status=$?
26821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26824   (eval $ac_try) 2>&5
26825   ac_status=$?
26826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827   (exit $ac_status); }; }; then
26828   ol_cv_c_posix_regex=yes
26829 else
26830   echo "$as_me: program exited with status $ac_status" >&5
26831 echo "$as_me: failed program was:" >&5
26832 sed 's/^/| /' conftest.$ac_ext >&5
26833
26834 ( exit $ac_status )
26835 ol_cv_c_posix_regex=no
26836 fi
26837 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26838 fi
26839 fi
26840 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26841 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26842
26843 if test "$ol_cv_c_posix_regex" = no ; then
26844         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26845 echo "$as_me: error: broken POSIX regex!" >&2;}
26846    { (exit 1); exit 1; }; }
26847 fi
26848
26849
26850 have_uuid=no
26851
26852 for ac_header in sys/uuid.h
26853 do
26854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26856   echo "$as_me:$LINENO: checking for $ac_header" >&5
26857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26859   echo $ECHO_N "(cached) $ECHO_C" >&6
26860 fi
26861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26863 else
26864   # Is the header compilable?
26865 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26867 cat >conftest.$ac_ext <<_ACEOF
26868 /* confdefs.h.  */
26869 _ACEOF
26870 cat confdefs.h >>conftest.$ac_ext
26871 cat >>conftest.$ac_ext <<_ACEOF
26872 /* end confdefs.h.  */
26873 $ac_includes_default
26874 #include <$ac_header>
26875 _ACEOF
26876 rm -f conftest.$ac_objext
26877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26878   (eval $ac_compile) 2>conftest.er1
26879   ac_status=$?
26880   grep -v '^ *+' conftest.er1 >conftest.err
26881   rm -f conftest.er1
26882   cat conftest.err >&5
26883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884   (exit $ac_status); } &&
26885          { ac_try='test -z "$ac_c_werror_flag"
26886                          || test ! -s conftest.err'
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); }; } &&
26892          { ac_try='test -s conftest.$ac_objext'
26893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26894   (eval $ac_try) 2>&5
26895   ac_status=$?
26896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897   (exit $ac_status); }; }; then
26898   ac_header_compiler=yes
26899 else
26900   echo "$as_me: failed program was:" >&5
26901 sed 's/^/| /' conftest.$ac_ext >&5
26902
26903 ac_header_compiler=no
26904 fi
26905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26906 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26907 echo "${ECHO_T}$ac_header_compiler" >&6
26908
26909 # Is the header present?
26910 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26912 cat >conftest.$ac_ext <<_ACEOF
26913 /* confdefs.h.  */
26914 _ACEOF
26915 cat confdefs.h >>conftest.$ac_ext
26916 cat >>conftest.$ac_ext <<_ACEOF
26917 /* end confdefs.h.  */
26918 #include <$ac_header>
26919 _ACEOF
26920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26921   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26922   ac_status=$?
26923   grep -v '^ *+' conftest.er1 >conftest.err
26924   rm -f conftest.er1
26925   cat conftest.err >&5
26926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927   (exit $ac_status); } >/dev/null; then
26928   if test -s conftest.err; then
26929     ac_cpp_err=$ac_c_preproc_warn_flag
26930     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26931   else
26932     ac_cpp_err=
26933   fi
26934 else
26935   ac_cpp_err=yes
26936 fi
26937 if test -z "$ac_cpp_err"; then
26938   ac_header_preproc=yes
26939 else
26940   echo "$as_me: failed program was:" >&5
26941 sed 's/^/| /' conftest.$ac_ext >&5
26942
26943   ac_header_preproc=no
26944 fi
26945 rm -f conftest.err conftest.$ac_ext
26946 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26947 echo "${ECHO_T}$ac_header_preproc" >&6
26948
26949 # So?  What about this header?
26950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26951   yes:no: )
26952     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26955 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26956     ac_header_preproc=yes
26957     ;;
26958   no:yes:* )
26959     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26961     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26962 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26963     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26964 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26965     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26966 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26967     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26969     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26970 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26971     (
26972       cat <<\_ASBOX
26973 ## ------------------------------------------ ##
26974 ## Report this to the AC_PACKAGE_NAME lists.  ##
26975 ## ------------------------------------------ ##
26976 _ASBOX
26977     ) |
26978       sed "s/^/$as_me: WARNING:     /" >&2
26979     ;;
26980 esac
26981 echo "$as_me:$LINENO: checking for $ac_header" >&5
26982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26984   echo $ECHO_N "(cached) $ECHO_C" >&6
26985 else
26986   eval "$as_ac_Header=\$ac_header_preproc"
26987 fi
26988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26990
26991 fi
26992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26993   cat >>confdefs.h <<_ACEOF
26994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26995 _ACEOF
26996
26997 fi
26998
26999 done
27000
27001 if test $ac_cv_header_sys_uuid_h = yes ; then
27002         save_LIBS="$LIBS"
27003         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
27004 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
27005 if test "${ac_cv_search_uuid_to_str+set}" = set; then
27006   echo $ECHO_N "(cached) $ECHO_C" >&6
27007 else
27008   ac_func_search_save_LIBS=$LIBS
27009 ac_cv_search_uuid_to_str=no
27010 cat >conftest.$ac_ext <<_ACEOF
27011 /* confdefs.h.  */
27012 _ACEOF
27013 cat confdefs.h >>conftest.$ac_ext
27014 cat >>conftest.$ac_ext <<_ACEOF
27015 /* end confdefs.h.  */
27016
27017 /* Override any gcc2 internal prototype to avoid an error.  */
27018 #ifdef __cplusplus
27019 extern "C"
27020 #endif
27021 /* We use char because int might match the return type of a gcc2
27022    builtin and then its argument prototype would still apply.  */
27023 char uuid_to_str ();
27024 int
27025 main ()
27026 {
27027 uuid_to_str ();
27028   ;
27029   return 0;
27030 }
27031 _ACEOF
27032 rm -f conftest.$ac_objext conftest$ac_exeext
27033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27034   (eval $ac_link) 2>conftest.er1
27035   ac_status=$?
27036   grep -v '^ *+' conftest.er1 >conftest.err
27037   rm -f conftest.er1
27038   cat conftest.err >&5
27039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040   (exit $ac_status); } &&
27041          { ac_try='test -z "$ac_c_werror_flag"
27042                          || test ! -s conftest.err'
27043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27044   (eval $ac_try) 2>&5
27045   ac_status=$?
27046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047   (exit $ac_status); }; } &&
27048          { ac_try='test -s conftest$ac_exeext'
27049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27050   (eval $ac_try) 2>&5
27051   ac_status=$?
27052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053   (exit $ac_status); }; }; then
27054   ac_cv_search_uuid_to_str="none required"
27055 else
27056   echo "$as_me: failed program was:" >&5
27057 sed 's/^/| /' conftest.$ac_ext >&5
27058
27059 fi
27060 rm -f conftest.err conftest.$ac_objext \
27061       conftest$ac_exeext conftest.$ac_ext
27062 if test "$ac_cv_search_uuid_to_str" = no; then
27063   for ac_lib in uuid; do
27064     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27065     cat >conftest.$ac_ext <<_ACEOF
27066 /* confdefs.h.  */
27067 _ACEOF
27068 cat confdefs.h >>conftest.$ac_ext
27069 cat >>conftest.$ac_ext <<_ACEOF
27070 /* end confdefs.h.  */
27071
27072 /* Override any gcc2 internal prototype to avoid an error.  */
27073 #ifdef __cplusplus
27074 extern "C"
27075 #endif
27076 /* We use char because int might match the return type of a gcc2
27077    builtin and then its argument prototype would still apply.  */
27078 char uuid_to_str ();
27079 int
27080 main ()
27081 {
27082 uuid_to_str ();
27083   ;
27084   return 0;
27085 }
27086 _ACEOF
27087 rm -f conftest.$ac_objext conftest$ac_exeext
27088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27089   (eval $ac_link) 2>conftest.er1
27090   ac_status=$?
27091   grep -v '^ *+' conftest.er1 >conftest.err
27092   rm -f conftest.er1
27093   cat conftest.err >&5
27094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095   (exit $ac_status); } &&
27096          { ac_try='test -z "$ac_c_werror_flag"
27097                          || test ! -s conftest.err'
27098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27099   (eval $ac_try) 2>&5
27100   ac_status=$?
27101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102   (exit $ac_status); }; } &&
27103          { ac_try='test -s conftest$ac_exeext'
27104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27105   (eval $ac_try) 2>&5
27106   ac_status=$?
27107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108   (exit $ac_status); }; }; then
27109   ac_cv_search_uuid_to_str="-l$ac_lib"
27110 break
27111 else
27112   echo "$as_me: failed program was:" >&5
27113 sed 's/^/| /' conftest.$ac_ext >&5
27114
27115 fi
27116 rm -f conftest.err conftest.$ac_objext \
27117       conftest$ac_exeext conftest.$ac_ext
27118   done
27119 fi
27120 LIBS=$ac_func_search_save_LIBS
27121 fi
27122 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
27123 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
27124 if test "$ac_cv_search_uuid_to_str" != no; then
27125   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
27126   have_uuid=yes
27127 else
27128   :
27129 fi
27130
27131         LIBS="$save_LIBS"
27132
27133         if test have_uuid = yes ; then
27134
27135 cat >>confdefs.h <<\_ACEOF
27136 #define HAVE_UUID_TO_STR 1
27137 _ACEOF
27138
27139
27140                 test "$ac_cv_search_uuid_to_str" = "none required" || \
27141                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
27142         fi
27143 fi
27144
27145 if test $have_uuid = no ; then
27146         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27147 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27148         save_LIBS="$LIBS"
27149         LIBS="$LIBS -lrpcrt4"
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                 int __stdcall UuidCreate(void *);
27158                 int __stdcall UuidToStringA(void *,void **);
27159
27160 int
27161 main ()
27162 {
27163
27164                 UuidCreate(0);
27165                 UuidToStringA(0,0);
27166
27167   ;
27168   return 0;
27169 }
27170 _ACEOF
27171 rm -f conftest.$ac_objext conftest$ac_exeext
27172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27173   (eval $ac_link) 2>conftest.er1
27174   ac_status=$?
27175   grep -v '^ *+' conftest.er1 >conftest.err
27176   rm -f conftest.er1
27177   cat conftest.err >&5
27178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179   (exit $ac_status); } &&
27180          { ac_try='test -z "$ac_c_werror_flag"
27181                          || test ! -s conftest.err'
27182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27183   (eval $ac_try) 2>&5
27184   ac_status=$?
27185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186   (exit $ac_status); }; } &&
27187          { ac_try='test -s conftest$ac_exeext'
27188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27189   (eval $ac_try) 2>&5
27190   ac_status=$?
27191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192   (exit $ac_status); }; }; then
27193   need_rpcrt=yes
27194 else
27195   echo "$as_me: failed program was:" >&5
27196 sed 's/^/| /' conftest.$ac_ext >&5
27197
27198 need_rpcrt=no
27199 fi
27200 rm -f conftest.err conftest.$ac_objext \
27201       conftest$ac_exeext conftest.$ac_ext
27202         if test $need_rpcrt = yes; then
27203                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27204         fi
27205         LIBS="$save_LIBS"
27206         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27207 echo "${ECHO_T}$need_rpcrt" >&6
27208 fi
27209
27210 ol_cv_lib_resolver=no
27211 if test $ol_cv_lib_resolver = no ; then
27212         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27213 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27214 if test "${ol_cv_resolver_none+set}" = set; then
27215   echo $ECHO_N "(cached) $ECHO_C" >&6
27216 else
27217
27218         ol_RESOLVER_LIB=
27219         ol_LIBS=$LIBS
27220         LIBS="$ol_RESOLVER_LIB $LIBS"
27221
27222         cat >conftest.$ac_ext <<_ACEOF
27223 /* confdefs.h.  */
27224 _ACEOF
27225 cat confdefs.h >>conftest.$ac_ext
27226 cat >>conftest.$ac_ext <<_ACEOF
27227 /* end confdefs.h.  */
27228
27229 #ifdef HAVE_SYS_TYPES_H
27230 #       include <sys/types.h>
27231 #endif
27232 #include <netinet/in.h>
27233 #ifdef HAVE_ARPA_NAMESER_H
27234 #       include <arpa/nameser.h>
27235 #endif
27236 #ifdef HAVE_RESOLV_H
27237 #       include <resolv.h>
27238 #endif
27239
27240 int
27241 main ()
27242 {
27243 {
27244         int len, status;
27245         char *request = NULL;
27246         unsigned char reply[64*1024];
27247         unsigned char host[64*1024];
27248         unsigned char *p;
27249
27250 #ifdef NS_HFIXEDSZ
27251         /* Bind 8/9 interface */
27252         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27253 #else
27254         /* Bind 4 interface */
27255 # ifndef T_SRV
27256 #  define T_SRV 33
27257 # endif
27258         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27259 #endif
27260         p = reply;
27261 #ifdef NS_HFIXEDSZ
27262         /* Bind 8/9 interface */
27263         p += NS_HFIXEDSZ;
27264 #elif defined(HFIXEDSZ)
27265         /* Bind 4 interface w/ HFIXEDSZ */
27266         p += HFIXEDSZ;
27267 #else
27268         /* Bind 4 interface w/o HFIXEDSZ */
27269         p += sizeof(HEADER);
27270 #endif
27271         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27272 }
27273   ;
27274   return 0;
27275 }
27276 _ACEOF
27277 rm -f conftest.$ac_objext conftest$ac_exeext
27278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27279   (eval $ac_link) 2>conftest.er1
27280   ac_status=$?
27281   grep -v '^ *+' conftest.er1 >conftest.err
27282   rm -f conftest.er1
27283   cat conftest.err >&5
27284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285   (exit $ac_status); } &&
27286          { ac_try='test -z "$ac_c_werror_flag"
27287                          || test ! -s conftest.err'
27288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27289   (eval $ac_try) 2>&5
27290   ac_status=$?
27291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27292   (exit $ac_status); }; } &&
27293          { ac_try='test -s conftest$ac_exeext'
27294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27295   (eval $ac_try) 2>&5
27296   ac_status=$?
27297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298   (exit $ac_status); }; }; then
27299   ol_cv_resolver_none=yes
27300 else
27301   echo "$as_me: failed program was:" >&5
27302 sed 's/^/| /' conftest.$ac_ext >&5
27303
27304 ol_cv_resolver_none=no
27305 fi
27306 rm -f conftest.err conftest.$ac_objext \
27307       conftest$ac_exeext conftest.$ac_ext
27308
27309         LIBS="$ol_LIBS"
27310
27311 fi
27312 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27313 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27314
27315         if test $ol_cv_resolver_none = yes ; then
27316                 ol_cv_lib_resolver=yes
27317         fi
27318 fi
27319
27320 if test $ol_cv_lib_resolver = no ; then
27321         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27322 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27323 if test "${ol_cv_resolver_resolv+set}" = set; then
27324   echo $ECHO_N "(cached) $ECHO_C" >&6
27325 else
27326
27327         ol_RESOLVER_LIB=-lresolv
27328         ol_LIBS=$LIBS
27329         LIBS="$ol_RESOLVER_LIB $LIBS"
27330
27331         cat >conftest.$ac_ext <<_ACEOF
27332 /* confdefs.h.  */
27333 _ACEOF
27334 cat confdefs.h >>conftest.$ac_ext
27335 cat >>conftest.$ac_ext <<_ACEOF
27336 /* end confdefs.h.  */
27337
27338 #ifdef HAVE_SYS_TYPES_H
27339 #       include <sys/types.h>
27340 #endif
27341 #include <netinet/in.h>
27342 #ifdef HAVE_ARPA_NAMESER_H
27343 #       include <arpa/nameser.h>
27344 #endif
27345 #ifdef HAVE_RESOLV_H
27346 #       include <resolv.h>
27347 #endif
27348
27349 int
27350 main ()
27351 {
27352 {
27353         int len, status;
27354         char *request = NULL;
27355         unsigned char reply[64*1024];
27356         unsigned char host[64*1024];
27357         unsigned char *p;
27358
27359 #ifdef NS_HFIXEDSZ
27360         /* Bind 8/9 interface */
27361         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27362 #else
27363         /* Bind 4 interface */
27364 # ifndef T_SRV
27365 #  define T_SRV 33
27366 # endif
27367         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27368 #endif
27369         p = reply;
27370 #ifdef NS_HFIXEDSZ
27371         /* Bind 8/9 interface */
27372         p += NS_HFIXEDSZ;
27373 #elif defined(HFIXEDSZ)
27374         /* Bind 4 interface w/ HFIXEDSZ */
27375         p += HFIXEDSZ;
27376 #else
27377         /* Bind 4 interface w/o HFIXEDSZ */
27378         p += sizeof(HEADER);
27379 #endif
27380         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27381 }
27382   ;
27383   return 0;
27384 }
27385 _ACEOF
27386 rm -f conftest.$ac_objext conftest$ac_exeext
27387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27388   (eval $ac_link) 2>conftest.er1
27389   ac_status=$?
27390   grep -v '^ *+' conftest.er1 >conftest.err
27391   rm -f conftest.er1
27392   cat conftest.err >&5
27393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394   (exit $ac_status); } &&
27395          { ac_try='test -z "$ac_c_werror_flag"
27396                          || test ! -s conftest.err'
27397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27398   (eval $ac_try) 2>&5
27399   ac_status=$?
27400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401   (exit $ac_status); }; } &&
27402          { ac_try='test -s conftest$ac_exeext'
27403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27404   (eval $ac_try) 2>&5
27405   ac_status=$?
27406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407   (exit $ac_status); }; }; then
27408   ol_cv_resolver_resolv=yes
27409 else
27410   echo "$as_me: failed program was:" >&5
27411 sed 's/^/| /' conftest.$ac_ext >&5
27412
27413 ol_cv_resolver_resolv=no
27414 fi
27415 rm -f conftest.err conftest.$ac_objext \
27416       conftest$ac_exeext conftest.$ac_ext
27417
27418         LIBS="$ol_LIBS"
27419
27420 fi
27421 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27422 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27423
27424         if test $ol_cv_resolver_resolv = yes ; then
27425                 ol_cv_lib_resolver=-lresolv
27426         fi
27427 fi
27428
27429 if test $ol_cv_lib_resolver = no ; then
27430         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27431 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27432 if test "${ol_cv_resolver_bind+set}" = set; then
27433   echo $ECHO_N "(cached) $ECHO_C" >&6
27434 else
27435
27436         ol_RESOLVER_LIB=-lbind
27437         ol_LIBS=$LIBS
27438         LIBS="$ol_RESOLVER_LIB $LIBS"
27439
27440         cat >conftest.$ac_ext <<_ACEOF
27441 /* confdefs.h.  */
27442 _ACEOF
27443 cat confdefs.h >>conftest.$ac_ext
27444 cat >>conftest.$ac_ext <<_ACEOF
27445 /* end confdefs.h.  */
27446
27447 #ifdef HAVE_SYS_TYPES_H
27448 #       include <sys/types.h>
27449 #endif
27450 #include <netinet/in.h>
27451 #ifdef HAVE_ARPA_NAMESER_H
27452 #       include <arpa/nameser.h>
27453 #endif
27454 #ifdef HAVE_RESOLV_H
27455 #       include <resolv.h>
27456 #endif
27457
27458 int
27459 main ()
27460 {
27461 {
27462         int len, status;
27463         char *request = NULL;
27464         unsigned char reply[64*1024];
27465         unsigned char host[64*1024];
27466         unsigned char *p;
27467
27468 #ifdef NS_HFIXEDSZ
27469         /* Bind 8/9 interface */
27470         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27471 #else
27472         /* Bind 4 interface */
27473 # ifndef T_SRV
27474 #  define T_SRV 33
27475 # endif
27476         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27477 #endif
27478         p = reply;
27479 #ifdef NS_HFIXEDSZ
27480         /* Bind 8/9 interface */
27481         p += NS_HFIXEDSZ;
27482 #elif defined(HFIXEDSZ)
27483         /* Bind 4 interface w/ HFIXEDSZ */
27484         p += HFIXEDSZ;
27485 #else
27486         /* Bind 4 interface w/o HFIXEDSZ */
27487         p += sizeof(HEADER);
27488 #endif
27489         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27490 }
27491   ;
27492   return 0;
27493 }
27494 _ACEOF
27495 rm -f conftest.$ac_objext conftest$ac_exeext
27496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27497   (eval $ac_link) 2>conftest.er1
27498   ac_status=$?
27499   grep -v '^ *+' conftest.er1 >conftest.err
27500   rm -f conftest.er1
27501   cat conftest.err >&5
27502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503   (exit $ac_status); } &&
27504          { ac_try='test -z "$ac_c_werror_flag"
27505                          || test ! -s conftest.err'
27506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27507   (eval $ac_try) 2>&5
27508   ac_status=$?
27509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510   (exit $ac_status); }; } &&
27511          { ac_try='test -s conftest$ac_exeext'
27512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27513   (eval $ac_try) 2>&5
27514   ac_status=$?
27515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516   (exit $ac_status); }; }; then
27517   ol_cv_resolver_bind=yes
27518 else
27519   echo "$as_me: failed program was:" >&5
27520 sed 's/^/| /' conftest.$ac_ext >&5
27521
27522 ol_cv_resolver_bind=no
27523 fi
27524 rm -f conftest.err conftest.$ac_objext \
27525       conftest$ac_exeext conftest.$ac_ext
27526
27527         LIBS="$ol_LIBS"
27528
27529 fi
27530 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27531 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27532
27533         if test $ol_cv_resolver_bind = yes ; then
27534                 ol_cv_lib_resolver=-lbind
27535         fi
27536 fi
27537
27538
27539
27540 ol_link_dnssrv=no
27541 if test "$ol_cv_lib_resolver" != no ; then
27542
27543 cat >>confdefs.h <<\_ACEOF
27544 #define HAVE_RES_QUERY 1
27545 _ACEOF
27546
27547
27548         if test "$ol_enable_dnssrv" != no ; then
27549                 ol_link_dnssrv=yes
27550         fi
27551
27552         if test "$ol_cv_lib_resolver" != yes ; then
27553                 LIBS="$ol_cv_lib_resolver $LIBS"
27554         fi
27555 fi
27556
27557 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27558         if test "$ol_link_dnssrv" = no ; then
27559                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27560 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27561    { (exit 1); exit 1; }; }
27562         fi
27563 else
27564         ol_enable_dnssrv=no
27565 fi
27566
27567
27568 for ac_func in hstrerror
27569 do
27570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27571 echo "$as_me:$LINENO: checking for $ac_func" >&5
27572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27573 if eval "test \"\${$as_ac_var+set}\" = set"; then
27574   echo $ECHO_N "(cached) $ECHO_C" >&6
27575 else
27576   cat >conftest.$ac_ext <<_ACEOF
27577 /* confdefs.h.  */
27578 _ACEOF
27579 cat confdefs.h >>conftest.$ac_ext
27580 cat >>conftest.$ac_ext <<_ACEOF
27581 /* end confdefs.h.  */
27582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27583    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27584 #define $ac_func innocuous_$ac_func
27585
27586 /* System header to define __stub macros and hopefully few prototypes,
27587     which can conflict with char $ac_func (); below.
27588     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27589     <limits.h> exists even on freestanding compilers.  */
27590
27591 #ifdef __STDC__
27592 # include <limits.h>
27593 #else
27594 # include <assert.h>
27595 #endif
27596
27597 #undef $ac_func
27598
27599 /* Override any gcc2 internal prototype to avoid an error.  */
27600 #ifdef __cplusplus
27601 extern "C"
27602 {
27603 #endif
27604 /* We use char because int might match the return type of a gcc2
27605    builtin and then its argument prototype would still apply.  */
27606 char $ac_func ();
27607 /* The GNU C library defines this for functions which it implements
27608     to always fail with ENOSYS.  Some functions are actually named
27609     something starting with __ and the normal name is an alias.  */
27610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27611 choke me
27612 #else
27613 char (*f) () = $ac_func;
27614 #endif
27615 #ifdef __cplusplus
27616 }
27617 #endif
27618
27619 int
27620 main ()
27621 {
27622 return f != $ac_func;
27623   ;
27624   return 0;
27625 }
27626 _ACEOF
27627 rm -f conftest.$ac_objext conftest$ac_exeext
27628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27629   (eval $ac_link) 2>conftest.er1
27630   ac_status=$?
27631   grep -v '^ *+' conftest.er1 >conftest.err
27632   rm -f conftest.er1
27633   cat conftest.err >&5
27634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635   (exit $ac_status); } &&
27636          { ac_try='test -z "$ac_c_werror_flag"
27637                          || test ! -s conftest.err'
27638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27639   (eval $ac_try) 2>&5
27640   ac_status=$?
27641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27642   (exit $ac_status); }; } &&
27643          { ac_try='test -s conftest$ac_exeext'
27644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27645   (eval $ac_try) 2>&5
27646   ac_status=$?
27647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648   (exit $ac_status); }; }; then
27649   eval "$as_ac_var=yes"
27650 else
27651   echo "$as_me: failed program was:" >&5
27652 sed 's/^/| /' conftest.$ac_ext >&5
27653
27654 eval "$as_ac_var=no"
27655 fi
27656 rm -f conftest.err conftest.$ac_objext \
27657       conftest$ac_exeext conftest.$ac_ext
27658 fi
27659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27660 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27661 if test `eval echo '${'$as_ac_var'}'` = yes; then
27662   cat >>confdefs.h <<_ACEOF
27663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27664 _ACEOF
27665
27666 fi
27667 done
27668
27669
27670
27671
27672
27673
27674 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27675 do
27676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27677 echo "$as_me:$LINENO: checking for $ac_func" >&5
27678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27679 if eval "test \"\${$as_ac_var+set}\" = set"; then
27680   echo $ECHO_N "(cached) $ECHO_C" >&6
27681 else
27682   cat >conftest.$ac_ext <<_ACEOF
27683 /* confdefs.h.  */
27684 _ACEOF
27685 cat confdefs.h >>conftest.$ac_ext
27686 cat >>conftest.$ac_ext <<_ACEOF
27687 /* end confdefs.h.  */
27688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27690 #define $ac_func innocuous_$ac_func
27691
27692 /* System header to define __stub macros and hopefully few prototypes,
27693     which can conflict with char $ac_func (); below.
27694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27695     <limits.h> exists even on freestanding compilers.  */
27696
27697 #ifdef __STDC__
27698 # include <limits.h>
27699 #else
27700 # include <assert.h>
27701 #endif
27702
27703 #undef $ac_func
27704
27705 /* Override any gcc2 internal prototype to avoid an error.  */
27706 #ifdef __cplusplus
27707 extern "C"
27708 {
27709 #endif
27710 /* We use char because int might match the return type of a gcc2
27711    builtin and then its argument prototype would still apply.  */
27712 char $ac_func ();
27713 /* The GNU C library defines this for functions which it implements
27714     to always fail with ENOSYS.  Some functions are actually named
27715     something starting with __ and the normal name is an alias.  */
27716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27717 choke me
27718 #else
27719 char (*f) () = $ac_func;
27720 #endif
27721 #ifdef __cplusplus
27722 }
27723 #endif
27724
27725 int
27726 main ()
27727 {
27728 return f != $ac_func;
27729   ;
27730   return 0;
27731 }
27732 _ACEOF
27733 rm -f conftest.$ac_objext conftest$ac_exeext
27734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27735   (eval $ac_link) 2>conftest.er1
27736   ac_status=$?
27737   grep -v '^ *+' conftest.er1 >conftest.err
27738   rm -f conftest.er1
27739   cat conftest.err >&5
27740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741   (exit $ac_status); } &&
27742          { ac_try='test -z "$ac_c_werror_flag"
27743                          || test ! -s conftest.err'
27744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27745   (eval $ac_try) 2>&5
27746   ac_status=$?
27747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748   (exit $ac_status); }; } &&
27749          { ac_try='test -s conftest$ac_exeext'
27750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27751   (eval $ac_try) 2>&5
27752   ac_status=$?
27753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27754   (exit $ac_status); }; }; then
27755   eval "$as_ac_var=yes"
27756 else
27757   echo "$as_me: failed program was:" >&5
27758 sed 's/^/| /' conftest.$ac_ext >&5
27759
27760 eval "$as_ac_var=no"
27761 fi
27762 rm -f conftest.err conftest.$ac_objext \
27763       conftest$ac_exeext conftest.$ac_ext
27764 fi
27765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27767 if test `eval echo '${'$as_ac_var'}'` = yes; then
27768   cat >>confdefs.h <<_ACEOF
27769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27770 _ACEOF
27771
27772 fi
27773 done
27774
27775
27776 ol_link_ipv6=no
27777 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27778         if test $ol_enable_ipv6 = yes ; then
27779                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27780 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27781    { (exit 1); exit 1; }; }
27782         fi
27783 elif test $ol_enable_ipv6 != no ; then
27784         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27785 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27786 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27787   echo $ECHO_N "(cached) $ECHO_C" >&6
27788 else
27789
27790                 cat >conftest.$ac_ext <<_ACEOF
27791 /* confdefs.h.  */
27792 _ACEOF
27793 cat confdefs.h >>conftest.$ac_ext
27794 cat >>conftest.$ac_ext <<_ACEOF
27795 /* end confdefs.h.  */
27796
27797 #                       include <netinet/in.h>
27798 #                       ifdef INET6_ADDRSTRLEN
27799                                 __has_inet6_addrstrlen__;
27800 #                       endif
27801
27802 _ACEOF
27803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27804   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27805   ol_cv_inet6_addrstrlen=yes
27806 else
27807   ol_cv_inet6_addrstrlen=no
27808 fi
27809 rm -f conftest*
27810
27811 fi
27812 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27813 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27814
27815
27816         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27817 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27818 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27819   echo $ECHO_N "(cached) $ECHO_C" >&6
27820 else
27821
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
27829 #include <sys/types.h>
27830 #include <sys/socket.h>
27831
27832 int
27833 main ()
27834 {
27835
27836                         struct sockaddr_storage ss;
27837
27838   ;
27839   return 0;
27840 }
27841 _ACEOF
27842 rm -f conftest.$ac_objext
27843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27844   (eval $ac_compile) 2>conftest.er1
27845   ac_status=$?
27846   grep -v '^ *+' conftest.er1 >conftest.err
27847   rm -f conftest.er1
27848   cat conftest.err >&5
27849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850   (exit $ac_status); } &&
27851          { ac_try='test -z "$ac_c_werror_flag"
27852                          || test ! -s conftest.err'
27853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27854   (eval $ac_try) 2>&5
27855   ac_status=$?
27856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857   (exit $ac_status); }; } &&
27858          { ac_try='test -s conftest.$ac_objext'
27859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27860   (eval $ac_try) 2>&5
27861   ac_status=$?
27862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863   (exit $ac_status); }; }; then
27864   ol_cv_struct_sockaddr_storage=yes
27865 else
27866   echo "$as_me: failed program was:" >&5
27867 sed 's/^/| /' conftest.$ac_ext >&5
27868
27869 ol_cv_struct_sockaddr_storage=no
27870 fi
27871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27872 fi
27873 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
27874 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
27875
27876         if test $ol_cv_inet6_addrstrlen = yes \
27877                 -a $ol_cv_struct_sockaddr_storage = yes ; then
27878                 ol_link_ipv6=yes
27879         elif test $ol_enable_ipv6 = yes \
27880                         -a $ol_cv_inet6_addrstrlen = no ; then
27881                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
27882 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
27883    { (exit 1); exit 1; }; }
27884         elif test $ol_enable_ipv6 = yes \
27885                         -a $ol_cv_struct_sockaddr_storage = no ; then
27886                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
27887 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
27888    { (exit 1); exit 1; }; }
27889         fi
27890 fi
27891
27892 if test $ol_enable_local != no ; then
27893
27894 for ac_header in sys/un.h
27895 do
27896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27898   echo "$as_me:$LINENO: checking for $ac_header" >&5
27899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27901   echo $ECHO_N "(cached) $ECHO_C" >&6
27902 fi
27903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27905 else
27906   # Is the header compilable?
27907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27909 cat >conftest.$ac_ext <<_ACEOF
27910 /* confdefs.h.  */
27911 _ACEOF
27912 cat confdefs.h >>conftest.$ac_ext
27913 cat >>conftest.$ac_ext <<_ACEOF
27914 /* end confdefs.h.  */
27915 $ac_includes_default
27916 #include <$ac_header>
27917 _ACEOF
27918 rm -f conftest.$ac_objext
27919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27920   (eval $ac_compile) 2>conftest.er1
27921   ac_status=$?
27922   grep -v '^ *+' conftest.er1 >conftest.err
27923   rm -f conftest.er1
27924   cat conftest.err >&5
27925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926   (exit $ac_status); } &&
27927          { ac_try='test -z "$ac_c_werror_flag"
27928                          || test ! -s conftest.err'
27929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27930   (eval $ac_try) 2>&5
27931   ac_status=$?
27932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933   (exit $ac_status); }; } &&
27934          { ac_try='test -s conftest.$ac_objext'
27935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27936   (eval $ac_try) 2>&5
27937   ac_status=$?
27938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939   (exit $ac_status); }; }; then
27940   ac_header_compiler=yes
27941 else
27942   echo "$as_me: failed program was:" >&5
27943 sed 's/^/| /' conftest.$ac_ext >&5
27944
27945 ac_header_compiler=no
27946 fi
27947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27949 echo "${ECHO_T}$ac_header_compiler" >&6
27950
27951 # Is the header present?
27952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27954 cat >conftest.$ac_ext <<_ACEOF
27955 /* confdefs.h.  */
27956 _ACEOF
27957 cat confdefs.h >>conftest.$ac_ext
27958 cat >>conftest.$ac_ext <<_ACEOF
27959 /* end confdefs.h.  */
27960 #include <$ac_header>
27961 _ACEOF
27962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27963   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27964   ac_status=$?
27965   grep -v '^ *+' conftest.er1 >conftest.err
27966   rm -f conftest.er1
27967   cat conftest.err >&5
27968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969   (exit $ac_status); } >/dev/null; then
27970   if test -s conftest.err; then
27971     ac_cpp_err=$ac_c_preproc_warn_flag
27972     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27973   else
27974     ac_cpp_err=
27975   fi
27976 else
27977   ac_cpp_err=yes
27978 fi
27979 if test -z "$ac_cpp_err"; then
27980   ac_header_preproc=yes
27981 else
27982   echo "$as_me: failed program was:" >&5
27983 sed 's/^/| /' conftest.$ac_ext >&5
27984
27985   ac_header_preproc=no
27986 fi
27987 rm -f conftest.err conftest.$ac_ext
27988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27989 echo "${ECHO_T}$ac_header_preproc" >&6
27990
27991 # So?  What about this header?
27992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27993   yes:no: )
27994     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27998     ac_header_preproc=yes
27999     ;;
28000   no:yes:* )
28001     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28003     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28004 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28005     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28007     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28008 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28009     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28011     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28013     (
28014       cat <<\_ASBOX
28015 ## ------------------------------------------ ##
28016 ## Report this to the AC_PACKAGE_NAME lists.  ##
28017 ## ------------------------------------------ ##
28018 _ASBOX
28019     ) |
28020       sed "s/^/$as_me: WARNING:     /" >&2
28021     ;;
28022 esac
28023 echo "$as_me:$LINENO: checking for $ac_header" >&5
28024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28026   echo $ECHO_N "(cached) $ECHO_C" >&6
28027 else
28028   eval "$as_ac_Header=\$ac_header_preproc"
28029 fi
28030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28032
28033 fi
28034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28035   cat >>confdefs.h <<_ACEOF
28036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28037 _ACEOF
28038
28039 fi
28040
28041 done
28042
28043
28044         if test $ol_enable_local = auto ; then
28045                 ol_enable_local=$ac_cv_header_sys_un_h
28046         elif test $ac_cv_header_sys_un_h = no ; then
28047                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
28048 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
28049    { (exit 1); exit 1; }; }
28050         fi
28051 fi
28052
28053 ol_link_kbind=no
28054 ol_link_krb5=no
28055 ol_link_krb4=no
28056
28057 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28058         -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
28059         -o $ol_with_kerberos = k425 ; then
28060
28061
28062 for ac_header in krb5.h
28063 do
28064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28066   echo "$as_me:$LINENO: checking for $ac_header" >&5
28067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28069   echo $ECHO_N "(cached) $ECHO_C" >&6
28070 fi
28071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28073 else
28074   # Is the header compilable?
28075 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28077 cat >conftest.$ac_ext <<_ACEOF
28078 /* confdefs.h.  */
28079 _ACEOF
28080 cat confdefs.h >>conftest.$ac_ext
28081 cat >>conftest.$ac_ext <<_ACEOF
28082 /* end confdefs.h.  */
28083 $ac_includes_default
28084 #include <$ac_header>
28085 _ACEOF
28086 rm -f conftest.$ac_objext
28087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28088   (eval $ac_compile) 2>conftest.er1
28089   ac_status=$?
28090   grep -v '^ *+' conftest.er1 >conftest.err
28091   rm -f conftest.er1
28092   cat conftest.err >&5
28093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094   (exit $ac_status); } &&
28095          { ac_try='test -z "$ac_c_werror_flag"
28096                          || test ! -s conftest.err'
28097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28098   (eval $ac_try) 2>&5
28099   ac_status=$?
28100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101   (exit $ac_status); }; } &&
28102          { ac_try='test -s conftest.$ac_objext'
28103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28104   (eval $ac_try) 2>&5
28105   ac_status=$?
28106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107   (exit $ac_status); }; }; then
28108   ac_header_compiler=yes
28109 else
28110   echo "$as_me: failed program was:" >&5
28111 sed 's/^/| /' conftest.$ac_ext >&5
28112
28113 ac_header_compiler=no
28114 fi
28115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28117 echo "${ECHO_T}$ac_header_compiler" >&6
28118
28119 # Is the header present?
28120 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28122 cat >conftest.$ac_ext <<_ACEOF
28123 /* confdefs.h.  */
28124 _ACEOF
28125 cat confdefs.h >>conftest.$ac_ext
28126 cat >>conftest.$ac_ext <<_ACEOF
28127 /* end confdefs.h.  */
28128 #include <$ac_header>
28129 _ACEOF
28130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28131   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28132   ac_status=$?
28133   grep -v '^ *+' conftest.er1 >conftest.err
28134   rm -f conftest.er1
28135   cat conftest.err >&5
28136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137   (exit $ac_status); } >/dev/null; then
28138   if test -s conftest.err; then
28139     ac_cpp_err=$ac_c_preproc_warn_flag
28140     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28141   else
28142     ac_cpp_err=
28143   fi
28144 else
28145   ac_cpp_err=yes
28146 fi
28147 if test -z "$ac_cpp_err"; then
28148   ac_header_preproc=yes
28149 else
28150   echo "$as_me: failed program was:" >&5
28151 sed 's/^/| /' conftest.$ac_ext >&5
28152
28153   ac_header_preproc=no
28154 fi
28155 rm -f conftest.err conftest.$ac_ext
28156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28157 echo "${ECHO_T}$ac_header_preproc" >&6
28158
28159 # So?  What about this header?
28160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28161   yes:no: )
28162     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28164     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28166     ac_header_preproc=yes
28167     ;;
28168   no:yes:* )
28169     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28171     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28172 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28173     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28175     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28176 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28179     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28181     (
28182       cat <<\_ASBOX
28183 ## ------------------------------------------ ##
28184 ## Report this to the AC_PACKAGE_NAME lists.  ##
28185 ## ------------------------------------------ ##
28186 _ASBOX
28187     ) |
28188       sed "s/^/$as_me: WARNING:     /" >&2
28189     ;;
28190 esac
28191 echo "$as_me:$LINENO: checking for $ac_header" >&5
28192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28194   echo $ECHO_N "(cached) $ECHO_C" >&6
28195 else
28196   eval "$as_ac_Header=\$ac_header_preproc"
28197 fi
28198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28200
28201 fi
28202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28203   cat >>confdefs.h <<_ACEOF
28204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28205 _ACEOF
28206
28207 fi
28208
28209 done
28210
28211
28212         if test $ac_cv_header_krb5_h = yes ; then
28213
28214 for ac_header in heim_err.h
28215 do
28216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28218   echo "$as_me:$LINENO: checking for $ac_header" >&5
28219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28221   echo $ECHO_N "(cached) $ECHO_C" >&6
28222 fi
28223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28225 else
28226   # Is the header compilable?
28227 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28229 cat >conftest.$ac_ext <<_ACEOF
28230 /* confdefs.h.  */
28231 _ACEOF
28232 cat confdefs.h >>conftest.$ac_ext
28233 cat >>conftest.$ac_ext <<_ACEOF
28234 /* end confdefs.h.  */
28235 $ac_includes_default
28236 #include <$ac_header>
28237 _ACEOF
28238 rm -f conftest.$ac_objext
28239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28240   (eval $ac_compile) 2>conftest.er1
28241   ac_status=$?
28242   grep -v '^ *+' conftest.er1 >conftest.err
28243   rm -f conftest.er1
28244   cat conftest.err >&5
28245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246   (exit $ac_status); } &&
28247          { ac_try='test -z "$ac_c_werror_flag"
28248                          || test ! -s conftest.err'
28249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28250   (eval $ac_try) 2>&5
28251   ac_status=$?
28252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28253   (exit $ac_status); }; } &&
28254          { ac_try='test -s conftest.$ac_objext'
28255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28256   (eval $ac_try) 2>&5
28257   ac_status=$?
28258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28259   (exit $ac_status); }; }; then
28260   ac_header_compiler=yes
28261 else
28262   echo "$as_me: failed program was:" >&5
28263 sed 's/^/| /' conftest.$ac_ext >&5
28264
28265 ac_header_compiler=no
28266 fi
28267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28268 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28269 echo "${ECHO_T}$ac_header_compiler" >&6
28270
28271 # Is the header present?
28272 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28273 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28274 cat >conftest.$ac_ext <<_ACEOF
28275 /* confdefs.h.  */
28276 _ACEOF
28277 cat confdefs.h >>conftest.$ac_ext
28278 cat >>conftest.$ac_ext <<_ACEOF
28279 /* end confdefs.h.  */
28280 #include <$ac_header>
28281 _ACEOF
28282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28283   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28284   ac_status=$?
28285   grep -v '^ *+' conftest.er1 >conftest.err
28286   rm -f conftest.er1
28287   cat conftest.err >&5
28288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289   (exit $ac_status); } >/dev/null; then
28290   if test -s conftest.err; then
28291     ac_cpp_err=$ac_c_preproc_warn_flag
28292     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28293   else
28294     ac_cpp_err=
28295   fi
28296 else
28297   ac_cpp_err=yes
28298 fi
28299 if test -z "$ac_cpp_err"; then
28300   ac_header_preproc=yes
28301 else
28302   echo "$as_me: failed program was:" >&5
28303 sed 's/^/| /' conftest.$ac_ext >&5
28304
28305   ac_header_preproc=no
28306 fi
28307 rm -f conftest.err conftest.$ac_ext
28308 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28309 echo "${ECHO_T}$ac_header_preproc" >&6
28310
28311 # So?  What about this header?
28312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28313   yes:no: )
28314     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28316     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28318     ac_header_preproc=yes
28319     ;;
28320   no:yes:* )
28321     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28323     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28324 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28325     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28327     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28328 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28329     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28331     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28333     (
28334       cat <<\_ASBOX
28335 ## ------------------------------------------ ##
28336 ## Report this to the AC_PACKAGE_NAME lists.  ##
28337 ## ------------------------------------------ ##
28338 _ASBOX
28339     ) |
28340       sed "s/^/$as_me: WARNING:     /" >&2
28341     ;;
28342 esac
28343 echo "$as_me:$LINENO: checking for $ac_header" >&5
28344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28346   echo $ECHO_N "(cached) $ECHO_C" >&6
28347 else
28348   eval "$as_ac_Header=\$ac_header_preproc"
28349 fi
28350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28352
28353 fi
28354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28355   cat >>confdefs.h <<_ACEOF
28356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28357 _ACEOF
28358
28359 fi
28360
28361 done
28362
28363                 if test $ac_cv_header_heim_err_h = yes ; then
28364                         krb5_impl=heimdal
28365                 else
28366                         krb5_impl=mit
28367                 fi
28368
28369                 if test $krb5_impl = mit; then
28370                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28371 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28372 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28373   echo $ECHO_N "(cached) $ECHO_C" >&6
28374 else
28375   ac_check_lib_save_LIBS=$LIBS
28376 LIBS="-lk5crypto  $LIBS"
28377 cat >conftest.$ac_ext <<_ACEOF
28378 /* confdefs.h.  */
28379 _ACEOF
28380 cat confdefs.h >>conftest.$ac_ext
28381 cat >>conftest.$ac_ext <<_ACEOF
28382 /* end confdefs.h.  */
28383
28384
28385 int
28386 main ()
28387 {
28388 main ();
28389   ;
28390   return 0;
28391 }
28392 _ACEOF
28393 rm -f conftest.$ac_objext conftest$ac_exeext
28394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28395   (eval $ac_link) 2>conftest.er1
28396   ac_status=$?
28397   grep -v '^ *+' conftest.er1 >conftest.err
28398   rm -f conftest.er1
28399   cat conftest.err >&5
28400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401   (exit $ac_status); } &&
28402          { ac_try='test -z "$ac_c_werror_flag"
28403                          || test ! -s conftest.err'
28404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28405   (eval $ac_try) 2>&5
28406   ac_status=$?
28407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408   (exit $ac_status); }; } &&
28409          { ac_try='test -s conftest$ac_exeext'
28410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28411   (eval $ac_try) 2>&5
28412   ac_status=$?
28413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414   (exit $ac_status); }; }; then
28415   ac_cv_lib_k5crypto_main=yes
28416 else
28417   echo "$as_me: failed program was:" >&5
28418 sed 's/^/| /' conftest.$ac_ext >&5
28419
28420 ac_cv_lib_k5crypto_main=no
28421 fi
28422 rm -f conftest.err conftest.$ac_objext \
28423       conftest$ac_exeext conftest.$ac_ext
28424 LIBS=$ac_check_lib_save_LIBS
28425 fi
28426 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28427 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28428 if test $ac_cv_lib_k5crypto_main = yes; then
28429   krb5crypto=k5crypto
28430 else
28431   krb5crypto=crypto
28432 fi
28433
28434
28435                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28436 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28437 if test "${ac_cv_lib_krb5_main+set}" = set; then
28438   echo $ECHO_N "(cached) $ECHO_C" >&6
28439 else
28440   ac_check_lib_save_LIBS=$LIBS
28441 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28442 cat >conftest.$ac_ext <<_ACEOF
28443 /* confdefs.h.  */
28444 _ACEOF
28445 cat confdefs.h >>conftest.$ac_ext
28446 cat >>conftest.$ac_ext <<_ACEOF
28447 /* end confdefs.h.  */
28448
28449
28450 int
28451 main ()
28452 {
28453 main ();
28454   ;
28455   return 0;
28456 }
28457 _ACEOF
28458 rm -f conftest.$ac_objext conftest$ac_exeext
28459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28460   (eval $ac_link) 2>conftest.er1
28461   ac_status=$?
28462   grep -v '^ *+' conftest.er1 >conftest.err
28463   rm -f conftest.er1
28464   cat conftest.err >&5
28465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466   (exit $ac_status); } &&
28467          { ac_try='test -z "$ac_c_werror_flag"
28468                          || test ! -s conftest.err'
28469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28470   (eval $ac_try) 2>&5
28471   ac_status=$?
28472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473   (exit $ac_status); }; } &&
28474          { ac_try='test -s conftest$ac_exeext'
28475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28476   (eval $ac_try) 2>&5
28477   ac_status=$?
28478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479   (exit $ac_status); }; }; then
28480   ac_cv_lib_krb5_main=yes
28481 else
28482   echo "$as_me: failed program was:" >&5
28483 sed 's/^/| /' conftest.$ac_ext >&5
28484
28485 ac_cv_lib_krb5_main=no
28486 fi
28487 rm -f conftest.err conftest.$ac_objext \
28488       conftest$ac_exeext conftest.$ac_ext
28489 LIBS=$ac_check_lib_save_LIBS
28490 fi
28491 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28492 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28493 if test $ac_cv_lib_krb5_main = yes; then
28494   have_krb5=yes
28495                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28496 else
28497   have_krb5=no
28498 fi
28499
28500
28501                 elif test $krb5_impl = heimdal; then
28502                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
28503 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28504 if test "${ac_cv_lib_des_main+set}" = set; then
28505   echo $ECHO_N "(cached) $ECHO_C" >&6
28506 else
28507   ac_check_lib_save_LIBS=$LIBS
28508 LIBS="-ldes  $LIBS"
28509 cat >conftest.$ac_ext <<_ACEOF
28510 /* confdefs.h.  */
28511 _ACEOF
28512 cat confdefs.h >>conftest.$ac_ext
28513 cat >>conftest.$ac_ext <<_ACEOF
28514 /* end confdefs.h.  */
28515
28516
28517 int
28518 main ()
28519 {
28520 main ();
28521   ;
28522   return 0;
28523 }
28524 _ACEOF
28525 rm -f conftest.$ac_objext conftest$ac_exeext
28526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28527   (eval $ac_link) 2>conftest.er1
28528   ac_status=$?
28529   grep -v '^ *+' conftest.er1 >conftest.err
28530   rm -f conftest.er1
28531   cat conftest.err >&5
28532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533   (exit $ac_status); } &&
28534          { ac_try='test -z "$ac_c_werror_flag"
28535                          || test ! -s conftest.err'
28536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28537   (eval $ac_try) 2>&5
28538   ac_status=$?
28539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540   (exit $ac_status); }; } &&
28541          { ac_try='test -s conftest$ac_exeext'
28542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28543   (eval $ac_try) 2>&5
28544   ac_status=$?
28545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546   (exit $ac_status); }; }; then
28547   ac_cv_lib_des_main=yes
28548 else
28549   echo "$as_me: failed program was:" >&5
28550 sed 's/^/| /' conftest.$ac_ext >&5
28551
28552 ac_cv_lib_des_main=no
28553 fi
28554 rm -f conftest.err conftest.$ac_objext \
28555       conftest$ac_exeext conftest.$ac_ext
28556 LIBS=$ac_check_lib_save_LIBS
28557 fi
28558 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28559 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28560 if test $ac_cv_lib_des_main = yes; then
28561   krb5crypto=des
28562 else
28563   krb5crypto=crypto
28564 fi
28565
28566
28567                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28568 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28569 if test "${ac_cv_lib_krb5_main+set}" = set; then
28570   echo $ECHO_N "(cached) $ECHO_C" >&6
28571 else
28572   ac_check_lib_save_LIBS=$LIBS
28573 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28574 cat >conftest.$ac_ext <<_ACEOF
28575 /* confdefs.h.  */
28576 _ACEOF
28577 cat confdefs.h >>conftest.$ac_ext
28578 cat >>conftest.$ac_ext <<_ACEOF
28579 /* end confdefs.h.  */
28580
28581
28582 int
28583 main ()
28584 {
28585 main ();
28586   ;
28587   return 0;
28588 }
28589 _ACEOF
28590 rm -f conftest.$ac_objext conftest$ac_exeext
28591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28592   (eval $ac_link) 2>conftest.er1
28593   ac_status=$?
28594   grep -v '^ *+' conftest.er1 >conftest.err
28595   rm -f conftest.er1
28596   cat conftest.err >&5
28597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598   (exit $ac_status); } &&
28599          { ac_try='test -z "$ac_c_werror_flag"
28600                          || test ! -s conftest.err'
28601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28602   (eval $ac_try) 2>&5
28603   ac_status=$?
28604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605   (exit $ac_status); }; } &&
28606          { ac_try='test -s conftest$ac_exeext'
28607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28608   (eval $ac_try) 2>&5
28609   ac_status=$?
28610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611   (exit $ac_status); }; }; then
28612   ac_cv_lib_krb5_main=yes
28613 else
28614   echo "$as_me: failed program was:" >&5
28615 sed 's/^/| /' conftest.$ac_ext >&5
28616
28617 ac_cv_lib_krb5_main=no
28618 fi
28619 rm -f conftest.err conftest.$ac_objext \
28620       conftest$ac_exeext conftest.$ac_ext
28621 LIBS=$ac_check_lib_save_LIBS
28622 fi
28623 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28624 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28625 if test $ac_cv_lib_krb5_main = yes; then
28626   have_krb5=yes
28627                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28628 else
28629   have_krb5=no
28630 fi
28631
28632
28633
28634 cat >>confdefs.h <<\_ACEOF
28635 #define HAVE_HEIMDAL_KERBEROS 1
28636 _ACEOF
28637
28638
28639                 else
28640                         have_krb5=no
28641                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28642 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28643                 fi
28644
28645                 if test $have_krb5 = yes ; then
28646                         ol_link_krb5=yes
28647
28648
28649 cat >>confdefs.h <<\_ACEOF
28650 #define HAVE_KRB5 1
28651 _ACEOF
28652
28653
28654                         if test $ol_with_kerberos = k5only ; then
28655                                 ol_with_kerberos=found
28656                         fi
28657
28658                 elif test $ol_with_kerberos != auto ; then
28659                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28660 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28661    { (exit 1); exit 1; }; }
28662                 fi
28663
28664         fi
28665 fi
28666
28667 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28668         $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28669
28670
28671
28672 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28673 do
28674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28676   echo "$as_me:$LINENO: checking for $ac_header" >&5
28677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28679   echo $ECHO_N "(cached) $ECHO_C" >&6
28680 fi
28681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28683 else
28684   # Is the header compilable?
28685 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28686 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28687 cat >conftest.$ac_ext <<_ACEOF
28688 /* confdefs.h.  */
28689 _ACEOF
28690 cat confdefs.h >>conftest.$ac_ext
28691 cat >>conftest.$ac_ext <<_ACEOF
28692 /* end confdefs.h.  */
28693 $ac_includes_default
28694 #include <$ac_header>
28695 _ACEOF
28696 rm -f conftest.$ac_objext
28697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28698   (eval $ac_compile) 2>conftest.er1
28699   ac_status=$?
28700   grep -v '^ *+' conftest.er1 >conftest.err
28701   rm -f conftest.er1
28702   cat conftest.err >&5
28703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704   (exit $ac_status); } &&
28705          { ac_try='test -z "$ac_c_werror_flag"
28706                          || test ! -s conftest.err'
28707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28708   (eval $ac_try) 2>&5
28709   ac_status=$?
28710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711   (exit $ac_status); }; } &&
28712          { ac_try='test -s conftest.$ac_objext'
28713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28714   (eval $ac_try) 2>&5
28715   ac_status=$?
28716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717   (exit $ac_status); }; }; then
28718   ac_header_compiler=yes
28719 else
28720   echo "$as_me: failed program was:" >&5
28721 sed 's/^/| /' conftest.$ac_ext >&5
28722
28723 ac_header_compiler=no
28724 fi
28725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28726 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28727 echo "${ECHO_T}$ac_header_compiler" >&6
28728
28729 # Is the header present?
28730 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28732 cat >conftest.$ac_ext <<_ACEOF
28733 /* confdefs.h.  */
28734 _ACEOF
28735 cat confdefs.h >>conftest.$ac_ext
28736 cat >>conftest.$ac_ext <<_ACEOF
28737 /* end confdefs.h.  */
28738 #include <$ac_header>
28739 _ACEOF
28740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28741   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28742   ac_status=$?
28743   grep -v '^ *+' conftest.er1 >conftest.err
28744   rm -f conftest.er1
28745   cat conftest.err >&5
28746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747   (exit $ac_status); } >/dev/null; then
28748   if test -s conftest.err; then
28749     ac_cpp_err=$ac_c_preproc_warn_flag
28750     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28751   else
28752     ac_cpp_err=
28753   fi
28754 else
28755   ac_cpp_err=yes
28756 fi
28757 if test -z "$ac_cpp_err"; then
28758   ac_header_preproc=yes
28759 else
28760   echo "$as_me: failed program was:" >&5
28761 sed 's/^/| /' conftest.$ac_ext >&5
28762
28763   ac_header_preproc=no
28764 fi
28765 rm -f conftest.err conftest.$ac_ext
28766 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28767 echo "${ECHO_T}$ac_header_preproc" >&6
28768
28769 # So?  What about this header?
28770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28771   yes:no: )
28772     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28774     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28776     ac_header_preproc=yes
28777     ;;
28778   no:yes:* )
28779     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28781     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28782 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28783     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28785     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28786 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28789     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28791     (
28792       cat <<\_ASBOX
28793 ## ------------------------------------------ ##
28794 ## Report this to the AC_PACKAGE_NAME lists.  ##
28795 ## ------------------------------------------ ##
28796 _ASBOX
28797     ) |
28798       sed "s/^/$as_me: WARNING:     /" >&2
28799     ;;
28800 esac
28801 echo "$as_me:$LINENO: checking for $ac_header" >&5
28802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28804   echo $ECHO_N "(cached) $ECHO_C" >&6
28805 else
28806   eval "$as_ac_Header=\$ac_header_preproc"
28807 fi
28808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28810
28811 fi
28812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28813   cat >>confdefs.h <<_ACEOF
28814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28815 _ACEOF
28816
28817 fi
28818
28819 done
28820
28821
28822         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28823                 if test $krb5_impl = mit; then
28824                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28825 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28826 if test "${ac_cv_lib_krb4_main+set}" = set; then
28827   echo $ECHO_N "(cached) $ECHO_C" >&6
28828 else
28829   ac_check_lib_save_LIBS=$LIBS
28830 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28831 cat >conftest.$ac_ext <<_ACEOF
28832 /* confdefs.h.  */
28833 _ACEOF
28834 cat confdefs.h >>conftest.$ac_ext
28835 cat >>conftest.$ac_ext <<_ACEOF
28836 /* end confdefs.h.  */
28837
28838
28839 int
28840 main ()
28841 {
28842 main ();
28843   ;
28844   return 0;
28845 }
28846 _ACEOF
28847 rm -f conftest.$ac_objext conftest$ac_exeext
28848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28849   (eval $ac_link) 2>conftest.er1
28850   ac_status=$?
28851   grep -v '^ *+' conftest.er1 >conftest.err
28852   rm -f conftest.er1
28853   cat conftest.err >&5
28854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855   (exit $ac_status); } &&
28856          { ac_try='test -z "$ac_c_werror_flag"
28857                          || test ! -s conftest.err'
28858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28859   (eval $ac_try) 2>&5
28860   ac_status=$?
28861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862   (exit $ac_status); }; } &&
28863          { ac_try='test -s conftest$ac_exeext'
28864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28865   (eval $ac_try) 2>&5
28866   ac_status=$?
28867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868   (exit $ac_status); }; }; then
28869   ac_cv_lib_krb4_main=yes
28870 else
28871   echo "$as_me: failed program was:" >&5
28872 sed 's/^/| /' conftest.$ac_ext >&5
28873
28874 ac_cv_lib_krb4_main=no
28875 fi
28876 rm -f conftest.err conftest.$ac_objext \
28877       conftest$ac_exeext conftest.$ac_ext
28878 LIBS=$ac_check_lib_save_LIBS
28879 fi
28880 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28881 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28882 if test $ac_cv_lib_krb4_main = yes; then
28883   have_k425=yes
28884                                 KRB4_LIBS="-lkrb4 -ldes425"
28885 else
28886   have_k425=no
28887 fi
28888
28889
28890                 elif test $krb5_impl = heimdal; then
28891                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28892 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28893 if test "${ac_cv_lib_krb4_main+set}" = set; then
28894   echo $ECHO_N "(cached) $ECHO_C" >&6
28895 else
28896   ac_check_lib_save_LIBS=$LIBS
28897 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28898 cat >conftest.$ac_ext <<_ACEOF
28899 /* confdefs.h.  */
28900 _ACEOF
28901 cat confdefs.h >>conftest.$ac_ext
28902 cat >>conftest.$ac_ext <<_ACEOF
28903 /* end confdefs.h.  */
28904
28905
28906 int
28907 main ()
28908 {
28909 main ();
28910   ;
28911   return 0;
28912 }
28913 _ACEOF
28914 rm -f conftest.$ac_objext conftest$ac_exeext
28915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28916   (eval $ac_link) 2>conftest.er1
28917   ac_status=$?
28918   grep -v '^ *+' conftest.er1 >conftest.err
28919   rm -f conftest.er1
28920   cat conftest.err >&5
28921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922   (exit $ac_status); } &&
28923          { ac_try='test -z "$ac_c_werror_flag"
28924                          || test ! -s conftest.err'
28925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28926   (eval $ac_try) 2>&5
28927   ac_status=$?
28928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28929   (exit $ac_status); }; } &&
28930          { ac_try='test -s conftest$ac_exeext'
28931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28932   (eval $ac_try) 2>&5
28933   ac_status=$?
28934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935   (exit $ac_status); }; }; then
28936   ac_cv_lib_krb4_main=yes
28937 else
28938   echo "$as_me: failed program was:" >&5
28939 sed 's/^/| /' conftest.$ac_ext >&5
28940
28941 ac_cv_lib_krb4_main=no
28942 fi
28943 rm -f conftest.err conftest.$ac_objext \
28944       conftest$ac_exeext conftest.$ac_ext
28945 LIBS=$ac_check_lib_save_LIBS
28946 fi
28947 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28948 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28949 if test $ac_cv_lib_krb4_main = yes; then
28950   have_k425=yes
28951                                 KRB4_LIBS="-lkrb4"
28952 else
28953   have_k425=no
28954 fi
28955
28956
28957                 else
28958                         have_425=no
28959                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
28960 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
28961                 fi
28962
28963                 if test $have_k425 = yes ; then
28964                         ol_with_kerberos=found
28965                         ol_link_krb4=yes
28966
28967
28968 cat >>confdefs.h <<\_ACEOF
28969 #define HAVE_KRB425 1
28970 _ACEOF
28971
28972
28973 cat >>confdefs.h <<\_ACEOF
28974 #define HAVE_KRB4 1
28975 _ACEOF
28976
28977
28978                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
28979 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
28980 if test "${ol_cv_var_des_debug+set}" = set; then
28981   echo $ECHO_N "(cached) $ECHO_C" >&6
28982 else
28983
28984                                                                 save_LIBS="$LIBS"
28985                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
28986                                 cat >conftest.$ac_ext <<_ACEOF
28987 /* confdefs.h.  */
28988 _ACEOF
28989 cat confdefs.h >>conftest.$ac_ext
28990 cat >>conftest.$ac_ext <<_ACEOF
28991 /* end confdefs.h.  */
28992
28993 #include <kerberosIV/krb.h>
28994 #include <kerberosIV/des.h>
28995 extern int des_debug;
28996
28997 int
28998 main ()
28999 {
29000
29001 des_debug = 1;
29002
29003   ;
29004   return 0;
29005 }
29006 _ACEOF
29007 rm -f conftest.$ac_objext conftest$ac_exeext
29008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29009   (eval $ac_link) 2>conftest.er1
29010   ac_status=$?
29011   grep -v '^ *+' conftest.er1 >conftest.err
29012   rm -f conftest.er1
29013   cat conftest.err >&5
29014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29015   (exit $ac_status); } &&
29016          { ac_try='test -z "$ac_c_werror_flag"
29017                          || test ! -s conftest.err'
29018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29019   (eval $ac_try) 2>&5
29020   ac_status=$?
29021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022   (exit $ac_status); }; } &&
29023          { ac_try='test -s conftest$ac_exeext'
29024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29025   (eval $ac_try) 2>&5
29026   ac_status=$?
29027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028   (exit $ac_status); }; }; then
29029   ol_cv_var_des_debug=yes
29030 else
29031   echo "$as_me: failed program was:" >&5
29032 sed 's/^/| /' conftest.$ac_ext >&5
29033
29034 ol_cv_var_des_debug=no
29035 fi
29036 rm -f conftest.err conftest.$ac_objext \
29037       conftest$ac_exeext conftest.$ac_ext
29038                                                                 LIBS="$save_LIBS"
29039
29040 fi
29041 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
29042 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
29043
29044                         if test $ol_cv_var_des_debug = yes ; then
29045
29046 cat >>confdefs.h <<\_ACEOF
29047 #define HAVE_DES_DEBUG 1
29048 _ACEOF
29049
29050                         fi
29051
29052                         LIBS="$save_LIBS"
29053                 fi
29054         fi
29055 fi
29056
29057 if test $ol_link_krb5 = yes ; then
29058         ol_with_kerberos=found
29059 fi
29060
29061 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
29062         -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
29063
29064
29065
29066
29067 for ac_header in krb.h des.h krb-archaeology.h
29068 do
29069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29071   echo "$as_me:$LINENO: checking for $ac_header" >&5
29072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29074   echo $ECHO_N "(cached) $ECHO_C" >&6
29075 fi
29076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29078 else
29079   # Is the header compilable?
29080 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29082 cat >conftest.$ac_ext <<_ACEOF
29083 /* confdefs.h.  */
29084 _ACEOF
29085 cat confdefs.h >>conftest.$ac_ext
29086 cat >>conftest.$ac_ext <<_ACEOF
29087 /* end confdefs.h.  */
29088 $ac_includes_default
29089 #include <$ac_header>
29090 _ACEOF
29091 rm -f conftest.$ac_objext
29092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29093   (eval $ac_compile) 2>conftest.er1
29094   ac_status=$?
29095   grep -v '^ *+' conftest.er1 >conftest.err
29096   rm -f conftest.er1
29097   cat conftest.err >&5
29098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099   (exit $ac_status); } &&
29100          { ac_try='test -z "$ac_c_werror_flag"
29101                          || test ! -s conftest.err'
29102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29103   (eval $ac_try) 2>&5
29104   ac_status=$?
29105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106   (exit $ac_status); }; } &&
29107          { ac_try='test -s conftest.$ac_objext'
29108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29109   (eval $ac_try) 2>&5
29110   ac_status=$?
29111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112   (exit $ac_status); }; }; then
29113   ac_header_compiler=yes
29114 else
29115   echo "$as_me: failed program was:" >&5
29116 sed 's/^/| /' conftest.$ac_ext >&5
29117
29118 ac_header_compiler=no
29119 fi
29120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29122 echo "${ECHO_T}$ac_header_compiler" >&6
29123
29124 # Is the header present?
29125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29127 cat >conftest.$ac_ext <<_ACEOF
29128 /* confdefs.h.  */
29129 _ACEOF
29130 cat confdefs.h >>conftest.$ac_ext
29131 cat >>conftest.$ac_ext <<_ACEOF
29132 /* end confdefs.h.  */
29133 #include <$ac_header>
29134 _ACEOF
29135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29136   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29137   ac_status=$?
29138   grep -v '^ *+' conftest.er1 >conftest.err
29139   rm -f conftest.er1
29140   cat conftest.err >&5
29141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29142   (exit $ac_status); } >/dev/null; then
29143   if test -s conftest.err; then
29144     ac_cpp_err=$ac_c_preproc_warn_flag
29145     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29146   else
29147     ac_cpp_err=
29148   fi
29149 else
29150   ac_cpp_err=yes
29151 fi
29152 if test -z "$ac_cpp_err"; then
29153   ac_header_preproc=yes
29154 else
29155   echo "$as_me: failed program was:" >&5
29156 sed 's/^/| /' conftest.$ac_ext >&5
29157
29158   ac_header_preproc=no
29159 fi
29160 rm -f conftest.err conftest.$ac_ext
29161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29162 echo "${ECHO_T}$ac_header_preproc" >&6
29163
29164 # So?  What about this header?
29165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29166   yes:no: )
29167     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29169     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29171     ac_header_preproc=yes
29172     ;;
29173   no:yes:* )
29174     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29176     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29177 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29178     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29180     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29181 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29184     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29186     (
29187       cat <<\_ASBOX
29188 ## ------------------------------------------ ##
29189 ## Report this to the AC_PACKAGE_NAME lists.  ##
29190 ## ------------------------------------------ ##
29191 _ASBOX
29192     ) |
29193       sed "s/^/$as_me: WARNING:     /" >&2
29194     ;;
29195 esac
29196 echo "$as_me:$LINENO: checking for $ac_header" >&5
29197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29199   echo $ECHO_N "(cached) $ECHO_C" >&6
29200 else
29201   eval "$as_ac_Header=\$ac_header_preproc"
29202 fi
29203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29205
29206 fi
29207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29208   cat >>confdefs.h <<_ACEOF
29209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29210 _ACEOF
29211
29212 fi
29213
29214 done
29215
29216
29217         if test $ac_cv_header_krb_h = yes ; then
29218                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29219 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29220 if test "${ac_cv_lib_krb_main+set}" = set; then
29221   echo $ECHO_N "(cached) $ECHO_C" >&6
29222 else
29223   ac_check_lib_save_LIBS=$LIBS
29224 LIBS="-lkrb -ldes $LIBS"
29225 cat >conftest.$ac_ext <<_ACEOF
29226 /* confdefs.h.  */
29227 _ACEOF
29228 cat confdefs.h >>conftest.$ac_ext
29229 cat >>conftest.$ac_ext <<_ACEOF
29230 /* end confdefs.h.  */
29231
29232
29233 int
29234 main ()
29235 {
29236 main ();
29237   ;
29238   return 0;
29239 }
29240 _ACEOF
29241 rm -f conftest.$ac_objext conftest$ac_exeext
29242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29243   (eval $ac_link) 2>conftest.er1
29244   ac_status=$?
29245   grep -v '^ *+' conftest.er1 >conftest.err
29246   rm -f conftest.er1
29247   cat conftest.err >&5
29248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249   (exit $ac_status); } &&
29250          { ac_try='test -z "$ac_c_werror_flag"
29251                          || test ! -s conftest.err'
29252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29253   (eval $ac_try) 2>&5
29254   ac_status=$?
29255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256   (exit $ac_status); }; } &&
29257          { ac_try='test -s conftest$ac_exeext'
29258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29259   (eval $ac_try) 2>&5
29260   ac_status=$?
29261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262   (exit $ac_status); }; }; then
29263   ac_cv_lib_krb_main=yes
29264 else
29265   echo "$as_me: failed program was:" >&5
29266 sed 's/^/| /' conftest.$ac_ext >&5
29267
29268 ac_cv_lib_krb_main=no
29269 fi
29270 rm -f conftest.err conftest.$ac_objext \
29271       conftest$ac_exeext conftest.$ac_ext
29272 LIBS=$ac_check_lib_save_LIBS
29273 fi
29274 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29275 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29276 if test $ac_cv_lib_krb_main = yes; then
29277   have_k4=yes
29278 else
29279   have_k4=no
29280 fi
29281
29282
29283                 if test $have_k4 = yes ; then
29284                         ol_with_kerberos=found
29285                         ol_link_krb4=yes
29286
29287
29288 cat >>confdefs.h <<\_ACEOF
29289 #define HAVE_KRB4 1
29290 _ACEOF
29291
29292
29293                         KRB4_LIBS="-lkrb -ldes"
29294
29295                         if test $ac_cv_header_krb_archaeology_h = yes ; then
29296
29297 cat >>confdefs.h <<\_ACEOF
29298 #define HAVE_KTH_KERBEROS 1
29299 _ACEOF
29300
29301                         fi
29302                 fi
29303         fi
29304 fi
29305
29306 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29307         ol_link_kbind=yes
29308
29309 elif test $ol_enable_kbind = yes ; then
29310         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29311 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29312    { (exit 1); exit 1; }; }
29313 fi
29314
29315 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29316
29317 cat >>confdefs.h <<\_ACEOF
29318 #define HAVE_KERBEROS 1
29319 _ACEOF
29320
29321
29322 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29323         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29324 echo "$as_me: error: Kerberos detection failed" >&2;}
29325    { (exit 1); exit 1; }; }
29326 fi
29327
29328
29329 ol_link_tls=no
29330 if test $ol_with_tls != no ; then
29331
29332
29333 for ac_header in openssl/ssl.h ssl.h
29334 do
29335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29337   echo "$as_me:$LINENO: checking for $ac_header" >&5
29338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29340   echo $ECHO_N "(cached) $ECHO_C" >&6
29341 fi
29342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29344 else
29345   # Is the header compilable?
29346 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29348 cat >conftest.$ac_ext <<_ACEOF
29349 /* confdefs.h.  */
29350 _ACEOF
29351 cat confdefs.h >>conftest.$ac_ext
29352 cat >>conftest.$ac_ext <<_ACEOF
29353 /* end confdefs.h.  */
29354 $ac_includes_default
29355 #include <$ac_header>
29356 _ACEOF
29357 rm -f conftest.$ac_objext
29358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29359   (eval $ac_compile) 2>conftest.er1
29360   ac_status=$?
29361   grep -v '^ *+' conftest.er1 >conftest.err
29362   rm -f conftest.er1
29363   cat conftest.err >&5
29364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29365   (exit $ac_status); } &&
29366          { ac_try='test -z "$ac_c_werror_flag"
29367                          || test ! -s conftest.err'
29368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29369   (eval $ac_try) 2>&5
29370   ac_status=$?
29371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372   (exit $ac_status); }; } &&
29373          { ac_try='test -s conftest.$ac_objext'
29374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29375   (eval $ac_try) 2>&5
29376   ac_status=$?
29377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378   (exit $ac_status); }; }; then
29379   ac_header_compiler=yes
29380 else
29381   echo "$as_me: failed program was:" >&5
29382 sed 's/^/| /' conftest.$ac_ext >&5
29383
29384 ac_header_compiler=no
29385 fi
29386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29388 echo "${ECHO_T}$ac_header_compiler" >&6
29389
29390 # Is the header present?
29391 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29393 cat >conftest.$ac_ext <<_ACEOF
29394 /* confdefs.h.  */
29395 _ACEOF
29396 cat confdefs.h >>conftest.$ac_ext
29397 cat >>conftest.$ac_ext <<_ACEOF
29398 /* end confdefs.h.  */
29399 #include <$ac_header>
29400 _ACEOF
29401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29402   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29403   ac_status=$?
29404   grep -v '^ *+' conftest.er1 >conftest.err
29405   rm -f conftest.er1
29406   cat conftest.err >&5
29407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408   (exit $ac_status); } >/dev/null; then
29409   if test -s conftest.err; then
29410     ac_cpp_err=$ac_c_preproc_warn_flag
29411     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29412   else
29413     ac_cpp_err=
29414   fi
29415 else
29416   ac_cpp_err=yes
29417 fi
29418 if test -z "$ac_cpp_err"; then
29419   ac_header_preproc=yes
29420 else
29421   echo "$as_me: failed program was:" >&5
29422 sed 's/^/| /' conftest.$ac_ext >&5
29423
29424   ac_header_preproc=no
29425 fi
29426 rm -f conftest.err conftest.$ac_ext
29427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29428 echo "${ECHO_T}$ac_header_preproc" >&6
29429
29430 # So?  What about this header?
29431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29432   yes:no: )
29433     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29435     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29437     ac_header_preproc=yes
29438     ;;
29439   no:yes:* )
29440     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29442     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29443 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29444     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29446     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29447 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29450     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29452     (
29453       cat <<\_ASBOX
29454 ## ------------------------------------------ ##
29455 ## Report this to the AC_PACKAGE_NAME lists.  ##
29456 ## ------------------------------------------ ##
29457 _ASBOX
29458     ) |
29459       sed "s/^/$as_me: WARNING:     /" >&2
29460     ;;
29461 esac
29462 echo "$as_me:$LINENO: checking for $ac_header" >&5
29463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29465   echo $ECHO_N "(cached) $ECHO_C" >&6
29466 else
29467   eval "$as_ac_Header=\$ac_header_preproc"
29468 fi
29469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29471
29472 fi
29473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29474   cat >>confdefs.h <<_ACEOF
29475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29476 _ACEOF
29477
29478 fi
29479
29480 done
29481
29482
29483         if test $ac_cv_header_openssl_ssl_h = yes \
29484                 -o $ac_cv_header_ssl_h = yes ; then
29485                 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29486 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29487 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29488   echo $ECHO_N "(cached) $ECHO_C" >&6
29489 else
29490   ac_check_lib_save_LIBS=$LIBS
29491 LIBS="-lssl -lcrypto $LIBS"
29492 cat >conftest.$ac_ext <<_ACEOF
29493 /* confdefs.h.  */
29494 _ACEOF
29495 cat confdefs.h >>conftest.$ac_ext
29496 cat >>conftest.$ac_ext <<_ACEOF
29497 /* end confdefs.h.  */
29498
29499 /* Override any gcc2 internal prototype to avoid an error.  */
29500 #ifdef __cplusplus
29501 extern "C"
29502 #endif
29503 /* We use char because int might match the return type of a gcc2
29504    builtin and then its argument prototype would still apply.  */
29505 char SSLeay_add_ssl_algorithms ();
29506 int
29507 main ()
29508 {
29509 SSLeay_add_ssl_algorithms ();
29510   ;
29511   return 0;
29512 }
29513 _ACEOF
29514 rm -f conftest.$ac_objext conftest$ac_exeext
29515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29516   (eval $ac_link) 2>conftest.er1
29517   ac_status=$?
29518   grep -v '^ *+' conftest.er1 >conftest.err
29519   rm -f conftest.er1
29520   cat conftest.err >&5
29521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522   (exit $ac_status); } &&
29523          { ac_try='test -z "$ac_c_werror_flag"
29524                          || test ! -s conftest.err'
29525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29526   (eval $ac_try) 2>&5
29527   ac_status=$?
29528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529   (exit $ac_status); }; } &&
29530          { ac_try='test -s conftest$ac_exeext'
29531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29532   (eval $ac_try) 2>&5
29533   ac_status=$?
29534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535   (exit $ac_status); }; }; then
29536   ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29537 else
29538   echo "$as_me: failed program was:" >&5
29539 sed 's/^/| /' conftest.$ac_ext >&5
29540
29541 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29542 fi
29543 rm -f conftest.err conftest.$ac_objext \
29544       conftest$ac_exeext conftest.$ac_ext
29545 LIBS=$ac_check_lib_save_LIBS
29546 fi
29547 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29548 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29549 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29550   have_ssleay=yes
29551                         need_rsaref=no
29552 else
29553   have_ssleay=no
29554 fi
29555
29556
29557                 if test $have_ssleay = no ; then
29558                         echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29559 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29560 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29561   echo $ECHO_N "(cached) $ECHO_C" >&6
29562 else
29563   ac_check_lib_save_LIBS=$LIBS
29564 LIBS="-lssl -lcrypto $LIBS"
29565 cat >conftest.$ac_ext <<_ACEOF
29566 /* confdefs.h.  */
29567 _ACEOF
29568 cat confdefs.h >>conftest.$ac_ext
29569 cat >>conftest.$ac_ext <<_ACEOF
29570 /* end confdefs.h.  */
29571
29572 /* Override any gcc2 internal prototype to avoid an error.  */
29573 #ifdef __cplusplus
29574 extern "C"
29575 #endif
29576 /* We use char because int might match the return type of a gcc2
29577    builtin and then its argument prototype would still apply.  */
29578 char SSL_library_init ();
29579 int
29580 main ()
29581 {
29582 SSL_library_init ();
29583   ;
29584   return 0;
29585 }
29586 _ACEOF
29587 rm -f conftest.$ac_objext conftest$ac_exeext
29588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29589   (eval $ac_link) 2>conftest.er1
29590   ac_status=$?
29591   grep -v '^ *+' conftest.er1 >conftest.err
29592   rm -f conftest.er1
29593   cat conftest.err >&5
29594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595   (exit $ac_status); } &&
29596          { ac_try='test -z "$ac_c_werror_flag"
29597                          || test ! -s conftest.err'
29598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29599   (eval $ac_try) 2>&5
29600   ac_status=$?
29601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602   (exit $ac_status); }; } &&
29603          { ac_try='test -s conftest$ac_exeext'
29604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29605   (eval $ac_try) 2>&5
29606   ac_status=$?
29607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608   (exit $ac_status); }; }; then
29609   ac_cv_lib_ssl_SSL_library_init=yes
29610 else
29611   echo "$as_me: failed program was:" >&5
29612 sed 's/^/| /' conftest.$ac_ext >&5
29613
29614 ac_cv_lib_ssl_SSL_library_init=no
29615 fi
29616 rm -f conftest.err conftest.$ac_objext \
29617       conftest$ac_exeext conftest.$ac_ext
29618 LIBS=$ac_check_lib_save_LIBS
29619 fi
29620 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29621 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29622 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29623   have_ssleay=yes
29624                                 need_rsaref=no
29625 else
29626   have_ssleay=no
29627 fi
29628
29629                 fi
29630
29631                 if test $have_ssleay = no ; then
29632                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29633 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29634 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29635   echo $ECHO_N "(cached) $ECHO_C" >&6
29636 else
29637   ac_check_lib_save_LIBS=$LIBS
29638 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29639 cat >conftest.$ac_ext <<_ACEOF
29640 /* confdefs.h.  */
29641 _ACEOF
29642 cat confdefs.h >>conftest.$ac_ext
29643 cat >>conftest.$ac_ext <<_ACEOF
29644 /* end confdefs.h.  */
29645
29646 /* Override any gcc2 internal prototype to avoid an error.  */
29647 #ifdef __cplusplus
29648 extern "C"
29649 #endif
29650 /* We use char because int might match the return type of a gcc2
29651    builtin and then its argument prototype would still apply.  */
29652 char ssl3_accept ();
29653 int
29654 main ()
29655 {
29656 ssl3_accept ();
29657   ;
29658   return 0;
29659 }
29660 _ACEOF
29661 rm -f conftest.$ac_objext conftest$ac_exeext
29662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29663   (eval $ac_link) 2>conftest.er1
29664   ac_status=$?
29665   grep -v '^ *+' conftest.er1 >conftest.err
29666   rm -f conftest.er1
29667   cat conftest.err >&5
29668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669   (exit $ac_status); } &&
29670          { ac_try='test -z "$ac_c_werror_flag"
29671                          || test ! -s conftest.err'
29672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29673   (eval $ac_try) 2>&5
29674   ac_status=$?
29675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676   (exit $ac_status); }; } &&
29677          { ac_try='test -s conftest$ac_exeext'
29678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29679   (eval $ac_try) 2>&5
29680   ac_status=$?
29681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29682   (exit $ac_status); }; }; then
29683   ac_cv_lib_ssl_ssl3_accept=yes
29684 else
29685   echo "$as_me: failed program was:" >&5
29686 sed 's/^/| /' conftest.$ac_ext >&5
29687
29688 ac_cv_lib_ssl_ssl3_accept=no
29689 fi
29690 rm -f conftest.err conftest.$ac_objext \
29691       conftest$ac_exeext conftest.$ac_ext
29692 LIBS=$ac_check_lib_save_LIBS
29693 fi
29694 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29695 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29696 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29697   have_ssleay=yes
29698                                 need_rsaref=yes
29699 else
29700   have_ssleay=no
29701 fi
29702
29703                 fi
29704
29705                 if test $have_ssleay = yes ; then
29706                         ol_with_tls=found
29707                         ol_link_tls=yes
29708
29709
29710 cat >>confdefs.h <<\_ACEOF
29711 #define HAVE_SSLEAY 1
29712 _ACEOF
29713
29714
29715                         if test $need_rsaref = yes; then
29716
29717 cat >>confdefs.h <<\_ACEOF
29718 #define HAVE_RSAREF 1
29719 _ACEOF
29720
29721
29722                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29723                         else
29724                                 TLS_LIBS="-lssl -lcrypto"
29725                         fi
29726                 fi
29727                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29728 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29729 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29730   echo $ECHO_N "(cached) $ECHO_C" >&6
29731 else
29732
29733         cat >conftest.$ac_ext <<_ACEOF
29734 /* confdefs.h.  */
29735 _ACEOF
29736 cat confdefs.h >>conftest.$ac_ext
29737 cat >>conftest.$ac_ext <<_ACEOF
29738 /* end confdefs.h.  */
29739
29740 #ifdef HAVE_OPENSSL_SSL_H
29741 #include <openssl/ssl.h>
29742 #else
29743 #include <ssl.h>
29744 #endif
29745
29746 /* Require 0.9.7d+ */
29747 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29748         char *__ssl_compat = "0.9.7d";
29749 #endif
29750
29751 _ACEOF
29752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29753   $EGREP "__ssl_compat" >/dev/null 2>&1; then
29754   ol_cv_ssl_crl_compat=yes
29755 else
29756   ol_cv_ssl_crl_compat=no
29757 fi
29758 rm -f conftest*
29759
29760 fi
29761 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29762 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29763
29764                 if test $ol_cv_ssl_crl_compat = no ; then
29765                         ol_link_ssl=no
29766                 else
29767
29768 cat >>confdefs.h <<\_ACEOF
29769 #define HAVE_OPENSSL_CRL 1
29770 _ACEOF
29771
29772                 fi
29773         fi
29774
29775 else
29776         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29777 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29778 fi
29779
29780 WITH_TLS=no
29781 if test $ol_link_tls = yes ; then
29782
29783 cat >>confdefs.h <<\_ACEOF
29784 #define HAVE_TLS 1
29785 _ACEOF
29786
29787         WITH_TLS=yes
29788
29789 elif test $ol_with_tls = auto ; then
29790         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29791 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29792         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29793 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29794
29795 elif test $ol_with_tls != no ; then
29796         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29797 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29798    { (exit 1); exit 1; }; }
29799 fi
29800
29801 if test $ol_enable_lmpasswd != no; then
29802         if test $ol_link_tls != yes ; then
29803                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29804 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29805    { (exit 1); exit 1; }; }
29806         fi
29807
29808
29809 cat >>confdefs.h <<\_ACEOF
29810 #define SLAPD_LMHASH 1
29811 _ACEOF
29812
29813 fi
29814
29815 ol_link_threads=no
29816
29817 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29818         -o $ol_with_threads = nt ; then
29819
29820
29821         echo "$as_me:$LINENO: checking for _beginthread" >&5
29822 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29823 if test "${ac_cv_func__beginthread+set}" = set; then
29824   echo $ECHO_N "(cached) $ECHO_C" >&6
29825 else
29826   cat >conftest.$ac_ext <<_ACEOF
29827 /* confdefs.h.  */
29828 _ACEOF
29829 cat confdefs.h >>conftest.$ac_ext
29830 cat >>conftest.$ac_ext <<_ACEOF
29831 /* end confdefs.h.  */
29832 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29833    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29834 #define _beginthread innocuous__beginthread
29835
29836 /* System header to define __stub macros and hopefully few prototypes,
29837     which can conflict with char _beginthread (); below.
29838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29839     <limits.h> exists even on freestanding compilers.  */
29840
29841 #ifdef __STDC__
29842 # include <limits.h>
29843 #else
29844 # include <assert.h>
29845 #endif
29846
29847 #undef _beginthread
29848
29849 /* Override any gcc2 internal prototype to avoid an error.  */
29850 #ifdef __cplusplus
29851 extern "C"
29852 {
29853 #endif
29854 /* We use char because int might match the return type of a gcc2
29855    builtin and then its argument prototype would still apply.  */
29856 char _beginthread ();
29857 /* The GNU C library defines this for functions which it implements
29858     to always fail with ENOSYS.  Some functions are actually named
29859     something starting with __ and the normal name is an alias.  */
29860 #if defined (__stub__beginthread) || defined (__stub____beginthread)
29861 choke me
29862 #else
29863 char (*f) () = _beginthread;
29864 #endif
29865 #ifdef __cplusplus
29866 }
29867 #endif
29868
29869 int
29870 main ()
29871 {
29872 return f != _beginthread;
29873   ;
29874   return 0;
29875 }
29876 _ACEOF
29877 rm -f conftest.$ac_objext conftest$ac_exeext
29878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29879   (eval $ac_link) 2>conftest.er1
29880   ac_status=$?
29881   grep -v '^ *+' conftest.er1 >conftest.err
29882   rm -f conftest.er1
29883   cat conftest.err >&5
29884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885   (exit $ac_status); } &&
29886          { ac_try='test -z "$ac_c_werror_flag"
29887                          || test ! -s conftest.err'
29888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29889   (eval $ac_try) 2>&5
29890   ac_status=$?
29891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892   (exit $ac_status); }; } &&
29893          { ac_try='test -s conftest$ac_exeext'
29894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29895   (eval $ac_try) 2>&5
29896   ac_status=$?
29897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898   (exit $ac_status); }; }; then
29899   ac_cv_func__beginthread=yes
29900 else
29901   echo "$as_me: failed program was:" >&5
29902 sed 's/^/| /' conftest.$ac_ext >&5
29903
29904 ac_cv_func__beginthread=no
29905 fi
29906 rm -f conftest.err conftest.$ac_objext \
29907       conftest$ac_exeext conftest.$ac_ext
29908 fi
29909 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
29910 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
29911
29912
29913         if test $ac_cv_func__beginthread = yes ; then
29914
29915 cat >>confdefs.h <<\_ACEOF
29916 #define HAVE_NT_THREADS 1
29917 _ACEOF
29918
29919                 ol_cv_nt_threads=yes
29920         fi
29921
29922
29923         if test "$ol_cv_nt_threads" = yes ; then
29924                 ol_link_threads=nt
29925                 ol_with_threads=found
29926                 ol_with_yielding_select=yes
29927
29928
29929 cat >>confdefs.h <<\_ACEOF
29930 #define HAVE_NT_SERVICE_MANAGER 1
29931 _ACEOF
29932
29933
29934 cat >>confdefs.h <<\_ACEOF
29935 #define HAVE_NT_EVENT_LOG 1
29936 _ACEOF
29937
29938         fi
29939
29940         if test $ol_with_threads = nt ; then
29941                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
29942 echo "$as_me: error: could not locate NT Threads" >&2;}
29943    { (exit 1); exit 1; }; }
29944         fi
29945 fi
29946
29947 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29948         -o $ol_with_threads = posix ; then
29949
29950
29951 for ac_header in pthread.h
29952 do
29953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29955   echo "$as_me:$LINENO: checking for $ac_header" >&5
29956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29958   echo $ECHO_N "(cached) $ECHO_C" >&6
29959 fi
29960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29962 else
29963   # Is the header compilable?
29964 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
29973 #include <$ac_header>
29974 _ACEOF
29975 rm -f conftest.$ac_objext
29976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29977   (eval $ac_compile) 2>conftest.er1
29978   ac_status=$?
29979   grep -v '^ *+' conftest.er1 >conftest.err
29980   rm -f conftest.er1
29981   cat conftest.err >&5
29982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983   (exit $ac_status); } &&
29984          { ac_try='test -z "$ac_c_werror_flag"
29985                          || test ! -s conftest.err'
29986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29987   (eval $ac_try) 2>&5
29988   ac_status=$?
29989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29990   (exit $ac_status); }; } &&
29991          { ac_try='test -s conftest.$ac_objext'
29992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29993   (eval $ac_try) 2>&5
29994   ac_status=$?
29995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29996   (exit $ac_status); }; }; then
29997   ac_header_compiler=yes
29998 else
29999   echo "$as_me: failed program was:" >&5
30000 sed 's/^/| /' conftest.$ac_ext >&5
30001
30002 ac_header_compiler=no
30003 fi
30004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30006 echo "${ECHO_T}$ac_header_compiler" >&6
30007
30008 # Is the header present?
30009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30011 cat >conftest.$ac_ext <<_ACEOF
30012 /* confdefs.h.  */
30013 _ACEOF
30014 cat confdefs.h >>conftest.$ac_ext
30015 cat >>conftest.$ac_ext <<_ACEOF
30016 /* end confdefs.h.  */
30017 #include <$ac_header>
30018 _ACEOF
30019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30020   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30021   ac_status=$?
30022   grep -v '^ *+' conftest.er1 >conftest.err
30023   rm -f conftest.er1
30024   cat conftest.err >&5
30025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30026   (exit $ac_status); } >/dev/null; then
30027   if test -s conftest.err; then
30028     ac_cpp_err=$ac_c_preproc_warn_flag
30029     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30030   else
30031     ac_cpp_err=
30032   fi
30033 else
30034   ac_cpp_err=yes
30035 fi
30036 if test -z "$ac_cpp_err"; then
30037   ac_header_preproc=yes
30038 else
30039   echo "$as_me: failed program was:" >&5
30040 sed 's/^/| /' conftest.$ac_ext >&5
30041
30042   ac_header_preproc=no
30043 fi
30044 rm -f conftest.err conftest.$ac_ext
30045 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30046 echo "${ECHO_T}$ac_header_preproc" >&6
30047
30048 # So?  What about this header?
30049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30050   yes:no: )
30051     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30055     ac_header_preproc=yes
30056     ;;
30057   no:yes:* )
30058     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30060     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30061 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30062     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30064     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30065 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30068     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30070     (
30071       cat <<\_ASBOX
30072 ## ------------------------------------------ ##
30073 ## Report this to the AC_PACKAGE_NAME lists.  ##
30074 ## ------------------------------------------ ##
30075 _ASBOX
30076     ) |
30077       sed "s/^/$as_me: WARNING:     /" >&2
30078     ;;
30079 esac
30080 echo "$as_me:$LINENO: checking for $ac_header" >&5
30081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30083   echo $ECHO_N "(cached) $ECHO_C" >&6
30084 else
30085   eval "$as_ac_Header=\$ac_header_preproc"
30086 fi
30087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30089
30090 fi
30091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30092   cat >>confdefs.h <<_ACEOF
30093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30094 _ACEOF
30095
30096 fi
30097
30098 done
30099
30100
30101         if test $ac_cv_header_pthread_h = yes ; then
30102                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
30103 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
30104 if test "${ol_cv_pthread_version+set}" = set; then
30105   echo $ECHO_N "(cached) $ECHO_C" >&6
30106 else
30107
30108         cat >conftest.$ac_ext <<_ACEOF
30109 /* confdefs.h.  */
30110 _ACEOF
30111 cat confdefs.h >>conftest.$ac_ext
30112 cat >>conftest.$ac_ext <<_ACEOF
30113 /* end confdefs.h.  */
30114
30115 #               include <pthread.h>
30116
30117 int
30118 main ()
30119 {
30120
30121                 int i = PTHREAD_CREATE_JOINABLE;
30122
30123   ;
30124   return 0;
30125 }
30126 _ACEOF
30127 rm -f conftest.$ac_objext
30128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30129   (eval $ac_compile) 2>conftest.er1
30130   ac_status=$?
30131   grep -v '^ *+' conftest.er1 >conftest.err
30132   rm -f conftest.er1
30133   cat conftest.err >&5
30134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135   (exit $ac_status); } &&
30136          { ac_try='test -z "$ac_c_werror_flag"
30137                          || test ! -s conftest.err'
30138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30139   (eval $ac_try) 2>&5
30140   ac_status=$?
30141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142   (exit $ac_status); }; } &&
30143          { ac_try='test -s conftest.$ac_objext'
30144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30145   (eval $ac_try) 2>&5
30146   ac_status=$?
30147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30148   (exit $ac_status); }; }; then
30149
30150         cat >conftest.$ac_ext <<_ACEOF
30151 /* confdefs.h.  */
30152 _ACEOF
30153 cat confdefs.h >>conftest.$ac_ext
30154 cat >>conftest.$ac_ext <<_ACEOF
30155 /* end confdefs.h.  */
30156 #include <pthread.h>
30157
30158 _ACEOF
30159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30160   $EGREP "pthread_detach" >/dev/null 2>&1; then
30161   ol_cv_pthread_version=10
30162 else
30163   ol_cv_pthread_version=8
30164 fi
30165 rm -f conftest*
30166
30167 else
30168   echo "$as_me: failed program was:" >&5
30169 sed 's/^/| /' conftest.$ac_ext >&5
30170
30171
30172         cat >conftest.$ac_ext <<_ACEOF
30173 /* confdefs.h.  */
30174 _ACEOF
30175 cat confdefs.h >>conftest.$ac_ext
30176 cat >>conftest.$ac_ext <<_ACEOF
30177 /* end confdefs.h.  */
30178
30179 #               include <pthread.h>
30180 #               ifdef PTHREAD_CREATE_UNDETACHED
30181                 draft7
30182 #               endif
30183
30184 _ACEOF
30185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30186   $EGREP "draft7" >/dev/null 2>&1; then
30187   ol_cv_pthread_version=7
30188 else
30189
30190         cat >conftest.$ac_ext <<_ACEOF
30191 /* confdefs.h.  */
30192 _ACEOF
30193 cat confdefs.h >>conftest.$ac_ext
30194 cat >>conftest.$ac_ext <<_ACEOF
30195 /* end confdefs.h.  */
30196 #include <pthread.h>
30197
30198 _ACEOF
30199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30200   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30201   ol_cv_pthread_version=6
30202 else
30203
30204         cat >conftest.$ac_ext <<_ACEOF
30205 /* confdefs.h.  */
30206 _ACEOF
30207 cat confdefs.h >>conftest.$ac_ext
30208 cat >>conftest.$ac_ext <<_ACEOF
30209 /* end confdefs.h.  */
30210
30211 #               include <pthread.h>
30212 #ifdef          PTHREAD_MUTEX_INITIALIZER
30213                 draft5
30214 #endif
30215
30216 _ACEOF
30217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30218   $EGREP "draft5" >/dev/null 2>&1; then
30219   ol_cv_pthread_version=5
30220 else
30221   ol_cv_pthread_version=4
30222 fi
30223 rm -f conftest*
30224
30225 fi
30226 rm -f conftest*
30227
30228 fi
30229 rm -f conftest*
30230
30231 fi
30232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30233
30234 fi
30235 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30236 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30237
30238
30239                 if test $ol_cv_pthread_version != 0 ; then
30240
30241 cat >>confdefs.h <<_ACEOF
30242 #define HAVE_PTHREADS $ol_cv_pthread_version
30243 _ACEOF
30244
30245                 else
30246                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30247 echo "$as_me: error: unknown pthread version" >&2;}
30248    { (exit 1); exit 1; }; }
30249                 fi
30250
30251                 # consider threads found
30252                 ol_with_threads=found
30253
30254
30255         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30256 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30257 if test "${ol_cv_header_linux_threads+set}" = set; then
30258   echo $ECHO_N "(cached) $ECHO_C" >&6
30259 else
30260   cat >conftest.$ac_ext <<_ACEOF
30261 /* confdefs.h.  */
30262 _ACEOF
30263 cat confdefs.h >>conftest.$ac_ext
30264 cat >>conftest.$ac_ext <<_ACEOF
30265 /* end confdefs.h.  */
30266 #include <pthread.h>
30267 _ACEOF
30268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30269   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30270   ol_cv_header_linux_threads=yes
30271 else
30272   ol_cv_header_linux_threads=no
30273 fi
30274 rm -f conftest*
30275
30276
30277 fi
30278 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30279 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30280         if test $ol_cv_header_linux_threads = yes; then
30281
30282 cat >>confdefs.h <<\_ACEOF
30283 #define HAVE_LINUX_THREADS 1
30284 _ACEOF
30285
30286         fi
30287
30288
30289         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30290 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30291 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30292   echo $ECHO_N "(cached) $ECHO_C" >&6
30293 else
30294   cat >conftest.$ac_ext <<_ACEOF
30295 /* confdefs.h.  */
30296 _ACEOF
30297 cat confdefs.h >>conftest.$ac_ext
30298 cat >>conftest.$ac_ext <<_ACEOF
30299 /* end confdefs.h.  */
30300 #include <pthread.h>
30301 #ifdef _POSIX_THREAD_IS_GNU_PTH
30302         __gnu_pth__;
30303 #endif
30304
30305 _ACEOF
30306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30307   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30308   ol_cv_header_gnu_pth_pthread_h=yes
30309 else
30310   ol_cv_header_gnu_pth_pthread_h=no
30311 fi
30312 rm -f conftest*
30313
30314
30315 fi
30316 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30317 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30318
30319
30320                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30321
30322 for ac_header in sched.h
30323 do
30324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30326   echo "$as_me:$LINENO: checking for $ac_header" >&5
30327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30329   echo $ECHO_N "(cached) $ECHO_C" >&6
30330 fi
30331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30333 else
30334   # Is the header compilable?
30335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30337 cat >conftest.$ac_ext <<_ACEOF
30338 /* confdefs.h.  */
30339 _ACEOF
30340 cat confdefs.h >>conftest.$ac_ext
30341 cat >>conftest.$ac_ext <<_ACEOF
30342 /* end confdefs.h.  */
30343 $ac_includes_default
30344 #include <$ac_header>
30345 _ACEOF
30346 rm -f conftest.$ac_objext
30347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30348   (eval $ac_compile) 2>conftest.er1
30349   ac_status=$?
30350   grep -v '^ *+' conftest.er1 >conftest.err
30351   rm -f conftest.er1
30352   cat conftest.err >&5
30353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354   (exit $ac_status); } &&
30355          { ac_try='test -z "$ac_c_werror_flag"
30356                          || test ! -s conftest.err'
30357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30358   (eval $ac_try) 2>&5
30359   ac_status=$?
30360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361   (exit $ac_status); }; } &&
30362          { ac_try='test -s conftest.$ac_objext'
30363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30364   (eval $ac_try) 2>&5
30365   ac_status=$?
30366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367   (exit $ac_status); }; }; then
30368   ac_header_compiler=yes
30369 else
30370   echo "$as_me: failed program was:" >&5
30371 sed 's/^/| /' conftest.$ac_ext >&5
30372
30373 ac_header_compiler=no
30374 fi
30375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30376 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30377 echo "${ECHO_T}$ac_header_compiler" >&6
30378
30379 # Is the header present?
30380 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30382 cat >conftest.$ac_ext <<_ACEOF
30383 /* confdefs.h.  */
30384 _ACEOF
30385 cat confdefs.h >>conftest.$ac_ext
30386 cat >>conftest.$ac_ext <<_ACEOF
30387 /* end confdefs.h.  */
30388 #include <$ac_header>
30389 _ACEOF
30390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30391   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30392   ac_status=$?
30393   grep -v '^ *+' conftest.er1 >conftest.err
30394   rm -f conftest.er1
30395   cat conftest.err >&5
30396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397   (exit $ac_status); } >/dev/null; then
30398   if test -s conftest.err; then
30399     ac_cpp_err=$ac_c_preproc_warn_flag
30400     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30401   else
30402     ac_cpp_err=
30403   fi
30404 else
30405   ac_cpp_err=yes
30406 fi
30407 if test -z "$ac_cpp_err"; then
30408   ac_header_preproc=yes
30409 else
30410   echo "$as_me: failed program was:" >&5
30411 sed 's/^/| /' conftest.$ac_ext >&5
30412
30413   ac_header_preproc=no
30414 fi
30415 rm -f conftest.err conftest.$ac_ext
30416 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30417 echo "${ECHO_T}$ac_header_preproc" >&6
30418
30419 # So?  What about this header?
30420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30421   yes:no: )
30422     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30426     ac_header_preproc=yes
30427     ;;
30428   no:yes:* )
30429     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30431     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30432 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30433     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30435     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30436 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30439     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30441     (
30442       cat <<\_ASBOX
30443 ## ------------------------------------------ ##
30444 ## Report this to the AC_PACKAGE_NAME lists.  ##
30445 ## ------------------------------------------ ##
30446 _ASBOX
30447     ) |
30448       sed "s/^/$as_me: WARNING:     /" >&2
30449     ;;
30450 esac
30451 echo "$as_me:$LINENO: checking for $ac_header" >&5
30452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30454   echo $ECHO_N "(cached) $ECHO_C" >&6
30455 else
30456   eval "$as_ac_Header=\$ac_header_preproc"
30457 fi
30458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30460
30461 fi
30462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30463   cat >>confdefs.h <<_ACEOF
30464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30465 _ACEOF
30466
30467 fi
30468
30469 done
30470
30471                 fi
30472
30473
30474                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30475 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30476 if test "${ol_cv_pthread_create+set}" = set; then
30477   echo $ECHO_N "(cached) $ECHO_C" >&6
30478 else
30479
30480                         if test "$cross_compiling" = yes; then
30481   cat >conftest.$ac_ext <<_ACEOF
30482 /* confdefs.h.  */
30483 _ACEOF
30484 cat confdefs.h >>conftest.$ac_ext
30485 cat >>conftest.$ac_ext <<_ACEOF
30486 /* end confdefs.h.  */
30487
30488 /* pthread test headers */
30489 #include <pthread.h>
30490 #if HAVE_PTHREADS < 7
30491 #include <errno.h>
30492 #endif
30493 #ifndef NULL
30494 #define NULL (void*)0
30495 #endif
30496
30497 static void *task(p)
30498         void *p;
30499 {
30500         return (void *) (p == NULL);
30501 }
30502
30503 int
30504 main ()
30505 {
30506
30507         /* pthread test function */
30508 #ifndef PTHREAD_CREATE_DETACHED
30509 #define PTHREAD_CREATE_DETACHED 1
30510 #endif
30511         pthread_t t;
30512         int status;
30513         int detach = PTHREAD_CREATE_DETACHED;
30514
30515 #if HAVE_PTHREADS > 4
30516         /* Final pthreads */
30517         pthread_attr_t attr;
30518
30519         status = pthread_attr_init(&attr);
30520         if( status ) return status;
30521
30522 #if HAVE_PTHREADS < 7
30523         status = pthread_attr_setdetachstate(&attr, &detach);
30524         if( status < 0 ) status = errno;
30525 #else
30526         status = pthread_attr_setdetachstate(&attr, detach);
30527 #endif
30528         if( status ) return status;
30529         status = pthread_create( &t, &attr, task, NULL );
30530 #if HAVE_PTHREADS < 7
30531         if( status < 0 ) status = errno;
30532 #endif
30533         if( status ) return status;
30534 #else
30535         /* Draft 4 pthreads */
30536         status = pthread_create( &t, pthread_attr_default, task, NULL );
30537         if( status ) return errno;
30538
30539         /* give thread a chance to complete */
30540         /* it should remain joinable and hence detachable */
30541         sleep( 1 );
30542
30543         status = pthread_detach( &t );
30544         if( status ) return errno;
30545 #endif
30546
30547 #ifdef HAVE_LINUX_THREADS
30548         pthread_kill_other_threads_np();
30549 #endif
30550
30551         return 0;
30552
30553   ;
30554   return 0;
30555 }
30556 _ACEOF
30557 rm -f conftest.$ac_objext conftest$ac_exeext
30558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30559   (eval $ac_link) 2>conftest.er1
30560   ac_status=$?
30561   grep -v '^ *+' conftest.er1 >conftest.err
30562   rm -f conftest.er1
30563   cat conftest.err >&5
30564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30565   (exit $ac_status); } &&
30566          { ac_try='test -z "$ac_c_werror_flag"
30567                          || test ! -s conftest.err'
30568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30569   (eval $ac_try) 2>&5
30570   ac_status=$?
30571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30572   (exit $ac_status); }; } &&
30573          { ac_try='test -s conftest$ac_exeext'
30574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30575   (eval $ac_try) 2>&5
30576   ac_status=$?
30577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30578   (exit $ac_status); }; }; then
30579   ol_cv_pthread_create=yes
30580 else
30581   echo "$as_me: failed program was:" >&5
30582 sed 's/^/| /' conftest.$ac_ext >&5
30583
30584 ol_cv_pthread_create=no
30585 fi
30586 rm -f conftest.err conftest.$ac_objext \
30587       conftest$ac_exeext conftest.$ac_ext
30588 else
30589   cat >conftest.$ac_ext <<_ACEOF
30590 /* confdefs.h.  */
30591 _ACEOF
30592 cat confdefs.h >>conftest.$ac_ext
30593 cat >>conftest.$ac_ext <<_ACEOF
30594 /* end confdefs.h.  */
30595
30596 /* pthread test headers */
30597 #include <pthread.h>
30598 #if HAVE_PTHREADS < 7
30599 #include <errno.h>
30600 #endif
30601 #ifndef NULL
30602 #define NULL (void*)0
30603 #endif
30604
30605 static void *task(p)
30606         void *p;
30607 {
30608         return (void *) (p == NULL);
30609 }
30610
30611
30612 int main(argc, argv)
30613         int argc;
30614         char **argv;
30615 {
30616
30617         /* pthread test function */
30618 #ifndef PTHREAD_CREATE_DETACHED
30619 #define PTHREAD_CREATE_DETACHED 1
30620 #endif
30621         pthread_t t;
30622         int status;
30623         int detach = PTHREAD_CREATE_DETACHED;
30624
30625 #if HAVE_PTHREADS > 4
30626         /* Final pthreads */
30627         pthread_attr_t attr;
30628
30629         status = pthread_attr_init(&attr);
30630         if( status ) return status;
30631
30632 #if HAVE_PTHREADS < 7
30633         status = pthread_attr_setdetachstate(&attr, &detach);
30634         if( status < 0 ) status = errno;
30635 #else
30636         status = pthread_attr_setdetachstate(&attr, detach);
30637 #endif
30638         if( status ) return status;
30639         status = pthread_create( &t, &attr, task, NULL );
30640 #if HAVE_PTHREADS < 7
30641         if( status < 0 ) status = errno;
30642 #endif
30643         if( status ) return status;
30644 #else
30645         /* Draft 4 pthreads */
30646         status = pthread_create( &t, pthread_attr_default, task, NULL );
30647         if( status ) return errno;
30648
30649         /* give thread a chance to complete */
30650         /* it should remain joinable and hence detachable */
30651         sleep( 1 );
30652
30653         status = pthread_detach( &t );
30654         if( status ) return errno;
30655 #endif
30656
30657 #ifdef HAVE_LINUX_THREADS
30658         pthread_kill_other_threads_np();
30659 #endif
30660
30661         return 0;
30662
30663 }
30664
30665 _ACEOF
30666 rm -f conftest$ac_exeext
30667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30668   (eval $ac_link) 2>&5
30669   ac_status=$?
30670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30671   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30673   (eval $ac_try) 2>&5
30674   ac_status=$?
30675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30676   (exit $ac_status); }; }; then
30677   ol_cv_pthread_create=yes
30678 else
30679   echo "$as_me: program exited with status $ac_status" >&5
30680 echo "$as_me: failed program was:" >&5
30681 sed 's/^/| /' conftest.$ac_ext >&5
30682
30683 ( exit $ac_status )
30684 ol_cv_pthread_create=no
30685 fi
30686 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30687 fi
30688 fi
30689 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30690 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30691
30692                 if test $ol_cv_pthread_create != no ; then
30693                         ol_link_threads=posix
30694                         ol_link_pthreads=""
30695                 fi
30696
30697                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30698 if test "$ol_link_threads" = no ; then
30699         # try -kthread
30700         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30701 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30702 if test "${ol_cv_pthread_kthread+set}" = set; then
30703   echo $ECHO_N "(cached) $ECHO_C" >&6
30704 else
30705
30706                 # save the flags
30707                 ol_LIBS="$LIBS"
30708                 LIBS="-kthread $LIBS"
30709
30710                 if test "$cross_compiling" = yes; then
30711   cat >conftest.$ac_ext <<_ACEOF
30712 /* confdefs.h.  */
30713 _ACEOF
30714 cat confdefs.h >>conftest.$ac_ext
30715 cat >>conftest.$ac_ext <<_ACEOF
30716 /* end confdefs.h.  */
30717
30718 /* pthread test headers */
30719 #include <pthread.h>
30720 #if HAVE_PTHREADS < 7
30721 #include <errno.h>
30722 #endif
30723 #ifndef NULL
30724 #define NULL (void*)0
30725 #endif
30726
30727 static void *task(p)
30728         void *p;
30729 {
30730         return (void *) (p == NULL);
30731 }
30732
30733 int
30734 main ()
30735 {
30736
30737         /* pthread test function */
30738 #ifndef PTHREAD_CREATE_DETACHED
30739 #define PTHREAD_CREATE_DETACHED 1
30740 #endif
30741         pthread_t t;
30742         int status;
30743         int detach = PTHREAD_CREATE_DETACHED;
30744
30745 #if HAVE_PTHREADS > 4
30746         /* Final pthreads */
30747         pthread_attr_t attr;
30748
30749         status = pthread_attr_init(&attr);
30750         if( status ) return status;
30751
30752 #if HAVE_PTHREADS < 7
30753         status = pthread_attr_setdetachstate(&attr, &detach);
30754         if( status < 0 ) status = errno;
30755 #else
30756         status = pthread_attr_setdetachstate(&attr, detach);
30757 #endif
30758         if( status ) return status;
30759         status = pthread_create( &t, &attr, task, NULL );
30760 #if HAVE_PTHREADS < 7
30761         if( status < 0 ) status = errno;
30762 #endif
30763         if( status ) return status;
30764 #else
30765         /* Draft 4 pthreads */
30766         status = pthread_create( &t, pthread_attr_default, task, NULL );
30767         if( status ) return errno;
30768
30769         /* give thread a chance to complete */
30770         /* it should remain joinable and hence detachable */
30771         sleep( 1 );
30772
30773         status = pthread_detach( &t );
30774         if( status ) return errno;
30775 #endif
30776
30777 #ifdef HAVE_LINUX_THREADS
30778         pthread_kill_other_threads_np();
30779 #endif
30780
30781         return 0;
30782
30783   ;
30784   return 0;
30785 }
30786 _ACEOF
30787 rm -f conftest.$ac_objext conftest$ac_exeext
30788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30789   (eval $ac_link) 2>conftest.er1
30790   ac_status=$?
30791   grep -v '^ *+' conftest.er1 >conftest.err
30792   rm -f conftest.er1
30793   cat conftest.err >&5
30794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795   (exit $ac_status); } &&
30796          { ac_try='test -z "$ac_c_werror_flag"
30797                          || test ! -s conftest.err'
30798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30799   (eval $ac_try) 2>&5
30800   ac_status=$?
30801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30802   (exit $ac_status); }; } &&
30803          { ac_try='test -s conftest$ac_exeext'
30804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30805   (eval $ac_try) 2>&5
30806   ac_status=$?
30807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30808   (exit $ac_status); }; }; then
30809   ol_cv_pthread_kthread=yes
30810 else
30811   echo "$as_me: failed program was:" >&5
30812 sed 's/^/| /' conftest.$ac_ext >&5
30813
30814 ol_cv_pthread_kthread=no
30815 fi
30816 rm -f conftest.err conftest.$ac_objext \
30817       conftest$ac_exeext conftest.$ac_ext
30818 else
30819   cat >conftest.$ac_ext <<_ACEOF
30820 /* confdefs.h.  */
30821 _ACEOF
30822 cat confdefs.h >>conftest.$ac_ext
30823 cat >>conftest.$ac_ext <<_ACEOF
30824 /* end confdefs.h.  */
30825
30826 /* pthread test headers */
30827 #include <pthread.h>
30828 #if HAVE_PTHREADS < 7
30829 #include <errno.h>
30830 #endif
30831 #ifndef NULL
30832 #define NULL (void*)0
30833 #endif
30834
30835 static void *task(p)
30836         void *p;
30837 {
30838         return (void *) (p == NULL);
30839 }
30840
30841
30842 int main(argc, argv)
30843         int argc;
30844         char **argv;
30845 {
30846
30847         /* pthread test function */
30848 #ifndef PTHREAD_CREATE_DETACHED
30849 #define PTHREAD_CREATE_DETACHED 1
30850 #endif
30851         pthread_t t;
30852         int status;
30853         int detach = PTHREAD_CREATE_DETACHED;
30854
30855 #if HAVE_PTHREADS > 4
30856         /* Final pthreads */
30857         pthread_attr_t attr;
30858
30859         status = pthread_attr_init(&attr);
30860         if( status ) return status;
30861
30862 #if HAVE_PTHREADS < 7
30863         status = pthread_attr_setdetachstate(&attr, &detach);
30864         if( status < 0 ) status = errno;
30865 #else
30866         status = pthread_attr_setdetachstate(&attr, detach);
30867 #endif
30868         if( status ) return status;
30869         status = pthread_create( &t, &attr, task, NULL );
30870 #if HAVE_PTHREADS < 7
30871         if( status < 0 ) status = errno;
30872 #endif
30873         if( status ) return status;
30874 #else
30875         /* Draft 4 pthreads */
30876         status = pthread_create( &t, pthread_attr_default, task, NULL );
30877         if( status ) return errno;
30878
30879         /* give thread a chance to complete */
30880         /* it should remain joinable and hence detachable */
30881         sleep( 1 );
30882
30883         status = pthread_detach( &t );
30884         if( status ) return errno;
30885 #endif
30886
30887 #ifdef HAVE_LINUX_THREADS
30888         pthread_kill_other_threads_np();
30889 #endif
30890
30891         return 0;
30892
30893 }
30894
30895 _ACEOF
30896 rm -f conftest$ac_exeext
30897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30898   (eval $ac_link) 2>&5
30899   ac_status=$?
30900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30903   (eval $ac_try) 2>&5
30904   ac_status=$?
30905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906   (exit $ac_status); }; }; then
30907   ol_cv_pthread_kthread=yes
30908 else
30909   echo "$as_me: program exited with status $ac_status" >&5
30910 echo "$as_me: failed program was:" >&5
30911 sed 's/^/| /' conftest.$ac_ext >&5
30912
30913 ( exit $ac_status )
30914 ol_cv_pthread_kthread=no
30915 fi
30916 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30917 fi
30918
30919                 # restore the LIBS
30920                 LIBS="$ol_LIBS"
30921
30922 fi
30923 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
30924 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
30925
30926         if test $ol_cv_pthread_kthread = yes ; then
30927                 ol_link_pthreads="-kthread"
30928                 ol_link_threads=posix
30929         fi
30930 fi
30931
30932                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
30933 if test "$ol_link_threads" = no ; then
30934         # try -pthread
30935         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
30936 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
30937 if test "${ol_cv_pthread_pthread+set}" = set; then
30938   echo $ECHO_N "(cached) $ECHO_C" >&6
30939 else
30940
30941                 # save the flags
30942                 ol_LIBS="$LIBS"
30943                 LIBS="-pthread $LIBS"
30944
30945                 if test "$cross_compiling" = yes; then
30946   cat >conftest.$ac_ext <<_ACEOF
30947 /* confdefs.h.  */
30948 _ACEOF
30949 cat confdefs.h >>conftest.$ac_ext
30950 cat >>conftest.$ac_ext <<_ACEOF
30951 /* end confdefs.h.  */
30952
30953 /* pthread test headers */
30954 #include <pthread.h>
30955 #if HAVE_PTHREADS < 7
30956 #include <errno.h>
30957 #endif
30958 #ifndef NULL
30959 #define NULL (void*)0
30960 #endif
30961
30962 static void *task(p)
30963         void *p;
30964 {
30965         return (void *) (p == NULL);
30966 }
30967
30968 int
30969 main ()
30970 {
30971
30972         /* pthread test function */
30973 #ifndef PTHREAD_CREATE_DETACHED
30974 #define PTHREAD_CREATE_DETACHED 1
30975 #endif
30976         pthread_t t;
30977         int status;
30978         int detach = PTHREAD_CREATE_DETACHED;
30979
30980 #if HAVE_PTHREADS > 4
30981         /* Final pthreads */
30982         pthread_attr_t attr;
30983
30984         status = pthread_attr_init(&attr);
30985         if( status ) return status;
30986
30987 #if HAVE_PTHREADS < 7
30988         status = pthread_attr_setdetachstate(&attr, &detach);
30989         if( status < 0 ) status = errno;
30990 #else
30991         status = pthread_attr_setdetachstate(&attr, detach);
30992 #endif
30993         if( status ) return status;
30994         status = pthread_create( &t, &attr, task, NULL );
30995 #if HAVE_PTHREADS < 7
30996         if( status < 0 ) status = errno;
30997 #endif
30998         if( status ) return status;
30999 #else
31000         /* Draft 4 pthreads */
31001         status = pthread_create( &t, pthread_attr_default, task, NULL );
31002         if( status ) return errno;
31003
31004         /* give thread a chance to complete */
31005         /* it should remain joinable and hence detachable */
31006         sleep( 1 );
31007
31008         status = pthread_detach( &t );
31009         if( status ) return errno;
31010 #endif
31011
31012 #ifdef HAVE_LINUX_THREADS
31013         pthread_kill_other_threads_np();
31014 #endif
31015
31016         return 0;
31017
31018   ;
31019   return 0;
31020 }
31021 _ACEOF
31022 rm -f conftest.$ac_objext conftest$ac_exeext
31023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31024   (eval $ac_link) 2>conftest.er1
31025   ac_status=$?
31026   grep -v '^ *+' conftest.er1 >conftest.err
31027   rm -f conftest.er1
31028   cat conftest.err >&5
31029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030   (exit $ac_status); } &&
31031          { ac_try='test -z "$ac_c_werror_flag"
31032                          || test ! -s conftest.err'
31033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31034   (eval $ac_try) 2>&5
31035   ac_status=$?
31036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31037   (exit $ac_status); }; } &&
31038          { ac_try='test -s conftest$ac_exeext'
31039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31040   (eval $ac_try) 2>&5
31041   ac_status=$?
31042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31043   (exit $ac_status); }; }; then
31044   ol_cv_pthread_pthread=yes
31045 else
31046   echo "$as_me: failed program was:" >&5
31047 sed 's/^/| /' conftest.$ac_ext >&5
31048
31049 ol_cv_pthread_pthread=no
31050 fi
31051 rm -f conftest.err conftest.$ac_objext \
31052       conftest$ac_exeext conftest.$ac_ext
31053 else
31054   cat >conftest.$ac_ext <<_ACEOF
31055 /* confdefs.h.  */
31056 _ACEOF
31057 cat confdefs.h >>conftest.$ac_ext
31058 cat >>conftest.$ac_ext <<_ACEOF
31059 /* end confdefs.h.  */
31060
31061 /* pthread test headers */
31062 #include <pthread.h>
31063 #if HAVE_PTHREADS < 7
31064 #include <errno.h>
31065 #endif
31066 #ifndef NULL
31067 #define NULL (void*)0
31068 #endif
31069
31070 static void *task(p)
31071         void *p;
31072 {
31073         return (void *) (p == NULL);
31074 }
31075
31076
31077 int main(argc, argv)
31078         int argc;
31079         char **argv;
31080 {
31081
31082         /* pthread test function */
31083 #ifndef PTHREAD_CREATE_DETACHED
31084 #define PTHREAD_CREATE_DETACHED 1
31085 #endif
31086         pthread_t t;
31087         int status;
31088         int detach = PTHREAD_CREATE_DETACHED;
31089
31090 #if HAVE_PTHREADS > 4
31091         /* Final pthreads */
31092         pthread_attr_t attr;
31093
31094         status = pthread_attr_init(&attr);
31095         if( status ) return status;
31096
31097 #if HAVE_PTHREADS < 7
31098         status = pthread_attr_setdetachstate(&attr, &detach);
31099         if( status < 0 ) status = errno;
31100 #else
31101         status = pthread_attr_setdetachstate(&attr, detach);
31102 #endif
31103         if( status ) return status;
31104         status = pthread_create( &t, &attr, task, NULL );
31105 #if HAVE_PTHREADS < 7
31106         if( status < 0 ) status = errno;
31107 #endif
31108         if( status ) return status;
31109 #else
31110         /* Draft 4 pthreads */
31111         status = pthread_create( &t, pthread_attr_default, task, NULL );
31112         if( status ) return errno;
31113
31114         /* give thread a chance to complete */
31115         /* it should remain joinable and hence detachable */
31116         sleep( 1 );
31117
31118         status = pthread_detach( &t );
31119         if( status ) return errno;
31120 #endif
31121
31122 #ifdef HAVE_LINUX_THREADS
31123         pthread_kill_other_threads_np();
31124 #endif
31125
31126         return 0;
31127
31128 }
31129
31130 _ACEOF
31131 rm -f conftest$ac_exeext
31132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31133   (eval $ac_link) 2>&5
31134   ac_status=$?
31135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31136   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31138   (eval $ac_try) 2>&5
31139   ac_status=$?
31140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31141   (exit $ac_status); }; }; then
31142   ol_cv_pthread_pthread=yes
31143 else
31144   echo "$as_me: program exited with status $ac_status" >&5
31145 echo "$as_me: failed program was:" >&5
31146 sed 's/^/| /' conftest.$ac_ext >&5
31147
31148 ( exit $ac_status )
31149 ol_cv_pthread_pthread=no
31150 fi
31151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31152 fi
31153
31154                 # restore the LIBS
31155                 LIBS="$ol_LIBS"
31156
31157 fi
31158 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31159 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31160
31161         if test $ol_cv_pthread_pthread = yes ; then
31162                 ol_link_pthreads="-pthread"
31163                 ol_link_threads=posix
31164         fi
31165 fi
31166
31167                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31168 if test "$ol_link_threads" = no ; then
31169         # try -pthreads
31170         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31171 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31172 if test "${ol_cv_pthread_pthreads+set}" = set; then
31173   echo $ECHO_N "(cached) $ECHO_C" >&6
31174 else
31175
31176                 # save the flags
31177                 ol_LIBS="$LIBS"
31178                 LIBS="-pthreads $LIBS"
31179
31180                 if test "$cross_compiling" = yes; then
31181   cat >conftest.$ac_ext <<_ACEOF
31182 /* confdefs.h.  */
31183 _ACEOF
31184 cat confdefs.h >>conftest.$ac_ext
31185 cat >>conftest.$ac_ext <<_ACEOF
31186 /* end confdefs.h.  */
31187
31188 /* pthread test headers */
31189 #include <pthread.h>
31190 #if HAVE_PTHREADS < 7
31191 #include <errno.h>
31192 #endif
31193 #ifndef NULL
31194 #define NULL (void*)0
31195 #endif
31196
31197 static void *task(p)
31198         void *p;
31199 {
31200         return (void *) (p == NULL);
31201 }
31202
31203 int
31204 main ()
31205 {
31206
31207         /* pthread test function */
31208 #ifndef PTHREAD_CREATE_DETACHED
31209 #define PTHREAD_CREATE_DETACHED 1
31210 #endif
31211         pthread_t t;
31212         int status;
31213         int detach = PTHREAD_CREATE_DETACHED;
31214
31215 #if HAVE_PTHREADS > 4
31216         /* Final pthreads */
31217         pthread_attr_t attr;
31218
31219         status = pthread_attr_init(&attr);
31220         if( status ) return status;
31221
31222 #if HAVE_PTHREADS < 7
31223         status = pthread_attr_setdetachstate(&attr, &detach);
31224         if( status < 0 ) status = errno;
31225 #else
31226         status = pthread_attr_setdetachstate(&attr, detach);
31227 #endif
31228         if( status ) return status;
31229         status = pthread_create( &t, &attr, task, NULL );
31230 #if HAVE_PTHREADS < 7
31231         if( status < 0 ) status = errno;
31232 #endif
31233         if( status ) return status;
31234 #else
31235         /* Draft 4 pthreads */
31236         status = pthread_create( &t, pthread_attr_default, task, NULL );
31237         if( status ) return errno;
31238
31239         /* give thread a chance to complete */
31240         /* it should remain joinable and hence detachable */
31241         sleep( 1 );
31242
31243         status = pthread_detach( &t );
31244         if( status ) return errno;
31245 #endif
31246
31247 #ifdef HAVE_LINUX_THREADS
31248         pthread_kill_other_threads_np();
31249 #endif
31250
31251         return 0;
31252
31253   ;
31254   return 0;
31255 }
31256 _ACEOF
31257 rm -f conftest.$ac_objext conftest$ac_exeext
31258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31259   (eval $ac_link) 2>conftest.er1
31260   ac_status=$?
31261   grep -v '^ *+' conftest.er1 >conftest.err
31262   rm -f conftest.er1
31263   cat conftest.err >&5
31264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31265   (exit $ac_status); } &&
31266          { ac_try='test -z "$ac_c_werror_flag"
31267                          || test ! -s conftest.err'
31268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31269   (eval $ac_try) 2>&5
31270   ac_status=$?
31271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272   (exit $ac_status); }; } &&
31273          { ac_try='test -s conftest$ac_exeext'
31274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31275   (eval $ac_try) 2>&5
31276   ac_status=$?
31277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31278   (exit $ac_status); }; }; then
31279   ol_cv_pthread_pthreads=yes
31280 else
31281   echo "$as_me: failed program was:" >&5
31282 sed 's/^/| /' conftest.$ac_ext >&5
31283
31284 ol_cv_pthread_pthreads=no
31285 fi
31286 rm -f conftest.err conftest.$ac_objext \
31287       conftest$ac_exeext conftest.$ac_ext
31288 else
31289   cat >conftest.$ac_ext <<_ACEOF
31290 /* confdefs.h.  */
31291 _ACEOF
31292 cat confdefs.h >>conftest.$ac_ext
31293 cat >>conftest.$ac_ext <<_ACEOF
31294 /* end confdefs.h.  */
31295
31296 /* pthread test headers */
31297 #include <pthread.h>
31298 #if HAVE_PTHREADS < 7
31299 #include <errno.h>
31300 #endif
31301 #ifndef NULL
31302 #define NULL (void*)0
31303 #endif
31304
31305 static void *task(p)
31306         void *p;
31307 {
31308         return (void *) (p == NULL);
31309 }
31310
31311
31312 int main(argc, argv)
31313         int argc;
31314         char **argv;
31315 {
31316
31317         /* pthread test function */
31318 #ifndef PTHREAD_CREATE_DETACHED
31319 #define PTHREAD_CREATE_DETACHED 1
31320 #endif
31321         pthread_t t;
31322         int status;
31323         int detach = PTHREAD_CREATE_DETACHED;
31324
31325 #if HAVE_PTHREADS > 4
31326         /* Final pthreads */
31327         pthread_attr_t attr;
31328
31329         status = pthread_attr_init(&attr);
31330         if( status ) return status;
31331
31332 #if HAVE_PTHREADS < 7
31333         status = pthread_attr_setdetachstate(&attr, &detach);
31334         if( status < 0 ) status = errno;
31335 #else
31336         status = pthread_attr_setdetachstate(&attr, detach);
31337 #endif
31338         if( status ) return status;
31339         status = pthread_create( &t, &attr, task, NULL );
31340 #if HAVE_PTHREADS < 7
31341         if( status < 0 ) status = errno;
31342 #endif
31343         if( status ) return status;
31344 #else
31345         /* Draft 4 pthreads */
31346         status = pthread_create( &t, pthread_attr_default, task, NULL );
31347         if( status ) return errno;
31348
31349         /* give thread a chance to complete */
31350         /* it should remain joinable and hence detachable */
31351         sleep( 1 );
31352
31353         status = pthread_detach( &t );
31354         if( status ) return errno;
31355 #endif
31356
31357 #ifdef HAVE_LINUX_THREADS
31358         pthread_kill_other_threads_np();
31359 #endif
31360
31361         return 0;
31362
31363 }
31364
31365 _ACEOF
31366 rm -f conftest$ac_exeext
31367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31368   (eval $ac_link) 2>&5
31369   ac_status=$?
31370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31371   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31373   (eval $ac_try) 2>&5
31374   ac_status=$?
31375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31376   (exit $ac_status); }; }; then
31377   ol_cv_pthread_pthreads=yes
31378 else
31379   echo "$as_me: program exited with status $ac_status" >&5
31380 echo "$as_me: failed program was:" >&5
31381 sed 's/^/| /' conftest.$ac_ext >&5
31382
31383 ( exit $ac_status )
31384 ol_cv_pthread_pthreads=no
31385 fi
31386 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31387 fi
31388
31389                 # restore the LIBS
31390                 LIBS="$ol_LIBS"
31391
31392 fi
31393 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31394 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31395
31396         if test $ol_cv_pthread_pthreads = yes ; then
31397                 ol_link_pthreads="-pthreads"
31398                 ol_link_threads=posix
31399         fi
31400 fi
31401
31402                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31403 if test "$ol_link_threads" = no ; then
31404         # try -mthreads
31405         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31406 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31407 if test "${ol_cv_pthread_mthreads+set}" = set; then
31408   echo $ECHO_N "(cached) $ECHO_C" >&6
31409 else
31410
31411                 # save the flags
31412                 ol_LIBS="$LIBS"
31413                 LIBS="-mthreads $LIBS"
31414
31415                 if test "$cross_compiling" = yes; then
31416   cat >conftest.$ac_ext <<_ACEOF
31417 /* confdefs.h.  */
31418 _ACEOF
31419 cat confdefs.h >>conftest.$ac_ext
31420 cat >>conftest.$ac_ext <<_ACEOF
31421 /* end confdefs.h.  */
31422
31423 /* pthread test headers */
31424 #include <pthread.h>
31425 #if HAVE_PTHREADS < 7
31426 #include <errno.h>
31427 #endif
31428 #ifndef NULL
31429 #define NULL (void*)0
31430 #endif
31431
31432 static void *task(p)
31433         void *p;
31434 {
31435         return (void *) (p == NULL);
31436 }
31437
31438 int
31439 main ()
31440 {
31441
31442         /* pthread test function */
31443 #ifndef PTHREAD_CREATE_DETACHED
31444 #define PTHREAD_CREATE_DETACHED 1
31445 #endif
31446         pthread_t t;
31447         int status;
31448         int detach = PTHREAD_CREATE_DETACHED;
31449
31450 #if HAVE_PTHREADS > 4
31451         /* Final pthreads */
31452         pthread_attr_t attr;
31453
31454         status = pthread_attr_init(&attr);
31455         if( status ) return status;
31456
31457 #if HAVE_PTHREADS < 7
31458         status = pthread_attr_setdetachstate(&attr, &detach);
31459         if( status < 0 ) status = errno;
31460 #else
31461         status = pthread_attr_setdetachstate(&attr, detach);
31462 #endif
31463         if( status ) return status;
31464         status = pthread_create( &t, &attr, task, NULL );
31465 #if HAVE_PTHREADS < 7
31466         if( status < 0 ) status = errno;
31467 #endif
31468         if( status ) return status;
31469 #else
31470         /* Draft 4 pthreads */
31471         status = pthread_create( &t, pthread_attr_default, task, NULL );
31472         if( status ) return errno;
31473
31474         /* give thread a chance to complete */
31475         /* it should remain joinable and hence detachable */
31476         sleep( 1 );
31477
31478         status = pthread_detach( &t );
31479         if( status ) return errno;
31480 #endif
31481
31482 #ifdef HAVE_LINUX_THREADS
31483         pthread_kill_other_threads_np();
31484 #endif
31485
31486         return 0;
31487
31488   ;
31489   return 0;
31490 }
31491 _ACEOF
31492 rm -f conftest.$ac_objext conftest$ac_exeext
31493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31494   (eval $ac_link) 2>conftest.er1
31495   ac_status=$?
31496   grep -v '^ *+' conftest.er1 >conftest.err
31497   rm -f conftest.er1
31498   cat conftest.err >&5
31499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500   (exit $ac_status); } &&
31501          { ac_try='test -z "$ac_c_werror_flag"
31502                          || test ! -s conftest.err'
31503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31504   (eval $ac_try) 2>&5
31505   ac_status=$?
31506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507   (exit $ac_status); }; } &&
31508          { ac_try='test -s conftest$ac_exeext'
31509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31510   (eval $ac_try) 2>&5
31511   ac_status=$?
31512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31513   (exit $ac_status); }; }; then
31514   ol_cv_pthread_mthreads=yes
31515 else
31516   echo "$as_me: failed program was:" >&5
31517 sed 's/^/| /' conftest.$ac_ext >&5
31518
31519 ol_cv_pthread_mthreads=no
31520 fi
31521 rm -f conftest.err conftest.$ac_objext \
31522       conftest$ac_exeext conftest.$ac_ext
31523 else
31524   cat >conftest.$ac_ext <<_ACEOF
31525 /* confdefs.h.  */
31526 _ACEOF
31527 cat confdefs.h >>conftest.$ac_ext
31528 cat >>conftest.$ac_ext <<_ACEOF
31529 /* end confdefs.h.  */
31530
31531 /* pthread test headers */
31532 #include <pthread.h>
31533 #if HAVE_PTHREADS < 7
31534 #include <errno.h>
31535 #endif
31536 #ifndef NULL
31537 #define NULL (void*)0
31538 #endif
31539
31540 static void *task(p)
31541         void *p;
31542 {
31543         return (void *) (p == NULL);
31544 }
31545
31546
31547 int main(argc, argv)
31548         int argc;
31549         char **argv;
31550 {
31551
31552         /* pthread test function */
31553 #ifndef PTHREAD_CREATE_DETACHED
31554 #define PTHREAD_CREATE_DETACHED 1
31555 #endif
31556         pthread_t t;
31557         int status;
31558         int detach = PTHREAD_CREATE_DETACHED;
31559
31560 #if HAVE_PTHREADS > 4
31561         /* Final pthreads */
31562         pthread_attr_t attr;
31563
31564         status = pthread_attr_init(&attr);
31565         if( status ) return status;
31566
31567 #if HAVE_PTHREADS < 7
31568         status = pthread_attr_setdetachstate(&attr, &detach);
31569         if( status < 0 ) status = errno;
31570 #else
31571         status = pthread_attr_setdetachstate(&attr, detach);
31572 #endif
31573         if( status ) return status;
31574         status = pthread_create( &t, &attr, task, NULL );
31575 #if HAVE_PTHREADS < 7
31576         if( status < 0 ) status = errno;
31577 #endif
31578         if( status ) return status;
31579 #else
31580         /* Draft 4 pthreads */
31581         status = pthread_create( &t, pthread_attr_default, task, NULL );
31582         if( status ) return errno;
31583
31584         /* give thread a chance to complete */
31585         /* it should remain joinable and hence detachable */
31586         sleep( 1 );
31587
31588         status = pthread_detach( &t );
31589         if( status ) return errno;
31590 #endif
31591
31592 #ifdef HAVE_LINUX_THREADS
31593         pthread_kill_other_threads_np();
31594 #endif
31595
31596         return 0;
31597
31598 }
31599
31600 _ACEOF
31601 rm -f conftest$ac_exeext
31602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31603   (eval $ac_link) 2>&5
31604   ac_status=$?
31605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31608   (eval $ac_try) 2>&5
31609   ac_status=$?
31610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611   (exit $ac_status); }; }; then
31612   ol_cv_pthread_mthreads=yes
31613 else
31614   echo "$as_me: program exited with status $ac_status" >&5
31615 echo "$as_me: failed program was:" >&5
31616 sed 's/^/| /' conftest.$ac_ext >&5
31617
31618 ( exit $ac_status )
31619 ol_cv_pthread_mthreads=no
31620 fi
31621 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31622 fi
31623
31624                 # restore the LIBS
31625                 LIBS="$ol_LIBS"
31626
31627 fi
31628 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31629 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31630
31631         if test $ol_cv_pthread_mthreads = yes ; then
31632                 ol_link_pthreads="-mthreads"
31633                 ol_link_threads=posix
31634         fi
31635 fi
31636
31637                 # Pthread try link: -thread (ol_cv_pthread_thread)
31638 if test "$ol_link_threads" = no ; then
31639         # try -thread
31640         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31641 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31642 if test "${ol_cv_pthread_thread+set}" = set; then
31643   echo $ECHO_N "(cached) $ECHO_C" >&6
31644 else
31645
31646                 # save the flags
31647                 ol_LIBS="$LIBS"
31648                 LIBS="-thread $LIBS"
31649
31650                 if test "$cross_compiling" = yes; then
31651   cat >conftest.$ac_ext <<_ACEOF
31652 /* confdefs.h.  */
31653 _ACEOF
31654 cat confdefs.h >>conftest.$ac_ext
31655 cat >>conftest.$ac_ext <<_ACEOF
31656 /* end confdefs.h.  */
31657
31658 /* pthread test headers */
31659 #include <pthread.h>
31660 #if HAVE_PTHREADS < 7
31661 #include <errno.h>
31662 #endif
31663 #ifndef NULL
31664 #define NULL (void*)0
31665 #endif
31666
31667 static void *task(p)
31668         void *p;
31669 {
31670         return (void *) (p == NULL);
31671 }
31672
31673 int
31674 main ()
31675 {
31676
31677         /* pthread test function */
31678 #ifndef PTHREAD_CREATE_DETACHED
31679 #define PTHREAD_CREATE_DETACHED 1
31680 #endif
31681         pthread_t t;
31682         int status;
31683         int detach = PTHREAD_CREATE_DETACHED;
31684
31685 #if HAVE_PTHREADS > 4
31686         /* Final pthreads */
31687         pthread_attr_t attr;
31688
31689         status = pthread_attr_init(&attr);
31690         if( status ) return status;
31691
31692 #if HAVE_PTHREADS < 7
31693         status = pthread_attr_setdetachstate(&attr, &detach);
31694         if( status < 0 ) status = errno;
31695 #else
31696         status = pthread_attr_setdetachstate(&attr, detach);
31697 #endif
31698         if( status ) return status;
31699         status = pthread_create( &t, &attr, task, NULL );
31700 #if HAVE_PTHREADS < 7
31701         if( status < 0 ) status = errno;
31702 #endif
31703         if( status ) return status;
31704 #else
31705         /* Draft 4 pthreads */
31706         status = pthread_create( &t, pthread_attr_default, task, NULL );
31707         if( status ) return errno;
31708
31709         /* give thread a chance to complete */
31710         /* it should remain joinable and hence detachable */
31711         sleep( 1 );
31712
31713         status = pthread_detach( &t );
31714         if( status ) return errno;
31715 #endif
31716
31717 #ifdef HAVE_LINUX_THREADS
31718         pthread_kill_other_threads_np();
31719 #endif
31720
31721         return 0;
31722
31723   ;
31724   return 0;
31725 }
31726 _ACEOF
31727 rm -f conftest.$ac_objext conftest$ac_exeext
31728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31729   (eval $ac_link) 2>conftest.er1
31730   ac_status=$?
31731   grep -v '^ *+' conftest.er1 >conftest.err
31732   rm -f conftest.er1
31733   cat conftest.err >&5
31734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735   (exit $ac_status); } &&
31736          { ac_try='test -z "$ac_c_werror_flag"
31737                          || test ! -s conftest.err'
31738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31739   (eval $ac_try) 2>&5
31740   ac_status=$?
31741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31742   (exit $ac_status); }; } &&
31743          { ac_try='test -s conftest$ac_exeext'
31744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31745   (eval $ac_try) 2>&5
31746   ac_status=$?
31747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31748   (exit $ac_status); }; }; then
31749   ol_cv_pthread_thread=yes
31750 else
31751   echo "$as_me: failed program was:" >&5
31752 sed 's/^/| /' conftest.$ac_ext >&5
31753
31754 ol_cv_pthread_thread=no
31755 fi
31756 rm -f conftest.err conftest.$ac_objext \
31757       conftest$ac_exeext conftest.$ac_ext
31758 else
31759   cat >conftest.$ac_ext <<_ACEOF
31760 /* confdefs.h.  */
31761 _ACEOF
31762 cat confdefs.h >>conftest.$ac_ext
31763 cat >>conftest.$ac_ext <<_ACEOF
31764 /* end confdefs.h.  */
31765
31766 /* pthread test headers */
31767 #include <pthread.h>
31768 #if HAVE_PTHREADS < 7
31769 #include <errno.h>
31770 #endif
31771 #ifndef NULL
31772 #define NULL (void*)0
31773 #endif
31774
31775 static void *task(p)
31776         void *p;
31777 {
31778         return (void *) (p == NULL);
31779 }
31780
31781
31782 int main(argc, argv)
31783         int argc;
31784         char **argv;
31785 {
31786
31787         /* pthread test function */
31788 #ifndef PTHREAD_CREATE_DETACHED
31789 #define PTHREAD_CREATE_DETACHED 1
31790 #endif
31791         pthread_t t;
31792         int status;
31793         int detach = PTHREAD_CREATE_DETACHED;
31794
31795 #if HAVE_PTHREADS > 4
31796         /* Final pthreads */
31797         pthread_attr_t attr;
31798
31799         status = pthread_attr_init(&attr);
31800         if( status ) return status;
31801
31802 #if HAVE_PTHREADS < 7
31803         status = pthread_attr_setdetachstate(&attr, &detach);
31804         if( status < 0 ) status = errno;
31805 #else
31806         status = pthread_attr_setdetachstate(&attr, detach);
31807 #endif
31808         if( status ) return status;
31809         status = pthread_create( &t, &attr, task, NULL );
31810 #if HAVE_PTHREADS < 7
31811         if( status < 0 ) status = errno;
31812 #endif
31813         if( status ) return status;
31814 #else
31815         /* Draft 4 pthreads */
31816         status = pthread_create( &t, pthread_attr_default, task, NULL );
31817         if( status ) return errno;
31818
31819         /* give thread a chance to complete */
31820         /* it should remain joinable and hence detachable */
31821         sleep( 1 );
31822
31823         status = pthread_detach( &t );
31824         if( status ) return errno;
31825 #endif
31826
31827 #ifdef HAVE_LINUX_THREADS
31828         pthread_kill_other_threads_np();
31829 #endif
31830
31831         return 0;
31832
31833 }
31834
31835 _ACEOF
31836 rm -f conftest$ac_exeext
31837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31838   (eval $ac_link) 2>&5
31839   ac_status=$?
31840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31843   (eval $ac_try) 2>&5
31844   ac_status=$?
31845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31846   (exit $ac_status); }; }; then
31847   ol_cv_pthread_thread=yes
31848 else
31849   echo "$as_me: program exited with status $ac_status" >&5
31850 echo "$as_me: failed program was:" >&5
31851 sed 's/^/| /' conftest.$ac_ext >&5
31852
31853 ( exit $ac_status )
31854 ol_cv_pthread_thread=no
31855 fi
31856 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31857 fi
31858
31859                 # restore the LIBS
31860                 LIBS="$ol_LIBS"
31861
31862 fi
31863 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31864 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31865
31866         if test $ol_cv_pthread_thread = yes ; then
31867                 ol_link_pthreads="-thread"
31868                 ol_link_threads=posix
31869         fi
31870 fi
31871
31872
31873                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
31874 if test "$ol_link_threads" = no ; then
31875         # try -lpthread -lmach -lexc -lc_r
31876         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
31877 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
31878 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
31879   echo $ECHO_N "(cached) $ECHO_C" >&6
31880 else
31881
31882                 # save the flags
31883                 ol_LIBS="$LIBS"
31884                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
31885
31886                 if test "$cross_compiling" = yes; then
31887   cat >conftest.$ac_ext <<_ACEOF
31888 /* confdefs.h.  */
31889 _ACEOF
31890 cat confdefs.h >>conftest.$ac_ext
31891 cat >>conftest.$ac_ext <<_ACEOF
31892 /* end confdefs.h.  */
31893
31894 /* pthread test headers */
31895 #include <pthread.h>
31896 #if HAVE_PTHREADS < 7
31897 #include <errno.h>
31898 #endif
31899 #ifndef NULL
31900 #define NULL (void*)0
31901 #endif
31902
31903 static void *task(p)
31904         void *p;
31905 {
31906         return (void *) (p == NULL);
31907 }
31908
31909 int
31910 main ()
31911 {
31912
31913         /* pthread test function */
31914 #ifndef PTHREAD_CREATE_DETACHED
31915 #define PTHREAD_CREATE_DETACHED 1
31916 #endif
31917         pthread_t t;
31918         int status;
31919         int detach = PTHREAD_CREATE_DETACHED;
31920
31921 #if HAVE_PTHREADS > 4
31922         /* Final pthreads */
31923         pthread_attr_t attr;
31924
31925         status = pthread_attr_init(&attr);
31926         if( status ) return status;
31927
31928 #if HAVE_PTHREADS < 7
31929         status = pthread_attr_setdetachstate(&attr, &detach);
31930         if( status < 0 ) status = errno;
31931 #else
31932         status = pthread_attr_setdetachstate(&attr, detach);
31933 #endif
31934         if( status ) return status;
31935         status = pthread_create( &t, &attr, task, NULL );
31936 #if HAVE_PTHREADS < 7
31937         if( status < 0 ) status = errno;
31938 #endif
31939         if( status ) return status;
31940 #else
31941         /* Draft 4 pthreads */
31942         status = pthread_create( &t, pthread_attr_default, task, NULL );
31943         if( status ) return errno;
31944
31945         /* give thread a chance to complete */
31946         /* it should remain joinable and hence detachable */
31947         sleep( 1 );
31948
31949         status = pthread_detach( &t );
31950         if( status ) return errno;
31951 #endif
31952
31953 #ifdef HAVE_LINUX_THREADS
31954         pthread_kill_other_threads_np();
31955 #endif
31956
31957         return 0;
31958
31959   ;
31960   return 0;
31961 }
31962 _ACEOF
31963 rm -f conftest.$ac_objext conftest$ac_exeext
31964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31965   (eval $ac_link) 2>conftest.er1
31966   ac_status=$?
31967   grep -v '^ *+' conftest.er1 >conftest.err
31968   rm -f conftest.er1
31969   cat conftest.err >&5
31970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31971   (exit $ac_status); } &&
31972          { ac_try='test -z "$ac_c_werror_flag"
31973                          || test ! -s conftest.err'
31974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31975   (eval $ac_try) 2>&5
31976   ac_status=$?
31977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978   (exit $ac_status); }; } &&
31979          { ac_try='test -s conftest$ac_exeext'
31980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31981   (eval $ac_try) 2>&5
31982   ac_status=$?
31983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31984   (exit $ac_status); }; }; then
31985   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31986 else
31987   echo "$as_me: failed program was:" >&5
31988 sed 's/^/| /' conftest.$ac_ext >&5
31989
31990 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31991 fi
31992 rm -f conftest.err conftest.$ac_objext \
31993       conftest$ac_exeext conftest.$ac_ext
31994 else
31995   cat >conftest.$ac_ext <<_ACEOF
31996 /* confdefs.h.  */
31997 _ACEOF
31998 cat confdefs.h >>conftest.$ac_ext
31999 cat >>conftest.$ac_ext <<_ACEOF
32000 /* end confdefs.h.  */
32001
32002 /* pthread test headers */
32003 #include <pthread.h>
32004 #if HAVE_PTHREADS < 7
32005 #include <errno.h>
32006 #endif
32007 #ifndef NULL
32008 #define NULL (void*)0
32009 #endif
32010
32011 static void *task(p)
32012         void *p;
32013 {
32014         return (void *) (p == NULL);
32015 }
32016
32017
32018 int main(argc, argv)
32019         int argc;
32020         char **argv;
32021 {
32022
32023         /* pthread test function */
32024 #ifndef PTHREAD_CREATE_DETACHED
32025 #define PTHREAD_CREATE_DETACHED 1
32026 #endif
32027         pthread_t t;
32028         int status;
32029         int detach = PTHREAD_CREATE_DETACHED;
32030
32031 #if HAVE_PTHREADS > 4
32032         /* Final pthreads */
32033         pthread_attr_t attr;
32034
32035         status = pthread_attr_init(&attr);
32036         if( status ) return status;
32037
32038 #if HAVE_PTHREADS < 7
32039         status = pthread_attr_setdetachstate(&attr, &detach);
32040         if( status < 0 ) status = errno;
32041 #else
32042         status = pthread_attr_setdetachstate(&attr, detach);
32043 #endif
32044         if( status ) return status;
32045         status = pthread_create( &t, &attr, task, NULL );
32046 #if HAVE_PTHREADS < 7
32047         if( status < 0 ) status = errno;
32048 #endif
32049         if( status ) return status;
32050 #else
32051         /* Draft 4 pthreads */
32052         status = pthread_create( &t, pthread_attr_default, task, NULL );
32053         if( status ) return errno;
32054
32055         /* give thread a chance to complete */
32056         /* it should remain joinable and hence detachable */
32057         sleep( 1 );
32058
32059         status = pthread_detach( &t );
32060         if( status ) return errno;
32061 #endif
32062
32063 #ifdef HAVE_LINUX_THREADS
32064         pthread_kill_other_threads_np();
32065 #endif
32066
32067         return 0;
32068
32069 }
32070
32071 _ACEOF
32072 rm -f conftest$ac_exeext
32073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32074   (eval $ac_link) 2>&5
32075   ac_status=$?
32076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32077   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32079   (eval $ac_try) 2>&5
32080   ac_status=$?
32081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32082   (exit $ac_status); }; }; then
32083   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
32084 else
32085   echo "$as_me: program exited with status $ac_status" >&5
32086 echo "$as_me: failed program was:" >&5
32087 sed 's/^/| /' conftest.$ac_ext >&5
32088
32089 ( exit $ac_status )
32090 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
32091 fi
32092 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32093 fi
32094
32095                 # restore the LIBS
32096                 LIBS="$ol_LIBS"
32097
32098 fi
32099 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
32100 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
32101
32102         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
32103                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
32104                 ol_link_threads=posix
32105         fi
32106 fi
32107
32108                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
32109 if test "$ol_link_threads" = no ; then
32110         # try -lpthread -lmach -lexc
32111         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
32112 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
32113 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
32114   echo $ECHO_N "(cached) $ECHO_C" >&6
32115 else
32116
32117                 # save the flags
32118                 ol_LIBS="$LIBS"
32119                 LIBS="-lpthread -lmach -lexc $LIBS"
32120
32121                 if test "$cross_compiling" = yes; then
32122   cat >conftest.$ac_ext <<_ACEOF
32123 /* confdefs.h.  */
32124 _ACEOF
32125 cat confdefs.h >>conftest.$ac_ext
32126 cat >>conftest.$ac_ext <<_ACEOF
32127 /* end confdefs.h.  */
32128
32129 /* pthread test headers */
32130 #include <pthread.h>
32131 #if HAVE_PTHREADS < 7
32132 #include <errno.h>
32133 #endif
32134 #ifndef NULL
32135 #define NULL (void*)0
32136 #endif
32137
32138 static void *task(p)
32139         void *p;
32140 {
32141         return (void *) (p == NULL);
32142 }
32143
32144 int
32145 main ()
32146 {
32147
32148         /* pthread test function */
32149 #ifndef PTHREAD_CREATE_DETACHED
32150 #define PTHREAD_CREATE_DETACHED 1
32151 #endif
32152         pthread_t t;
32153         int status;
32154         int detach = PTHREAD_CREATE_DETACHED;
32155
32156 #if HAVE_PTHREADS > 4
32157         /* Final pthreads */
32158         pthread_attr_t attr;
32159
32160         status = pthread_attr_init(&attr);
32161         if( status ) return status;
32162
32163 #if HAVE_PTHREADS < 7
32164         status = pthread_attr_setdetachstate(&attr, &detach);
32165         if( status < 0 ) status = errno;
32166 #else
32167         status = pthread_attr_setdetachstate(&attr, detach);
32168 #endif
32169         if( status ) return status;
32170         status = pthread_create( &t, &attr, task, NULL );
32171 #if HAVE_PTHREADS < 7
32172         if( status < 0 ) status = errno;
32173 #endif
32174         if( status ) return status;
32175 #else
32176         /* Draft 4 pthreads */
32177         status = pthread_create( &t, pthread_attr_default, task, NULL );
32178         if( status ) return errno;
32179
32180         /* give thread a chance to complete */
32181         /* it should remain joinable and hence detachable */
32182         sleep( 1 );
32183
32184         status = pthread_detach( &t );
32185         if( status ) return errno;
32186 #endif
32187
32188 #ifdef HAVE_LINUX_THREADS
32189         pthread_kill_other_threads_np();
32190 #endif
32191
32192         return 0;
32193
32194   ;
32195   return 0;
32196 }
32197 _ACEOF
32198 rm -f conftest.$ac_objext conftest$ac_exeext
32199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32200   (eval $ac_link) 2>conftest.er1
32201   ac_status=$?
32202   grep -v '^ *+' conftest.er1 >conftest.err
32203   rm -f conftest.er1
32204   cat conftest.err >&5
32205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32206   (exit $ac_status); } &&
32207          { ac_try='test -z "$ac_c_werror_flag"
32208                          || test ! -s conftest.err'
32209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32210   (eval $ac_try) 2>&5
32211   ac_status=$?
32212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32213   (exit $ac_status); }; } &&
32214          { ac_try='test -s conftest$ac_exeext'
32215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32216   (eval $ac_try) 2>&5
32217   ac_status=$?
32218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32219   (exit $ac_status); }; }; then
32220   ol_cv_pthread_lpthread_lmach_lexc=yes
32221 else
32222   echo "$as_me: failed program was:" >&5
32223 sed 's/^/| /' conftest.$ac_ext >&5
32224
32225 ol_cv_pthread_lpthread_lmach_lexc=no
32226 fi
32227 rm -f conftest.err conftest.$ac_objext \
32228       conftest$ac_exeext conftest.$ac_ext
32229 else
32230   cat >conftest.$ac_ext <<_ACEOF
32231 /* confdefs.h.  */
32232 _ACEOF
32233 cat confdefs.h >>conftest.$ac_ext
32234 cat >>conftest.$ac_ext <<_ACEOF
32235 /* end confdefs.h.  */
32236
32237 /* pthread test headers */
32238 #include <pthread.h>
32239 #if HAVE_PTHREADS < 7
32240 #include <errno.h>
32241 #endif
32242 #ifndef NULL
32243 #define NULL (void*)0
32244 #endif
32245
32246 static void *task(p)
32247         void *p;
32248 {
32249         return (void *) (p == NULL);
32250 }
32251
32252
32253 int main(argc, argv)
32254         int argc;
32255         char **argv;
32256 {
32257
32258         /* pthread test function */
32259 #ifndef PTHREAD_CREATE_DETACHED
32260 #define PTHREAD_CREATE_DETACHED 1
32261 #endif
32262         pthread_t t;
32263         int status;
32264         int detach = PTHREAD_CREATE_DETACHED;
32265
32266 #if HAVE_PTHREADS > 4
32267         /* Final pthreads */
32268         pthread_attr_t attr;
32269
32270         status = pthread_attr_init(&attr);
32271         if( status ) return status;
32272
32273 #if HAVE_PTHREADS < 7
32274         status = pthread_attr_setdetachstate(&attr, &detach);
32275         if( status < 0 ) status = errno;
32276 #else
32277         status = pthread_attr_setdetachstate(&attr, detach);
32278 #endif
32279         if( status ) return status;
32280         status = pthread_create( &t, &attr, task, NULL );
32281 #if HAVE_PTHREADS < 7
32282         if( status < 0 ) status = errno;
32283 #endif
32284         if( status ) return status;
32285 #else
32286         /* Draft 4 pthreads */
32287         status = pthread_create( &t, pthread_attr_default, task, NULL );
32288         if( status ) return errno;
32289
32290         /* give thread a chance to complete */
32291         /* it should remain joinable and hence detachable */
32292         sleep( 1 );
32293
32294         status = pthread_detach( &t );
32295         if( status ) return errno;
32296 #endif
32297
32298 #ifdef HAVE_LINUX_THREADS
32299         pthread_kill_other_threads_np();
32300 #endif
32301
32302         return 0;
32303
32304 }
32305
32306 _ACEOF
32307 rm -f conftest$ac_exeext
32308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32309   (eval $ac_link) 2>&5
32310   ac_status=$?
32311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32314   (eval $ac_try) 2>&5
32315   ac_status=$?
32316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317   (exit $ac_status); }; }; then
32318   ol_cv_pthread_lpthread_lmach_lexc=yes
32319 else
32320   echo "$as_me: program exited with status $ac_status" >&5
32321 echo "$as_me: failed program was:" >&5
32322 sed 's/^/| /' conftest.$ac_ext >&5
32323
32324 ( exit $ac_status )
32325 ol_cv_pthread_lpthread_lmach_lexc=no
32326 fi
32327 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32328 fi
32329
32330                 # restore the LIBS
32331                 LIBS="$ol_LIBS"
32332
32333 fi
32334 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32335 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32336
32337         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32338                 ol_link_pthreads="-lpthread -lmach -lexc"
32339                 ol_link_threads=posix
32340         fi
32341 fi
32342
32343
32344                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32345 if test "$ol_link_threads" = no ; then
32346         # try -lpthread -Wl,-woff,85
32347         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32348 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32349 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32350   echo $ECHO_N "(cached) $ECHO_C" >&6
32351 else
32352
32353                 # save the flags
32354                 ol_LIBS="$LIBS"
32355                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32356
32357                 if test "$cross_compiling" = yes; then
32358   cat >conftest.$ac_ext <<_ACEOF
32359 /* confdefs.h.  */
32360 _ACEOF
32361 cat confdefs.h >>conftest.$ac_ext
32362 cat >>conftest.$ac_ext <<_ACEOF
32363 /* end confdefs.h.  */
32364
32365 /* pthread test headers */
32366 #include <pthread.h>
32367 #if HAVE_PTHREADS < 7
32368 #include <errno.h>
32369 #endif
32370 #ifndef NULL
32371 #define NULL (void*)0
32372 #endif
32373
32374 static void *task(p)
32375         void *p;
32376 {
32377         return (void *) (p == NULL);
32378 }
32379
32380 int
32381 main ()
32382 {
32383
32384         /* pthread test function */
32385 #ifndef PTHREAD_CREATE_DETACHED
32386 #define PTHREAD_CREATE_DETACHED 1
32387 #endif
32388         pthread_t t;
32389         int status;
32390         int detach = PTHREAD_CREATE_DETACHED;
32391
32392 #if HAVE_PTHREADS > 4
32393         /* Final pthreads */
32394         pthread_attr_t attr;
32395
32396         status = pthread_attr_init(&attr);
32397         if( status ) return status;
32398
32399 #if HAVE_PTHREADS < 7
32400         status = pthread_attr_setdetachstate(&attr, &detach);
32401         if( status < 0 ) status = errno;
32402 #else
32403         status = pthread_attr_setdetachstate(&attr, detach);
32404 #endif
32405         if( status ) return status;
32406         status = pthread_create( &t, &attr, task, NULL );
32407 #if HAVE_PTHREADS < 7
32408         if( status < 0 ) status = errno;
32409 #endif
32410         if( status ) return status;
32411 #else
32412         /* Draft 4 pthreads */
32413         status = pthread_create( &t, pthread_attr_default, task, NULL );
32414         if( status ) return errno;
32415
32416         /* give thread a chance to complete */
32417         /* it should remain joinable and hence detachable */
32418         sleep( 1 );
32419
32420         status = pthread_detach( &t );
32421         if( status ) return errno;
32422 #endif
32423
32424 #ifdef HAVE_LINUX_THREADS
32425         pthread_kill_other_threads_np();
32426 #endif
32427
32428         return 0;
32429
32430   ;
32431   return 0;
32432 }
32433 _ACEOF
32434 rm -f conftest.$ac_objext conftest$ac_exeext
32435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32436   (eval $ac_link) 2>conftest.er1
32437   ac_status=$?
32438   grep -v '^ *+' conftest.er1 >conftest.err
32439   rm -f conftest.er1
32440   cat conftest.err >&5
32441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32442   (exit $ac_status); } &&
32443          { ac_try='test -z "$ac_c_werror_flag"
32444                          || test ! -s conftest.err'
32445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32446   (eval $ac_try) 2>&5
32447   ac_status=$?
32448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32449   (exit $ac_status); }; } &&
32450          { ac_try='test -s conftest$ac_exeext'
32451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32452   (eval $ac_try) 2>&5
32453   ac_status=$?
32454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32455   (exit $ac_status); }; }; then
32456   ol_cv_pthread_lib_lpthread_woff=yes
32457 else
32458   echo "$as_me: failed program was:" >&5
32459 sed 's/^/| /' conftest.$ac_ext >&5
32460
32461 ol_cv_pthread_lib_lpthread_woff=no
32462 fi
32463 rm -f conftest.err conftest.$ac_objext \
32464       conftest$ac_exeext conftest.$ac_ext
32465 else
32466   cat >conftest.$ac_ext <<_ACEOF
32467 /* confdefs.h.  */
32468 _ACEOF
32469 cat confdefs.h >>conftest.$ac_ext
32470 cat >>conftest.$ac_ext <<_ACEOF
32471 /* end confdefs.h.  */
32472
32473 /* pthread test headers */
32474 #include <pthread.h>
32475 #if HAVE_PTHREADS < 7
32476 #include <errno.h>
32477 #endif
32478 #ifndef NULL
32479 #define NULL (void*)0
32480 #endif
32481
32482 static void *task(p)
32483         void *p;
32484 {
32485         return (void *) (p == NULL);
32486 }
32487
32488
32489 int main(argc, argv)
32490         int argc;
32491         char **argv;
32492 {
32493
32494         /* pthread test function */
32495 #ifndef PTHREAD_CREATE_DETACHED
32496 #define PTHREAD_CREATE_DETACHED 1
32497 #endif
32498         pthread_t t;
32499         int status;
32500         int detach = PTHREAD_CREATE_DETACHED;
32501
32502 #if HAVE_PTHREADS > 4
32503         /* Final pthreads */
32504         pthread_attr_t attr;
32505
32506         status = pthread_attr_init(&attr);
32507         if( status ) return status;
32508
32509 #if HAVE_PTHREADS < 7
32510         status = pthread_attr_setdetachstate(&attr, &detach);
32511         if( status < 0 ) status = errno;
32512 #else
32513         status = pthread_attr_setdetachstate(&attr, detach);
32514 #endif
32515         if( status ) return status;
32516         status = pthread_create( &t, &attr, task, NULL );
32517 #if HAVE_PTHREADS < 7
32518         if( status < 0 ) status = errno;
32519 #endif
32520         if( status ) return status;
32521 #else
32522         /* Draft 4 pthreads */
32523         status = pthread_create( &t, pthread_attr_default, task, NULL );
32524         if( status ) return errno;
32525
32526         /* give thread a chance to complete */
32527         /* it should remain joinable and hence detachable */
32528         sleep( 1 );
32529
32530         status = pthread_detach( &t );
32531         if( status ) return errno;
32532 #endif
32533
32534 #ifdef HAVE_LINUX_THREADS
32535         pthread_kill_other_threads_np();
32536 #endif
32537
32538         return 0;
32539
32540 }
32541
32542 _ACEOF
32543 rm -f conftest$ac_exeext
32544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32545   (eval $ac_link) 2>&5
32546   ac_status=$?
32547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32550   (eval $ac_try) 2>&5
32551   ac_status=$?
32552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553   (exit $ac_status); }; }; then
32554   ol_cv_pthread_lib_lpthread_woff=yes
32555 else
32556   echo "$as_me: program exited with status $ac_status" >&5
32557 echo "$as_me: failed program was:" >&5
32558 sed 's/^/| /' conftest.$ac_ext >&5
32559
32560 ( exit $ac_status )
32561 ol_cv_pthread_lib_lpthread_woff=no
32562 fi
32563 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32564 fi
32565
32566                 # restore the LIBS
32567                 LIBS="$ol_LIBS"
32568
32569 fi
32570 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32571 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32572
32573         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32574                 ol_link_pthreads="-lpthread -Wl,-woff,85"
32575                 ol_link_threads=posix
32576         fi
32577 fi
32578
32579
32580                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32581 if test "$ol_link_threads" = no ; then
32582         # try -lpthread
32583         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32584 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32585 if test "${ol_cv_pthread_lpthread+set}" = set; then
32586   echo $ECHO_N "(cached) $ECHO_C" >&6
32587 else
32588
32589                 # save the flags
32590                 ol_LIBS="$LIBS"
32591                 LIBS="-lpthread $LIBS"
32592
32593                 if test "$cross_compiling" = yes; then
32594   cat >conftest.$ac_ext <<_ACEOF
32595 /* confdefs.h.  */
32596 _ACEOF
32597 cat confdefs.h >>conftest.$ac_ext
32598 cat >>conftest.$ac_ext <<_ACEOF
32599 /* end confdefs.h.  */
32600
32601 /* pthread test headers */
32602 #include <pthread.h>
32603 #if HAVE_PTHREADS < 7
32604 #include <errno.h>
32605 #endif
32606 #ifndef NULL
32607 #define NULL (void*)0
32608 #endif
32609
32610 static void *task(p)
32611         void *p;
32612 {
32613         return (void *) (p == NULL);
32614 }
32615
32616 int
32617 main ()
32618 {
32619
32620         /* pthread test function */
32621 #ifndef PTHREAD_CREATE_DETACHED
32622 #define PTHREAD_CREATE_DETACHED 1
32623 #endif
32624         pthread_t t;
32625         int status;
32626         int detach = PTHREAD_CREATE_DETACHED;
32627
32628 #if HAVE_PTHREADS > 4
32629         /* Final pthreads */
32630         pthread_attr_t attr;
32631
32632         status = pthread_attr_init(&attr);
32633         if( status ) return status;
32634
32635 #if HAVE_PTHREADS < 7
32636         status = pthread_attr_setdetachstate(&attr, &detach);
32637         if( status < 0 ) status = errno;
32638 #else
32639         status = pthread_attr_setdetachstate(&attr, detach);
32640 #endif
32641         if( status ) return status;
32642         status = pthread_create( &t, &attr, task, NULL );
32643 #if HAVE_PTHREADS < 7
32644         if( status < 0 ) status = errno;
32645 #endif
32646         if( status ) return status;
32647 #else
32648         /* Draft 4 pthreads */
32649         status = pthread_create( &t, pthread_attr_default, task, NULL );
32650         if( status ) return errno;
32651
32652         /* give thread a chance to complete */
32653         /* it should remain joinable and hence detachable */
32654         sleep( 1 );
32655
32656         status = pthread_detach( &t );
32657         if( status ) return errno;
32658 #endif
32659
32660 #ifdef HAVE_LINUX_THREADS
32661         pthread_kill_other_threads_np();
32662 #endif
32663
32664         return 0;
32665
32666   ;
32667   return 0;
32668 }
32669 _ACEOF
32670 rm -f conftest.$ac_objext conftest$ac_exeext
32671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32672   (eval $ac_link) 2>conftest.er1
32673   ac_status=$?
32674   grep -v '^ *+' conftest.er1 >conftest.err
32675   rm -f conftest.er1
32676   cat conftest.err >&5
32677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32678   (exit $ac_status); } &&
32679          { ac_try='test -z "$ac_c_werror_flag"
32680                          || test ! -s conftest.err'
32681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32682   (eval $ac_try) 2>&5
32683   ac_status=$?
32684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32685   (exit $ac_status); }; } &&
32686          { ac_try='test -s conftest$ac_exeext'
32687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32688   (eval $ac_try) 2>&5
32689   ac_status=$?
32690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691   (exit $ac_status); }; }; then
32692   ol_cv_pthread_lpthread=yes
32693 else
32694   echo "$as_me: failed program was:" >&5
32695 sed 's/^/| /' conftest.$ac_ext >&5
32696
32697 ol_cv_pthread_lpthread=no
32698 fi
32699 rm -f conftest.err conftest.$ac_objext \
32700       conftest$ac_exeext conftest.$ac_ext
32701 else
32702   cat >conftest.$ac_ext <<_ACEOF
32703 /* confdefs.h.  */
32704 _ACEOF
32705 cat confdefs.h >>conftest.$ac_ext
32706 cat >>conftest.$ac_ext <<_ACEOF
32707 /* end confdefs.h.  */
32708
32709 /* pthread test headers */
32710 #include <pthread.h>
32711 #if HAVE_PTHREADS < 7
32712 #include <errno.h>
32713 #endif
32714 #ifndef NULL
32715 #define NULL (void*)0
32716 #endif
32717
32718 static void *task(p)
32719         void *p;
32720 {
32721         return (void *) (p == NULL);
32722 }
32723
32724
32725 int main(argc, argv)
32726         int argc;
32727         char **argv;
32728 {
32729
32730         /* pthread test function */
32731 #ifndef PTHREAD_CREATE_DETACHED
32732 #define PTHREAD_CREATE_DETACHED 1
32733 #endif
32734         pthread_t t;
32735         int status;
32736         int detach = PTHREAD_CREATE_DETACHED;
32737
32738 #if HAVE_PTHREADS > 4
32739         /* Final pthreads */
32740         pthread_attr_t attr;
32741
32742         status = pthread_attr_init(&attr);
32743         if( status ) return status;
32744
32745 #if HAVE_PTHREADS < 7
32746         status = pthread_attr_setdetachstate(&attr, &detach);
32747         if( status < 0 ) status = errno;
32748 #else
32749         status = pthread_attr_setdetachstate(&attr, detach);
32750 #endif
32751         if( status ) return status;
32752         status = pthread_create( &t, &attr, task, NULL );
32753 #if HAVE_PTHREADS < 7
32754         if( status < 0 ) status = errno;
32755 #endif
32756         if( status ) return status;
32757 #else
32758         /* Draft 4 pthreads */
32759         status = pthread_create( &t, pthread_attr_default, task, NULL );
32760         if( status ) return errno;
32761
32762         /* give thread a chance to complete */
32763         /* it should remain joinable and hence detachable */
32764         sleep( 1 );
32765
32766         status = pthread_detach( &t );
32767         if( status ) return errno;
32768 #endif
32769
32770 #ifdef HAVE_LINUX_THREADS
32771         pthread_kill_other_threads_np();
32772 #endif
32773
32774         return 0;
32775
32776 }
32777
32778 _ACEOF
32779 rm -f conftest$ac_exeext
32780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32781   (eval $ac_link) 2>&5
32782   ac_status=$?
32783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32786   (eval $ac_try) 2>&5
32787   ac_status=$?
32788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32789   (exit $ac_status); }; }; then
32790   ol_cv_pthread_lpthread=yes
32791 else
32792   echo "$as_me: program exited with status $ac_status" >&5
32793 echo "$as_me: failed program was:" >&5
32794 sed 's/^/| /' conftest.$ac_ext >&5
32795
32796 ( exit $ac_status )
32797 ol_cv_pthread_lpthread=no
32798 fi
32799 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32800 fi
32801
32802                 # restore the LIBS
32803                 LIBS="$ol_LIBS"
32804
32805 fi
32806 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32807 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32808
32809         if test $ol_cv_pthread_lpthread = yes ; then
32810                 ol_link_pthreads="-lpthread"
32811                 ol_link_threads=posix
32812         fi
32813 fi
32814
32815                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32816 if test "$ol_link_threads" = no ; then
32817         # try -lc_r
32818         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32819 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32820 if test "${ol_cv_pthread_lc_r+set}" = set; then
32821   echo $ECHO_N "(cached) $ECHO_C" >&6
32822 else
32823
32824                 # save the flags
32825                 ol_LIBS="$LIBS"
32826                 LIBS="-lc_r $LIBS"
32827
32828                 if test "$cross_compiling" = yes; then
32829   cat >conftest.$ac_ext <<_ACEOF
32830 /* confdefs.h.  */
32831 _ACEOF
32832 cat confdefs.h >>conftest.$ac_ext
32833 cat >>conftest.$ac_ext <<_ACEOF
32834 /* end confdefs.h.  */
32835
32836 /* pthread test headers */
32837 #include <pthread.h>
32838 #if HAVE_PTHREADS < 7
32839 #include <errno.h>
32840 #endif
32841 #ifndef NULL
32842 #define NULL (void*)0
32843 #endif
32844
32845 static void *task(p)
32846         void *p;
32847 {
32848         return (void *) (p == NULL);
32849 }
32850
32851 int
32852 main ()
32853 {
32854
32855         /* pthread test function */
32856 #ifndef PTHREAD_CREATE_DETACHED
32857 #define PTHREAD_CREATE_DETACHED 1
32858 #endif
32859         pthread_t t;
32860         int status;
32861         int detach = PTHREAD_CREATE_DETACHED;
32862
32863 #if HAVE_PTHREADS > 4
32864         /* Final pthreads */
32865         pthread_attr_t attr;
32866
32867         status = pthread_attr_init(&attr);
32868         if( status ) return status;
32869
32870 #if HAVE_PTHREADS < 7
32871         status = pthread_attr_setdetachstate(&attr, &detach);
32872         if( status < 0 ) status = errno;
32873 #else
32874         status = pthread_attr_setdetachstate(&attr, detach);
32875 #endif
32876         if( status ) return status;
32877         status = pthread_create( &t, &attr, task, NULL );
32878 #if HAVE_PTHREADS < 7
32879         if( status < 0 ) status = errno;
32880 #endif
32881         if( status ) return status;
32882 #else
32883         /* Draft 4 pthreads */
32884         status = pthread_create( &t, pthread_attr_default, task, NULL );
32885         if( status ) return errno;
32886
32887         /* give thread a chance to complete */
32888         /* it should remain joinable and hence detachable */
32889         sleep( 1 );
32890
32891         status = pthread_detach( &t );
32892         if( status ) return errno;
32893 #endif
32894
32895 #ifdef HAVE_LINUX_THREADS
32896         pthread_kill_other_threads_np();
32897 #endif
32898
32899         return 0;
32900
32901   ;
32902   return 0;
32903 }
32904 _ACEOF
32905 rm -f conftest.$ac_objext conftest$ac_exeext
32906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32907   (eval $ac_link) 2>conftest.er1
32908   ac_status=$?
32909   grep -v '^ *+' conftest.er1 >conftest.err
32910   rm -f conftest.er1
32911   cat conftest.err >&5
32912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913   (exit $ac_status); } &&
32914          { ac_try='test -z "$ac_c_werror_flag"
32915                          || test ! -s conftest.err'
32916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32917   (eval $ac_try) 2>&5
32918   ac_status=$?
32919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32920   (exit $ac_status); }; } &&
32921          { ac_try='test -s conftest$ac_exeext'
32922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32923   (eval $ac_try) 2>&5
32924   ac_status=$?
32925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32926   (exit $ac_status); }; }; then
32927   ol_cv_pthread_lc_r=yes
32928 else
32929   echo "$as_me: failed program was:" >&5
32930 sed 's/^/| /' conftest.$ac_ext >&5
32931
32932 ol_cv_pthread_lc_r=no
32933 fi
32934 rm -f conftest.err conftest.$ac_objext \
32935       conftest$ac_exeext conftest.$ac_ext
32936 else
32937   cat >conftest.$ac_ext <<_ACEOF
32938 /* confdefs.h.  */
32939 _ACEOF
32940 cat confdefs.h >>conftest.$ac_ext
32941 cat >>conftest.$ac_ext <<_ACEOF
32942 /* end confdefs.h.  */
32943
32944 /* pthread test headers */
32945 #include <pthread.h>
32946 #if HAVE_PTHREADS < 7
32947 #include <errno.h>
32948 #endif
32949 #ifndef NULL
32950 #define NULL (void*)0
32951 #endif
32952
32953 static void *task(p)
32954         void *p;
32955 {
32956         return (void *) (p == NULL);
32957 }
32958
32959
32960 int main(argc, argv)
32961         int argc;
32962         char **argv;
32963 {
32964
32965         /* pthread test function */
32966 #ifndef PTHREAD_CREATE_DETACHED
32967 #define PTHREAD_CREATE_DETACHED 1
32968 #endif
32969         pthread_t t;
32970         int status;
32971         int detach = PTHREAD_CREATE_DETACHED;
32972
32973 #if HAVE_PTHREADS > 4
32974         /* Final pthreads */
32975         pthread_attr_t attr;
32976
32977         status = pthread_attr_init(&attr);
32978         if( status ) return status;
32979
32980 #if HAVE_PTHREADS < 7
32981         status = pthread_attr_setdetachstate(&attr, &detach);
32982         if( status < 0 ) status = errno;
32983 #else
32984         status = pthread_attr_setdetachstate(&attr, detach);
32985 #endif
32986         if( status ) return status;
32987         status = pthread_create( &t, &attr, task, NULL );
32988 #if HAVE_PTHREADS < 7
32989         if( status < 0 ) status = errno;
32990 #endif
32991         if( status ) return status;
32992 #else
32993         /* Draft 4 pthreads */
32994         status = pthread_create( &t, pthread_attr_default, task, NULL );
32995         if( status ) return errno;
32996
32997         /* give thread a chance to complete */
32998         /* it should remain joinable and hence detachable */
32999         sleep( 1 );
33000
33001         status = pthread_detach( &t );
33002         if( status ) return errno;
33003 #endif
33004
33005 #ifdef HAVE_LINUX_THREADS
33006         pthread_kill_other_threads_np();
33007 #endif
33008
33009         return 0;
33010
33011 }
33012
33013 _ACEOF
33014 rm -f conftest$ac_exeext
33015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33016   (eval $ac_link) 2>&5
33017   ac_status=$?
33018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33021   (eval $ac_try) 2>&5
33022   ac_status=$?
33023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33024   (exit $ac_status); }; }; then
33025   ol_cv_pthread_lc_r=yes
33026 else
33027   echo "$as_me: program exited with status $ac_status" >&5
33028 echo "$as_me: failed program was:" >&5
33029 sed 's/^/| /' conftest.$ac_ext >&5
33030
33031 ( exit $ac_status )
33032 ol_cv_pthread_lc_r=no
33033 fi
33034 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33035 fi
33036
33037                 # restore the LIBS
33038                 LIBS="$ol_LIBS"
33039
33040 fi
33041 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
33042 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
33043
33044         if test $ol_cv_pthread_lc_r = yes ; then
33045                 ol_link_pthreads="-lc_r"
33046                 ol_link_threads=posix
33047         fi
33048 fi
33049
33050
33051                 # Pthread try link: -threads (ol_cv_pthread_threads)
33052 if test "$ol_link_threads" = no ; then
33053         # try -threads
33054         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
33055 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
33056 if test "${ol_cv_pthread_threads+set}" = set; then
33057   echo $ECHO_N "(cached) $ECHO_C" >&6
33058 else
33059
33060                 # save the flags
33061                 ol_LIBS="$LIBS"
33062                 LIBS="-threads $LIBS"
33063
33064                 if test "$cross_compiling" = yes; then
33065   cat >conftest.$ac_ext <<_ACEOF
33066 /* confdefs.h.  */
33067 _ACEOF
33068 cat confdefs.h >>conftest.$ac_ext
33069 cat >>conftest.$ac_ext <<_ACEOF
33070 /* end confdefs.h.  */
33071
33072 /* pthread test headers */
33073 #include <pthread.h>
33074 #if HAVE_PTHREADS < 7
33075 #include <errno.h>
33076 #endif
33077 #ifndef NULL
33078 #define NULL (void*)0
33079 #endif
33080
33081 static void *task(p)
33082         void *p;
33083 {
33084         return (void *) (p == NULL);
33085 }
33086
33087 int
33088 main ()
33089 {
33090
33091         /* pthread test function */
33092 #ifndef PTHREAD_CREATE_DETACHED
33093 #define PTHREAD_CREATE_DETACHED 1
33094 #endif
33095         pthread_t t;
33096         int status;
33097         int detach = PTHREAD_CREATE_DETACHED;
33098
33099 #if HAVE_PTHREADS > 4
33100         /* Final pthreads */
33101         pthread_attr_t attr;
33102
33103         status = pthread_attr_init(&attr);
33104         if( status ) return status;
33105
33106 #if HAVE_PTHREADS < 7
33107         status = pthread_attr_setdetachstate(&attr, &detach);
33108         if( status < 0 ) status = errno;
33109 #else
33110         status = pthread_attr_setdetachstate(&attr, detach);
33111 #endif
33112         if( status ) return status;
33113         status = pthread_create( &t, &attr, task, NULL );
33114 #if HAVE_PTHREADS < 7
33115         if( status < 0 ) status = errno;
33116 #endif
33117         if( status ) return status;
33118 #else
33119         /* Draft 4 pthreads */
33120         status = pthread_create( &t, pthread_attr_default, task, NULL );
33121         if( status ) return errno;
33122
33123         /* give thread a chance to complete */
33124         /* it should remain joinable and hence detachable */
33125         sleep( 1 );
33126
33127         status = pthread_detach( &t );
33128         if( status ) return errno;
33129 #endif
33130
33131 #ifdef HAVE_LINUX_THREADS
33132         pthread_kill_other_threads_np();
33133 #endif
33134
33135         return 0;
33136
33137   ;
33138   return 0;
33139 }
33140 _ACEOF
33141 rm -f conftest.$ac_objext conftest$ac_exeext
33142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33143   (eval $ac_link) 2>conftest.er1
33144   ac_status=$?
33145   grep -v '^ *+' conftest.er1 >conftest.err
33146   rm -f conftest.er1
33147   cat conftest.err >&5
33148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33149   (exit $ac_status); } &&
33150          { ac_try='test -z "$ac_c_werror_flag"
33151                          || test ! -s conftest.err'
33152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33153   (eval $ac_try) 2>&5
33154   ac_status=$?
33155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156   (exit $ac_status); }; } &&
33157          { ac_try='test -s conftest$ac_exeext'
33158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33159   (eval $ac_try) 2>&5
33160   ac_status=$?
33161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33162   (exit $ac_status); }; }; then
33163   ol_cv_pthread_threads=yes
33164 else
33165   echo "$as_me: failed program was:" >&5
33166 sed 's/^/| /' conftest.$ac_ext >&5
33167
33168 ol_cv_pthread_threads=no
33169 fi
33170 rm -f conftest.err conftest.$ac_objext \
33171       conftest$ac_exeext conftest.$ac_ext
33172 else
33173   cat >conftest.$ac_ext <<_ACEOF
33174 /* confdefs.h.  */
33175 _ACEOF
33176 cat confdefs.h >>conftest.$ac_ext
33177 cat >>conftest.$ac_ext <<_ACEOF
33178 /* end confdefs.h.  */
33179
33180 /* pthread test headers */
33181 #include <pthread.h>
33182 #if HAVE_PTHREADS < 7
33183 #include <errno.h>
33184 #endif
33185 #ifndef NULL
33186 #define NULL (void*)0
33187 #endif
33188
33189 static void *task(p)
33190         void *p;
33191 {
33192         return (void *) (p == NULL);
33193 }
33194
33195
33196 int main(argc, argv)
33197         int argc;
33198         char **argv;
33199 {
33200
33201         /* pthread test function */
33202 #ifndef PTHREAD_CREATE_DETACHED
33203 #define PTHREAD_CREATE_DETACHED 1
33204 #endif
33205         pthread_t t;
33206         int status;
33207         int detach = PTHREAD_CREATE_DETACHED;
33208
33209 #if HAVE_PTHREADS > 4
33210         /* Final pthreads */
33211         pthread_attr_t attr;
33212
33213         status = pthread_attr_init(&attr);
33214         if( status ) return status;
33215
33216 #if HAVE_PTHREADS < 7
33217         status = pthread_attr_setdetachstate(&attr, &detach);
33218         if( status < 0 ) status = errno;
33219 #else
33220         status = pthread_attr_setdetachstate(&attr, detach);
33221 #endif
33222         if( status ) return status;
33223         status = pthread_create( &t, &attr, task, NULL );
33224 #if HAVE_PTHREADS < 7
33225         if( status < 0 ) status = errno;
33226 #endif
33227         if( status ) return status;
33228 #else
33229         /* Draft 4 pthreads */
33230         status = pthread_create( &t, pthread_attr_default, task, NULL );
33231         if( status ) return errno;
33232
33233         /* give thread a chance to complete */
33234         /* it should remain joinable and hence detachable */
33235         sleep( 1 );
33236
33237         status = pthread_detach( &t );
33238         if( status ) return errno;
33239 #endif
33240
33241 #ifdef HAVE_LINUX_THREADS
33242         pthread_kill_other_threads_np();
33243 #endif
33244
33245         return 0;
33246
33247 }
33248
33249 _ACEOF
33250 rm -f conftest$ac_exeext
33251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33252   (eval $ac_link) 2>&5
33253   ac_status=$?
33254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33255   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33257   (eval $ac_try) 2>&5
33258   ac_status=$?
33259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33260   (exit $ac_status); }; }; then
33261   ol_cv_pthread_threads=yes
33262 else
33263   echo "$as_me: program exited with status $ac_status" >&5
33264 echo "$as_me: failed program was:" >&5
33265 sed 's/^/| /' conftest.$ac_ext >&5
33266
33267 ( exit $ac_status )
33268 ol_cv_pthread_threads=no
33269 fi
33270 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33271 fi
33272
33273                 # restore the LIBS
33274                 LIBS="$ol_LIBS"
33275
33276 fi
33277 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33278 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33279
33280         if test $ol_cv_pthread_threads = yes ; then
33281                 ol_link_pthreads="-threads"
33282                 ol_link_threads=posix
33283         fi
33284 fi
33285
33286
33287                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33288 if test "$ol_link_threads" = no ; then
33289         # try -lpthreads -lmach -lexc -lc_r
33290         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33291 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33292 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33293   echo $ECHO_N "(cached) $ECHO_C" >&6
33294 else
33295
33296                 # save the flags
33297                 ol_LIBS="$LIBS"
33298                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33299
33300                 if test "$cross_compiling" = yes; then
33301   cat >conftest.$ac_ext <<_ACEOF
33302 /* confdefs.h.  */
33303 _ACEOF
33304 cat confdefs.h >>conftest.$ac_ext
33305 cat >>conftest.$ac_ext <<_ACEOF
33306 /* end confdefs.h.  */
33307
33308 /* pthread test headers */
33309 #include <pthread.h>
33310 #if HAVE_PTHREADS < 7
33311 #include <errno.h>
33312 #endif
33313 #ifndef NULL
33314 #define NULL (void*)0
33315 #endif
33316
33317 static void *task(p)
33318         void *p;
33319 {
33320         return (void *) (p == NULL);
33321 }
33322
33323 int
33324 main ()
33325 {
33326
33327         /* pthread test function */
33328 #ifndef PTHREAD_CREATE_DETACHED
33329 #define PTHREAD_CREATE_DETACHED 1
33330 #endif
33331         pthread_t t;
33332         int status;
33333         int detach = PTHREAD_CREATE_DETACHED;
33334
33335 #if HAVE_PTHREADS > 4
33336         /* Final pthreads */
33337         pthread_attr_t attr;
33338
33339         status = pthread_attr_init(&attr);
33340         if( status ) return status;
33341
33342 #if HAVE_PTHREADS < 7
33343         status = pthread_attr_setdetachstate(&attr, &detach);
33344         if( status < 0 ) status = errno;
33345 #else
33346         status = pthread_attr_setdetachstate(&attr, detach);
33347 #endif
33348         if( status ) return status;
33349         status = pthread_create( &t, &attr, task, NULL );
33350 #if HAVE_PTHREADS < 7
33351         if( status < 0 ) status = errno;
33352 #endif
33353         if( status ) return status;
33354 #else
33355         /* Draft 4 pthreads */
33356         status = pthread_create( &t, pthread_attr_default, task, NULL );
33357         if( status ) return errno;
33358
33359         /* give thread a chance to complete */
33360         /* it should remain joinable and hence detachable */
33361         sleep( 1 );
33362
33363         status = pthread_detach( &t );
33364         if( status ) return errno;
33365 #endif
33366
33367 #ifdef HAVE_LINUX_THREADS
33368         pthread_kill_other_threads_np();
33369 #endif
33370
33371         return 0;
33372
33373   ;
33374   return 0;
33375 }
33376 _ACEOF
33377 rm -f conftest.$ac_objext conftest$ac_exeext
33378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33379   (eval $ac_link) 2>conftest.er1
33380   ac_status=$?
33381   grep -v '^ *+' conftest.er1 >conftest.err
33382   rm -f conftest.er1
33383   cat conftest.err >&5
33384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33385   (exit $ac_status); } &&
33386          { ac_try='test -z "$ac_c_werror_flag"
33387                          || test ! -s conftest.err'
33388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33389   (eval $ac_try) 2>&5
33390   ac_status=$?
33391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33392   (exit $ac_status); }; } &&
33393          { ac_try='test -s conftest$ac_exeext'
33394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33395   (eval $ac_try) 2>&5
33396   ac_status=$?
33397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33398   (exit $ac_status); }; }; then
33399   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33400 else
33401   echo "$as_me: failed program was:" >&5
33402 sed 's/^/| /' conftest.$ac_ext >&5
33403
33404 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33405 fi
33406 rm -f conftest.err conftest.$ac_objext \
33407       conftest$ac_exeext conftest.$ac_ext
33408 else
33409   cat >conftest.$ac_ext <<_ACEOF
33410 /* confdefs.h.  */
33411 _ACEOF
33412 cat confdefs.h >>conftest.$ac_ext
33413 cat >>conftest.$ac_ext <<_ACEOF
33414 /* end confdefs.h.  */
33415
33416 /* pthread test headers */
33417 #include <pthread.h>
33418 #if HAVE_PTHREADS < 7
33419 #include <errno.h>
33420 #endif
33421 #ifndef NULL
33422 #define NULL (void*)0
33423 #endif
33424
33425 static void *task(p)
33426         void *p;
33427 {
33428         return (void *) (p == NULL);
33429 }
33430
33431
33432 int main(argc, argv)
33433         int argc;
33434         char **argv;
33435 {
33436
33437         /* pthread test function */
33438 #ifndef PTHREAD_CREATE_DETACHED
33439 #define PTHREAD_CREATE_DETACHED 1
33440 #endif
33441         pthread_t t;
33442         int status;
33443         int detach = PTHREAD_CREATE_DETACHED;
33444
33445 #if HAVE_PTHREADS > 4
33446         /* Final pthreads */
33447         pthread_attr_t attr;
33448
33449         status = pthread_attr_init(&attr);
33450         if( status ) return status;
33451
33452 #if HAVE_PTHREADS < 7
33453         status = pthread_attr_setdetachstate(&attr, &detach);
33454         if( status < 0 ) status = errno;
33455 #else
33456         status = pthread_attr_setdetachstate(&attr, detach);
33457 #endif
33458         if( status ) return status;
33459         status = pthread_create( &t, &attr, task, NULL );
33460 #if HAVE_PTHREADS < 7
33461         if( status < 0 ) status = errno;
33462 #endif
33463         if( status ) return status;
33464 #else
33465         /* Draft 4 pthreads */
33466         status = pthread_create( &t, pthread_attr_default, task, NULL );
33467         if( status ) return errno;
33468
33469         /* give thread a chance to complete */
33470         /* it should remain joinable and hence detachable */
33471         sleep( 1 );
33472
33473         status = pthread_detach( &t );
33474         if( status ) return errno;
33475 #endif
33476
33477 #ifdef HAVE_LINUX_THREADS
33478         pthread_kill_other_threads_np();
33479 #endif
33480
33481         return 0;
33482
33483 }
33484
33485 _ACEOF
33486 rm -f conftest$ac_exeext
33487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33488   (eval $ac_link) 2>&5
33489   ac_status=$?
33490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33491   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33493   (eval $ac_try) 2>&5
33494   ac_status=$?
33495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33496   (exit $ac_status); }; }; then
33497   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33498 else
33499   echo "$as_me: program exited with status $ac_status" >&5
33500 echo "$as_me: failed program was:" >&5
33501 sed 's/^/| /' conftest.$ac_ext >&5
33502
33503 ( exit $ac_status )
33504 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33505 fi
33506 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33507 fi
33508
33509                 # restore the LIBS
33510                 LIBS="$ol_LIBS"
33511
33512 fi
33513 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33514 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33515
33516         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33517                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33518                 ol_link_threads=posix
33519         fi
33520 fi
33521
33522                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33523 if test "$ol_link_threads" = no ; then
33524         # try -lpthreads -lmach -lexc
33525         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33526 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33527 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33528   echo $ECHO_N "(cached) $ECHO_C" >&6
33529 else
33530
33531                 # save the flags
33532                 ol_LIBS="$LIBS"
33533                 LIBS="-lpthreads -lmach -lexc $LIBS"
33534
33535                 if test "$cross_compiling" = yes; then
33536   cat >conftest.$ac_ext <<_ACEOF
33537 /* confdefs.h.  */
33538 _ACEOF
33539 cat confdefs.h >>conftest.$ac_ext
33540 cat >>conftest.$ac_ext <<_ACEOF
33541 /* end confdefs.h.  */
33542
33543 /* pthread test headers */
33544 #include <pthread.h>
33545 #if HAVE_PTHREADS < 7
33546 #include <errno.h>
33547 #endif
33548 #ifndef NULL
33549 #define NULL (void*)0
33550 #endif
33551
33552 static void *task(p)
33553         void *p;
33554 {
33555         return (void *) (p == NULL);
33556 }
33557
33558 int
33559 main ()
33560 {
33561
33562         /* pthread test function */
33563 #ifndef PTHREAD_CREATE_DETACHED
33564 #define PTHREAD_CREATE_DETACHED 1
33565 #endif
33566         pthread_t t;
33567         int status;
33568         int detach = PTHREAD_CREATE_DETACHED;
33569
33570 #if HAVE_PTHREADS > 4
33571         /* Final pthreads */
33572         pthread_attr_t attr;
33573
33574         status = pthread_attr_init(&attr);
33575         if( status ) return status;
33576
33577 #if HAVE_PTHREADS < 7
33578         status = pthread_attr_setdetachstate(&attr, &detach);
33579         if( status < 0 ) status = errno;
33580 #else
33581         status = pthread_attr_setdetachstate(&attr, detach);
33582 #endif
33583         if( status ) return status;
33584         status = pthread_create( &t, &attr, task, NULL );
33585 #if HAVE_PTHREADS < 7
33586         if( status < 0 ) status = errno;
33587 #endif
33588         if( status ) return status;
33589 #else
33590         /* Draft 4 pthreads */
33591         status = pthread_create( &t, pthread_attr_default, task, NULL );
33592         if( status ) return errno;
33593
33594         /* give thread a chance to complete */
33595         /* it should remain joinable and hence detachable */
33596         sleep( 1 );
33597
33598         status = pthread_detach( &t );
33599         if( status ) return errno;
33600 #endif
33601
33602 #ifdef HAVE_LINUX_THREADS
33603         pthread_kill_other_threads_np();
33604 #endif
33605
33606         return 0;
33607
33608   ;
33609   return 0;
33610 }
33611 _ACEOF
33612 rm -f conftest.$ac_objext conftest$ac_exeext
33613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33614   (eval $ac_link) 2>conftest.er1
33615   ac_status=$?
33616   grep -v '^ *+' conftest.er1 >conftest.err
33617   rm -f conftest.er1
33618   cat conftest.err >&5
33619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33620   (exit $ac_status); } &&
33621          { ac_try='test -z "$ac_c_werror_flag"
33622                          || test ! -s conftest.err'
33623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33624   (eval $ac_try) 2>&5
33625   ac_status=$?
33626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627   (exit $ac_status); }; } &&
33628          { ac_try='test -s conftest$ac_exeext'
33629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33630   (eval $ac_try) 2>&5
33631   ac_status=$?
33632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33633   (exit $ac_status); }; }; then
33634   ol_cv_pthread_lpthreads_lmach_lexc=yes
33635 else
33636   echo "$as_me: failed program was:" >&5
33637 sed 's/^/| /' conftest.$ac_ext >&5
33638
33639 ol_cv_pthread_lpthreads_lmach_lexc=no
33640 fi
33641 rm -f conftest.err conftest.$ac_objext \
33642       conftest$ac_exeext conftest.$ac_ext
33643 else
33644   cat >conftest.$ac_ext <<_ACEOF
33645 /* confdefs.h.  */
33646 _ACEOF
33647 cat confdefs.h >>conftest.$ac_ext
33648 cat >>conftest.$ac_ext <<_ACEOF
33649 /* end confdefs.h.  */
33650
33651 /* pthread test headers */
33652 #include <pthread.h>
33653 #if HAVE_PTHREADS < 7
33654 #include <errno.h>
33655 #endif
33656 #ifndef NULL
33657 #define NULL (void*)0
33658 #endif
33659
33660 static void *task(p)
33661         void *p;
33662 {
33663         return (void *) (p == NULL);
33664 }
33665
33666
33667 int main(argc, argv)
33668         int argc;
33669         char **argv;
33670 {
33671
33672         /* pthread test function */
33673 #ifndef PTHREAD_CREATE_DETACHED
33674 #define PTHREAD_CREATE_DETACHED 1
33675 #endif
33676         pthread_t t;
33677         int status;
33678         int detach = PTHREAD_CREATE_DETACHED;
33679
33680 #if HAVE_PTHREADS > 4
33681         /* Final pthreads */
33682         pthread_attr_t attr;
33683
33684         status = pthread_attr_init(&attr);
33685         if( status ) return status;
33686
33687 #if HAVE_PTHREADS < 7
33688         status = pthread_attr_setdetachstate(&attr, &detach);
33689         if( status < 0 ) status = errno;
33690 #else
33691         status = pthread_attr_setdetachstate(&attr, detach);
33692 #endif
33693         if( status ) return status;
33694         status = pthread_create( &t, &attr, task, NULL );
33695 #if HAVE_PTHREADS < 7
33696         if( status < 0 ) status = errno;
33697 #endif
33698         if( status ) return status;
33699 #else
33700         /* Draft 4 pthreads */
33701         status = pthread_create( &t, pthread_attr_default, task, NULL );
33702         if( status ) return errno;
33703
33704         /* give thread a chance to complete */
33705         /* it should remain joinable and hence detachable */
33706         sleep( 1 );
33707
33708         status = pthread_detach( &t );
33709         if( status ) return errno;
33710 #endif
33711
33712 #ifdef HAVE_LINUX_THREADS
33713         pthread_kill_other_threads_np();
33714 #endif
33715
33716         return 0;
33717
33718 }
33719
33720 _ACEOF
33721 rm -f conftest$ac_exeext
33722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33723   (eval $ac_link) 2>&5
33724   ac_status=$?
33725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33728   (eval $ac_try) 2>&5
33729   ac_status=$?
33730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33731   (exit $ac_status); }; }; then
33732   ol_cv_pthread_lpthreads_lmach_lexc=yes
33733 else
33734   echo "$as_me: program exited with status $ac_status" >&5
33735 echo "$as_me: failed program was:" >&5
33736 sed 's/^/| /' conftest.$ac_ext >&5
33737
33738 ( exit $ac_status )
33739 ol_cv_pthread_lpthreads_lmach_lexc=no
33740 fi
33741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33742 fi
33743
33744                 # restore the LIBS
33745                 LIBS="$ol_LIBS"
33746
33747 fi
33748 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33749 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33750
33751         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33752                 ol_link_pthreads="-lpthreads -lmach -lexc"
33753                 ol_link_threads=posix
33754         fi
33755 fi
33756
33757                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33758 if test "$ol_link_threads" = no ; then
33759         # try -lpthreads -lexc
33760         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33761 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33762 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33763   echo $ECHO_N "(cached) $ECHO_C" >&6
33764 else
33765
33766                 # save the flags
33767                 ol_LIBS="$LIBS"
33768                 LIBS="-lpthreads -lexc $LIBS"
33769
33770                 if test "$cross_compiling" = yes; then
33771   cat >conftest.$ac_ext <<_ACEOF
33772 /* confdefs.h.  */
33773 _ACEOF
33774 cat confdefs.h >>conftest.$ac_ext
33775 cat >>conftest.$ac_ext <<_ACEOF
33776 /* end confdefs.h.  */
33777
33778 /* pthread test headers */
33779 #include <pthread.h>
33780 #if HAVE_PTHREADS < 7
33781 #include <errno.h>
33782 #endif
33783 #ifndef NULL
33784 #define NULL (void*)0
33785 #endif
33786
33787 static void *task(p)
33788         void *p;
33789 {
33790         return (void *) (p == NULL);
33791 }
33792
33793 int
33794 main ()
33795 {
33796
33797         /* pthread test function */
33798 #ifndef PTHREAD_CREATE_DETACHED
33799 #define PTHREAD_CREATE_DETACHED 1
33800 #endif
33801         pthread_t t;
33802         int status;
33803         int detach = PTHREAD_CREATE_DETACHED;
33804
33805 #if HAVE_PTHREADS > 4
33806         /* Final pthreads */
33807         pthread_attr_t attr;
33808
33809         status = pthread_attr_init(&attr);
33810         if( status ) return status;
33811
33812 #if HAVE_PTHREADS < 7
33813         status = pthread_attr_setdetachstate(&attr, &detach);
33814         if( status < 0 ) status = errno;
33815 #else
33816         status = pthread_attr_setdetachstate(&attr, detach);
33817 #endif
33818         if( status ) return status;
33819         status = pthread_create( &t, &attr, task, NULL );
33820 #if HAVE_PTHREADS < 7
33821         if( status < 0 ) status = errno;
33822 #endif
33823         if( status ) return status;
33824 #else
33825         /* Draft 4 pthreads */
33826         status = pthread_create( &t, pthread_attr_default, task, NULL );
33827         if( status ) return errno;
33828
33829         /* give thread a chance to complete */
33830         /* it should remain joinable and hence detachable */
33831         sleep( 1 );
33832
33833         status = pthread_detach( &t );
33834         if( status ) return errno;
33835 #endif
33836
33837 #ifdef HAVE_LINUX_THREADS
33838         pthread_kill_other_threads_np();
33839 #endif
33840
33841         return 0;
33842
33843   ;
33844   return 0;
33845 }
33846 _ACEOF
33847 rm -f conftest.$ac_objext conftest$ac_exeext
33848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33849   (eval $ac_link) 2>conftest.er1
33850   ac_status=$?
33851   grep -v '^ *+' conftest.er1 >conftest.err
33852   rm -f conftest.er1
33853   cat conftest.err >&5
33854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33855   (exit $ac_status); } &&
33856          { ac_try='test -z "$ac_c_werror_flag"
33857                          || test ! -s conftest.err'
33858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33859   (eval $ac_try) 2>&5
33860   ac_status=$?
33861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33862   (exit $ac_status); }; } &&
33863          { ac_try='test -s conftest$ac_exeext'
33864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33865   (eval $ac_try) 2>&5
33866   ac_status=$?
33867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33868   (exit $ac_status); }; }; then
33869   ol_cv_pthread_lpthreads_lexc=yes
33870 else
33871   echo "$as_me: failed program was:" >&5
33872 sed 's/^/| /' conftest.$ac_ext >&5
33873
33874 ol_cv_pthread_lpthreads_lexc=no
33875 fi
33876 rm -f conftest.err conftest.$ac_objext \
33877       conftest$ac_exeext conftest.$ac_ext
33878 else
33879   cat >conftest.$ac_ext <<_ACEOF
33880 /* confdefs.h.  */
33881 _ACEOF
33882 cat confdefs.h >>conftest.$ac_ext
33883 cat >>conftest.$ac_ext <<_ACEOF
33884 /* end confdefs.h.  */
33885
33886 /* pthread test headers */
33887 #include <pthread.h>
33888 #if HAVE_PTHREADS < 7
33889 #include <errno.h>
33890 #endif
33891 #ifndef NULL
33892 #define NULL (void*)0
33893 #endif
33894
33895 static void *task(p)
33896         void *p;
33897 {
33898         return (void *) (p == NULL);
33899 }
33900
33901
33902 int main(argc, argv)
33903         int argc;
33904         char **argv;
33905 {
33906
33907         /* pthread test function */
33908 #ifndef PTHREAD_CREATE_DETACHED
33909 #define PTHREAD_CREATE_DETACHED 1
33910 #endif
33911         pthread_t t;
33912         int status;
33913         int detach = PTHREAD_CREATE_DETACHED;
33914
33915 #if HAVE_PTHREADS > 4
33916         /* Final pthreads */
33917         pthread_attr_t attr;
33918
33919         status = pthread_attr_init(&attr);
33920         if( status ) return status;
33921
33922 #if HAVE_PTHREADS < 7
33923         status = pthread_attr_setdetachstate(&attr, &detach);
33924         if( status < 0 ) status = errno;
33925 #else
33926         status = pthread_attr_setdetachstate(&attr, detach);
33927 #endif
33928         if( status ) return status;
33929         status = pthread_create( &t, &attr, task, NULL );
33930 #if HAVE_PTHREADS < 7
33931         if( status < 0 ) status = errno;
33932 #endif
33933         if( status ) return status;
33934 #else
33935         /* Draft 4 pthreads */
33936         status = pthread_create( &t, pthread_attr_default, task, NULL );
33937         if( status ) return errno;
33938
33939         /* give thread a chance to complete */
33940         /* it should remain joinable and hence detachable */
33941         sleep( 1 );
33942
33943         status = pthread_detach( &t );
33944         if( status ) return errno;
33945 #endif
33946
33947 #ifdef HAVE_LINUX_THREADS
33948         pthread_kill_other_threads_np();
33949 #endif
33950
33951         return 0;
33952
33953 }
33954
33955 _ACEOF
33956 rm -f conftest$ac_exeext
33957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33958   (eval $ac_link) 2>&5
33959   ac_status=$?
33960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33961   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33963   (eval $ac_try) 2>&5
33964   ac_status=$?
33965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33966   (exit $ac_status); }; }; then
33967   ol_cv_pthread_lpthreads_lexc=yes
33968 else
33969   echo "$as_me: program exited with status $ac_status" >&5
33970 echo "$as_me: failed program was:" >&5
33971 sed 's/^/| /' conftest.$ac_ext >&5
33972
33973 ( exit $ac_status )
33974 ol_cv_pthread_lpthreads_lexc=no
33975 fi
33976 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33977 fi
33978
33979                 # restore the LIBS
33980                 LIBS="$ol_LIBS"
33981
33982 fi
33983 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
33984 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
33985
33986         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
33987                 ol_link_pthreads="-lpthreads -lexc"
33988                 ol_link_threads=posix
33989         fi
33990 fi
33991
33992
33993                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
33994 if test "$ol_link_threads" = no ; then
33995         # try -lpthreads
33996         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
33997 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
33998 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
33999   echo $ECHO_N "(cached) $ECHO_C" >&6
34000 else
34001
34002                 # save the flags
34003                 ol_LIBS="$LIBS"
34004                 LIBS="-lpthreads $LIBS"
34005
34006                 if test "$cross_compiling" = yes; then
34007   cat >conftest.$ac_ext <<_ACEOF
34008 /* confdefs.h.  */
34009 _ACEOF
34010 cat confdefs.h >>conftest.$ac_ext
34011 cat >>conftest.$ac_ext <<_ACEOF
34012 /* end confdefs.h.  */
34013
34014 /* pthread test headers */
34015 #include <pthread.h>
34016 #if HAVE_PTHREADS < 7
34017 #include <errno.h>
34018 #endif
34019 #ifndef NULL
34020 #define NULL (void*)0
34021 #endif
34022
34023 static void *task(p)
34024         void *p;
34025 {
34026         return (void *) (p == NULL);
34027 }
34028
34029 int
34030 main ()
34031 {
34032
34033         /* pthread test function */
34034 #ifndef PTHREAD_CREATE_DETACHED
34035 #define PTHREAD_CREATE_DETACHED 1
34036 #endif
34037         pthread_t t;
34038         int status;
34039         int detach = PTHREAD_CREATE_DETACHED;
34040
34041 #if HAVE_PTHREADS > 4
34042         /* Final pthreads */
34043         pthread_attr_t attr;
34044
34045         status = pthread_attr_init(&attr);
34046         if( status ) return status;
34047
34048 #if HAVE_PTHREADS < 7
34049         status = pthread_attr_setdetachstate(&attr, &detach);
34050         if( status < 0 ) status = errno;
34051 #else
34052         status = pthread_attr_setdetachstate(&attr, detach);
34053 #endif
34054         if( status ) return status;
34055         status = pthread_create( &t, &attr, task, NULL );
34056 #if HAVE_PTHREADS < 7
34057         if( status < 0 ) status = errno;
34058 #endif
34059         if( status ) return status;
34060 #else
34061         /* Draft 4 pthreads */
34062         status = pthread_create( &t, pthread_attr_default, task, NULL );
34063         if( status ) return errno;
34064
34065         /* give thread a chance to complete */
34066         /* it should remain joinable and hence detachable */
34067         sleep( 1 );
34068
34069         status = pthread_detach( &t );
34070         if( status ) return errno;
34071 #endif
34072
34073 #ifdef HAVE_LINUX_THREADS
34074         pthread_kill_other_threads_np();
34075 #endif
34076
34077         return 0;
34078
34079   ;
34080   return 0;
34081 }
34082 _ACEOF
34083 rm -f conftest.$ac_objext conftest$ac_exeext
34084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34085   (eval $ac_link) 2>conftest.er1
34086   ac_status=$?
34087   grep -v '^ *+' conftest.er1 >conftest.err
34088   rm -f conftest.er1
34089   cat conftest.err >&5
34090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34091   (exit $ac_status); } &&
34092          { ac_try='test -z "$ac_c_werror_flag"
34093                          || test ! -s conftest.err'
34094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34095   (eval $ac_try) 2>&5
34096   ac_status=$?
34097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34098   (exit $ac_status); }; } &&
34099          { ac_try='test -s conftest$ac_exeext'
34100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34101   (eval $ac_try) 2>&5
34102   ac_status=$?
34103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34104   (exit $ac_status); }; }; then
34105   ol_cv_pthread_lib_lpthreads=yes
34106 else
34107   echo "$as_me: failed program was:" >&5
34108 sed 's/^/| /' conftest.$ac_ext >&5
34109
34110 ol_cv_pthread_lib_lpthreads=no
34111 fi
34112 rm -f conftest.err conftest.$ac_objext \
34113       conftest$ac_exeext conftest.$ac_ext
34114 else
34115   cat >conftest.$ac_ext <<_ACEOF
34116 /* confdefs.h.  */
34117 _ACEOF
34118 cat confdefs.h >>conftest.$ac_ext
34119 cat >>conftest.$ac_ext <<_ACEOF
34120 /* end confdefs.h.  */
34121
34122 /* pthread test headers */
34123 #include <pthread.h>
34124 #if HAVE_PTHREADS < 7
34125 #include <errno.h>
34126 #endif
34127 #ifndef NULL
34128 #define NULL (void*)0
34129 #endif
34130
34131 static void *task(p)
34132         void *p;
34133 {
34134         return (void *) (p == NULL);
34135 }
34136
34137
34138 int main(argc, argv)
34139         int argc;
34140         char **argv;
34141 {
34142
34143         /* pthread test function */
34144 #ifndef PTHREAD_CREATE_DETACHED
34145 #define PTHREAD_CREATE_DETACHED 1
34146 #endif
34147         pthread_t t;
34148         int status;
34149         int detach = PTHREAD_CREATE_DETACHED;
34150
34151 #if HAVE_PTHREADS > 4
34152         /* Final pthreads */
34153         pthread_attr_t attr;
34154
34155         status = pthread_attr_init(&attr);
34156         if( status ) return status;
34157
34158 #if HAVE_PTHREADS < 7
34159         status = pthread_attr_setdetachstate(&attr, &detach);
34160         if( status < 0 ) status = errno;
34161 #else
34162         status = pthread_attr_setdetachstate(&attr, detach);
34163 #endif
34164         if( status ) return status;
34165         status = pthread_create( &t, &attr, task, NULL );
34166 #if HAVE_PTHREADS < 7
34167         if( status < 0 ) status = errno;
34168 #endif
34169         if( status ) return status;
34170 #else
34171         /* Draft 4 pthreads */
34172         status = pthread_create( &t, pthread_attr_default, task, NULL );
34173         if( status ) return errno;
34174
34175         /* give thread a chance to complete */
34176         /* it should remain joinable and hence detachable */
34177         sleep( 1 );
34178
34179         status = pthread_detach( &t );
34180         if( status ) return errno;
34181 #endif
34182
34183 #ifdef HAVE_LINUX_THREADS
34184         pthread_kill_other_threads_np();
34185 #endif
34186
34187         return 0;
34188
34189 }
34190
34191 _ACEOF
34192 rm -f conftest$ac_exeext
34193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34194   (eval $ac_link) 2>&5
34195   ac_status=$?
34196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34199   (eval $ac_try) 2>&5
34200   ac_status=$?
34201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34202   (exit $ac_status); }; }; then
34203   ol_cv_pthread_lib_lpthreads=yes
34204 else
34205   echo "$as_me: program exited with status $ac_status" >&5
34206 echo "$as_me: failed program was:" >&5
34207 sed 's/^/| /' conftest.$ac_ext >&5
34208
34209 ( exit $ac_status )
34210 ol_cv_pthread_lib_lpthreads=no
34211 fi
34212 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34213 fi
34214
34215                 # restore the LIBS
34216                 LIBS="$ol_LIBS"
34217
34218 fi
34219 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34220 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34221
34222         if test $ol_cv_pthread_lib_lpthreads = yes ; then
34223                 ol_link_pthreads="-lpthreads"
34224                 ol_link_threads=posix
34225         fi
34226 fi
34227
34228
34229                 if test $ol_link_threads != no ; then
34230                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34231
34232                                                 save_CPPFLAGS="$CPPFLAGS"
34233                         save_LIBS="$LIBS"
34234                         LIBS="$LTHREAD_LIBS $LIBS"
34235
34236
34237
34238
34239 for ac_func in sched_yield pthread_yield thr_yield
34240 do
34241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34242 echo "$as_me:$LINENO: checking for $ac_func" >&5
34243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34244 if eval "test \"\${$as_ac_var+set}\" = set"; then
34245   echo $ECHO_N "(cached) $ECHO_C" >&6
34246 else
34247   cat >conftest.$ac_ext <<_ACEOF
34248 /* confdefs.h.  */
34249 _ACEOF
34250 cat confdefs.h >>conftest.$ac_ext
34251 cat >>conftest.$ac_ext <<_ACEOF
34252 /* end confdefs.h.  */
34253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34254    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34255 #define $ac_func innocuous_$ac_func
34256
34257 /* System header to define __stub macros and hopefully few prototypes,
34258     which can conflict with char $ac_func (); below.
34259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34260     <limits.h> exists even on freestanding compilers.  */
34261
34262 #ifdef __STDC__
34263 # include <limits.h>
34264 #else
34265 # include <assert.h>
34266 #endif
34267
34268 #undef $ac_func
34269
34270 /* Override any gcc2 internal prototype to avoid an error.  */
34271 #ifdef __cplusplus
34272 extern "C"
34273 {
34274 #endif
34275 /* We use char because int might match the return type of a gcc2
34276    builtin and then its argument prototype would still apply.  */
34277 char $ac_func ();
34278 /* The GNU C library defines this for functions which it implements
34279     to always fail with ENOSYS.  Some functions are actually named
34280     something starting with __ and the normal name is an alias.  */
34281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34282 choke me
34283 #else
34284 char (*f) () = $ac_func;
34285 #endif
34286 #ifdef __cplusplus
34287 }
34288 #endif
34289
34290 int
34291 main ()
34292 {
34293 return f != $ac_func;
34294   ;
34295   return 0;
34296 }
34297 _ACEOF
34298 rm -f conftest.$ac_objext conftest$ac_exeext
34299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34300   (eval $ac_link) 2>conftest.er1
34301   ac_status=$?
34302   grep -v '^ *+' conftest.er1 >conftest.err
34303   rm -f conftest.er1
34304   cat conftest.err >&5
34305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34306   (exit $ac_status); } &&
34307          { ac_try='test -z "$ac_c_werror_flag"
34308                          || test ! -s conftest.err'
34309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34310   (eval $ac_try) 2>&5
34311   ac_status=$?
34312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34313   (exit $ac_status); }; } &&
34314          { ac_try='test -s conftest$ac_exeext'
34315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34316   (eval $ac_try) 2>&5
34317   ac_status=$?
34318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34319   (exit $ac_status); }; }; then
34320   eval "$as_ac_var=yes"
34321 else
34322   echo "$as_me: failed program was:" >&5
34323 sed 's/^/| /' conftest.$ac_ext >&5
34324
34325 eval "$as_ac_var=no"
34326 fi
34327 rm -f conftest.err conftest.$ac_objext \
34328       conftest$ac_exeext conftest.$ac_ext
34329 fi
34330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34331 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34332 if test `eval echo '${'$as_ac_var'}'` = yes; then
34333   cat >>confdefs.h <<_ACEOF
34334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34335 _ACEOF
34336
34337 fi
34338 done
34339
34340
34341                         if test $ac_cv_func_sched_yield = no -a \
34342                                 $ac_cv_func_pthread_yield = no -a \
34343                                 $ac_cv_func_thr_yield = no ; then
34344                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34345 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34346 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34347   echo $ECHO_N "(cached) $ECHO_C" >&6
34348 else
34349   ac_check_lib_save_LIBS=$LIBS
34350 LIBS="-lrt  $LIBS"
34351 cat >conftest.$ac_ext <<_ACEOF
34352 /* confdefs.h.  */
34353 _ACEOF
34354 cat confdefs.h >>conftest.$ac_ext
34355 cat >>conftest.$ac_ext <<_ACEOF
34356 /* end confdefs.h.  */
34357
34358 /* Override any gcc2 internal prototype to avoid an error.  */
34359 #ifdef __cplusplus
34360 extern "C"
34361 #endif
34362 /* We use char because int might match the return type of a gcc2
34363    builtin and then its argument prototype would still apply.  */
34364 char sched_yield ();
34365 int
34366 main ()
34367 {
34368 sched_yield ();
34369   ;
34370   return 0;
34371 }
34372 _ACEOF
34373 rm -f conftest.$ac_objext conftest$ac_exeext
34374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34375   (eval $ac_link) 2>conftest.er1
34376   ac_status=$?
34377   grep -v '^ *+' conftest.er1 >conftest.err
34378   rm -f conftest.er1
34379   cat conftest.err >&5
34380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34381   (exit $ac_status); } &&
34382          { ac_try='test -z "$ac_c_werror_flag"
34383                          || test ! -s conftest.err'
34384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34385   (eval $ac_try) 2>&5
34386   ac_status=$?
34387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34388   (exit $ac_status); }; } &&
34389          { ac_try='test -s conftest$ac_exeext'
34390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34391   (eval $ac_try) 2>&5
34392   ac_status=$?
34393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394   (exit $ac_status); }; }; then
34395   ac_cv_lib_rt_sched_yield=yes
34396 else
34397   echo "$as_me: failed program was:" >&5
34398 sed 's/^/| /' conftest.$ac_ext >&5
34399
34400 ac_cv_lib_rt_sched_yield=no
34401 fi
34402 rm -f conftest.err conftest.$ac_objext \
34403       conftest$ac_exeext conftest.$ac_ext
34404 LIBS=$ac_check_lib_save_LIBS
34405 fi
34406 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34407 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34408 if test $ac_cv_lib_rt_sched_yield = yes; then
34409   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34410
34411 cat >>confdefs.h <<\_ACEOF
34412 #define HAVE_SCHED_YIELD 1
34413 _ACEOF
34414
34415                                         ac_cv_func_sched_yield=yes
34416 else
34417   ac_cv_func_sched_yield=no
34418 fi
34419
34420                         fi
34421                         if test $ac_cv_func_sched_yield = no -a \
34422                                 $ac_cv_func_pthread_yield = no -a \
34423                                 "$ac_cv_func_thr_yield" = no ; then
34424                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34425 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34426                         fi
34427
34428
34429
34430 for ac_func in pthread_kill pthread_rwlock_destroy
34431 do
34432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34433 echo "$as_me:$LINENO: checking for $ac_func" >&5
34434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34435 if eval "test \"\${$as_ac_var+set}\" = set"; then
34436   echo $ECHO_N "(cached) $ECHO_C" >&6
34437 else
34438   cat >conftest.$ac_ext <<_ACEOF
34439 /* confdefs.h.  */
34440 _ACEOF
34441 cat confdefs.h >>conftest.$ac_ext
34442 cat >>conftest.$ac_ext <<_ACEOF
34443 /* end confdefs.h.  */
34444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34446 #define $ac_func innocuous_$ac_func
34447
34448 /* System header to define __stub macros and hopefully few prototypes,
34449     which can conflict with char $ac_func (); below.
34450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34451     <limits.h> exists even on freestanding compilers.  */
34452
34453 #ifdef __STDC__
34454 # include <limits.h>
34455 #else
34456 # include <assert.h>
34457 #endif
34458
34459 #undef $ac_func
34460
34461 /* Override any gcc2 internal prototype to avoid an error.  */
34462 #ifdef __cplusplus
34463 extern "C"
34464 {
34465 #endif
34466 /* We use char because int might match the return type of a gcc2
34467    builtin and then its argument prototype would still apply.  */
34468 char $ac_func ();
34469 /* The GNU C library defines this for functions which it implements
34470     to always fail with ENOSYS.  Some functions are actually named
34471     something starting with __ and the normal name is an alias.  */
34472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34473 choke me
34474 #else
34475 char (*f) () = $ac_func;
34476 #endif
34477 #ifdef __cplusplus
34478 }
34479 #endif
34480
34481 int
34482 main ()
34483 {
34484 return f != $ac_func;
34485   ;
34486   return 0;
34487 }
34488 _ACEOF
34489 rm -f conftest.$ac_objext conftest$ac_exeext
34490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34491   (eval $ac_link) 2>conftest.er1
34492   ac_status=$?
34493   grep -v '^ *+' conftest.er1 >conftest.err
34494   rm -f conftest.er1
34495   cat conftest.err >&5
34496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34497   (exit $ac_status); } &&
34498          { ac_try='test -z "$ac_c_werror_flag"
34499                          || test ! -s conftest.err'
34500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34501   (eval $ac_try) 2>&5
34502   ac_status=$?
34503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34504   (exit $ac_status); }; } &&
34505          { ac_try='test -s conftest$ac_exeext'
34506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34507   (eval $ac_try) 2>&5
34508   ac_status=$?
34509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34510   (exit $ac_status); }; }; then
34511   eval "$as_ac_var=yes"
34512 else
34513   echo "$as_me: failed program was:" >&5
34514 sed 's/^/| /' conftest.$ac_ext >&5
34515
34516 eval "$as_ac_var=no"
34517 fi
34518 rm -f conftest.err conftest.$ac_objext \
34519       conftest$ac_exeext conftest.$ac_ext
34520 fi
34521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34523 if test `eval echo '${'$as_ac_var'}'` = yes; then
34524   cat >>confdefs.h <<_ACEOF
34525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34526 _ACEOF
34527
34528 fi
34529 done
34530
34531
34532                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34533 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34534 if test "${ol_cv_func_pthread_detach+set}" = set; then
34535   echo $ECHO_N "(cached) $ECHO_C" >&6
34536 else
34537
34538                                                                 cat >conftest.$ac_ext <<_ACEOF
34539 /* confdefs.h.  */
34540 _ACEOF
34541 cat confdefs.h >>conftest.$ac_ext
34542 cat >>conftest.$ac_ext <<_ACEOF
34543 /* end confdefs.h.  */
34544
34545 #include <pthread.h>
34546 #ifndef NULL
34547 #define NULL (void*)0
34548 #endif
34549
34550 int
34551 main ()
34552 {
34553 pthread_detach(NULL);
34554   ;
34555   return 0;
34556 }
34557 _ACEOF
34558 rm -f conftest.$ac_objext conftest$ac_exeext
34559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34560   (eval $ac_link) 2>conftest.er1
34561   ac_status=$?
34562   grep -v '^ *+' conftest.er1 >conftest.err
34563   rm -f conftest.er1
34564   cat conftest.err >&5
34565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34566   (exit $ac_status); } &&
34567          { ac_try='test -z "$ac_c_werror_flag"
34568                          || test ! -s conftest.err'
34569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34570   (eval $ac_try) 2>&5
34571   ac_status=$?
34572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34573   (exit $ac_status); }; } &&
34574          { ac_try='test -s conftest$ac_exeext'
34575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34576   (eval $ac_try) 2>&5
34577   ac_status=$?
34578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34579   (exit $ac_status); }; }; then
34580   ol_cv_func_pthread_detach=yes
34581 else
34582   echo "$as_me: failed program was:" >&5
34583 sed 's/^/| /' conftest.$ac_ext >&5
34584
34585 ol_cv_func_pthread_detach=no
34586 fi
34587 rm -f conftest.err conftest.$ac_objext \
34588       conftest$ac_exeext conftest.$ac_ext
34589
34590 fi
34591 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34592 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34593
34594                         if test $ol_cv_func_pthread_detach = no ; then
34595                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34596 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34597    { (exit 1); exit 1; }; }
34598                         fi
34599
34600
34601 cat >>confdefs.h <<\_ACEOF
34602 #define HAVE_PTHREAD_DETACH 1
34603 _ACEOF
34604
34605
34606
34607
34608
34609
34610 for ac_func in \
34611                                 pthread_setconcurrency \
34612                                 pthread_getconcurrency \
34613                                 thr_setconcurrency \
34614                                 thr_getconcurrency \
34615
34616 do
34617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34618 echo "$as_me:$LINENO: checking for $ac_func" >&5
34619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34620 if eval "test \"\${$as_ac_var+set}\" = set"; then
34621   echo $ECHO_N "(cached) $ECHO_C" >&6
34622 else
34623   cat >conftest.$ac_ext <<_ACEOF
34624 /* confdefs.h.  */
34625 _ACEOF
34626 cat confdefs.h >>conftest.$ac_ext
34627 cat >>conftest.$ac_ext <<_ACEOF
34628 /* end confdefs.h.  */
34629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34630    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34631 #define $ac_func innocuous_$ac_func
34632
34633 /* System header to define __stub macros and hopefully few prototypes,
34634     which can conflict with char $ac_func (); below.
34635     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34636     <limits.h> exists even on freestanding compilers.  */
34637
34638 #ifdef __STDC__
34639 # include <limits.h>
34640 #else
34641 # include <assert.h>
34642 #endif
34643
34644 #undef $ac_func
34645
34646 /* Override any gcc2 internal prototype to avoid an error.  */
34647 #ifdef __cplusplus
34648 extern "C"
34649 {
34650 #endif
34651 /* We use char because int might match the return type of a gcc2
34652    builtin and then its argument prototype would still apply.  */
34653 char $ac_func ();
34654 /* The GNU C library defines this for functions which it implements
34655     to always fail with ENOSYS.  Some functions are actually named
34656     something starting with __ and the normal name is an alias.  */
34657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34658 choke me
34659 #else
34660 char (*f) () = $ac_func;
34661 #endif
34662 #ifdef __cplusplus
34663 }
34664 #endif
34665
34666 int
34667 main ()
34668 {
34669 return f != $ac_func;
34670   ;
34671   return 0;
34672 }
34673 _ACEOF
34674 rm -f conftest.$ac_objext conftest$ac_exeext
34675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34676   (eval $ac_link) 2>conftest.er1
34677   ac_status=$?
34678   grep -v '^ *+' conftest.er1 >conftest.err
34679   rm -f conftest.er1
34680   cat conftest.err >&5
34681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34682   (exit $ac_status); } &&
34683          { ac_try='test -z "$ac_c_werror_flag"
34684                          || test ! -s conftest.err'
34685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34686   (eval $ac_try) 2>&5
34687   ac_status=$?
34688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34689   (exit $ac_status); }; } &&
34690          { ac_try='test -s conftest$ac_exeext'
34691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34692   (eval $ac_try) 2>&5
34693   ac_status=$?
34694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34695   (exit $ac_status); }; }; then
34696   eval "$as_ac_var=yes"
34697 else
34698   echo "$as_me: failed program was:" >&5
34699 sed 's/^/| /' conftest.$ac_ext >&5
34700
34701 eval "$as_ac_var=no"
34702 fi
34703 rm -f conftest.err conftest.$ac_objext \
34704       conftest$ac_exeext conftest.$ac_ext
34705 fi
34706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34708 if test `eval echo '${'$as_ac_var'}'` = yes; then
34709   cat >>confdefs.h <<_ACEOF
34710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34711 _ACEOF
34712
34713 fi
34714 done
34715
34716
34717
34718
34719 for ac_func in pthread_kill_other_threads_np
34720 do
34721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34722 echo "$as_me:$LINENO: checking for $ac_func" >&5
34723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34724 if eval "test \"\${$as_ac_var+set}\" = set"; then
34725   echo $ECHO_N "(cached) $ECHO_C" >&6
34726 else
34727   cat >conftest.$ac_ext <<_ACEOF
34728 /* confdefs.h.  */
34729 _ACEOF
34730 cat confdefs.h >>conftest.$ac_ext
34731 cat >>conftest.$ac_ext <<_ACEOF
34732 /* end confdefs.h.  */
34733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34735 #define $ac_func innocuous_$ac_func
34736
34737 /* System header to define __stub macros and hopefully few prototypes,
34738     which can conflict with char $ac_func (); below.
34739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34740     <limits.h> exists even on freestanding compilers.  */
34741
34742 #ifdef __STDC__
34743 # include <limits.h>
34744 #else
34745 # include <assert.h>
34746 #endif
34747
34748 #undef $ac_func
34749
34750 /* Override any gcc2 internal prototype to avoid an error.  */
34751 #ifdef __cplusplus
34752 extern "C"
34753 {
34754 #endif
34755 /* We use char because int might match the return type of a gcc2
34756    builtin and then its argument prototype would still apply.  */
34757 char $ac_func ();
34758 /* The GNU C library defines this for functions which it implements
34759     to always fail with ENOSYS.  Some functions are actually named
34760     something starting with __ and the normal name is an alias.  */
34761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34762 choke me
34763 #else
34764 char (*f) () = $ac_func;
34765 #endif
34766 #ifdef __cplusplus
34767 }
34768 #endif
34769
34770 int
34771 main ()
34772 {
34773 return f != $ac_func;
34774   ;
34775   return 0;
34776 }
34777 _ACEOF
34778 rm -f conftest.$ac_objext conftest$ac_exeext
34779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34780   (eval $ac_link) 2>conftest.er1
34781   ac_status=$?
34782   grep -v '^ *+' conftest.er1 >conftest.err
34783   rm -f conftest.er1
34784   cat conftest.err >&5
34785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34786   (exit $ac_status); } &&
34787          { ac_try='test -z "$ac_c_werror_flag"
34788                          || test ! -s conftest.err'
34789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34790   (eval $ac_try) 2>&5
34791   ac_status=$?
34792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34793   (exit $ac_status); }; } &&
34794          { ac_try='test -s conftest$ac_exeext'
34795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34796   (eval $ac_try) 2>&5
34797   ac_status=$?
34798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34799   (exit $ac_status); }; }; then
34800   eval "$as_ac_var=yes"
34801 else
34802   echo "$as_me: failed program was:" >&5
34803 sed 's/^/| /' conftest.$ac_ext >&5
34804
34805 eval "$as_ac_var=no"
34806 fi
34807 rm -f conftest.err conftest.$ac_objext \
34808       conftest$ac_exeext conftest.$ac_ext
34809 fi
34810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34812 if test `eval echo '${'$as_ac_var'}'` = yes; then
34813   cat >>confdefs.h <<_ACEOF
34814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34815 _ACEOF
34816
34817 fi
34818 done
34819
34820         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34821 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34822 if test "${ol_cv_sys_linux_threads+set}" = set; then
34823   echo $ECHO_N "(cached) $ECHO_C" >&6
34824 else
34825   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34826 fi
34827 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34828 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34829
34830
34831
34832
34833         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34834 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34835 if test "${ol_cv_linux_threads+set}" = set; then
34836   echo $ECHO_N "(cached) $ECHO_C" >&6
34837 else
34838
34839                 if test $ol_cv_header_linux_threads = yes -a \
34840                         $ol_cv_sys_linux_threads = yes; then
34841                         ol_cv_linux_threads=yes
34842                 elif test $ol_cv_header_linux_threads = no -a \
34843                         $ol_cv_sys_linux_threads = no; then
34844                         ol_cv_linux_threads=no
34845                 else
34846                         ol_cv_linux_threads=error
34847                 fi
34848
34849 fi
34850 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34851 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34852
34853
34854                         if test $ol_cv_linux_threads = error; then
34855                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34856 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34857    { (exit 1); exit 1; }; };
34858                         fi
34859
34860                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34861 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34862 if test "${ol_cv_pthread_create_works+set}" = set; then
34863   echo $ECHO_N "(cached) $ECHO_C" >&6
34864 else
34865
34866                         if test "$cross_compiling" = yes; then
34867                                 ol_cv_pthread_create_works=yes
34868 else
34869   cat >conftest.$ac_ext <<_ACEOF
34870 /* confdefs.h.  */
34871 _ACEOF
34872 cat confdefs.h >>conftest.$ac_ext
34873 cat >>conftest.$ac_ext <<_ACEOF
34874 /* end confdefs.h.  */
34875
34876 /* pthread test headers */
34877 #include <pthread.h>
34878 #if HAVE_PTHREADS < 7
34879 #include <errno.h>
34880 #endif
34881 #ifndef NULL
34882 #define NULL (void*)0
34883 #endif
34884
34885 static void *task(p)
34886         void *p;
34887 {
34888         return (void *) (p == NULL);
34889 }
34890
34891
34892 int main(argc, argv)
34893         int argc;
34894         char **argv;
34895 {
34896
34897         /* pthread test function */
34898 #ifndef PTHREAD_CREATE_DETACHED
34899 #define PTHREAD_CREATE_DETACHED 1
34900 #endif
34901         pthread_t t;
34902         int status;
34903         int detach = PTHREAD_CREATE_DETACHED;
34904
34905 #if HAVE_PTHREADS > 4
34906         /* Final pthreads */
34907         pthread_attr_t attr;
34908
34909         status = pthread_attr_init(&attr);
34910         if( status ) return status;
34911
34912 #if HAVE_PTHREADS < 7
34913         status = pthread_attr_setdetachstate(&attr, &detach);
34914         if( status < 0 ) status = errno;
34915 #else
34916         status = pthread_attr_setdetachstate(&attr, detach);
34917 #endif
34918         if( status ) return status;
34919         status = pthread_create( &t, &attr, task, NULL );
34920 #if HAVE_PTHREADS < 7
34921         if( status < 0 ) status = errno;
34922 #endif
34923         if( status ) return status;
34924 #else
34925         /* Draft 4 pthreads */
34926         status = pthread_create( &t, pthread_attr_default, task, NULL );
34927         if( status ) return errno;
34928
34929         /* give thread a chance to complete */
34930         /* it should remain joinable and hence detachable */
34931         sleep( 1 );
34932
34933         status = pthread_detach( &t );
34934         if( status ) return errno;
34935 #endif
34936
34937 #ifdef HAVE_LINUX_THREADS
34938         pthread_kill_other_threads_np();
34939 #endif
34940
34941         return 0;
34942
34943 }
34944
34945 _ACEOF
34946 rm -f conftest$ac_exeext
34947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34948   (eval $ac_link) 2>&5
34949   ac_status=$?
34950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34951   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34953   (eval $ac_try) 2>&5
34954   ac_status=$?
34955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34956   (exit $ac_status); }; }; then
34957   ol_cv_pthread_create_works=yes
34958 else
34959   echo "$as_me: program exited with status $ac_status" >&5
34960 echo "$as_me: failed program was:" >&5
34961 sed 's/^/| /' conftest.$ac_ext >&5
34962
34963 ( exit $ac_status )
34964 ol_cv_pthread_create_works=no
34965 fi
34966 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34967 fi
34968 fi
34969 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
34970 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
34971
34972                         if test $ol_cv_pthread_create_works = no ; then
34973                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
34974 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
34975    { (exit 1); exit 1; }; }
34976                         fi
34977
34978                                                 if test $ol_with_yielding_select = auto ; then
34979                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
34980 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
34981 if test "${ol_cv_pthread_select_yields+set}" = set; then
34982   echo $ECHO_N "(cached) $ECHO_C" >&6
34983 else
34984
34985                                 if test "$cross_compiling" = yes; then
34986   ol_cv_pthread_select_yields=cross
34987 else
34988   cat >conftest.$ac_ext <<_ACEOF
34989 /* confdefs.h.  */
34990 _ACEOF
34991 cat confdefs.h >>conftest.$ac_ext
34992 cat >>conftest.$ac_ext <<_ACEOF
34993 /* end confdefs.h.  */
34994
34995 #include <sys/types.h>
34996 #include <sys/time.h>
34997 #include <unistd.h>
34998 #include <pthread.h>
34999 #ifndef NULL
35000 #define NULL (void*) 0
35001 #endif
35002
35003 static int fildes[2];
35004
35005 static void *task(p)
35006         void *p;
35007 {
35008         int i;
35009         struct timeval tv;
35010
35011         fd_set rfds;
35012
35013         tv.tv_sec=10;
35014         tv.tv_usec=0;
35015
35016         FD_ZERO(&rfds);
35017         FD_SET(fildes[0], &rfds);
35018
35019         /* we're not interested in any fds */
35020         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
35021
35022         if(i < 0) {
35023                 perror("select");
35024                 exit(10);
35025         }
35026
35027         exit(0); /* if we exit here, the select blocked the whole process */
35028 }
35029
35030 int main(argc, argv)
35031         int argc;
35032         char **argv;
35033 {
35034         pthread_t t;
35035
35036         /* create a pipe to select */
35037         if(pipe(&fildes[0])) {
35038                 perror("select");
35039                 exit(1);
35040         }
35041
35042 #ifdef HAVE_PTHREAD_SETCONCURRENCY
35043         (void) pthread_setconcurrency(2);
35044 #else
35045 #ifdef HAVE_THR_SETCONCURRENCY
35046         /* Set Solaris LWP concurrency to 2 */
35047         thr_setconcurrency(2);
35048 #endif
35049 #endif
35050
35051 #if HAVE_PTHREADS < 6
35052         pthread_create(&t, pthread_attr_default, task, NULL);
35053 #else
35054         pthread_create(&t, NULL, task, NULL);
35055 #endif
35056
35057         /* make sure task runs first */
35058 #if HAVE_THR_YIELD
35059         thr_yield();
35060 #elif defined( HAVE_SCHED_YIELD )
35061         sched_yield();
35062 #elif defined( HAVE_PTHREAD_YIELD )
35063         pthread_yield();
35064 #endif
35065
35066         exit(2);
35067 }
35068 _ACEOF
35069 rm -f conftest$ac_exeext
35070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35071   (eval $ac_link) 2>&5
35072   ac_status=$?
35073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35074   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35076   (eval $ac_try) 2>&5
35077   ac_status=$?
35078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35079   (exit $ac_status); }; }; then
35080   ol_cv_pthread_select_yields=no
35081 else
35082   echo "$as_me: program exited with status $ac_status" >&5
35083 echo "$as_me: failed program was:" >&5
35084 sed 's/^/| /' conftest.$ac_ext >&5
35085
35086 ( exit $ac_status )
35087 ol_cv_pthread_select_yields=yes
35088 fi
35089 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35090 fi
35091 fi
35092 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
35093 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
35094
35095                                 if test $ol_cv_pthread_select_yields = cross ; then
35096                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
35097 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
35098    { (exit 1); exit 1; }; }
35099                                 fi
35100
35101                                 if test $ol_cv_pthread_select_yields = yes ; then
35102                                         ol_with_yielding_select=yes
35103                                 fi
35104                         fi
35105
35106                                                 CPPFLAGS="$save_CPPFLAGS"
35107                         LIBS="$save_LIBS"
35108                 else
35109                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
35110 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
35111    { (exit 1); exit 1; }; }
35112                 fi
35113         fi
35114
35115         if test $ol_with_threads = posix ; then
35116                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
35117 echo "$as_me: error: could not locate POSIX Threads" >&2;}
35118    { (exit 1); exit 1; }; }
35119         fi
35120 fi
35121
35122 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35123         -o $ol_with_threads = mach ; then
35124
35125
35126
35127 for ac_header in mach/cthreads.h cthreads.h
35128 do
35129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35131   echo "$as_me:$LINENO: checking for $ac_header" >&5
35132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35134   echo $ECHO_N "(cached) $ECHO_C" >&6
35135 fi
35136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35138 else
35139   # Is the header compilable?
35140 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35142 cat >conftest.$ac_ext <<_ACEOF
35143 /* confdefs.h.  */
35144 _ACEOF
35145 cat confdefs.h >>conftest.$ac_ext
35146 cat >>conftest.$ac_ext <<_ACEOF
35147 /* end confdefs.h.  */
35148 $ac_includes_default
35149 #include <$ac_header>
35150 _ACEOF
35151 rm -f conftest.$ac_objext
35152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35153   (eval $ac_compile) 2>conftest.er1
35154   ac_status=$?
35155   grep -v '^ *+' conftest.er1 >conftest.err
35156   rm -f conftest.er1
35157   cat conftest.err >&5
35158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35159   (exit $ac_status); } &&
35160          { ac_try='test -z "$ac_c_werror_flag"
35161                          || test ! -s conftest.err'
35162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35163   (eval $ac_try) 2>&5
35164   ac_status=$?
35165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166   (exit $ac_status); }; } &&
35167          { ac_try='test -s conftest.$ac_objext'
35168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35169   (eval $ac_try) 2>&5
35170   ac_status=$?
35171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172   (exit $ac_status); }; }; then
35173   ac_header_compiler=yes
35174 else
35175   echo "$as_me: failed program was:" >&5
35176 sed 's/^/| /' conftest.$ac_ext >&5
35177
35178 ac_header_compiler=no
35179 fi
35180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35181 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35182 echo "${ECHO_T}$ac_header_compiler" >&6
35183
35184 # Is the header present?
35185 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35187 cat >conftest.$ac_ext <<_ACEOF
35188 /* confdefs.h.  */
35189 _ACEOF
35190 cat confdefs.h >>conftest.$ac_ext
35191 cat >>conftest.$ac_ext <<_ACEOF
35192 /* end confdefs.h.  */
35193 #include <$ac_header>
35194 _ACEOF
35195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35196   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35197   ac_status=$?
35198   grep -v '^ *+' conftest.er1 >conftest.err
35199   rm -f conftest.er1
35200   cat conftest.err >&5
35201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35202   (exit $ac_status); } >/dev/null; then
35203   if test -s conftest.err; then
35204     ac_cpp_err=$ac_c_preproc_warn_flag
35205     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35206   else
35207     ac_cpp_err=
35208   fi
35209 else
35210   ac_cpp_err=yes
35211 fi
35212 if test -z "$ac_cpp_err"; then
35213   ac_header_preproc=yes
35214 else
35215   echo "$as_me: failed program was:" >&5
35216 sed 's/^/| /' conftest.$ac_ext >&5
35217
35218   ac_header_preproc=no
35219 fi
35220 rm -f conftest.err conftest.$ac_ext
35221 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35222 echo "${ECHO_T}$ac_header_preproc" >&6
35223
35224 # So?  What about this header?
35225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35226   yes:no: )
35227     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35229     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35231     ac_header_preproc=yes
35232     ;;
35233   no:yes:* )
35234     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35236     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35237 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35238     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35240     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35241 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35244     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35246     (
35247       cat <<\_ASBOX
35248 ## ------------------------------------------ ##
35249 ## Report this to the AC_PACKAGE_NAME lists.  ##
35250 ## ------------------------------------------ ##
35251 _ASBOX
35252     ) |
35253       sed "s/^/$as_me: WARNING:     /" >&2
35254     ;;
35255 esac
35256 echo "$as_me:$LINENO: checking for $ac_header" >&5
35257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35259   echo $ECHO_N "(cached) $ECHO_C" >&6
35260 else
35261   eval "$as_ac_Header=\$ac_header_preproc"
35262 fi
35263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35265
35266 fi
35267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35268   cat >>confdefs.h <<_ACEOF
35269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35270 _ACEOF
35271
35272 fi
35273
35274 done
35275
35276         if test $ac_cv_header_mach_cthreads_h = yes ; then
35277                 ol_with_threads=found
35278
35279                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35280 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35281 if test "${ac_cv_func_cthread_fork+set}" = set; then
35282   echo $ECHO_N "(cached) $ECHO_C" >&6
35283 else
35284   cat >conftest.$ac_ext <<_ACEOF
35285 /* confdefs.h.  */
35286 _ACEOF
35287 cat confdefs.h >>conftest.$ac_ext
35288 cat >>conftest.$ac_ext <<_ACEOF
35289 /* end confdefs.h.  */
35290 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35292 #define cthread_fork innocuous_cthread_fork
35293
35294 /* System header to define __stub macros and hopefully few prototypes,
35295     which can conflict with char cthread_fork (); below.
35296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35297     <limits.h> exists even on freestanding compilers.  */
35298
35299 #ifdef __STDC__
35300 # include <limits.h>
35301 #else
35302 # include <assert.h>
35303 #endif
35304
35305 #undef cthread_fork
35306
35307 /* Override any gcc2 internal prototype to avoid an error.  */
35308 #ifdef __cplusplus
35309 extern "C"
35310 {
35311 #endif
35312 /* We use char because int might match the return type of a gcc2
35313    builtin and then its argument prototype would still apply.  */
35314 char cthread_fork ();
35315 /* The GNU C library defines this for functions which it implements
35316     to always fail with ENOSYS.  Some functions are actually named
35317     something starting with __ and the normal name is an alias.  */
35318 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35319 choke me
35320 #else
35321 char (*f) () = cthread_fork;
35322 #endif
35323 #ifdef __cplusplus
35324 }
35325 #endif
35326
35327 int
35328 main ()
35329 {
35330 return f != cthread_fork;
35331   ;
35332   return 0;
35333 }
35334 _ACEOF
35335 rm -f conftest.$ac_objext conftest$ac_exeext
35336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35337   (eval $ac_link) 2>conftest.er1
35338   ac_status=$?
35339   grep -v '^ *+' conftest.er1 >conftest.err
35340   rm -f conftest.er1
35341   cat conftest.err >&5
35342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35343   (exit $ac_status); } &&
35344          { ac_try='test -z "$ac_c_werror_flag"
35345                          || test ! -s conftest.err'
35346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35347   (eval $ac_try) 2>&5
35348   ac_status=$?
35349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350   (exit $ac_status); }; } &&
35351          { ac_try='test -s conftest$ac_exeext'
35352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35353   (eval $ac_try) 2>&5
35354   ac_status=$?
35355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35356   (exit $ac_status); }; }; then
35357   ac_cv_func_cthread_fork=yes
35358 else
35359   echo "$as_me: failed program was:" >&5
35360 sed 's/^/| /' conftest.$ac_ext >&5
35361
35362 ac_cv_func_cthread_fork=no
35363 fi
35364 rm -f conftest.err conftest.$ac_objext \
35365       conftest$ac_exeext conftest.$ac_ext
35366 fi
35367 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35368 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35369 if test $ac_cv_func_cthread_fork = yes; then
35370   ol_link_threads=yes
35371 fi
35372
35373
35374                 if test $ol_link_threads = no ; then
35375                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35376 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35377 if test "${ol_cv_cthread_all_load+set}" = set; then
35378   echo $ECHO_N "(cached) $ECHO_C" >&6
35379 else
35380
35381                                                                 save_LIBS="$LIBS"
35382                                 LIBS="-all_load $LIBS"
35383                                 cat >conftest.$ac_ext <<_ACEOF
35384 /* confdefs.h.  */
35385 _ACEOF
35386 cat confdefs.h >>conftest.$ac_ext
35387 cat >>conftest.$ac_ext <<_ACEOF
35388 /* end confdefs.h.  */
35389 #include <mach/cthreads.h>
35390 int
35391 main ()
35392 {
35393
35394                                         cthread_fork((void *)0, (void *)0);
35395
35396   ;
35397   return 0;
35398 }
35399 _ACEOF
35400 rm -f conftest.$ac_objext conftest$ac_exeext
35401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35402   (eval $ac_link) 2>conftest.er1
35403   ac_status=$?
35404   grep -v '^ *+' conftest.er1 >conftest.err
35405   rm -f conftest.er1
35406   cat conftest.err >&5
35407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408   (exit $ac_status); } &&
35409          { ac_try='test -z "$ac_c_werror_flag"
35410                          || test ! -s conftest.err'
35411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35412   (eval $ac_try) 2>&5
35413   ac_status=$?
35414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35415   (exit $ac_status); }; } &&
35416          { ac_try='test -s conftest$ac_exeext'
35417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35418   (eval $ac_try) 2>&5
35419   ac_status=$?
35420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35421   (exit $ac_status); }; }; then
35422   ol_cv_cthread_all_load=yes
35423 else
35424   echo "$as_me: failed program was:" >&5
35425 sed 's/^/| /' conftest.$ac_ext >&5
35426
35427 ol_cv_cthread_all_load=no
35428 fi
35429 rm -f conftest.err conftest.$ac_objext \
35430       conftest$ac_exeext conftest.$ac_ext
35431                                                                 LIBS="$save_LIBS"
35432
35433 fi
35434 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35435 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35436
35437                         if test $ol_cv_cthread_all_load = yes ; then
35438                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35439                                 ol_link_threads=mach
35440                                 ol_with_threads=found
35441                         fi
35442                 fi
35443
35444         elif test $ac_cv_header_cthreads_h = yes ; then
35445
35446                 ol_with_threads=found
35447
35448                                 save_LIBS="$LIBS"
35449                 LIBS="$LIBS -lthreads"
35450                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35451 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35452 if test "${ac_cv_func_cthread_fork+set}" = set; then
35453   echo $ECHO_N "(cached) $ECHO_C" >&6
35454 else
35455   cat >conftest.$ac_ext <<_ACEOF
35456 /* confdefs.h.  */
35457 _ACEOF
35458 cat confdefs.h >>conftest.$ac_ext
35459 cat >>conftest.$ac_ext <<_ACEOF
35460 /* end confdefs.h.  */
35461 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35462    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35463 #define cthread_fork innocuous_cthread_fork
35464
35465 /* System header to define __stub macros and hopefully few prototypes,
35466     which can conflict with char cthread_fork (); below.
35467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35468     <limits.h> exists even on freestanding compilers.  */
35469
35470 #ifdef __STDC__
35471 # include <limits.h>
35472 #else
35473 # include <assert.h>
35474 #endif
35475
35476 #undef cthread_fork
35477
35478 /* Override any gcc2 internal prototype to avoid an error.  */
35479 #ifdef __cplusplus
35480 extern "C"
35481 {
35482 #endif
35483 /* We use char because int might match the return type of a gcc2
35484    builtin and then its argument prototype would still apply.  */
35485 char cthread_fork ();
35486 /* The GNU C library defines this for functions which it implements
35487     to always fail with ENOSYS.  Some functions are actually named
35488     something starting with __ and the normal name is an alias.  */
35489 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35490 choke me
35491 #else
35492 char (*f) () = cthread_fork;
35493 #endif
35494 #ifdef __cplusplus
35495 }
35496 #endif
35497
35498 int
35499 main ()
35500 {
35501 return f != cthread_fork;
35502   ;
35503   return 0;
35504 }
35505 _ACEOF
35506 rm -f conftest.$ac_objext conftest$ac_exeext
35507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35508   (eval $ac_link) 2>conftest.er1
35509   ac_status=$?
35510   grep -v '^ *+' conftest.er1 >conftest.err
35511   rm -f conftest.er1
35512   cat conftest.err >&5
35513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35514   (exit $ac_status); } &&
35515          { ac_try='test -z "$ac_c_werror_flag"
35516                          || test ! -s conftest.err'
35517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35518   (eval $ac_try) 2>&5
35519   ac_status=$?
35520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35521   (exit $ac_status); }; } &&
35522          { ac_try='test -s conftest$ac_exeext'
35523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35524   (eval $ac_try) 2>&5
35525   ac_status=$?
35526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35527   (exit $ac_status); }; }; then
35528   ac_cv_func_cthread_fork=yes
35529 else
35530   echo "$as_me: failed program was:" >&5
35531 sed 's/^/| /' conftest.$ac_ext >&5
35532
35533 ac_cv_func_cthread_fork=no
35534 fi
35535 rm -f conftest.err conftest.$ac_objext \
35536       conftest$ac_exeext conftest.$ac_ext
35537 fi
35538 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35539 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35540 if test $ac_cv_func_cthread_fork = yes; then
35541   ol_link_threads=yes
35542 fi
35543
35544                 LIBS="$save_LIBS"
35545
35546                 if test $ol_link_threads = yes ; then
35547                         LTHREAD_LIBS="-lthreads"
35548                         ol_link_threads=mach
35549                         ol_with_threads=found
35550                 else
35551                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35552 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35553    { (exit 1); exit 1; }; }
35554                 fi
35555
35556         elif test $ol_with_threads = mach ; then
35557                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35558 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35559    { (exit 1); exit 1; }; }
35560         fi
35561
35562         if test $ol_link_threads = mach ; then
35563
35564 cat >>confdefs.h <<\_ACEOF
35565 #define HAVE_MACH_CTHREADS 1
35566 _ACEOF
35567
35568         elif test $ol_with_threads = found ; then
35569                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35570 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35571    { (exit 1); exit 1; }; }
35572         fi
35573 fi
35574
35575 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35576         -o $ol_with_threads = pth ; then
35577
35578
35579 for ac_header in pth.h
35580 do
35581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35583   echo "$as_me:$LINENO: checking for $ac_header" >&5
35584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35586   echo $ECHO_N "(cached) $ECHO_C" >&6
35587 fi
35588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35590 else
35591   # Is the header compilable?
35592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35594 cat >conftest.$ac_ext <<_ACEOF
35595 /* confdefs.h.  */
35596 _ACEOF
35597 cat confdefs.h >>conftest.$ac_ext
35598 cat >>conftest.$ac_ext <<_ACEOF
35599 /* end confdefs.h.  */
35600 $ac_includes_default
35601 #include <$ac_header>
35602 _ACEOF
35603 rm -f conftest.$ac_objext
35604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35605   (eval $ac_compile) 2>conftest.er1
35606   ac_status=$?
35607   grep -v '^ *+' conftest.er1 >conftest.err
35608   rm -f conftest.er1
35609   cat conftest.err >&5
35610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611   (exit $ac_status); } &&
35612          { ac_try='test -z "$ac_c_werror_flag"
35613                          || test ! -s conftest.err'
35614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35615   (eval $ac_try) 2>&5
35616   ac_status=$?
35617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35618   (exit $ac_status); }; } &&
35619          { ac_try='test -s conftest.$ac_objext'
35620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35621   (eval $ac_try) 2>&5
35622   ac_status=$?
35623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35624   (exit $ac_status); }; }; then
35625   ac_header_compiler=yes
35626 else
35627   echo "$as_me: failed program was:" >&5
35628 sed 's/^/| /' conftest.$ac_ext >&5
35629
35630 ac_header_compiler=no
35631 fi
35632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35634 echo "${ECHO_T}$ac_header_compiler" >&6
35635
35636 # Is the header present?
35637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35639 cat >conftest.$ac_ext <<_ACEOF
35640 /* confdefs.h.  */
35641 _ACEOF
35642 cat confdefs.h >>conftest.$ac_ext
35643 cat >>conftest.$ac_ext <<_ACEOF
35644 /* end confdefs.h.  */
35645 #include <$ac_header>
35646 _ACEOF
35647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35648   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
35655   if test -s conftest.err; then
35656     ac_cpp_err=$ac_c_preproc_warn_flag
35657     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35658   else
35659     ac_cpp_err=
35660   fi
35661 else
35662   ac_cpp_err=yes
35663 fi
35664 if test -z "$ac_cpp_err"; then
35665   ac_header_preproc=yes
35666 else
35667   echo "$as_me: failed program was:" >&5
35668 sed 's/^/| /' conftest.$ac_ext >&5
35669
35670   ac_header_preproc=no
35671 fi
35672 rm -f conftest.err conftest.$ac_ext
35673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35674 echo "${ECHO_T}$ac_header_preproc" >&6
35675
35676 # So?  What about this header?
35677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35678   yes:no: )
35679     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35683     ac_header_preproc=yes
35684     ;;
35685   no:yes:* )
35686     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35688     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35689 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35690     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35692     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35693 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35696     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35698     (
35699       cat <<\_ASBOX
35700 ## ------------------------------------------ ##
35701 ## Report this to the AC_PACKAGE_NAME lists.  ##
35702 ## ------------------------------------------ ##
35703 _ASBOX
35704     ) |
35705       sed "s/^/$as_me: WARNING:     /" >&2
35706     ;;
35707 esac
35708 echo "$as_me:$LINENO: checking for $ac_header" >&5
35709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35711   echo $ECHO_N "(cached) $ECHO_C" >&6
35712 else
35713   eval "$as_ac_Header=\$ac_header_preproc"
35714 fi
35715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35717
35718 fi
35719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35720   cat >>confdefs.h <<_ACEOF
35721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35722 _ACEOF
35723
35724 fi
35725
35726 done
35727
35728
35729         if test $ac_cv_header_pth_h = yes ; then
35730                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35731 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35732 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35733   echo $ECHO_N "(cached) $ECHO_C" >&6
35734 else
35735   ac_check_lib_save_LIBS=$LIBS
35736 LIBS="-lpth  $LIBS"
35737 cat >conftest.$ac_ext <<_ACEOF
35738 /* confdefs.h.  */
35739 _ACEOF
35740 cat confdefs.h >>conftest.$ac_ext
35741 cat >>conftest.$ac_ext <<_ACEOF
35742 /* end confdefs.h.  */
35743
35744 /* Override any gcc2 internal prototype to avoid an error.  */
35745 #ifdef __cplusplus
35746 extern "C"
35747 #endif
35748 /* We use char because int might match the return type of a gcc2
35749    builtin and then its argument prototype would still apply.  */
35750 char pth_version ();
35751 int
35752 main ()
35753 {
35754 pth_version ();
35755   ;
35756   return 0;
35757 }
35758 _ACEOF
35759 rm -f conftest.$ac_objext conftest$ac_exeext
35760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35761   (eval $ac_link) 2>conftest.er1
35762   ac_status=$?
35763   grep -v '^ *+' conftest.er1 >conftest.err
35764   rm -f conftest.er1
35765   cat conftest.err >&5
35766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35767   (exit $ac_status); } &&
35768          { ac_try='test -z "$ac_c_werror_flag"
35769                          || test ! -s conftest.err'
35770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35771   (eval $ac_try) 2>&5
35772   ac_status=$?
35773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35774   (exit $ac_status); }; } &&
35775          { ac_try='test -s conftest$ac_exeext'
35776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35777   (eval $ac_try) 2>&5
35778   ac_status=$?
35779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35780   (exit $ac_status); }; }; then
35781   ac_cv_lib_pth_pth_version=yes
35782 else
35783   echo "$as_me: failed program was:" >&5
35784 sed 's/^/| /' conftest.$ac_ext >&5
35785
35786 ac_cv_lib_pth_pth_version=no
35787 fi
35788 rm -f conftest.err conftest.$ac_objext \
35789       conftest$ac_exeext conftest.$ac_ext
35790 LIBS=$ac_check_lib_save_LIBS
35791 fi
35792 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35793 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35794 if test $ac_cv_lib_pth_pth_version = yes; then
35795   have_pth=yes
35796 else
35797   have_pth=no
35798 fi
35799
35800
35801                 if test $have_pth = yes ; then
35802
35803 cat >>confdefs.h <<\_ACEOF
35804 #define HAVE_GNU_PTH 1
35805 _ACEOF
35806
35807                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35808                         ol_link_threads=pth
35809                         ol_with_threads=found
35810
35811                         if test $ol_with_yielding_select = auto ; then
35812                                 ol_with_yielding_select=yes
35813                         fi
35814                 fi
35815         fi
35816 fi
35817
35818 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35819         -o $ol_with_threads = lwp ; then
35820
35821
35822
35823 for ac_header in thread.h synch.h
35824 do
35825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35827   echo "$as_me:$LINENO: checking for $ac_header" >&5
35828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35830   echo $ECHO_N "(cached) $ECHO_C" >&6
35831 fi
35832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35834 else
35835   # Is the header compilable?
35836 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35838 cat >conftest.$ac_ext <<_ACEOF
35839 /* confdefs.h.  */
35840 _ACEOF
35841 cat confdefs.h >>conftest.$ac_ext
35842 cat >>conftest.$ac_ext <<_ACEOF
35843 /* end confdefs.h.  */
35844 $ac_includes_default
35845 #include <$ac_header>
35846 _ACEOF
35847 rm -f conftest.$ac_objext
35848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35849   (eval $ac_compile) 2>conftest.er1
35850   ac_status=$?
35851   grep -v '^ *+' conftest.er1 >conftest.err
35852   rm -f conftest.er1
35853   cat conftest.err >&5
35854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35855   (exit $ac_status); } &&
35856          { ac_try='test -z "$ac_c_werror_flag"
35857                          || test ! -s conftest.err'
35858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35859   (eval $ac_try) 2>&5
35860   ac_status=$?
35861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35862   (exit $ac_status); }; } &&
35863          { ac_try='test -s conftest.$ac_objext'
35864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35865   (eval $ac_try) 2>&5
35866   ac_status=$?
35867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35868   (exit $ac_status); }; }; then
35869   ac_header_compiler=yes
35870 else
35871   echo "$as_me: failed program was:" >&5
35872 sed 's/^/| /' conftest.$ac_ext >&5
35873
35874 ac_header_compiler=no
35875 fi
35876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35878 echo "${ECHO_T}$ac_header_compiler" >&6
35879
35880 # Is the header present?
35881 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35883 cat >conftest.$ac_ext <<_ACEOF
35884 /* confdefs.h.  */
35885 _ACEOF
35886 cat confdefs.h >>conftest.$ac_ext
35887 cat >>conftest.$ac_ext <<_ACEOF
35888 /* end confdefs.h.  */
35889 #include <$ac_header>
35890 _ACEOF
35891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35892   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35893   ac_status=$?
35894   grep -v '^ *+' conftest.er1 >conftest.err
35895   rm -f conftest.er1
35896   cat conftest.err >&5
35897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35898   (exit $ac_status); } >/dev/null; then
35899   if test -s conftest.err; then
35900     ac_cpp_err=$ac_c_preproc_warn_flag
35901     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35902   else
35903     ac_cpp_err=
35904   fi
35905 else
35906   ac_cpp_err=yes
35907 fi
35908 if test -z "$ac_cpp_err"; then
35909   ac_header_preproc=yes
35910 else
35911   echo "$as_me: failed program was:" >&5
35912 sed 's/^/| /' conftest.$ac_ext >&5
35913
35914   ac_header_preproc=no
35915 fi
35916 rm -f conftest.err conftest.$ac_ext
35917 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35918 echo "${ECHO_T}$ac_header_preproc" >&6
35919
35920 # So?  What about this header?
35921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35922   yes:no: )
35923     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35925     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35927     ac_header_preproc=yes
35928     ;;
35929   no:yes:* )
35930     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35932     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35933 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35934     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35936     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35937 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35940     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35942     (
35943       cat <<\_ASBOX
35944 ## ------------------------------------------ ##
35945 ## Report this to the AC_PACKAGE_NAME lists.  ##
35946 ## ------------------------------------------ ##
35947 _ASBOX
35948     ) |
35949       sed "s/^/$as_me: WARNING:     /" >&2
35950     ;;
35951 esac
35952 echo "$as_me:$LINENO: checking for $ac_header" >&5
35953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35955   echo $ECHO_N "(cached) $ECHO_C" >&6
35956 else
35957   eval "$as_ac_Header=\$ac_header_preproc"
35958 fi
35959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35961
35962 fi
35963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35964   cat >>confdefs.h <<_ACEOF
35965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35966 _ACEOF
35967
35968 fi
35969
35970 done
35971
35972         if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
35973                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
35974 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
35975 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
35976   echo $ECHO_N "(cached) $ECHO_C" >&6
35977 else
35978   ac_check_lib_save_LIBS=$LIBS
35979 LIBS="-lthread  $LIBS"
35980 cat >conftest.$ac_ext <<_ACEOF
35981 /* confdefs.h.  */
35982 _ACEOF
35983 cat confdefs.h >>conftest.$ac_ext
35984 cat >>conftest.$ac_ext <<_ACEOF
35985 /* end confdefs.h.  */
35986
35987 /* Override any gcc2 internal prototype to avoid an error.  */
35988 #ifdef __cplusplus
35989 extern "C"
35990 #endif
35991 /* We use char because int might match the return type of a gcc2
35992    builtin and then its argument prototype would still apply.  */
35993 char thr_create ();
35994 int
35995 main ()
35996 {
35997 thr_create ();
35998   ;
35999   return 0;
36000 }
36001 _ACEOF
36002 rm -f conftest.$ac_objext conftest$ac_exeext
36003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36004   (eval $ac_link) 2>conftest.er1
36005   ac_status=$?
36006   grep -v '^ *+' conftest.er1 >conftest.err
36007   rm -f conftest.er1
36008   cat conftest.err >&5
36009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36010   (exit $ac_status); } &&
36011          { ac_try='test -z "$ac_c_werror_flag"
36012                          || test ! -s conftest.err'
36013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36014   (eval $ac_try) 2>&5
36015   ac_status=$?
36016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36017   (exit $ac_status); }; } &&
36018          { ac_try='test -s conftest$ac_exeext'
36019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36020   (eval $ac_try) 2>&5
36021   ac_status=$?
36022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36023   (exit $ac_status); }; }; then
36024   ac_cv_lib_thread_thr_create=yes
36025 else
36026   echo "$as_me: failed program was:" >&5
36027 sed 's/^/| /' conftest.$ac_ext >&5
36028
36029 ac_cv_lib_thread_thr_create=no
36030 fi
36031 rm -f conftest.err conftest.$ac_objext \
36032       conftest$ac_exeext conftest.$ac_ext
36033 LIBS=$ac_check_lib_save_LIBS
36034 fi
36035 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
36036 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
36037 if test $ac_cv_lib_thread_thr_create = yes; then
36038   have_thr=yes
36039 else
36040   have_thr=no
36041 fi
36042
36043
36044                 if test $have_thr = yes ; then
36045
36046 cat >>confdefs.h <<\_ACEOF
36047 #define HAVE_THR 1
36048 _ACEOF
36049
36050                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
36051                         ol_link_threads=thr
36052
36053                         if test $ol_with_yielding_select = auto ; then
36054                                 ol_with_yielding_select=yes
36055                         fi
36056
36057
36058
36059 for ac_func in \
36060                                 thr_setconcurrency \
36061                                 thr_getconcurrency \
36062
36063 do
36064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36065 echo "$as_me:$LINENO: checking for $ac_func" >&5
36066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36067 if eval "test \"\${$as_ac_var+set}\" = set"; then
36068   echo $ECHO_N "(cached) $ECHO_C" >&6
36069 else
36070   cat >conftest.$ac_ext <<_ACEOF
36071 /* confdefs.h.  */
36072 _ACEOF
36073 cat confdefs.h >>conftest.$ac_ext
36074 cat >>conftest.$ac_ext <<_ACEOF
36075 /* end confdefs.h.  */
36076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36078 #define $ac_func innocuous_$ac_func
36079
36080 /* System header to define __stub macros and hopefully few prototypes,
36081     which can conflict with char $ac_func (); below.
36082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36083     <limits.h> exists even on freestanding compilers.  */
36084
36085 #ifdef __STDC__
36086 # include <limits.h>
36087 #else
36088 # include <assert.h>
36089 #endif
36090
36091 #undef $ac_func
36092
36093 /* Override any gcc2 internal prototype to avoid an error.  */
36094 #ifdef __cplusplus
36095 extern "C"
36096 {
36097 #endif
36098 /* We use char because int might match the return type of a gcc2
36099    builtin and then its argument prototype would still apply.  */
36100 char $ac_func ();
36101 /* The GNU C library defines this for functions which it implements
36102     to always fail with ENOSYS.  Some functions are actually named
36103     something starting with __ and the normal name is an alias.  */
36104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36105 choke me
36106 #else
36107 char (*f) () = $ac_func;
36108 #endif
36109 #ifdef __cplusplus
36110 }
36111 #endif
36112
36113 int
36114 main ()
36115 {
36116 return f != $ac_func;
36117   ;
36118   return 0;
36119 }
36120 _ACEOF
36121 rm -f conftest.$ac_objext conftest$ac_exeext
36122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36123   (eval $ac_link) 2>conftest.er1
36124   ac_status=$?
36125   grep -v '^ *+' conftest.er1 >conftest.err
36126   rm -f conftest.er1
36127   cat conftest.err >&5
36128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36129   (exit $ac_status); } &&
36130          { ac_try='test -z "$ac_c_werror_flag"
36131                          || test ! -s conftest.err'
36132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36133   (eval $ac_try) 2>&5
36134   ac_status=$?
36135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36136   (exit $ac_status); }; } &&
36137          { ac_try='test -s conftest$ac_exeext'
36138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36139   (eval $ac_try) 2>&5
36140   ac_status=$?
36141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36142   (exit $ac_status); }; }; then
36143   eval "$as_ac_var=yes"
36144 else
36145   echo "$as_me: failed program was:" >&5
36146 sed 's/^/| /' conftest.$ac_ext >&5
36147
36148 eval "$as_ac_var=no"
36149 fi
36150 rm -f conftest.err conftest.$ac_objext \
36151       conftest$ac_exeext conftest.$ac_ext
36152 fi
36153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36155 if test `eval echo '${'$as_ac_var'}'` = yes; then
36156   cat >>confdefs.h <<_ACEOF
36157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36158 _ACEOF
36159
36160 fi
36161 done
36162
36163                 fi
36164         fi
36165
36166
36167 for ac_header in lwp/lwp.h
36168 do
36169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36171   echo "$as_me:$LINENO: checking for $ac_header" >&5
36172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36174   echo $ECHO_N "(cached) $ECHO_C" >&6
36175 fi
36176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36178 else
36179   # Is the header compilable?
36180 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36182 cat >conftest.$ac_ext <<_ACEOF
36183 /* confdefs.h.  */
36184 _ACEOF
36185 cat confdefs.h >>conftest.$ac_ext
36186 cat >>conftest.$ac_ext <<_ACEOF
36187 /* end confdefs.h.  */
36188 $ac_includes_default
36189 #include <$ac_header>
36190 _ACEOF
36191 rm -f conftest.$ac_objext
36192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36193   (eval $ac_compile) 2>conftest.er1
36194   ac_status=$?
36195   grep -v '^ *+' conftest.er1 >conftest.err
36196   rm -f conftest.er1
36197   cat conftest.err >&5
36198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36199   (exit $ac_status); } &&
36200          { ac_try='test -z "$ac_c_werror_flag"
36201                          || test ! -s conftest.err'
36202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36203   (eval $ac_try) 2>&5
36204   ac_status=$?
36205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36206   (exit $ac_status); }; } &&
36207          { ac_try='test -s conftest.$ac_objext'
36208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36209   (eval $ac_try) 2>&5
36210   ac_status=$?
36211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36212   (exit $ac_status); }; }; then
36213   ac_header_compiler=yes
36214 else
36215   echo "$as_me: failed program was:" >&5
36216 sed 's/^/| /' conftest.$ac_ext >&5
36217
36218 ac_header_compiler=no
36219 fi
36220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36222 echo "${ECHO_T}$ac_header_compiler" >&6
36223
36224 # Is the header present?
36225 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36227 cat >conftest.$ac_ext <<_ACEOF
36228 /* confdefs.h.  */
36229 _ACEOF
36230 cat confdefs.h >>conftest.$ac_ext
36231 cat >>conftest.$ac_ext <<_ACEOF
36232 /* end confdefs.h.  */
36233 #include <$ac_header>
36234 _ACEOF
36235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36236   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36237   ac_status=$?
36238   grep -v '^ *+' conftest.er1 >conftest.err
36239   rm -f conftest.er1
36240   cat conftest.err >&5
36241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36242   (exit $ac_status); } >/dev/null; then
36243   if test -s conftest.err; then
36244     ac_cpp_err=$ac_c_preproc_warn_flag
36245     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36246   else
36247     ac_cpp_err=
36248   fi
36249 else
36250   ac_cpp_err=yes
36251 fi
36252 if test -z "$ac_cpp_err"; then
36253   ac_header_preproc=yes
36254 else
36255   echo "$as_me: failed program was:" >&5
36256 sed 's/^/| /' conftest.$ac_ext >&5
36257
36258   ac_header_preproc=no
36259 fi
36260 rm -f conftest.err conftest.$ac_ext
36261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36262 echo "${ECHO_T}$ac_header_preproc" >&6
36263
36264 # So?  What about this header?
36265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36266   yes:no: )
36267     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36269     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36271     ac_header_preproc=yes
36272     ;;
36273   no:yes:* )
36274     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36276     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36277 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36278     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36280     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36281 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36284     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36286     (
36287       cat <<\_ASBOX
36288 ## ------------------------------------------ ##
36289 ## Report this to the AC_PACKAGE_NAME lists.  ##
36290 ## ------------------------------------------ ##
36291 _ASBOX
36292     ) |
36293       sed "s/^/$as_me: WARNING:     /" >&2
36294     ;;
36295 esac
36296 echo "$as_me:$LINENO: checking for $ac_header" >&5
36297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36299   echo $ECHO_N "(cached) $ECHO_C" >&6
36300 else
36301   eval "$as_ac_Header=\$ac_header_preproc"
36302 fi
36303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36305
36306 fi
36307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36308   cat >>confdefs.h <<_ACEOF
36309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36310 _ACEOF
36311
36312 fi
36313
36314 done
36315
36316         if test $ac_cv_header_lwp_lwp_h = yes ; then
36317                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36318 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36319 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36320   echo $ECHO_N "(cached) $ECHO_C" >&6
36321 else
36322   ac_check_lib_save_LIBS=$LIBS
36323 LIBS="-llwp  $LIBS"
36324 cat >conftest.$ac_ext <<_ACEOF
36325 /* confdefs.h.  */
36326 _ACEOF
36327 cat confdefs.h >>conftest.$ac_ext
36328 cat >>conftest.$ac_ext <<_ACEOF
36329 /* end confdefs.h.  */
36330
36331 /* Override any gcc2 internal prototype to avoid an error.  */
36332 #ifdef __cplusplus
36333 extern "C"
36334 #endif
36335 /* We use char because int might match the return type of a gcc2
36336    builtin and then its argument prototype would still apply.  */
36337 char lwp_create ();
36338 int
36339 main ()
36340 {
36341 lwp_create ();
36342   ;
36343   return 0;
36344 }
36345 _ACEOF
36346 rm -f conftest.$ac_objext conftest$ac_exeext
36347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36348   (eval $ac_link) 2>conftest.er1
36349   ac_status=$?
36350   grep -v '^ *+' conftest.er1 >conftest.err
36351   rm -f conftest.er1
36352   cat conftest.err >&5
36353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36354   (exit $ac_status); } &&
36355          { ac_try='test -z "$ac_c_werror_flag"
36356                          || test ! -s conftest.err'
36357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36358   (eval $ac_try) 2>&5
36359   ac_status=$?
36360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36361   (exit $ac_status); }; } &&
36362          { ac_try='test -s conftest$ac_exeext'
36363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36364   (eval $ac_try) 2>&5
36365   ac_status=$?
36366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36367   (exit $ac_status); }; }; then
36368   ac_cv_lib_lwp_lwp_create=yes
36369 else
36370   echo "$as_me: failed program was:" >&5
36371 sed 's/^/| /' conftest.$ac_ext >&5
36372
36373 ac_cv_lib_lwp_lwp_create=no
36374 fi
36375 rm -f conftest.err conftest.$ac_objext \
36376       conftest$ac_exeext conftest.$ac_ext
36377 LIBS=$ac_check_lib_save_LIBS
36378 fi
36379 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36380 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36381 if test $ac_cv_lib_lwp_lwp_create = yes; then
36382   have_lwp=yes
36383 else
36384   have_lwp=no
36385 fi
36386
36387
36388                 if test $have_lwp = yes ; then
36389
36390 cat >>confdefs.h <<\_ACEOF
36391 #define HAVE_LWP 1
36392 _ACEOF
36393
36394                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36395                         ol_link_threads=lwp
36396
36397                         if test $ol_with_yielding_select = auto ; then
36398                                 ol_with_yielding_select=no
36399                         fi
36400                 fi
36401         fi
36402 fi
36403
36404 if test $ol_with_yielding_select = yes ; then
36405
36406 cat >>confdefs.h <<\_ACEOF
36407 #define HAVE_YIELDING_SELECT 1
36408 _ACEOF
36409
36410 fi
36411
36412 if test $ol_with_threads = manual ; then
36413                 ol_link_threads=yes
36414
36415         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36416 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36417
36418
36419
36420 for ac_header in pthread.h sched.h
36421 do
36422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36424   echo "$as_me:$LINENO: checking for $ac_header" >&5
36425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36427   echo $ECHO_N "(cached) $ECHO_C" >&6
36428 fi
36429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36431 else
36432   # Is the header compilable?
36433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36435 cat >conftest.$ac_ext <<_ACEOF
36436 /* confdefs.h.  */
36437 _ACEOF
36438 cat confdefs.h >>conftest.$ac_ext
36439 cat >>conftest.$ac_ext <<_ACEOF
36440 /* end confdefs.h.  */
36441 $ac_includes_default
36442 #include <$ac_header>
36443 _ACEOF
36444 rm -f conftest.$ac_objext
36445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36446   (eval $ac_compile) 2>conftest.er1
36447   ac_status=$?
36448   grep -v '^ *+' conftest.er1 >conftest.err
36449   rm -f conftest.er1
36450   cat conftest.err >&5
36451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36452   (exit $ac_status); } &&
36453          { ac_try='test -z "$ac_c_werror_flag"
36454                          || test ! -s conftest.err'
36455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36456   (eval $ac_try) 2>&5
36457   ac_status=$?
36458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36459   (exit $ac_status); }; } &&
36460          { ac_try='test -s conftest.$ac_objext'
36461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36462   (eval $ac_try) 2>&5
36463   ac_status=$?
36464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36465   (exit $ac_status); }; }; then
36466   ac_header_compiler=yes
36467 else
36468   echo "$as_me: failed program was:" >&5
36469 sed 's/^/| /' conftest.$ac_ext >&5
36470
36471 ac_header_compiler=no
36472 fi
36473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36475 echo "${ECHO_T}$ac_header_compiler" >&6
36476
36477 # Is the header present?
36478 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36480 cat >conftest.$ac_ext <<_ACEOF
36481 /* confdefs.h.  */
36482 _ACEOF
36483 cat confdefs.h >>conftest.$ac_ext
36484 cat >>conftest.$ac_ext <<_ACEOF
36485 /* end confdefs.h.  */
36486 #include <$ac_header>
36487 _ACEOF
36488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36489   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36490   ac_status=$?
36491   grep -v '^ *+' conftest.er1 >conftest.err
36492   rm -f conftest.er1
36493   cat conftest.err >&5
36494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36495   (exit $ac_status); } >/dev/null; then
36496   if test -s conftest.err; then
36497     ac_cpp_err=$ac_c_preproc_warn_flag
36498     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36499   else
36500     ac_cpp_err=
36501   fi
36502 else
36503   ac_cpp_err=yes
36504 fi
36505 if test -z "$ac_cpp_err"; then
36506   ac_header_preproc=yes
36507 else
36508   echo "$as_me: failed program was:" >&5
36509 sed 's/^/| /' conftest.$ac_ext >&5
36510
36511   ac_header_preproc=no
36512 fi
36513 rm -f conftest.err conftest.$ac_ext
36514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36515 echo "${ECHO_T}$ac_header_preproc" >&6
36516
36517 # So?  What about this header?
36518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36519   yes:no: )
36520     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36522     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36524     ac_header_preproc=yes
36525     ;;
36526   no:yes:* )
36527     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36529     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36530 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36531     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36533     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36534 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36535     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36537     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36539     (
36540       cat <<\_ASBOX
36541 ## ------------------------------------------ ##
36542 ## Report this to the AC_PACKAGE_NAME lists.  ##
36543 ## ------------------------------------------ ##
36544 _ASBOX
36545     ) |
36546       sed "s/^/$as_me: WARNING:     /" >&2
36547     ;;
36548 esac
36549 echo "$as_me:$LINENO: checking for $ac_header" >&5
36550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36552   echo $ECHO_N "(cached) $ECHO_C" >&6
36553 else
36554   eval "$as_ac_Header=\$ac_header_preproc"
36555 fi
36556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36558
36559 fi
36560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36561   cat >>confdefs.h <<_ACEOF
36562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36563 _ACEOF
36564
36565 fi
36566
36567 done
36568
36569
36570
36571 for ac_func in sched_yield pthread_yield
36572 do
36573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36574 echo "$as_me:$LINENO: checking for $ac_func" >&5
36575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36576 if eval "test \"\${$as_ac_var+set}\" = set"; then
36577   echo $ECHO_N "(cached) $ECHO_C" >&6
36578 else
36579   cat >conftest.$ac_ext <<_ACEOF
36580 /* confdefs.h.  */
36581 _ACEOF
36582 cat confdefs.h >>conftest.$ac_ext
36583 cat >>conftest.$ac_ext <<_ACEOF
36584 /* end confdefs.h.  */
36585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36587 #define $ac_func innocuous_$ac_func
36588
36589 /* System header to define __stub macros and hopefully few prototypes,
36590     which can conflict with char $ac_func (); below.
36591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36592     <limits.h> exists even on freestanding compilers.  */
36593
36594 #ifdef __STDC__
36595 # include <limits.h>
36596 #else
36597 # include <assert.h>
36598 #endif
36599
36600 #undef $ac_func
36601
36602 /* Override any gcc2 internal prototype to avoid an error.  */
36603 #ifdef __cplusplus
36604 extern "C"
36605 {
36606 #endif
36607 /* We use char because int might match the return type of a gcc2
36608    builtin and then its argument prototype would still apply.  */
36609 char $ac_func ();
36610 /* The GNU C library defines this for functions which it implements
36611     to always fail with ENOSYS.  Some functions are actually named
36612     something starting with __ and the normal name is an alias.  */
36613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36614 choke me
36615 #else
36616 char (*f) () = $ac_func;
36617 #endif
36618 #ifdef __cplusplus
36619 }
36620 #endif
36621
36622 int
36623 main ()
36624 {
36625 return f != $ac_func;
36626   ;
36627   return 0;
36628 }
36629 _ACEOF
36630 rm -f conftest.$ac_objext conftest$ac_exeext
36631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36632   (eval $ac_link) 2>conftest.er1
36633   ac_status=$?
36634   grep -v '^ *+' conftest.er1 >conftest.err
36635   rm -f conftest.er1
36636   cat conftest.err >&5
36637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36638   (exit $ac_status); } &&
36639          { ac_try='test -z "$ac_c_werror_flag"
36640                          || test ! -s conftest.err'
36641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36642   (eval $ac_try) 2>&5
36643   ac_status=$?
36644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36645   (exit $ac_status); }; } &&
36646          { ac_try='test -s conftest$ac_exeext'
36647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36648   (eval $ac_try) 2>&5
36649   ac_status=$?
36650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36651   (exit $ac_status); }; }; then
36652   eval "$as_ac_var=yes"
36653 else
36654   echo "$as_me: failed program was:" >&5
36655 sed 's/^/| /' conftest.$ac_ext >&5
36656
36657 eval "$as_ac_var=no"
36658 fi
36659 rm -f conftest.err conftest.$ac_objext \
36660       conftest$ac_exeext conftest.$ac_ext
36661 fi
36662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36664 if test `eval echo '${'$as_ac_var'}'` = yes; then
36665   cat >>confdefs.h <<_ACEOF
36666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36667 _ACEOF
36668
36669 fi
36670 done
36671
36672
36673         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36674 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36675 if test "${ol_cv_header_linux_threads+set}" = set; then
36676   echo $ECHO_N "(cached) $ECHO_C" >&6
36677 else
36678   cat >conftest.$ac_ext <<_ACEOF
36679 /* confdefs.h.  */
36680 _ACEOF
36681 cat confdefs.h >>conftest.$ac_ext
36682 cat >>conftest.$ac_ext <<_ACEOF
36683 /* end confdefs.h.  */
36684 #include <pthread.h>
36685 _ACEOF
36686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36687   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36688   ol_cv_header_linux_threads=yes
36689 else
36690   ol_cv_header_linux_threads=no
36691 fi
36692 rm -f conftest*
36693
36694
36695 fi
36696 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36697 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36698         if test $ol_cv_header_linux_threads = yes; then
36699
36700 cat >>confdefs.h <<\_ACEOF
36701 #define HAVE_LINUX_THREADS 1
36702 _ACEOF
36703
36704         fi
36705
36706
36707
36708 for ac_header in mach/cthreads.h
36709 do
36710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36712   echo "$as_me:$LINENO: checking for $ac_header" >&5
36713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36715   echo $ECHO_N "(cached) $ECHO_C" >&6
36716 fi
36717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36719 else
36720   # Is the header compilable?
36721 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36723 cat >conftest.$ac_ext <<_ACEOF
36724 /* confdefs.h.  */
36725 _ACEOF
36726 cat confdefs.h >>conftest.$ac_ext
36727 cat >>conftest.$ac_ext <<_ACEOF
36728 /* end confdefs.h.  */
36729 $ac_includes_default
36730 #include <$ac_header>
36731 _ACEOF
36732 rm -f conftest.$ac_objext
36733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36734   (eval $ac_compile) 2>conftest.er1
36735   ac_status=$?
36736   grep -v '^ *+' conftest.er1 >conftest.err
36737   rm -f conftest.er1
36738   cat conftest.err >&5
36739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36740   (exit $ac_status); } &&
36741          { ac_try='test -z "$ac_c_werror_flag"
36742                          || test ! -s conftest.err'
36743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36744   (eval $ac_try) 2>&5
36745   ac_status=$?
36746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36747   (exit $ac_status); }; } &&
36748          { ac_try='test -s conftest.$ac_objext'
36749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36750   (eval $ac_try) 2>&5
36751   ac_status=$?
36752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36753   (exit $ac_status); }; }; then
36754   ac_header_compiler=yes
36755 else
36756   echo "$as_me: failed program was:" >&5
36757 sed 's/^/| /' conftest.$ac_ext >&5
36758
36759 ac_header_compiler=no
36760 fi
36761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36763 echo "${ECHO_T}$ac_header_compiler" >&6
36764
36765 # Is the header present?
36766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36768 cat >conftest.$ac_ext <<_ACEOF
36769 /* confdefs.h.  */
36770 _ACEOF
36771 cat confdefs.h >>conftest.$ac_ext
36772 cat >>conftest.$ac_ext <<_ACEOF
36773 /* end confdefs.h.  */
36774 #include <$ac_header>
36775 _ACEOF
36776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36777   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36778   ac_status=$?
36779   grep -v '^ *+' conftest.er1 >conftest.err
36780   rm -f conftest.er1
36781   cat conftest.err >&5
36782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36783   (exit $ac_status); } >/dev/null; then
36784   if test -s conftest.err; then
36785     ac_cpp_err=$ac_c_preproc_warn_flag
36786     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36787   else
36788     ac_cpp_err=
36789   fi
36790 else
36791   ac_cpp_err=yes
36792 fi
36793 if test -z "$ac_cpp_err"; then
36794   ac_header_preproc=yes
36795 else
36796   echo "$as_me: failed program was:" >&5
36797 sed 's/^/| /' conftest.$ac_ext >&5
36798
36799   ac_header_preproc=no
36800 fi
36801 rm -f conftest.err conftest.$ac_ext
36802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36803 echo "${ECHO_T}$ac_header_preproc" >&6
36804
36805 # So?  What about this header?
36806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36807   yes:no: )
36808     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36812     ac_header_preproc=yes
36813     ;;
36814   no:yes:* )
36815     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36817     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36818 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36819     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36821     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36822 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36825     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36827     (
36828       cat <<\_ASBOX
36829 ## ------------------------------------------ ##
36830 ## Report this to the AC_PACKAGE_NAME lists.  ##
36831 ## ------------------------------------------ ##
36832 _ASBOX
36833     ) |
36834       sed "s/^/$as_me: WARNING:     /" >&2
36835     ;;
36836 esac
36837 echo "$as_me:$LINENO: checking for $ac_header" >&5
36838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36840   echo $ECHO_N "(cached) $ECHO_C" >&6
36841 else
36842   eval "$as_ac_Header=\$ac_header_preproc"
36843 fi
36844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36846
36847 fi
36848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36849   cat >>confdefs.h <<_ACEOF
36850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36851 _ACEOF
36852
36853 fi
36854
36855 done
36856
36857
36858 for ac_header in lwp/lwp.h
36859 do
36860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36862   echo "$as_me:$LINENO: checking for $ac_header" >&5
36863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36865   echo $ECHO_N "(cached) $ECHO_C" >&6
36866 fi
36867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36869 else
36870   # Is the header compilable?
36871 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36873 cat >conftest.$ac_ext <<_ACEOF
36874 /* confdefs.h.  */
36875 _ACEOF
36876 cat confdefs.h >>conftest.$ac_ext
36877 cat >>conftest.$ac_ext <<_ACEOF
36878 /* end confdefs.h.  */
36879 $ac_includes_default
36880 #include <$ac_header>
36881 _ACEOF
36882 rm -f conftest.$ac_objext
36883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36884   (eval $ac_compile) 2>conftest.er1
36885   ac_status=$?
36886   grep -v '^ *+' conftest.er1 >conftest.err
36887   rm -f conftest.er1
36888   cat conftest.err >&5
36889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36890   (exit $ac_status); } &&
36891          { ac_try='test -z "$ac_c_werror_flag"
36892                          || test ! -s conftest.err'
36893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36894   (eval $ac_try) 2>&5
36895   ac_status=$?
36896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36897   (exit $ac_status); }; } &&
36898          { ac_try='test -s conftest.$ac_objext'
36899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36900   (eval $ac_try) 2>&5
36901   ac_status=$?
36902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36903   (exit $ac_status); }; }; then
36904   ac_header_compiler=yes
36905 else
36906   echo "$as_me: failed program was:" >&5
36907 sed 's/^/| /' conftest.$ac_ext >&5
36908
36909 ac_header_compiler=no
36910 fi
36911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36913 echo "${ECHO_T}$ac_header_compiler" >&6
36914
36915 # Is the header present?
36916 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36918 cat >conftest.$ac_ext <<_ACEOF
36919 /* confdefs.h.  */
36920 _ACEOF
36921 cat confdefs.h >>conftest.$ac_ext
36922 cat >>conftest.$ac_ext <<_ACEOF
36923 /* end confdefs.h.  */
36924 #include <$ac_header>
36925 _ACEOF
36926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36927   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36928   ac_status=$?
36929   grep -v '^ *+' conftest.er1 >conftest.err
36930   rm -f conftest.er1
36931   cat conftest.err >&5
36932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36933   (exit $ac_status); } >/dev/null; then
36934   if test -s conftest.err; then
36935     ac_cpp_err=$ac_c_preproc_warn_flag
36936     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36937   else
36938     ac_cpp_err=
36939   fi
36940 else
36941   ac_cpp_err=yes
36942 fi
36943 if test -z "$ac_cpp_err"; then
36944   ac_header_preproc=yes
36945 else
36946   echo "$as_me: failed program was:" >&5
36947 sed 's/^/| /' conftest.$ac_ext >&5
36948
36949   ac_header_preproc=no
36950 fi
36951 rm -f conftest.err conftest.$ac_ext
36952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36953 echo "${ECHO_T}$ac_header_preproc" >&6
36954
36955 # So?  What about this header?
36956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36957   yes:no: )
36958     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36960     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36962     ac_header_preproc=yes
36963     ;;
36964   no:yes:* )
36965     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36967     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36968 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36969     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36971     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36972 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36973     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36975     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36977     (
36978       cat <<\_ASBOX
36979 ## ------------------------------------------ ##
36980 ## Report this to the AC_PACKAGE_NAME lists.  ##
36981 ## ------------------------------------------ ##
36982 _ASBOX
36983     ) |
36984       sed "s/^/$as_me: WARNING:     /" >&2
36985     ;;
36986 esac
36987 echo "$as_me:$LINENO: checking for $ac_header" >&5
36988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36990   echo $ECHO_N "(cached) $ECHO_C" >&6
36991 else
36992   eval "$as_ac_Header=\$ac_header_preproc"
36993 fi
36994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36996
36997 fi
36998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36999   cat >>confdefs.h <<_ACEOF
37000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37001 _ACEOF
37002
37003 fi
37004
37005 done
37006
37007
37008
37009 for ac_header in thread.h synch.h
37010 do
37011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37013   echo "$as_me:$LINENO: checking for $ac_header" >&5
37014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37016   echo $ECHO_N "(cached) $ECHO_C" >&6
37017 fi
37018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37020 else
37021   # Is the header compilable?
37022 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37024 cat >conftest.$ac_ext <<_ACEOF
37025 /* confdefs.h.  */
37026 _ACEOF
37027 cat confdefs.h >>conftest.$ac_ext
37028 cat >>conftest.$ac_ext <<_ACEOF
37029 /* end confdefs.h.  */
37030 $ac_includes_default
37031 #include <$ac_header>
37032 _ACEOF
37033 rm -f conftest.$ac_objext
37034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37035   (eval $ac_compile) 2>conftest.er1
37036   ac_status=$?
37037   grep -v '^ *+' conftest.er1 >conftest.err
37038   rm -f conftest.er1
37039   cat conftest.err >&5
37040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37041   (exit $ac_status); } &&
37042          { ac_try='test -z "$ac_c_werror_flag"
37043                          || test ! -s conftest.err'
37044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37045   (eval $ac_try) 2>&5
37046   ac_status=$?
37047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37048   (exit $ac_status); }; } &&
37049          { ac_try='test -s conftest.$ac_objext'
37050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37051   (eval $ac_try) 2>&5
37052   ac_status=$?
37053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054   (exit $ac_status); }; }; then
37055   ac_header_compiler=yes
37056 else
37057   echo "$as_me: failed program was:" >&5
37058 sed 's/^/| /' conftest.$ac_ext >&5
37059
37060 ac_header_compiler=no
37061 fi
37062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37064 echo "${ECHO_T}$ac_header_compiler" >&6
37065
37066 # Is the header present?
37067 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37069 cat >conftest.$ac_ext <<_ACEOF
37070 /* confdefs.h.  */
37071 _ACEOF
37072 cat confdefs.h >>conftest.$ac_ext
37073 cat >>conftest.$ac_ext <<_ACEOF
37074 /* end confdefs.h.  */
37075 #include <$ac_header>
37076 _ACEOF
37077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37078   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37079   ac_status=$?
37080   grep -v '^ *+' conftest.er1 >conftest.err
37081   rm -f conftest.er1
37082   cat conftest.err >&5
37083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37084   (exit $ac_status); } >/dev/null; then
37085   if test -s conftest.err; then
37086     ac_cpp_err=$ac_c_preproc_warn_flag
37087     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37088   else
37089     ac_cpp_err=
37090   fi
37091 else
37092   ac_cpp_err=yes
37093 fi
37094 if test -z "$ac_cpp_err"; then
37095   ac_header_preproc=yes
37096 else
37097   echo "$as_me: failed program was:" >&5
37098 sed 's/^/| /' conftest.$ac_ext >&5
37099
37100   ac_header_preproc=no
37101 fi
37102 rm -f conftest.err conftest.$ac_ext
37103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37104 echo "${ECHO_T}$ac_header_preproc" >&6
37105
37106 # So?  What about this header?
37107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37108   yes:no: )
37109     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37113     ac_header_preproc=yes
37114     ;;
37115   no:yes:* )
37116     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37118     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37119 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37120     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37122     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37123 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37124     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37126     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37128     (
37129       cat <<\_ASBOX
37130 ## ------------------------------------------ ##
37131 ## Report this to the AC_PACKAGE_NAME lists.  ##
37132 ## ------------------------------------------ ##
37133 _ASBOX
37134     ) |
37135       sed "s/^/$as_me: WARNING:     /" >&2
37136     ;;
37137 esac
37138 echo "$as_me:$LINENO: checking for $ac_header" >&5
37139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37141   echo $ECHO_N "(cached) $ECHO_C" >&6
37142 else
37143   eval "$as_ac_Header=\$ac_header_preproc"
37144 fi
37145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37147
37148 fi
37149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37150   cat >>confdefs.h <<_ACEOF
37151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37152 _ACEOF
37153
37154 fi
37155
37156 done
37157
37158 fi
37159
37160 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
37161                         cat >>confdefs.h <<\_ACEOF
37162 #define REENTRANT 1
37163 _ACEOF
37164
37165         cat >>confdefs.h <<\_ACEOF
37166 #define _REENTRANT 1
37167 _ACEOF
37168
37169         cat >>confdefs.h <<\_ACEOF
37170 #define THREAD_SAFE 1
37171 _ACEOF
37172
37173         cat >>confdefs.h <<\_ACEOF
37174 #define _THREAD_SAFE 1
37175 _ACEOF
37176
37177         cat >>confdefs.h <<\_ACEOF
37178 #define THREADSAFE 1
37179 _ACEOF
37180
37181         cat >>confdefs.h <<\_ACEOF
37182 #define _THREADSAFE 1
37183 _ACEOF
37184
37185         cat >>confdefs.h <<\_ACEOF
37186 #define _SGI_MP_SOURCE 1
37187 _ACEOF
37188
37189
37190                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
37191 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
37192 if test "${ol_cv_errno_thread_specific+set}" = set; then
37193   echo $ECHO_N "(cached) $ECHO_C" >&6
37194 else
37195
37196                 cat >conftest.$ac_ext <<_ACEOF
37197 /* confdefs.h.  */
37198 _ACEOF
37199 cat confdefs.h >>conftest.$ac_ext
37200 cat >>conftest.$ac_ext <<_ACEOF
37201 /* end confdefs.h.  */
37202 #include <errno.h>
37203 int
37204 main ()
37205 {
37206 errno = 0;
37207   ;
37208   return 0;
37209 }
37210 _ACEOF
37211 rm -f conftest.$ac_objext conftest$ac_exeext
37212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37213   (eval $ac_link) 2>conftest.er1
37214   ac_status=$?
37215   grep -v '^ *+' conftest.er1 >conftest.err
37216   rm -f conftest.er1
37217   cat conftest.err >&5
37218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37219   (exit $ac_status); } &&
37220          { ac_try='test -z "$ac_c_werror_flag"
37221                          || test ! -s conftest.err'
37222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37223   (eval $ac_try) 2>&5
37224   ac_status=$?
37225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37226   (exit $ac_status); }; } &&
37227          { ac_try='test -s conftest$ac_exeext'
37228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37229   (eval $ac_try) 2>&5
37230   ac_status=$?
37231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37232   (exit $ac_status); }; }; then
37233   ol_cv_errno_thread_specific=yes
37234 else
37235   echo "$as_me: failed program was:" >&5
37236 sed 's/^/| /' conftest.$ac_ext >&5
37237
37238 ol_cv_errno_thread_specific=no
37239 fi
37240 rm -f conftest.err conftest.$ac_objext \
37241       conftest$ac_exeext conftest.$ac_ext
37242
37243 fi
37244 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37245 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37246
37247                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37248 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37249 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37250   echo $ECHO_N "(cached) $ECHO_C" >&6
37251 else
37252
37253                 cat >conftest.$ac_ext <<_ACEOF
37254 /* confdefs.h.  */
37255 _ACEOF
37256 cat confdefs.h >>conftest.$ac_ext
37257 cat >>conftest.$ac_ext <<_ACEOF
37258 /* end confdefs.h.  */
37259 #include <netdb.h>
37260 int
37261 main ()
37262 {
37263 h_errno = 0;
37264   ;
37265   return 0;
37266 }
37267 _ACEOF
37268 rm -f conftest.$ac_objext conftest$ac_exeext
37269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37270   (eval $ac_link) 2>conftest.er1
37271   ac_status=$?
37272   grep -v '^ *+' conftest.er1 >conftest.err
37273   rm -f conftest.er1
37274   cat conftest.err >&5
37275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37276   (exit $ac_status); } &&
37277          { ac_try='test -z "$ac_c_werror_flag"
37278                          || test ! -s conftest.err'
37279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37280   (eval $ac_try) 2>&5
37281   ac_status=$?
37282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37283   (exit $ac_status); }; } &&
37284          { ac_try='test -s conftest$ac_exeext'
37285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37286   (eval $ac_try) 2>&5
37287   ac_status=$?
37288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37289   (exit $ac_status); }; }; then
37290   ol_cv_h_errno_thread_specific=yes
37291 else
37292   echo "$as_me: failed program was:" >&5
37293 sed 's/^/| /' conftest.$ac_ext >&5
37294
37295 ol_cv_h_errno_thread_specific=no
37296 fi
37297 rm -f conftest.err conftest.$ac_objext \
37298       conftest$ac_exeext conftest.$ac_ext
37299
37300 fi
37301 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37302 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37303
37304         if test $ol_cv_errno_thread_specific != yes \
37305                 -o $ol_cv_h_errno_thread_specific != yes ; then
37306                 LIBS="$LTHREAD_LIBS $LIBS"
37307                 LTHREAD_LIBS=""
37308         fi
37309
37310 fi
37311
37312 if test $ol_link_threads = no ; then
37313         if test $ol_with_threads = yes ; then
37314                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37315 echo "$as_me: error: no suitable thread support" >&2;}
37316    { (exit 1); exit 1; }; }
37317         fi
37318
37319         if test $ol_with_threads = auto ; then
37320                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37321 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37322                 ol_with_threads=no
37323         fi
37324
37325
37326 cat >>confdefs.h <<\_ACEOF
37327 #define NO_THREADS 1
37328 _ACEOF
37329
37330         LTHREAD_LIBS=""
37331 fi
37332
37333 if test $ol_link_threads != no ; then
37334
37335 cat >>confdefs.h <<\_ACEOF
37336 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37337 _ACEOF
37338
37339 fi
37340
37341
37342
37343
37344 for ac_func in \
37345         ctime_r                 \
37346         gethostbyname_r gethostbyaddr_r \
37347
37348 do
37349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37350 echo "$as_me:$LINENO: checking for $ac_func" >&5
37351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37352 if eval "test \"\${$as_ac_var+set}\" = set"; then
37353   echo $ECHO_N "(cached) $ECHO_C" >&6
37354 else
37355   cat >conftest.$ac_ext <<_ACEOF
37356 /* confdefs.h.  */
37357 _ACEOF
37358 cat confdefs.h >>conftest.$ac_ext
37359 cat >>conftest.$ac_ext <<_ACEOF
37360 /* end confdefs.h.  */
37361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37363 #define $ac_func innocuous_$ac_func
37364
37365 /* System header to define __stub macros and hopefully few prototypes,
37366     which can conflict with char $ac_func (); below.
37367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37368     <limits.h> exists even on freestanding compilers.  */
37369
37370 #ifdef __STDC__
37371 # include <limits.h>
37372 #else
37373 # include <assert.h>
37374 #endif
37375
37376 #undef $ac_func
37377
37378 /* Override any gcc2 internal prototype to avoid an error.  */
37379 #ifdef __cplusplus
37380 extern "C"
37381 {
37382 #endif
37383 /* We use char because int might match the return type of a gcc2
37384    builtin and then its argument prototype would still apply.  */
37385 char $ac_func ();
37386 /* The GNU C library defines this for functions which it implements
37387     to always fail with ENOSYS.  Some functions are actually named
37388     something starting with __ and the normal name is an alias.  */
37389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37390 choke me
37391 #else
37392 char (*f) () = $ac_func;
37393 #endif
37394 #ifdef __cplusplus
37395 }
37396 #endif
37397
37398 int
37399 main ()
37400 {
37401 return f != $ac_func;
37402   ;
37403   return 0;
37404 }
37405 _ACEOF
37406 rm -f conftest.$ac_objext conftest$ac_exeext
37407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37408   (eval $ac_link) 2>conftest.er1
37409   ac_status=$?
37410   grep -v '^ *+' conftest.er1 >conftest.err
37411   rm -f conftest.er1
37412   cat conftest.err >&5
37413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37414   (exit $ac_status); } &&
37415          { ac_try='test -z "$ac_c_werror_flag"
37416                          || test ! -s conftest.err'
37417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37418   (eval $ac_try) 2>&5
37419   ac_status=$?
37420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37421   (exit $ac_status); }; } &&
37422          { ac_try='test -s conftest$ac_exeext'
37423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37424   (eval $ac_try) 2>&5
37425   ac_status=$?
37426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37427   (exit $ac_status); }; }; then
37428   eval "$as_ac_var=yes"
37429 else
37430   echo "$as_me: failed program was:" >&5
37431 sed 's/^/| /' conftest.$ac_ext >&5
37432
37433 eval "$as_ac_var=no"
37434 fi
37435 rm -f conftest.err conftest.$ac_objext \
37436       conftest$ac_exeext conftest.$ac_ext
37437 fi
37438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37440 if test `eval echo '${'$as_ac_var'}'` = yes; then
37441   cat >>confdefs.h <<_ACEOF
37442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37443 _ACEOF
37444
37445 fi
37446 done
37447
37448
37449 if test "$ac_cv_func_ctime_r" = no ; then
37450         ol_cv_func_ctime_r_nargs=0
37451 else
37452         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37453 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37454 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37455   echo $ECHO_N "(cached) $ECHO_C" >&6
37456 else
37457   cat >conftest.$ac_ext <<_ACEOF
37458 /* confdefs.h.  */
37459 _ACEOF
37460 cat confdefs.h >>conftest.$ac_ext
37461 cat >>conftest.$ac_ext <<_ACEOF
37462 /* end confdefs.h.  */
37463 #include <time.h>
37464 int
37465 main ()
37466 {
37467 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37468   ;
37469   return 0;
37470 }
37471 _ACEOF
37472 rm -f conftest.$ac_objext
37473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37474   (eval $ac_compile) 2>conftest.er1
37475   ac_status=$?
37476   grep -v '^ *+' conftest.er1 >conftest.err
37477   rm -f conftest.er1
37478   cat conftest.err >&5
37479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37480   (exit $ac_status); } &&
37481          { ac_try='test -z "$ac_c_werror_flag"
37482                          || test ! -s conftest.err'
37483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37484   (eval $ac_try) 2>&5
37485   ac_status=$?
37486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37487   (exit $ac_status); }; } &&
37488          { ac_try='test -s conftest.$ac_objext'
37489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37490   (eval $ac_try) 2>&5
37491   ac_status=$?
37492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37493   (exit $ac_status); }; }; then
37494   ol_cv_func_ctime_r_nargs3=yes
37495 else
37496   echo "$as_me: failed program was:" >&5
37497 sed 's/^/| /' conftest.$ac_ext >&5
37498
37499 ol_cv_func_ctime_r_nargs3=no
37500 fi
37501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37502
37503         cat >conftest.$ac_ext <<_ACEOF
37504 /* confdefs.h.  */
37505 _ACEOF
37506 cat confdefs.h >>conftest.$ac_ext
37507 cat >>conftest.$ac_ext <<_ACEOF
37508 /* end confdefs.h.  */
37509 #include <time.h>
37510 int
37511 main ()
37512 {
37513 time_t ti; char *buffer; ctime_r(&ti,buffer);
37514   ;
37515   return 0;
37516 }
37517 _ACEOF
37518 rm -f conftest.$ac_objext
37519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37520   (eval $ac_compile) 2>conftest.er1
37521   ac_status=$?
37522   grep -v '^ *+' conftest.er1 >conftest.err
37523   rm -f conftest.er1
37524   cat conftest.err >&5
37525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37526   (exit $ac_status); } &&
37527          { ac_try='test -z "$ac_c_werror_flag"
37528                          || test ! -s conftest.err'
37529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37530   (eval $ac_try) 2>&5
37531   ac_status=$?
37532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37533   (exit $ac_status); }; } &&
37534          { ac_try='test -s conftest.$ac_objext'
37535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37536   (eval $ac_try) 2>&5
37537   ac_status=$?
37538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37539   (exit $ac_status); }; }; then
37540   ol_cv_func_ctime_r_nargs2=yes
37541 else
37542   echo "$as_me: failed program was:" >&5
37543 sed 's/^/| /' conftest.$ac_ext >&5
37544
37545 ol_cv_func_ctime_r_nargs2=no
37546 fi
37547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37548
37549         if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37550                 $ol_cv_func_ctime_r_nargs2 = no ; then
37551
37552                 ol_cv_func_ctime_r_nargs=3
37553
37554         elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37555                 $ol_cv_func_ctime_r_nargs2 = yes ; then
37556
37557                 ol_cv_func_ctime_r_nargs=2
37558
37559         else
37560                 ol_cv_func_ctime_r_nargs=0
37561         fi
37562
37563 fi
37564 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37565 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37566
37567   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37568
37569 cat >>confdefs.h <<_ACEOF
37570 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37571 _ACEOF
37572
37573   fi
37574
37575 fi
37576
37577 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37578         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37579 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37580 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37581   echo $ECHO_N "(cached) $ECHO_C" >&6
37582 else
37583   cat >conftest.$ac_ext <<_ACEOF
37584 /* confdefs.h.  */
37585 _ACEOF
37586 cat confdefs.h >>conftest.$ac_ext
37587 cat >>conftest.$ac_ext <<_ACEOF
37588 /* end confdefs.h.  */
37589 #include <sys/types.h>
37590 #include <sys/socket.h>
37591 #include <netinet/in.h>
37592 #include <netdb.h>
37593 #define BUFSIZE (sizeof(struct hostent)+10)
37594 int
37595 main ()
37596 {
37597 struct hostent hent; char buffer[BUFSIZE];
37598                 int bufsize=BUFSIZE;int h_errno;
37599                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37600                         buffer, bufsize, &h_errno);
37601   ;
37602   return 0;
37603 }
37604 _ACEOF
37605 rm -f conftest.$ac_objext
37606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37607   (eval $ac_compile) 2>conftest.er1
37608   ac_status=$?
37609   grep -v '^ *+' conftest.er1 >conftest.err
37610   rm -f conftest.er1
37611   cat conftest.err >&5
37612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37613   (exit $ac_status); } &&
37614          { ac_try='test -z "$ac_c_werror_flag"
37615                          || test ! -s conftest.err'
37616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37617   (eval $ac_try) 2>&5
37618   ac_status=$?
37619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37620   (exit $ac_status); }; } &&
37621          { ac_try='test -s conftest.$ac_objext'
37622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37623   (eval $ac_try) 2>&5
37624   ac_status=$?
37625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37626   (exit $ac_status); }; }; then
37627   ol_cv_func_gethostbyname_r_nargs5=yes
37628 else
37629   echo "$as_me: failed program was:" >&5
37630 sed 's/^/| /' conftest.$ac_ext >&5
37631
37632 ol_cv_func_gethostbyname_r_nargs5=no
37633 fi
37634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37635
37636         cat >conftest.$ac_ext <<_ACEOF
37637 /* confdefs.h.  */
37638 _ACEOF
37639 cat confdefs.h >>conftest.$ac_ext
37640 cat >>conftest.$ac_ext <<_ACEOF
37641 /* end confdefs.h.  */
37642 #include <sys/types.h>
37643 #include <sys/socket.h>
37644 #include <netinet/in.h>
37645 #include <netdb.h>
37646 #define BUFSIZE (sizeof(struct hostent)+10)
37647 int
37648 main ()
37649 {
37650 struct hostent hent;struct hostent *rhent;
37651                 char buffer[BUFSIZE];
37652                 int bufsize=BUFSIZE;int h_errno;
37653                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37654                         &rhent, &h_errno);
37655   ;
37656   return 0;
37657 }
37658 _ACEOF
37659 rm -f conftest.$ac_objext
37660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37661   (eval $ac_compile) 2>conftest.er1
37662   ac_status=$?
37663   grep -v '^ *+' conftest.er1 >conftest.err
37664   rm -f conftest.er1
37665   cat conftest.err >&5
37666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37667   (exit $ac_status); } &&
37668          { ac_try='test -z "$ac_c_werror_flag"
37669                          || test ! -s conftest.err'
37670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37671   (eval $ac_try) 2>&5
37672   ac_status=$?
37673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37674   (exit $ac_status); }; } &&
37675          { ac_try='test -s conftest.$ac_objext'
37676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37677   (eval $ac_try) 2>&5
37678   ac_status=$?
37679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37680   (exit $ac_status); }; }; then
37681   ol_cv_func_gethostbyname_r_nargs6=yes
37682 else
37683   echo "$as_me: failed program was:" >&5
37684 sed 's/^/| /' conftest.$ac_ext >&5
37685
37686 ol_cv_func_gethostbyname_r_nargs6=no
37687 fi
37688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37689
37690         if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37691                 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37692
37693                 ol_cv_func_gethostbyname_r_nargs=5
37694
37695         elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37696                 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37697
37698                 ol_cv_func_gethostbyname_r_nargs=6
37699
37700         else
37701                 ol_cv_func_gethostbyname_r_nargs=0
37702         fi
37703
37704 fi
37705 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37706 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37707   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37708
37709 cat >>confdefs.h <<_ACEOF
37710 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37711 _ACEOF
37712
37713   fi
37714
37715 else
37716         ol_cv_func_gethostbyname_r_nargs=0
37717 fi
37718
37719 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37720         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37721 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37722 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37723   echo $ECHO_N "(cached) $ECHO_C" >&6
37724 else
37725   cat >conftest.$ac_ext <<_ACEOF
37726 /* confdefs.h.  */
37727 _ACEOF
37728 cat confdefs.h >>conftest.$ac_ext
37729 cat >>conftest.$ac_ext <<_ACEOF
37730 /* end confdefs.h.  */
37731 #include <sys/types.h>
37732 #include <sys/socket.h>
37733 #include <netinet/in.h>
37734 #include <netdb.h>
37735 #define BUFSIZE (sizeof(struct hostent)+10)
37736 int
37737 main ()
37738 {
37739 struct hostent hent; char buffer[BUFSIZE];
37740             struct in_addr add;
37741             size_t alen=sizeof(struct in_addr);
37742             int bufsize=BUFSIZE;int h_errno;
37743                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37744                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37745   ;
37746   return 0;
37747 }
37748 _ACEOF
37749 rm -f conftest.$ac_objext
37750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37751   (eval $ac_compile) 2>conftest.er1
37752   ac_status=$?
37753   grep -v '^ *+' conftest.er1 >conftest.err
37754   rm -f conftest.er1
37755   cat conftest.err >&5
37756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37757   (exit $ac_status); } &&
37758          { ac_try='test -z "$ac_c_werror_flag"
37759                          || test ! -s conftest.err'
37760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37761   (eval $ac_try) 2>&5
37762   ac_status=$?
37763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37764   (exit $ac_status); }; } &&
37765          { ac_try='test -s conftest.$ac_objext'
37766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37767   (eval $ac_try) 2>&5
37768   ac_status=$?
37769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37770   (exit $ac_status); }; }; then
37771   ol_cv_func_gethostbyaddr_r_nargs7=yes
37772 else
37773   echo "$as_me: failed program was:" >&5
37774 sed 's/^/| /' conftest.$ac_ext >&5
37775
37776 ol_cv_func_gethostbyaddr_r_nargs7=no
37777 fi
37778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37779
37780         cat >conftest.$ac_ext <<_ACEOF
37781 /* confdefs.h.  */
37782 _ACEOF
37783 cat confdefs.h >>conftest.$ac_ext
37784 cat >>conftest.$ac_ext <<_ACEOF
37785 /* end confdefs.h.  */
37786 #include <sys/types.h>
37787 #include <sys/socket.h>
37788 #include <netinet/in.h>
37789 #include <netdb.h>
37790 #define BUFSIZE (sizeof(struct hostent)+10)
37791 int
37792 main ()
37793 {
37794 struct hostent hent;
37795                 struct hostent *rhent; char buffer[BUFSIZE];
37796                 struct in_addr add;
37797                 size_t alen=sizeof(struct in_addr);
37798                 int bufsize=BUFSIZE;int h_errno;
37799                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37800                         alen, AF_INET, &hent, buffer, bufsize,
37801                         &rhent, &h_errno);
37802   ;
37803   return 0;
37804 }
37805 _ACEOF
37806 rm -f conftest.$ac_objext
37807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37808   (eval $ac_compile) 2>conftest.er1
37809   ac_status=$?
37810   grep -v '^ *+' conftest.er1 >conftest.err
37811   rm -f conftest.er1
37812   cat conftest.err >&5
37813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37814   (exit $ac_status); } &&
37815          { ac_try='test -z "$ac_c_werror_flag"
37816                          || test ! -s conftest.err'
37817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37818   (eval $ac_try) 2>&5
37819   ac_status=$?
37820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37821   (exit $ac_status); }; } &&
37822          { ac_try='test -s conftest.$ac_objext'
37823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37824   (eval $ac_try) 2>&5
37825   ac_status=$?
37826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37827   (exit $ac_status); }; }; then
37828   ol_cv_func_gethostbyaddr_r_nargs8=yes
37829 else
37830   echo "$as_me: failed program was:" >&5
37831 sed 's/^/| /' conftest.$ac_ext >&5
37832
37833 ol_cv_func_gethostbyaddr_r_nargs8=no
37834 fi
37835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37836
37837         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37838                 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37839
37840                 ol_cv_func_gethostbyaddr_r_nargs=7
37841
37842         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37843                 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37844
37845                 ol_cv_func_gethostbyaddr_r_nargs=8
37846
37847         else
37848                 ol_cv_func_gethostbyaddr_r_nargs=0
37849         fi
37850
37851 fi
37852 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37853 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37854   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37855
37856 cat >>confdefs.h <<_ACEOF
37857 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37858 _ACEOF
37859
37860   fi
37861
37862 else
37863         ol_cv_func_gethostbyaddr_r_nargs=0
37864 fi
37865
37866 ol_link_ldbm=no
37867
37868 if test $ol_with_ldbm_api = auto \
37869         -o $ol_with_ldbm_api = berkeley \
37870         -o $ol_with_ldbm_api = bcompat ; then
37871
37872         if test $ol_with_ldbm_api = bcompat; then \
37873
37874
37875 for ac_header in db_185.h db.h
37876 do
37877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37879   echo "$as_me:$LINENO: checking for $ac_header" >&5
37880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37882   echo $ECHO_N "(cached) $ECHO_C" >&6
37883 fi
37884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37886 else
37887   # Is the header compilable?
37888 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37889 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37890 cat >conftest.$ac_ext <<_ACEOF
37891 /* confdefs.h.  */
37892 _ACEOF
37893 cat confdefs.h >>conftest.$ac_ext
37894 cat >>conftest.$ac_ext <<_ACEOF
37895 /* end confdefs.h.  */
37896 $ac_includes_default
37897 #include <$ac_header>
37898 _ACEOF
37899 rm -f conftest.$ac_objext
37900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37901   (eval $ac_compile) 2>conftest.er1
37902   ac_status=$?
37903   grep -v '^ *+' conftest.er1 >conftest.err
37904   rm -f conftest.er1
37905   cat conftest.err >&5
37906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37907   (exit $ac_status); } &&
37908          { ac_try='test -z "$ac_c_werror_flag"
37909                          || test ! -s conftest.err'
37910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37911   (eval $ac_try) 2>&5
37912   ac_status=$?
37913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37914   (exit $ac_status); }; } &&
37915          { ac_try='test -s conftest.$ac_objext'
37916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37917   (eval $ac_try) 2>&5
37918   ac_status=$?
37919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37920   (exit $ac_status); }; }; then
37921   ac_header_compiler=yes
37922 else
37923   echo "$as_me: failed program was:" >&5
37924 sed 's/^/| /' conftest.$ac_ext >&5
37925
37926 ac_header_compiler=no
37927 fi
37928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37929 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37930 echo "${ECHO_T}$ac_header_compiler" >&6
37931
37932 # Is the header present?
37933 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37935 cat >conftest.$ac_ext <<_ACEOF
37936 /* confdefs.h.  */
37937 _ACEOF
37938 cat confdefs.h >>conftest.$ac_ext
37939 cat >>conftest.$ac_ext <<_ACEOF
37940 /* end confdefs.h.  */
37941 #include <$ac_header>
37942 _ACEOF
37943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37944   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37945   ac_status=$?
37946   grep -v '^ *+' conftest.er1 >conftest.err
37947   rm -f conftest.er1
37948   cat conftest.err >&5
37949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37950   (exit $ac_status); } >/dev/null; then
37951   if test -s conftest.err; then
37952     ac_cpp_err=$ac_c_preproc_warn_flag
37953     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37954   else
37955     ac_cpp_err=
37956   fi
37957 else
37958   ac_cpp_err=yes
37959 fi
37960 if test -z "$ac_cpp_err"; then
37961   ac_header_preproc=yes
37962 else
37963   echo "$as_me: failed program was:" >&5
37964 sed 's/^/| /' conftest.$ac_ext >&5
37965
37966   ac_header_preproc=no
37967 fi
37968 rm -f conftest.err conftest.$ac_ext
37969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37970 echo "${ECHO_T}$ac_header_preproc" >&6
37971
37972 # So?  What about this header?
37973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37974   yes:no: )
37975     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37979     ac_header_preproc=yes
37980     ;;
37981   no:yes:* )
37982     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37984     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37985 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37986     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37988     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37989 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37992     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37994     (
37995       cat <<\_ASBOX
37996 ## ------------------------------------------ ##
37997 ## Report this to the AC_PACKAGE_NAME lists.  ##
37998 ## ------------------------------------------ ##
37999 _ASBOX
38000     ) |
38001       sed "s/^/$as_me: WARNING:     /" >&2
38002     ;;
38003 esac
38004 echo "$as_me:$LINENO: checking for $ac_header" >&5
38005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38007   echo $ECHO_N "(cached) $ECHO_C" >&6
38008 else
38009   eval "$as_ac_Header=\$ac_header_preproc"
38010 fi
38011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38013
38014 fi
38015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38016   cat >>confdefs.h <<_ACEOF
38017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38018 _ACEOF
38019
38020 fi
38021
38022 done
38023
38024 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
38025         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
38026 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
38027 if test "${ol_cv_header_db1+set}" = set; then
38028   echo $ECHO_N "(cached) $ECHO_C" >&6
38029 else
38030
38031                 cat >conftest.$ac_ext <<_ACEOF
38032 /* confdefs.h.  */
38033 _ACEOF
38034 cat confdefs.h >>conftest.$ac_ext
38035 cat >>conftest.$ac_ext <<_ACEOF
38036 /* end confdefs.h.  */
38037
38038 #if HAVE_DB_185_H
38039 #       include <db_185.h>
38040 #else
38041 #       include <db.h>
38042 #endif
38043
38044  /* this check could be improved */
38045 #ifndef DB_VERSION_MAJOR
38046 #       define DB_VERSION_MAJOR 1
38047 #endif
38048
38049 #if DB_VERSION_MAJOR == 1
38050         __db_version_1
38051 #endif
38052
38053 _ACEOF
38054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38055   $EGREP "__db_version_1" >/dev/null 2>&1; then
38056   ol_cv_header_db1=yes
38057 else
38058   ol_cv_header_db1=no
38059 fi
38060 rm -f conftest*
38061
38062 fi
38063 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
38064 echo "${ECHO_T}$ol_cv_header_db1" >&6
38065
38066         if test $ol_cv_header_db1 = yes ; then
38067                 ol_cv_lib_db=no
38068 if test $ol_cv_lib_db = no ; then
38069         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
38070 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
38071 if test "${ol_cv_db_none+set}" = set; then
38072   echo $ECHO_N "(cached) $ECHO_C" >&6
38073 else
38074
38075         ol_DB_LIB=
38076         ol_LIBS=$LIBS
38077         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38078
38079         cat >conftest.$ac_ext <<_ACEOF
38080 /* confdefs.h.  */
38081 _ACEOF
38082 cat confdefs.h >>conftest.$ac_ext
38083 cat >>conftest.$ac_ext <<_ACEOF
38084 /* end confdefs.h.  */
38085
38086 #ifdef HAVE_DB_185_H
38087 # include <db_185.h>
38088 #else
38089 # include <db.h>
38090 #endif
38091
38092 #ifndef DB_VERSION_MAJOR
38093 # define DB_VERSION_MAJOR 1
38094 #endif
38095
38096 #ifndef NULL
38097 #define NULL ((void*)0)
38098 #endif
38099
38100 int
38101 main ()
38102 {
38103
38104 #if DB_VERSION_MAJOR > 1
38105         {
38106                 char *version;
38107                 int major, minor, patch;
38108
38109                 version = db_version( &major, &minor, &patch );
38110
38111                 if( major != DB_VERSION_MAJOR ||
38112                         minor < DB_VERSION_MINOR )
38113                 {
38114                         printf("Berkeley DB version mismatch\n"
38115                                 "\theader: %s\n\tlibrary: %s\n",
38116                                 DB_VERSION_STRING, version);
38117                         return 1;
38118                 }
38119         }
38120 #endif
38121
38122 #if DB_VERSION_MAJOR > 2
38123         db_env_create( NULL, 0 );
38124 #elif DB_VERSION_MAJOR > 1
38125         db_appexit( NULL );
38126 #else
38127         (void) dbopen( NULL, 0, 0, 0, NULL);
38128 #endif
38129
38130   ;
38131   return 0;
38132 }
38133 _ACEOF
38134 rm -f conftest.$ac_objext conftest$ac_exeext
38135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38136   (eval $ac_link) 2>conftest.er1
38137   ac_status=$?
38138   grep -v '^ *+' conftest.er1 >conftest.err
38139   rm -f conftest.er1
38140   cat conftest.err >&5
38141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38142   (exit $ac_status); } &&
38143          { ac_try='test -z "$ac_c_werror_flag"
38144                          || test ! -s conftest.err'
38145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38146   (eval $ac_try) 2>&5
38147   ac_status=$?
38148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38149   (exit $ac_status); }; } &&
38150          { ac_try='test -s conftest$ac_exeext'
38151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38152   (eval $ac_try) 2>&5
38153   ac_status=$?
38154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38155   (exit $ac_status); }; }; then
38156   ol_cv_db_none=yes
38157 else
38158   echo "$as_me: failed program was:" >&5
38159 sed 's/^/| /' conftest.$ac_ext >&5
38160
38161 ol_cv_db_none=no
38162 fi
38163 rm -f conftest.err conftest.$ac_objext \
38164       conftest$ac_exeext conftest.$ac_ext
38165
38166         LIBS="$ol_LIBS"
38167
38168 fi
38169 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
38170 echo "${ECHO_T}$ol_cv_db_none" >&6
38171
38172         if test $ol_cv_db_none = yes ; then
38173                 ol_cv_lib_db=yes
38174         fi
38175 fi
38176
38177 if test $ol_cv_lib_db = no ; then
38178         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
38179 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
38180 if test "${ol_cv_db_db43+set}" = set; then
38181   echo $ECHO_N "(cached) $ECHO_C" >&6
38182 else
38183
38184         ol_DB_LIB=-ldb43
38185         ol_LIBS=$LIBS
38186         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38187
38188         cat >conftest.$ac_ext <<_ACEOF
38189 /* confdefs.h.  */
38190 _ACEOF
38191 cat confdefs.h >>conftest.$ac_ext
38192 cat >>conftest.$ac_ext <<_ACEOF
38193 /* end confdefs.h.  */
38194
38195 #ifdef HAVE_DB_185_H
38196 # include <db_185.h>
38197 #else
38198 # include <db.h>
38199 #endif
38200
38201 #ifndef DB_VERSION_MAJOR
38202 # define DB_VERSION_MAJOR 1
38203 #endif
38204
38205 #ifndef NULL
38206 #define NULL ((void*)0)
38207 #endif
38208
38209 int
38210 main ()
38211 {
38212
38213 #if DB_VERSION_MAJOR > 1
38214         {
38215                 char *version;
38216                 int major, minor, patch;
38217
38218                 version = db_version( &major, &minor, &patch );
38219
38220                 if( major != DB_VERSION_MAJOR ||
38221                         minor < DB_VERSION_MINOR )
38222                 {
38223                         printf("Berkeley DB version mismatch\n"
38224                                 "\theader: %s\n\tlibrary: %s\n",
38225                                 DB_VERSION_STRING, version);
38226                         return 1;
38227                 }
38228         }
38229 #endif
38230
38231 #if DB_VERSION_MAJOR > 2
38232         db_env_create( NULL, 0 );
38233 #elif DB_VERSION_MAJOR > 1
38234         db_appexit( NULL );
38235 #else
38236         (void) dbopen( NULL, 0, 0, 0, NULL);
38237 #endif
38238
38239   ;
38240   return 0;
38241 }
38242 _ACEOF
38243 rm -f conftest.$ac_objext conftest$ac_exeext
38244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38245   (eval $ac_link) 2>conftest.er1
38246   ac_status=$?
38247   grep -v '^ *+' conftest.er1 >conftest.err
38248   rm -f conftest.er1
38249   cat conftest.err >&5
38250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38251   (exit $ac_status); } &&
38252          { ac_try='test -z "$ac_c_werror_flag"
38253                          || test ! -s conftest.err'
38254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38255   (eval $ac_try) 2>&5
38256   ac_status=$?
38257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38258   (exit $ac_status); }; } &&
38259          { ac_try='test -s conftest$ac_exeext'
38260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38261   (eval $ac_try) 2>&5
38262   ac_status=$?
38263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38264   (exit $ac_status); }; }; then
38265   ol_cv_db_db43=yes
38266 else
38267   echo "$as_me: failed program was:" >&5
38268 sed 's/^/| /' conftest.$ac_ext >&5
38269
38270 ol_cv_db_db43=no
38271 fi
38272 rm -f conftest.err conftest.$ac_objext \
38273       conftest$ac_exeext conftest.$ac_ext
38274
38275         LIBS="$ol_LIBS"
38276
38277 fi
38278 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38279 echo "${ECHO_T}$ol_cv_db_db43" >&6
38280
38281         if test $ol_cv_db_db43 = yes ; then
38282                 ol_cv_lib_db=-ldb43
38283         fi
38284 fi
38285
38286 if test $ol_cv_lib_db = no ; then
38287         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38288 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38289 if test "${ol_cv_db_db_43+set}" = set; then
38290   echo $ECHO_N "(cached) $ECHO_C" >&6
38291 else
38292
38293         ol_DB_LIB=-ldb-43
38294         ol_LIBS=$LIBS
38295         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38296
38297         cat >conftest.$ac_ext <<_ACEOF
38298 /* confdefs.h.  */
38299 _ACEOF
38300 cat confdefs.h >>conftest.$ac_ext
38301 cat >>conftest.$ac_ext <<_ACEOF
38302 /* end confdefs.h.  */
38303
38304 #ifdef HAVE_DB_185_H
38305 # include <db_185.h>
38306 #else
38307 # include <db.h>
38308 #endif
38309
38310 #ifndef DB_VERSION_MAJOR
38311 # define DB_VERSION_MAJOR 1
38312 #endif
38313
38314 #ifndef NULL
38315 #define NULL ((void*)0)
38316 #endif
38317
38318 int
38319 main ()
38320 {
38321
38322 #if DB_VERSION_MAJOR > 1
38323         {
38324                 char *version;
38325                 int major, minor, patch;
38326
38327                 version = db_version( &major, &minor, &patch );
38328
38329                 if( major != DB_VERSION_MAJOR ||
38330                         minor < DB_VERSION_MINOR )
38331                 {
38332                         printf("Berkeley DB version mismatch\n"
38333                                 "\theader: %s\n\tlibrary: %s\n",
38334                                 DB_VERSION_STRING, version);
38335                         return 1;
38336                 }
38337         }
38338 #endif
38339
38340 #if DB_VERSION_MAJOR > 2
38341         db_env_create( NULL, 0 );
38342 #elif DB_VERSION_MAJOR > 1
38343         db_appexit( NULL );
38344 #else
38345         (void) dbopen( NULL, 0, 0, 0, NULL);
38346 #endif
38347
38348   ;
38349   return 0;
38350 }
38351 _ACEOF
38352 rm -f conftest.$ac_objext conftest$ac_exeext
38353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38354   (eval $ac_link) 2>conftest.er1
38355   ac_status=$?
38356   grep -v '^ *+' conftest.er1 >conftest.err
38357   rm -f conftest.er1
38358   cat conftest.err >&5
38359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38360   (exit $ac_status); } &&
38361          { ac_try='test -z "$ac_c_werror_flag"
38362                          || test ! -s conftest.err'
38363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38364   (eval $ac_try) 2>&5
38365   ac_status=$?
38366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38367   (exit $ac_status); }; } &&
38368          { ac_try='test -s conftest$ac_exeext'
38369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38370   (eval $ac_try) 2>&5
38371   ac_status=$?
38372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38373   (exit $ac_status); }; }; then
38374   ol_cv_db_db_43=yes
38375 else
38376   echo "$as_me: failed program was:" >&5
38377 sed 's/^/| /' conftest.$ac_ext >&5
38378
38379 ol_cv_db_db_43=no
38380 fi
38381 rm -f conftest.err conftest.$ac_objext \
38382       conftest$ac_exeext conftest.$ac_ext
38383
38384         LIBS="$ol_LIBS"
38385
38386 fi
38387 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38388 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38389
38390         if test $ol_cv_db_db_43 = yes ; then
38391                 ol_cv_lib_db=-ldb-43
38392         fi
38393 fi
38394
38395 if test $ol_cv_lib_db = no ; then
38396         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38397 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38398 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38399   echo $ECHO_N "(cached) $ECHO_C" >&6
38400 else
38401
38402         ol_DB_LIB=-ldb-4.3
38403         ol_LIBS=$LIBS
38404         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38405
38406         cat >conftest.$ac_ext <<_ACEOF
38407 /* confdefs.h.  */
38408 _ACEOF
38409 cat confdefs.h >>conftest.$ac_ext
38410 cat >>conftest.$ac_ext <<_ACEOF
38411 /* end confdefs.h.  */
38412
38413 #ifdef HAVE_DB_185_H
38414 # include <db_185.h>
38415 #else
38416 # include <db.h>
38417 #endif
38418
38419 #ifndef DB_VERSION_MAJOR
38420 # define DB_VERSION_MAJOR 1
38421 #endif
38422
38423 #ifndef NULL
38424 #define NULL ((void*)0)
38425 #endif
38426
38427 int
38428 main ()
38429 {
38430
38431 #if DB_VERSION_MAJOR > 1
38432         {
38433                 char *version;
38434                 int major, minor, patch;
38435
38436                 version = db_version( &major, &minor, &patch );
38437
38438                 if( major != DB_VERSION_MAJOR ||
38439                         minor < DB_VERSION_MINOR )
38440                 {
38441                         printf("Berkeley DB version mismatch\n"
38442                                 "\theader: %s\n\tlibrary: %s\n",
38443                                 DB_VERSION_STRING, version);
38444                         return 1;
38445                 }
38446         }
38447 #endif
38448
38449 #if DB_VERSION_MAJOR > 2
38450         db_env_create( NULL, 0 );
38451 #elif DB_VERSION_MAJOR > 1
38452         db_appexit( NULL );
38453 #else
38454         (void) dbopen( NULL, 0, 0, 0, NULL);
38455 #endif
38456
38457   ;
38458   return 0;
38459 }
38460 _ACEOF
38461 rm -f conftest.$ac_objext conftest$ac_exeext
38462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38463   (eval $ac_link) 2>conftest.er1
38464   ac_status=$?
38465   grep -v '^ *+' conftest.er1 >conftest.err
38466   rm -f conftest.er1
38467   cat conftest.err >&5
38468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38469   (exit $ac_status); } &&
38470          { ac_try='test -z "$ac_c_werror_flag"
38471                          || test ! -s conftest.err'
38472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38473   (eval $ac_try) 2>&5
38474   ac_status=$?
38475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38476   (exit $ac_status); }; } &&
38477          { ac_try='test -s conftest$ac_exeext'
38478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38479   (eval $ac_try) 2>&5
38480   ac_status=$?
38481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38482   (exit $ac_status); }; }; then
38483   ol_cv_db_db_4_dot_3=yes
38484 else
38485   echo "$as_me: failed program was:" >&5
38486 sed 's/^/| /' conftest.$ac_ext >&5
38487
38488 ol_cv_db_db_4_dot_3=no
38489 fi
38490 rm -f conftest.err conftest.$ac_objext \
38491       conftest$ac_exeext conftest.$ac_ext
38492
38493         LIBS="$ol_LIBS"
38494
38495 fi
38496 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38497 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38498
38499         if test $ol_cv_db_db_4_dot_3 = yes ; then
38500                 ol_cv_lib_db=-ldb-4.3
38501         fi
38502 fi
38503
38504 if test $ol_cv_lib_db = no ; then
38505         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38506 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38507 if test "${ol_cv_db_db_4_3+set}" = set; then
38508   echo $ECHO_N "(cached) $ECHO_C" >&6
38509 else
38510
38511         ol_DB_LIB=-ldb-4-3
38512         ol_LIBS=$LIBS
38513         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38514
38515         cat >conftest.$ac_ext <<_ACEOF
38516 /* confdefs.h.  */
38517 _ACEOF
38518 cat confdefs.h >>conftest.$ac_ext
38519 cat >>conftest.$ac_ext <<_ACEOF
38520 /* end confdefs.h.  */
38521
38522 #ifdef HAVE_DB_185_H
38523 # include <db_185.h>
38524 #else
38525 # include <db.h>
38526 #endif
38527
38528 #ifndef DB_VERSION_MAJOR
38529 # define DB_VERSION_MAJOR 1
38530 #endif
38531
38532 #ifndef NULL
38533 #define NULL ((void*)0)
38534 #endif
38535
38536 int
38537 main ()
38538 {
38539
38540 #if DB_VERSION_MAJOR > 1
38541         {
38542                 char *version;
38543                 int major, minor, patch;
38544
38545                 version = db_version( &major, &minor, &patch );
38546
38547                 if( major != DB_VERSION_MAJOR ||
38548                         minor < DB_VERSION_MINOR )
38549                 {
38550                         printf("Berkeley DB version mismatch\n"
38551                                 "\theader: %s\n\tlibrary: %s\n",
38552                                 DB_VERSION_STRING, version);
38553                         return 1;
38554                 }
38555         }
38556 #endif
38557
38558 #if DB_VERSION_MAJOR > 2
38559         db_env_create( NULL, 0 );
38560 #elif DB_VERSION_MAJOR > 1
38561         db_appexit( NULL );
38562 #else
38563         (void) dbopen( NULL, 0, 0, 0, NULL);
38564 #endif
38565
38566   ;
38567   return 0;
38568 }
38569 _ACEOF
38570 rm -f conftest.$ac_objext conftest$ac_exeext
38571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38572   (eval $ac_link) 2>conftest.er1
38573   ac_status=$?
38574   grep -v '^ *+' conftest.er1 >conftest.err
38575   rm -f conftest.er1
38576   cat conftest.err >&5
38577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38578   (exit $ac_status); } &&
38579          { ac_try='test -z "$ac_c_werror_flag"
38580                          || test ! -s conftest.err'
38581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38582   (eval $ac_try) 2>&5
38583   ac_status=$?
38584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38585   (exit $ac_status); }; } &&
38586          { ac_try='test -s conftest$ac_exeext'
38587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38588   (eval $ac_try) 2>&5
38589   ac_status=$?
38590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38591   (exit $ac_status); }; }; then
38592   ol_cv_db_db_4_3=yes
38593 else
38594   echo "$as_me: failed program was:" >&5
38595 sed 's/^/| /' conftest.$ac_ext >&5
38596
38597 ol_cv_db_db_4_3=no
38598 fi
38599 rm -f conftest.err conftest.$ac_objext \
38600       conftest$ac_exeext conftest.$ac_ext
38601
38602         LIBS="$ol_LIBS"
38603
38604 fi
38605 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38606 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38607
38608         if test $ol_cv_db_db_4_3 = yes ; then
38609                 ol_cv_lib_db=-ldb-4-3
38610         fi
38611 fi
38612
38613 if test $ol_cv_lib_db = no ; then
38614         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38615 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38616 if test "${ol_cv_db_db42+set}" = set; then
38617   echo $ECHO_N "(cached) $ECHO_C" >&6
38618 else
38619
38620         ol_DB_LIB=-ldb42
38621         ol_LIBS=$LIBS
38622         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38623
38624         cat >conftest.$ac_ext <<_ACEOF
38625 /* confdefs.h.  */
38626 _ACEOF
38627 cat confdefs.h >>conftest.$ac_ext
38628 cat >>conftest.$ac_ext <<_ACEOF
38629 /* end confdefs.h.  */
38630
38631 #ifdef HAVE_DB_185_H
38632 # include <db_185.h>
38633 #else
38634 # include <db.h>
38635 #endif
38636
38637 #ifndef DB_VERSION_MAJOR
38638 # define DB_VERSION_MAJOR 1
38639 #endif
38640
38641 #ifndef NULL
38642 #define NULL ((void*)0)
38643 #endif
38644
38645 int
38646 main ()
38647 {
38648
38649 #if DB_VERSION_MAJOR > 1
38650         {
38651                 char *version;
38652                 int major, minor, patch;
38653
38654                 version = db_version( &major, &minor, &patch );
38655
38656                 if( major != DB_VERSION_MAJOR ||
38657                         minor < DB_VERSION_MINOR )
38658                 {
38659                         printf("Berkeley DB version mismatch\n"
38660                                 "\theader: %s\n\tlibrary: %s\n",
38661                                 DB_VERSION_STRING, version);
38662                         return 1;
38663                 }
38664         }
38665 #endif
38666
38667 #if DB_VERSION_MAJOR > 2
38668         db_env_create( NULL, 0 );
38669 #elif DB_VERSION_MAJOR > 1
38670         db_appexit( NULL );
38671 #else
38672         (void) dbopen( NULL, 0, 0, 0, NULL);
38673 #endif
38674
38675   ;
38676   return 0;
38677 }
38678 _ACEOF
38679 rm -f conftest.$ac_objext conftest$ac_exeext
38680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38681   (eval $ac_link) 2>conftest.er1
38682   ac_status=$?
38683   grep -v '^ *+' conftest.er1 >conftest.err
38684   rm -f conftest.er1
38685   cat conftest.err >&5
38686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38687   (exit $ac_status); } &&
38688          { ac_try='test -z "$ac_c_werror_flag"
38689                          || test ! -s conftest.err'
38690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38691   (eval $ac_try) 2>&5
38692   ac_status=$?
38693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38694   (exit $ac_status); }; } &&
38695          { ac_try='test -s conftest$ac_exeext'
38696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38697   (eval $ac_try) 2>&5
38698   ac_status=$?
38699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38700   (exit $ac_status); }; }; then
38701   ol_cv_db_db42=yes
38702 else
38703   echo "$as_me: failed program was:" >&5
38704 sed 's/^/| /' conftest.$ac_ext >&5
38705
38706 ol_cv_db_db42=no
38707 fi
38708 rm -f conftest.err conftest.$ac_objext \
38709       conftest$ac_exeext conftest.$ac_ext
38710
38711         LIBS="$ol_LIBS"
38712
38713 fi
38714 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38715 echo "${ECHO_T}$ol_cv_db_db42" >&6
38716
38717         if test $ol_cv_db_db42 = yes ; then
38718                 ol_cv_lib_db=-ldb42
38719         fi
38720 fi
38721
38722 if test $ol_cv_lib_db = no ; then
38723         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38724 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38725 if test "${ol_cv_db_db_42+set}" = set; then
38726   echo $ECHO_N "(cached) $ECHO_C" >&6
38727 else
38728
38729         ol_DB_LIB=-ldb-42
38730         ol_LIBS=$LIBS
38731         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38732
38733         cat >conftest.$ac_ext <<_ACEOF
38734 /* confdefs.h.  */
38735 _ACEOF
38736 cat confdefs.h >>conftest.$ac_ext
38737 cat >>conftest.$ac_ext <<_ACEOF
38738 /* end confdefs.h.  */
38739
38740 #ifdef HAVE_DB_185_H
38741 # include <db_185.h>
38742 #else
38743 # include <db.h>
38744 #endif
38745
38746 #ifndef DB_VERSION_MAJOR
38747 # define DB_VERSION_MAJOR 1
38748 #endif
38749
38750 #ifndef NULL
38751 #define NULL ((void*)0)
38752 #endif
38753
38754 int
38755 main ()
38756 {
38757
38758 #if DB_VERSION_MAJOR > 1
38759         {
38760                 char *version;
38761                 int major, minor, patch;
38762
38763                 version = db_version( &major, &minor, &patch );
38764
38765                 if( major != DB_VERSION_MAJOR ||
38766                         minor < DB_VERSION_MINOR )
38767                 {
38768                         printf("Berkeley DB version mismatch\n"
38769                                 "\theader: %s\n\tlibrary: %s\n",
38770                                 DB_VERSION_STRING, version);
38771                         return 1;
38772                 }
38773         }
38774 #endif
38775
38776 #if DB_VERSION_MAJOR > 2
38777         db_env_create( NULL, 0 );
38778 #elif DB_VERSION_MAJOR > 1
38779         db_appexit( NULL );
38780 #else
38781         (void) dbopen( NULL, 0, 0, 0, NULL);
38782 #endif
38783
38784   ;
38785   return 0;
38786 }
38787 _ACEOF
38788 rm -f conftest.$ac_objext conftest$ac_exeext
38789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38790   (eval $ac_link) 2>conftest.er1
38791   ac_status=$?
38792   grep -v '^ *+' conftest.er1 >conftest.err
38793   rm -f conftest.er1
38794   cat conftest.err >&5
38795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38796   (exit $ac_status); } &&
38797          { ac_try='test -z "$ac_c_werror_flag"
38798                          || test ! -s conftest.err'
38799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38800   (eval $ac_try) 2>&5
38801   ac_status=$?
38802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38803   (exit $ac_status); }; } &&
38804          { ac_try='test -s conftest$ac_exeext'
38805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38806   (eval $ac_try) 2>&5
38807   ac_status=$?
38808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38809   (exit $ac_status); }; }; then
38810   ol_cv_db_db_42=yes
38811 else
38812   echo "$as_me: failed program was:" >&5
38813 sed 's/^/| /' conftest.$ac_ext >&5
38814
38815 ol_cv_db_db_42=no
38816 fi
38817 rm -f conftest.err conftest.$ac_objext \
38818       conftest$ac_exeext conftest.$ac_ext
38819
38820         LIBS="$ol_LIBS"
38821
38822 fi
38823 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38824 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38825
38826         if test $ol_cv_db_db_42 = yes ; then
38827                 ol_cv_lib_db=-ldb-42
38828         fi
38829 fi
38830
38831 if test $ol_cv_lib_db = no ; then
38832         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38833 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38834 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38835   echo $ECHO_N "(cached) $ECHO_C" >&6
38836 else
38837
38838         ol_DB_LIB=-ldb-4.2
38839         ol_LIBS=$LIBS
38840         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38841
38842         cat >conftest.$ac_ext <<_ACEOF
38843 /* confdefs.h.  */
38844 _ACEOF
38845 cat confdefs.h >>conftest.$ac_ext
38846 cat >>conftest.$ac_ext <<_ACEOF
38847 /* end confdefs.h.  */
38848
38849 #ifdef HAVE_DB_185_H
38850 # include <db_185.h>
38851 #else
38852 # include <db.h>
38853 #endif
38854
38855 #ifndef DB_VERSION_MAJOR
38856 # define DB_VERSION_MAJOR 1
38857 #endif
38858
38859 #ifndef NULL
38860 #define NULL ((void*)0)
38861 #endif
38862
38863 int
38864 main ()
38865 {
38866
38867 #if DB_VERSION_MAJOR > 1
38868         {
38869                 char *version;
38870                 int major, minor, patch;
38871
38872                 version = db_version( &major, &minor, &patch );
38873
38874                 if( major != DB_VERSION_MAJOR ||
38875                         minor < DB_VERSION_MINOR )
38876                 {
38877                         printf("Berkeley DB version mismatch\n"
38878                                 "\theader: %s\n\tlibrary: %s\n",
38879                                 DB_VERSION_STRING, version);
38880                         return 1;
38881                 }
38882         }
38883 #endif
38884
38885 #if DB_VERSION_MAJOR > 2
38886         db_env_create( NULL, 0 );
38887 #elif DB_VERSION_MAJOR > 1
38888         db_appexit( NULL );
38889 #else
38890         (void) dbopen( NULL, 0, 0, 0, NULL);
38891 #endif
38892
38893   ;
38894   return 0;
38895 }
38896 _ACEOF
38897 rm -f conftest.$ac_objext conftest$ac_exeext
38898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38899   (eval $ac_link) 2>conftest.er1
38900   ac_status=$?
38901   grep -v '^ *+' conftest.er1 >conftest.err
38902   rm -f conftest.er1
38903   cat conftest.err >&5
38904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38905   (exit $ac_status); } &&
38906          { ac_try='test -z "$ac_c_werror_flag"
38907                          || test ! -s conftest.err'
38908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38909   (eval $ac_try) 2>&5
38910   ac_status=$?
38911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38912   (exit $ac_status); }; } &&
38913          { ac_try='test -s conftest$ac_exeext'
38914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38915   (eval $ac_try) 2>&5
38916   ac_status=$?
38917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38918   (exit $ac_status); }; }; then
38919   ol_cv_db_db_4_dot_2=yes
38920 else
38921   echo "$as_me: failed program was:" >&5
38922 sed 's/^/| /' conftest.$ac_ext >&5
38923
38924 ol_cv_db_db_4_dot_2=no
38925 fi
38926 rm -f conftest.err conftest.$ac_objext \
38927       conftest$ac_exeext conftest.$ac_ext
38928
38929         LIBS="$ol_LIBS"
38930
38931 fi
38932 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
38933 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
38934
38935         if test $ol_cv_db_db_4_dot_2 = yes ; then
38936                 ol_cv_lib_db=-ldb-4.2
38937         fi
38938 fi
38939
38940 if test $ol_cv_lib_db = no ; then
38941         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
38942 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
38943 if test "${ol_cv_db_db_4_2+set}" = set; then
38944   echo $ECHO_N "(cached) $ECHO_C" >&6
38945 else
38946
38947         ol_DB_LIB=-ldb-4-2
38948         ol_LIBS=$LIBS
38949         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38950
38951         cat >conftest.$ac_ext <<_ACEOF
38952 /* confdefs.h.  */
38953 _ACEOF
38954 cat confdefs.h >>conftest.$ac_ext
38955 cat >>conftest.$ac_ext <<_ACEOF
38956 /* end confdefs.h.  */
38957
38958 #ifdef HAVE_DB_185_H
38959 # include <db_185.h>
38960 #else
38961 # include <db.h>
38962 #endif
38963
38964 #ifndef DB_VERSION_MAJOR
38965 # define DB_VERSION_MAJOR 1
38966 #endif
38967
38968 #ifndef NULL
38969 #define NULL ((void*)0)
38970 #endif
38971
38972 int
38973 main ()
38974 {
38975
38976 #if DB_VERSION_MAJOR > 1
38977         {
38978                 char *version;
38979                 int major, minor, patch;
38980
38981                 version = db_version( &major, &minor, &patch );
38982
38983                 if( major != DB_VERSION_MAJOR ||
38984                         minor < DB_VERSION_MINOR )
38985                 {
38986                         printf("Berkeley DB version mismatch\n"
38987                                 "\theader: %s\n\tlibrary: %s\n",
38988                                 DB_VERSION_STRING, version);
38989                         return 1;
38990                 }
38991         }
38992 #endif
38993
38994 #if DB_VERSION_MAJOR > 2
38995         db_env_create( NULL, 0 );
38996 #elif DB_VERSION_MAJOR > 1
38997         db_appexit( NULL );
38998 #else
38999         (void) dbopen( NULL, 0, 0, 0, NULL);
39000 #endif
39001
39002   ;
39003   return 0;
39004 }
39005 _ACEOF
39006 rm -f conftest.$ac_objext conftest$ac_exeext
39007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39008   (eval $ac_link) 2>conftest.er1
39009   ac_status=$?
39010   grep -v '^ *+' conftest.er1 >conftest.err
39011   rm -f conftest.er1
39012   cat conftest.err >&5
39013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39014   (exit $ac_status); } &&
39015          { ac_try='test -z "$ac_c_werror_flag"
39016                          || test ! -s conftest.err'
39017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39018   (eval $ac_try) 2>&5
39019   ac_status=$?
39020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39021   (exit $ac_status); }; } &&
39022          { ac_try='test -s conftest$ac_exeext'
39023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39024   (eval $ac_try) 2>&5
39025   ac_status=$?
39026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39027   (exit $ac_status); }; }; then
39028   ol_cv_db_db_4_2=yes
39029 else
39030   echo "$as_me: failed program was:" >&5
39031 sed 's/^/| /' conftest.$ac_ext >&5
39032
39033 ol_cv_db_db_4_2=no
39034 fi
39035 rm -f conftest.err conftest.$ac_objext \
39036       conftest$ac_exeext conftest.$ac_ext
39037
39038         LIBS="$ol_LIBS"
39039
39040 fi
39041 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
39042 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
39043
39044         if test $ol_cv_db_db_4_2 = yes ; then
39045                 ol_cv_lib_db=-ldb-4-2
39046         fi
39047 fi
39048
39049 if test $ol_cv_lib_db = no ; then
39050         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
39051 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
39052 if test "${ol_cv_db_db_4+set}" = set; then
39053   echo $ECHO_N "(cached) $ECHO_C" >&6
39054 else
39055
39056         ol_DB_LIB=-ldb-4
39057         ol_LIBS=$LIBS
39058         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39059
39060         cat >conftest.$ac_ext <<_ACEOF
39061 /* confdefs.h.  */
39062 _ACEOF
39063 cat confdefs.h >>conftest.$ac_ext
39064 cat >>conftest.$ac_ext <<_ACEOF
39065 /* end confdefs.h.  */
39066
39067 #ifdef HAVE_DB_185_H
39068 # include <db_185.h>
39069 #else
39070 # include <db.h>
39071 #endif
39072
39073 #ifndef DB_VERSION_MAJOR
39074 # define DB_VERSION_MAJOR 1
39075 #endif
39076
39077 #ifndef NULL
39078 #define NULL ((void*)0)
39079 #endif
39080
39081 int
39082 main ()
39083 {
39084
39085 #if DB_VERSION_MAJOR > 1
39086         {
39087                 char *version;
39088                 int major, minor, patch;
39089
39090                 version = db_version( &major, &minor, &patch );
39091
39092                 if( major != DB_VERSION_MAJOR ||
39093                         minor < DB_VERSION_MINOR )
39094                 {
39095                         printf("Berkeley DB version mismatch\n"
39096                                 "\theader: %s\n\tlibrary: %s\n",
39097                                 DB_VERSION_STRING, version);
39098                         return 1;
39099                 }
39100         }
39101 #endif
39102
39103 #if DB_VERSION_MAJOR > 2
39104         db_env_create( NULL, 0 );
39105 #elif DB_VERSION_MAJOR > 1
39106         db_appexit( NULL );
39107 #else
39108         (void) dbopen( NULL, 0, 0, 0, NULL);
39109 #endif
39110
39111   ;
39112   return 0;
39113 }
39114 _ACEOF
39115 rm -f conftest.$ac_objext conftest$ac_exeext
39116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39117   (eval $ac_link) 2>conftest.er1
39118   ac_status=$?
39119   grep -v '^ *+' conftest.er1 >conftest.err
39120   rm -f conftest.er1
39121   cat conftest.err >&5
39122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39123   (exit $ac_status); } &&
39124          { ac_try='test -z "$ac_c_werror_flag"
39125                          || test ! -s conftest.err'
39126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39127   (eval $ac_try) 2>&5
39128   ac_status=$?
39129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39130   (exit $ac_status); }; } &&
39131          { ac_try='test -s conftest$ac_exeext'
39132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39133   (eval $ac_try) 2>&5
39134   ac_status=$?
39135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39136   (exit $ac_status); }; }; then
39137   ol_cv_db_db_4=yes
39138 else
39139   echo "$as_me: failed program was:" >&5
39140 sed 's/^/| /' conftest.$ac_ext >&5
39141
39142 ol_cv_db_db_4=no
39143 fi
39144 rm -f conftest.err conftest.$ac_objext \
39145       conftest$ac_exeext conftest.$ac_ext
39146
39147         LIBS="$ol_LIBS"
39148
39149 fi
39150 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
39151 echo "${ECHO_T}$ol_cv_db_db_4" >&6
39152
39153         if test $ol_cv_db_db_4 = yes ; then
39154                 ol_cv_lib_db=-ldb-4
39155         fi
39156 fi
39157
39158 if test $ol_cv_lib_db = no ; then
39159         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
39160 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
39161 if test "${ol_cv_db_db4+set}" = set; then
39162   echo $ECHO_N "(cached) $ECHO_C" >&6
39163 else
39164
39165         ol_DB_LIB=-ldb4
39166         ol_LIBS=$LIBS
39167         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39168
39169         cat >conftest.$ac_ext <<_ACEOF
39170 /* confdefs.h.  */
39171 _ACEOF
39172 cat confdefs.h >>conftest.$ac_ext
39173 cat >>conftest.$ac_ext <<_ACEOF
39174 /* end confdefs.h.  */
39175
39176 #ifdef HAVE_DB_185_H
39177 # include <db_185.h>
39178 #else
39179 # include <db.h>
39180 #endif
39181
39182 #ifndef DB_VERSION_MAJOR
39183 # define DB_VERSION_MAJOR 1
39184 #endif
39185
39186 #ifndef NULL
39187 #define NULL ((void*)0)
39188 #endif
39189
39190 int
39191 main ()
39192 {
39193
39194 #if DB_VERSION_MAJOR > 1
39195         {
39196                 char *version;
39197                 int major, minor, patch;
39198
39199                 version = db_version( &major, &minor, &patch );
39200
39201                 if( major != DB_VERSION_MAJOR ||
39202                         minor < DB_VERSION_MINOR )
39203                 {
39204                         printf("Berkeley DB version mismatch\n"
39205                                 "\theader: %s\n\tlibrary: %s\n",
39206                                 DB_VERSION_STRING, version);
39207                         return 1;
39208                 }
39209         }
39210 #endif
39211
39212 #if DB_VERSION_MAJOR > 2
39213         db_env_create( NULL, 0 );
39214 #elif DB_VERSION_MAJOR > 1
39215         db_appexit( NULL );
39216 #else
39217         (void) dbopen( NULL, 0, 0, 0, NULL);
39218 #endif
39219
39220   ;
39221   return 0;
39222 }
39223 _ACEOF
39224 rm -f conftest.$ac_objext conftest$ac_exeext
39225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39226   (eval $ac_link) 2>conftest.er1
39227   ac_status=$?
39228   grep -v '^ *+' conftest.er1 >conftest.err
39229   rm -f conftest.er1
39230   cat conftest.err >&5
39231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39232   (exit $ac_status); } &&
39233          { ac_try='test -z "$ac_c_werror_flag"
39234                          || test ! -s conftest.err'
39235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39236   (eval $ac_try) 2>&5
39237   ac_status=$?
39238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39239   (exit $ac_status); }; } &&
39240          { ac_try='test -s conftest$ac_exeext'
39241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39242   (eval $ac_try) 2>&5
39243   ac_status=$?
39244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39245   (exit $ac_status); }; }; then
39246   ol_cv_db_db4=yes
39247 else
39248   echo "$as_me: failed program was:" >&5
39249 sed 's/^/| /' conftest.$ac_ext >&5
39250
39251 ol_cv_db_db4=no
39252 fi
39253 rm -f conftest.err conftest.$ac_objext \
39254       conftest$ac_exeext conftest.$ac_ext
39255
39256         LIBS="$ol_LIBS"
39257
39258 fi
39259 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39260 echo "${ECHO_T}$ol_cv_db_db4" >&6
39261
39262         if test $ol_cv_db_db4 = yes ; then
39263                 ol_cv_lib_db=-ldb4
39264         fi
39265 fi
39266
39267 if test $ol_cv_lib_db = no ; then
39268         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39269 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39270 if test "${ol_cv_db_db+set}" = set; then
39271   echo $ECHO_N "(cached) $ECHO_C" >&6
39272 else
39273
39274         ol_DB_LIB=-ldb
39275         ol_LIBS=$LIBS
39276         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39277
39278         cat >conftest.$ac_ext <<_ACEOF
39279 /* confdefs.h.  */
39280 _ACEOF
39281 cat confdefs.h >>conftest.$ac_ext
39282 cat >>conftest.$ac_ext <<_ACEOF
39283 /* end confdefs.h.  */
39284
39285 #ifdef HAVE_DB_185_H
39286 # include <db_185.h>
39287 #else
39288 # include <db.h>
39289 #endif
39290
39291 #ifndef DB_VERSION_MAJOR
39292 # define DB_VERSION_MAJOR 1
39293 #endif
39294
39295 #ifndef NULL
39296 #define NULL ((void*)0)
39297 #endif
39298
39299 int
39300 main ()
39301 {
39302
39303 #if DB_VERSION_MAJOR > 1
39304         {
39305                 char *version;
39306                 int major, minor, patch;
39307
39308                 version = db_version( &major, &minor, &patch );
39309
39310                 if( major != DB_VERSION_MAJOR ||
39311                         minor < DB_VERSION_MINOR )
39312                 {
39313                         printf("Berkeley DB version mismatch\n"
39314                                 "\theader: %s\n\tlibrary: %s\n",
39315                                 DB_VERSION_STRING, version);
39316                         return 1;
39317                 }
39318         }
39319 #endif
39320
39321 #if DB_VERSION_MAJOR > 2
39322         db_env_create( NULL, 0 );
39323 #elif DB_VERSION_MAJOR > 1
39324         db_appexit( NULL );
39325 #else
39326         (void) dbopen( NULL, 0, 0, 0, NULL);
39327 #endif
39328
39329   ;
39330   return 0;
39331 }
39332 _ACEOF
39333 rm -f conftest.$ac_objext conftest$ac_exeext
39334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39335   (eval $ac_link) 2>conftest.er1
39336   ac_status=$?
39337   grep -v '^ *+' conftest.er1 >conftest.err
39338   rm -f conftest.er1
39339   cat conftest.err >&5
39340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39341   (exit $ac_status); } &&
39342          { ac_try='test -z "$ac_c_werror_flag"
39343                          || test ! -s conftest.err'
39344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39345   (eval $ac_try) 2>&5
39346   ac_status=$?
39347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39348   (exit $ac_status); }; } &&
39349          { ac_try='test -s conftest$ac_exeext'
39350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39351   (eval $ac_try) 2>&5
39352   ac_status=$?
39353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39354   (exit $ac_status); }; }; then
39355   ol_cv_db_db=yes
39356 else
39357   echo "$as_me: failed program was:" >&5
39358 sed 's/^/| /' conftest.$ac_ext >&5
39359
39360 ol_cv_db_db=no
39361 fi
39362 rm -f conftest.err conftest.$ac_objext \
39363       conftest$ac_exeext conftest.$ac_ext
39364
39365         LIBS="$ol_LIBS"
39366
39367 fi
39368 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39369 echo "${ECHO_T}$ol_cv_db_db" >&6
39370
39371         if test $ol_cv_db_db = yes ; then
39372                 ol_cv_lib_db=-ldb
39373         fi
39374 fi
39375
39376 if test $ol_cv_lib_db = no ; then
39377         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39378 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39379 if test "${ol_cv_db_db41+set}" = set; then
39380   echo $ECHO_N "(cached) $ECHO_C" >&6
39381 else
39382
39383         ol_DB_LIB=-ldb41
39384         ol_LIBS=$LIBS
39385         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39386
39387         cat >conftest.$ac_ext <<_ACEOF
39388 /* confdefs.h.  */
39389 _ACEOF
39390 cat confdefs.h >>conftest.$ac_ext
39391 cat >>conftest.$ac_ext <<_ACEOF
39392 /* end confdefs.h.  */
39393
39394 #ifdef HAVE_DB_185_H
39395 # include <db_185.h>
39396 #else
39397 # include <db.h>
39398 #endif
39399
39400 #ifndef DB_VERSION_MAJOR
39401 # define DB_VERSION_MAJOR 1
39402 #endif
39403
39404 #ifndef NULL
39405 #define NULL ((void*)0)
39406 #endif
39407
39408 int
39409 main ()
39410 {
39411
39412 #if DB_VERSION_MAJOR > 1
39413         {
39414                 char *version;
39415                 int major, minor, patch;
39416
39417                 version = db_version( &major, &minor, &patch );
39418
39419                 if( major != DB_VERSION_MAJOR ||
39420                         minor < DB_VERSION_MINOR )
39421                 {
39422                         printf("Berkeley DB version mismatch\n"
39423                                 "\theader: %s\n\tlibrary: %s\n",
39424                                 DB_VERSION_STRING, version);
39425                         return 1;
39426                 }
39427         }
39428 #endif
39429
39430 #if DB_VERSION_MAJOR > 2
39431         db_env_create( NULL, 0 );
39432 #elif DB_VERSION_MAJOR > 1
39433         db_appexit( NULL );
39434 #else
39435         (void) dbopen( NULL, 0, 0, 0, NULL);
39436 #endif
39437
39438   ;
39439   return 0;
39440 }
39441 _ACEOF
39442 rm -f conftest.$ac_objext conftest$ac_exeext
39443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39444   (eval $ac_link) 2>conftest.er1
39445   ac_status=$?
39446   grep -v '^ *+' conftest.er1 >conftest.err
39447   rm -f conftest.er1
39448   cat conftest.err >&5
39449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39450   (exit $ac_status); } &&
39451          { ac_try='test -z "$ac_c_werror_flag"
39452                          || test ! -s conftest.err'
39453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39454   (eval $ac_try) 2>&5
39455   ac_status=$?
39456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39457   (exit $ac_status); }; } &&
39458          { ac_try='test -s conftest$ac_exeext'
39459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39460   (eval $ac_try) 2>&5
39461   ac_status=$?
39462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39463   (exit $ac_status); }; }; then
39464   ol_cv_db_db41=yes
39465 else
39466   echo "$as_me: failed program was:" >&5
39467 sed 's/^/| /' conftest.$ac_ext >&5
39468
39469 ol_cv_db_db41=no
39470 fi
39471 rm -f conftest.err conftest.$ac_objext \
39472       conftest$ac_exeext conftest.$ac_ext
39473
39474         LIBS="$ol_LIBS"
39475
39476 fi
39477 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39478 echo "${ECHO_T}$ol_cv_db_db41" >&6
39479
39480         if test $ol_cv_db_db41 = yes ; then
39481                 ol_cv_lib_db=-ldb41
39482         fi
39483 fi
39484
39485 if test $ol_cv_lib_db = no ; then
39486         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39487 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39488 if test "${ol_cv_db_db_41+set}" = set; then
39489   echo $ECHO_N "(cached) $ECHO_C" >&6
39490 else
39491
39492         ol_DB_LIB=-ldb-41
39493         ol_LIBS=$LIBS
39494         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39495
39496         cat >conftest.$ac_ext <<_ACEOF
39497 /* confdefs.h.  */
39498 _ACEOF
39499 cat confdefs.h >>conftest.$ac_ext
39500 cat >>conftest.$ac_ext <<_ACEOF
39501 /* end confdefs.h.  */
39502
39503 #ifdef HAVE_DB_185_H
39504 # include <db_185.h>
39505 #else
39506 # include <db.h>
39507 #endif
39508
39509 #ifndef DB_VERSION_MAJOR
39510 # define DB_VERSION_MAJOR 1
39511 #endif
39512
39513 #ifndef NULL
39514 #define NULL ((void*)0)
39515 #endif
39516
39517 int
39518 main ()
39519 {
39520
39521 #if DB_VERSION_MAJOR > 1
39522         {
39523                 char *version;
39524                 int major, minor, patch;
39525
39526                 version = db_version( &major, &minor, &patch );
39527
39528                 if( major != DB_VERSION_MAJOR ||
39529                         minor < DB_VERSION_MINOR )
39530                 {
39531                         printf("Berkeley DB version mismatch\n"
39532                                 "\theader: %s\n\tlibrary: %s\n",
39533                                 DB_VERSION_STRING, version);
39534                         return 1;
39535                 }
39536         }
39537 #endif
39538
39539 #if DB_VERSION_MAJOR > 2
39540         db_env_create( NULL, 0 );
39541 #elif DB_VERSION_MAJOR > 1
39542         db_appexit( NULL );
39543 #else
39544         (void) dbopen( NULL, 0, 0, 0, NULL);
39545 #endif
39546
39547   ;
39548   return 0;
39549 }
39550 _ACEOF
39551 rm -f conftest.$ac_objext conftest$ac_exeext
39552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39553   (eval $ac_link) 2>conftest.er1
39554   ac_status=$?
39555   grep -v '^ *+' conftest.er1 >conftest.err
39556   rm -f conftest.er1
39557   cat conftest.err >&5
39558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39559   (exit $ac_status); } &&
39560          { ac_try='test -z "$ac_c_werror_flag"
39561                          || test ! -s conftest.err'
39562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39563   (eval $ac_try) 2>&5
39564   ac_status=$?
39565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39566   (exit $ac_status); }; } &&
39567          { ac_try='test -s conftest$ac_exeext'
39568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39569   (eval $ac_try) 2>&5
39570   ac_status=$?
39571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39572   (exit $ac_status); }; }; then
39573   ol_cv_db_db_41=yes
39574 else
39575   echo "$as_me: failed program was:" >&5
39576 sed 's/^/| /' conftest.$ac_ext >&5
39577
39578 ol_cv_db_db_41=no
39579 fi
39580 rm -f conftest.err conftest.$ac_objext \
39581       conftest$ac_exeext conftest.$ac_ext
39582
39583         LIBS="$ol_LIBS"
39584
39585 fi
39586 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39587 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39588
39589         if test $ol_cv_db_db_41 = yes ; then
39590                 ol_cv_lib_db=-ldb-41
39591         fi
39592 fi
39593
39594 if test $ol_cv_lib_db = no ; then
39595         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39596 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39597 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39598   echo $ECHO_N "(cached) $ECHO_C" >&6
39599 else
39600
39601         ol_DB_LIB=-ldb-4.1
39602         ol_LIBS=$LIBS
39603         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39604
39605         cat >conftest.$ac_ext <<_ACEOF
39606 /* confdefs.h.  */
39607 _ACEOF
39608 cat confdefs.h >>conftest.$ac_ext
39609 cat >>conftest.$ac_ext <<_ACEOF
39610 /* end confdefs.h.  */
39611
39612 #ifdef HAVE_DB_185_H
39613 # include <db_185.h>
39614 #else
39615 # include <db.h>
39616 #endif
39617
39618 #ifndef DB_VERSION_MAJOR
39619 # define DB_VERSION_MAJOR 1
39620 #endif
39621
39622 #ifndef NULL
39623 #define NULL ((void*)0)
39624 #endif
39625
39626 int
39627 main ()
39628 {
39629
39630 #if DB_VERSION_MAJOR > 1
39631         {
39632                 char *version;
39633                 int major, minor, patch;
39634
39635                 version = db_version( &major, &minor, &patch );
39636
39637                 if( major != DB_VERSION_MAJOR ||
39638                         minor < DB_VERSION_MINOR )
39639                 {
39640                         printf("Berkeley DB version mismatch\n"
39641                                 "\theader: %s\n\tlibrary: %s\n",
39642                                 DB_VERSION_STRING, version);
39643                         return 1;
39644                 }
39645         }
39646 #endif
39647
39648 #if DB_VERSION_MAJOR > 2
39649         db_env_create( NULL, 0 );
39650 #elif DB_VERSION_MAJOR > 1
39651         db_appexit( NULL );
39652 #else
39653         (void) dbopen( NULL, 0, 0, 0, NULL);
39654 #endif
39655
39656   ;
39657   return 0;
39658 }
39659 _ACEOF
39660 rm -f conftest.$ac_objext conftest$ac_exeext
39661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39662   (eval $ac_link) 2>conftest.er1
39663   ac_status=$?
39664   grep -v '^ *+' conftest.er1 >conftest.err
39665   rm -f conftest.er1
39666   cat conftest.err >&5
39667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39668   (exit $ac_status); } &&
39669          { ac_try='test -z "$ac_c_werror_flag"
39670                          || test ! -s conftest.err'
39671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39672   (eval $ac_try) 2>&5
39673   ac_status=$?
39674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39675   (exit $ac_status); }; } &&
39676          { ac_try='test -s conftest$ac_exeext'
39677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39678   (eval $ac_try) 2>&5
39679   ac_status=$?
39680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39681   (exit $ac_status); }; }; then
39682   ol_cv_db_db_4_dot_1=yes
39683 else
39684   echo "$as_me: failed program was:" >&5
39685 sed 's/^/| /' conftest.$ac_ext >&5
39686
39687 ol_cv_db_db_4_dot_1=no
39688 fi
39689 rm -f conftest.err conftest.$ac_objext \
39690       conftest$ac_exeext conftest.$ac_ext
39691
39692         LIBS="$ol_LIBS"
39693
39694 fi
39695 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39696 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39697
39698         if test $ol_cv_db_db_4_dot_1 = yes ; then
39699                 ol_cv_lib_db=-ldb-4.1
39700         fi
39701 fi
39702
39703 if test $ol_cv_lib_db = no ; then
39704         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39705 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39706 if test "${ol_cv_db_db_4_1+set}" = set; then
39707   echo $ECHO_N "(cached) $ECHO_C" >&6
39708 else
39709
39710         ol_DB_LIB=-ldb-4-1
39711         ol_LIBS=$LIBS
39712         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39713
39714         cat >conftest.$ac_ext <<_ACEOF
39715 /* confdefs.h.  */
39716 _ACEOF
39717 cat confdefs.h >>conftest.$ac_ext
39718 cat >>conftest.$ac_ext <<_ACEOF
39719 /* end confdefs.h.  */
39720
39721 #ifdef HAVE_DB_185_H
39722 # include <db_185.h>
39723 #else
39724 # include <db.h>
39725 #endif
39726
39727 #ifndef DB_VERSION_MAJOR
39728 # define DB_VERSION_MAJOR 1
39729 #endif
39730
39731 #ifndef NULL
39732 #define NULL ((void*)0)
39733 #endif
39734
39735 int
39736 main ()
39737 {
39738
39739 #if DB_VERSION_MAJOR > 1
39740         {
39741                 char *version;
39742                 int major, minor, patch;
39743
39744                 version = db_version( &major, &minor, &patch );
39745
39746                 if( major != DB_VERSION_MAJOR ||
39747                         minor < DB_VERSION_MINOR )
39748                 {
39749                         printf("Berkeley DB version mismatch\n"
39750                                 "\theader: %s\n\tlibrary: %s\n",
39751                                 DB_VERSION_STRING, version);
39752                         return 1;
39753                 }
39754         }
39755 #endif
39756
39757 #if DB_VERSION_MAJOR > 2
39758         db_env_create( NULL, 0 );
39759 #elif DB_VERSION_MAJOR > 1
39760         db_appexit( NULL );
39761 #else
39762         (void) dbopen( NULL, 0, 0, 0, NULL);
39763 #endif
39764
39765   ;
39766   return 0;
39767 }
39768 _ACEOF
39769 rm -f conftest.$ac_objext conftest$ac_exeext
39770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39771   (eval $ac_link) 2>conftest.er1
39772   ac_status=$?
39773   grep -v '^ *+' conftest.er1 >conftest.err
39774   rm -f conftest.er1
39775   cat conftest.err >&5
39776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39777   (exit $ac_status); } &&
39778          { ac_try='test -z "$ac_c_werror_flag"
39779                          || test ! -s conftest.err'
39780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39781   (eval $ac_try) 2>&5
39782   ac_status=$?
39783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39784   (exit $ac_status); }; } &&
39785          { ac_try='test -s conftest$ac_exeext'
39786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39787   (eval $ac_try) 2>&5
39788   ac_status=$?
39789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39790   (exit $ac_status); }; }; then
39791   ol_cv_db_db_4_1=yes
39792 else
39793   echo "$as_me: failed program was:" >&5
39794 sed 's/^/| /' conftest.$ac_ext >&5
39795
39796 ol_cv_db_db_4_1=no
39797 fi
39798 rm -f conftest.err conftest.$ac_objext \
39799       conftest$ac_exeext conftest.$ac_ext
39800
39801         LIBS="$ol_LIBS"
39802
39803 fi
39804 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39805 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39806
39807         if test $ol_cv_db_db_4_1 = yes ; then
39808                 ol_cv_lib_db=-ldb-4-1
39809         fi
39810 fi
39811
39812 if test $ol_cv_lib_db = no ; then
39813         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39814 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39815 if test "${ol_cv_db_db3+set}" = set; then
39816   echo $ECHO_N "(cached) $ECHO_C" >&6
39817 else
39818
39819         ol_DB_LIB=-ldb3
39820         ol_LIBS=$LIBS
39821         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39822
39823         cat >conftest.$ac_ext <<_ACEOF
39824 /* confdefs.h.  */
39825 _ACEOF
39826 cat confdefs.h >>conftest.$ac_ext
39827 cat >>conftest.$ac_ext <<_ACEOF
39828 /* end confdefs.h.  */
39829
39830 #ifdef HAVE_DB_185_H
39831 # include <db_185.h>
39832 #else
39833 # include <db.h>
39834 #endif
39835
39836 #ifndef DB_VERSION_MAJOR
39837 # define DB_VERSION_MAJOR 1
39838 #endif
39839
39840 #ifndef NULL
39841 #define NULL ((void*)0)
39842 #endif
39843
39844 int
39845 main ()
39846 {
39847
39848 #if DB_VERSION_MAJOR > 1
39849         {
39850                 char *version;
39851                 int major, minor, patch;
39852
39853                 version = db_version( &major, &minor, &patch );
39854
39855                 if( major != DB_VERSION_MAJOR ||
39856                         minor < DB_VERSION_MINOR )
39857                 {
39858                         printf("Berkeley DB version mismatch\n"
39859                                 "\theader: %s\n\tlibrary: %s\n",
39860                                 DB_VERSION_STRING, version);
39861                         return 1;
39862                 }
39863         }
39864 #endif
39865
39866 #if DB_VERSION_MAJOR > 2
39867         db_env_create( NULL, 0 );
39868 #elif DB_VERSION_MAJOR > 1
39869         db_appexit( NULL );
39870 #else
39871         (void) dbopen( NULL, 0, 0, 0, NULL);
39872 #endif
39873
39874   ;
39875   return 0;
39876 }
39877 _ACEOF
39878 rm -f conftest.$ac_objext conftest$ac_exeext
39879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39880   (eval $ac_link) 2>conftest.er1
39881   ac_status=$?
39882   grep -v '^ *+' conftest.er1 >conftest.err
39883   rm -f conftest.er1
39884   cat conftest.err >&5
39885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39886   (exit $ac_status); } &&
39887          { ac_try='test -z "$ac_c_werror_flag"
39888                          || test ! -s conftest.err'
39889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39890   (eval $ac_try) 2>&5
39891   ac_status=$?
39892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39893   (exit $ac_status); }; } &&
39894          { ac_try='test -s conftest$ac_exeext'
39895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39896   (eval $ac_try) 2>&5
39897   ac_status=$?
39898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39899   (exit $ac_status); }; }; then
39900   ol_cv_db_db3=yes
39901 else
39902   echo "$as_me: failed program was:" >&5
39903 sed 's/^/| /' conftest.$ac_ext >&5
39904
39905 ol_cv_db_db3=no
39906 fi
39907 rm -f conftest.err conftest.$ac_objext \
39908       conftest$ac_exeext conftest.$ac_ext
39909
39910         LIBS="$ol_LIBS"
39911
39912 fi
39913 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
39914 echo "${ECHO_T}$ol_cv_db_db3" >&6
39915
39916         if test $ol_cv_db_db3 = yes ; then
39917                 ol_cv_lib_db=-ldb3
39918         fi
39919 fi
39920
39921 if test $ol_cv_lib_db = no ; then
39922         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
39923 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
39924 if test "${ol_cv_db_db_3+set}" = set; then
39925   echo $ECHO_N "(cached) $ECHO_C" >&6
39926 else
39927
39928         ol_DB_LIB=-ldb-3
39929         ol_LIBS=$LIBS
39930         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39931
39932         cat >conftest.$ac_ext <<_ACEOF
39933 /* confdefs.h.  */
39934 _ACEOF
39935 cat confdefs.h >>conftest.$ac_ext
39936 cat >>conftest.$ac_ext <<_ACEOF
39937 /* end confdefs.h.  */
39938
39939 #ifdef HAVE_DB_185_H
39940 # include <db_185.h>
39941 #else
39942 # include <db.h>
39943 #endif
39944
39945 #ifndef DB_VERSION_MAJOR
39946 # define DB_VERSION_MAJOR 1
39947 #endif
39948
39949 #ifndef NULL
39950 #define NULL ((void*)0)
39951 #endif
39952
39953 int
39954 main ()
39955 {
39956
39957 #if DB_VERSION_MAJOR > 1
39958         {
39959                 char *version;
39960                 int major, minor, patch;
39961
39962                 version = db_version( &major, &minor, &patch );
39963
39964                 if( major != DB_VERSION_MAJOR ||
39965                         minor < DB_VERSION_MINOR )
39966                 {
39967                         printf("Berkeley DB version mismatch\n"
39968                                 "\theader: %s\n\tlibrary: %s\n",
39969                                 DB_VERSION_STRING, version);
39970                         return 1;
39971                 }
39972         }
39973 #endif
39974
39975 #if DB_VERSION_MAJOR > 2
39976         db_env_create( NULL, 0 );
39977 #elif DB_VERSION_MAJOR > 1
39978         db_appexit( NULL );
39979 #else
39980         (void) dbopen( NULL, 0, 0, 0, NULL);
39981 #endif
39982
39983   ;
39984   return 0;
39985 }
39986 _ACEOF
39987 rm -f conftest.$ac_objext conftest$ac_exeext
39988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39989   (eval $ac_link) 2>conftest.er1
39990   ac_status=$?
39991   grep -v '^ *+' conftest.er1 >conftest.err
39992   rm -f conftest.er1
39993   cat conftest.err >&5
39994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39995   (exit $ac_status); } &&
39996          { ac_try='test -z "$ac_c_werror_flag"
39997                          || test ! -s conftest.err'
39998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39999   (eval $ac_try) 2>&5
40000   ac_status=$?
40001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40002   (exit $ac_status); }; } &&
40003          { ac_try='test -s conftest$ac_exeext'
40004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40005   (eval $ac_try) 2>&5
40006   ac_status=$?
40007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40008   (exit $ac_status); }; }; then
40009   ol_cv_db_db_3=yes
40010 else
40011   echo "$as_me: failed program was:" >&5
40012 sed 's/^/| /' conftest.$ac_ext >&5
40013
40014 ol_cv_db_db_3=no
40015 fi
40016 rm -f conftest.err conftest.$ac_objext \
40017       conftest$ac_exeext conftest.$ac_ext
40018
40019         LIBS="$ol_LIBS"
40020
40021 fi
40022 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
40023 echo "${ECHO_T}$ol_cv_db_db_3" >&6
40024
40025         if test $ol_cv_db_db_3 = yes ; then
40026                 ol_cv_lib_db=-ldb-3
40027         fi
40028 fi
40029
40030 if test $ol_cv_lib_db = no ; then
40031         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
40032 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
40033 if test "${ol_cv_db_db2+set}" = set; then
40034   echo $ECHO_N "(cached) $ECHO_C" >&6
40035 else
40036
40037         ol_DB_LIB=-ldb2
40038         ol_LIBS=$LIBS
40039         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40040
40041         cat >conftest.$ac_ext <<_ACEOF
40042 /* confdefs.h.  */
40043 _ACEOF
40044 cat confdefs.h >>conftest.$ac_ext
40045 cat >>conftest.$ac_ext <<_ACEOF
40046 /* end confdefs.h.  */
40047
40048 #ifdef HAVE_DB_185_H
40049 # include <db_185.h>
40050 #else
40051 # include <db.h>
40052 #endif
40053
40054 #ifndef DB_VERSION_MAJOR
40055 # define DB_VERSION_MAJOR 1
40056 #endif
40057
40058 #ifndef NULL
40059 #define NULL ((void*)0)
40060 #endif
40061
40062 int
40063 main ()
40064 {
40065
40066 #if DB_VERSION_MAJOR > 1
40067         {
40068                 char *version;
40069                 int major, minor, patch;
40070
40071                 version = db_version( &major, &minor, &patch );
40072
40073                 if( major != DB_VERSION_MAJOR ||
40074                         minor < DB_VERSION_MINOR )
40075                 {
40076                         printf("Berkeley DB version mismatch\n"
40077                                 "\theader: %s\n\tlibrary: %s\n",
40078                                 DB_VERSION_STRING, version);
40079                         return 1;
40080                 }
40081         }
40082 #endif
40083
40084 #if DB_VERSION_MAJOR > 2
40085         db_env_create( NULL, 0 );
40086 #elif DB_VERSION_MAJOR > 1
40087         db_appexit( NULL );
40088 #else
40089         (void) dbopen( NULL, 0, 0, 0, NULL);
40090 #endif
40091
40092   ;
40093   return 0;
40094 }
40095 _ACEOF
40096 rm -f conftest.$ac_objext conftest$ac_exeext
40097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40098   (eval $ac_link) 2>conftest.er1
40099   ac_status=$?
40100   grep -v '^ *+' conftest.er1 >conftest.err
40101   rm -f conftest.er1
40102   cat conftest.err >&5
40103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40104   (exit $ac_status); } &&
40105          { ac_try='test -z "$ac_c_werror_flag"
40106                          || test ! -s conftest.err'
40107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40108   (eval $ac_try) 2>&5
40109   ac_status=$?
40110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40111   (exit $ac_status); }; } &&
40112          { ac_try='test -s conftest$ac_exeext'
40113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40114   (eval $ac_try) 2>&5
40115   ac_status=$?
40116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40117   (exit $ac_status); }; }; then
40118   ol_cv_db_db2=yes
40119 else
40120   echo "$as_me: failed program was:" >&5
40121 sed 's/^/| /' conftest.$ac_ext >&5
40122
40123 ol_cv_db_db2=no
40124 fi
40125 rm -f conftest.err conftest.$ac_objext \
40126       conftest$ac_exeext conftest.$ac_ext
40127
40128         LIBS="$ol_LIBS"
40129
40130 fi
40131 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
40132 echo "${ECHO_T}$ol_cv_db_db2" >&6
40133
40134         if test $ol_cv_db_db2 = yes ; then
40135                 ol_cv_lib_db=-ldb2
40136         fi
40137 fi
40138
40139 if test $ol_cv_lib_db = no ; then
40140         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
40141 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
40142 if test "${ol_cv_db_db_2+set}" = set; then
40143   echo $ECHO_N "(cached) $ECHO_C" >&6
40144 else
40145
40146         ol_DB_LIB=-ldb-2
40147         ol_LIBS=$LIBS
40148         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40149
40150         cat >conftest.$ac_ext <<_ACEOF
40151 /* confdefs.h.  */
40152 _ACEOF
40153 cat confdefs.h >>conftest.$ac_ext
40154 cat >>conftest.$ac_ext <<_ACEOF
40155 /* end confdefs.h.  */
40156
40157 #ifdef HAVE_DB_185_H
40158 # include <db_185.h>
40159 #else
40160 # include <db.h>
40161 #endif
40162
40163 #ifndef DB_VERSION_MAJOR
40164 # define DB_VERSION_MAJOR 1
40165 #endif
40166
40167 #ifndef NULL
40168 #define NULL ((void*)0)
40169 #endif
40170
40171 int
40172 main ()
40173 {
40174
40175 #if DB_VERSION_MAJOR > 1
40176         {
40177                 char *version;
40178                 int major, minor, patch;
40179
40180                 version = db_version( &major, &minor, &patch );
40181
40182                 if( major != DB_VERSION_MAJOR ||
40183                         minor < DB_VERSION_MINOR )
40184                 {
40185                         printf("Berkeley DB version mismatch\n"
40186                                 "\theader: %s\n\tlibrary: %s\n",
40187                                 DB_VERSION_STRING, version);
40188                         return 1;
40189                 }
40190         }
40191 #endif
40192
40193 #if DB_VERSION_MAJOR > 2
40194         db_env_create( NULL, 0 );
40195 #elif DB_VERSION_MAJOR > 1
40196         db_appexit( NULL );
40197 #else
40198         (void) dbopen( NULL, 0, 0, 0, NULL);
40199 #endif
40200
40201   ;
40202   return 0;
40203 }
40204 _ACEOF
40205 rm -f conftest.$ac_objext conftest$ac_exeext
40206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40207   (eval $ac_link) 2>conftest.er1
40208   ac_status=$?
40209   grep -v '^ *+' conftest.er1 >conftest.err
40210   rm -f conftest.er1
40211   cat conftest.err >&5
40212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40213   (exit $ac_status); } &&
40214          { ac_try='test -z "$ac_c_werror_flag"
40215                          || test ! -s conftest.err'
40216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40217   (eval $ac_try) 2>&5
40218   ac_status=$?
40219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40220   (exit $ac_status); }; } &&
40221          { ac_try='test -s conftest$ac_exeext'
40222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40223   (eval $ac_try) 2>&5
40224   ac_status=$?
40225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40226   (exit $ac_status); }; }; then
40227   ol_cv_db_db_2=yes
40228 else
40229   echo "$as_me: failed program was:" >&5
40230 sed 's/^/| /' conftest.$ac_ext >&5
40231
40232 ol_cv_db_db_2=no
40233 fi
40234 rm -f conftest.err conftest.$ac_objext \
40235       conftest$ac_exeext conftest.$ac_ext
40236
40237         LIBS="$ol_LIBS"
40238
40239 fi
40240 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40241 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40242
40243         if test $ol_cv_db_db_2 = yes ; then
40244                 ol_cv_lib_db=-ldb-2
40245         fi
40246 fi
40247
40248 if test $ol_cv_lib_db = no ; then
40249         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40250 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40251 if test "${ol_cv_db_db1+set}" = set; then
40252   echo $ECHO_N "(cached) $ECHO_C" >&6
40253 else
40254
40255         ol_DB_LIB=-ldb1
40256         ol_LIBS=$LIBS
40257         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40258
40259         cat >conftest.$ac_ext <<_ACEOF
40260 /* confdefs.h.  */
40261 _ACEOF
40262 cat confdefs.h >>conftest.$ac_ext
40263 cat >>conftest.$ac_ext <<_ACEOF
40264 /* end confdefs.h.  */
40265
40266 #ifdef HAVE_DB_185_H
40267 # include <db_185.h>
40268 #else
40269 # include <db.h>
40270 #endif
40271
40272 #ifndef DB_VERSION_MAJOR
40273 # define DB_VERSION_MAJOR 1
40274 #endif
40275
40276 #ifndef NULL
40277 #define NULL ((void*)0)
40278 #endif
40279
40280 int
40281 main ()
40282 {
40283
40284 #if DB_VERSION_MAJOR > 1
40285         {
40286                 char *version;
40287                 int major, minor, patch;
40288
40289                 version = db_version( &major, &minor, &patch );
40290
40291                 if( major != DB_VERSION_MAJOR ||
40292                         minor < DB_VERSION_MINOR )
40293                 {
40294                         printf("Berkeley DB version mismatch\n"
40295                                 "\theader: %s\n\tlibrary: %s\n",
40296                                 DB_VERSION_STRING, version);
40297                         return 1;
40298                 }
40299         }
40300 #endif
40301
40302 #if DB_VERSION_MAJOR > 2
40303         db_env_create( NULL, 0 );
40304 #elif DB_VERSION_MAJOR > 1
40305         db_appexit( NULL );
40306 #else
40307         (void) dbopen( NULL, 0, 0, 0, NULL);
40308 #endif
40309
40310   ;
40311   return 0;
40312 }
40313 _ACEOF
40314 rm -f conftest.$ac_objext conftest$ac_exeext
40315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40316   (eval $ac_link) 2>conftest.er1
40317   ac_status=$?
40318   grep -v '^ *+' conftest.er1 >conftest.err
40319   rm -f conftest.er1
40320   cat conftest.err >&5
40321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40322   (exit $ac_status); } &&
40323          { ac_try='test -z "$ac_c_werror_flag"
40324                          || test ! -s conftest.err'
40325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40326   (eval $ac_try) 2>&5
40327   ac_status=$?
40328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40329   (exit $ac_status); }; } &&
40330          { ac_try='test -s conftest$ac_exeext'
40331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40332   (eval $ac_try) 2>&5
40333   ac_status=$?
40334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40335   (exit $ac_status); }; }; then
40336   ol_cv_db_db1=yes
40337 else
40338   echo "$as_me: failed program was:" >&5
40339 sed 's/^/| /' conftest.$ac_ext >&5
40340
40341 ol_cv_db_db1=no
40342 fi
40343 rm -f conftest.err conftest.$ac_objext \
40344       conftest$ac_exeext conftest.$ac_ext
40345
40346         LIBS="$ol_LIBS"
40347
40348 fi
40349 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40350 echo "${ECHO_T}$ol_cv_db_db1" >&6
40351
40352         if test $ol_cv_db_db1 = yes ; then
40353                 ol_cv_lib_db=-ldb1
40354         fi
40355 fi
40356
40357 if test $ol_cv_lib_db = no ; then
40358         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40359 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40360 if test "${ol_cv_db_db_1+set}" = set; then
40361   echo $ECHO_N "(cached) $ECHO_C" >&6
40362 else
40363
40364         ol_DB_LIB=-ldb-1
40365         ol_LIBS=$LIBS
40366         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40367
40368         cat >conftest.$ac_ext <<_ACEOF
40369 /* confdefs.h.  */
40370 _ACEOF
40371 cat confdefs.h >>conftest.$ac_ext
40372 cat >>conftest.$ac_ext <<_ACEOF
40373 /* end confdefs.h.  */
40374
40375 #ifdef HAVE_DB_185_H
40376 # include <db_185.h>
40377 #else
40378 # include <db.h>
40379 #endif
40380
40381 #ifndef DB_VERSION_MAJOR
40382 # define DB_VERSION_MAJOR 1
40383 #endif
40384
40385 #ifndef NULL
40386 #define NULL ((void*)0)
40387 #endif
40388
40389 int
40390 main ()
40391 {
40392
40393 #if DB_VERSION_MAJOR > 1
40394         {
40395                 char *version;
40396                 int major, minor, patch;
40397
40398                 version = db_version( &major, &minor, &patch );
40399
40400                 if( major != DB_VERSION_MAJOR ||
40401                         minor < DB_VERSION_MINOR )
40402                 {
40403                         printf("Berkeley DB version mismatch\n"
40404                                 "\theader: %s\n\tlibrary: %s\n",
40405                                 DB_VERSION_STRING, version);
40406                         return 1;
40407                 }
40408         }
40409 #endif
40410
40411 #if DB_VERSION_MAJOR > 2
40412         db_env_create( NULL, 0 );
40413 #elif DB_VERSION_MAJOR > 1
40414         db_appexit( NULL );
40415 #else
40416         (void) dbopen( NULL, 0, 0, 0, NULL);
40417 #endif
40418
40419   ;
40420   return 0;
40421 }
40422 _ACEOF
40423 rm -f conftest.$ac_objext conftest$ac_exeext
40424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40425   (eval $ac_link) 2>conftest.er1
40426   ac_status=$?
40427   grep -v '^ *+' conftest.er1 >conftest.err
40428   rm -f conftest.er1
40429   cat conftest.err >&5
40430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40431   (exit $ac_status); } &&
40432          { ac_try='test -z "$ac_c_werror_flag"
40433                          || test ! -s conftest.err'
40434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40435   (eval $ac_try) 2>&5
40436   ac_status=$?
40437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40438   (exit $ac_status); }; } &&
40439          { ac_try='test -s conftest$ac_exeext'
40440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40441   (eval $ac_try) 2>&5
40442   ac_status=$?
40443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40444   (exit $ac_status); }; }; then
40445   ol_cv_db_db_1=yes
40446 else
40447   echo "$as_me: failed program was:" >&5
40448 sed 's/^/| /' conftest.$ac_ext >&5
40449
40450 ol_cv_db_db_1=no
40451 fi
40452 rm -f conftest.err conftest.$ac_objext \
40453       conftest$ac_exeext conftest.$ac_ext
40454
40455         LIBS="$ol_LIBS"
40456
40457 fi
40458 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40459 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40460
40461         if test $ol_cv_db_db_1 = yes ; then
40462                 ol_cv_lib_db=-ldb-1
40463         fi
40464 fi
40465
40466
40467                 if test "$ol_cv_lib_db" != no ; then
40468                         ol_cv_berkeley_db=yes
40469                 fi
40470         fi
40471 fi
40472
40473         else
40474                 ol_cv_berkeley_db=no
40475
40476 for ac_header in db.h
40477 do
40478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40480   echo "$as_me:$LINENO: checking for $ac_header" >&5
40481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40483   echo $ECHO_N "(cached) $ECHO_C" >&6
40484 fi
40485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40487 else
40488   # Is the header compilable?
40489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40491 cat >conftest.$ac_ext <<_ACEOF
40492 /* confdefs.h.  */
40493 _ACEOF
40494 cat confdefs.h >>conftest.$ac_ext
40495 cat >>conftest.$ac_ext <<_ACEOF
40496 /* end confdefs.h.  */
40497 $ac_includes_default
40498 #include <$ac_header>
40499 _ACEOF
40500 rm -f conftest.$ac_objext
40501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40502   (eval $ac_compile) 2>conftest.er1
40503   ac_status=$?
40504   grep -v '^ *+' conftest.er1 >conftest.err
40505   rm -f conftest.er1
40506   cat conftest.err >&5
40507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40508   (exit $ac_status); } &&
40509          { ac_try='test -z "$ac_c_werror_flag"
40510                          || test ! -s conftest.err'
40511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40512   (eval $ac_try) 2>&5
40513   ac_status=$?
40514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40515   (exit $ac_status); }; } &&
40516          { ac_try='test -s conftest.$ac_objext'
40517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40518   (eval $ac_try) 2>&5
40519   ac_status=$?
40520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40521   (exit $ac_status); }; }; then
40522   ac_header_compiler=yes
40523 else
40524   echo "$as_me: failed program was:" >&5
40525 sed 's/^/| /' conftest.$ac_ext >&5
40526
40527 ac_header_compiler=no
40528 fi
40529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40531 echo "${ECHO_T}$ac_header_compiler" >&6
40532
40533 # Is the header present?
40534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40536 cat >conftest.$ac_ext <<_ACEOF
40537 /* confdefs.h.  */
40538 _ACEOF
40539 cat confdefs.h >>conftest.$ac_ext
40540 cat >>conftest.$ac_ext <<_ACEOF
40541 /* end confdefs.h.  */
40542 #include <$ac_header>
40543 _ACEOF
40544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40545   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40546   ac_status=$?
40547   grep -v '^ *+' conftest.er1 >conftest.err
40548   rm -f conftest.er1
40549   cat conftest.err >&5
40550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40551   (exit $ac_status); } >/dev/null; then
40552   if test -s conftest.err; then
40553     ac_cpp_err=$ac_c_preproc_warn_flag
40554     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40555   else
40556     ac_cpp_err=
40557   fi
40558 else
40559   ac_cpp_err=yes
40560 fi
40561 if test -z "$ac_cpp_err"; then
40562   ac_header_preproc=yes
40563 else
40564   echo "$as_me: failed program was:" >&5
40565 sed 's/^/| /' conftest.$ac_ext >&5
40566
40567   ac_header_preproc=no
40568 fi
40569 rm -f conftest.err conftest.$ac_ext
40570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40571 echo "${ECHO_T}$ac_header_preproc" >&6
40572
40573 # So?  What about this header?
40574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40575   yes:no: )
40576     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40580     ac_header_preproc=yes
40581     ;;
40582   no:yes:* )
40583     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40585     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40586 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40587     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40589     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40590 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40593     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40595     (
40596       cat <<\_ASBOX
40597 ## ------------------------------------------ ##
40598 ## Report this to the AC_PACKAGE_NAME lists.  ##
40599 ## ------------------------------------------ ##
40600 _ASBOX
40601     ) |
40602       sed "s/^/$as_me: WARNING:     /" >&2
40603     ;;
40604 esac
40605 echo "$as_me:$LINENO: checking for $ac_header" >&5
40606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40608   echo $ECHO_N "(cached) $ECHO_C" >&6
40609 else
40610   eval "$as_ac_Header=\$ac_header_preproc"
40611 fi
40612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40614
40615 fi
40616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40617   cat >>confdefs.h <<_ACEOF
40618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40619 _ACEOF
40620
40621 fi
40622
40623 done
40624
40625 if test $ac_cv_header_db_h = yes; then
40626         ol_cv_lib_db=no
40627 if test $ol_cv_lib_db = no ; then
40628         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40629 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40630 if test "${ol_cv_db_none+set}" = set; then
40631   echo $ECHO_N "(cached) $ECHO_C" >&6
40632 else
40633
40634         ol_DB_LIB=
40635         ol_LIBS=$LIBS
40636         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40637
40638         cat >conftest.$ac_ext <<_ACEOF
40639 /* confdefs.h.  */
40640 _ACEOF
40641 cat confdefs.h >>conftest.$ac_ext
40642 cat >>conftest.$ac_ext <<_ACEOF
40643 /* end confdefs.h.  */
40644
40645 #ifdef HAVE_DB_185_H
40646 # include <db_185.h>
40647 #else
40648 # include <db.h>
40649 #endif
40650
40651 #ifndef DB_VERSION_MAJOR
40652 # define DB_VERSION_MAJOR 1
40653 #endif
40654
40655 #ifndef NULL
40656 #define NULL ((void*)0)
40657 #endif
40658
40659 int
40660 main ()
40661 {
40662
40663 #if DB_VERSION_MAJOR > 1
40664         {
40665                 char *version;
40666                 int major, minor, patch;
40667
40668                 version = db_version( &major, &minor, &patch );
40669
40670                 if( major != DB_VERSION_MAJOR ||
40671                         minor < DB_VERSION_MINOR )
40672                 {
40673                         printf("Berkeley DB version mismatch\n"
40674                                 "\theader: %s\n\tlibrary: %s\n",
40675                                 DB_VERSION_STRING, version);
40676                         return 1;
40677                 }
40678         }
40679 #endif
40680
40681 #if DB_VERSION_MAJOR > 2
40682         db_env_create( NULL, 0 );
40683 #elif DB_VERSION_MAJOR > 1
40684         db_appexit( NULL );
40685 #else
40686         (void) dbopen( NULL, 0, 0, 0, NULL);
40687 #endif
40688
40689   ;
40690   return 0;
40691 }
40692 _ACEOF
40693 rm -f conftest.$ac_objext conftest$ac_exeext
40694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40695   (eval $ac_link) 2>conftest.er1
40696   ac_status=$?
40697   grep -v '^ *+' conftest.er1 >conftest.err
40698   rm -f conftest.er1
40699   cat conftest.err >&5
40700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40701   (exit $ac_status); } &&
40702          { ac_try='test -z "$ac_c_werror_flag"
40703                          || test ! -s conftest.err'
40704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40705   (eval $ac_try) 2>&5
40706   ac_status=$?
40707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40708   (exit $ac_status); }; } &&
40709          { ac_try='test -s conftest$ac_exeext'
40710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40711   (eval $ac_try) 2>&5
40712   ac_status=$?
40713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40714   (exit $ac_status); }; }; then
40715   ol_cv_db_none=yes
40716 else
40717   echo "$as_me: failed program was:" >&5
40718 sed 's/^/| /' conftest.$ac_ext >&5
40719
40720 ol_cv_db_none=no
40721 fi
40722 rm -f conftest.err conftest.$ac_objext \
40723       conftest$ac_exeext conftest.$ac_ext
40724
40725         LIBS="$ol_LIBS"
40726
40727 fi
40728 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40729 echo "${ECHO_T}$ol_cv_db_none" >&6
40730
40731         if test $ol_cv_db_none = yes ; then
40732                 ol_cv_lib_db=yes
40733         fi
40734 fi
40735
40736 if test $ol_cv_lib_db = no ; then
40737         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40738 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40739 if test "${ol_cv_db_db43+set}" = set; then
40740   echo $ECHO_N "(cached) $ECHO_C" >&6
40741 else
40742
40743         ol_DB_LIB=-ldb43
40744         ol_LIBS=$LIBS
40745         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40746
40747         cat >conftest.$ac_ext <<_ACEOF
40748 /* confdefs.h.  */
40749 _ACEOF
40750 cat confdefs.h >>conftest.$ac_ext
40751 cat >>conftest.$ac_ext <<_ACEOF
40752 /* end confdefs.h.  */
40753
40754 #ifdef HAVE_DB_185_H
40755 # include <db_185.h>
40756 #else
40757 # include <db.h>
40758 #endif
40759
40760 #ifndef DB_VERSION_MAJOR
40761 # define DB_VERSION_MAJOR 1
40762 #endif
40763
40764 #ifndef NULL
40765 #define NULL ((void*)0)
40766 #endif
40767
40768 int
40769 main ()
40770 {
40771
40772 #if DB_VERSION_MAJOR > 1
40773         {
40774                 char *version;
40775                 int major, minor, patch;
40776
40777                 version = db_version( &major, &minor, &patch );
40778
40779                 if( major != DB_VERSION_MAJOR ||
40780                         minor < DB_VERSION_MINOR )
40781                 {
40782                         printf("Berkeley DB version mismatch\n"
40783                                 "\theader: %s\n\tlibrary: %s\n",
40784                                 DB_VERSION_STRING, version);
40785                         return 1;
40786                 }
40787         }
40788 #endif
40789
40790 #if DB_VERSION_MAJOR > 2
40791         db_env_create( NULL, 0 );
40792 #elif DB_VERSION_MAJOR > 1
40793         db_appexit( NULL );
40794 #else
40795         (void) dbopen( NULL, 0, 0, 0, NULL);
40796 #endif
40797
40798   ;
40799   return 0;
40800 }
40801 _ACEOF
40802 rm -f conftest.$ac_objext conftest$ac_exeext
40803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40804   (eval $ac_link) 2>conftest.er1
40805   ac_status=$?
40806   grep -v '^ *+' conftest.er1 >conftest.err
40807   rm -f conftest.er1
40808   cat conftest.err >&5
40809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40810   (exit $ac_status); } &&
40811          { ac_try='test -z "$ac_c_werror_flag"
40812                          || test ! -s conftest.err'
40813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40814   (eval $ac_try) 2>&5
40815   ac_status=$?
40816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40817   (exit $ac_status); }; } &&
40818          { ac_try='test -s conftest$ac_exeext'
40819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40820   (eval $ac_try) 2>&5
40821   ac_status=$?
40822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40823   (exit $ac_status); }; }; then
40824   ol_cv_db_db43=yes
40825 else
40826   echo "$as_me: failed program was:" >&5
40827 sed 's/^/| /' conftest.$ac_ext >&5
40828
40829 ol_cv_db_db43=no
40830 fi
40831 rm -f conftest.err conftest.$ac_objext \
40832       conftest$ac_exeext conftest.$ac_ext
40833
40834         LIBS="$ol_LIBS"
40835
40836 fi
40837 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40838 echo "${ECHO_T}$ol_cv_db_db43" >&6
40839
40840         if test $ol_cv_db_db43 = yes ; then
40841                 ol_cv_lib_db=-ldb43
40842         fi
40843 fi
40844
40845 if test $ol_cv_lib_db = no ; then
40846         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40847 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40848 if test "${ol_cv_db_db_43+set}" = set; then
40849   echo $ECHO_N "(cached) $ECHO_C" >&6
40850 else
40851
40852         ol_DB_LIB=-ldb-43
40853         ol_LIBS=$LIBS
40854         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40855
40856         cat >conftest.$ac_ext <<_ACEOF
40857 /* confdefs.h.  */
40858 _ACEOF
40859 cat confdefs.h >>conftest.$ac_ext
40860 cat >>conftest.$ac_ext <<_ACEOF
40861 /* end confdefs.h.  */
40862
40863 #ifdef HAVE_DB_185_H
40864 # include <db_185.h>
40865 #else
40866 # include <db.h>
40867 #endif
40868
40869 #ifndef DB_VERSION_MAJOR
40870 # define DB_VERSION_MAJOR 1
40871 #endif
40872
40873 #ifndef NULL
40874 #define NULL ((void*)0)
40875 #endif
40876
40877 int
40878 main ()
40879 {
40880
40881 #if DB_VERSION_MAJOR > 1
40882         {
40883                 char *version;
40884                 int major, minor, patch;
40885
40886                 version = db_version( &major, &minor, &patch );
40887
40888                 if( major != DB_VERSION_MAJOR ||
40889                         minor < DB_VERSION_MINOR )
40890                 {
40891                         printf("Berkeley DB version mismatch\n"
40892                                 "\theader: %s\n\tlibrary: %s\n",
40893                                 DB_VERSION_STRING, version);
40894                         return 1;
40895                 }
40896         }
40897 #endif
40898
40899 #if DB_VERSION_MAJOR > 2
40900         db_env_create( NULL, 0 );
40901 #elif DB_VERSION_MAJOR > 1
40902         db_appexit( NULL );
40903 #else
40904         (void) dbopen( NULL, 0, 0, 0, NULL);
40905 #endif
40906
40907   ;
40908   return 0;
40909 }
40910 _ACEOF
40911 rm -f conftest.$ac_objext conftest$ac_exeext
40912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40913   (eval $ac_link) 2>conftest.er1
40914   ac_status=$?
40915   grep -v '^ *+' conftest.er1 >conftest.err
40916   rm -f conftest.er1
40917   cat conftest.err >&5
40918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40919   (exit $ac_status); } &&
40920          { ac_try='test -z "$ac_c_werror_flag"
40921                          || test ! -s conftest.err'
40922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40923   (eval $ac_try) 2>&5
40924   ac_status=$?
40925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40926   (exit $ac_status); }; } &&
40927          { ac_try='test -s conftest$ac_exeext'
40928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40929   (eval $ac_try) 2>&5
40930   ac_status=$?
40931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40932   (exit $ac_status); }; }; then
40933   ol_cv_db_db_43=yes
40934 else
40935   echo "$as_me: failed program was:" >&5
40936 sed 's/^/| /' conftest.$ac_ext >&5
40937
40938 ol_cv_db_db_43=no
40939 fi
40940 rm -f conftest.err conftest.$ac_objext \
40941       conftest$ac_exeext conftest.$ac_ext
40942
40943         LIBS="$ol_LIBS"
40944
40945 fi
40946 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
40947 echo "${ECHO_T}$ol_cv_db_db_43" >&6
40948
40949         if test $ol_cv_db_db_43 = yes ; then
40950                 ol_cv_lib_db=-ldb-43
40951         fi
40952 fi
40953
40954 if test $ol_cv_lib_db = no ; then
40955         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
40956 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
40957 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
40958   echo $ECHO_N "(cached) $ECHO_C" >&6
40959 else
40960
40961         ol_DB_LIB=-ldb-4.3
40962         ol_LIBS=$LIBS
40963         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40964
40965         cat >conftest.$ac_ext <<_ACEOF
40966 /* confdefs.h.  */
40967 _ACEOF
40968 cat confdefs.h >>conftest.$ac_ext
40969 cat >>conftest.$ac_ext <<_ACEOF
40970 /* end confdefs.h.  */
40971
40972 #ifdef HAVE_DB_185_H
40973 # include <db_185.h>
40974 #else
40975 # include <db.h>
40976 #endif
40977
40978 #ifndef DB_VERSION_MAJOR
40979 # define DB_VERSION_MAJOR 1
40980 #endif
40981
40982 #ifndef NULL
40983 #define NULL ((void*)0)
40984 #endif
40985
40986 int
40987 main ()
40988 {
40989
40990 #if DB_VERSION_MAJOR > 1
40991         {
40992                 char *version;
40993                 int major, minor, patch;
40994
40995                 version = db_version( &major, &minor, &patch );
40996
40997                 if( major != DB_VERSION_MAJOR ||
40998                         minor < DB_VERSION_MINOR )
40999                 {
41000                         printf("Berkeley DB version mismatch\n"
41001                                 "\theader: %s\n\tlibrary: %s\n",
41002                                 DB_VERSION_STRING, version);
41003                         return 1;
41004                 }
41005         }
41006 #endif
41007
41008 #if DB_VERSION_MAJOR > 2
41009         db_env_create( NULL, 0 );
41010 #elif DB_VERSION_MAJOR > 1
41011         db_appexit( NULL );
41012 #else
41013         (void) dbopen( NULL, 0, 0, 0, NULL);
41014 #endif
41015
41016   ;
41017   return 0;
41018 }
41019 _ACEOF
41020 rm -f conftest.$ac_objext conftest$ac_exeext
41021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41022   (eval $ac_link) 2>conftest.er1
41023   ac_status=$?
41024   grep -v '^ *+' conftest.er1 >conftest.err
41025   rm -f conftest.er1
41026   cat conftest.err >&5
41027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41028   (exit $ac_status); } &&
41029          { ac_try='test -z "$ac_c_werror_flag"
41030                          || test ! -s conftest.err'
41031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41032   (eval $ac_try) 2>&5
41033   ac_status=$?
41034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41035   (exit $ac_status); }; } &&
41036          { ac_try='test -s conftest$ac_exeext'
41037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41038   (eval $ac_try) 2>&5
41039   ac_status=$?
41040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41041   (exit $ac_status); }; }; then
41042   ol_cv_db_db_4_dot_3=yes
41043 else
41044   echo "$as_me: failed program was:" >&5
41045 sed 's/^/| /' conftest.$ac_ext >&5
41046
41047 ol_cv_db_db_4_dot_3=no
41048 fi
41049 rm -f conftest.err conftest.$ac_objext \
41050       conftest$ac_exeext conftest.$ac_ext
41051
41052         LIBS="$ol_LIBS"
41053
41054 fi
41055 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
41056 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
41057
41058         if test $ol_cv_db_db_4_dot_3 = yes ; then
41059                 ol_cv_lib_db=-ldb-4.3
41060         fi
41061 fi
41062
41063 if test $ol_cv_lib_db = no ; then
41064         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
41065 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
41066 if test "${ol_cv_db_db_4_3+set}" = set; then
41067   echo $ECHO_N "(cached) $ECHO_C" >&6
41068 else
41069
41070         ol_DB_LIB=-ldb-4-3
41071         ol_LIBS=$LIBS
41072         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41073
41074         cat >conftest.$ac_ext <<_ACEOF
41075 /* confdefs.h.  */
41076 _ACEOF
41077 cat confdefs.h >>conftest.$ac_ext
41078 cat >>conftest.$ac_ext <<_ACEOF
41079 /* end confdefs.h.  */
41080
41081 #ifdef HAVE_DB_185_H
41082 # include <db_185.h>
41083 #else
41084 # include <db.h>
41085 #endif
41086
41087 #ifndef DB_VERSION_MAJOR
41088 # define DB_VERSION_MAJOR 1
41089 #endif
41090
41091 #ifndef NULL
41092 #define NULL ((void*)0)
41093 #endif
41094
41095 int
41096 main ()
41097 {
41098
41099 #if DB_VERSION_MAJOR > 1
41100         {
41101                 char *version;
41102                 int major, minor, patch;
41103
41104                 version = db_version( &major, &minor, &patch );
41105
41106                 if( major != DB_VERSION_MAJOR ||
41107                         minor < DB_VERSION_MINOR )
41108                 {
41109                         printf("Berkeley DB version mismatch\n"
41110                                 "\theader: %s\n\tlibrary: %s\n",
41111                                 DB_VERSION_STRING, version);
41112                         return 1;
41113                 }
41114         }
41115 #endif
41116
41117 #if DB_VERSION_MAJOR > 2
41118         db_env_create( NULL, 0 );
41119 #elif DB_VERSION_MAJOR > 1
41120         db_appexit( NULL );
41121 #else
41122         (void) dbopen( NULL, 0, 0, 0, NULL);
41123 #endif
41124
41125   ;
41126   return 0;
41127 }
41128 _ACEOF
41129 rm -f conftest.$ac_objext conftest$ac_exeext
41130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41131   (eval $ac_link) 2>conftest.er1
41132   ac_status=$?
41133   grep -v '^ *+' conftest.er1 >conftest.err
41134   rm -f conftest.er1
41135   cat conftest.err >&5
41136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41137   (exit $ac_status); } &&
41138          { ac_try='test -z "$ac_c_werror_flag"
41139                          || test ! -s conftest.err'
41140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41141   (eval $ac_try) 2>&5
41142   ac_status=$?
41143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41144   (exit $ac_status); }; } &&
41145          { ac_try='test -s conftest$ac_exeext'
41146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41147   (eval $ac_try) 2>&5
41148   ac_status=$?
41149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41150   (exit $ac_status); }; }; then
41151   ol_cv_db_db_4_3=yes
41152 else
41153   echo "$as_me: failed program was:" >&5
41154 sed 's/^/| /' conftest.$ac_ext >&5
41155
41156 ol_cv_db_db_4_3=no
41157 fi
41158 rm -f conftest.err conftest.$ac_objext \
41159       conftest$ac_exeext conftest.$ac_ext
41160
41161         LIBS="$ol_LIBS"
41162
41163 fi
41164 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
41165 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
41166
41167         if test $ol_cv_db_db_4_3 = yes ; then
41168                 ol_cv_lib_db=-ldb-4-3
41169         fi
41170 fi
41171
41172 if test $ol_cv_lib_db = no ; then
41173         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
41174 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
41175 if test "${ol_cv_db_db42+set}" = set; then
41176   echo $ECHO_N "(cached) $ECHO_C" >&6
41177 else
41178
41179         ol_DB_LIB=-ldb42
41180         ol_LIBS=$LIBS
41181         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41182
41183         cat >conftest.$ac_ext <<_ACEOF
41184 /* confdefs.h.  */
41185 _ACEOF
41186 cat confdefs.h >>conftest.$ac_ext
41187 cat >>conftest.$ac_ext <<_ACEOF
41188 /* end confdefs.h.  */
41189
41190 #ifdef HAVE_DB_185_H
41191 # include <db_185.h>
41192 #else
41193 # include <db.h>
41194 #endif
41195
41196 #ifndef DB_VERSION_MAJOR
41197 # define DB_VERSION_MAJOR 1
41198 #endif
41199
41200 #ifndef NULL
41201 #define NULL ((void*)0)
41202 #endif
41203
41204 int
41205 main ()
41206 {
41207
41208 #if DB_VERSION_MAJOR > 1
41209         {
41210                 char *version;
41211                 int major, minor, patch;
41212
41213                 version = db_version( &major, &minor, &patch );
41214
41215                 if( major != DB_VERSION_MAJOR ||
41216                         minor < DB_VERSION_MINOR )
41217                 {
41218                         printf("Berkeley DB version mismatch\n"
41219                                 "\theader: %s\n\tlibrary: %s\n",
41220                                 DB_VERSION_STRING, version);
41221                         return 1;
41222                 }
41223         }
41224 #endif
41225
41226 #if DB_VERSION_MAJOR > 2
41227         db_env_create( NULL, 0 );
41228 #elif DB_VERSION_MAJOR > 1
41229         db_appexit( NULL );
41230 #else
41231         (void) dbopen( NULL, 0, 0, 0, NULL);
41232 #endif
41233
41234   ;
41235   return 0;
41236 }
41237 _ACEOF
41238 rm -f conftest.$ac_objext conftest$ac_exeext
41239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41240   (eval $ac_link) 2>conftest.er1
41241   ac_status=$?
41242   grep -v '^ *+' conftest.er1 >conftest.err
41243   rm -f conftest.er1
41244   cat conftest.err >&5
41245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41246   (exit $ac_status); } &&
41247          { ac_try='test -z "$ac_c_werror_flag"
41248                          || test ! -s conftest.err'
41249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41250   (eval $ac_try) 2>&5
41251   ac_status=$?
41252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41253   (exit $ac_status); }; } &&
41254          { ac_try='test -s conftest$ac_exeext'
41255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41256   (eval $ac_try) 2>&5
41257   ac_status=$?
41258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41259   (exit $ac_status); }; }; then
41260   ol_cv_db_db42=yes
41261 else
41262   echo "$as_me: failed program was:" >&5
41263 sed 's/^/| /' conftest.$ac_ext >&5
41264
41265 ol_cv_db_db42=no
41266 fi
41267 rm -f conftest.err conftest.$ac_objext \
41268       conftest$ac_exeext conftest.$ac_ext
41269
41270         LIBS="$ol_LIBS"
41271
41272 fi
41273 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41274 echo "${ECHO_T}$ol_cv_db_db42" >&6
41275
41276         if test $ol_cv_db_db42 = yes ; then
41277                 ol_cv_lib_db=-ldb42
41278         fi
41279 fi
41280
41281 if test $ol_cv_lib_db = no ; then
41282         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41283 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41284 if test "${ol_cv_db_db_42+set}" = set; then
41285   echo $ECHO_N "(cached) $ECHO_C" >&6
41286 else
41287
41288         ol_DB_LIB=-ldb-42
41289         ol_LIBS=$LIBS
41290         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41291
41292         cat >conftest.$ac_ext <<_ACEOF
41293 /* confdefs.h.  */
41294 _ACEOF
41295 cat confdefs.h >>conftest.$ac_ext
41296 cat >>conftest.$ac_ext <<_ACEOF
41297 /* end confdefs.h.  */
41298
41299 #ifdef HAVE_DB_185_H
41300 # include <db_185.h>
41301 #else
41302 # include <db.h>
41303 #endif
41304
41305 #ifndef DB_VERSION_MAJOR
41306 # define DB_VERSION_MAJOR 1
41307 #endif
41308
41309 #ifndef NULL
41310 #define NULL ((void*)0)
41311 #endif
41312
41313 int
41314 main ()
41315 {
41316
41317 #if DB_VERSION_MAJOR > 1
41318         {
41319                 char *version;
41320                 int major, minor, patch;
41321
41322                 version = db_version( &major, &minor, &patch );
41323
41324                 if( major != DB_VERSION_MAJOR ||
41325                         minor < DB_VERSION_MINOR )
41326                 {
41327                         printf("Berkeley DB version mismatch\n"
41328                                 "\theader: %s\n\tlibrary: %s\n",
41329                                 DB_VERSION_STRING, version);
41330                         return 1;
41331                 }
41332         }
41333 #endif
41334
41335 #if DB_VERSION_MAJOR > 2
41336         db_env_create( NULL, 0 );
41337 #elif DB_VERSION_MAJOR > 1
41338         db_appexit( NULL );
41339 #else
41340         (void) dbopen( NULL, 0, 0, 0, NULL);
41341 #endif
41342
41343   ;
41344   return 0;
41345 }
41346 _ACEOF
41347 rm -f conftest.$ac_objext conftest$ac_exeext
41348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41349   (eval $ac_link) 2>conftest.er1
41350   ac_status=$?
41351   grep -v '^ *+' conftest.er1 >conftest.err
41352   rm -f conftest.er1
41353   cat conftest.err >&5
41354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41355   (exit $ac_status); } &&
41356          { ac_try='test -z "$ac_c_werror_flag"
41357                          || test ! -s conftest.err'
41358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41359   (eval $ac_try) 2>&5
41360   ac_status=$?
41361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41362   (exit $ac_status); }; } &&
41363          { ac_try='test -s conftest$ac_exeext'
41364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41365   (eval $ac_try) 2>&5
41366   ac_status=$?
41367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41368   (exit $ac_status); }; }; then
41369   ol_cv_db_db_42=yes
41370 else
41371   echo "$as_me: failed program was:" >&5
41372 sed 's/^/| /' conftest.$ac_ext >&5
41373
41374 ol_cv_db_db_42=no
41375 fi
41376 rm -f conftest.err conftest.$ac_objext \
41377       conftest$ac_exeext conftest.$ac_ext
41378
41379         LIBS="$ol_LIBS"
41380
41381 fi
41382 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41383 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41384
41385         if test $ol_cv_db_db_42 = yes ; then
41386                 ol_cv_lib_db=-ldb-42
41387         fi
41388 fi
41389
41390 if test $ol_cv_lib_db = no ; then
41391         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41392 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41393 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41394   echo $ECHO_N "(cached) $ECHO_C" >&6
41395 else
41396
41397         ol_DB_LIB=-ldb-4.2
41398         ol_LIBS=$LIBS
41399         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41400
41401         cat >conftest.$ac_ext <<_ACEOF
41402 /* confdefs.h.  */
41403 _ACEOF
41404 cat confdefs.h >>conftest.$ac_ext
41405 cat >>conftest.$ac_ext <<_ACEOF
41406 /* end confdefs.h.  */
41407
41408 #ifdef HAVE_DB_185_H
41409 # include <db_185.h>
41410 #else
41411 # include <db.h>
41412 #endif
41413
41414 #ifndef DB_VERSION_MAJOR
41415 # define DB_VERSION_MAJOR 1
41416 #endif
41417
41418 #ifndef NULL
41419 #define NULL ((void*)0)
41420 #endif
41421
41422 int
41423 main ()
41424 {
41425
41426 #if DB_VERSION_MAJOR > 1
41427         {
41428                 char *version;
41429                 int major, minor, patch;
41430
41431                 version = db_version( &major, &minor, &patch );
41432
41433                 if( major != DB_VERSION_MAJOR ||
41434                         minor < DB_VERSION_MINOR )
41435                 {
41436                         printf("Berkeley DB version mismatch\n"
41437                                 "\theader: %s\n\tlibrary: %s\n",
41438                                 DB_VERSION_STRING, version);
41439                         return 1;
41440                 }
41441         }
41442 #endif
41443
41444 #if DB_VERSION_MAJOR > 2
41445         db_env_create( NULL, 0 );
41446 #elif DB_VERSION_MAJOR > 1
41447         db_appexit( NULL );
41448 #else
41449         (void) dbopen( NULL, 0, 0, 0, NULL);
41450 #endif
41451
41452   ;
41453   return 0;
41454 }
41455 _ACEOF
41456 rm -f conftest.$ac_objext conftest$ac_exeext
41457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41458   (eval $ac_link) 2>conftest.er1
41459   ac_status=$?
41460   grep -v '^ *+' conftest.er1 >conftest.err
41461   rm -f conftest.er1
41462   cat conftest.err >&5
41463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41464   (exit $ac_status); } &&
41465          { ac_try='test -z "$ac_c_werror_flag"
41466                          || test ! -s conftest.err'
41467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41468   (eval $ac_try) 2>&5
41469   ac_status=$?
41470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41471   (exit $ac_status); }; } &&
41472          { ac_try='test -s conftest$ac_exeext'
41473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41474   (eval $ac_try) 2>&5
41475   ac_status=$?
41476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41477   (exit $ac_status); }; }; then
41478   ol_cv_db_db_4_dot_2=yes
41479 else
41480   echo "$as_me: failed program was:" >&5
41481 sed 's/^/| /' conftest.$ac_ext >&5
41482
41483 ol_cv_db_db_4_dot_2=no
41484 fi
41485 rm -f conftest.err conftest.$ac_objext \
41486       conftest$ac_exeext conftest.$ac_ext
41487
41488         LIBS="$ol_LIBS"
41489
41490 fi
41491 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41492 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41493
41494         if test $ol_cv_db_db_4_dot_2 = yes ; then
41495                 ol_cv_lib_db=-ldb-4.2
41496         fi
41497 fi
41498
41499 if test $ol_cv_lib_db = no ; then
41500         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41501 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41502 if test "${ol_cv_db_db_4_2+set}" = set; then
41503   echo $ECHO_N "(cached) $ECHO_C" >&6
41504 else
41505
41506         ol_DB_LIB=-ldb-4-2
41507         ol_LIBS=$LIBS
41508         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41509
41510         cat >conftest.$ac_ext <<_ACEOF
41511 /* confdefs.h.  */
41512 _ACEOF
41513 cat confdefs.h >>conftest.$ac_ext
41514 cat >>conftest.$ac_ext <<_ACEOF
41515 /* end confdefs.h.  */
41516
41517 #ifdef HAVE_DB_185_H
41518 # include <db_185.h>
41519 #else
41520 # include <db.h>
41521 #endif
41522
41523 #ifndef DB_VERSION_MAJOR
41524 # define DB_VERSION_MAJOR 1
41525 #endif
41526
41527 #ifndef NULL
41528 #define NULL ((void*)0)
41529 #endif
41530
41531 int
41532 main ()
41533 {
41534
41535 #if DB_VERSION_MAJOR > 1
41536         {
41537                 char *version;
41538                 int major, minor, patch;
41539
41540                 version = db_version( &major, &minor, &patch );
41541
41542                 if( major != DB_VERSION_MAJOR ||
41543                         minor < DB_VERSION_MINOR )
41544                 {
41545                         printf("Berkeley DB version mismatch\n"
41546                                 "\theader: %s\n\tlibrary: %s\n",
41547                                 DB_VERSION_STRING, version);
41548                         return 1;
41549                 }
41550         }
41551 #endif
41552
41553 #if DB_VERSION_MAJOR > 2
41554         db_env_create( NULL, 0 );
41555 #elif DB_VERSION_MAJOR > 1
41556         db_appexit( NULL );
41557 #else
41558         (void) dbopen( NULL, 0, 0, 0, NULL);
41559 #endif
41560
41561   ;
41562   return 0;
41563 }
41564 _ACEOF
41565 rm -f conftest.$ac_objext conftest$ac_exeext
41566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41567   (eval $ac_link) 2>conftest.er1
41568   ac_status=$?
41569   grep -v '^ *+' conftest.er1 >conftest.err
41570   rm -f conftest.er1
41571   cat conftest.err >&5
41572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41573   (exit $ac_status); } &&
41574          { ac_try='test -z "$ac_c_werror_flag"
41575                          || test ! -s conftest.err'
41576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41577   (eval $ac_try) 2>&5
41578   ac_status=$?
41579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41580   (exit $ac_status); }; } &&
41581          { ac_try='test -s conftest$ac_exeext'
41582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41583   (eval $ac_try) 2>&5
41584   ac_status=$?
41585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41586   (exit $ac_status); }; }; then
41587   ol_cv_db_db_4_2=yes
41588 else
41589   echo "$as_me: failed program was:" >&5
41590 sed 's/^/| /' conftest.$ac_ext >&5
41591
41592 ol_cv_db_db_4_2=no
41593 fi
41594 rm -f conftest.err conftest.$ac_objext \
41595       conftest$ac_exeext conftest.$ac_ext
41596
41597         LIBS="$ol_LIBS"
41598
41599 fi
41600 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41601 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41602
41603         if test $ol_cv_db_db_4_2 = yes ; then
41604                 ol_cv_lib_db=-ldb-4-2
41605         fi
41606 fi
41607
41608 if test $ol_cv_lib_db = no ; then
41609         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41610 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41611 if test "${ol_cv_db_db_4+set}" = set; then
41612   echo $ECHO_N "(cached) $ECHO_C" >&6
41613 else
41614
41615         ol_DB_LIB=-ldb-4
41616         ol_LIBS=$LIBS
41617         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41618
41619         cat >conftest.$ac_ext <<_ACEOF
41620 /* confdefs.h.  */
41621 _ACEOF
41622 cat confdefs.h >>conftest.$ac_ext
41623 cat >>conftest.$ac_ext <<_ACEOF
41624 /* end confdefs.h.  */
41625
41626 #ifdef HAVE_DB_185_H
41627 # include <db_185.h>
41628 #else
41629 # include <db.h>
41630 #endif
41631
41632 #ifndef DB_VERSION_MAJOR
41633 # define DB_VERSION_MAJOR 1
41634 #endif
41635
41636 #ifndef NULL
41637 #define NULL ((void*)0)
41638 #endif
41639
41640 int
41641 main ()
41642 {
41643
41644 #if DB_VERSION_MAJOR > 1
41645         {
41646                 char *version;
41647                 int major, minor, patch;
41648
41649                 version = db_version( &major, &minor, &patch );
41650
41651                 if( major != DB_VERSION_MAJOR ||
41652                         minor < DB_VERSION_MINOR )
41653                 {
41654                         printf("Berkeley DB version mismatch\n"
41655                                 "\theader: %s\n\tlibrary: %s\n",
41656                                 DB_VERSION_STRING, version);
41657                         return 1;
41658                 }
41659         }
41660 #endif
41661
41662 #if DB_VERSION_MAJOR > 2
41663         db_env_create( NULL, 0 );
41664 #elif DB_VERSION_MAJOR > 1
41665         db_appexit( NULL );
41666 #else
41667         (void) dbopen( NULL, 0, 0, 0, NULL);
41668 #endif
41669
41670   ;
41671   return 0;
41672 }
41673 _ACEOF
41674 rm -f conftest.$ac_objext conftest$ac_exeext
41675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41676   (eval $ac_link) 2>conftest.er1
41677   ac_status=$?
41678   grep -v '^ *+' conftest.er1 >conftest.err
41679   rm -f conftest.er1
41680   cat conftest.err >&5
41681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41682   (exit $ac_status); } &&
41683          { ac_try='test -z "$ac_c_werror_flag"
41684                          || test ! -s conftest.err'
41685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41686   (eval $ac_try) 2>&5
41687   ac_status=$?
41688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41689   (exit $ac_status); }; } &&
41690          { ac_try='test -s conftest$ac_exeext'
41691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41692   (eval $ac_try) 2>&5
41693   ac_status=$?
41694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41695   (exit $ac_status); }; }; then
41696   ol_cv_db_db_4=yes
41697 else
41698   echo "$as_me: failed program was:" >&5
41699 sed 's/^/| /' conftest.$ac_ext >&5
41700
41701 ol_cv_db_db_4=no
41702 fi
41703 rm -f conftest.err conftest.$ac_objext \
41704       conftest$ac_exeext conftest.$ac_ext
41705
41706         LIBS="$ol_LIBS"
41707
41708 fi
41709 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41710 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41711
41712         if test $ol_cv_db_db_4 = yes ; then
41713                 ol_cv_lib_db=-ldb-4
41714         fi
41715 fi
41716
41717 if test $ol_cv_lib_db = no ; then
41718         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41719 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41720 if test "${ol_cv_db_db4+set}" = set; then
41721   echo $ECHO_N "(cached) $ECHO_C" >&6
41722 else
41723
41724         ol_DB_LIB=-ldb4
41725         ol_LIBS=$LIBS
41726         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41727
41728         cat >conftest.$ac_ext <<_ACEOF
41729 /* confdefs.h.  */
41730 _ACEOF
41731 cat confdefs.h >>conftest.$ac_ext
41732 cat >>conftest.$ac_ext <<_ACEOF
41733 /* end confdefs.h.  */
41734
41735 #ifdef HAVE_DB_185_H
41736 # include <db_185.h>
41737 #else
41738 # include <db.h>
41739 #endif
41740
41741 #ifndef DB_VERSION_MAJOR
41742 # define DB_VERSION_MAJOR 1
41743 #endif
41744
41745 #ifndef NULL
41746 #define NULL ((void*)0)
41747 #endif
41748
41749 int
41750 main ()
41751 {
41752
41753 #if DB_VERSION_MAJOR > 1
41754         {
41755                 char *version;
41756                 int major, minor, patch;
41757
41758                 version = db_version( &major, &minor, &patch );
41759
41760                 if( major != DB_VERSION_MAJOR ||
41761                         minor < DB_VERSION_MINOR )
41762                 {
41763                         printf("Berkeley DB version mismatch\n"
41764                                 "\theader: %s\n\tlibrary: %s\n",
41765                                 DB_VERSION_STRING, version);
41766                         return 1;
41767                 }
41768         }
41769 #endif
41770
41771 #if DB_VERSION_MAJOR > 2
41772         db_env_create( NULL, 0 );
41773 #elif DB_VERSION_MAJOR > 1
41774         db_appexit( NULL );
41775 #else
41776         (void) dbopen( NULL, 0, 0, 0, NULL);
41777 #endif
41778
41779   ;
41780   return 0;
41781 }
41782 _ACEOF
41783 rm -f conftest.$ac_objext conftest$ac_exeext
41784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41785   (eval $ac_link) 2>conftest.er1
41786   ac_status=$?
41787   grep -v '^ *+' conftest.er1 >conftest.err
41788   rm -f conftest.er1
41789   cat conftest.err >&5
41790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41791   (exit $ac_status); } &&
41792          { ac_try='test -z "$ac_c_werror_flag"
41793                          || test ! -s conftest.err'
41794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41795   (eval $ac_try) 2>&5
41796   ac_status=$?
41797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41798   (exit $ac_status); }; } &&
41799          { ac_try='test -s conftest$ac_exeext'
41800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41801   (eval $ac_try) 2>&5
41802   ac_status=$?
41803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41804   (exit $ac_status); }; }; then
41805   ol_cv_db_db4=yes
41806 else
41807   echo "$as_me: failed program was:" >&5
41808 sed 's/^/| /' conftest.$ac_ext >&5
41809
41810 ol_cv_db_db4=no
41811 fi
41812 rm -f conftest.err conftest.$ac_objext \
41813       conftest$ac_exeext conftest.$ac_ext
41814
41815         LIBS="$ol_LIBS"
41816
41817 fi
41818 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41819 echo "${ECHO_T}$ol_cv_db_db4" >&6
41820
41821         if test $ol_cv_db_db4 = yes ; then
41822                 ol_cv_lib_db=-ldb4
41823         fi
41824 fi
41825
41826 if test $ol_cv_lib_db = no ; then
41827         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41828 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41829 if test "${ol_cv_db_db+set}" = set; then
41830   echo $ECHO_N "(cached) $ECHO_C" >&6
41831 else
41832
41833         ol_DB_LIB=-ldb
41834         ol_LIBS=$LIBS
41835         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41836
41837         cat >conftest.$ac_ext <<_ACEOF
41838 /* confdefs.h.  */
41839 _ACEOF
41840 cat confdefs.h >>conftest.$ac_ext
41841 cat >>conftest.$ac_ext <<_ACEOF
41842 /* end confdefs.h.  */
41843
41844 #ifdef HAVE_DB_185_H
41845 # include <db_185.h>
41846 #else
41847 # include <db.h>
41848 #endif
41849
41850 #ifndef DB_VERSION_MAJOR
41851 # define DB_VERSION_MAJOR 1
41852 #endif
41853
41854 #ifndef NULL
41855 #define NULL ((void*)0)
41856 #endif
41857
41858 int
41859 main ()
41860 {
41861
41862 #if DB_VERSION_MAJOR > 1
41863         {
41864                 char *version;
41865                 int major, minor, patch;
41866
41867                 version = db_version( &major, &minor, &patch );
41868
41869                 if( major != DB_VERSION_MAJOR ||
41870                         minor < DB_VERSION_MINOR )
41871                 {
41872                         printf("Berkeley DB version mismatch\n"
41873                                 "\theader: %s\n\tlibrary: %s\n",
41874                                 DB_VERSION_STRING, version);
41875                         return 1;
41876                 }
41877         }
41878 #endif
41879
41880 #if DB_VERSION_MAJOR > 2
41881         db_env_create( NULL, 0 );
41882 #elif DB_VERSION_MAJOR > 1
41883         db_appexit( NULL );
41884 #else
41885         (void) dbopen( NULL, 0, 0, 0, NULL);
41886 #endif
41887
41888   ;
41889   return 0;
41890 }
41891 _ACEOF
41892 rm -f conftest.$ac_objext conftest$ac_exeext
41893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41894   (eval $ac_link) 2>conftest.er1
41895   ac_status=$?
41896   grep -v '^ *+' conftest.er1 >conftest.err
41897   rm -f conftest.er1
41898   cat conftest.err >&5
41899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41900   (exit $ac_status); } &&
41901          { ac_try='test -z "$ac_c_werror_flag"
41902                          || test ! -s conftest.err'
41903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41904   (eval $ac_try) 2>&5
41905   ac_status=$?
41906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41907   (exit $ac_status); }; } &&
41908          { ac_try='test -s conftest$ac_exeext'
41909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41910   (eval $ac_try) 2>&5
41911   ac_status=$?
41912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41913   (exit $ac_status); }; }; then
41914   ol_cv_db_db=yes
41915 else
41916   echo "$as_me: failed program was:" >&5
41917 sed 's/^/| /' conftest.$ac_ext >&5
41918
41919 ol_cv_db_db=no
41920 fi
41921 rm -f conftest.err conftest.$ac_objext \
41922       conftest$ac_exeext conftest.$ac_ext
41923
41924         LIBS="$ol_LIBS"
41925
41926 fi
41927 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
41928 echo "${ECHO_T}$ol_cv_db_db" >&6
41929
41930         if test $ol_cv_db_db = yes ; then
41931                 ol_cv_lib_db=-ldb
41932         fi
41933 fi
41934
41935 if test $ol_cv_lib_db = no ; then
41936         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
41937 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
41938 if test "${ol_cv_db_db41+set}" = set; then
41939   echo $ECHO_N "(cached) $ECHO_C" >&6
41940 else
41941
41942         ol_DB_LIB=-ldb41
41943         ol_LIBS=$LIBS
41944         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41945
41946         cat >conftest.$ac_ext <<_ACEOF
41947 /* confdefs.h.  */
41948 _ACEOF
41949 cat confdefs.h >>conftest.$ac_ext
41950 cat >>conftest.$ac_ext <<_ACEOF
41951 /* end confdefs.h.  */
41952
41953 #ifdef HAVE_DB_185_H
41954 # include <db_185.h>
41955 #else
41956 # include <db.h>
41957 #endif
41958
41959 #ifndef DB_VERSION_MAJOR
41960 # define DB_VERSION_MAJOR 1
41961 #endif
41962
41963 #ifndef NULL
41964 #define NULL ((void*)0)
41965 #endif
41966
41967 int
41968 main ()
41969 {
41970
41971 #if DB_VERSION_MAJOR > 1
41972         {
41973                 char *version;
41974                 int major, minor, patch;
41975
41976                 version = db_version( &major, &minor, &patch );
41977
41978                 if( major != DB_VERSION_MAJOR ||
41979                         minor < DB_VERSION_MINOR )
41980                 {
41981                         printf("Berkeley DB version mismatch\n"
41982                                 "\theader: %s\n\tlibrary: %s\n",
41983                                 DB_VERSION_STRING, version);
41984                         return 1;
41985                 }
41986         }
41987 #endif
41988
41989 #if DB_VERSION_MAJOR > 2
41990         db_env_create( NULL, 0 );
41991 #elif DB_VERSION_MAJOR > 1
41992         db_appexit( NULL );
41993 #else
41994         (void) dbopen( NULL, 0, 0, 0, NULL);
41995 #endif
41996
41997   ;
41998   return 0;
41999 }
42000 _ACEOF
42001 rm -f conftest.$ac_objext conftest$ac_exeext
42002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42003   (eval $ac_link) 2>conftest.er1
42004   ac_status=$?
42005   grep -v '^ *+' conftest.er1 >conftest.err
42006   rm -f conftest.er1
42007   cat conftest.err >&5
42008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42009   (exit $ac_status); } &&
42010          { ac_try='test -z "$ac_c_werror_flag"
42011                          || test ! -s conftest.err'
42012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42013   (eval $ac_try) 2>&5
42014   ac_status=$?
42015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42016   (exit $ac_status); }; } &&
42017          { ac_try='test -s conftest$ac_exeext'
42018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42019   (eval $ac_try) 2>&5
42020   ac_status=$?
42021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42022   (exit $ac_status); }; }; then
42023   ol_cv_db_db41=yes
42024 else
42025   echo "$as_me: failed program was:" >&5
42026 sed 's/^/| /' conftest.$ac_ext >&5
42027
42028 ol_cv_db_db41=no
42029 fi
42030 rm -f conftest.err conftest.$ac_objext \
42031       conftest$ac_exeext conftest.$ac_ext
42032
42033         LIBS="$ol_LIBS"
42034
42035 fi
42036 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
42037 echo "${ECHO_T}$ol_cv_db_db41" >&6
42038
42039         if test $ol_cv_db_db41 = yes ; then
42040                 ol_cv_lib_db=-ldb41
42041         fi
42042 fi
42043
42044 if test $ol_cv_lib_db = no ; then
42045         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
42046 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
42047 if test "${ol_cv_db_db_41+set}" = set; then
42048   echo $ECHO_N "(cached) $ECHO_C" >&6
42049 else
42050
42051         ol_DB_LIB=-ldb-41
42052         ol_LIBS=$LIBS
42053         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42054
42055         cat >conftest.$ac_ext <<_ACEOF
42056 /* confdefs.h.  */
42057 _ACEOF
42058 cat confdefs.h >>conftest.$ac_ext
42059 cat >>conftest.$ac_ext <<_ACEOF
42060 /* end confdefs.h.  */
42061
42062 #ifdef HAVE_DB_185_H
42063 # include <db_185.h>
42064 #else
42065 # include <db.h>
42066 #endif
42067
42068 #ifndef DB_VERSION_MAJOR
42069 # define DB_VERSION_MAJOR 1
42070 #endif
42071
42072 #ifndef NULL
42073 #define NULL ((void*)0)
42074 #endif
42075
42076 int
42077 main ()
42078 {
42079
42080 #if DB_VERSION_MAJOR > 1
42081         {
42082                 char *version;
42083                 int major, minor, patch;
42084
42085                 version = db_version( &major, &minor, &patch );
42086
42087                 if( major != DB_VERSION_MAJOR ||
42088                         minor < DB_VERSION_MINOR )
42089                 {
42090                         printf("Berkeley DB version mismatch\n"
42091                                 "\theader: %s\n\tlibrary: %s\n",
42092                                 DB_VERSION_STRING, version);
42093                         return 1;
42094                 }
42095         }
42096 #endif
42097
42098 #if DB_VERSION_MAJOR > 2
42099         db_env_create( NULL, 0 );
42100 #elif DB_VERSION_MAJOR > 1
42101         db_appexit( NULL );
42102 #else
42103         (void) dbopen( NULL, 0, 0, 0, NULL);
42104 #endif
42105
42106   ;
42107   return 0;
42108 }
42109 _ACEOF
42110 rm -f conftest.$ac_objext conftest$ac_exeext
42111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42112   (eval $ac_link) 2>conftest.er1
42113   ac_status=$?
42114   grep -v '^ *+' conftest.er1 >conftest.err
42115   rm -f conftest.er1
42116   cat conftest.err >&5
42117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42118   (exit $ac_status); } &&
42119          { ac_try='test -z "$ac_c_werror_flag"
42120                          || test ! -s conftest.err'
42121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42122   (eval $ac_try) 2>&5
42123   ac_status=$?
42124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42125   (exit $ac_status); }; } &&
42126          { ac_try='test -s conftest$ac_exeext'
42127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42128   (eval $ac_try) 2>&5
42129   ac_status=$?
42130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42131   (exit $ac_status); }; }; then
42132   ol_cv_db_db_41=yes
42133 else
42134   echo "$as_me: failed program was:" >&5
42135 sed 's/^/| /' conftest.$ac_ext >&5
42136
42137 ol_cv_db_db_41=no
42138 fi
42139 rm -f conftest.err conftest.$ac_objext \
42140       conftest$ac_exeext conftest.$ac_ext
42141
42142         LIBS="$ol_LIBS"
42143
42144 fi
42145 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
42146 echo "${ECHO_T}$ol_cv_db_db_41" >&6
42147
42148         if test $ol_cv_db_db_41 = yes ; then
42149                 ol_cv_lib_db=-ldb-41
42150         fi
42151 fi
42152
42153 if test $ol_cv_lib_db = no ; then
42154         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
42155 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
42156 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
42157   echo $ECHO_N "(cached) $ECHO_C" >&6
42158 else
42159
42160         ol_DB_LIB=-ldb-4.1
42161         ol_LIBS=$LIBS
42162         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42163
42164         cat >conftest.$ac_ext <<_ACEOF
42165 /* confdefs.h.  */
42166 _ACEOF
42167 cat confdefs.h >>conftest.$ac_ext
42168 cat >>conftest.$ac_ext <<_ACEOF
42169 /* end confdefs.h.  */
42170
42171 #ifdef HAVE_DB_185_H
42172 # include <db_185.h>
42173 #else
42174 # include <db.h>
42175 #endif
42176
42177 #ifndef DB_VERSION_MAJOR
42178 # define DB_VERSION_MAJOR 1
42179 #endif
42180
42181 #ifndef NULL
42182 #define NULL ((void*)0)
42183 #endif
42184
42185 int
42186 main ()
42187 {
42188
42189 #if DB_VERSION_MAJOR > 1
42190         {
42191                 char *version;
42192                 int major, minor, patch;
42193
42194                 version = db_version( &major, &minor, &patch );
42195
42196                 if( major != DB_VERSION_MAJOR ||
42197                         minor < DB_VERSION_MINOR )
42198                 {
42199                         printf("Berkeley DB version mismatch\n"
42200                                 "\theader: %s\n\tlibrary: %s\n",
42201                                 DB_VERSION_STRING, version);
42202                         return 1;
42203                 }
42204         }
42205 #endif
42206
42207 #if DB_VERSION_MAJOR > 2
42208         db_env_create( NULL, 0 );
42209 #elif DB_VERSION_MAJOR > 1
42210         db_appexit( NULL );
42211 #else
42212         (void) dbopen( NULL, 0, 0, 0, NULL);
42213 #endif
42214
42215   ;
42216   return 0;
42217 }
42218 _ACEOF
42219 rm -f conftest.$ac_objext conftest$ac_exeext
42220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42221   (eval $ac_link) 2>conftest.er1
42222   ac_status=$?
42223   grep -v '^ *+' conftest.er1 >conftest.err
42224   rm -f conftest.er1
42225   cat conftest.err >&5
42226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42227   (exit $ac_status); } &&
42228          { ac_try='test -z "$ac_c_werror_flag"
42229                          || test ! -s conftest.err'
42230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42231   (eval $ac_try) 2>&5
42232   ac_status=$?
42233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42234   (exit $ac_status); }; } &&
42235          { ac_try='test -s conftest$ac_exeext'
42236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42237   (eval $ac_try) 2>&5
42238   ac_status=$?
42239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42240   (exit $ac_status); }; }; then
42241   ol_cv_db_db_4_dot_1=yes
42242 else
42243   echo "$as_me: failed program was:" >&5
42244 sed 's/^/| /' conftest.$ac_ext >&5
42245
42246 ol_cv_db_db_4_dot_1=no
42247 fi
42248 rm -f conftest.err conftest.$ac_objext \
42249       conftest$ac_exeext conftest.$ac_ext
42250
42251         LIBS="$ol_LIBS"
42252
42253 fi
42254 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42255 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42256
42257         if test $ol_cv_db_db_4_dot_1 = yes ; then
42258                 ol_cv_lib_db=-ldb-4.1
42259         fi
42260 fi
42261
42262 if test $ol_cv_lib_db = no ; then
42263         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42264 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42265 if test "${ol_cv_db_db_4_1+set}" = set; then
42266   echo $ECHO_N "(cached) $ECHO_C" >&6
42267 else
42268
42269         ol_DB_LIB=-ldb-4-1
42270         ol_LIBS=$LIBS
42271         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42272
42273         cat >conftest.$ac_ext <<_ACEOF
42274 /* confdefs.h.  */
42275 _ACEOF
42276 cat confdefs.h >>conftest.$ac_ext
42277 cat >>conftest.$ac_ext <<_ACEOF
42278 /* end confdefs.h.  */
42279
42280 #ifdef HAVE_DB_185_H
42281 # include <db_185.h>
42282 #else
42283 # include <db.h>
42284 #endif
42285
42286 #ifndef DB_VERSION_MAJOR
42287 # define DB_VERSION_MAJOR 1
42288 #endif
42289
42290 #ifndef NULL
42291 #define NULL ((void*)0)
42292 #endif
42293
42294 int
42295 main ()
42296 {
42297
42298 #if DB_VERSION_MAJOR > 1
42299         {
42300                 char *version;
42301                 int major, minor, patch;
42302
42303                 version = db_version( &major, &minor, &patch );
42304
42305                 if( major != DB_VERSION_MAJOR ||
42306                         minor < DB_VERSION_MINOR )
42307                 {
42308                         printf("Berkeley DB version mismatch\n"
42309                                 "\theader: %s\n\tlibrary: %s\n",
42310                                 DB_VERSION_STRING, version);
42311                         return 1;
42312                 }
42313         }
42314 #endif
42315
42316 #if DB_VERSION_MAJOR > 2
42317         db_env_create( NULL, 0 );
42318 #elif DB_VERSION_MAJOR > 1
42319         db_appexit( NULL );
42320 #else
42321         (void) dbopen( NULL, 0, 0, 0, NULL);
42322 #endif
42323
42324   ;
42325   return 0;
42326 }
42327 _ACEOF
42328 rm -f conftest.$ac_objext conftest$ac_exeext
42329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42330   (eval $ac_link) 2>conftest.er1
42331   ac_status=$?
42332   grep -v '^ *+' conftest.er1 >conftest.err
42333   rm -f conftest.er1
42334   cat conftest.err >&5
42335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42336   (exit $ac_status); } &&
42337          { ac_try='test -z "$ac_c_werror_flag"
42338                          || test ! -s conftest.err'
42339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42340   (eval $ac_try) 2>&5
42341   ac_status=$?
42342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42343   (exit $ac_status); }; } &&
42344          { ac_try='test -s conftest$ac_exeext'
42345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42346   (eval $ac_try) 2>&5
42347   ac_status=$?
42348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42349   (exit $ac_status); }; }; then
42350   ol_cv_db_db_4_1=yes
42351 else
42352   echo "$as_me: failed program was:" >&5
42353 sed 's/^/| /' conftest.$ac_ext >&5
42354
42355 ol_cv_db_db_4_1=no
42356 fi
42357 rm -f conftest.err conftest.$ac_objext \
42358       conftest$ac_exeext conftest.$ac_ext
42359
42360         LIBS="$ol_LIBS"
42361
42362 fi
42363 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42364 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42365
42366         if test $ol_cv_db_db_4_1 = yes ; then
42367                 ol_cv_lib_db=-ldb-4-1
42368         fi
42369 fi
42370
42371 if test $ol_cv_lib_db = no ; then
42372         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42373 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42374 if test "${ol_cv_db_db3+set}" = set; then
42375   echo $ECHO_N "(cached) $ECHO_C" >&6
42376 else
42377
42378         ol_DB_LIB=-ldb3
42379         ol_LIBS=$LIBS
42380         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42381
42382         cat >conftest.$ac_ext <<_ACEOF
42383 /* confdefs.h.  */
42384 _ACEOF
42385 cat confdefs.h >>conftest.$ac_ext
42386 cat >>conftest.$ac_ext <<_ACEOF
42387 /* end confdefs.h.  */
42388
42389 #ifdef HAVE_DB_185_H
42390 # include <db_185.h>
42391 #else
42392 # include <db.h>
42393 #endif
42394
42395 #ifndef DB_VERSION_MAJOR
42396 # define DB_VERSION_MAJOR 1
42397 #endif
42398
42399 #ifndef NULL
42400 #define NULL ((void*)0)
42401 #endif
42402
42403 int
42404 main ()
42405 {
42406
42407 #if DB_VERSION_MAJOR > 1
42408         {
42409                 char *version;
42410                 int major, minor, patch;
42411
42412                 version = db_version( &major, &minor, &patch );
42413
42414                 if( major != DB_VERSION_MAJOR ||
42415                         minor < DB_VERSION_MINOR )
42416                 {
42417                         printf("Berkeley DB version mismatch\n"
42418                                 "\theader: %s\n\tlibrary: %s\n",
42419                                 DB_VERSION_STRING, version);
42420                         return 1;
42421                 }
42422         }
42423 #endif
42424
42425 #if DB_VERSION_MAJOR > 2
42426         db_env_create( NULL, 0 );
42427 #elif DB_VERSION_MAJOR > 1
42428         db_appexit( NULL );
42429 #else
42430         (void) dbopen( NULL, 0, 0, 0, NULL);
42431 #endif
42432
42433   ;
42434   return 0;
42435 }
42436 _ACEOF
42437 rm -f conftest.$ac_objext conftest$ac_exeext
42438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42439   (eval $ac_link) 2>conftest.er1
42440   ac_status=$?
42441   grep -v '^ *+' conftest.er1 >conftest.err
42442   rm -f conftest.er1
42443   cat conftest.err >&5
42444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42445   (exit $ac_status); } &&
42446          { ac_try='test -z "$ac_c_werror_flag"
42447                          || test ! -s conftest.err'
42448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42449   (eval $ac_try) 2>&5
42450   ac_status=$?
42451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42452   (exit $ac_status); }; } &&
42453          { ac_try='test -s conftest$ac_exeext'
42454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42455   (eval $ac_try) 2>&5
42456   ac_status=$?
42457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42458   (exit $ac_status); }; }; then
42459   ol_cv_db_db3=yes
42460 else
42461   echo "$as_me: failed program was:" >&5
42462 sed 's/^/| /' conftest.$ac_ext >&5
42463
42464 ol_cv_db_db3=no
42465 fi
42466 rm -f conftest.err conftest.$ac_objext \
42467       conftest$ac_exeext conftest.$ac_ext
42468
42469         LIBS="$ol_LIBS"
42470
42471 fi
42472 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42473 echo "${ECHO_T}$ol_cv_db_db3" >&6
42474
42475         if test $ol_cv_db_db3 = yes ; then
42476                 ol_cv_lib_db=-ldb3
42477         fi
42478 fi
42479
42480 if test $ol_cv_lib_db = no ; then
42481         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42482 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42483 if test "${ol_cv_db_db_3+set}" = set; then
42484   echo $ECHO_N "(cached) $ECHO_C" >&6
42485 else
42486
42487         ol_DB_LIB=-ldb-3
42488         ol_LIBS=$LIBS
42489         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42490
42491         cat >conftest.$ac_ext <<_ACEOF
42492 /* confdefs.h.  */
42493 _ACEOF
42494 cat confdefs.h >>conftest.$ac_ext
42495 cat >>conftest.$ac_ext <<_ACEOF
42496 /* end confdefs.h.  */
42497
42498 #ifdef HAVE_DB_185_H
42499 # include <db_185.h>
42500 #else
42501 # include <db.h>
42502 #endif
42503
42504 #ifndef DB_VERSION_MAJOR
42505 # define DB_VERSION_MAJOR 1
42506 #endif
42507
42508 #ifndef NULL
42509 #define NULL ((void*)0)
42510 #endif
42511
42512 int
42513 main ()
42514 {
42515
42516 #if DB_VERSION_MAJOR > 1
42517         {
42518                 char *version;
42519                 int major, minor, patch;
42520
42521                 version = db_version( &major, &minor, &patch );
42522
42523                 if( major != DB_VERSION_MAJOR ||
42524                         minor < DB_VERSION_MINOR )
42525                 {
42526                         printf("Berkeley DB version mismatch\n"
42527                                 "\theader: %s\n\tlibrary: %s\n",
42528                                 DB_VERSION_STRING, version);
42529                         return 1;
42530                 }
42531         }
42532 #endif
42533
42534 #if DB_VERSION_MAJOR > 2
42535         db_env_create( NULL, 0 );
42536 #elif DB_VERSION_MAJOR > 1
42537         db_appexit( NULL );
42538 #else
42539         (void) dbopen( NULL, 0, 0, 0, NULL);
42540 #endif
42541
42542   ;
42543   return 0;
42544 }
42545 _ACEOF
42546 rm -f conftest.$ac_objext conftest$ac_exeext
42547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42548   (eval $ac_link) 2>conftest.er1
42549   ac_status=$?
42550   grep -v '^ *+' conftest.er1 >conftest.err
42551   rm -f conftest.er1
42552   cat conftest.err >&5
42553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42554   (exit $ac_status); } &&
42555          { ac_try='test -z "$ac_c_werror_flag"
42556                          || test ! -s conftest.err'
42557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42558   (eval $ac_try) 2>&5
42559   ac_status=$?
42560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42561   (exit $ac_status); }; } &&
42562          { ac_try='test -s conftest$ac_exeext'
42563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42564   (eval $ac_try) 2>&5
42565   ac_status=$?
42566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42567   (exit $ac_status); }; }; then
42568   ol_cv_db_db_3=yes
42569 else
42570   echo "$as_me: failed program was:" >&5
42571 sed 's/^/| /' conftest.$ac_ext >&5
42572
42573 ol_cv_db_db_3=no
42574 fi
42575 rm -f conftest.err conftest.$ac_objext \
42576       conftest$ac_exeext conftest.$ac_ext
42577
42578         LIBS="$ol_LIBS"
42579
42580 fi
42581 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42582 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42583
42584         if test $ol_cv_db_db_3 = yes ; then
42585                 ol_cv_lib_db=-ldb-3
42586         fi
42587 fi
42588
42589 if test $ol_cv_lib_db = no ; then
42590         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42591 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42592 if test "${ol_cv_db_db2+set}" = set; then
42593   echo $ECHO_N "(cached) $ECHO_C" >&6
42594 else
42595
42596         ol_DB_LIB=-ldb2
42597         ol_LIBS=$LIBS
42598         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42599
42600         cat >conftest.$ac_ext <<_ACEOF
42601 /* confdefs.h.  */
42602 _ACEOF
42603 cat confdefs.h >>conftest.$ac_ext
42604 cat >>conftest.$ac_ext <<_ACEOF
42605 /* end confdefs.h.  */
42606
42607 #ifdef HAVE_DB_185_H
42608 # include <db_185.h>
42609 #else
42610 # include <db.h>
42611 #endif
42612
42613 #ifndef DB_VERSION_MAJOR
42614 # define DB_VERSION_MAJOR 1
42615 #endif
42616
42617 #ifndef NULL
42618 #define NULL ((void*)0)
42619 #endif
42620
42621 int
42622 main ()
42623 {
42624
42625 #if DB_VERSION_MAJOR > 1
42626         {
42627                 char *version;
42628                 int major, minor, patch;
42629
42630                 version = db_version( &major, &minor, &patch );
42631
42632                 if( major != DB_VERSION_MAJOR ||
42633                         minor < DB_VERSION_MINOR )
42634                 {
42635                         printf("Berkeley DB version mismatch\n"
42636                                 "\theader: %s\n\tlibrary: %s\n",
42637                                 DB_VERSION_STRING, version);
42638                         return 1;
42639                 }
42640         }
42641 #endif
42642
42643 #if DB_VERSION_MAJOR > 2
42644         db_env_create( NULL, 0 );
42645 #elif DB_VERSION_MAJOR > 1
42646         db_appexit( NULL );
42647 #else
42648         (void) dbopen( NULL, 0, 0, 0, NULL);
42649 #endif
42650
42651   ;
42652   return 0;
42653 }
42654 _ACEOF
42655 rm -f conftest.$ac_objext conftest$ac_exeext
42656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42657   (eval $ac_link) 2>conftest.er1
42658   ac_status=$?
42659   grep -v '^ *+' conftest.er1 >conftest.err
42660   rm -f conftest.er1
42661   cat conftest.err >&5
42662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42663   (exit $ac_status); } &&
42664          { ac_try='test -z "$ac_c_werror_flag"
42665                          || test ! -s conftest.err'
42666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42667   (eval $ac_try) 2>&5
42668   ac_status=$?
42669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42670   (exit $ac_status); }; } &&
42671          { ac_try='test -s conftest$ac_exeext'
42672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42673   (eval $ac_try) 2>&5
42674   ac_status=$?
42675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42676   (exit $ac_status); }; }; then
42677   ol_cv_db_db2=yes
42678 else
42679   echo "$as_me: failed program was:" >&5
42680 sed 's/^/| /' conftest.$ac_ext >&5
42681
42682 ol_cv_db_db2=no
42683 fi
42684 rm -f conftest.err conftest.$ac_objext \
42685       conftest$ac_exeext conftest.$ac_ext
42686
42687         LIBS="$ol_LIBS"
42688
42689 fi
42690 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42691 echo "${ECHO_T}$ol_cv_db_db2" >&6
42692
42693         if test $ol_cv_db_db2 = yes ; then
42694                 ol_cv_lib_db=-ldb2
42695         fi
42696 fi
42697
42698 if test $ol_cv_lib_db = no ; then
42699         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42700 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42701 if test "${ol_cv_db_db_2+set}" = set; then
42702   echo $ECHO_N "(cached) $ECHO_C" >&6
42703 else
42704
42705         ol_DB_LIB=-ldb-2
42706         ol_LIBS=$LIBS
42707         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42708
42709         cat >conftest.$ac_ext <<_ACEOF
42710 /* confdefs.h.  */
42711 _ACEOF
42712 cat confdefs.h >>conftest.$ac_ext
42713 cat >>conftest.$ac_ext <<_ACEOF
42714 /* end confdefs.h.  */
42715
42716 #ifdef HAVE_DB_185_H
42717 # include <db_185.h>
42718 #else
42719 # include <db.h>
42720 #endif
42721
42722 #ifndef DB_VERSION_MAJOR
42723 # define DB_VERSION_MAJOR 1
42724 #endif
42725
42726 #ifndef NULL
42727 #define NULL ((void*)0)
42728 #endif
42729
42730 int
42731 main ()
42732 {
42733
42734 #if DB_VERSION_MAJOR > 1
42735         {
42736                 char *version;
42737                 int major, minor, patch;
42738
42739                 version = db_version( &major, &minor, &patch );
42740
42741                 if( major != DB_VERSION_MAJOR ||
42742                         minor < DB_VERSION_MINOR )
42743                 {
42744                         printf("Berkeley DB version mismatch\n"
42745                                 "\theader: %s\n\tlibrary: %s\n",
42746                                 DB_VERSION_STRING, version);
42747                         return 1;
42748                 }
42749         }
42750 #endif
42751
42752 #if DB_VERSION_MAJOR > 2
42753         db_env_create( NULL, 0 );
42754 #elif DB_VERSION_MAJOR > 1
42755         db_appexit( NULL );
42756 #else
42757         (void) dbopen( NULL, 0, 0, 0, NULL);
42758 #endif
42759
42760   ;
42761   return 0;
42762 }
42763 _ACEOF
42764 rm -f conftest.$ac_objext conftest$ac_exeext
42765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42766   (eval $ac_link) 2>conftest.er1
42767   ac_status=$?
42768   grep -v '^ *+' conftest.er1 >conftest.err
42769   rm -f conftest.er1
42770   cat conftest.err >&5
42771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42772   (exit $ac_status); } &&
42773          { ac_try='test -z "$ac_c_werror_flag"
42774                          || test ! -s conftest.err'
42775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42776   (eval $ac_try) 2>&5
42777   ac_status=$?
42778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42779   (exit $ac_status); }; } &&
42780          { ac_try='test -s conftest$ac_exeext'
42781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42782   (eval $ac_try) 2>&5
42783   ac_status=$?
42784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42785   (exit $ac_status); }; }; then
42786   ol_cv_db_db_2=yes
42787 else
42788   echo "$as_me: failed program was:" >&5
42789 sed 's/^/| /' conftest.$ac_ext >&5
42790
42791 ol_cv_db_db_2=no
42792 fi
42793 rm -f conftest.err conftest.$ac_objext \
42794       conftest$ac_exeext conftest.$ac_ext
42795
42796         LIBS="$ol_LIBS"
42797
42798 fi
42799 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42800 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42801
42802         if test $ol_cv_db_db_2 = yes ; then
42803                 ol_cv_lib_db=-ldb-2
42804         fi
42805 fi
42806
42807 if test $ol_cv_lib_db = no ; then
42808         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42809 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42810 if test "${ol_cv_db_db1+set}" = set; then
42811   echo $ECHO_N "(cached) $ECHO_C" >&6
42812 else
42813
42814         ol_DB_LIB=-ldb1
42815         ol_LIBS=$LIBS
42816         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42817
42818         cat >conftest.$ac_ext <<_ACEOF
42819 /* confdefs.h.  */
42820 _ACEOF
42821 cat confdefs.h >>conftest.$ac_ext
42822 cat >>conftest.$ac_ext <<_ACEOF
42823 /* end confdefs.h.  */
42824
42825 #ifdef HAVE_DB_185_H
42826 # include <db_185.h>
42827 #else
42828 # include <db.h>
42829 #endif
42830
42831 #ifndef DB_VERSION_MAJOR
42832 # define DB_VERSION_MAJOR 1
42833 #endif
42834
42835 #ifndef NULL
42836 #define NULL ((void*)0)
42837 #endif
42838
42839 int
42840 main ()
42841 {
42842
42843 #if DB_VERSION_MAJOR > 1
42844         {
42845                 char *version;
42846                 int major, minor, patch;
42847
42848                 version = db_version( &major, &minor, &patch );
42849
42850                 if( major != DB_VERSION_MAJOR ||
42851                         minor < DB_VERSION_MINOR )
42852                 {
42853                         printf("Berkeley DB version mismatch\n"
42854                                 "\theader: %s\n\tlibrary: %s\n",
42855                                 DB_VERSION_STRING, version);
42856                         return 1;
42857                 }
42858         }
42859 #endif
42860
42861 #if DB_VERSION_MAJOR > 2
42862         db_env_create( NULL, 0 );
42863 #elif DB_VERSION_MAJOR > 1
42864         db_appexit( NULL );
42865 #else
42866         (void) dbopen( NULL, 0, 0, 0, NULL);
42867 #endif
42868
42869   ;
42870   return 0;
42871 }
42872 _ACEOF
42873 rm -f conftest.$ac_objext conftest$ac_exeext
42874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42875   (eval $ac_link) 2>conftest.er1
42876   ac_status=$?
42877   grep -v '^ *+' conftest.er1 >conftest.err
42878   rm -f conftest.er1
42879   cat conftest.err >&5
42880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42881   (exit $ac_status); } &&
42882          { ac_try='test -z "$ac_c_werror_flag"
42883                          || test ! -s conftest.err'
42884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42885   (eval $ac_try) 2>&5
42886   ac_status=$?
42887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42888   (exit $ac_status); }; } &&
42889          { ac_try='test -s conftest$ac_exeext'
42890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42891   (eval $ac_try) 2>&5
42892   ac_status=$?
42893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42894   (exit $ac_status); }; }; then
42895   ol_cv_db_db1=yes
42896 else
42897   echo "$as_me: failed program was:" >&5
42898 sed 's/^/| /' conftest.$ac_ext >&5
42899
42900 ol_cv_db_db1=no
42901 fi
42902 rm -f conftest.err conftest.$ac_objext \
42903       conftest$ac_exeext conftest.$ac_ext
42904
42905         LIBS="$ol_LIBS"
42906
42907 fi
42908 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
42909 echo "${ECHO_T}$ol_cv_db_db1" >&6
42910
42911         if test $ol_cv_db_db1 = yes ; then
42912                 ol_cv_lib_db=-ldb1
42913         fi
42914 fi
42915
42916 if test $ol_cv_lib_db = no ; then
42917         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
42918 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
42919 if test "${ol_cv_db_db_1+set}" = set; then
42920   echo $ECHO_N "(cached) $ECHO_C" >&6
42921 else
42922
42923         ol_DB_LIB=-ldb-1
42924         ol_LIBS=$LIBS
42925         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42926
42927         cat >conftest.$ac_ext <<_ACEOF
42928 /* confdefs.h.  */
42929 _ACEOF
42930 cat confdefs.h >>conftest.$ac_ext
42931 cat >>conftest.$ac_ext <<_ACEOF
42932 /* end confdefs.h.  */
42933
42934 #ifdef HAVE_DB_185_H
42935 # include <db_185.h>
42936 #else
42937 # include <db.h>
42938 #endif
42939
42940 #ifndef DB_VERSION_MAJOR
42941 # define DB_VERSION_MAJOR 1
42942 #endif
42943
42944 #ifndef NULL
42945 #define NULL ((void*)0)
42946 #endif
42947
42948 int
42949 main ()
42950 {
42951
42952 #if DB_VERSION_MAJOR > 1
42953         {
42954                 char *version;
42955                 int major, minor, patch;
42956
42957                 version = db_version( &major, &minor, &patch );
42958
42959                 if( major != DB_VERSION_MAJOR ||
42960                         minor < DB_VERSION_MINOR )
42961                 {
42962                         printf("Berkeley DB version mismatch\n"
42963                                 "\theader: %s\n\tlibrary: %s\n",
42964                                 DB_VERSION_STRING, version);
42965                         return 1;
42966                 }
42967         }
42968 #endif
42969
42970 #if DB_VERSION_MAJOR > 2
42971         db_env_create( NULL, 0 );
42972 #elif DB_VERSION_MAJOR > 1
42973         db_appexit( NULL );
42974 #else
42975         (void) dbopen( NULL, 0, 0, 0, NULL);
42976 #endif
42977
42978   ;
42979   return 0;
42980 }
42981 _ACEOF
42982 rm -f conftest.$ac_objext conftest$ac_exeext
42983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42984   (eval $ac_link) 2>conftest.er1
42985   ac_status=$?
42986   grep -v '^ *+' conftest.er1 >conftest.err
42987   rm -f conftest.er1
42988   cat conftest.err >&5
42989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42990   (exit $ac_status); } &&
42991          { ac_try='test -z "$ac_c_werror_flag"
42992                          || test ! -s conftest.err'
42993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42994   (eval $ac_try) 2>&5
42995   ac_status=$?
42996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42997   (exit $ac_status); }; } &&
42998          { ac_try='test -s conftest$ac_exeext'
42999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43000   (eval $ac_try) 2>&5
43001   ac_status=$?
43002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43003   (exit $ac_status); }; }; then
43004   ol_cv_db_db_1=yes
43005 else
43006   echo "$as_me: failed program was:" >&5
43007 sed 's/^/| /' conftest.$ac_ext >&5
43008
43009 ol_cv_db_db_1=no
43010 fi
43011 rm -f conftest.err conftest.$ac_objext \
43012       conftest$ac_exeext conftest.$ac_ext
43013
43014         LIBS="$ol_LIBS"
43015
43016 fi
43017 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
43018 echo "${ECHO_T}$ol_cv_db_db_1" >&6
43019
43020         if test $ol_cv_db_db_1 = yes ; then
43021                 ol_cv_lib_db=-ldb-1
43022         fi
43023 fi
43024
43025
43026         if test "$ol_cv_lib_db" != no ; then
43027                 ol_cv_berkeley_db=yes
43028                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
43029 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
43030 if test "${ol_cv_berkeley_db_version+set}" = set; then
43031   echo $ECHO_N "(cached) $ECHO_C" >&6
43032 else
43033
43034         ol_LIBS="$LIBS"
43035         LIBS="$LTHREAD_LIBS $LIBS"
43036         if test $ol_cv_lib_db != yes ; then
43037                 LIBS="$ol_cv_lib_db $LIBS"
43038         fi
43039
43040         if test "$cross_compiling" = yes; then
43041   ol_cv_berkeley_db_version=cross
43042 else
43043   cat >conftest.$ac_ext <<_ACEOF
43044 /* confdefs.h.  */
43045 _ACEOF
43046 cat confdefs.h >>conftest.$ac_ext
43047 cat >>conftest.$ac_ext <<_ACEOF
43048 /* end confdefs.h.  */
43049
43050 #ifdef HAVE_DB_185_H
43051         choke me;
43052 #else
43053 #include <db.h>
43054 #endif
43055 #ifndef DB_VERSION_MAJOR
43056 # define DB_VERSION_MAJOR 1
43057 #endif
43058 #ifndef NULL
43059 #define NULL ((void *)0)
43060 #endif
43061 main()
43062 {
43063 #if DB_VERSION_MAJOR > 1
43064         char *version;
43065         int major, minor, patch;
43066
43067         version = db_version( &major, &minor, &patch );
43068
43069         if( major != DB_VERSION_MAJOR ||
43070                 minor != DB_VERSION_MINOR ||
43071                 patch != DB_VERSION_PATCH )
43072         {
43073                 printf("Berkeley DB version mismatch\n"
43074                         "\theader: %s\n\tlibrary: %s\n",
43075                         DB_VERSION_STRING, version);
43076                 return 1;
43077         }
43078 #endif
43079
43080         return 0;
43081 }
43082 _ACEOF
43083 rm -f conftest$ac_exeext
43084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43085   (eval $ac_link) 2>&5
43086   ac_status=$?
43087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43088   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43090   (eval $ac_try) 2>&5
43091   ac_status=$?
43092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43093   (exit $ac_status); }; }; then
43094   ol_cv_berkeley_db_version=yes
43095 else
43096   echo "$as_me: program exited with status $ac_status" >&5
43097 echo "$as_me: failed program was:" >&5
43098 sed 's/^/| /' conftest.$ac_ext >&5
43099
43100 ( exit $ac_status )
43101 ol_cv_berkeley_db_version=no
43102 fi
43103 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43104 fi
43105
43106         LIBS="$ol_LIBS"
43107
43108 fi
43109 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
43110 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
43111
43112         if test $ol_cv_berkeley_db_version = no ; then
43113                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
43114 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
43115    { (exit 1); exit 1; }; }
43116         fi
43117
43118                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
43119 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
43120 if test "${ol_cv_berkeley_db_thread+set}" = set; then
43121   echo $ECHO_N "(cached) $ECHO_C" >&6
43122 else
43123
43124         ol_LIBS="$LIBS"
43125         LIBS="$LTHREAD_LIBS $LIBS"
43126         if test $ol_cv_lib_db != yes ; then
43127                 LIBS="$ol_cv_lib_db $LIBS"
43128         fi
43129
43130         if test "$cross_compiling" = yes; then
43131   ol_cv_berkeley_db_thread=cross
43132 else
43133   cat >conftest.$ac_ext <<_ACEOF
43134 /* confdefs.h.  */
43135 _ACEOF
43136 cat confdefs.h >>conftest.$ac_ext
43137 cat >>conftest.$ac_ext <<_ACEOF
43138 /* end confdefs.h.  */
43139
43140 #ifdef HAVE_DB_185_H
43141         choke me;
43142 #else
43143 #include <db.h>
43144 #endif
43145 #ifndef NULL
43146 #define NULL ((void *)0)
43147 #endif
43148 main()
43149 {
43150         int rc;
43151         u_int32_t flags = DB_CREATE |
43152 #ifdef DB_PRIVATE
43153                 DB_PRIVATE |
43154 #endif
43155                 DB_THREAD;
43156
43157 #if DB_VERSION_MAJOR > 2
43158         DB_ENV *env = NULL;
43159
43160         rc = db_env_create( &env, 0 );
43161
43162         flags |= DB_INIT_MPOOL;
43163 #ifdef DB_MPOOL_PRIVATE
43164         flags |= DB_MPOOL_PRIVATE;
43165 #endif
43166
43167         if( rc ) {
43168                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43169                 return rc;
43170         }
43171
43172 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
43173         rc = env->open( env, NULL, flags, 0 );
43174 #else
43175         rc = env->open( env, NULL, NULL, flags, 0 );
43176 #endif
43177
43178         if ( rc == 0 ) {
43179                 rc = env->close( env, 0 );
43180         }
43181
43182         if( rc ) {
43183                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43184                 return rc;
43185         }
43186
43187 #else
43188         DB_ENV env;
43189         memset( &env, '\0', sizeof(env) );
43190
43191         rc = db_appinit( NULL, NULL, &env, flags );
43192
43193         if( rc == 0 ) {
43194                 db_appexit( &env );
43195         }
43196
43197         unlink("__db_mpool.share");
43198         unlink("__db_lock.share");
43199 #endif
43200
43201         return rc;
43202 }
43203 _ACEOF
43204 rm -f conftest$ac_exeext
43205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43206   (eval $ac_link) 2>&5
43207   ac_status=$?
43208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43209   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43211   (eval $ac_try) 2>&5
43212   ac_status=$?
43213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43214   (exit $ac_status); }; }; then
43215   ol_cv_berkeley_db_thread=yes
43216 else
43217   echo "$as_me: program exited with status $ac_status" >&5
43218 echo "$as_me: failed program was:" >&5
43219 sed 's/^/| /' conftest.$ac_ext >&5
43220
43221 ( exit $ac_status )
43222 ol_cv_berkeley_db_thread=no
43223 fi
43224 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43225 fi
43226
43227         LIBS="$ol_LIBS"
43228
43229 fi
43230 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43231 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43232
43233         if test $ol_cv_berkeley_db_thread != no ; then
43234
43235 cat >>confdefs.h <<\_ACEOF
43236 #define HAVE_BERKELEY_DB_THREAD 1
43237 _ACEOF
43238
43239         fi
43240
43241         fi
43242 fi
43243
43244         fi
43245
43246         if test $ol_cv_berkeley_db != no ; then
43247
43248 cat >>confdefs.h <<\_ACEOF
43249 #define HAVE_BERKELEY_DB 1
43250 _ACEOF
43251
43252
43253                 ol_link_ldbm=berkeley
43254                 ol_with_ldbm_api=berkeley
43255
43256                 if test $ol_with_ldbm_type = hash ; then
43257
43258 cat >>confdefs.h <<\_ACEOF
43259 #define LDBM_USE_DBHASH 1
43260 _ACEOF
43261
43262                 else
43263
43264 cat >>confdefs.h <<\_ACEOF
43265 #define LDBM_USE_DBBTREE 1
43266 _ACEOF
43267
43268                 fi
43269
43270                                                 if test $ol_cv_lib_db != yes ; then
43271                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43272                 fi
43273         fi
43274 fi
43275
43276 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43277         if test $ol_link_ldbm != berkeley ; then
43278                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43279 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43280    { (exit 1); exit 1; }; }
43281         else
43282                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
43283 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
43284 if test "${ol_cv_bdb_compat+set}" = set; then
43285   echo $ECHO_N "(cached) $ECHO_C" >&6
43286 else
43287
43288         cat >conftest.$ac_ext <<_ACEOF
43289 /* confdefs.h.  */
43290 _ACEOF
43291 cat confdefs.h >>conftest.$ac_ext
43292 cat >>conftest.$ac_ext <<_ACEOF
43293 /* end confdefs.h.  */
43294
43295 #include <db.h>
43296
43297  /* this check could be improved */
43298 #ifndef DB_VERSION_MAJOR
43299 #       define DB_VERSION_MAJOR 1
43300 #endif
43301 #ifndef DB_VERSION_MINOR
43302 #       define DB_VERSION_MINOR 0
43303 #endif
43304
43305 /* require 4.2 or later */
43306 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43307         __db_version_compat
43308 #endif
43309
43310 _ACEOF
43311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43312   $EGREP "__db_version_compat" >/dev/null 2>&1; then
43313   ol_cv_bdb_compat=yes
43314 else
43315   ol_cv_bdb_compat=no
43316 fi
43317 rm -f conftest*
43318
43319 fi
43320 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43321 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43322
43323
43324                 if test $ol_cv_bdb_compat != yes ; then
43325                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43326 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43327    { (exit 1); exit 1; }; }
43328                 fi
43329         fi
43330 fi
43331
43332 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
43333         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43334 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43335         ol_with_ldbm_api=none
43336 fi
43337
43338 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
43339         echo "$as_me:$LINENO: checking for MDBM library" >&5
43340 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43341 if test "${ol_cv_lib_mdbm+set}" = set; then
43342   echo $ECHO_N "(cached) $ECHO_C" >&6
43343 else
43344         ol_LIBS="$LIBS"
43345         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43346 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43347 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43348   echo $ECHO_N "(cached) $ECHO_C" >&6
43349 else
43350   cat >conftest.$ac_ext <<_ACEOF
43351 /* confdefs.h.  */
43352 _ACEOF
43353 cat confdefs.h >>conftest.$ac_ext
43354 cat >>conftest.$ac_ext <<_ACEOF
43355 /* end confdefs.h.  */
43356 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43358 #define mdbm_set_chain innocuous_mdbm_set_chain
43359
43360 /* System header to define __stub macros and hopefully few prototypes,
43361     which can conflict with char mdbm_set_chain (); below.
43362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43363     <limits.h> exists even on freestanding compilers.  */
43364
43365 #ifdef __STDC__
43366 # include <limits.h>
43367 #else
43368 # include <assert.h>
43369 #endif
43370
43371 #undef mdbm_set_chain
43372
43373 /* Override any gcc2 internal prototype to avoid an error.  */
43374 #ifdef __cplusplus
43375 extern "C"
43376 {
43377 #endif
43378 /* We use char because int might match the return type of a gcc2
43379    builtin and then its argument prototype would still apply.  */
43380 char mdbm_set_chain ();
43381 /* The GNU C library defines this for functions which it implements
43382     to always fail with ENOSYS.  Some functions are actually named
43383     something starting with __ and the normal name is an alias.  */
43384 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43385 choke me
43386 #else
43387 char (*f) () = mdbm_set_chain;
43388 #endif
43389 #ifdef __cplusplus
43390 }
43391 #endif
43392
43393 int
43394 main ()
43395 {
43396 return f != mdbm_set_chain;
43397   ;
43398   return 0;
43399 }
43400 _ACEOF
43401 rm -f conftest.$ac_objext conftest$ac_exeext
43402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43403   (eval $ac_link) 2>conftest.er1
43404   ac_status=$?
43405   grep -v '^ *+' conftest.er1 >conftest.err
43406   rm -f conftest.er1
43407   cat conftest.err >&5
43408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43409   (exit $ac_status); } &&
43410          { ac_try='test -z "$ac_c_werror_flag"
43411                          || test ! -s conftest.err'
43412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43413   (eval $ac_try) 2>&5
43414   ac_status=$?
43415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43416   (exit $ac_status); }; } &&
43417          { ac_try='test -s conftest$ac_exeext'
43418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43419   (eval $ac_try) 2>&5
43420   ac_status=$?
43421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43422   (exit $ac_status); }; }; then
43423   ac_cv_func_mdbm_set_chain=yes
43424 else
43425   echo "$as_me: failed program was:" >&5
43426 sed 's/^/| /' conftest.$ac_ext >&5
43427
43428 ac_cv_func_mdbm_set_chain=no
43429 fi
43430 rm -f conftest.err conftest.$ac_objext \
43431       conftest$ac_exeext conftest.$ac_ext
43432 fi
43433 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43434 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43435 if test $ac_cv_func_mdbm_set_chain = yes; then
43436   ol_cv_lib_mdbm=yes
43437 else
43438
43439                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43440 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43441 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43442   echo $ECHO_N "(cached) $ECHO_C" >&6
43443 else
43444   ac_check_lib_save_LIBS=$LIBS
43445 LIBS="-lmdbm  $LIBS"
43446 cat >conftest.$ac_ext <<_ACEOF
43447 /* confdefs.h.  */
43448 _ACEOF
43449 cat confdefs.h >>conftest.$ac_ext
43450 cat >>conftest.$ac_ext <<_ACEOF
43451 /* end confdefs.h.  */
43452
43453 /* Override any gcc2 internal prototype to avoid an error.  */
43454 #ifdef __cplusplus
43455 extern "C"
43456 #endif
43457 /* We use char because int might match the return type of a gcc2
43458    builtin and then its argument prototype would still apply.  */
43459 char mdbm_set_chain ();
43460 int
43461 main ()
43462 {
43463 mdbm_set_chain ();
43464   ;
43465   return 0;
43466 }
43467 _ACEOF
43468 rm -f conftest.$ac_objext conftest$ac_exeext
43469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43470   (eval $ac_link) 2>conftest.er1
43471   ac_status=$?
43472   grep -v '^ *+' conftest.er1 >conftest.err
43473   rm -f conftest.er1
43474   cat conftest.err >&5
43475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43476   (exit $ac_status); } &&
43477          { ac_try='test -z "$ac_c_werror_flag"
43478                          || test ! -s conftest.err'
43479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43480   (eval $ac_try) 2>&5
43481   ac_status=$?
43482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43483   (exit $ac_status); }; } &&
43484          { ac_try='test -s conftest$ac_exeext'
43485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43486   (eval $ac_try) 2>&5
43487   ac_status=$?
43488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43489   (exit $ac_status); }; }; then
43490   ac_cv_lib_mdbm_mdbm_set_chain=yes
43491 else
43492   echo "$as_me: failed program was:" >&5
43493 sed 's/^/| /' conftest.$ac_ext >&5
43494
43495 ac_cv_lib_mdbm_mdbm_set_chain=no
43496 fi
43497 rm -f conftest.err conftest.$ac_objext \
43498       conftest$ac_exeext conftest.$ac_ext
43499 LIBS=$ac_check_lib_save_LIBS
43500 fi
43501 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43502 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43503 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43504   ol_cv_lib_mdbm=-lmdbm
43505 else
43506   ol_cv_lib_mdbm=no
43507 fi
43508
43509
43510 fi
43511
43512         LIBS="$ol_LIBS"
43513
43514 fi
43515 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43516 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43517
43518
43519
43520 for ac_header in mdbm.h
43521 do
43522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43524   echo "$as_me:$LINENO: checking for $ac_header" >&5
43525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43527   echo $ECHO_N "(cached) $ECHO_C" >&6
43528 fi
43529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43531 else
43532   # Is the header compilable?
43533 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43535 cat >conftest.$ac_ext <<_ACEOF
43536 /* confdefs.h.  */
43537 _ACEOF
43538 cat confdefs.h >>conftest.$ac_ext
43539 cat >>conftest.$ac_ext <<_ACEOF
43540 /* end confdefs.h.  */
43541 $ac_includes_default
43542 #include <$ac_header>
43543 _ACEOF
43544 rm -f conftest.$ac_objext
43545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43546   (eval $ac_compile) 2>conftest.er1
43547   ac_status=$?
43548   grep -v '^ *+' conftest.er1 >conftest.err
43549   rm -f conftest.er1
43550   cat conftest.err >&5
43551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43552   (exit $ac_status); } &&
43553          { ac_try='test -z "$ac_c_werror_flag"
43554                          || test ! -s conftest.err'
43555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43556   (eval $ac_try) 2>&5
43557   ac_status=$?
43558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43559   (exit $ac_status); }; } &&
43560          { ac_try='test -s conftest.$ac_objext'
43561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43562   (eval $ac_try) 2>&5
43563   ac_status=$?
43564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43565   (exit $ac_status); }; }; then
43566   ac_header_compiler=yes
43567 else
43568   echo "$as_me: failed program was:" >&5
43569 sed 's/^/| /' conftest.$ac_ext >&5
43570
43571 ac_header_compiler=no
43572 fi
43573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43575 echo "${ECHO_T}$ac_header_compiler" >&6
43576
43577 # Is the header present?
43578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43580 cat >conftest.$ac_ext <<_ACEOF
43581 /* confdefs.h.  */
43582 _ACEOF
43583 cat confdefs.h >>conftest.$ac_ext
43584 cat >>conftest.$ac_ext <<_ACEOF
43585 /* end confdefs.h.  */
43586 #include <$ac_header>
43587 _ACEOF
43588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43589   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43590   ac_status=$?
43591   grep -v '^ *+' conftest.er1 >conftest.err
43592   rm -f conftest.er1
43593   cat conftest.err >&5
43594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43595   (exit $ac_status); } >/dev/null; then
43596   if test -s conftest.err; then
43597     ac_cpp_err=$ac_c_preproc_warn_flag
43598     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43599   else
43600     ac_cpp_err=
43601   fi
43602 else
43603   ac_cpp_err=yes
43604 fi
43605 if test -z "$ac_cpp_err"; then
43606   ac_header_preproc=yes
43607 else
43608   echo "$as_me: failed program was:" >&5
43609 sed 's/^/| /' conftest.$ac_ext >&5
43610
43611   ac_header_preproc=no
43612 fi
43613 rm -f conftest.err conftest.$ac_ext
43614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43615 echo "${ECHO_T}$ac_header_preproc" >&6
43616
43617 # So?  What about this header?
43618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43619   yes:no: )
43620     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43622     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43624     ac_header_preproc=yes
43625     ;;
43626   no:yes:* )
43627     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43629     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43630 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43631     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43633     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43634 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43635     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43637     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43639     (
43640       cat <<\_ASBOX
43641 ## ------------------------------------------ ##
43642 ## Report this to the AC_PACKAGE_NAME lists.  ##
43643 ## ------------------------------------------ ##
43644 _ASBOX
43645     ) |
43646       sed "s/^/$as_me: WARNING:     /" >&2
43647     ;;
43648 esac
43649 echo "$as_me:$LINENO: checking for $ac_header" >&5
43650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43652   echo $ECHO_N "(cached) $ECHO_C" >&6
43653 else
43654   eval "$as_ac_Header=\$ac_header_preproc"
43655 fi
43656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43658
43659 fi
43660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43661   cat >>confdefs.h <<_ACEOF
43662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43663 _ACEOF
43664
43665 fi
43666
43667 done
43668
43669  echo "$as_me:$LINENO: checking for db" >&5
43670 echo $ECHO_N "checking for db... $ECHO_C" >&6
43671 if test "${ol_cv_mdbm+set}" = set; then
43672   echo $ECHO_N "(cached) $ECHO_C" >&6
43673 else
43674
43675         if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43676                 ol_cv_mdbm=no
43677         else
43678                 ol_cv_mdbm=yes
43679         fi
43680
43681 fi
43682 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43683 echo "${ECHO_T}$ol_cv_mdbm" >&6
43684  if test $ol_cv_mdbm = yes ; then
43685
43686 cat >>confdefs.h <<\_ACEOF
43687 #define HAVE_MDBM 1
43688 _ACEOF
43689
43690  fi
43691
43692
43693         if test $ol_cv_mdbm = yes ; then
43694                 ol_link_ldbm=mdbm
43695                 ol_with_ldbm_api=mdbm
43696                 if test $ol_cv_lib_mdbm != yes ; then
43697                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43698                 fi
43699         fi
43700 fi
43701
43702 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
43703         echo "$as_me:$LINENO: checking for GDBM library" >&5
43704 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43705 if test "${ol_cv_lib_gdbm+set}" = set; then
43706   echo $ECHO_N "(cached) $ECHO_C" >&6
43707 else
43708         ol_LIBS="$LIBS"
43709         echo "$as_me:$LINENO: checking for gdbm_open" >&5
43710 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43711 if test "${ac_cv_func_gdbm_open+set}" = set; then
43712   echo $ECHO_N "(cached) $ECHO_C" >&6
43713 else
43714   cat >conftest.$ac_ext <<_ACEOF
43715 /* confdefs.h.  */
43716 _ACEOF
43717 cat confdefs.h >>conftest.$ac_ext
43718 cat >>conftest.$ac_ext <<_ACEOF
43719 /* end confdefs.h.  */
43720 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43721    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43722 #define gdbm_open innocuous_gdbm_open
43723
43724 /* System header to define __stub macros and hopefully few prototypes,
43725     which can conflict with char gdbm_open (); below.
43726     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43727     <limits.h> exists even on freestanding compilers.  */
43728
43729 #ifdef __STDC__
43730 # include <limits.h>
43731 #else
43732 # include <assert.h>
43733 #endif
43734
43735 #undef gdbm_open
43736
43737 /* Override any gcc2 internal prototype to avoid an error.  */
43738 #ifdef __cplusplus
43739 extern "C"
43740 {
43741 #endif
43742 /* We use char because int might match the return type of a gcc2
43743    builtin and then its argument prototype would still apply.  */
43744 char gdbm_open ();
43745 /* The GNU C library defines this for functions which it implements
43746     to always fail with ENOSYS.  Some functions are actually named
43747     something starting with __ and the normal name is an alias.  */
43748 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43749 choke me
43750 #else
43751 char (*f) () = gdbm_open;
43752 #endif
43753 #ifdef __cplusplus
43754 }
43755 #endif
43756
43757 int
43758 main ()
43759 {
43760 return f != gdbm_open;
43761   ;
43762   return 0;
43763 }
43764 _ACEOF
43765 rm -f conftest.$ac_objext conftest$ac_exeext
43766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43767   (eval $ac_link) 2>conftest.er1
43768   ac_status=$?
43769   grep -v '^ *+' conftest.er1 >conftest.err
43770   rm -f conftest.er1
43771   cat conftest.err >&5
43772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43773   (exit $ac_status); } &&
43774          { ac_try='test -z "$ac_c_werror_flag"
43775                          || test ! -s conftest.err'
43776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43777   (eval $ac_try) 2>&5
43778   ac_status=$?
43779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43780   (exit $ac_status); }; } &&
43781          { ac_try='test -s conftest$ac_exeext'
43782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43783   (eval $ac_try) 2>&5
43784   ac_status=$?
43785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43786   (exit $ac_status); }; }; then
43787   ac_cv_func_gdbm_open=yes
43788 else
43789   echo "$as_me: failed program was:" >&5
43790 sed 's/^/| /' conftest.$ac_ext >&5
43791
43792 ac_cv_func_gdbm_open=no
43793 fi
43794 rm -f conftest.err conftest.$ac_objext \
43795       conftest$ac_exeext conftest.$ac_ext
43796 fi
43797 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43798 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43799 if test $ac_cv_func_gdbm_open = yes; then
43800   ol_cv_lib_gdbm=yes
43801 else
43802
43803                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43804 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43805 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43806   echo $ECHO_N "(cached) $ECHO_C" >&6
43807 else
43808   ac_check_lib_save_LIBS=$LIBS
43809 LIBS="-lgdbm  $LIBS"
43810 cat >conftest.$ac_ext <<_ACEOF
43811 /* confdefs.h.  */
43812 _ACEOF
43813 cat confdefs.h >>conftest.$ac_ext
43814 cat >>conftest.$ac_ext <<_ACEOF
43815 /* end confdefs.h.  */
43816
43817 /* Override any gcc2 internal prototype to avoid an error.  */
43818 #ifdef __cplusplus
43819 extern "C"
43820 #endif
43821 /* We use char because int might match the return type of a gcc2
43822    builtin and then its argument prototype would still apply.  */
43823 char gdbm_open ();
43824 int
43825 main ()
43826 {
43827 gdbm_open ();
43828   ;
43829   return 0;
43830 }
43831 _ACEOF
43832 rm -f conftest.$ac_objext conftest$ac_exeext
43833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43834   (eval $ac_link) 2>conftest.er1
43835   ac_status=$?
43836   grep -v '^ *+' conftest.er1 >conftest.err
43837   rm -f conftest.er1
43838   cat conftest.err >&5
43839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43840   (exit $ac_status); } &&
43841          { ac_try='test -z "$ac_c_werror_flag"
43842                          || test ! -s conftest.err'
43843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43844   (eval $ac_try) 2>&5
43845   ac_status=$?
43846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43847   (exit $ac_status); }; } &&
43848          { ac_try='test -s conftest$ac_exeext'
43849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43850   (eval $ac_try) 2>&5
43851   ac_status=$?
43852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43853   (exit $ac_status); }; }; then
43854   ac_cv_lib_gdbm_gdbm_open=yes
43855 else
43856   echo "$as_me: failed program was:" >&5
43857 sed 's/^/| /' conftest.$ac_ext >&5
43858
43859 ac_cv_lib_gdbm_gdbm_open=no
43860 fi
43861 rm -f conftest.err conftest.$ac_objext \
43862       conftest$ac_exeext conftest.$ac_ext
43863 LIBS=$ac_check_lib_save_LIBS
43864 fi
43865 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43866 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43867 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43868   ol_cv_lib_gdbm=-lgdbm
43869 else
43870   ol_cv_lib_gdbm=no
43871 fi
43872
43873
43874 fi
43875
43876         LIBS="$ol_LIBS"
43877
43878 fi
43879 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
43880 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
43881
43882
43883
43884 for ac_header in gdbm.h
43885 do
43886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43888   echo "$as_me:$LINENO: checking for $ac_header" >&5
43889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43891   echo $ECHO_N "(cached) $ECHO_C" >&6
43892 fi
43893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43895 else
43896   # Is the header compilable?
43897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43899 cat >conftest.$ac_ext <<_ACEOF
43900 /* confdefs.h.  */
43901 _ACEOF
43902 cat confdefs.h >>conftest.$ac_ext
43903 cat >>conftest.$ac_ext <<_ACEOF
43904 /* end confdefs.h.  */
43905 $ac_includes_default
43906 #include <$ac_header>
43907 _ACEOF
43908 rm -f conftest.$ac_objext
43909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43910   (eval $ac_compile) 2>conftest.er1
43911   ac_status=$?
43912   grep -v '^ *+' conftest.er1 >conftest.err
43913   rm -f conftest.er1
43914   cat conftest.err >&5
43915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43916   (exit $ac_status); } &&
43917          { ac_try='test -z "$ac_c_werror_flag"
43918                          || test ! -s conftest.err'
43919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43920   (eval $ac_try) 2>&5
43921   ac_status=$?
43922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43923   (exit $ac_status); }; } &&
43924          { ac_try='test -s conftest.$ac_objext'
43925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43926   (eval $ac_try) 2>&5
43927   ac_status=$?
43928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43929   (exit $ac_status); }; }; then
43930   ac_header_compiler=yes
43931 else
43932   echo "$as_me: failed program was:" >&5
43933 sed 's/^/| /' conftest.$ac_ext >&5
43934
43935 ac_header_compiler=no
43936 fi
43937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43939 echo "${ECHO_T}$ac_header_compiler" >&6
43940
43941 # Is the header present?
43942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43944 cat >conftest.$ac_ext <<_ACEOF
43945 /* confdefs.h.  */
43946 _ACEOF
43947 cat confdefs.h >>conftest.$ac_ext
43948 cat >>conftest.$ac_ext <<_ACEOF
43949 /* end confdefs.h.  */
43950 #include <$ac_header>
43951 _ACEOF
43952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43953   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43954   ac_status=$?
43955   grep -v '^ *+' conftest.er1 >conftest.err
43956   rm -f conftest.er1
43957   cat conftest.err >&5
43958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43959   (exit $ac_status); } >/dev/null; then
43960   if test -s conftest.err; then
43961     ac_cpp_err=$ac_c_preproc_warn_flag
43962     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43963   else
43964     ac_cpp_err=
43965   fi
43966 else
43967   ac_cpp_err=yes
43968 fi
43969 if test -z "$ac_cpp_err"; then
43970   ac_header_preproc=yes
43971 else
43972   echo "$as_me: failed program was:" >&5
43973 sed 's/^/| /' conftest.$ac_ext >&5
43974
43975   ac_header_preproc=no
43976 fi
43977 rm -f conftest.err conftest.$ac_ext
43978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43979 echo "${ECHO_T}$ac_header_preproc" >&6
43980
43981 # So?  What about this header?
43982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43983   yes:no: )
43984     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43986     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43988     ac_header_preproc=yes
43989     ;;
43990   no:yes:* )
43991     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43993     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43994 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43995     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43997     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43998 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44001     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44003     (
44004       cat <<\_ASBOX
44005 ## ------------------------------------------ ##
44006 ## Report this to the AC_PACKAGE_NAME lists.  ##
44007 ## ------------------------------------------ ##
44008 _ASBOX
44009     ) |
44010       sed "s/^/$as_me: WARNING:     /" >&2
44011     ;;
44012 esac
44013 echo "$as_me:$LINENO: checking for $ac_header" >&5
44014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44016   echo $ECHO_N "(cached) $ECHO_C" >&6
44017 else
44018   eval "$as_ac_Header=\$ac_header_preproc"
44019 fi
44020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44022
44023 fi
44024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44025   cat >>confdefs.h <<_ACEOF
44026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44027 _ACEOF
44028
44029 fi
44030
44031 done
44032
44033  echo "$as_me:$LINENO: checking for db" >&5
44034 echo $ECHO_N "checking for db... $ECHO_C" >&6
44035 if test "${ol_cv_gdbm+set}" = set; then
44036   echo $ECHO_N "(cached) $ECHO_C" >&6
44037 else
44038
44039         if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
44040                 ol_cv_gdbm=no
44041         else
44042                 ol_cv_gdbm=yes
44043         fi
44044
44045 fi
44046 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
44047 echo "${ECHO_T}$ol_cv_gdbm" >&6
44048  if test $ol_cv_gdbm = yes ; then
44049
44050 cat >>confdefs.h <<\_ACEOF
44051 #define HAVE_GDBM 1
44052 _ACEOF
44053
44054  fi
44055
44056
44057         if test $ol_cv_gdbm = yes ; then
44058                 ol_link_ldbm=gdbm
44059                 ol_with_ldbm_api=gdbm
44060
44061                 if test $ol_cv_lib_gdbm != yes ; then
44062                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
44063                 fi
44064         fi
44065 fi
44066
44067 if test $ol_with_ldbm_api = ndbm ; then
44068         echo "$as_me:$LINENO: checking for NDBM library" >&5
44069 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
44070 if test "${ol_cv_lib_ndbm+set}" = set; then
44071   echo $ECHO_N "(cached) $ECHO_C" >&6
44072 else
44073         ol_LIBS="$LIBS"
44074         echo "$as_me:$LINENO: checking for dbm_open" >&5
44075 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
44076 if test "${ac_cv_func_dbm_open+set}" = set; then
44077   echo $ECHO_N "(cached) $ECHO_C" >&6
44078 else
44079   cat >conftest.$ac_ext <<_ACEOF
44080 /* confdefs.h.  */
44081 _ACEOF
44082 cat confdefs.h >>conftest.$ac_ext
44083 cat >>conftest.$ac_ext <<_ACEOF
44084 /* end confdefs.h.  */
44085 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
44086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44087 #define dbm_open innocuous_dbm_open
44088
44089 /* System header to define __stub macros and hopefully few prototypes,
44090     which can conflict with char dbm_open (); below.
44091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44092     <limits.h> exists even on freestanding compilers.  */
44093
44094 #ifdef __STDC__
44095 # include <limits.h>
44096 #else
44097 # include <assert.h>
44098 #endif
44099
44100 #undef dbm_open
44101
44102 /* Override any gcc2 internal prototype to avoid an error.  */
44103 #ifdef __cplusplus
44104 extern "C"
44105 {
44106 #endif
44107 /* We use char because int might match the return type of a gcc2
44108    builtin and then its argument prototype would still apply.  */
44109 char dbm_open ();
44110 /* The GNU C library defines this for functions which it implements
44111     to always fail with ENOSYS.  Some functions are actually named
44112     something starting with __ and the normal name is an alias.  */
44113 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
44114 choke me
44115 #else
44116 char (*f) () = dbm_open;
44117 #endif
44118 #ifdef __cplusplus
44119 }
44120 #endif
44121
44122 int
44123 main ()
44124 {
44125 return f != dbm_open;
44126   ;
44127   return 0;
44128 }
44129 _ACEOF
44130 rm -f conftest.$ac_objext conftest$ac_exeext
44131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44132   (eval $ac_link) 2>conftest.er1
44133   ac_status=$?
44134   grep -v '^ *+' conftest.er1 >conftest.err
44135   rm -f conftest.er1
44136   cat conftest.err >&5
44137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44138   (exit $ac_status); } &&
44139          { ac_try='test -z "$ac_c_werror_flag"
44140                          || test ! -s conftest.err'
44141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44142   (eval $ac_try) 2>&5
44143   ac_status=$?
44144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44145   (exit $ac_status); }; } &&
44146          { ac_try='test -s conftest$ac_exeext'
44147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44148   (eval $ac_try) 2>&5
44149   ac_status=$?
44150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44151   (exit $ac_status); }; }; then
44152   ac_cv_func_dbm_open=yes
44153 else
44154   echo "$as_me: failed program was:" >&5
44155 sed 's/^/| /' conftest.$ac_ext >&5
44156
44157 ac_cv_func_dbm_open=no
44158 fi
44159 rm -f conftest.err conftest.$ac_objext \
44160       conftest$ac_exeext conftest.$ac_ext
44161 fi
44162 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
44163 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
44164 if test $ac_cv_func_dbm_open = yes; then
44165   ol_cv_lib_ndbm=yes
44166 else
44167
44168                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
44169 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
44170 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
44171   echo $ECHO_N "(cached) $ECHO_C" >&6
44172 else
44173   ac_check_lib_save_LIBS=$LIBS
44174 LIBS="-lndbm  $LIBS"
44175 cat >conftest.$ac_ext <<_ACEOF
44176 /* confdefs.h.  */
44177 _ACEOF
44178 cat confdefs.h >>conftest.$ac_ext
44179 cat >>conftest.$ac_ext <<_ACEOF
44180 /* end confdefs.h.  */
44181
44182 /* Override any gcc2 internal prototype to avoid an error.  */
44183 #ifdef __cplusplus
44184 extern "C"
44185 #endif
44186 /* We use char because int might match the return type of a gcc2
44187    builtin and then its argument prototype would still apply.  */
44188 char dbm_open ();
44189 int
44190 main ()
44191 {
44192 dbm_open ();
44193   ;
44194   return 0;
44195 }
44196 _ACEOF
44197 rm -f conftest.$ac_objext conftest$ac_exeext
44198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44199   (eval $ac_link) 2>conftest.er1
44200   ac_status=$?
44201   grep -v '^ *+' conftest.er1 >conftest.err
44202   rm -f conftest.er1
44203   cat conftest.err >&5
44204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44205   (exit $ac_status); } &&
44206          { ac_try='test -z "$ac_c_werror_flag"
44207                          || test ! -s conftest.err'
44208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44209   (eval $ac_try) 2>&5
44210   ac_status=$?
44211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44212   (exit $ac_status); }; } &&
44213          { ac_try='test -s conftest$ac_exeext'
44214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44215   (eval $ac_try) 2>&5
44216   ac_status=$?
44217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44218   (exit $ac_status); }; }; then
44219   ac_cv_lib_ndbm_dbm_open=yes
44220 else
44221   echo "$as_me: failed program was:" >&5
44222 sed 's/^/| /' conftest.$ac_ext >&5
44223
44224 ac_cv_lib_ndbm_dbm_open=no
44225 fi
44226 rm -f conftest.err conftest.$ac_objext \
44227       conftest$ac_exeext conftest.$ac_ext
44228 LIBS=$ac_check_lib_save_LIBS
44229 fi
44230 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44231 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44232 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44233   ol_cv_lib_ndbm=-lndbm
44234 else
44235
44236                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44237 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44238 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44239   echo $ECHO_N "(cached) $ECHO_C" >&6
44240 else
44241   ac_check_lib_save_LIBS=$LIBS
44242 LIBS="-ldbm  $LIBS"
44243 cat >conftest.$ac_ext <<_ACEOF
44244 /* confdefs.h.  */
44245 _ACEOF
44246 cat confdefs.h >>conftest.$ac_ext
44247 cat >>conftest.$ac_ext <<_ACEOF
44248 /* end confdefs.h.  */
44249
44250 /* Override any gcc2 internal prototype to avoid an error.  */
44251 #ifdef __cplusplus
44252 extern "C"
44253 #endif
44254 /* We use char because int might match the return type of a gcc2
44255    builtin and then its argument prototype would still apply.  */
44256 char dbm_open ();
44257 int
44258 main ()
44259 {
44260 dbm_open ();
44261   ;
44262   return 0;
44263 }
44264 _ACEOF
44265 rm -f conftest.$ac_objext conftest$ac_exeext
44266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44267   (eval $ac_link) 2>conftest.er1
44268   ac_status=$?
44269   grep -v '^ *+' conftest.er1 >conftest.err
44270   rm -f conftest.er1
44271   cat conftest.err >&5
44272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44273   (exit $ac_status); } &&
44274          { ac_try='test -z "$ac_c_werror_flag"
44275                          || test ! -s conftest.err'
44276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44277   (eval $ac_try) 2>&5
44278   ac_status=$?
44279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44280   (exit $ac_status); }; } &&
44281          { ac_try='test -s conftest$ac_exeext'
44282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44283   (eval $ac_try) 2>&5
44284   ac_status=$?
44285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44286   (exit $ac_status); }; }; then
44287   ac_cv_lib_dbm_dbm_open=yes
44288 else
44289   echo "$as_me: failed program was:" >&5
44290 sed 's/^/| /' conftest.$ac_ext >&5
44291
44292 ac_cv_lib_dbm_dbm_open=no
44293 fi
44294 rm -f conftest.err conftest.$ac_objext \
44295       conftest$ac_exeext conftest.$ac_ext
44296 LIBS=$ac_check_lib_save_LIBS
44297 fi
44298 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44299 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44300 if test $ac_cv_lib_dbm_dbm_open = yes; then
44301   ol_cv_lib_ndbm=-ldbm
44302 else
44303   ol_cv_lib_ndbm=no
44304 fi
44305
44306 fi
44307
44308
44309 fi
44310
44311         LIBS="$ol_LIBS"
44312
44313 fi
44314 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44315 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44316
44317
44318
44319 for ac_header in ndbm.h
44320 do
44321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44323   echo "$as_me:$LINENO: checking for $ac_header" >&5
44324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44326   echo $ECHO_N "(cached) $ECHO_C" >&6
44327 fi
44328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44330 else
44331   # Is the header compilable?
44332 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44334 cat >conftest.$ac_ext <<_ACEOF
44335 /* confdefs.h.  */
44336 _ACEOF
44337 cat confdefs.h >>conftest.$ac_ext
44338 cat >>conftest.$ac_ext <<_ACEOF
44339 /* end confdefs.h.  */
44340 $ac_includes_default
44341 #include <$ac_header>
44342 _ACEOF
44343 rm -f conftest.$ac_objext
44344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44345   (eval $ac_compile) 2>conftest.er1
44346   ac_status=$?
44347   grep -v '^ *+' conftest.er1 >conftest.err
44348   rm -f conftest.er1
44349   cat conftest.err >&5
44350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44351   (exit $ac_status); } &&
44352          { ac_try='test -z "$ac_c_werror_flag"
44353                          || test ! -s conftest.err'
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); }; } &&
44359          { ac_try='test -s conftest.$ac_objext'
44360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44361   (eval $ac_try) 2>&5
44362   ac_status=$?
44363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44364   (exit $ac_status); }; }; then
44365   ac_header_compiler=yes
44366 else
44367   echo "$as_me: failed program was:" >&5
44368 sed 's/^/| /' conftest.$ac_ext >&5
44369
44370 ac_header_compiler=no
44371 fi
44372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44374 echo "${ECHO_T}$ac_header_compiler" >&6
44375
44376 # Is the header present?
44377 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44379 cat >conftest.$ac_ext <<_ACEOF
44380 /* confdefs.h.  */
44381 _ACEOF
44382 cat confdefs.h >>conftest.$ac_ext
44383 cat >>conftest.$ac_ext <<_ACEOF
44384 /* end confdefs.h.  */
44385 #include <$ac_header>
44386 _ACEOF
44387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44388   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44389   ac_status=$?
44390   grep -v '^ *+' conftest.er1 >conftest.err
44391   rm -f conftest.er1
44392   cat conftest.err >&5
44393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44394   (exit $ac_status); } >/dev/null; then
44395   if test -s conftest.err; then
44396     ac_cpp_err=$ac_c_preproc_warn_flag
44397     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44398   else
44399     ac_cpp_err=
44400   fi
44401 else
44402   ac_cpp_err=yes
44403 fi
44404 if test -z "$ac_cpp_err"; then
44405   ac_header_preproc=yes
44406 else
44407   echo "$as_me: failed program was:" >&5
44408 sed 's/^/| /' conftest.$ac_ext >&5
44409
44410   ac_header_preproc=no
44411 fi
44412 rm -f conftest.err conftest.$ac_ext
44413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44414 echo "${ECHO_T}$ac_header_preproc" >&6
44415
44416 # So?  What about this header?
44417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44418   yes:no: )
44419     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44421     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44423     ac_header_preproc=yes
44424     ;;
44425   no:yes:* )
44426     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44428     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44429 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44430     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44432     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44433 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44436     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44438     (
44439       cat <<\_ASBOX
44440 ## ------------------------------------------ ##
44441 ## Report this to the AC_PACKAGE_NAME lists.  ##
44442 ## ------------------------------------------ ##
44443 _ASBOX
44444     ) |
44445       sed "s/^/$as_me: WARNING:     /" >&2
44446     ;;
44447 esac
44448 echo "$as_me:$LINENO: checking for $ac_header" >&5
44449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44451   echo $ECHO_N "(cached) $ECHO_C" >&6
44452 else
44453   eval "$as_ac_Header=\$ac_header_preproc"
44454 fi
44455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44457
44458 fi
44459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44460   cat >>confdefs.h <<_ACEOF
44461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44462 _ACEOF
44463
44464 fi
44465
44466 done
44467
44468  echo "$as_me:$LINENO: checking for db" >&5
44469 echo $ECHO_N "checking for db... $ECHO_C" >&6
44470 if test "${ol_cv_ndbm+set}" = set; then
44471   echo $ECHO_N "(cached) $ECHO_C" >&6
44472 else
44473
44474         if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44475                 ol_cv_ndbm=no
44476         else
44477                 ol_cv_ndbm=yes
44478         fi
44479
44480 fi
44481 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44482 echo "${ECHO_T}$ol_cv_ndbm" >&6
44483  if test $ol_cv_ndbm = yes ; then
44484
44485 cat >>confdefs.h <<\_ACEOF
44486 #define HAVE_NDBM 1
44487 _ACEOF
44488
44489  fi
44490
44491
44492         if test $ol_cv_ndbm = yes ; then
44493                 ol_link_ldbm=ndbm
44494                 ol_with_ldbm_api=ndbm
44495
44496                 if test $ol_cv_lib_ndbm != yes ; then
44497                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44498                 fi
44499         fi
44500 fi
44501
44502 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44503         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44504 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44505    { (exit 1); exit 1; }; }
44506 fi
44507
44508 if test $ol_enable_bdb = yes -o \
44509         $ol_enable_hdb = yes -o \
44510         $ol_enable_ldbm = yes ; then
44511         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44512 fi
44513
44514
44515 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44516         BUILD_LIBS_DYNAMIC=shared
44517
44518 cat >>confdefs.h <<\_ACEOF
44519 #define LDAP_LIBS_DYNAMIC 1
44520 _ACEOF
44521
44522         LTSTATIC=""
44523 else
44524         BUILD_LIBS_DYNAMIC=static
44525         LTSTATIC="-static"
44526 fi
44527
44528 if test $ol_enable_wrappers != no ; then
44529
44530 for ac_header in tcpd.h
44531 do
44532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44534   echo "$as_me:$LINENO: checking for $ac_header" >&5
44535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44537   echo $ECHO_N "(cached) $ECHO_C" >&6
44538 fi
44539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44541 else
44542   # Is the header compilable?
44543 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44545 cat >conftest.$ac_ext <<_ACEOF
44546 /* confdefs.h.  */
44547 _ACEOF
44548 cat confdefs.h >>conftest.$ac_ext
44549 cat >>conftest.$ac_ext <<_ACEOF
44550 /* end confdefs.h.  */
44551 $ac_includes_default
44552 #include <$ac_header>
44553 _ACEOF
44554 rm -f conftest.$ac_objext
44555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44556   (eval $ac_compile) 2>conftest.er1
44557   ac_status=$?
44558   grep -v '^ *+' conftest.er1 >conftest.err
44559   rm -f conftest.er1
44560   cat conftest.err >&5
44561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44562   (exit $ac_status); } &&
44563          { ac_try='test -z "$ac_c_werror_flag"
44564                          || test ! -s conftest.err'
44565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44566   (eval $ac_try) 2>&5
44567   ac_status=$?
44568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44569   (exit $ac_status); }; } &&
44570          { ac_try='test -s conftest.$ac_objext'
44571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44572   (eval $ac_try) 2>&5
44573   ac_status=$?
44574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44575   (exit $ac_status); }; }; then
44576   ac_header_compiler=yes
44577 else
44578   echo "$as_me: failed program was:" >&5
44579 sed 's/^/| /' conftest.$ac_ext >&5
44580
44581 ac_header_compiler=no
44582 fi
44583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44585 echo "${ECHO_T}$ac_header_compiler" >&6
44586
44587 # Is the header present?
44588 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44590 cat >conftest.$ac_ext <<_ACEOF
44591 /* confdefs.h.  */
44592 _ACEOF
44593 cat confdefs.h >>conftest.$ac_ext
44594 cat >>conftest.$ac_ext <<_ACEOF
44595 /* end confdefs.h.  */
44596 #include <$ac_header>
44597 _ACEOF
44598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44599   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44600   ac_status=$?
44601   grep -v '^ *+' conftest.er1 >conftest.err
44602   rm -f conftest.er1
44603   cat conftest.err >&5
44604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44605   (exit $ac_status); } >/dev/null; then
44606   if test -s conftest.err; then
44607     ac_cpp_err=$ac_c_preproc_warn_flag
44608     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44609   else
44610     ac_cpp_err=
44611   fi
44612 else
44613   ac_cpp_err=yes
44614 fi
44615 if test -z "$ac_cpp_err"; then
44616   ac_header_preproc=yes
44617 else
44618   echo "$as_me: failed program was:" >&5
44619 sed 's/^/| /' conftest.$ac_ext >&5
44620
44621   ac_header_preproc=no
44622 fi
44623 rm -f conftest.err conftest.$ac_ext
44624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44625 echo "${ECHO_T}$ac_header_preproc" >&6
44626
44627 # So?  What about this header?
44628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44629   yes:no: )
44630     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44634     ac_header_preproc=yes
44635     ;;
44636   no:yes:* )
44637     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44639     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44640 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44641     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44643     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44644 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44647     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44649     (
44650       cat <<\_ASBOX
44651 ## ------------------------------------------ ##
44652 ## Report this to the AC_PACKAGE_NAME lists.  ##
44653 ## ------------------------------------------ ##
44654 _ASBOX
44655     ) |
44656       sed "s/^/$as_me: WARNING:     /" >&2
44657     ;;
44658 esac
44659 echo "$as_me:$LINENO: checking for $ac_header" >&5
44660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44662   echo $ECHO_N "(cached) $ECHO_C" >&6
44663 else
44664   eval "$as_ac_Header=\$ac_header_preproc"
44665 fi
44666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44668
44669 fi
44670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44671   cat >>confdefs.h <<_ACEOF
44672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44673 _ACEOF
44674
44675                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44676 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44677                 save_LIBS="$LIBS"
44678                 LIBS="$LIBS -lwrap"
44679                 cat >conftest.$ac_ext <<_ACEOF
44680 /* confdefs.h.  */
44681 _ACEOF
44682 cat confdefs.h >>conftest.$ac_ext
44683 cat >>conftest.$ac_ext <<_ACEOF
44684 /* end confdefs.h.  */
44685
44686 #include <tcpd.h>
44687 int allow_severity = 0;
44688 int deny_severity  = 0;
44689
44690 struct request_info *req;
44691
44692 int
44693 main ()
44694 {
44695
44696 hosts_access(req)
44697
44698   ;
44699   return 0;
44700 }
44701 _ACEOF
44702 rm -f conftest.$ac_objext conftest$ac_exeext
44703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44704   (eval $ac_link) 2>conftest.er1
44705   ac_status=$?
44706   grep -v '^ *+' conftest.er1 >conftest.err
44707   rm -f conftest.er1
44708   cat conftest.err >&5
44709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44710   (exit $ac_status); } &&
44711          { ac_try='test -z "$ac_c_werror_flag"
44712                          || test ! -s conftest.err'
44713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44714   (eval $ac_try) 2>&5
44715   ac_status=$?
44716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44717   (exit $ac_status); }; } &&
44718          { ac_try='test -s conftest$ac_exeext'
44719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44720   (eval $ac_try) 2>&5
44721   ac_status=$?
44722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44723   (exit $ac_status); }; }; then
44724   echo "$as_me:$LINENO: result: -lwrap" >&5
44725 echo "${ECHO_T}-lwrap" >&6
44726                 have_wrappers=yes
44727                 LIBS="$save_LIBS"
44728 else
44729   echo "$as_me: failed program was:" >&5
44730 sed 's/^/| /' conftest.$ac_ext >&5
44731
44732
44733                                 LIBS="$LIBS -lnsl"
44734                 cat >conftest.$ac_ext <<_ACEOF
44735 /* confdefs.h.  */
44736 _ACEOF
44737 cat confdefs.h >>conftest.$ac_ext
44738 cat >>conftest.$ac_ext <<_ACEOF
44739 /* end confdefs.h.  */
44740
44741 #include <tcpd.h>
44742 int allow_severity = 0;
44743 int deny_severity  = 0;
44744
44745 struct request_info *req;
44746
44747 int
44748 main ()
44749 {
44750
44751 hosts_access(req)
44752
44753   ;
44754   return 0;
44755 }
44756 _ACEOF
44757 rm -f conftest.$ac_objext conftest$ac_exeext
44758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44759   (eval $ac_link) 2>conftest.er1
44760   ac_status=$?
44761   grep -v '^ *+' conftest.er1 >conftest.err
44762   rm -f conftest.er1
44763   cat conftest.err >&5
44764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44765   (exit $ac_status); } &&
44766          { ac_try='test -z "$ac_c_werror_flag"
44767                          || test ! -s conftest.err'
44768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44769   (eval $ac_try) 2>&5
44770   ac_status=$?
44771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44772   (exit $ac_status); }; } &&
44773          { ac_try='test -s conftest$ac_exeext'
44774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44775   (eval $ac_try) 2>&5
44776   ac_status=$?
44777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44778   (exit $ac_status); }; }; then
44779   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44780 echo "${ECHO_T}-lwrap -lnsl" >&6
44781                 have_wrappers=yes
44782                 LIBS="$save_LIBS -lnsl"
44783 else
44784   echo "$as_me: failed program was:" >&5
44785 sed 's/^/| /' conftest.$ac_ext >&5
44786
44787
44788                 echo "$as_me:$LINENO: result: no" >&5
44789 echo "${ECHO_T}no" >&6
44790                 have_wrappers=no
44791                 LIBS=$save_LIBS
44792 fi
44793 rm -f conftest.err conftest.$ac_objext \
44794       conftest$ac_exeext conftest.$ac_ext
44795 fi
44796 rm -f conftest.err conftest.$ac_objext \
44797       conftest$ac_exeext conftest.$ac_ext
44798 else
44799   have_wrappers=no
44800 fi
44801
44802 done
44803
44804
44805         if test $have_wrappers = yes ; then
44806
44807 cat >>confdefs.h <<\_ACEOF
44808 #define HAVE_TCPD 1
44809 _ACEOF
44810
44811                 WRAP_LIBS="-lwrap"
44812         elif test $ol_enable_wrappers = yes ; then
44813                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44814 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44815    { (exit 1); exit 1; }; }
44816         else
44817                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44818 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44819                 WRAP_LIBS=""
44820         fi
44821 fi
44822
44823 if test $ol_enable_syslog != no ; then
44824         echo "$as_me:$LINENO: checking for openlog" >&5
44825 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44826 if test "${ac_cv_func_openlog+set}" = set; then
44827   echo $ECHO_N "(cached) $ECHO_C" >&6
44828 else
44829   cat >conftest.$ac_ext <<_ACEOF
44830 /* confdefs.h.  */
44831 _ACEOF
44832 cat confdefs.h >>conftest.$ac_ext
44833 cat >>conftest.$ac_ext <<_ACEOF
44834 /* end confdefs.h.  */
44835 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44836    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44837 #define openlog innocuous_openlog
44838
44839 /* System header to define __stub macros and hopefully few prototypes,
44840     which can conflict with char openlog (); below.
44841     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44842     <limits.h> exists even on freestanding compilers.  */
44843
44844 #ifdef __STDC__
44845 # include <limits.h>
44846 #else
44847 # include <assert.h>
44848 #endif
44849
44850 #undef openlog
44851
44852 /* Override any gcc2 internal prototype to avoid an error.  */
44853 #ifdef __cplusplus
44854 extern "C"
44855 {
44856 #endif
44857 /* We use char because int might match the return type of a gcc2
44858    builtin and then its argument prototype would still apply.  */
44859 char openlog ();
44860 /* The GNU C library defines this for functions which it implements
44861     to always fail with ENOSYS.  Some functions are actually named
44862     something starting with __ and the normal name is an alias.  */
44863 #if defined (__stub_openlog) || defined (__stub___openlog)
44864 choke me
44865 #else
44866 char (*f) () = openlog;
44867 #endif
44868 #ifdef __cplusplus
44869 }
44870 #endif
44871
44872 int
44873 main ()
44874 {
44875 return f != openlog;
44876   ;
44877   return 0;
44878 }
44879 _ACEOF
44880 rm -f conftest.$ac_objext conftest$ac_exeext
44881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44882   (eval $ac_link) 2>conftest.er1
44883   ac_status=$?
44884   grep -v '^ *+' conftest.er1 >conftest.err
44885   rm -f conftest.er1
44886   cat conftest.err >&5
44887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44888   (exit $ac_status); } &&
44889          { ac_try='test -z "$ac_c_werror_flag"
44890                          || test ! -s conftest.err'
44891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44892   (eval $ac_try) 2>&5
44893   ac_status=$?
44894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44895   (exit $ac_status); }; } &&
44896          { ac_try='test -s conftest$ac_exeext'
44897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44898   (eval $ac_try) 2>&5
44899   ac_status=$?
44900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44901   (exit $ac_status); }; }; then
44902   ac_cv_func_openlog=yes
44903 else
44904   echo "$as_me: failed program was:" >&5
44905 sed 's/^/| /' conftest.$ac_ext >&5
44906
44907 ac_cv_func_openlog=no
44908 fi
44909 rm -f conftest.err conftest.$ac_objext \
44910       conftest$ac_exeext conftest.$ac_ext
44911 fi
44912 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
44913 echo "${ECHO_T}$ac_cv_func_openlog" >&6
44914
44915         if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
44916                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
44917 echo "$as_me: error: could not find syslog" >&2;}
44918    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
44919         fi
44920         ol_enable_syslog=$ac_cv_func_openlog
44921 fi
44922
44923 ol_link_sql=no
44924 if test $ol_enable_sql != no ; then
44925
44926
44927 for ac_header in sql.h sqlext.h
44928 do
44929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44931   echo "$as_me:$LINENO: checking for $ac_header" >&5
44932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44934   echo $ECHO_N "(cached) $ECHO_C" >&6
44935 fi
44936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44938 else
44939   # Is the header compilable?
44940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44942 cat >conftest.$ac_ext <<_ACEOF
44943 /* confdefs.h.  */
44944 _ACEOF
44945 cat confdefs.h >>conftest.$ac_ext
44946 cat >>conftest.$ac_ext <<_ACEOF
44947 /* end confdefs.h.  */
44948 $ac_includes_default
44949 #include <$ac_header>
44950 _ACEOF
44951 rm -f conftest.$ac_objext
44952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44953   (eval $ac_compile) 2>conftest.er1
44954   ac_status=$?
44955   grep -v '^ *+' conftest.er1 >conftest.err
44956   rm -f conftest.er1
44957   cat conftest.err >&5
44958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44959   (exit $ac_status); } &&
44960          { ac_try='test -z "$ac_c_werror_flag"
44961                          || test ! -s conftest.err'
44962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44963   (eval $ac_try) 2>&5
44964   ac_status=$?
44965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44966   (exit $ac_status); }; } &&
44967          { ac_try='test -s conftest.$ac_objext'
44968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44969   (eval $ac_try) 2>&5
44970   ac_status=$?
44971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44972   (exit $ac_status); }; }; then
44973   ac_header_compiler=yes
44974 else
44975   echo "$as_me: failed program was:" >&5
44976 sed 's/^/| /' conftest.$ac_ext >&5
44977
44978 ac_header_compiler=no
44979 fi
44980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44982 echo "${ECHO_T}$ac_header_compiler" >&6
44983
44984 # Is the header present?
44985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44987 cat >conftest.$ac_ext <<_ACEOF
44988 /* confdefs.h.  */
44989 _ACEOF
44990 cat confdefs.h >>conftest.$ac_ext
44991 cat >>conftest.$ac_ext <<_ACEOF
44992 /* end confdefs.h.  */
44993 #include <$ac_header>
44994 _ACEOF
44995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44996   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44997   ac_status=$?
44998   grep -v '^ *+' conftest.er1 >conftest.err
44999   rm -f conftest.er1
45000   cat conftest.err >&5
45001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45002   (exit $ac_status); } >/dev/null; then
45003   if test -s conftest.err; then
45004     ac_cpp_err=$ac_c_preproc_warn_flag
45005     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45006   else
45007     ac_cpp_err=
45008   fi
45009 else
45010   ac_cpp_err=yes
45011 fi
45012 if test -z "$ac_cpp_err"; then
45013   ac_header_preproc=yes
45014 else
45015   echo "$as_me: failed program was:" >&5
45016 sed 's/^/| /' conftest.$ac_ext >&5
45017
45018   ac_header_preproc=no
45019 fi
45020 rm -f conftest.err conftest.$ac_ext
45021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45022 echo "${ECHO_T}$ac_header_preproc" >&6
45023
45024 # So?  What about this header?
45025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45026   yes:no: )
45027     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45031     ac_header_preproc=yes
45032     ;;
45033   no:yes:* )
45034     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45036     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45037 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45038     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45040     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45041 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45044     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45046     (
45047       cat <<\_ASBOX
45048 ## ------------------------------------------ ##
45049 ## Report this to the AC_PACKAGE_NAME lists.  ##
45050 ## ------------------------------------------ ##
45051 _ASBOX
45052     ) |
45053       sed "s/^/$as_me: WARNING:     /" >&2
45054     ;;
45055 esac
45056 echo "$as_me:$LINENO: checking for $ac_header" >&5
45057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45059   echo $ECHO_N "(cached) $ECHO_C" >&6
45060 else
45061   eval "$as_ac_Header=\$ac_header_preproc"
45062 fi
45063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45065
45066 fi
45067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45068   cat >>confdefs.h <<_ACEOF
45069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45070 _ACEOF
45071
45072 else
45073
45074                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
45075 echo "$as_me: error: could not locate SQL headers" >&2;}
45076    { (exit 1); exit 1; }; }
45077
45078 fi
45079
45080 done
45081
45082
45083         sql_LIBS="$LIBS"
45084         LIBS="$LTHREAD_LIBS"
45085
45086         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
45087 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
45088 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
45089   echo $ECHO_N "(cached) $ECHO_C" >&6
45090 else
45091   ac_check_lib_save_LIBS=$LIBS
45092 LIBS="-liodbc  $LIBS"
45093 cat >conftest.$ac_ext <<_ACEOF
45094 /* confdefs.h.  */
45095 _ACEOF
45096 cat confdefs.h >>conftest.$ac_ext
45097 cat >>conftest.$ac_ext <<_ACEOF
45098 /* end confdefs.h.  */
45099
45100 /* Override any gcc2 internal prototype to avoid an error.  */
45101 #ifdef __cplusplus
45102 extern "C"
45103 #endif
45104 /* We use char because int might match the return type of a gcc2
45105    builtin and then its argument prototype would still apply.  */
45106 char SQLDriverConnect ();
45107 int
45108 main ()
45109 {
45110 SQLDriverConnect ();
45111   ;
45112   return 0;
45113 }
45114 _ACEOF
45115 rm -f conftest.$ac_objext conftest$ac_exeext
45116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45117   (eval $ac_link) 2>conftest.er1
45118   ac_status=$?
45119   grep -v '^ *+' conftest.er1 >conftest.err
45120   rm -f conftest.er1
45121   cat conftest.err >&5
45122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45123   (exit $ac_status); } &&
45124          { ac_try='test -z "$ac_c_werror_flag"
45125                          || test ! -s conftest.err'
45126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45127   (eval $ac_try) 2>&5
45128   ac_status=$?
45129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45130   (exit $ac_status); }; } &&
45131          { ac_try='test -s conftest$ac_exeext'
45132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45133   (eval $ac_try) 2>&5
45134   ac_status=$?
45135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45136   (exit $ac_status); }; }; then
45137   ac_cv_lib_iodbc_SQLDriverConnect=yes
45138 else
45139   echo "$as_me: failed program was:" >&5
45140 sed 's/^/| /' conftest.$ac_ext >&5
45141
45142 ac_cv_lib_iodbc_SQLDriverConnect=no
45143 fi
45144 rm -f conftest.err conftest.$ac_objext \
45145       conftest$ac_exeext conftest.$ac_ext
45146 LIBS=$ac_check_lib_save_LIBS
45147 fi
45148 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
45149 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
45150 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
45151   have_iodbc=yes
45152 else
45153   have_iodbc=no
45154 fi
45155
45156         if test $have_iodbc = yes ; then
45157                 ol_link_sql="-liodbc"
45158         else
45159                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
45160 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
45161 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
45162   echo $ECHO_N "(cached) $ECHO_C" >&6
45163 else
45164   ac_check_lib_save_LIBS=$LIBS
45165 LIBS="-lodbc  $LIBS"
45166 cat >conftest.$ac_ext <<_ACEOF
45167 /* confdefs.h.  */
45168 _ACEOF
45169 cat confdefs.h >>conftest.$ac_ext
45170 cat >>conftest.$ac_ext <<_ACEOF
45171 /* end confdefs.h.  */
45172
45173 /* Override any gcc2 internal prototype to avoid an error.  */
45174 #ifdef __cplusplus
45175 extern "C"
45176 #endif
45177 /* We use char because int might match the return type of a gcc2
45178    builtin and then its argument prototype would still apply.  */
45179 char SQLDriverConnect ();
45180 int
45181 main ()
45182 {
45183 SQLDriverConnect ();
45184   ;
45185   return 0;
45186 }
45187 _ACEOF
45188 rm -f conftest.$ac_objext conftest$ac_exeext
45189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45190   (eval $ac_link) 2>conftest.er1
45191   ac_status=$?
45192   grep -v '^ *+' conftest.er1 >conftest.err
45193   rm -f conftest.er1
45194   cat conftest.err >&5
45195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45196   (exit $ac_status); } &&
45197          { ac_try='test -z "$ac_c_werror_flag"
45198                          || test ! -s conftest.err'
45199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45200   (eval $ac_try) 2>&5
45201   ac_status=$?
45202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45203   (exit $ac_status); }; } &&
45204          { ac_try='test -s conftest$ac_exeext'
45205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45206   (eval $ac_try) 2>&5
45207   ac_status=$?
45208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45209   (exit $ac_status); }; }; then
45210   ac_cv_lib_odbc_SQLDriverConnect=yes
45211 else
45212   echo "$as_me: failed program was:" >&5
45213 sed 's/^/| /' conftest.$ac_ext >&5
45214
45215 ac_cv_lib_odbc_SQLDriverConnect=no
45216 fi
45217 rm -f conftest.err conftest.$ac_objext \
45218       conftest$ac_exeext conftest.$ac_ext
45219 LIBS=$ac_check_lib_save_LIBS
45220 fi
45221 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45222 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45223 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45224   have_odbc=yes
45225 else
45226   have_odbc=no
45227 fi
45228
45229                 if test $have_odbc = yes ; then
45230                         ol_link_sql="-lodbc"
45231                 fi
45232         fi
45233
45234         LIBS="$sql_LIBS"
45235
45236         if test $ol_link_sql != no ; then
45237                 SLAPD_SQL_LIBS="$ol_link_sql"
45238
45239         elif test $ol_enable_sql != auto ; then
45240                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45241 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45242    { (exit 1); exit 1; }; }
45243         fi
45244 fi
45245
45246 WITH_SASL=no
45247 ol_link_sasl=no
45248 ol_link_spasswd=no
45249 if test $ol_with_cyrus_sasl != no ; then
45250
45251
45252 for ac_header in sasl/sasl.h sasl.h
45253 do
45254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45256   echo "$as_me:$LINENO: checking for $ac_header" >&5
45257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45259   echo $ECHO_N "(cached) $ECHO_C" >&6
45260 fi
45261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45263 else
45264   # Is the header compilable?
45265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45267 cat >conftest.$ac_ext <<_ACEOF
45268 /* confdefs.h.  */
45269 _ACEOF
45270 cat confdefs.h >>conftest.$ac_ext
45271 cat >>conftest.$ac_ext <<_ACEOF
45272 /* end confdefs.h.  */
45273 $ac_includes_default
45274 #include <$ac_header>
45275 _ACEOF
45276 rm -f conftest.$ac_objext
45277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45278   (eval $ac_compile) 2>conftest.er1
45279   ac_status=$?
45280   grep -v '^ *+' conftest.er1 >conftest.err
45281   rm -f conftest.er1
45282   cat conftest.err >&5
45283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45284   (exit $ac_status); } &&
45285          { ac_try='test -z "$ac_c_werror_flag"
45286                          || test ! -s conftest.err'
45287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45288   (eval $ac_try) 2>&5
45289   ac_status=$?
45290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45291   (exit $ac_status); }; } &&
45292          { ac_try='test -s conftest.$ac_objext'
45293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45294   (eval $ac_try) 2>&5
45295   ac_status=$?
45296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45297   (exit $ac_status); }; }; then
45298   ac_header_compiler=yes
45299 else
45300   echo "$as_me: failed program was:" >&5
45301 sed 's/^/| /' conftest.$ac_ext >&5
45302
45303 ac_header_compiler=no
45304 fi
45305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45307 echo "${ECHO_T}$ac_header_compiler" >&6
45308
45309 # Is the header present?
45310 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45312 cat >conftest.$ac_ext <<_ACEOF
45313 /* confdefs.h.  */
45314 _ACEOF
45315 cat confdefs.h >>conftest.$ac_ext
45316 cat >>conftest.$ac_ext <<_ACEOF
45317 /* end confdefs.h.  */
45318 #include <$ac_header>
45319 _ACEOF
45320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45321   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45322   ac_status=$?
45323   grep -v '^ *+' conftest.er1 >conftest.err
45324   rm -f conftest.er1
45325   cat conftest.err >&5
45326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45327   (exit $ac_status); } >/dev/null; then
45328   if test -s conftest.err; then
45329     ac_cpp_err=$ac_c_preproc_warn_flag
45330     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45331   else
45332     ac_cpp_err=
45333   fi
45334 else
45335   ac_cpp_err=yes
45336 fi
45337 if test -z "$ac_cpp_err"; then
45338   ac_header_preproc=yes
45339 else
45340   echo "$as_me: failed program was:" >&5
45341 sed 's/^/| /' conftest.$ac_ext >&5
45342
45343   ac_header_preproc=no
45344 fi
45345 rm -f conftest.err conftest.$ac_ext
45346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45347 echo "${ECHO_T}$ac_header_preproc" >&6
45348
45349 # So?  What about this header?
45350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45351   yes:no: )
45352     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45356     ac_header_preproc=yes
45357     ;;
45358   no:yes:* )
45359     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45361     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45362 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45363     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45365     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45366 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45367     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45369     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45371     (
45372       cat <<\_ASBOX
45373 ## ------------------------------------------ ##
45374 ## Report this to the AC_PACKAGE_NAME lists.  ##
45375 ## ------------------------------------------ ##
45376 _ASBOX
45377     ) |
45378       sed "s/^/$as_me: WARNING:     /" >&2
45379     ;;
45380 esac
45381 echo "$as_me:$LINENO: checking for $ac_header" >&5
45382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45384   echo $ECHO_N "(cached) $ECHO_C" >&6
45385 else
45386   eval "$as_ac_Header=\$ac_header_preproc"
45387 fi
45388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45390
45391 fi
45392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45393   cat >>confdefs.h <<_ACEOF
45394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45395 _ACEOF
45396
45397 fi
45398
45399 done
45400
45401
45402         if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45403                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45404 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45405 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45406   echo $ECHO_N "(cached) $ECHO_C" >&6
45407 else
45408   ac_check_lib_save_LIBS=$LIBS
45409 LIBS="-lsasl2  $LIBS"
45410 cat >conftest.$ac_ext <<_ACEOF
45411 /* confdefs.h.  */
45412 _ACEOF
45413 cat confdefs.h >>conftest.$ac_ext
45414 cat >>conftest.$ac_ext <<_ACEOF
45415 /* end confdefs.h.  */
45416
45417 /* Override any gcc2 internal prototype to avoid an error.  */
45418 #ifdef __cplusplus
45419 extern "C"
45420 #endif
45421 /* We use char because int might match the return type of a gcc2
45422    builtin and then its argument prototype would still apply.  */
45423 char sasl_client_init ();
45424 int
45425 main ()
45426 {
45427 sasl_client_init ();
45428   ;
45429   return 0;
45430 }
45431 _ACEOF
45432 rm -f conftest.$ac_objext conftest$ac_exeext
45433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45434   (eval $ac_link) 2>conftest.er1
45435   ac_status=$?
45436   grep -v '^ *+' conftest.er1 >conftest.err
45437   rm -f conftest.er1
45438   cat conftest.err >&5
45439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45440   (exit $ac_status); } &&
45441          { ac_try='test -z "$ac_c_werror_flag"
45442                          || test ! -s conftest.err'
45443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45444   (eval $ac_try) 2>&5
45445   ac_status=$?
45446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45447   (exit $ac_status); }; } &&
45448          { ac_try='test -s conftest$ac_exeext'
45449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45450   (eval $ac_try) 2>&5
45451   ac_status=$?
45452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45453   (exit $ac_status); }; }; then
45454   ac_cv_lib_sasl2_sasl_client_init=yes
45455 else
45456   echo "$as_me: failed program was:" >&5
45457 sed 's/^/| /' conftest.$ac_ext >&5
45458
45459 ac_cv_lib_sasl2_sasl_client_init=no
45460 fi
45461 rm -f conftest.err conftest.$ac_objext \
45462       conftest$ac_exeext conftest.$ac_ext
45463 LIBS=$ac_check_lib_save_LIBS
45464 fi
45465 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45466 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45467 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45468   ol_link_sasl="-lsasl2"
45469 else
45470   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45471 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45472 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45473   echo $ECHO_N "(cached) $ECHO_C" >&6
45474 else
45475   ac_check_lib_save_LIBS=$LIBS
45476 LIBS="-lsasl  $LIBS"
45477 cat >conftest.$ac_ext <<_ACEOF
45478 /* confdefs.h.  */
45479 _ACEOF
45480 cat confdefs.h >>conftest.$ac_ext
45481 cat >>conftest.$ac_ext <<_ACEOF
45482 /* end confdefs.h.  */
45483
45484 /* Override any gcc2 internal prototype to avoid an error.  */
45485 #ifdef __cplusplus
45486 extern "C"
45487 #endif
45488 /* We use char because int might match the return type of a gcc2
45489    builtin and then its argument prototype would still apply.  */
45490 char sasl_client_init ();
45491 int
45492 main ()
45493 {
45494 sasl_client_init ();
45495   ;
45496   return 0;
45497 }
45498 _ACEOF
45499 rm -f conftest.$ac_objext conftest$ac_exeext
45500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45501   (eval $ac_link) 2>conftest.er1
45502   ac_status=$?
45503   grep -v '^ *+' conftest.er1 >conftest.err
45504   rm -f conftest.er1
45505   cat conftest.err >&5
45506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45507   (exit $ac_status); } &&
45508          { ac_try='test -z "$ac_c_werror_flag"
45509                          || test ! -s conftest.err'
45510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45511   (eval $ac_try) 2>&5
45512   ac_status=$?
45513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45514   (exit $ac_status); }; } &&
45515          { ac_try='test -s conftest$ac_exeext'
45516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45517   (eval $ac_try) 2>&5
45518   ac_status=$?
45519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45520   (exit $ac_status); }; }; then
45521   ac_cv_lib_sasl_sasl_client_init=yes
45522 else
45523   echo "$as_me: failed program was:" >&5
45524 sed 's/^/| /' conftest.$ac_ext >&5
45525
45526 ac_cv_lib_sasl_sasl_client_init=no
45527 fi
45528 rm -f conftest.err conftest.$ac_objext \
45529       conftest$ac_exeext conftest.$ac_ext
45530 LIBS=$ac_check_lib_save_LIBS
45531 fi
45532 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45533 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45534 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45535   ol_link_sasl="-lsasl"
45536 fi
45537
45538 fi
45539
45540         fi
45541
45542         if test $ol_link_sasl = no ; then
45543                 if test $ol_with_cyrus_sasl != auto ; then
45544                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45545 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45546    { (exit 1); exit 1; }; }
45547                 else
45548                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45549 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45550                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45551 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45552                         if test $ol_link_tls = no ; then
45553                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45554 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45555                         fi
45556                 fi
45557         else
45558                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45559 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45560 if test "${ol_cv_sasl_compat+set}" = set; then
45561   echo $ECHO_N "(cached) $ECHO_C" >&6
45562 else
45563
45564         cat >conftest.$ac_ext <<_ACEOF
45565 /* confdefs.h.  */
45566 _ACEOF
45567 cat confdefs.h >>conftest.$ac_ext
45568 cat >>conftest.$ac_ext <<_ACEOF
45569 /* end confdefs.h.  */
45570
45571 #ifdef HAVE_SASL_SASL_H
45572 #include <sasl/sasl.h>
45573 #else
45574 #include <sasl.h>
45575 #endif
45576
45577 /* Require 2.1.15+ */
45578 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
45579         char *__sasl_compat = "2.2+ or better okay (we guess)";
45580 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
45581         && SASL_VERSION_STEP >=15
45582         char *__sasl_compat = "2.1.15+ or better okay";
45583 #endif
45584
45585 _ACEOF
45586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45587   $EGREP "__sasl_compat" >/dev/null 2>&1; then
45588   ol_cv_sasl_compat=yes
45589 else
45590   ol_cv_sasl_compat=no
45591 fi
45592 rm -f conftest*
45593
45594 fi
45595 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45596 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45597
45598                 if test $ol_cv_sasl_compat = no ; then
45599                         ol_link_sasl=no
45600                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45601 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45602    { (exit 1); exit 1; }; }
45603                 fi
45604
45605
45606 cat >>confdefs.h <<\_ACEOF
45607 #define HAVE_CYRUS_SASL 1
45608 _ACEOF
45609
45610                 SASL_LIBS="$ol_link_sasl"
45611                 if test $ol_enable_spasswd != no ; then
45612                         ol_link_spasswd=yes
45613                 fi
45614
45615                 ac_save_LIBS="$LIBS"
45616                 LIBS="$LIBS $ol_link_sasl"
45617                 echo "$as_me:$LINENO: checking for sasl_version" >&5
45618 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45619 if test "${ac_cv_func_sasl_version+set}" = set; then
45620   echo $ECHO_N "(cached) $ECHO_C" >&6
45621 else
45622   cat >conftest.$ac_ext <<_ACEOF
45623 /* confdefs.h.  */
45624 _ACEOF
45625 cat confdefs.h >>conftest.$ac_ext
45626 cat >>conftest.$ac_ext <<_ACEOF
45627 /* end confdefs.h.  */
45628 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45630 #define sasl_version innocuous_sasl_version
45631
45632 /* System header to define __stub macros and hopefully few prototypes,
45633     which can conflict with char sasl_version (); below.
45634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45635     <limits.h> exists even on freestanding compilers.  */
45636
45637 #ifdef __STDC__
45638 # include <limits.h>
45639 #else
45640 # include <assert.h>
45641 #endif
45642
45643 #undef sasl_version
45644
45645 /* Override any gcc2 internal prototype to avoid an error.  */
45646 #ifdef __cplusplus
45647 extern "C"
45648 {
45649 #endif
45650 /* We use char because int might match the return type of a gcc2
45651    builtin and then its argument prototype would still apply.  */
45652 char sasl_version ();
45653 /* The GNU C library defines this for functions which it implements
45654     to always fail with ENOSYS.  Some functions are actually named
45655     something starting with __ and the normal name is an alias.  */
45656 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45657 choke me
45658 #else
45659 char (*f) () = sasl_version;
45660 #endif
45661 #ifdef __cplusplus
45662 }
45663 #endif
45664
45665 int
45666 main ()
45667 {
45668 return f != sasl_version;
45669   ;
45670   return 0;
45671 }
45672 _ACEOF
45673 rm -f conftest.$ac_objext conftest$ac_exeext
45674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45675   (eval $ac_link) 2>conftest.er1
45676   ac_status=$?
45677   grep -v '^ *+' conftest.er1 >conftest.err
45678   rm -f conftest.er1
45679   cat conftest.err >&5
45680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45681   (exit $ac_status); } &&
45682          { ac_try='test -z "$ac_c_werror_flag"
45683                          || test ! -s conftest.err'
45684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45685   (eval $ac_try) 2>&5
45686   ac_status=$?
45687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45688   (exit $ac_status); }; } &&
45689          { ac_try='test -s conftest$ac_exeext'
45690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45691   (eval $ac_try) 2>&5
45692   ac_status=$?
45693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45694   (exit $ac_status); }; }; then
45695   ac_cv_func_sasl_version=yes
45696 else
45697   echo "$as_me: failed program was:" >&5
45698 sed 's/^/| /' conftest.$ac_ext >&5
45699
45700 ac_cv_func_sasl_version=no
45701 fi
45702 rm -f conftest.err conftest.$ac_objext \
45703       conftest$ac_exeext conftest.$ac_ext
45704 fi
45705 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45706 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45707 if test $ac_cv_func_sasl_version = yes; then
45708
45709 cat >>confdefs.h <<\_ACEOF
45710 #define HAVE_SASL_VERSION 1
45711 _ACEOF
45712
45713 fi
45714
45715                 LIBS="$ac_save_LIBS"
45716
45717                 WITH_SASL=yes
45718         fi
45719
45720 else
45721         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45722 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45723         if test $ol_link_tls = no ; then
45724                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45725 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45726         fi
45727 fi
45728
45729 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45730         dev=no
45731         if test -r /dev/urandom ; then
45732                 dev="/dev/urandom";
45733         elif test -r /idev/urandom ; then
45734                 dev="/idev/urandom";
45735         elif test -r /dev/srandom ; then
45736                 dev="/dev/srandom";
45737         elif test -r /dev/random ; then
45738                 dev="/dev/random";
45739         elif test -r /idev/random ; then
45740                 dev="/idev/random";
45741         fi
45742
45743         if test $dev != no ; then
45744
45745 cat >>confdefs.h <<_ACEOF
45746 #define URANDOM_DEVICE "$dev"
45747 _ACEOF
45748
45749         fi
45750 fi
45751
45752 ol_link_fetch=no
45753 if test $ol_with_fetch != no ; then
45754         ol_LIBS=$LIBS
45755 LIBS="-lfetch -lcom_err $LIBS"
45756 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45757 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45758 if test "${ol_cv_lib_fetch+set}" = set; then
45759   echo $ECHO_N "(cached) $ECHO_C" >&6
45760 else
45761
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
45769 #include <sys/param.h>
45770 #include <stdio.h>
45771 #include <fetch.h>
45772 int
45773 main ()
45774 {
45775 struct url *u = fetchParseURL("file:///");
45776   ;
45777   return 0;
45778 }
45779 _ACEOF
45780 rm -f conftest.$ac_objext conftest$ac_exeext
45781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45782   (eval $ac_link) 2>conftest.er1
45783   ac_status=$?
45784   grep -v '^ *+' conftest.er1 >conftest.err
45785   rm -f conftest.er1
45786   cat conftest.err >&5
45787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45788   (exit $ac_status); } &&
45789          { ac_try='test -z "$ac_c_werror_flag"
45790                          || test ! -s conftest.err'
45791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45792   (eval $ac_try) 2>&5
45793   ac_status=$?
45794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45795   (exit $ac_status); }; } &&
45796          { ac_try='test -s conftest$ac_exeext'
45797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45798   (eval $ac_try) 2>&5
45799   ac_status=$?
45800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45801   (exit $ac_status); }; }; then
45802   ol_cv_lib_fetch=yes
45803 else
45804   echo "$as_me: failed program was:" >&5
45805 sed 's/^/| /' conftest.$ac_ext >&5
45806
45807 ol_cv_lib_fetch=no
45808 fi
45809 rm -f conftest.err conftest.$ac_objext \
45810       conftest$ac_exeext conftest.$ac_ext
45811 fi
45812 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45813 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45814 LIBS=$ol_LIBS
45815 if test $ol_cv_lib_fetch != no ; then
45816         ol_link_fetch="-lfetch -lcom_err"
45817
45818 cat >>confdefs.h <<\_ACEOF
45819 #define HAVE_FETCH 1
45820 _ACEOF
45821
45822 fi
45823
45824
45825         if test $ol_cv_lib_fetch != no ; then
45826                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45827                 ol_link_fetch=freebsd
45828
45829         elif test $ol_with_fetch != auto ; then
45830                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45831 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45832    { (exit 1); exit 1; }; }
45833         fi
45834 fi
45835
45836 if test $ol_enable_crypt != no ; then
45837         save_LIBS="$LIBS"
45838         LIBS="$TLS_LIBS $LIBS"
45839
45840         echo "$as_me:$LINENO: checking for crypt" >&5
45841 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45842 if test "${ac_cv_func_crypt+set}" = set; then
45843   echo $ECHO_N "(cached) $ECHO_C" >&6
45844 else
45845   cat >conftest.$ac_ext <<_ACEOF
45846 /* confdefs.h.  */
45847 _ACEOF
45848 cat confdefs.h >>conftest.$ac_ext
45849 cat >>conftest.$ac_ext <<_ACEOF
45850 /* end confdefs.h.  */
45851 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45853 #define crypt innocuous_crypt
45854
45855 /* System header to define __stub macros and hopefully few prototypes,
45856     which can conflict with char crypt (); below.
45857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45858     <limits.h> exists even on freestanding compilers.  */
45859
45860 #ifdef __STDC__
45861 # include <limits.h>
45862 #else
45863 # include <assert.h>
45864 #endif
45865
45866 #undef crypt
45867
45868 /* Override any gcc2 internal prototype to avoid an error.  */
45869 #ifdef __cplusplus
45870 extern "C"
45871 {
45872 #endif
45873 /* We use char because int might match the return type of a gcc2
45874    builtin and then its argument prototype would still apply.  */
45875 char crypt ();
45876 /* The GNU C library defines this for functions which it implements
45877     to always fail with ENOSYS.  Some functions are actually named
45878     something starting with __ and the normal name is an alias.  */
45879 #if defined (__stub_crypt) || defined (__stub___crypt)
45880 choke me
45881 #else
45882 char (*f) () = crypt;
45883 #endif
45884 #ifdef __cplusplus
45885 }
45886 #endif
45887
45888 int
45889 main ()
45890 {
45891 return f != crypt;
45892   ;
45893   return 0;
45894 }
45895 _ACEOF
45896 rm -f conftest.$ac_objext conftest$ac_exeext
45897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45898   (eval $ac_link) 2>conftest.er1
45899   ac_status=$?
45900   grep -v '^ *+' conftest.er1 >conftest.err
45901   rm -f conftest.er1
45902   cat conftest.err >&5
45903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45904   (exit $ac_status); } &&
45905          { ac_try='test -z "$ac_c_werror_flag"
45906                          || test ! -s conftest.err'
45907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45908   (eval $ac_try) 2>&5
45909   ac_status=$?
45910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45911   (exit $ac_status); }; } &&
45912          { ac_try='test -s conftest$ac_exeext'
45913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45914   (eval $ac_try) 2>&5
45915   ac_status=$?
45916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45917   (exit $ac_status); }; }; then
45918   ac_cv_func_crypt=yes
45919 else
45920   echo "$as_me: failed program was:" >&5
45921 sed 's/^/| /' conftest.$ac_ext >&5
45922
45923 ac_cv_func_crypt=no
45924 fi
45925 rm -f conftest.err conftest.$ac_objext \
45926       conftest$ac_exeext conftest.$ac_ext
45927 fi
45928 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
45929 echo "${ECHO_T}$ac_cv_func_crypt" >&6
45930 if test $ac_cv_func_crypt = yes; then
45931   have_crypt=yes
45932 else
45933
45934                 LIBS="$save_LIBS"
45935                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
45936 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
45937 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
45938   echo $ECHO_N "(cached) $ECHO_C" >&6
45939 else
45940   ac_check_lib_save_LIBS=$LIBS
45941 LIBS="-lcrypt  $LIBS"
45942 cat >conftest.$ac_ext <<_ACEOF
45943 /* confdefs.h.  */
45944 _ACEOF
45945 cat confdefs.h >>conftest.$ac_ext
45946 cat >>conftest.$ac_ext <<_ACEOF
45947 /* end confdefs.h.  */
45948
45949 /* Override any gcc2 internal prototype to avoid an error.  */
45950 #ifdef __cplusplus
45951 extern "C"
45952 #endif
45953 /* We use char because int might match the return type of a gcc2
45954    builtin and then its argument prototype would still apply.  */
45955 char crypt ();
45956 int
45957 main ()
45958 {
45959 crypt ();
45960   ;
45961   return 0;
45962 }
45963 _ACEOF
45964 rm -f conftest.$ac_objext conftest$ac_exeext
45965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45966   (eval $ac_link) 2>conftest.er1
45967   ac_status=$?
45968   grep -v '^ *+' conftest.er1 >conftest.err
45969   rm -f conftest.er1
45970   cat conftest.err >&5
45971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45972   (exit $ac_status); } &&
45973          { ac_try='test -z "$ac_c_werror_flag"
45974                          || test ! -s conftest.err'
45975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45976   (eval $ac_try) 2>&5
45977   ac_status=$?
45978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45979   (exit $ac_status); }; } &&
45980          { ac_try='test -s conftest$ac_exeext'
45981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45982   (eval $ac_try) 2>&5
45983   ac_status=$?
45984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45985   (exit $ac_status); }; }; then
45986   ac_cv_lib_crypt_crypt=yes
45987 else
45988   echo "$as_me: failed program was:" >&5
45989 sed 's/^/| /' conftest.$ac_ext >&5
45990
45991 ac_cv_lib_crypt_crypt=no
45992 fi
45993 rm -f conftest.err conftest.$ac_objext \
45994       conftest$ac_exeext conftest.$ac_ext
45995 LIBS=$ac_check_lib_save_LIBS
45996 fi
45997 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
45998 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
45999 if test $ac_cv_lib_crypt_crypt = yes; then
46000   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
46001                         have_crypt=yes
46002 else
46003   have_crypt=no
46004 fi
46005
46006 fi
46007
46008
46009         LIBS="$save_LIBS"
46010
46011         if test $have_crypt = yes ; then
46012
46013 cat >>confdefs.h <<\_ACEOF
46014 #define HAVE_CRYPT 1
46015 _ACEOF
46016
46017         else
46018                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
46019 echo "$as_me: WARNING: could not find crypt" >&2;}
46020                 if test $ol_enable_crypt = yes ; then
46021                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
46022 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
46023    { (exit 1); exit 1; }; }
46024                 fi
46025
46026                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
46027 echo "$as_me: WARNING: disabling crypt support" >&2;}
46028                 ol_enable_crypt=no
46029         fi
46030 fi
46031
46032 if test $ol_enable_proctitle != no ; then
46033         echo "$as_me:$LINENO: checking for setproctitle" >&5
46034 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
46035 if test "${ac_cv_func_setproctitle+set}" = set; then
46036   echo $ECHO_N "(cached) $ECHO_C" >&6
46037 else
46038   cat >conftest.$ac_ext <<_ACEOF
46039 /* confdefs.h.  */
46040 _ACEOF
46041 cat confdefs.h >>conftest.$ac_ext
46042 cat >>conftest.$ac_ext <<_ACEOF
46043 /* end confdefs.h.  */
46044 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
46045    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46046 #define setproctitle innocuous_setproctitle
46047
46048 /* System header to define __stub macros and hopefully few prototypes,
46049     which can conflict with char setproctitle (); below.
46050     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46051     <limits.h> exists even on freestanding compilers.  */
46052
46053 #ifdef __STDC__
46054 # include <limits.h>
46055 #else
46056 # include <assert.h>
46057 #endif
46058
46059 #undef setproctitle
46060
46061 /* Override any gcc2 internal prototype to avoid an error.  */
46062 #ifdef __cplusplus
46063 extern "C"
46064 {
46065 #endif
46066 /* We use char because int might match the return type of a gcc2
46067    builtin and then its argument prototype would still apply.  */
46068 char setproctitle ();
46069 /* The GNU C library defines this for functions which it implements
46070     to always fail with ENOSYS.  Some functions are actually named
46071     something starting with __ and the normal name is an alias.  */
46072 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
46073 choke me
46074 #else
46075 char (*f) () = setproctitle;
46076 #endif
46077 #ifdef __cplusplus
46078 }
46079 #endif
46080
46081 int
46082 main ()
46083 {
46084 return f != setproctitle;
46085   ;
46086   return 0;
46087 }
46088 _ACEOF
46089 rm -f conftest.$ac_objext conftest$ac_exeext
46090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46091   (eval $ac_link) 2>conftest.er1
46092   ac_status=$?
46093   grep -v '^ *+' conftest.er1 >conftest.err
46094   rm -f conftest.er1
46095   cat conftest.err >&5
46096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46097   (exit $ac_status); } &&
46098          { ac_try='test -z "$ac_c_werror_flag"
46099                          || test ! -s conftest.err'
46100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46101   (eval $ac_try) 2>&5
46102   ac_status=$?
46103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46104   (exit $ac_status); }; } &&
46105          { ac_try='test -s conftest$ac_exeext'
46106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46107   (eval $ac_try) 2>&5
46108   ac_status=$?
46109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46110   (exit $ac_status); }; }; then
46111   ac_cv_func_setproctitle=yes
46112 else
46113   echo "$as_me: failed program was:" >&5
46114 sed 's/^/| /' conftest.$ac_ext >&5
46115
46116 ac_cv_func_setproctitle=no
46117 fi
46118 rm -f conftest.err conftest.$ac_objext \
46119       conftest$ac_exeext conftest.$ac_ext
46120 fi
46121 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
46122 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
46123 if test $ac_cv_func_setproctitle = yes; then
46124   have_setproctitle=yes
46125 else
46126
46127                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
46128 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
46129 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
46130   echo $ECHO_N "(cached) $ECHO_C" >&6
46131 else
46132   ac_check_lib_save_LIBS=$LIBS
46133 LIBS="-lutil  $LIBS"
46134 cat >conftest.$ac_ext <<_ACEOF
46135 /* confdefs.h.  */
46136 _ACEOF
46137 cat confdefs.h >>conftest.$ac_ext
46138 cat >>conftest.$ac_ext <<_ACEOF
46139 /* end confdefs.h.  */
46140
46141 /* Override any gcc2 internal prototype to avoid an error.  */
46142 #ifdef __cplusplus
46143 extern "C"
46144 #endif
46145 /* We use char because int might match the return type of a gcc2
46146    builtin and then its argument prototype would still apply.  */
46147 char setproctitle ();
46148 int
46149 main ()
46150 {
46151 setproctitle ();
46152   ;
46153   return 0;
46154 }
46155 _ACEOF
46156 rm -f conftest.$ac_objext conftest$ac_exeext
46157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46158   (eval $ac_link) 2>conftest.er1
46159   ac_status=$?
46160   grep -v '^ *+' conftest.er1 >conftest.err
46161   rm -f conftest.er1
46162   cat conftest.err >&5
46163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46164   (exit $ac_status); } &&
46165          { ac_try='test -z "$ac_c_werror_flag"
46166                          || test ! -s conftest.err'
46167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46168   (eval $ac_try) 2>&5
46169   ac_status=$?
46170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46171   (exit $ac_status); }; } &&
46172          { ac_try='test -s conftest$ac_exeext'
46173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46174   (eval $ac_try) 2>&5
46175   ac_status=$?
46176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46177   (exit $ac_status); }; }; then
46178   ac_cv_lib_util_setproctitle=yes
46179 else
46180   echo "$as_me: failed program was:" >&5
46181 sed 's/^/| /' conftest.$ac_ext >&5
46182
46183 ac_cv_lib_util_setproctitle=no
46184 fi
46185 rm -f conftest.err conftest.$ac_objext \
46186       conftest$ac_exeext conftest.$ac_ext
46187 LIBS=$ac_check_lib_save_LIBS
46188 fi
46189 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
46190 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
46191 if test $ac_cv_lib_util_setproctitle = yes; then
46192   have_setproctitle=yes
46193                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
46194 else
46195   have_setproctitle=no
46196                         case $LIBOBJS in
46197     "setproctitle.$ac_objext"   | \
46198   *" setproctitle.$ac_objext"   | \
46199     "setproctitle.$ac_objext "* | \
46200   *" setproctitle.$ac_objext "* ) ;;
46201   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
46202 esac
46203
46204                         LIBSRCS="$LIBSRCS setproctitle.c"
46205 fi
46206
46207 fi
46208
46209
46210         if test $have_setproctitle = yes ; then
46211
46212 cat >>confdefs.h <<\_ACEOF
46213 #define HAVE_SETPROCTITLE 1
46214 _ACEOF
46215
46216         fi
46217 fi
46218
46219 if test $ol_enable_slp != no ; then
46220
46221 for ac_header in slp.h
46222 do
46223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46225   echo "$as_me:$LINENO: checking for $ac_header" >&5
46226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46228   echo $ECHO_N "(cached) $ECHO_C" >&6
46229 fi
46230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46232 else
46233   # Is the header compilable?
46234 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46236 cat >conftest.$ac_ext <<_ACEOF
46237 /* confdefs.h.  */
46238 _ACEOF
46239 cat confdefs.h >>conftest.$ac_ext
46240 cat >>conftest.$ac_ext <<_ACEOF
46241 /* end confdefs.h.  */
46242 $ac_includes_default
46243 #include <$ac_header>
46244 _ACEOF
46245 rm -f conftest.$ac_objext
46246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46247   (eval $ac_compile) 2>conftest.er1
46248   ac_status=$?
46249   grep -v '^ *+' conftest.er1 >conftest.err
46250   rm -f conftest.er1
46251   cat conftest.err >&5
46252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46253   (exit $ac_status); } &&
46254          { ac_try='test -z "$ac_c_werror_flag"
46255                          || test ! -s conftest.err'
46256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46257   (eval $ac_try) 2>&5
46258   ac_status=$?
46259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46260   (exit $ac_status); }; } &&
46261          { ac_try='test -s conftest.$ac_objext'
46262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46263   (eval $ac_try) 2>&5
46264   ac_status=$?
46265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46266   (exit $ac_status); }; }; then
46267   ac_header_compiler=yes
46268 else
46269   echo "$as_me: failed program was:" >&5
46270 sed 's/^/| /' conftest.$ac_ext >&5
46271
46272 ac_header_compiler=no
46273 fi
46274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46276 echo "${ECHO_T}$ac_header_compiler" >&6
46277
46278 # Is the header present?
46279 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46281 cat >conftest.$ac_ext <<_ACEOF
46282 /* confdefs.h.  */
46283 _ACEOF
46284 cat confdefs.h >>conftest.$ac_ext
46285 cat >>conftest.$ac_ext <<_ACEOF
46286 /* end confdefs.h.  */
46287 #include <$ac_header>
46288 _ACEOF
46289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46290   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46291   ac_status=$?
46292   grep -v '^ *+' conftest.er1 >conftest.err
46293   rm -f conftest.er1
46294   cat conftest.err >&5
46295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46296   (exit $ac_status); } >/dev/null; then
46297   if test -s conftest.err; then
46298     ac_cpp_err=$ac_c_preproc_warn_flag
46299     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46300   else
46301     ac_cpp_err=
46302   fi
46303 else
46304   ac_cpp_err=yes
46305 fi
46306 if test -z "$ac_cpp_err"; then
46307   ac_header_preproc=yes
46308 else
46309   echo "$as_me: failed program was:" >&5
46310 sed 's/^/| /' conftest.$ac_ext >&5
46311
46312   ac_header_preproc=no
46313 fi
46314 rm -f conftest.err conftest.$ac_ext
46315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46316 echo "${ECHO_T}$ac_header_preproc" >&6
46317
46318 # So?  What about this header?
46319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46320   yes:no: )
46321     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46323     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46324 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46325     ac_header_preproc=yes
46326     ;;
46327   no:yes:* )
46328     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46330     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46331 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46332     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46333 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46334     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46335 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46336     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46338     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46339 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46340     (
46341       cat <<\_ASBOX
46342 ## ------------------------------------------ ##
46343 ## Report this to the AC_PACKAGE_NAME lists.  ##
46344 ## ------------------------------------------ ##
46345 _ASBOX
46346     ) |
46347       sed "s/^/$as_me: WARNING:     /" >&2
46348     ;;
46349 esac
46350 echo "$as_me:$LINENO: checking for $ac_header" >&5
46351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46353   echo $ECHO_N "(cached) $ECHO_C" >&6
46354 else
46355   eval "$as_ac_Header=\$ac_header_preproc"
46356 fi
46357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46359
46360 fi
46361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46362   cat >>confdefs.h <<_ACEOF
46363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46364 _ACEOF
46365
46366 fi
46367
46368 done
46369
46370
46371         if test $ac_cv_header_slp_h = yes ; then
46372                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46373 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46374 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46375   echo $ECHO_N "(cached) $ECHO_C" >&6
46376 else
46377   ac_check_lib_save_LIBS=$LIBS
46378 LIBS="-lslp  $LIBS"
46379 cat >conftest.$ac_ext <<_ACEOF
46380 /* confdefs.h.  */
46381 _ACEOF
46382 cat confdefs.h >>conftest.$ac_ext
46383 cat >>conftest.$ac_ext <<_ACEOF
46384 /* end confdefs.h.  */
46385
46386 /* Override any gcc2 internal prototype to avoid an error.  */
46387 #ifdef __cplusplus
46388 extern "C"
46389 #endif
46390 /* We use char because int might match the return type of a gcc2
46391    builtin and then its argument prototype would still apply.  */
46392 char SLPOpen ();
46393 int
46394 main ()
46395 {
46396 SLPOpen ();
46397   ;
46398   return 0;
46399 }
46400 _ACEOF
46401 rm -f conftest.$ac_objext conftest$ac_exeext
46402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46403   (eval $ac_link) 2>conftest.er1
46404   ac_status=$?
46405   grep -v '^ *+' conftest.er1 >conftest.err
46406   rm -f conftest.er1
46407   cat conftest.err >&5
46408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46409   (exit $ac_status); } &&
46410          { ac_try='test -z "$ac_c_werror_flag"
46411                          || test ! -s conftest.err'
46412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46413   (eval $ac_try) 2>&5
46414   ac_status=$?
46415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46416   (exit $ac_status); }; } &&
46417          { ac_try='test -s conftest$ac_exeext'
46418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46419   (eval $ac_try) 2>&5
46420   ac_status=$?
46421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46422   (exit $ac_status); }; }; then
46423   ac_cv_lib_slp_SLPOpen=yes
46424 else
46425   echo "$as_me: failed program was:" >&5
46426 sed 's/^/| /' conftest.$ac_ext >&5
46427
46428 ac_cv_lib_slp_SLPOpen=no
46429 fi
46430 rm -f conftest.err conftest.$ac_objext \
46431       conftest$ac_exeext conftest.$ac_ext
46432 LIBS=$ac_check_lib_save_LIBS
46433 fi
46434 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46435 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46436 if test $ac_cv_lib_slp_SLPOpen = yes; then
46437   have_slp=yes
46438 else
46439   have_slp=no
46440 fi
46441
46442                 if test $have_slp = yes ; then
46443
46444 cat >>confdefs.h <<\_ACEOF
46445 #define HAVE_SLP 1
46446 _ACEOF
46447
46448                         SLAPD_SLP_LIBS=-lslp
46449                 fi
46450
46451         elif test $ol_enable_slp = yes ; then
46452                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46453 echo "$as_me: error: SLP not found" >&2;}
46454    { (exit 1); exit 1; }; }
46455         fi
46456 fi
46457
46458 if test "$ol_with_multiple_precision" != "no" ; then
46459         ol_have_bignum=no
46460         ol_have_gmp=no
46461
46462
46463
46464 for ac_header in openssl/bn.h bn.h
46465 do
46466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46468   echo "$as_me:$LINENO: checking for $ac_header" >&5
46469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46471   echo $ECHO_N "(cached) $ECHO_C" >&6
46472 fi
46473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46475 else
46476   # Is the header compilable?
46477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46479 cat >conftest.$ac_ext <<_ACEOF
46480 /* confdefs.h.  */
46481 _ACEOF
46482 cat confdefs.h >>conftest.$ac_ext
46483 cat >>conftest.$ac_ext <<_ACEOF
46484 /* end confdefs.h.  */
46485 $ac_includes_default
46486 #include <$ac_header>
46487 _ACEOF
46488 rm -f conftest.$ac_objext
46489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46490   (eval $ac_compile) 2>conftest.er1
46491   ac_status=$?
46492   grep -v '^ *+' conftest.er1 >conftest.err
46493   rm -f conftest.er1
46494   cat conftest.err >&5
46495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46496   (exit $ac_status); } &&
46497          { ac_try='test -z "$ac_c_werror_flag"
46498                          || test ! -s conftest.err'
46499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46500   (eval $ac_try) 2>&5
46501   ac_status=$?
46502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46503   (exit $ac_status); }; } &&
46504          { ac_try='test -s conftest.$ac_objext'
46505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46506   (eval $ac_try) 2>&5
46507   ac_status=$?
46508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46509   (exit $ac_status); }; }; then
46510   ac_header_compiler=yes
46511 else
46512   echo "$as_me: failed program was:" >&5
46513 sed 's/^/| /' conftest.$ac_ext >&5
46514
46515 ac_header_compiler=no
46516 fi
46517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46519 echo "${ECHO_T}$ac_header_compiler" >&6
46520
46521 # Is the header present?
46522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46524 cat >conftest.$ac_ext <<_ACEOF
46525 /* confdefs.h.  */
46526 _ACEOF
46527 cat confdefs.h >>conftest.$ac_ext
46528 cat >>conftest.$ac_ext <<_ACEOF
46529 /* end confdefs.h.  */
46530 #include <$ac_header>
46531 _ACEOF
46532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46533   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46534   ac_status=$?
46535   grep -v '^ *+' conftest.er1 >conftest.err
46536   rm -f conftest.er1
46537   cat conftest.err >&5
46538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46539   (exit $ac_status); } >/dev/null; then
46540   if test -s conftest.err; then
46541     ac_cpp_err=$ac_c_preproc_warn_flag
46542     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46543   else
46544     ac_cpp_err=
46545   fi
46546 else
46547   ac_cpp_err=yes
46548 fi
46549 if test -z "$ac_cpp_err"; then
46550   ac_header_preproc=yes
46551 else
46552   echo "$as_me: failed program was:" >&5
46553 sed 's/^/| /' conftest.$ac_ext >&5
46554
46555   ac_header_preproc=no
46556 fi
46557 rm -f conftest.err conftest.$ac_ext
46558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46559 echo "${ECHO_T}$ac_header_preproc" >&6
46560
46561 # So?  What about this header?
46562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46563   yes:no: )
46564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46568     ac_header_preproc=yes
46569     ;;
46570   no:yes:* )
46571     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46573     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46574 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46575     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46577     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46578 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46581     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46583     (
46584       cat <<\_ASBOX
46585 ## ------------------------------------------ ##
46586 ## Report this to the AC_PACKAGE_NAME lists.  ##
46587 ## ------------------------------------------ ##
46588 _ASBOX
46589     ) |
46590       sed "s/^/$as_me: WARNING:     /" >&2
46591     ;;
46592 esac
46593 echo "$as_me:$LINENO: checking for $ac_header" >&5
46594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46596   echo $ECHO_N "(cached) $ECHO_C" >&6
46597 else
46598   eval "$as_ac_Header=\$ac_header_preproc"
46599 fi
46600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46602
46603 fi
46604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46605   cat >>confdefs.h <<_ACEOF
46606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46607 _ACEOF
46608
46609 fi
46610
46611 done
46612
46613
46614
46615 for ac_header in openssl/crypto.h crypto.h
46616 do
46617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46619   echo "$as_me:$LINENO: checking for $ac_header" >&5
46620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46622   echo $ECHO_N "(cached) $ECHO_C" >&6
46623 fi
46624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46626 else
46627   # Is the header compilable?
46628 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46630 cat >conftest.$ac_ext <<_ACEOF
46631 /* confdefs.h.  */
46632 _ACEOF
46633 cat confdefs.h >>conftest.$ac_ext
46634 cat >>conftest.$ac_ext <<_ACEOF
46635 /* end confdefs.h.  */
46636 $ac_includes_default
46637 #include <$ac_header>
46638 _ACEOF
46639 rm -f conftest.$ac_objext
46640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46641   (eval $ac_compile) 2>conftest.er1
46642   ac_status=$?
46643   grep -v '^ *+' conftest.er1 >conftest.err
46644   rm -f conftest.er1
46645   cat conftest.err >&5
46646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46647   (exit $ac_status); } &&
46648          { ac_try='test -z "$ac_c_werror_flag"
46649                          || test ! -s conftest.err'
46650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46651   (eval $ac_try) 2>&5
46652   ac_status=$?
46653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46654   (exit $ac_status); }; } &&
46655          { ac_try='test -s conftest.$ac_objext'
46656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46657   (eval $ac_try) 2>&5
46658   ac_status=$?
46659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46660   (exit $ac_status); }; }; then
46661   ac_header_compiler=yes
46662 else
46663   echo "$as_me: failed program was:" >&5
46664 sed 's/^/| /' conftest.$ac_ext >&5
46665
46666 ac_header_compiler=no
46667 fi
46668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46669 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46670 echo "${ECHO_T}$ac_header_compiler" >&6
46671
46672 # Is the header present?
46673 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46675 cat >conftest.$ac_ext <<_ACEOF
46676 /* confdefs.h.  */
46677 _ACEOF
46678 cat confdefs.h >>conftest.$ac_ext
46679 cat >>conftest.$ac_ext <<_ACEOF
46680 /* end confdefs.h.  */
46681 #include <$ac_header>
46682 _ACEOF
46683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46684   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46685   ac_status=$?
46686   grep -v '^ *+' conftest.er1 >conftest.err
46687   rm -f conftest.er1
46688   cat conftest.err >&5
46689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46690   (exit $ac_status); } >/dev/null; then
46691   if test -s conftest.err; then
46692     ac_cpp_err=$ac_c_preproc_warn_flag
46693     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46694   else
46695     ac_cpp_err=
46696   fi
46697 else
46698   ac_cpp_err=yes
46699 fi
46700 if test -z "$ac_cpp_err"; then
46701   ac_header_preproc=yes
46702 else
46703   echo "$as_me: failed program was:" >&5
46704 sed 's/^/| /' conftest.$ac_ext >&5
46705
46706   ac_header_preproc=no
46707 fi
46708 rm -f conftest.err conftest.$ac_ext
46709 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46710 echo "${ECHO_T}$ac_header_preproc" >&6
46711
46712 # So?  What about this header?
46713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46714   yes:no: )
46715     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46716 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46717     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46718 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46719     ac_header_preproc=yes
46720     ;;
46721   no:yes:* )
46722     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46723 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46724     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46725 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46726     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46727 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46728     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46729 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46730     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46732     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46733 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46734     (
46735       cat <<\_ASBOX
46736 ## ------------------------------------------ ##
46737 ## Report this to the AC_PACKAGE_NAME lists.  ##
46738 ## ------------------------------------------ ##
46739 _ASBOX
46740     ) |
46741       sed "s/^/$as_me: WARNING:     /" >&2
46742     ;;
46743 esac
46744 echo "$as_me:$LINENO: checking for $ac_header" >&5
46745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46747   echo $ECHO_N "(cached) $ECHO_C" >&6
46748 else
46749   eval "$as_ac_Header=\$ac_header_preproc"
46750 fi
46751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46753
46754 fi
46755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46756   cat >>confdefs.h <<_ACEOF
46757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46758 _ACEOF
46759
46760 fi
46761
46762 done
46763
46764
46765 for ac_header in gmp.h
46766 do
46767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46769   echo "$as_me:$LINENO: checking for $ac_header" >&5
46770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46772   echo $ECHO_N "(cached) $ECHO_C" >&6
46773 fi
46774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46776 else
46777   # Is the header compilable?
46778 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46780 cat >conftest.$ac_ext <<_ACEOF
46781 /* confdefs.h.  */
46782 _ACEOF
46783 cat confdefs.h >>conftest.$ac_ext
46784 cat >>conftest.$ac_ext <<_ACEOF
46785 /* end confdefs.h.  */
46786 $ac_includes_default
46787 #include <$ac_header>
46788 _ACEOF
46789 rm -f conftest.$ac_objext
46790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46791   (eval $ac_compile) 2>conftest.er1
46792   ac_status=$?
46793   grep -v '^ *+' conftest.er1 >conftest.err
46794   rm -f conftest.er1
46795   cat conftest.err >&5
46796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46797   (exit $ac_status); } &&
46798          { ac_try='test -z "$ac_c_werror_flag"
46799                          || test ! -s conftest.err'
46800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46801   (eval $ac_try) 2>&5
46802   ac_status=$?
46803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46804   (exit $ac_status); }; } &&
46805          { ac_try='test -s conftest.$ac_objext'
46806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46807   (eval $ac_try) 2>&5
46808   ac_status=$?
46809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46810   (exit $ac_status); }; }; then
46811   ac_header_compiler=yes
46812 else
46813   echo "$as_me: failed program was:" >&5
46814 sed 's/^/| /' conftest.$ac_ext >&5
46815
46816 ac_header_compiler=no
46817 fi
46818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46820 echo "${ECHO_T}$ac_header_compiler" >&6
46821
46822 # Is the header present?
46823 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46825 cat >conftest.$ac_ext <<_ACEOF
46826 /* confdefs.h.  */
46827 _ACEOF
46828 cat confdefs.h >>conftest.$ac_ext
46829 cat >>conftest.$ac_ext <<_ACEOF
46830 /* end confdefs.h.  */
46831 #include <$ac_header>
46832 _ACEOF
46833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46834   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46835   ac_status=$?
46836   grep -v '^ *+' conftest.er1 >conftest.err
46837   rm -f conftest.er1
46838   cat conftest.err >&5
46839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46840   (exit $ac_status); } >/dev/null; then
46841   if test -s conftest.err; then
46842     ac_cpp_err=$ac_c_preproc_warn_flag
46843     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46844   else
46845     ac_cpp_err=
46846   fi
46847 else
46848   ac_cpp_err=yes
46849 fi
46850 if test -z "$ac_cpp_err"; then
46851   ac_header_preproc=yes
46852 else
46853   echo "$as_me: failed program was:" >&5
46854 sed 's/^/| /' conftest.$ac_ext >&5
46855
46856   ac_header_preproc=no
46857 fi
46858 rm -f conftest.err conftest.$ac_ext
46859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46860 echo "${ECHO_T}$ac_header_preproc" >&6
46861
46862 # So?  What about this header?
46863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46864   yes:no: )
46865     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46867     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46869     ac_header_preproc=yes
46870     ;;
46871   no:yes:* )
46872     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46874     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46875 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46876     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46878     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46879 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46882     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46884     (
46885       cat <<\_ASBOX
46886 ## ------------------------------------------ ##
46887 ## Report this to the AC_PACKAGE_NAME lists.  ##
46888 ## ------------------------------------------ ##
46889 _ASBOX
46890     ) |
46891       sed "s/^/$as_me: WARNING:     /" >&2
46892     ;;
46893 esac
46894 echo "$as_me:$LINENO: checking for $ac_header" >&5
46895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46897   echo $ECHO_N "(cached) $ECHO_C" >&6
46898 else
46899   eval "$as_ac_Header=\$ac_header_preproc"
46900 fi
46901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46903
46904 fi
46905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46906   cat >>confdefs.h <<_ACEOF
46907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46908 _ACEOF
46909
46910 fi
46911
46912 done
46913
46914
46915         if test "$ol_with_tls" = "found" ; then
46916                 ol_have_bn_h=no
46917                 ol_have_crypto_h=no
46918
46919                 if test "$ac_cv_header_openssl_bn_h" = "yes" \
46920                                 -o "$ac_cv_header_bn_h" = "yes" ; then
46921                         ol_have_bn_h=yes
46922                 fi
46923
46924                 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
46925                                 -o "$ac_cv_header_crypto_h" = "yes" ; then
46926                         ol_have_crypto_h=yes
46927                 fi
46928
46929                 if test "$ol_have_bn_h" = "yes" \
46930                                 -a "$ol_have_crypto_h" = "yes" ; then
46931                         ol_have_bignum=yes
46932                 fi
46933         fi
46934
46935         if test $ac_cv_header_gmp_h = yes ; then
46936                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
46937 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
46938 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
46939   echo $ECHO_N "(cached) $ECHO_C" >&6
46940 else
46941   ac_check_lib_save_LIBS=$LIBS
46942 LIBS="-lgmp  $LIBS"
46943 cat >conftest.$ac_ext <<_ACEOF
46944 /* confdefs.h.  */
46945 _ACEOF
46946 cat confdefs.h >>conftest.$ac_ext
46947 cat >>conftest.$ac_ext <<_ACEOF
46948 /* end confdefs.h.  */
46949
46950 /* Override any gcc2 internal prototype to avoid an error.  */
46951 #ifdef __cplusplus
46952 extern "C"
46953 #endif
46954 /* We use char because int might match the return type of a gcc2
46955    builtin and then its argument prototype would still apply.  */
46956 char __gmpz_add_ui ();
46957 int
46958 main ()
46959 {
46960 __gmpz_add_ui ();
46961   ;
46962   return 0;
46963 }
46964 _ACEOF
46965 rm -f conftest.$ac_objext conftest$ac_exeext
46966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46967   (eval $ac_link) 2>conftest.er1
46968   ac_status=$?
46969   grep -v '^ *+' conftest.er1 >conftest.err
46970   rm -f conftest.er1
46971   cat conftest.err >&5
46972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46973   (exit $ac_status); } &&
46974          { ac_try='test -z "$ac_c_werror_flag"
46975                          || test ! -s conftest.err'
46976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46977   (eval $ac_try) 2>&5
46978   ac_status=$?
46979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46980   (exit $ac_status); }; } &&
46981          { ac_try='test -s conftest$ac_exeext'
46982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46983   (eval $ac_try) 2>&5
46984   ac_status=$?
46985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46986   (exit $ac_status); }; }; then
46987   ac_cv_lib_gmp___gmpz_add_ui=yes
46988 else
46989   echo "$as_me: failed program was:" >&5
46990 sed 's/^/| /' conftest.$ac_ext >&5
46991
46992 ac_cv_lib_gmp___gmpz_add_ui=no
46993 fi
46994 rm -f conftest.err conftest.$ac_objext \
46995       conftest$ac_exeext conftest.$ac_ext
46996 LIBS=$ac_check_lib_save_LIBS
46997 fi
46998 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
46999 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
47000 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
47001   have_gmp=yes
47002 else
47003   have_gmp=no
47004 fi
47005
47006                 if test $have_gmp = yes ; then
47007                         ol_have_gmp=yes
47008                 fi
47009         fi
47010
47011         echo "$as_me:$LINENO: checking for multiple precision support" >&5
47012 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
47013
47014         ol_mp_support="none"
47015         case "$ol_with_multiple_precision" in
47016         auto)
47017                                                                                 if test "$ol_have_bignum" = "yes" ; then
47018                         ol_mp_support="bignum"
47019                 else
47020                         if test "$ol_have_gmp" = "yes" ; then
47021                                 ol_mp_support="gmp"
47022                         fi
47023                 fi
47024                 ;;
47025         bignum)
47026                 if test "$ol_have_bignum" != "yes" ; then
47027                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
47028 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
47029    { (exit 1); exit 1; }; }
47030                 fi
47031                 ol_mp_support="bignum"
47032                 ;;
47033         gmp)
47034                 if test "$ol_have_gmp" != "yes" ; then
47035                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
47036 echo "$as_me: error: GMP not available" >&2;}
47037    { (exit 1); exit 1; }; }
47038                 fi
47039                 ol_mp_support="gmp"
47040                 ;;
47041         yes)
47042                 if test "$ol_have_bignum" = "yes" ; then
47043                         ol_mp_support="bignum"
47044                 elif test "$ol_have_gmp" = "yes" ; then
47045                         ol_mp_support="gmp"
47046                 else
47047                         { { echo "$as_me:$LINENO: error: not available" >&5
47048 echo "$as_me: error: not available" >&2;}
47049    { (exit 1); exit 1; }; }
47050                 fi
47051                 ;;
47052         esac
47053
47054         case "$ol_mp_support" in
47055         bignum)
47056
47057 cat >>confdefs.h <<\_ACEOF
47058 #define HAVE_BIGNUM 1
47059 _ACEOF
47060
47061                 ;;
47062         gmp)
47063
47064 cat >>confdefs.h <<\_ACEOF
47065 #define HAVE_GMP 1
47066 _ACEOF
47067
47068                 SLAPD_GMP_LIBS=-lgmp
47069                 ;;
47070         none)
47071                 ;;
47072         esac
47073
47074         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
47075 echo "${ECHO_T}$ol_mp_support" >&6
47076 fi
47077
47078
47079 echo "$as_me:$LINENO: checking for mode_t" >&5
47080 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
47081 if test "${ac_cv_type_mode_t+set}" = set; then
47082   echo $ECHO_N "(cached) $ECHO_C" >&6
47083 else
47084   cat >conftest.$ac_ext <<_ACEOF
47085 /* confdefs.h.  */
47086 _ACEOF
47087 cat confdefs.h >>conftest.$ac_ext
47088 cat >>conftest.$ac_ext <<_ACEOF
47089 /* end confdefs.h.  */
47090 $ac_includes_default
47091 int
47092 main ()
47093 {
47094 if ((mode_t *) 0)
47095   return 0;
47096 if (sizeof (mode_t))
47097   return 0;
47098   ;
47099   return 0;
47100 }
47101 _ACEOF
47102 rm -f conftest.$ac_objext
47103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47104   (eval $ac_compile) 2>conftest.er1
47105   ac_status=$?
47106   grep -v '^ *+' conftest.er1 >conftest.err
47107   rm -f conftest.er1
47108   cat conftest.err >&5
47109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47110   (exit $ac_status); } &&
47111          { ac_try='test -z "$ac_c_werror_flag"
47112                          || test ! -s conftest.err'
47113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47114   (eval $ac_try) 2>&5
47115   ac_status=$?
47116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47117   (exit $ac_status); }; } &&
47118          { ac_try='test -s conftest.$ac_objext'
47119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47120   (eval $ac_try) 2>&5
47121   ac_status=$?
47122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47123   (exit $ac_status); }; }; then
47124   ac_cv_type_mode_t=yes
47125 else
47126   echo "$as_me: failed program was:" >&5
47127 sed 's/^/| /' conftest.$ac_ext >&5
47128
47129 ac_cv_type_mode_t=no
47130 fi
47131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47132 fi
47133 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
47134 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
47135 if test $ac_cv_type_mode_t = yes; then
47136   :
47137 else
47138
47139 cat >>confdefs.h <<_ACEOF
47140 #define mode_t int
47141 _ACEOF
47142
47143 fi
47144
47145 echo "$as_me:$LINENO: checking for off_t" >&5
47146 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47147 if test "${ac_cv_type_off_t+set}" = set; then
47148   echo $ECHO_N "(cached) $ECHO_C" >&6
47149 else
47150   cat >conftest.$ac_ext <<_ACEOF
47151 /* confdefs.h.  */
47152 _ACEOF
47153 cat confdefs.h >>conftest.$ac_ext
47154 cat >>conftest.$ac_ext <<_ACEOF
47155 /* end confdefs.h.  */
47156 $ac_includes_default
47157 int
47158 main ()
47159 {
47160 if ((off_t *) 0)
47161   return 0;
47162 if (sizeof (off_t))
47163   return 0;
47164   ;
47165   return 0;
47166 }
47167 _ACEOF
47168 rm -f conftest.$ac_objext
47169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47170   (eval $ac_compile) 2>conftest.er1
47171   ac_status=$?
47172   grep -v '^ *+' conftest.er1 >conftest.err
47173   rm -f conftest.er1
47174   cat conftest.err >&5
47175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47176   (exit $ac_status); } &&
47177          { ac_try='test -z "$ac_c_werror_flag"
47178                          || test ! -s conftest.err'
47179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47180   (eval $ac_try) 2>&5
47181   ac_status=$?
47182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47183   (exit $ac_status); }; } &&
47184          { ac_try='test -s conftest.$ac_objext'
47185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47186   (eval $ac_try) 2>&5
47187   ac_status=$?
47188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47189   (exit $ac_status); }; }; then
47190   ac_cv_type_off_t=yes
47191 else
47192   echo "$as_me: failed program was:" >&5
47193 sed 's/^/| /' conftest.$ac_ext >&5
47194
47195 ac_cv_type_off_t=no
47196 fi
47197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47198 fi
47199 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47200 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47201 if test $ac_cv_type_off_t = yes; then
47202   :
47203 else
47204
47205 cat >>confdefs.h <<_ACEOF
47206 #define off_t long
47207 _ACEOF
47208
47209 fi
47210
47211 echo "$as_me:$LINENO: checking for pid_t" >&5
47212 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47213 if test "${ac_cv_type_pid_t+set}" = set; then
47214   echo $ECHO_N "(cached) $ECHO_C" >&6
47215 else
47216   cat >conftest.$ac_ext <<_ACEOF
47217 /* confdefs.h.  */
47218 _ACEOF
47219 cat confdefs.h >>conftest.$ac_ext
47220 cat >>conftest.$ac_ext <<_ACEOF
47221 /* end confdefs.h.  */
47222 $ac_includes_default
47223 int
47224 main ()
47225 {
47226 if ((pid_t *) 0)
47227   return 0;
47228 if (sizeof (pid_t))
47229   return 0;
47230   ;
47231   return 0;
47232 }
47233 _ACEOF
47234 rm -f conftest.$ac_objext
47235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47236   (eval $ac_compile) 2>conftest.er1
47237   ac_status=$?
47238   grep -v '^ *+' conftest.er1 >conftest.err
47239   rm -f conftest.er1
47240   cat conftest.err >&5
47241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47242   (exit $ac_status); } &&
47243          { ac_try='test -z "$ac_c_werror_flag"
47244                          || test ! -s conftest.err'
47245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47246   (eval $ac_try) 2>&5
47247   ac_status=$?
47248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47249   (exit $ac_status); }; } &&
47250          { ac_try='test -s conftest.$ac_objext'
47251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47252   (eval $ac_try) 2>&5
47253   ac_status=$?
47254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47255   (exit $ac_status); }; }; then
47256   ac_cv_type_pid_t=yes
47257 else
47258   echo "$as_me: failed program was:" >&5
47259 sed 's/^/| /' conftest.$ac_ext >&5
47260
47261 ac_cv_type_pid_t=no
47262 fi
47263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47264 fi
47265 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47266 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47267 if test $ac_cv_type_pid_t = yes; then
47268   :
47269 else
47270
47271 cat >>confdefs.h <<_ACEOF
47272 #define pid_t int
47273 _ACEOF
47274
47275 fi
47276
47277 echo "$as_me:$LINENO: checking for ssize_t" >&5
47278 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47279 if test "${ac_cv_type_ssize_t+set}" = set; then
47280   echo $ECHO_N "(cached) $ECHO_C" >&6
47281 else
47282   cat >conftest.$ac_ext <<_ACEOF
47283 /* confdefs.h.  */
47284 _ACEOF
47285 cat confdefs.h >>conftest.$ac_ext
47286 cat >>conftest.$ac_ext <<_ACEOF
47287 /* end confdefs.h.  */
47288 $ac_includes_default
47289 int
47290 main ()
47291 {
47292 if ((ssize_t *) 0)
47293   return 0;
47294 if (sizeof (ssize_t))
47295   return 0;
47296   ;
47297   return 0;
47298 }
47299 _ACEOF
47300 rm -f conftest.$ac_objext
47301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47302   (eval $ac_compile) 2>conftest.er1
47303   ac_status=$?
47304   grep -v '^ *+' conftest.er1 >conftest.err
47305   rm -f conftest.er1
47306   cat conftest.err >&5
47307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47308   (exit $ac_status); } &&
47309          { ac_try='test -z "$ac_c_werror_flag"
47310                          || test ! -s conftest.err'
47311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47312   (eval $ac_try) 2>&5
47313   ac_status=$?
47314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47315   (exit $ac_status); }; } &&
47316          { ac_try='test -s conftest.$ac_objext'
47317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47318   (eval $ac_try) 2>&5
47319   ac_status=$?
47320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47321   (exit $ac_status); }; }; then
47322   ac_cv_type_ssize_t=yes
47323 else
47324   echo "$as_me: failed program was:" >&5
47325 sed 's/^/| /' conftest.$ac_ext >&5
47326
47327 ac_cv_type_ssize_t=no
47328 fi
47329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47330 fi
47331 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47332 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47333 if test $ac_cv_type_ssize_t = yes; then
47334   :
47335 else
47336
47337 cat >>confdefs.h <<_ACEOF
47338 #define ssize_t signed int
47339 _ACEOF
47340
47341 fi
47342
47343 echo "$as_me:$LINENO: checking for caddr_t" >&5
47344 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47345 if test "${ac_cv_type_caddr_t+set}" = set; then
47346   echo $ECHO_N "(cached) $ECHO_C" >&6
47347 else
47348   cat >conftest.$ac_ext <<_ACEOF
47349 /* confdefs.h.  */
47350 _ACEOF
47351 cat confdefs.h >>conftest.$ac_ext
47352 cat >>conftest.$ac_ext <<_ACEOF
47353 /* end confdefs.h.  */
47354 $ac_includes_default
47355 int
47356 main ()
47357 {
47358 if ((caddr_t *) 0)
47359   return 0;
47360 if (sizeof (caddr_t))
47361   return 0;
47362   ;
47363   return 0;
47364 }
47365 _ACEOF
47366 rm -f conftest.$ac_objext
47367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47368   (eval $ac_compile) 2>conftest.er1
47369   ac_status=$?
47370   grep -v '^ *+' conftest.er1 >conftest.err
47371   rm -f conftest.er1
47372   cat conftest.err >&5
47373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47374   (exit $ac_status); } &&
47375          { ac_try='test -z "$ac_c_werror_flag"
47376                          || test ! -s conftest.err'
47377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47378   (eval $ac_try) 2>&5
47379   ac_status=$?
47380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47381   (exit $ac_status); }; } &&
47382          { ac_try='test -s conftest.$ac_objext'
47383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47384   (eval $ac_try) 2>&5
47385   ac_status=$?
47386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47387   (exit $ac_status); }; }; then
47388   ac_cv_type_caddr_t=yes
47389 else
47390   echo "$as_me: failed program was:" >&5
47391 sed 's/^/| /' conftest.$ac_ext >&5
47392
47393 ac_cv_type_caddr_t=no
47394 fi
47395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47396 fi
47397 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47398 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47399 if test $ac_cv_type_caddr_t = yes; then
47400   :
47401 else
47402
47403 cat >>confdefs.h <<_ACEOF
47404 #define caddr_t char *
47405 _ACEOF
47406
47407 fi
47408
47409 echo "$as_me:$LINENO: checking for size_t" >&5
47410 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47411 if test "${ac_cv_type_size_t+set}" = set; then
47412   echo $ECHO_N "(cached) $ECHO_C" >&6
47413 else
47414   cat >conftest.$ac_ext <<_ACEOF
47415 /* confdefs.h.  */
47416 _ACEOF
47417 cat confdefs.h >>conftest.$ac_ext
47418 cat >>conftest.$ac_ext <<_ACEOF
47419 /* end confdefs.h.  */
47420 $ac_includes_default
47421 int
47422 main ()
47423 {
47424 if ((size_t *) 0)
47425   return 0;
47426 if (sizeof (size_t))
47427   return 0;
47428   ;
47429   return 0;
47430 }
47431 _ACEOF
47432 rm -f conftest.$ac_objext
47433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47434   (eval $ac_compile) 2>conftest.er1
47435   ac_status=$?
47436   grep -v '^ *+' conftest.er1 >conftest.err
47437   rm -f conftest.er1
47438   cat conftest.err >&5
47439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47440   (exit $ac_status); } &&
47441          { ac_try='test -z "$ac_c_werror_flag"
47442                          || test ! -s conftest.err'
47443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47444   (eval $ac_try) 2>&5
47445   ac_status=$?
47446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47447   (exit $ac_status); }; } &&
47448          { ac_try='test -s conftest.$ac_objext'
47449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47450   (eval $ac_try) 2>&5
47451   ac_status=$?
47452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47453   (exit $ac_status); }; }; then
47454   ac_cv_type_size_t=yes
47455 else
47456   echo "$as_me: failed program was:" >&5
47457 sed 's/^/| /' conftest.$ac_ext >&5
47458
47459 ac_cv_type_size_t=no
47460 fi
47461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47462 fi
47463 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47464 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47465 if test $ac_cv_type_size_t = yes; then
47466   :
47467 else
47468
47469 cat >>confdefs.h <<_ACEOF
47470 #define size_t unsigned
47471 _ACEOF
47472
47473 fi
47474
47475
47476 echo "$as_me:$LINENO: checking for long long" >&5
47477 echo $ECHO_N "checking for long long... $ECHO_C" >&6
47478 if test "${ac_cv_type_long_long+set}" = set; then
47479   echo $ECHO_N "(cached) $ECHO_C" >&6
47480 else
47481   cat >conftest.$ac_ext <<_ACEOF
47482 /* confdefs.h.  */
47483 _ACEOF
47484 cat confdefs.h >>conftest.$ac_ext
47485 cat >>conftest.$ac_ext <<_ACEOF
47486 /* end confdefs.h.  */
47487 $ac_includes_default
47488 int
47489 main ()
47490 {
47491 if ((long long *) 0)
47492   return 0;
47493 if (sizeof (long long))
47494   return 0;
47495   ;
47496   return 0;
47497 }
47498 _ACEOF
47499 rm -f conftest.$ac_objext
47500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47501   (eval $ac_compile) 2>conftest.er1
47502   ac_status=$?
47503   grep -v '^ *+' conftest.er1 >conftest.err
47504   rm -f conftest.er1
47505   cat conftest.err >&5
47506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47507   (exit $ac_status); } &&
47508          { ac_try='test -z "$ac_c_werror_flag"
47509                          || test ! -s conftest.err'
47510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47511   (eval $ac_try) 2>&5
47512   ac_status=$?
47513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47514   (exit $ac_status); }; } &&
47515          { ac_try='test -s conftest.$ac_objext'
47516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47517   (eval $ac_try) 2>&5
47518   ac_status=$?
47519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47520   (exit $ac_status); }; }; then
47521   ac_cv_type_long_long=yes
47522 else
47523   echo "$as_me: failed program was:" >&5
47524 sed 's/^/| /' conftest.$ac_ext >&5
47525
47526 ac_cv_type_long_long=no
47527 fi
47528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47529 fi
47530 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
47531 echo "${ECHO_T}$ac_cv_type_long_long" >&6
47532 if test $ac_cv_type_long_long = yes; then
47533
47534 cat >>confdefs.h <<_ACEOF
47535 #define HAVE_LONG_LONG 1
47536 _ACEOF
47537
47538
47539 fi
47540
47541 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47542 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47543 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47544   echo $ECHO_N "(cached) $ECHO_C" >&6
47545 else
47546   cat >conftest.$ac_ext <<_ACEOF
47547 /* confdefs.h.  */
47548 _ACEOF
47549 cat confdefs.h >>conftest.$ac_ext
47550 cat >>conftest.$ac_ext <<_ACEOF
47551 /* end confdefs.h.  */
47552 $ac_includes_default
47553 int
47554 main ()
47555 {
47556 if ((ptrdiff_t *) 0)
47557   return 0;
47558 if (sizeof (ptrdiff_t))
47559   return 0;
47560   ;
47561   return 0;
47562 }
47563 _ACEOF
47564 rm -f conftest.$ac_objext
47565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47566   (eval $ac_compile) 2>conftest.er1
47567   ac_status=$?
47568   grep -v '^ *+' conftest.er1 >conftest.err
47569   rm -f conftest.er1
47570   cat conftest.err >&5
47571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47572   (exit $ac_status); } &&
47573          { ac_try='test -z "$ac_c_werror_flag"
47574                          || test ! -s conftest.err'
47575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47576   (eval $ac_try) 2>&5
47577   ac_status=$?
47578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47579   (exit $ac_status); }; } &&
47580          { ac_try='test -s conftest.$ac_objext'
47581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47582   (eval $ac_try) 2>&5
47583   ac_status=$?
47584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47585   (exit $ac_status); }; }; then
47586   ac_cv_type_ptrdiff_t=yes
47587 else
47588   echo "$as_me: failed program was:" >&5
47589 sed 's/^/| /' conftest.$ac_ext >&5
47590
47591 ac_cv_type_ptrdiff_t=no
47592 fi
47593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47594 fi
47595 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47596 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47597 if test $ac_cv_type_ptrdiff_t = yes; then
47598
47599 cat >>confdefs.h <<_ACEOF
47600 #define HAVE_PTRDIFF_T 1
47601 _ACEOF
47602
47603
47604 fi
47605
47606
47607 echo "$as_me:$LINENO: checking for socklen_t" >&5
47608 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47609 if test "${ac_cv_type_socklen_t+set}" = set; then
47610   echo $ECHO_N "(cached) $ECHO_C" >&6
47611 else
47612   cat >conftest.$ac_ext <<_ACEOF
47613 /* confdefs.h.  */
47614 _ACEOF
47615 cat confdefs.h >>conftest.$ac_ext
47616 cat >>conftest.$ac_ext <<_ACEOF
47617 /* end confdefs.h.  */
47618 $ac_includes_default
47619 #ifdef HAVE_SYS_SOCKET_H
47620 #include <sys/socket.h>
47621 #endif
47622
47623
47624 int
47625 main ()
47626 {
47627 if ((socklen_t *) 0)
47628   return 0;
47629 if (sizeof (socklen_t))
47630   return 0;
47631   ;
47632   return 0;
47633 }
47634 _ACEOF
47635 rm -f conftest.$ac_objext
47636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47637   (eval $ac_compile) 2>conftest.er1
47638   ac_status=$?
47639   grep -v '^ *+' conftest.er1 >conftest.err
47640   rm -f conftest.er1
47641   cat conftest.err >&5
47642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47643   (exit $ac_status); } &&
47644          { ac_try='test -z "$ac_c_werror_flag"
47645                          || test ! -s conftest.err'
47646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47647   (eval $ac_try) 2>&5
47648   ac_status=$?
47649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47650   (exit $ac_status); }; } &&
47651          { ac_try='test -s conftest.$ac_objext'
47652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47653   (eval $ac_try) 2>&5
47654   ac_status=$?
47655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47656   (exit $ac_status); }; }; then
47657   ac_cv_type_socklen_t=yes
47658 else
47659   echo "$as_me: failed program was:" >&5
47660 sed 's/^/| /' conftest.$ac_ext >&5
47661
47662 ac_cv_type_socklen_t=no
47663 fi
47664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47665 fi
47666 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
47667 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
47668 if test $ac_cv_type_socklen_t = yes; then
47669   :
47670 else
47671
47672 cat >>confdefs.h <<_ACEOF
47673 #define socklen_t int
47674 _ACEOF
47675
47676 fi
47677
47678
47679 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47680 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47681 if test "${ac_cv_type_signal+set}" = set; then
47682   echo $ECHO_N "(cached) $ECHO_C" >&6
47683 else
47684   cat >conftest.$ac_ext <<_ACEOF
47685 /* confdefs.h.  */
47686 _ACEOF
47687 cat confdefs.h >>conftest.$ac_ext
47688 cat >>conftest.$ac_ext <<_ACEOF
47689 /* end confdefs.h.  */
47690 #include <sys/types.h>
47691 #include <signal.h>
47692 #ifdef signal
47693 # undef signal
47694 #endif
47695 #ifdef __cplusplus
47696 extern "C" void (*signal (int, void (*)(int)))(int);
47697 #else
47698 void (*signal ()) ();
47699 #endif
47700
47701 int
47702 main ()
47703 {
47704 int i;
47705   ;
47706   return 0;
47707 }
47708 _ACEOF
47709 rm -f conftest.$ac_objext
47710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47711   (eval $ac_compile) 2>conftest.er1
47712   ac_status=$?
47713   grep -v '^ *+' conftest.er1 >conftest.err
47714   rm -f conftest.er1
47715   cat conftest.err >&5
47716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47717   (exit $ac_status); } &&
47718          { ac_try='test -z "$ac_c_werror_flag"
47719                          || test ! -s conftest.err'
47720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47721   (eval $ac_try) 2>&5
47722   ac_status=$?
47723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47724   (exit $ac_status); }; } &&
47725          { ac_try='test -s conftest.$ac_objext'
47726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47727   (eval $ac_try) 2>&5
47728   ac_status=$?
47729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47730   (exit $ac_status); }; }; then
47731   ac_cv_type_signal=void
47732 else
47733   echo "$as_me: failed program was:" >&5
47734 sed 's/^/| /' conftest.$ac_ext >&5
47735
47736 ac_cv_type_signal=int
47737 fi
47738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47739 fi
47740 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47741 echo "${ECHO_T}$ac_cv_type_signal" >&6
47742
47743 cat >>confdefs.h <<_ACEOF
47744 #define RETSIGTYPE $ac_cv_type_signal
47745 _ACEOF
47746
47747
47748
47749 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47750 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47751 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
47752   echo $ECHO_N "(cached) $ECHO_C" >&6
47753 else
47754   cat >conftest.$ac_ext <<_ACEOF
47755 /* confdefs.h.  */
47756 _ACEOF
47757 cat confdefs.h >>conftest.$ac_ext
47758 cat >>conftest.$ac_ext <<_ACEOF
47759 /* end confdefs.h.  */
47760 $ac_includes_default
47761 #include <signal.h>
47762
47763
47764 int
47765 main ()
47766 {
47767 if ((sig_atomic_t *) 0)
47768   return 0;
47769 if (sizeof (sig_atomic_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_sig_atomic_t=yes
47798 else
47799   echo "$as_me: failed program was:" >&5
47800 sed 's/^/| /' conftest.$ac_ext >&5
47801
47802 ac_cv_type_sig_atomic_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_sig_atomic_t" >&5
47807 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
47808 if test $ac_cv_type_sig_atomic_t = yes; then
47809   :
47810 else
47811
47812 cat >>confdefs.h <<_ACEOF
47813 #define sig_atomic_t int
47814 _ACEOF
47815
47816 fi
47817
47818
47819 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47820 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47821 if test "${ac_cv_type_uid_t+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
47832 _ACEOF
47833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47834   $EGREP "uid_t" >/dev/null 2>&1; then
47835   ac_cv_type_uid_t=yes
47836 else
47837   ac_cv_type_uid_t=no
47838 fi
47839 rm -f conftest*
47840
47841 fi
47842 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47843 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47844 if test $ac_cv_type_uid_t = no; then
47845
47846 cat >>confdefs.h <<\_ACEOF
47847 #define uid_t int
47848 _ACEOF
47849
47850
47851 cat >>confdefs.h <<\_ACEOF
47852 #define gid_t int
47853 _ACEOF
47854
47855 fi
47856
47857
47858 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47859 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47860 if test "${ac_cv_header_time+set}" = set; then
47861   echo $ECHO_N "(cached) $ECHO_C" >&6
47862 else
47863   cat >conftest.$ac_ext <<_ACEOF
47864 /* confdefs.h.  */
47865 _ACEOF
47866 cat confdefs.h >>conftest.$ac_ext
47867 cat >>conftest.$ac_ext <<_ACEOF
47868 /* end confdefs.h.  */
47869 #include <sys/types.h>
47870 #include <sys/time.h>
47871 #include <time.h>
47872
47873 int
47874 main ()
47875 {
47876 if ((struct tm *) 0)
47877 return 0;
47878   ;
47879   return 0;
47880 }
47881 _ACEOF
47882 rm -f conftest.$ac_objext
47883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47884   (eval $ac_compile) 2>conftest.er1
47885   ac_status=$?
47886   grep -v '^ *+' conftest.er1 >conftest.err
47887   rm -f conftest.er1
47888   cat conftest.err >&5
47889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47890   (exit $ac_status); } &&
47891          { ac_try='test -z "$ac_c_werror_flag"
47892                          || test ! -s conftest.err'
47893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47894   (eval $ac_try) 2>&5
47895   ac_status=$?
47896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47897   (exit $ac_status); }; } &&
47898          { ac_try='test -s conftest.$ac_objext'
47899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47900   (eval $ac_try) 2>&5
47901   ac_status=$?
47902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47903   (exit $ac_status); }; }; then
47904   ac_cv_header_time=yes
47905 else
47906   echo "$as_me: failed program was:" >&5
47907 sed 's/^/| /' conftest.$ac_ext >&5
47908
47909 ac_cv_header_time=no
47910 fi
47911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47912 fi
47913 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
47914 echo "${ECHO_T}$ac_cv_header_time" >&6
47915 if test $ac_cv_header_time = yes; then
47916
47917 cat >>confdefs.h <<\_ACEOF
47918 #define TIME_WITH_SYS_TIME 1
47919 _ACEOF
47920
47921 fi
47922
47923 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
47924 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
47925 if test "${ac_cv_struct_tm+set}" = set; then
47926   echo $ECHO_N "(cached) $ECHO_C" >&6
47927 else
47928   cat >conftest.$ac_ext <<_ACEOF
47929 /* confdefs.h.  */
47930 _ACEOF
47931 cat confdefs.h >>conftest.$ac_ext
47932 cat >>conftest.$ac_ext <<_ACEOF
47933 /* end confdefs.h.  */
47934 #include <sys/types.h>
47935 #include <time.h>
47936
47937 int
47938 main ()
47939 {
47940 struct tm *tp; tp->tm_sec;
47941   ;
47942   return 0;
47943 }
47944 _ACEOF
47945 rm -f conftest.$ac_objext
47946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47947   (eval $ac_compile) 2>conftest.er1
47948   ac_status=$?
47949   grep -v '^ *+' conftest.er1 >conftest.err
47950   rm -f conftest.er1
47951   cat conftest.err >&5
47952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47953   (exit $ac_status); } &&
47954          { ac_try='test -z "$ac_c_werror_flag"
47955                          || test ! -s conftest.err'
47956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47957   (eval $ac_try) 2>&5
47958   ac_status=$?
47959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47960   (exit $ac_status); }; } &&
47961          { ac_try='test -s conftest.$ac_objext'
47962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47963   (eval $ac_try) 2>&5
47964   ac_status=$?
47965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47966   (exit $ac_status); }; }; then
47967   ac_cv_struct_tm=time.h
47968 else
47969   echo "$as_me: failed program was:" >&5
47970 sed 's/^/| /' conftest.$ac_ext >&5
47971
47972 ac_cv_struct_tm=sys/time.h
47973 fi
47974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47975 fi
47976 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
47977 echo "${ECHO_T}$ac_cv_struct_tm" >&6
47978 if test $ac_cv_struct_tm = sys/time.h; then
47979
47980 cat >>confdefs.h <<\_ACEOF
47981 #define TM_IN_SYS_TIME 1
47982 _ACEOF
47983
47984 fi
47985
47986 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
47987 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
47988 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
47989   echo $ECHO_N "(cached) $ECHO_C" >&6
47990 else
47991   cat >conftest.$ac_ext <<_ACEOF
47992 /* confdefs.h.  */
47993 _ACEOF
47994 cat confdefs.h >>conftest.$ac_ext
47995 cat >>conftest.$ac_ext <<_ACEOF
47996 /* end confdefs.h.  */
47997 $ac_includes_default
47998 int
47999 main ()
48000 {
48001 static struct stat ac_aggr;
48002 if (ac_aggr.st_blksize)
48003 return 0;
48004   ;
48005   return 0;
48006 }
48007 _ACEOF
48008 rm -f conftest.$ac_objext
48009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48010   (eval $ac_compile) 2>conftest.er1
48011   ac_status=$?
48012   grep -v '^ *+' conftest.er1 >conftest.err
48013   rm -f conftest.er1
48014   cat conftest.err >&5
48015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48016   (exit $ac_status); } &&
48017          { ac_try='test -z "$ac_c_werror_flag"
48018                          || test ! -s conftest.err'
48019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48020   (eval $ac_try) 2>&5
48021   ac_status=$?
48022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48023   (exit $ac_status); }; } &&
48024          { ac_try='test -s conftest.$ac_objext'
48025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48026   (eval $ac_try) 2>&5
48027   ac_status=$?
48028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48029   (exit $ac_status); }; }; then
48030   ac_cv_member_struct_stat_st_blksize=yes
48031 else
48032   echo "$as_me: failed program was:" >&5
48033 sed 's/^/| /' conftest.$ac_ext >&5
48034
48035 cat >conftest.$ac_ext <<_ACEOF
48036 /* confdefs.h.  */
48037 _ACEOF
48038 cat confdefs.h >>conftest.$ac_ext
48039 cat >>conftest.$ac_ext <<_ACEOF
48040 /* end confdefs.h.  */
48041 $ac_includes_default
48042 int
48043 main ()
48044 {
48045 static struct stat ac_aggr;
48046 if (sizeof ac_aggr.st_blksize)
48047 return 0;
48048   ;
48049   return 0;
48050 }
48051 _ACEOF
48052 rm -f conftest.$ac_objext
48053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48054   (eval $ac_compile) 2>conftest.er1
48055   ac_status=$?
48056   grep -v '^ *+' conftest.er1 >conftest.err
48057   rm -f conftest.er1
48058   cat conftest.err >&5
48059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48060   (exit $ac_status); } &&
48061          { ac_try='test -z "$ac_c_werror_flag"
48062                          || test ! -s conftest.err'
48063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48064   (eval $ac_try) 2>&5
48065   ac_status=$?
48066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48067   (exit $ac_status); }; } &&
48068          { ac_try='test -s conftest.$ac_objext'
48069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48070   (eval $ac_try) 2>&5
48071   ac_status=$?
48072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48073   (exit $ac_status); }; }; then
48074   ac_cv_member_struct_stat_st_blksize=yes
48075 else
48076   echo "$as_me: failed program was:" >&5
48077 sed 's/^/| /' conftest.$ac_ext >&5
48078
48079 ac_cv_member_struct_stat_st_blksize=no
48080 fi
48081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48082 fi
48083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48084 fi
48085 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
48086 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
48087 if test $ac_cv_member_struct_stat_st_blksize = yes; then
48088
48089 cat >>confdefs.h <<_ACEOF
48090 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
48091 _ACEOF
48092
48093
48094 fi
48095
48096 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
48097 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
48098 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
48099   echo $ECHO_N "(cached) $ECHO_C" >&6
48100 else
48101   cat >conftest.$ac_ext <<_ACEOF
48102 /* confdefs.h.  */
48103 _ACEOF
48104 cat confdefs.h >>conftest.$ac_ext
48105 cat >>conftest.$ac_ext <<_ACEOF
48106 /* end confdefs.h.  */
48107 $ac_includes_default
48108 #include <pwd.h>
48109
48110 int
48111 main ()
48112 {
48113 static struct passwd ac_aggr;
48114 if (ac_aggr.pw_gecos)
48115 return 0;
48116   ;
48117   return 0;
48118 }
48119 _ACEOF
48120 rm -f conftest.$ac_objext
48121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48122   (eval $ac_compile) 2>conftest.er1
48123   ac_status=$?
48124   grep -v '^ *+' conftest.er1 >conftest.err
48125   rm -f conftest.er1
48126   cat conftest.err >&5
48127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48128   (exit $ac_status); } &&
48129          { ac_try='test -z "$ac_c_werror_flag"
48130                          || test ! -s conftest.err'
48131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48132   (eval $ac_try) 2>&5
48133   ac_status=$?
48134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48135   (exit $ac_status); }; } &&
48136          { ac_try='test -s conftest.$ac_objext'
48137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48138   (eval $ac_try) 2>&5
48139   ac_status=$?
48140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48141   (exit $ac_status); }; }; then
48142   ac_cv_member_struct_passwd_pw_gecos=yes
48143 else
48144   echo "$as_me: failed program was:" >&5
48145 sed 's/^/| /' conftest.$ac_ext >&5
48146
48147 cat >conftest.$ac_ext <<_ACEOF
48148 /* confdefs.h.  */
48149 _ACEOF
48150 cat confdefs.h >>conftest.$ac_ext
48151 cat >>conftest.$ac_ext <<_ACEOF
48152 /* end confdefs.h.  */
48153 $ac_includes_default
48154 #include <pwd.h>
48155
48156 int
48157 main ()
48158 {
48159 static struct passwd ac_aggr;
48160 if (sizeof ac_aggr.pw_gecos)
48161 return 0;
48162   ;
48163   return 0;
48164 }
48165 _ACEOF
48166 rm -f conftest.$ac_objext
48167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48168   (eval $ac_compile) 2>conftest.er1
48169   ac_status=$?
48170   grep -v '^ *+' conftest.er1 >conftest.err
48171   rm -f conftest.er1
48172   cat conftest.err >&5
48173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48174   (exit $ac_status); } &&
48175          { ac_try='test -z "$ac_c_werror_flag"
48176                          || test ! -s conftest.err'
48177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48178   (eval $ac_try) 2>&5
48179   ac_status=$?
48180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48181   (exit $ac_status); }; } &&
48182          { ac_try='test -s conftest.$ac_objext'
48183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48184   (eval $ac_try) 2>&5
48185   ac_status=$?
48186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48187   (exit $ac_status); }; }; then
48188   ac_cv_member_struct_passwd_pw_gecos=yes
48189 else
48190   echo "$as_me: failed program was:" >&5
48191 sed 's/^/| /' conftest.$ac_ext >&5
48192
48193 ac_cv_member_struct_passwd_pw_gecos=no
48194 fi
48195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48196 fi
48197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48198 fi
48199 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
48200 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
48201 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
48202
48203 cat >>confdefs.h <<_ACEOF
48204 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
48205 _ACEOF
48206
48207
48208 fi
48209
48210 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
48211 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
48212 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
48213   echo $ECHO_N "(cached) $ECHO_C" >&6
48214 else
48215   cat >conftest.$ac_ext <<_ACEOF
48216 /* confdefs.h.  */
48217 _ACEOF
48218 cat confdefs.h >>conftest.$ac_ext
48219 cat >>conftest.$ac_ext <<_ACEOF
48220 /* end confdefs.h.  */
48221 $ac_includes_default
48222 #include <pwd.h>
48223
48224 int
48225 main ()
48226 {
48227 static struct passwd ac_aggr;
48228 if (ac_aggr.pw_passwd)
48229 return 0;
48230   ;
48231   return 0;
48232 }
48233 _ACEOF
48234 rm -f conftest.$ac_objext
48235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48236   (eval $ac_compile) 2>conftest.er1
48237   ac_status=$?
48238   grep -v '^ *+' conftest.er1 >conftest.err
48239   rm -f conftest.er1
48240   cat conftest.err >&5
48241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48242   (exit $ac_status); } &&
48243          { ac_try='test -z "$ac_c_werror_flag"
48244                          || test ! -s conftest.err'
48245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48246   (eval $ac_try) 2>&5
48247   ac_status=$?
48248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48249   (exit $ac_status); }; } &&
48250          { ac_try='test -s conftest.$ac_objext'
48251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48252   (eval $ac_try) 2>&5
48253   ac_status=$?
48254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48255   (exit $ac_status); }; }; then
48256   ac_cv_member_struct_passwd_pw_passwd=yes
48257 else
48258   echo "$as_me: failed program was:" >&5
48259 sed 's/^/| /' conftest.$ac_ext >&5
48260
48261 cat >conftest.$ac_ext <<_ACEOF
48262 /* confdefs.h.  */
48263 _ACEOF
48264 cat confdefs.h >>conftest.$ac_ext
48265 cat >>conftest.$ac_ext <<_ACEOF
48266 /* end confdefs.h.  */
48267 $ac_includes_default
48268 #include <pwd.h>
48269
48270 int
48271 main ()
48272 {
48273 static struct passwd ac_aggr;
48274 if (sizeof ac_aggr.pw_passwd)
48275 return 0;
48276   ;
48277   return 0;
48278 }
48279 _ACEOF
48280 rm -f conftest.$ac_objext
48281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48282   (eval $ac_compile) 2>conftest.er1
48283   ac_status=$?
48284   grep -v '^ *+' conftest.er1 >conftest.err
48285   rm -f conftest.er1
48286   cat conftest.err >&5
48287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48288   (exit $ac_status); } &&
48289          { ac_try='test -z "$ac_c_werror_flag"
48290                          || test ! -s conftest.err'
48291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48292   (eval $ac_try) 2>&5
48293   ac_status=$?
48294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48295   (exit $ac_status); }; } &&
48296          { ac_try='test -s conftest.$ac_objext'
48297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48298   (eval $ac_try) 2>&5
48299   ac_status=$?
48300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48301   (exit $ac_status); }; }; then
48302   ac_cv_member_struct_passwd_pw_passwd=yes
48303 else
48304   echo "$as_me: failed program was:" >&5
48305 sed 's/^/| /' conftest.$ac_ext >&5
48306
48307 ac_cv_member_struct_passwd_pw_passwd=no
48308 fi
48309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48310 fi
48311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48312 fi
48313 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
48314 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
48315 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
48316
48317 cat >>confdefs.h <<_ACEOF
48318 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
48319 _ACEOF
48320
48321
48322 fi
48323
48324
48325 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48326 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48327 if test "${ol_cv_c_upper_lower+set}" = set; then
48328   echo $ECHO_N "(cached) $ECHO_C" >&6
48329 else
48330
48331         if test "$cross_compiling" = yes; then
48332   ol_cv_c_upper_lower=safe
48333 else
48334   cat >conftest.$ac_ext <<_ACEOF
48335 /* confdefs.h.  */
48336 _ACEOF
48337 cat confdefs.h >>conftest.$ac_ext
48338 cat >>conftest.$ac_ext <<_ACEOF
48339 /* end confdefs.h.  */
48340
48341 #include <ctype.h>
48342 main()
48343 {
48344         if ('C' == toupper('C'))
48345                 exit(0);
48346         else
48347                 exit(1);
48348 }
48349 _ACEOF
48350 rm -f conftest$ac_exeext
48351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48352   (eval $ac_link) 2>&5
48353   ac_status=$?
48354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48355   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48357   (eval $ac_try) 2>&5
48358   ac_status=$?
48359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48360   (exit $ac_status); }; }; then
48361   ol_cv_c_upper_lower=no
48362 else
48363   echo "$as_me: program exited with status $ac_status" >&5
48364 echo "$as_me: failed program was:" >&5
48365 sed 's/^/| /' conftest.$ac_ext >&5
48366
48367 ( exit $ac_status )
48368 ol_cv_c_upper_lower=yes
48369 fi
48370 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48371 fi
48372 fi
48373 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48374 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48375 if test $ol_cv_c_upper_lower != no ; then
48376
48377 cat >>confdefs.h <<\_ACEOF
48378 #define C_UPPER_LOWER 1
48379 _ACEOF
48380
48381 fi
48382
48383 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48384 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48385 if test "${ac_cv_c_const+set}" = set; then
48386   echo $ECHO_N "(cached) $ECHO_C" >&6
48387 else
48388   cat >conftest.$ac_ext <<_ACEOF
48389 /* confdefs.h.  */
48390 _ACEOF
48391 cat confdefs.h >>conftest.$ac_ext
48392 cat >>conftest.$ac_ext <<_ACEOF
48393 /* end confdefs.h.  */
48394
48395 int
48396 main ()
48397 {
48398 /* FIXME: Include the comments suggested by Paul. */
48399 #ifndef __cplusplus
48400   /* Ultrix mips cc rejects this.  */
48401   typedef int charset[2];
48402   const charset x;
48403   /* SunOS 4.1.1 cc rejects this.  */
48404   char const *const *ccp;
48405   char **p;
48406   /* NEC SVR4.0.2 mips cc rejects this.  */
48407   struct point {int x, y;};
48408   static struct point const zero = {0,0};
48409   /* AIX XL C 1.02.0.0 rejects this.
48410      It does not let you subtract one const X* pointer from another in
48411      an arm of an if-expression whose if-part is not a constant
48412      expression */
48413   const char *g = "string";
48414   ccp = &g + (g ? g-g : 0);
48415   /* HPUX 7.0 cc rejects these. */
48416   ++ccp;
48417   p = (char**) ccp;
48418   ccp = (char const *const *) p;
48419   { /* SCO 3.2v4 cc rejects this.  */
48420     char *t;
48421     char const *s = 0 ? (char *) 0 : (char const *) 0;
48422
48423     *t++ = 0;
48424   }
48425   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
48426     int x[] = {25, 17};
48427     const int *foo = &x[0];
48428     ++foo;
48429   }
48430   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48431     typedef const int *iptr;
48432     iptr p = 0;
48433     ++p;
48434   }
48435   { /* AIX XL C 1.02.0.0 rejects this saying
48436        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48437     struct s { int j; const int *ap[3]; };
48438     struct s *b; b->j = 5;
48439   }
48440   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48441     const int foo = 10;
48442   }
48443 #endif
48444
48445   ;
48446   return 0;
48447 }
48448 _ACEOF
48449 rm -f conftest.$ac_objext
48450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48451   (eval $ac_compile) 2>conftest.er1
48452   ac_status=$?
48453   grep -v '^ *+' conftest.er1 >conftest.err
48454   rm -f conftest.er1
48455   cat conftest.err >&5
48456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48457   (exit $ac_status); } &&
48458          { ac_try='test -z "$ac_c_werror_flag"
48459                          || test ! -s conftest.err'
48460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48461   (eval $ac_try) 2>&5
48462   ac_status=$?
48463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48464   (exit $ac_status); }; } &&
48465          { ac_try='test -s conftest.$ac_objext'
48466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48467   (eval $ac_try) 2>&5
48468   ac_status=$?
48469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48470   (exit $ac_status); }; }; then
48471   ac_cv_c_const=yes
48472 else
48473   echo "$as_me: failed program was:" >&5
48474 sed 's/^/| /' conftest.$ac_ext >&5
48475
48476 ac_cv_c_const=no
48477 fi
48478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48479 fi
48480 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48481 echo "${ECHO_T}$ac_cv_c_const" >&6
48482 if test $ac_cv_c_const = no; then
48483
48484 cat >>confdefs.h <<\_ACEOF
48485 #define const
48486 _ACEOF
48487
48488 fi
48489
48490 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48491 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48492 if test "${ol_cv_c_volatile+set}" = set; then
48493   echo $ECHO_N "(cached) $ECHO_C" >&6
48494 else
48495   cat >conftest.$ac_ext <<_ACEOF
48496 /* confdefs.h.  */
48497 _ACEOF
48498 cat confdefs.h >>conftest.$ac_ext
48499 cat >>conftest.$ac_ext <<_ACEOF
48500 /* end confdefs.h.  */
48501 int x, y, z;
48502 int
48503 main ()
48504 {
48505 volatile int a; int * volatile b = x ? &y : &z;
48506       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48507       *b = 0;
48508   ;
48509   return 0;
48510 }
48511 _ACEOF
48512 rm -f conftest.$ac_objext
48513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48514   (eval $ac_compile) 2>conftest.er1
48515   ac_status=$?
48516   grep -v '^ *+' conftest.er1 >conftest.err
48517   rm -f conftest.er1
48518   cat conftest.err >&5
48519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48520   (exit $ac_status); } &&
48521          { ac_try='test -z "$ac_c_werror_flag"
48522                          || test ! -s conftest.err'
48523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48524   (eval $ac_try) 2>&5
48525   ac_status=$?
48526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48527   (exit $ac_status); }; } &&
48528          { ac_try='test -s conftest.$ac_objext'
48529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48530   (eval $ac_try) 2>&5
48531   ac_status=$?
48532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48533   (exit $ac_status); }; }; then
48534   ol_cv_c_volatile=yes
48535 else
48536   echo "$as_me: failed program was:" >&5
48537 sed 's/^/| /' conftest.$ac_ext >&5
48538
48539 ol_cv_c_volatile=no
48540 fi
48541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48542 fi
48543 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48544 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48545   if test $ol_cv_c_volatile = yes; then
48546     :
48547   else
48548
48549 cat >>confdefs.h <<\_ACEOF
48550 #define volatile
48551 _ACEOF
48552
48553   fi
48554
48555
48556 if test $cross_compiling = yes ; then
48557         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48558 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48559
48560 cat >>confdefs.h <<\_ACEOF
48561 #define CROSS_COMPILING 1
48562 _ACEOF
48563
48564 else
48565         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48566 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48567 if test "${ac_cv_c_bigendian+set}" = set; then
48568   echo $ECHO_N "(cached) $ECHO_C" >&6
48569 else
48570   # See if sys/param.h defines the BYTE_ORDER macro.
48571 cat >conftest.$ac_ext <<_ACEOF
48572 /* confdefs.h.  */
48573 _ACEOF
48574 cat confdefs.h >>conftest.$ac_ext
48575 cat >>conftest.$ac_ext <<_ACEOF
48576 /* end confdefs.h.  */
48577 #include <sys/types.h>
48578 #include <sys/param.h>
48579
48580 int
48581 main ()
48582 {
48583 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48584  bogus endian macros
48585 #endif
48586
48587   ;
48588   return 0;
48589 }
48590 _ACEOF
48591 rm -f conftest.$ac_objext
48592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48593   (eval $ac_compile) 2>conftest.er1
48594   ac_status=$?
48595   grep -v '^ *+' conftest.er1 >conftest.err
48596   rm -f conftest.er1
48597   cat conftest.err >&5
48598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48599   (exit $ac_status); } &&
48600          { ac_try='test -z "$ac_c_werror_flag"
48601                          || test ! -s conftest.err'
48602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48603   (eval $ac_try) 2>&5
48604   ac_status=$?
48605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48606   (exit $ac_status); }; } &&
48607          { ac_try='test -s conftest.$ac_objext'
48608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48609   (eval $ac_try) 2>&5
48610   ac_status=$?
48611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48612   (exit $ac_status); }; }; then
48613   # It does; now see whether it defined to BIG_ENDIAN or not.
48614 cat >conftest.$ac_ext <<_ACEOF
48615 /* confdefs.h.  */
48616 _ACEOF
48617 cat confdefs.h >>conftest.$ac_ext
48618 cat >>conftest.$ac_ext <<_ACEOF
48619 /* end confdefs.h.  */
48620 #include <sys/types.h>
48621 #include <sys/param.h>
48622
48623 int
48624 main ()
48625 {
48626 #if BYTE_ORDER != BIG_ENDIAN
48627  not big endian
48628 #endif
48629
48630   ;
48631   return 0;
48632 }
48633 _ACEOF
48634 rm -f conftest.$ac_objext
48635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48636   (eval $ac_compile) 2>conftest.er1
48637   ac_status=$?
48638   grep -v '^ *+' conftest.er1 >conftest.err
48639   rm -f conftest.er1
48640   cat conftest.err >&5
48641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48642   (exit $ac_status); } &&
48643          { ac_try='test -z "$ac_c_werror_flag"
48644                          || test ! -s conftest.err'
48645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48646   (eval $ac_try) 2>&5
48647   ac_status=$?
48648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48649   (exit $ac_status); }; } &&
48650          { ac_try='test -s conftest.$ac_objext'
48651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48652   (eval $ac_try) 2>&5
48653   ac_status=$?
48654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48655   (exit $ac_status); }; }; then
48656   ac_cv_c_bigendian=yes
48657 else
48658   echo "$as_me: failed program was:" >&5
48659 sed 's/^/| /' conftest.$ac_ext >&5
48660
48661 ac_cv_c_bigendian=no
48662 fi
48663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48664 else
48665   echo "$as_me: failed program was:" >&5
48666 sed 's/^/| /' conftest.$ac_ext >&5
48667
48668 # It does not; compile a test program.
48669 if test "$cross_compiling" = yes; then
48670   # try to guess the endianness by grepping values into an object file
48671   ac_cv_c_bigendian=unknown
48672   cat >conftest.$ac_ext <<_ACEOF
48673 /* confdefs.h.  */
48674 _ACEOF
48675 cat confdefs.h >>conftest.$ac_ext
48676 cat >>conftest.$ac_ext <<_ACEOF
48677 /* end confdefs.h.  */
48678 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48679 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48680 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48681 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48682 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48683 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48684 int
48685 main ()
48686 {
48687  _ascii (); _ebcdic ();
48688   ;
48689   return 0;
48690 }
48691 _ACEOF
48692 rm -f conftest.$ac_objext
48693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48694   (eval $ac_compile) 2>conftest.er1
48695   ac_status=$?
48696   grep -v '^ *+' conftest.er1 >conftest.err
48697   rm -f conftest.er1
48698   cat conftest.err >&5
48699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48700   (exit $ac_status); } &&
48701          { ac_try='test -z "$ac_c_werror_flag"
48702                          || test ! -s conftest.err'
48703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48704   (eval $ac_try) 2>&5
48705   ac_status=$?
48706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48707   (exit $ac_status); }; } &&
48708          { ac_try='test -s conftest.$ac_objext'
48709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48710   (eval $ac_try) 2>&5
48711   ac_status=$?
48712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48713   (exit $ac_status); }; }; then
48714   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48715   ac_cv_c_bigendian=yes
48716 fi
48717 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48718   if test "$ac_cv_c_bigendian" = unknown; then
48719     ac_cv_c_bigendian=no
48720   else
48721     # finding both strings is unlikely to happen, but who knows?
48722     ac_cv_c_bigendian=unknown
48723   fi
48724 fi
48725 else
48726   echo "$as_me: failed program was:" >&5
48727 sed 's/^/| /' conftest.$ac_ext >&5
48728
48729 fi
48730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48731 else
48732   cat >conftest.$ac_ext <<_ACEOF
48733 /* confdefs.h.  */
48734 _ACEOF
48735 cat confdefs.h >>conftest.$ac_ext
48736 cat >>conftest.$ac_ext <<_ACEOF
48737 /* end confdefs.h.  */
48738 int
48739 main ()
48740 {
48741   /* Are we little or big endian?  From Harbison&Steele.  */
48742   union
48743   {
48744     long l;
48745     char c[sizeof (long)];
48746   } u;
48747   u.l = 1;
48748   exit (u.c[sizeof (long) - 1] == 1);
48749 }
48750 _ACEOF
48751 rm -f conftest$ac_exeext
48752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48753   (eval $ac_link) 2>&5
48754   ac_status=$?
48755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48756   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48758   (eval $ac_try) 2>&5
48759   ac_status=$?
48760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48761   (exit $ac_status); }; }; then
48762   ac_cv_c_bigendian=no
48763 else
48764   echo "$as_me: program exited with status $ac_status" >&5
48765 echo "$as_me: failed program was:" >&5
48766 sed 's/^/| /' conftest.$ac_ext >&5
48767
48768 ( exit $ac_status )
48769 ac_cv_c_bigendian=yes
48770 fi
48771 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48772 fi
48773 fi
48774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48775 fi
48776 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48777 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48778 case $ac_cv_c_bigendian in
48779   yes)
48780
48781 cat >>confdefs.h <<\_ACEOF
48782 #define WORDS_BIGENDIAN 1
48783 _ACEOF
48784  ;;
48785   no)
48786      ;;
48787   *)
48788     { { echo "$as_me:$LINENO: error: unknown endianness
48789 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48790 echo "$as_me: error: unknown endianness
48791 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48792    { (exit 1); exit 1; }; } ;;
48793 esac
48794
48795 fi
48796
48797 echo "$as_me:$LINENO: checking for short" >&5
48798 echo $ECHO_N "checking for short... $ECHO_C" >&6
48799 if test "${ac_cv_type_short+set}" = set; then
48800   echo $ECHO_N "(cached) $ECHO_C" >&6
48801 else
48802   cat >conftest.$ac_ext <<_ACEOF
48803 /* confdefs.h.  */
48804 _ACEOF
48805 cat confdefs.h >>conftest.$ac_ext
48806 cat >>conftest.$ac_ext <<_ACEOF
48807 /* end confdefs.h.  */
48808 $ac_includes_default
48809 int
48810 main ()
48811 {
48812 if ((short *) 0)
48813   return 0;
48814 if (sizeof (short))
48815   return 0;
48816   ;
48817   return 0;
48818 }
48819 _ACEOF
48820 rm -f conftest.$ac_objext
48821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48822   (eval $ac_compile) 2>conftest.er1
48823   ac_status=$?
48824   grep -v '^ *+' conftest.er1 >conftest.err
48825   rm -f conftest.er1
48826   cat conftest.err >&5
48827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48828   (exit $ac_status); } &&
48829          { ac_try='test -z "$ac_c_werror_flag"
48830                          || test ! -s conftest.err'
48831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48832   (eval $ac_try) 2>&5
48833   ac_status=$?
48834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48835   (exit $ac_status); }; } &&
48836          { ac_try='test -s conftest.$ac_objext'
48837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48838   (eval $ac_try) 2>&5
48839   ac_status=$?
48840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48841   (exit $ac_status); }; }; then
48842   ac_cv_type_short=yes
48843 else
48844   echo "$as_me: failed program was:" >&5
48845 sed 's/^/| /' conftest.$ac_ext >&5
48846
48847 ac_cv_type_short=no
48848 fi
48849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48850 fi
48851 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
48852 echo "${ECHO_T}$ac_cv_type_short" >&6
48853
48854 echo "$as_me:$LINENO: checking size of short" >&5
48855 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48856 if test "${ac_cv_sizeof_short+set}" = set; then
48857   echo $ECHO_N "(cached) $ECHO_C" >&6
48858 else
48859   if test "$ac_cv_type_short" = yes; then
48860   # The cast to unsigned long works around a bug in the HP C Compiler
48861   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
48862   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
48863   # This bug is HP SR number 8606223364.
48864   if test "$cross_compiling" = yes; then
48865   # Depending upon the size, compute the lo and hi bounds.
48866 cat >conftest.$ac_ext <<_ACEOF
48867 /* confdefs.h.  */
48868 _ACEOF
48869 cat confdefs.h >>conftest.$ac_ext
48870 cat >>conftest.$ac_ext <<_ACEOF
48871 /* end confdefs.h.  */
48872 $ac_includes_default
48873 int
48874 main ()
48875 {
48876 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
48877 test_array [0] = 0
48878
48879   ;
48880   return 0;
48881 }
48882 _ACEOF
48883 rm -f conftest.$ac_objext
48884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48885   (eval $ac_compile) 2>conftest.er1
48886   ac_status=$?
48887   grep -v '^ *+' conftest.er1 >conftest.err
48888   rm -f conftest.er1
48889   cat conftest.err >&5
48890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48891   (exit $ac_status); } &&
48892          { ac_try='test -z "$ac_c_werror_flag"
48893                          || test ! -s conftest.err'
48894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48895   (eval $ac_try) 2>&5
48896   ac_status=$?
48897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48898   (exit $ac_status); }; } &&
48899          { ac_try='test -s conftest.$ac_objext'
48900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48901   (eval $ac_try) 2>&5
48902   ac_status=$?
48903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48904   (exit $ac_status); }; }; then
48905   ac_lo=0 ac_mid=0
48906   while :; do
48907     cat >conftest.$ac_ext <<_ACEOF
48908 /* confdefs.h.  */
48909 _ACEOF
48910 cat confdefs.h >>conftest.$ac_ext
48911 cat >>conftest.$ac_ext <<_ACEOF
48912 /* end confdefs.h.  */
48913 $ac_includes_default
48914 int
48915 main ()
48916 {
48917 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
48918 test_array [0] = 0
48919
48920   ;
48921   return 0;
48922 }
48923 _ACEOF
48924 rm -f conftest.$ac_objext
48925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48926   (eval $ac_compile) 2>conftest.er1
48927   ac_status=$?
48928   grep -v '^ *+' conftest.er1 >conftest.err
48929   rm -f conftest.er1
48930   cat conftest.err >&5
48931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48932   (exit $ac_status); } &&
48933          { ac_try='test -z "$ac_c_werror_flag"
48934                          || test ! -s conftest.err'
48935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48936   (eval $ac_try) 2>&5
48937   ac_status=$?
48938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48939   (exit $ac_status); }; } &&
48940          { ac_try='test -s conftest.$ac_objext'
48941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48942   (eval $ac_try) 2>&5
48943   ac_status=$?
48944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48945   (exit $ac_status); }; }; then
48946   ac_hi=$ac_mid; break
48947 else
48948   echo "$as_me: failed program was:" >&5
48949 sed 's/^/| /' conftest.$ac_ext >&5
48950
48951 ac_lo=`expr $ac_mid + 1`
48952                     if test $ac_lo -le $ac_mid; then
48953                       ac_lo= ac_hi=
48954                       break
48955                     fi
48956                     ac_mid=`expr 2 '*' $ac_mid + 1`
48957 fi
48958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48959   done
48960 else
48961   echo "$as_me: failed program was:" >&5
48962 sed 's/^/| /' conftest.$ac_ext >&5
48963
48964 cat >conftest.$ac_ext <<_ACEOF
48965 /* confdefs.h.  */
48966 _ACEOF
48967 cat confdefs.h >>conftest.$ac_ext
48968 cat >>conftest.$ac_ext <<_ACEOF
48969 /* end confdefs.h.  */
48970 $ac_includes_default
48971 int
48972 main ()
48973 {
48974 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
48975 test_array [0] = 0
48976
48977   ;
48978   return 0;
48979 }
48980 _ACEOF
48981 rm -f conftest.$ac_objext
48982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48983   (eval $ac_compile) 2>conftest.er1
48984   ac_status=$?
48985   grep -v '^ *+' conftest.er1 >conftest.err
48986   rm -f conftest.er1
48987   cat conftest.err >&5
48988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48989   (exit $ac_status); } &&
48990          { ac_try='test -z "$ac_c_werror_flag"
48991                          || test ! -s conftest.err'
48992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48993   (eval $ac_try) 2>&5
48994   ac_status=$?
48995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48996   (exit $ac_status); }; } &&
48997          { ac_try='test -s conftest.$ac_objext'
48998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48999   (eval $ac_try) 2>&5
49000   ac_status=$?
49001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49002   (exit $ac_status); }; }; then
49003   ac_hi=-1 ac_mid=-1
49004   while :; do
49005     cat >conftest.$ac_ext <<_ACEOF
49006 /* confdefs.h.  */
49007 _ACEOF
49008 cat confdefs.h >>conftest.$ac_ext
49009 cat >>conftest.$ac_ext <<_ACEOF
49010 /* end confdefs.h.  */
49011 $ac_includes_default
49012 int
49013 main ()
49014 {
49015 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
49016 test_array [0] = 0
49017
49018   ;
49019   return 0;
49020 }
49021 _ACEOF
49022 rm -f conftest.$ac_objext
49023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49024   (eval $ac_compile) 2>conftest.er1
49025   ac_status=$?
49026   grep -v '^ *+' conftest.er1 >conftest.err
49027   rm -f conftest.er1
49028   cat conftest.err >&5
49029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49030   (exit $ac_status); } &&
49031          { ac_try='test -z "$ac_c_werror_flag"
49032                          || test ! -s conftest.err'
49033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49034   (eval $ac_try) 2>&5
49035   ac_status=$?
49036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49037   (exit $ac_status); }; } &&
49038          { ac_try='test -s conftest.$ac_objext'
49039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49040   (eval $ac_try) 2>&5
49041   ac_status=$?
49042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49043   (exit $ac_status); }; }; then
49044   ac_lo=$ac_mid; break
49045 else
49046   echo "$as_me: failed program was:" >&5
49047 sed 's/^/| /' conftest.$ac_ext >&5
49048
49049 ac_hi=`expr '(' $ac_mid ')' - 1`
49050                        if test $ac_mid -le $ac_hi; then
49051                          ac_lo= ac_hi=
49052                          break
49053                        fi
49054                        ac_mid=`expr 2 '*' $ac_mid`
49055 fi
49056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49057   done
49058 else
49059   echo "$as_me: failed program was:" >&5
49060 sed 's/^/| /' conftest.$ac_ext >&5
49061
49062 ac_lo= ac_hi=
49063 fi
49064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49065 fi
49066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49067 # Binary search between lo and hi bounds.
49068 while test "x$ac_lo" != "x$ac_hi"; do
49069   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49070   cat >conftest.$ac_ext <<_ACEOF
49071 /* confdefs.h.  */
49072 _ACEOF
49073 cat confdefs.h >>conftest.$ac_ext
49074 cat >>conftest.$ac_ext <<_ACEOF
49075 /* end confdefs.h.  */
49076 $ac_includes_default
49077 int
49078 main ()
49079 {
49080 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
49081 test_array [0] = 0
49082
49083   ;
49084   return 0;
49085 }
49086 _ACEOF
49087 rm -f conftest.$ac_objext
49088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49089   (eval $ac_compile) 2>conftest.er1
49090   ac_status=$?
49091   grep -v '^ *+' conftest.er1 >conftest.err
49092   rm -f conftest.er1
49093   cat conftest.err >&5
49094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49095   (exit $ac_status); } &&
49096          { ac_try='test -z "$ac_c_werror_flag"
49097                          || test ! -s conftest.err'
49098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49099   (eval $ac_try) 2>&5
49100   ac_status=$?
49101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49102   (exit $ac_status); }; } &&
49103          { ac_try='test -s conftest.$ac_objext'
49104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49105   (eval $ac_try) 2>&5
49106   ac_status=$?
49107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49108   (exit $ac_status); }; }; then
49109   ac_hi=$ac_mid
49110 else
49111   echo "$as_me: failed program was:" >&5
49112 sed 's/^/| /' conftest.$ac_ext >&5
49113
49114 ac_lo=`expr '(' $ac_mid ')' + 1`
49115 fi
49116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49117 done
49118 case $ac_lo in
49119 ?*) ac_cv_sizeof_short=$ac_lo;;
49120 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49121 See \`config.log' for more details." >&5
49122 echo "$as_me: error: cannot compute sizeof (short), 77
49123 See \`config.log' for more details." >&2;}
49124    { (exit 1); exit 1; }; } ;;
49125 esac
49126 else
49127   if test "$cross_compiling" = yes; then
49128   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49129 See \`config.log' for more details." >&5
49130 echo "$as_me: error: cannot run test program while cross compiling
49131 See \`config.log' for more details." >&2;}
49132    { (exit 1); exit 1; }; }
49133 else
49134   cat >conftest.$ac_ext <<_ACEOF
49135 /* confdefs.h.  */
49136 _ACEOF
49137 cat confdefs.h >>conftest.$ac_ext
49138 cat >>conftest.$ac_ext <<_ACEOF
49139 /* end confdefs.h.  */
49140 $ac_includes_default
49141 long longval () { return (long) (sizeof (short)); }
49142 unsigned long ulongval () { return (long) (sizeof (short)); }
49143 #include <stdio.h>
49144 #include <stdlib.h>
49145 int
49146 main ()
49147 {
49148
49149   FILE *f = fopen ("conftest.val", "w");
49150   if (! f)
49151     exit (1);
49152   if (((long) (sizeof (short))) < 0)
49153     {
49154       long i = longval ();
49155       if (i != ((long) (sizeof (short))))
49156         exit (1);
49157       fprintf (f, "%ld\n", i);
49158     }
49159   else
49160     {
49161       unsigned long i = ulongval ();
49162       if (i != ((long) (sizeof (short))))
49163         exit (1);
49164       fprintf (f, "%lu\n", i);
49165     }
49166   exit (ferror (f) || fclose (f) != 0);
49167
49168   ;
49169   return 0;
49170 }
49171 _ACEOF
49172 rm -f conftest$ac_exeext
49173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49174   (eval $ac_link) 2>&5
49175   ac_status=$?
49176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49177   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49179   (eval $ac_try) 2>&5
49180   ac_status=$?
49181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49182   (exit $ac_status); }; }; then
49183   ac_cv_sizeof_short=`cat conftest.val`
49184 else
49185   echo "$as_me: program exited with status $ac_status" >&5
49186 echo "$as_me: failed program was:" >&5
49187 sed 's/^/| /' conftest.$ac_ext >&5
49188
49189 ( exit $ac_status )
49190 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49191 See \`config.log' for more details." >&5
49192 echo "$as_me: error: cannot compute sizeof (short), 77
49193 See \`config.log' for more details." >&2;}
49194    { (exit 1); exit 1; }; }
49195 fi
49196 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49197 fi
49198 fi
49199 rm -f conftest.val
49200 else
49201   ac_cv_sizeof_short=0
49202 fi
49203 fi
49204 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
49205 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
49206 cat >>confdefs.h <<_ACEOF
49207 #define SIZEOF_SHORT $ac_cv_sizeof_short
49208 _ACEOF
49209
49210
49211 echo "$as_me:$LINENO: checking for int" >&5
49212 echo $ECHO_N "checking for int... $ECHO_C" >&6
49213 if test "${ac_cv_type_int+set}" = set; then
49214   echo $ECHO_N "(cached) $ECHO_C" >&6
49215 else
49216   cat >conftest.$ac_ext <<_ACEOF
49217 /* confdefs.h.  */
49218 _ACEOF
49219 cat confdefs.h >>conftest.$ac_ext
49220 cat >>conftest.$ac_ext <<_ACEOF
49221 /* end confdefs.h.  */
49222 $ac_includes_default
49223 int
49224 main ()
49225 {
49226 if ((int *) 0)
49227   return 0;
49228 if (sizeof (int))
49229   return 0;
49230   ;
49231   return 0;
49232 }
49233 _ACEOF
49234 rm -f conftest.$ac_objext
49235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49236   (eval $ac_compile) 2>conftest.er1
49237   ac_status=$?
49238   grep -v '^ *+' conftest.er1 >conftest.err
49239   rm -f conftest.er1
49240   cat conftest.err >&5
49241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49242   (exit $ac_status); } &&
49243          { ac_try='test -z "$ac_c_werror_flag"
49244                          || test ! -s conftest.err'
49245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49246   (eval $ac_try) 2>&5
49247   ac_status=$?
49248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49249   (exit $ac_status); }; } &&
49250          { ac_try='test -s conftest.$ac_objext'
49251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49252   (eval $ac_try) 2>&5
49253   ac_status=$?
49254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49255   (exit $ac_status); }; }; then
49256   ac_cv_type_int=yes
49257 else
49258   echo "$as_me: failed program was:" >&5
49259 sed 's/^/| /' conftest.$ac_ext >&5
49260
49261 ac_cv_type_int=no
49262 fi
49263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49264 fi
49265 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
49266 echo "${ECHO_T}$ac_cv_type_int" >&6
49267
49268 echo "$as_me:$LINENO: checking size of int" >&5
49269 echo $ECHO_N "checking size of int... $ECHO_C" >&6
49270 if test "${ac_cv_sizeof_int+set}" = set; then
49271   echo $ECHO_N "(cached) $ECHO_C" >&6
49272 else
49273   if test "$ac_cv_type_int" = yes; then
49274   # The cast to unsigned long works around a bug in the HP C Compiler
49275   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49276   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49277   # This bug is HP SR number 8606223364.
49278   if test "$cross_compiling" = yes; then
49279   # Depending upon the size, compute the lo and hi bounds.
49280 cat >conftest.$ac_ext <<_ACEOF
49281 /* confdefs.h.  */
49282 _ACEOF
49283 cat confdefs.h >>conftest.$ac_ext
49284 cat >>conftest.$ac_ext <<_ACEOF
49285 /* end confdefs.h.  */
49286 $ac_includes_default
49287 int
49288 main ()
49289 {
49290 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
49291 test_array [0] = 0
49292
49293   ;
49294   return 0;
49295 }
49296 _ACEOF
49297 rm -f conftest.$ac_objext
49298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49299   (eval $ac_compile) 2>conftest.er1
49300   ac_status=$?
49301   grep -v '^ *+' conftest.er1 >conftest.err
49302   rm -f conftest.er1
49303   cat conftest.err >&5
49304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49305   (exit $ac_status); } &&
49306          { ac_try='test -z "$ac_c_werror_flag"
49307                          || test ! -s conftest.err'
49308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49309   (eval $ac_try) 2>&5
49310   ac_status=$?
49311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49312   (exit $ac_status); }; } &&
49313          { ac_try='test -s conftest.$ac_objext'
49314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49315   (eval $ac_try) 2>&5
49316   ac_status=$?
49317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49318   (exit $ac_status); }; }; then
49319   ac_lo=0 ac_mid=0
49320   while :; do
49321     cat >conftest.$ac_ext <<_ACEOF
49322 /* confdefs.h.  */
49323 _ACEOF
49324 cat confdefs.h >>conftest.$ac_ext
49325 cat >>conftest.$ac_ext <<_ACEOF
49326 /* end confdefs.h.  */
49327 $ac_includes_default
49328 int
49329 main ()
49330 {
49331 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49332 test_array [0] = 0
49333
49334   ;
49335   return 0;
49336 }
49337 _ACEOF
49338 rm -f conftest.$ac_objext
49339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49340   (eval $ac_compile) 2>conftest.er1
49341   ac_status=$?
49342   grep -v '^ *+' conftest.er1 >conftest.err
49343   rm -f conftest.er1
49344   cat conftest.err >&5
49345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49346   (exit $ac_status); } &&
49347          { ac_try='test -z "$ac_c_werror_flag"
49348                          || test ! -s conftest.err'
49349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49350   (eval $ac_try) 2>&5
49351   ac_status=$?
49352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49353   (exit $ac_status); }; } &&
49354          { ac_try='test -s conftest.$ac_objext'
49355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49356   (eval $ac_try) 2>&5
49357   ac_status=$?
49358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49359   (exit $ac_status); }; }; then
49360   ac_hi=$ac_mid; break
49361 else
49362   echo "$as_me: failed program was:" >&5
49363 sed 's/^/| /' conftest.$ac_ext >&5
49364
49365 ac_lo=`expr $ac_mid + 1`
49366                     if test $ac_lo -le $ac_mid; then
49367                       ac_lo= ac_hi=
49368                       break
49369                     fi
49370                     ac_mid=`expr 2 '*' $ac_mid + 1`
49371 fi
49372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49373   done
49374 else
49375   echo "$as_me: failed program was:" >&5
49376 sed 's/^/| /' conftest.$ac_ext >&5
49377
49378 cat >conftest.$ac_ext <<_ACEOF
49379 /* confdefs.h.  */
49380 _ACEOF
49381 cat confdefs.h >>conftest.$ac_ext
49382 cat >>conftest.$ac_ext <<_ACEOF
49383 /* end confdefs.h.  */
49384 $ac_includes_default
49385 int
49386 main ()
49387 {
49388 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
49389 test_array [0] = 0
49390
49391   ;
49392   return 0;
49393 }
49394 _ACEOF
49395 rm -f conftest.$ac_objext
49396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49397   (eval $ac_compile) 2>conftest.er1
49398   ac_status=$?
49399   grep -v '^ *+' conftest.er1 >conftest.err
49400   rm -f conftest.er1
49401   cat conftest.err >&5
49402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49403   (exit $ac_status); } &&
49404          { ac_try='test -z "$ac_c_werror_flag"
49405                          || test ! -s conftest.err'
49406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49407   (eval $ac_try) 2>&5
49408   ac_status=$?
49409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49410   (exit $ac_status); }; } &&
49411          { ac_try='test -s conftest.$ac_objext'
49412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49413   (eval $ac_try) 2>&5
49414   ac_status=$?
49415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49416   (exit $ac_status); }; }; then
49417   ac_hi=-1 ac_mid=-1
49418   while :; do
49419     cat >conftest.$ac_ext <<_ACEOF
49420 /* confdefs.h.  */
49421 _ACEOF
49422 cat confdefs.h >>conftest.$ac_ext
49423 cat >>conftest.$ac_ext <<_ACEOF
49424 /* end confdefs.h.  */
49425 $ac_includes_default
49426 int
49427 main ()
49428 {
49429 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
49430 test_array [0] = 0
49431
49432   ;
49433   return 0;
49434 }
49435 _ACEOF
49436 rm -f conftest.$ac_objext
49437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49438   (eval $ac_compile) 2>conftest.er1
49439   ac_status=$?
49440   grep -v '^ *+' conftest.er1 >conftest.err
49441   rm -f conftest.er1
49442   cat conftest.err >&5
49443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49444   (exit $ac_status); } &&
49445          { ac_try='test -z "$ac_c_werror_flag"
49446                          || test ! -s conftest.err'
49447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49448   (eval $ac_try) 2>&5
49449   ac_status=$?
49450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49451   (exit $ac_status); }; } &&
49452          { ac_try='test -s conftest.$ac_objext'
49453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49454   (eval $ac_try) 2>&5
49455   ac_status=$?
49456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49457   (exit $ac_status); }; }; then
49458   ac_lo=$ac_mid; break
49459 else
49460   echo "$as_me: failed program was:" >&5
49461 sed 's/^/| /' conftest.$ac_ext >&5
49462
49463 ac_hi=`expr '(' $ac_mid ')' - 1`
49464                        if test $ac_mid -le $ac_hi; then
49465                          ac_lo= ac_hi=
49466                          break
49467                        fi
49468                        ac_mid=`expr 2 '*' $ac_mid`
49469 fi
49470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49471   done
49472 else
49473   echo "$as_me: failed program was:" >&5
49474 sed 's/^/| /' conftest.$ac_ext >&5
49475
49476 ac_lo= ac_hi=
49477 fi
49478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49479 fi
49480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49481 # Binary search between lo and hi bounds.
49482 while test "x$ac_lo" != "x$ac_hi"; do
49483   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49484   cat >conftest.$ac_ext <<_ACEOF
49485 /* confdefs.h.  */
49486 _ACEOF
49487 cat confdefs.h >>conftest.$ac_ext
49488 cat >>conftest.$ac_ext <<_ACEOF
49489 /* end confdefs.h.  */
49490 $ac_includes_default
49491 int
49492 main ()
49493 {
49494 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49495 test_array [0] = 0
49496
49497   ;
49498   return 0;
49499 }
49500 _ACEOF
49501 rm -f conftest.$ac_objext
49502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49503   (eval $ac_compile) 2>conftest.er1
49504   ac_status=$?
49505   grep -v '^ *+' conftest.er1 >conftest.err
49506   rm -f conftest.er1
49507   cat conftest.err >&5
49508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49509   (exit $ac_status); } &&
49510          { ac_try='test -z "$ac_c_werror_flag"
49511                          || test ! -s conftest.err'
49512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49513   (eval $ac_try) 2>&5
49514   ac_status=$?
49515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49516   (exit $ac_status); }; } &&
49517          { ac_try='test -s conftest.$ac_objext'
49518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49519   (eval $ac_try) 2>&5
49520   ac_status=$?
49521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49522   (exit $ac_status); }; }; then
49523   ac_hi=$ac_mid
49524 else
49525   echo "$as_me: failed program was:" >&5
49526 sed 's/^/| /' conftest.$ac_ext >&5
49527
49528 ac_lo=`expr '(' $ac_mid ')' + 1`
49529 fi
49530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49531 done
49532 case $ac_lo in
49533 ?*) ac_cv_sizeof_int=$ac_lo;;
49534 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49535 See \`config.log' for more details." >&5
49536 echo "$as_me: error: cannot compute sizeof (int), 77
49537 See \`config.log' for more details." >&2;}
49538    { (exit 1); exit 1; }; } ;;
49539 esac
49540 else
49541   if test "$cross_compiling" = yes; then
49542   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49543 See \`config.log' for more details." >&5
49544 echo "$as_me: error: cannot run test program while cross compiling
49545 See \`config.log' for more details." >&2;}
49546    { (exit 1); exit 1; }; }
49547 else
49548   cat >conftest.$ac_ext <<_ACEOF
49549 /* confdefs.h.  */
49550 _ACEOF
49551 cat confdefs.h >>conftest.$ac_ext
49552 cat >>conftest.$ac_ext <<_ACEOF
49553 /* end confdefs.h.  */
49554 $ac_includes_default
49555 long longval () { return (long) (sizeof (int)); }
49556 unsigned long ulongval () { return (long) (sizeof (int)); }
49557 #include <stdio.h>
49558 #include <stdlib.h>
49559 int
49560 main ()
49561 {
49562
49563   FILE *f = fopen ("conftest.val", "w");
49564   if (! f)
49565     exit (1);
49566   if (((long) (sizeof (int))) < 0)
49567     {
49568       long i = longval ();
49569       if (i != ((long) (sizeof (int))))
49570         exit (1);
49571       fprintf (f, "%ld\n", i);
49572     }
49573   else
49574     {
49575       unsigned long i = ulongval ();
49576       if (i != ((long) (sizeof (int))))
49577         exit (1);
49578       fprintf (f, "%lu\n", i);
49579     }
49580   exit (ferror (f) || fclose (f) != 0);
49581
49582   ;
49583   return 0;
49584 }
49585 _ACEOF
49586 rm -f conftest$ac_exeext
49587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49588   (eval $ac_link) 2>&5
49589   ac_status=$?
49590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49591   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49593   (eval $ac_try) 2>&5
49594   ac_status=$?
49595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49596   (exit $ac_status); }; }; then
49597   ac_cv_sizeof_int=`cat conftest.val`
49598 else
49599   echo "$as_me: program exited with status $ac_status" >&5
49600 echo "$as_me: failed program was:" >&5
49601 sed 's/^/| /' conftest.$ac_ext >&5
49602
49603 ( exit $ac_status )
49604 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49605 See \`config.log' for more details." >&5
49606 echo "$as_me: error: cannot compute sizeof (int), 77
49607 See \`config.log' for more details." >&2;}
49608    { (exit 1); exit 1; }; }
49609 fi
49610 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49611 fi
49612 fi
49613 rm -f conftest.val
49614 else
49615   ac_cv_sizeof_int=0
49616 fi
49617 fi
49618 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
49619 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
49620 cat >>confdefs.h <<_ACEOF
49621 #define SIZEOF_INT $ac_cv_sizeof_int
49622 _ACEOF
49623
49624
49625 echo "$as_me:$LINENO: checking for long" >&5
49626 echo $ECHO_N "checking for long... $ECHO_C" >&6
49627 if test "${ac_cv_type_long+set}" = set; then
49628   echo $ECHO_N "(cached) $ECHO_C" >&6
49629 else
49630   cat >conftest.$ac_ext <<_ACEOF
49631 /* confdefs.h.  */
49632 _ACEOF
49633 cat confdefs.h >>conftest.$ac_ext
49634 cat >>conftest.$ac_ext <<_ACEOF
49635 /* end confdefs.h.  */
49636 $ac_includes_default
49637 int
49638 main ()
49639 {
49640 if ((long *) 0)
49641   return 0;
49642 if (sizeof (long))
49643   return 0;
49644   ;
49645   return 0;
49646 }
49647 _ACEOF
49648 rm -f conftest.$ac_objext
49649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49650   (eval $ac_compile) 2>conftest.er1
49651   ac_status=$?
49652   grep -v '^ *+' conftest.er1 >conftest.err
49653   rm -f conftest.er1
49654   cat conftest.err >&5
49655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49656   (exit $ac_status); } &&
49657          { ac_try='test -z "$ac_c_werror_flag"
49658                          || test ! -s conftest.err'
49659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49660   (eval $ac_try) 2>&5
49661   ac_status=$?
49662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49663   (exit $ac_status); }; } &&
49664          { ac_try='test -s conftest.$ac_objext'
49665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49666   (eval $ac_try) 2>&5
49667   ac_status=$?
49668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49669   (exit $ac_status); }; }; then
49670   ac_cv_type_long=yes
49671 else
49672   echo "$as_me: failed program was:" >&5
49673 sed 's/^/| /' conftest.$ac_ext >&5
49674
49675 ac_cv_type_long=no
49676 fi
49677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49678 fi
49679 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
49680 echo "${ECHO_T}$ac_cv_type_long" >&6
49681
49682 echo "$as_me:$LINENO: checking size of long" >&5
49683 echo $ECHO_N "checking size of long... $ECHO_C" >&6
49684 if test "${ac_cv_sizeof_long+set}" = set; then
49685   echo $ECHO_N "(cached) $ECHO_C" >&6
49686 else
49687   if test "$ac_cv_type_long" = yes; then
49688   # The cast to unsigned long works around a bug in the HP C Compiler
49689   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49690   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49691   # This bug is HP SR number 8606223364.
49692   if test "$cross_compiling" = yes; then
49693   # Depending upon the size, compute the lo and hi bounds.
49694 cat >conftest.$ac_ext <<_ACEOF
49695 /* confdefs.h.  */
49696 _ACEOF
49697 cat confdefs.h >>conftest.$ac_ext
49698 cat >>conftest.$ac_ext <<_ACEOF
49699 /* end confdefs.h.  */
49700 $ac_includes_default
49701 int
49702 main ()
49703 {
49704 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
49705 test_array [0] = 0
49706
49707   ;
49708   return 0;
49709 }
49710 _ACEOF
49711 rm -f conftest.$ac_objext
49712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49713   (eval $ac_compile) 2>conftest.er1
49714   ac_status=$?
49715   grep -v '^ *+' conftest.er1 >conftest.err
49716   rm -f conftest.er1
49717   cat conftest.err >&5
49718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49719   (exit $ac_status); } &&
49720          { ac_try='test -z "$ac_c_werror_flag"
49721                          || test ! -s conftest.err'
49722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49723   (eval $ac_try) 2>&5
49724   ac_status=$?
49725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49726   (exit $ac_status); }; } &&
49727          { ac_try='test -s conftest.$ac_objext'
49728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49729   (eval $ac_try) 2>&5
49730   ac_status=$?
49731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49732   (exit $ac_status); }; }; then
49733   ac_lo=0 ac_mid=0
49734   while :; do
49735     cat >conftest.$ac_ext <<_ACEOF
49736 /* confdefs.h.  */
49737 _ACEOF
49738 cat confdefs.h >>conftest.$ac_ext
49739 cat >>conftest.$ac_ext <<_ACEOF
49740 /* end confdefs.h.  */
49741 $ac_includes_default
49742 int
49743 main ()
49744 {
49745 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49746 test_array [0] = 0
49747
49748   ;
49749   return 0;
49750 }
49751 _ACEOF
49752 rm -f conftest.$ac_objext
49753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49754   (eval $ac_compile) 2>conftest.er1
49755   ac_status=$?
49756   grep -v '^ *+' conftest.er1 >conftest.err
49757   rm -f conftest.er1
49758   cat conftest.err >&5
49759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49760   (exit $ac_status); } &&
49761          { ac_try='test -z "$ac_c_werror_flag"
49762                          || test ! -s conftest.err'
49763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49764   (eval $ac_try) 2>&5
49765   ac_status=$?
49766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49767   (exit $ac_status); }; } &&
49768          { ac_try='test -s conftest.$ac_objext'
49769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49770   (eval $ac_try) 2>&5
49771   ac_status=$?
49772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49773   (exit $ac_status); }; }; then
49774   ac_hi=$ac_mid; break
49775 else
49776   echo "$as_me: failed program was:" >&5
49777 sed 's/^/| /' conftest.$ac_ext >&5
49778
49779 ac_lo=`expr $ac_mid + 1`
49780                     if test $ac_lo -le $ac_mid; then
49781                       ac_lo= ac_hi=
49782                       break
49783                     fi
49784                     ac_mid=`expr 2 '*' $ac_mid + 1`
49785 fi
49786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49787   done
49788 else
49789   echo "$as_me: failed program was:" >&5
49790 sed 's/^/| /' conftest.$ac_ext >&5
49791
49792 cat >conftest.$ac_ext <<_ACEOF
49793 /* confdefs.h.  */
49794 _ACEOF
49795 cat confdefs.h >>conftest.$ac_ext
49796 cat >>conftest.$ac_ext <<_ACEOF
49797 /* end confdefs.h.  */
49798 $ac_includes_default
49799 int
49800 main ()
49801 {
49802 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
49803 test_array [0] = 0
49804
49805   ;
49806   return 0;
49807 }
49808 _ACEOF
49809 rm -f conftest.$ac_objext
49810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49811   (eval $ac_compile) 2>conftest.er1
49812   ac_status=$?
49813   grep -v '^ *+' conftest.er1 >conftest.err
49814   rm -f conftest.er1
49815   cat conftest.err >&5
49816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49817   (exit $ac_status); } &&
49818          { ac_try='test -z "$ac_c_werror_flag"
49819                          || test ! -s conftest.err'
49820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49821   (eval $ac_try) 2>&5
49822   ac_status=$?
49823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49824   (exit $ac_status); }; } &&
49825          { ac_try='test -s conftest.$ac_objext'
49826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49827   (eval $ac_try) 2>&5
49828   ac_status=$?
49829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49830   (exit $ac_status); }; }; then
49831   ac_hi=-1 ac_mid=-1
49832   while :; do
49833     cat >conftest.$ac_ext <<_ACEOF
49834 /* confdefs.h.  */
49835 _ACEOF
49836 cat confdefs.h >>conftest.$ac_ext
49837 cat >>conftest.$ac_ext <<_ACEOF
49838 /* end confdefs.h.  */
49839 $ac_includes_default
49840 int
49841 main ()
49842 {
49843 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
49844 test_array [0] = 0
49845
49846   ;
49847   return 0;
49848 }
49849 _ACEOF
49850 rm -f conftest.$ac_objext
49851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49852   (eval $ac_compile) 2>conftest.er1
49853   ac_status=$?
49854   grep -v '^ *+' conftest.er1 >conftest.err
49855   rm -f conftest.er1
49856   cat conftest.err >&5
49857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49858   (exit $ac_status); } &&
49859          { ac_try='test -z "$ac_c_werror_flag"
49860                          || test ! -s conftest.err'
49861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49862   (eval $ac_try) 2>&5
49863   ac_status=$?
49864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49865   (exit $ac_status); }; } &&
49866          { ac_try='test -s conftest.$ac_objext'
49867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49868   (eval $ac_try) 2>&5
49869   ac_status=$?
49870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49871   (exit $ac_status); }; }; then
49872   ac_lo=$ac_mid; break
49873 else
49874   echo "$as_me: failed program was:" >&5
49875 sed 's/^/| /' conftest.$ac_ext >&5
49876
49877 ac_hi=`expr '(' $ac_mid ')' - 1`
49878                        if test $ac_mid -le $ac_hi; then
49879                          ac_lo= ac_hi=
49880                          break
49881                        fi
49882                        ac_mid=`expr 2 '*' $ac_mid`
49883 fi
49884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49885   done
49886 else
49887   echo "$as_me: failed program was:" >&5
49888 sed 's/^/| /' conftest.$ac_ext >&5
49889
49890 ac_lo= ac_hi=
49891 fi
49892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49893 fi
49894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49895 # Binary search between lo and hi bounds.
49896 while test "x$ac_lo" != "x$ac_hi"; do
49897   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49898   cat >conftest.$ac_ext <<_ACEOF
49899 /* confdefs.h.  */
49900 _ACEOF
49901 cat confdefs.h >>conftest.$ac_ext
49902 cat >>conftest.$ac_ext <<_ACEOF
49903 /* end confdefs.h.  */
49904 $ac_includes_default
49905 int
49906 main ()
49907 {
49908 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49909 test_array [0] = 0
49910
49911   ;
49912   return 0;
49913 }
49914 _ACEOF
49915 rm -f conftest.$ac_objext
49916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49917   (eval $ac_compile) 2>conftest.er1
49918   ac_status=$?
49919   grep -v '^ *+' conftest.er1 >conftest.err
49920   rm -f conftest.er1
49921   cat conftest.err >&5
49922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49923   (exit $ac_status); } &&
49924          { ac_try='test -z "$ac_c_werror_flag"
49925                          || test ! -s conftest.err'
49926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49927   (eval $ac_try) 2>&5
49928   ac_status=$?
49929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49930   (exit $ac_status); }; } &&
49931          { ac_try='test -s conftest.$ac_objext'
49932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49933   (eval $ac_try) 2>&5
49934   ac_status=$?
49935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49936   (exit $ac_status); }; }; then
49937   ac_hi=$ac_mid
49938 else
49939   echo "$as_me: failed program was:" >&5
49940 sed 's/^/| /' conftest.$ac_ext >&5
49941
49942 ac_lo=`expr '(' $ac_mid ')' + 1`
49943 fi
49944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49945 done
49946 case $ac_lo in
49947 ?*) ac_cv_sizeof_long=$ac_lo;;
49948 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
49949 See \`config.log' for more details." >&5
49950 echo "$as_me: error: cannot compute sizeof (long), 77
49951 See \`config.log' for more details." >&2;}
49952    { (exit 1); exit 1; }; } ;;
49953 esac
49954 else
49955   if test "$cross_compiling" = yes; then
49956   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49957 See \`config.log' for more details." >&5
49958 echo "$as_me: error: cannot run test program while cross compiling
49959 See \`config.log' for more details." >&2;}
49960    { (exit 1); exit 1; }; }
49961 else
49962   cat >conftest.$ac_ext <<_ACEOF
49963 /* confdefs.h.  */
49964 _ACEOF
49965 cat confdefs.h >>conftest.$ac_ext
49966 cat >>conftest.$ac_ext <<_ACEOF
49967 /* end confdefs.h.  */
49968 $ac_includes_default
49969 long longval () { return (long) (sizeof (long)); }
49970 unsigned long ulongval () { return (long) (sizeof (long)); }
49971 #include <stdio.h>
49972 #include <stdlib.h>
49973 int
49974 main ()
49975 {
49976
49977   FILE *f = fopen ("conftest.val", "w");
49978   if (! f)
49979     exit (1);
49980   if (((long) (sizeof (long))) < 0)
49981     {
49982       long i = longval ();
49983       if (i != ((long) (sizeof (long))))
49984         exit (1);
49985       fprintf (f, "%ld\n", i);
49986     }
49987   else
49988     {
49989       unsigned long i = ulongval ();
49990       if (i != ((long) (sizeof (long))))
49991         exit (1);
49992       fprintf (f, "%lu\n", i);
49993     }
49994   exit (ferror (f) || fclose (f) != 0);
49995
49996   ;
49997   return 0;
49998 }
49999 _ACEOF
50000 rm -f conftest$ac_exeext
50001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50002   (eval $ac_link) 2>&5
50003   ac_status=$?
50004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50005   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50007   (eval $ac_try) 2>&5
50008   ac_status=$?
50009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50010   (exit $ac_status); }; }; then
50011   ac_cv_sizeof_long=`cat conftest.val`
50012 else
50013   echo "$as_me: program exited with status $ac_status" >&5
50014 echo "$as_me: failed program was:" >&5
50015 sed 's/^/| /' conftest.$ac_ext >&5
50016
50017 ( exit $ac_status )
50018 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
50019 See \`config.log' for more details." >&5
50020 echo "$as_me: error: cannot compute sizeof (long), 77
50021 See \`config.log' for more details." >&2;}
50022    { (exit 1); exit 1; }; }
50023 fi
50024 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50025 fi
50026 fi
50027 rm -f conftest.val
50028 else
50029   ac_cv_sizeof_long=0
50030 fi
50031 fi
50032 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
50033 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
50034 cat >>confdefs.h <<_ACEOF
50035 #define SIZEOF_LONG $ac_cv_sizeof_long
50036 _ACEOF
50037
50038
50039 echo "$as_me:$LINENO: checking for wchar_t" >&5
50040 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
50041 if test "${ac_cv_type_wchar_t+set}" = set; then
50042   echo $ECHO_N "(cached) $ECHO_C" >&6
50043 else
50044   cat >conftest.$ac_ext <<_ACEOF
50045 /* confdefs.h.  */
50046 _ACEOF
50047 cat confdefs.h >>conftest.$ac_ext
50048 cat >>conftest.$ac_ext <<_ACEOF
50049 /* end confdefs.h.  */
50050 $ac_includes_default
50051 int
50052 main ()
50053 {
50054 if ((wchar_t *) 0)
50055   return 0;
50056 if (sizeof (wchar_t))
50057   return 0;
50058   ;
50059   return 0;
50060 }
50061 _ACEOF
50062 rm -f conftest.$ac_objext
50063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50064   (eval $ac_compile) 2>conftest.er1
50065   ac_status=$?
50066   grep -v '^ *+' conftest.er1 >conftest.err
50067   rm -f conftest.er1
50068   cat conftest.err >&5
50069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50070   (exit $ac_status); } &&
50071          { ac_try='test -z "$ac_c_werror_flag"
50072                          || test ! -s conftest.err'
50073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50074   (eval $ac_try) 2>&5
50075   ac_status=$?
50076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50077   (exit $ac_status); }; } &&
50078          { ac_try='test -s conftest.$ac_objext'
50079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50080   (eval $ac_try) 2>&5
50081   ac_status=$?
50082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50083   (exit $ac_status); }; }; then
50084   ac_cv_type_wchar_t=yes
50085 else
50086   echo "$as_me: failed program was:" >&5
50087 sed 's/^/| /' conftest.$ac_ext >&5
50088
50089 ac_cv_type_wchar_t=no
50090 fi
50091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50092 fi
50093 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
50094 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
50095
50096 echo "$as_me:$LINENO: checking size of wchar_t" >&5
50097 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
50098 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
50099   echo $ECHO_N "(cached) $ECHO_C" >&6
50100 else
50101   if test "$ac_cv_type_wchar_t" = yes; then
50102   # The cast to unsigned long works around a bug in the HP C Compiler
50103   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50104   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50105   # This bug is HP SR number 8606223364.
50106   if test "$cross_compiling" = yes; then
50107   # Depending upon the size, compute the lo and hi bounds.
50108 cat >conftest.$ac_ext <<_ACEOF
50109 /* confdefs.h.  */
50110 _ACEOF
50111 cat confdefs.h >>conftest.$ac_ext
50112 cat >>conftest.$ac_ext <<_ACEOF
50113 /* end confdefs.h.  */
50114 $ac_includes_default
50115 int
50116 main ()
50117 {
50118 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
50119 test_array [0] = 0
50120
50121   ;
50122   return 0;
50123 }
50124 _ACEOF
50125 rm -f conftest.$ac_objext
50126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50127   (eval $ac_compile) 2>conftest.er1
50128   ac_status=$?
50129   grep -v '^ *+' conftest.er1 >conftest.err
50130   rm -f conftest.er1
50131   cat conftest.err >&5
50132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50133   (exit $ac_status); } &&
50134          { ac_try='test -z "$ac_c_werror_flag"
50135                          || test ! -s conftest.err'
50136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50137   (eval $ac_try) 2>&5
50138   ac_status=$?
50139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50140   (exit $ac_status); }; } &&
50141          { ac_try='test -s conftest.$ac_objext'
50142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50143   (eval $ac_try) 2>&5
50144   ac_status=$?
50145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50146   (exit $ac_status); }; }; then
50147   ac_lo=0 ac_mid=0
50148   while :; do
50149     cat >conftest.$ac_ext <<_ACEOF
50150 /* confdefs.h.  */
50151 _ACEOF
50152 cat confdefs.h >>conftest.$ac_ext
50153 cat >>conftest.$ac_ext <<_ACEOF
50154 /* end confdefs.h.  */
50155 $ac_includes_default
50156 int
50157 main ()
50158 {
50159 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50160 test_array [0] = 0
50161
50162   ;
50163   return 0;
50164 }
50165 _ACEOF
50166 rm -f conftest.$ac_objext
50167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50168   (eval $ac_compile) 2>conftest.er1
50169   ac_status=$?
50170   grep -v '^ *+' conftest.er1 >conftest.err
50171   rm -f conftest.er1
50172   cat conftest.err >&5
50173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50174   (exit $ac_status); } &&
50175          { ac_try='test -z "$ac_c_werror_flag"
50176                          || test ! -s conftest.err'
50177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50178   (eval $ac_try) 2>&5
50179   ac_status=$?
50180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50181   (exit $ac_status); }; } &&
50182          { ac_try='test -s conftest.$ac_objext'
50183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50184   (eval $ac_try) 2>&5
50185   ac_status=$?
50186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50187   (exit $ac_status); }; }; then
50188   ac_hi=$ac_mid; break
50189 else
50190   echo "$as_me: failed program was:" >&5
50191 sed 's/^/| /' conftest.$ac_ext >&5
50192
50193 ac_lo=`expr $ac_mid + 1`
50194                     if test $ac_lo -le $ac_mid; then
50195                       ac_lo= ac_hi=
50196                       break
50197                     fi
50198                     ac_mid=`expr 2 '*' $ac_mid + 1`
50199 fi
50200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50201   done
50202 else
50203   echo "$as_me: failed program was:" >&5
50204 sed 's/^/| /' conftest.$ac_ext >&5
50205
50206 cat >conftest.$ac_ext <<_ACEOF
50207 /* confdefs.h.  */
50208 _ACEOF
50209 cat confdefs.h >>conftest.$ac_ext
50210 cat >>conftest.$ac_ext <<_ACEOF
50211 /* end confdefs.h.  */
50212 $ac_includes_default
50213 int
50214 main ()
50215 {
50216 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
50217 test_array [0] = 0
50218
50219   ;
50220   return 0;
50221 }
50222 _ACEOF
50223 rm -f conftest.$ac_objext
50224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50225   (eval $ac_compile) 2>conftest.er1
50226   ac_status=$?
50227   grep -v '^ *+' conftest.er1 >conftest.err
50228   rm -f conftest.er1
50229   cat conftest.err >&5
50230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50231   (exit $ac_status); } &&
50232          { ac_try='test -z "$ac_c_werror_flag"
50233                          || test ! -s conftest.err'
50234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50235   (eval $ac_try) 2>&5
50236   ac_status=$?
50237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50238   (exit $ac_status); }; } &&
50239          { ac_try='test -s conftest.$ac_objext'
50240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50241   (eval $ac_try) 2>&5
50242   ac_status=$?
50243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50244   (exit $ac_status); }; }; then
50245   ac_hi=-1 ac_mid=-1
50246   while :; do
50247     cat >conftest.$ac_ext <<_ACEOF
50248 /* confdefs.h.  */
50249 _ACEOF
50250 cat confdefs.h >>conftest.$ac_ext
50251 cat >>conftest.$ac_ext <<_ACEOF
50252 /* end confdefs.h.  */
50253 $ac_includes_default
50254 int
50255 main ()
50256 {
50257 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
50258 test_array [0] = 0
50259
50260   ;
50261   return 0;
50262 }
50263 _ACEOF
50264 rm -f conftest.$ac_objext
50265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50266   (eval $ac_compile) 2>conftest.er1
50267   ac_status=$?
50268   grep -v '^ *+' conftest.er1 >conftest.err
50269   rm -f conftest.er1
50270   cat conftest.err >&5
50271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50272   (exit $ac_status); } &&
50273          { ac_try='test -z "$ac_c_werror_flag"
50274                          || test ! -s conftest.err'
50275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50276   (eval $ac_try) 2>&5
50277   ac_status=$?
50278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50279   (exit $ac_status); }; } &&
50280          { ac_try='test -s conftest.$ac_objext'
50281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50282   (eval $ac_try) 2>&5
50283   ac_status=$?
50284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50285   (exit $ac_status); }; }; then
50286   ac_lo=$ac_mid; break
50287 else
50288   echo "$as_me: failed program was:" >&5
50289 sed 's/^/| /' conftest.$ac_ext >&5
50290
50291 ac_hi=`expr '(' $ac_mid ')' - 1`
50292                        if test $ac_mid -le $ac_hi; then
50293                          ac_lo= ac_hi=
50294                          break
50295                        fi
50296                        ac_mid=`expr 2 '*' $ac_mid`
50297 fi
50298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50299   done
50300 else
50301   echo "$as_me: failed program was:" >&5
50302 sed 's/^/| /' conftest.$ac_ext >&5
50303
50304 ac_lo= ac_hi=
50305 fi
50306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50307 fi
50308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50309 # Binary search between lo and hi bounds.
50310 while test "x$ac_lo" != "x$ac_hi"; do
50311   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50312   cat >conftest.$ac_ext <<_ACEOF
50313 /* confdefs.h.  */
50314 _ACEOF
50315 cat confdefs.h >>conftest.$ac_ext
50316 cat >>conftest.$ac_ext <<_ACEOF
50317 /* end confdefs.h.  */
50318 $ac_includes_default
50319 int
50320 main ()
50321 {
50322 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50323 test_array [0] = 0
50324
50325   ;
50326   return 0;
50327 }
50328 _ACEOF
50329 rm -f conftest.$ac_objext
50330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50331   (eval $ac_compile) 2>conftest.er1
50332   ac_status=$?
50333   grep -v '^ *+' conftest.er1 >conftest.err
50334   rm -f conftest.er1
50335   cat conftest.err >&5
50336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50337   (exit $ac_status); } &&
50338          { ac_try='test -z "$ac_c_werror_flag"
50339                          || test ! -s conftest.err'
50340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50341   (eval $ac_try) 2>&5
50342   ac_status=$?
50343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50344   (exit $ac_status); }; } &&
50345          { ac_try='test -s conftest.$ac_objext'
50346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50347   (eval $ac_try) 2>&5
50348   ac_status=$?
50349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50350   (exit $ac_status); }; }; then
50351   ac_hi=$ac_mid
50352 else
50353   echo "$as_me: failed program was:" >&5
50354 sed 's/^/| /' conftest.$ac_ext >&5
50355
50356 ac_lo=`expr '(' $ac_mid ')' + 1`
50357 fi
50358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50359 done
50360 case $ac_lo in
50361 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
50362 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50363 See \`config.log' for more details." >&5
50364 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50365 See \`config.log' for more details." >&2;}
50366    { (exit 1); exit 1; }; } ;;
50367 esac
50368 else
50369   if test "$cross_compiling" = yes; then
50370   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50371 See \`config.log' for more details." >&5
50372 echo "$as_me: error: cannot run test program while cross compiling
50373 See \`config.log' for more details." >&2;}
50374    { (exit 1); exit 1; }; }
50375 else
50376   cat >conftest.$ac_ext <<_ACEOF
50377 /* confdefs.h.  */
50378 _ACEOF
50379 cat confdefs.h >>conftest.$ac_ext
50380 cat >>conftest.$ac_ext <<_ACEOF
50381 /* end confdefs.h.  */
50382 $ac_includes_default
50383 long longval () { return (long) (sizeof (wchar_t)); }
50384 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
50385 #include <stdio.h>
50386 #include <stdlib.h>
50387 int
50388 main ()
50389 {
50390
50391   FILE *f = fopen ("conftest.val", "w");
50392   if (! f)
50393     exit (1);
50394   if (((long) (sizeof (wchar_t))) < 0)
50395     {
50396       long i = longval ();
50397       if (i != ((long) (sizeof (wchar_t))))
50398         exit (1);
50399       fprintf (f, "%ld\n", i);
50400     }
50401   else
50402     {
50403       unsigned long i = ulongval ();
50404       if (i != ((long) (sizeof (wchar_t))))
50405         exit (1);
50406       fprintf (f, "%lu\n", i);
50407     }
50408   exit (ferror (f) || fclose (f) != 0);
50409
50410   ;
50411   return 0;
50412 }
50413 _ACEOF
50414 rm -f conftest$ac_exeext
50415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50416   (eval $ac_link) 2>&5
50417   ac_status=$?
50418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50419   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50421   (eval $ac_try) 2>&5
50422   ac_status=$?
50423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50424   (exit $ac_status); }; }; then
50425   ac_cv_sizeof_wchar_t=`cat conftest.val`
50426 else
50427   echo "$as_me: program exited with status $ac_status" >&5
50428 echo "$as_me: failed program was:" >&5
50429 sed 's/^/| /' conftest.$ac_ext >&5
50430
50431 ( exit $ac_status )
50432 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50433 See \`config.log' for more details." >&5
50434 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50435 See \`config.log' for more details." >&2;}
50436    { (exit 1); exit 1; }; }
50437 fi
50438 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50439 fi
50440 fi
50441 rm -f conftest.val
50442 else
50443   ac_cv_sizeof_wchar_t=0
50444 fi
50445 fi
50446 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
50447 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
50448 cat >>confdefs.h <<_ACEOF
50449 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
50450 _ACEOF
50451
50452
50453
50454 if test "$ac_cv_sizeof_int" -lt 4 ; then
50455         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
50456 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
50457
50458
50459 cat >>confdefs.h <<\_ACEOF
50460 #define LBER_INT_T long
50461 _ACEOF
50462
50463 else
50464
50465 cat >>confdefs.h <<\_ACEOF
50466 #define LBER_INT_T int
50467 _ACEOF
50468
50469 fi
50470
50471
50472 cat >>confdefs.h <<\_ACEOF
50473 #define LBER_LEN_T long
50474 _ACEOF
50475
50476
50477 cat >>confdefs.h <<\_ACEOF
50478 #define LBER_SOCKET_T int
50479 _ACEOF
50480
50481
50482 cat >>confdefs.h <<\_ACEOF
50483 #define LBER_TAG_T long
50484 _ACEOF
50485
50486
50487 echo "$as_me:$LINENO: checking for working memcmp" >&5
50488 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
50489 if test "${ac_cv_func_memcmp_working+set}" = set; then
50490   echo $ECHO_N "(cached) $ECHO_C" >&6
50491 else
50492   if test "$cross_compiling" = yes; then
50493   ac_cv_func_memcmp_working=no
50494 else
50495   cat >conftest.$ac_ext <<_ACEOF
50496 /* confdefs.h.  */
50497 _ACEOF
50498 cat confdefs.h >>conftest.$ac_ext
50499 cat >>conftest.$ac_ext <<_ACEOF
50500 /* end confdefs.h.  */
50501 $ac_includes_default
50502 int
50503 main ()
50504 {
50505
50506   /* Some versions of memcmp are not 8-bit clean.  */
50507   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
50508   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
50509     exit (1);
50510
50511   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
50512      or more and with at least one buffer not starting on a 4-byte boundary.
50513      William Lewis provided this test program.   */
50514   {
50515     char foo[21];
50516     char bar[21];
50517     int i;
50518     for (i = 0; i < 4; i++)
50519       {
50520         char *a = foo + i;
50521         char *b = bar + i;
50522         strcpy (a, "--------01111111");
50523         strcpy (b, "--------10000000");
50524         if (memcmp (a, b, 16) >= 0)
50525           exit (1);
50526       }
50527     exit (0);
50528   }
50529
50530   ;
50531   return 0;
50532 }
50533 _ACEOF
50534 rm -f conftest$ac_exeext
50535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50536   (eval $ac_link) 2>&5
50537   ac_status=$?
50538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50539   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50541   (eval $ac_try) 2>&5
50542   ac_status=$?
50543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50544   (exit $ac_status); }; }; then
50545   ac_cv_func_memcmp_working=yes
50546 else
50547   echo "$as_me: program exited with status $ac_status" >&5
50548 echo "$as_me: failed program was:" >&5
50549 sed 's/^/| /' conftest.$ac_ext >&5
50550
50551 ( exit $ac_status )
50552 ac_cv_func_memcmp_working=no
50553 fi
50554 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50555 fi
50556 fi
50557 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
50558 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
50559 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
50560     "memcmp.$ac_objext"   | \
50561   *" memcmp.$ac_objext"   | \
50562     "memcmp.$ac_objext "* | \
50563   *" memcmp.$ac_objext "* ) ;;
50564   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
50565 esac
50566
50567
50568
50569 if test $ac_cv_func_memcmp_working = no ; then
50570
50571 cat >>confdefs.h <<\_ACEOF
50572 #define NEED_MEMCMP_REPLACEMENT 1
50573 _ACEOF
50574
50575 fi
50576
50577
50578 for ac_func in strftime
50579 do
50580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50581 echo "$as_me:$LINENO: checking for $ac_func" >&5
50582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50583 if eval "test \"\${$as_ac_var+set}\" = set"; then
50584   echo $ECHO_N "(cached) $ECHO_C" >&6
50585 else
50586   cat >conftest.$ac_ext <<_ACEOF
50587 /* confdefs.h.  */
50588 _ACEOF
50589 cat confdefs.h >>conftest.$ac_ext
50590 cat >>conftest.$ac_ext <<_ACEOF
50591 /* end confdefs.h.  */
50592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50593    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50594 #define $ac_func innocuous_$ac_func
50595
50596 /* System header to define __stub macros and hopefully few prototypes,
50597     which can conflict with char $ac_func (); below.
50598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50599     <limits.h> exists even on freestanding compilers.  */
50600
50601 #ifdef __STDC__
50602 # include <limits.h>
50603 #else
50604 # include <assert.h>
50605 #endif
50606
50607 #undef $ac_func
50608
50609 /* Override any gcc2 internal prototype to avoid an error.  */
50610 #ifdef __cplusplus
50611 extern "C"
50612 {
50613 #endif
50614 /* We use char because int might match the return type of a gcc2
50615    builtin and then its argument prototype would still apply.  */
50616 char $ac_func ();
50617 /* The GNU C library defines this for functions which it implements
50618     to always fail with ENOSYS.  Some functions are actually named
50619     something starting with __ and the normal name is an alias.  */
50620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50621 choke me
50622 #else
50623 char (*f) () = $ac_func;
50624 #endif
50625 #ifdef __cplusplus
50626 }
50627 #endif
50628
50629 int
50630 main ()
50631 {
50632 return f != $ac_func;
50633   ;
50634   return 0;
50635 }
50636 _ACEOF
50637 rm -f conftest.$ac_objext conftest$ac_exeext
50638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50639   (eval $ac_link) 2>conftest.er1
50640   ac_status=$?
50641   grep -v '^ *+' conftest.er1 >conftest.err
50642   rm -f conftest.er1
50643   cat conftest.err >&5
50644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50645   (exit $ac_status); } &&
50646          { ac_try='test -z "$ac_c_werror_flag"
50647                          || test ! -s conftest.err'
50648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50649   (eval $ac_try) 2>&5
50650   ac_status=$?
50651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50652   (exit $ac_status); }; } &&
50653          { ac_try='test -s conftest$ac_exeext'
50654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50655   (eval $ac_try) 2>&5
50656   ac_status=$?
50657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50658   (exit $ac_status); }; }; then
50659   eval "$as_ac_var=yes"
50660 else
50661   echo "$as_me: failed program was:" >&5
50662 sed 's/^/| /' conftest.$ac_ext >&5
50663
50664 eval "$as_ac_var=no"
50665 fi
50666 rm -f conftest.err conftest.$ac_objext \
50667       conftest$ac_exeext conftest.$ac_ext
50668 fi
50669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50671 if test `eval echo '${'$as_ac_var'}'` = yes; then
50672   cat >>confdefs.h <<_ACEOF
50673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50674 _ACEOF
50675
50676 else
50677   # strftime is in -lintl on SCO UNIX.
50678 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
50679 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
50680 if test "${ac_cv_lib_intl_strftime+set}" = set; then
50681   echo $ECHO_N "(cached) $ECHO_C" >&6
50682 else
50683   ac_check_lib_save_LIBS=$LIBS
50684 LIBS="-lintl  $LIBS"
50685 cat >conftest.$ac_ext <<_ACEOF
50686 /* confdefs.h.  */
50687 _ACEOF
50688 cat confdefs.h >>conftest.$ac_ext
50689 cat >>conftest.$ac_ext <<_ACEOF
50690 /* end confdefs.h.  */
50691
50692 /* Override any gcc2 internal prototype to avoid an error.  */
50693 #ifdef __cplusplus
50694 extern "C"
50695 #endif
50696 /* We use char because int might match the return type of a gcc2
50697    builtin and then its argument prototype would still apply.  */
50698 char strftime ();
50699 int
50700 main ()
50701 {
50702 strftime ();
50703   ;
50704   return 0;
50705 }
50706 _ACEOF
50707 rm -f conftest.$ac_objext conftest$ac_exeext
50708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50709   (eval $ac_link) 2>conftest.er1
50710   ac_status=$?
50711   grep -v '^ *+' conftest.er1 >conftest.err
50712   rm -f conftest.er1
50713   cat conftest.err >&5
50714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50715   (exit $ac_status); } &&
50716          { ac_try='test -z "$ac_c_werror_flag"
50717                          || test ! -s conftest.err'
50718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50719   (eval $ac_try) 2>&5
50720   ac_status=$?
50721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50722   (exit $ac_status); }; } &&
50723          { ac_try='test -s conftest$ac_exeext'
50724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50725   (eval $ac_try) 2>&5
50726   ac_status=$?
50727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50728   (exit $ac_status); }; }; then
50729   ac_cv_lib_intl_strftime=yes
50730 else
50731   echo "$as_me: failed program was:" >&5
50732 sed 's/^/| /' conftest.$ac_ext >&5
50733
50734 ac_cv_lib_intl_strftime=no
50735 fi
50736 rm -f conftest.err conftest.$ac_objext \
50737       conftest$ac_exeext conftest.$ac_ext
50738 LIBS=$ac_check_lib_save_LIBS
50739 fi
50740 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
50741 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
50742 if test $ac_cv_lib_intl_strftime = yes; then
50743   cat >>confdefs.h <<\_ACEOF
50744 #define HAVE_STRFTIME 1
50745 _ACEOF
50746
50747 LIBS="-lintl $LIBS"
50748 fi
50749
50750 fi
50751 done
50752
50753
50754 echo "$as_me:$LINENO: checking for inet_aton()" >&5
50755 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
50756 if test "${ol_cv_func_inet_aton+set}" = set; then
50757   echo $ECHO_N "(cached) $ECHO_C" >&6
50758 else
50759   cat >conftest.$ac_ext <<_ACEOF
50760 /* confdefs.h.  */
50761 _ACEOF
50762 cat confdefs.h >>conftest.$ac_ext
50763 cat >>conftest.$ac_ext <<_ACEOF
50764 /* end confdefs.h.  */
50765
50766 #ifdef HAVE_SYS_TYPES_H
50767 #       include <sys/types.h>
50768 #endif
50769 #ifdef HAVE_SYS_SOCKET_H
50770 #       include <sys/socket.h>
50771 #       ifdef HAVE_SYS_SELECT_H
50772 #               include <sys/select.h>
50773 #       endif
50774 #       include <netinet/in.h>
50775 #       ifdef HAVE_ARPA_INET_H
50776 #               include <arpa/inet.h>
50777 #       endif
50778 #endif
50779
50780 int
50781 main ()
50782 {
50783 struct in_addr in;
50784 int rc = inet_aton( "255.255.255.255", &in );
50785   ;
50786   return 0;
50787 }
50788 _ACEOF
50789 rm -f conftest.$ac_objext conftest$ac_exeext
50790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50791   (eval $ac_link) 2>conftest.er1
50792   ac_status=$?
50793   grep -v '^ *+' conftest.er1 >conftest.err
50794   rm -f conftest.er1
50795   cat conftest.err >&5
50796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50797   (exit $ac_status); } &&
50798          { ac_try='test -z "$ac_c_werror_flag"
50799                          || test ! -s conftest.err'
50800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50801   (eval $ac_try) 2>&5
50802   ac_status=$?
50803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50804   (exit $ac_status); }; } &&
50805          { ac_try='test -s conftest$ac_exeext'
50806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50807   (eval $ac_try) 2>&5
50808   ac_status=$?
50809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50810   (exit $ac_status); }; }; then
50811   ol_cv_func_inet_aton=yes
50812 else
50813   echo "$as_me: failed program was:" >&5
50814 sed 's/^/| /' conftest.$ac_ext >&5
50815
50816 ol_cv_func_inet_aton=no
50817 fi
50818 rm -f conftest.err conftest.$ac_objext \
50819       conftest$ac_exeext conftest.$ac_ext
50820 fi
50821 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
50822 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
50823   if test $ol_cv_func_inet_aton != no; then
50824
50825 cat >>confdefs.h <<\_ACEOF
50826 #define HAVE_INET_ATON 1
50827 _ACEOF
50828
50829   fi
50830
50831
50832 echo "$as_me:$LINENO: checking for _spawnlp" >&5
50833 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
50834 if test "${ac_cv_func__spawnlp+set}" = set; then
50835   echo $ECHO_N "(cached) $ECHO_C" >&6
50836 else
50837   cat >conftest.$ac_ext <<_ACEOF
50838 /* confdefs.h.  */
50839 _ACEOF
50840 cat confdefs.h >>conftest.$ac_ext
50841 cat >>conftest.$ac_ext <<_ACEOF
50842 /* end confdefs.h.  */
50843 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
50844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50845 #define _spawnlp innocuous__spawnlp
50846
50847 /* System header to define __stub macros and hopefully few prototypes,
50848     which can conflict with char _spawnlp (); below.
50849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50850     <limits.h> exists even on freestanding compilers.  */
50851
50852 #ifdef __STDC__
50853 # include <limits.h>
50854 #else
50855 # include <assert.h>
50856 #endif
50857
50858 #undef _spawnlp
50859
50860 /* Override any gcc2 internal prototype to avoid an error.  */
50861 #ifdef __cplusplus
50862 extern "C"
50863 {
50864 #endif
50865 /* We use char because int might match the return type of a gcc2
50866    builtin and then its argument prototype would still apply.  */
50867 char _spawnlp ();
50868 /* The GNU C library defines this for functions which it implements
50869     to always fail with ENOSYS.  Some functions are actually named
50870     something starting with __ and the normal name is an alias.  */
50871 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
50872 choke me
50873 #else
50874 char (*f) () = _spawnlp;
50875 #endif
50876 #ifdef __cplusplus
50877 }
50878 #endif
50879
50880 int
50881 main ()
50882 {
50883 return f != _spawnlp;
50884   ;
50885   return 0;
50886 }
50887 _ACEOF
50888 rm -f conftest.$ac_objext conftest$ac_exeext
50889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50890   (eval $ac_link) 2>conftest.er1
50891   ac_status=$?
50892   grep -v '^ *+' conftest.er1 >conftest.err
50893   rm -f conftest.er1
50894   cat conftest.err >&5
50895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50896   (exit $ac_status); } &&
50897          { ac_try='test -z "$ac_c_werror_flag"
50898                          || test ! -s conftest.err'
50899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50900   (eval $ac_try) 2>&5
50901   ac_status=$?
50902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50903   (exit $ac_status); }; } &&
50904          { ac_try='test -s conftest$ac_exeext'
50905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50906   (eval $ac_try) 2>&5
50907   ac_status=$?
50908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50909   (exit $ac_status); }; }; then
50910   ac_cv_func__spawnlp=yes
50911 else
50912   echo "$as_me: failed program was:" >&5
50913 sed 's/^/| /' conftest.$ac_ext >&5
50914
50915 ac_cv_func__spawnlp=no
50916 fi
50917 rm -f conftest.err conftest.$ac_objext \
50918       conftest$ac_exeext conftest.$ac_ext
50919 fi
50920 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
50921 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
50922 if test $ac_cv_func__spawnlp = yes; then
50923
50924 cat >>confdefs.h <<\_ACEOF
50925 #define HAVE_SPAWNLP 1
50926 _ACEOF
50927
50928 fi
50929
50930
50931 echo "$as_me:$LINENO: checking for _snprintf" >&5
50932 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
50933 if test "${ac_cv_func__snprintf+set}" = set; then
50934   echo $ECHO_N "(cached) $ECHO_C" >&6
50935 else
50936   cat >conftest.$ac_ext <<_ACEOF
50937 /* confdefs.h.  */
50938 _ACEOF
50939 cat confdefs.h >>conftest.$ac_ext
50940 cat >>conftest.$ac_ext <<_ACEOF
50941 /* end confdefs.h.  */
50942 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
50943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50944 #define _snprintf innocuous__snprintf
50945
50946 /* System header to define __stub macros and hopefully few prototypes,
50947     which can conflict with char _snprintf (); below.
50948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50949     <limits.h> exists even on freestanding compilers.  */
50950
50951 #ifdef __STDC__
50952 # include <limits.h>
50953 #else
50954 # include <assert.h>
50955 #endif
50956
50957 #undef _snprintf
50958
50959 /* Override any gcc2 internal prototype to avoid an error.  */
50960 #ifdef __cplusplus
50961 extern "C"
50962 {
50963 #endif
50964 /* We use char because int might match the return type of a gcc2
50965    builtin and then its argument prototype would still apply.  */
50966 char _snprintf ();
50967 /* The GNU C library defines this for functions which it implements
50968     to always fail with ENOSYS.  Some functions are actually named
50969     something starting with __ and the normal name is an alias.  */
50970 #if defined (__stub__snprintf) || defined (__stub____snprintf)
50971 choke me
50972 #else
50973 char (*f) () = _snprintf;
50974 #endif
50975 #ifdef __cplusplus
50976 }
50977 #endif
50978
50979 int
50980 main ()
50981 {
50982 return f != _snprintf;
50983   ;
50984   return 0;
50985 }
50986 _ACEOF
50987 rm -f conftest.$ac_objext conftest$ac_exeext
50988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50989   (eval $ac_link) 2>conftest.er1
50990   ac_status=$?
50991   grep -v '^ *+' conftest.er1 >conftest.err
50992   rm -f conftest.er1
50993   cat conftest.err >&5
50994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50995   (exit $ac_status); } &&
50996          { ac_try='test -z "$ac_c_werror_flag"
50997                          || test ! -s conftest.err'
50998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50999   (eval $ac_try) 2>&5
51000   ac_status=$?
51001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51002   (exit $ac_status); }; } &&
51003          { ac_try='test -s conftest$ac_exeext'
51004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51005   (eval $ac_try) 2>&5
51006   ac_status=$?
51007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51008   (exit $ac_status); }; }; then
51009   ac_cv_func__snprintf=yes
51010 else
51011   echo "$as_me: failed program was:" >&5
51012 sed 's/^/| /' conftest.$ac_ext >&5
51013
51014 ac_cv_func__snprintf=no
51015 fi
51016 rm -f conftest.err conftest.$ac_objext \
51017       conftest$ac_exeext conftest.$ac_ext
51018 fi
51019 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
51020 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
51021 if test $ac_cv_func__snprintf = yes; then
51022   ac_cv_func_snprintf=yes
51023
51024 cat >>confdefs.h <<\_ACEOF
51025 #define snprintf _snprintf
51026 _ACEOF
51027
51028
51029 fi
51030
51031
51032 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
51033 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
51034 if test "${ac_cv_func__vsnprintf+set}" = set; then
51035   echo $ECHO_N "(cached) $ECHO_C" >&6
51036 else
51037   cat >conftest.$ac_ext <<_ACEOF
51038 /* confdefs.h.  */
51039 _ACEOF
51040 cat confdefs.h >>conftest.$ac_ext
51041 cat >>conftest.$ac_ext <<_ACEOF
51042 /* end confdefs.h.  */
51043 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
51044    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51045 #define _vsnprintf innocuous__vsnprintf
51046
51047 /* System header to define __stub macros and hopefully few prototypes,
51048     which can conflict with char _vsnprintf (); below.
51049     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51050     <limits.h> exists even on freestanding compilers.  */
51051
51052 #ifdef __STDC__
51053 # include <limits.h>
51054 #else
51055 # include <assert.h>
51056 #endif
51057
51058 #undef _vsnprintf
51059
51060 /* Override any gcc2 internal prototype to avoid an error.  */
51061 #ifdef __cplusplus
51062 extern "C"
51063 {
51064 #endif
51065 /* We use char because int might match the return type of a gcc2
51066    builtin and then its argument prototype would still apply.  */
51067 char _vsnprintf ();
51068 /* The GNU C library defines this for functions which it implements
51069     to always fail with ENOSYS.  Some functions are actually named
51070     something starting with __ and the normal name is an alias.  */
51071 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
51072 choke me
51073 #else
51074 char (*f) () = _vsnprintf;
51075 #endif
51076 #ifdef __cplusplus
51077 }
51078 #endif
51079
51080 int
51081 main ()
51082 {
51083 return f != _vsnprintf;
51084   ;
51085   return 0;
51086 }
51087 _ACEOF
51088 rm -f conftest.$ac_objext conftest$ac_exeext
51089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51090   (eval $ac_link) 2>conftest.er1
51091   ac_status=$?
51092   grep -v '^ *+' conftest.er1 >conftest.err
51093   rm -f conftest.er1
51094   cat conftest.err >&5
51095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51096   (exit $ac_status); } &&
51097          { ac_try='test -z "$ac_c_werror_flag"
51098                          || test ! -s conftest.err'
51099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51100   (eval $ac_try) 2>&5
51101   ac_status=$?
51102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51103   (exit $ac_status); }; } &&
51104          { ac_try='test -s conftest$ac_exeext'
51105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51106   (eval $ac_try) 2>&5
51107   ac_status=$?
51108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51109   (exit $ac_status); }; }; then
51110   ac_cv_func__vsnprintf=yes
51111 else
51112   echo "$as_me: failed program was:" >&5
51113 sed 's/^/| /' conftest.$ac_ext >&5
51114
51115 ac_cv_func__vsnprintf=no
51116 fi
51117 rm -f conftest.err conftest.$ac_objext \
51118       conftest$ac_exeext conftest.$ac_ext
51119 fi
51120 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
51121 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
51122 if test $ac_cv_func__vsnprintf = yes; then
51123   ac_cv_func_vsnprintf=yes
51124
51125 cat >>confdefs.h <<\_ACEOF
51126 #define vsnprintf _vsnprintf
51127 _ACEOF
51128
51129
51130 fi
51131
51132
51133
51134 for ac_func in vprintf
51135 do
51136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51137 echo "$as_me:$LINENO: checking for $ac_func" >&5
51138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51139 if eval "test \"\${$as_ac_var+set}\" = set"; then
51140   echo $ECHO_N "(cached) $ECHO_C" >&6
51141 else
51142   cat >conftest.$ac_ext <<_ACEOF
51143 /* confdefs.h.  */
51144 _ACEOF
51145 cat confdefs.h >>conftest.$ac_ext
51146 cat >>conftest.$ac_ext <<_ACEOF
51147 /* end confdefs.h.  */
51148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51150 #define $ac_func innocuous_$ac_func
51151
51152 /* System header to define __stub macros and hopefully few prototypes,
51153     which can conflict with char $ac_func (); below.
51154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51155     <limits.h> exists even on freestanding compilers.  */
51156
51157 #ifdef __STDC__
51158 # include <limits.h>
51159 #else
51160 # include <assert.h>
51161 #endif
51162
51163 #undef $ac_func
51164
51165 /* Override any gcc2 internal prototype to avoid an error.  */
51166 #ifdef __cplusplus
51167 extern "C"
51168 {
51169 #endif
51170 /* We use char because int might match the return type of a gcc2
51171    builtin and then its argument prototype would still apply.  */
51172 char $ac_func ();
51173 /* The GNU C library defines this for functions which it implements
51174     to always fail with ENOSYS.  Some functions are actually named
51175     something starting with __ and the normal name is an alias.  */
51176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51177 choke me
51178 #else
51179 char (*f) () = $ac_func;
51180 #endif
51181 #ifdef __cplusplus
51182 }
51183 #endif
51184
51185 int
51186 main ()
51187 {
51188 return f != $ac_func;
51189   ;
51190   return 0;
51191 }
51192 _ACEOF
51193 rm -f conftest.$ac_objext conftest$ac_exeext
51194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51195   (eval $ac_link) 2>conftest.er1
51196   ac_status=$?
51197   grep -v '^ *+' conftest.er1 >conftest.err
51198   rm -f conftest.er1
51199   cat conftest.err >&5
51200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51201   (exit $ac_status); } &&
51202          { ac_try='test -z "$ac_c_werror_flag"
51203                          || test ! -s conftest.err'
51204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51205   (eval $ac_try) 2>&5
51206   ac_status=$?
51207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51208   (exit $ac_status); }; } &&
51209          { ac_try='test -s conftest$ac_exeext'
51210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51211   (eval $ac_try) 2>&5
51212   ac_status=$?
51213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51214   (exit $ac_status); }; }; then
51215   eval "$as_ac_var=yes"
51216 else
51217   echo "$as_me: failed program was:" >&5
51218 sed 's/^/| /' conftest.$ac_ext >&5
51219
51220 eval "$as_ac_var=no"
51221 fi
51222 rm -f conftest.err conftest.$ac_objext \
51223       conftest$ac_exeext conftest.$ac_ext
51224 fi
51225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51227 if test `eval echo '${'$as_ac_var'}'` = yes; then
51228   cat >>confdefs.h <<_ACEOF
51229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51230 _ACEOF
51231
51232 echo "$as_me:$LINENO: checking for _doprnt" >&5
51233 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
51234 if test "${ac_cv_func__doprnt+set}" = set; then
51235   echo $ECHO_N "(cached) $ECHO_C" >&6
51236 else
51237   cat >conftest.$ac_ext <<_ACEOF
51238 /* confdefs.h.  */
51239 _ACEOF
51240 cat confdefs.h >>conftest.$ac_ext
51241 cat >>conftest.$ac_ext <<_ACEOF
51242 /* end confdefs.h.  */
51243 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
51244    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51245 #define _doprnt innocuous__doprnt
51246
51247 /* System header to define __stub macros and hopefully few prototypes,
51248     which can conflict with char _doprnt (); below.
51249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51250     <limits.h> exists even on freestanding compilers.  */
51251
51252 #ifdef __STDC__
51253 # include <limits.h>
51254 #else
51255 # include <assert.h>
51256 #endif
51257
51258 #undef _doprnt
51259
51260 /* Override any gcc2 internal prototype to avoid an error.  */
51261 #ifdef __cplusplus
51262 extern "C"
51263 {
51264 #endif
51265 /* We use char because int might match the return type of a gcc2
51266    builtin and then its argument prototype would still apply.  */
51267 char _doprnt ();
51268 /* The GNU C library defines this for functions which it implements
51269     to always fail with ENOSYS.  Some functions are actually named
51270     something starting with __ and the normal name is an alias.  */
51271 #if defined (__stub__doprnt) || defined (__stub____doprnt)
51272 choke me
51273 #else
51274 char (*f) () = _doprnt;
51275 #endif
51276 #ifdef __cplusplus
51277 }
51278 #endif
51279
51280 int
51281 main ()
51282 {
51283 return f != _doprnt;
51284   ;
51285   return 0;
51286 }
51287 _ACEOF
51288 rm -f conftest.$ac_objext conftest$ac_exeext
51289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51290   (eval $ac_link) 2>conftest.er1
51291   ac_status=$?
51292   grep -v '^ *+' conftest.er1 >conftest.err
51293   rm -f conftest.er1
51294   cat conftest.err >&5
51295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51296   (exit $ac_status); } &&
51297          { ac_try='test -z "$ac_c_werror_flag"
51298                          || test ! -s conftest.err'
51299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51300   (eval $ac_try) 2>&5
51301   ac_status=$?
51302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51303   (exit $ac_status); }; } &&
51304          { ac_try='test -s conftest$ac_exeext'
51305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51306   (eval $ac_try) 2>&5
51307   ac_status=$?
51308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51309   (exit $ac_status); }; }; then
51310   ac_cv_func__doprnt=yes
51311 else
51312   echo "$as_me: failed program was:" >&5
51313 sed 's/^/| /' conftest.$ac_ext >&5
51314
51315 ac_cv_func__doprnt=no
51316 fi
51317 rm -f conftest.err conftest.$ac_objext \
51318       conftest$ac_exeext conftest.$ac_ext
51319 fi
51320 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
51321 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
51322 if test $ac_cv_func__doprnt = yes; then
51323
51324 cat >>confdefs.h <<\_ACEOF
51325 #define HAVE_DOPRNT 1
51326 _ACEOF
51327
51328 fi
51329
51330 fi
51331 done
51332
51333
51334
51335 if test $ac_cv_func_vprintf = yes ; then
51336
51337
51338 for ac_func in snprintf vsnprintf
51339 do
51340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51341 echo "$as_me:$LINENO: checking for $ac_func" >&5
51342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51343 if eval "test \"\${$as_ac_var+set}\" = set"; then
51344   echo $ECHO_N "(cached) $ECHO_C" >&6
51345 else
51346   cat >conftest.$ac_ext <<_ACEOF
51347 /* confdefs.h.  */
51348 _ACEOF
51349 cat confdefs.h >>conftest.$ac_ext
51350 cat >>conftest.$ac_ext <<_ACEOF
51351 /* end confdefs.h.  */
51352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51354 #define $ac_func innocuous_$ac_func
51355
51356 /* System header to define __stub macros and hopefully few prototypes,
51357     which can conflict with char $ac_func (); below.
51358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51359     <limits.h> exists even on freestanding compilers.  */
51360
51361 #ifdef __STDC__
51362 # include <limits.h>
51363 #else
51364 # include <assert.h>
51365 #endif
51366
51367 #undef $ac_func
51368
51369 /* Override any gcc2 internal prototype to avoid an error.  */
51370 #ifdef __cplusplus
51371 extern "C"
51372 {
51373 #endif
51374 /* We use char because int might match the return type of a gcc2
51375    builtin and then its argument prototype would still apply.  */
51376 char $ac_func ();
51377 /* The GNU C library defines this for functions which it implements
51378     to always fail with ENOSYS.  Some functions are actually named
51379     something starting with __ and the normal name is an alias.  */
51380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51381 choke me
51382 #else
51383 char (*f) () = $ac_func;
51384 #endif
51385 #ifdef __cplusplus
51386 }
51387 #endif
51388
51389 int
51390 main ()
51391 {
51392 return f != $ac_func;
51393   ;
51394   return 0;
51395 }
51396 _ACEOF
51397 rm -f conftest.$ac_objext conftest$ac_exeext
51398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51399   (eval $ac_link) 2>conftest.er1
51400   ac_status=$?
51401   grep -v '^ *+' conftest.er1 >conftest.err
51402   rm -f conftest.er1
51403   cat conftest.err >&5
51404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51405   (exit $ac_status); } &&
51406          { ac_try='test -z "$ac_c_werror_flag"
51407                          || test ! -s conftest.err'
51408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51409   (eval $ac_try) 2>&5
51410   ac_status=$?
51411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51412   (exit $ac_status); }; } &&
51413          { ac_try='test -s conftest$ac_exeext'
51414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51415   (eval $ac_try) 2>&5
51416   ac_status=$?
51417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51418   (exit $ac_status); }; }; then
51419   eval "$as_ac_var=yes"
51420 else
51421   echo "$as_me: failed program was:" >&5
51422 sed 's/^/| /' conftest.$ac_ext >&5
51423
51424 eval "$as_ac_var=no"
51425 fi
51426 rm -f conftest.err conftest.$ac_objext \
51427       conftest$ac_exeext conftest.$ac_ext
51428 fi
51429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51431 if test `eval echo '${'$as_ac_var'}'` = yes; then
51432   cat >>confdefs.h <<_ACEOF
51433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51434 _ACEOF
51435
51436 fi
51437 done
51438
51439 fi
51440
51441
51442
51443
51444
51445
51446
51447
51448
51449
51450
51451
51452
51453
51454
51455
51456
51457
51458
51459
51460
51461
51462
51463
51464
51465
51466
51467
51468
51469
51470
51471
51472
51473
51474
51475
51476
51477
51478
51479
51480
51481
51482
51483
51484
51485
51486
51487
51488
51489
51490
51491
51492
51493
51494 for ac_func in \
51495         bcopy                   \
51496         closesocket             \
51497         chroot                  \
51498         endgrent                \
51499         endpwent                \
51500         fcntl                   \
51501         flock                   \
51502         fstat                   \
51503         getdtablesize   \
51504         getgrgid                \
51505         gethostname             \
51506         getpass                 \
51507         getpassphrase   \
51508         getpwuid                \
51509         getpwnam                \
51510         getspnam                \
51511         gettimeofday    \
51512         initgroups              \
51513         lockf                   \
51514         memcpy                  \
51515         memmove                 \
51516         mkstemp                 \
51517         mktemp                  \
51518         pipe                    \
51519         read                    \
51520         recv                    \
51521         recvfrom                \
51522         setpwfile               \
51523         setgid                  \
51524         setegid                 \
51525         setsid                  \
51526         setuid                  \
51527         seteuid                 \
51528         signal                  \
51529         strdup                  \
51530         strpbrk                 \
51531         strrchr                 \
51532         strsep                  \
51533         strstr                  \
51534         strtol                  \
51535         strtoul                 \
51536         strtoq                  \
51537         strtouq                 \
51538         strtoll                 \
51539         strspn                  \
51540         sysconf                 \
51541         usleep                  \
51542         waitpid                 \
51543         wait4                   \
51544         write                   \
51545         send                    \
51546         sendmsg                 \
51547         sendto                  \
51548
51549 do
51550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51551 echo "$as_me:$LINENO: checking for $ac_func" >&5
51552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51553 if eval "test \"\${$as_ac_var+set}\" = set"; then
51554   echo $ECHO_N "(cached) $ECHO_C" >&6
51555 else
51556   cat >conftest.$ac_ext <<_ACEOF
51557 /* confdefs.h.  */
51558 _ACEOF
51559 cat confdefs.h >>conftest.$ac_ext
51560 cat >>conftest.$ac_ext <<_ACEOF
51561 /* end confdefs.h.  */
51562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51563    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51564 #define $ac_func innocuous_$ac_func
51565
51566 /* System header to define __stub macros and hopefully few prototypes,
51567     which can conflict with char $ac_func (); below.
51568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51569     <limits.h> exists even on freestanding compilers.  */
51570
51571 #ifdef __STDC__
51572 # include <limits.h>
51573 #else
51574 # include <assert.h>
51575 #endif
51576
51577 #undef $ac_func
51578
51579 /* Override any gcc2 internal prototype to avoid an error.  */
51580 #ifdef __cplusplus
51581 extern "C"
51582 {
51583 #endif
51584 /* We use char because int might match the return type of a gcc2
51585    builtin and then its argument prototype would still apply.  */
51586 char $ac_func ();
51587 /* The GNU C library defines this for functions which it implements
51588     to always fail with ENOSYS.  Some functions are actually named
51589     something starting with __ and the normal name is an alias.  */
51590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51591 choke me
51592 #else
51593 char (*f) () = $ac_func;
51594 #endif
51595 #ifdef __cplusplus
51596 }
51597 #endif
51598
51599 int
51600 main ()
51601 {
51602 return f != $ac_func;
51603   ;
51604   return 0;
51605 }
51606 _ACEOF
51607 rm -f conftest.$ac_objext conftest$ac_exeext
51608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51609   (eval $ac_link) 2>conftest.er1
51610   ac_status=$?
51611   grep -v '^ *+' conftest.er1 >conftest.err
51612   rm -f conftest.er1
51613   cat conftest.err >&5
51614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51615   (exit $ac_status); } &&
51616          { ac_try='test -z "$ac_c_werror_flag"
51617                          || test ! -s conftest.err'
51618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51619   (eval $ac_try) 2>&5
51620   ac_status=$?
51621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51622   (exit $ac_status); }; } &&
51623          { ac_try='test -s conftest$ac_exeext'
51624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51625   (eval $ac_try) 2>&5
51626   ac_status=$?
51627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51628   (exit $ac_status); }; }; then
51629   eval "$as_ac_var=yes"
51630 else
51631   echo "$as_me: failed program was:" >&5
51632 sed 's/^/| /' conftest.$ac_ext >&5
51633
51634 eval "$as_ac_var=no"
51635 fi
51636 rm -f conftest.err conftest.$ac_objext \
51637       conftest$ac_exeext conftest.$ac_ext
51638 fi
51639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51641 if test `eval echo '${'$as_ac_var'}'` = yes; then
51642   cat >>confdefs.h <<_ACEOF
51643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51644 _ACEOF
51645
51646 fi
51647 done
51648
51649
51650
51651
51652 for ac_func in getopt getpeereid
51653 do
51654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51655 echo "$as_me:$LINENO: checking for $ac_func" >&5
51656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51657 if eval "test \"\${$as_ac_var+set}\" = set"; then
51658   echo $ECHO_N "(cached) $ECHO_C" >&6
51659 else
51660   cat >conftest.$ac_ext <<_ACEOF
51661 /* confdefs.h.  */
51662 _ACEOF
51663 cat confdefs.h >>conftest.$ac_ext
51664 cat >>conftest.$ac_ext <<_ACEOF
51665 /* end confdefs.h.  */
51666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51668 #define $ac_func innocuous_$ac_func
51669
51670 /* System header to define __stub macros and hopefully few prototypes,
51671     which can conflict with char $ac_func (); below.
51672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51673     <limits.h> exists even on freestanding compilers.  */
51674
51675 #ifdef __STDC__
51676 # include <limits.h>
51677 #else
51678 # include <assert.h>
51679 #endif
51680
51681 #undef $ac_func
51682
51683 /* Override any gcc2 internal prototype to avoid an error.  */
51684 #ifdef __cplusplus
51685 extern "C"
51686 {
51687 #endif
51688 /* We use char because int might match the return type of a gcc2
51689    builtin and then its argument prototype would still apply.  */
51690 char $ac_func ();
51691 /* The GNU C library defines this for functions which it implements
51692     to always fail with ENOSYS.  Some functions are actually named
51693     something starting with __ and the normal name is an alias.  */
51694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51695 choke me
51696 #else
51697 char (*f) () = $ac_func;
51698 #endif
51699 #ifdef __cplusplus
51700 }
51701 #endif
51702
51703 int
51704 main ()
51705 {
51706 return f != $ac_func;
51707   ;
51708   return 0;
51709 }
51710 _ACEOF
51711 rm -f conftest.$ac_objext conftest$ac_exeext
51712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51713   (eval $ac_link) 2>conftest.er1
51714   ac_status=$?
51715   grep -v '^ *+' conftest.er1 >conftest.err
51716   rm -f conftest.er1
51717   cat conftest.err >&5
51718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51719   (exit $ac_status); } &&
51720          { ac_try='test -z "$ac_c_werror_flag"
51721                          || test ! -s conftest.err'
51722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51723   (eval $ac_try) 2>&5
51724   ac_status=$?
51725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51726   (exit $ac_status); }; } &&
51727          { ac_try='test -s conftest$ac_exeext'
51728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51729   (eval $ac_try) 2>&5
51730   ac_status=$?
51731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51732   (exit $ac_status); }; }; then
51733   eval "$as_ac_var=yes"
51734 else
51735   echo "$as_me: failed program was:" >&5
51736 sed 's/^/| /' conftest.$ac_ext >&5
51737
51738 eval "$as_ac_var=no"
51739 fi
51740 rm -f conftest.err conftest.$ac_objext \
51741       conftest$ac_exeext conftest.$ac_ext
51742 fi
51743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51745 if test `eval echo '${'$as_ac_var'}'` = yes; then
51746   cat >>confdefs.h <<_ACEOF
51747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51748 _ACEOF
51749
51750 else
51751   case $LIBOBJS in
51752     "$ac_func.$ac_objext"   | \
51753   *" $ac_func.$ac_objext"   | \
51754     "$ac_func.$ac_objext "* | \
51755   *" $ac_func.$ac_objext "* ) ;;
51756   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51757 esac
51758
51759 fi
51760 done
51761
51762
51763
51764 if test "$ac_cv_func_getopt" != yes; then
51765         LIBSRCS="$LIBSRCS getopt.c"
51766 fi
51767 if test "$ac_cv_func_getpeereid" != yes; then
51768         echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
51769 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
51770 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
51771   echo $ECHO_N "(cached) $ECHO_C" >&6
51772 else
51773   cat >conftest.$ac_ext <<_ACEOF
51774 /* confdefs.h.  */
51775 _ACEOF
51776 cat confdefs.h >>conftest.$ac_ext
51777 cat >>conftest.$ac_ext <<_ACEOF
51778 /* end confdefs.h.  */
51779 $ac_includes_default
51780 #ifdef HAVE_SYS_SOCKET_H
51781 #include <sys/socket.h>
51782 #endif
51783
51784 int
51785 main ()
51786 {
51787 static struct msghdr ac_aggr;
51788 if (ac_aggr.msg_accrightslen)
51789 return 0;
51790   ;
51791   return 0;
51792 }
51793 _ACEOF
51794 rm -f conftest.$ac_objext
51795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51796   (eval $ac_compile) 2>conftest.er1
51797   ac_status=$?
51798   grep -v '^ *+' conftest.er1 >conftest.err
51799   rm -f conftest.er1
51800   cat conftest.err >&5
51801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51802   (exit $ac_status); } &&
51803          { ac_try='test -z "$ac_c_werror_flag"
51804                          || test ! -s conftest.err'
51805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51806   (eval $ac_try) 2>&5
51807   ac_status=$?
51808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51809   (exit $ac_status); }; } &&
51810          { ac_try='test -s conftest.$ac_objext'
51811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51812   (eval $ac_try) 2>&5
51813   ac_status=$?
51814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51815   (exit $ac_status); }; }; then
51816   ac_cv_member_struct_msghdr_msg_accrightslen=yes
51817 else
51818   echo "$as_me: failed program was:" >&5
51819 sed 's/^/| /' conftest.$ac_ext >&5
51820
51821 cat >conftest.$ac_ext <<_ACEOF
51822 /* confdefs.h.  */
51823 _ACEOF
51824 cat confdefs.h >>conftest.$ac_ext
51825 cat >>conftest.$ac_ext <<_ACEOF
51826 /* end confdefs.h.  */
51827 $ac_includes_default
51828 #ifdef HAVE_SYS_SOCKET_H
51829 #include <sys/socket.h>
51830 #endif
51831
51832 int
51833 main ()
51834 {
51835 static struct msghdr ac_aggr;
51836 if (sizeof ac_aggr.msg_accrightslen)
51837 return 0;
51838   ;
51839   return 0;
51840 }
51841 _ACEOF
51842 rm -f conftest.$ac_objext
51843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51844   (eval $ac_compile) 2>conftest.er1
51845   ac_status=$?
51846   grep -v '^ *+' conftest.er1 >conftest.err
51847   rm -f conftest.er1
51848   cat conftest.err >&5
51849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51850   (exit $ac_status); } &&
51851          { ac_try='test -z "$ac_c_werror_flag"
51852                          || test ! -s conftest.err'
51853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51854   (eval $ac_try) 2>&5
51855   ac_status=$?
51856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51857   (exit $ac_status); }; } &&
51858          { ac_try='test -s conftest.$ac_objext'
51859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51860   (eval $ac_try) 2>&5
51861   ac_status=$?
51862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51863   (exit $ac_status); }; }; then
51864   ac_cv_member_struct_msghdr_msg_accrightslen=yes
51865 else
51866   echo "$as_me: failed program was:" >&5
51867 sed 's/^/| /' conftest.$ac_ext >&5
51868
51869 ac_cv_member_struct_msghdr_msg_accrightslen=no
51870 fi
51871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51872 fi
51873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51874 fi
51875 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
51876 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
51877 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
51878
51879 cat >>confdefs.h <<_ACEOF
51880 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
51881 _ACEOF
51882
51883
51884 fi
51885
51886         if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
51887                 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
51888 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
51889 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
51890   echo $ECHO_N "(cached) $ECHO_C" >&6
51891 else
51892   cat >conftest.$ac_ext <<_ACEOF
51893 /* confdefs.h.  */
51894 _ACEOF
51895 cat confdefs.h >>conftest.$ac_ext
51896 cat >>conftest.$ac_ext <<_ACEOF
51897 /* end confdefs.h.  */
51898 $ac_includes_default
51899 #ifdef HAVE_SYS_SOCKET_H
51900 #include <sys/socket.h>
51901 #endif
51902
51903 int
51904 main ()
51905 {
51906 static struct msghdr ac_aggr;
51907 if (ac_aggr.msg_control)
51908 return 0;
51909   ;
51910   return 0;
51911 }
51912 _ACEOF
51913 rm -f conftest.$ac_objext
51914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51915   (eval $ac_compile) 2>conftest.er1
51916   ac_status=$?
51917   grep -v '^ *+' conftest.er1 >conftest.err
51918   rm -f conftest.er1
51919   cat conftest.err >&5
51920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51921   (exit $ac_status); } &&
51922          { ac_try='test -z "$ac_c_werror_flag"
51923                          || test ! -s conftest.err'
51924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51925   (eval $ac_try) 2>&5
51926   ac_status=$?
51927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51928   (exit $ac_status); }; } &&
51929          { ac_try='test -s conftest.$ac_objext'
51930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51931   (eval $ac_try) 2>&5
51932   ac_status=$?
51933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51934   (exit $ac_status); }; }; then
51935   ac_cv_member_struct_msghdr_msg_control=yes
51936 else
51937   echo "$as_me: failed program was:" >&5
51938 sed 's/^/| /' conftest.$ac_ext >&5
51939
51940 cat >conftest.$ac_ext <<_ACEOF
51941 /* confdefs.h.  */
51942 _ACEOF
51943 cat confdefs.h >>conftest.$ac_ext
51944 cat >>conftest.$ac_ext <<_ACEOF
51945 /* end confdefs.h.  */
51946 $ac_includes_default
51947 #ifdef HAVE_SYS_SOCKET_H
51948 #include <sys/socket.h>
51949 #endif
51950
51951 int
51952 main ()
51953 {
51954 static struct msghdr ac_aggr;
51955 if (sizeof ac_aggr.msg_control)
51956 return 0;
51957   ;
51958   return 0;
51959 }
51960 _ACEOF
51961 rm -f conftest.$ac_objext
51962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51963   (eval $ac_compile) 2>conftest.er1
51964   ac_status=$?
51965   grep -v '^ *+' conftest.er1 >conftest.err
51966   rm -f conftest.er1
51967   cat conftest.err >&5
51968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51969   (exit $ac_status); } &&
51970          { ac_try='test -z "$ac_c_werror_flag"
51971                          || test ! -s conftest.err'
51972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51973   (eval $ac_try) 2>&5
51974   ac_status=$?
51975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51976   (exit $ac_status); }; } &&
51977          { ac_try='test -s conftest.$ac_objext'
51978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51979   (eval $ac_try) 2>&5
51980   ac_status=$?
51981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51982   (exit $ac_status); }; }; then
51983   ac_cv_member_struct_msghdr_msg_control=yes
51984 else
51985   echo "$as_me: failed program was:" >&5
51986 sed 's/^/| /' conftest.$ac_ext >&5
51987
51988 ac_cv_member_struct_msghdr_msg_control=no
51989 fi
51990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51991 fi
51992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51993 fi
51994 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
51995 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
51996 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
51997
51998 cat >>confdefs.h <<_ACEOF
51999 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
52000 _ACEOF
52001
52002
52003 fi
52004
52005         fi
52006         LIBSRCS="$LIBSRCS getpeereid.c"
52007 fi
52008 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
52009         if test "$ac_cv_func_snprintf" != yes; then
52010
52011 cat >>confdefs.h <<\_ACEOF
52012 #define snprintf ber_pvt_snprintf
52013 _ACEOF
52014
52015         fi
52016         if test "$ac_cv_func_vsnprintf" != yes; then
52017
52018 cat >>confdefs.h <<\_ACEOF
52019 #define vsnprintf ber_pvt_vsnprintf
52020 _ACEOF
52021
52022         fi
52023 fi
52024
52025
52026 if test "$ol_enable_slapi" != no ; then
52027
52028 for ac_header in ltdl.h
52029 do
52030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52032   echo "$as_me:$LINENO: checking for $ac_header" >&5
52033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52035   echo $ECHO_N "(cached) $ECHO_C" >&6
52036 fi
52037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52039 else
52040   # Is the header compilable?
52041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52043 cat >conftest.$ac_ext <<_ACEOF
52044 /* confdefs.h.  */
52045 _ACEOF
52046 cat confdefs.h >>conftest.$ac_ext
52047 cat >>conftest.$ac_ext <<_ACEOF
52048 /* end confdefs.h.  */
52049 $ac_includes_default
52050 #include <$ac_header>
52051 _ACEOF
52052 rm -f conftest.$ac_objext
52053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52054   (eval $ac_compile) 2>conftest.er1
52055   ac_status=$?
52056   grep -v '^ *+' conftest.er1 >conftest.err
52057   rm -f conftest.er1
52058   cat conftest.err >&5
52059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52060   (exit $ac_status); } &&
52061          { ac_try='test -z "$ac_c_werror_flag"
52062                          || test ! -s conftest.err'
52063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52064   (eval $ac_try) 2>&5
52065   ac_status=$?
52066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52067   (exit $ac_status); }; } &&
52068          { ac_try='test -s conftest.$ac_objext'
52069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52070   (eval $ac_try) 2>&5
52071   ac_status=$?
52072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52073   (exit $ac_status); }; }; then
52074   ac_header_compiler=yes
52075 else
52076   echo "$as_me: failed program was:" >&5
52077 sed 's/^/| /' conftest.$ac_ext >&5
52078
52079 ac_header_compiler=no
52080 fi
52081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52083 echo "${ECHO_T}$ac_header_compiler" >&6
52084
52085 # Is the header present?
52086 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52088 cat >conftest.$ac_ext <<_ACEOF
52089 /* confdefs.h.  */
52090 _ACEOF
52091 cat confdefs.h >>conftest.$ac_ext
52092 cat >>conftest.$ac_ext <<_ACEOF
52093 /* end confdefs.h.  */
52094 #include <$ac_header>
52095 _ACEOF
52096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52097   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52098   ac_status=$?
52099   grep -v '^ *+' conftest.er1 >conftest.err
52100   rm -f conftest.er1
52101   cat conftest.err >&5
52102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52103   (exit $ac_status); } >/dev/null; then
52104   if test -s conftest.err; then
52105     ac_cpp_err=$ac_c_preproc_warn_flag
52106     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52107   else
52108     ac_cpp_err=
52109   fi
52110 else
52111   ac_cpp_err=yes
52112 fi
52113 if test -z "$ac_cpp_err"; then
52114   ac_header_preproc=yes
52115 else
52116   echo "$as_me: failed program was:" >&5
52117 sed 's/^/| /' conftest.$ac_ext >&5
52118
52119   ac_header_preproc=no
52120 fi
52121 rm -f conftest.err conftest.$ac_ext
52122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52123 echo "${ECHO_T}$ac_header_preproc" >&6
52124
52125 # So?  What about this header?
52126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52127   yes:no: )
52128     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52130     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52132     ac_header_preproc=yes
52133     ;;
52134   no:yes:* )
52135     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52137     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
52138 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
52139     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52141     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
52142 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
52143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52145     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52147     (
52148       cat <<\_ASBOX
52149 ## ------------------------------------------ ##
52150 ## Report this to the AC_PACKAGE_NAME lists.  ##
52151 ## ------------------------------------------ ##
52152 _ASBOX
52153     ) |
52154       sed "s/^/$as_me: WARNING:     /" >&2
52155     ;;
52156 esac
52157 echo "$as_me:$LINENO: checking for $ac_header" >&5
52158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52160   echo $ECHO_N "(cached) $ECHO_C" >&6
52161 else
52162   eval "$as_ac_Header=\$ac_header_preproc"
52163 fi
52164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52166
52167 fi
52168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52169   cat >>confdefs.h <<_ACEOF
52170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52171 _ACEOF
52172
52173 fi
52174
52175 done
52176
52177
52178         if test $ac_cv_header_ltdl_h != yes ; then
52179                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
52180 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
52181    { (exit 1); exit 1; }; }
52182         fi
52183         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
52184 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
52185 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
52186   echo $ECHO_N "(cached) $ECHO_C" >&6
52187 else
52188   ac_check_lib_save_LIBS=$LIBS
52189 LIBS="-lltdl  $LIBS"
52190 cat >conftest.$ac_ext <<_ACEOF
52191 /* confdefs.h.  */
52192 _ACEOF
52193 cat confdefs.h >>conftest.$ac_ext
52194 cat >>conftest.$ac_ext <<_ACEOF
52195 /* end confdefs.h.  */
52196
52197 /* Override any gcc2 internal prototype to avoid an error.  */
52198 #ifdef __cplusplus
52199 extern "C"
52200 #endif
52201 /* We use char because int might match the return type of a gcc2
52202    builtin and then its argument prototype would still apply.  */
52203 char lt_dlinit ();
52204 int
52205 main ()
52206 {
52207 lt_dlinit ();
52208   ;
52209   return 0;
52210 }
52211 _ACEOF
52212 rm -f conftest.$ac_objext conftest$ac_exeext
52213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52214   (eval $ac_link) 2>conftest.er1
52215   ac_status=$?
52216   grep -v '^ *+' conftest.er1 >conftest.err
52217   rm -f conftest.er1
52218   cat conftest.err >&5
52219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52220   (exit $ac_status); } &&
52221          { ac_try='test -z "$ac_c_werror_flag"
52222                          || test ! -s conftest.err'
52223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52224   (eval $ac_try) 2>&5
52225   ac_status=$?
52226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52227   (exit $ac_status); }; } &&
52228          { ac_try='test -s conftest$ac_exeext'
52229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52230   (eval $ac_try) 2>&5
52231   ac_status=$?
52232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52233   (exit $ac_status); }; }; then
52234   ac_cv_lib_ltdl_lt_dlinit=yes
52235 else
52236   echo "$as_me: failed program was:" >&5
52237 sed 's/^/| /' conftest.$ac_ext >&5
52238
52239 ac_cv_lib_ltdl_lt_dlinit=no
52240 fi
52241 rm -f conftest.err conftest.$ac_objext \
52242       conftest$ac_exeext conftest.$ac_ext
52243 LIBS=$ac_check_lib_save_LIBS
52244 fi
52245 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
52246 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
52247 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
52248
52249                 SLAPI_LIBS=-lltdl
52250                 LIBSLAPI=libslapi.a
52251                 LIBSLAPITOOLS=../libslapi.a
52252
52253 cat >>confdefs.h <<\_ACEOF
52254 #define HAVE_LIBLTDL 1
52255 _ACEOF
52256
52257
52258 else
52259   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
52260 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
52261    { (exit 1); exit 1; }; }
52262 fi
52263
52264
52265
52266 cat >>confdefs.h <<\_ACEOF
52267 #define LDAP_SLAPI 1
52268 _ACEOF
52269
52270 fi
52271
52272 if test "$ol_enable_debug" != no ; then
52273
52274 cat >>confdefs.h <<\_ACEOF
52275 #define LDAP_DEBUG 1
52276 _ACEOF
52277
52278 fi
52279 if test "$ol_enable_syslog" = yes ; then
52280
52281 cat >>confdefs.h <<\_ACEOF
52282 #define LDAP_SYSLOG 1
52283 _ACEOF
52284
52285 fi
52286 if test "$ol_link_kbind" != no ; then
52287
52288 cat >>confdefs.h <<\_ACEOF
52289 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
52290 _ACEOF
52291
52292 fi
52293 if test "$ol_enable_proctitle" != no ; then
52294
52295 cat >>confdefs.h <<\_ACEOF
52296 #define LDAP_PROCTITLE 1
52297 _ACEOF
52298
52299 fi
52300 if test "$ol_enable_referrals" != no ; then
52301
52302 cat >>confdefs.h <<\_ACEOF
52303 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
52304 _ACEOF
52305
52306 fi
52307 if test "$ol_enable_local" != no; then
52308
52309 cat >>confdefs.h <<\_ACEOF
52310 #define LDAP_PF_LOCAL 1
52311 _ACEOF
52312
52313 fi
52314 if test "$ol_link_ipv6" != no; then
52315
52316 cat >>confdefs.h <<\_ACEOF
52317 #define LDAP_PF_INET6 1
52318 _ACEOF
52319
52320 fi
52321 if test "$ol_enable_cleartext" != no ; then
52322
52323 cat >>confdefs.h <<\_ACEOF
52324 #define SLAPD_CLEARTEXT 1
52325 _ACEOF
52326
52327 fi
52328 if test "$ol_enable_crypt" != no ; then
52329
52330 cat >>confdefs.h <<\_ACEOF
52331 #define SLAPD_CRYPT 1
52332 _ACEOF
52333
52334 fi
52335 if test "$ol_link_spasswd" != no ; then
52336
52337 cat >>confdefs.h <<\_ACEOF
52338 #define SLAPD_SPASSWD 1
52339 _ACEOF
52340
52341 fi
52342 if test "$ol_enable_multimaster" != no ; then
52343
52344 cat >>confdefs.h <<\_ACEOF
52345 #define SLAPD_MULTIMASTER 1
52346 _ACEOF
52347
52348 fi
52349 if test "$ol_enable_rlookups" != no ; then
52350
52351 cat >>confdefs.h <<\_ACEOF
52352 #define SLAPD_RLOOKUPS 1
52353 _ACEOF
52354
52355 fi
52356 if test "$ol_enable_aci" != no ; then
52357
52358 cat >>confdefs.h <<\_ACEOF
52359 #define SLAPD_ACI_ENABLED 1
52360 _ACEOF
52361
52362 fi
52363
52364 if test "$ol_link_modules" != no ; then
52365
52366 cat >>confdefs.h <<\_ACEOF
52367 #define SLAPD_MODULES 1
52368 _ACEOF
52369
52370         BUILD_SLAPD=yes
52371         SLAPD_MODULES_LDFLAGS="-dlopen self"
52372 fi
52373
52374
52375 cat >>confdefs.h <<\_ACEOF
52376 #define SLAPD_MOD_STATIC 1
52377 _ACEOF
52378
52379
52380 cat >>confdefs.h <<\_ACEOF
52381 #define SLAPD_MOD_DYNAMIC 2
52382 _ACEOF
52383
52384
52385 if test "$ol_enable_bdb" != no ; then
52386         BUILD_SLAPD=yes
52387         BUILD_BDB=$ol_enable_bdb
52388         if test "$ol_enable_bdb" = mod ; then
52389                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
52390                 MFLAG=SLAPD_MOD_DYNAMIC
52391         else
52392                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
52393                 MFLAG=SLAPD_MOD_STATIC
52394         fi
52395
52396 cat >>confdefs.h <<_ACEOF
52397 #define SLAPD_BDB $MFLAG
52398 _ACEOF
52399
52400 fi
52401
52402 if test "$ol_enable_dnssrv" != no ; then
52403         BUILD_SLAPD=yes
52404         BUILD_DNSSRV=$ol_enable_dnssrv
52405         if test "$ol_enable_dnssrv" = mod ; then
52406                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
52407                 MFLAG=SLAPD_MOD_DYNAMIC
52408         else
52409                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
52410                 MFLAG=SLAPD_MOD_STATIC
52411         fi
52412
52413 cat >>confdefs.h <<_ACEOF
52414 #define SLAPD_DNSSRV $MFLAG
52415 _ACEOF
52416
52417 fi
52418
52419 if test "$ol_enable_hdb" != no ; then
52420         BUILD_SLAPD=yes
52421         BUILD_HDB=$ol_enable_hdb
52422         if test "$ol_enable_hdb" = mod ; then
52423                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
52424                 MFLAG=SLAPD_MOD_DYNAMIC
52425         else
52426                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
52427                 MFLAG=SLAPD_MOD_STATIC
52428         fi
52429
52430 cat >>confdefs.h <<_ACEOF
52431 #define SLAPD_HDB $MFLAG
52432 _ACEOF
52433
52434 fi
52435
52436 if test "$ol_enable_ldap" != no ; then
52437         BUILD_SLAPD=yes
52438         BUILD_LDAP=$ol_enable_ldap
52439         if test "$ol_enable_ldap" = mod ; then
52440                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
52441                 MFLAG=SLAPD_MOD_DYNAMIC
52442         else
52443                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
52444                 MFLAG=SLAPD_MOD_STATIC
52445         fi
52446
52447 cat >>confdefs.h <<_ACEOF
52448 #define SLAPD_LDAP $MFLAG
52449 _ACEOF
52450
52451 fi
52452
52453 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
52454         BUILD_SLAPD=yes
52455         BUILD_LDBM=$ol_enable_ldbm
52456         if test "$ol_enable_ldbm" = mod ; then
52457                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
52458                 MFLAG=SLAPD_MOD_DYNAMIC
52459         else
52460                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
52461                 MFLAG=SLAPD_MOD_STATIC
52462         fi
52463
52464 cat >>confdefs.h <<_ACEOF
52465 #define SLAPD_LDBM $MFLAG
52466 _ACEOF
52467
52468 fi
52469
52470 if test "$ol_enable_meta" != no ; then
52471         BUILD_SLAPD=yes
52472         BUILD_META=$ol_enable_meta
52473         BUILD_REWRITE=yes
52474         if test "$ol_enable_meta" = mod ; then
52475                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
52476                 MFLAG=SLAPD_MOD_DYNAMIC
52477         else
52478                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
52479                 MFLAG=SLAPD_MOD_STATIC
52480         fi
52481
52482 cat >>confdefs.h <<_ACEOF
52483 #define SLAPD_META $MFLAG
52484 _ACEOF
52485
52486 fi
52487
52488 if test "$ol_enable_monitor" != no ; then
52489         BUILD_SLAPD=yes
52490         BUILD_MONITOR=$ol_enable_monitor
52491         if test "$ol_enable_monitor" = mod ; then
52492                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
52493                 MFLAG=SLAPD_MOD_DYNAMIC
52494         else
52495                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
52496                 MFLAG=SLAPD_MOD_STATIC
52497         fi
52498
52499 cat >>confdefs.h <<_ACEOF
52500 #define SLAPD_MONITOR $MFLAG
52501 _ACEOF
52502
52503 fi
52504
52505 if test "$ol_enable_null" != no ; then
52506         BUILD_SLAPD=yes
52507         BUILD_NULL=$ol_enable_null
52508         if test "$ol_enable_null" = mod ; then
52509                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
52510                 MFLAG=SLAPD_MOD_DYNAMIC
52511         else
52512                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
52513                 MFLAG=SLAPD_MOD_STATIC
52514         fi
52515
52516 cat >>confdefs.h <<_ACEOF
52517 #define SLAPD_NULL $MFLAG
52518 _ACEOF
52519
52520 fi
52521
52522 if test "$ol_enable_passwd" != no ; then
52523         BUILD_SLAPD=yes
52524         BUILD_PASSWD=$ol_enable_passwd
52525         if test "$ol_enable_passwd" = mod ; then
52526                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
52527                 MFLAG=SLAPD_MOD_DYNAMIC
52528         else
52529                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
52530                 MFLAG=SLAPD_MOD_STATIC
52531         fi
52532
52533 cat >>confdefs.h <<_ACEOF
52534 #define SLAPD_PASSWD $MFLAG
52535 _ACEOF
52536
52537 fi
52538
52539 if test "$ol_link_perl" != no ; then
52540         BUILD_SLAPD=yes
52541         BUILD_PERL=$ol_enable_perl
52542         if test "$ol_enable_perl" = mod ; then
52543                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
52544                 MFLAG=SLAPD_MOD_DYNAMIC
52545         else
52546                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
52547                 MFLAG=SLAPD_MOD_STATIC
52548         fi
52549
52550 cat >>confdefs.h <<_ACEOF
52551 #define SLAPD_PERL $MFLAG
52552 _ACEOF
52553
52554 fi
52555
52556 if test "$ol_enable_relay" != no ; then
52557         BUILD_SLAPD=yes
52558         BUILD_RELAY=$ol_enable_relay
52559         if test "$ol_enable_relay" = mod ; then
52560                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
52561                 MFLAG=SLAPD_MOD_DYNAMIC
52562         else
52563                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
52564                 MFLAG=SLAPD_MOD_STATIC
52565         fi
52566
52567 cat >>confdefs.h <<_ACEOF
52568 #define SLAPD_RELAY $MFLAG
52569 _ACEOF
52570
52571 fi
52572
52573 if test "$ol_enable_shell" != no ; then
52574         if test "$ol_link_thread" != no ; then
52575                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
52576 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
52577         fi
52578         BUILD_SLAPD=yes
52579         BUILD_SHELL=$ol_enable_shell
52580         if test "$ol_enable_shell" = mod ; then
52581                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
52582                 MFLAG=SLAPD_MOD_DYNAMIC
52583         else
52584                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
52585                 MFLAG=SLAPD_MOD_STATIC
52586         fi
52587
52588 cat >>confdefs.h <<_ACEOF
52589 #define SLAPD_SHELL $MFLAG
52590 _ACEOF
52591
52592 fi
52593
52594 if test "$ol_link_sql" != no ; then
52595         BUILD_SLAPD=yes
52596         BUILD_SQL=$ol_enable_sql
52597         if test "$ol_enable_sql" = mod; then
52598                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
52599                 MFLAG=SLAPD_MOD_DYNAMIC
52600         else
52601                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
52602                 MFLAG=SLAPD_MOD_STATIC
52603         fi
52604
52605 cat >>confdefs.h <<_ACEOF
52606 #define SLAPD_SQL $MFLAG
52607 _ACEOF
52608
52609 fi
52610
52611 if test "$ol_enable_accesslog" != no ; then
52612         BUILD_ACCESSLOG=$ol_enable_accesslog
52613         if test "$ol_enable_accesslog" = mod ; then
52614                 MFLAG=SLAPD_MOD_DYNAMIC
52615                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
52616         else
52617                 MFLAG=SLAPD_MOD_STATIC
52618                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
52619         fi
52620
52621 cat >>confdefs.h <<_ACEOF
52622 #define SLAPD_OVER_ACCESSLOG $MFLAG
52623 _ACEOF
52624
52625 fi
52626
52627 if test "$ol_enable_denyop" != no ; then
52628         BUILD_DENYOP=$ol_enable_denyop
52629         if test "$ol_enable_denyop" = mod ; then
52630                 MFLAG=SLAPD_MOD_DYNAMIC
52631                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
52632         else
52633                 MFLAG=SLAPD_MOD_STATIC
52634                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
52635         fi
52636
52637 cat >>confdefs.h <<_ACEOF
52638 #define SLAPD_OVER_DENYOP $MFLAG
52639 _ACEOF
52640
52641 fi
52642
52643 if test "$ol_enable_dyngroup" != no ; then
52644         BUILD_DYNGROUP=$ol_enable_dyngroup
52645         if test "$ol_enable_dyngroup" = mod ; then
52646                 MFLAG=SLAPD_MOD_DYNAMIC
52647                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
52648         else
52649                 MFLAG=SLAPD_MOD_STATIC
52650                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
52651         fi
52652
52653 cat >>confdefs.h <<_ACEOF
52654 #define SLAPD_OVER_DYNGROUP $MFLAG
52655 _ACEOF
52656
52657 fi
52658
52659 if test "$ol_enable_dynlist" != no ; then
52660         BUILD_DYNLIST=$ol_enable_dynlist
52661         if test "$ol_enable_dynlist" = mod ; then
52662                 MFLAG=SLAPD_MOD_DYNAMIC
52663                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
52664         else
52665                 MFLAG=SLAPD_MOD_STATIC
52666                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
52667         fi
52668
52669 cat >>confdefs.h <<_ACEOF
52670 #define SLAPD_OVER_DYNLIST $MFLAG
52671 _ACEOF
52672
52673 fi
52674
52675 if test "$ol_enable_glue" != no ; then
52676         BUILD_GLUE=$ol_enable_glue
52677         if test "$ol_enable_glue" = mod ; then
52678                 MFLAG=SLAPD_MOD_DYNAMIC
52679                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
52680         else
52681                 MFLAG=SLAPD_MOD_STATIC
52682                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
52683         fi
52684
52685 cat >>confdefs.h <<_ACEOF
52686 #define SLAPD_OVER_GLUE $MFLAG
52687 _ACEOF
52688
52689 fi
52690
52691 if test "$ol_enable_lastmod" != no ; then
52692         BUILD_LASTMOD=$ol_enable_lastmod
52693         if test "$ol_enable_lastmod" = mod ; then
52694                 MFLAG=SLAPD_MOD_DYNAMIC
52695                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
52696         else
52697                 MFLAG=SLAPD_MOD_STATIC
52698                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
52699         fi
52700
52701 cat >>confdefs.h <<_ACEOF
52702 #define SLAPD_OVER_LASTMOD $MFLAG
52703 _ACEOF
52704
52705 fi
52706
52707 if test "$ol_enable_ppolicy" != no ; then
52708         BUILD_PPOLICY=$ol_enable_ppolicy
52709         if test "$ol_enable_ppolicy" = mod ; then
52710                 MFLAG=SLAPD_MOD_DYNAMIC
52711                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
52712         else
52713                 MFLAG=SLAPD_MOD_STATIC
52714                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
52715         fi
52716
52717 cat >>confdefs.h <<_ACEOF
52718 #define SLAPD_OVER_PPOLICY $MFLAG
52719 _ACEOF
52720
52721 fi
52722
52723 if test "$ol_enable_proxycache" != no ; then
52724         BUILD_PROXYCACHE=$ol_enable_proxycache
52725         if test "$ol_enable_proxycache" = mod ; then
52726                 MFLAG=SLAPD_MOD_DYNAMIC
52727                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
52728         else
52729                 MFLAG=SLAPD_MOD_STATIC
52730                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
52731         fi
52732
52733 cat >>confdefs.h <<_ACEOF
52734 #define SLAPD_OVER_PROXYCACHE $MFLAG
52735 _ACEOF
52736
52737 fi
52738
52739 if test "$ol_enable_refint" != no ; then
52740         BUILD_REFINT=$ol_enable_refint
52741         if test "$ol_enable_refint" = mod ; then
52742                 MFLAG=SLAPD_MOD_DYNAMIC
52743                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
52744         else
52745                 MFLAG=SLAPD_MOD_STATIC
52746                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
52747         fi
52748
52749 cat >>confdefs.h <<_ACEOF
52750 #define SLAPD_OVER_REFINT $MFLAG
52751 _ACEOF
52752
52753 fi
52754
52755 if test "$ol_enable_retcode" != no ; then
52756         BUILD_RETCODE=$ol_enable_retcode
52757         if test "$ol_enable_retcode" = mod ; then
52758                 MFLAG=SLAPD_MOD_DYNAMIC
52759                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
52760         else
52761                 MFLAG=SLAPD_MOD_STATIC
52762                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
52763         fi
52764
52765 cat >>confdefs.h <<_ACEOF
52766 #define SLAPD_OVER_RETCODE $MFLAG
52767 _ACEOF
52768
52769 fi
52770
52771 if test "$ol_enable_rwm" != no ; then
52772         BUILD_REWRITE=yes
52773         BUILD_RWM=$ol_enable_rwm
52774         if test "$ol_enable_rwm" = mod ; then
52775                 MFLAG=SLAPD_MOD_DYNAMIC
52776                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
52777         else
52778                 MFLAG=SLAPD_MOD_STATIC
52779                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
52780         fi
52781
52782 cat >>confdefs.h <<_ACEOF
52783 #define SLAPD_OVER_RWM $MFLAG
52784 _ACEOF
52785
52786 fi
52787
52788 if test "$ol_enable_syncprov" != no ; then
52789         BUILD_SYNCPROV=$ol_enable_syncprov
52790         if test "$ol_enable_syncprov" = mod ; then
52791                 MFLAG=SLAPD_MOD_DYNAMIC
52792                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
52793         else
52794                 MFLAG=SLAPD_MOD_STATIC
52795                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
52796         fi
52797
52798 cat >>confdefs.h <<_ACEOF
52799 #define SLAPD_OVER_SYNCPROV $MFLAG
52800 _ACEOF
52801
52802 fi
52803
52804 if test "$ol_enable_translucent" != no ; then
52805         BUILD_TRANSLUCENT=$ol_enable_translucent
52806         if test "$ol_enable_translucent" = mod ; then
52807                 MFLAG=SLAPD_MOD_DYNAMIC
52808                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
52809         else
52810                 MFLAG=SLAPD_MOD_STATIC
52811                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
52812         fi
52813
52814 cat >>confdefs.h <<_ACEOF
52815 #define SLAPD_OVER_TRANSLUCENT $MFLAG
52816 _ACEOF
52817
52818 fi
52819
52820 if test "$ol_enable_unique" != no ; then
52821         BUILD_UNIQUE=$ol_enable_unique
52822         if test "$ol_enable_unique" = mod ; then
52823                 MFLAG=SLAPD_MOD_DYNAMIC
52824                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
52825         else
52826                 MFLAG=SLAPD_MOD_STATIC
52827                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
52828         fi
52829
52830 cat >>confdefs.h <<_ACEOF
52831 #define SLAPD_OVER_UNIQUE $MFLAG
52832 _ACEOF
52833
52834 fi
52835
52836 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
52837         $BUILD_SLAPD = yes ; then
52838         BUILD_SLURPD=yes
52839 fi
52840
52841 if test "$ol_enable_rewrite" != no ; then
52842
52843 cat >>confdefs.h <<\_ACEOF
52844 #define ENABLE_REWRITE 1
52845 _ACEOF
52846
52847         BUILD_REWRITE=yes
52848 fi
52849
52850 if test "$ol_enable_slapi" != no ; then
52851
52852 cat >>confdefs.h <<\_ACEOF
52853 #define ENABLE_SLAPI 1
52854 _ACEOF
52855
52856         BUILD_SLAPI=yes
52857         SLAPD_SLAPI_DEPEND=libslapi.a
52858 fi
52859
52860
52861
52862 if test "$ac_cv_mingw32" = yes ; then
52863         PLAT=NT
52864         SLAPD_MODULES_LDFLAGS=
52865 else
52866         PLAT=UNIX
52867 fi
52868
52869
52870
52871
52872
52873
52874
52875
52876
52877
52878
52879
52880
52881
52882
52883
52884
52885
52886
52887
52888
52889
52890
52891
52892
52893
52894
52895
52896
52897
52898
52899
52900
52901
52902
52903
52904
52905
52906
52907
52908
52909
52910
52911
52912
52913
52914
52915
52916
52917
52918
52919
52920
52921
52922
52923
52924
52925
52926
52927
52928
52929
52930
52931
52932
52933
52934
52935
52936
52937
52938
52939
52940
52941
52942
52943
52944
52945
52946
52947 # Check whether --with-xxinstall or --without-xxinstall was given.
52948 if test "${with_xxinstall+set}" = set; then
52949   withval="$with_xxinstall"
52950
52951 fi;
52952
52953
52954                                                                                                                                                                                                                                                                                                                                                                                                                 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"
52955
52956
52957           ac_config_commands="$ac_config_commands default"
52958
52959
52960
52961 test "x$prefix" = xNONE && prefix=$ac_default_prefix
52962 # Let make expand exec_prefix.
52963 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52964
52965 # VPATH may cause trouble with some makes, so we remove $(srcdir),
52966 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
52967 # trailing colons and then remove the whole line if VPATH becomes empty
52968 # (actually we leave an empty line to preserve line numbers).
52969 if test "x$srcdir" = x.; then
52970   ac_vpsub='/^[  ]*VPATH[        ]*=/{
52971 s/:*\$(srcdir):*/:/;
52972 s/:*\${srcdir}:*/:/;
52973 s/:*@srcdir@:*/:/;
52974 s/^\([^=]*=[     ]*\):*/\1/;
52975 s/:*$//;
52976 s/^[^=]*=[       ]*$//;
52977 }'
52978 fi
52979
52980 DEFS=-DHAVE_CONFIG_H
52981
52982 ac_libobjs=
52983 ac_ltlibobjs=
52984 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52985   # 1. Remove the extension, and $U if already installed.
52986   ac_i=`echo "$ac_i" |
52987          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
52988   # 2. Add them.
52989   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
52990   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
52991 done
52992 LIBOBJS=$ac_libobjs
52993
52994 LTLIBOBJS=$ac_ltlibobjs
52995
52996
52997 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
52998   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
52999 Usually this means the macro was only invoked conditionally." >&5
53000 echo "$as_me: error: conditional \"AMDEP\" was never defined.
53001 Usually this means the macro was only invoked conditionally." >&2;}
53002    { (exit 1); exit 1; }; }
53003 fi
53004 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53005   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53006 Usually this means the macro was only invoked conditionally." >&5
53007 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53008 Usually this means the macro was only invoked conditionally." >&2;}
53009    { (exit 1); exit 1; }; }
53010 fi
53011 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
53012   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
53013 Usually this means the macro was only invoked conditionally." >&5
53014 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
53015 Usually this means the macro was only invoked conditionally." >&2;}
53016    { (exit 1); exit 1; }; }
53017 fi
53018 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53019   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53020 Usually this means the macro was only invoked conditionally." >&5
53021 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53022 Usually this means the macro was only invoked conditionally." >&2;}
53023    { (exit 1); exit 1; }; }
53024 fi
53025
53026 : ${CONFIG_STATUS=./config.status}
53027 ac_clean_files_save=$ac_clean_files
53028 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53029 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53030 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53031 cat >$CONFIG_STATUS <<_ACEOF
53032 #! $SHELL
53033 # Generated by $as_me.
53034 # Run this file to recreate the current configuration.
53035 # Compiler output produced by configure, useful for debugging
53036 # configure, is in config.log if it exists.
53037
53038 debug=false
53039 ac_cs_recheck=false
53040 ac_cs_silent=false
53041 SHELL=\${CONFIG_SHELL-$SHELL}
53042 _ACEOF
53043
53044 cat >>$CONFIG_STATUS <<\_ACEOF
53045 ## --------------------- ##
53046 ## M4sh Initialization.  ##
53047 ## --------------------- ##
53048
53049 # Be Bourne compatible
53050 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53051   emulate sh
53052   NULLCMD=:
53053   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53054   # is contrary to our usage.  Disable this feature.
53055   alias -g '${1+"$@"}'='"$@"'
53056 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
53057   set -o posix
53058 fi
53059 DUALCASE=1; export DUALCASE # for MKS sh
53060
53061 # Support unset when possible.
53062 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53063   as_unset=unset
53064 else
53065   as_unset=false
53066 fi
53067
53068
53069 # Work around bugs in pre-3.0 UWIN ksh.
53070 $as_unset ENV MAIL MAILPATH
53071 PS1='$ '
53072 PS2='> '
53073 PS4='+ '
53074
53075 # NLS nuisances.
53076 for as_var in \
53077   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53078   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53079   LC_TELEPHONE LC_TIME
53080 do
53081   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53082     eval $as_var=C; export $as_var
53083   else
53084     $as_unset $as_var
53085   fi
53086 done
53087
53088 # Required to use basename.
53089 if expr a : '\(a\)' >/dev/null 2>&1; then
53090   as_expr=expr
53091 else
53092   as_expr=false
53093 fi
53094
53095 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
53096   as_basename=basename
53097 else
53098   as_basename=false
53099 fi
53100
53101
53102 # Name of the executable.
53103 as_me=`$as_basename "$0" ||
53104 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53105          X"$0" : 'X\(//\)$' \| \
53106          X"$0" : 'X\(/\)$' \| \
53107          .     : '\(.\)' 2>/dev/null ||
53108 echo X/"$0" |
53109     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
53110           /^X\/\(\/\/\)$/{ s//\1/; q; }
53111           /^X\/\(\/\).*/{ s//\1/; q; }
53112           s/.*/./; q'`
53113
53114
53115 # PATH needs CR, and LINENO needs CR and PATH.
53116 # Avoid depending upon Character Ranges.
53117 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53118 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53119 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53120 as_cr_digits='0123456789'
53121 as_cr_alnum=$as_cr_Letters$as_cr_digits
53122
53123 # The user is always right.
53124 if test "${PATH_SEPARATOR+set}" != set; then
53125   echo "#! /bin/sh" >conf$$.sh
53126   echo  "exit 0"   >>conf$$.sh
53127   chmod +x conf$$.sh
53128   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53129     PATH_SEPARATOR=';'
53130   else
53131     PATH_SEPARATOR=:
53132   fi
53133   rm -f conf$$.sh
53134 fi
53135
53136
53137   as_lineno_1=$LINENO
53138   as_lineno_2=$LINENO
53139   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53140   test "x$as_lineno_1" != "x$as_lineno_2" &&
53141   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
53142   # Find who we are.  Look in the path if we contain no path at all
53143   # relative or not.
53144   case $0 in
53145     *[\\/]* ) as_myself=$0 ;;
53146     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53147 for as_dir in $PATH
53148 do
53149   IFS=$as_save_IFS
53150   test -z "$as_dir" && as_dir=.
53151   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53152 done
53153
53154        ;;
53155   esac
53156   # We did not find ourselves, most probably we were run as `sh COMMAND'
53157   # in which case we are not to be found in the path.
53158   if test "x$as_myself" = x; then
53159     as_myself=$0
53160   fi
53161   if test ! -f "$as_myself"; then
53162     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
53163 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
53164    { (exit 1); exit 1; }; }
53165   fi
53166   case $CONFIG_SHELL in
53167   '')
53168     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53169 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
53170 do
53171   IFS=$as_save_IFS
53172   test -z "$as_dir" && as_dir=.
53173   for as_base in sh bash ksh sh5; do
53174          case $as_dir in
53175          /*)
53176            if ("$as_dir/$as_base" -c '
53177   as_lineno_1=$LINENO
53178   as_lineno_2=$LINENO
53179   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53180   test "x$as_lineno_1" != "x$as_lineno_2" &&
53181   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
53182              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
53183              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
53184              CONFIG_SHELL=$as_dir/$as_base
53185              export CONFIG_SHELL
53186              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
53187            fi;;
53188          esac
53189        done
53190 done
53191 ;;
53192   esac
53193
53194   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53195   # uniformly replaced by the line number.  The first 'sed' inserts a
53196   # line-number line before each line; the second 'sed' does the real
53197   # work.  The second script uses 'N' to pair each line-number line
53198   # with the numbered line, and appends trailing '-' during
53199   # substitution so that $LINENO is not a special case at line end.
53200   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53201   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
53202   sed '=' <$as_myself |
53203     sed '
53204       N
53205       s,$,-,
53206       : loop
53207       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
53208       t loop
53209       s,-$,,
53210       s,^['$as_cr_digits']*\n,,
53211     ' >$as_me.lineno &&
53212   chmod +x $as_me.lineno ||
53213     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
53214 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
53215    { (exit 1); exit 1; }; }
53216
53217   # Don't try to exec as it changes $[0], causing all sort of problems
53218   # (the dirname of $[0] is not the place where we might find the
53219   # original and so on.  Autoconf is especially sensible to this).
53220   . ./$as_me.lineno
53221   # Exit status is that of the last command.
53222   exit
53223 }
53224
53225
53226 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
53227   *c*,-n*) ECHO_N= ECHO_C='
53228 ' ECHO_T='      ' ;;
53229   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
53230   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
53231 esac
53232
53233 if expr a : '\(a\)' >/dev/null 2>&1; then
53234   as_expr=expr
53235 else
53236   as_expr=false
53237 fi
53238
53239 rm -f conf$$ conf$$.exe conf$$.file
53240 echo >conf$$.file
53241 if ln -s conf$$.file conf$$ 2>/dev/null; then
53242   # We could just check for DJGPP; but this test a) works b) is more generic
53243   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
53244   if test -f conf$$.exe; then
53245     # Don't use ln at all; we don't have any links
53246     as_ln_s='cp -p'
53247   else
53248     as_ln_s='ln -s'
53249   fi
53250 elif ln conf$$.file conf$$ 2>/dev/null; then
53251   as_ln_s=ln
53252 else
53253   as_ln_s='cp -p'
53254 fi
53255 rm -f conf$$ conf$$.exe conf$$.file
53256
53257 if mkdir -p . 2>/dev/null; then
53258   as_mkdir_p=:
53259 else
53260   test -d ./-p && rmdir ./-p
53261   as_mkdir_p=false
53262 fi
53263
53264 as_executable_p="test -f"
53265
53266 # Sed expression to map a string onto a valid CPP name.
53267 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53268
53269 # Sed expression to map a string onto a valid variable name.
53270 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53271
53272
53273 # IFS
53274 # We need space, tab and new line, in precisely that order.
53275 as_nl='
53276 '
53277 IFS="   $as_nl"
53278
53279 # CDPATH.
53280 $as_unset CDPATH
53281
53282 exec 6>&1
53283
53284 # Open the log real soon, to keep \$[0] and so on meaningful, and to
53285 # report actual input values of CONFIG_FILES etc. instead of their
53286 # values after options handling.  Logging --version etc. is OK.
53287 exec 5>>config.log
53288 {
53289   echo
53290   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53291 ## Running $as_me. ##
53292 _ASBOX
53293 } >&5
53294 cat >&5 <<_CSEOF
53295
53296 This file was extended by $as_me, which was
53297 generated by GNU Autoconf 2.59.  Invocation command line was
53298
53299   CONFIG_FILES    = $CONFIG_FILES
53300   CONFIG_HEADERS  = $CONFIG_HEADERS
53301   CONFIG_LINKS    = $CONFIG_LINKS
53302   CONFIG_COMMANDS = $CONFIG_COMMANDS
53303   $ $0 $@
53304
53305 _CSEOF
53306 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
53307 echo >&5
53308 _ACEOF
53309
53310 # Files that config.status was made for.
53311 if test -n "$ac_config_files"; then
53312   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
53313 fi
53314
53315 if test -n "$ac_config_headers"; then
53316   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
53317 fi
53318
53319 if test -n "$ac_config_links"; then
53320   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
53321 fi
53322
53323 if test -n "$ac_config_commands"; then
53324   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
53325 fi
53326
53327 cat >>$CONFIG_STATUS <<\_ACEOF
53328
53329 ac_cs_usage="\
53330 \`$as_me' instantiates files from templates according to the
53331 current configuration.
53332
53333 Usage: $0 [OPTIONS] [FILE]...
53334
53335   -h, --help       print this help, then exit
53336   -V, --version    print version number, then exit
53337   -q, --quiet      do not print progress messages
53338   -d, --debug      don't remove temporary files
53339       --recheck    update $as_me by reconfiguring in the same conditions
53340   --file=FILE[:TEMPLATE]
53341                    instantiate the configuration file FILE
53342   --header=FILE[:TEMPLATE]
53343                    instantiate the configuration header FILE
53344
53345 Configuration files:
53346 $config_files
53347
53348 Configuration headers:
53349 $config_headers
53350
53351 Configuration commands:
53352 $config_commands
53353
53354 Report bugs to <bug-autoconf@gnu.org>."
53355 _ACEOF
53356
53357 cat >>$CONFIG_STATUS <<_ACEOF
53358 ac_cs_version="\\
53359 config.status
53360 configured by $0, generated by GNU Autoconf 2.59,
53361   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
53362
53363 Copyright (C) 2003 Free Software Foundation, Inc.
53364 This config.status script is free software; the Free Software Foundation
53365 gives unlimited permission to copy, distribute and modify it."
53366 srcdir=$srcdir
53367 INSTALL="$INSTALL"
53368 _ACEOF
53369
53370 cat >>$CONFIG_STATUS <<\_ACEOF
53371 # If no file are specified by the user, then we need to provide default
53372 # value.  By we need to know if files were specified by the user.
53373 ac_need_defaults=:
53374 while test $# != 0
53375 do
53376   case $1 in
53377   --*=*)
53378     ac_option=`expr "x$1" : 'x\([^=]*\)='`
53379     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53380     ac_shift=:
53381     ;;
53382   -*)
53383     ac_option=$1
53384     ac_optarg=$2
53385     ac_shift=shift
53386     ;;
53387   *) # This is not an option, so the user has probably given explicit
53388      # arguments.
53389      ac_option=$1
53390      ac_need_defaults=false;;
53391   esac
53392
53393   case $ac_option in
53394   # Handling of the options.
53395 _ACEOF
53396 cat >>$CONFIG_STATUS <<\_ACEOF
53397   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53398     ac_cs_recheck=: ;;
53399   --version | --vers* | -V )
53400     echo "$ac_cs_version"; exit 0 ;;
53401   --he | --h)
53402     # Conflict between --help and --header
53403     { { echo "$as_me:$LINENO: error: ambiguous option: $1
53404 Try \`$0 --help' for more information." >&5
53405 echo "$as_me: error: ambiguous option: $1
53406 Try \`$0 --help' for more information." >&2;}
53407    { (exit 1); exit 1; }; };;
53408   --help | --hel | -h )
53409     echo "$ac_cs_usage"; exit 0 ;;
53410   --debug | --d* | -d )
53411     debug=: ;;
53412   --file | --fil | --fi | --f )
53413     $ac_shift
53414     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53415     ac_need_defaults=false;;
53416   --header | --heade | --head | --hea )
53417     $ac_shift
53418     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53419     ac_need_defaults=false;;
53420   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53421   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53422     ac_cs_silent=: ;;
53423
53424   # This is an error.
53425   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53426 Try \`$0 --help' for more information." >&5
53427 echo "$as_me: error: unrecognized option: $1
53428 Try \`$0 --help' for more information." >&2;}
53429    { (exit 1); exit 1; }; } ;;
53430
53431   *) ac_config_targets="$ac_config_targets $1" ;;
53432
53433   esac
53434   shift
53435 done
53436
53437 ac_configure_extra_args=
53438
53439 if $ac_cs_silent; then
53440   exec 6>/dev/null
53441   ac_configure_extra_args="$ac_configure_extra_args --silent"
53442 fi
53443
53444 _ACEOF
53445 cat >>$CONFIG_STATUS <<_ACEOF
53446 if \$ac_cs_recheck; then
53447   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53448   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53449 fi
53450
53451 _ACEOF
53452
53453 cat >>$CONFIG_STATUS <<_ACEOF
53454 #
53455 # INIT-COMMANDS section.
53456 #
53457
53458 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
53459 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
53460
53461 _ACEOF
53462
53463
53464
53465 cat >>$CONFIG_STATUS <<\_ACEOF
53466 for ac_config_target in $ac_config_targets
53467 do
53468   case "$ac_config_target" in
53469   # Handling of arguments.
53470   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
53471   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
53472   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
53473   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
53474   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
53475   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
53476   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
53477   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
53478   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
53479   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
53480   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
53481   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53482   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53483   "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" ;;
53484   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53485   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53486   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53487   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
53488   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
53489   "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" ;;
53490   "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" ;;
53491   "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" ;;
53492   "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" ;;
53493   "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" ;;
53494   "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" ;;
53495   "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" ;;
53496   "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" ;;
53497   "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" ;;
53498   "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" ;;
53499   "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" ;;
53500   "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" ;;
53501   "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" ;;
53502   "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" ;;
53503   "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" ;;
53504   "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" ;;
53505   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
53506   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
53507   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
53508   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
53509   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
53510   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
53511   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
53512   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
53513   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
53514   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
53515   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53516 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53517    { (exit 1); exit 1; }; };;
53518   esac
53519 done
53520
53521 # If the user did not use the arguments to specify the items to instantiate,
53522 # then the envvar interface is used.  Set only those that are not.
53523 # We use the long form for the default assignment because of an extremely
53524 # bizarre bug on SunOS 4.1.3.
53525 if $ac_need_defaults; then
53526   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53527   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53528   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53529 fi
53530
53531 # Have a temporary directory for convenience.  Make it in the build tree
53532 # simply because there is no reason to put it here, and in addition,
53533 # creating and moving files from /tmp can sometimes cause problems.
53534 # Create a temporary directory, and hook for its removal unless debugging.
53535 $debug ||
53536 {
53537   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
53538   trap '{ (exit 1); exit 1; }' 1 2 13 15
53539 }
53540
53541 # Create a (secure) tmp directory for tmp files.
53542
53543 {
53544   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
53545   test -n "$tmp" && test -d "$tmp"
53546 }  ||
53547 {
53548   tmp=./confstat$$-$RANDOM
53549   (umask 077 && mkdir $tmp)
53550 } ||
53551 {
53552    echo "$me: cannot create a temporary directory in ." >&2
53553    { (exit 1); exit 1; }
53554 }
53555
53556 _ACEOF
53557
53558 cat >>$CONFIG_STATUS <<_ACEOF
53559
53560 #
53561 # CONFIG_FILES section.
53562 #
53563
53564 # No need to generate the scripts if there are no CONFIG_FILES.
53565 # This happens for instance when ./config.status config.h
53566 if test -n "\$CONFIG_FILES"; then
53567   # Protect against being on the right side of a sed subst in config.status.
53568   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
53569    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
53570 s,@SHELL@,$SHELL,;t t
53571 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
53572 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
53573 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
53574 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
53575 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
53576 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
53577 s,@exec_prefix@,$exec_prefix,;t t
53578 s,@prefix@,$prefix,;t t
53579 s,@program_transform_name@,$program_transform_name,;t t
53580 s,@bindir@,$bindir,;t t
53581 s,@sbindir@,$sbindir,;t t
53582 s,@libexecdir@,$libexecdir,;t t
53583 s,@datadir@,$datadir,;t t
53584 s,@sysconfdir@,$sysconfdir,;t t
53585 s,@sharedstatedir@,$sharedstatedir,;t t
53586 s,@localstatedir@,$localstatedir,;t t
53587 s,@libdir@,$libdir,;t t
53588 s,@includedir@,$includedir,;t t
53589 s,@oldincludedir@,$oldincludedir,;t t
53590 s,@infodir@,$infodir,;t t
53591 s,@mandir@,$mandir,;t t
53592 s,@build_alias@,$build_alias,;t t
53593 s,@host_alias@,$host_alias,;t t
53594 s,@target_alias@,$target_alias,;t t
53595 s,@DEFS@,$DEFS,;t t
53596 s,@ECHO_C@,$ECHO_C,;t t
53597 s,@ECHO_N@,$ECHO_N,;t t
53598 s,@ECHO_T@,$ECHO_T,;t t
53599 s,@LIBS@,$LIBS,;t t
53600 s,@build@,$build,;t t
53601 s,@build_cpu@,$build_cpu,;t t
53602 s,@build_vendor@,$build_vendor,;t t
53603 s,@build_os@,$build_os,;t t
53604 s,@host@,$host,;t t
53605 s,@host_cpu@,$host_cpu,;t t
53606 s,@host_vendor@,$host_vendor,;t t
53607 s,@host_os@,$host_os,;t t
53608 s,@target@,$target,;t t
53609 s,@target_cpu@,$target_cpu,;t t
53610 s,@target_vendor@,$target_vendor,;t t
53611 s,@target_os@,$target_os,;t t
53612 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
53613 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
53614 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
53615 s,@CYGPATH_W@,$CYGPATH_W,;t t
53616 s,@PACKAGE@,$PACKAGE,;t t
53617 s,@VERSION@,$VERSION,;t t
53618 s,@ACLOCAL@,$ACLOCAL,;t t
53619 s,@AUTOCONF@,$AUTOCONF,;t t
53620 s,@AUTOMAKE@,$AUTOMAKE,;t t
53621 s,@AUTOHEADER@,$AUTOHEADER,;t t
53622 s,@MAKEINFO@,$MAKEINFO,;t t
53623 s,@install_sh@,$install_sh,;t t
53624 s,@STRIP@,$STRIP,;t t
53625 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
53626 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
53627 s,@mkdir_p@,$mkdir_p,;t t
53628 s,@AWK@,$AWK,;t t
53629 s,@SET_MAKE@,$SET_MAKE,;t t
53630 s,@am__leading_dot@,$am__leading_dot,;t t
53631 s,@AMTAR@,$AMTAR,;t t
53632 s,@am__tar@,$am__tar,;t t
53633 s,@am__untar@,$am__untar,;t t
53634 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
53635 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
53636 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
53637 s,@top_builddir@,$top_builddir,;t t
53638 s,@ldap_subdir@,$ldap_subdir,;t t
53639 s,@CC@,$CC,;t t
53640 s,@AR@,$AR,;t t
53641 s,@CFLAGS@,$CFLAGS,;t t
53642 s,@LDFLAGS@,$LDFLAGS,;t t
53643 s,@CPPFLAGS@,$CPPFLAGS,;t t
53644 s,@ac_ct_CC@,$ac_ct_CC,;t t
53645 s,@EXEEXT@,$EXEEXT,;t t
53646 s,@OBJEXT@,$OBJEXT,;t t
53647 s,@DEPDIR@,$DEPDIR,;t t
53648 s,@am__include@,$am__include,;t t
53649 s,@am__quote@,$am__quote,;t t
53650 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
53651 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
53652 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
53653 s,@CCDEPMODE@,$CCDEPMODE,;t t
53654 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
53655 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
53656 s,@EGREP@,$EGREP,;t t
53657 s,@LN_S@,$LN_S,;t t
53658 s,@ECHO@,$ECHO,;t t
53659 s,@ac_ct_AR@,$ac_ct_AR,;t t
53660 s,@RANLIB@,$RANLIB,;t t
53661 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
53662 s,@DLLTOOL@,$DLLTOOL,;t t
53663 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
53664 s,@AS@,$AS,;t t
53665 s,@ac_ct_AS@,$ac_ct_AS,;t t
53666 s,@OBJDUMP@,$OBJDUMP,;t t
53667 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
53668 s,@CPP@,$CPP,;t t
53669 s,@CXX@,$CXX,;t t
53670 s,@CXXFLAGS@,$CXXFLAGS,;t t
53671 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
53672 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
53673 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
53674 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
53675 s,@CXXCPP@,$CXXCPP,;t t
53676 s,@F77@,$F77,;t t
53677 s,@FFLAGS@,$FFLAGS,;t t
53678 s,@ac_ct_F77@,$ac_ct_F77,;t t
53679 s,@LIBTOOL@,$LIBTOOL,;t t
53680 s,@PERLBIN@,$PERLBIN,;t t
53681 s,@OL_MKDEP@,$OL_MKDEP,;t t
53682 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
53683 s,@LTSTATIC@,$LTSTATIC,;t t
53684 s,@LIBOBJS@,$LIBOBJS,;t t
53685 s,@LIBSRCS@,$LIBSRCS,;t t
53686 s,@PLAT@,$PLAT,;t t
53687 s,@WITH_SASL@,$WITH_SASL,;t t
53688 s,@WITH_TLS@,$WITH_TLS,;t t
53689 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
53690 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
53691 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
53692 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
53693 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
53694 s,@BUILD_BDB@,$BUILD_BDB,;t t
53695 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
53696 s,@BUILD_HDB@,$BUILD_HDB,;t t
53697 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
53698 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
53699 s,@BUILD_META@,$BUILD_META,;t t
53700 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
53701 s,@BUILD_NULL@,$BUILD_NULL,;t t
53702 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
53703 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
53704 s,@BUILD_PERL@,$BUILD_PERL,;t t
53705 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
53706 s,@BUILD_SQL@,$BUILD_SQL,;t t
53707 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
53708 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
53709 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
53710 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
53711 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
53712 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
53713 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
53714 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
53715 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
53716 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
53717 s,@BUILD_RWM@,$BUILD_RWM,;t t
53718 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
53719 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
53720 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
53721 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
53722 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
53723 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
53724 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
53725 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
53726 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
53727 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
53728 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
53729 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
53730 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
53731 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
53732 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
53733 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
53734 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
53735 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
53736 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
53737 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
53738 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
53739 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
53740 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
53741 s,@SASL_LIBS@,$SASL_LIBS,;t t
53742 s,@TLS_LIBS@,$TLS_LIBS,;t t
53743 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
53744 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
53745 s,@LIBSLAPI@,$LIBSLAPI,;t t
53746 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
53747 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
53748 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
53749 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
53750 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
53751 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
53752 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
53753 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
53754 CEOF
53755
53756 _ACEOF
53757
53758   cat >>$CONFIG_STATUS <<\_ACEOF
53759   # Split the substitutions into bite-sized pieces for seds with
53760   # small command number limits, like on Digital OSF/1 and HP-UX.
53761   ac_max_sed_lines=48
53762   ac_sed_frag=1 # Number of current file.
53763   ac_beg=1 # First line for current file.
53764   ac_end=$ac_max_sed_lines # Line after last line for current file.
53765   ac_more_lines=:
53766   ac_sed_cmds=
53767   while $ac_more_lines; do
53768     if test $ac_beg -gt 1; then
53769       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53770     else
53771       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53772     fi
53773     if test ! -s $tmp/subs.frag; then
53774       ac_more_lines=false
53775     else
53776       # The purpose of the label and of the branching condition is to
53777       # speed up the sed processing (if there are no `@' at all, there
53778       # is no need to browse any of the substitutions).
53779       # These are the two extra sed commands mentioned above.
53780       (echo ':t
53781   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
53782       if test -z "$ac_sed_cmds"; then
53783         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
53784       else
53785         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
53786       fi
53787       ac_sed_frag=`expr $ac_sed_frag + 1`
53788       ac_beg=$ac_end
53789       ac_end=`expr $ac_end + $ac_max_sed_lines`
53790     fi
53791   done
53792   if test -z "$ac_sed_cmds"; then
53793     ac_sed_cmds=cat
53794   fi
53795 fi # test -n "$CONFIG_FILES"
53796
53797 _ACEOF
53798 cat >>$CONFIG_STATUS <<\_ACEOF
53799 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
53800   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53801   case $ac_file in
53802   - | *:- | *:-:* ) # input from stdin
53803         cat >$tmp/stdin
53804         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53805         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53806   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53807         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53808   * )   ac_file_in=$ac_file.in ;;
53809   esac
53810
53811   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
53812   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53813 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53814          X"$ac_file" : 'X\(//\)[^/]' \| \
53815          X"$ac_file" : 'X\(//\)$' \| \
53816          X"$ac_file" : 'X\(/\)' \| \
53817          .     : '\(.\)' 2>/dev/null ||
53818 echo X"$ac_file" |
53819     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53820           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53821           /^X\(\/\/\)$/{ s//\1/; q; }
53822           /^X\(\/\).*/{ s//\1/; q; }
53823           s/.*/./; q'`
53824   { if $as_mkdir_p; then
53825     mkdir -p "$ac_dir"
53826   else
53827     as_dir="$ac_dir"
53828     as_dirs=
53829     while test ! -d "$as_dir"; do
53830       as_dirs="$as_dir $as_dirs"
53831       as_dir=`(dirname "$as_dir") 2>/dev/null ||
53832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53833          X"$as_dir" : 'X\(//\)[^/]' \| \
53834          X"$as_dir" : 'X\(//\)$' \| \
53835          X"$as_dir" : 'X\(/\)' \| \
53836          .     : '\(.\)' 2>/dev/null ||
53837 echo X"$as_dir" |
53838     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53839           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53840           /^X\(\/\/\)$/{ s//\1/; q; }
53841           /^X\(\/\).*/{ s//\1/; q; }
53842           s/.*/./; q'`
53843     done
53844     test ! -n "$as_dirs" || mkdir $as_dirs
53845   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53846 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53847    { (exit 1); exit 1; }; }; }
53848
53849   ac_builddir=.
53850
53851 if test "$ac_dir" != .; then
53852   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
53853   # A "../" for each directory in $ac_dir_suffix.
53854   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
53855 else
53856   ac_dir_suffix= ac_top_builddir=
53857 fi
53858
53859 case $srcdir in
53860   .)  # No --srcdir option.  We are building in place.
53861     ac_srcdir=.
53862     if test -z "$ac_top_builddir"; then
53863        ac_top_srcdir=.
53864     else
53865        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
53866     fi ;;
53867   [\\/]* | ?:[\\/]* )  # Absolute path.
53868     ac_srcdir=$srcdir$ac_dir_suffix;
53869     ac_top_srcdir=$srcdir ;;
53870   *) # Relative path.
53871     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
53872     ac_top_srcdir=$ac_top_builddir$srcdir ;;
53873 esac
53874
53875 # Do not use `cd foo && pwd` to compute absolute paths, because
53876 # the directories may not exist.
53877 case `pwd` in
53878 .) ac_abs_builddir="$ac_dir";;
53879 *)
53880   case "$ac_dir" in
53881   .) ac_abs_builddir=`pwd`;;
53882   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
53883   *) ac_abs_builddir=`pwd`/"$ac_dir";;
53884   esac;;
53885 esac
53886 case $ac_abs_builddir in
53887 .) ac_abs_top_builddir=${ac_top_builddir}.;;
53888 *)
53889   case ${ac_top_builddir}. in
53890   .) ac_abs_top_builddir=$ac_abs_builddir;;
53891   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
53892   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
53893   esac;;
53894 esac
53895 case $ac_abs_builddir in
53896 .) ac_abs_srcdir=$ac_srcdir;;
53897 *)
53898   case $ac_srcdir in
53899   .) ac_abs_srcdir=$ac_abs_builddir;;
53900   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
53901   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
53902   esac;;
53903 esac
53904 case $ac_abs_builddir in
53905 .) ac_abs_top_srcdir=$ac_top_srcdir;;
53906 *)
53907   case $ac_top_srcdir in
53908   .) ac_abs_top_srcdir=$ac_abs_builddir;;
53909   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
53910   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
53911   esac;;
53912 esac
53913
53914
53915   case $INSTALL in
53916   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
53917   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
53918   esac
53919
53920   if test x"$ac_file" != x-; then
53921     { echo "$as_me:$LINENO: creating $ac_file" >&5
53922 echo "$as_me: creating $ac_file" >&6;}
53923     rm -f "$ac_file"
53924   fi
53925   # Let's still pretend it is `configure' which instantiates (i.e., don't
53926   # use $as_me), people would be surprised to read:
53927   #    /* config.h.  Generated by config.status.  */
53928   if test x"$ac_file" = x-; then
53929     configure_input=
53930   else
53931     configure_input="$ac_file.  "
53932   fi
53933   configure_input=$configure_input"Generated from `echo $ac_file_in |
53934                                      sed 's,.*/,,'` by configure."
53935
53936   # First look for the input files in the build tree, otherwise in the
53937   # src tree.
53938   ac_file_inputs=`IFS=:
53939     for f in $ac_file_in; do
53940       case $f in
53941       -) echo $tmp/stdin ;;
53942       [\\/$]*)
53943          # Absolute (can't be DOS-style, as IFS=:)
53944          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53945 echo "$as_me: error: cannot find input file: $f" >&2;}
53946    { (exit 1); exit 1; }; }
53947          echo "$f";;
53948       *) # Relative
53949          if test -f "$f"; then
53950            # Build tree
53951            echo "$f"
53952          elif test -f "$srcdir/$f"; then
53953            # Source tree
53954            echo "$srcdir/$f"
53955          else
53956            # /dev/null tree
53957            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53958 echo "$as_me: error: cannot find input file: $f" >&2;}
53959    { (exit 1); exit 1; }; }
53960          fi;;
53961       esac
53962     done` || { (exit 1); exit 1; }
53963 _ACEOF
53964 cat >>$CONFIG_STATUS <<_ACEOF
53965   sed "$ac_vpsub
53966 $extrasub
53967 _ACEOF
53968 cat >>$CONFIG_STATUS <<\_ACEOF
53969 :t
53970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53971 s,@configure_input@,$configure_input,;t t
53972 s,@srcdir@,$ac_srcdir,;t t
53973 s,@abs_srcdir@,$ac_abs_srcdir,;t t
53974 s,@top_srcdir@,$ac_top_srcdir,;t t
53975 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
53976 s,@builddir@,$ac_builddir,;t t
53977 s,@abs_builddir@,$ac_abs_builddir,;t t
53978 s,@top_builddir@,$ac_top_builddir,;t t
53979 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
53980 s,@INSTALL@,$ac_INSTALL,;t t
53981 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
53982   rm -f $tmp/stdin
53983   if test x"$ac_file" != x-; then
53984     mv $tmp/out $ac_file
53985   else
53986     cat $tmp/out
53987     rm -f $tmp/out
53988   fi
53989
53990 done
53991 _ACEOF
53992 cat >>$CONFIG_STATUS <<\_ACEOF
53993
53994 #
53995 # CONFIG_HEADER section.
53996 #
53997
53998 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
53999 # NAME is the cpp macro being defined and VALUE is the value it is being given.
54000 #
54001 # ac_d sets the value in "#define NAME VALUE" lines.
54002 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
54003 ac_dB='[         ].*$,\1#\2'
54004 ac_dC=' '
54005 ac_dD=',;t'
54006 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
54007 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
54008 ac_uB='$,\1#\2define\3'
54009 ac_uC=' '
54010 ac_uD=',;t'
54011
54012 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
54013   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
54014   case $ac_file in
54015   - | *:- | *:-:* ) # input from stdin
54016         cat >$tmp/stdin
54017         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54018         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54019   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54020         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54021   * )   ac_file_in=$ac_file.in ;;
54022   esac
54023
54024   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
54025 echo "$as_me: creating $ac_file" >&6;}
54026
54027   # First look for the input files in the build tree, otherwise in the
54028   # src tree.
54029   ac_file_inputs=`IFS=:
54030     for f in $ac_file_in; do
54031       case $f in
54032       -) echo $tmp/stdin ;;
54033       [\\/$]*)
54034          # Absolute (can't be DOS-style, as IFS=:)
54035          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54036 echo "$as_me: error: cannot find input file: $f" >&2;}
54037    { (exit 1); exit 1; }; }
54038          # Do quote $f, to prevent DOS paths from being IFS'd.
54039          echo "$f";;
54040       *) # Relative
54041          if test -f "$f"; then
54042            # Build tree
54043            echo "$f"
54044          elif test -f "$srcdir/$f"; then
54045            # Source tree
54046            echo "$srcdir/$f"
54047          else
54048            # /dev/null tree
54049            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54050 echo "$as_me: error: cannot find input file: $f" >&2;}
54051    { (exit 1); exit 1; }; }
54052          fi;;
54053       esac
54054     done` || { (exit 1); exit 1; }
54055   # Remove the trailing spaces.
54056   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
54057
54058 _ACEOF
54059
54060 # Transform confdefs.h into two sed scripts, `conftest.defines' and
54061 # `conftest.undefs', that substitutes the proper values into
54062 # config.h.in to produce config.h.  The first handles `#define'
54063 # templates, and the second `#undef' templates.
54064 # And first: Protect against being on the right side of a sed subst in
54065 # config.status.  Protect against being in an unquoted here document
54066 # in config.status.
54067 rm -f conftest.defines conftest.undefs
54068 # Using a here document instead of a string reduces the quoting nightmare.
54069 # Putting comments in sed scripts is not portable.
54070 #
54071 # `end' is used to avoid that the second main sed command (meant for
54072 # 0-ary CPP macros) applies to n-ary macro definitions.
54073 # See the Autoconf documentation for `clear'.
54074 cat >confdef2sed.sed <<\_ACEOF
54075 s/[\\&,]/\\&/g
54076 s,[\\$`],\\&,g
54077 t clear
54078 : clear
54079 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
54080 t end
54081 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
54082 : end
54083 _ACEOF
54084 # If some macros were called several times there might be several times
54085 # the same #defines, which is useless.  Nevertheless, we may not want to
54086 # sort them, since we want the *last* AC-DEFINE to be honored.
54087 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
54088 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
54089 rm -f confdef2sed.sed
54090
54091 # This sed command replaces #undef with comments.  This is necessary, for
54092 # example, in the case of _POSIX_SOURCE, which is predefined and required
54093 # on some systems where configure will not decide to define it.
54094 cat >>conftest.undefs <<\_ACEOF
54095 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
54096 _ACEOF
54097
54098 # Break up conftest.defines because some shells have a limit on the size
54099 # of here documents, and old seds have small limits too (100 cmds).
54100 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
54101 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
54102 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
54103 echo '  :' >>$CONFIG_STATUS
54104 rm -f conftest.tail
54105 while grep . conftest.defines >/dev/null
54106 do
54107   # Write a limited-size here document to $tmp/defines.sed.
54108   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
54109   # Speed up: don't consider the non `#define' lines.
54110   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
54111   # Work around the forget-to-reset-the-flag bug.
54112   echo 't clr' >>$CONFIG_STATUS
54113   echo ': clr' >>$CONFIG_STATUS
54114   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
54115   echo 'CEOF
54116   sed -f $tmp/defines.sed $tmp/in >$tmp/out
54117   rm -f $tmp/in
54118   mv $tmp/out $tmp/in
54119 ' >>$CONFIG_STATUS
54120   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
54121   rm -f conftest.defines
54122   mv conftest.tail conftest.defines
54123 done
54124 rm -f conftest.defines
54125 echo '  fi # grep' >>$CONFIG_STATUS
54126 echo >>$CONFIG_STATUS
54127
54128 # Break up conftest.undefs because some shells have a limit on the size
54129 # of here documents, and old seds have small limits too (100 cmds).
54130 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
54131 rm -f conftest.tail
54132 while grep . conftest.undefs >/dev/null
54133 do
54134   # Write a limited-size here document to $tmp/undefs.sed.
54135   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
54136   # Speed up: don't consider the non `#undef'
54137   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
54138   # Work around the forget-to-reset-the-flag bug.
54139   echo 't clr' >>$CONFIG_STATUS
54140   echo ': clr' >>$CONFIG_STATUS
54141   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
54142   echo 'CEOF
54143   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
54144   rm -f $tmp/in
54145   mv $tmp/out $tmp/in
54146 ' >>$CONFIG_STATUS
54147   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
54148   rm -f conftest.undefs
54149   mv conftest.tail conftest.undefs
54150 done
54151 rm -f conftest.undefs
54152
54153 cat >>$CONFIG_STATUS <<\_ACEOF
54154   # Let's still pretend it is `configure' which instantiates (i.e., don't
54155   # use $as_me), people would be surprised to read:
54156   #    /* config.h.  Generated by config.status.  */
54157   if test x"$ac_file" = x-; then
54158     echo "/* Generated by configure.  */" >$tmp/config.h
54159   else
54160     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
54161   fi
54162   cat $tmp/in >>$tmp/config.h
54163   rm -f $tmp/in
54164   if test x"$ac_file" != x-; then
54165     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
54166       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54167 echo "$as_me: $ac_file is unchanged" >&6;}
54168     else
54169       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54170 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54171          X"$ac_file" : 'X\(//\)[^/]' \| \
54172          X"$ac_file" : 'X\(//\)$' \| \
54173          X"$ac_file" : 'X\(/\)' \| \
54174          .     : '\(.\)' 2>/dev/null ||
54175 echo X"$ac_file" |
54176     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54177           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54178           /^X\(\/\/\)$/{ s//\1/; q; }
54179           /^X\(\/\).*/{ s//\1/; q; }
54180           s/.*/./; q'`
54181       { if $as_mkdir_p; then
54182     mkdir -p "$ac_dir"
54183   else
54184     as_dir="$ac_dir"
54185     as_dirs=
54186     while test ! -d "$as_dir"; do
54187       as_dirs="$as_dir $as_dirs"
54188       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54190          X"$as_dir" : 'X\(//\)[^/]' \| \
54191          X"$as_dir" : 'X\(//\)$' \| \
54192          X"$as_dir" : 'X\(/\)' \| \
54193          .     : '\(.\)' 2>/dev/null ||
54194 echo X"$as_dir" |
54195     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54196           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54197           /^X\(\/\/\)$/{ s//\1/; q; }
54198           /^X\(\/\).*/{ s//\1/; q; }
54199           s/.*/./; q'`
54200     done
54201     test ! -n "$as_dirs" || mkdir $as_dirs
54202   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54203 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54204    { (exit 1); exit 1; }; }; }
54205
54206       rm -f $ac_file
54207       mv $tmp/config.h $ac_file
54208     fi
54209   else
54210     cat $tmp/config.h
54211     rm -f $tmp/config.h
54212   fi
54213 # Compute $ac_file's index in $config_headers.
54214 _am_stamp_count=1
54215 for _am_header in $config_headers :; do
54216   case $_am_header in
54217     $ac_file | $ac_file:* )
54218       break ;;
54219     * )
54220       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
54221   esac
54222 done
54223 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
54224 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54225          X$ac_file : 'X\(//\)[^/]' \| \
54226          X$ac_file : 'X\(//\)$' \| \
54227          X$ac_file : 'X\(/\)' \| \
54228          .     : '\(.\)' 2>/dev/null ||
54229 echo X$ac_file |
54230     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54231           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54232           /^X\(\/\/\)$/{ s//\1/; q; }
54233           /^X\(\/\).*/{ s//\1/; q; }
54234           s/.*/./; q'`/stamp-h$_am_stamp_count
54235 done
54236 _ACEOF
54237 cat >>$CONFIG_STATUS <<\_ACEOF
54238
54239 #
54240 # CONFIG_COMMANDS section.
54241 #
54242 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
54243   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
54244   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
54245   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
54246 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54247          X"$ac_dest" : 'X\(//\)[^/]' \| \
54248          X"$ac_dest" : 'X\(//\)$' \| \
54249          X"$ac_dest" : 'X\(/\)' \| \
54250          .     : '\(.\)' 2>/dev/null ||
54251 echo X"$ac_dest" |
54252     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54253           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54254           /^X\(\/\/\)$/{ s//\1/; q; }
54255           /^X\(\/\).*/{ s//\1/; q; }
54256           s/.*/./; q'`
54257   { if $as_mkdir_p; then
54258     mkdir -p "$ac_dir"
54259   else
54260     as_dir="$ac_dir"
54261     as_dirs=
54262     while test ! -d "$as_dir"; do
54263       as_dirs="$as_dir $as_dirs"
54264       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54265 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54266          X"$as_dir" : 'X\(//\)[^/]' \| \
54267          X"$as_dir" : 'X\(//\)$' \| \
54268          X"$as_dir" : 'X\(/\)' \| \
54269          .     : '\(.\)' 2>/dev/null ||
54270 echo X"$as_dir" |
54271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54272           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54273           /^X\(\/\/\)$/{ s//\1/; q; }
54274           /^X\(\/\).*/{ s//\1/; q; }
54275           s/.*/./; q'`
54276     done
54277     test ! -n "$as_dirs" || mkdir $as_dirs
54278   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54279 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54280    { (exit 1); exit 1; }; }; }
54281
54282   ac_builddir=.
54283
54284 if test "$ac_dir" != .; then
54285   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54286   # A "../" for each directory in $ac_dir_suffix.
54287   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54288 else
54289   ac_dir_suffix= ac_top_builddir=
54290 fi
54291
54292 case $srcdir in
54293   .)  # No --srcdir option.  We are building in place.
54294     ac_srcdir=.
54295     if test -z "$ac_top_builddir"; then
54296        ac_top_srcdir=.
54297     else
54298        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54299     fi ;;
54300   [\\/]* | ?:[\\/]* )  # Absolute path.
54301     ac_srcdir=$srcdir$ac_dir_suffix;
54302     ac_top_srcdir=$srcdir ;;
54303   *) # Relative path.
54304     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54305     ac_top_srcdir=$ac_top_builddir$srcdir ;;
54306 esac
54307
54308 # Do not use `cd foo && pwd` to compute absolute paths, because
54309 # the directories may not exist.
54310 case `pwd` in
54311 .) ac_abs_builddir="$ac_dir";;
54312 *)
54313   case "$ac_dir" in
54314   .) ac_abs_builddir=`pwd`;;
54315   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54316   *) ac_abs_builddir=`pwd`/"$ac_dir";;
54317   esac;;
54318 esac
54319 case $ac_abs_builddir in
54320 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54321 *)
54322   case ${ac_top_builddir}. in
54323   .) ac_abs_top_builddir=$ac_abs_builddir;;
54324   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54325   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54326   esac;;
54327 esac
54328 case $ac_abs_builddir in
54329 .) ac_abs_srcdir=$ac_srcdir;;
54330 *)
54331   case $ac_srcdir in
54332   .) ac_abs_srcdir=$ac_abs_builddir;;
54333   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54334   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54335   esac;;
54336 esac
54337 case $ac_abs_builddir in
54338 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54339 *)
54340   case $ac_top_srcdir in
54341   .) ac_abs_top_srcdir=$ac_abs_builddir;;
54342   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54343   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54344   esac;;
54345 esac
54346
54347
54348   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
54349 echo "$as_me: executing $ac_dest commands" >&6;}
54350   case $ac_dest in
54351     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
54352   # Strip MF so we end up with the name of the file.
54353   mf=`echo "$mf" | sed -e 's/:.*$//'`
54354   # Check whether this is an Automake generated Makefile or not.
54355   # We used to match only the files named `Makefile.in', but
54356   # some people rename them; so instead we look at the file content.
54357   # Grep'ing the first line is not enough: some people post-process
54358   # each Makefile.in and add a new line on top of each file to say so.
54359   # So let's grep whole file.
54360   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
54361     dirpart=`(dirname "$mf") 2>/dev/null ||
54362 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54363          X"$mf" : 'X\(//\)[^/]' \| \
54364          X"$mf" : 'X\(//\)$' \| \
54365          X"$mf" : 'X\(/\)' \| \
54366          .     : '\(.\)' 2>/dev/null ||
54367 echo X"$mf" |
54368     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54369           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54370           /^X\(\/\/\)$/{ s//\1/; q; }
54371           /^X\(\/\).*/{ s//\1/; q; }
54372           s/.*/./; q'`
54373   else
54374     continue
54375   fi
54376   # Extract the definition of DEPDIR, am__include, and am__quote
54377   # from the Makefile without running `make'.
54378   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
54379   test -z "$DEPDIR" && continue
54380   am__include=`sed -n 's/^am__include = //p' < "$mf"`
54381   test -z "am__include" && continue
54382   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
54383   # When using ansi2knr, U may be empty or an underscore; expand it
54384   U=`sed -n 's/^U = //p' < "$mf"`
54385   # Find all dependency output files, they are included files with
54386   # $(DEPDIR) in their names.  We invoke sed twice because it is the
54387   # simplest approach to changing $(DEPDIR) to its actual value in the
54388   # expansion.
54389   for file in `sed -n "
54390     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
54391        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
54392     # Make sure the directory exists.
54393     test -f "$dirpart/$file" && continue
54394     fdir=`(dirname "$file") 2>/dev/null ||
54395 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54396          X"$file" : 'X\(//\)[^/]' \| \
54397          X"$file" : 'X\(//\)$' \| \
54398          X"$file" : 'X\(/\)' \| \
54399          .     : '\(.\)' 2>/dev/null ||
54400 echo X"$file" |
54401     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54402           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54403           /^X\(\/\/\)$/{ s//\1/; q; }
54404           /^X\(\/\).*/{ s//\1/; q; }
54405           s/.*/./; q'`
54406     { if $as_mkdir_p; then
54407     mkdir -p $dirpart/$fdir
54408   else
54409     as_dir=$dirpart/$fdir
54410     as_dirs=
54411     while test ! -d "$as_dir"; do
54412       as_dirs="$as_dir $as_dirs"
54413       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54414 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54415          X"$as_dir" : 'X\(//\)[^/]' \| \
54416          X"$as_dir" : 'X\(//\)$' \| \
54417          X"$as_dir" : 'X\(/\)' \| \
54418          .     : '\(.\)' 2>/dev/null ||
54419 echo X"$as_dir" |
54420     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54421           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54422           /^X\(\/\/\)$/{ s//\1/; q; }
54423           /^X\(\/\).*/{ s//\1/; q; }
54424           s/.*/./; q'`
54425     done
54426     test ! -n "$as_dirs" || mkdir $as_dirs
54427   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
54428 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
54429    { (exit 1); exit 1; }; }; }
54430
54431     # echo "creating $dirpart/$file"
54432     echo '# dummy' > "$dirpart/$file"
54433   done
54434 done
54435  ;;
54436     default )
54437 chmod +x tests/run
54438 date > stamp-h
54439 BACKENDSC="servers/slapd/backends.c"
54440 echo "Making $BACKENDSC"
54441 rm -f $BACKENDSC
54442 cat > $BACKENDSC << ENDX
54443 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
54444  *
54445  * Copyright 1998-2005 The OpenLDAP Foundation.
54446  * All rights reserved.
54447  *
54448  * Redistribution and use in source and binary forms, with or without
54449  * modification, are permitted only as authorized by the OpenLDAP
54450  * Public License.
54451  *
54452  * A copy of this license is available in the file LICENSE in the
54453  * top-level directory of the distribution or, alternatively, at
54454  * <http://www.OpenLDAP.org/license.html>.
54455  */
54456 /* This file is automatically generated by configure; please do not edit. */
54457
54458 #include "portable.h"
54459 #include "slap.h"
54460
54461 ENDX
54462 if test "${STATIC_BACKENDS}"; then
54463         for b in config ${STATIC_BACKENDS}; do
54464                 bb=`echo "${b}" | sed -e 's/back-//'`
54465                 cat >> $BACKENDSC << ENDX
54466 extern BI_init ${bb}_back_initialize;
54467 ENDX
54468         done
54469
54470         cat >> $BACKENDSC << ENDX
54471
54472 BackendInfo slap_binfo[] = {
54473 ENDX
54474
54475         for b in config ${STATIC_BACKENDS}; do
54476                 bb=`echo "${b}" | sed -e 's/back-//'`
54477                 echo "    Add ${bb} ..."
54478                 cat >> $BACKENDSC << ENDX
54479         { "${bb}", ${bb}_back_initialize },
54480 ENDX
54481         done
54482
54483         cat >> $BACKENDSC << ENDX
54484         { NULL, NULL },
54485 };
54486
54487 /* end of generated file */
54488 ENDX
54489 fi
54490
54491 echo Please run \"make depend\" to build dependencies
54492  ;;
54493   esac
54494 done
54495 _ACEOF
54496
54497 cat >>$CONFIG_STATUS <<\_ACEOF
54498
54499 { (exit 0); exit 0; }
54500 _ACEOF
54501 chmod +x $CONFIG_STATUS
54502 ac_clean_files=$ac_clean_files_save
54503
54504
54505 # configure is writing to config.log, and then calls config.status.
54506 # config.status does its own redirection, appending to config.log.
54507 # Unfortunately, on DOS this fails, as config.log is still kept open
54508 # by configure, so config.status won't be able to write to it; its
54509 # output is simply discarded.  So we exec the FD to /dev/null,
54510 # effectively closing config.log, so it can be properly (re)opened and
54511 # appended to by config.status.  When coming back to configure, we
54512 # need to make the FD available again.
54513 if test "$no_create" != yes; then
54514   ac_cs_success=:
54515   ac_config_status_args=
54516   test "$silent" = yes &&
54517     ac_config_status_args="$ac_config_status_args --quiet"
54518   exec 5>/dev/null
54519   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54520   exec 5>>config.log
54521   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54522   # would make configure fail if this is the last instruction.
54523   $ac_cs_success || { (exit 1); exit 1; }
54524 fi
54525