]> git.sur5r.net Git - openldap/blob - configure
Add back a few of the autoupdate suggested changes
[openldap] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289        echo_test_string="`eval $cmd`" &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="build/version.sh"
429 ac_default_prefix=/usr/local
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 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'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
909 ac_env_CC_value=$CC
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953   # Omit some internal or obsolete options to make the list less imposing.
954   # This message is too long to be a string in the A/UX 3.1 sh.
955   cat <<_ACEOF
956 \`configure' configures this package to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966   -h, --help              display this help and exit
967       --help=short        display options specific to this package
968       --help=recursive    display the short help of all the included packages
969   -V, --version           display version information and exit
970   -q, --quiet, --silent   do not print \`checking...' messages
971       --cache-file=FILE   cache test results in FILE [disabled]
972   -C, --config-cache      alias for \`--cache-file=config.cache'
973   -n, --no-create         do not create output files
974       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978   cat <<_ACEOF
979 Installation directories:
980   --prefix=PREFIX         install architecture-independent files in PREFIX
981                           [$ac_default_prefix]
982   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                           [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993   --bindir=DIR           user executables [EPREFIX/bin]
994   --sbindir=DIR          system admin executables [EPREFIX/sbin]
995   --libexecdir=DIR       program executables [EPREFIX/libexec]
996   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000   --libdir=DIR           object code libraries [EPREFIX/lib]
1001   --includedir=DIR       C header files [PREFIX/include]
1002   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003   --infodir=DIR          info documentation [PREFIX/info]
1004   --mandir=DIR           man documentation [PREFIX/man]
1005 _ACEOF
1006
1007   cat <<\_ACEOF
1008
1009 Program names:
1010   --program-prefix=PREFIX            prepend PREFIX to installed program names
1011   --program-suffix=SUFFIX            append SUFFIX to installed program names
1012   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1013
1014 System types:
1015   --build=BUILD     configure for building on BUILD [guessed]
1016   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1017   --target=TARGET   configure for building compilers for TARGET [HOST]
1018 _ACEOF
1019 fi
1020
1021 if test -n "$ac_init_help"; then
1022
1023   cat <<\_ACEOF
1024
1025 Optional Features:
1026   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1027   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1028   --enable-debug          enable debugging yes
1029   --enable-dynamic        enable linking built binaries with dynamic libs no
1030   --enable-syslog         enable syslog support auto
1031   --enable-proctitle      enable proctitle support yes
1032   --enable-ipv6           enable IPv6 support auto
1033   --enable-local          enable AF_LOCAL (AF_UNIX) socket support auto
1034   --enable-slapd          enable building slapd yes
1035     --enable-aci          enable per-object ACIs (experimental) no
1036     --enable-cleartext    enable cleartext passwords yes
1037     --enable-crypt        enable crypt(3) passwords no
1038     --enable-lmpasswd     enable LAN Manager passwords no
1039     --enable-spasswd      enable (Cyrus) SASL password verification no
1040     --enable-modules      enable dynamic module support no
1041     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay auto
1042     --enable-rlookups     enable reverse lookups of client hostnames no
1043     --enable-slapi        enable SLAPI support (experimental) no
1044     --enable-slp          enable SLPv2 support no
1045     --enable-wrappers     enable tcp wrapper support no
1046     --enable-backends     enable all available backends no|yes|mod
1047     --enable-bdb          enable Berkeley DB backend no|yes|mod ${ol_dflt_backends-yes}
1048     --enable-dnssrv       enable dnssrv backend no|yes|mod ${ol_dflt_backends-no}
1049     --enable-hdb          enable Hierarchical DB backend no|yes|mod ${ol_dflt_backends-yes}
1050     --enable-ldap         enable ldap backend no|yes|mod ${ol_dflt_backends-no}
1051     --enable-ldbm         enable ldbm backend no|yes|mod ${ol_dflt_backends-no}
1052     --enable-meta         enable metadirectory backend no|yes|mod ${ol_dflt_backends-no}
1053     --enable-monitor      enable monitor backend no|yes|mod ${ol_dflt_backends-yes}
1054     --enable-null         enable null backend no|yes|mod ${ol_dflt_backends-no}
1055     --enable-passwd       enable passwd backend no|yes|mod ${ol_dflt_backends-no}
1056     --enable-perl         enable perl backend no|yes|mod ${ol_dflt_backends-no}
1057     --enable-relay        enable relay backend no|yes|mod ${ol_dflt_backends-yes}
1058     --enable-shell        enable shell backend no|yes|mod ${ol_dflt_backends-no}
1059     --enable-sql          enable sql backend no|yes|mod ${ol_dflt_backends-no}
1060     --enable-overlays     enable all available overlays no|yes|mod
1061     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod ${ol_dflt_overlays-no}
1062     --enable-denyop       Deny Operation overlay no|yes|mod ${ol_dflt_overlays-no}
1063     --enable-dyngroup     Dynamic Group overlay no|yes|mod ${ol_dflt_overlays-no}
1064     --enable-dynlist      Dynamic List overlay no|yes|mod ${ol_dflt_overlays-no}
1065     --enable-glue         Backend Glue overlay no|yes|mod ${ol_dflt_overlays-yes}
1066     --enable-lastmod      Last Modification overlay no|yes|mod ${ol_dflt_overlays-no}
1067     --enable-ppolicy      Password Policy overlay no|yes|mod ${ol_dflt_overlays-no}
1068     --enable-proxycache   Proxy Cache overlay no|yes|mod ${ol_dflt_overlays-no}
1069     --enable-refint       Referential Integrity overlay no|yes|mod ${ol_dflt_overlays-no}
1070     --enable-retcode      Return Code testing overlay no|yes|mod ${ol_dflt_overlays-no}
1071     --enable-rwm          Rewrite/Remap overlay no|yes|mod ${ol_dflt_overlays-no}
1072     --enable-syncprov     Syncrepl Provider overlay no|yes|mod ${ol_dflt_overlays-yes}
1073     --enable-translucent  Translucent Proxy overlay no|yes|mod ${ol_dflt_overlays-no}
1074     --enable-unique       Attribute Uniqueness overlay no|yes|mod ${ol_dflt_overlays-no}
1075   --enable-slurpd         enable building slurpd auto
1076   --enable-static[=PKGS]
1077                           build static libraries [default=yes]
1078   --enable-shared[=PKGS]
1079                           build shared libraries [default=yes]
1080   --enable-fast-install[=PKGS]
1081                           optimize for fast installation [default=yes]
1082   --disable-dependency-tracking  speeds up one-time build
1083   --enable-dependency-tracking   do not reject slow dependency extractors
1084   --disable-libtool-lock  avoid locking (might break parallel builds)
1085
1086 Optional Packages:
1087   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1088   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1089   --with-subdir=DIR       change default subdirectory used for installs
1090   --with-cyrus-sasl       with Cyrus SASL support auto
1091   --with-fetch            with fetch(3) URL support auto
1092   --with-threads          with threads auto
1093   --with-tls              with TLS/SSL support auto
1094   --with-yielding-select  with implicitly yielding select auto
1095   --with-multiple-precision
1096                           multiple precision support for statistics
1097                           auto|bignum|gmp auto
1098
1099 SLAPD (Standalone LDAP Daemon) Options:
1100
1101 SLAPD Backend Options:
1102       --with-ldbm-api     with LDBM API auto|berkeley|bcompat|mdbm|gdbm auto
1103       --with-ldbm-type    use LDBM type auto|btree|hash auto
1104
1105 SLAPD Overlay Options:
1106
1107 SLURPD (Replication Daemon) Options:
1108
1109 Library Generation & Linking Options
1110   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1111   --with-pic              try to use only PIC/non-PIC objects [default=use
1112                           both]
1113   --with-tags[=TAGS]
1114                           include additional configurations [automatic]
1115
1116 See INSTALL file for further details.
1117
1118 Some influential environment variables:
1119   CC          C compiler command
1120   CFLAGS      C compiler flags
1121   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1122               nonstandard directory <lib dir>
1123   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1124               headers in a nonstandard directory <include dir>
1125   CPP         C preprocessor
1126   CXX         C++ compiler command
1127   CXXFLAGS    C++ compiler flags
1128   CXXCPP      C++ preprocessor
1129   F77         Fortran 77 compiler command
1130   FFLAGS      Fortran 77 compiler flags
1131
1132 Use these variables to override the choices made by `configure' or to help
1133 it to find libraries and programs with nonstandard names/locations.
1134
1135 _ACEOF
1136 fi
1137
1138 if test "$ac_init_help" = "recursive"; then
1139   # If there are subdirs, report their specific --help.
1140   ac_popdir=`pwd`
1141   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1142     test -d $ac_dir || continue
1143     ac_builddir=.
1144
1145 if test "$ac_dir" != .; then
1146   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1147   # A "../" for each directory in $ac_dir_suffix.
1148   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1149 else
1150   ac_dir_suffix= ac_top_builddir=
1151 fi
1152
1153 case $srcdir in
1154   .)  # No --srcdir option.  We are building in place.
1155     ac_srcdir=.
1156     if test -z "$ac_top_builddir"; then
1157        ac_top_srcdir=.
1158     else
1159        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1160     fi ;;
1161   [\\/]* | ?:[\\/]* )  # Absolute path.
1162     ac_srcdir=$srcdir$ac_dir_suffix;
1163     ac_top_srcdir=$srcdir ;;
1164   *) # Relative path.
1165     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1166     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1167 esac
1168
1169 # Do not use `cd foo && pwd` to compute absolute paths, because
1170 # the directories may not exist.
1171 case `pwd` in
1172 .) ac_abs_builddir="$ac_dir";;
1173 *)
1174   case "$ac_dir" in
1175   .) ac_abs_builddir=`pwd`;;
1176   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1177   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1178   esac;;
1179 esac
1180 case $ac_abs_builddir in
1181 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1182 *)
1183   case ${ac_top_builddir}. in
1184   .) ac_abs_top_builddir=$ac_abs_builddir;;
1185   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1186   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1187   esac;;
1188 esac
1189 case $ac_abs_builddir in
1190 .) ac_abs_srcdir=$ac_srcdir;;
1191 *)
1192   case $ac_srcdir in
1193   .) ac_abs_srcdir=$ac_abs_builddir;;
1194   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1195   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1196   esac;;
1197 esac
1198 case $ac_abs_builddir in
1199 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1200 *)
1201   case $ac_top_srcdir in
1202   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1203   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1204   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1205   esac;;
1206 esac
1207
1208     cd $ac_dir
1209     # Check for guested configure; otherwise get Cygnus style configure.
1210     if test -f $ac_srcdir/configure.gnu; then
1211       echo
1212       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1213     elif test -f $ac_srcdir/configure; then
1214       echo
1215       $SHELL $ac_srcdir/configure  --help=recursive
1216     elif test -f $ac_srcdir/configure.ac ||
1217            test -f $ac_srcdir/configure.in; then
1218       echo
1219       $ac_configure --help
1220     else
1221       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1222     fi
1223     cd $ac_popdir
1224   done
1225 fi
1226
1227 test -n "$ac_init_help" && exit 0
1228 if $ac_init_version; then
1229   cat <<\_ACEOF
1230
1231 Copyright (C) 2003 Free Software Foundation, Inc.
1232 This configure script is free software; the Free Software Foundation
1233 gives unlimited permission to copy, distribute and modify it.
1234 _ACEOF
1235   exit 0
1236 fi
1237 exec 5>config.log
1238 cat >&5 <<_ACEOF
1239 This file contains any messages produced by compilers while
1240 running configure, to aid debugging if configure makes a mistake.
1241
1242 It was created by $as_me, which was
1243 generated by GNU Autoconf 2.59.  Invocation command line was
1244
1245   $ $0 $@
1246
1247 _ACEOF
1248 {
1249 cat <<_ASUNAME
1250 ## --------- ##
1251 ## Platform. ##
1252 ## --------- ##
1253
1254 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1255 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1256 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1257 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1258 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1259
1260 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1261 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1262
1263 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1264 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1265 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1266 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1267 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1268 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1269 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1270
1271 _ASUNAME
1272
1273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1274 for as_dir in $PATH
1275 do
1276   IFS=$as_save_IFS
1277   test -z "$as_dir" && as_dir=.
1278   echo "PATH: $as_dir"
1279 done
1280
1281 } >&5
1282
1283 cat >&5 <<_ACEOF
1284
1285
1286 ## ----------- ##
1287 ## Core tests. ##
1288 ## ----------- ##
1289
1290 _ACEOF
1291
1292
1293 # Keep a trace of the command line.
1294 # Strip out --no-create and --no-recursion so they do not pile up.
1295 # Strip out --silent because we don't want to record it for future runs.
1296 # Also quote any args containing shell meta-characters.
1297 # Make two passes to allow for proper duplicate-argument suppression.
1298 ac_configure_args=
1299 ac_configure_args0=
1300 ac_configure_args1=
1301 ac_sep=
1302 ac_must_keep_next=false
1303 for ac_pass in 1 2
1304 do
1305   for ac_arg
1306   do
1307     case $ac_arg in
1308     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1309     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1310     | -silent | --silent | --silen | --sile | --sil)
1311       continue ;;
1312     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1314     esac
1315     case $ac_pass in
1316     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1317     2)
1318       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1319       if test $ac_must_keep_next = true; then
1320         ac_must_keep_next=false # Got value, back to normal.
1321       else
1322         case $ac_arg in
1323           *=* | --config-cache | -C | -disable-* | --disable-* \
1324           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1325           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1326           | -with-* | --with-* | -without-* | --without-* | --x)
1327             case "$ac_configure_args0 " in
1328               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1329             esac
1330             ;;
1331           -* ) ac_must_keep_next=true ;;
1332         esac
1333       fi
1334       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1335       # Get rid of the leading space.
1336       ac_sep=" "
1337       ;;
1338     esac
1339   done
1340 done
1341 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1342 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1343
1344 # When interrupted or exit'd, cleanup temporary files, and complete
1345 # config.log.  We remove comments because anyway the quotes in there
1346 # would cause problems or look ugly.
1347 # WARNING: Be sure not to use single quotes in there, as some shells,
1348 # such as our DU 5.0 friend, will then `close' the trap.
1349 trap 'exit_status=$?
1350   # Save into config.log some information that might help in debugging.
1351   {
1352     echo
1353
1354     cat <<\_ASBOX
1355 ## ---------------- ##
1356 ## Cache variables. ##
1357 ## ---------------- ##
1358 _ASBOX
1359     echo
1360     # The following way of writing the cache mishandles newlines in values,
1361 {
1362   (set) 2>&1 |
1363     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1364     *ac_space=\ *)
1365       sed -n \
1366         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1367           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1368       ;;
1369     *)
1370       sed -n \
1371         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1372       ;;
1373     esac;
1374 }
1375     echo
1376
1377     cat <<\_ASBOX
1378 ## ----------------- ##
1379 ## Output variables. ##
1380 ## ----------------- ##
1381 _ASBOX
1382     echo
1383     for ac_var in $ac_subst_vars
1384     do
1385       eval ac_val=$`echo $ac_var`
1386       echo "$ac_var='"'"'$ac_val'"'"'"
1387     done | sort
1388     echo
1389
1390     if test -n "$ac_subst_files"; then
1391       cat <<\_ASBOX
1392 ## ------------- ##
1393 ## Output files. ##
1394 ## ------------- ##
1395 _ASBOX
1396       echo
1397       for ac_var in $ac_subst_files
1398       do
1399         eval ac_val=$`echo $ac_var`
1400         echo "$ac_var='"'"'$ac_val'"'"'"
1401       done | sort
1402       echo
1403     fi
1404
1405     if test -s confdefs.h; then
1406       cat <<\_ASBOX
1407 ## ----------- ##
1408 ## confdefs.h. ##
1409 ## ----------- ##
1410 _ASBOX
1411       echo
1412       sed "/^$/d" confdefs.h | sort
1413       echo
1414     fi
1415     test "$ac_signal" != 0 &&
1416       echo "$as_me: caught signal $ac_signal"
1417     echo "$as_me: exit $exit_status"
1418   } >&5
1419   rm -f core *.core &&
1420   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1421     exit $exit_status
1422      ' 0
1423 for ac_signal in 1 2 13 15; do
1424   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1425 done
1426 ac_signal=0
1427
1428 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1429 rm -rf conftest* confdefs.h
1430 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1431 echo >confdefs.h
1432
1433 # Predefined preprocessor variables.
1434
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_NAME "$PACKAGE_NAME"
1437 _ACEOF
1438
1439
1440 cat >>confdefs.h <<_ACEOF
1441 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1442 _ACEOF
1443
1444
1445 cat >>confdefs.h <<_ACEOF
1446 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1447 _ACEOF
1448
1449
1450 cat >>confdefs.h <<_ACEOF
1451 #define PACKAGE_STRING "$PACKAGE_STRING"
1452 _ACEOF
1453
1454
1455 cat >>confdefs.h <<_ACEOF
1456 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1457 _ACEOF
1458
1459
1460 # Let the site file select an alternate cache file if it wants to.
1461 # Prefer explicitly selected file to automatically selected ones.
1462 if test -z "$CONFIG_SITE"; then
1463   if test "x$prefix" != xNONE; then
1464     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1465   else
1466     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1467   fi
1468 fi
1469 for ac_site_file in $CONFIG_SITE; do
1470   if test -r "$ac_site_file"; then
1471     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1472 echo "$as_me: loading site script $ac_site_file" >&6;}
1473     sed 's/^/| /' "$ac_site_file" >&5
1474     . "$ac_site_file"
1475   fi
1476 done
1477
1478
1479 # Check that the precious variables saved in the cache have kept the same
1480 # value.
1481 ac_cache_corrupted=false
1482 for ac_var in `(set) 2>&1 |
1483                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1484   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1485   eval ac_new_set=\$ac_env_${ac_var}_set
1486   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1487   eval ac_new_val="\$ac_env_${ac_var}_value"
1488   case $ac_old_set,$ac_new_set in
1489     set,)
1490       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1491 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1492       ac_cache_corrupted=: ;;
1493     ,set)
1494       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1495 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1496       ac_cache_corrupted=: ;;
1497     ,);;
1498     *)
1499       if test "x$ac_old_val" != "x$ac_new_val"; then
1500         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1501 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1502         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1503 echo "$as_me:   former value:  $ac_old_val" >&2;}
1504         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1505 echo "$as_me:   current value: $ac_new_val" >&2;}
1506         ac_cache_corrupted=:
1507       fi;;
1508   esac
1509   # Pass precious variables to config.status.
1510   if test "$ac_new_set" = set; then
1511     case $ac_new_val in
1512     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1513       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1514     *) ac_arg=$ac_var=$ac_new_val ;;
1515     esac
1516     case " $ac_configure_args " in
1517       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1518       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1519     esac
1520   fi
1521 done
1522 if $ac_cache_corrupted; then
1523   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1524 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1525   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1526 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1527    { (exit 1); exit 1; }; }
1528 fi
1529
1530 ac_ext=c
1531 ac_cpp='$CPP $CPPFLAGS'
1532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555 # set unset (borrowed from autoconf 2.49c)
1556 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
1557   ol_unset=unset
1558 else
1559   ol_unset=false
1560 fi
1561 # unset CDPATH
1562 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
1563
1564 ac_aux_dir=
1565 for ac_dir in build $srcdir/build; do
1566   if test -f $ac_dir/install-sh; then
1567     ac_aux_dir=$ac_dir
1568     ac_install_sh="$ac_aux_dir/install-sh -c"
1569     break
1570   elif test -f $ac_dir/install.sh; then
1571     ac_aux_dir=$ac_dir
1572     ac_install_sh="$ac_aux_dir/install.sh -c"
1573     break
1574   elif test -f $ac_dir/shtool; then
1575     ac_aux_dir=$ac_dir
1576     ac_install_sh="$ac_aux_dir/shtool install -c"
1577     break
1578   fi
1579 done
1580 if test -z "$ac_aux_dir"; then
1581   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1582 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1583    { (exit 1); exit 1; }; }
1584 fi
1585 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1586 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1587 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1588
1589 eval `$ac_aux_dir/version.sh`
1590 if test -z "$OL_STRING"; then
1591         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1592 echo "$as_me: error: could not determine version" >&2;}
1593    { (exit 1); exit 1; }; }
1594 fi
1595
1596 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
1597         ac_cv_shtool="$ac_aux_dir/shtool"
1598 else
1599         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1600 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1601    { (exit 1); exit 1; }; }
1602 fi
1603
1604 SHTOOL="$ac_cv_shtool"
1605
1606 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1607 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1608
1609 OPENLDAP_CVS=""
1610 if test -d $ac_aux_dir/CVS; then
1611         OPENLDAP_CVS="(from CVS sources) "
1612 fi
1613
1614 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1615
1616 # Make sure we can run config.sub.
1617 $ac_config_sub sun4 >/dev/null 2>&1 ||
1618   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1619 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1620    { (exit 1); exit 1; }; }
1621
1622 echo "$as_me:$LINENO: checking build system type" >&5
1623 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1624 if test "${ac_cv_build+set}" = set; then
1625   echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627   ac_cv_build_alias=$build_alias
1628 test -z "$ac_cv_build_alias" &&
1629   ac_cv_build_alias=`$ac_config_guess`
1630 test -z "$ac_cv_build_alias" &&
1631   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1632 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1633    { (exit 1); exit 1; }; }
1634 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1635   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1637    { (exit 1); exit 1; }; }
1638
1639 fi
1640 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1641 echo "${ECHO_T}$ac_cv_build" >&6
1642 build=$ac_cv_build
1643 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646
1647
1648 echo "$as_me:$LINENO: checking host system type" >&5
1649 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1650 if test "${ac_cv_host+set}" = set; then
1651   echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653   ac_cv_host_alias=$host_alias
1654 test -z "$ac_cv_host_alias" &&
1655   ac_cv_host_alias=$ac_cv_build_alias
1656 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1657   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1658 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1659    { (exit 1); exit 1; }; }
1660
1661 fi
1662 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1663 echo "${ECHO_T}$ac_cv_host" >&6
1664 host=$ac_cv_host
1665 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1668
1669
1670 echo "$as_me:$LINENO: checking target system type" >&5
1671 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1672 if test "${ac_cv_target+set}" = set; then
1673   echo $ECHO_N "(cached) $ECHO_C" >&6
1674 else
1675   ac_cv_target_alias=$target_alias
1676 test "x$ac_cv_target_alias" = "x" &&
1677   ac_cv_target_alias=$ac_cv_host_alias
1678 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1679   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1680 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1681    { (exit 1); exit 1; }; }
1682
1683 fi
1684 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1685 echo "${ECHO_T}$ac_cv_target" >&6
1686 target=$ac_cv_target
1687 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1690
1691
1692 # The aliases save the names the user supplied, while $host etc.
1693 # will get canonicalized.
1694 test -n "$target_alias" &&
1695   test "$program_prefix$program_suffix$program_transform_name" = \
1696     NONENONEs,x,x, &&
1697   program_prefix=${target_alias}-
1698
1699 am__api_version="1.9"
1700 # Find a good install program.  We prefer a C program (faster),
1701 # so one script is as good as another.  But avoid the broken or
1702 # incompatible versions:
1703 # SysV /etc/install, /usr/sbin/install
1704 # SunOS /usr/etc/install
1705 # IRIX /sbin/install
1706 # AIX /bin/install
1707 # AmigaOS /C/install, which installs bootblocks on floppy discs
1708 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1709 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1710 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1711 # OS/2's system install, which has a completely different semantic
1712 # ./install, which can be erroneously created by make from ./install.sh.
1713 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1714 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1715 if test -z "$INSTALL"; then
1716 if test "${ac_cv_path_install+set}" = set; then
1717   echo $ECHO_N "(cached) $ECHO_C" >&6
1718 else
1719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 for as_dir in $PATH
1721 do
1722   IFS=$as_save_IFS
1723   test -z "$as_dir" && as_dir=.
1724   # Account for people who put trailing slashes in PATH elements.
1725 case $as_dir/ in
1726   ./ | .// | /cC/* | \
1727   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1728   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1729   /usr/ucb/* ) ;;
1730   *)
1731     # OSF1 and SCO ODT 3.0 have their own names for install.
1732     # Don't use installbsd from OSF since it installs stuff as root
1733     # by default.
1734     for ac_prog in ginstall scoinst install; do
1735       for ac_exec_ext in '' $ac_executable_extensions; do
1736         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1737           if test $ac_prog = install &&
1738             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1739             # AIX install.  It has an incompatible calling convention.
1740             :
1741           elif test $ac_prog = install &&
1742             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1743             # program-specific install script used by HP pwplus--don't use.
1744             :
1745           else
1746             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1747             break 3
1748           fi
1749         fi
1750       done
1751     done
1752     ;;
1753 esac
1754 done
1755
1756
1757 fi
1758   if test "${ac_cv_path_install+set}" = set; then
1759     INSTALL=$ac_cv_path_install
1760   else
1761     # As a last resort, use the slow shell script.  We don't cache a
1762     # path for INSTALL within a source directory, because that will
1763     # break other packages using the cache if that directory is
1764     # removed, or if the path is relative.
1765     INSTALL=$ac_install_sh
1766   fi
1767 fi
1768 echo "$as_me:$LINENO: result: $INSTALL" >&5
1769 echo "${ECHO_T}$INSTALL" >&6
1770
1771 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1772 # It thinks the first close brace ends the variable substitution.
1773 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1774
1775 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1776
1777 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1778
1779 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1780 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1781 # Just in case
1782 sleep 1
1783 echo timestamp > conftest.file
1784 # Do `set' in a subshell so we don't clobber the current shell's
1785 # arguments.  Must try -L first in case configure is actually a
1786 # symlink; some systems play weird games with the mod time of symlinks
1787 # (eg FreeBSD returns the mod time of the symlink's containing
1788 # directory).
1789 if (
1790    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1791    if test "$*" = "X"; then
1792       # -L didn't work.
1793       set X `ls -t $srcdir/configure conftest.file`
1794    fi
1795    rm -f conftest.file
1796    if test "$*" != "X $srcdir/configure conftest.file" \
1797       && test "$*" != "X conftest.file $srcdir/configure"; then
1798
1799       # If neither matched, then we have a broken ls.  This can happen
1800       # if, for instance, CONFIG_SHELL is bash and it inherits a
1801       # broken ls alias from the environment.  This has actually
1802       # happened.  Such a system could not be considered "sane".
1803       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1804 alias in your environment" >&5
1805 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1806 alias in your environment" >&2;}
1807    { (exit 1); exit 1; }; }
1808    fi
1809
1810    test "$2" = conftest.file
1811    )
1812 then
1813    # Ok.
1814    :
1815 else
1816    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1817 Check your system clock" >&5
1818 echo "$as_me: error: newly created file is older than distributed files!
1819 Check your system clock" >&2;}
1820    { (exit 1); exit 1; }; }
1821 fi
1822 echo "$as_me:$LINENO: result: yes" >&5
1823 echo "${ECHO_T}yes" >&6
1824 test "$program_prefix" != NONE &&
1825   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1826 # Use a double $ so make ignores it.
1827 test "$program_suffix" != NONE &&
1828   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1829 # Double any \ or $.  echo might interpret backslashes.
1830 # By default was `s,x,x', remove it if useless.
1831 cat <<\_ACEOF >conftest.sed
1832 s/[\\$]/&&/g;s/;s,x,x,$//
1833 _ACEOF
1834 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1835 rm conftest.sed
1836
1837 # expand $ac_aux_dir to an absolute path
1838 am_aux_dir=`cd $ac_aux_dir && pwd`
1839
1840 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1841 # Use eval to expand $SHELL
1842 if eval "$MISSING --run true"; then
1843   am_missing_run="$MISSING --run "
1844 else
1845   am_missing_run=
1846   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1847 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1848 fi
1849
1850 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1851   # We used to keeping the `.' as first argument, in order to
1852   # allow $(mkdir_p) to be used without argument.  As in
1853   #   $(mkdir_p) $(somedir)
1854   # where $(somedir) is conditionally defined.  However this is wrong
1855   # for two reasons:
1856   #  1. if the package is installed by a user who cannot write `.'
1857   #     make install will fail,
1858   #  2. the above comment should most certainly read
1859   #     $(mkdir_p) $(DESTDIR)$(somedir)
1860   #     so it does not work when $(somedir) is undefined and
1861   #     $(DESTDIR) is not.
1862   #  To support the latter case, we have to write
1863   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1864   #  so the `.' trick is pointless.
1865   mkdir_p='mkdir -p --'
1866 else
1867   # On NextStep and OpenStep, the `mkdir' command does not
1868   # recognize any option.  It will interpret all options as
1869   # directories to create, and then abort because `.' already
1870   # exists.
1871   for d in ./-p ./--version;
1872   do
1873     test -d $d && rmdir $d
1874   done
1875   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1876   if test -f "$ac_aux_dir/mkinstalldirs"; then
1877     mkdir_p='$(mkinstalldirs)'
1878   else
1879     mkdir_p='$(install_sh) -d'
1880   fi
1881 fi
1882
1883 for ac_prog in gawk mawk nawk awk
1884 do
1885   # Extract the first word of "$ac_prog", so it can be a program name with args.
1886 set dummy $ac_prog; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_AWK+set}" = set; then
1890   echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892   if test -n "$AWK"; then
1893   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1894 else
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 for as_dir in $PATH
1897 do
1898   IFS=$as_save_IFS
1899   test -z "$as_dir" && as_dir=.
1900   for ac_exec_ext in '' $ac_executable_extensions; do
1901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902     ac_cv_prog_AWK="$ac_prog"
1903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904     break 2
1905   fi
1906 done
1907 done
1908
1909 fi
1910 fi
1911 AWK=$ac_cv_prog_AWK
1912 if test -n "$AWK"; then
1913   echo "$as_me:$LINENO: result: $AWK" >&5
1914 echo "${ECHO_T}$AWK" >&6
1915 else
1916   echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1918 fi
1919
1920   test -n "$AWK" && break
1921 done
1922
1923 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1924 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1925 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1926 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1927   echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929   cat >conftest.make <<\_ACEOF
1930 all:
1931         @echo 'ac_maketemp="$(MAKE)"'
1932 _ACEOF
1933 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1934 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1935 if test -n "$ac_maketemp"; then
1936   eval ac_cv_prog_make_${ac_make}_set=yes
1937 else
1938   eval ac_cv_prog_make_${ac_make}_set=no
1939 fi
1940 rm -f conftest.make
1941 fi
1942 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1943   echo "$as_me:$LINENO: result: yes" >&5
1944 echo "${ECHO_T}yes" >&6
1945   SET_MAKE=
1946 else
1947   echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949   SET_MAKE="MAKE=${MAKE-make}"
1950 fi
1951
1952 rm -rf .tst 2>/dev/null
1953 mkdir .tst 2>/dev/null
1954 if test -d .tst; then
1955   am__leading_dot=.
1956 else
1957   am__leading_dot=_
1958 fi
1959 rmdir .tst 2>/dev/null
1960
1961 # test to see if srcdir already configured
1962 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1963    test -f $srcdir/config.status; then
1964   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1965 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1966    { (exit 1); exit 1; }; }
1967 fi
1968
1969 # test whether we have cygpath
1970 if test -z "$CYGPATH_W"; then
1971   if (cygpath --version) >/dev/null 2>/dev/null; then
1972     CYGPATH_W='cygpath -w'
1973   else
1974     CYGPATH_W=echo
1975   fi
1976 fi
1977
1978
1979 # Define the identity of the package.
1980  PACKAGE=$OL_PACKAGE
1981  VERSION=$OL_VERSION
1982
1983
1984 # Some tools Automake needs.
1985
1986 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1987
1988
1989 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1990
1991
1992 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1993
1994
1995 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1996
1997
1998 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1999
2000 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2001
2002 # Installed binaries are usually stripped using `strip' when the user
2003 # run `make install-strip'.  However `strip' might not be the right
2004 # tool to use in cross-compilation environments, therefore Automake
2005 # will honor the `STRIP' environment variable to overrule this program.
2006 if test "$cross_compiling" != no; then
2007   if test -n "$ac_tool_prefix"; then
2008   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2009 set dummy ${ac_tool_prefix}strip; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_STRIP+set}" = set; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   if test -n "$STRIP"; then
2016   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2017 else
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021   IFS=$as_save_IFS
2022   test -z "$as_dir" && as_dir=.
2023   for ac_exec_ext in '' $ac_executable_extensions; do
2024   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027     break 2
2028   fi
2029 done
2030 done
2031
2032 fi
2033 fi
2034 STRIP=$ac_cv_prog_STRIP
2035 if test -n "$STRIP"; then
2036   echo "$as_me:$LINENO: result: $STRIP" >&5
2037 echo "${ECHO_T}$STRIP" >&6
2038 else
2039   echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2041 fi
2042
2043 fi
2044 if test -z "$ac_cv_prog_STRIP"; then
2045   ac_ct_STRIP=$STRIP
2046   # Extract the first word of "strip", so it can be a program name with args.
2047 set dummy strip; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2051   echo $ECHO_N "(cached) $ECHO_C" >&6
2052 else
2053   if test -n "$ac_ct_STRIP"; then
2054   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2055 else
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2058 do
2059   IFS=$as_save_IFS
2060   test -z "$as_dir" && as_dir=.
2061   for ac_exec_ext in '' $ac_executable_extensions; do
2062   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063     ac_cv_prog_ac_ct_STRIP="strip"
2064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065     break 2
2066   fi
2067 done
2068 done
2069
2070   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2071 fi
2072 fi
2073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2074 if test -n "$ac_ct_STRIP"; then
2075   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2076 echo "${ECHO_T}$ac_ct_STRIP" >&6
2077 else
2078   echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2080 fi
2081
2082   STRIP=$ac_ct_STRIP
2083 else
2084   STRIP="$ac_cv_prog_STRIP"
2085 fi
2086
2087 fi
2088 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2089
2090 # We need awk for the "check" target.  The system "awk" is bad on
2091 # some platforms.
2092 # Always define AMTAR for backward compatibility.
2093
2094 AMTAR=${AMTAR-"${am_missing_run}tar"}
2095
2096 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2097
2098
2099
2100
2101
2102 cat >>confdefs.h <<_ACEOF
2103 #define OPENLDAP_PACKAGE "$PACKAGE"
2104 _ACEOF
2105
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define OPENLDAP_VERSION "$VERSION"
2109 _ACEOF
2110
2111
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define LDAP_VENDOR_VERSION $OL_API_INC
2115 _ACEOF
2116
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2120 _ACEOF
2121
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2125 _ACEOF
2126
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2130 _ACEOF
2131
2132
2133 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2134
2135 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2136
2137 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2138
2139
2140                               ac_config_headers="$ac_config_headers include/portable.h include/ldap_features.h include/lber_types.h"
2141
2142 echo "$as_me:$LINENO: checking configure arguments" >&5
2143 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2144
2145
2146 top_builddir=`pwd`
2147
2148 ldap_subdir="/openldap"
2149
2150
2151 # Check whether --with-subdir or --without-subdir was given.
2152 if test "${with_subdir+set}" = set; then
2153   withval="$with_subdir"
2154   case "$withval" in
2155         no) ldap_subdir=""
2156                 ;;
2157         yes)
2158                 ;;
2159         /*|\\*)
2160                 ldap_subdir="$withval"
2161                 ;;
2162         *)
2163                 ldap_subdir="/$withval"
2164                 ;;
2165 esac
2166
2167 fi;
2168
2169 # OpenLDAP --enable-debug
2170         # Check whether --enable-debug or --disable-debug was given.
2171 if test "${enable_debug+set}" = set; then
2172   enableval="$enable_debug"
2173
2174         ol_arg=invalid
2175         for ol_val in auto yes no ; do
2176                 if test "$enableval" = "$ol_val" ; then
2177                         ol_arg="$ol_val"
2178                 fi
2179         done
2180         if test "$ol_arg" = "invalid" ; then
2181                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2182 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2183    { (exit 1); exit 1; }; }
2184         fi
2185         ol_enable_debug="$ol_arg"
2186
2187 else
2188         ol_enable_debug="yes"
2189 fi; # end --enable-debug
2190 # OpenLDAP --enable-dynamic
2191         # Check whether --enable-dynamic or --disable-dynamic was given.
2192 if test "${enable_dynamic+set}" = set; then
2193   enableval="$enable_dynamic"
2194
2195         ol_arg=invalid
2196         for ol_val in auto yes no ; do
2197                 if test "$enableval" = "$ol_val" ; then
2198                         ol_arg="$ol_val"
2199                 fi
2200         done
2201         if test "$ol_arg" = "invalid" ; then
2202                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2203 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2204    { (exit 1); exit 1; }; }
2205         fi
2206         ol_enable_dynamic="$ol_arg"
2207
2208 else
2209         ol_enable_dynamic="no"
2210 fi; # end --enable-dynamic
2211 # OpenLDAP --enable-syslog
2212         # Check whether --enable-syslog or --disable-syslog was given.
2213 if test "${enable_syslog+set}" = set; then
2214   enableval="$enable_syslog"
2215
2216         ol_arg=invalid
2217         for ol_val in auto yes no ; do
2218                 if test "$enableval" = "$ol_val" ; then
2219                         ol_arg="$ol_val"
2220                 fi
2221         done
2222         if test "$ol_arg" = "invalid" ; then
2223                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2224 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2225    { (exit 1); exit 1; }; }
2226         fi
2227         ol_enable_syslog="$ol_arg"
2228
2229 else
2230         ol_enable_syslog="auto"
2231 fi; # end --enable-syslog
2232 # OpenLDAP --enable-proctitle
2233         # Check whether --enable-proctitle or --disable-proctitle was given.
2234 if test "${enable_proctitle+set}" = set; then
2235   enableval="$enable_proctitle"
2236
2237         ol_arg=invalid
2238         for ol_val in auto yes no ; do
2239                 if test "$enableval" = "$ol_val" ; then
2240                         ol_arg="$ol_val"
2241                 fi
2242         done
2243         if test "$ol_arg" = "invalid" ; then
2244                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2245 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2246    { (exit 1); exit 1; }; }
2247         fi
2248         ol_enable_proctitle="$ol_arg"
2249
2250 else
2251         ol_enable_proctitle="yes"
2252 fi; # end --enable-proctitle
2253 ol_enable_referrals=${ol_enable_referrals-no}
2254 ol_enable_kbind=${ol_enable_kbind-no}
2255 # OpenLDAP --enable-ipv6
2256         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2257 if test "${enable_ipv6+set}" = set; then
2258   enableval="$enable_ipv6"
2259
2260         ol_arg=invalid
2261         for ol_val in auto yes no ; do
2262                 if test "$enableval" = "$ol_val" ; then
2263                         ol_arg="$ol_val"
2264                 fi
2265         done
2266         if test "$ol_arg" = "invalid" ; then
2267                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2268 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2269    { (exit 1); exit 1; }; }
2270         fi
2271         ol_enable_ipv6="$ol_arg"
2272
2273 else
2274         ol_enable_ipv6="auto"
2275 fi; # end --enable-ipv6
2276 # OpenLDAP --enable-local
2277         # Check whether --enable-local or --disable-local was given.
2278 if test "${enable_local+set}" = set; then
2279   enableval="$enable_local"
2280
2281         ol_arg=invalid
2282         for ol_val in auto yes no ; do
2283                 if test "$enableval" = "$ol_val" ; then
2284                         ol_arg="$ol_val"
2285                 fi
2286         done
2287         if test "$ol_arg" = "invalid" ; then
2288                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2289 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2290    { (exit 1); exit 1; }; }
2291         fi
2292         ol_enable_local="$ol_arg"
2293
2294 else
2295         ol_enable_local="auto"
2296 fi; # end --enable-local
2297
2298
2299 # OpenLDAP --with-cyrus_sasl
2300
2301 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2302 if test "${with_cyrus_sasl+set}" = set; then
2303   withval="$with_cyrus_sasl"
2304
2305         ol_arg=invalid
2306         for ol_val in auto yes no  ; do
2307                 if test "$withval" = "$ol_val" ; then
2308                         ol_arg="$ol_val"
2309                 fi
2310         done
2311         if test "$ol_arg" = "invalid" ; then
2312                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2313 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2314    { (exit 1); exit 1; }; }
2315         fi
2316         ol_with_cyrus_sasl="$ol_arg"
2317
2318 else
2319         ol_with_cyrus_sasl="auto"
2320 fi; # end --with-cyrus_sasl
2321
2322 # OpenLDAP --with-fetch
2323
2324 # Check whether --with-fetch or --without-fetch was given.
2325 if test "${with_fetch+set}" = set; then
2326   withval="$with_fetch"
2327
2328         ol_arg=invalid
2329         for ol_val in auto yes no  ; do
2330                 if test "$withval" = "$ol_val" ; then
2331                         ol_arg="$ol_val"
2332                 fi
2333         done
2334         if test "$ol_arg" = "invalid" ; then
2335                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2336 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2337    { (exit 1); exit 1; }; }
2338         fi
2339         ol_with_fetch="$ol_arg"
2340
2341 else
2342         ol_with_fetch="auto"
2343 fi; # end --with-fetch
2344
2345 ol_with_kerberos=${ol_with_kerberos-auto}
2346 # OpenLDAP --with-threads
2347
2348 # Check whether --with-threads or --without-threads was given.
2349 if test "${with_threads+set}" = set; then
2350   withval="$with_threads"
2351
2352         ol_arg=invalid
2353         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2354                 if test "$withval" = "$ol_val" ; then
2355                         ol_arg="$ol_val"
2356                 fi
2357         done
2358         if test "$ol_arg" = "invalid" ; then
2359                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2360 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2361    { (exit 1); exit 1; }; }
2362         fi
2363         ol_with_threads="$ol_arg"
2364
2365 else
2366         ol_with_threads="auto"
2367 fi; # end --with-threads
2368
2369 # OpenLDAP --with-tls
2370
2371 # Check whether --with-tls or --without-tls was given.
2372 if test "${with_tls+set}" = set; then
2373   withval="$with_tls"
2374
2375         ol_arg=invalid
2376         for ol_val in auto ssleay openssl yes no  ; do
2377                 if test "$withval" = "$ol_val" ; then
2378                         ol_arg="$ol_val"
2379                 fi
2380         done
2381         if test "$ol_arg" = "invalid" ; then
2382                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2383 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2384    { (exit 1); exit 1; }; }
2385         fi
2386         ol_with_tls="$ol_arg"
2387
2388 else
2389         ol_with_tls="auto"
2390 fi; # end --with-tls
2391
2392 # OpenLDAP --with-yielding_select
2393
2394 # Check whether --with-yielding_select or --without-yielding_select was given.
2395 if test "${with_yielding_select+set}" = set; then
2396   withval="$with_yielding_select"
2397
2398         ol_arg=invalid
2399         for ol_val in auto yes no manual  ; do
2400                 if test "$withval" = "$ol_val" ; then
2401                         ol_arg="$ol_val"
2402                 fi
2403         done
2404         if test "$ol_arg" = "invalid" ; then
2405                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2406 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2407    { (exit 1); exit 1; }; }
2408         fi
2409         ol_with_yielding_select="$ol_arg"
2410
2411 else
2412         ol_with_yielding_select="auto"
2413 fi; # end --with-yielding_select
2414
2415 # OpenLDAP --with-multiple_precision
2416
2417 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2418 if test "${with_multiple_precision+set}" = set; then
2419   withval="$with_multiple_precision"
2420
2421         ol_arg=invalid
2422         for ol_val in auto bignum gmp yes no  ; do
2423                 if test "$withval" = "$ol_val" ; then
2424                         ol_arg="$ol_val"
2425                 fi
2426         done
2427         if test "$ol_arg" = "invalid" ; then
2428                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2429 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2430    { (exit 1); exit 1; }; }
2431         fi
2432         ol_with_multiple_precision="$ol_arg"
2433
2434 else
2435         ol_with_multiple_precision="auto"
2436 fi; # end --with-multiple_precision
2437
2438
2439
2440
2441 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
2442 if test "${with_xxslapdoptions+set}" = set; then
2443   withval="$with_xxslapdoptions"
2444
2445 fi;
2446 # OpenLDAP --enable-slapd
2447         # Check whether --enable-slapd or --disable-slapd was given.
2448 if test "${enable_slapd+set}" = set; then
2449   enableval="$enable_slapd"
2450
2451         ol_arg=invalid
2452         for ol_val in auto yes no ; do
2453                 if test "$enableval" = "$ol_val" ; then
2454                         ol_arg="$ol_val"
2455                 fi
2456         done
2457         if test "$ol_arg" = "invalid" ; then
2458                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2459 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2460    { (exit 1); exit 1; }; }
2461         fi
2462         ol_enable_slapd="$ol_arg"
2463
2464 else
2465         ol_enable_slapd="yes"
2466 fi; # end --enable-slapd
2467 # OpenLDAP --enable-aci
2468         # Check whether --enable-aci or --disable-aci was given.
2469 if test "${enable_aci+set}" = set; then
2470   enableval="$enable_aci"
2471
2472         ol_arg=invalid
2473         for ol_val in auto yes no ; do
2474                 if test "$enableval" = "$ol_val" ; then
2475                         ol_arg="$ol_val"
2476                 fi
2477         done
2478         if test "$ol_arg" = "invalid" ; then
2479                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2480 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2481    { (exit 1); exit 1; }; }
2482         fi
2483         ol_enable_aci="$ol_arg"
2484
2485 else
2486         ol_enable_aci="no"
2487 fi; # end --enable-aci
2488 # OpenLDAP --enable-cleartext
2489         # Check whether --enable-cleartext or --disable-cleartext was given.
2490 if test "${enable_cleartext+set}" = set; then
2491   enableval="$enable_cleartext"
2492
2493         ol_arg=invalid
2494         for ol_val in auto yes no ; do
2495                 if test "$enableval" = "$ol_val" ; then
2496                         ol_arg="$ol_val"
2497                 fi
2498         done
2499         if test "$ol_arg" = "invalid" ; then
2500                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2501 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2502    { (exit 1); exit 1; }; }
2503         fi
2504         ol_enable_cleartext="$ol_arg"
2505
2506 else
2507         ol_enable_cleartext="yes"
2508 fi; # end --enable-cleartext
2509 # OpenLDAP --enable-crypt
2510         # Check whether --enable-crypt or --disable-crypt was given.
2511 if test "${enable_crypt+set}" = set; then
2512   enableval="$enable_crypt"
2513
2514         ol_arg=invalid
2515         for ol_val in auto yes no ; do
2516                 if test "$enableval" = "$ol_val" ; then
2517                         ol_arg="$ol_val"
2518                 fi
2519         done
2520         if test "$ol_arg" = "invalid" ; then
2521                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2522 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2523    { (exit 1); exit 1; }; }
2524         fi
2525         ol_enable_crypt="$ol_arg"
2526
2527 else
2528         ol_enable_crypt="no"
2529 fi; # end --enable-crypt
2530 # OpenLDAP --enable-lmpasswd
2531         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2532 if test "${enable_lmpasswd+set}" = set; then
2533   enableval="$enable_lmpasswd"
2534
2535         ol_arg=invalid
2536         for ol_val in auto yes no ; do
2537                 if test "$enableval" = "$ol_val" ; then
2538                         ol_arg="$ol_val"
2539                 fi
2540         done
2541         if test "$ol_arg" = "invalid" ; then
2542                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2543 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2544    { (exit 1); exit 1; }; }
2545         fi
2546         ol_enable_lmpasswd="$ol_arg"
2547
2548 else
2549         ol_enable_lmpasswd="no"
2550 fi; # end --enable-lmpasswd
2551 # OpenLDAP --enable-spasswd
2552         # Check whether --enable-spasswd or --disable-spasswd was given.
2553 if test "${enable_spasswd+set}" = set; then
2554   enableval="$enable_spasswd"
2555
2556         ol_arg=invalid
2557         for ol_val in auto yes no ; do
2558                 if test "$enableval" = "$ol_val" ; then
2559                         ol_arg="$ol_val"
2560                 fi
2561         done
2562         if test "$ol_arg" = "invalid" ; then
2563                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2564 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2565    { (exit 1); exit 1; }; }
2566         fi
2567         ol_enable_spasswd="$ol_arg"
2568
2569 else
2570         ol_enable_spasswd="no"
2571 fi; # end --enable-spasswd
2572 # OpenLDAP --enable-modules
2573         # Check whether --enable-modules or --disable-modules was given.
2574 if test "${enable_modules+set}" = set; then
2575   enableval="$enable_modules"
2576
2577         ol_arg=invalid
2578         for ol_val in auto yes no ; do
2579                 if test "$enableval" = "$ol_val" ; then
2580                         ol_arg="$ol_val"
2581                 fi
2582         done
2583         if test "$ol_arg" = "invalid" ; then
2584                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2585 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2586    { (exit 1); exit 1; }; }
2587         fi
2588         ol_enable_modules="$ol_arg"
2589
2590 else
2591         ol_enable_modules="no"
2592 fi; # end --enable-modules
2593 ol_enable_multimaster=${ol_enable_multimaster-no}
2594 # OpenLDAP --enable-rewrite
2595         # Check whether --enable-rewrite or --disable-rewrite was given.
2596 if test "${enable_rewrite+set}" = set; then
2597   enableval="$enable_rewrite"
2598
2599         ol_arg=invalid
2600         for ol_val in auto yes no ; do
2601                 if test "$enableval" = "$ol_val" ; then
2602                         ol_arg="$ol_val"
2603                 fi
2604         done
2605         if test "$ol_arg" = "invalid" ; then
2606                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2607 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2608    { (exit 1); exit 1; }; }
2609         fi
2610         ol_enable_rewrite="$ol_arg"
2611
2612 else
2613         ol_enable_rewrite="auto"
2614 fi; # end --enable-rewrite
2615 # OpenLDAP --enable-rlookups
2616         # Check whether --enable-rlookups or --disable-rlookups was given.
2617 if test "${enable_rlookups+set}" = set; then
2618   enableval="$enable_rlookups"
2619
2620         ol_arg=invalid
2621         for ol_val in auto yes no ; do
2622                 if test "$enableval" = "$ol_val" ; then
2623                         ol_arg="$ol_val"
2624                 fi
2625         done
2626         if test "$ol_arg" = "invalid" ; then
2627                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2628 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2629    { (exit 1); exit 1; }; }
2630         fi
2631         ol_enable_rlookups="$ol_arg"
2632
2633 else
2634         ol_enable_rlookups="no"
2635 fi; # end --enable-rlookups
2636 # OpenLDAP --enable-slapi
2637         # Check whether --enable-slapi or --disable-slapi was given.
2638 if test "${enable_slapi+set}" = set; then
2639   enableval="$enable_slapi"
2640
2641         ol_arg=invalid
2642         for ol_val in auto yes no ; do
2643                 if test "$enableval" = "$ol_val" ; then
2644                         ol_arg="$ol_val"
2645                 fi
2646         done
2647         if test "$ol_arg" = "invalid" ; then
2648                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2649 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2650    { (exit 1); exit 1; }; }
2651         fi
2652         ol_enable_slapi="$ol_arg"
2653
2654 else
2655         ol_enable_slapi="no"
2656 fi; # end --enable-slapi
2657 # OpenLDAP --enable-slp
2658         # Check whether --enable-slp or --disable-slp was given.
2659 if test "${enable_slp+set}" = set; then
2660   enableval="$enable_slp"
2661
2662         ol_arg=invalid
2663         for ol_val in auto yes no ; do
2664                 if test "$enableval" = "$ol_val" ; then
2665                         ol_arg="$ol_val"
2666                 fi
2667         done
2668         if test "$ol_arg" = "invalid" ; then
2669                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2670 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2671    { (exit 1); exit 1; }; }
2672         fi
2673         ol_enable_slp="$ol_arg"
2674
2675 else
2676         ol_enable_slp="no"
2677 fi; # end --enable-slp
2678 # OpenLDAP --enable-wrappers
2679         # Check whether --enable-wrappers or --disable-wrappers was given.
2680 if test "${enable_wrappers+set}" = set; then
2681   enableval="$enable_wrappers"
2682
2683         ol_arg=invalid
2684         for ol_val in auto yes no ; do
2685                 if test "$enableval" = "$ol_val" ; then
2686                         ol_arg="$ol_val"
2687                 fi
2688         done
2689         if test "$ol_arg" = "invalid" ; then
2690                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2691 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2692    { (exit 1); exit 1; }; }
2693         fi
2694         ol_enable_wrappers="$ol_arg"
2695
2696 else
2697         ol_enable_wrappers="no"
2698 fi; # end --enable-wrappers
2699
2700 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
2701         passwd perl relay shell sql"
2702
2703
2704 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
2705 if test "${with_xxslapbackends+set}" = set; then
2706   withval="$with_xxslapbackends"
2707
2708 fi;
2709
2710 # OpenLDAP --enable-backends
2711         # Check whether --enable-backends or --disable-backends was given.
2712 if test "${enable_backends+set}" = set; then
2713   enableval="$enable_backends"
2714
2715         ol_arg=invalid
2716         for ol_val in no yes mod ; do
2717                 if test "$enableval" = "$ol_val" ; then
2718                         ol_arg="$ol_val"
2719                 fi
2720         done
2721         if test "$ol_arg" = "invalid" ; then
2722                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2723 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2724    { (exit 1); exit 1; }; }
2725         fi
2726         ol_enable_backends="$ol_arg"
2727
2728 fi; # end --enable-backends
2729 test -n "$ol_enable_backends" && ol_dflt_backends="$ol_enable_backends"
2730 # OpenLDAP --enable-bdb
2731         # Check whether --enable-bdb or --disable-bdb was given.
2732 if test "${enable_bdb+set}" = set; then
2733   enableval="$enable_bdb"
2734
2735         ol_arg=invalid
2736         for ol_val in no yes mod ; do
2737                 if test "$enableval" = "$ol_val" ; then
2738                         ol_arg="$ol_val"
2739                 fi
2740         done
2741         if test "$ol_arg" = "invalid" ; then
2742                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2743 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2744    { (exit 1); exit 1; }; }
2745         fi
2746         ol_enable_bdb="$ol_arg"
2747
2748 else
2749         ol_enable_bdb="${ol_dflt_backends-yes}"
2750 fi; # end --enable-bdb
2751 # OpenLDAP --enable-dnssrv
2752         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2753 if test "${enable_dnssrv+set}" = set; then
2754   enableval="$enable_dnssrv"
2755
2756         ol_arg=invalid
2757         for ol_val in no yes mod ; do
2758                 if test "$enableval" = "$ol_val" ; then
2759                         ol_arg="$ol_val"
2760                 fi
2761         done
2762         if test "$ol_arg" = "invalid" ; then
2763                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2764 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2765    { (exit 1); exit 1; }; }
2766         fi
2767         ol_enable_dnssrv="$ol_arg"
2768
2769 else
2770         ol_enable_dnssrv="${ol_dflt_backends-no}"
2771 fi; # end --enable-dnssrv
2772 # OpenLDAP --enable-hdb
2773         # Check whether --enable-hdb or --disable-hdb was given.
2774 if test "${enable_hdb+set}" = set; then
2775   enableval="$enable_hdb"
2776
2777         ol_arg=invalid
2778         for ol_val in no yes mod ; do
2779                 if test "$enableval" = "$ol_val" ; then
2780                         ol_arg="$ol_val"
2781                 fi
2782         done
2783         if test "$ol_arg" = "invalid" ; then
2784                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2785 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2786    { (exit 1); exit 1; }; }
2787         fi
2788         ol_enable_hdb="$ol_arg"
2789
2790 else
2791         ol_enable_hdb="${ol_dflt_backends-yes}"
2792 fi; # end --enable-hdb
2793 # OpenLDAP --enable-ldap
2794         # Check whether --enable-ldap or --disable-ldap was given.
2795 if test "${enable_ldap+set}" = set; then
2796   enableval="$enable_ldap"
2797
2798         ol_arg=invalid
2799         for ol_val in no yes mod ; do
2800                 if test "$enableval" = "$ol_val" ; then
2801                         ol_arg="$ol_val"
2802                 fi
2803         done
2804         if test "$ol_arg" = "invalid" ; then
2805                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2806 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2807    { (exit 1); exit 1; }; }
2808         fi
2809         ol_enable_ldap="$ol_arg"
2810
2811 else
2812         ol_enable_ldap="${ol_dflt_backends-no}"
2813 fi; # end --enable-ldap
2814 # OpenLDAP --enable-ldbm
2815         # Check whether --enable-ldbm or --disable-ldbm was given.
2816 if test "${enable_ldbm+set}" = set; then
2817   enableval="$enable_ldbm"
2818
2819         ol_arg=invalid
2820         for ol_val in no yes mod ; do
2821                 if test "$enableval" = "$ol_val" ; then
2822                         ol_arg="$ol_val"
2823                 fi
2824         done
2825         if test "$ol_arg" = "invalid" ; then
2826                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2827 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2828    { (exit 1); exit 1; }; }
2829         fi
2830         ol_enable_ldbm="$ol_arg"
2831
2832 else
2833         ol_enable_ldbm="${ol_dflt_backends-no}"
2834 fi; # end --enable-ldbm
2835 # OpenLDAP --with-ldbm_api
2836
2837 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2838 if test "${with_ldbm_api+set}" = set; then
2839   withval="$with_ldbm_api"
2840
2841         ol_arg=invalid
2842         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2843                 if test "$withval" = "$ol_val" ; then
2844                         ol_arg="$ol_val"
2845                 fi
2846         done
2847         if test "$ol_arg" = "invalid" ; then
2848                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_api" >&5
2849 echo "$as_me: error: bad value $withval for --with-ldbm_api" >&2;}
2850    { (exit 1); exit 1; }; }
2851         fi
2852         ol_with_ldbm_api="$ol_arg"
2853
2854 else
2855         ol_with_ldbm_api="auto"
2856 fi; # end --with-ldbm_api
2857
2858 # OpenLDAP --with-ldbm_type
2859
2860 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2861 if test "${with_ldbm_type+set}" = set; then
2862   withval="$with_ldbm_type"
2863
2864         ol_arg=invalid
2865         for ol_val in auto btree hash ; do
2866                 if test "$withval" = "$ol_val" ; then
2867                         ol_arg="$ol_val"
2868                 fi
2869         done
2870         if test "$ol_arg" = "invalid" ; then
2871                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_type" >&5
2872 echo "$as_me: error: bad value $withval for --with-ldbm_type" >&2;}
2873    { (exit 1); exit 1; }; }
2874         fi
2875         ol_with_ldbm_type="$ol_arg"
2876
2877 else
2878         ol_with_ldbm_type="auto"
2879 fi; # end --with-ldbm_type
2880
2881 # OpenLDAP --enable-meta
2882         # Check whether --enable-meta or --disable-meta was given.
2883 if test "${enable_meta+set}" = set; then
2884   enableval="$enable_meta"
2885
2886         ol_arg=invalid
2887         for ol_val in no yes mod ; do
2888                 if test "$enableval" = "$ol_val" ; then
2889                         ol_arg="$ol_val"
2890                 fi
2891         done
2892         if test "$ol_arg" = "invalid" ; then
2893                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2894 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2895    { (exit 1); exit 1; }; }
2896         fi
2897         ol_enable_meta="$ol_arg"
2898
2899 else
2900         ol_enable_meta="${ol_dflt_backends-no}"
2901 fi; # end --enable-meta
2902 # OpenLDAP --enable-monitor
2903         # Check whether --enable-monitor or --disable-monitor was given.
2904 if test "${enable_monitor+set}" = set; then
2905   enableval="$enable_monitor"
2906
2907         ol_arg=invalid
2908         for ol_val in no yes mod ; do
2909                 if test "$enableval" = "$ol_val" ; then
2910                         ol_arg="$ol_val"
2911                 fi
2912         done
2913         if test "$ol_arg" = "invalid" ; then
2914                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2915 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2916    { (exit 1); exit 1; }; }
2917         fi
2918         ol_enable_monitor="$ol_arg"
2919
2920 else
2921         ol_enable_monitor="${ol_dflt_backends-yes}"
2922 fi; # end --enable-monitor
2923 # OpenLDAP --enable-null
2924         # Check whether --enable-null or --disable-null was given.
2925 if test "${enable_null+set}" = set; then
2926   enableval="$enable_null"
2927
2928         ol_arg=invalid
2929         for ol_val in no yes mod ; do
2930                 if test "$enableval" = "$ol_val" ; then
2931                         ol_arg="$ol_val"
2932                 fi
2933         done
2934         if test "$ol_arg" = "invalid" ; then
2935                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2936 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2937    { (exit 1); exit 1; }; }
2938         fi
2939         ol_enable_null="$ol_arg"
2940
2941 else
2942         ol_enable_null="${ol_dflt_backends-no}"
2943 fi; # end --enable-null
2944 # OpenLDAP --enable-passwd
2945         # Check whether --enable-passwd or --disable-passwd was given.
2946 if test "${enable_passwd+set}" = set; then
2947   enableval="$enable_passwd"
2948
2949         ol_arg=invalid
2950         for ol_val in no yes mod ; do
2951                 if test "$enableval" = "$ol_val" ; then
2952                         ol_arg="$ol_val"
2953                 fi
2954         done
2955         if test "$ol_arg" = "invalid" ; then
2956                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2957 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2958    { (exit 1); exit 1; }; }
2959         fi
2960         ol_enable_passwd="$ol_arg"
2961
2962 else
2963         ol_enable_passwd="${ol_dflt_backends-no}"
2964 fi; # end --enable-passwd
2965 # OpenLDAP --enable-perl
2966         # Check whether --enable-perl or --disable-perl was given.
2967 if test "${enable_perl+set}" = set; then
2968   enableval="$enable_perl"
2969
2970         ol_arg=invalid
2971         for ol_val in no yes mod ; do
2972                 if test "$enableval" = "$ol_val" ; then
2973                         ol_arg="$ol_val"
2974                 fi
2975         done
2976         if test "$ol_arg" = "invalid" ; then
2977                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
2978 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
2979    { (exit 1); exit 1; }; }
2980         fi
2981         ol_enable_perl="$ol_arg"
2982
2983 else
2984         ol_enable_perl="${ol_dflt_backends-no}"
2985 fi; # end --enable-perl
2986 # OpenLDAP --enable-relay
2987         # Check whether --enable-relay or --disable-relay was given.
2988 if test "${enable_relay+set}" = set; then
2989   enableval="$enable_relay"
2990
2991         ol_arg=invalid
2992         for ol_val in no yes mod ; do
2993                 if test "$enableval" = "$ol_val" ; then
2994                         ol_arg="$ol_val"
2995                 fi
2996         done
2997         if test "$ol_arg" = "invalid" ; then
2998                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
2999 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3000    { (exit 1); exit 1; }; }
3001         fi
3002         ol_enable_relay="$ol_arg"
3003
3004 else
3005         ol_enable_relay="${ol_dflt_backends-yes}"
3006 fi; # end --enable-relay
3007 # OpenLDAP --enable-shell
3008         # Check whether --enable-shell or --disable-shell was given.
3009 if test "${enable_shell+set}" = set; then
3010   enableval="$enable_shell"
3011
3012         ol_arg=invalid
3013         for ol_val in no yes mod ; do
3014                 if test "$enableval" = "$ol_val" ; then
3015                         ol_arg="$ol_val"
3016                 fi
3017         done
3018         if test "$ol_arg" = "invalid" ; then
3019                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3020 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3021    { (exit 1); exit 1; }; }
3022         fi
3023         ol_enable_shell="$ol_arg"
3024
3025 else
3026         ol_enable_shell="${ol_dflt_backends-no}"
3027 fi; # end --enable-shell
3028 # OpenLDAP --enable-sql
3029         # Check whether --enable-sql or --disable-sql was given.
3030 if test "${enable_sql+set}" = set; then
3031   enableval="$enable_sql"
3032
3033         ol_arg=invalid
3034         for ol_val in no yes mod ; do
3035                 if test "$enableval" = "$ol_val" ; then
3036                         ol_arg="$ol_val"
3037                 fi
3038         done
3039         if test "$ol_arg" = "invalid" ; then
3040                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3041 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3042    { (exit 1); exit 1; }; }
3043         fi
3044         ol_enable_sql="$ol_arg"
3045
3046 else
3047         ol_enable_sql="${ol_dflt_backends-no}"
3048 fi; # end --enable-sql
3049
3050 Overlays="accesslog denyop dyngroup dynlist glue lastmod ppolicy proxycache \
3051         refint retcode rwm syncprov translucent unique"
3052
3053
3054 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
3055 if test "${with_xxslapoverlays+set}" = set; then
3056   withval="$with_xxslapoverlays"
3057
3058 fi;
3059
3060 # OpenLDAP --enable-overlays
3061         # Check whether --enable-overlays or --disable-overlays was given.
3062 if test "${enable_overlays+set}" = set; then
3063   enableval="$enable_overlays"
3064
3065         ol_arg=invalid
3066         for ol_val in no yes mod ; do
3067                 if test "$enableval" = "$ol_val" ; then
3068                         ol_arg="$ol_val"
3069                 fi
3070         done
3071         if test "$ol_arg" = "invalid" ; then
3072                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3073 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3074    { (exit 1); exit 1; }; }
3075         fi
3076         ol_enable_overlays="$ol_arg"
3077
3078 fi; # end --enable-overlays
3079 test -n "$ol_enable_overlays" && ol_dflt_overlays="$ol_enable_overlays"
3080 # OpenLDAP --enable-accesslog
3081         # Check whether --enable-accesslog or --disable-accesslog was given.
3082 if test "${enable_accesslog+set}" = set; then
3083   enableval="$enable_accesslog"
3084
3085         ol_arg=invalid
3086         for ol_val in no yes mod ; do
3087                 if test "$enableval" = "$ol_val" ; then
3088                         ol_arg="$ol_val"
3089                 fi
3090         done
3091         if test "$ol_arg" = "invalid" ; then
3092                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3093 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3094    { (exit 1); exit 1; }; }
3095         fi
3096         ol_enable_accesslog="$ol_arg"
3097
3098 else
3099         ol_enable_accesslog="${ol_dflt_overlays-no}"
3100 fi; # end --enable-accesslog
3101
3102 # OpenLDAP --enable-denyop
3103         # Check whether --enable-denyop or --disable-denyop was given.
3104 if test "${enable_denyop+set}" = set; then
3105   enableval="$enable_denyop"
3106
3107         ol_arg=invalid
3108         for ol_val in no yes mod ; do
3109                 if test "$enableval" = "$ol_val" ; then
3110                         ol_arg="$ol_val"
3111                 fi
3112         done
3113         if test "$ol_arg" = "invalid" ; then
3114                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3115 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3116    { (exit 1); exit 1; }; }
3117         fi
3118         ol_enable_denyop="$ol_arg"
3119
3120 else
3121         ol_enable_denyop="${ol_dflt_overlays-no}"
3122 fi; # end --enable-denyop
3123
3124 # OpenLDAP --enable-dyngroup
3125         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3126 if test "${enable_dyngroup+set}" = set; then
3127   enableval="$enable_dyngroup"
3128
3129         ol_arg=invalid
3130         for ol_val in no yes mod ; do
3131                 if test "$enableval" = "$ol_val" ; then
3132                         ol_arg="$ol_val"
3133                 fi
3134         done
3135         if test "$ol_arg" = "invalid" ; then
3136                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3137 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3138    { (exit 1); exit 1; }; }
3139         fi
3140         ol_enable_dyngroup="$ol_arg"
3141
3142 else
3143         ol_enable_dyngroup="${ol_dflt_overlays-no}"
3144 fi; # end --enable-dyngroup
3145
3146 # OpenLDAP --enable-dynlist
3147         # Check whether --enable-dynlist or --disable-dynlist was given.
3148 if test "${enable_dynlist+set}" = set; then
3149   enableval="$enable_dynlist"
3150
3151         ol_arg=invalid
3152         for ol_val in no yes mod ; do
3153                 if test "$enableval" = "$ol_val" ; then
3154                         ol_arg="$ol_val"
3155                 fi
3156         done
3157         if test "$ol_arg" = "invalid" ; then
3158                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3159 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3160    { (exit 1); exit 1; }; }
3161         fi
3162         ol_enable_dynlist="$ol_arg"
3163
3164 else
3165         ol_enable_dynlist="${ol_dflt_overlays-no}"
3166 fi; # end --enable-dynlist
3167
3168 # OpenLDAP --enable-glue
3169         # Check whether --enable-glue or --disable-glue was given.
3170 if test "${enable_glue+set}" = set; then
3171   enableval="$enable_glue"
3172
3173         ol_arg=invalid
3174         for ol_val in no yes mod ; do
3175                 if test "$enableval" = "$ol_val" ; then
3176                         ol_arg="$ol_val"
3177                 fi
3178         done
3179         if test "$ol_arg" = "invalid" ; then
3180                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3181 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3182    { (exit 1); exit 1; }; }
3183         fi
3184         ol_enable_glue="$ol_arg"
3185
3186 else
3187         ol_enable_glue="${ol_dflt_overlays-yes}"
3188 fi; # end --enable-glue
3189
3190 # OpenLDAP --enable-lastmod
3191         # Check whether --enable-lastmod or --disable-lastmod was given.
3192 if test "${enable_lastmod+set}" = set; then
3193   enableval="$enable_lastmod"
3194
3195         ol_arg=invalid
3196         for ol_val in no yes mod ; do
3197                 if test "$enableval" = "$ol_val" ; then
3198                         ol_arg="$ol_val"
3199                 fi
3200         done
3201         if test "$ol_arg" = "invalid" ; then
3202                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3203 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3204    { (exit 1); exit 1; }; }
3205         fi
3206         ol_enable_lastmod="$ol_arg"
3207
3208 else
3209         ol_enable_lastmod="${ol_dflt_overlays-no}"
3210 fi; # end --enable-lastmod
3211
3212 # OpenLDAP --enable-ppolicy
3213         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3214 if test "${enable_ppolicy+set}" = set; then
3215   enableval="$enable_ppolicy"
3216
3217         ol_arg=invalid
3218         for ol_val in no yes mod ; do
3219                 if test "$enableval" = "$ol_val" ; then
3220                         ol_arg="$ol_val"
3221                 fi
3222         done
3223         if test "$ol_arg" = "invalid" ; then
3224                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3225 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3226    { (exit 1); exit 1; }; }
3227         fi
3228         ol_enable_ppolicy="$ol_arg"
3229
3230 else
3231         ol_enable_ppolicy="${ol_dflt_overlays-no}"
3232 fi; # end --enable-ppolicy
3233
3234 # OpenLDAP --enable-proxycache
3235         # Check whether --enable-proxycache or --disable-proxycache was given.
3236 if test "${enable_proxycache+set}" = set; then
3237   enableval="$enable_proxycache"
3238
3239         ol_arg=invalid
3240         for ol_val in no yes mod ; do
3241                 if test "$enableval" = "$ol_val" ; then
3242                         ol_arg="$ol_val"
3243                 fi
3244         done
3245         if test "$ol_arg" = "invalid" ; then
3246                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3247 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3248    { (exit 1); exit 1; }; }
3249         fi
3250         ol_enable_proxycache="$ol_arg"
3251
3252 else
3253         ol_enable_proxycache="${ol_dflt_overlays-no}"
3254 fi; # end --enable-proxycache
3255
3256 # OpenLDAP --enable-refint
3257         # Check whether --enable-refint or --disable-refint was given.
3258 if test "${enable_refint+set}" = set; then
3259   enableval="$enable_refint"
3260
3261         ol_arg=invalid
3262         for ol_val in no yes mod ; do
3263                 if test "$enableval" = "$ol_val" ; then
3264                         ol_arg="$ol_val"
3265                 fi
3266         done
3267         if test "$ol_arg" = "invalid" ; then
3268                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3269 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3270    { (exit 1); exit 1; }; }
3271         fi
3272         ol_enable_refint="$ol_arg"
3273
3274 else
3275         ol_enable_refint="${ol_dflt_overlays-no}"
3276 fi; # end --enable-refint
3277
3278 # OpenLDAP --enable-retcode
3279         # Check whether --enable-retcode or --disable-retcode was given.
3280 if test "${enable_retcode+set}" = set; then
3281   enableval="$enable_retcode"
3282
3283         ol_arg=invalid
3284         for ol_val in no yes mod ; do
3285                 if test "$enableval" = "$ol_val" ; then
3286                         ol_arg="$ol_val"
3287                 fi
3288         done
3289         if test "$ol_arg" = "invalid" ; then
3290                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3291 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3292    { (exit 1); exit 1; }; }
3293         fi
3294         ol_enable_retcode="$ol_arg"
3295
3296 else
3297         ol_enable_retcode="${ol_dflt_overlays-no}"
3298 fi; # end --enable-retcode
3299
3300 # OpenLDAP --enable-rwm
3301         # Check whether --enable-rwm or --disable-rwm was given.
3302 if test "${enable_rwm+set}" = set; then
3303   enableval="$enable_rwm"
3304
3305         ol_arg=invalid
3306         for ol_val in no yes mod ; do
3307                 if test "$enableval" = "$ol_val" ; then
3308                         ol_arg="$ol_val"
3309                 fi
3310         done
3311         if test "$ol_arg" = "invalid" ; then
3312                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3313 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3314    { (exit 1); exit 1; }; }
3315         fi
3316         ol_enable_rwm="$ol_arg"
3317
3318 else
3319         ol_enable_rwm="${ol_dflt_overlays-no}"
3320 fi; # end --enable-rwm
3321
3322 # OpenLDAP --enable-syncprov
3323         # Check whether --enable-syncprov or --disable-syncprov was given.
3324 if test "${enable_syncprov+set}" = set; then
3325   enableval="$enable_syncprov"
3326
3327         ol_arg=invalid
3328         for ol_val in no yes mod ; do
3329                 if test "$enableval" = "$ol_val" ; then
3330                         ol_arg="$ol_val"
3331                 fi
3332         done
3333         if test "$ol_arg" = "invalid" ; then
3334                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3335 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3336    { (exit 1); exit 1; }; }
3337         fi
3338         ol_enable_syncprov="$ol_arg"
3339
3340 else
3341         ol_enable_syncprov="${ol_dflt_overlays-yes}"
3342 fi; # end --enable-syncprov
3343
3344 # OpenLDAP --enable-translucent
3345         # Check whether --enable-translucent or --disable-translucent was given.
3346 if test "${enable_translucent+set}" = set; then
3347   enableval="$enable_translucent"
3348
3349         ol_arg=invalid
3350         for ol_val in no yes mod ; do
3351                 if test "$enableval" = "$ol_val" ; then
3352                         ol_arg="$ol_val"
3353                 fi
3354         done
3355         if test "$ol_arg" = "invalid" ; then
3356                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3357 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3358    { (exit 1); exit 1; }; }
3359         fi
3360         ol_enable_translucent="$ol_arg"
3361
3362 else
3363         ol_enable_translucent="${ol_dflt_overlays-no}"
3364 fi; # end --enable-translucent
3365
3366 # OpenLDAP --enable-unique
3367         # Check whether --enable-unique or --disable-unique was given.
3368 if test "${enable_unique+set}" = set; then
3369   enableval="$enable_unique"
3370
3371         ol_arg=invalid
3372         for ol_val in no yes mod ; do
3373                 if test "$enableval" = "$ol_val" ; then
3374                         ol_arg="$ol_val"
3375                 fi
3376         done
3377         if test "$ol_arg" = "invalid" ; then
3378                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3379 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3380    { (exit 1); exit 1; }; }
3381         fi
3382         ol_enable_unique="$ol_arg"
3383
3384 else
3385         ol_enable_unique="${ol_dflt_overlays-no}"
3386 fi; # end --enable-unique
3387
3388
3389
3390
3391 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
3392 if test "${with_xxslurpdoptions+set}" = set; then
3393   withval="$with_xxslurpdoptions"
3394
3395 fi;
3396 # OpenLDAP --enable-slurpd
3397         # Check whether --enable-slurpd or --disable-slurpd was given.
3398 if test "${enable_slurpd+set}" = set; then
3399   enableval="$enable_slurpd"
3400
3401         ol_arg=invalid
3402         for ol_val in auto yes no ; do
3403                 if test "$enableval" = "$ol_val" ; then
3404                         ol_arg="$ol_val"
3405                 fi
3406         done
3407         if test "$ol_arg" = "invalid" ; then
3408                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3409 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3410    { (exit 1); exit 1; }; }
3411         fi
3412         ol_enable_slurpd="$ol_arg"
3413
3414 else
3415         ol_enable_slurpd="auto"
3416 fi; # end --enable-slurpd
3417
3418
3419 # Check whether --with-xxliboptions or --without-xxliboptions was given.
3420 if test "${with_xxliboptions+set}" = set; then
3421   withval="$with_xxliboptions"
3422
3423 fi;
3424 # Check whether --enable-static or --disable-static was given.
3425 if test "${enable_static+set}" = set; then
3426   enableval="$enable_static"
3427   p=${PACKAGE-default}
3428     case $enableval in
3429     yes) enable_static=yes ;;
3430     no) enable_static=no ;;
3431     *)
3432      enable_static=no
3433       # Look at the argument we got.  We use all the common list separators.
3434       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3435       for pkg in $enableval; do
3436         IFS="$lt_save_ifs"
3437         if test "X$pkg" = "X$p"; then
3438           enable_static=yes
3439         fi
3440       done
3441       IFS="$lt_save_ifs"
3442       ;;
3443     esac
3444 else
3445   enable_static=yes
3446 fi;
3447
3448 # Check whether --enable-shared or --disable-shared was given.
3449 if test "${enable_shared+set}" = set; then
3450   enableval="$enable_shared"
3451   p=${PACKAGE-default}
3452     case $enableval in
3453     yes) enable_shared=yes ;;
3454     no) enable_shared=no ;;
3455     *)
3456       enable_shared=no
3457       # Look at the argument we got.  We use all the common list separators.
3458       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3459       for pkg in $enableval; do
3460         IFS="$lt_save_ifs"
3461         if test "X$pkg" = "X$p"; then
3462           enable_shared=yes
3463         fi
3464       done
3465       IFS="$lt_save_ifs"
3466       ;;
3467     esac
3468 else
3469   enable_shared=yes
3470 fi;
3471
3472
3473
3474 # validate options
3475 if test $ol_enable_slapd = no ; then
3476                 if test $ol_enable_slapi = yes ; then
3477                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3478 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3479         fi
3480         case "$ol_enable_backends" in yes | mod)
3481                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3482 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3483         esac
3484         for i in $Backends; do
3485                 eval "ol_tmp=\$ol_enable_$i"
3486                 if test $ol_tmp != no ; then
3487                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3488 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3489                         eval "ol_enable_$i=no"
3490                 fi
3491         done
3492         if test $ol_enable_modules = yes ; then
3493                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3494 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3495         fi
3496         if test $ol_enable_multimaster = yes ; then
3497                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3498 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3499         fi
3500         if test $ol_enable_wrappers = yes ; then
3501                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3502 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3503         fi
3504         if test $ol_enable_rlookups = yes ; then
3505                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3506 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3507         fi
3508         if test $ol_enable_aci = yes ; then
3509                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3510 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3511         fi
3512         if test $ol_with_ldbm_api != auto ; then
3513                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&5
3514 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&2;}
3515         fi
3516         if test $ol_with_ldbm_type != auto ; then
3517                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&5
3518 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&2;}
3519         fi
3520         if test $ol_enable_slurpd = yes ; then
3521                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3522 echo "$as_me: error: slurpd requires slapd" >&2;}
3523    { (exit 1); exit 1; }; }
3524         fi
3525         if test $ol_enable_rewrite = yes ; then
3526                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3527 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3528         fi
3529                 case "$ol_enable_overlays" in yes | mod)
3530                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3531 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3532         esac
3533         for i in $Overlays; do
3534                 eval "ol_tmp=\$ol_enable_$i"
3535                 if test $ol_tmp != no ; then
3536                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3537 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3538                         eval "ol_enable_$i=no"
3539                 fi
3540         done
3541
3542         # force settings to no
3543         ol_enable_slapi=no
3544
3545         ol_enable_backends=
3546         ol_enable_overlays=
3547         ol_enable_modules=no
3548         ol_enable_multimaster=no
3549         ol_enable_rlookups=no
3550         ol_enable_aci=no
3551         ol_enable_wrappers=no
3552
3553         ol_with_ldbm_api=no
3554         ol_with_ldbm_type=no
3555
3556         ol_enable_slurpd=no
3557
3558         ol_enable_rewrite=no
3559
3560 elif test $ol_enable_ldbm = no ; then
3561
3562         if test $ol_with_ldbm_api != auto ; then
3563                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&5
3564 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&2;}
3565         fi
3566
3567         if test $ol_with_ldbm_type != auto ; then
3568                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&5
3569 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&2;}
3570         fi
3571
3572         if test $ol_enable_modules != yes -a \
3573                 $ol_enable_bdb = no -a \
3574                 $ol_enable_dnssrv = no -a \
3575                 $ol_enable_hdb = no -a \
3576                 $ol_enable_ldap = no -a \
3577                 $ol_enable_meta = no -a \
3578                 $ol_enable_monitor = no -a \
3579                 $ol_enable_null = no -a \
3580                 $ol_enable_passwd = no -a \
3581                 $ol_enable_perl = no -a \
3582                 $ol_enable_relay = no -a \
3583                 $ol_enable_shell = no -a \
3584                 $ol_enable_sql = no ; then
3585
3586                 if test $ol_enable_slapd = yes ; then
3587                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3588 echo "$as_me: error: slapd requires a backend" >&2;}
3589    { (exit 1); exit 1; }; }
3590                 else
3591                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3592 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3593                         ol_enable_slapd=no
3594                 fi
3595         fi
3596
3597         ol_with_ldbm_api=no
3598         ol_with_ldbm_type=no
3599
3600         if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3601                 ol_with_ldbm_api=berkeley
3602         fi
3603
3604 else
3605                 if test $ol_with_ldbm_api = gdbm -a \
3606                 $ol_with_ldbm_type = btree ; then
3607                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3608 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3609    { (exit 1); exit 1; }; }
3610         fi
3611         if test $ol_with_ldbm_api = mdbm -a \
3612                 $ol_with_ldbm_type = btree ; then
3613                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3614 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3615    { (exit 1); exit 1; }; }
3616         fi
3617         if test $ol_with_ldbm_api = ndbm -a \
3618                 $ol_with_ldbm_type = btree ; then
3619                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3620 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3621    { (exit 1); exit 1; }; }
3622         fi
3623
3624         if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3625                 if test $ol_with_ldbm_api = auto ; then
3626                         ol_with_ldbm_api=berkeley
3627                 elif test $ol_with_ldbm_api != berkeley ; then
3628                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3629 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3630    { (exit 1); exit 1; }; }
3631                 fi
3632         fi
3633 fi
3634
3635 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3636         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3637 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3638    { (exit 1); exit 1; }; }
3639 fi
3640
3641 if test $ol_enable_slurpd = yes ; then
3642                 if test $ol_with_threads = no ; then
3643                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3644 echo "$as_me: error: slurpd requires threads" >&2;}
3645    { (exit 1); exit 1; }; }
3646         fi
3647 fi
3648
3649 if test $ol_enable_lmpasswd = yes ; then
3650         if test $ol_with_tls = no ; then
3651                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3652 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3653    { (exit 1); exit 1; }; }
3654         fi
3655 fi
3656
3657 if test $ol_enable_kbind = yes ; then
3658         if test $ol_with_kerberos = no ; then
3659                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3660 echo "$as_me: error: options require --with-kerberos" >&2;}
3661    { (exit 1); exit 1; }; }
3662         elif test $ol_with_kerberos = auto ; then
3663                 ol_with_kerberos=yes
3664         fi
3665
3666 elif test $ol_enable_kbind = no ; then
3667         if test $ol_with_kerberos = auto ; then
3668                 ol_with_kerberos=no
3669         elif test $ol_with_kerberos != no ; then
3670                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3671 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3672                 ol_with_kerberos=no
3673         fi
3674 fi
3675
3676 if test $ol_enable_spasswd = yes ; then
3677         if test $ol_with_cyrus_sasl = no ; then
3678                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3679 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3680    { (exit 1); exit 1; }; }
3681         fi
3682         ol_with_cyrus_sasl=yes
3683 fi
3684
3685 echo "$as_me:$LINENO: result: done" >&5
3686 echo "${ECHO_T}done" >&6
3687
3688 LDAP_LIBS=
3689 LDBM_LIBS=
3690 LTHREAD_LIBS=
3691 LUTIL_LIBS=
3692
3693 SLAPD_LIBS=
3694 SLURPD_LIBS=
3695
3696 BUILD_SLAPD=no
3697 BUILD_SLURPD=no
3698
3699 BUILD_THREAD=no
3700
3701 BUILD_SLAPI=no
3702 SLAPD_SLAPI_DEPEND=
3703
3704 BUILD_BDB=no
3705 BUILD_DNSSRV=no
3706 BUILD_HDB=no
3707 BUILD_LDAP=no
3708 BUILD_LDBM=no
3709 BUILD_META=no
3710 BUILD_MONITOR=no
3711 BUILD_NULL=no
3712 BUILD_PASSWD=no
3713 BUILD_PERL=no
3714 BUILD_RELAY=no
3715 BUILD_SHELL=no
3716 BUILD_SQL=no
3717
3718 BUILD_ACCESSLOG=no
3719 BUILD_DENYOP=no
3720 BUILD_DYNGROUP=no
3721 BUILD_DYNLIST=no
3722 BUILD_GLUE=no
3723 BUILD_LASTMOD=no
3724 BUILD_PPOLICY=no
3725 BUILD_PROXYCACHE=no
3726 BUILD_REFINT=no
3727 BUILD_RETCODE=no
3728 BUILD_RWM=no
3729 BUILD_SYNCPROV=no
3730 BUILD_TRANSLUCENT=no
3731 BUILD_UNIQUE=no
3732
3733 SLAPD_STATIC_OVERLAYS=
3734 SLAPD_DYNAMIC_OVERLAYS=
3735
3736 SLAPD_MODULES_LDFLAGS=
3737 SLAPD_MODULES_CPPFLAGS=
3738
3739 SLAPD_STATIC_BACKENDS=back-ldif
3740 SLAPD_DYNAMIC_BACKENDS=
3741
3742 SLAPD_PERL_LDFLAGS=
3743 MOD_PERL_LDFLAGS=
3744 PERL_CPPFLAGS=
3745
3746 SLAPD_SQL_LDFLAGS=
3747 SLAPD_SQL_LIBS=
3748 SLAPD_SQL_INCLUDES=
3749
3750 KRB4_LIBS=
3751 KRB5_LIBS=
3752 SASL_LIBS=
3753 TLS_LIBS=
3754 MODULES_LIBS=
3755 SLAPI_LIBS=
3756 LIBSLAPI=
3757 LIBSLAPITOOLS=
3758 AUTH_LIBS=
3759
3760 SLAPD_SLP_LIBS=
3761 SLAPD_GMP_LIBS=
3762
3763
3764
3765 cat >>confdefs.h <<\_ACEOF
3766 #define HAVE_MKVERSION 1
3767 _ACEOF
3768
3769
3770
3771
3772 ol_aix_threads=no
3773 case "$target" in
3774 *-*-aix*)       if test -z "$CC" ; then
3775                 case "$ol_with_threads" in
3776                 auto | yes |  posix) ol_aix_threads=yes ;;
3777                 esac
3778         fi
3779 ;;
3780 esac
3781
3782 if test $ol_aix_threads = yes ; then
3783         if test -z "${CC}" ; then
3784                 for ac_prog in cc_r xlc_r cc
3785 do
3786   # Extract the first word of "$ac_prog", so it can be a program name with args.
3787 set dummy $ac_prog; ac_word=$2
3788 echo "$as_me:$LINENO: checking for $ac_word" >&5
3789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3790 if test "${ac_cv_prog_CC+set}" = set; then
3791   echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793   if test -n "$CC"; then
3794   ac_cv_prog_CC="$CC" # Let the user override the test.
3795 else
3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 for as_dir in $PATH
3798 do
3799   IFS=$as_save_IFS
3800   test -z "$as_dir" && as_dir=.
3801   for ac_exec_ext in '' $ac_executable_extensions; do
3802   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3803     ac_cv_prog_CC="$ac_prog"
3804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3805     break 2
3806   fi
3807 done
3808 done
3809
3810 fi
3811 fi
3812 CC=$ac_cv_prog_CC
3813 if test -n "$CC"; then
3814   echo "$as_me:$LINENO: result: $CC" >&5
3815 echo "${ECHO_T}$CC" >&6
3816 else
3817   echo "$as_me:$LINENO: result: no" >&5
3818 echo "${ECHO_T}no" >&6
3819 fi
3820
3821   test -n "$CC" && break
3822 done
3823
3824
3825                 if test "$CC" = cc ; then
3826                                                 if test $ol_with_threads != auto ; then
3827                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3828 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3829    { (exit 1); exit 1; }; }
3830                         else
3831                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3832 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3833                         fi
3834                         ol_with_threads=no
3835                 fi
3836         fi
3837
3838         if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3839                 ol_with_threads=posix
3840                 ol_cv_pthread_create=yes
3841         fi
3842 fi
3843
3844 if test -z "${CC}"; then
3845         for ac_prog in cc gcc
3846 do
3847   # Extract the first word of "$ac_prog", so it can be a program name with args.
3848 set dummy $ac_prog; ac_word=$2
3849 echo "$as_me:$LINENO: checking for $ac_word" >&5
3850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3851 if test "${ac_cv_prog_CC+set}" = set; then
3852   echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854   if test -n "$CC"; then
3855   ac_cv_prog_CC="$CC" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3859 do
3860   IFS=$as_save_IFS
3861   test -z "$as_dir" && as_dir=.
3862   for ac_exec_ext in '' $ac_executable_extensions; do
3863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864     ac_cv_prog_CC="$ac_prog"
3865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3866     break 2
3867   fi
3868 done
3869 done
3870
3871 fi
3872 fi
3873 CC=$ac_cv_prog_CC
3874 if test -n "$CC"; then
3875   echo "$as_me:$LINENO: result: $CC" >&5
3876 echo "${ECHO_T}$CC" >&6
3877 else
3878   echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3880 fi
3881
3882   test -n "$CC" && break
3883 done
3884 test -n "$CC" || CC="missing"
3885
3886
3887         if test "${CC}" = "missing" ; then
3888                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
3889 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
3890    { (exit 1); exit 1; }; }
3891         fi
3892 fi
3893
3894 if test -z "${AR}"; then
3895         for ac_prog in ar gar
3896 do
3897   # Extract the first word of "$ac_prog", so it can be a program name with args.
3898 set dummy $ac_prog; ac_word=$2
3899 echo "$as_me:$LINENO: checking for $ac_word" >&5
3900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3901 if test "${ac_cv_prog_AR+set}" = set; then
3902   echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904   if test -n "$AR"; then
3905   ac_cv_prog_AR="$AR" # Let the user override the test.
3906 else
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3909 do
3910   IFS=$as_save_IFS
3911   test -z "$as_dir" && as_dir=.
3912   for ac_exec_ext in '' $ac_executable_extensions; do
3913   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3914     ac_cv_prog_AR="$ac_prog"
3915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3916     break 2
3917   fi
3918 done
3919 done
3920
3921 fi
3922 fi
3923 AR=$ac_cv_prog_AR
3924 if test -n "$AR"; then
3925   echo "$as_me:$LINENO: result: $AR" >&5
3926 echo "${ECHO_T}$AR" >&6
3927 else
3928   echo "$as_me:$LINENO: result: no" >&5
3929 echo "${ECHO_T}no" >&6
3930 fi
3931
3932   test -n "$AR" && break
3933 done
3934 test -n "$AR" || AR="missing"
3935
3936
3937         if test "${AR}" = "missing" ; then
3938                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
3939 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
3940    { (exit 1); exit 1; }; }
3941         fi
3942 fi
3943
3944
3945
3946
3947
3948 # Check whether --enable-fast-install or --disable-fast-install was given.
3949 if test "${enable_fast_install+set}" = set; then
3950   enableval="$enable_fast_install"
3951   p=${PACKAGE-default}
3952     case $enableval in
3953     yes) enable_fast_install=yes ;;
3954     no) enable_fast_install=no ;;
3955     *)
3956       enable_fast_install=no
3957       # Look at the argument we got.  We use all the common list separators.
3958       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3959       for pkg in $enableval; do
3960         IFS="$lt_save_ifs"
3961         if test "X$pkg" = "X$p"; then
3962           enable_fast_install=yes
3963         fi
3964       done
3965       IFS="$lt_save_ifs"
3966       ;;
3967     esac
3968 else
3969   enable_fast_install=yes
3970 fi;
3971
3972 DEPDIR="${am__leading_dot}deps"
3973
3974           ac_config_commands="$ac_config_commands depfiles"
3975
3976
3977 am_make=${MAKE-make}
3978 cat > confinc << 'END'
3979 am__doit:
3980         @echo done
3981 .PHONY: am__doit
3982 END
3983 # If we don't find an include directive, just comment out the code.
3984 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3985 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3986 am__include="#"
3987 am__quote=
3988 _am_result=none
3989 # First try GNU make style include.
3990 echo "include confinc" > confmf
3991 # We grep out `Entering directory' and `Leaving directory'
3992 # messages which can occur if `w' ends up in MAKEFLAGS.
3993 # In particular we don't look at `^make:' because GNU make might
3994 # be invoked under some other name (usually "gmake"), in which
3995 # case it prints its new name instead of `make'.
3996 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3997    am__include=include
3998    am__quote=
3999    _am_result=GNU
4000 fi
4001 # Now try BSD make style include.
4002 if test "$am__include" = "#"; then
4003    echo '.include "confinc"' > confmf
4004    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4005       am__include=.include
4006       am__quote="\""
4007       _am_result=BSD
4008    fi
4009 fi
4010
4011
4012 echo "$as_me:$LINENO: result: $_am_result" >&5
4013 echo "${ECHO_T}$_am_result" >&6
4014 rm -f confinc confmf
4015
4016 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4017 if test "${enable_dependency_tracking+set}" = set; then
4018   enableval="$enable_dependency_tracking"
4019
4020 fi;
4021 if test "x$enable_dependency_tracking" != xno; then
4022   am_depcomp="$ac_aux_dir/depcomp"
4023   AMDEPBACKSLASH='\'
4024 fi
4025
4026
4027 if test "x$enable_dependency_tracking" != xno; then
4028   AMDEP_TRUE=
4029   AMDEP_FALSE='#'
4030 else
4031   AMDEP_TRUE='#'
4032   AMDEP_FALSE=
4033 fi
4034
4035
4036
4037 ac_ext=c
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042 if test -n "$ac_tool_prefix"; then
4043   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4044 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4045 echo "$as_me:$LINENO: checking for $ac_word" >&5
4046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4047 if test "${ac_cv_prog_CC+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050   if test -n "$CC"; then
4051   ac_cv_prog_CC="$CC" # Let the user override the test.
4052 else
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4055 do
4056   IFS=$as_save_IFS
4057   test -z "$as_dir" && as_dir=.
4058   for ac_exec_ext in '' $ac_executable_extensions; do
4059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4062     break 2
4063   fi
4064 done
4065 done
4066
4067 fi
4068 fi
4069 CC=$ac_cv_prog_CC
4070 if test -n "$CC"; then
4071   echo "$as_me:$LINENO: result: $CC" >&5
4072 echo "${ECHO_T}$CC" >&6
4073 else
4074   echo "$as_me:$LINENO: result: no" >&5
4075 echo "${ECHO_T}no" >&6
4076 fi
4077
4078 fi
4079 if test -z "$ac_cv_prog_CC"; then
4080   ac_ct_CC=$CC
4081   # Extract the first word of "gcc", so it can be a program name with args.
4082 set dummy gcc; ac_word=$2
4083 echo "$as_me:$LINENO: checking for $ac_word" >&5
4084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4086   echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088   if test -n "$ac_ct_CC"; then
4089   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4090 else
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH
4093 do
4094   IFS=$as_save_IFS
4095   test -z "$as_dir" && as_dir=.
4096   for ac_exec_ext in '' $ac_executable_extensions; do
4097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098     ac_cv_prog_ac_ct_CC="gcc"
4099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4100     break 2
4101   fi
4102 done
4103 done
4104
4105 fi
4106 fi
4107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4108 if test -n "$ac_ct_CC"; then
4109   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4110 echo "${ECHO_T}$ac_ct_CC" >&6
4111 else
4112   echo "$as_me:$LINENO: result: no" >&5
4113 echo "${ECHO_T}no" >&6
4114 fi
4115
4116   CC=$ac_ct_CC
4117 else
4118   CC="$ac_cv_prog_CC"
4119 fi
4120
4121 if test -z "$CC"; then
4122   if test -n "$ac_tool_prefix"; then
4123   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4124 set dummy ${ac_tool_prefix}cc; ac_word=$2
4125 echo "$as_me:$LINENO: checking for $ac_word" >&5
4126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4127 if test "${ac_cv_prog_CC+set}" = set; then
4128   echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130   if test -n "$CC"; then
4131   ac_cv_prog_CC="$CC" # Let the user override the test.
4132 else
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH
4135 do
4136   IFS=$as_save_IFS
4137   test -z "$as_dir" && as_dir=.
4138   for ac_exec_ext in '' $ac_executable_extensions; do
4139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4140     ac_cv_prog_CC="${ac_tool_prefix}cc"
4141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142     break 2
4143   fi
4144 done
4145 done
4146
4147 fi
4148 fi
4149 CC=$ac_cv_prog_CC
4150 if test -n "$CC"; then
4151   echo "$as_me:$LINENO: result: $CC" >&5
4152 echo "${ECHO_T}$CC" >&6
4153 else
4154   echo "$as_me:$LINENO: result: no" >&5
4155 echo "${ECHO_T}no" >&6
4156 fi
4157
4158 fi
4159 if test -z "$ac_cv_prog_CC"; then
4160   ac_ct_CC=$CC
4161   # Extract the first word of "cc", so it can be a program name with args.
4162 set dummy cc; ac_word=$2
4163 echo "$as_me:$LINENO: checking for $ac_word" >&5
4164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4165 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4166   echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168   if test -n "$ac_ct_CC"; then
4169   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4170 else
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH
4173 do
4174   IFS=$as_save_IFS
4175   test -z "$as_dir" && as_dir=.
4176   for ac_exec_ext in '' $ac_executable_extensions; do
4177   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178     ac_cv_prog_ac_ct_CC="cc"
4179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180     break 2
4181   fi
4182 done
4183 done
4184
4185 fi
4186 fi
4187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4188 if test -n "$ac_ct_CC"; then
4189   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4190 echo "${ECHO_T}$ac_ct_CC" >&6
4191 else
4192   echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6
4194 fi
4195
4196   CC=$ac_ct_CC
4197 else
4198   CC="$ac_cv_prog_CC"
4199 fi
4200
4201 fi
4202 if test -z "$CC"; then
4203   # Extract the first word of "cc", so it can be a program name with args.
4204 set dummy cc; ac_word=$2
4205 echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4207 if test "${ac_cv_prog_CC+set}" = set; then
4208   echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210   if test -n "$CC"; then
4211   ac_cv_prog_CC="$CC" # Let the user override the test.
4212 else
4213   ac_prog_rejected=no
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4216 do
4217   IFS=$as_save_IFS
4218   test -z "$as_dir" && as_dir=.
4219   for ac_exec_ext in '' $ac_executable_extensions; do
4220   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4222        ac_prog_rejected=yes
4223        continue
4224      fi
4225     ac_cv_prog_CC="cc"
4226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4227     break 2
4228   fi
4229 done
4230 done
4231
4232 if test $ac_prog_rejected = yes; then
4233   # We found a bogon in the path, so make sure we never use it.
4234   set dummy $ac_cv_prog_CC
4235   shift
4236   if test $# != 0; then
4237     # We chose a different compiler from the bogus one.
4238     # However, it has the same basename, so the bogon will be chosen
4239     # first if we set CC to just the basename; use the full file name.
4240     shift
4241     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4242   fi
4243 fi
4244 fi
4245 fi
4246 CC=$ac_cv_prog_CC
4247 if test -n "$CC"; then
4248   echo "$as_me:$LINENO: result: $CC" >&5
4249 echo "${ECHO_T}$CC" >&6
4250 else
4251   echo "$as_me:$LINENO: result: no" >&5
4252 echo "${ECHO_T}no" >&6
4253 fi
4254
4255 fi
4256 if test -z "$CC"; then
4257   if test -n "$ac_tool_prefix"; then
4258   for ac_prog in cl
4259   do
4260     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4262 echo "$as_me:$LINENO: checking for $ac_word" >&5
4263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4264 if test "${ac_cv_prog_CC+set}" = set; then
4265   echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267   if test -n "$CC"; then
4268   ac_cv_prog_CC="$CC" # Let the user override the test.
4269 else
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH
4272 do
4273   IFS=$as_save_IFS
4274   test -z "$as_dir" && as_dir=.
4275   for ac_exec_ext in '' $ac_executable_extensions; do
4276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279     break 2
4280   fi
4281 done
4282 done
4283
4284 fi
4285 fi
4286 CC=$ac_cv_prog_CC
4287 if test -n "$CC"; then
4288   echo "$as_me:$LINENO: result: $CC" >&5
4289 echo "${ECHO_T}$CC" >&6
4290 else
4291   echo "$as_me:$LINENO: result: no" >&5
4292 echo "${ECHO_T}no" >&6
4293 fi
4294
4295     test -n "$CC" && break
4296   done
4297 fi
4298 if test -z "$CC"; then
4299   ac_ct_CC=$CC
4300   for ac_prog in cl
4301 do
4302   # Extract the first word of "$ac_prog", so it can be a program name with args.
4303 set dummy $ac_prog; ac_word=$2
4304 echo "$as_me:$LINENO: checking for $ac_word" >&5
4305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4306 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4307   echo $ECHO_N "(cached) $ECHO_C" >&6
4308 else
4309   if test -n "$ac_ct_CC"; then
4310   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4311 else
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4314 do
4315   IFS=$as_save_IFS
4316   test -z "$as_dir" && as_dir=.
4317   for ac_exec_ext in '' $ac_executable_extensions; do
4318   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4319     ac_cv_prog_ac_ct_CC="$ac_prog"
4320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4321     break 2
4322   fi
4323 done
4324 done
4325
4326 fi
4327 fi
4328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4329 if test -n "$ac_ct_CC"; then
4330   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4331 echo "${ECHO_T}$ac_ct_CC" >&6
4332 else
4333   echo "$as_me:$LINENO: result: no" >&5
4334 echo "${ECHO_T}no" >&6
4335 fi
4336
4337   test -n "$ac_ct_CC" && break
4338 done
4339
4340   CC=$ac_ct_CC
4341 fi
4342
4343 fi
4344
4345
4346 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4347 See \`config.log' for more details." >&5
4348 echo "$as_me: error: no acceptable C compiler found in \$PATH
4349 See \`config.log' for more details." >&2;}
4350    { (exit 1); exit 1; }; }
4351
4352 # Provide some information about the compiler.
4353 echo "$as_me:$LINENO:" \
4354      "checking for C compiler version" >&5
4355 ac_compiler=`set X $ac_compile; echo $2`
4356 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4357   (eval $ac_compiler --version </dev/null >&5) 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); }
4361 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4362   (eval $ac_compiler -v </dev/null >&5) 2>&5
4363   ac_status=$?
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); }
4366 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4367   (eval $ac_compiler -V </dev/null >&5) 2>&5
4368   ac_status=$?
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); }
4371
4372 cat >conftest.$ac_ext <<_ACEOF
4373 /* confdefs.h.  */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h.  */
4378
4379 int
4380 main ()
4381 {
4382
4383   ;
4384   return 0;
4385 }
4386 _ACEOF
4387 ac_clean_files_save=$ac_clean_files
4388 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4389 # Try to create an executable without -o first, disregard a.out.
4390 # It will help us diagnose broken compilers, and finding out an intuition
4391 # of exeext.
4392 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4393 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4394 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4395 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4396   (eval $ac_link_default) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; then
4400   # Find the output, starting from the most likely.  This scheme is
4401 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4402 # resort.
4403
4404 # Be careful to initialize this variable, since it used to be cached.
4405 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4406 ac_cv_exeext=
4407 # b.out is created by i960 compilers.
4408 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4409 do
4410   test -f "$ac_file" || continue
4411   case $ac_file in
4412     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4413         ;;
4414     conftest.$ac_ext )
4415         # This is the source file.
4416         ;;
4417     [ab].out )
4418         # We found the default executable, but exeext='' is most
4419         # certainly right.
4420         break;;
4421     *.* )
4422         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4423         # FIXME: I believe we export ac_cv_exeext for Libtool,
4424         # but it would be cool to find out if it's true.  Does anybody
4425         # maintain Libtool? --akim.
4426         export ac_cv_exeext
4427         break;;
4428     * )
4429         break;;
4430   esac
4431 done
4432 else
4433   echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4437 See \`config.log' for more details." >&5
4438 echo "$as_me: error: C compiler cannot create executables
4439 See \`config.log' for more details." >&2;}
4440    { (exit 77); exit 77; }; }
4441 fi
4442
4443 ac_exeext=$ac_cv_exeext
4444 echo "$as_me:$LINENO: result: $ac_file" >&5
4445 echo "${ECHO_T}$ac_file" >&6
4446
4447 # Check the compiler produces executables we can run.  If not, either
4448 # the compiler is broken, or we cross compile.
4449 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4450 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4451 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4452 # If not cross compiling, check that we can run a simple program.
4453 if test "$cross_compiling" != yes; then
4454   if { ac_try='./$ac_file'
4455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456   (eval $ac_try) 2>&5
4457   ac_status=$?
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); }; }; then
4460     cross_compiling=no
4461   else
4462     if test "$cross_compiling" = maybe; then
4463         cross_compiling=yes
4464     else
4465         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4466 If you meant to cross compile, use \`--host'.
4467 See \`config.log' for more details." >&5
4468 echo "$as_me: error: cannot run C compiled programs.
4469 If you meant to cross compile, use \`--host'.
4470 See \`config.log' for more details." >&2;}
4471    { (exit 1); exit 1; }; }
4472     fi
4473   fi
4474 fi
4475 echo "$as_me:$LINENO: result: yes" >&5
4476 echo "${ECHO_T}yes" >&6
4477
4478 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4479 ac_clean_files=$ac_clean_files_save
4480 # Check the compiler produces executables we can run.  If not, either
4481 # the compiler is broken, or we cross compile.
4482 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4483 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4484 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4485 echo "${ECHO_T}$cross_compiling" >&6
4486
4487 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4488 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4490   (eval $ac_link) 2>&5
4491   ac_status=$?
4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493   (exit $ac_status); }; then
4494   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4495 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4496 # work properly (i.e., refer to `conftest.exe'), while it won't with
4497 # `rm'.
4498 for ac_file in conftest.exe conftest conftest.*; do
4499   test -f "$ac_file" || continue
4500   case $ac_file in
4501     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4502     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4503           export ac_cv_exeext
4504           break;;
4505     * ) break;;
4506   esac
4507 done
4508 else
4509   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4510 See \`config.log' for more details." >&5
4511 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4512 See \`config.log' for more details." >&2;}
4513    { (exit 1); exit 1; }; }
4514 fi
4515
4516 rm -f conftest$ac_cv_exeext
4517 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4518 echo "${ECHO_T}$ac_cv_exeext" >&6
4519
4520 rm -f conftest.$ac_ext
4521 EXEEXT=$ac_cv_exeext
4522 ac_exeext=$EXEEXT
4523 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4524 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4525 if test "${ac_cv_objext+set}" = set; then
4526   echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528   cat >conftest.$ac_ext <<_ACEOF
4529 /* confdefs.h.  */
4530 _ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h.  */
4534
4535 int
4536 main ()
4537 {
4538
4539   ;
4540   return 0;
4541 }
4542 _ACEOF
4543 rm -f conftest.o conftest.obj
4544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545   (eval $ac_compile) 2>&5
4546   ac_status=$?
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); }; then
4549   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4550   case $ac_file in
4551     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4552     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4553        break;;
4554   esac
4555 done
4556 else
4557   echo "$as_me: failed program was:" >&5
4558 sed 's/^/| /' conftest.$ac_ext >&5
4559
4560 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4561 See \`config.log' for more details." >&5
4562 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4563 See \`config.log' for more details." >&2;}
4564    { (exit 1); exit 1; }; }
4565 fi
4566
4567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4568 fi
4569 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4570 echo "${ECHO_T}$ac_cv_objext" >&6
4571 OBJEXT=$ac_cv_objext
4572 ac_objext=$OBJEXT
4573 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4574 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4575 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578   cat >conftest.$ac_ext <<_ACEOF
4579 /* confdefs.h.  */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h.  */
4584
4585 int
4586 main ()
4587 {
4588 #ifndef __GNUC__
4589        choke me
4590 #endif
4591
4592   ;
4593   return 0;
4594 }
4595 _ACEOF
4596 rm -f conftest.$ac_objext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598   (eval $ac_compile) 2>conftest.er1
4599   ac_status=$?
4600   grep -v '^ *+' conftest.er1 >conftest.err
4601   rm -f conftest.er1
4602   cat conftest.err >&5
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); } &&
4605          { ac_try='test -z "$ac_c_werror_flag"
4606                          || test ! -s conftest.err'
4607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608   (eval $ac_try) 2>&5
4609   ac_status=$?
4610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); }; } &&
4612          { ac_try='test -s conftest.$ac_objext'
4613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614   (eval $ac_try) 2>&5
4615   ac_status=$?
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); }; }; then
4618   ac_compiler_gnu=yes
4619 else
4620   echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4622
4623 ac_compiler_gnu=no
4624 fi
4625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4626 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4627
4628 fi
4629 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4630 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4631 GCC=`test $ac_compiler_gnu = yes && echo yes`
4632 ac_test_CFLAGS=${CFLAGS+set}
4633 ac_save_CFLAGS=$CFLAGS
4634 CFLAGS="-g"
4635 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4636 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4637 if test "${ac_cv_prog_cc_g+set}" = set; then
4638   echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640   cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h.  */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h.  */
4646
4647 int
4648 main ()
4649 {
4650
4651   ;
4652   return 0;
4653 }
4654 _ACEOF
4655 rm -f conftest.$ac_objext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657   (eval $ac_compile) 2>conftest.er1
4658   ac_status=$?
4659   grep -v '^ *+' conftest.er1 >conftest.err
4660   rm -f conftest.er1
4661   cat conftest.err >&5
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); } &&
4664          { ac_try='test -z "$ac_c_werror_flag"
4665                          || test ! -s conftest.err'
4666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667   (eval $ac_try) 2>&5
4668   ac_status=$?
4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); }; } &&
4671          { ac_try='test -s conftest.$ac_objext'
4672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673   (eval $ac_try) 2>&5
4674   ac_status=$?
4675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676   (exit $ac_status); }; }; then
4677   ac_cv_prog_cc_g=yes
4678 else
4679   echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4681
4682 ac_cv_prog_cc_g=no
4683 fi
4684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4685 fi
4686 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4687 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4688 if test "$ac_test_CFLAGS" = set; then
4689   CFLAGS=$ac_save_CFLAGS
4690 elif test $ac_cv_prog_cc_g = yes; then
4691   if test "$GCC" = yes; then
4692     CFLAGS="-g -O2"
4693   else
4694     CFLAGS="-g"
4695   fi
4696 else
4697   if test "$GCC" = yes; then
4698     CFLAGS="-O2"
4699   else
4700     CFLAGS=
4701   fi
4702 fi
4703 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4704 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4705 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4706   echo $ECHO_N "(cached) $ECHO_C" >&6
4707 else
4708   ac_cv_prog_cc_stdc=no
4709 ac_save_CC=$CC
4710 cat >conftest.$ac_ext <<_ACEOF
4711 /* confdefs.h.  */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h.  */
4716 #include <stdarg.h>
4717 #include <stdio.h>
4718 #include <sys/types.h>
4719 #include <sys/stat.h>
4720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4721 struct buf { int x; };
4722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4723 static char *e (p, i)
4724      char **p;
4725      int i;
4726 {
4727   return p[i];
4728 }
4729 static char *f (char * (*g) (char **, int), char **p, ...)
4730 {
4731   char *s;
4732   va_list v;
4733   va_start (v,p);
4734   s = g (p, va_arg (v,int));
4735   va_end (v);
4736   return s;
4737 }
4738
4739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4740    function prototypes and stuff, but not '\xHH' hex character constants.
4741    These don't provoke an error unfortunately, instead are silently treated
4742    as 'x'.  The following induces an error, until -std1 is added to get
4743    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4744    array size at least.  It's necessary to write '\x00'==0 to get something
4745    that's true only with -std1.  */
4746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4747
4748 int test (int i, double x);
4749 struct s1 {int (*f) (int a);};
4750 struct s2 {int (*f) (double a);};
4751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4752 int argc;
4753 char **argv;
4754 int
4755 main ()
4756 {
4757 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4758   ;
4759   return 0;
4760 }
4761 _ACEOF
4762 # Don't try gcc -ansi; that turns off useful extensions and
4763 # breaks some systems' header files.
4764 # AIX                   -qlanglvl=ansi
4765 # Ultrix and OSF/1      -std1
4766 # HP-UX 10.20 and later -Ae
4767 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4768 # SVR4                  -Xc -D__EXTENSIONS__
4769 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4770 do
4771   CC="$ac_save_CC $ac_arg"
4772   rm -f conftest.$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774   (eval $ac_compile) 2>conftest.er1
4775   ac_status=$?
4776   grep -v '^ *+' conftest.er1 >conftest.err
4777   rm -f conftest.er1
4778   cat conftest.err >&5
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); } &&
4781          { ac_try='test -z "$ac_c_werror_flag"
4782                          || test ! -s conftest.err'
4783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784   (eval $ac_try) 2>&5
4785   ac_status=$?
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); }; } &&
4788          { ac_try='test -s conftest.$ac_objext'
4789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790   (eval $ac_try) 2>&5
4791   ac_status=$?
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); }; }; then
4794   ac_cv_prog_cc_stdc=$ac_arg
4795 break
4796 else
4797   echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4799
4800 fi
4801 rm -f conftest.err conftest.$ac_objext
4802 done
4803 rm -f conftest.$ac_ext conftest.$ac_objext
4804 CC=$ac_save_CC
4805
4806 fi
4807
4808 case "x$ac_cv_prog_cc_stdc" in
4809   x|xno)
4810     echo "$as_me:$LINENO: result: none needed" >&5
4811 echo "${ECHO_T}none needed" >&6 ;;
4812   *)
4813     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4814 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4815     CC="$CC $ac_cv_prog_cc_stdc" ;;
4816 esac
4817
4818 # Some people use a C++ compiler to compile C.  Since we use `exit',
4819 # in C++ we need to declare it.  In case someone uses the same compiler
4820 # for both compiling C and C++ we need to have the C++ compiler decide
4821 # the declaration of exit, since it's the most demanding environment.
4822 cat >conftest.$ac_ext <<_ACEOF
4823 #ifndef __cplusplus
4824   choke me
4825 #endif
4826 _ACEOF
4827 rm -f conftest.$ac_objext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829   (eval $ac_compile) 2>conftest.er1
4830   ac_status=$?
4831   grep -v '^ *+' conftest.er1 >conftest.err
4832   rm -f conftest.er1
4833   cat conftest.err >&5
4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); } &&
4836          { ac_try='test -z "$ac_c_werror_flag"
4837                          || test ! -s conftest.err'
4838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839   (eval $ac_try) 2>&5
4840   ac_status=$?
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); }; } &&
4843          { ac_try='test -s conftest.$ac_objext'
4844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845   (eval $ac_try) 2>&5
4846   ac_status=$?
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); }; }; then
4849   for ac_declaration in \
4850    '' \
4851    'extern "C" void std::exit (int) throw (); using std::exit;' \
4852    'extern "C" void std::exit (int); using std::exit;' \
4853    'extern "C" void exit (int) throw ();' \
4854    'extern "C" void exit (int);' \
4855    'void exit (int);'
4856 do
4857   cat >conftest.$ac_ext <<_ACEOF
4858 /* confdefs.h.  */
4859 _ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h.  */
4863 $ac_declaration
4864 #include <stdlib.h>
4865 int
4866 main ()
4867 {
4868 exit (42);
4869   ;
4870   return 0;
4871 }
4872 _ACEOF
4873 rm -f conftest.$ac_objext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4875   (eval $ac_compile) 2>conftest.er1
4876   ac_status=$?
4877   grep -v '^ *+' conftest.er1 >conftest.err
4878   rm -f conftest.er1
4879   cat conftest.err >&5
4880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881   (exit $ac_status); } &&
4882          { ac_try='test -z "$ac_c_werror_flag"
4883                          || test ! -s conftest.err'
4884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885   (eval $ac_try) 2>&5
4886   ac_status=$?
4887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888   (exit $ac_status); }; } &&
4889          { ac_try='test -s conftest.$ac_objext'
4890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891   (eval $ac_try) 2>&5
4892   ac_status=$?
4893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894   (exit $ac_status); }; }; then
4895   :
4896 else
4897   echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4899
4900 continue
4901 fi
4902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4903   cat >conftest.$ac_ext <<_ACEOF
4904 /* confdefs.h.  */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h.  */
4909 $ac_declaration
4910 int
4911 main ()
4912 {
4913 exit (42);
4914   ;
4915   return 0;
4916 }
4917 _ACEOF
4918 rm -f conftest.$ac_objext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920   (eval $ac_compile) 2>conftest.er1
4921   ac_status=$?
4922   grep -v '^ *+' conftest.er1 >conftest.err
4923   rm -f conftest.er1
4924   cat conftest.err >&5
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); } &&
4927          { ac_try='test -z "$ac_c_werror_flag"
4928                          || test ! -s conftest.err'
4929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930   (eval $ac_try) 2>&5
4931   ac_status=$?
4932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); }; } &&
4934          { ac_try='test -s conftest.$ac_objext'
4935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936   (eval $ac_try) 2>&5
4937   ac_status=$?
4938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939   (exit $ac_status); }; }; then
4940   break
4941 else
4942   echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4944
4945 fi
4946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4947 done
4948 rm -f conftest*
4949 if test -n "$ac_declaration"; then
4950   echo '#ifdef __cplusplus' >>confdefs.h
4951   echo $ac_declaration      >>confdefs.h
4952   echo '#endif'             >>confdefs.h
4953 fi
4954
4955 else
4956   echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4958
4959 fi
4960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4961 ac_ext=c
4962 ac_cpp='$CPP $CPPFLAGS'
4963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966
4967 depcc="$CC"   am_compiler_list=
4968
4969 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4970 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4971 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4972   echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4975   # We make a subdir and do the tests there.  Otherwise we can end up
4976   # making bogus files that we don't know about and never remove.  For
4977   # instance it was reported that on HP-UX the gcc test will end up
4978   # making a dummy file named `D' -- because `-MD' means `put the output
4979   # in D'.
4980   mkdir conftest.dir
4981   # Copy depcomp to subdir because otherwise we won't find it if we're
4982   # using a relative directory.
4983   cp "$am_depcomp" conftest.dir
4984   cd conftest.dir
4985   # We will build objects and dependencies in a subdirectory because
4986   # it helps to detect inapplicable dependency modes.  For instance
4987   # both Tru64's cc and ICC support -MD to output dependencies as a
4988   # side effect of compilation, but ICC will put the dependencies in
4989   # the current directory while Tru64 will put them in the object
4990   # directory.
4991   mkdir sub
4992
4993   am_cv_CC_dependencies_compiler_type=none
4994   if test "$am_compiler_list" = ""; then
4995      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4996   fi
4997   for depmode in $am_compiler_list; do
4998     # Setup a source with many dependencies, because some compilers
4999     # like to wrap large dependency lists on column 80 (with \), and
5000     # we should not choose a depcomp mode which is confused by this.
5001     #
5002     # We need to recreate these files for each test, as the compiler may
5003     # overwrite some of them when testing with obscure command lines.
5004     # This happens at least with the AIX C compiler.
5005     : > sub/conftest.c
5006     for i in 1 2 3 4 5 6; do
5007       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5008       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5009       # Solaris 8's {/usr,}/bin/sh.
5010       touch sub/conftst$i.h
5011     done
5012     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5013
5014     case $depmode in
5015     nosideeffect)
5016       # after this tag, mechanisms are not by side-effect, so they'll
5017       # only be used when explicitly requested
5018       if test "x$enable_dependency_tracking" = xyes; then
5019         continue
5020       else
5021         break
5022       fi
5023       ;;
5024     none) break ;;
5025     esac
5026     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5027     # mode.  It turns out that the SunPro C++ compiler does not properly
5028     # handle `-M -o', and we need to detect this.
5029     if depmode=$depmode \
5030        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5031        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5032        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5033          >/dev/null 2>conftest.err &&
5034        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5035        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5036        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5037       # icc doesn't choke on unknown options, it will just issue warnings
5038       # or remarks (even with -Werror).  So we grep stderr for any message
5039       # that says an option was ignored or not supported.
5040       # When given -MP, icc 7.0 and 7.1 complain thusly:
5041       #   icc: Command line warning: ignoring option '-M'; no argument required
5042       # The diagnosis changed in icc 8.0:
5043       #   icc: Command line remark: option '-MP' not supported
5044       if (grep 'ignoring option' conftest.err ||
5045           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5046         am_cv_CC_dependencies_compiler_type=$depmode
5047         break
5048       fi
5049     fi
5050   done
5051
5052   cd ..
5053   rm -rf conftest.dir
5054 else
5055   am_cv_CC_dependencies_compiler_type=none
5056 fi
5057
5058 fi
5059 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5060 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5061 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5062
5063
5064
5065 if
5066   test "x$enable_dependency_tracking" != xno \
5067   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5068   am__fastdepCC_TRUE=
5069   am__fastdepCC_FALSE='#'
5070 else
5071   am__fastdepCC_TRUE='#'
5072   am__fastdepCC_FALSE=
5073 fi
5074
5075
5076 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5077 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5078 if test "${lt_cv_path_SED+set}" = set; then
5079   echo $ECHO_N "(cached) $ECHO_C" >&6
5080 else
5081   # Loop through the user's path and test for sed and gsed.
5082 # Then use that list of sed's as ones to test for truncation.
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH
5085 do
5086   IFS=$as_save_IFS
5087   test -z "$as_dir" && as_dir=.
5088   for lt_ac_prog in sed gsed; do
5089     for ac_exec_ext in '' $ac_executable_extensions; do
5090       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5091         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5092       fi
5093     done
5094   done
5095 done
5096 lt_ac_max=0
5097 lt_ac_count=0
5098 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5099 # along with /bin/sed that truncates output.
5100 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5101   test ! -f $lt_ac_sed && continue
5102   cat /dev/null > conftest.in
5103   lt_ac_count=0
5104   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5105   # Check for GNU sed and select it if it is found.
5106   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5107     lt_cv_path_SED=$lt_ac_sed
5108     break
5109   fi
5110   while true; do
5111     cat conftest.in conftest.in >conftest.tmp
5112     mv conftest.tmp conftest.in
5113     cp conftest.in conftest.nl
5114     echo >>conftest.nl
5115     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5116     cmp -s conftest.out conftest.nl || break
5117     # 10000 chars as input seems more than enough
5118     test $lt_ac_count -gt 10 && break
5119     lt_ac_count=`expr $lt_ac_count + 1`
5120     if test $lt_ac_count -gt $lt_ac_max; then
5121       lt_ac_max=$lt_ac_count
5122       lt_cv_path_SED=$lt_ac_sed
5123     fi
5124   done
5125 done
5126
5127 fi
5128
5129 SED=$lt_cv_path_SED
5130 echo "$as_me:$LINENO: result: $SED" >&5
5131 echo "${ECHO_T}$SED" >&6
5132
5133 echo "$as_me:$LINENO: checking for egrep" >&5
5134 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5135 if test "${ac_cv_prog_egrep+set}" = set; then
5136   echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5139     then ac_cv_prog_egrep='grep -E'
5140     else ac_cv_prog_egrep='egrep'
5141     fi
5142 fi
5143 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5144 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5145  EGREP=$ac_cv_prog_egrep
5146
5147
5148
5149 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5150 if test "${with_gnu_ld+set}" = set; then
5151   withval="$with_gnu_ld"
5152   test "$withval" = no || with_gnu_ld=yes
5153 else
5154   with_gnu_ld=no
5155 fi;
5156 ac_prog=ld
5157 if test "$GCC" = yes; then
5158   # Check if gcc -print-prog-name=ld gives a path.
5159   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5160 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5161   case $host in
5162   *-*-mingw*)
5163     # gcc leaves a trailing carriage return which upsets mingw
5164     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5165   *)
5166     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5167   esac
5168   case $ac_prog in
5169     # Accept absolute paths.
5170     [\\/]* | ?:[\\/]*)
5171       re_direlt='/[^/][^/]*/\.\./'
5172       # Canonicalize the pathname of ld
5173       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5174       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5175         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5176       done
5177       test -z "$LD" && LD="$ac_prog"
5178       ;;
5179   "")
5180     # If it fails, then pretend we aren't using GCC.
5181     ac_prog=ld
5182     ;;
5183   *)
5184     # If it is relative, then search for the first ld in PATH.
5185     with_gnu_ld=unknown
5186     ;;
5187   esac
5188 elif test "$with_gnu_ld" = yes; then
5189   echo "$as_me:$LINENO: checking for GNU ld" >&5
5190 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5191 else
5192   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5193 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5194 fi
5195 if test "${lt_cv_path_LD+set}" = set; then
5196   echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198   if test -z "$LD"; then
5199   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5200   for ac_dir in $PATH; do
5201     IFS="$lt_save_ifs"
5202     test -z "$ac_dir" && ac_dir=.
5203     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5204       lt_cv_path_LD="$ac_dir/$ac_prog"
5205       # Check to see if the program is GNU ld.  I'd rather use --version,
5206       # but apparently some GNU ld's only accept -v.
5207       # Break only if it was the GNU/non-GNU ld that we prefer.
5208       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5209       *GNU* | *'with BFD'*)
5210         test "$with_gnu_ld" != no && break
5211         ;;
5212       *)
5213         test "$with_gnu_ld" != yes && break
5214         ;;
5215       esac
5216     fi
5217   done
5218   IFS="$lt_save_ifs"
5219 else
5220   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5221 fi
5222 fi
5223
5224 LD="$lt_cv_path_LD"
5225 if test -n "$LD"; then
5226   echo "$as_me:$LINENO: result: $LD" >&5
5227 echo "${ECHO_T}$LD" >&6
5228 else
5229   echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6
5231 fi
5232 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5233 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5234    { (exit 1); exit 1; }; }
5235 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5236 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5237 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5238   echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5241 case `$LD -v 2>&1 </dev/null` in
5242 *GNU* | *'with BFD'*)
5243   lt_cv_prog_gnu_ld=yes
5244   ;;
5245 *)
5246   lt_cv_prog_gnu_ld=no
5247   ;;
5248 esac
5249 fi
5250 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5251 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5252 with_gnu_ld=$lt_cv_prog_gnu_ld
5253
5254
5255 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5256 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5257 if test "${lt_cv_ld_reload_flag+set}" = set; then
5258   echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260   lt_cv_ld_reload_flag='-r'
5261 fi
5262 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5263 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5264 reload_flag=$lt_cv_ld_reload_flag
5265 case $reload_flag in
5266 "" | " "*) ;;
5267 *) reload_flag=" $reload_flag" ;;
5268 esac
5269 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5270 case $host_os in
5271   darwin*)
5272     if test "$GCC" = yes; then
5273       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5274     else
5275       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5276     fi
5277     ;;
5278 esac
5279
5280 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5281 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5282 if test "${lt_cv_path_NM+set}" = set; then
5283   echo $ECHO_N "(cached) $ECHO_C" >&6
5284 else
5285   if test -n "$NM"; then
5286   # Let the user override the test.
5287   lt_cv_path_NM="$NM"
5288 else
5289   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5290   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5291     IFS="$lt_save_ifs"
5292     test -z "$ac_dir" && ac_dir=.
5293     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5294     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5295       # Check to see if the nm accepts a BSD-compat flag.
5296       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5297       #   nm: unknown option "B" ignored
5298       # Tru64's nm complains that /dev/null is an invalid object file
5299       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5300       */dev/null* | *'Invalid file or object type'*)
5301         lt_cv_path_NM="$tmp_nm -B"
5302         break
5303         ;;
5304       *)
5305         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5306         */dev/null*)
5307           lt_cv_path_NM="$tmp_nm -p"
5308           break
5309           ;;
5310         *)
5311           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5312           continue # so that we can try to find one that supports BSD flags
5313           ;;
5314         esac
5315       esac
5316     fi
5317   done
5318   IFS="$lt_save_ifs"
5319   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5320 fi
5321 fi
5322 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5323 echo "${ECHO_T}$lt_cv_path_NM" >&6
5324 NM="$lt_cv_path_NM"
5325
5326 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5327 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5328 LN_S=$as_ln_s
5329 if test "$LN_S" = "ln -s"; then
5330   echo "$as_me:$LINENO: result: yes" >&5
5331 echo "${ECHO_T}yes" >&6
5332 else
5333   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5334 echo "${ECHO_T}no, using $LN_S" >&6
5335 fi
5336
5337 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5338 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5339 if test "${lt_cv_deplibs_check_method+set}" = set; then
5340   echo $ECHO_N "(cached) $ECHO_C" >&6
5341 else
5342   lt_cv_file_magic_cmd='$MAGIC_CMD'
5343 lt_cv_file_magic_test_file=
5344 lt_cv_deplibs_check_method='unknown'
5345 # Need to set the preceding variable on all platforms that support
5346 # interlibrary dependencies.
5347 # 'none' -- dependencies not supported.
5348 # `unknown' -- same as none, but documents that we really don't know.
5349 # 'pass_all' -- all dependencies passed with no checks.
5350 # 'test_compile' -- check by making test program.
5351 # 'file_magic [[regex]]' -- check by looking for files in library path
5352 # which responds to the $file_magic_cmd with a given extended regex.
5353 # If you have `file' or equivalent on your system and you're not sure
5354 # whether `pass_all' will *always* work, you probably want this one.
5355
5356 case $host_os in
5357 aix4* | aix5*)
5358   lt_cv_deplibs_check_method=pass_all
5359   ;;
5360
5361 beos*)
5362   lt_cv_deplibs_check_method=pass_all
5363   ;;
5364
5365 bsdi[45]*)
5366   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5367   lt_cv_file_magic_cmd='/usr/bin/file -L'
5368   lt_cv_file_magic_test_file=/shlib/libc.so
5369   ;;
5370
5371 cygwin*)
5372   # func_win32_libid is a shell function defined in ltmain.sh
5373   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5374   lt_cv_file_magic_cmd='func_win32_libid'
5375   ;;
5376
5377 mingw* | pw32*)
5378   # Base MSYS/MinGW do not provide the 'file' command needed by
5379   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5380   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5381   lt_cv_file_magic_cmd='$OBJDUMP -f'
5382   ;;
5383
5384 darwin* | rhapsody*)
5385   lt_cv_deplibs_check_method=pass_all
5386   ;;
5387
5388 freebsd* | kfreebsd*-gnu | dragonfly*)
5389   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5390     case $host_cpu in
5391     i*86 )
5392       # Not sure whether the presence of OpenBSD here was a mistake.
5393       # Let's accept both of them until this is cleared up.
5394       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5395       lt_cv_file_magic_cmd=/usr/bin/file
5396       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5397       ;;
5398     esac
5399   else
5400     lt_cv_deplibs_check_method=pass_all
5401   fi
5402   ;;
5403
5404 gnu*)
5405   lt_cv_deplibs_check_method=pass_all
5406   ;;
5407
5408 hpux10.20* | hpux11*)
5409   lt_cv_file_magic_cmd=/usr/bin/file
5410   case "$host_cpu" in
5411   ia64*)
5412     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5413     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5414     ;;
5415   hppa*64*)
5416     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]'
5417     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5418     ;;
5419   *)
5420     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5421     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5422     ;;
5423   esac
5424   ;;
5425
5426 irix5* | irix6* | nonstopux*)
5427   case $LD in
5428   *-32|*"-32 ") libmagic=32-bit;;
5429   *-n32|*"-n32 ") libmagic=N32;;
5430   *-64|*"-64 ") libmagic=64-bit;;
5431   *) libmagic=never-match;;
5432   esac
5433   lt_cv_deplibs_check_method=pass_all
5434   ;;
5435
5436 # This must be Linux ELF.
5437 linux*)
5438   lt_cv_deplibs_check_method=pass_all
5439   ;;
5440
5441 netbsd*)
5442   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5443     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5444   else
5445     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5446   fi
5447   ;;
5448
5449 newos6*)
5450   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5451   lt_cv_file_magic_cmd=/usr/bin/file
5452   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5453   ;;
5454
5455 nto-qnx*)
5456   lt_cv_deplibs_check_method=unknown
5457   ;;
5458
5459 openbsd*)
5460   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5461     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5462   else
5463     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5464   fi
5465   ;;
5466
5467 osf3* | osf4* | osf5*)
5468   lt_cv_deplibs_check_method=pass_all
5469   ;;
5470
5471 sco3.2v5*)
5472   lt_cv_deplibs_check_method=pass_all
5473   ;;
5474
5475 solaris*)
5476   lt_cv_deplibs_check_method=pass_all
5477   ;;
5478
5479 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5480   case $host_vendor in
5481   motorola)
5482     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]'
5483     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5484     ;;
5485   ncr)
5486     lt_cv_deplibs_check_method=pass_all
5487     ;;
5488   sequent)
5489     lt_cv_file_magic_cmd='/bin/file'
5490     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5491     ;;
5492   sni)
5493     lt_cv_file_magic_cmd='/bin/file'
5494     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5495     lt_cv_file_magic_test_file=/lib/libc.so
5496     ;;
5497   siemens)
5498     lt_cv_deplibs_check_method=pass_all
5499     ;;
5500   esac
5501   ;;
5502
5503 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5504   lt_cv_deplibs_check_method=pass_all
5505   ;;
5506 esac
5507
5508 fi
5509 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5510 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5511 file_magic_cmd=$lt_cv_file_magic_cmd
5512 deplibs_check_method=$lt_cv_deplibs_check_method
5513 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5514
5515
5516
5517
5518 # If no C compiler was specified, use CC.
5519 LTCC=${LTCC-"$CC"}
5520
5521 # Allow CC to be a program name with arguments.
5522 compiler=$CC
5523
5524
5525 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5526 if test "${enable_libtool_lock+set}" = set; then
5527   enableval="$enable_libtool_lock"
5528
5529 fi;
5530 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5531
5532 # Some flags need to be propagated to the compiler or linker for good
5533 # libtool support.
5534 case $host in
5535 ia64-*-hpux*)
5536   # Find out which ABI we are using.
5537   echo 'int i;' > conftest.$ac_ext
5538   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539   (eval $ac_compile) 2>&5
5540   ac_status=$?
5541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542   (exit $ac_status); }; then
5543     case `/usr/bin/file conftest.$ac_objext` in
5544     *ELF-32*)
5545       HPUX_IA64_MODE="32"
5546       ;;
5547     *ELF-64*)
5548       HPUX_IA64_MODE="64"
5549       ;;
5550     esac
5551   fi
5552   rm -rf conftest*
5553   ;;
5554 *-*-irix6*)
5555   # Find out which ABI we are using.
5556   echo '#line 5556 "configure"' > conftest.$ac_ext
5557   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558   (eval $ac_compile) 2>&5
5559   ac_status=$?
5560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561   (exit $ac_status); }; then
5562    if test "$lt_cv_prog_gnu_ld" = yes; then
5563     case `/usr/bin/file conftest.$ac_objext` in
5564     *32-bit*)
5565       LD="${LD-ld} -melf32bsmip"
5566       ;;
5567     *N32*)
5568       LD="${LD-ld} -melf32bmipn32"
5569       ;;
5570     *64-bit*)
5571       LD="${LD-ld} -melf64bmip"
5572       ;;
5573     esac
5574    else
5575     case `/usr/bin/file conftest.$ac_objext` in
5576     *32-bit*)
5577       LD="${LD-ld} -32"
5578       ;;
5579     *N32*)
5580       LD="${LD-ld} -n32"
5581       ;;
5582     *64-bit*)
5583       LD="${LD-ld} -64"
5584       ;;
5585     esac
5586    fi
5587   fi
5588   rm -rf conftest*
5589   ;;
5590
5591 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5592   # Find out which ABI we are using.
5593   echo 'int i;' > conftest.$ac_ext
5594   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5595   (eval $ac_compile) 2>&5
5596   ac_status=$?
5597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598   (exit $ac_status); }; then
5599     case "`/usr/bin/file conftest.o`" in
5600     *32-bit*)
5601       case $host in
5602         x86_64-*linux*)
5603           LD="${LD-ld} -m elf_i386"
5604           ;;
5605         ppc64-*linux*|powerpc64-*linux*)
5606           LD="${LD-ld} -m elf32ppclinux"
5607           ;;
5608         s390x-*linux*)
5609           LD="${LD-ld} -m elf_s390"
5610           ;;
5611         sparc64-*linux*)
5612           LD="${LD-ld} -m elf32_sparc"
5613           ;;
5614       esac
5615       ;;
5616     *64-bit*)
5617       case $host in
5618         x86_64-*linux*)
5619           LD="${LD-ld} -m elf_x86_64"
5620           ;;
5621         ppc*-*linux*|powerpc*-*linux*)
5622           LD="${LD-ld} -m elf64ppc"
5623           ;;
5624         s390*-*linux*)
5625           LD="${LD-ld} -m elf64_s390"
5626           ;;
5627         sparc*-*linux*)
5628           LD="${LD-ld} -m elf64_sparc"
5629           ;;
5630       esac
5631       ;;
5632     esac
5633   fi
5634   rm -rf conftest*
5635   ;;
5636
5637 *-*-sco3.2v5*)
5638   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5639   SAVE_CFLAGS="$CFLAGS"
5640   CFLAGS="$CFLAGS -belf"
5641   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5642 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5643 if test "${lt_cv_cc_needs_belf+set}" = set; then
5644   echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646   ac_ext=c
5647 ac_cpp='$CPP $CPPFLAGS'
5648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5651
5652      cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h.  */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h.  */
5658
5659 int
5660 main ()
5661 {
5662
5663   ;
5664   return 0;
5665 }
5666 _ACEOF
5667 rm -f conftest.$ac_objext conftest$ac_exeext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5669   (eval $ac_link) 2>conftest.er1
5670   ac_status=$?
5671   grep -v '^ *+' conftest.er1 >conftest.err
5672   rm -f conftest.er1
5673   cat conftest.err >&5
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); } &&
5676          { ac_try='test -z "$ac_c_werror_flag"
5677                          || test ! -s conftest.err'
5678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679   (eval $ac_try) 2>&5
5680   ac_status=$?
5681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682   (exit $ac_status); }; } &&
5683          { ac_try='test -s conftest$ac_exeext'
5684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685   (eval $ac_try) 2>&5
5686   ac_status=$?
5687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688   (exit $ac_status); }; }; then
5689   lt_cv_cc_needs_belf=yes
5690 else
5691   echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5693
5694 lt_cv_cc_needs_belf=no
5695 fi
5696 rm -f conftest.err conftest.$ac_objext \
5697       conftest$ac_exeext conftest.$ac_ext
5698      ac_ext=c
5699 ac_cpp='$CPP $CPPFLAGS'
5700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5703
5704 fi
5705 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5706 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5707   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5708     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5709     CFLAGS="$SAVE_CFLAGS"
5710   fi
5711   ;;
5712 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5713   if test -n "$ac_tool_prefix"; then
5714   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5715 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5716 echo "$as_me:$LINENO: checking for $ac_word" >&5
5717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5718 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5719   echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721   if test -n "$DLLTOOL"; then
5722   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5723 else
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5726 do
5727   IFS=$as_save_IFS
5728   test -z "$as_dir" && as_dir=.
5729   for ac_exec_ext in '' $ac_executable_extensions; do
5730   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5733     break 2
5734   fi
5735 done
5736 done
5737
5738 fi
5739 fi
5740 DLLTOOL=$ac_cv_prog_DLLTOOL
5741 if test -n "$DLLTOOL"; then
5742   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5743 echo "${ECHO_T}$DLLTOOL" >&6
5744 else
5745   echo "$as_me:$LINENO: result: no" >&5
5746 echo "${ECHO_T}no" >&6
5747 fi
5748
5749 fi
5750 if test -z "$ac_cv_prog_DLLTOOL"; then
5751   ac_ct_DLLTOOL=$DLLTOOL
5752   # Extract the first word of "dlltool", so it can be a program name with args.
5753 set dummy dlltool; ac_word=$2
5754 echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5756 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5757   echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759   if test -n "$ac_ct_DLLTOOL"; then
5760   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765   IFS=$as_save_IFS
5766   test -z "$as_dir" && as_dir=.
5767   for ac_exec_ext in '' $ac_executable_extensions; do
5768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771     break 2
5772   fi
5773 done
5774 done
5775
5776   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5777 fi
5778 fi
5779 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5780 if test -n "$ac_ct_DLLTOOL"; then
5781   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5782 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5783 else
5784   echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6
5786 fi
5787
5788   DLLTOOL=$ac_ct_DLLTOOL
5789 else
5790   DLLTOOL="$ac_cv_prog_DLLTOOL"
5791 fi
5792
5793   if test -n "$ac_tool_prefix"; then
5794   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5795 set dummy ${ac_tool_prefix}as; ac_word=$2
5796 echo "$as_me:$LINENO: checking for $ac_word" >&5
5797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5798 if test "${ac_cv_prog_AS+set}" = set; then
5799   echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801   if test -n "$AS"; then
5802   ac_cv_prog_AS="$AS" # Let the user override the test.
5803 else
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807   IFS=$as_save_IFS
5808   test -z "$as_dir" && as_dir=.
5809   for ac_exec_ext in '' $ac_executable_extensions; do
5810   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811     ac_cv_prog_AS="${ac_tool_prefix}as"
5812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813     break 2
5814   fi
5815 done
5816 done
5817
5818 fi
5819 fi
5820 AS=$ac_cv_prog_AS
5821 if test -n "$AS"; then
5822   echo "$as_me:$LINENO: result: $AS" >&5
5823 echo "${ECHO_T}$AS" >&6
5824 else
5825   echo "$as_me:$LINENO: result: no" >&5
5826 echo "${ECHO_T}no" >&6
5827 fi
5828
5829 fi
5830 if test -z "$ac_cv_prog_AS"; then
5831   ac_ct_AS=$AS
5832   # Extract the first word of "as", so it can be a program name with args.
5833 set dummy as; ac_word=$2
5834 echo "$as_me:$LINENO: checking for $ac_word" >&5
5835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5836 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5837   echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839   if test -n "$ac_ct_AS"; then
5840   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5841 else
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5844 do
5845   IFS=$as_save_IFS
5846   test -z "$as_dir" && as_dir=.
5847   for ac_exec_ext in '' $ac_executable_extensions; do
5848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849     ac_cv_prog_ac_ct_AS="as"
5850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5851     break 2
5852   fi
5853 done
5854 done
5855
5856   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5857 fi
5858 fi
5859 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5860 if test -n "$ac_ct_AS"; then
5861   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5862 echo "${ECHO_T}$ac_ct_AS" >&6
5863 else
5864   echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6
5866 fi
5867
5868   AS=$ac_ct_AS
5869 else
5870   AS="$ac_cv_prog_AS"
5871 fi
5872
5873   if test -n "$ac_tool_prefix"; then
5874   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5875 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5876 echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5878 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5879   echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881   if test -n "$OBJDUMP"; then
5882   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887   IFS=$as_save_IFS
5888   test -z "$as_dir" && as_dir=.
5889   for ac_exec_ext in '' $ac_executable_extensions; do
5890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893     break 2
5894   fi
5895 done
5896 done
5897
5898 fi
5899 fi
5900 OBJDUMP=$ac_cv_prog_OBJDUMP
5901 if test -n "$OBJDUMP"; then
5902   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5903 echo "${ECHO_T}$OBJDUMP" >&6
5904 else
5905   echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6
5907 fi
5908
5909 fi
5910 if test -z "$ac_cv_prog_OBJDUMP"; then
5911   ac_ct_OBJDUMP=$OBJDUMP
5912   # Extract the first word of "objdump", so it can be a program name with args.
5913 set dummy objdump; ac_word=$2
5914 echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5916 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5917   echo $ECHO_N "(cached) $ECHO_C" >&6
5918 else
5919   if test -n "$ac_ct_OBJDUMP"; then
5920   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925   IFS=$as_save_IFS
5926   test -z "$as_dir" && as_dir=.
5927   for ac_exec_ext in '' $ac_executable_extensions; do
5928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931     break 2
5932   fi
5933 done
5934 done
5935
5936   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5937 fi
5938 fi
5939 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5940 if test -n "$ac_ct_OBJDUMP"; then
5941   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5942 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5943 else
5944   echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5946 fi
5947
5948   OBJDUMP=$ac_ct_OBJDUMP
5949 else
5950   OBJDUMP="$ac_cv_prog_OBJDUMP"
5951 fi
5952
5953   ;;
5954
5955 esac
5956
5957 need_locks="$enable_libtool_lock"
5958
5959
5960 ac_ext=c
5961 ac_cpp='$CPP $CPPFLAGS'
5962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5965 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5966 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5967 # On Suns, sometimes $CPP names a directory.
5968 if test -n "$CPP" && test -d "$CPP"; then
5969   CPP=
5970 fi
5971 if test -z "$CPP"; then
5972   if test "${ac_cv_prog_CPP+set}" = set; then
5973   echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975       # Double quotes because CPP needs to be expanded
5976     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5977     do
5978       ac_preproc_ok=false
5979 for ac_c_preproc_warn_flag in '' yes
5980 do
5981   # Use a header file that comes with gcc, so configuring glibc
5982   # with a fresh cross-compiler works.
5983   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5984   # <limits.h> exists even on freestanding compilers.
5985   # On the NeXT, cc -E runs the code through the compiler's parser,
5986   # not just through cpp. "Syntax error" is here to catch this case.
5987   cat >conftest.$ac_ext <<_ACEOF
5988 /* confdefs.h.  */
5989 _ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h.  */
5993 #ifdef __STDC__
5994 # include <limits.h>
5995 #else
5996 # include <assert.h>
5997 #endif
5998                      Syntax error
5999 _ACEOF
6000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6001   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6002   ac_status=$?
6003   grep -v '^ *+' conftest.er1 >conftest.err
6004   rm -f conftest.er1
6005   cat conftest.err >&5
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); } >/dev/null; then
6008   if test -s conftest.err; then
6009     ac_cpp_err=$ac_c_preproc_warn_flag
6010     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6011   else
6012     ac_cpp_err=
6013   fi
6014 else
6015   ac_cpp_err=yes
6016 fi
6017 if test -z "$ac_cpp_err"; then
6018   :
6019 else
6020   echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6022
6023   # Broken: fails on valid input.
6024 continue
6025 fi
6026 rm -f conftest.err conftest.$ac_ext
6027
6028   # OK, works on sane cases.  Now check whether non-existent headers
6029   # can be detected and how.
6030   cat >conftest.$ac_ext <<_ACEOF
6031 /* confdefs.h.  */
6032 _ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h.  */
6036 #include <ac_nonexistent.h>
6037 _ACEOF
6038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6040   ac_status=$?
6041   grep -v '^ *+' conftest.er1 >conftest.err
6042   rm -f conftest.er1
6043   cat conftest.err >&5
6044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045   (exit $ac_status); } >/dev/null; then
6046   if test -s conftest.err; then
6047     ac_cpp_err=$ac_c_preproc_warn_flag
6048     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6049   else
6050     ac_cpp_err=
6051   fi
6052 else
6053   ac_cpp_err=yes
6054 fi
6055 if test -z "$ac_cpp_err"; then
6056   # Broken: success on invalid input.
6057 continue
6058 else
6059   echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6061
6062   # Passes both tests.
6063 ac_preproc_ok=:
6064 break
6065 fi
6066 rm -f conftest.err conftest.$ac_ext
6067
6068 done
6069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6070 rm -f conftest.err conftest.$ac_ext
6071 if $ac_preproc_ok; then
6072   break
6073 fi
6074
6075     done
6076     ac_cv_prog_CPP=$CPP
6077
6078 fi
6079   CPP=$ac_cv_prog_CPP
6080 else
6081   ac_cv_prog_CPP=$CPP
6082 fi
6083 echo "$as_me:$LINENO: result: $CPP" >&5
6084 echo "${ECHO_T}$CPP" >&6
6085 ac_preproc_ok=false
6086 for ac_c_preproc_warn_flag in '' yes
6087 do
6088   # Use a header file that comes with gcc, so configuring glibc
6089   # with a fresh cross-compiler works.
6090   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6091   # <limits.h> exists even on freestanding compilers.
6092   # On the NeXT, cc -E runs the code through the compiler's parser,
6093   # not just through cpp. "Syntax error" is here to catch this case.
6094   cat >conftest.$ac_ext <<_ACEOF
6095 /* confdefs.h.  */
6096 _ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h.  */
6100 #ifdef __STDC__
6101 # include <limits.h>
6102 #else
6103 # include <assert.h>
6104 #endif
6105                      Syntax error
6106 _ACEOF
6107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6108   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6109   ac_status=$?
6110   grep -v '^ *+' conftest.er1 >conftest.err
6111   rm -f conftest.er1
6112   cat conftest.err >&5
6113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114   (exit $ac_status); } >/dev/null; then
6115   if test -s conftest.err; then
6116     ac_cpp_err=$ac_c_preproc_warn_flag
6117     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6118   else
6119     ac_cpp_err=
6120   fi
6121 else
6122   ac_cpp_err=yes
6123 fi
6124 if test -z "$ac_cpp_err"; then
6125   :
6126 else
6127   echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6129
6130   # Broken: fails on valid input.
6131 continue
6132 fi
6133 rm -f conftest.err conftest.$ac_ext
6134
6135   # OK, works on sane cases.  Now check whether non-existent headers
6136   # can be detected and how.
6137   cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h.  */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h.  */
6143 #include <ac_nonexistent.h>
6144 _ACEOF
6145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6147   ac_status=$?
6148   grep -v '^ *+' conftest.er1 >conftest.err
6149   rm -f conftest.er1
6150   cat conftest.err >&5
6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); } >/dev/null; then
6153   if test -s conftest.err; then
6154     ac_cpp_err=$ac_c_preproc_warn_flag
6155     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6156   else
6157     ac_cpp_err=
6158   fi
6159 else
6160   ac_cpp_err=yes
6161 fi
6162 if test -z "$ac_cpp_err"; then
6163   # Broken: success on invalid input.
6164 continue
6165 else
6166   echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6168
6169   # Passes both tests.
6170 ac_preproc_ok=:
6171 break
6172 fi
6173 rm -f conftest.err conftest.$ac_ext
6174
6175 done
6176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6177 rm -f conftest.err conftest.$ac_ext
6178 if $ac_preproc_ok; then
6179   :
6180 else
6181   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6182 See \`config.log' for more details." >&5
6183 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6184 See \`config.log' for more details." >&2;}
6185    { (exit 1); exit 1; }; }
6186 fi
6187
6188 ac_ext=c
6189 ac_cpp='$CPP $CPPFLAGS'
6190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6193
6194
6195 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6196 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6197 if test "${ac_cv_header_stdc+set}" = set; then
6198   echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200   cat >conftest.$ac_ext <<_ACEOF
6201 /* confdefs.h.  */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h.  */
6206 #include <stdlib.h>
6207 #include <stdarg.h>
6208 #include <string.h>
6209 #include <float.h>
6210
6211 int
6212 main ()
6213 {
6214
6215   ;
6216   return 0;
6217 }
6218 _ACEOF
6219 rm -f conftest.$ac_objext
6220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6221   (eval $ac_compile) 2>conftest.er1
6222   ac_status=$?
6223   grep -v '^ *+' conftest.er1 >conftest.err
6224   rm -f conftest.er1
6225   cat conftest.err >&5
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); } &&
6228          { ac_try='test -z "$ac_c_werror_flag"
6229                          || test ! -s conftest.err'
6230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231   (eval $ac_try) 2>&5
6232   ac_status=$?
6233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234   (exit $ac_status); }; } &&
6235          { ac_try='test -s conftest.$ac_objext'
6236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237   (eval $ac_try) 2>&5
6238   ac_status=$?
6239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240   (exit $ac_status); }; }; then
6241   ac_cv_header_stdc=yes
6242 else
6243   echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6245
6246 ac_cv_header_stdc=no
6247 fi
6248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6249
6250 if test $ac_cv_header_stdc = yes; then
6251   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6252   cat >conftest.$ac_ext <<_ACEOF
6253 /* confdefs.h.  */
6254 _ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h.  */
6258 #include <string.h>
6259
6260 _ACEOF
6261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6262   $EGREP "memchr" >/dev/null 2>&1; then
6263   :
6264 else
6265   ac_cv_header_stdc=no
6266 fi
6267 rm -f conftest*
6268
6269 fi
6270
6271 if test $ac_cv_header_stdc = yes; then
6272   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6273   cat >conftest.$ac_ext <<_ACEOF
6274 /* confdefs.h.  */
6275 _ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h.  */
6279 #include <stdlib.h>
6280
6281 _ACEOF
6282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6283   $EGREP "free" >/dev/null 2>&1; then
6284   :
6285 else
6286   ac_cv_header_stdc=no
6287 fi
6288 rm -f conftest*
6289
6290 fi
6291
6292 if test $ac_cv_header_stdc = yes; then
6293   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6294   if test "$cross_compiling" = yes; then
6295   :
6296 else
6297   cat >conftest.$ac_ext <<_ACEOF
6298 /* confdefs.h.  */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h.  */
6303 #include <ctype.h>
6304 #if ((' ' & 0x0FF) == 0x020)
6305 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6306 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6307 #else
6308 # define ISLOWER(c) \
6309                    (('a' <= (c) && (c) <= 'i') \
6310                      || ('j' <= (c) && (c) <= 'r') \
6311                      || ('s' <= (c) && (c) <= 'z'))
6312 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6313 #endif
6314
6315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6316 int
6317 main ()
6318 {
6319   int i;
6320   for (i = 0; i < 256; i++)
6321     if (XOR (islower (i), ISLOWER (i))
6322         || toupper (i) != TOUPPER (i))
6323       exit(2);
6324   exit (0);
6325 }
6326 _ACEOF
6327 rm -f conftest$ac_exeext
6328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6329   (eval $ac_link) 2>&5
6330   ac_status=$?
6331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334   (eval $ac_try) 2>&5
6335   ac_status=$?
6336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337   (exit $ac_status); }; }; then
6338   :
6339 else
6340   echo "$as_me: program exited with status $ac_status" >&5
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6343
6344 ( exit $ac_status )
6345 ac_cv_header_stdc=no
6346 fi
6347 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6348 fi
6349 fi
6350 fi
6351 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6352 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6353 if test $ac_cv_header_stdc = yes; then
6354
6355 cat >>confdefs.h <<\_ACEOF
6356 #define STDC_HEADERS 1
6357 _ACEOF
6358
6359 fi
6360
6361 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6372                   inttypes.h stdint.h unistd.h
6373 do
6374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6375 echo "$as_me:$LINENO: checking for $ac_header" >&5
6376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6378   echo $ECHO_N "(cached) $ECHO_C" >&6
6379 else
6380   cat >conftest.$ac_ext <<_ACEOF
6381 /* confdefs.h.  */
6382 _ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h.  */
6386 $ac_includes_default
6387
6388 #include <$ac_header>
6389 _ACEOF
6390 rm -f conftest.$ac_objext
6391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6392   (eval $ac_compile) 2>conftest.er1
6393   ac_status=$?
6394   grep -v '^ *+' conftest.er1 >conftest.err
6395   rm -f conftest.er1
6396   cat conftest.err >&5
6397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398   (exit $ac_status); } &&
6399          { ac_try='test -z "$ac_c_werror_flag"
6400                          || test ! -s conftest.err'
6401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402   (eval $ac_try) 2>&5
6403   ac_status=$?
6404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405   (exit $ac_status); }; } &&
6406          { ac_try='test -s conftest.$ac_objext'
6407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408   (eval $ac_try) 2>&5
6409   ac_status=$?
6410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411   (exit $ac_status); }; }; then
6412   eval "$as_ac_Header=yes"
6413 else
6414   echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6416
6417 eval "$as_ac_Header=no"
6418 fi
6419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6420 fi
6421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6424   cat >>confdefs.h <<_ACEOF
6425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6426 _ACEOF
6427
6428 fi
6429
6430 done
6431
6432
6433
6434 for ac_header in dlfcn.h
6435 do
6436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6438   echo "$as_me:$LINENO: checking for $ac_header" >&5
6439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6441   echo $ECHO_N "(cached) $ECHO_C" >&6
6442 fi
6443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6445 else
6446   # Is the header compilable?
6447 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6449 cat >conftest.$ac_ext <<_ACEOF
6450 /* confdefs.h.  */
6451 _ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h.  */
6455 $ac_includes_default
6456 #include <$ac_header>
6457 _ACEOF
6458 rm -f conftest.$ac_objext
6459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6460   (eval $ac_compile) 2>conftest.er1
6461   ac_status=$?
6462   grep -v '^ *+' conftest.er1 >conftest.err
6463   rm -f conftest.er1
6464   cat conftest.err >&5
6465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466   (exit $ac_status); } &&
6467          { ac_try='test -z "$ac_c_werror_flag"
6468                          || test ! -s conftest.err'
6469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470   (eval $ac_try) 2>&5
6471   ac_status=$?
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); }; } &&
6474          { ac_try='test -s conftest.$ac_objext'
6475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476   (eval $ac_try) 2>&5
6477   ac_status=$?
6478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479   (exit $ac_status); }; }; then
6480   ac_header_compiler=yes
6481 else
6482   echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6484
6485 ac_header_compiler=no
6486 fi
6487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6489 echo "${ECHO_T}$ac_header_compiler" >&6
6490
6491 # Is the header present?
6492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6494 cat >conftest.$ac_ext <<_ACEOF
6495 /* confdefs.h.  */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h.  */
6500 #include <$ac_header>
6501 _ACEOF
6502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6503   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6504   ac_status=$?
6505   grep -v '^ *+' conftest.er1 >conftest.err
6506   rm -f conftest.er1
6507   cat conftest.err >&5
6508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509   (exit $ac_status); } >/dev/null; then
6510   if test -s conftest.err; then
6511     ac_cpp_err=$ac_c_preproc_warn_flag
6512     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6513   else
6514     ac_cpp_err=
6515   fi
6516 else
6517   ac_cpp_err=yes
6518 fi
6519 if test -z "$ac_cpp_err"; then
6520   ac_header_preproc=yes
6521 else
6522   echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6524
6525   ac_header_preproc=no
6526 fi
6527 rm -f conftest.err conftest.$ac_ext
6528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6529 echo "${ECHO_T}$ac_header_preproc" >&6
6530
6531 # So?  What about this header?
6532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6533   yes:no: )
6534     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6538     ac_header_preproc=yes
6539     ;;
6540   no:yes:* )
6541     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6543     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6544 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6545     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6547     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6548 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6551     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6553     (
6554       cat <<\_ASBOX
6555 ## ------------------------------------------ ##
6556 ## Report this to the AC_PACKAGE_NAME lists.  ##
6557 ## ------------------------------------------ ##
6558 _ASBOX
6559     ) |
6560       sed "s/^/$as_me: WARNING:     /" >&2
6561     ;;
6562 esac
6563 echo "$as_me:$LINENO: checking for $ac_header" >&5
6564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6566   echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568   eval "$as_ac_Header=\$ac_header_preproc"
6569 fi
6570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6572
6573 fi
6574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6575   cat >>confdefs.h <<_ACEOF
6576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6577 _ACEOF
6578
6579 fi
6580
6581 done
6582
6583 ac_ext=cc
6584 ac_cpp='$CXXCPP $CPPFLAGS'
6585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6588 if test -n "$ac_tool_prefix"; then
6589   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6590   do
6591     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6593 echo "$as_me:$LINENO: checking for $ac_word" >&5
6594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6595 if test "${ac_cv_prog_CXX+set}" = set; then
6596   echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598   if test -n "$CXX"; then
6599   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6600 else
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602 for as_dir in $PATH
6603 do
6604   IFS=$as_save_IFS
6605   test -z "$as_dir" && as_dir=.
6606   for ac_exec_ext in '' $ac_executable_extensions; do
6607   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6608     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6610     break 2
6611   fi
6612 done
6613 done
6614
6615 fi
6616 fi
6617 CXX=$ac_cv_prog_CXX
6618 if test -n "$CXX"; then
6619   echo "$as_me:$LINENO: result: $CXX" >&5
6620 echo "${ECHO_T}$CXX" >&6
6621 else
6622   echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6
6624 fi
6625
6626     test -n "$CXX" && break
6627   done
6628 fi
6629 if test -z "$CXX"; then
6630   ac_ct_CXX=$CXX
6631   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6632 do
6633   # Extract the first word of "$ac_prog", so it can be a program name with args.
6634 set dummy $ac_prog; ac_word=$2
6635 echo "$as_me:$LINENO: checking for $ac_word" >&5
6636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6637 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6638   echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640   if test -n "$ac_ct_CXX"; then
6641   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646   IFS=$as_save_IFS
6647   test -z "$as_dir" && as_dir=.
6648   for ac_exec_ext in '' $ac_executable_extensions; do
6649   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650     ac_cv_prog_ac_ct_CXX="$ac_prog"
6651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652     break 2
6653   fi
6654 done
6655 done
6656
6657 fi
6658 fi
6659 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6660 if test -n "$ac_ct_CXX"; then
6661   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6662 echo "${ECHO_T}$ac_ct_CXX" >&6
6663 else
6664   echo "$as_me:$LINENO: result: no" >&5
6665 echo "${ECHO_T}no" >&6
6666 fi
6667
6668   test -n "$ac_ct_CXX" && break
6669 done
6670 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6671
6672   CXX=$ac_ct_CXX
6673 fi
6674
6675
6676 # Provide some information about the compiler.
6677 echo "$as_me:$LINENO:" \
6678      "checking for C++ compiler version" >&5
6679 ac_compiler=`set X $ac_compile; echo $2`
6680 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6681   (eval $ac_compiler --version </dev/null >&5) 2>&5
6682   ac_status=$?
6683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684   (exit $ac_status); }
6685 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6686   (eval $ac_compiler -v </dev/null >&5) 2>&5
6687   ac_status=$?
6688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689   (exit $ac_status); }
6690 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6691   (eval $ac_compiler -V </dev/null >&5) 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); }
6695
6696 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6697 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6698 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6699   echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701   cat >conftest.$ac_ext <<_ACEOF
6702 /* confdefs.h.  */
6703 _ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h.  */
6707
6708 int
6709 main ()
6710 {
6711 #ifndef __GNUC__
6712        choke me
6713 #endif
6714
6715   ;
6716   return 0;
6717 }
6718 _ACEOF
6719 rm -f conftest.$ac_objext
6720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6721   (eval $ac_compile) 2>conftest.er1
6722   ac_status=$?
6723   grep -v '^ *+' conftest.er1 >conftest.err
6724   rm -f conftest.er1
6725   cat conftest.err >&5
6726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727   (exit $ac_status); } &&
6728          { ac_try='test -z "$ac_cxx_werror_flag"
6729                          || test ! -s conftest.err'
6730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731   (eval $ac_try) 2>&5
6732   ac_status=$?
6733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734   (exit $ac_status); }; } &&
6735          { ac_try='test -s conftest.$ac_objext'
6736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737   (eval $ac_try) 2>&5
6738   ac_status=$?
6739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740   (exit $ac_status); }; }; then
6741   ac_compiler_gnu=yes
6742 else
6743   echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6745
6746 ac_compiler_gnu=no
6747 fi
6748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6749 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6750
6751 fi
6752 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6753 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6754 GXX=`test $ac_compiler_gnu = yes && echo yes`
6755 ac_test_CXXFLAGS=${CXXFLAGS+set}
6756 ac_save_CXXFLAGS=$CXXFLAGS
6757 CXXFLAGS="-g"
6758 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6759 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6760 if test "${ac_cv_prog_cxx_g+set}" = set; then
6761   echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763   cat >conftest.$ac_ext <<_ACEOF
6764 /* confdefs.h.  */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h.  */
6769
6770 int
6771 main ()
6772 {
6773
6774   ;
6775   return 0;
6776 }
6777 _ACEOF
6778 rm -f conftest.$ac_objext
6779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6780   (eval $ac_compile) 2>conftest.er1
6781   ac_status=$?
6782   grep -v '^ *+' conftest.er1 >conftest.err
6783   rm -f conftest.er1
6784   cat conftest.err >&5
6785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786   (exit $ac_status); } &&
6787          { ac_try='test -z "$ac_cxx_werror_flag"
6788                          || test ! -s conftest.err'
6789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790   (eval $ac_try) 2>&5
6791   ac_status=$?
6792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793   (exit $ac_status); }; } &&
6794          { ac_try='test -s conftest.$ac_objext'
6795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796   (eval $ac_try) 2>&5
6797   ac_status=$?
6798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799   (exit $ac_status); }; }; then
6800   ac_cv_prog_cxx_g=yes
6801 else
6802   echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6804
6805 ac_cv_prog_cxx_g=no
6806 fi
6807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6808 fi
6809 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6810 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6811 if test "$ac_test_CXXFLAGS" = set; then
6812   CXXFLAGS=$ac_save_CXXFLAGS
6813 elif test $ac_cv_prog_cxx_g = yes; then
6814   if test "$GXX" = yes; then
6815     CXXFLAGS="-g -O2"
6816   else
6817     CXXFLAGS="-g"
6818   fi
6819 else
6820   if test "$GXX" = yes; then
6821     CXXFLAGS="-O2"
6822   else
6823     CXXFLAGS=
6824   fi
6825 fi
6826 for ac_declaration in \
6827    '' \
6828    'extern "C" void std::exit (int) throw (); using std::exit;' \
6829    'extern "C" void std::exit (int); using std::exit;' \
6830    'extern "C" void exit (int) throw ();' \
6831    'extern "C" void exit (int);' \
6832    'void exit (int);'
6833 do
6834   cat >conftest.$ac_ext <<_ACEOF
6835 /* confdefs.h.  */
6836 _ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h.  */
6840 $ac_declaration
6841 #include <stdlib.h>
6842 int
6843 main ()
6844 {
6845 exit (42);
6846   ;
6847   return 0;
6848 }
6849 _ACEOF
6850 rm -f conftest.$ac_objext
6851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6852   (eval $ac_compile) 2>conftest.er1
6853   ac_status=$?
6854   grep -v '^ *+' conftest.er1 >conftest.err
6855   rm -f conftest.er1
6856   cat conftest.err >&5
6857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858   (exit $ac_status); } &&
6859          { ac_try='test -z "$ac_cxx_werror_flag"
6860                          || test ! -s conftest.err'
6861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862   (eval $ac_try) 2>&5
6863   ac_status=$?
6864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865   (exit $ac_status); }; } &&
6866          { ac_try='test -s conftest.$ac_objext'
6867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868   (eval $ac_try) 2>&5
6869   ac_status=$?
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); }; }; then
6872   :
6873 else
6874   echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6876
6877 continue
6878 fi
6879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6880   cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h.  */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h.  */
6886 $ac_declaration
6887 int
6888 main ()
6889 {
6890 exit (42);
6891   ;
6892   return 0;
6893 }
6894 _ACEOF
6895 rm -f conftest.$ac_objext
6896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6897   (eval $ac_compile) 2>conftest.er1
6898   ac_status=$?
6899   grep -v '^ *+' conftest.er1 >conftest.err
6900   rm -f conftest.er1
6901   cat conftest.err >&5
6902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903   (exit $ac_status); } &&
6904          { ac_try='test -z "$ac_cxx_werror_flag"
6905                          || test ! -s conftest.err'
6906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907   (eval $ac_try) 2>&5
6908   ac_status=$?
6909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910   (exit $ac_status); }; } &&
6911          { ac_try='test -s conftest.$ac_objext'
6912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913   (eval $ac_try) 2>&5
6914   ac_status=$?
6915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916   (exit $ac_status); }; }; then
6917   break
6918 else
6919   echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6921
6922 fi
6923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6924 done
6925 rm -f conftest*
6926 if test -n "$ac_declaration"; then
6927   echo '#ifdef __cplusplus' >>confdefs.h
6928   echo $ac_declaration      >>confdefs.h
6929   echo '#endif'             >>confdefs.h
6930 fi
6931
6932 ac_ext=cc
6933 ac_cpp='$CXXCPP $CPPFLAGS'
6934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6937
6938 depcc="$CXX"  am_compiler_list=
6939
6940 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6941 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6942 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6943   echo $ECHO_N "(cached) $ECHO_C" >&6
6944 else
6945   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6946   # We make a subdir and do the tests there.  Otherwise we can end up
6947   # making bogus files that we don't know about and never remove.  For
6948   # instance it was reported that on HP-UX the gcc test will end up
6949   # making a dummy file named `D' -- because `-MD' means `put the output
6950   # in D'.
6951   mkdir conftest.dir
6952   # Copy depcomp to subdir because otherwise we won't find it if we're
6953   # using a relative directory.
6954   cp "$am_depcomp" conftest.dir
6955   cd conftest.dir
6956   # We will build objects and dependencies in a subdirectory because
6957   # it helps to detect inapplicable dependency modes.  For instance
6958   # both Tru64's cc and ICC support -MD to output dependencies as a
6959   # side effect of compilation, but ICC will put the dependencies in
6960   # the current directory while Tru64 will put them in the object
6961   # directory.
6962   mkdir sub
6963
6964   am_cv_CXX_dependencies_compiler_type=none
6965   if test "$am_compiler_list" = ""; then
6966      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6967   fi
6968   for depmode in $am_compiler_list; do
6969     # Setup a source with many dependencies, because some compilers
6970     # like to wrap large dependency lists on column 80 (with \), and
6971     # we should not choose a depcomp mode which is confused by this.
6972     #
6973     # We need to recreate these files for each test, as the compiler may
6974     # overwrite some of them when testing with obscure command lines.
6975     # This happens at least with the AIX C compiler.
6976     : > sub/conftest.c
6977     for i in 1 2 3 4 5 6; do
6978       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6979       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6980       # Solaris 8's {/usr,}/bin/sh.
6981       touch sub/conftst$i.h
6982     done
6983     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6984
6985     case $depmode in
6986     nosideeffect)
6987       # after this tag, mechanisms are not by side-effect, so they'll
6988       # only be used when explicitly requested
6989       if test "x$enable_dependency_tracking" = xyes; then
6990         continue
6991       else
6992         break
6993       fi
6994       ;;
6995     none) break ;;
6996     esac
6997     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6998     # mode.  It turns out that the SunPro C++ compiler does not properly
6999     # handle `-M -o', and we need to detect this.
7000     if depmode=$depmode \
7001        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7002        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7003        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7004          >/dev/null 2>conftest.err &&
7005        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7006        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7007        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7008       # icc doesn't choke on unknown options, it will just issue warnings
7009       # or remarks (even with -Werror).  So we grep stderr for any message
7010       # that says an option was ignored or not supported.
7011       # When given -MP, icc 7.0 and 7.1 complain thusly:
7012       #   icc: Command line warning: ignoring option '-M'; no argument required
7013       # The diagnosis changed in icc 8.0:
7014       #   icc: Command line remark: option '-MP' not supported
7015       if (grep 'ignoring option' conftest.err ||
7016           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7017         am_cv_CXX_dependencies_compiler_type=$depmode
7018         break
7019       fi
7020     fi
7021   done
7022
7023   cd ..
7024   rm -rf conftest.dir
7025 else
7026   am_cv_CXX_dependencies_compiler_type=none
7027 fi
7028
7029 fi
7030 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7031 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7032 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7033
7034
7035
7036 if
7037   test "x$enable_dependency_tracking" != xno \
7038   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7039   am__fastdepCXX_TRUE=
7040   am__fastdepCXX_FALSE='#'
7041 else
7042   am__fastdepCXX_TRUE='#'
7043   am__fastdepCXX_FALSE=
7044 fi
7045
7046
7047
7048
7049 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7050     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7051     (test "X$CXX" != "Xg++"))) ; then
7052   ac_ext=cc
7053 ac_cpp='$CXXCPP $CPPFLAGS'
7054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7057 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7058 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7059 if test -z "$CXXCPP"; then
7060   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7061   echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063       # Double quotes because CXXCPP needs to be expanded
7064     for CXXCPP in "$CXX -E" "/lib/cpp"
7065     do
7066       ac_preproc_ok=false
7067 for ac_cxx_preproc_warn_flag in '' yes
7068 do
7069   # Use a header file that comes with gcc, so configuring glibc
7070   # with a fresh cross-compiler works.
7071   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7072   # <limits.h> exists even on freestanding compilers.
7073   # On the NeXT, cc -E runs the code through the compiler's parser,
7074   # not just through cpp. "Syntax error" is here to catch this case.
7075   cat >conftest.$ac_ext <<_ACEOF
7076 /* confdefs.h.  */
7077 _ACEOF
7078 cat confdefs.h >>conftest.$ac_ext
7079 cat >>conftest.$ac_ext <<_ACEOF
7080 /* end confdefs.h.  */
7081 #ifdef __STDC__
7082 # include <limits.h>
7083 #else
7084 # include <assert.h>
7085 #endif
7086                      Syntax error
7087 _ACEOF
7088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7089   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7090   ac_status=$?
7091   grep -v '^ *+' conftest.er1 >conftest.err
7092   rm -f conftest.er1
7093   cat conftest.err >&5
7094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095   (exit $ac_status); } >/dev/null; then
7096   if test -s conftest.err; then
7097     ac_cpp_err=$ac_cxx_preproc_warn_flag
7098     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7099   else
7100     ac_cpp_err=
7101   fi
7102 else
7103   ac_cpp_err=yes
7104 fi
7105 if test -z "$ac_cpp_err"; then
7106   :
7107 else
7108   echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7110
7111   # Broken: fails on valid input.
7112 continue
7113 fi
7114 rm -f conftest.err conftest.$ac_ext
7115
7116   # OK, works on sane cases.  Now check whether non-existent headers
7117   # can be detected and how.
7118   cat >conftest.$ac_ext <<_ACEOF
7119 /* confdefs.h.  */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h.  */
7124 #include <ac_nonexistent.h>
7125 _ACEOF
7126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7127   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7128   ac_status=$?
7129   grep -v '^ *+' conftest.er1 >conftest.err
7130   rm -f conftest.er1
7131   cat conftest.err >&5
7132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); } >/dev/null; then
7134   if test -s conftest.err; then
7135     ac_cpp_err=$ac_cxx_preproc_warn_flag
7136     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7137   else
7138     ac_cpp_err=
7139   fi
7140 else
7141   ac_cpp_err=yes
7142 fi
7143 if test -z "$ac_cpp_err"; then
7144   # Broken: success on invalid input.
7145 continue
7146 else
7147   echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7149
7150   # Passes both tests.
7151 ac_preproc_ok=:
7152 break
7153 fi
7154 rm -f conftest.err conftest.$ac_ext
7155
7156 done
7157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7158 rm -f conftest.err conftest.$ac_ext
7159 if $ac_preproc_ok; then
7160   break
7161 fi
7162
7163     done
7164     ac_cv_prog_CXXCPP=$CXXCPP
7165
7166 fi
7167   CXXCPP=$ac_cv_prog_CXXCPP
7168 else
7169   ac_cv_prog_CXXCPP=$CXXCPP
7170 fi
7171 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7172 echo "${ECHO_T}$CXXCPP" >&6
7173 ac_preproc_ok=false
7174 for ac_cxx_preproc_warn_flag in '' yes
7175 do
7176   # Use a header file that comes with gcc, so configuring glibc
7177   # with a fresh cross-compiler works.
7178   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7179   # <limits.h> exists even on freestanding compilers.
7180   # On the NeXT, cc -E runs the code through the compiler's parser,
7181   # not just through cpp. "Syntax error" is here to catch this case.
7182   cat >conftest.$ac_ext <<_ACEOF
7183 /* confdefs.h.  */
7184 _ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h.  */
7188 #ifdef __STDC__
7189 # include <limits.h>
7190 #else
7191 # include <assert.h>
7192 #endif
7193                      Syntax error
7194 _ACEOF
7195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7196   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7197   ac_status=$?
7198   grep -v '^ *+' conftest.er1 >conftest.err
7199   rm -f conftest.er1
7200   cat conftest.err >&5
7201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202   (exit $ac_status); } >/dev/null; then
7203   if test -s conftest.err; then
7204     ac_cpp_err=$ac_cxx_preproc_warn_flag
7205     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7206   else
7207     ac_cpp_err=
7208   fi
7209 else
7210   ac_cpp_err=yes
7211 fi
7212 if test -z "$ac_cpp_err"; then
7213   :
7214 else
7215   echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7217
7218   # Broken: fails on valid input.
7219 continue
7220 fi
7221 rm -f conftest.err conftest.$ac_ext
7222
7223   # OK, works on sane cases.  Now check whether non-existent headers
7224   # can be detected and how.
7225   cat >conftest.$ac_ext <<_ACEOF
7226 /* confdefs.h.  */
7227 _ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h.  */
7231 #include <ac_nonexistent.h>
7232 _ACEOF
7233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7234   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7235   ac_status=$?
7236   grep -v '^ *+' conftest.er1 >conftest.err
7237   rm -f conftest.er1
7238   cat conftest.err >&5
7239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240   (exit $ac_status); } >/dev/null; then
7241   if test -s conftest.err; then
7242     ac_cpp_err=$ac_cxx_preproc_warn_flag
7243     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7244   else
7245     ac_cpp_err=
7246   fi
7247 else
7248   ac_cpp_err=yes
7249 fi
7250 if test -z "$ac_cpp_err"; then
7251   # Broken: success on invalid input.
7252 continue
7253 else
7254   echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7256
7257   # Passes both tests.
7258 ac_preproc_ok=:
7259 break
7260 fi
7261 rm -f conftest.err conftest.$ac_ext
7262
7263 done
7264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7265 rm -f conftest.err conftest.$ac_ext
7266 if $ac_preproc_ok; then
7267   :
7268 else
7269   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7270 See \`config.log' for more details." >&5
7271 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7272 See \`config.log' for more details." >&2;}
7273    { (exit 1); exit 1; }; }
7274 fi
7275
7276 ac_ext=cc
7277 ac_cpp='$CXXCPP $CPPFLAGS'
7278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7281
7282 fi
7283
7284
7285 ac_ext=f
7286 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7287 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7288 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7289 if test -n "$ac_tool_prefix"; then
7290   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7291   do
7292     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7293 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7294 echo "$as_me:$LINENO: checking for $ac_word" >&5
7295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7296 if test "${ac_cv_prog_F77+set}" = set; then
7297   echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299   if test -n "$F77"; then
7300   ac_cv_prog_F77="$F77" # Let the user override the test.
7301 else
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 for as_dir in $PATH
7304 do
7305   IFS=$as_save_IFS
7306   test -z "$as_dir" && as_dir=.
7307   for ac_exec_ext in '' $ac_executable_extensions; do
7308   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7309     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7311     break 2
7312   fi
7313 done
7314 done
7315
7316 fi
7317 fi
7318 F77=$ac_cv_prog_F77
7319 if test -n "$F77"; then
7320   echo "$as_me:$LINENO: result: $F77" >&5
7321 echo "${ECHO_T}$F77" >&6
7322 else
7323   echo "$as_me:$LINENO: result: no" >&5
7324 echo "${ECHO_T}no" >&6
7325 fi
7326
7327     test -n "$F77" && break
7328   done
7329 fi
7330 if test -z "$F77"; then
7331   ac_ct_F77=$F77
7332   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7333 do
7334   # Extract the first word of "$ac_prog", so it can be a program name with args.
7335 set dummy $ac_prog; ac_word=$2
7336 echo "$as_me:$LINENO: checking for $ac_word" >&5
7337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7338 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7339   echo $ECHO_N "(cached) $ECHO_C" >&6
7340 else
7341   if test -n "$ac_ct_F77"; then
7342   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347   IFS=$as_save_IFS
7348   test -z "$as_dir" && as_dir=.
7349   for ac_exec_ext in '' $ac_executable_extensions; do
7350   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351     ac_cv_prog_ac_ct_F77="$ac_prog"
7352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353     break 2
7354   fi
7355 done
7356 done
7357
7358 fi
7359 fi
7360 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7361 if test -n "$ac_ct_F77"; then
7362   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7363 echo "${ECHO_T}$ac_ct_F77" >&6
7364 else
7365   echo "$as_me:$LINENO: result: no" >&5
7366 echo "${ECHO_T}no" >&6
7367 fi
7368
7369   test -n "$ac_ct_F77" && break
7370 done
7371
7372   F77=$ac_ct_F77
7373 fi
7374
7375
7376 # Provide some information about the compiler.
7377 echo "$as_me:7377:" \
7378      "checking for Fortran 77 compiler version" >&5
7379 ac_compiler=`set X $ac_compile; echo $2`
7380 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7381   (eval $ac_compiler --version </dev/null >&5) 2>&5
7382   ac_status=$?
7383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384   (exit $ac_status); }
7385 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7386   (eval $ac_compiler -v </dev/null >&5) 2>&5
7387   ac_status=$?
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); }
7390 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7391   (eval $ac_compiler -V </dev/null >&5) 2>&5
7392   ac_status=$?
7393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394   (exit $ac_status); }
7395 rm -f a.out
7396
7397 # If we don't use `.F' as extension, the preprocessor is not run on the
7398 # input file.  (Note that this only needs to work for GNU compilers.)
7399 ac_save_ext=$ac_ext
7400 ac_ext=F
7401 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7402 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7403 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7404   echo $ECHO_N "(cached) $ECHO_C" >&6
7405 else
7406   cat >conftest.$ac_ext <<_ACEOF
7407       program main
7408 #ifndef __GNUC__
7409        choke me
7410 #endif
7411
7412       end
7413 _ACEOF
7414 rm -f conftest.$ac_objext
7415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416   (eval $ac_compile) 2>conftest.er1
7417   ac_status=$?
7418   grep -v '^ *+' conftest.er1 >conftest.err
7419   rm -f conftest.er1
7420   cat conftest.err >&5
7421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422   (exit $ac_status); } &&
7423          { ac_try='test -z "$ac_f77_werror_flag"
7424                          || test ! -s conftest.err'
7425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426   (eval $ac_try) 2>&5
7427   ac_status=$?
7428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429   (exit $ac_status); }; } &&
7430          { ac_try='test -s conftest.$ac_objext'
7431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432   (eval $ac_try) 2>&5
7433   ac_status=$?
7434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435   (exit $ac_status); }; }; then
7436   ac_compiler_gnu=yes
7437 else
7438   echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7440
7441 ac_compiler_gnu=no
7442 fi
7443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7444 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7445
7446 fi
7447 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7448 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7449 ac_ext=$ac_save_ext
7450 ac_test_FFLAGS=${FFLAGS+set}
7451 ac_save_FFLAGS=$FFLAGS
7452 FFLAGS=
7453 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7454 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7455 if test "${ac_cv_prog_f77_g+set}" = set; then
7456   echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458   FFLAGS=-g
7459 cat >conftest.$ac_ext <<_ACEOF
7460       program main
7461
7462       end
7463 _ACEOF
7464 rm -f conftest.$ac_objext
7465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7466   (eval $ac_compile) 2>conftest.er1
7467   ac_status=$?
7468   grep -v '^ *+' conftest.er1 >conftest.err
7469   rm -f conftest.er1
7470   cat conftest.err >&5
7471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472   (exit $ac_status); } &&
7473          { ac_try='test -z "$ac_f77_werror_flag"
7474                          || test ! -s conftest.err'
7475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476   (eval $ac_try) 2>&5
7477   ac_status=$?
7478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479   (exit $ac_status); }; } &&
7480          { ac_try='test -s conftest.$ac_objext'
7481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482   (eval $ac_try) 2>&5
7483   ac_status=$?
7484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485   (exit $ac_status); }; }; then
7486   ac_cv_prog_f77_g=yes
7487 else
7488   echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7490
7491 ac_cv_prog_f77_g=no
7492 fi
7493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7494
7495 fi
7496 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7497 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7498 if test "$ac_test_FFLAGS" = set; then
7499   FFLAGS=$ac_save_FFLAGS
7500 elif test $ac_cv_prog_f77_g = yes; then
7501   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7502     FFLAGS="-g -O2"
7503   else
7504     FFLAGS="-g"
7505   fi
7506 else
7507   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7508     FFLAGS="-O2"
7509   else
7510     FFLAGS=
7511   fi
7512 fi
7513
7514 G77=`test $ac_compiler_gnu = yes && echo yes`
7515 ac_ext=c
7516 ac_cpp='$CPP $CPPFLAGS'
7517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7520
7521
7522
7523 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7524
7525 # find the maximum length of command line arguments
7526 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7527 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7528 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7529   echo $ECHO_N "(cached) $ECHO_C" >&6
7530 else
7531     i=0
7532   teststring="ABCD"
7533
7534   case $build_os in
7535   msdosdjgpp*)
7536     # On DJGPP, this test can blow up pretty badly due to problems in libc
7537     # (any single argument exceeding 2000 bytes causes a buffer overrun
7538     # during glob expansion).  Even if it were fixed, the result of this
7539     # check would be larger than it should be.
7540     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7541     ;;
7542
7543   gnu*)
7544     # Under GNU Hurd, this test is not required because there is
7545     # no limit to the length of command line arguments.
7546     # Libtool will interpret -1 as no limit whatsoever
7547     lt_cv_sys_max_cmd_len=-1;
7548     ;;
7549
7550   cygwin* | mingw*)
7551     # On Win9x/ME, this test blows up -- it succeeds, but takes
7552     # about 5 minutes as the teststring grows exponentially.
7553     # Worse, since 9x/ME are not pre-emptively multitasking,
7554     # you end up with a "frozen" computer, even though with patience
7555     # the test eventually succeeds (with a max line length of 256k).
7556     # Instead, let's just punt: use the minimum linelength reported by
7557     # all of the supported platforms: 8192 (on NT/2K/XP).
7558     lt_cv_sys_max_cmd_len=8192;
7559     ;;
7560
7561   amigaos*)
7562     # On AmigaOS with pdksh, this test takes hours, literally.
7563     # So we just punt and use a minimum line length of 8192.
7564     lt_cv_sys_max_cmd_len=8192;
7565     ;;
7566
7567   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7568     # This has been around since 386BSD, at least.  Likely further.
7569     if test -x /sbin/sysctl; then
7570       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7571     elif test -x /usr/sbin/sysctl; then
7572       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7573     else
7574       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7575     fi
7576     # And add a safety zone
7577     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7578     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7579     ;;
7580   osf*)
7581     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7582     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7583     # nice to cause kernel panics so lets avoid the loop below.
7584     # First set a reasonable default.
7585     lt_cv_sys_max_cmd_len=16384
7586     #
7587     if test -x /sbin/sysconfig; then
7588       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7589         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7590       esac
7591     fi
7592     ;;
7593   *)
7594     # If test is not a shell built-in, we'll probably end up computing a
7595     # maximum length that is only half of the actual maximum length, but
7596     # we can't tell.
7597     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7598     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7599                = "XX$teststring") >/dev/null 2>&1 &&
7600             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7601             lt_cv_sys_max_cmd_len=$new_result &&
7602             test $i != 17 # 1/2 MB should be enough
7603     do
7604       i=`expr $i + 1`
7605       teststring=$teststring$teststring
7606     done
7607     teststring=
7608     # Add a significant safety factor because C++ compilers can tack on massive
7609     # amounts of additional arguments before passing them to the linker.
7610     # It appears as though 1/2 is a usable value.
7611     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7612     ;;
7613   esac
7614
7615 fi
7616
7617 if test -n $lt_cv_sys_max_cmd_len ; then
7618   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7619 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7620 else
7621   echo "$as_me:$LINENO: result: none" >&5
7622 echo "${ECHO_T}none" >&6
7623 fi
7624
7625
7626
7627
7628 # Check for command to grab the raw symbol name followed by C symbol from nm.
7629 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7630 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7631 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7632   echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634
7635 # These are sane defaults that work on at least a few old systems.
7636 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7637
7638 # Character class describing NM global symbol codes.
7639 symcode='[BCDEGRST]'
7640
7641 # Regexp to match symbols that can be accessed directly from C.
7642 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7643
7644 # Transform an extracted symbol line into a proper C declaration
7645 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7646
7647 # Transform an extracted symbol line into symbol name and symbol address
7648 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'"
7649
7650 # Define system-specific variables.
7651 case $host_os in
7652 aix*)
7653   symcode='[BCDT]'
7654   ;;
7655 cygwin* | mingw* | pw32*)
7656   symcode='[ABCDGISTW]'
7657   ;;
7658 hpux*) # Its linker distinguishes data from code symbols
7659   if test "$host_cpu" = ia64; then
7660     symcode='[ABCDEGRST]'
7661   fi
7662   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7663   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'"
7664   ;;
7665 linux*)
7666   if test "$host_cpu" = ia64; then
7667     symcode='[ABCDGIRSTW]'
7668     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7669     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'"
7670   fi
7671   ;;
7672 irix* | nonstopux*)
7673   symcode='[BCDEGRST]'
7674   ;;
7675 osf*)
7676   symcode='[BCDEGQRST]'
7677   ;;
7678 solaris* | sysv5*)
7679   symcode='[BDRT]'
7680   ;;
7681 sysv4)
7682   symcode='[DFNSTU]'
7683   ;;
7684 esac
7685
7686 # Handle CRLF in mingw tool chain
7687 opt_cr=
7688 case $build_os in
7689 mingw*)
7690   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7691   ;;
7692 esac
7693
7694 # If we're using GNU nm, then use its standard symbol codes.
7695 case `$NM -V 2>&1` in
7696 *GNU* | *'with BFD'*)
7697   symcode='[ABCDGIRSTW]' ;;
7698 esac
7699
7700 # Try without a prefix undercore, then with it.
7701 for ac_symprfx in "" "_"; do
7702
7703   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7704   symxfrm="\\1 $ac_symprfx\\2 \\2"
7705
7706   # Write the raw and C identifiers.
7707   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7708
7709   # Check to see that the pipe works correctly.
7710   pipe_works=no
7711
7712   rm -f conftest*
7713   cat > conftest.$ac_ext <<EOF
7714 #ifdef __cplusplus
7715 extern "C" {
7716 #endif
7717 char nm_test_var;
7718 void nm_test_func(){}
7719 #ifdef __cplusplus
7720 }
7721 #endif
7722 int main(){nm_test_var='a';nm_test_func();return(0);}
7723 EOF
7724
7725   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7726   (eval $ac_compile) 2>&5
7727   ac_status=$?
7728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729   (exit $ac_status); }; then
7730     # Now try to grab the symbols.
7731     nlist=conftest.nm
7732     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7733   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7734   ac_status=$?
7735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736   (exit $ac_status); } && test -s "$nlist"; then
7737       # Try sorting and uniquifying the output.
7738       if sort "$nlist" | uniq > "$nlist"T; then
7739         mv -f "$nlist"T "$nlist"
7740       else
7741         rm -f "$nlist"T
7742       fi
7743
7744       # Make sure that we snagged all the symbols we need.
7745       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7746         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7747           cat <<EOF > conftest.$ac_ext
7748 #ifdef __cplusplus
7749 extern "C" {
7750 #endif
7751
7752 EOF
7753           # Now generate the symbol file.
7754           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7755
7756           cat <<EOF >> conftest.$ac_ext
7757 #if defined (__STDC__) && __STDC__
7758 # define lt_ptr_t void *
7759 #else
7760 # define lt_ptr_t char *
7761 # define const
7762 #endif
7763
7764 /* The mapping between symbol names and symbols. */
7765 const struct {
7766   const char *name;
7767   lt_ptr_t address;
7768 }
7769 lt_preloaded_symbols[] =
7770 {
7771 EOF
7772           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7773           cat <<\EOF >> conftest.$ac_ext
7774   {0, (lt_ptr_t) 0}
7775 };
7776
7777 #ifdef __cplusplus
7778 }
7779 #endif
7780 EOF
7781           # Now try linking the two files.
7782           mv conftest.$ac_objext conftstm.$ac_objext
7783           lt_save_LIBS="$LIBS"
7784           lt_save_CFLAGS="$CFLAGS"
7785           LIBS="conftstm.$ac_objext"
7786           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7787           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7788   (eval $ac_link) 2>&5
7789   ac_status=$?
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7792             pipe_works=yes
7793           fi
7794           LIBS="$lt_save_LIBS"
7795           CFLAGS="$lt_save_CFLAGS"
7796         else
7797           echo "cannot find nm_test_func in $nlist" >&5
7798         fi
7799       else
7800         echo "cannot find nm_test_var in $nlist" >&5
7801       fi
7802     else
7803       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7804     fi
7805   else
7806     echo "$progname: failed program was:" >&5
7807     cat conftest.$ac_ext >&5
7808   fi
7809   rm -f conftest* conftst*
7810
7811   # Do not use the global_symbol_pipe unless it works.
7812   if test "$pipe_works" = yes; then
7813     break
7814   else
7815     lt_cv_sys_global_symbol_pipe=
7816   fi
7817 done
7818
7819 fi
7820
7821 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7822   lt_cv_sys_global_symbol_to_cdecl=
7823 fi
7824 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7825   echo "$as_me:$LINENO: result: failed" >&5
7826 echo "${ECHO_T}failed" >&6
7827 else
7828   echo "$as_me:$LINENO: result: ok" >&5
7829 echo "${ECHO_T}ok" >&6
7830 fi
7831
7832 echo "$as_me:$LINENO: checking for objdir" >&5
7833 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7834 if test "${lt_cv_objdir+set}" = set; then
7835   echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837   rm -f .libs 2>/dev/null
7838 mkdir .libs 2>/dev/null
7839 if test -d .libs; then
7840   lt_cv_objdir=.libs
7841 else
7842   # MS-DOS does not allow filenames that begin with a dot.
7843   lt_cv_objdir=_libs
7844 fi
7845 rmdir .libs 2>/dev/null
7846 fi
7847 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7848 echo "${ECHO_T}$lt_cv_objdir" >&6
7849 objdir=$lt_cv_objdir
7850
7851
7852
7853
7854
7855 case $host_os in
7856 aix3*)
7857   # AIX sometimes has problems with the GCC collect2 program.  For some
7858   # reason, if we set the COLLECT_NAMES environment variable, the problems
7859   # vanish in a puff of smoke.
7860   if test "X${COLLECT_NAMES+set}" != Xset; then
7861     COLLECT_NAMES=
7862     export COLLECT_NAMES
7863   fi
7864   ;;
7865 esac
7866
7867 # Sed substitution that helps us do robust quoting.  It backslashifies
7868 # metacharacters that are still active within double-quoted strings.
7869 Xsed='sed -e 1s/^X//'
7870 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7871
7872 # Same as above, but do not quote variable references.
7873 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7874
7875 # Sed substitution to delay expansion of an escaped shell variable in a
7876 # double_quote_subst'ed string.
7877 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7878
7879 # Sed substitution to avoid accidental globbing in evaled expressions
7880 no_glob_subst='s/\*/\\\*/g'
7881
7882 # Constants:
7883 rm="rm -f"
7884
7885 # Global variables:
7886 default_ofile=libtool
7887 can_build_shared=yes
7888
7889 # All known linkers require a `.a' archive for static linking (except M$VC,
7890 # which needs '.lib').
7891 libext=a
7892 ltmain="$ac_aux_dir/ltmain.sh"
7893 ofile="$default_ofile"
7894 with_gnu_ld="$lt_cv_prog_gnu_ld"
7895
7896 if test -n "$ac_tool_prefix"; then
7897   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7898 set dummy ${ac_tool_prefix}ar; ac_word=$2
7899 echo "$as_me:$LINENO: checking for $ac_word" >&5
7900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7901 if test "${ac_cv_prog_AR+set}" = set; then
7902   echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904   if test -n "$AR"; then
7905   ac_cv_prog_AR="$AR" # Let the user override the test.
7906 else
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7909 do
7910   IFS=$as_save_IFS
7911   test -z "$as_dir" && as_dir=.
7912   for ac_exec_ext in '' $ac_executable_extensions; do
7913   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7914     ac_cv_prog_AR="${ac_tool_prefix}ar"
7915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7916     break 2
7917   fi
7918 done
7919 done
7920
7921 fi
7922 fi
7923 AR=$ac_cv_prog_AR
7924 if test -n "$AR"; then
7925   echo "$as_me:$LINENO: result: $AR" >&5
7926 echo "${ECHO_T}$AR" >&6
7927 else
7928   echo "$as_me:$LINENO: result: no" >&5
7929 echo "${ECHO_T}no" >&6
7930 fi
7931
7932 fi
7933 if test -z "$ac_cv_prog_AR"; then
7934   ac_ct_AR=$AR
7935   # Extract the first word of "ar", so it can be a program name with args.
7936 set dummy ar; ac_word=$2
7937 echo "$as_me:$LINENO: checking for $ac_word" >&5
7938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7939 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7940   echo $ECHO_N "(cached) $ECHO_C" >&6
7941 else
7942   if test -n "$ac_ct_AR"; then
7943   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7944 else
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH
7947 do
7948   IFS=$as_save_IFS
7949   test -z "$as_dir" && as_dir=.
7950   for ac_exec_ext in '' $ac_executable_extensions; do
7951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7952     ac_cv_prog_ac_ct_AR="ar"
7953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7954     break 2
7955   fi
7956 done
7957 done
7958
7959   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7960 fi
7961 fi
7962 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7963 if test -n "$ac_ct_AR"; then
7964   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7965 echo "${ECHO_T}$ac_ct_AR" >&6
7966 else
7967   echo "$as_me:$LINENO: result: no" >&5
7968 echo "${ECHO_T}no" >&6
7969 fi
7970
7971   AR=$ac_ct_AR
7972 else
7973   AR="$ac_cv_prog_AR"
7974 fi
7975
7976 if test -n "$ac_tool_prefix"; then
7977   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7978 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7979 echo "$as_me:$LINENO: checking for $ac_word" >&5
7980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7981 if test "${ac_cv_prog_RANLIB+set}" = set; then
7982   echo $ECHO_N "(cached) $ECHO_C" >&6
7983 else
7984   if test -n "$RANLIB"; then
7985   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7986 else
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 for as_dir in $PATH
7989 do
7990   IFS=$as_save_IFS
7991   test -z "$as_dir" && as_dir=.
7992   for ac_exec_ext in '' $ac_executable_extensions; do
7993   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7994     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7996     break 2
7997   fi
7998 done
7999 done
8000
8001 fi
8002 fi
8003 RANLIB=$ac_cv_prog_RANLIB
8004 if test -n "$RANLIB"; then
8005   echo "$as_me:$LINENO: result: $RANLIB" >&5
8006 echo "${ECHO_T}$RANLIB" >&6
8007 else
8008   echo "$as_me:$LINENO: result: no" >&5
8009 echo "${ECHO_T}no" >&6
8010 fi
8011
8012 fi
8013 if test -z "$ac_cv_prog_RANLIB"; then
8014   ac_ct_RANLIB=$RANLIB
8015   # Extract the first word of "ranlib", so it can be a program name with args.
8016 set dummy ranlib; ac_word=$2
8017 echo "$as_me:$LINENO: checking for $ac_word" >&5
8018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8019 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8020   echo $ECHO_N "(cached) $ECHO_C" >&6
8021 else
8022   if test -n "$ac_ct_RANLIB"; then
8023   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8027 do
8028   IFS=$as_save_IFS
8029   test -z "$as_dir" && as_dir=.
8030   for ac_exec_ext in '' $ac_executable_extensions; do
8031   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032     ac_cv_prog_ac_ct_RANLIB="ranlib"
8033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8034     break 2
8035   fi
8036 done
8037 done
8038
8039   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8040 fi
8041 fi
8042 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8043 if test -n "$ac_ct_RANLIB"; then
8044   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8045 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8046 else
8047   echo "$as_me:$LINENO: result: no" >&5
8048 echo "${ECHO_T}no" >&6
8049 fi
8050
8051   RANLIB=$ac_ct_RANLIB
8052 else
8053   RANLIB="$ac_cv_prog_RANLIB"
8054 fi
8055
8056 if test -n "$ac_tool_prefix"; then
8057   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8058 set dummy ${ac_tool_prefix}strip; ac_word=$2
8059 echo "$as_me:$LINENO: checking for $ac_word" >&5
8060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8061 if test "${ac_cv_prog_STRIP+set}" = set; then
8062   echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064   if test -n "$STRIP"; then
8065   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8066 else
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 for as_dir in $PATH
8069 do
8070   IFS=$as_save_IFS
8071   test -z "$as_dir" && as_dir=.
8072   for ac_exec_ext in '' $ac_executable_extensions; do
8073   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8074     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8076     break 2
8077   fi
8078 done
8079 done
8080
8081 fi
8082 fi
8083 STRIP=$ac_cv_prog_STRIP
8084 if test -n "$STRIP"; then
8085   echo "$as_me:$LINENO: result: $STRIP" >&5
8086 echo "${ECHO_T}$STRIP" >&6
8087 else
8088   echo "$as_me:$LINENO: result: no" >&5
8089 echo "${ECHO_T}no" >&6
8090 fi
8091
8092 fi
8093 if test -z "$ac_cv_prog_STRIP"; then
8094   ac_ct_STRIP=$STRIP
8095   # Extract the first word of "strip", so it can be a program name with args.
8096 set dummy strip; ac_word=$2
8097 echo "$as_me:$LINENO: checking for $ac_word" >&5
8098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8099 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8100   echo $ECHO_N "(cached) $ECHO_C" >&6
8101 else
8102   if test -n "$ac_ct_STRIP"; then
8103   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8104 else
8105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8106 for as_dir in $PATH
8107 do
8108   IFS=$as_save_IFS
8109   test -z "$as_dir" && as_dir=.
8110   for ac_exec_ext in '' $ac_executable_extensions; do
8111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8112     ac_cv_prog_ac_ct_STRIP="strip"
8113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8114     break 2
8115   fi
8116 done
8117 done
8118
8119   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8120 fi
8121 fi
8122 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8123 if test -n "$ac_ct_STRIP"; then
8124   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8125 echo "${ECHO_T}$ac_ct_STRIP" >&6
8126 else
8127   echo "$as_me:$LINENO: result: no" >&5
8128 echo "${ECHO_T}no" >&6
8129 fi
8130
8131   STRIP=$ac_ct_STRIP
8132 else
8133   STRIP="$ac_cv_prog_STRIP"
8134 fi
8135
8136
8137 old_CC="$CC"
8138 old_CFLAGS="$CFLAGS"
8139
8140 # Set sane defaults for various variables
8141 test -z "$AR" && AR=ar
8142 test -z "$AR_FLAGS" && AR_FLAGS=cru
8143 test -z "$AS" && AS=as
8144 test -z "$CC" && CC=cc
8145 test -z "$LTCC" && LTCC=$CC
8146 test -z "$DLLTOOL" && DLLTOOL=dlltool
8147 test -z "$LD" && LD=ld
8148 test -z "$LN_S" && LN_S="ln -s"
8149 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8150 test -z "$NM" && NM=nm
8151 test -z "$SED" && SED=sed
8152 test -z "$OBJDUMP" && OBJDUMP=objdump
8153 test -z "$RANLIB" && RANLIB=:
8154 test -z "$STRIP" && STRIP=:
8155 test -z "$ac_objext" && ac_objext=o
8156
8157 # Determine commands to create old-style static archives.
8158 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8159 old_postinstall_cmds='chmod 644 $oldlib'
8160 old_postuninstall_cmds=
8161
8162 if test -n "$RANLIB"; then
8163   case $host_os in
8164   openbsd*)
8165     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8166     ;;
8167   *)
8168     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8169     ;;
8170   esac
8171   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8172 fi
8173
8174 for cc_temp in $compiler""; do
8175   case $cc_temp in
8176     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8177     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8178     \-*) ;;
8179     *) break;;
8180   esac
8181 done
8182 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8183
8184
8185 # Only perform the check for file, if the check method requires it
8186 case $deplibs_check_method in
8187 file_magic*)
8188   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8189     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8190 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8191 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8192   echo $ECHO_N "(cached) $ECHO_C" >&6
8193 else
8194   case $MAGIC_CMD in
8195 [\\/*] |  ?:[\\/]*)
8196   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8197   ;;
8198 *)
8199   lt_save_MAGIC_CMD="$MAGIC_CMD"
8200   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8201   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8202   for ac_dir in $ac_dummy; do
8203     IFS="$lt_save_ifs"
8204     test -z "$ac_dir" && ac_dir=.
8205     if test -f $ac_dir/${ac_tool_prefix}file; then
8206       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8207       if test -n "$file_magic_test_file"; then
8208         case $deplibs_check_method in
8209         "file_magic "*)
8210           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8211           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8212           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8213             $EGREP "$file_magic_regex" > /dev/null; then
8214             :
8215           else
8216             cat <<EOF 1>&2
8217
8218 *** Warning: the command libtool uses to detect shared libraries,
8219 *** $file_magic_cmd, produces output that libtool cannot recognize.
8220 *** The result is that libtool may fail to recognize shared libraries
8221 *** as such.  This will affect the creation of libtool libraries that
8222 *** depend on shared libraries, but programs linked with such libtool
8223 *** libraries will work regardless of this problem.  Nevertheless, you
8224 *** may want to report the problem to your system manager and/or to
8225 *** bug-libtool@gnu.org
8226
8227 EOF
8228           fi ;;
8229         esac
8230       fi
8231       break
8232     fi
8233   done
8234   IFS="$lt_save_ifs"
8235   MAGIC_CMD="$lt_save_MAGIC_CMD"
8236   ;;
8237 esac
8238 fi
8239
8240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8241 if test -n "$MAGIC_CMD"; then
8242   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8243 echo "${ECHO_T}$MAGIC_CMD" >&6
8244 else
8245   echo "$as_me:$LINENO: result: no" >&5
8246 echo "${ECHO_T}no" >&6
8247 fi
8248
8249 if test -z "$lt_cv_path_MAGIC_CMD"; then
8250   if test -n "$ac_tool_prefix"; then
8251     echo "$as_me:$LINENO: checking for file" >&5
8252 echo $ECHO_N "checking for file... $ECHO_C" >&6
8253 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8254   echo $ECHO_N "(cached) $ECHO_C" >&6
8255 else
8256   case $MAGIC_CMD in
8257 [\\/*] |  ?:[\\/]*)
8258   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8259   ;;
8260 *)
8261   lt_save_MAGIC_CMD="$MAGIC_CMD"
8262   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8263   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8264   for ac_dir in $ac_dummy; do
8265     IFS="$lt_save_ifs"
8266     test -z "$ac_dir" && ac_dir=.
8267     if test -f $ac_dir/file; then
8268       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8269       if test -n "$file_magic_test_file"; then
8270         case $deplibs_check_method in
8271         "file_magic "*)
8272           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8273           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8274           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8275             $EGREP "$file_magic_regex" > /dev/null; then
8276             :
8277           else
8278             cat <<EOF 1>&2
8279
8280 *** Warning: the command libtool uses to detect shared libraries,
8281 *** $file_magic_cmd, produces output that libtool cannot recognize.
8282 *** The result is that libtool may fail to recognize shared libraries
8283 *** as such.  This will affect the creation of libtool libraries that
8284 *** depend on shared libraries, but programs linked with such libtool
8285 *** libraries will work regardless of this problem.  Nevertheless, you
8286 *** may want to report the problem to your system manager and/or to
8287 *** bug-libtool@gnu.org
8288
8289 EOF
8290           fi ;;
8291         esac
8292       fi
8293       break
8294     fi
8295   done
8296   IFS="$lt_save_ifs"
8297   MAGIC_CMD="$lt_save_MAGIC_CMD"
8298   ;;
8299 esac
8300 fi
8301
8302 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8303 if test -n "$MAGIC_CMD"; then
8304   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8305 echo "${ECHO_T}$MAGIC_CMD" >&6
8306 else
8307   echo "$as_me:$LINENO: result: no" >&5
8308 echo "${ECHO_T}no" >&6
8309 fi
8310
8311   else
8312     MAGIC_CMD=:
8313   fi
8314 fi
8315
8316   fi
8317   ;;
8318 esac
8319
8320 enable_dlopen=yes
8321 enable_win32_dll=yes
8322
8323 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8324 if test "${enable_libtool_lock+set}" = set; then
8325   enableval="$enable_libtool_lock"
8326
8327 fi;
8328 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8329
8330
8331 # Check whether --with-pic or --without-pic was given.
8332 if test "${with_pic+set}" = set; then
8333   withval="$with_pic"
8334   pic_mode="$withval"
8335 else
8336   pic_mode=default
8337 fi;
8338 test -z "$pic_mode" && pic_mode=default
8339
8340 # Use C for the default configuration in the libtool script
8341 tagname=
8342 lt_save_CC="$CC"
8343 ac_ext=c
8344 ac_cpp='$CPP $CPPFLAGS'
8345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8348
8349
8350 # Source file extension for C test sources.
8351 ac_ext=c
8352
8353 # Object file extension for compiled C test sources.
8354 objext=o
8355 objext=$objext
8356
8357 # Code to be used in simple compile tests
8358 lt_simple_compile_test_code="int some_variable = 0;\n"
8359
8360 # Code to be used in simple link tests
8361 lt_simple_link_test_code='int main(){return(0);}\n'
8362
8363
8364 # If no C compiler was specified, use CC.
8365 LTCC=${LTCC-"$CC"}
8366
8367 # Allow CC to be a program name with arguments.
8368 compiler=$CC
8369
8370
8371 # save warnings/boilerplate of simple test code
8372 ac_outfile=conftest.$ac_objext
8373 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8374 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8375 _lt_compiler_boilerplate=`cat conftest.err`
8376 $rm conftest*
8377
8378 ac_outfile=conftest.$ac_objext
8379 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8380 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8381 _lt_linker_boilerplate=`cat conftest.err`
8382 $rm conftest*
8383
8384
8385 #
8386 # Check for any special shared library compilation flags.
8387 #
8388 lt_prog_cc_shlib=
8389 if test "$GCC" = no; then
8390   case $host_os in
8391   sco3.2v5*)
8392     lt_prog_cc_shlib='-belf'
8393     ;;
8394   esac
8395 fi
8396 if test -n "$lt_prog_cc_shlib"; then
8397   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8398 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8399   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8400   else
8401     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8402 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8403     lt_cv_prog_cc_can_build_shared=no
8404   fi
8405 fi
8406
8407
8408 #
8409 # Check to make sure the static flag actually works.
8410 #
8411 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8412 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8413 if test "${lt_prog_compiler_static_works+set}" = set; then
8414   echo $ECHO_N "(cached) $ECHO_C" >&6
8415 else
8416   lt_prog_compiler_static_works=no
8417    save_LDFLAGS="$LDFLAGS"
8418    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8419    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8420    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8421      # The compiler can only warn and ignore the option if not recognized
8422      # So say no if there are warnings
8423      if test -s conftest.err; then
8424        # Append any errors to the config.log.
8425        cat conftest.err 1>&5
8426        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8427        $SED '/^$/d' conftest.err >conftest.er2
8428        if diff conftest.exp conftest.er2 >/dev/null; then
8429          lt_prog_compiler_static_works=yes
8430        fi
8431      else
8432        lt_prog_compiler_static_works=yes
8433      fi
8434    fi
8435    $rm conftest*
8436    LDFLAGS="$save_LDFLAGS"
8437
8438 fi
8439 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8440 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8441
8442 if test x"$lt_prog_compiler_static_works" = xyes; then
8443     :
8444 else
8445     lt_prog_compiler_static=
8446 fi
8447
8448
8449
8450
8451 lt_prog_compiler_no_builtin_flag=
8452
8453 if test "$GCC" = yes; then
8454   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8455
8456
8457 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8458 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8459 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8460   echo $ECHO_N "(cached) $ECHO_C" >&6
8461 else
8462   lt_cv_prog_compiler_rtti_exceptions=no
8463   ac_outfile=conftest.$ac_objext
8464    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8465    lt_compiler_flag="-fno-rtti -fno-exceptions"
8466    # Insert the option either (1) after the last *FLAGS variable, or
8467    # (2) before a word containing "conftest.", or (3) at the end.
8468    # Note that $ac_compile itself does not contain backslashes and begins
8469    # with a dollar sign (not a hyphen), so the echo should work correctly.
8470    # The option is referenced via a variable to avoid confusing sed.
8471    lt_compile=`echo "$ac_compile" | $SED \
8472    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8473    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8474    -e 's:$: $lt_compiler_flag:'`
8475    (eval echo "\"\$as_me:8475: $lt_compile\"" >&5)
8476    (eval "$lt_compile" 2>conftest.err)
8477    ac_status=$?
8478    cat conftest.err >&5
8479    echo "$as_me:8479: \$? = $ac_status" >&5
8480    if (exit $ac_status) && test -s "$ac_outfile"; then
8481      # The compiler can only warn and ignore the option if not recognized
8482      # So say no if there are warnings other than the usual output.
8483      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8484      $SED '/^$/d' conftest.err >conftest.er2
8485      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8486        lt_cv_prog_compiler_rtti_exceptions=yes
8487      fi
8488    fi
8489    $rm conftest*
8490
8491 fi
8492 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8493 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8494
8495 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8496     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8497 else
8498     :
8499 fi
8500
8501 fi
8502
8503 lt_prog_compiler_wl=
8504 lt_prog_compiler_pic=
8505 lt_prog_compiler_static=
8506
8507 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8508 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8509
8510   if test "$GCC" = yes; then
8511     lt_prog_compiler_wl='-Wl,'
8512     lt_prog_compiler_static='-static'
8513
8514     case $host_os in
8515       aix*)
8516       # All AIX code is PIC.
8517       if test "$host_cpu" = ia64; then
8518         # AIX 5 now supports IA64 processor
8519         lt_prog_compiler_static='-Bstatic'
8520       fi
8521       ;;
8522
8523     amigaos*)
8524       # FIXME: we need at least 68020 code to build shared libraries, but
8525       # adding the `-m68020' flag to GCC prevents building anything better,
8526       # like `-m68040'.
8527       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8528       ;;
8529
8530     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8531       # PIC is the default for these OSes.
8532       ;;
8533
8534     mingw* | pw32* | os2*)
8535       # This hack is so that the source file can tell whether it is being
8536       # built for inclusion in a dll (and should export symbols for example).
8537       lt_prog_compiler_pic='-DDLL_EXPORT'
8538       ;;
8539
8540     darwin* | rhapsody*)
8541       # PIC is the default on this platform
8542       # Common symbols not allowed in MH_DYLIB files
8543       lt_prog_compiler_pic='-fno-common'
8544       ;;
8545
8546     msdosdjgpp*)
8547       # Just because we use GCC doesn't mean we suddenly get shared libraries
8548       # on systems that don't support them.
8549       lt_prog_compiler_can_build_shared=no
8550       enable_shared=no
8551       ;;
8552
8553     sysv4*MP*)
8554       if test -d /usr/nec; then
8555         lt_prog_compiler_pic=-Kconform_pic
8556       fi
8557       ;;
8558
8559     hpux*)
8560       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8561       # not for PA HP-UX.
8562       case "$host_cpu" in
8563       hppa*64*|ia64*)
8564         # +Z the default
8565         ;;
8566       *)
8567         lt_prog_compiler_pic='-fPIC'
8568         ;;
8569       esac
8570       ;;
8571
8572     *)
8573       lt_prog_compiler_pic='-fPIC'
8574       ;;
8575     esac
8576   else
8577     # PORTME Check for flag to pass linker flags through the system compiler.
8578     case $host_os in
8579     aix*)
8580       lt_prog_compiler_wl='-Wl,'
8581       if test "$host_cpu" = ia64; then
8582         # AIX 5 now supports IA64 processor
8583         lt_prog_compiler_static='-Bstatic'
8584       else
8585         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8586       fi
8587       ;;
8588       darwin*)
8589         # PIC is the default on this platform
8590         # Common symbols not allowed in MH_DYLIB files
8591        case $cc_basename in
8592          xlc*)
8593          lt_prog_compiler_pic='-qnocommon'
8594          lt_prog_compiler_wl='-Wl,'
8595          ;;
8596        esac
8597        ;;
8598
8599     mingw* | pw32* | os2*)
8600       # This hack is so that the source file can tell whether it is being
8601       # built for inclusion in a dll (and should export symbols for example).
8602       lt_prog_compiler_pic='-DDLL_EXPORT'
8603       ;;
8604
8605     hpux9* | hpux10* | hpux11*)
8606       lt_prog_compiler_wl='-Wl,'
8607       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8608       # not for PA HP-UX.
8609       case "$host_cpu" in
8610       hppa*64*|ia64*)
8611         # +Z the default
8612         ;;
8613       *)
8614         lt_prog_compiler_pic='+Z'
8615         ;;
8616       esac
8617       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8618       lt_prog_compiler_static='${wl}-a ${wl}archive'
8619       ;;
8620
8621     irix5* | irix6* | nonstopux*)
8622       lt_prog_compiler_wl='-Wl,'
8623       # PIC (with -KPIC) is the default.
8624       lt_prog_compiler_static='-non_shared'
8625       ;;
8626
8627     newsos6)
8628       lt_prog_compiler_pic='-KPIC'
8629       lt_prog_compiler_static='-Bstatic'
8630       ;;
8631
8632     linux*)
8633       case $cc_basename in
8634       icc* | ecc*)
8635         lt_prog_compiler_wl='-Wl,'
8636         lt_prog_compiler_pic='-KPIC'
8637         lt_prog_compiler_static='-static'
8638         ;;
8639       pgcc* | pgf77* | pgf90*)
8640         # Portland Group compilers (*not* the Pentium gcc compiler,
8641         # which looks to be a dead project)
8642         lt_prog_compiler_wl='-Wl,'
8643         lt_prog_compiler_pic='-fpic'
8644         lt_prog_compiler_static='-static'
8645         ;;
8646       ccc*)
8647         lt_prog_compiler_wl='-Wl,'
8648         # All Alpha code is PIC.
8649         lt_prog_compiler_static='-non_shared'
8650         ;;
8651       esac
8652       ;;
8653
8654     osf3* | osf4* | osf5*)
8655       lt_prog_compiler_wl='-Wl,'
8656       # All OSF/1 code is PIC.
8657       lt_prog_compiler_static='-non_shared'
8658       ;;
8659
8660     sco3.2v5*)
8661       lt_prog_compiler_pic='-Kpic'
8662       lt_prog_compiler_static='-dn'
8663       ;;
8664
8665     solaris*)
8666       lt_prog_compiler_pic='-KPIC'
8667       lt_prog_compiler_static='-Bstatic'
8668       case $cc_basename in
8669       f77* | f90* | f95*)
8670         lt_prog_compiler_wl='-Qoption ld ';;
8671       *)
8672         lt_prog_compiler_wl='-Wl,';;
8673       esac
8674       ;;
8675
8676     sunos4*)
8677       lt_prog_compiler_wl='-Qoption ld '
8678       lt_prog_compiler_pic='-PIC'
8679       lt_prog_compiler_static='-Bstatic'
8680       ;;
8681
8682     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8683       lt_prog_compiler_wl='-Wl,'
8684       lt_prog_compiler_pic='-KPIC'
8685       lt_prog_compiler_static='-Bstatic'
8686       ;;
8687
8688     sysv4*MP*)
8689       if test -d /usr/nec ;then
8690         lt_prog_compiler_pic='-Kconform_pic'
8691         lt_prog_compiler_static='-Bstatic'
8692       fi
8693       ;;
8694
8695     unicos*)
8696       lt_prog_compiler_wl='-Wl,'
8697       lt_prog_compiler_can_build_shared=no
8698       ;;
8699
8700     uts4*)
8701       lt_prog_compiler_pic='-pic'
8702       lt_prog_compiler_static='-Bstatic'
8703       ;;
8704
8705     *)
8706       lt_prog_compiler_can_build_shared=no
8707       ;;
8708     esac
8709   fi
8710
8711 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8712 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8713
8714 #
8715 # Check to make sure the PIC flag actually works.
8716 #
8717 if test -n "$lt_prog_compiler_pic"; then
8718
8719 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8720 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8721 if test "${lt_prog_compiler_pic_works+set}" = set; then
8722   echo $ECHO_N "(cached) $ECHO_C" >&6
8723 else
8724   lt_prog_compiler_pic_works=no
8725   ac_outfile=conftest.$ac_objext
8726    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8727    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8728    # Insert the option either (1) after the last *FLAGS variable, or
8729    # (2) before a word containing "conftest.", or (3) at the end.
8730    # Note that $ac_compile itself does not contain backslashes and begins
8731    # with a dollar sign (not a hyphen), so the echo should work correctly.
8732    # The option is referenced via a variable to avoid confusing sed.
8733    lt_compile=`echo "$ac_compile" | $SED \
8734    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8735    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8736    -e 's:$: $lt_compiler_flag:'`
8737    (eval echo "\"\$as_me:8737: $lt_compile\"" >&5)
8738    (eval "$lt_compile" 2>conftest.err)
8739    ac_status=$?
8740    cat conftest.err >&5
8741    echo "$as_me:8741: \$? = $ac_status" >&5
8742    if (exit $ac_status) && test -s "$ac_outfile"; then
8743      # The compiler can only warn and ignore the option if not recognized
8744      # So say no if there are warnings other than the usual output.
8745      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8746      $SED '/^$/d' conftest.err >conftest.er2
8747      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8748        lt_prog_compiler_pic_works=yes
8749      fi
8750    fi
8751    $rm conftest*
8752
8753 fi
8754 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8755 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8756
8757 if test x"$lt_prog_compiler_pic_works" = xyes; then
8758     case $lt_prog_compiler_pic in
8759      "" | " "*) ;;
8760      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8761      esac
8762 else
8763     lt_prog_compiler_pic=
8764      lt_prog_compiler_can_build_shared=no
8765 fi
8766
8767 fi
8768 case "$host_os" in
8769   # For platforms which do not support PIC, -DPIC is meaningless:
8770   *djgpp*)
8771     lt_prog_compiler_pic=
8772     ;;
8773   *)
8774     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8775     ;;
8776 esac
8777
8778 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8779 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8780 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8781   echo $ECHO_N "(cached) $ECHO_C" >&6
8782 else
8783   lt_cv_prog_compiler_c_o=no
8784    $rm -r conftest 2>/dev/null
8785    mkdir conftest
8786    cd conftest
8787    mkdir out
8788    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8789
8790    lt_compiler_flag="-o out/conftest2.$ac_objext"
8791    # Insert the option either (1) after the last *FLAGS variable, or
8792    # (2) before a word containing "conftest.", or (3) at the end.
8793    # Note that $ac_compile itself does not contain backslashes and begins
8794    # with a dollar sign (not a hyphen), so the echo should work correctly.
8795    lt_compile=`echo "$ac_compile" | $SED \
8796    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8797    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8798    -e 's:$: $lt_compiler_flag:'`
8799    (eval echo "\"\$as_me:8799: $lt_compile\"" >&5)
8800    (eval "$lt_compile" 2>out/conftest.err)
8801    ac_status=$?
8802    cat out/conftest.err >&5
8803    echo "$as_me:8803: \$? = $ac_status" >&5
8804    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8805    then
8806      # The compiler can only warn and ignore the option if not recognized
8807      # So say no if there are warnings
8808      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8809      $SED '/^$/d' out/conftest.err >out/conftest.er2
8810      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8811        lt_cv_prog_compiler_c_o=yes
8812      fi
8813    fi
8814    chmod u+w .
8815    $rm conftest*
8816    # SGI C++ compiler will create directory out/ii_files/ for
8817    # template instantiation
8818    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8819    $rm out/* && rmdir out
8820    cd ..
8821    rmdir conftest
8822    $rm conftest*
8823
8824 fi
8825 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8826 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8827
8828
8829 hard_links="nottested"
8830 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8831   # do not overwrite the value of need_locks provided by the user
8832   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8833 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8834   hard_links=yes
8835   $rm conftest*
8836   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8837   touch conftest.a
8838   ln conftest.a conftest.b 2>&5 || hard_links=no
8839   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8840   echo "$as_me:$LINENO: result: $hard_links" >&5
8841 echo "${ECHO_T}$hard_links" >&6
8842   if test "$hard_links" = no; then
8843     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8844 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8845     need_locks=warn
8846   fi
8847 else
8848   need_locks=no
8849 fi
8850
8851 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8852 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8853
8854   runpath_var=
8855   allow_undefined_flag=
8856   enable_shared_with_static_runtimes=no
8857   archive_cmds=
8858   archive_expsym_cmds=
8859   old_archive_From_new_cmds=
8860   old_archive_from_expsyms_cmds=
8861   export_dynamic_flag_spec=
8862   whole_archive_flag_spec=
8863   thread_safe_flag_spec=
8864   hardcode_libdir_flag_spec=
8865   hardcode_libdir_flag_spec_ld=
8866   hardcode_libdir_separator=
8867   hardcode_direct=no
8868   hardcode_minus_L=no
8869   hardcode_shlibpath_var=unsupported
8870   link_all_deplibs=unknown
8871   hardcode_automatic=no
8872   module_cmds=
8873   module_expsym_cmds=
8874   always_export_symbols=no
8875   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8876   # include_expsyms should be a list of space-separated symbols to be *always*
8877   # included in the symbol list
8878   include_expsyms=
8879   # exclude_expsyms can be an extended regexp of symbols to exclude
8880   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8881   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8882   # as well as any symbol that contains `d'.
8883   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8884   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8885   # platforms (ab)use it in PIC code, but their linkers get confused if
8886   # the symbol is explicitly referenced.  Since portable code cannot
8887   # rely on this symbol name, it's probably fine to never include it in
8888   # preloaded symbol tables.
8889   extract_expsyms_cmds=
8890   # Just being paranoid about ensuring that cc_basename is set.
8891   for cc_temp in $compiler""; do
8892   case $cc_temp in
8893     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8894     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8895     \-*) ;;
8896     *) break;;
8897   esac
8898 done
8899 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8900
8901   case $host_os in
8902   cygwin* | mingw* | pw32*)
8903     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8904     # When not using gcc, we currently assume that we are using
8905     # Microsoft Visual C++.
8906     if test "$GCC" != yes; then
8907       with_gnu_ld=no
8908     fi
8909     ;;
8910   openbsd*)
8911     with_gnu_ld=no
8912     ;;
8913   esac
8914
8915   ld_shlibs=yes
8916   if test "$with_gnu_ld" = yes; then
8917     # If archive_cmds runs LD, not CC, wlarc should be empty
8918     wlarc='${wl}'
8919
8920     # Set some defaults for GNU ld with shared library support. These
8921     # are reset later if shared libraries are not supported. Putting them
8922     # here allows them to be overridden if necessary.
8923     runpath_var=LD_RUN_PATH
8924     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8925     export_dynamic_flag_spec='${wl}--export-dynamic'
8926     # ancient GNU ld didn't support --whole-archive et. al.
8927     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8928         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8929       else
8930         whole_archive_flag_spec=
8931     fi
8932     supports_anon_versioning=no
8933     case `$LD -v 2>/dev/null` in
8934       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8935       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8936       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8937       *\ 2.11.*) ;; # other 2.11 versions
8938       *) supports_anon_versioning=yes ;;
8939     esac
8940
8941     # See if GNU ld supports shared libraries.
8942     case $host_os in
8943     aix3* | aix4* | aix5*)
8944       # On AIX/PPC, the GNU linker is very broken
8945       if test "$host_cpu" != ia64; then
8946         ld_shlibs=no
8947         cat <<EOF 1>&2
8948
8949 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8950 *** to be unable to reliably create shared libraries on AIX.
8951 *** Therefore, libtool is disabling shared libraries support.  If you
8952 *** really care for shared libraries, you may want to modify your PATH
8953 *** so that a non-GNU linker is found, and then restart.
8954
8955 EOF
8956       fi
8957       ;;
8958
8959     amigaos*)
8960       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)'
8961       hardcode_libdir_flag_spec='-L$libdir'
8962       hardcode_minus_L=yes
8963
8964       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8965       # that the semantics of dynamic libraries on AmigaOS, at least up
8966       # to version 4, is to share data among multiple programs linked
8967       # with the same dynamic library.  Since this doesn't match the
8968       # behavior of shared libraries on other platforms, we can't use
8969       # them.
8970       ld_shlibs=no
8971       ;;
8972
8973     beos*)
8974       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8975         allow_undefined_flag=unsupported
8976         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8977         # support --undefined.  This deserves some investigation.  FIXME
8978         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8979       else
8980         ld_shlibs=no
8981       fi
8982       ;;
8983
8984     cygwin* | mingw* | pw32*)
8985       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8986       # as there is no search path for DLLs.
8987       hardcode_libdir_flag_spec='-L$libdir'
8988       allow_undefined_flag=unsupported
8989       always_export_symbols=no
8990       enable_shared_with_static_runtimes=yes
8991       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8992
8993       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8994         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8995         # If the export-symbols file already is a .def file (1st line
8996         # is EXPORTS), use it as is; otherwise, prepend...
8997         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8998           cp $export_symbols $output_objdir/$soname.def;
8999         else
9000           echo EXPORTS > $output_objdir/$soname.def;
9001           cat $export_symbols >> $output_objdir/$soname.def;
9002         fi~
9003         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9004       else
9005         ld_shlibs=no
9006       fi
9007       ;;
9008
9009     linux*)
9010       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9011         tmp_addflag=
9012         case $cc_basename,$host_cpu in
9013         pgcc*)                          # Portland Group C compiler
9014           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'
9015           tmp_addflag=' $pic_flag'
9016           ;;
9017         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
9018           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'
9019           tmp_addflag=' $pic_flag -Mnomain' ;;
9020         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9021           tmp_addflag=' -i_dynamic' ;;
9022         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9023           tmp_addflag=' -i_dynamic -nofor_main' ;;
9024         ifc* | ifort*)                  # Intel Fortran compiler
9025           tmp_addflag=' -nofor_main' ;;
9026         esac
9027         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9028
9029         if test $supports_anon_versioning = yes; then
9030           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9031   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9032   $echo "local: *; };" >> $output_objdir/$libname.ver~
9033           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9034         fi
9035       else
9036         ld_shlibs=no
9037       fi
9038       ;;
9039
9040     netbsd*)
9041       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9042         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9043         wlarc=
9044       else
9045         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9046         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9047       fi
9048       ;;
9049
9050     solaris* | sysv5*)
9051       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9052         ld_shlibs=no
9053         cat <<EOF 1>&2
9054
9055 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9056 *** create shared libraries on Solaris systems.  Therefore, libtool
9057 *** is disabling shared libraries support.  We urge you to upgrade GNU
9058 *** binutils to release 2.9.1 or newer.  Another option is to modify
9059 *** your PATH or compiler configuration so that the native linker is
9060 *** used, and then restart.
9061
9062 EOF
9063       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9064         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9065         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9066       else
9067         ld_shlibs=no
9068       fi
9069       ;;
9070
9071     sunos4*)
9072       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9073       wlarc=
9074       hardcode_direct=yes
9075       hardcode_shlibpath_var=no
9076       ;;
9077
9078     *)
9079       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9080         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9081         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9082       else
9083         ld_shlibs=no
9084       fi
9085       ;;
9086     esac
9087
9088     if test "$ld_shlibs" = no; then
9089       runpath_var=
9090       hardcode_libdir_flag_spec=
9091       export_dynamic_flag_spec=
9092       whole_archive_flag_spec=
9093     fi
9094   else
9095     # PORTME fill in a description of your system's linker (not GNU ld)
9096     case $host_os in
9097     aix3*)
9098       allow_undefined_flag=unsupported
9099       always_export_symbols=yes
9100       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'
9101       # Note: this linker hardcodes the directories in LIBPATH if there
9102       # are no directories specified by -L.
9103       hardcode_minus_L=yes
9104       if test "$GCC" = yes && test -z "$link_static_flag"; then
9105         # Neither direct hardcoding nor static linking is supported with a
9106         # broken collect2.
9107         hardcode_direct=unsupported
9108       fi
9109       ;;
9110
9111     aix4* | aix5*)
9112       if test "$host_cpu" = ia64; then
9113         # On IA64, the linker does run time linking by default, so we don't
9114         # have to do anything special.
9115         aix_use_runtimelinking=no
9116         exp_sym_flag='-Bexport'
9117         no_entry_flag=""
9118       else
9119         # If we're using GNU nm, then we don't want the "-C" option.
9120         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9121         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9122           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'
9123         else
9124           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'
9125         fi
9126         aix_use_runtimelinking=no
9127
9128         # Test if we are trying to use run time linking or normal
9129         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9130         # need to do runtime linking.
9131         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9132           for ld_flag in $LDFLAGS; do
9133           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9134             aix_use_runtimelinking=yes
9135             break
9136           fi
9137           done
9138         esac
9139
9140         exp_sym_flag='-bexport'
9141         no_entry_flag='-bnoentry'
9142       fi
9143
9144       # When large executables or shared objects are built, AIX ld can
9145       # have problems creating the table of contents.  If linking a library
9146       # or program results in "error TOC overflow" add -mminimal-toc to
9147       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9148       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9149
9150       archive_cmds=''
9151       hardcode_direct=yes
9152       hardcode_libdir_separator=':'
9153       link_all_deplibs=yes
9154
9155       if test "$GCC" = yes; then
9156         case $host_os in aix4.[012]|aix4.[012].*)
9157         # We only want to do this on AIX 4.2 and lower, the check
9158         # below for broken collect2 doesn't work under 4.3+
9159           collect2name=`${CC} -print-prog-name=collect2`
9160           if test -f "$collect2name" && \
9161            strings "$collect2name" | grep resolve_lib_name >/dev/null
9162           then
9163           # We have reworked collect2
9164           hardcode_direct=yes
9165           else
9166           # We have old collect2
9167           hardcode_direct=unsupported
9168           # It fails to find uninstalled libraries when the uninstalled
9169           # path is not listed in the libpath.  Setting hardcode_minus_L
9170           # to unsupported forces relinking
9171           hardcode_minus_L=yes
9172           hardcode_libdir_flag_spec='-L$libdir'
9173           hardcode_libdir_separator=
9174           fi
9175         esac
9176         shared_flag='-shared'
9177         if test "$aix_use_runtimelinking" = yes; then
9178           shared_flag="$shared_flag "'${wl}-G'
9179         fi
9180       else
9181         # not using gcc
9182         if test "$host_cpu" = ia64; then
9183         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9184         # chokes on -Wl,-G. The following line is correct:
9185           shared_flag='-G'
9186         else
9187         if test "$aix_use_runtimelinking" = yes; then
9188             shared_flag='${wl}-G'
9189           else
9190             shared_flag='${wl}-bM:SRE'
9191         fi
9192         fi
9193       fi
9194
9195       # It seems that -bexpall does not export symbols beginning with
9196       # underscore (_), so it is better to generate a list of symbols to export.
9197       always_export_symbols=yes
9198       if test "$aix_use_runtimelinking" = yes; then
9199         # Warning - without using the other runtime loading flags (-brtl),
9200         # -berok will link without error, but may produce a broken library.
9201         allow_undefined_flag='-berok'
9202        # Determine the default libpath from the value encoded in an empty executable.
9203        cat >conftest.$ac_ext <<_ACEOF
9204 /* confdefs.h.  */
9205 _ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h.  */
9209
9210 int
9211 main ()
9212 {
9213
9214   ;
9215   return 0;
9216 }
9217 _ACEOF
9218 rm -f conftest.$ac_objext conftest$ac_exeext
9219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9220   (eval $ac_link) 2>conftest.er1
9221   ac_status=$?
9222   grep -v '^ *+' conftest.er1 >conftest.err
9223   rm -f conftest.er1
9224   cat conftest.err >&5
9225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226   (exit $ac_status); } &&
9227          { ac_try='test -z "$ac_c_werror_flag"
9228                          || test ! -s conftest.err'
9229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230   (eval $ac_try) 2>&5
9231   ac_status=$?
9232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233   (exit $ac_status); }; } &&
9234          { ac_try='test -s conftest$ac_exeext'
9235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236   (eval $ac_try) 2>&5
9237   ac_status=$?
9238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   (exit $ac_status); }; }; then
9240
9241 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9242 }'`
9243 # Check for a 64-bit object if we didn't find anything.
9244 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; }
9245 }'`; fi
9246 else
9247   echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9249
9250 fi
9251 rm -f conftest.err conftest.$ac_objext \
9252       conftest$ac_exeext conftest.$ac_ext
9253 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9254
9255        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9256         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"
9257        else
9258         if test "$host_cpu" = ia64; then
9259           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9260           allow_undefined_flag="-z nodefs"
9261           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"
9262         else
9263          # Determine the default libpath from the value encoded in an empty executable.
9264          cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h.  */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h.  */
9270
9271 int
9272 main ()
9273 {
9274
9275   ;
9276   return 0;
9277 }
9278 _ACEOF
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9281   (eval $ac_link) 2>conftest.er1
9282   ac_status=$?
9283   grep -v '^ *+' conftest.er1 >conftest.err
9284   rm -f conftest.er1
9285   cat conftest.err >&5
9286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287   (exit $ac_status); } &&
9288          { ac_try='test -z "$ac_c_werror_flag"
9289                          || test ! -s conftest.err'
9290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291   (eval $ac_try) 2>&5
9292   ac_status=$?
9293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294   (exit $ac_status); }; } &&
9295          { ac_try='test -s conftest$ac_exeext'
9296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297   (eval $ac_try) 2>&5
9298   ac_status=$?
9299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300   (exit $ac_status); }; }; then
9301
9302 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9303 }'`
9304 # Check for a 64-bit object if we didn't find anything.
9305 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; }
9306 }'`; fi
9307 else
9308   echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9310
9311 fi
9312 rm -f conftest.err conftest.$ac_objext \
9313       conftest$ac_exeext conftest.$ac_ext
9314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9315
9316          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9317           # Warning - without using the other run time loading flags,
9318           # -berok will link without error, but may produce a broken library.
9319           no_undefined_flag=' ${wl}-bernotok'
9320           allow_undefined_flag=' ${wl}-berok'
9321           # -bexpall does not export symbols beginning with underscore (_)
9322           always_export_symbols=yes
9323           # Exported symbols can be pulled into shared objects from archives
9324           whole_archive_flag_spec=' '
9325           archive_cmds_need_lc=yes
9326           # This is similar to how AIX traditionally builds it's shared libraries.
9327           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'
9328         fi
9329       fi
9330       ;;
9331
9332     amigaos*)
9333       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)'
9334       hardcode_libdir_flag_spec='-L$libdir'
9335       hardcode_minus_L=yes
9336       # see comment about different semantics on the GNU ld section
9337       ld_shlibs=no
9338       ;;
9339
9340     bsdi[45]*)
9341       export_dynamic_flag_spec=-rdynamic
9342       ;;
9343
9344     cygwin* | mingw* | pw32*)
9345       # When not using gcc, we currently assume that we are using
9346       # Microsoft Visual C++.
9347       # hardcode_libdir_flag_spec is actually meaningless, as there is
9348       # no search path for DLLs.
9349       hardcode_libdir_flag_spec=' '
9350       allow_undefined_flag=unsupported
9351       # Tell ltmain to make .lib files, not .a files.
9352       libext=lib
9353       # Tell ltmain to make .dll files, not .so files.
9354       shrext_cmds=".dll"
9355       # FIXME: Setting linknames here is a bad hack.
9356       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9357       # The linker will automatically build a .lib file if we build a DLL.
9358       old_archive_From_new_cmds='true'
9359       # FIXME: Should let the user specify the lib program.
9360       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9361       fix_srcfile_path='`cygpath -w "$srcfile"`'
9362       enable_shared_with_static_runtimes=yes
9363       ;;
9364
9365     darwin* | rhapsody*)
9366       case "$host_os" in
9367         rhapsody* | darwin1.[012])
9368          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9369          ;;
9370        *) # Darwin 1.3 on
9371          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9372            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9373          else
9374            case ${MACOSX_DEPLOYMENT_TARGET} in
9375              10.[012])
9376                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9377                ;;
9378              10.*)
9379                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9380                ;;
9381            esac
9382          fi
9383          ;;
9384       esac
9385       archive_cmds_need_lc=no
9386       hardcode_direct=no
9387       hardcode_automatic=yes
9388       hardcode_shlibpath_var=unsupported
9389       whole_archive_flag_spec=''
9390       link_all_deplibs=yes
9391     if test "$GCC" = yes ; then
9392         output_verbose_link_cmd='echo'
9393         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9394       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9395       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9396       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}'
9397       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}'
9398     else
9399       case $cc_basename in
9400         xlc*)
9401          output_verbose_link_cmd='echo'
9402          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9403          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9404           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9405          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}'
9406           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}'
9407           ;;
9408        *)
9409          ld_shlibs=no
9410           ;;
9411       esac
9412     fi
9413       ;;
9414
9415     dgux*)
9416       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417       hardcode_libdir_flag_spec='-L$libdir'
9418       hardcode_shlibpath_var=no
9419       ;;
9420
9421     freebsd1*)
9422       ld_shlibs=no
9423       ;;
9424
9425     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9426     # support.  Future versions do this automatically, but an explicit c++rt0.o
9427     # does not break anything, and helps significantly (at the cost of a little
9428     # extra space).
9429     freebsd2.2*)
9430       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9431       hardcode_libdir_flag_spec='-R$libdir'
9432       hardcode_direct=yes
9433       hardcode_shlibpath_var=no
9434       ;;
9435
9436     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9437     freebsd2*)
9438       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9439       hardcode_direct=yes
9440       hardcode_minus_L=yes
9441       hardcode_shlibpath_var=no
9442       ;;
9443
9444     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9445     freebsd* | kfreebsd*-gnu | dragonfly*)
9446       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9447       hardcode_libdir_flag_spec='-R$libdir'
9448       hardcode_direct=yes
9449       hardcode_shlibpath_var=no
9450       ;;
9451
9452     hpux9*)
9453       if test "$GCC" = yes; then
9454         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'
9455       else
9456         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'
9457       fi
9458       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9459       hardcode_libdir_separator=:
9460       hardcode_direct=yes
9461
9462       # hardcode_minus_L: Not really in the search PATH,
9463       # but as the default location of the library.
9464       hardcode_minus_L=yes
9465       export_dynamic_flag_spec='${wl}-E'
9466       ;;
9467
9468     hpux10* | hpux11*)
9469       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9470         case "$host_cpu" in
9471         hppa*64*|ia64*)
9472           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9473           ;;
9474         *)
9475           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9476           ;;
9477         esac
9478       else
9479         case "$host_cpu" in
9480         hppa*64*|ia64*)
9481           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9482           ;;
9483         *)
9484           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9485           ;;
9486         esac
9487       fi
9488       if test "$with_gnu_ld" = no; then
9489         case "$host_cpu" in
9490         hppa*64*)
9491           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9492           hardcode_libdir_flag_spec_ld='+b $libdir'
9493           hardcode_libdir_separator=:
9494           hardcode_direct=no
9495           hardcode_shlibpath_var=no
9496           ;;
9497         ia64*)
9498           hardcode_libdir_flag_spec='-L$libdir'
9499           hardcode_direct=no
9500           hardcode_shlibpath_var=no
9501
9502           # hardcode_minus_L: Not really in the search PATH,
9503           # but as the default location of the library.
9504           hardcode_minus_L=yes
9505           ;;
9506         *)
9507           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9508           hardcode_libdir_separator=:
9509           hardcode_direct=yes
9510           export_dynamic_flag_spec='${wl}-E'
9511
9512           # hardcode_minus_L: Not really in the search PATH,
9513           # but as the default location of the library.
9514           hardcode_minus_L=yes
9515           ;;
9516         esac
9517       fi
9518       ;;
9519
9520     irix5* | irix6* | nonstopux*)
9521       if test "$GCC" = yes; then
9522         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'
9523       else
9524         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'
9525         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9526       fi
9527       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9528       hardcode_libdir_separator=:
9529       link_all_deplibs=yes
9530       ;;
9531
9532     netbsd*)
9533       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9534         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9535       else
9536         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9537       fi
9538       hardcode_libdir_flag_spec='-R$libdir'
9539       hardcode_direct=yes
9540       hardcode_shlibpath_var=no
9541       ;;
9542
9543     newsos6)
9544       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9545       hardcode_direct=yes
9546       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9547       hardcode_libdir_separator=:
9548       hardcode_shlibpath_var=no
9549       ;;
9550
9551     openbsd*)
9552       hardcode_direct=yes
9553       hardcode_shlibpath_var=no
9554       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9555         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9556         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9557         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9558         export_dynamic_flag_spec='${wl}-E'
9559       else
9560        case $host_os in
9561          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9562            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9563            hardcode_libdir_flag_spec='-R$libdir'
9564            ;;
9565          *)
9566            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9567            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9568            ;;
9569        esac
9570       fi
9571       ;;
9572
9573     os2*)
9574       hardcode_libdir_flag_spec='-L$libdir'
9575       hardcode_minus_L=yes
9576       allow_undefined_flag=unsupported
9577       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'
9578       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9579       ;;
9580
9581     osf3*)
9582       if test "$GCC" = yes; then
9583         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9584         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'
9585       else
9586         allow_undefined_flag=' -expect_unresolved \*'
9587         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'
9588       fi
9589       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9590       hardcode_libdir_separator=:
9591       ;;
9592
9593     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9594       if test "$GCC" = yes; then
9595         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9596         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'
9597         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9598       else
9599         allow_undefined_flag=' -expect_unresolved \*'
9600         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'
9601         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9602         $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'
9603
9604         # Both c and cxx compiler support -rpath directly
9605         hardcode_libdir_flag_spec='-rpath $libdir'
9606       fi
9607       hardcode_libdir_separator=:
9608       ;;
9609
9610     sco3.2v5*)
9611       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9612       hardcode_shlibpath_var=no
9613       export_dynamic_flag_spec='${wl}-Bexport'
9614       runpath_var=LD_RUN_PATH
9615       hardcode_runpath_var=yes
9616       ;;
9617
9618     solaris*)
9619       no_undefined_flag=' -z text'
9620       if test "$GCC" = yes; then
9621         wlarc='${wl}'
9622         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9623         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9624           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9625       else
9626         wlarc=''
9627         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9628         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9629         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9630       fi
9631       hardcode_libdir_flag_spec='-R$libdir'
9632       hardcode_shlibpath_var=no
9633       case $host_os in
9634       solaris2.[0-5] | solaris2.[0-5].*) ;;
9635       *)
9636         # The compiler driver will combine linker options so we
9637         # cannot just pass the convience library names through
9638         # without $wl, iff we do not link with $LD.
9639         # Luckily, gcc supports the same syntax we need for Sun Studio.
9640         # Supported since Solaris 2.6 (maybe 2.5.1?)
9641         case $wlarc in
9642         '')
9643           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9644         *)
9645           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' ;;
9646         esac ;;
9647       esac
9648       link_all_deplibs=yes
9649       ;;
9650
9651     sunos4*)
9652       if test "x$host_vendor" = xsequent; then
9653         # Use $CC to link under sequent, because it throws in some extra .o
9654         # files that make .init and .fini sections work.
9655         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9656       else
9657         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9658       fi
9659       hardcode_libdir_flag_spec='-L$libdir'
9660       hardcode_direct=yes
9661       hardcode_minus_L=yes
9662       hardcode_shlibpath_var=no
9663       ;;
9664
9665     sysv4)
9666       case $host_vendor in
9667         sni)
9668           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9669           hardcode_direct=yes # is this really true???
9670         ;;
9671         siemens)
9672           ## LD is ld it makes a PLAMLIB
9673           ## CC just makes a GrossModule.
9674           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9675           reload_cmds='$CC -r -o $output$reload_objs'
9676           hardcode_direct=no
9677         ;;
9678         motorola)
9679           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9680           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9681         ;;
9682       esac
9683       runpath_var='LD_RUN_PATH'
9684       hardcode_shlibpath_var=no
9685       ;;
9686
9687     sysv4.3*)
9688       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9689       hardcode_shlibpath_var=no
9690       export_dynamic_flag_spec='-Bexport'
9691       ;;
9692
9693     sysv4*MP*)
9694       if test -d /usr/nec; then
9695         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696         hardcode_shlibpath_var=no
9697         runpath_var=LD_RUN_PATH
9698         hardcode_runpath_var=yes
9699         ld_shlibs=yes
9700       fi
9701       ;;
9702
9703     sysv4.2uw2*)
9704       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9705       hardcode_direct=yes
9706       hardcode_minus_L=no
9707       hardcode_shlibpath_var=no
9708       hardcode_runpath_var=yes
9709       runpath_var=LD_RUN_PATH
9710       ;;
9711
9712    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9713       no_undefined_flag='${wl}-z ${wl}text'
9714       if test "$GCC" = yes; then
9715         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9716       else
9717         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9718       fi
9719       runpath_var='LD_RUN_PATH'
9720       hardcode_shlibpath_var=no
9721       ;;
9722
9723     sysv5*)
9724       no_undefined_flag=' -z text'
9725       # $CC -shared without GNU ld will not create a library from C++
9726       # object files and a static libstdc++, better avoid it by now
9727       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9729                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9730       hardcode_libdir_flag_spec=
9731       hardcode_shlibpath_var=no
9732       runpath_var='LD_RUN_PATH'
9733       ;;
9734
9735     uts4*)
9736       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9737       hardcode_libdir_flag_spec='-L$libdir'
9738       hardcode_shlibpath_var=no
9739       ;;
9740
9741     *)
9742       ld_shlibs=no
9743       ;;
9744     esac
9745   fi
9746
9747 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9748 echo "${ECHO_T}$ld_shlibs" >&6
9749 test "$ld_shlibs" = no && can_build_shared=no
9750
9751 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9752 if test "$GCC" = yes; then
9753   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9754 fi
9755
9756 #
9757 # Do we need to explicitly link libc?
9758 #
9759 case "x$archive_cmds_need_lc" in
9760 x|xyes)
9761   # Assume -lc should be added
9762   archive_cmds_need_lc=yes
9763
9764   if test "$enable_shared" = yes && test "$GCC" = yes; then
9765     case $archive_cmds in
9766     *'~'*)
9767       # FIXME: we may have to deal with multi-command sequences.
9768       ;;
9769     '$CC '*)
9770       # Test whether the compiler implicitly links with -lc since on some
9771       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9772       # to ld, don't add -lc before -lgcc.
9773       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9774 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9775       $rm conftest*
9776       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9777
9778       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9779   (eval $ac_compile) 2>&5
9780   ac_status=$?
9781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782   (exit $ac_status); } 2>conftest.err; then
9783         soname=conftest
9784         lib=conftest
9785         libobjs=conftest.$ac_objext
9786         deplibs=
9787         wl=$lt_prog_compiler_wl
9788         compiler_flags=-v
9789         linker_flags=-v
9790         verstring=
9791         output_objdir=.
9792         libname=conftest
9793         lt_save_allow_undefined_flag=$allow_undefined_flag
9794         allow_undefined_flag=
9795         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9796   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9797   ac_status=$?
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); }
9800         then
9801           archive_cmds_need_lc=no
9802         else
9803           archive_cmds_need_lc=yes
9804         fi
9805         allow_undefined_flag=$lt_save_allow_undefined_flag
9806       else
9807         cat conftest.err 1>&5
9808       fi
9809       $rm conftest*
9810       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9811 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9812       ;;
9813     esac
9814   fi
9815   ;;
9816 esac
9817
9818 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9819 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9820 library_names_spec=
9821 libname_spec='lib$name'
9822 soname_spec=
9823 shrext_cmds=".so"
9824 postinstall_cmds=
9825 postuninstall_cmds=
9826 finish_cmds=
9827 finish_eval=
9828 shlibpath_var=
9829 shlibpath_overrides_runpath=unknown
9830 version_type=none
9831 dynamic_linker="$host_os ld.so"
9832 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9833 if test "$GCC" = yes; then
9834   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9835   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9836     # if the path contains ";" then we assume it to be the separator
9837     # otherwise default to the standard path separator (i.e. ":") - it is
9838     # assumed that no part of a normal pathname contains ";" but that should
9839     # okay in the real world where ";" in dirpaths is itself problematic.
9840     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9841   else
9842     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9843   fi
9844 else
9845   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9846 fi
9847 need_lib_prefix=unknown
9848 hardcode_into_libs=no
9849
9850 # when you set need_version to no, make sure it does not cause -set_version
9851 # flags to be left without arguments
9852 need_version=unknown
9853
9854 case $host_os in
9855 aix3*)
9856   version_type=linux
9857   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9858   shlibpath_var=LIBPATH
9859
9860   # AIX 3 has no versioning support, so we append a major version to the name.
9861   soname_spec='${libname}${release}${shared_ext}$major'
9862   ;;
9863
9864 aix4* | aix5*)
9865   version_type=linux
9866   need_lib_prefix=no
9867   need_version=no
9868   hardcode_into_libs=yes
9869   if test "$host_cpu" = ia64; then
9870     # AIX 5 supports IA64
9871     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9872     shlibpath_var=LD_LIBRARY_PATH
9873   else
9874     # With GCC up to 2.95.x, collect2 would create an import file
9875     # for dependence libraries.  The import file would start with
9876     # the line `#! .'.  This would cause the generated library to
9877     # depend on `.', always an invalid library.  This was fixed in
9878     # development snapshots of GCC prior to 3.0.
9879     case $host_os in
9880       aix4 | aix4.[01] | aix4.[01].*)
9881       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9882            echo ' yes '
9883            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9884         :
9885       else
9886         can_build_shared=no
9887       fi
9888       ;;
9889     esac
9890     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9891     # soname into executable. Probably we can add versioning support to
9892     # collect2, so additional links can be useful in future.
9893     if test "$aix_use_runtimelinking" = yes; then
9894       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9895       # instead of lib<name>.a to let people know that these are not
9896       # typical AIX shared libraries.
9897       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9898     else
9899       # We preserve .a as extension for shared libraries through AIX4.2
9900       # and later when we are not doing run time linking.
9901       library_names_spec='${libname}${release}.a $libname.a'
9902       soname_spec='${libname}${release}${shared_ext}$major'
9903     fi
9904     shlibpath_var=LIBPATH
9905   fi
9906   ;;
9907
9908 amigaos*)
9909   library_names_spec='$libname.ixlibrary $libname.a'
9910   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9911   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'
9912   ;;
9913
9914 beos*)
9915   library_names_spec='${libname}${shared_ext}'
9916   dynamic_linker="$host_os ld.so"
9917   shlibpath_var=LIBRARY_PATH
9918   ;;
9919
9920 bsdi[45]*)
9921   version_type=linux
9922   need_version=no
9923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924   soname_spec='${libname}${release}${shared_ext}$major'
9925   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9926   shlibpath_var=LD_LIBRARY_PATH
9927   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9928   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9929   # the default ld.so.conf also contains /usr/contrib/lib and
9930   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9931   # libtool to hard-code these into programs
9932   ;;
9933
9934 cygwin* | mingw* | pw32*)
9935   version_type=windows
9936   shrext_cmds=".dll"
9937   need_version=no
9938   need_lib_prefix=no
9939
9940   case $GCC,$host_os in
9941   yes,cygwin* | yes,mingw* | yes,pw32*)
9942     library_names_spec='$libname.dll.a'
9943     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9944     postinstall_cmds='base_file=`basename \${file}`~
9945       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9946       dldir=$destdir/`dirname \$dlpath`~
9947       test -d \$dldir || mkdir -p \$dldir~
9948       $install_prog $dir/$dlname \$dldir/$dlname'
9949     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9950       dlpath=$dir/\$dldll~
9951        $rm \$dlpath'
9952     shlibpath_overrides_runpath=yes
9953
9954     case $host_os in
9955     cygwin*)
9956       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9957       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9958       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9959       ;;
9960     mingw*)
9961       # MinGW DLLs use traditional 'lib' prefix
9962       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9963       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9964       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9965         # It is most probably a Windows format PATH printed by
9966         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9967         # path with ; separators, and with drive letters. We can handle the
9968         # drive letters (cygwin fileutils understands them), so leave them,
9969         # especially as we might pass files found there to a mingw objdump,
9970         # which wouldn't understand a cygwinified path. Ahh.
9971         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9972       else
9973         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9974       fi
9975       ;;
9976     pw32*)
9977       # pw32 DLLs use 'pw' prefix rather than 'lib'
9978       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9979       ;;
9980     esac
9981     ;;
9982
9983   *)
9984     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9985     ;;
9986   esac
9987   dynamic_linker='Win32 ld.exe'
9988   # FIXME: first we should search . and the directory the executable is in
9989   shlibpath_var=PATH
9990   ;;
9991
9992 darwin* | rhapsody*)
9993   dynamic_linker="$host_os dyld"
9994   version_type=darwin
9995   need_lib_prefix=no
9996   need_version=no
9997   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9998   soname_spec='${libname}${release}${major}$shared_ext'
9999   shlibpath_overrides_runpath=yes
10000   shlibpath_var=DYLD_LIBRARY_PATH
10001   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10002   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10003   if test "$GCC" = yes; then
10004     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"`
10005   else
10006     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10007   fi
10008   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10009   ;;
10010
10011 dgux*)
10012   version_type=linux
10013   need_lib_prefix=no
10014   need_version=no
10015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10016   soname_spec='${libname}${release}${shared_ext}$major'
10017   shlibpath_var=LD_LIBRARY_PATH
10018   ;;
10019
10020 freebsd1*)
10021   dynamic_linker=no
10022   ;;
10023
10024 kfreebsd*-gnu)
10025   version_type=linux
10026   need_lib_prefix=no
10027   need_version=no
10028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10029   soname_spec='${libname}${release}${shared_ext}$major'
10030   shlibpath_var=LD_LIBRARY_PATH
10031   shlibpath_overrides_runpath=no
10032   hardcode_into_libs=yes
10033   dynamic_linker='GNU ld.so'
10034   ;;
10035
10036 freebsd* | dragonfly*)
10037   # DragonFly does not have aout.  When/if they implement a new
10038   # versioning mechanism, adjust this.
10039   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10040   version_type=freebsd-$objformat
10041   case $version_type in
10042     freebsd-elf*)
10043       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10044       need_version=no
10045       need_lib_prefix=no
10046       ;;
10047     freebsd-*)
10048       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10049       need_version=yes
10050       ;;
10051   esac
10052   shlibpath_var=LD_LIBRARY_PATH
10053   case $host_os in
10054   freebsd2*)
10055     shlibpath_overrides_runpath=yes
10056     ;;
10057   freebsd3.[01]* | freebsdelf3.[01]*)
10058     shlibpath_overrides_runpath=yes
10059     hardcode_into_libs=yes
10060     ;;
10061   *) # from 3.2 on
10062     shlibpath_overrides_runpath=no
10063     hardcode_into_libs=yes
10064     ;;
10065   esac
10066   ;;
10067
10068 gnu*)
10069   version_type=linux
10070   need_lib_prefix=no
10071   need_version=no
10072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10073   soname_spec='${libname}${release}${shared_ext}$major'
10074   shlibpath_var=LD_LIBRARY_PATH
10075   hardcode_into_libs=yes
10076   ;;
10077
10078 hpux9* | hpux10* | hpux11*)
10079   # Give a soname corresponding to the major version so that dld.sl refuses to
10080   # link against other versions.
10081   version_type=sunos
10082   need_lib_prefix=no
10083   need_version=no
10084   case "$host_cpu" in
10085   ia64*)
10086     shrext_cmds='.so'
10087     hardcode_into_libs=yes
10088     dynamic_linker="$host_os dld.so"
10089     shlibpath_var=LD_LIBRARY_PATH
10090     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10091     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10092     soname_spec='${libname}${release}${shared_ext}$major'
10093     if test "X$HPUX_IA64_MODE" = X32; then
10094       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10095     else
10096       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10097     fi
10098     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10099     ;;
10100    hppa*64*)
10101      shrext_cmds='.sl'
10102      hardcode_into_libs=yes
10103      dynamic_linker="$host_os dld.sl"
10104      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10105      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10106      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107      soname_spec='${libname}${release}${shared_ext}$major'
10108      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10109      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10110      ;;
10111    *)
10112     shrext_cmds='.sl'
10113     dynamic_linker="$host_os dld.sl"
10114     shlibpath_var=SHLIB_PATH
10115     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10116     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117     soname_spec='${libname}${release}${shared_ext}$major'
10118     ;;
10119   esac
10120   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10121   postinstall_cmds='chmod 555 $lib'
10122   ;;
10123
10124 irix5* | irix6* | nonstopux*)
10125   case $host_os in
10126     nonstopux*) version_type=nonstopux ;;
10127     *)
10128         if test "$lt_cv_prog_gnu_ld" = yes; then
10129                 version_type=linux
10130         else
10131                 version_type=irix
10132         fi ;;
10133   esac
10134   need_lib_prefix=no
10135   need_version=no
10136   soname_spec='${libname}${release}${shared_ext}$major'
10137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10138   case $host_os in
10139   irix5* | nonstopux*)
10140     libsuff= shlibsuff=
10141     ;;
10142   *)
10143     case $LD in # libtool.m4 will add one of these switches to LD
10144     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10145       libsuff= shlibsuff= libmagic=32-bit;;
10146     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10147       libsuff=32 shlibsuff=N32 libmagic=N32;;
10148     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10149       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10150     *) libsuff= shlibsuff= libmagic=never-match;;
10151     esac
10152     ;;
10153   esac
10154   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10155   shlibpath_overrides_runpath=no
10156   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10157   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10158   hardcode_into_libs=yes
10159   ;;
10160
10161 # No shared lib support for Linux oldld, aout, or coff.
10162 linux*oldld* | linux*aout* | linux*coff*)
10163   dynamic_linker=no
10164   ;;
10165
10166 # This must be Linux ELF.
10167 linux*)
10168   version_type=linux
10169   need_lib_prefix=no
10170   need_version=no
10171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172   soname_spec='${libname}${release}${shared_ext}$major'
10173   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10174   shlibpath_var=LD_LIBRARY_PATH
10175   shlibpath_overrides_runpath=no
10176   # This implies no fast_install, which is unacceptable.
10177   # Some rework will be needed to allow for fast_install
10178   # before this can be enabled.
10179   hardcode_into_libs=yes
10180
10181   # Append ld.so.conf contents to the search path
10182   if test -f /etc/ld.so.conf; then
10183     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' ' '`
10184     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10185   fi
10186
10187   # We used to test for /lib/ld.so.1 and disable shared libraries on
10188   # powerpc, because MkLinux only supported shared libraries with the
10189   # GNU dynamic linker.  Since this was broken with cross compilers,
10190   # most powerpc-linux boxes support dynamic linking these days and
10191   # people can always --disable-shared, the test was removed, and we
10192   # assume the GNU/Linux dynamic linker is in use.
10193   dynamic_linker='GNU/Linux ld.so'
10194   ;;
10195
10196 knetbsd*-gnu)
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   shlibpath_var=LD_LIBRARY_PATH
10203   shlibpath_overrides_runpath=no
10204   hardcode_into_libs=yes
10205   dynamic_linker='GNU ld.so'
10206   ;;
10207
10208 netbsd*)
10209   version_type=sunos
10210   need_lib_prefix=no
10211   need_version=no
10212   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10214     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10215     dynamic_linker='NetBSD (a.out) ld.so'
10216   else
10217     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10218     soname_spec='${libname}${release}${shared_ext}$major'
10219     dynamic_linker='NetBSD ld.elf_so'
10220   fi
10221   shlibpath_var=LD_LIBRARY_PATH
10222   shlibpath_overrides_runpath=yes
10223   hardcode_into_libs=yes
10224   ;;
10225
10226 newsos6)
10227   version_type=linux
10228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10229   shlibpath_var=LD_LIBRARY_PATH
10230   shlibpath_overrides_runpath=yes
10231   ;;
10232
10233 nto-qnx*)
10234   version_type=linux
10235   need_lib_prefix=no
10236   need_version=no
10237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238   soname_spec='${libname}${release}${shared_ext}$major'
10239   shlibpath_var=LD_LIBRARY_PATH
10240   shlibpath_overrides_runpath=yes
10241   ;;
10242
10243 openbsd*)
10244   version_type=sunos
10245   need_lib_prefix=no
10246   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10247   case $host_os in
10248     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10249     *)                         need_version=no  ;;
10250   esac
10251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10252   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10253   shlibpath_var=LD_LIBRARY_PATH
10254   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10255     case $host_os in
10256       openbsd2.[89] | openbsd2.[89].*)
10257         shlibpath_overrides_runpath=no
10258         ;;
10259       *)
10260         shlibpath_overrides_runpath=yes
10261         ;;
10262       esac
10263   else
10264     shlibpath_overrides_runpath=yes
10265   fi
10266   ;;
10267
10268 os2*)
10269   libname_spec='$name'
10270   shrext_cmds=".dll"
10271   need_lib_prefix=no
10272   library_names_spec='$libname${shared_ext} $libname.a'
10273   dynamic_linker='OS/2 ld.exe'
10274   shlibpath_var=LIBPATH
10275   ;;
10276
10277 osf3* | osf4* | osf5*)
10278   version_type=osf
10279   need_lib_prefix=no
10280   need_version=no
10281   soname_spec='${libname}${release}${shared_ext}$major'
10282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10283   shlibpath_var=LD_LIBRARY_PATH
10284   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10285   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10286   ;;
10287
10288 sco3.2v5*)
10289   version_type=osf
10290   soname_spec='${libname}${release}${shared_ext}$major'
10291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292   shlibpath_var=LD_LIBRARY_PATH
10293   ;;
10294
10295 solaris*)
10296   version_type=linux
10297   need_lib_prefix=no
10298   need_version=no
10299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300   soname_spec='${libname}${release}${shared_ext}$major'
10301   shlibpath_var=LD_LIBRARY_PATH
10302   shlibpath_overrides_runpath=yes
10303   hardcode_into_libs=yes
10304   # ldd complains unless libraries are executable
10305   postinstall_cmds='chmod +x $lib'
10306   ;;
10307
10308 sunos4*)
10309   version_type=sunos
10310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10311   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10312   shlibpath_var=LD_LIBRARY_PATH
10313   shlibpath_overrides_runpath=yes
10314   if test "$with_gnu_ld" = yes; then
10315     need_lib_prefix=no
10316   fi
10317   need_version=yes
10318   ;;
10319
10320 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10321   version_type=linux
10322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10323   soname_spec='${libname}${release}${shared_ext}$major'
10324   shlibpath_var=LD_LIBRARY_PATH
10325   case $host_vendor in
10326     sni)
10327       shlibpath_overrides_runpath=no
10328       need_lib_prefix=no
10329       export_dynamic_flag_spec='${wl}-Blargedynsym'
10330       runpath_var=LD_RUN_PATH
10331       ;;
10332     siemens)
10333       need_lib_prefix=no
10334       ;;
10335     motorola)
10336       need_lib_prefix=no
10337       need_version=no
10338       shlibpath_overrides_runpath=no
10339       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10340       ;;
10341   esac
10342   ;;
10343
10344 sysv4*MP*)
10345   if test -d /usr/nec ;then
10346     version_type=linux
10347     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10348     soname_spec='$libname${shared_ext}.$major'
10349     shlibpath_var=LD_LIBRARY_PATH
10350   fi
10351   ;;
10352
10353 uts4*)
10354   version_type=linux
10355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356   soname_spec='${libname}${release}${shared_ext}$major'
10357   shlibpath_var=LD_LIBRARY_PATH
10358   ;;
10359
10360 *)
10361   dynamic_linker=no
10362   ;;
10363 esac
10364 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10365 echo "${ECHO_T}$dynamic_linker" >&6
10366 test "$dynamic_linker" = no && can_build_shared=no
10367
10368 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10369 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10370 hardcode_action=
10371 if test -n "$hardcode_libdir_flag_spec" || \
10372    test -n "$runpath_var" || \
10373    test "X$hardcode_automatic" = "Xyes" ; then
10374
10375   # We can hardcode non-existant directories.
10376   if test "$hardcode_direct" != no &&
10377      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10378      # have to relink, otherwise we might link with an installed library
10379      # when we should be linking with a yet-to-be-installed one
10380      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10381      test "$hardcode_minus_L" != no; then
10382     # Linking always hardcodes the temporary library directory.
10383     hardcode_action=relink
10384   else
10385     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10386     hardcode_action=immediate
10387   fi
10388 else
10389   # We cannot hardcode anything, or else we can only hardcode existing
10390   # directories.
10391   hardcode_action=unsupported
10392 fi
10393 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10394 echo "${ECHO_T}$hardcode_action" >&6
10395
10396 if test "$hardcode_action" = relink; then
10397   # Fast installation is not supported
10398   enable_fast_install=no
10399 elif test "$shlibpath_overrides_runpath" = yes ||
10400      test "$enable_shared" = no; then
10401   # Fast installation is not necessary
10402   enable_fast_install=needless
10403 fi
10404
10405 striplib=
10406 old_striplib=
10407 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10408 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10409 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10410   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10411   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10412   echo "$as_me:$LINENO: result: yes" >&5
10413 echo "${ECHO_T}yes" >&6
10414 else
10415 # FIXME - insert some real tests, host_os isn't really good enough
10416   case $host_os in
10417    darwin*)
10418        if test -n "$STRIP" ; then
10419          striplib="$STRIP -x"
10420          echo "$as_me:$LINENO: result: yes" >&5
10421 echo "${ECHO_T}yes" >&6
10422        else
10423   echo "$as_me:$LINENO: result: no" >&5
10424 echo "${ECHO_T}no" >&6
10425 fi
10426        ;;
10427    *)
10428   echo "$as_me:$LINENO: result: no" >&5
10429 echo "${ECHO_T}no" >&6
10430     ;;
10431   esac
10432 fi
10433
10434 if test "x$enable_dlopen" != xyes; then
10435   enable_dlopen=unknown
10436   enable_dlopen_self=unknown
10437   enable_dlopen_self_static=unknown
10438 else
10439   lt_cv_dlopen=no
10440   lt_cv_dlopen_libs=
10441
10442   case $host_os in
10443   beos*)
10444     lt_cv_dlopen="load_add_on"
10445     lt_cv_dlopen_libs=
10446     lt_cv_dlopen_self=yes
10447     ;;
10448
10449   mingw* | pw32*)
10450     lt_cv_dlopen="LoadLibrary"
10451     lt_cv_dlopen_libs=
10452    ;;
10453
10454   cygwin*)
10455     lt_cv_dlopen="dlopen"
10456     lt_cv_dlopen_libs=
10457    ;;
10458
10459   darwin*)
10460   # if libdl is installed we need to link against it
10461     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10462 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10463 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10464   echo $ECHO_N "(cached) $ECHO_C" >&6
10465 else
10466   ac_check_lib_save_LIBS=$LIBS
10467 LIBS="-ldl  $LIBS"
10468 cat >conftest.$ac_ext <<_ACEOF
10469 /* confdefs.h.  */
10470 _ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h.  */
10474
10475 /* Override any gcc2 internal prototype to avoid an error.  */
10476 #ifdef __cplusplus
10477 extern "C"
10478 #endif
10479 /* We use char because int might match the return type of a gcc2
10480    builtin and then its argument prototype would still apply.  */
10481 char dlopen ();
10482 int
10483 main ()
10484 {
10485 dlopen ();
10486   ;
10487   return 0;
10488 }
10489 _ACEOF
10490 rm -f conftest.$ac_objext conftest$ac_exeext
10491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10492   (eval $ac_link) 2>conftest.er1
10493   ac_status=$?
10494   grep -v '^ *+' conftest.er1 >conftest.err
10495   rm -f conftest.er1
10496   cat conftest.err >&5
10497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498   (exit $ac_status); } &&
10499          { ac_try='test -z "$ac_c_werror_flag"
10500                          || test ! -s conftest.err'
10501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502   (eval $ac_try) 2>&5
10503   ac_status=$?
10504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505   (exit $ac_status); }; } &&
10506          { ac_try='test -s conftest$ac_exeext'
10507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508   (eval $ac_try) 2>&5
10509   ac_status=$?
10510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511   (exit $ac_status); }; }; then
10512   ac_cv_lib_dl_dlopen=yes
10513 else
10514   echo "$as_me: failed program was:" >&5
10515 sed 's/^/| /' conftest.$ac_ext >&5
10516
10517 ac_cv_lib_dl_dlopen=no
10518 fi
10519 rm -f conftest.err conftest.$ac_objext \
10520       conftest$ac_exeext conftest.$ac_ext
10521 LIBS=$ac_check_lib_save_LIBS
10522 fi
10523 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10524 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10525 if test $ac_cv_lib_dl_dlopen = yes; then
10526   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10527 else
10528
10529     lt_cv_dlopen="dyld"
10530     lt_cv_dlopen_libs=
10531     lt_cv_dlopen_self=yes
10532
10533 fi
10534
10535    ;;
10536
10537   *)
10538     echo "$as_me:$LINENO: checking for shl_load" >&5
10539 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10540 if test "${ac_cv_func_shl_load+set}" = set; then
10541   echo $ECHO_N "(cached) $ECHO_C" >&6
10542 else
10543   cat >conftest.$ac_ext <<_ACEOF
10544 /* confdefs.h.  */
10545 _ACEOF
10546 cat confdefs.h >>conftest.$ac_ext
10547 cat >>conftest.$ac_ext <<_ACEOF
10548 /* end confdefs.h.  */
10549 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10550    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10551 #define shl_load innocuous_shl_load
10552
10553 /* System header to define __stub macros and hopefully few prototypes,
10554     which can conflict with char shl_load (); below.
10555     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10556     <limits.h> exists even on freestanding compilers.  */
10557
10558 #ifdef __STDC__
10559 # include <limits.h>
10560 #else
10561 # include <assert.h>
10562 #endif
10563
10564 #undef shl_load
10565
10566 /* Override any gcc2 internal prototype to avoid an error.  */
10567 #ifdef __cplusplus
10568 extern "C"
10569 {
10570 #endif
10571 /* We use char because int might match the return type of a gcc2
10572    builtin and then its argument prototype would still apply.  */
10573 char shl_load ();
10574 /* The GNU C library defines this for functions which it implements
10575     to always fail with ENOSYS.  Some functions are actually named
10576     something starting with __ and the normal name is an alias.  */
10577 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10578 choke me
10579 #else
10580 char (*f) () = shl_load;
10581 #endif
10582 #ifdef __cplusplus
10583 }
10584 #endif
10585
10586 int
10587 main ()
10588 {
10589 return f != shl_load;
10590   ;
10591   return 0;
10592 }
10593 _ACEOF
10594 rm -f conftest.$ac_objext conftest$ac_exeext
10595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10596   (eval $ac_link) 2>conftest.er1
10597   ac_status=$?
10598   grep -v '^ *+' conftest.er1 >conftest.err
10599   rm -f conftest.er1
10600   cat conftest.err >&5
10601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602   (exit $ac_status); } &&
10603          { ac_try='test -z "$ac_c_werror_flag"
10604                          || test ! -s conftest.err'
10605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10606   (eval $ac_try) 2>&5
10607   ac_status=$?
10608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609   (exit $ac_status); }; } &&
10610          { ac_try='test -s conftest$ac_exeext'
10611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612   (eval $ac_try) 2>&5
10613   ac_status=$?
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); }; }; then
10616   ac_cv_func_shl_load=yes
10617 else
10618   echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10620
10621 ac_cv_func_shl_load=no
10622 fi
10623 rm -f conftest.err conftest.$ac_objext \
10624       conftest$ac_exeext conftest.$ac_ext
10625 fi
10626 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10627 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10628 if test $ac_cv_func_shl_load = yes; then
10629   lt_cv_dlopen="shl_load"
10630 else
10631   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10632 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10633 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10634   echo $ECHO_N "(cached) $ECHO_C" >&6
10635 else
10636   ac_check_lib_save_LIBS=$LIBS
10637 LIBS="-ldld  $LIBS"
10638 cat >conftest.$ac_ext <<_ACEOF
10639 /* confdefs.h.  */
10640 _ACEOF
10641 cat confdefs.h >>conftest.$ac_ext
10642 cat >>conftest.$ac_ext <<_ACEOF
10643 /* end confdefs.h.  */
10644
10645 /* Override any gcc2 internal prototype to avoid an error.  */
10646 #ifdef __cplusplus
10647 extern "C"
10648 #endif
10649 /* We use char because int might match the return type of a gcc2
10650    builtin and then its argument prototype would still apply.  */
10651 char shl_load ();
10652 int
10653 main ()
10654 {
10655 shl_load ();
10656   ;
10657   return 0;
10658 }
10659 _ACEOF
10660 rm -f conftest.$ac_objext conftest$ac_exeext
10661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10662   (eval $ac_link) 2>conftest.er1
10663   ac_status=$?
10664   grep -v '^ *+' conftest.er1 >conftest.err
10665   rm -f conftest.er1
10666   cat conftest.err >&5
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); } &&
10669          { ac_try='test -z "$ac_c_werror_flag"
10670                          || test ! -s conftest.err'
10671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672   (eval $ac_try) 2>&5
10673   ac_status=$?
10674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675   (exit $ac_status); }; } &&
10676          { ac_try='test -s conftest$ac_exeext'
10677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678   (eval $ac_try) 2>&5
10679   ac_status=$?
10680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681   (exit $ac_status); }; }; then
10682   ac_cv_lib_dld_shl_load=yes
10683 else
10684   echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10686
10687 ac_cv_lib_dld_shl_load=no
10688 fi
10689 rm -f conftest.err conftest.$ac_objext \
10690       conftest$ac_exeext conftest.$ac_ext
10691 LIBS=$ac_check_lib_save_LIBS
10692 fi
10693 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10694 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10695 if test $ac_cv_lib_dld_shl_load = yes; then
10696   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10697 else
10698   echo "$as_me:$LINENO: checking for dlopen" >&5
10699 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10700 if test "${ac_cv_func_dlopen+set}" = set; then
10701   echo $ECHO_N "(cached) $ECHO_C" >&6
10702 else
10703   cat >conftest.$ac_ext <<_ACEOF
10704 /* confdefs.h.  */
10705 _ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h.  */
10709 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10711 #define dlopen innocuous_dlopen
10712
10713 /* System header to define __stub macros and hopefully few prototypes,
10714     which can conflict with char dlopen (); below.
10715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10716     <limits.h> exists even on freestanding compilers.  */
10717
10718 #ifdef __STDC__
10719 # include <limits.h>
10720 #else
10721 # include <assert.h>
10722 #endif
10723
10724 #undef dlopen
10725
10726 /* Override any gcc2 internal prototype to avoid an error.  */
10727 #ifdef __cplusplus
10728 extern "C"
10729 {
10730 #endif
10731 /* We use char because int might match the return type of a gcc2
10732    builtin and then its argument prototype would still apply.  */
10733 char dlopen ();
10734 /* The GNU C library defines this for functions which it implements
10735     to always fail with ENOSYS.  Some functions are actually named
10736     something starting with __ and the normal name is an alias.  */
10737 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10738 choke me
10739 #else
10740 char (*f) () = dlopen;
10741 #endif
10742 #ifdef __cplusplus
10743 }
10744 #endif
10745
10746 int
10747 main ()
10748 {
10749 return f != dlopen;
10750   ;
10751   return 0;
10752 }
10753 _ACEOF
10754 rm -f conftest.$ac_objext conftest$ac_exeext
10755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10756   (eval $ac_link) 2>conftest.er1
10757   ac_status=$?
10758   grep -v '^ *+' conftest.er1 >conftest.err
10759   rm -f conftest.er1
10760   cat conftest.err >&5
10761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762   (exit $ac_status); } &&
10763          { ac_try='test -z "$ac_c_werror_flag"
10764                          || test ! -s conftest.err'
10765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766   (eval $ac_try) 2>&5
10767   ac_status=$?
10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); }; } &&
10770          { ac_try='test -s conftest$ac_exeext'
10771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772   (eval $ac_try) 2>&5
10773   ac_status=$?
10774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775   (exit $ac_status); }; }; then
10776   ac_cv_func_dlopen=yes
10777 else
10778   echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10780
10781 ac_cv_func_dlopen=no
10782 fi
10783 rm -f conftest.err conftest.$ac_objext \
10784       conftest$ac_exeext conftest.$ac_ext
10785 fi
10786 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10787 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10788 if test $ac_cv_func_dlopen = yes; then
10789   lt_cv_dlopen="dlopen"
10790 else
10791   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10792 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10793 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10794   echo $ECHO_N "(cached) $ECHO_C" >&6
10795 else
10796   ac_check_lib_save_LIBS=$LIBS
10797 LIBS="-ldl  $LIBS"
10798 cat >conftest.$ac_ext <<_ACEOF
10799 /* confdefs.h.  */
10800 _ACEOF
10801 cat confdefs.h >>conftest.$ac_ext
10802 cat >>conftest.$ac_ext <<_ACEOF
10803 /* end confdefs.h.  */
10804
10805 /* Override any gcc2 internal prototype to avoid an error.  */
10806 #ifdef __cplusplus
10807 extern "C"
10808 #endif
10809 /* We use char because int might match the return type of a gcc2
10810    builtin and then its argument prototype would still apply.  */
10811 char dlopen ();
10812 int
10813 main ()
10814 {
10815 dlopen ();
10816   ;
10817   return 0;
10818 }
10819 _ACEOF
10820 rm -f conftest.$ac_objext conftest$ac_exeext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10822   (eval $ac_link) 2>conftest.er1
10823   ac_status=$?
10824   grep -v '^ *+' conftest.er1 >conftest.err
10825   rm -f conftest.er1
10826   cat conftest.err >&5
10827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828   (exit $ac_status); } &&
10829          { ac_try='test -z "$ac_c_werror_flag"
10830                          || test ! -s conftest.err'
10831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832   (eval $ac_try) 2>&5
10833   ac_status=$?
10834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835   (exit $ac_status); }; } &&
10836          { ac_try='test -s conftest$ac_exeext'
10837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838   (eval $ac_try) 2>&5
10839   ac_status=$?
10840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841   (exit $ac_status); }; }; then
10842   ac_cv_lib_dl_dlopen=yes
10843 else
10844   echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10846
10847 ac_cv_lib_dl_dlopen=no
10848 fi
10849 rm -f conftest.err conftest.$ac_objext \
10850       conftest$ac_exeext conftest.$ac_ext
10851 LIBS=$ac_check_lib_save_LIBS
10852 fi
10853 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10854 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10855 if test $ac_cv_lib_dl_dlopen = yes; then
10856   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10857 else
10858   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10859 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10860 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10861   echo $ECHO_N "(cached) $ECHO_C" >&6
10862 else
10863   ac_check_lib_save_LIBS=$LIBS
10864 LIBS="-lsvld  $LIBS"
10865 cat >conftest.$ac_ext <<_ACEOF
10866 /* confdefs.h.  */
10867 _ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h.  */
10871
10872 /* Override any gcc2 internal prototype to avoid an error.  */
10873 #ifdef __cplusplus
10874 extern "C"
10875 #endif
10876 /* We use char because int might match the return type of a gcc2
10877    builtin and then its argument prototype would still apply.  */
10878 char dlopen ();
10879 int
10880 main ()
10881 {
10882 dlopen ();
10883   ;
10884   return 0;
10885 }
10886 _ACEOF
10887 rm -f conftest.$ac_objext conftest$ac_exeext
10888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10889   (eval $ac_link) 2>conftest.er1
10890   ac_status=$?
10891   grep -v '^ *+' conftest.er1 >conftest.err
10892   rm -f conftest.er1
10893   cat conftest.err >&5
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); } &&
10896          { ac_try='test -z "$ac_c_werror_flag"
10897                          || test ! -s conftest.err'
10898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899   (eval $ac_try) 2>&5
10900   ac_status=$?
10901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); }; } &&
10903          { ac_try='test -s conftest$ac_exeext'
10904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905   (eval $ac_try) 2>&5
10906   ac_status=$?
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); }; }; then
10909   ac_cv_lib_svld_dlopen=yes
10910 else
10911   echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10913
10914 ac_cv_lib_svld_dlopen=no
10915 fi
10916 rm -f conftest.err conftest.$ac_objext \
10917       conftest$ac_exeext conftest.$ac_ext
10918 LIBS=$ac_check_lib_save_LIBS
10919 fi
10920 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10921 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10922 if test $ac_cv_lib_svld_dlopen = yes; then
10923   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10924 else
10925   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10926 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10927 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10928   echo $ECHO_N "(cached) $ECHO_C" >&6
10929 else
10930   ac_check_lib_save_LIBS=$LIBS
10931 LIBS="-ldld  $LIBS"
10932 cat >conftest.$ac_ext <<_ACEOF
10933 /* confdefs.h.  */
10934 _ACEOF
10935 cat confdefs.h >>conftest.$ac_ext
10936 cat >>conftest.$ac_ext <<_ACEOF
10937 /* end confdefs.h.  */
10938
10939 /* Override any gcc2 internal prototype to avoid an error.  */
10940 #ifdef __cplusplus
10941 extern "C"
10942 #endif
10943 /* We use char because int might match the return type of a gcc2
10944    builtin and then its argument prototype would still apply.  */
10945 char dld_link ();
10946 int
10947 main ()
10948 {
10949 dld_link ();
10950   ;
10951   return 0;
10952 }
10953 _ACEOF
10954 rm -f conftest.$ac_objext conftest$ac_exeext
10955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10956   (eval $ac_link) 2>conftest.er1
10957   ac_status=$?
10958   grep -v '^ *+' conftest.er1 >conftest.err
10959   rm -f conftest.er1
10960   cat conftest.err >&5
10961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962   (exit $ac_status); } &&
10963          { ac_try='test -z "$ac_c_werror_flag"
10964                          || test ! -s conftest.err'
10965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966   (eval $ac_try) 2>&5
10967   ac_status=$?
10968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969   (exit $ac_status); }; } &&
10970          { ac_try='test -s conftest$ac_exeext'
10971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972   (eval $ac_try) 2>&5
10973   ac_status=$?
10974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975   (exit $ac_status); }; }; then
10976   ac_cv_lib_dld_dld_link=yes
10977 else
10978   echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10980
10981 ac_cv_lib_dld_dld_link=no
10982 fi
10983 rm -f conftest.err conftest.$ac_objext \
10984       conftest$ac_exeext conftest.$ac_ext
10985 LIBS=$ac_check_lib_save_LIBS
10986 fi
10987 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10988 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10989 if test $ac_cv_lib_dld_dld_link = yes; then
10990   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10991 fi
10992
10993
10994 fi
10995
10996
10997 fi
10998
10999
11000 fi
11001
11002
11003 fi
11004
11005
11006 fi
11007
11008     ;;
11009   esac
11010
11011   if test "x$lt_cv_dlopen" != xno; then
11012     enable_dlopen=yes
11013   else
11014     enable_dlopen=no
11015   fi
11016
11017   case $lt_cv_dlopen in
11018   dlopen)
11019     save_CPPFLAGS="$CPPFLAGS"
11020     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11021
11022     save_LDFLAGS="$LDFLAGS"
11023     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11024
11025     save_LIBS="$LIBS"
11026     LIBS="$lt_cv_dlopen_libs $LIBS"
11027
11028     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11029 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11030 if test "${lt_cv_dlopen_self+set}" = set; then
11031   echo $ECHO_N "(cached) $ECHO_C" >&6
11032 else
11033           if test "$cross_compiling" = yes; then :
11034   lt_cv_dlopen_self=cross
11035 else
11036   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11037   lt_status=$lt_dlunknown
11038   cat > conftest.$ac_ext <<EOF
11039 #line 11039 "configure"
11040 #include "confdefs.h"
11041
11042 #if HAVE_DLFCN_H
11043 #include <dlfcn.h>
11044 #endif
11045
11046 #include <stdio.h>
11047
11048 #ifdef RTLD_GLOBAL
11049 #  define LT_DLGLOBAL           RTLD_GLOBAL
11050 #else
11051 #  ifdef DL_GLOBAL
11052 #    define LT_DLGLOBAL         DL_GLOBAL
11053 #  else
11054 #    define LT_DLGLOBAL         0
11055 #  endif
11056 #endif
11057
11058 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11059    find out it does not work in some platform. */
11060 #ifndef LT_DLLAZY_OR_NOW
11061 #  ifdef RTLD_LAZY
11062 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11063 #  else
11064 #    ifdef DL_LAZY
11065 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11066 #    else
11067 #      ifdef RTLD_NOW
11068 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11069 #      else
11070 #        ifdef DL_NOW
11071 #          define LT_DLLAZY_OR_NOW      DL_NOW
11072 #        else
11073 #          define LT_DLLAZY_OR_NOW      0
11074 #        endif
11075 #      endif
11076 #    endif
11077 #  endif
11078 #endif
11079
11080 #ifdef __cplusplus
11081 extern "C" void exit (int);
11082 #endif
11083
11084 void fnord() { int i=42;}
11085 int main ()
11086 {
11087   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11088   int status = $lt_dlunknown;
11089
11090   if (self)
11091     {
11092       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11093       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11094       /* dlclose (self); */
11095     }
11096
11097     exit (status);
11098 }
11099 EOF
11100   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11101   (eval $ac_link) 2>&5
11102   ac_status=$?
11103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11105     (./conftest; exit; ) 2>/dev/null
11106     lt_status=$?
11107     case x$lt_status in
11108       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11109       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11110       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11111     esac
11112   else :
11113     # compilation failed
11114     lt_cv_dlopen_self=no
11115   fi
11116 fi
11117 rm -fr conftest*
11118
11119
11120 fi
11121 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11122 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11123
11124     if test "x$lt_cv_dlopen_self" = xyes; then
11125       LDFLAGS="$LDFLAGS $link_static_flag"
11126       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11127 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11128 if test "${lt_cv_dlopen_self_static+set}" = set; then
11129   echo $ECHO_N "(cached) $ECHO_C" >&6
11130 else
11131           if test "$cross_compiling" = yes; then :
11132   lt_cv_dlopen_self_static=cross
11133 else
11134   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11135   lt_status=$lt_dlunknown
11136   cat > conftest.$ac_ext <<EOF
11137 #line 11137 "configure"
11138 #include "confdefs.h"
11139
11140 #if HAVE_DLFCN_H
11141 #include <dlfcn.h>
11142 #endif
11143
11144 #include <stdio.h>
11145
11146 #ifdef RTLD_GLOBAL
11147 #  define LT_DLGLOBAL           RTLD_GLOBAL
11148 #else
11149 #  ifdef DL_GLOBAL
11150 #    define LT_DLGLOBAL         DL_GLOBAL
11151 #  else
11152 #    define LT_DLGLOBAL         0
11153 #  endif
11154 #endif
11155
11156 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11157    find out it does not work in some platform. */
11158 #ifndef LT_DLLAZY_OR_NOW
11159 #  ifdef RTLD_LAZY
11160 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11161 #  else
11162 #    ifdef DL_LAZY
11163 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11164 #    else
11165 #      ifdef RTLD_NOW
11166 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11167 #      else
11168 #        ifdef DL_NOW
11169 #          define LT_DLLAZY_OR_NOW      DL_NOW
11170 #        else
11171 #          define LT_DLLAZY_OR_NOW      0
11172 #        endif
11173 #      endif
11174 #    endif
11175 #  endif
11176 #endif
11177
11178 #ifdef __cplusplus
11179 extern "C" void exit (int);
11180 #endif
11181
11182 void fnord() { int i=42;}
11183 int main ()
11184 {
11185   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11186   int status = $lt_dlunknown;
11187
11188   if (self)
11189     {
11190       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11191       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11192       /* dlclose (self); */
11193     }
11194
11195     exit (status);
11196 }
11197 EOF
11198   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11199   (eval $ac_link) 2>&5
11200   ac_status=$?
11201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11203     (./conftest; exit; ) 2>/dev/null
11204     lt_status=$?
11205     case x$lt_status in
11206       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11207       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11208       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11209     esac
11210   else :
11211     # compilation failed
11212     lt_cv_dlopen_self_static=no
11213   fi
11214 fi
11215 rm -fr conftest*
11216
11217
11218 fi
11219 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11220 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11221     fi
11222
11223     CPPFLAGS="$save_CPPFLAGS"
11224     LDFLAGS="$save_LDFLAGS"
11225     LIBS="$save_LIBS"
11226     ;;
11227   esac
11228
11229   case $lt_cv_dlopen_self in
11230   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11231   *) enable_dlopen_self=unknown ;;
11232   esac
11233
11234   case $lt_cv_dlopen_self_static in
11235   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11236   *) enable_dlopen_self_static=unknown ;;
11237   esac
11238 fi
11239
11240
11241 # Report which librarie types wil actually be built
11242 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11243 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11244 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11245 echo "${ECHO_T}$can_build_shared" >&6
11246
11247 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11248 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11249 test "$can_build_shared" = "no" && enable_shared=no
11250
11251 # On AIX, shared libraries and static libraries use the same namespace, and
11252 # are all built from PIC.
11253 case "$host_os" in
11254 aix3*)
11255   test "$enable_shared" = yes && enable_static=no
11256   if test -n "$RANLIB"; then
11257     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11258     postinstall_cmds='$RANLIB $lib'
11259   fi
11260   ;;
11261
11262 aix4* | aix5*)
11263   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11264     test "$enable_shared" = yes && enable_static=no
11265   fi
11266     ;;
11267 esac
11268 echo "$as_me:$LINENO: result: $enable_shared" >&5
11269 echo "${ECHO_T}$enable_shared" >&6
11270
11271 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11272 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11273 # Make sure either enable_shared or enable_static is yes.
11274 test "$enable_shared" = yes || enable_static=yes
11275 echo "$as_me:$LINENO: result: $enable_static" >&5
11276 echo "${ECHO_T}$enable_static" >&6
11277
11278 # The else clause should only fire when bootstrapping the
11279 # libtool distribution, otherwise you forgot to ship ltmain.sh
11280 # with your package, and you will get complaints that there are
11281 # no rules to generate ltmain.sh.
11282 if test -f "$ltmain"; then
11283   # See if we are running on zsh, and set the options which allow our commands through
11284   # without removal of \ escapes.
11285   if test -n "${ZSH_VERSION+set}" ; then
11286     setopt NO_GLOB_SUBST
11287   fi
11288   # Now quote all the things that may contain metacharacters while being
11289   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11290   # variables and quote the copies for generation of the libtool script.
11291   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11292     SED SHELL STRIP \
11293     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11294     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11295     deplibs_check_method reload_flag reload_cmds need_locks \
11296     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11297     lt_cv_sys_global_symbol_to_c_name_address \
11298     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11299     old_postinstall_cmds old_postuninstall_cmds \
11300     compiler \
11301     CC \
11302     LD \
11303     lt_prog_compiler_wl \
11304     lt_prog_compiler_pic \
11305     lt_prog_compiler_static \
11306     lt_prog_compiler_no_builtin_flag \
11307     export_dynamic_flag_spec \
11308     thread_safe_flag_spec \
11309     whole_archive_flag_spec \
11310     enable_shared_with_static_runtimes \
11311     old_archive_cmds \
11312     old_archive_from_new_cmds \
11313     predep_objects \
11314     postdep_objects \
11315     predeps \
11316     postdeps \
11317     compiler_lib_search_path \
11318     archive_cmds \
11319     archive_expsym_cmds \
11320     postinstall_cmds \
11321     postuninstall_cmds \
11322     old_archive_from_expsyms_cmds \
11323     allow_undefined_flag \
11324     no_undefined_flag \
11325     export_symbols_cmds \
11326     hardcode_libdir_flag_spec \
11327     hardcode_libdir_flag_spec_ld \
11328     hardcode_libdir_separator \
11329     hardcode_automatic \
11330     module_cmds \
11331     module_expsym_cmds \
11332     lt_cv_prog_compiler_c_o \
11333     exclude_expsyms \
11334     include_expsyms; do
11335
11336     case $var in
11337     old_archive_cmds | \
11338     old_archive_from_new_cmds | \
11339     archive_cmds | \
11340     archive_expsym_cmds | \
11341     module_cmds | \
11342     module_expsym_cmds | \
11343     old_archive_from_expsyms_cmds | \
11344     export_symbols_cmds | \
11345     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11346     postinstall_cmds | postuninstall_cmds | \
11347     old_postinstall_cmds | old_postuninstall_cmds | \
11348     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11349       # Double-quote double-evaled strings.
11350       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11351       ;;
11352     *)
11353       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11354       ;;
11355     esac
11356   done
11357
11358   case $lt_echo in
11359   *'\$0 --fallback-echo"')
11360     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11361     ;;
11362   esac
11363
11364 cfgfile="${ofile}T"
11365   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11366   $rm -f "$cfgfile"
11367   { echo "$as_me:$LINENO: creating $ofile" >&5
11368 echo "$as_me: creating $ofile" >&6;}
11369
11370   cat <<__EOF__ >> "$cfgfile"
11371 #! $SHELL
11372
11373 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11374 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11375 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11376 #
11377 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11378 # Free Software Foundation, Inc.
11379 #
11380 # This file is part of GNU Libtool:
11381 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11382 #
11383 # This program is free software; you can redistribute it and/or modify
11384 # it under the terms of the GNU General Public License as published by
11385 # the Free Software Foundation; either version 2 of the License, or
11386 # (at your option) any later version.
11387 #
11388 # This program is distributed in the hope that it will be useful, but
11389 # WITHOUT ANY WARRANTY; without even the implied warranty of
11390 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11391 # General Public License for more details.
11392 #
11393 # You should have received a copy of the GNU General Public License
11394 # along with this program; if not, write to the Free Software
11395 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11396 #
11397 # As a special exception to the GNU General Public License, if you
11398 # distribute this file as part of a program that contains a
11399 # configuration script generated by Autoconf, you may include it under
11400 # the same distribution terms that you use for the rest of that program.
11401
11402 # A sed program that does not truncate output.
11403 SED=$lt_SED
11404
11405 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11406 Xsed="$SED -e 1s/^X//"
11407
11408 # The HP-UX ksh and POSIX shell print the target directory to stdout
11409 # if CDPATH is set.
11410 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11411
11412 # The names of the tagged configurations supported by this script.
11413 available_tags=
11414
11415 # ### BEGIN LIBTOOL CONFIG
11416
11417 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11418
11419 # Shell to use when invoking shell scripts.
11420 SHELL=$lt_SHELL
11421
11422 # Whether or not to build shared libraries.
11423 build_libtool_libs=$enable_shared
11424
11425 # Whether or not to build static libraries.
11426 build_old_libs=$enable_static
11427
11428 # Whether or not to add -lc for building shared libraries.
11429 build_libtool_need_lc=$archive_cmds_need_lc
11430
11431 # Whether or not to disallow shared libs when runtime libs are static
11432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11433
11434 # Whether or not to optimize for fast installation.
11435 fast_install=$enable_fast_install
11436
11437 # The host system.
11438 host_alias=$host_alias
11439 host=$host
11440 host_os=$host_os
11441
11442 # The build system.
11443 build_alias=$build_alias
11444 build=$build
11445 build_os=$build_os
11446
11447 # An echo program that does not interpret backslashes.
11448 echo=$lt_echo
11449
11450 # The archiver.
11451 AR=$lt_AR
11452 AR_FLAGS=$lt_AR_FLAGS
11453
11454 # A C compiler.
11455 LTCC=$lt_LTCC
11456
11457 # A language-specific compiler.
11458 CC=$lt_compiler
11459
11460 # Is the compiler the GNU C compiler?
11461 with_gcc=$GCC
11462
11463 # An ERE matcher.
11464 EGREP=$lt_EGREP
11465
11466 # The linker used to build libraries.
11467 LD=$lt_LD
11468
11469 # Whether we need hard or soft links.
11470 LN_S=$lt_LN_S
11471
11472 # A BSD-compatible nm program.
11473 NM=$lt_NM
11474
11475 # A symbol stripping program
11476 STRIP=$lt_STRIP
11477
11478 # Used to examine libraries when file_magic_cmd begins "file"
11479 MAGIC_CMD=$MAGIC_CMD
11480
11481 # Used on cygwin: DLL creation program.
11482 DLLTOOL="$DLLTOOL"
11483
11484 # Used on cygwin: object dumper.
11485 OBJDUMP="$OBJDUMP"
11486
11487 # Used on cygwin: assembler.
11488 AS="$AS"
11489
11490 # The name of the directory that contains temporary libtool files.
11491 objdir=$objdir
11492
11493 # How to create reloadable object files.
11494 reload_flag=$lt_reload_flag
11495 reload_cmds=$lt_reload_cmds
11496
11497 # How to pass a linker flag through the compiler.
11498 wl=$lt_lt_prog_compiler_wl
11499
11500 # Object file suffix (normally "o").
11501 objext="$ac_objext"
11502
11503 # Old archive suffix (normally "a").
11504 libext="$libext"
11505
11506 # Shared library suffix (normally ".so").
11507 shrext_cmds='$shrext_cmds'
11508
11509 # Executable file suffix (normally "").
11510 exeext="$exeext"
11511
11512 # Additional compiler flags for building library objects.
11513 pic_flag=$lt_lt_prog_compiler_pic
11514 pic_mode=$pic_mode
11515
11516 # What is the maximum length of a command?
11517 max_cmd_len=$lt_cv_sys_max_cmd_len
11518
11519 # Does compiler simultaneously support -c and -o options?
11520 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11521
11522 # Must we lock files when doing compilation?
11523 need_locks=$lt_need_locks
11524
11525 # Do we need the lib prefix for modules?
11526 need_lib_prefix=$need_lib_prefix
11527
11528 # Do we need a version for libraries?
11529 need_version=$need_version
11530
11531 # Whether dlopen is supported.
11532 dlopen_support=$enable_dlopen
11533
11534 # Whether dlopen of programs is supported.
11535 dlopen_self=$enable_dlopen_self
11536
11537 # Whether dlopen of statically linked programs is supported.
11538 dlopen_self_static=$enable_dlopen_self_static
11539
11540 # Compiler flag to prevent dynamic linking.
11541 link_static_flag=$lt_lt_prog_compiler_static
11542
11543 # Compiler flag to turn off builtin functions.
11544 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11545
11546 # Compiler flag to allow reflexive dlopens.
11547 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11548
11549 # Compiler flag to generate shared objects directly from archives.
11550 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11551
11552 # Compiler flag to generate thread-safe objects.
11553 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11554
11555 # Library versioning type.
11556 version_type=$version_type
11557
11558 # Format of library name prefix.
11559 libname_spec=$lt_libname_spec
11560
11561 # List of archive names.  First name is the real one, the rest are links.
11562 # The last name is the one that the linker finds with -lNAME.
11563 library_names_spec=$lt_library_names_spec
11564
11565 # The coded name of the library, if different from the real name.
11566 soname_spec=$lt_soname_spec
11567
11568 # Commands used to build and install an old-style archive.
11569 RANLIB=$lt_RANLIB
11570 old_archive_cmds=$lt_old_archive_cmds
11571 old_postinstall_cmds=$lt_old_postinstall_cmds
11572 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11573
11574 # Create an old-style archive from a shared archive.
11575 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11576
11577 # Create a temporary old-style archive to link instead of a shared archive.
11578 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11579
11580 # Commands used to build and install a shared archive.
11581 archive_cmds=$lt_archive_cmds
11582 archive_expsym_cmds=$lt_archive_expsym_cmds
11583 postinstall_cmds=$lt_postinstall_cmds
11584 postuninstall_cmds=$lt_postuninstall_cmds
11585
11586 # Commands used to build a loadable module (assumed same as above if empty)
11587 module_cmds=$lt_module_cmds
11588 module_expsym_cmds=$lt_module_expsym_cmds
11589
11590 # Commands to strip libraries.
11591 old_striplib=$lt_old_striplib
11592 striplib=$lt_striplib
11593
11594 # Dependencies to place before the objects being linked to create a
11595 # shared library.
11596 predep_objects=$lt_predep_objects
11597
11598 # Dependencies to place after the objects being linked to create a
11599 # shared library.
11600 postdep_objects=$lt_postdep_objects
11601
11602 # Dependencies to place before the objects being linked to create a
11603 # shared library.
11604 predeps=$lt_predeps
11605
11606 # Dependencies to place after the objects being linked to create a
11607 # shared library.
11608 postdeps=$lt_postdeps
11609
11610 # The library search path used internally by the compiler when linking
11611 # a shared library.
11612 compiler_lib_search_path=$lt_compiler_lib_search_path
11613
11614 # Method to check whether dependent libraries are shared objects.
11615 deplibs_check_method=$lt_deplibs_check_method
11616
11617 # Command to use when deplibs_check_method == file_magic.
11618 file_magic_cmd=$lt_file_magic_cmd
11619
11620 # Flag that allows shared libraries with undefined symbols to be built.
11621 allow_undefined_flag=$lt_allow_undefined_flag
11622
11623 # Flag that forces no undefined symbols.
11624 no_undefined_flag=$lt_no_undefined_flag
11625
11626 # Commands used to finish a libtool library installation in a directory.
11627 finish_cmds=$lt_finish_cmds
11628
11629 # Same as above, but a single script fragment to be evaled but not shown.
11630 finish_eval=$lt_finish_eval
11631
11632 # Take the output of nm and produce a listing of raw symbols and C names.
11633 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11634
11635 # Transform the output of nm in a proper C declaration
11636 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11637
11638 # Transform the output of nm in a C name address pair
11639 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11640
11641 # This is the shared library runtime path variable.
11642 runpath_var=$runpath_var
11643
11644 # This is the shared library path variable.
11645 shlibpath_var=$shlibpath_var
11646
11647 # Is shlibpath searched before the hard-coded library search path?
11648 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11649
11650 # How to hardcode a shared library path into an executable.
11651 hardcode_action=$hardcode_action
11652
11653 # Whether we should hardcode library paths into libraries.
11654 hardcode_into_libs=$hardcode_into_libs
11655
11656 # Flag to hardcode \$libdir into a binary during linking.
11657 # This must work even if \$libdir does not exist.
11658 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11659
11660 # If ld is used when linking, flag to hardcode \$libdir into
11661 # a binary during linking. This must work even if \$libdir does
11662 # not exist.
11663 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11664
11665 # Whether we need a single -rpath flag with a separated argument.
11666 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11667
11668 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11669 # resulting binary.
11670 hardcode_direct=$hardcode_direct
11671
11672 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11673 # resulting binary.
11674 hardcode_minus_L=$hardcode_minus_L
11675
11676 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11677 # the resulting binary.
11678 hardcode_shlibpath_var=$hardcode_shlibpath_var
11679
11680 # Set to yes if building a shared library automatically hardcodes DIR into the library
11681 # and all subsequent libraries and executables linked against it.
11682 hardcode_automatic=$hardcode_automatic
11683
11684 # Variables whose values should be saved in libtool wrapper scripts and
11685 # restored at relink time.
11686 variables_saved_for_relink="$variables_saved_for_relink"
11687
11688 # Whether libtool must link a program against all its dependency libraries.
11689 link_all_deplibs=$link_all_deplibs
11690
11691 # Compile-time system search path for libraries
11692 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11693
11694 # Run-time system search path for libraries
11695 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11696
11697 # Fix the shell variable \$srcfile for the compiler.
11698 fix_srcfile_path="$fix_srcfile_path"
11699
11700 # Set to yes if exported symbols are required.
11701 always_export_symbols=$always_export_symbols
11702
11703 # The commands to list exported symbols.
11704 export_symbols_cmds=$lt_export_symbols_cmds
11705
11706 # The commands to extract the exported symbol list from a shared archive.
11707 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11708
11709 # Symbols that should not be listed in the preloaded symbols.
11710 exclude_expsyms=$lt_exclude_expsyms
11711
11712 # Symbols that must always be exported.
11713 include_expsyms=$lt_include_expsyms
11714
11715 # ### END LIBTOOL CONFIG
11716
11717 __EOF__
11718
11719
11720   case $host_os in
11721   aix3*)
11722     cat <<\EOF >> "$cfgfile"
11723
11724 # AIX sometimes has problems with the GCC collect2 program.  For some
11725 # reason, if we set the COLLECT_NAMES environment variable, the problems
11726 # vanish in a puff of smoke.
11727 if test "X${COLLECT_NAMES+set}" != Xset; then
11728   COLLECT_NAMES=
11729   export COLLECT_NAMES
11730 fi
11731 EOF
11732     ;;
11733   esac
11734
11735   # We use sed instead of cat because bash on DJGPP gets confused if
11736   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11737   # text mode, it properly converts lines to CR/LF.  This bash problem
11738   # is reportedly fixed, but why not run on old versions too?
11739   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11740
11741   mv -f "$cfgfile" "$ofile" || \
11742     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11743   chmod +x "$ofile"
11744
11745 else
11746   # If there is no Makefile yet, we rely on a make rule to execute
11747   # `config.status --recheck' to rerun these tests and create the
11748   # libtool script then.
11749   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11750   if test -f "$ltmain_in"; then
11751     test -f Makefile && make "$ltmain"
11752   fi
11753 fi
11754
11755
11756 ac_ext=c
11757 ac_cpp='$CPP $CPPFLAGS'
11758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11761
11762 CC="$lt_save_CC"
11763
11764
11765 # Check whether --with-tags or --without-tags was given.
11766 if test "${with_tags+set}" = set; then
11767   withval="$with_tags"
11768   tagnames="$withval"
11769 fi;
11770
11771 if test -f "$ltmain" && test -n "$tagnames"; then
11772   if test ! -f "${ofile}"; then
11773     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11774 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11775   fi
11776
11777   if test -z "$LTCC"; then
11778     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11779     if test -z "$LTCC"; then
11780       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11781 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11782     else
11783       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11784 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11785     fi
11786   fi
11787
11788   # Extract list of available tagged configurations in $ofile.
11789   # Note that this assumes the entire list is on one line.
11790   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11791
11792   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11793   for tagname in $tagnames; do
11794     IFS="$lt_save_ifs"
11795     # Check whether tagname contains only valid characters
11796     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11797     "") ;;
11798     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11799 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11800    { (exit 1); exit 1; }; }
11801         ;;
11802     esac
11803
11804     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11805     then
11806       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11807 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11808    { (exit 1); exit 1; }; }
11809     fi
11810
11811     # Update the list of available tags.
11812     if test -n "$tagname"; then
11813       echo appending configuration tag \"$tagname\" to $ofile
11814
11815       case $tagname in
11816       CXX)
11817         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11818             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11819             (test "X$CXX" != "Xg++"))) ; then
11820           ac_ext=cc
11821 ac_cpp='$CXXCPP $CPPFLAGS'
11822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11825
11826
11827
11828
11829 archive_cmds_need_lc_CXX=no
11830 allow_undefined_flag_CXX=
11831 always_export_symbols_CXX=no
11832 archive_expsym_cmds_CXX=
11833 export_dynamic_flag_spec_CXX=
11834 hardcode_direct_CXX=no
11835 hardcode_libdir_flag_spec_CXX=
11836 hardcode_libdir_flag_spec_ld_CXX=
11837 hardcode_libdir_separator_CXX=
11838 hardcode_minus_L_CXX=no
11839 hardcode_automatic_CXX=no
11840 module_cmds_CXX=
11841 module_expsym_cmds_CXX=
11842 link_all_deplibs_CXX=unknown
11843 old_archive_cmds_CXX=$old_archive_cmds
11844 no_undefined_flag_CXX=
11845 whole_archive_flag_spec_CXX=
11846 enable_shared_with_static_runtimes_CXX=no
11847
11848 # Dependencies to place before and after the object being linked:
11849 predep_objects_CXX=
11850 postdep_objects_CXX=
11851 predeps_CXX=
11852 postdeps_CXX=
11853 compiler_lib_search_path_CXX=
11854
11855 # Source file extension for C++ test sources.
11856 ac_ext=cc
11857
11858 # Object file extension for compiled C++ test sources.
11859 objext=o
11860 objext_CXX=$objext
11861
11862 # Code to be used in simple compile tests
11863 lt_simple_compile_test_code="int some_variable = 0;\n"
11864
11865 # Code to be used in simple link tests
11866 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11867
11868 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11869
11870 # If no C compiler was specified, use CC.
11871 LTCC=${LTCC-"$CC"}
11872
11873 # Allow CC to be a program name with arguments.
11874 compiler=$CC
11875
11876
11877 # save warnings/boilerplate of simple test code
11878 ac_outfile=conftest.$ac_objext
11879 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11880 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11881 _lt_compiler_boilerplate=`cat conftest.err`
11882 $rm conftest*
11883
11884 ac_outfile=conftest.$ac_objext
11885 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11886 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11887 _lt_linker_boilerplate=`cat conftest.err`
11888 $rm conftest*
11889
11890
11891 # Allow CC to be a program name with arguments.
11892 lt_save_CC=$CC
11893 lt_save_LD=$LD
11894 lt_save_GCC=$GCC
11895 GCC=$GXX
11896 lt_save_with_gnu_ld=$with_gnu_ld
11897 lt_save_path_LD=$lt_cv_path_LD
11898 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11899   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11900 else
11901   unset lt_cv_prog_gnu_ld
11902 fi
11903 if test -n "${lt_cv_path_LDCXX+set}"; then
11904   lt_cv_path_LD=$lt_cv_path_LDCXX
11905 else
11906   unset lt_cv_path_LD
11907 fi
11908 test -z "${LDCXX+set}" || LD=$LDCXX
11909 CC=${CXX-"c++"}
11910 compiler=$CC
11911 compiler_CXX=$CC
11912 for cc_temp in $compiler""; do
11913   case $cc_temp in
11914     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11915     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11916     \-*) ;;
11917     *) break;;
11918   esac
11919 done
11920 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11921
11922
11923 # We don't want -fno-exception wen compiling C++ code, so set the
11924 # no_builtin_flag separately
11925 if test "$GXX" = yes; then
11926   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11927 else
11928   lt_prog_compiler_no_builtin_flag_CXX=
11929 fi
11930
11931 if test "$GXX" = yes; then
11932   # Set up default GNU C++ configuration
11933
11934
11935 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11936 if test "${with_gnu_ld+set}" = set; then
11937   withval="$with_gnu_ld"
11938   test "$withval" = no || with_gnu_ld=yes
11939 else
11940   with_gnu_ld=no
11941 fi;
11942 ac_prog=ld
11943 if test "$GCC" = yes; then
11944   # Check if gcc -print-prog-name=ld gives a path.
11945   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11946 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11947   case $host in
11948   *-*-mingw*)
11949     # gcc leaves a trailing carriage return which upsets mingw
11950     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11951   *)
11952     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11953   esac
11954   case $ac_prog in
11955     # Accept absolute paths.
11956     [\\/]* | ?:[\\/]*)
11957       re_direlt='/[^/][^/]*/\.\./'
11958       # Canonicalize the pathname of ld
11959       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11960       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11961         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11962       done
11963       test -z "$LD" && LD="$ac_prog"
11964       ;;
11965   "")
11966     # If it fails, then pretend we aren't using GCC.
11967     ac_prog=ld
11968     ;;
11969   *)
11970     # If it is relative, then search for the first ld in PATH.
11971     with_gnu_ld=unknown
11972     ;;
11973   esac
11974 elif test "$with_gnu_ld" = yes; then
11975   echo "$as_me:$LINENO: checking for GNU ld" >&5
11976 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11977 else
11978   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11979 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11980 fi
11981 if test "${lt_cv_path_LD+set}" = set; then
11982   echo $ECHO_N "(cached) $ECHO_C" >&6
11983 else
11984   if test -z "$LD"; then
11985   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11986   for ac_dir in $PATH; do
11987     IFS="$lt_save_ifs"
11988     test -z "$ac_dir" && ac_dir=.
11989     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11990       lt_cv_path_LD="$ac_dir/$ac_prog"
11991       # Check to see if the program is GNU ld.  I'd rather use --version,
11992       # but apparently some GNU ld's only accept -v.
11993       # Break only if it was the GNU/non-GNU ld that we prefer.
11994       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11995       *GNU* | *'with BFD'*)
11996         test "$with_gnu_ld" != no && break
11997         ;;
11998       *)
11999         test "$with_gnu_ld" != yes && break
12000         ;;
12001       esac
12002     fi
12003   done
12004   IFS="$lt_save_ifs"
12005 else
12006   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12007 fi
12008 fi
12009
12010 LD="$lt_cv_path_LD"
12011 if test -n "$LD"; then
12012   echo "$as_me:$LINENO: result: $LD" >&5
12013 echo "${ECHO_T}$LD" >&6
12014 else
12015   echo "$as_me:$LINENO: result: no" >&5
12016 echo "${ECHO_T}no" >&6
12017 fi
12018 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12019 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12020    { (exit 1); exit 1; }; }
12021 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12022 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12023 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12024   echo $ECHO_N "(cached) $ECHO_C" >&6
12025 else
12026   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12027 case `$LD -v 2>&1 </dev/null` in
12028 *GNU* | *'with BFD'*)
12029   lt_cv_prog_gnu_ld=yes
12030   ;;
12031 *)
12032   lt_cv_prog_gnu_ld=no
12033   ;;
12034 esac
12035 fi
12036 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12037 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12038 with_gnu_ld=$lt_cv_prog_gnu_ld
12039
12040
12041
12042   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12043   # archiving commands below assume that GNU ld is being used.
12044   if test "$with_gnu_ld" = yes; then
12045     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12046     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'
12047
12048     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12049     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12050
12051     # If archive_cmds runs LD, not CC, wlarc should be empty
12052     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12053     #     investigate it a little bit more. (MM)
12054     wlarc='${wl}'
12055
12056     # ancient GNU ld didn't support --whole-archive et. al.
12057     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12058         grep 'no-whole-archive' > /dev/null; then
12059       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12060     else
12061       whole_archive_flag_spec_CXX=
12062     fi
12063   else
12064     with_gnu_ld=no
12065     wlarc=
12066
12067     # A generic and very simple default shared library creation
12068     # command for GNU C++ for the case where it uses the native
12069     # linker, instead of GNU ld.  If possible, this setting should
12070     # overridden to take advantage of the native linker features on
12071     # the platform it is being used on.
12072     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12073   fi
12074
12075   # Commands to make compiler produce verbose output that lists
12076   # what "hidden" libraries, object files and flags are used when
12077   # linking a shared library.
12078   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12079
12080 else
12081   GXX=no
12082   with_gnu_ld=no
12083   wlarc=
12084 fi
12085
12086 # PORTME: fill in a description of your system's C++ link characteristics
12087 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12088 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12089 ld_shlibs_CXX=yes
12090 case $host_os in
12091   aix3*)
12092     # FIXME: insert proper C++ library support
12093     ld_shlibs_CXX=no
12094     ;;
12095   aix4* | aix5*)
12096     if test "$host_cpu" = ia64; then
12097       # On IA64, the linker does run time linking by default, so we don't
12098       # have to do anything special.
12099       aix_use_runtimelinking=no
12100       exp_sym_flag='-Bexport'
12101       no_entry_flag=""
12102     else
12103       aix_use_runtimelinking=no
12104
12105       # Test if we are trying to use run time linking or normal
12106       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12107       # need to do runtime linking.
12108       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12109         for ld_flag in $LDFLAGS; do
12110           case $ld_flag in
12111           *-brtl*)
12112             aix_use_runtimelinking=yes
12113             break
12114             ;;
12115           esac
12116         done
12117       esac
12118
12119       exp_sym_flag='-bexport'
12120       no_entry_flag='-bnoentry'
12121     fi
12122
12123     # When large executables or shared objects are built, AIX ld can
12124     # have problems creating the table of contents.  If linking a library
12125     # or program results in "error TOC overflow" add -mminimal-toc to
12126     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12127     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12128
12129     archive_cmds_CXX=''
12130     hardcode_direct_CXX=yes
12131     hardcode_libdir_separator_CXX=':'
12132     link_all_deplibs_CXX=yes
12133
12134     if test "$GXX" = yes; then
12135       case $host_os in aix4.[012]|aix4.[012].*)
12136       # We only want to do this on AIX 4.2 and lower, the check
12137       # below for broken collect2 doesn't work under 4.3+
12138         collect2name=`${CC} -print-prog-name=collect2`
12139         if test -f "$collect2name" && \
12140            strings "$collect2name" | grep resolve_lib_name >/dev/null
12141         then
12142           # We have reworked collect2
12143           hardcode_direct_CXX=yes
12144         else
12145           # We have old collect2
12146           hardcode_direct_CXX=unsupported
12147           # It fails to find uninstalled libraries when the uninstalled
12148           # path is not listed in the libpath.  Setting hardcode_minus_L
12149           # to unsupported forces relinking
12150           hardcode_minus_L_CXX=yes
12151           hardcode_libdir_flag_spec_CXX='-L$libdir'
12152           hardcode_libdir_separator_CXX=
12153         fi
12154       esac
12155       shared_flag='-shared'
12156       if test "$aix_use_runtimelinking" = yes; then
12157         shared_flag="$shared_flag "'${wl}-G'
12158       fi
12159     else
12160       # not using gcc
12161       if test "$host_cpu" = ia64; then
12162         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12163         # chokes on -Wl,-G. The following line is correct:
12164         shared_flag='-G'
12165       else
12166         if test "$aix_use_runtimelinking" = yes; then
12167           shared_flag='${wl}-G'
12168         else
12169           shared_flag='${wl}-bM:SRE'
12170         fi
12171       fi
12172     fi
12173
12174     # It seems that -bexpall does not export symbols beginning with
12175     # underscore (_), so it is better to generate a list of symbols to export.
12176     always_export_symbols_CXX=yes
12177     if test "$aix_use_runtimelinking" = yes; then
12178       # Warning - without using the other runtime loading flags (-brtl),
12179       # -berok will link without error, but may produce a broken library.
12180       allow_undefined_flag_CXX='-berok'
12181       # Determine the default libpath from the value encoded in an empty executable.
12182       cat >conftest.$ac_ext <<_ACEOF
12183 /* confdefs.h.  */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h.  */
12188
12189 int
12190 main ()
12191 {
12192
12193   ;
12194   return 0;
12195 }
12196 _ACEOF
12197 rm -f conftest.$ac_objext conftest$ac_exeext
12198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12199   (eval $ac_link) 2>conftest.er1
12200   ac_status=$?
12201   grep -v '^ *+' conftest.er1 >conftest.err
12202   rm -f conftest.er1
12203   cat conftest.err >&5
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); } &&
12206          { ac_try='test -z "$ac_cxx_werror_flag"
12207                          || test ! -s conftest.err'
12208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209   (eval $ac_try) 2>&5
12210   ac_status=$?
12211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212   (exit $ac_status); }; } &&
12213          { ac_try='test -s conftest$ac_exeext'
12214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215   (eval $ac_try) 2>&5
12216   ac_status=$?
12217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218   (exit $ac_status); }; }; then
12219
12220 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12221 }'`
12222 # Check for a 64-bit object if we didn't find anything.
12223 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; }
12224 }'`; fi
12225 else
12226   echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12228
12229 fi
12230 rm -f conftest.err conftest.$ac_objext \
12231       conftest$ac_exeext conftest.$ac_ext
12232 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12233
12234       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12235
12236       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"
12237      else
12238       if test "$host_cpu" = ia64; then
12239         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12240         allow_undefined_flag_CXX="-z nodefs"
12241         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"
12242       else
12243         # Determine the default libpath from the value encoded in an empty executable.
12244         cat >conftest.$ac_ext <<_ACEOF
12245 /* confdefs.h.  */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h.  */
12250
12251 int
12252 main ()
12253 {
12254
12255   ;
12256   return 0;
12257 }
12258 _ACEOF
12259 rm -f conftest.$ac_objext conftest$ac_exeext
12260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12261   (eval $ac_link) 2>conftest.er1
12262   ac_status=$?
12263   grep -v '^ *+' conftest.er1 >conftest.err
12264   rm -f conftest.er1
12265   cat conftest.err >&5
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); } &&
12268          { ac_try='test -z "$ac_cxx_werror_flag"
12269                          || test ! -s conftest.err'
12270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271   (eval $ac_try) 2>&5
12272   ac_status=$?
12273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274   (exit $ac_status); }; } &&
12275          { ac_try='test -s conftest$ac_exeext'
12276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277   (eval $ac_try) 2>&5
12278   ac_status=$?
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); }; }; then
12281
12282 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12283 }'`
12284 # Check for a 64-bit object if we didn't find anything.
12285 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; }
12286 }'`; fi
12287 else
12288   echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12290
12291 fi
12292 rm -f conftest.err conftest.$ac_objext \
12293       conftest$ac_exeext conftest.$ac_ext
12294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12295
12296         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12297         # Warning - without using the other run time loading flags,
12298         # -berok will link without error, but may produce a broken library.
12299         no_undefined_flag_CXX=' ${wl}-bernotok'
12300         allow_undefined_flag_CXX=' ${wl}-berok'
12301         # -bexpall does not export symbols beginning with underscore (_)
12302         always_export_symbols_CXX=yes
12303         # Exported symbols can be pulled into shared objects from archives
12304         whole_archive_flag_spec_CXX=' '
12305         archive_cmds_need_lc_CXX=yes
12306         # This is similar to how AIX traditionally builds it's shared libraries.
12307         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'
12308       fi
12309     fi
12310     ;;
12311   chorus*)
12312     case $cc_basename in
12313       *)
12314         # FIXME: insert proper C++ library support
12315         ld_shlibs_CXX=no
12316         ;;
12317     esac
12318     ;;
12319
12320
12321   cygwin* | mingw* | pw32*)
12322     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12323     # as there is no search path for DLLs.
12324     hardcode_libdir_flag_spec_CXX='-L$libdir'
12325     allow_undefined_flag_CXX=unsupported
12326     always_export_symbols_CXX=no
12327     enable_shared_with_static_runtimes_CXX=yes
12328
12329     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12330       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'
12331       # If the export-symbols file already is a .def file (1st line
12332       # is EXPORTS), use it as is; otherwise, prepend...
12333       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12334         cp $export_symbols $output_objdir/$soname.def;
12335       else
12336         echo EXPORTS > $output_objdir/$soname.def;
12337         cat $export_symbols >> $output_objdir/$soname.def;
12338       fi~
12339       $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'
12340     else
12341       ld_shlibs_CXX=no
12342     fi
12343   ;;
12344       darwin* | rhapsody*)
12345         case "$host_os" in
12346         rhapsody* | darwin1.[012])
12347          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12348          ;;
12349        *) # Darwin 1.3 on
12350          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12351            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12352          else
12353            case ${MACOSX_DEPLOYMENT_TARGET} in
12354              10.[012])
12355                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12356                ;;
12357              10.*)
12358                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12359                ;;
12360            esac
12361          fi
12362          ;;
12363         esac
12364       archive_cmds_need_lc_CXX=no
12365       hardcode_direct_CXX=no
12366       hardcode_automatic_CXX=yes
12367       hardcode_shlibpath_var_CXX=unsupported
12368       whole_archive_flag_spec_CXX=''
12369       link_all_deplibs_CXX=yes
12370
12371     if test "$GXX" = yes ; then
12372       lt_int_apple_cc_single_mod=no
12373       output_verbose_link_cmd='echo'
12374       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12375        lt_int_apple_cc_single_mod=yes
12376       fi
12377       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12378        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12379       else
12380           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'
12381         fi
12382         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12383         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12384           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12385             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}'
12386           else
12387             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}'
12388           fi
12389             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}'
12390       else
12391       case $cc_basename in
12392         xlc*)
12393          output_verbose_link_cmd='echo'
12394           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'
12395           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12396           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12397           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}'
12398           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}'
12399           ;;
12400        *)
12401          ld_shlibs_CXX=no
12402           ;;
12403       esac
12404       fi
12405         ;;
12406
12407   dgux*)
12408     case $cc_basename in
12409       ec++*)
12410         # FIXME: insert proper C++ library support
12411         ld_shlibs_CXX=no
12412         ;;
12413       ghcx*)
12414         # Green Hills C++ Compiler
12415         # FIXME: insert proper C++ library support
12416         ld_shlibs_CXX=no
12417         ;;
12418       *)
12419         # FIXME: insert proper C++ library support
12420         ld_shlibs_CXX=no
12421         ;;
12422     esac
12423     ;;
12424   freebsd[12]*)
12425     # C++ shared libraries reported to be fairly broken before switch to ELF
12426     ld_shlibs_CXX=no
12427     ;;
12428   freebsd-elf*)
12429     archive_cmds_need_lc_CXX=no
12430     ;;
12431   freebsd* | kfreebsd*-gnu | dragonfly*)
12432     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12433     # conventions
12434     ld_shlibs_CXX=yes
12435     ;;
12436   gnu*)
12437     ;;
12438   hpux9*)
12439     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12440     hardcode_libdir_separator_CXX=:
12441     export_dynamic_flag_spec_CXX='${wl}-E'
12442     hardcode_direct_CXX=yes
12443     hardcode_minus_L_CXX=yes # Not in the search PATH,
12444                                 # but as the default
12445                                 # location of the library.
12446
12447     case $cc_basename in
12448     CC*)
12449       # FIXME: insert proper C++ library support
12450       ld_shlibs_CXX=no
12451       ;;
12452     aCC*)
12453       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'
12454       # Commands to make compiler produce verbose output that lists
12455       # what "hidden" libraries, object files and flags are used when
12456       # linking a shared library.
12457       #
12458       # There doesn't appear to be a way to prevent this compiler from
12459       # explicitly linking system object files so we need to strip them
12460       # from the output so that they don't get included in the library
12461       # dependencies.
12462       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'
12463       ;;
12464     *)
12465       if test "$GXX" = yes; then
12466         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'
12467       else
12468         # FIXME: insert proper C++ library support
12469         ld_shlibs_CXX=no
12470       fi
12471       ;;
12472     esac
12473     ;;
12474   hpux10*|hpux11*)
12475     if test $with_gnu_ld = no; then
12476       case "$host_cpu" in
12477       hppa*64*)
12478         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12479         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12480         hardcode_libdir_separator_CXX=:
12481         ;;
12482       ia64*)
12483         hardcode_libdir_flag_spec_CXX='-L$libdir'
12484         ;;
12485       *)
12486         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12487         hardcode_libdir_separator_CXX=:
12488         export_dynamic_flag_spec_CXX='${wl}-E'
12489         ;;
12490       esac
12491     fi
12492     case "$host_cpu" in
12493     hppa*64*)
12494       hardcode_direct_CXX=no
12495       hardcode_shlibpath_var_CXX=no
12496       ;;
12497     ia64*)
12498       hardcode_direct_CXX=no
12499       hardcode_shlibpath_var_CXX=no
12500       hardcode_minus_L_CXX=yes # Not in the search PATH,
12501                                               # but as the default
12502                                               # location of the library.
12503       ;;
12504     *)
12505       hardcode_direct_CXX=yes
12506       hardcode_minus_L_CXX=yes # Not in the search PATH,
12507                                               # but as the default
12508                                               # location of the library.
12509       ;;
12510     esac
12511
12512     case $cc_basename in
12513       CC*)
12514         # FIXME: insert proper C++ library support
12515         ld_shlibs_CXX=no
12516         ;;
12517       aCC*)
12518         case "$host_cpu" in
12519         hppa*64*|ia64*)
12520           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12521           ;;
12522         *)
12523           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12524           ;;
12525         esac
12526         # Commands to make compiler produce verbose output that lists
12527         # what "hidden" libraries, object files and flags are used when
12528         # linking a shared library.
12529         #
12530         # There doesn't appear to be a way to prevent this compiler from
12531         # explicitly linking system object files so we need to strip them
12532         # from the output so that they don't get included in the library
12533         # dependencies.
12534         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'
12535         ;;
12536       *)
12537         if test "$GXX" = yes; then
12538           if test $with_gnu_ld = no; then
12539             case "$host_cpu" in
12540             ia64*|hppa*64*)
12541               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12542               ;;
12543             *)
12544               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'
12545               ;;
12546             esac
12547           fi
12548         else
12549           # FIXME: insert proper C++ library support
12550           ld_shlibs_CXX=no
12551         fi
12552         ;;
12553     esac
12554     ;;
12555   irix5* | irix6*)
12556     case $cc_basename in
12557       CC*)
12558         # SGI C++
12559         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'
12560
12561         # Archives containing C++ object files must be created using
12562         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12563         # necessary to make sure instantiated templates are included
12564         # in the archive.
12565         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12566         ;;
12567       *)
12568         if test "$GXX" = yes; then
12569           if test "$with_gnu_ld" = no; then
12570             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'
12571           else
12572             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'
12573           fi
12574         fi
12575         link_all_deplibs_CXX=yes
12576         ;;
12577     esac
12578     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12579     hardcode_libdir_separator_CXX=:
12580     ;;
12581   linux*)
12582     case $cc_basename in
12583       KCC*)
12584         # Kuck and Associates, Inc. (KAI) C++ Compiler
12585
12586         # KCC will only create a shared library if the output file
12587         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12588         # to its proper name (with version) after linking.
12589         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'
12590         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'
12591         # Commands to make compiler produce verbose output that lists
12592         # what "hidden" libraries, object files and flags are used when
12593         # linking a shared library.
12594         #
12595         # There doesn't appear to be a way to prevent this compiler from
12596         # explicitly linking system object files so we need to strip them
12597         # from the output so that they don't get included in the library
12598         # dependencies.
12599         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'
12600
12601         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12602         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12603
12604         # Archives containing C++ object files must be created using
12605         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12606         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12607         ;;
12608       icpc*)
12609         # Intel C++
12610         with_gnu_ld=yes
12611         # version 8.0 and above of icpc choke on multiply defined symbols
12612         # if we add $predep_objects and $postdep_objects, however 7.1 and
12613         # earlier do not add the objects themselves.
12614         case `$CC -V 2>&1` in
12615         *"Version 7."*)
12616           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12617           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'
12618           ;;
12619         *)  # Version 8.0 or newer
12620           tmp_idyn=
12621           case $host_cpu in
12622             ia64*) tmp_idyn=' -i_dynamic';;
12623           esac
12624           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12625           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'
12626           ;;
12627         esac
12628         archive_cmds_need_lc_CXX=no
12629         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12630         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12631         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12632         ;;
12633       pgCC*)
12634         # Portland Group C++ compiler
12635         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12636         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'
12637
12638         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12639         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12640         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'
12641         ;;
12642       cxx*)
12643         # Compaq C++
12644         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12645         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'
12646
12647         runpath_var=LD_RUN_PATH
12648         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12649         hardcode_libdir_separator_CXX=:
12650
12651         # Commands to make compiler produce verbose output that lists
12652         # what "hidden" libraries, object files and flags are used when
12653         # linking a shared library.
12654         #
12655         # There doesn't appear to be a way to prevent this compiler from
12656         # explicitly linking system object files so we need to strip them
12657         # from the output so that they don't get included in the library
12658         # dependencies.
12659         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'
12660         ;;
12661     esac
12662     ;;
12663   lynxos*)
12664     # FIXME: insert proper C++ library support
12665     ld_shlibs_CXX=no
12666     ;;
12667   m88k*)
12668     # FIXME: insert proper C++ library support
12669     ld_shlibs_CXX=no
12670     ;;
12671   mvs*)
12672     case $cc_basename in
12673       cxx*)
12674         # FIXME: insert proper C++ library support
12675         ld_shlibs_CXX=no
12676         ;;
12677       *)
12678         # FIXME: insert proper C++ library support
12679         ld_shlibs_CXX=no
12680         ;;
12681     esac
12682     ;;
12683   netbsd*)
12684     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12685       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12686       wlarc=
12687       hardcode_libdir_flag_spec_CXX='-R$libdir'
12688       hardcode_direct_CXX=yes
12689       hardcode_shlibpath_var_CXX=no
12690     fi
12691     # Workaround some broken pre-1.5 toolchains
12692     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12693     ;;
12694   openbsd2*)
12695     # C++ shared libraries are fairly broken
12696     ld_shlibs_CXX=no
12697     ;;
12698   openbsd*)
12699     hardcode_direct_CXX=yes
12700     hardcode_shlibpath_var_CXX=no
12701     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12702     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12703     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12704       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12705       export_dynamic_flag_spec_CXX='${wl}-E'
12706       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12707     fi
12708     output_verbose_link_cmd='echo'
12709     ;;
12710   osf3*)
12711     case $cc_basename in
12712       KCC*)
12713         # Kuck and Associates, Inc. (KAI) C++ Compiler
12714
12715         # KCC will only create a shared library if the output file
12716         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12717         # to its proper name (with version) after linking.
12718         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'
12719
12720         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12721         hardcode_libdir_separator_CXX=:
12722
12723         # Archives containing C++ object files must be created using
12724         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12725         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12726
12727         ;;
12728       RCC*)
12729         # Rational C++ 2.4.1
12730         # FIXME: insert proper C++ library support
12731         ld_shlibs_CXX=no
12732         ;;
12733       cxx*)
12734         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12735         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'
12736
12737         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12738         hardcode_libdir_separator_CXX=:
12739
12740         # Commands to make compiler produce verbose output that lists
12741         # what "hidden" libraries, object files and flags are used when
12742         # linking a shared library.
12743         #
12744         # There doesn't appear to be a way to prevent this compiler from
12745         # explicitly linking system object files so we need to strip them
12746         # from the output so that they don't get included in the library
12747         # dependencies.
12748         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'
12749         ;;
12750       *)
12751         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12752           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12753           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'
12754
12755           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12756           hardcode_libdir_separator_CXX=:
12757
12758           # Commands to make compiler produce verbose output that lists
12759           # what "hidden" libraries, object files and flags are used when
12760           # linking a shared library.
12761           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12762
12763         else
12764           # FIXME: insert proper C++ library support
12765           ld_shlibs_CXX=no
12766         fi
12767         ;;
12768     esac
12769     ;;
12770   osf4* | osf5*)
12771     case $cc_basename in
12772       KCC*)
12773         # Kuck and Associates, Inc. (KAI) C++ Compiler
12774
12775         # KCC will only create a shared library if the output file
12776         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12777         # to its proper name (with version) after linking.
12778         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'
12779
12780         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12781         hardcode_libdir_separator_CXX=:
12782
12783         # Archives containing C++ object files must be created using
12784         # the KAI C++ compiler.
12785         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12786         ;;
12787       RCC*)
12788         # Rational C++ 2.4.1
12789         # FIXME: insert proper C++ library support
12790         ld_shlibs_CXX=no
12791         ;;
12792       cxx*)
12793         allow_undefined_flag_CXX=' -expect_unresolved \*'
12794         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'
12795         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12796           echo "-hidden">> $lib.exp~
12797           $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~
12798           $rm $lib.exp'
12799
12800         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12801         hardcode_libdir_separator_CXX=:
12802
12803         # Commands to make compiler produce verbose output that lists
12804         # what "hidden" libraries, object files and flags are used when
12805         # linking a shared library.
12806         #
12807         # There doesn't appear to be a way to prevent this compiler from
12808         # explicitly linking system object files so we need to strip them
12809         # from the output so that they don't get included in the library
12810         # dependencies.
12811         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'
12812         ;;
12813       *)
12814         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12815           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12816          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'
12817
12818           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12819           hardcode_libdir_separator_CXX=:
12820
12821           # Commands to make compiler produce verbose output that lists
12822           # what "hidden" libraries, object files and flags are used when
12823           # linking a shared library.
12824           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12825
12826         else
12827           # FIXME: insert proper C++ library support
12828           ld_shlibs_CXX=no
12829         fi
12830         ;;
12831     esac
12832     ;;
12833   psos*)
12834     # FIXME: insert proper C++ library support
12835     ld_shlibs_CXX=no
12836     ;;
12837   sco*)
12838     archive_cmds_need_lc_CXX=no
12839     case $cc_basename in
12840       CC*)
12841         # FIXME: insert proper C++ library support
12842         ld_shlibs_CXX=no
12843         ;;
12844       *)
12845         # FIXME: insert proper C++ library support
12846         ld_shlibs_CXX=no
12847         ;;
12848     esac
12849     ;;
12850   sunos4*)
12851     case $cc_basename in
12852       CC*)
12853         # Sun C++ 4.x
12854         # FIXME: insert proper C++ library support
12855         ld_shlibs_CXX=no
12856         ;;
12857       lcc*)
12858         # Lucid
12859         # FIXME: insert proper C++ library support
12860         ld_shlibs_CXX=no
12861         ;;
12862       *)
12863         # FIXME: insert proper C++ library support
12864         ld_shlibs_CXX=no
12865         ;;
12866     esac
12867     ;;
12868   solaris*)
12869     case $cc_basename in
12870       CC*)
12871         # Sun C++ 4.2, 5.x and Centerline C++
12872         no_undefined_flag_CXX=' -zdefs'
12873         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12874         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12875         $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'
12876
12877         hardcode_libdir_flag_spec_CXX='-R$libdir'
12878         hardcode_shlibpath_var_CXX=no
12879         case $host_os in
12880           solaris2.[0-5] | solaris2.[0-5].*) ;;
12881           *)
12882             # The C++ compiler is used as linker so we must use $wl
12883             # flag to pass the commands to the underlying system
12884             # linker. We must also pass each convience library through
12885             # to the system linker between allextract/defaultextract.
12886             # The C++ compiler will combine linker options so we
12887             # cannot just pass the convience library names through
12888             # without $wl.
12889             # Supported since Solaris 2.6 (maybe 2.5.1?)
12890             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'
12891             ;;
12892         esac
12893         link_all_deplibs_CXX=yes
12894
12895         # Commands to make compiler produce verbose output that lists
12896         # what "hidden" libraries, object files and flags are used when
12897         # linking a shared library.
12898         #
12899         # There doesn't appear to be a way to prevent this compiler from
12900         # explicitly linking system object files so we need to strip them
12901         # from the output so that they don't get included in the library
12902         # dependencies.
12903         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'
12904
12905         # Archives containing C++ object files must be created using
12906         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12907         # necessary to make sure instantiated templates are included
12908         # in the archive.
12909         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12910         ;;
12911       gcx*)
12912         # Green Hills C++ Compiler
12913         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12914
12915         # The C++ compiler must be used to create the archive.
12916         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12917         ;;
12918       *)
12919         # GNU C++ compiler with Solaris linker
12920         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12921           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12922           if $CC --version | grep -v '^2\.7' > /dev/null; then
12923             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12924             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12925                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12926
12927             # Commands to make compiler produce verbose output that lists
12928             # what "hidden" libraries, object files and flags are used when
12929             # linking a shared library.
12930             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12931           else
12932             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12933             # platform.
12934             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12935             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12936                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12937
12938             # Commands to make compiler produce verbose output that lists
12939             # what "hidden" libraries, object files and flags are used when
12940             # linking a shared library.
12941             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12942           fi
12943
12944           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12945         fi
12946         ;;
12947     esac
12948     ;;
12949   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12950     archive_cmds_need_lc_CXX=no
12951     ;;
12952   tandem*)
12953     case $cc_basename in
12954       NCC*)
12955         # NonStop-UX NCC 3.20
12956         # FIXME: insert proper C++ library support
12957         ld_shlibs_CXX=no
12958         ;;
12959       *)
12960         # FIXME: insert proper C++ library support
12961         ld_shlibs_CXX=no
12962         ;;
12963     esac
12964     ;;
12965   vxworks*)
12966     # FIXME: insert proper C++ library support
12967     ld_shlibs_CXX=no
12968     ;;
12969   *)
12970     # FIXME: insert proper C++ library support
12971     ld_shlibs_CXX=no
12972     ;;
12973 esac
12974 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12975 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12976 test "$ld_shlibs_CXX" = no && can_build_shared=no
12977
12978 GCC_CXX="$GXX"
12979 LD_CXX="$LD"
12980
12981
12982 cat > conftest.$ac_ext <<EOF
12983 class Foo
12984 {
12985 public:
12986   Foo (void) { a = 0; }
12987 private:
12988   int a;
12989 };
12990 EOF
12991
12992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12993   (eval $ac_compile) 2>&5
12994   ac_status=$?
12995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996   (exit $ac_status); }; then
12997   # Parse the compiler output and extract the necessary
12998   # objects, libraries and library flags.
12999
13000   # Sentinel used to keep track of whether or not we are before
13001   # the conftest object file.
13002   pre_test_object_deps_done=no
13003
13004   # The `*' in the case matches for architectures that use `case' in
13005   # $output_verbose_cmd can trigger glob expansion during the loop
13006   # eval without this substitution.
13007   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13008
13009   for p in `eval $output_verbose_link_cmd`; do
13010     case $p in
13011
13012     -L* | -R* | -l*)
13013        # Some compilers place space between "-{L,R}" and the path.
13014        # Remove the space.
13015        if test $p = "-L" \
13016           || test $p = "-R"; then
13017          prev=$p
13018          continue
13019        else
13020          prev=
13021        fi
13022
13023        if test "$pre_test_object_deps_done" = no; then
13024          case $p in
13025          -L* | -R*)
13026            # Internal compiler library paths should come after those
13027            # provided the user.  The postdeps already come after the
13028            # user supplied libs so there is no need to process them.
13029            if test -z "$compiler_lib_search_path_CXX"; then
13030              compiler_lib_search_path_CXX="${prev}${p}"
13031            else
13032              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13033            fi
13034            ;;
13035          # The "-l" case would never come before the object being
13036          # linked, so don't bother handling this case.
13037          esac
13038        else
13039          if test -z "$postdeps_CXX"; then
13040            postdeps_CXX="${prev}${p}"
13041          else
13042            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13043          fi
13044        fi
13045        ;;
13046
13047     *.$objext)
13048        # This assumes that the test object file only shows up
13049        # once in the compiler output.
13050        if test "$p" = "conftest.$objext"; then
13051          pre_test_object_deps_done=yes
13052          continue
13053        fi
13054
13055        if test "$pre_test_object_deps_done" = no; then
13056          if test -z "$predep_objects_CXX"; then
13057            predep_objects_CXX="$p"
13058          else
13059            predep_objects_CXX="$predep_objects_CXX $p"
13060          fi
13061        else
13062          if test -z "$postdep_objects_CXX"; then
13063            postdep_objects_CXX="$p"
13064          else
13065            postdep_objects_CXX="$postdep_objects_CXX $p"
13066          fi
13067        fi
13068        ;;
13069
13070     *) ;; # Ignore the rest.
13071
13072     esac
13073   done
13074
13075   # Clean up.
13076   rm -f a.out a.exe
13077 else
13078   echo "libtool.m4: error: problem compiling CXX test program"
13079 fi
13080
13081 $rm -f confest.$objext
13082
13083 case " $postdeps_CXX " in
13084 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13085 esac
13086
13087 lt_prog_compiler_wl_CXX=
13088 lt_prog_compiler_pic_CXX=
13089 lt_prog_compiler_static_CXX=
13090
13091 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13092 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13093
13094   # C++ specific cases for pic, static, wl, etc.
13095   if test "$GXX" = yes; then
13096     lt_prog_compiler_wl_CXX='-Wl,'
13097     lt_prog_compiler_static_CXX='-static'
13098
13099     case $host_os in
13100     aix*)
13101       # All AIX code is PIC.
13102       if test "$host_cpu" = ia64; then
13103         # AIX 5 now supports IA64 processor
13104         lt_prog_compiler_static_CXX='-Bstatic'
13105       fi
13106       ;;
13107     amigaos*)
13108       # FIXME: we need at least 68020 code to build shared libraries, but
13109       # adding the `-m68020' flag to GCC prevents building anything better,
13110       # like `-m68040'.
13111       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13112       ;;
13113     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13114       # PIC is the default for these OSes.
13115       ;;
13116     mingw* | os2* | pw32*)
13117       # This hack is so that the source file can tell whether it is being
13118       # built for inclusion in a dll (and should export symbols for example).
13119       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13120       ;;
13121     darwin* | rhapsody*)
13122       # PIC is the default on this platform
13123       # Common symbols not allowed in MH_DYLIB files
13124       lt_prog_compiler_pic_CXX='-fno-common'
13125       ;;
13126     *djgpp*)
13127       # DJGPP does not support shared libraries at all
13128       lt_prog_compiler_pic_CXX=
13129       ;;
13130     sysv4*MP*)
13131       if test -d /usr/nec; then
13132         lt_prog_compiler_pic_CXX=-Kconform_pic
13133       fi
13134       ;;
13135     hpux*)
13136       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13137       # not for PA HP-UX.
13138       case "$host_cpu" in
13139       hppa*64*|ia64*)
13140         ;;
13141       *)
13142         lt_prog_compiler_pic_CXX='-fPIC'
13143         ;;
13144       esac
13145       ;;
13146     *)
13147       lt_prog_compiler_pic_CXX='-fPIC'
13148       ;;
13149     esac
13150   else
13151     case $host_os in
13152       aix4* | aix5*)
13153         # All AIX code is PIC.
13154         if test "$host_cpu" = ia64; then
13155           # AIX 5 now supports IA64 processor
13156           lt_prog_compiler_static_CXX='-Bstatic'
13157         else
13158           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13159         fi
13160         ;;
13161       chorus*)
13162         case $cc_basename in
13163         cxch68*)
13164           # Green Hills C++ Compiler
13165           # _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"
13166           ;;
13167         esac
13168         ;;
13169        darwin*)
13170          # PIC is the default on this platform
13171          # Common symbols not allowed in MH_DYLIB files
13172          case $cc_basename in
13173            xlc*)
13174            lt_prog_compiler_pic_CXX='-qnocommon'
13175            lt_prog_compiler_wl_CXX='-Wl,'
13176            ;;
13177          esac
13178        ;;
13179       dgux*)
13180         case $cc_basename in
13181           ec++*)
13182             lt_prog_compiler_pic_CXX='-KPIC'
13183             ;;
13184           ghcx*)
13185             # Green Hills C++ Compiler
13186             lt_prog_compiler_pic_CXX='-pic'
13187             ;;
13188           *)
13189             ;;
13190         esac
13191         ;;
13192       freebsd* | kfreebsd*-gnu | dragonfly*)
13193         # FreeBSD uses GNU C++
13194         ;;
13195       hpux9* | hpux10* | hpux11*)
13196         case $cc_basename in
13197           CC*)
13198             lt_prog_compiler_wl_CXX='-Wl,'
13199             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13200             if test "$host_cpu" != ia64; then
13201               lt_prog_compiler_pic_CXX='+Z'
13202             fi
13203             ;;
13204           aCC*)
13205             lt_prog_compiler_wl_CXX='-Wl,'
13206             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13207             case "$host_cpu" in
13208             hppa*64*|ia64*)
13209               # +Z the default
13210               ;;
13211             *)
13212               lt_prog_compiler_pic_CXX='+Z'
13213               ;;
13214             esac
13215             ;;
13216           *)
13217             ;;
13218         esac
13219         ;;
13220       irix5* | irix6* | nonstopux*)
13221         case $cc_basename in
13222           CC*)
13223             lt_prog_compiler_wl_CXX='-Wl,'
13224             lt_prog_compiler_static_CXX='-non_shared'
13225             # CC pic flag -KPIC is the default.
13226             ;;
13227           *)
13228             ;;
13229         esac
13230         ;;
13231       linux*)
13232         case $cc_basename in
13233           KCC*)
13234             # KAI C++ Compiler
13235             lt_prog_compiler_wl_CXX='--backend -Wl,'
13236             lt_prog_compiler_pic_CXX='-fPIC'
13237             ;;
13238           icpc* | ecpc*)
13239             # Intel C++
13240             lt_prog_compiler_wl_CXX='-Wl,'
13241             lt_prog_compiler_pic_CXX='-KPIC'
13242             lt_prog_compiler_static_CXX='-static'
13243             ;;
13244           pgCC*)
13245             # Portland Group C++ compiler.
13246             lt_prog_compiler_wl_CXX='-Wl,'
13247             lt_prog_compiler_pic_CXX='-fpic'
13248             lt_prog_compiler_static_CXX='-static'
13249             ;;
13250           cxx*)
13251             # Compaq C++
13252             # Make sure the PIC flag is empty.  It appears that all Alpha
13253             # Linux and Compaq Tru64 Unix objects are PIC.
13254             lt_prog_compiler_pic_CXX=
13255             lt_prog_compiler_static_CXX='-non_shared'
13256             ;;
13257           *)
13258             ;;
13259         esac
13260         ;;
13261       lynxos*)
13262         ;;
13263       m88k*)
13264         ;;
13265       mvs*)
13266         case $cc_basename in
13267           cxx*)
13268             lt_prog_compiler_pic_CXX='-W c,exportall'
13269             ;;
13270           *)
13271             ;;
13272         esac
13273         ;;
13274       netbsd*)
13275         ;;
13276       osf3* | osf4* | osf5*)
13277         case $cc_basename in
13278           KCC*)
13279             lt_prog_compiler_wl_CXX='--backend -Wl,'
13280             ;;
13281           RCC*)
13282             # Rational C++ 2.4.1
13283             lt_prog_compiler_pic_CXX='-pic'
13284             ;;
13285           cxx*)
13286             # Digital/Compaq C++
13287             lt_prog_compiler_wl_CXX='-Wl,'
13288             # Make sure the PIC flag is empty.  It appears that all Alpha
13289             # Linux and Compaq Tru64 Unix objects are PIC.
13290             lt_prog_compiler_pic_CXX=
13291             lt_prog_compiler_static_CXX='-non_shared'
13292             ;;
13293           *)
13294             ;;
13295         esac
13296         ;;
13297       psos*)
13298         ;;
13299       sco*)
13300         case $cc_basename in
13301           CC*)
13302             lt_prog_compiler_pic_CXX='-fPIC'
13303             ;;
13304           *)
13305             ;;
13306         esac
13307         ;;
13308       solaris*)
13309         case $cc_basename in
13310           CC*)
13311             # Sun C++ 4.2, 5.x and Centerline C++
13312             lt_prog_compiler_pic_CXX='-KPIC'
13313             lt_prog_compiler_static_CXX='-Bstatic'
13314             lt_prog_compiler_wl_CXX='-Qoption ld '
13315             ;;
13316           gcx*)
13317             # Green Hills C++ Compiler
13318             lt_prog_compiler_pic_CXX='-PIC'
13319             ;;
13320           *)
13321             ;;
13322         esac
13323         ;;
13324       sunos4*)
13325         case $cc_basename in
13326           CC*)
13327             # Sun C++ 4.x
13328             lt_prog_compiler_pic_CXX='-pic'
13329             lt_prog_compiler_static_CXX='-Bstatic'
13330             ;;
13331           lcc*)
13332             # Lucid
13333             lt_prog_compiler_pic_CXX='-pic'
13334             ;;
13335           *)
13336             ;;
13337         esac
13338         ;;
13339       tandem*)
13340         case $cc_basename in
13341           NCC*)
13342             # NonStop-UX NCC 3.20
13343             lt_prog_compiler_pic_CXX='-KPIC'
13344             ;;
13345           *)
13346             ;;
13347         esac
13348         ;;
13349       unixware*)
13350         ;;
13351       vxworks*)
13352         ;;
13353       *)
13354         lt_prog_compiler_can_build_shared_CXX=no
13355         ;;
13356     esac
13357   fi
13358
13359 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13360 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13361
13362 #
13363 # Check to make sure the PIC flag actually works.
13364 #
13365 if test -n "$lt_prog_compiler_pic_CXX"; then
13366
13367 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13368 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13369 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13370   echo $ECHO_N "(cached) $ECHO_C" >&6
13371 else
13372   lt_prog_compiler_pic_works_CXX=no
13373   ac_outfile=conftest.$ac_objext
13374    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13375    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13376    # Insert the option either (1) after the last *FLAGS variable, or
13377    # (2) before a word containing "conftest.", or (3) at the end.
13378    # Note that $ac_compile itself does not contain backslashes and begins
13379    # with a dollar sign (not a hyphen), so the echo should work correctly.
13380    # The option is referenced via a variable to avoid confusing sed.
13381    lt_compile=`echo "$ac_compile" | $SED \
13382    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13383    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13384    -e 's:$: $lt_compiler_flag:'`
13385    (eval echo "\"\$as_me:13385: $lt_compile\"" >&5)
13386    (eval "$lt_compile" 2>conftest.err)
13387    ac_status=$?
13388    cat conftest.err >&5
13389    echo "$as_me:13389: \$? = $ac_status" >&5
13390    if (exit $ac_status) && test -s "$ac_outfile"; then
13391      # The compiler can only warn and ignore the option if not recognized
13392      # So say no if there are warnings other than the usual output.
13393      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13394      $SED '/^$/d' conftest.err >conftest.er2
13395      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13396        lt_prog_compiler_pic_works_CXX=yes
13397      fi
13398    fi
13399    $rm conftest*
13400
13401 fi
13402 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13403 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13404
13405 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13406     case $lt_prog_compiler_pic_CXX in
13407      "" | " "*) ;;
13408      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13409      esac
13410 else
13411     lt_prog_compiler_pic_CXX=
13412      lt_prog_compiler_can_build_shared_CXX=no
13413 fi
13414
13415 fi
13416 case "$host_os" in
13417   # For platforms which do not support PIC, -DPIC is meaningless:
13418   *djgpp*)
13419     lt_prog_compiler_pic_CXX=
13420     ;;
13421   *)
13422     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13423     ;;
13424 esac
13425
13426 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13427 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13428 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13429   echo $ECHO_N "(cached) $ECHO_C" >&6
13430 else
13431   lt_cv_prog_compiler_c_o_CXX=no
13432    $rm -r conftest 2>/dev/null
13433    mkdir conftest
13434    cd conftest
13435    mkdir out
13436    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13437
13438    lt_compiler_flag="-o out/conftest2.$ac_objext"
13439    # Insert the option either (1) after the last *FLAGS variable, or
13440    # (2) before a word containing "conftest.", or (3) at the end.
13441    # Note that $ac_compile itself does not contain backslashes and begins
13442    # with a dollar sign (not a hyphen), so the echo should work correctly.
13443    lt_compile=`echo "$ac_compile" | $SED \
13444    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13445    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13446    -e 's:$: $lt_compiler_flag:'`
13447    (eval echo "\"\$as_me:13447: $lt_compile\"" >&5)
13448    (eval "$lt_compile" 2>out/conftest.err)
13449    ac_status=$?
13450    cat out/conftest.err >&5
13451    echo "$as_me:13451: \$? = $ac_status" >&5
13452    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13453    then
13454      # The compiler can only warn and ignore the option if not recognized
13455      # So say no if there are warnings
13456      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13457      $SED '/^$/d' out/conftest.err >out/conftest.er2
13458      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13459        lt_cv_prog_compiler_c_o_CXX=yes
13460      fi
13461    fi
13462    chmod u+w .
13463    $rm conftest*
13464    # SGI C++ compiler will create directory out/ii_files/ for
13465    # template instantiation
13466    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13467    $rm out/* && rmdir out
13468    cd ..
13469    rmdir conftest
13470    $rm conftest*
13471
13472 fi
13473 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13474 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13475
13476
13477 hard_links="nottested"
13478 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13479   # do not overwrite the value of need_locks provided by the user
13480   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13481 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13482   hard_links=yes
13483   $rm conftest*
13484   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13485   touch conftest.a
13486   ln conftest.a conftest.b 2>&5 || hard_links=no
13487   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13488   echo "$as_me:$LINENO: result: $hard_links" >&5
13489 echo "${ECHO_T}$hard_links" >&6
13490   if test "$hard_links" = no; then
13491     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13492 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13493     need_locks=warn
13494   fi
13495 else
13496   need_locks=no
13497 fi
13498
13499 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13500 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13501
13502   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13503   case $host_os in
13504   aix4* | aix5*)
13505     # If we're using GNU nm, then we don't want the "-C" option.
13506     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13507     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13508       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'
13509     else
13510       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'
13511     fi
13512     ;;
13513   pw32*)
13514     export_symbols_cmds_CXX="$ltdll_cmds"
13515   ;;
13516   cygwin* | mingw*)
13517     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'
13518   ;;
13519   *)
13520     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13521   ;;
13522   esac
13523
13524 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13525 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13526 test "$ld_shlibs_CXX" = no && can_build_shared=no
13527
13528 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13529 if test "$GCC" = yes; then
13530   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13531 fi
13532
13533 #
13534 # Do we need to explicitly link libc?
13535 #
13536 case "x$archive_cmds_need_lc_CXX" in
13537 x|xyes)
13538   # Assume -lc should be added
13539   archive_cmds_need_lc_CXX=yes
13540
13541   if test "$enable_shared" = yes && test "$GCC" = yes; then
13542     case $archive_cmds_CXX in
13543     *'~'*)
13544       # FIXME: we may have to deal with multi-command sequences.
13545       ;;
13546     '$CC '*)
13547       # Test whether the compiler implicitly links with -lc since on some
13548       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13549       # to ld, don't add -lc before -lgcc.
13550       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13551 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13552       $rm conftest*
13553       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13554
13555       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13556   (eval $ac_compile) 2>&5
13557   ac_status=$?
13558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); } 2>conftest.err; then
13560         soname=conftest
13561         lib=conftest
13562         libobjs=conftest.$ac_objext
13563         deplibs=
13564         wl=$lt_prog_compiler_wl_CXX
13565         compiler_flags=-v
13566         linker_flags=-v
13567         verstring=
13568         output_objdir=.
13569         libname=conftest
13570         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13571         allow_undefined_flag_CXX=
13572         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13573   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13574   ac_status=$?
13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); }
13577         then
13578           archive_cmds_need_lc_CXX=no
13579         else
13580           archive_cmds_need_lc_CXX=yes
13581         fi
13582         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13583       else
13584         cat conftest.err 1>&5
13585       fi
13586       $rm conftest*
13587       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13588 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13589       ;;
13590     esac
13591   fi
13592   ;;
13593 esac
13594
13595 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13596 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13597 library_names_spec=
13598 libname_spec='lib$name'
13599 soname_spec=
13600 shrext_cmds=".so"
13601 postinstall_cmds=
13602 postuninstall_cmds=
13603 finish_cmds=
13604 finish_eval=
13605 shlibpath_var=
13606 shlibpath_overrides_runpath=unknown
13607 version_type=none
13608 dynamic_linker="$host_os ld.so"
13609 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13610 if test "$GCC" = yes; then
13611   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13612   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13613     # if the path contains ";" then we assume it to be the separator
13614     # otherwise default to the standard path separator (i.e. ":") - it is
13615     # assumed that no part of a normal pathname contains ";" but that should
13616     # okay in the real world where ";" in dirpaths is itself problematic.
13617     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13618   else
13619     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13620   fi
13621 else
13622   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13623 fi
13624 need_lib_prefix=unknown
13625 hardcode_into_libs=no
13626
13627 # when you set need_version to no, make sure it does not cause -set_version
13628 # flags to be left without arguments
13629 need_version=unknown
13630
13631 case $host_os in
13632 aix3*)
13633   version_type=linux
13634   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13635   shlibpath_var=LIBPATH
13636
13637   # AIX 3 has no versioning support, so we append a major version to the name.
13638   soname_spec='${libname}${release}${shared_ext}$major'
13639   ;;
13640
13641 aix4* | aix5*)
13642   version_type=linux
13643   need_lib_prefix=no
13644   need_version=no
13645   hardcode_into_libs=yes
13646   if test "$host_cpu" = ia64; then
13647     # AIX 5 supports IA64
13648     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13649     shlibpath_var=LD_LIBRARY_PATH
13650   else
13651     # With GCC up to 2.95.x, collect2 would create an import file
13652     # for dependence libraries.  The import file would start with
13653     # the line `#! .'.  This would cause the generated library to
13654     # depend on `.', always an invalid library.  This was fixed in
13655     # development snapshots of GCC prior to 3.0.
13656     case $host_os in
13657       aix4 | aix4.[01] | aix4.[01].*)
13658       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13659            echo ' yes '
13660            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13661         :
13662       else
13663         can_build_shared=no
13664       fi
13665       ;;
13666     esac
13667     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13668     # soname into executable. Probably we can add versioning support to
13669     # collect2, so additional links can be useful in future.
13670     if test "$aix_use_runtimelinking" = yes; then
13671       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13672       # instead of lib<name>.a to let people know that these are not
13673       # typical AIX shared libraries.
13674       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13675     else
13676       # We preserve .a as extension for shared libraries through AIX4.2
13677       # and later when we are not doing run time linking.
13678       library_names_spec='${libname}${release}.a $libname.a'
13679       soname_spec='${libname}${release}${shared_ext}$major'
13680     fi
13681     shlibpath_var=LIBPATH
13682   fi
13683   ;;
13684
13685 amigaos*)
13686   library_names_spec='$libname.ixlibrary $libname.a'
13687   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13688   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'
13689   ;;
13690
13691 beos*)
13692   library_names_spec='${libname}${shared_ext}'
13693   dynamic_linker="$host_os ld.so"
13694   shlibpath_var=LIBRARY_PATH
13695   ;;
13696
13697 bsdi[45]*)
13698   version_type=linux
13699   need_version=no
13700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13701   soname_spec='${libname}${release}${shared_ext}$major'
13702   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13703   shlibpath_var=LD_LIBRARY_PATH
13704   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13705   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13706   # the default ld.so.conf also contains /usr/contrib/lib and
13707   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13708   # libtool to hard-code these into programs
13709   ;;
13710
13711 cygwin* | mingw* | pw32*)
13712   version_type=windows
13713   shrext_cmds=".dll"
13714   need_version=no
13715   need_lib_prefix=no
13716
13717   case $GCC,$host_os in
13718   yes,cygwin* | yes,mingw* | yes,pw32*)
13719     library_names_spec='$libname.dll.a'
13720     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13721     postinstall_cmds='base_file=`basename \${file}`~
13722       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13723       dldir=$destdir/`dirname \$dlpath`~
13724       test -d \$dldir || mkdir -p \$dldir~
13725       $install_prog $dir/$dlname \$dldir/$dlname'
13726     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13727       dlpath=$dir/\$dldll~
13728        $rm \$dlpath'
13729     shlibpath_overrides_runpath=yes
13730
13731     case $host_os in
13732     cygwin*)
13733       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13734       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13735       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13736       ;;
13737     mingw*)
13738       # MinGW DLLs use traditional 'lib' prefix
13739       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13740       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13741       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13742         # It is most probably a Windows format PATH printed by
13743         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13744         # path with ; separators, and with drive letters. We can handle the
13745         # drive letters (cygwin fileutils understands them), so leave them,
13746         # especially as we might pass files found there to a mingw objdump,
13747         # which wouldn't understand a cygwinified path. Ahh.
13748         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13749       else
13750         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13751       fi
13752       ;;
13753     pw32*)
13754       # pw32 DLLs use 'pw' prefix rather than 'lib'
13755       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13756       ;;
13757     esac
13758     ;;
13759
13760   *)
13761     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13762     ;;
13763   esac
13764   dynamic_linker='Win32 ld.exe'
13765   # FIXME: first we should search . and the directory the executable is in
13766   shlibpath_var=PATH
13767   ;;
13768
13769 darwin* | rhapsody*)
13770   dynamic_linker="$host_os dyld"
13771   version_type=darwin
13772   need_lib_prefix=no
13773   need_version=no
13774   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13775   soname_spec='${libname}${release}${major}$shared_ext'
13776   shlibpath_overrides_runpath=yes
13777   shlibpath_var=DYLD_LIBRARY_PATH
13778   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13779   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13780   if test "$GCC" = yes; then
13781     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"`
13782   else
13783     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13784   fi
13785   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13786   ;;
13787
13788 dgux*)
13789   version_type=linux
13790   need_lib_prefix=no
13791   need_version=no
13792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13793   soname_spec='${libname}${release}${shared_ext}$major'
13794   shlibpath_var=LD_LIBRARY_PATH
13795   ;;
13796
13797 freebsd1*)
13798   dynamic_linker=no
13799   ;;
13800
13801 kfreebsd*-gnu)
13802   version_type=linux
13803   need_lib_prefix=no
13804   need_version=no
13805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13806   soname_spec='${libname}${release}${shared_ext}$major'
13807   shlibpath_var=LD_LIBRARY_PATH
13808   shlibpath_overrides_runpath=no
13809   hardcode_into_libs=yes
13810   dynamic_linker='GNU ld.so'
13811   ;;
13812
13813 freebsd* | dragonfly*)
13814   # DragonFly does not have aout.  When/if they implement a new
13815   # versioning mechanism, adjust this.
13816   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13817   version_type=freebsd-$objformat
13818   case $version_type in
13819     freebsd-elf*)
13820       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13821       need_version=no
13822       need_lib_prefix=no
13823       ;;
13824     freebsd-*)
13825       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13826       need_version=yes
13827       ;;
13828   esac
13829   shlibpath_var=LD_LIBRARY_PATH
13830   case $host_os in
13831   freebsd2*)
13832     shlibpath_overrides_runpath=yes
13833     ;;
13834   freebsd3.[01]* | freebsdelf3.[01]*)
13835     shlibpath_overrides_runpath=yes
13836     hardcode_into_libs=yes
13837     ;;
13838   *) # from 3.2 on
13839     shlibpath_overrides_runpath=no
13840     hardcode_into_libs=yes
13841     ;;
13842   esac
13843   ;;
13844
13845 gnu*)
13846   version_type=linux
13847   need_lib_prefix=no
13848   need_version=no
13849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13850   soname_spec='${libname}${release}${shared_ext}$major'
13851   shlibpath_var=LD_LIBRARY_PATH
13852   hardcode_into_libs=yes
13853   ;;
13854
13855 hpux9* | hpux10* | hpux11*)
13856   # Give a soname corresponding to the major version so that dld.sl refuses to
13857   # link against other versions.
13858   version_type=sunos
13859   need_lib_prefix=no
13860   need_version=no
13861   case "$host_cpu" in
13862   ia64*)
13863     shrext_cmds='.so'
13864     hardcode_into_libs=yes
13865     dynamic_linker="$host_os dld.so"
13866     shlibpath_var=LD_LIBRARY_PATH
13867     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13868     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13869     soname_spec='${libname}${release}${shared_ext}$major'
13870     if test "X$HPUX_IA64_MODE" = X32; then
13871       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13872     else
13873       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13874     fi
13875     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13876     ;;
13877    hppa*64*)
13878      shrext_cmds='.sl'
13879      hardcode_into_libs=yes
13880      dynamic_linker="$host_os dld.sl"
13881      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13882      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13883      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13884      soname_spec='${libname}${release}${shared_ext}$major'
13885      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13886      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13887      ;;
13888    *)
13889     shrext_cmds='.sl'
13890     dynamic_linker="$host_os dld.sl"
13891     shlibpath_var=SHLIB_PATH
13892     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13893     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13894     soname_spec='${libname}${release}${shared_ext}$major'
13895     ;;
13896   esac
13897   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13898   postinstall_cmds='chmod 555 $lib'
13899   ;;
13900
13901 irix5* | irix6* | nonstopux*)
13902   case $host_os in
13903     nonstopux*) version_type=nonstopux ;;
13904     *)
13905         if test "$lt_cv_prog_gnu_ld" = yes; then
13906                 version_type=linux
13907         else
13908                 version_type=irix
13909         fi ;;
13910   esac
13911   need_lib_prefix=no
13912   need_version=no
13913   soname_spec='${libname}${release}${shared_ext}$major'
13914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13915   case $host_os in
13916   irix5* | nonstopux*)
13917     libsuff= shlibsuff=
13918     ;;
13919   *)
13920     case $LD in # libtool.m4 will add one of these switches to LD
13921     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13922       libsuff= shlibsuff= libmagic=32-bit;;
13923     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13924       libsuff=32 shlibsuff=N32 libmagic=N32;;
13925     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13926       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13927     *) libsuff= shlibsuff= libmagic=never-match;;
13928     esac
13929     ;;
13930   esac
13931   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13932   shlibpath_overrides_runpath=no
13933   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13934   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13935   hardcode_into_libs=yes
13936   ;;
13937
13938 # No shared lib support for Linux oldld, aout, or coff.
13939 linux*oldld* | linux*aout* | linux*coff*)
13940   dynamic_linker=no
13941   ;;
13942
13943 # This must be Linux ELF.
13944 linux*)
13945   version_type=linux
13946   need_lib_prefix=no
13947   need_version=no
13948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13949   soname_spec='${libname}${release}${shared_ext}$major'
13950   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13951   shlibpath_var=LD_LIBRARY_PATH
13952   shlibpath_overrides_runpath=no
13953   # This implies no fast_install, which is unacceptable.
13954   # Some rework will be needed to allow for fast_install
13955   # before this can be enabled.
13956   hardcode_into_libs=yes
13957
13958   # Append ld.so.conf contents to the search path
13959   if test -f /etc/ld.so.conf; then
13960     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' ' '`
13961     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13962   fi
13963
13964   # We used to test for /lib/ld.so.1 and disable shared libraries on
13965   # powerpc, because MkLinux only supported shared libraries with the
13966   # GNU dynamic linker.  Since this was broken with cross compilers,
13967   # most powerpc-linux boxes support dynamic linking these days and
13968   # people can always --disable-shared, the test was removed, and we
13969   # assume the GNU/Linux dynamic linker is in use.
13970   dynamic_linker='GNU/Linux ld.so'
13971   ;;
13972
13973 knetbsd*-gnu)
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   shlibpath_var=LD_LIBRARY_PATH
13980   shlibpath_overrides_runpath=no
13981   hardcode_into_libs=yes
13982   dynamic_linker='GNU ld.so'
13983   ;;
13984
13985 netbsd*)
13986   version_type=sunos
13987   need_lib_prefix=no
13988   need_version=no
13989   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13990     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13991     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13992     dynamic_linker='NetBSD (a.out) ld.so'
13993   else
13994     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13995     soname_spec='${libname}${release}${shared_ext}$major'
13996     dynamic_linker='NetBSD ld.elf_so'
13997   fi
13998   shlibpath_var=LD_LIBRARY_PATH
13999   shlibpath_overrides_runpath=yes
14000   hardcode_into_libs=yes
14001   ;;
14002
14003 newsos6)
14004   version_type=linux
14005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14006   shlibpath_var=LD_LIBRARY_PATH
14007   shlibpath_overrides_runpath=yes
14008   ;;
14009
14010 nto-qnx*)
14011   version_type=linux
14012   need_lib_prefix=no
14013   need_version=no
14014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14015   soname_spec='${libname}${release}${shared_ext}$major'
14016   shlibpath_var=LD_LIBRARY_PATH
14017   shlibpath_overrides_runpath=yes
14018   ;;
14019
14020 openbsd*)
14021   version_type=sunos
14022   need_lib_prefix=no
14023   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14024   case $host_os in
14025     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14026     *)                         need_version=no  ;;
14027   esac
14028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14029   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14030   shlibpath_var=LD_LIBRARY_PATH
14031   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14032     case $host_os in
14033       openbsd2.[89] | openbsd2.[89].*)
14034         shlibpath_overrides_runpath=no
14035         ;;
14036       *)
14037         shlibpath_overrides_runpath=yes
14038         ;;
14039       esac
14040   else
14041     shlibpath_overrides_runpath=yes
14042   fi
14043   ;;
14044
14045 os2*)
14046   libname_spec='$name'
14047   shrext_cmds=".dll"
14048   need_lib_prefix=no
14049   library_names_spec='$libname${shared_ext} $libname.a'
14050   dynamic_linker='OS/2 ld.exe'
14051   shlibpath_var=LIBPATH
14052   ;;
14053
14054 osf3* | osf4* | osf5*)
14055   version_type=osf
14056   need_lib_prefix=no
14057   need_version=no
14058   soname_spec='${libname}${release}${shared_ext}$major'
14059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14060   shlibpath_var=LD_LIBRARY_PATH
14061   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14062   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14063   ;;
14064
14065 sco3.2v5*)
14066   version_type=osf
14067   soname_spec='${libname}${release}${shared_ext}$major'
14068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14069   shlibpath_var=LD_LIBRARY_PATH
14070   ;;
14071
14072 solaris*)
14073   version_type=linux
14074   need_lib_prefix=no
14075   need_version=no
14076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14077   soname_spec='${libname}${release}${shared_ext}$major'
14078   shlibpath_var=LD_LIBRARY_PATH
14079   shlibpath_overrides_runpath=yes
14080   hardcode_into_libs=yes
14081   # ldd complains unless libraries are executable
14082   postinstall_cmds='chmod +x $lib'
14083   ;;
14084
14085 sunos4*)
14086   version_type=sunos
14087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14088   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14089   shlibpath_var=LD_LIBRARY_PATH
14090   shlibpath_overrides_runpath=yes
14091   if test "$with_gnu_ld" = yes; then
14092     need_lib_prefix=no
14093   fi
14094   need_version=yes
14095   ;;
14096
14097 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14098   version_type=linux
14099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14100   soname_spec='${libname}${release}${shared_ext}$major'
14101   shlibpath_var=LD_LIBRARY_PATH
14102   case $host_vendor in
14103     sni)
14104       shlibpath_overrides_runpath=no
14105       need_lib_prefix=no
14106       export_dynamic_flag_spec='${wl}-Blargedynsym'
14107       runpath_var=LD_RUN_PATH
14108       ;;
14109     siemens)
14110       need_lib_prefix=no
14111       ;;
14112     motorola)
14113       need_lib_prefix=no
14114       need_version=no
14115       shlibpath_overrides_runpath=no
14116       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14117       ;;
14118   esac
14119   ;;
14120
14121 sysv4*MP*)
14122   if test -d /usr/nec ;then
14123     version_type=linux
14124     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14125     soname_spec='$libname${shared_ext}.$major'
14126     shlibpath_var=LD_LIBRARY_PATH
14127   fi
14128   ;;
14129
14130 uts4*)
14131   version_type=linux
14132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14133   soname_spec='${libname}${release}${shared_ext}$major'
14134   shlibpath_var=LD_LIBRARY_PATH
14135   ;;
14136
14137 *)
14138   dynamic_linker=no
14139   ;;
14140 esac
14141 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14142 echo "${ECHO_T}$dynamic_linker" >&6
14143 test "$dynamic_linker" = no && can_build_shared=no
14144
14145 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14146 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14147 hardcode_action_CXX=
14148 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14149    test -n "$runpath_var_CXX" || \
14150    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14151
14152   # We can hardcode non-existant directories.
14153   if test "$hardcode_direct_CXX" != no &&
14154      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14155      # have to relink, otherwise we might link with an installed library
14156      # when we should be linking with a yet-to-be-installed one
14157      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14158      test "$hardcode_minus_L_CXX" != no; then
14159     # Linking always hardcodes the temporary library directory.
14160     hardcode_action_CXX=relink
14161   else
14162     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14163     hardcode_action_CXX=immediate
14164   fi
14165 else
14166   # We cannot hardcode anything, or else we can only hardcode existing
14167   # directories.
14168   hardcode_action_CXX=unsupported
14169 fi
14170 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14171 echo "${ECHO_T}$hardcode_action_CXX" >&6
14172
14173 if test "$hardcode_action_CXX" = relink; then
14174   # Fast installation is not supported
14175   enable_fast_install=no
14176 elif test "$shlibpath_overrides_runpath" = yes ||
14177      test "$enable_shared" = no; then
14178   # Fast installation is not necessary
14179   enable_fast_install=needless
14180 fi
14181
14182 striplib=
14183 old_striplib=
14184 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14185 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14186 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14187   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14188   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14189   echo "$as_me:$LINENO: result: yes" >&5
14190 echo "${ECHO_T}yes" >&6
14191 else
14192 # FIXME - insert some real tests, host_os isn't really good enough
14193   case $host_os in
14194    darwin*)
14195        if test -n "$STRIP" ; then
14196          striplib="$STRIP -x"
14197          echo "$as_me:$LINENO: result: yes" >&5
14198 echo "${ECHO_T}yes" >&6
14199        else
14200   echo "$as_me:$LINENO: result: no" >&5
14201 echo "${ECHO_T}no" >&6
14202 fi
14203        ;;
14204    *)
14205   echo "$as_me:$LINENO: result: no" >&5
14206 echo "${ECHO_T}no" >&6
14207     ;;
14208   esac
14209 fi
14210
14211 if test "x$enable_dlopen" != xyes; then
14212   enable_dlopen=unknown
14213   enable_dlopen_self=unknown
14214   enable_dlopen_self_static=unknown
14215 else
14216   lt_cv_dlopen=no
14217   lt_cv_dlopen_libs=
14218
14219   case $host_os in
14220   beos*)
14221     lt_cv_dlopen="load_add_on"
14222     lt_cv_dlopen_libs=
14223     lt_cv_dlopen_self=yes
14224     ;;
14225
14226   mingw* | pw32*)
14227     lt_cv_dlopen="LoadLibrary"
14228     lt_cv_dlopen_libs=
14229    ;;
14230
14231   cygwin*)
14232     lt_cv_dlopen="dlopen"
14233     lt_cv_dlopen_libs=
14234    ;;
14235
14236   darwin*)
14237   # if libdl is installed we need to link against it
14238     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14239 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14240 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14241   echo $ECHO_N "(cached) $ECHO_C" >&6
14242 else
14243   ac_check_lib_save_LIBS=$LIBS
14244 LIBS="-ldl  $LIBS"
14245 cat >conftest.$ac_ext <<_ACEOF
14246 /* confdefs.h.  */
14247 _ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h.  */
14251
14252 /* Override any gcc2 internal prototype to avoid an error.  */
14253 #ifdef __cplusplus
14254 extern "C"
14255 #endif
14256 /* We use char because int might match the return type of a gcc2
14257    builtin and then its argument prototype would still apply.  */
14258 char dlopen ();
14259 int
14260 main ()
14261 {
14262 dlopen ();
14263   ;
14264   return 0;
14265 }
14266 _ACEOF
14267 rm -f conftest.$ac_objext conftest$ac_exeext
14268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14269   (eval $ac_link) 2>conftest.er1
14270   ac_status=$?
14271   grep -v '^ *+' conftest.er1 >conftest.err
14272   rm -f conftest.er1
14273   cat conftest.err >&5
14274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275   (exit $ac_status); } &&
14276          { ac_try='test -z "$ac_cxx_werror_flag"
14277                          || test ! -s conftest.err'
14278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279   (eval $ac_try) 2>&5
14280   ac_status=$?
14281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282   (exit $ac_status); }; } &&
14283          { ac_try='test -s conftest$ac_exeext'
14284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285   (eval $ac_try) 2>&5
14286   ac_status=$?
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); }; }; then
14289   ac_cv_lib_dl_dlopen=yes
14290 else
14291   echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14293
14294 ac_cv_lib_dl_dlopen=no
14295 fi
14296 rm -f conftest.err conftest.$ac_objext \
14297       conftest$ac_exeext conftest.$ac_ext
14298 LIBS=$ac_check_lib_save_LIBS
14299 fi
14300 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14301 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14302 if test $ac_cv_lib_dl_dlopen = yes; then
14303   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14304 else
14305
14306     lt_cv_dlopen="dyld"
14307     lt_cv_dlopen_libs=
14308     lt_cv_dlopen_self=yes
14309
14310 fi
14311
14312    ;;
14313
14314   *)
14315     echo "$as_me:$LINENO: checking for shl_load" >&5
14316 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14317 if test "${ac_cv_func_shl_load+set}" = set; then
14318   echo $ECHO_N "(cached) $ECHO_C" >&6
14319 else
14320   cat >conftest.$ac_ext <<_ACEOF
14321 /* confdefs.h.  */
14322 _ACEOF
14323 cat confdefs.h >>conftest.$ac_ext
14324 cat >>conftest.$ac_ext <<_ACEOF
14325 /* end confdefs.h.  */
14326 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14327    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14328 #define shl_load innocuous_shl_load
14329
14330 /* System header to define __stub macros and hopefully few prototypes,
14331     which can conflict with char shl_load (); below.
14332     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14333     <limits.h> exists even on freestanding compilers.  */
14334
14335 #ifdef __STDC__
14336 # include <limits.h>
14337 #else
14338 # include <assert.h>
14339 #endif
14340
14341 #undef shl_load
14342
14343 /* Override any gcc2 internal prototype to avoid an error.  */
14344 #ifdef __cplusplus
14345 extern "C"
14346 {
14347 #endif
14348 /* We use char because int might match the return type of a gcc2
14349    builtin and then its argument prototype would still apply.  */
14350 char shl_load ();
14351 /* The GNU C library defines this for functions which it implements
14352     to always fail with ENOSYS.  Some functions are actually named
14353     something starting with __ and the normal name is an alias.  */
14354 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14355 choke me
14356 #else
14357 char (*f) () = shl_load;
14358 #endif
14359 #ifdef __cplusplus
14360 }
14361 #endif
14362
14363 int
14364 main ()
14365 {
14366 return f != shl_load;
14367   ;
14368   return 0;
14369 }
14370 _ACEOF
14371 rm -f conftest.$ac_objext conftest$ac_exeext
14372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14373   (eval $ac_link) 2>conftest.er1
14374   ac_status=$?
14375   grep -v '^ *+' conftest.er1 >conftest.err
14376   rm -f conftest.er1
14377   cat conftest.err >&5
14378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); } &&
14380          { ac_try='test -z "$ac_cxx_werror_flag"
14381                          || test ! -s conftest.err'
14382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383   (eval $ac_try) 2>&5
14384   ac_status=$?
14385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386   (exit $ac_status); }; } &&
14387          { ac_try='test -s conftest$ac_exeext'
14388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389   (eval $ac_try) 2>&5
14390   ac_status=$?
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); }; }; then
14393   ac_cv_func_shl_load=yes
14394 else
14395   echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.$ac_ext >&5
14397
14398 ac_cv_func_shl_load=no
14399 fi
14400 rm -f conftest.err conftest.$ac_objext \
14401       conftest$ac_exeext conftest.$ac_ext
14402 fi
14403 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14404 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14405 if test $ac_cv_func_shl_load = yes; then
14406   lt_cv_dlopen="shl_load"
14407 else
14408   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14409 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14410 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14411   echo $ECHO_N "(cached) $ECHO_C" >&6
14412 else
14413   ac_check_lib_save_LIBS=$LIBS
14414 LIBS="-ldld  $LIBS"
14415 cat >conftest.$ac_ext <<_ACEOF
14416 /* confdefs.h.  */
14417 _ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h.  */
14421
14422 /* Override any gcc2 internal prototype to avoid an error.  */
14423 #ifdef __cplusplus
14424 extern "C"
14425 #endif
14426 /* We use char because int might match the return type of a gcc2
14427    builtin and then its argument prototype would still apply.  */
14428 char shl_load ();
14429 int
14430 main ()
14431 {
14432 shl_load ();
14433   ;
14434   return 0;
14435 }
14436 _ACEOF
14437 rm -f conftest.$ac_objext conftest$ac_exeext
14438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14439   (eval $ac_link) 2>conftest.er1
14440   ac_status=$?
14441   grep -v '^ *+' conftest.er1 >conftest.err
14442   rm -f conftest.er1
14443   cat conftest.err >&5
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); } &&
14446          { ac_try='test -z "$ac_cxx_werror_flag"
14447                          || test ! -s conftest.err'
14448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449   (eval $ac_try) 2>&5
14450   ac_status=$?
14451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452   (exit $ac_status); }; } &&
14453          { ac_try='test -s conftest$ac_exeext'
14454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14455   (eval $ac_try) 2>&5
14456   ac_status=$?
14457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458   (exit $ac_status); }; }; then
14459   ac_cv_lib_dld_shl_load=yes
14460 else
14461   echo "$as_me: failed program was:" >&5
14462 sed 's/^/| /' conftest.$ac_ext >&5
14463
14464 ac_cv_lib_dld_shl_load=no
14465 fi
14466 rm -f conftest.err conftest.$ac_objext \
14467       conftest$ac_exeext conftest.$ac_ext
14468 LIBS=$ac_check_lib_save_LIBS
14469 fi
14470 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14471 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14472 if test $ac_cv_lib_dld_shl_load = yes; then
14473   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14474 else
14475   echo "$as_me:$LINENO: checking for dlopen" >&5
14476 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14477 if test "${ac_cv_func_dlopen+set}" = set; then
14478   echo $ECHO_N "(cached) $ECHO_C" >&6
14479 else
14480   cat >conftest.$ac_ext <<_ACEOF
14481 /* confdefs.h.  */
14482 _ACEOF
14483 cat confdefs.h >>conftest.$ac_ext
14484 cat >>conftest.$ac_ext <<_ACEOF
14485 /* end confdefs.h.  */
14486 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14487    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14488 #define dlopen innocuous_dlopen
14489
14490 /* System header to define __stub macros and hopefully few prototypes,
14491     which can conflict with char dlopen (); below.
14492     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14493     <limits.h> exists even on freestanding compilers.  */
14494
14495 #ifdef __STDC__
14496 # include <limits.h>
14497 #else
14498 # include <assert.h>
14499 #endif
14500
14501 #undef dlopen
14502
14503 /* Override any gcc2 internal prototype to avoid an error.  */
14504 #ifdef __cplusplus
14505 extern "C"
14506 {
14507 #endif
14508 /* We use char because int might match the return type of a gcc2
14509    builtin and then its argument prototype would still apply.  */
14510 char dlopen ();
14511 /* The GNU C library defines this for functions which it implements
14512     to always fail with ENOSYS.  Some functions are actually named
14513     something starting with __ and the normal name is an alias.  */
14514 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14515 choke me
14516 #else
14517 char (*f) () = dlopen;
14518 #endif
14519 #ifdef __cplusplus
14520 }
14521 #endif
14522
14523 int
14524 main ()
14525 {
14526 return f != dlopen;
14527   ;
14528   return 0;
14529 }
14530 _ACEOF
14531 rm -f conftest.$ac_objext conftest$ac_exeext
14532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14533   (eval $ac_link) 2>conftest.er1
14534   ac_status=$?
14535   grep -v '^ *+' conftest.er1 >conftest.err
14536   rm -f conftest.er1
14537   cat conftest.err >&5
14538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539   (exit $ac_status); } &&
14540          { ac_try='test -z "$ac_cxx_werror_flag"
14541                          || test ! -s conftest.err'
14542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543   (eval $ac_try) 2>&5
14544   ac_status=$?
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); }; } &&
14547          { ac_try='test -s conftest$ac_exeext'
14548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549   (eval $ac_try) 2>&5
14550   ac_status=$?
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); }; }; then
14553   ac_cv_func_dlopen=yes
14554 else
14555   echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14557
14558 ac_cv_func_dlopen=no
14559 fi
14560 rm -f conftest.err conftest.$ac_objext \
14561       conftest$ac_exeext conftest.$ac_ext
14562 fi
14563 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14564 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14565 if test $ac_cv_func_dlopen = yes; then
14566   lt_cv_dlopen="dlopen"
14567 else
14568   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14569 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14570 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14571   echo $ECHO_N "(cached) $ECHO_C" >&6
14572 else
14573   ac_check_lib_save_LIBS=$LIBS
14574 LIBS="-ldl  $LIBS"
14575 cat >conftest.$ac_ext <<_ACEOF
14576 /* confdefs.h.  */
14577 _ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h.  */
14581
14582 /* Override any gcc2 internal prototype to avoid an error.  */
14583 #ifdef __cplusplus
14584 extern "C"
14585 #endif
14586 /* We use char because int might match the return type of a gcc2
14587    builtin and then its argument prototype would still apply.  */
14588 char dlopen ();
14589 int
14590 main ()
14591 {
14592 dlopen ();
14593   ;
14594   return 0;
14595 }
14596 _ACEOF
14597 rm -f conftest.$ac_objext conftest$ac_exeext
14598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14599   (eval $ac_link) 2>conftest.er1
14600   ac_status=$?
14601   grep -v '^ *+' conftest.er1 >conftest.err
14602   rm -f conftest.er1
14603   cat conftest.err >&5
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); } &&
14606          { ac_try='test -z "$ac_cxx_werror_flag"
14607                          || test ! -s conftest.err'
14608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609   (eval $ac_try) 2>&5
14610   ac_status=$?
14611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612   (exit $ac_status); }; } &&
14613          { ac_try='test -s conftest$ac_exeext'
14614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615   (eval $ac_try) 2>&5
14616   ac_status=$?
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); }; }; then
14619   ac_cv_lib_dl_dlopen=yes
14620 else
14621   echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14623
14624 ac_cv_lib_dl_dlopen=no
14625 fi
14626 rm -f conftest.err conftest.$ac_objext \
14627       conftest$ac_exeext conftest.$ac_ext
14628 LIBS=$ac_check_lib_save_LIBS
14629 fi
14630 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14631 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14632 if test $ac_cv_lib_dl_dlopen = yes; then
14633   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14634 else
14635   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14636 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14637 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14638   echo $ECHO_N "(cached) $ECHO_C" >&6
14639 else
14640   ac_check_lib_save_LIBS=$LIBS
14641 LIBS="-lsvld  $LIBS"
14642 cat >conftest.$ac_ext <<_ACEOF
14643 /* confdefs.h.  */
14644 _ACEOF
14645 cat confdefs.h >>conftest.$ac_ext
14646 cat >>conftest.$ac_ext <<_ACEOF
14647 /* end confdefs.h.  */
14648
14649 /* Override any gcc2 internal prototype to avoid an error.  */
14650 #ifdef __cplusplus
14651 extern "C"
14652 #endif
14653 /* We use char because int might match the return type of a gcc2
14654    builtin and then its argument prototype would still apply.  */
14655 char dlopen ();
14656 int
14657 main ()
14658 {
14659 dlopen ();
14660   ;
14661   return 0;
14662 }
14663 _ACEOF
14664 rm -f conftest.$ac_objext conftest$ac_exeext
14665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14666   (eval $ac_link) 2>conftest.er1
14667   ac_status=$?
14668   grep -v '^ *+' conftest.er1 >conftest.err
14669   rm -f conftest.er1
14670   cat conftest.err >&5
14671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672   (exit $ac_status); } &&
14673          { ac_try='test -z "$ac_cxx_werror_flag"
14674                          || test ! -s conftest.err'
14675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676   (eval $ac_try) 2>&5
14677   ac_status=$?
14678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   (exit $ac_status); }; } &&
14680          { ac_try='test -s conftest$ac_exeext'
14681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682   (eval $ac_try) 2>&5
14683   ac_status=$?
14684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685   (exit $ac_status); }; }; then
14686   ac_cv_lib_svld_dlopen=yes
14687 else
14688   echo "$as_me: failed program was:" >&5
14689 sed 's/^/| /' conftest.$ac_ext >&5
14690
14691 ac_cv_lib_svld_dlopen=no
14692 fi
14693 rm -f conftest.err conftest.$ac_objext \
14694       conftest$ac_exeext conftest.$ac_ext
14695 LIBS=$ac_check_lib_save_LIBS
14696 fi
14697 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14698 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14699 if test $ac_cv_lib_svld_dlopen = yes; then
14700   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14701 else
14702   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14703 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14704 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14705   echo $ECHO_N "(cached) $ECHO_C" >&6
14706 else
14707   ac_check_lib_save_LIBS=$LIBS
14708 LIBS="-ldld  $LIBS"
14709 cat >conftest.$ac_ext <<_ACEOF
14710 /* confdefs.h.  */
14711 _ACEOF
14712 cat confdefs.h >>conftest.$ac_ext
14713 cat >>conftest.$ac_ext <<_ACEOF
14714 /* end confdefs.h.  */
14715
14716 /* Override any gcc2 internal prototype to avoid an error.  */
14717 #ifdef __cplusplus
14718 extern "C"
14719 #endif
14720 /* We use char because int might match the return type of a gcc2
14721    builtin and then its argument prototype would still apply.  */
14722 char dld_link ();
14723 int
14724 main ()
14725 {
14726 dld_link ();
14727   ;
14728   return 0;
14729 }
14730 _ACEOF
14731 rm -f conftest.$ac_objext conftest$ac_exeext
14732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14733   (eval $ac_link) 2>conftest.er1
14734   ac_status=$?
14735   grep -v '^ *+' conftest.er1 >conftest.err
14736   rm -f conftest.er1
14737   cat conftest.err >&5
14738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); } &&
14740          { ac_try='test -z "$ac_cxx_werror_flag"
14741                          || test ! -s conftest.err'
14742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743   (eval $ac_try) 2>&5
14744   ac_status=$?
14745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746   (exit $ac_status); }; } &&
14747          { ac_try='test -s conftest$ac_exeext'
14748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749   (eval $ac_try) 2>&5
14750   ac_status=$?
14751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752   (exit $ac_status); }; }; then
14753   ac_cv_lib_dld_dld_link=yes
14754 else
14755   echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14757
14758 ac_cv_lib_dld_dld_link=no
14759 fi
14760 rm -f conftest.err conftest.$ac_objext \
14761       conftest$ac_exeext conftest.$ac_ext
14762 LIBS=$ac_check_lib_save_LIBS
14763 fi
14764 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14765 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14766 if test $ac_cv_lib_dld_dld_link = yes; then
14767   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14768 fi
14769
14770
14771 fi
14772
14773
14774 fi
14775
14776
14777 fi
14778
14779
14780 fi
14781
14782
14783 fi
14784
14785     ;;
14786   esac
14787
14788   if test "x$lt_cv_dlopen" != xno; then
14789     enable_dlopen=yes
14790   else
14791     enable_dlopen=no
14792   fi
14793
14794   case $lt_cv_dlopen in
14795   dlopen)
14796     save_CPPFLAGS="$CPPFLAGS"
14797     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14798
14799     save_LDFLAGS="$LDFLAGS"
14800     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14801
14802     save_LIBS="$LIBS"
14803     LIBS="$lt_cv_dlopen_libs $LIBS"
14804
14805     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14806 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14807 if test "${lt_cv_dlopen_self+set}" = set; then
14808   echo $ECHO_N "(cached) $ECHO_C" >&6
14809 else
14810           if test "$cross_compiling" = yes; then :
14811   lt_cv_dlopen_self=cross
14812 else
14813   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14814   lt_status=$lt_dlunknown
14815   cat > conftest.$ac_ext <<EOF
14816 #line 14816 "configure"
14817 #include "confdefs.h"
14818
14819 #if HAVE_DLFCN_H
14820 #include <dlfcn.h>
14821 #endif
14822
14823 #include <stdio.h>
14824
14825 #ifdef RTLD_GLOBAL
14826 #  define LT_DLGLOBAL           RTLD_GLOBAL
14827 #else
14828 #  ifdef DL_GLOBAL
14829 #    define LT_DLGLOBAL         DL_GLOBAL
14830 #  else
14831 #    define LT_DLGLOBAL         0
14832 #  endif
14833 #endif
14834
14835 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14836    find out it does not work in some platform. */
14837 #ifndef LT_DLLAZY_OR_NOW
14838 #  ifdef RTLD_LAZY
14839 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14840 #  else
14841 #    ifdef DL_LAZY
14842 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14843 #    else
14844 #      ifdef RTLD_NOW
14845 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14846 #      else
14847 #        ifdef DL_NOW
14848 #          define LT_DLLAZY_OR_NOW      DL_NOW
14849 #        else
14850 #          define LT_DLLAZY_OR_NOW      0
14851 #        endif
14852 #      endif
14853 #    endif
14854 #  endif
14855 #endif
14856
14857 #ifdef __cplusplus
14858 extern "C" void exit (int);
14859 #endif
14860
14861 void fnord() { int i=42;}
14862 int main ()
14863 {
14864   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14865   int status = $lt_dlunknown;
14866
14867   if (self)
14868     {
14869       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14870       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14871       /* dlclose (self); */
14872     }
14873
14874     exit (status);
14875 }
14876 EOF
14877   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14878   (eval $ac_link) 2>&5
14879   ac_status=$?
14880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14882     (./conftest; exit; ) 2>/dev/null
14883     lt_status=$?
14884     case x$lt_status in
14885       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14886       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14887       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14888     esac
14889   else :
14890     # compilation failed
14891     lt_cv_dlopen_self=no
14892   fi
14893 fi
14894 rm -fr conftest*
14895
14896
14897 fi
14898 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14899 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14900
14901     if test "x$lt_cv_dlopen_self" = xyes; then
14902       LDFLAGS="$LDFLAGS $link_static_flag"
14903       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14904 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14905 if test "${lt_cv_dlopen_self_static+set}" = set; then
14906   echo $ECHO_N "(cached) $ECHO_C" >&6
14907 else
14908           if test "$cross_compiling" = yes; then :
14909   lt_cv_dlopen_self_static=cross
14910 else
14911   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14912   lt_status=$lt_dlunknown
14913   cat > conftest.$ac_ext <<EOF
14914 #line 14914 "configure"
14915 #include "confdefs.h"
14916
14917 #if HAVE_DLFCN_H
14918 #include <dlfcn.h>
14919 #endif
14920
14921 #include <stdio.h>
14922
14923 #ifdef RTLD_GLOBAL
14924 #  define LT_DLGLOBAL           RTLD_GLOBAL
14925 #else
14926 #  ifdef DL_GLOBAL
14927 #    define LT_DLGLOBAL         DL_GLOBAL
14928 #  else
14929 #    define LT_DLGLOBAL         0
14930 #  endif
14931 #endif
14932
14933 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14934    find out it does not work in some platform. */
14935 #ifndef LT_DLLAZY_OR_NOW
14936 #  ifdef RTLD_LAZY
14937 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14938 #  else
14939 #    ifdef DL_LAZY
14940 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14941 #    else
14942 #      ifdef RTLD_NOW
14943 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14944 #      else
14945 #        ifdef DL_NOW
14946 #          define LT_DLLAZY_OR_NOW      DL_NOW
14947 #        else
14948 #          define LT_DLLAZY_OR_NOW      0
14949 #        endif
14950 #      endif
14951 #    endif
14952 #  endif
14953 #endif
14954
14955 #ifdef __cplusplus
14956 extern "C" void exit (int);
14957 #endif
14958
14959 void fnord() { int i=42;}
14960 int main ()
14961 {
14962   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14963   int status = $lt_dlunknown;
14964
14965   if (self)
14966     {
14967       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14968       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14969       /* dlclose (self); */
14970     }
14971
14972     exit (status);
14973 }
14974 EOF
14975   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14976   (eval $ac_link) 2>&5
14977   ac_status=$?
14978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14980     (./conftest; exit; ) 2>/dev/null
14981     lt_status=$?
14982     case x$lt_status in
14983       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14984       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14985       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14986     esac
14987   else :
14988     # compilation failed
14989     lt_cv_dlopen_self_static=no
14990   fi
14991 fi
14992 rm -fr conftest*
14993
14994
14995 fi
14996 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14997 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14998     fi
14999
15000     CPPFLAGS="$save_CPPFLAGS"
15001     LDFLAGS="$save_LDFLAGS"
15002     LIBS="$save_LIBS"
15003     ;;
15004   esac
15005
15006   case $lt_cv_dlopen_self in
15007   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15008   *) enable_dlopen_self=unknown ;;
15009   esac
15010
15011   case $lt_cv_dlopen_self_static in
15012   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15013   *) enable_dlopen_self_static=unknown ;;
15014   esac
15015 fi
15016
15017
15018 # The else clause should only fire when bootstrapping the
15019 # libtool distribution, otherwise you forgot to ship ltmain.sh
15020 # with your package, and you will get complaints that there are
15021 # no rules to generate ltmain.sh.
15022 if test -f "$ltmain"; then
15023   # See if we are running on zsh, and set the options which allow our commands through
15024   # without removal of \ escapes.
15025   if test -n "${ZSH_VERSION+set}" ; then
15026     setopt NO_GLOB_SUBST
15027   fi
15028   # Now quote all the things that may contain metacharacters while being
15029   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15030   # variables and quote the copies for generation of the libtool script.
15031   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15032     SED SHELL STRIP \
15033     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15034     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15035     deplibs_check_method reload_flag reload_cmds need_locks \
15036     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15037     lt_cv_sys_global_symbol_to_c_name_address \
15038     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15039     old_postinstall_cmds old_postuninstall_cmds \
15040     compiler_CXX \
15041     CC_CXX \
15042     LD_CXX \
15043     lt_prog_compiler_wl_CXX \
15044     lt_prog_compiler_pic_CXX \
15045     lt_prog_compiler_static_CXX \
15046     lt_prog_compiler_no_builtin_flag_CXX \
15047     export_dynamic_flag_spec_CXX \
15048     thread_safe_flag_spec_CXX \
15049     whole_archive_flag_spec_CXX \
15050     enable_shared_with_static_runtimes_CXX \
15051     old_archive_cmds_CXX \
15052     old_archive_from_new_cmds_CXX \
15053     predep_objects_CXX \
15054     postdep_objects_CXX \
15055     predeps_CXX \
15056     postdeps_CXX \
15057     compiler_lib_search_path_CXX \
15058     archive_cmds_CXX \
15059     archive_expsym_cmds_CXX \
15060     postinstall_cmds_CXX \
15061     postuninstall_cmds_CXX \
15062     old_archive_from_expsyms_cmds_CXX \
15063     allow_undefined_flag_CXX \
15064     no_undefined_flag_CXX \
15065     export_symbols_cmds_CXX \
15066     hardcode_libdir_flag_spec_CXX \
15067     hardcode_libdir_flag_spec_ld_CXX \
15068     hardcode_libdir_separator_CXX \
15069     hardcode_automatic_CXX \
15070     module_cmds_CXX \
15071     module_expsym_cmds_CXX \
15072     lt_cv_prog_compiler_c_o_CXX \
15073     exclude_expsyms_CXX \
15074     include_expsyms_CXX; do
15075
15076     case $var in
15077     old_archive_cmds_CXX | \
15078     old_archive_from_new_cmds_CXX | \
15079     archive_cmds_CXX | \
15080     archive_expsym_cmds_CXX | \
15081     module_cmds_CXX | \
15082     module_expsym_cmds_CXX | \
15083     old_archive_from_expsyms_cmds_CXX | \
15084     export_symbols_cmds_CXX | \
15085     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15086     postinstall_cmds | postuninstall_cmds | \
15087     old_postinstall_cmds | old_postuninstall_cmds | \
15088     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15089       # Double-quote double-evaled strings.
15090       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15091       ;;
15092     *)
15093       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15094       ;;
15095     esac
15096   done
15097
15098   case $lt_echo in
15099   *'\$0 --fallback-echo"')
15100     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15101     ;;
15102   esac
15103
15104 cfgfile="$ofile"
15105
15106   cat <<__EOF__ >> "$cfgfile"
15107 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15108
15109 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15110
15111 # Shell to use when invoking shell scripts.
15112 SHELL=$lt_SHELL
15113
15114 # Whether or not to build shared libraries.
15115 build_libtool_libs=$enable_shared
15116
15117 # Whether or not to build static libraries.
15118 build_old_libs=$enable_static
15119
15120 # Whether or not to add -lc for building shared libraries.
15121 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15122
15123 # Whether or not to disallow shared libs when runtime libs are static
15124 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15125
15126 # Whether or not to optimize for fast installation.
15127 fast_install=$enable_fast_install
15128
15129 # The host system.
15130 host_alias=$host_alias
15131 host=$host
15132 host_os=$host_os
15133
15134 # The build system.
15135 build_alias=$build_alias
15136 build=$build
15137 build_os=$build_os
15138
15139 # An echo program that does not interpret backslashes.
15140 echo=$lt_echo
15141
15142 # The archiver.
15143 AR=$lt_AR
15144 AR_FLAGS=$lt_AR_FLAGS
15145
15146 # A C compiler.
15147 LTCC=$lt_LTCC
15148
15149 # A language-specific compiler.
15150 CC=$lt_compiler_CXX
15151
15152 # Is the compiler the GNU C compiler?
15153 with_gcc=$GCC_CXX
15154
15155 # An ERE matcher.
15156 EGREP=$lt_EGREP
15157
15158 # The linker used to build libraries.
15159 LD=$lt_LD_CXX
15160
15161 # Whether we need hard or soft links.
15162 LN_S=$lt_LN_S
15163
15164 # A BSD-compatible nm program.
15165 NM=$lt_NM
15166
15167 # A symbol stripping program
15168 STRIP=$lt_STRIP
15169
15170 # Used to examine libraries when file_magic_cmd begins "file"
15171 MAGIC_CMD=$MAGIC_CMD
15172
15173 # Used on cygwin: DLL creation program.
15174 DLLTOOL="$DLLTOOL"
15175
15176 # Used on cygwin: object dumper.
15177 OBJDUMP="$OBJDUMP"
15178
15179 # Used on cygwin: assembler.
15180 AS="$AS"
15181
15182 # The name of the directory that contains temporary libtool files.
15183 objdir=$objdir
15184
15185 # How to create reloadable object files.
15186 reload_flag=$lt_reload_flag
15187 reload_cmds=$lt_reload_cmds
15188
15189 # How to pass a linker flag through the compiler.
15190 wl=$lt_lt_prog_compiler_wl_CXX
15191
15192 # Object file suffix (normally "o").
15193 objext="$ac_objext"
15194
15195 # Old archive suffix (normally "a").
15196 libext="$libext"
15197
15198 # Shared library suffix (normally ".so").
15199 shrext_cmds='$shrext_cmds'
15200
15201 # Executable file suffix (normally "").
15202 exeext="$exeext"
15203
15204 # Additional compiler flags for building library objects.
15205 pic_flag=$lt_lt_prog_compiler_pic_CXX
15206 pic_mode=$pic_mode
15207
15208 # What is the maximum length of a command?
15209 max_cmd_len=$lt_cv_sys_max_cmd_len
15210
15211 # Does compiler simultaneously support -c and -o options?
15212 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15213
15214 # Must we lock files when doing compilation?
15215 need_locks=$lt_need_locks
15216
15217 # Do we need the lib prefix for modules?
15218 need_lib_prefix=$need_lib_prefix
15219
15220 # Do we need a version for libraries?
15221 need_version=$need_version
15222
15223 # Whether dlopen is supported.
15224 dlopen_support=$enable_dlopen
15225
15226 # Whether dlopen of programs is supported.
15227 dlopen_self=$enable_dlopen_self
15228
15229 # Whether dlopen of statically linked programs is supported.
15230 dlopen_self_static=$enable_dlopen_self_static
15231
15232 # Compiler flag to prevent dynamic linking.
15233 link_static_flag=$lt_lt_prog_compiler_static_CXX
15234
15235 # Compiler flag to turn off builtin functions.
15236 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15237
15238 # Compiler flag to allow reflexive dlopens.
15239 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15240
15241 # Compiler flag to generate shared objects directly from archives.
15242 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15243
15244 # Compiler flag to generate thread-safe objects.
15245 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15246
15247 # Library versioning type.
15248 version_type=$version_type
15249
15250 # Format of library name prefix.
15251 libname_spec=$lt_libname_spec
15252
15253 # List of archive names.  First name is the real one, the rest are links.
15254 # The last name is the one that the linker finds with -lNAME.
15255 library_names_spec=$lt_library_names_spec
15256
15257 # The coded name of the library, if different from the real name.
15258 soname_spec=$lt_soname_spec
15259
15260 # Commands used to build and install an old-style archive.
15261 RANLIB=$lt_RANLIB
15262 old_archive_cmds=$lt_old_archive_cmds_CXX
15263 old_postinstall_cmds=$lt_old_postinstall_cmds
15264 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15265
15266 # Create an old-style archive from a shared archive.
15267 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15268
15269 # Create a temporary old-style archive to link instead of a shared archive.
15270 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15271
15272 # Commands used to build and install a shared archive.
15273 archive_cmds=$lt_archive_cmds_CXX
15274 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15275 postinstall_cmds=$lt_postinstall_cmds
15276 postuninstall_cmds=$lt_postuninstall_cmds
15277
15278 # Commands used to build a loadable module (assumed same as above if empty)
15279 module_cmds=$lt_module_cmds_CXX
15280 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15281
15282 # Commands to strip libraries.
15283 old_striplib=$lt_old_striplib
15284 striplib=$lt_striplib
15285
15286 # Dependencies to place before the objects being linked to create a
15287 # shared library.
15288 predep_objects=$lt_predep_objects_CXX
15289
15290 # Dependencies to place after the objects being linked to create a
15291 # shared library.
15292 postdep_objects=$lt_postdep_objects_CXX
15293
15294 # Dependencies to place before the objects being linked to create a
15295 # shared library.
15296 predeps=$lt_predeps_CXX
15297
15298 # Dependencies to place after the objects being linked to create a
15299 # shared library.
15300 postdeps=$lt_postdeps_CXX
15301
15302 # The library search path used internally by the compiler when linking
15303 # a shared library.
15304 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15305
15306 # Method to check whether dependent libraries are shared objects.
15307 deplibs_check_method=$lt_deplibs_check_method
15308
15309 # Command to use when deplibs_check_method == file_magic.
15310 file_magic_cmd=$lt_file_magic_cmd
15311
15312 # Flag that allows shared libraries with undefined symbols to be built.
15313 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15314
15315 # Flag that forces no undefined symbols.
15316 no_undefined_flag=$lt_no_undefined_flag_CXX
15317
15318 # Commands used to finish a libtool library installation in a directory.
15319 finish_cmds=$lt_finish_cmds
15320
15321 # Same as above, but a single script fragment to be evaled but not shown.
15322 finish_eval=$lt_finish_eval
15323
15324 # Take the output of nm and produce a listing of raw symbols and C names.
15325 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15326
15327 # Transform the output of nm in a proper C declaration
15328 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15329
15330 # Transform the output of nm in a C name address pair
15331 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15332
15333 # This is the shared library runtime path variable.
15334 runpath_var=$runpath_var
15335
15336 # This is the shared library path variable.
15337 shlibpath_var=$shlibpath_var
15338
15339 # Is shlibpath searched before the hard-coded library search path?
15340 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15341
15342 # How to hardcode a shared library path into an executable.
15343 hardcode_action=$hardcode_action_CXX
15344
15345 # Whether we should hardcode library paths into libraries.
15346 hardcode_into_libs=$hardcode_into_libs
15347
15348 # Flag to hardcode \$libdir into a binary during linking.
15349 # This must work even if \$libdir does not exist.
15350 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15351
15352 # If ld is used when linking, flag to hardcode \$libdir into
15353 # a binary during linking. This must work even if \$libdir does
15354 # not exist.
15355 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15356
15357 # Whether we need a single -rpath flag with a separated argument.
15358 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15359
15360 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15361 # resulting binary.
15362 hardcode_direct=$hardcode_direct_CXX
15363
15364 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15365 # resulting binary.
15366 hardcode_minus_L=$hardcode_minus_L_CXX
15367
15368 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15369 # the resulting binary.
15370 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15371
15372 # Set to yes if building a shared library automatically hardcodes DIR into the library
15373 # and all subsequent libraries and executables linked against it.
15374 hardcode_automatic=$hardcode_automatic_CXX
15375
15376 # Variables whose values should be saved in libtool wrapper scripts and
15377 # restored at relink time.
15378 variables_saved_for_relink="$variables_saved_for_relink"
15379
15380 # Whether libtool must link a program against all its dependency libraries.
15381 link_all_deplibs=$link_all_deplibs_CXX
15382
15383 # Compile-time system search path for libraries
15384 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15385
15386 # Run-time system search path for libraries
15387 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15388
15389 # Fix the shell variable \$srcfile for the compiler.
15390 fix_srcfile_path="$fix_srcfile_path_CXX"
15391
15392 # Set to yes if exported symbols are required.
15393 always_export_symbols=$always_export_symbols_CXX
15394
15395 # The commands to list exported symbols.
15396 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15397
15398 # The commands to extract the exported symbol list from a shared archive.
15399 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15400
15401 # Symbols that should not be listed in the preloaded symbols.
15402 exclude_expsyms=$lt_exclude_expsyms_CXX
15403
15404 # Symbols that must always be exported.
15405 include_expsyms=$lt_include_expsyms_CXX
15406
15407 # ### END LIBTOOL TAG CONFIG: $tagname
15408
15409 __EOF__
15410
15411
15412 else
15413   # If there is no Makefile yet, we rely on a make rule to execute
15414   # `config.status --recheck' to rerun these tests and create the
15415   # libtool script then.
15416   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15417   if test -f "$ltmain_in"; then
15418     test -f Makefile && make "$ltmain"
15419   fi
15420 fi
15421
15422
15423 ac_ext=c
15424 ac_cpp='$CPP $CPPFLAGS'
15425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15428
15429 CC=$lt_save_CC
15430 LDCXX=$LD
15431 LD=$lt_save_LD
15432 GCC=$lt_save_GCC
15433 with_gnu_ldcxx=$with_gnu_ld
15434 with_gnu_ld=$lt_save_with_gnu_ld
15435 lt_cv_path_LDCXX=$lt_cv_path_LD
15436 lt_cv_path_LD=$lt_save_path_LD
15437 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15438 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15439
15440         else
15441           tagname=""
15442         fi
15443         ;;
15444
15445       F77)
15446         if test -n "$F77" && test "X$F77" != "Xno"; then
15447
15448 ac_ext=f
15449 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15450 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15451 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15452
15453
15454 archive_cmds_need_lc_F77=no
15455 allow_undefined_flag_F77=
15456 always_export_symbols_F77=no
15457 archive_expsym_cmds_F77=
15458 export_dynamic_flag_spec_F77=
15459 hardcode_direct_F77=no
15460 hardcode_libdir_flag_spec_F77=
15461 hardcode_libdir_flag_spec_ld_F77=
15462 hardcode_libdir_separator_F77=
15463 hardcode_minus_L_F77=no
15464 hardcode_automatic_F77=no
15465 module_cmds_F77=
15466 module_expsym_cmds_F77=
15467 link_all_deplibs_F77=unknown
15468 old_archive_cmds_F77=$old_archive_cmds
15469 no_undefined_flag_F77=
15470 whole_archive_flag_spec_F77=
15471 enable_shared_with_static_runtimes_F77=no
15472
15473 # Source file extension for f77 test sources.
15474 ac_ext=f
15475
15476 # Object file extension for compiled f77 test sources.
15477 objext=o
15478 objext_F77=$objext
15479
15480 # Code to be used in simple compile tests
15481 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15482
15483 # Code to be used in simple link tests
15484 lt_simple_link_test_code="      program t\n      end\n"
15485
15486 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15487
15488 # If no C compiler was specified, use CC.
15489 LTCC=${LTCC-"$CC"}
15490
15491 # Allow CC to be a program name with arguments.
15492 compiler=$CC
15493
15494
15495 # save warnings/boilerplate of simple test code
15496 ac_outfile=conftest.$ac_objext
15497 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15498 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15499 _lt_compiler_boilerplate=`cat conftest.err`
15500 $rm conftest*
15501
15502 ac_outfile=conftest.$ac_objext
15503 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15504 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15505 _lt_linker_boilerplate=`cat conftest.err`
15506 $rm conftest*
15507
15508
15509 # Allow CC to be a program name with arguments.
15510 lt_save_CC="$CC"
15511 CC=${F77-"f77"}
15512 compiler=$CC
15513 compiler_F77=$CC
15514 for cc_temp in $compiler""; do
15515   case $cc_temp in
15516     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15517     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15518     \-*) ;;
15519     *) break;;
15520   esac
15521 done
15522 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15523
15524
15525 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15526 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15527 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15528 echo "${ECHO_T}$can_build_shared" >&6
15529
15530 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15531 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15532 test "$can_build_shared" = "no" && enable_shared=no
15533
15534 # On AIX, shared libraries and static libraries use the same namespace, and
15535 # are all built from PIC.
15536 case "$host_os" in
15537 aix3*)
15538   test "$enable_shared" = yes && enable_static=no
15539   if test -n "$RANLIB"; then
15540     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15541     postinstall_cmds='$RANLIB $lib'
15542   fi
15543   ;;
15544 aix4* | aix5*)
15545   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15546     test "$enable_shared" = yes && enable_static=no
15547   fi
15548   ;;
15549 esac
15550 echo "$as_me:$LINENO: result: $enable_shared" >&5
15551 echo "${ECHO_T}$enable_shared" >&6
15552
15553 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15554 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15555 # Make sure either enable_shared or enable_static is yes.
15556 test "$enable_shared" = yes || enable_static=yes
15557 echo "$as_me:$LINENO: result: $enable_static" >&5
15558 echo "${ECHO_T}$enable_static" >&6
15559
15560 test "$ld_shlibs_F77" = no && can_build_shared=no
15561
15562 GCC_F77="$G77"
15563 LD_F77="$LD"
15564
15565 lt_prog_compiler_wl_F77=
15566 lt_prog_compiler_pic_F77=
15567 lt_prog_compiler_static_F77=
15568
15569 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15570 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15571
15572   if test "$GCC" = yes; then
15573     lt_prog_compiler_wl_F77='-Wl,'
15574     lt_prog_compiler_static_F77='-static'
15575
15576     case $host_os in
15577       aix*)
15578       # All AIX code is PIC.
15579       if test "$host_cpu" = ia64; then
15580         # AIX 5 now supports IA64 processor
15581         lt_prog_compiler_static_F77='-Bstatic'
15582       fi
15583       ;;
15584
15585     amigaos*)
15586       # FIXME: we need at least 68020 code to build shared libraries, but
15587       # adding the `-m68020' flag to GCC prevents building anything better,
15588       # like `-m68040'.
15589       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15590       ;;
15591
15592     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15593       # PIC is the default for these OSes.
15594       ;;
15595
15596     mingw* | pw32* | os2*)
15597       # This hack is so that the source file can tell whether it is being
15598       # built for inclusion in a dll (and should export symbols for example).
15599       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15600       ;;
15601
15602     darwin* | rhapsody*)
15603       # PIC is the default on this platform
15604       # Common symbols not allowed in MH_DYLIB files
15605       lt_prog_compiler_pic_F77='-fno-common'
15606       ;;
15607
15608     msdosdjgpp*)
15609       # Just because we use GCC doesn't mean we suddenly get shared libraries
15610       # on systems that don't support them.
15611       lt_prog_compiler_can_build_shared_F77=no
15612       enable_shared=no
15613       ;;
15614
15615     sysv4*MP*)
15616       if test -d /usr/nec; then
15617         lt_prog_compiler_pic_F77=-Kconform_pic
15618       fi
15619       ;;
15620
15621     hpux*)
15622       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15623       # not for PA HP-UX.
15624       case "$host_cpu" in
15625       hppa*64*|ia64*)
15626         # +Z the default
15627         ;;
15628       *)
15629         lt_prog_compiler_pic_F77='-fPIC'
15630         ;;
15631       esac
15632       ;;
15633
15634     *)
15635       lt_prog_compiler_pic_F77='-fPIC'
15636       ;;
15637     esac
15638   else
15639     # PORTME Check for flag to pass linker flags through the system compiler.
15640     case $host_os in
15641     aix*)
15642       lt_prog_compiler_wl_F77='-Wl,'
15643       if test "$host_cpu" = ia64; then
15644         # AIX 5 now supports IA64 processor
15645         lt_prog_compiler_static_F77='-Bstatic'
15646       else
15647         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15648       fi
15649       ;;
15650       darwin*)
15651         # PIC is the default on this platform
15652         # Common symbols not allowed in MH_DYLIB files
15653        case $cc_basename in
15654          xlc*)
15655          lt_prog_compiler_pic_F77='-qnocommon'
15656          lt_prog_compiler_wl_F77='-Wl,'
15657          ;;
15658        esac
15659        ;;
15660
15661     mingw* | pw32* | os2*)
15662       # This hack is so that the source file can tell whether it is being
15663       # built for inclusion in a dll (and should export symbols for example).
15664       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15665       ;;
15666
15667     hpux9* | hpux10* | hpux11*)
15668       lt_prog_compiler_wl_F77='-Wl,'
15669       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15670       # not for PA HP-UX.
15671       case "$host_cpu" in
15672       hppa*64*|ia64*)
15673         # +Z the default
15674         ;;
15675       *)
15676         lt_prog_compiler_pic_F77='+Z'
15677         ;;
15678       esac
15679       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15680       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15681       ;;
15682
15683     irix5* | irix6* | nonstopux*)
15684       lt_prog_compiler_wl_F77='-Wl,'
15685       # PIC (with -KPIC) is the default.
15686       lt_prog_compiler_static_F77='-non_shared'
15687       ;;
15688
15689     newsos6)
15690       lt_prog_compiler_pic_F77='-KPIC'
15691       lt_prog_compiler_static_F77='-Bstatic'
15692       ;;
15693
15694     linux*)
15695       case $cc_basename in
15696       icc* | ecc*)
15697         lt_prog_compiler_wl_F77='-Wl,'
15698         lt_prog_compiler_pic_F77='-KPIC'
15699         lt_prog_compiler_static_F77='-static'
15700         ;;
15701       pgcc* | pgf77* | pgf90*)
15702         # Portland Group compilers (*not* the Pentium gcc compiler,
15703         # which looks to be a dead project)
15704         lt_prog_compiler_wl_F77='-Wl,'
15705         lt_prog_compiler_pic_F77='-fpic'
15706         lt_prog_compiler_static_F77='-static'
15707         ;;
15708       ccc*)
15709         lt_prog_compiler_wl_F77='-Wl,'
15710         # All Alpha code is PIC.
15711         lt_prog_compiler_static_F77='-non_shared'
15712         ;;
15713       esac
15714       ;;
15715
15716     osf3* | osf4* | osf5*)
15717       lt_prog_compiler_wl_F77='-Wl,'
15718       # All OSF/1 code is PIC.
15719       lt_prog_compiler_static_F77='-non_shared'
15720       ;;
15721
15722     sco3.2v5*)
15723       lt_prog_compiler_pic_F77='-Kpic'
15724       lt_prog_compiler_static_F77='-dn'
15725       ;;
15726
15727     solaris*)
15728       lt_prog_compiler_pic_F77='-KPIC'
15729       lt_prog_compiler_static_F77='-Bstatic'
15730       case $cc_basename in
15731       f77* | f90* | f95*)
15732         lt_prog_compiler_wl_F77='-Qoption ld ';;
15733       *)
15734         lt_prog_compiler_wl_F77='-Wl,';;
15735       esac
15736       ;;
15737
15738     sunos4*)
15739       lt_prog_compiler_wl_F77='-Qoption ld '
15740       lt_prog_compiler_pic_F77='-PIC'
15741       lt_prog_compiler_static_F77='-Bstatic'
15742       ;;
15743
15744     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15745       lt_prog_compiler_wl_F77='-Wl,'
15746       lt_prog_compiler_pic_F77='-KPIC'
15747       lt_prog_compiler_static_F77='-Bstatic'
15748       ;;
15749
15750     sysv4*MP*)
15751       if test -d /usr/nec ;then
15752         lt_prog_compiler_pic_F77='-Kconform_pic'
15753         lt_prog_compiler_static_F77='-Bstatic'
15754       fi
15755       ;;
15756
15757     unicos*)
15758       lt_prog_compiler_wl_F77='-Wl,'
15759       lt_prog_compiler_can_build_shared_F77=no
15760       ;;
15761
15762     uts4*)
15763       lt_prog_compiler_pic_F77='-pic'
15764       lt_prog_compiler_static_F77='-Bstatic'
15765       ;;
15766
15767     *)
15768       lt_prog_compiler_can_build_shared_F77=no
15769       ;;
15770     esac
15771   fi
15772
15773 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15774 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15775
15776 #
15777 # Check to make sure the PIC flag actually works.
15778 #
15779 if test -n "$lt_prog_compiler_pic_F77"; then
15780
15781 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15782 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15783 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15784   echo $ECHO_N "(cached) $ECHO_C" >&6
15785 else
15786   lt_prog_compiler_pic_works_F77=no
15787   ac_outfile=conftest.$ac_objext
15788    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15789    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15790    # Insert the option either (1) after the last *FLAGS variable, or
15791    # (2) before a word containing "conftest.", or (3) at the end.
15792    # Note that $ac_compile itself does not contain backslashes and begins
15793    # with a dollar sign (not a hyphen), so the echo should work correctly.
15794    # The option is referenced via a variable to avoid confusing sed.
15795    lt_compile=`echo "$ac_compile" | $SED \
15796    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15797    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15798    -e 's:$: $lt_compiler_flag:'`
15799    (eval echo "\"\$as_me:15799: $lt_compile\"" >&5)
15800    (eval "$lt_compile" 2>conftest.err)
15801    ac_status=$?
15802    cat conftest.err >&5
15803    echo "$as_me:15803: \$? = $ac_status" >&5
15804    if (exit $ac_status) && test -s "$ac_outfile"; then
15805      # The compiler can only warn and ignore the option if not recognized
15806      # So say no if there are warnings other than the usual output.
15807      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15808      $SED '/^$/d' conftest.err >conftest.er2
15809      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15810        lt_prog_compiler_pic_works_F77=yes
15811      fi
15812    fi
15813    $rm conftest*
15814
15815 fi
15816 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15817 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15818
15819 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15820     case $lt_prog_compiler_pic_F77 in
15821      "" | " "*) ;;
15822      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15823      esac
15824 else
15825     lt_prog_compiler_pic_F77=
15826      lt_prog_compiler_can_build_shared_F77=no
15827 fi
15828
15829 fi
15830 case "$host_os" in
15831   # For platforms which do not support PIC, -DPIC is meaningless:
15832   *djgpp*)
15833     lt_prog_compiler_pic_F77=
15834     ;;
15835   *)
15836     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15837     ;;
15838 esac
15839
15840 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15841 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15842 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15843   echo $ECHO_N "(cached) $ECHO_C" >&6
15844 else
15845   lt_cv_prog_compiler_c_o_F77=no
15846    $rm -r conftest 2>/dev/null
15847    mkdir conftest
15848    cd conftest
15849    mkdir out
15850    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15851
15852    lt_compiler_flag="-o out/conftest2.$ac_objext"
15853    # Insert the option either (1) after the last *FLAGS variable, or
15854    # (2) before a word containing "conftest.", or (3) at the end.
15855    # Note that $ac_compile itself does not contain backslashes and begins
15856    # with a dollar sign (not a hyphen), so the echo should work correctly.
15857    lt_compile=`echo "$ac_compile" | $SED \
15858    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15859    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15860    -e 's:$: $lt_compiler_flag:'`
15861    (eval echo "\"\$as_me:15861: $lt_compile\"" >&5)
15862    (eval "$lt_compile" 2>out/conftest.err)
15863    ac_status=$?
15864    cat out/conftest.err >&5
15865    echo "$as_me:15865: \$? = $ac_status" >&5
15866    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15867    then
15868      # The compiler can only warn and ignore the option if not recognized
15869      # So say no if there are warnings
15870      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15871      $SED '/^$/d' out/conftest.err >out/conftest.er2
15872      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15873        lt_cv_prog_compiler_c_o_F77=yes
15874      fi
15875    fi
15876    chmod u+w .
15877    $rm conftest*
15878    # SGI C++ compiler will create directory out/ii_files/ for
15879    # template instantiation
15880    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15881    $rm out/* && rmdir out
15882    cd ..
15883    rmdir conftest
15884    $rm conftest*
15885
15886 fi
15887 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15888 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15889
15890
15891 hard_links="nottested"
15892 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15893   # do not overwrite the value of need_locks provided by the user
15894   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15895 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15896   hard_links=yes
15897   $rm conftest*
15898   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15899   touch conftest.a
15900   ln conftest.a conftest.b 2>&5 || hard_links=no
15901   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15902   echo "$as_me:$LINENO: result: $hard_links" >&5
15903 echo "${ECHO_T}$hard_links" >&6
15904   if test "$hard_links" = no; then
15905     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15906 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15907     need_locks=warn
15908   fi
15909 else
15910   need_locks=no
15911 fi
15912
15913 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15914 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15915
15916   runpath_var=
15917   allow_undefined_flag_F77=
15918   enable_shared_with_static_runtimes_F77=no
15919   archive_cmds_F77=
15920   archive_expsym_cmds_F77=
15921   old_archive_From_new_cmds_F77=
15922   old_archive_from_expsyms_cmds_F77=
15923   export_dynamic_flag_spec_F77=
15924   whole_archive_flag_spec_F77=
15925   thread_safe_flag_spec_F77=
15926   hardcode_libdir_flag_spec_F77=
15927   hardcode_libdir_flag_spec_ld_F77=
15928   hardcode_libdir_separator_F77=
15929   hardcode_direct_F77=no
15930   hardcode_minus_L_F77=no
15931   hardcode_shlibpath_var_F77=unsupported
15932   link_all_deplibs_F77=unknown
15933   hardcode_automatic_F77=no
15934   module_cmds_F77=
15935   module_expsym_cmds_F77=
15936   always_export_symbols_F77=no
15937   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15938   # include_expsyms should be a list of space-separated symbols to be *always*
15939   # included in the symbol list
15940   include_expsyms_F77=
15941   # exclude_expsyms can be an extended regexp of symbols to exclude
15942   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15943   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15944   # as well as any symbol that contains `d'.
15945   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15946   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15947   # platforms (ab)use it in PIC code, but their linkers get confused if
15948   # the symbol is explicitly referenced.  Since portable code cannot
15949   # rely on this symbol name, it's probably fine to never include it in
15950   # preloaded symbol tables.
15951   extract_expsyms_cmds=
15952   # Just being paranoid about ensuring that cc_basename is set.
15953   for cc_temp in $compiler""; do
15954   case $cc_temp in
15955     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15956     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15957     \-*) ;;
15958     *) break;;
15959   esac
15960 done
15961 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15962
15963   case $host_os in
15964   cygwin* | mingw* | pw32*)
15965     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15966     # When not using gcc, we currently assume that we are using
15967     # Microsoft Visual C++.
15968     if test "$GCC" != yes; then
15969       with_gnu_ld=no
15970     fi
15971     ;;
15972   openbsd*)
15973     with_gnu_ld=no
15974     ;;
15975   esac
15976
15977   ld_shlibs_F77=yes
15978   if test "$with_gnu_ld" = yes; then
15979     # If archive_cmds runs LD, not CC, wlarc should be empty
15980     wlarc='${wl}'
15981
15982     # Set some defaults for GNU ld with shared library support. These
15983     # are reset later if shared libraries are not supported. Putting them
15984     # here allows them to be overridden if necessary.
15985     runpath_var=LD_RUN_PATH
15986     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15987     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15988     # ancient GNU ld didn't support --whole-archive et. al.
15989     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15990         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15991       else
15992         whole_archive_flag_spec_F77=
15993     fi
15994     supports_anon_versioning=no
15995     case `$LD -v 2>/dev/null` in
15996       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15997       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15998       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15999       *\ 2.11.*) ;; # other 2.11 versions
16000       *) supports_anon_versioning=yes ;;
16001     esac
16002
16003     # See if GNU ld supports shared libraries.
16004     case $host_os in
16005     aix3* | aix4* | aix5*)
16006       # On AIX/PPC, the GNU linker is very broken
16007       if test "$host_cpu" != ia64; then
16008         ld_shlibs_F77=no
16009         cat <<EOF 1>&2
16010
16011 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16012 *** to be unable to reliably create shared libraries on AIX.
16013 *** Therefore, libtool is disabling shared libraries support.  If you
16014 *** really care for shared libraries, you may want to modify your PATH
16015 *** so that a non-GNU linker is found, and then restart.
16016
16017 EOF
16018       fi
16019       ;;
16020
16021     amigaos*)
16022       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)'
16023       hardcode_libdir_flag_spec_F77='-L$libdir'
16024       hardcode_minus_L_F77=yes
16025
16026       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16027       # that the semantics of dynamic libraries on AmigaOS, at least up
16028       # to version 4, is to share data among multiple programs linked
16029       # with the same dynamic library.  Since this doesn't match the
16030       # behavior of shared libraries on other platforms, we can't use
16031       # them.
16032       ld_shlibs_F77=no
16033       ;;
16034
16035     beos*)
16036       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16037         allow_undefined_flag_F77=unsupported
16038         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16039         # support --undefined.  This deserves some investigation.  FIXME
16040         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16041       else
16042         ld_shlibs_F77=no
16043       fi
16044       ;;
16045
16046     cygwin* | mingw* | pw32*)
16047       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16048       # as there is no search path for DLLs.
16049       hardcode_libdir_flag_spec_F77='-L$libdir'
16050       allow_undefined_flag_F77=unsupported
16051       always_export_symbols_F77=no
16052       enable_shared_with_static_runtimes_F77=yes
16053       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16054
16055       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16056         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16057         # If the export-symbols file already is a .def file (1st line
16058         # is EXPORTS), use it as is; otherwise, prepend...
16059         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16060           cp $export_symbols $output_objdir/$soname.def;
16061         else
16062           echo EXPORTS > $output_objdir/$soname.def;
16063           cat $export_symbols >> $output_objdir/$soname.def;
16064         fi~
16065         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16066       else
16067         ld_shlibs_F77=no
16068       fi
16069       ;;
16070
16071     linux*)
16072       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16073         tmp_addflag=
16074         case $cc_basename,$host_cpu in
16075         pgcc*)                          # Portland Group C compiler
16076           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'
16077           tmp_addflag=' $pic_flag'
16078           ;;
16079         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
16080           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'
16081           tmp_addflag=' $pic_flag -Mnomain' ;;
16082         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16083           tmp_addflag=' -i_dynamic' ;;
16084         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16085           tmp_addflag=' -i_dynamic -nofor_main' ;;
16086         ifc* | ifort*)                  # Intel Fortran compiler
16087           tmp_addflag=' -nofor_main' ;;
16088         esac
16089         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16090
16091         if test $supports_anon_versioning = yes; then
16092           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16093   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16094   $echo "local: *; };" >> $output_objdir/$libname.ver~
16095           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16096         fi
16097       else
16098         ld_shlibs_F77=no
16099       fi
16100       ;;
16101
16102     netbsd*)
16103       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16104         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16105         wlarc=
16106       else
16107         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16108         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16109       fi
16110       ;;
16111
16112     solaris* | sysv5*)
16113       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16114         ld_shlibs_F77=no
16115         cat <<EOF 1>&2
16116
16117 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16118 *** create shared libraries on Solaris systems.  Therefore, libtool
16119 *** is disabling shared libraries support.  We urge you to upgrade GNU
16120 *** binutils to release 2.9.1 or newer.  Another option is to modify
16121 *** your PATH or compiler configuration so that the native linker is
16122 *** used, and then restart.
16123
16124 EOF
16125       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16126         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16127         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16128       else
16129         ld_shlibs_F77=no
16130       fi
16131       ;;
16132
16133     sunos4*)
16134       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16135       wlarc=
16136       hardcode_direct_F77=yes
16137       hardcode_shlibpath_var_F77=no
16138       ;;
16139
16140     *)
16141       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16142         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16143         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16144       else
16145         ld_shlibs_F77=no
16146       fi
16147       ;;
16148     esac
16149
16150     if test "$ld_shlibs_F77" = no; then
16151       runpath_var=
16152       hardcode_libdir_flag_spec_F77=
16153       export_dynamic_flag_spec_F77=
16154       whole_archive_flag_spec_F77=
16155     fi
16156   else
16157     # PORTME fill in a description of your system's linker (not GNU ld)
16158     case $host_os in
16159     aix3*)
16160       allow_undefined_flag_F77=unsupported
16161       always_export_symbols_F77=yes
16162       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'
16163       # Note: this linker hardcodes the directories in LIBPATH if there
16164       # are no directories specified by -L.
16165       hardcode_minus_L_F77=yes
16166       if test "$GCC" = yes && test -z "$link_static_flag"; then
16167         # Neither direct hardcoding nor static linking is supported with a
16168         # broken collect2.
16169         hardcode_direct_F77=unsupported
16170       fi
16171       ;;
16172
16173     aix4* | aix5*)
16174       if test "$host_cpu" = ia64; then
16175         # On IA64, the linker does run time linking by default, so we don't
16176         # have to do anything special.
16177         aix_use_runtimelinking=no
16178         exp_sym_flag='-Bexport'
16179         no_entry_flag=""
16180       else
16181         # If we're using GNU nm, then we don't want the "-C" option.
16182         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16183         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16184           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'
16185         else
16186           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'
16187         fi
16188         aix_use_runtimelinking=no
16189
16190         # Test if we are trying to use run time linking or normal
16191         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16192         # need to do runtime linking.
16193         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16194           for ld_flag in $LDFLAGS; do
16195           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16196             aix_use_runtimelinking=yes
16197             break
16198           fi
16199           done
16200         esac
16201
16202         exp_sym_flag='-bexport'
16203         no_entry_flag='-bnoentry'
16204       fi
16205
16206       # When large executables or shared objects are built, AIX ld can
16207       # have problems creating the table of contents.  If linking a library
16208       # or program results in "error TOC overflow" add -mminimal-toc to
16209       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16210       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16211
16212       archive_cmds_F77=''
16213       hardcode_direct_F77=yes
16214       hardcode_libdir_separator_F77=':'
16215       link_all_deplibs_F77=yes
16216
16217       if test "$GCC" = yes; then
16218         case $host_os in aix4.[012]|aix4.[012].*)
16219         # We only want to do this on AIX 4.2 and lower, the check
16220         # below for broken collect2 doesn't work under 4.3+
16221           collect2name=`${CC} -print-prog-name=collect2`
16222           if test -f "$collect2name" && \
16223            strings "$collect2name" | grep resolve_lib_name >/dev/null
16224           then
16225           # We have reworked collect2
16226           hardcode_direct_F77=yes
16227           else
16228           # We have old collect2
16229           hardcode_direct_F77=unsupported
16230           # It fails to find uninstalled libraries when the uninstalled
16231           # path is not listed in the libpath.  Setting hardcode_minus_L
16232           # to unsupported forces relinking
16233           hardcode_minus_L_F77=yes
16234           hardcode_libdir_flag_spec_F77='-L$libdir'
16235           hardcode_libdir_separator_F77=
16236           fi
16237         esac
16238         shared_flag='-shared'
16239         if test "$aix_use_runtimelinking" = yes; then
16240           shared_flag="$shared_flag "'${wl}-G'
16241         fi
16242       else
16243         # not using gcc
16244         if test "$host_cpu" = ia64; then
16245         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16246         # chokes on -Wl,-G. The following line is correct:
16247           shared_flag='-G'
16248         else
16249         if test "$aix_use_runtimelinking" = yes; then
16250             shared_flag='${wl}-G'
16251           else
16252             shared_flag='${wl}-bM:SRE'
16253         fi
16254         fi
16255       fi
16256
16257       # It seems that -bexpall does not export symbols beginning with
16258       # underscore (_), so it is better to generate a list of symbols to export.
16259       always_export_symbols_F77=yes
16260       if test "$aix_use_runtimelinking" = yes; then
16261         # Warning - without using the other runtime loading flags (-brtl),
16262         # -berok will link without error, but may produce a broken library.
16263         allow_undefined_flag_F77='-berok'
16264        # Determine the default libpath from the value encoded in an empty executable.
16265        cat >conftest.$ac_ext <<_ACEOF
16266       program main
16267
16268       end
16269 _ACEOF
16270 rm -f conftest.$ac_objext conftest$ac_exeext
16271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16272   (eval $ac_link) 2>conftest.er1
16273   ac_status=$?
16274   grep -v '^ *+' conftest.er1 >conftest.err
16275   rm -f conftest.er1
16276   cat conftest.err >&5
16277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278   (exit $ac_status); } &&
16279          { ac_try='test -z "$ac_f77_werror_flag"
16280                          || test ! -s conftest.err'
16281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16282   (eval $ac_try) 2>&5
16283   ac_status=$?
16284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285   (exit $ac_status); }; } &&
16286          { ac_try='test -s conftest$ac_exeext'
16287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16288   (eval $ac_try) 2>&5
16289   ac_status=$?
16290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291   (exit $ac_status); }; }; then
16292
16293 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16294 }'`
16295 # Check for a 64-bit object if we didn't find anything.
16296 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; }
16297 }'`; fi
16298 else
16299   echo "$as_me: failed program was:" >&5
16300 sed 's/^/| /' conftest.$ac_ext >&5
16301
16302 fi
16303 rm -f conftest.err conftest.$ac_objext \
16304       conftest$ac_exeext conftest.$ac_ext
16305 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16306
16307        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16308         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"
16309        else
16310         if test "$host_cpu" = ia64; then
16311           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16312           allow_undefined_flag_F77="-z nodefs"
16313           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"
16314         else
16315          # Determine the default libpath from the value encoded in an empty executable.
16316          cat >conftest.$ac_ext <<_ACEOF
16317       program main
16318
16319       end
16320 _ACEOF
16321 rm -f conftest.$ac_objext conftest$ac_exeext
16322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16323   (eval $ac_link) 2>conftest.er1
16324   ac_status=$?
16325   grep -v '^ *+' conftest.er1 >conftest.err
16326   rm -f conftest.er1
16327   cat conftest.err >&5
16328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329   (exit $ac_status); } &&
16330          { ac_try='test -z "$ac_f77_werror_flag"
16331                          || test ! -s conftest.err'
16332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333   (eval $ac_try) 2>&5
16334   ac_status=$?
16335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336   (exit $ac_status); }; } &&
16337          { ac_try='test -s conftest$ac_exeext'
16338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339   (eval $ac_try) 2>&5
16340   ac_status=$?
16341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342   (exit $ac_status); }; }; then
16343
16344 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16345 }'`
16346 # Check for a 64-bit object if we didn't find anything.
16347 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; }
16348 }'`; fi
16349 else
16350   echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16352
16353 fi
16354 rm -f conftest.err conftest.$ac_objext \
16355       conftest$ac_exeext conftest.$ac_ext
16356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16357
16358          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16359           # Warning - without using the other run time loading flags,
16360           # -berok will link without error, but may produce a broken library.
16361           no_undefined_flag_F77=' ${wl}-bernotok'
16362           allow_undefined_flag_F77=' ${wl}-berok'
16363           # -bexpall does not export symbols beginning with underscore (_)
16364           always_export_symbols_F77=yes
16365           # Exported symbols can be pulled into shared objects from archives
16366           whole_archive_flag_spec_F77=' '
16367           archive_cmds_need_lc_F77=yes
16368           # This is similar to how AIX traditionally builds it's shared libraries.
16369           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'
16370         fi
16371       fi
16372       ;;
16373
16374     amigaos*)
16375       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)'
16376       hardcode_libdir_flag_spec_F77='-L$libdir'
16377       hardcode_minus_L_F77=yes
16378       # see comment about different semantics on the GNU ld section
16379       ld_shlibs_F77=no
16380       ;;
16381
16382     bsdi[45]*)
16383       export_dynamic_flag_spec_F77=-rdynamic
16384       ;;
16385
16386     cygwin* | mingw* | pw32*)
16387       # When not using gcc, we currently assume that we are using
16388       # Microsoft Visual C++.
16389       # hardcode_libdir_flag_spec is actually meaningless, as there is
16390       # no search path for DLLs.
16391       hardcode_libdir_flag_spec_F77=' '
16392       allow_undefined_flag_F77=unsupported
16393       # Tell ltmain to make .lib files, not .a files.
16394       libext=lib
16395       # Tell ltmain to make .dll files, not .so files.
16396       shrext_cmds=".dll"
16397       # FIXME: Setting linknames here is a bad hack.
16398       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16399       # The linker will automatically build a .lib file if we build a DLL.
16400       old_archive_From_new_cmds_F77='true'
16401       # FIXME: Should let the user specify the lib program.
16402       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16403       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16404       enable_shared_with_static_runtimes_F77=yes
16405       ;;
16406
16407     darwin* | rhapsody*)
16408       case "$host_os" in
16409         rhapsody* | darwin1.[012])
16410          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16411          ;;
16412        *) # Darwin 1.3 on
16413          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16414            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16415          else
16416            case ${MACOSX_DEPLOYMENT_TARGET} in
16417              10.[012])
16418                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16419                ;;
16420              10.*)
16421                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16422                ;;
16423            esac
16424          fi
16425          ;;
16426       esac
16427       archive_cmds_need_lc_F77=no
16428       hardcode_direct_F77=no
16429       hardcode_automatic_F77=yes
16430       hardcode_shlibpath_var_F77=unsupported
16431       whole_archive_flag_spec_F77=''
16432       link_all_deplibs_F77=yes
16433     if test "$GCC" = yes ; then
16434         output_verbose_link_cmd='echo'
16435         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16436       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16437       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16438       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}'
16439       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}'
16440     else
16441       case $cc_basename in
16442         xlc*)
16443          output_verbose_link_cmd='echo'
16444          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16445          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16446           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16447          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}'
16448           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}'
16449           ;;
16450        *)
16451          ld_shlibs_F77=no
16452           ;;
16453       esac
16454     fi
16455       ;;
16456
16457     dgux*)
16458       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16459       hardcode_libdir_flag_spec_F77='-L$libdir'
16460       hardcode_shlibpath_var_F77=no
16461       ;;
16462
16463     freebsd1*)
16464       ld_shlibs_F77=no
16465       ;;
16466
16467     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16468     # support.  Future versions do this automatically, but an explicit c++rt0.o
16469     # does not break anything, and helps significantly (at the cost of a little
16470     # extra space).
16471     freebsd2.2*)
16472       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16473       hardcode_libdir_flag_spec_F77='-R$libdir'
16474       hardcode_direct_F77=yes
16475       hardcode_shlibpath_var_F77=no
16476       ;;
16477
16478     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16479     freebsd2*)
16480       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16481       hardcode_direct_F77=yes
16482       hardcode_minus_L_F77=yes
16483       hardcode_shlibpath_var_F77=no
16484       ;;
16485
16486     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16487     freebsd* | kfreebsd*-gnu | dragonfly*)
16488       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16489       hardcode_libdir_flag_spec_F77='-R$libdir'
16490       hardcode_direct_F77=yes
16491       hardcode_shlibpath_var_F77=no
16492       ;;
16493
16494     hpux9*)
16495       if test "$GCC" = yes; then
16496         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'
16497       else
16498         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'
16499       fi
16500       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16501       hardcode_libdir_separator_F77=:
16502       hardcode_direct_F77=yes
16503
16504       # hardcode_minus_L: Not really in the search PATH,
16505       # but as the default location of the library.
16506       hardcode_minus_L_F77=yes
16507       export_dynamic_flag_spec_F77='${wl}-E'
16508       ;;
16509
16510     hpux10* | hpux11*)
16511       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16512         case "$host_cpu" in
16513         hppa*64*|ia64*)
16514           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16515           ;;
16516         *)
16517           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16518           ;;
16519         esac
16520       else
16521         case "$host_cpu" in
16522         hppa*64*|ia64*)
16523           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16524           ;;
16525         *)
16526           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16527           ;;
16528         esac
16529       fi
16530       if test "$with_gnu_ld" = no; then
16531         case "$host_cpu" in
16532         hppa*64*)
16533           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16534           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16535           hardcode_libdir_separator_F77=:
16536           hardcode_direct_F77=no
16537           hardcode_shlibpath_var_F77=no
16538           ;;
16539         ia64*)
16540           hardcode_libdir_flag_spec_F77='-L$libdir'
16541           hardcode_direct_F77=no
16542           hardcode_shlibpath_var_F77=no
16543
16544           # hardcode_minus_L: Not really in the search PATH,
16545           # but as the default location of the library.
16546           hardcode_minus_L_F77=yes
16547           ;;
16548         *)
16549           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16550           hardcode_libdir_separator_F77=:
16551           hardcode_direct_F77=yes
16552           export_dynamic_flag_spec_F77='${wl}-E'
16553
16554           # hardcode_minus_L: Not really in the search PATH,
16555           # but as the default location of the library.
16556           hardcode_minus_L_F77=yes
16557           ;;
16558         esac
16559       fi
16560       ;;
16561
16562     irix5* | irix6* | nonstopux*)
16563       if test "$GCC" = yes; then
16564         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'
16565       else
16566         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'
16567         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16568       fi
16569       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16570       hardcode_libdir_separator_F77=:
16571       link_all_deplibs_F77=yes
16572       ;;
16573
16574     netbsd*)
16575       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16576         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16577       else
16578         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16579       fi
16580       hardcode_libdir_flag_spec_F77='-R$libdir'
16581       hardcode_direct_F77=yes
16582       hardcode_shlibpath_var_F77=no
16583       ;;
16584
16585     newsos6)
16586       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16587       hardcode_direct_F77=yes
16588       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16589       hardcode_libdir_separator_F77=:
16590       hardcode_shlibpath_var_F77=no
16591       ;;
16592
16593     openbsd*)
16594       hardcode_direct_F77=yes
16595       hardcode_shlibpath_var_F77=no
16596       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16597         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16598         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16599         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16600         export_dynamic_flag_spec_F77='${wl}-E'
16601       else
16602        case $host_os in
16603          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16604            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16605            hardcode_libdir_flag_spec_F77='-R$libdir'
16606            ;;
16607          *)
16608            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16609            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16610            ;;
16611        esac
16612       fi
16613       ;;
16614
16615     os2*)
16616       hardcode_libdir_flag_spec_F77='-L$libdir'
16617       hardcode_minus_L_F77=yes
16618       allow_undefined_flag_F77=unsupported
16619       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'
16620       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16621       ;;
16622
16623     osf3*)
16624       if test "$GCC" = yes; then
16625         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16626         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'
16627       else
16628         allow_undefined_flag_F77=' -expect_unresolved \*'
16629         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'
16630       fi
16631       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16632       hardcode_libdir_separator_F77=:
16633       ;;
16634
16635     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16636       if test "$GCC" = yes; then
16637         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16638         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'
16639         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16640       else
16641         allow_undefined_flag_F77=' -expect_unresolved \*'
16642         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'
16643         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~
16644         $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'
16645
16646         # Both c and cxx compiler support -rpath directly
16647         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16648       fi
16649       hardcode_libdir_separator_F77=:
16650       ;;
16651
16652     sco3.2v5*)
16653       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16654       hardcode_shlibpath_var_F77=no
16655       export_dynamic_flag_spec_F77='${wl}-Bexport'
16656       runpath_var=LD_RUN_PATH
16657       hardcode_runpath_var=yes
16658       ;;
16659
16660     solaris*)
16661       no_undefined_flag_F77=' -z text'
16662       if test "$GCC" = yes; then
16663         wlarc='${wl}'
16664         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16665         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16666           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16667       else
16668         wlarc=''
16669         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16670         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16671         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16672       fi
16673       hardcode_libdir_flag_spec_F77='-R$libdir'
16674       hardcode_shlibpath_var_F77=no
16675       case $host_os in
16676       solaris2.[0-5] | solaris2.[0-5].*) ;;
16677       *)
16678         # The compiler driver will combine linker options so we
16679         # cannot just pass the convience library names through
16680         # without $wl, iff we do not link with $LD.
16681         # Luckily, gcc supports the same syntax we need for Sun Studio.
16682         # Supported since Solaris 2.6 (maybe 2.5.1?)
16683         case $wlarc in
16684         '')
16685           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16686         *)
16687           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' ;;
16688         esac ;;
16689       esac
16690       link_all_deplibs_F77=yes
16691       ;;
16692
16693     sunos4*)
16694       if test "x$host_vendor" = xsequent; then
16695         # Use $CC to link under sequent, because it throws in some extra .o
16696         # files that make .init and .fini sections work.
16697         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16698       else
16699         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16700       fi
16701       hardcode_libdir_flag_spec_F77='-L$libdir'
16702       hardcode_direct_F77=yes
16703       hardcode_minus_L_F77=yes
16704       hardcode_shlibpath_var_F77=no
16705       ;;
16706
16707     sysv4)
16708       case $host_vendor in
16709         sni)
16710           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16711           hardcode_direct_F77=yes # is this really true???
16712         ;;
16713         siemens)
16714           ## LD is ld it makes a PLAMLIB
16715           ## CC just makes a GrossModule.
16716           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16717           reload_cmds_F77='$CC -r -o $output$reload_objs'
16718           hardcode_direct_F77=no
16719         ;;
16720         motorola)
16721           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16722           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16723         ;;
16724       esac
16725       runpath_var='LD_RUN_PATH'
16726       hardcode_shlibpath_var_F77=no
16727       ;;
16728
16729     sysv4.3*)
16730       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16731       hardcode_shlibpath_var_F77=no
16732       export_dynamic_flag_spec_F77='-Bexport'
16733       ;;
16734
16735     sysv4*MP*)
16736       if test -d /usr/nec; then
16737         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16738         hardcode_shlibpath_var_F77=no
16739         runpath_var=LD_RUN_PATH
16740         hardcode_runpath_var=yes
16741         ld_shlibs_F77=yes
16742       fi
16743       ;;
16744
16745     sysv4.2uw2*)
16746       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16747       hardcode_direct_F77=yes
16748       hardcode_minus_L_F77=no
16749       hardcode_shlibpath_var_F77=no
16750       hardcode_runpath_var=yes
16751       runpath_var=LD_RUN_PATH
16752       ;;
16753
16754    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16755       no_undefined_flag_F77='${wl}-z ${wl}text'
16756       if test "$GCC" = yes; then
16757         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16758       else
16759         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16760       fi
16761       runpath_var='LD_RUN_PATH'
16762       hardcode_shlibpath_var_F77=no
16763       ;;
16764
16765     sysv5*)
16766       no_undefined_flag_F77=' -z text'
16767       # $CC -shared without GNU ld will not create a library from C++
16768       # object files and a static libstdc++, better avoid it by now
16769       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16770       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16771                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16772       hardcode_libdir_flag_spec_F77=
16773       hardcode_shlibpath_var_F77=no
16774       runpath_var='LD_RUN_PATH'
16775       ;;
16776
16777     uts4*)
16778       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16779       hardcode_libdir_flag_spec_F77='-L$libdir'
16780       hardcode_shlibpath_var_F77=no
16781       ;;
16782
16783     *)
16784       ld_shlibs_F77=no
16785       ;;
16786     esac
16787   fi
16788
16789 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16790 echo "${ECHO_T}$ld_shlibs_F77" >&6
16791 test "$ld_shlibs_F77" = no && can_build_shared=no
16792
16793 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16794 if test "$GCC" = yes; then
16795   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16796 fi
16797
16798 #
16799 # Do we need to explicitly link libc?
16800 #
16801 case "x$archive_cmds_need_lc_F77" in
16802 x|xyes)
16803   # Assume -lc should be added
16804   archive_cmds_need_lc_F77=yes
16805
16806   if test "$enable_shared" = yes && test "$GCC" = yes; then
16807     case $archive_cmds_F77 in
16808     *'~'*)
16809       # FIXME: we may have to deal with multi-command sequences.
16810       ;;
16811     '$CC '*)
16812       # Test whether the compiler implicitly links with -lc since on some
16813       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16814       # to ld, don't add -lc before -lgcc.
16815       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16816 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16817       $rm conftest*
16818       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16819
16820       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16821   (eval $ac_compile) 2>&5
16822   ac_status=$?
16823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824   (exit $ac_status); } 2>conftest.err; then
16825         soname=conftest
16826         lib=conftest
16827         libobjs=conftest.$ac_objext
16828         deplibs=
16829         wl=$lt_prog_compiler_wl_F77
16830         compiler_flags=-v
16831         linker_flags=-v
16832         verstring=
16833         output_objdir=.
16834         libname=conftest
16835         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16836         allow_undefined_flag_F77=
16837         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16838   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16839   ac_status=$?
16840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841   (exit $ac_status); }
16842         then
16843           archive_cmds_need_lc_F77=no
16844         else
16845           archive_cmds_need_lc_F77=yes
16846         fi
16847         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16848       else
16849         cat conftest.err 1>&5
16850       fi
16851       $rm conftest*
16852       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16853 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16854       ;;
16855     esac
16856   fi
16857   ;;
16858 esac
16859
16860 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16861 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16862 library_names_spec=
16863 libname_spec='lib$name'
16864 soname_spec=
16865 shrext_cmds=".so"
16866 postinstall_cmds=
16867 postuninstall_cmds=
16868 finish_cmds=
16869 finish_eval=
16870 shlibpath_var=
16871 shlibpath_overrides_runpath=unknown
16872 version_type=none
16873 dynamic_linker="$host_os ld.so"
16874 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16875 if test "$GCC" = yes; then
16876   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16877   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16878     # if the path contains ";" then we assume it to be the separator
16879     # otherwise default to the standard path separator (i.e. ":") - it is
16880     # assumed that no part of a normal pathname contains ";" but that should
16881     # okay in the real world where ";" in dirpaths is itself problematic.
16882     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16883   else
16884     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16885   fi
16886 else
16887   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16888 fi
16889 need_lib_prefix=unknown
16890 hardcode_into_libs=no
16891
16892 # when you set need_version to no, make sure it does not cause -set_version
16893 # flags to be left without arguments
16894 need_version=unknown
16895
16896 case $host_os in
16897 aix3*)
16898   version_type=linux
16899   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16900   shlibpath_var=LIBPATH
16901
16902   # AIX 3 has no versioning support, so we append a major version to the name.
16903   soname_spec='${libname}${release}${shared_ext}$major'
16904   ;;
16905
16906 aix4* | aix5*)
16907   version_type=linux
16908   need_lib_prefix=no
16909   need_version=no
16910   hardcode_into_libs=yes
16911   if test "$host_cpu" = ia64; then
16912     # AIX 5 supports IA64
16913     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16914     shlibpath_var=LD_LIBRARY_PATH
16915   else
16916     # With GCC up to 2.95.x, collect2 would create an import file
16917     # for dependence libraries.  The import file would start with
16918     # the line `#! .'.  This would cause the generated library to
16919     # depend on `.', always an invalid library.  This was fixed in
16920     # development snapshots of GCC prior to 3.0.
16921     case $host_os in
16922       aix4 | aix4.[01] | aix4.[01].*)
16923       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16924            echo ' yes '
16925            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16926         :
16927       else
16928         can_build_shared=no
16929       fi
16930       ;;
16931     esac
16932     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16933     # soname into executable. Probably we can add versioning support to
16934     # collect2, so additional links can be useful in future.
16935     if test "$aix_use_runtimelinking" = yes; then
16936       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16937       # instead of lib<name>.a to let people know that these are not
16938       # typical AIX shared libraries.
16939       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16940     else
16941       # We preserve .a as extension for shared libraries through AIX4.2
16942       # and later when we are not doing run time linking.
16943       library_names_spec='${libname}${release}.a $libname.a'
16944       soname_spec='${libname}${release}${shared_ext}$major'
16945     fi
16946     shlibpath_var=LIBPATH
16947   fi
16948   ;;
16949
16950 amigaos*)
16951   library_names_spec='$libname.ixlibrary $libname.a'
16952   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16953   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'
16954   ;;
16955
16956 beos*)
16957   library_names_spec='${libname}${shared_ext}'
16958   dynamic_linker="$host_os ld.so"
16959   shlibpath_var=LIBRARY_PATH
16960   ;;
16961
16962 bsdi[45]*)
16963   version_type=linux
16964   need_version=no
16965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16966   soname_spec='${libname}${release}${shared_ext}$major'
16967   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16968   shlibpath_var=LD_LIBRARY_PATH
16969   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16970   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16971   # the default ld.so.conf also contains /usr/contrib/lib and
16972   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16973   # libtool to hard-code these into programs
16974   ;;
16975
16976 cygwin* | mingw* | pw32*)
16977   version_type=windows
16978   shrext_cmds=".dll"
16979   need_version=no
16980   need_lib_prefix=no
16981
16982   case $GCC,$host_os in
16983   yes,cygwin* | yes,mingw* | yes,pw32*)
16984     library_names_spec='$libname.dll.a'
16985     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16986     postinstall_cmds='base_file=`basename \${file}`~
16987       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16988       dldir=$destdir/`dirname \$dlpath`~
16989       test -d \$dldir || mkdir -p \$dldir~
16990       $install_prog $dir/$dlname \$dldir/$dlname'
16991     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16992       dlpath=$dir/\$dldll~
16993        $rm \$dlpath'
16994     shlibpath_overrides_runpath=yes
16995
16996     case $host_os in
16997     cygwin*)
16998       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16999       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17000       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17001       ;;
17002     mingw*)
17003       # MinGW DLLs use traditional 'lib' prefix
17004       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17005       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17006       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17007         # It is most probably a Windows format PATH printed by
17008         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17009         # path with ; separators, and with drive letters. We can handle the
17010         # drive letters (cygwin fileutils understands them), so leave them,
17011         # especially as we might pass files found there to a mingw objdump,
17012         # which wouldn't understand a cygwinified path. Ahh.
17013         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17014       else
17015         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17016       fi
17017       ;;
17018     pw32*)
17019       # pw32 DLLs use 'pw' prefix rather than 'lib'
17020       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17021       ;;
17022     esac
17023     ;;
17024
17025   *)
17026     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17027     ;;
17028   esac
17029   dynamic_linker='Win32 ld.exe'
17030   # FIXME: first we should search . and the directory the executable is in
17031   shlibpath_var=PATH
17032   ;;
17033
17034 darwin* | rhapsody*)
17035   dynamic_linker="$host_os dyld"
17036   version_type=darwin
17037   need_lib_prefix=no
17038   need_version=no
17039   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17040   soname_spec='${libname}${release}${major}$shared_ext'
17041   shlibpath_overrides_runpath=yes
17042   shlibpath_var=DYLD_LIBRARY_PATH
17043   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17044   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17045   if test "$GCC" = yes; then
17046     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"`
17047   else
17048     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17049   fi
17050   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17051   ;;
17052
17053 dgux*)
17054   version_type=linux
17055   need_lib_prefix=no
17056   need_version=no
17057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17058   soname_spec='${libname}${release}${shared_ext}$major'
17059   shlibpath_var=LD_LIBRARY_PATH
17060   ;;
17061
17062 freebsd1*)
17063   dynamic_linker=no
17064   ;;
17065
17066 kfreebsd*-gnu)
17067   version_type=linux
17068   need_lib_prefix=no
17069   need_version=no
17070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17071   soname_spec='${libname}${release}${shared_ext}$major'
17072   shlibpath_var=LD_LIBRARY_PATH
17073   shlibpath_overrides_runpath=no
17074   hardcode_into_libs=yes
17075   dynamic_linker='GNU ld.so'
17076   ;;
17077
17078 freebsd* | dragonfly*)
17079   # DragonFly does not have aout.  When/if they implement a new
17080   # versioning mechanism, adjust this.
17081   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17082   version_type=freebsd-$objformat
17083   case $version_type in
17084     freebsd-elf*)
17085       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17086       need_version=no
17087       need_lib_prefix=no
17088       ;;
17089     freebsd-*)
17090       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17091       need_version=yes
17092       ;;
17093   esac
17094   shlibpath_var=LD_LIBRARY_PATH
17095   case $host_os in
17096   freebsd2*)
17097     shlibpath_overrides_runpath=yes
17098     ;;
17099   freebsd3.[01]* | freebsdelf3.[01]*)
17100     shlibpath_overrides_runpath=yes
17101     hardcode_into_libs=yes
17102     ;;
17103   *) # from 3.2 on
17104     shlibpath_overrides_runpath=no
17105     hardcode_into_libs=yes
17106     ;;
17107   esac
17108   ;;
17109
17110 gnu*)
17111   version_type=linux
17112   need_lib_prefix=no
17113   need_version=no
17114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17115   soname_spec='${libname}${release}${shared_ext}$major'
17116   shlibpath_var=LD_LIBRARY_PATH
17117   hardcode_into_libs=yes
17118   ;;
17119
17120 hpux9* | hpux10* | hpux11*)
17121   # Give a soname corresponding to the major version so that dld.sl refuses to
17122   # link against other versions.
17123   version_type=sunos
17124   need_lib_prefix=no
17125   need_version=no
17126   case "$host_cpu" in
17127   ia64*)
17128     shrext_cmds='.so'
17129     hardcode_into_libs=yes
17130     dynamic_linker="$host_os dld.so"
17131     shlibpath_var=LD_LIBRARY_PATH
17132     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17133     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17134     soname_spec='${libname}${release}${shared_ext}$major'
17135     if test "X$HPUX_IA64_MODE" = X32; then
17136       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17137     else
17138       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17139     fi
17140     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17141     ;;
17142    hppa*64*)
17143      shrext_cmds='.sl'
17144      hardcode_into_libs=yes
17145      dynamic_linker="$host_os dld.sl"
17146      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17147      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17148      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149      soname_spec='${libname}${release}${shared_ext}$major'
17150      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17151      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17152      ;;
17153    *)
17154     shrext_cmds='.sl'
17155     dynamic_linker="$host_os dld.sl"
17156     shlibpath_var=SHLIB_PATH
17157     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17158     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17159     soname_spec='${libname}${release}${shared_ext}$major'
17160     ;;
17161   esac
17162   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17163   postinstall_cmds='chmod 555 $lib'
17164   ;;
17165
17166 irix5* | irix6* | nonstopux*)
17167   case $host_os in
17168     nonstopux*) version_type=nonstopux ;;
17169     *)
17170         if test "$lt_cv_prog_gnu_ld" = yes; then
17171                 version_type=linux
17172         else
17173                 version_type=irix
17174         fi ;;
17175   esac
17176   need_lib_prefix=no
17177   need_version=no
17178   soname_spec='${libname}${release}${shared_ext}$major'
17179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17180   case $host_os in
17181   irix5* | nonstopux*)
17182     libsuff= shlibsuff=
17183     ;;
17184   *)
17185     case $LD in # libtool.m4 will add one of these switches to LD
17186     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17187       libsuff= shlibsuff= libmagic=32-bit;;
17188     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17189       libsuff=32 shlibsuff=N32 libmagic=N32;;
17190     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17191       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17192     *) libsuff= shlibsuff= libmagic=never-match;;
17193     esac
17194     ;;
17195   esac
17196   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17197   shlibpath_overrides_runpath=no
17198   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17199   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17200   hardcode_into_libs=yes
17201   ;;
17202
17203 # No shared lib support for Linux oldld, aout, or coff.
17204 linux*oldld* | linux*aout* | linux*coff*)
17205   dynamic_linker=no
17206   ;;
17207
17208 # This must be Linux ELF.
17209 linux*)
17210   version_type=linux
17211   need_lib_prefix=no
17212   need_version=no
17213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17214   soname_spec='${libname}${release}${shared_ext}$major'
17215   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17216   shlibpath_var=LD_LIBRARY_PATH
17217   shlibpath_overrides_runpath=no
17218   # This implies no fast_install, which is unacceptable.
17219   # Some rework will be needed to allow for fast_install
17220   # before this can be enabled.
17221   hardcode_into_libs=yes
17222
17223   # Append ld.so.conf contents to the search path
17224   if test -f /etc/ld.so.conf; then
17225     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' ' '`
17226     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17227   fi
17228
17229   # We used to test for /lib/ld.so.1 and disable shared libraries on
17230   # powerpc, because MkLinux only supported shared libraries with the
17231   # GNU dynamic linker.  Since this was broken with cross compilers,
17232   # most powerpc-linux boxes support dynamic linking these days and
17233   # people can always --disable-shared, the test was removed, and we
17234   # assume the GNU/Linux dynamic linker is in use.
17235   dynamic_linker='GNU/Linux ld.so'
17236   ;;
17237
17238 knetbsd*-gnu)
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   shlibpath_var=LD_LIBRARY_PATH
17245   shlibpath_overrides_runpath=no
17246   hardcode_into_libs=yes
17247   dynamic_linker='GNU ld.so'
17248   ;;
17249
17250 netbsd*)
17251   version_type=sunos
17252   need_lib_prefix=no
17253   need_version=no
17254   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17255     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17256     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17257     dynamic_linker='NetBSD (a.out) ld.so'
17258   else
17259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17260     soname_spec='${libname}${release}${shared_ext}$major'
17261     dynamic_linker='NetBSD ld.elf_so'
17262   fi
17263   shlibpath_var=LD_LIBRARY_PATH
17264   shlibpath_overrides_runpath=yes
17265   hardcode_into_libs=yes
17266   ;;
17267
17268 newsos6)
17269   version_type=linux
17270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17271   shlibpath_var=LD_LIBRARY_PATH
17272   shlibpath_overrides_runpath=yes
17273   ;;
17274
17275 nto-qnx*)
17276   version_type=linux
17277   need_lib_prefix=no
17278   need_version=no
17279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17280   soname_spec='${libname}${release}${shared_ext}$major'
17281   shlibpath_var=LD_LIBRARY_PATH
17282   shlibpath_overrides_runpath=yes
17283   ;;
17284
17285 openbsd*)
17286   version_type=sunos
17287   need_lib_prefix=no
17288   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17289   case $host_os in
17290     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17291     *)                         need_version=no  ;;
17292   esac
17293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17294   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17295   shlibpath_var=LD_LIBRARY_PATH
17296   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17297     case $host_os in
17298       openbsd2.[89] | openbsd2.[89].*)
17299         shlibpath_overrides_runpath=no
17300         ;;
17301       *)
17302         shlibpath_overrides_runpath=yes
17303         ;;
17304       esac
17305   else
17306     shlibpath_overrides_runpath=yes
17307   fi
17308   ;;
17309
17310 os2*)
17311   libname_spec='$name'
17312   shrext_cmds=".dll"
17313   need_lib_prefix=no
17314   library_names_spec='$libname${shared_ext} $libname.a'
17315   dynamic_linker='OS/2 ld.exe'
17316   shlibpath_var=LIBPATH
17317   ;;
17318
17319 osf3* | osf4* | osf5*)
17320   version_type=osf
17321   need_lib_prefix=no
17322   need_version=no
17323   soname_spec='${libname}${release}${shared_ext}$major'
17324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17325   shlibpath_var=LD_LIBRARY_PATH
17326   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17327   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17328   ;;
17329
17330 sco3.2v5*)
17331   version_type=osf
17332   soname_spec='${libname}${release}${shared_ext}$major'
17333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17334   shlibpath_var=LD_LIBRARY_PATH
17335   ;;
17336
17337 solaris*)
17338   version_type=linux
17339   need_lib_prefix=no
17340   need_version=no
17341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17342   soname_spec='${libname}${release}${shared_ext}$major'
17343   shlibpath_var=LD_LIBRARY_PATH
17344   shlibpath_overrides_runpath=yes
17345   hardcode_into_libs=yes
17346   # ldd complains unless libraries are executable
17347   postinstall_cmds='chmod +x $lib'
17348   ;;
17349
17350 sunos4*)
17351   version_type=sunos
17352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17353   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17354   shlibpath_var=LD_LIBRARY_PATH
17355   shlibpath_overrides_runpath=yes
17356   if test "$with_gnu_ld" = yes; then
17357     need_lib_prefix=no
17358   fi
17359   need_version=yes
17360   ;;
17361
17362 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17363   version_type=linux
17364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17365   soname_spec='${libname}${release}${shared_ext}$major'
17366   shlibpath_var=LD_LIBRARY_PATH
17367   case $host_vendor in
17368     sni)
17369       shlibpath_overrides_runpath=no
17370       need_lib_prefix=no
17371       export_dynamic_flag_spec='${wl}-Blargedynsym'
17372       runpath_var=LD_RUN_PATH
17373       ;;
17374     siemens)
17375       need_lib_prefix=no
17376       ;;
17377     motorola)
17378       need_lib_prefix=no
17379       need_version=no
17380       shlibpath_overrides_runpath=no
17381       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17382       ;;
17383   esac
17384   ;;
17385
17386 sysv4*MP*)
17387   if test -d /usr/nec ;then
17388     version_type=linux
17389     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17390     soname_spec='$libname${shared_ext}.$major'
17391     shlibpath_var=LD_LIBRARY_PATH
17392   fi
17393   ;;
17394
17395 uts4*)
17396   version_type=linux
17397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17398   soname_spec='${libname}${release}${shared_ext}$major'
17399   shlibpath_var=LD_LIBRARY_PATH
17400   ;;
17401
17402 *)
17403   dynamic_linker=no
17404   ;;
17405 esac
17406 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17407 echo "${ECHO_T}$dynamic_linker" >&6
17408 test "$dynamic_linker" = no && can_build_shared=no
17409
17410 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17411 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17412 hardcode_action_F77=
17413 if test -n "$hardcode_libdir_flag_spec_F77" || \
17414    test -n "$runpath_var_F77" || \
17415    test "X$hardcode_automatic_F77" = "Xyes" ; then
17416
17417   # We can hardcode non-existant directories.
17418   if test "$hardcode_direct_F77" != no &&
17419      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17420      # have to relink, otherwise we might link with an installed library
17421      # when we should be linking with a yet-to-be-installed one
17422      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17423      test "$hardcode_minus_L_F77" != no; then
17424     # Linking always hardcodes the temporary library directory.
17425     hardcode_action_F77=relink
17426   else
17427     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17428     hardcode_action_F77=immediate
17429   fi
17430 else
17431   # We cannot hardcode anything, or else we can only hardcode existing
17432   # directories.
17433   hardcode_action_F77=unsupported
17434 fi
17435 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17436 echo "${ECHO_T}$hardcode_action_F77" >&6
17437
17438 if test "$hardcode_action_F77" = relink; then
17439   # Fast installation is not supported
17440   enable_fast_install=no
17441 elif test "$shlibpath_overrides_runpath" = yes ||
17442      test "$enable_shared" = no; then
17443   # Fast installation is not necessary
17444   enable_fast_install=needless
17445 fi
17446
17447 striplib=
17448 old_striplib=
17449 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17450 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17451 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17452   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17453   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17454   echo "$as_me:$LINENO: result: yes" >&5
17455 echo "${ECHO_T}yes" >&6
17456 else
17457 # FIXME - insert some real tests, host_os isn't really good enough
17458   case $host_os in
17459    darwin*)
17460        if test -n "$STRIP" ; then
17461          striplib="$STRIP -x"
17462          echo "$as_me:$LINENO: result: yes" >&5
17463 echo "${ECHO_T}yes" >&6
17464        else
17465   echo "$as_me:$LINENO: result: no" >&5
17466 echo "${ECHO_T}no" >&6
17467 fi
17468        ;;
17469    *)
17470   echo "$as_me:$LINENO: result: no" >&5
17471 echo "${ECHO_T}no" >&6
17472     ;;
17473   esac
17474 fi
17475
17476
17477
17478 # The else clause should only fire when bootstrapping the
17479 # libtool distribution, otherwise you forgot to ship ltmain.sh
17480 # with your package, and you will get complaints that there are
17481 # no rules to generate ltmain.sh.
17482 if test -f "$ltmain"; then
17483   # See if we are running on zsh, and set the options which allow our commands through
17484   # without removal of \ escapes.
17485   if test -n "${ZSH_VERSION+set}" ; then
17486     setopt NO_GLOB_SUBST
17487   fi
17488   # Now quote all the things that may contain metacharacters while being
17489   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17490   # variables and quote the copies for generation of the libtool script.
17491   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17492     SED SHELL STRIP \
17493     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17494     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17495     deplibs_check_method reload_flag reload_cmds need_locks \
17496     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17497     lt_cv_sys_global_symbol_to_c_name_address \
17498     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17499     old_postinstall_cmds old_postuninstall_cmds \
17500     compiler_F77 \
17501     CC_F77 \
17502     LD_F77 \
17503     lt_prog_compiler_wl_F77 \
17504     lt_prog_compiler_pic_F77 \
17505     lt_prog_compiler_static_F77 \
17506     lt_prog_compiler_no_builtin_flag_F77 \
17507     export_dynamic_flag_spec_F77 \
17508     thread_safe_flag_spec_F77 \
17509     whole_archive_flag_spec_F77 \
17510     enable_shared_with_static_runtimes_F77 \
17511     old_archive_cmds_F77 \
17512     old_archive_from_new_cmds_F77 \
17513     predep_objects_F77 \
17514     postdep_objects_F77 \
17515     predeps_F77 \
17516     postdeps_F77 \
17517     compiler_lib_search_path_F77 \
17518     archive_cmds_F77 \
17519     archive_expsym_cmds_F77 \
17520     postinstall_cmds_F77 \
17521     postuninstall_cmds_F77 \
17522     old_archive_from_expsyms_cmds_F77 \
17523     allow_undefined_flag_F77 \
17524     no_undefined_flag_F77 \
17525     export_symbols_cmds_F77 \
17526     hardcode_libdir_flag_spec_F77 \
17527     hardcode_libdir_flag_spec_ld_F77 \
17528     hardcode_libdir_separator_F77 \
17529     hardcode_automatic_F77 \
17530     module_cmds_F77 \
17531     module_expsym_cmds_F77 \
17532     lt_cv_prog_compiler_c_o_F77 \
17533     exclude_expsyms_F77 \
17534     include_expsyms_F77; do
17535
17536     case $var in
17537     old_archive_cmds_F77 | \
17538     old_archive_from_new_cmds_F77 | \
17539     archive_cmds_F77 | \
17540     archive_expsym_cmds_F77 | \
17541     module_cmds_F77 | \
17542     module_expsym_cmds_F77 | \
17543     old_archive_from_expsyms_cmds_F77 | \
17544     export_symbols_cmds_F77 | \
17545     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17546     postinstall_cmds | postuninstall_cmds | \
17547     old_postinstall_cmds | old_postuninstall_cmds | \
17548     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17549       # Double-quote double-evaled strings.
17550       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17551       ;;
17552     *)
17553       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17554       ;;
17555     esac
17556   done
17557
17558   case $lt_echo in
17559   *'\$0 --fallback-echo"')
17560     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17561     ;;
17562   esac
17563
17564 cfgfile="$ofile"
17565
17566   cat <<__EOF__ >> "$cfgfile"
17567 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17568
17569 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17570
17571 # Shell to use when invoking shell scripts.
17572 SHELL=$lt_SHELL
17573
17574 # Whether or not to build shared libraries.
17575 build_libtool_libs=$enable_shared
17576
17577 # Whether or not to build static libraries.
17578 build_old_libs=$enable_static
17579
17580 # Whether or not to add -lc for building shared libraries.
17581 build_libtool_need_lc=$archive_cmds_need_lc_F77
17582
17583 # Whether or not to disallow shared libs when runtime libs are static
17584 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17585
17586 # Whether or not to optimize for fast installation.
17587 fast_install=$enable_fast_install
17588
17589 # The host system.
17590 host_alias=$host_alias
17591 host=$host
17592 host_os=$host_os
17593
17594 # The build system.
17595 build_alias=$build_alias
17596 build=$build
17597 build_os=$build_os
17598
17599 # An echo program that does not interpret backslashes.
17600 echo=$lt_echo
17601
17602 # The archiver.
17603 AR=$lt_AR
17604 AR_FLAGS=$lt_AR_FLAGS
17605
17606 # A C compiler.
17607 LTCC=$lt_LTCC
17608
17609 # A language-specific compiler.
17610 CC=$lt_compiler_F77
17611
17612 # Is the compiler the GNU C compiler?
17613 with_gcc=$GCC_F77
17614
17615 # An ERE matcher.
17616 EGREP=$lt_EGREP
17617
17618 # The linker used to build libraries.
17619 LD=$lt_LD_F77
17620
17621 # Whether we need hard or soft links.
17622 LN_S=$lt_LN_S
17623
17624 # A BSD-compatible nm program.
17625 NM=$lt_NM
17626
17627 # A symbol stripping program
17628 STRIP=$lt_STRIP
17629
17630 # Used to examine libraries when file_magic_cmd begins "file"
17631 MAGIC_CMD=$MAGIC_CMD
17632
17633 # Used on cygwin: DLL creation program.
17634 DLLTOOL="$DLLTOOL"
17635
17636 # Used on cygwin: object dumper.
17637 OBJDUMP="$OBJDUMP"
17638
17639 # Used on cygwin: assembler.
17640 AS="$AS"
17641
17642 # The name of the directory that contains temporary libtool files.
17643 objdir=$objdir
17644
17645 # How to create reloadable object files.
17646 reload_flag=$lt_reload_flag
17647 reload_cmds=$lt_reload_cmds
17648
17649 # How to pass a linker flag through the compiler.
17650 wl=$lt_lt_prog_compiler_wl_F77
17651
17652 # Object file suffix (normally "o").
17653 objext="$ac_objext"
17654
17655 # Old archive suffix (normally "a").
17656 libext="$libext"
17657
17658 # Shared library suffix (normally ".so").
17659 shrext_cmds='$shrext_cmds'
17660
17661 # Executable file suffix (normally "").
17662 exeext="$exeext"
17663
17664 # Additional compiler flags for building library objects.
17665 pic_flag=$lt_lt_prog_compiler_pic_F77
17666 pic_mode=$pic_mode
17667
17668 # What is the maximum length of a command?
17669 max_cmd_len=$lt_cv_sys_max_cmd_len
17670
17671 # Does compiler simultaneously support -c and -o options?
17672 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17673
17674 # Must we lock files when doing compilation?
17675 need_locks=$lt_need_locks
17676
17677 # Do we need the lib prefix for modules?
17678 need_lib_prefix=$need_lib_prefix
17679
17680 # Do we need a version for libraries?
17681 need_version=$need_version
17682
17683 # Whether dlopen is supported.
17684 dlopen_support=$enable_dlopen
17685
17686 # Whether dlopen of programs is supported.
17687 dlopen_self=$enable_dlopen_self
17688
17689 # Whether dlopen of statically linked programs is supported.
17690 dlopen_self_static=$enable_dlopen_self_static
17691
17692 # Compiler flag to prevent dynamic linking.
17693 link_static_flag=$lt_lt_prog_compiler_static_F77
17694
17695 # Compiler flag to turn off builtin functions.
17696 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17697
17698 # Compiler flag to allow reflexive dlopens.
17699 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17700
17701 # Compiler flag to generate shared objects directly from archives.
17702 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17703
17704 # Compiler flag to generate thread-safe objects.
17705 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17706
17707 # Library versioning type.
17708 version_type=$version_type
17709
17710 # Format of library name prefix.
17711 libname_spec=$lt_libname_spec
17712
17713 # List of archive names.  First name is the real one, the rest are links.
17714 # The last name is the one that the linker finds with -lNAME.
17715 library_names_spec=$lt_library_names_spec
17716
17717 # The coded name of the library, if different from the real name.
17718 soname_spec=$lt_soname_spec
17719
17720 # Commands used to build and install an old-style archive.
17721 RANLIB=$lt_RANLIB
17722 old_archive_cmds=$lt_old_archive_cmds_F77
17723 old_postinstall_cmds=$lt_old_postinstall_cmds
17724 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17725
17726 # Create an old-style archive from a shared archive.
17727 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17728
17729 # Create a temporary old-style archive to link instead of a shared archive.
17730 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17731
17732 # Commands used to build and install a shared archive.
17733 archive_cmds=$lt_archive_cmds_F77
17734 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17735 postinstall_cmds=$lt_postinstall_cmds
17736 postuninstall_cmds=$lt_postuninstall_cmds
17737
17738 # Commands used to build a loadable module (assumed same as above if empty)
17739 module_cmds=$lt_module_cmds_F77
17740 module_expsym_cmds=$lt_module_expsym_cmds_F77
17741
17742 # Commands to strip libraries.
17743 old_striplib=$lt_old_striplib
17744 striplib=$lt_striplib
17745
17746 # Dependencies to place before the objects being linked to create a
17747 # shared library.
17748 predep_objects=$lt_predep_objects_F77
17749
17750 # Dependencies to place after the objects being linked to create a
17751 # shared library.
17752 postdep_objects=$lt_postdep_objects_F77
17753
17754 # Dependencies to place before the objects being linked to create a
17755 # shared library.
17756 predeps=$lt_predeps_F77
17757
17758 # Dependencies to place after the objects being linked to create a
17759 # shared library.
17760 postdeps=$lt_postdeps_F77
17761
17762 # The library search path used internally by the compiler when linking
17763 # a shared library.
17764 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17765
17766 # Method to check whether dependent libraries are shared objects.
17767 deplibs_check_method=$lt_deplibs_check_method
17768
17769 # Command to use when deplibs_check_method == file_magic.
17770 file_magic_cmd=$lt_file_magic_cmd
17771
17772 # Flag that allows shared libraries with undefined symbols to be built.
17773 allow_undefined_flag=$lt_allow_undefined_flag_F77
17774
17775 # Flag that forces no undefined symbols.
17776 no_undefined_flag=$lt_no_undefined_flag_F77
17777
17778 # Commands used to finish a libtool library installation in a directory.
17779 finish_cmds=$lt_finish_cmds
17780
17781 # Same as above, but a single script fragment to be evaled but not shown.
17782 finish_eval=$lt_finish_eval
17783
17784 # Take the output of nm and produce a listing of raw symbols and C names.
17785 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17786
17787 # Transform the output of nm in a proper C declaration
17788 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17789
17790 # Transform the output of nm in a C name address pair
17791 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17792
17793 # This is the shared library runtime path variable.
17794 runpath_var=$runpath_var
17795
17796 # This is the shared library path variable.
17797 shlibpath_var=$shlibpath_var
17798
17799 # Is shlibpath searched before the hard-coded library search path?
17800 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17801
17802 # How to hardcode a shared library path into an executable.
17803 hardcode_action=$hardcode_action_F77
17804
17805 # Whether we should hardcode library paths into libraries.
17806 hardcode_into_libs=$hardcode_into_libs
17807
17808 # Flag to hardcode \$libdir into a binary during linking.
17809 # This must work even if \$libdir does not exist.
17810 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17811
17812 # If ld is used when linking, flag to hardcode \$libdir into
17813 # a binary during linking. This must work even if \$libdir does
17814 # not exist.
17815 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17816
17817 # Whether we need a single -rpath flag with a separated argument.
17818 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17819
17820 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17821 # resulting binary.
17822 hardcode_direct=$hardcode_direct_F77
17823
17824 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17825 # resulting binary.
17826 hardcode_minus_L=$hardcode_minus_L_F77
17827
17828 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17829 # the resulting binary.
17830 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17831
17832 # Set to yes if building a shared library automatically hardcodes DIR into the library
17833 # and all subsequent libraries and executables linked against it.
17834 hardcode_automatic=$hardcode_automatic_F77
17835
17836 # Variables whose values should be saved in libtool wrapper scripts and
17837 # restored at relink time.
17838 variables_saved_for_relink="$variables_saved_for_relink"
17839
17840 # Whether libtool must link a program against all its dependency libraries.
17841 link_all_deplibs=$link_all_deplibs_F77
17842
17843 # Compile-time system search path for libraries
17844 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17845
17846 # Run-time system search path for libraries
17847 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17848
17849 # Fix the shell variable \$srcfile for the compiler.
17850 fix_srcfile_path="$fix_srcfile_path_F77"
17851
17852 # Set to yes if exported symbols are required.
17853 always_export_symbols=$always_export_symbols_F77
17854
17855 # The commands to list exported symbols.
17856 export_symbols_cmds=$lt_export_symbols_cmds_F77
17857
17858 # The commands to extract the exported symbol list from a shared archive.
17859 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17860
17861 # Symbols that should not be listed in the preloaded symbols.
17862 exclude_expsyms=$lt_exclude_expsyms_F77
17863
17864 # Symbols that must always be exported.
17865 include_expsyms=$lt_include_expsyms_F77
17866
17867 # ### END LIBTOOL TAG CONFIG: $tagname
17868
17869 __EOF__
17870
17871
17872 else
17873   # If there is no Makefile yet, we rely on a make rule to execute
17874   # `config.status --recheck' to rerun these tests and create the
17875   # libtool script then.
17876   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17877   if test -f "$ltmain_in"; then
17878     test -f Makefile && make "$ltmain"
17879   fi
17880 fi
17881
17882
17883 ac_ext=c
17884 ac_cpp='$CPP $CPPFLAGS'
17885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17888
17889 CC="$lt_save_CC"
17890
17891         else
17892           tagname=""
17893         fi
17894         ;;
17895
17896       GCJ)
17897         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17898
17899
17900
17901 # Source file extension for Java test sources.
17902 ac_ext=java
17903
17904 # Object file extension for compiled Java test sources.
17905 objext=o
17906 objext_GCJ=$objext
17907
17908 # Code to be used in simple compile tests
17909 lt_simple_compile_test_code="class foo {}\n"
17910
17911 # Code to be used in simple link tests
17912 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17913
17914 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17915
17916 # If no C compiler was specified, use CC.
17917 LTCC=${LTCC-"$CC"}
17918
17919 # Allow CC to be a program name with arguments.
17920 compiler=$CC
17921
17922
17923 # save warnings/boilerplate of simple test code
17924 ac_outfile=conftest.$ac_objext
17925 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17926 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17927 _lt_compiler_boilerplate=`cat conftest.err`
17928 $rm conftest*
17929
17930 ac_outfile=conftest.$ac_objext
17931 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17932 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17933 _lt_linker_boilerplate=`cat conftest.err`
17934 $rm conftest*
17935
17936
17937 # Allow CC to be a program name with arguments.
17938 lt_save_CC="$CC"
17939 CC=${GCJ-"gcj"}
17940 compiler=$CC
17941 compiler_GCJ=$CC
17942 for cc_temp in $compiler""; do
17943   case $cc_temp in
17944     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17945     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17946     \-*) ;;
17947     *) break;;
17948   esac
17949 done
17950 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17951
17952
17953 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17954 archive_cmds_need_lc_GCJ=no
17955
17956 old_archive_cmds_GCJ=$old_archive_cmds
17957
17958
17959 lt_prog_compiler_no_builtin_flag_GCJ=
17960
17961 if test "$GCC" = yes; then
17962   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17963
17964
17965 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17966 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17967 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17968   echo $ECHO_N "(cached) $ECHO_C" >&6
17969 else
17970   lt_cv_prog_compiler_rtti_exceptions=no
17971   ac_outfile=conftest.$ac_objext
17972    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17973    lt_compiler_flag="-fno-rtti -fno-exceptions"
17974    # Insert the option either (1) after the last *FLAGS variable, or
17975    # (2) before a word containing "conftest.", or (3) at the end.
17976    # Note that $ac_compile itself does not contain backslashes and begins
17977    # with a dollar sign (not a hyphen), so the echo should work correctly.
17978    # The option is referenced via a variable to avoid confusing sed.
17979    lt_compile=`echo "$ac_compile" | $SED \
17980    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17981    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17982    -e 's:$: $lt_compiler_flag:'`
17983    (eval echo "\"\$as_me:17983: $lt_compile\"" >&5)
17984    (eval "$lt_compile" 2>conftest.err)
17985    ac_status=$?
17986    cat conftest.err >&5
17987    echo "$as_me:17987: \$? = $ac_status" >&5
17988    if (exit $ac_status) && test -s "$ac_outfile"; then
17989      # The compiler can only warn and ignore the option if not recognized
17990      # So say no if there are warnings other than the usual output.
17991      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17992      $SED '/^$/d' conftest.err >conftest.er2
17993      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17994        lt_cv_prog_compiler_rtti_exceptions=yes
17995      fi
17996    fi
17997    $rm conftest*
17998
17999 fi
18000 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18001 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18002
18003 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18004     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18005 else
18006     :
18007 fi
18008
18009 fi
18010
18011 lt_prog_compiler_wl_GCJ=
18012 lt_prog_compiler_pic_GCJ=
18013 lt_prog_compiler_static_GCJ=
18014
18015 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18016 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18017
18018   if test "$GCC" = yes; then
18019     lt_prog_compiler_wl_GCJ='-Wl,'
18020     lt_prog_compiler_static_GCJ='-static'
18021
18022     case $host_os in
18023       aix*)
18024       # All AIX code is PIC.
18025       if test "$host_cpu" = ia64; then
18026         # AIX 5 now supports IA64 processor
18027         lt_prog_compiler_static_GCJ='-Bstatic'
18028       fi
18029       ;;
18030
18031     amigaos*)
18032       # FIXME: we need at least 68020 code to build shared libraries, but
18033       # adding the `-m68020' flag to GCC prevents building anything better,
18034       # like `-m68040'.
18035       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18036       ;;
18037
18038     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18039       # PIC is the default for these OSes.
18040       ;;
18041
18042     mingw* | pw32* | os2*)
18043       # This hack is so that the source file can tell whether it is being
18044       # built for inclusion in a dll (and should export symbols for example).
18045       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18046       ;;
18047
18048     darwin* | rhapsody*)
18049       # PIC is the default on this platform
18050       # Common symbols not allowed in MH_DYLIB files
18051       lt_prog_compiler_pic_GCJ='-fno-common'
18052       ;;
18053
18054     msdosdjgpp*)
18055       # Just because we use GCC doesn't mean we suddenly get shared libraries
18056       # on systems that don't support them.
18057       lt_prog_compiler_can_build_shared_GCJ=no
18058       enable_shared=no
18059       ;;
18060
18061     sysv4*MP*)
18062       if test -d /usr/nec; then
18063         lt_prog_compiler_pic_GCJ=-Kconform_pic
18064       fi
18065       ;;
18066
18067     hpux*)
18068       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18069       # not for PA HP-UX.
18070       case "$host_cpu" in
18071       hppa*64*|ia64*)
18072         # +Z the default
18073         ;;
18074       *)
18075         lt_prog_compiler_pic_GCJ='-fPIC'
18076         ;;
18077       esac
18078       ;;
18079
18080     *)
18081       lt_prog_compiler_pic_GCJ='-fPIC'
18082       ;;
18083     esac
18084   else
18085     # PORTME Check for flag to pass linker flags through the system compiler.
18086     case $host_os in
18087     aix*)
18088       lt_prog_compiler_wl_GCJ='-Wl,'
18089       if test "$host_cpu" = ia64; then
18090         # AIX 5 now supports IA64 processor
18091         lt_prog_compiler_static_GCJ='-Bstatic'
18092       else
18093         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18094       fi
18095       ;;
18096       darwin*)
18097         # PIC is the default on this platform
18098         # Common symbols not allowed in MH_DYLIB files
18099        case $cc_basename in
18100          xlc*)
18101          lt_prog_compiler_pic_GCJ='-qnocommon'
18102          lt_prog_compiler_wl_GCJ='-Wl,'
18103          ;;
18104        esac
18105        ;;
18106
18107     mingw* | pw32* | os2*)
18108       # This hack is so that the source file can tell whether it is being
18109       # built for inclusion in a dll (and should export symbols for example).
18110       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18111       ;;
18112
18113     hpux9* | hpux10* | hpux11*)
18114       lt_prog_compiler_wl_GCJ='-Wl,'
18115       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18116       # not for PA HP-UX.
18117       case "$host_cpu" in
18118       hppa*64*|ia64*)
18119         # +Z the default
18120         ;;
18121       *)
18122         lt_prog_compiler_pic_GCJ='+Z'
18123         ;;
18124       esac
18125       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18126       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18127       ;;
18128
18129     irix5* | irix6* | nonstopux*)
18130       lt_prog_compiler_wl_GCJ='-Wl,'
18131       # PIC (with -KPIC) is the default.
18132       lt_prog_compiler_static_GCJ='-non_shared'
18133       ;;
18134
18135     newsos6)
18136       lt_prog_compiler_pic_GCJ='-KPIC'
18137       lt_prog_compiler_static_GCJ='-Bstatic'
18138       ;;
18139
18140     linux*)
18141       case $cc_basename in
18142       icc* | ecc*)
18143         lt_prog_compiler_wl_GCJ='-Wl,'
18144         lt_prog_compiler_pic_GCJ='-KPIC'
18145         lt_prog_compiler_static_GCJ='-static'
18146         ;;
18147       pgcc* | pgf77* | pgf90*)
18148         # Portland Group compilers (*not* the Pentium gcc compiler,
18149         # which looks to be a dead project)
18150         lt_prog_compiler_wl_GCJ='-Wl,'
18151         lt_prog_compiler_pic_GCJ='-fpic'
18152         lt_prog_compiler_static_GCJ='-static'
18153         ;;
18154       ccc*)
18155         lt_prog_compiler_wl_GCJ='-Wl,'
18156         # All Alpha code is PIC.
18157         lt_prog_compiler_static_GCJ='-non_shared'
18158         ;;
18159       esac
18160       ;;
18161
18162     osf3* | osf4* | osf5*)
18163       lt_prog_compiler_wl_GCJ='-Wl,'
18164       # All OSF/1 code is PIC.
18165       lt_prog_compiler_static_GCJ='-non_shared'
18166       ;;
18167
18168     sco3.2v5*)
18169       lt_prog_compiler_pic_GCJ='-Kpic'
18170       lt_prog_compiler_static_GCJ='-dn'
18171       ;;
18172
18173     solaris*)
18174       lt_prog_compiler_pic_GCJ='-KPIC'
18175       lt_prog_compiler_static_GCJ='-Bstatic'
18176       case $cc_basename in
18177       f77* | f90* | f95*)
18178         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18179       *)
18180         lt_prog_compiler_wl_GCJ='-Wl,';;
18181       esac
18182       ;;
18183
18184     sunos4*)
18185       lt_prog_compiler_wl_GCJ='-Qoption ld '
18186       lt_prog_compiler_pic_GCJ='-PIC'
18187       lt_prog_compiler_static_GCJ='-Bstatic'
18188       ;;
18189
18190     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18191       lt_prog_compiler_wl_GCJ='-Wl,'
18192       lt_prog_compiler_pic_GCJ='-KPIC'
18193       lt_prog_compiler_static_GCJ='-Bstatic'
18194       ;;
18195
18196     sysv4*MP*)
18197       if test -d /usr/nec ;then
18198         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18199         lt_prog_compiler_static_GCJ='-Bstatic'
18200       fi
18201       ;;
18202
18203     unicos*)
18204       lt_prog_compiler_wl_GCJ='-Wl,'
18205       lt_prog_compiler_can_build_shared_GCJ=no
18206       ;;
18207
18208     uts4*)
18209       lt_prog_compiler_pic_GCJ='-pic'
18210       lt_prog_compiler_static_GCJ='-Bstatic'
18211       ;;
18212
18213     *)
18214       lt_prog_compiler_can_build_shared_GCJ=no
18215       ;;
18216     esac
18217   fi
18218
18219 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18220 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18221
18222 #
18223 # Check to make sure the PIC flag actually works.
18224 #
18225 if test -n "$lt_prog_compiler_pic_GCJ"; then
18226
18227 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18228 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18229 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18230   echo $ECHO_N "(cached) $ECHO_C" >&6
18231 else
18232   lt_prog_compiler_pic_works_GCJ=no
18233   ac_outfile=conftest.$ac_objext
18234    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18235    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18236    # Insert the option either (1) after the last *FLAGS variable, or
18237    # (2) before a word containing "conftest.", or (3) at the end.
18238    # Note that $ac_compile itself does not contain backslashes and begins
18239    # with a dollar sign (not a hyphen), so the echo should work correctly.
18240    # The option is referenced via a variable to avoid confusing sed.
18241    lt_compile=`echo "$ac_compile" | $SED \
18242    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18243    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18244    -e 's:$: $lt_compiler_flag:'`
18245    (eval echo "\"\$as_me:18245: $lt_compile\"" >&5)
18246    (eval "$lt_compile" 2>conftest.err)
18247    ac_status=$?
18248    cat conftest.err >&5
18249    echo "$as_me:18249: \$? = $ac_status" >&5
18250    if (exit $ac_status) && test -s "$ac_outfile"; then
18251      # The compiler can only warn and ignore the option if not recognized
18252      # So say no if there are warnings other than the usual output.
18253      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18254      $SED '/^$/d' conftest.err >conftest.er2
18255      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18256        lt_prog_compiler_pic_works_GCJ=yes
18257      fi
18258    fi
18259    $rm conftest*
18260
18261 fi
18262 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18263 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18264
18265 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18266     case $lt_prog_compiler_pic_GCJ in
18267      "" | " "*) ;;
18268      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18269      esac
18270 else
18271     lt_prog_compiler_pic_GCJ=
18272      lt_prog_compiler_can_build_shared_GCJ=no
18273 fi
18274
18275 fi
18276 case "$host_os" in
18277   # For platforms which do not support PIC, -DPIC is meaningless:
18278   *djgpp*)
18279     lt_prog_compiler_pic_GCJ=
18280     ;;
18281   *)
18282     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18283     ;;
18284 esac
18285
18286 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18287 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18288 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18289   echo $ECHO_N "(cached) $ECHO_C" >&6
18290 else
18291   lt_cv_prog_compiler_c_o_GCJ=no
18292    $rm -r conftest 2>/dev/null
18293    mkdir conftest
18294    cd conftest
18295    mkdir out
18296    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18297
18298    lt_compiler_flag="-o out/conftest2.$ac_objext"
18299    # Insert the option either (1) after the last *FLAGS variable, or
18300    # (2) before a word containing "conftest.", or (3) at the end.
18301    # Note that $ac_compile itself does not contain backslashes and begins
18302    # with a dollar sign (not a hyphen), so the echo should work correctly.
18303    lt_compile=`echo "$ac_compile" | $SED \
18304    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18305    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18306    -e 's:$: $lt_compiler_flag:'`
18307    (eval echo "\"\$as_me:18307: $lt_compile\"" >&5)
18308    (eval "$lt_compile" 2>out/conftest.err)
18309    ac_status=$?
18310    cat out/conftest.err >&5
18311    echo "$as_me:18311: \$? = $ac_status" >&5
18312    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18313    then
18314      # The compiler can only warn and ignore the option if not recognized
18315      # So say no if there are warnings
18316      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18317      $SED '/^$/d' out/conftest.err >out/conftest.er2
18318      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18319        lt_cv_prog_compiler_c_o_GCJ=yes
18320      fi
18321    fi
18322    chmod u+w .
18323    $rm conftest*
18324    # SGI C++ compiler will create directory out/ii_files/ for
18325    # template instantiation
18326    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18327    $rm out/* && rmdir out
18328    cd ..
18329    rmdir conftest
18330    $rm conftest*
18331
18332 fi
18333 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18334 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18335
18336
18337 hard_links="nottested"
18338 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18339   # do not overwrite the value of need_locks provided by the user
18340   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18341 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18342   hard_links=yes
18343   $rm conftest*
18344   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18345   touch conftest.a
18346   ln conftest.a conftest.b 2>&5 || hard_links=no
18347   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18348   echo "$as_me:$LINENO: result: $hard_links" >&5
18349 echo "${ECHO_T}$hard_links" >&6
18350   if test "$hard_links" = no; then
18351     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18352 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18353     need_locks=warn
18354   fi
18355 else
18356   need_locks=no
18357 fi
18358
18359 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18360 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18361
18362   runpath_var=
18363   allow_undefined_flag_GCJ=
18364   enable_shared_with_static_runtimes_GCJ=no
18365   archive_cmds_GCJ=
18366   archive_expsym_cmds_GCJ=
18367   old_archive_From_new_cmds_GCJ=
18368   old_archive_from_expsyms_cmds_GCJ=
18369   export_dynamic_flag_spec_GCJ=
18370   whole_archive_flag_spec_GCJ=
18371   thread_safe_flag_spec_GCJ=
18372   hardcode_libdir_flag_spec_GCJ=
18373   hardcode_libdir_flag_spec_ld_GCJ=
18374   hardcode_libdir_separator_GCJ=
18375   hardcode_direct_GCJ=no
18376   hardcode_minus_L_GCJ=no
18377   hardcode_shlibpath_var_GCJ=unsupported
18378   link_all_deplibs_GCJ=unknown
18379   hardcode_automatic_GCJ=no
18380   module_cmds_GCJ=
18381   module_expsym_cmds_GCJ=
18382   always_export_symbols_GCJ=no
18383   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18384   # include_expsyms should be a list of space-separated symbols to be *always*
18385   # included in the symbol list
18386   include_expsyms_GCJ=
18387   # exclude_expsyms can be an extended regexp of symbols to exclude
18388   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18389   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18390   # as well as any symbol that contains `d'.
18391   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18392   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18393   # platforms (ab)use it in PIC code, but their linkers get confused if
18394   # the symbol is explicitly referenced.  Since portable code cannot
18395   # rely on this symbol name, it's probably fine to never include it in
18396   # preloaded symbol tables.
18397   extract_expsyms_cmds=
18398   # Just being paranoid about ensuring that cc_basename is set.
18399   for cc_temp in $compiler""; do
18400   case $cc_temp in
18401     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18402     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18403     \-*) ;;
18404     *) break;;
18405   esac
18406 done
18407 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18408
18409   case $host_os in
18410   cygwin* | mingw* | pw32*)
18411     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18412     # When not using gcc, we currently assume that we are using
18413     # Microsoft Visual C++.
18414     if test "$GCC" != yes; then
18415       with_gnu_ld=no
18416     fi
18417     ;;
18418   openbsd*)
18419     with_gnu_ld=no
18420     ;;
18421   esac
18422
18423   ld_shlibs_GCJ=yes
18424   if test "$with_gnu_ld" = yes; then
18425     # If archive_cmds runs LD, not CC, wlarc should be empty
18426     wlarc='${wl}'
18427
18428     # Set some defaults for GNU ld with shared library support. These
18429     # are reset later if shared libraries are not supported. Putting them
18430     # here allows them to be overridden if necessary.
18431     runpath_var=LD_RUN_PATH
18432     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18433     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18434     # ancient GNU ld didn't support --whole-archive et. al.
18435     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18436         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18437       else
18438         whole_archive_flag_spec_GCJ=
18439     fi
18440     supports_anon_versioning=no
18441     case `$LD -v 2>/dev/null` in
18442       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18443       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18444       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18445       *\ 2.11.*) ;; # other 2.11 versions
18446       *) supports_anon_versioning=yes ;;
18447     esac
18448
18449     # See if GNU ld supports shared libraries.
18450     case $host_os in
18451     aix3* | aix4* | aix5*)
18452       # On AIX/PPC, the GNU linker is very broken
18453       if test "$host_cpu" != ia64; then
18454         ld_shlibs_GCJ=no
18455         cat <<EOF 1>&2
18456
18457 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18458 *** to be unable to reliably create shared libraries on AIX.
18459 *** Therefore, libtool is disabling shared libraries support.  If you
18460 *** really care for shared libraries, you may want to modify your PATH
18461 *** so that a non-GNU linker is found, and then restart.
18462
18463 EOF
18464       fi
18465       ;;
18466
18467     amigaos*)
18468       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)'
18469       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18470       hardcode_minus_L_GCJ=yes
18471
18472       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18473       # that the semantics of dynamic libraries on AmigaOS, at least up
18474       # to version 4, is to share data among multiple programs linked
18475       # with the same dynamic library.  Since this doesn't match the
18476       # behavior of shared libraries on other platforms, we can't use
18477       # them.
18478       ld_shlibs_GCJ=no
18479       ;;
18480
18481     beos*)
18482       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18483         allow_undefined_flag_GCJ=unsupported
18484         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18485         # support --undefined.  This deserves some investigation.  FIXME
18486         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18487       else
18488         ld_shlibs_GCJ=no
18489       fi
18490       ;;
18491
18492     cygwin* | mingw* | pw32*)
18493       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18494       # as there is no search path for DLLs.
18495       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18496       allow_undefined_flag_GCJ=unsupported
18497       always_export_symbols_GCJ=no
18498       enable_shared_with_static_runtimes_GCJ=yes
18499       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18500
18501       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18502         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18503         # If the export-symbols file already is a .def file (1st line
18504         # is EXPORTS), use it as is; otherwise, prepend...
18505         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18506           cp $export_symbols $output_objdir/$soname.def;
18507         else
18508           echo EXPORTS > $output_objdir/$soname.def;
18509           cat $export_symbols >> $output_objdir/$soname.def;
18510         fi~
18511         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
18512       else
18513         ld_shlibs_GCJ=no
18514       fi
18515       ;;
18516
18517     linux*)
18518       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18519         tmp_addflag=
18520         case $cc_basename,$host_cpu in
18521         pgcc*)                          # Portland Group C compiler
18522           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'
18523           tmp_addflag=' $pic_flag'
18524           ;;
18525         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
18526           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'
18527           tmp_addflag=' $pic_flag -Mnomain' ;;
18528         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18529           tmp_addflag=' -i_dynamic' ;;
18530         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18531           tmp_addflag=' -i_dynamic -nofor_main' ;;
18532         ifc* | ifort*)                  # Intel Fortran compiler
18533           tmp_addflag=' -nofor_main' ;;
18534         esac
18535         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18536
18537         if test $supports_anon_versioning = yes; then
18538           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18539   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18540   $echo "local: *; };" >> $output_objdir/$libname.ver~
18541           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18542         fi
18543       else
18544         ld_shlibs_GCJ=no
18545       fi
18546       ;;
18547
18548     netbsd*)
18549       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18550         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18551         wlarc=
18552       else
18553         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18554         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18555       fi
18556       ;;
18557
18558     solaris* | sysv5*)
18559       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18560         ld_shlibs_GCJ=no
18561         cat <<EOF 1>&2
18562
18563 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18564 *** create shared libraries on Solaris systems.  Therefore, libtool
18565 *** is disabling shared libraries support.  We urge you to upgrade GNU
18566 *** binutils to release 2.9.1 or newer.  Another option is to modify
18567 *** your PATH or compiler configuration so that the native linker is
18568 *** used, and then restart.
18569
18570 EOF
18571       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18572         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18573         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18574       else
18575         ld_shlibs_GCJ=no
18576       fi
18577       ;;
18578
18579     sunos4*)
18580       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18581       wlarc=
18582       hardcode_direct_GCJ=yes
18583       hardcode_shlibpath_var_GCJ=no
18584       ;;
18585
18586     *)
18587       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18588         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18589         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18590       else
18591         ld_shlibs_GCJ=no
18592       fi
18593       ;;
18594     esac
18595
18596     if test "$ld_shlibs_GCJ" = no; then
18597       runpath_var=
18598       hardcode_libdir_flag_spec_GCJ=
18599       export_dynamic_flag_spec_GCJ=
18600       whole_archive_flag_spec_GCJ=
18601     fi
18602   else
18603     # PORTME fill in a description of your system's linker (not GNU ld)
18604     case $host_os in
18605     aix3*)
18606       allow_undefined_flag_GCJ=unsupported
18607       always_export_symbols_GCJ=yes
18608       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'
18609       # Note: this linker hardcodes the directories in LIBPATH if there
18610       # are no directories specified by -L.
18611       hardcode_minus_L_GCJ=yes
18612       if test "$GCC" = yes && test -z "$link_static_flag"; then
18613         # Neither direct hardcoding nor static linking is supported with a
18614         # broken collect2.
18615         hardcode_direct_GCJ=unsupported
18616       fi
18617       ;;
18618
18619     aix4* | aix5*)
18620       if test "$host_cpu" = ia64; then
18621         # On IA64, the linker does run time linking by default, so we don't
18622         # have to do anything special.
18623         aix_use_runtimelinking=no
18624         exp_sym_flag='-Bexport'
18625         no_entry_flag=""
18626       else
18627         # If we're using GNU nm, then we don't want the "-C" option.
18628         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18629         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18630           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'
18631         else
18632           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'
18633         fi
18634         aix_use_runtimelinking=no
18635
18636         # Test if we are trying to use run time linking or normal
18637         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18638         # need to do runtime linking.
18639         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18640           for ld_flag in $LDFLAGS; do
18641           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18642             aix_use_runtimelinking=yes
18643             break
18644           fi
18645           done
18646         esac
18647
18648         exp_sym_flag='-bexport'
18649         no_entry_flag='-bnoentry'
18650       fi
18651
18652       # When large executables or shared objects are built, AIX ld can
18653       # have problems creating the table of contents.  If linking a library
18654       # or program results in "error TOC overflow" add -mminimal-toc to
18655       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18656       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18657
18658       archive_cmds_GCJ=''
18659       hardcode_direct_GCJ=yes
18660       hardcode_libdir_separator_GCJ=':'
18661       link_all_deplibs_GCJ=yes
18662
18663       if test "$GCC" = yes; then
18664         case $host_os in aix4.[012]|aix4.[012].*)
18665         # We only want to do this on AIX 4.2 and lower, the check
18666         # below for broken collect2 doesn't work under 4.3+
18667           collect2name=`${CC} -print-prog-name=collect2`
18668           if test -f "$collect2name" && \
18669            strings "$collect2name" | grep resolve_lib_name >/dev/null
18670           then
18671           # We have reworked collect2
18672           hardcode_direct_GCJ=yes
18673           else
18674           # We have old collect2
18675           hardcode_direct_GCJ=unsupported
18676           # It fails to find uninstalled libraries when the uninstalled
18677           # path is not listed in the libpath.  Setting hardcode_minus_L
18678           # to unsupported forces relinking
18679           hardcode_minus_L_GCJ=yes
18680           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18681           hardcode_libdir_separator_GCJ=
18682           fi
18683         esac
18684         shared_flag='-shared'
18685         if test "$aix_use_runtimelinking" = yes; then
18686           shared_flag="$shared_flag "'${wl}-G'
18687         fi
18688       else
18689         # not using gcc
18690         if test "$host_cpu" = ia64; then
18691         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18692         # chokes on -Wl,-G. The following line is correct:
18693           shared_flag='-G'
18694         else
18695         if test "$aix_use_runtimelinking" = yes; then
18696             shared_flag='${wl}-G'
18697           else
18698             shared_flag='${wl}-bM:SRE'
18699         fi
18700         fi
18701       fi
18702
18703       # It seems that -bexpall does not export symbols beginning with
18704       # underscore (_), so it is better to generate a list of symbols to export.
18705       always_export_symbols_GCJ=yes
18706       if test "$aix_use_runtimelinking" = yes; then
18707         # Warning - without using the other runtime loading flags (-brtl),
18708         # -berok will link without error, but may produce a broken library.
18709         allow_undefined_flag_GCJ='-berok'
18710        # Determine the default libpath from the value encoded in an empty executable.
18711        cat >conftest.$ac_ext <<_ACEOF
18712 /* confdefs.h.  */
18713 _ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h.  */
18717
18718 int
18719 main ()
18720 {
18721
18722   ;
18723   return 0;
18724 }
18725 _ACEOF
18726 rm -f conftest.$ac_objext conftest$ac_exeext
18727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18728   (eval $ac_link) 2>conftest.er1
18729   ac_status=$?
18730   grep -v '^ *+' conftest.er1 >conftest.err
18731   rm -f conftest.er1
18732   cat conftest.err >&5
18733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734   (exit $ac_status); } &&
18735          { ac_try='test -z "$ac_c_werror_flag"
18736                          || test ! -s conftest.err'
18737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738   (eval $ac_try) 2>&5
18739   ac_status=$?
18740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741   (exit $ac_status); }; } &&
18742          { ac_try='test -s conftest$ac_exeext'
18743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18744   (eval $ac_try) 2>&5
18745   ac_status=$?
18746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747   (exit $ac_status); }; }; then
18748
18749 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18750 }'`
18751 # Check for a 64-bit object if we didn't find anything.
18752 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; }
18753 }'`; fi
18754 else
18755   echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18757
18758 fi
18759 rm -f conftest.err conftest.$ac_objext \
18760       conftest$ac_exeext conftest.$ac_ext
18761 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18762
18763        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18764         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"
18765        else
18766         if test "$host_cpu" = ia64; then
18767           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18768           allow_undefined_flag_GCJ="-z nodefs"
18769           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"
18770         else
18771          # Determine the default libpath from the value encoded in an empty executable.
18772          cat >conftest.$ac_ext <<_ACEOF
18773 /* confdefs.h.  */
18774 _ACEOF
18775 cat confdefs.h >>conftest.$ac_ext
18776 cat >>conftest.$ac_ext <<_ACEOF
18777 /* end confdefs.h.  */
18778
18779 int
18780 main ()
18781 {
18782
18783   ;
18784   return 0;
18785 }
18786 _ACEOF
18787 rm -f conftest.$ac_objext conftest$ac_exeext
18788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18789   (eval $ac_link) 2>conftest.er1
18790   ac_status=$?
18791   grep -v '^ *+' conftest.er1 >conftest.err
18792   rm -f conftest.er1
18793   cat conftest.err >&5
18794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795   (exit $ac_status); } &&
18796          { ac_try='test -z "$ac_c_werror_flag"
18797                          || test ! -s conftest.err'
18798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799   (eval $ac_try) 2>&5
18800   ac_status=$?
18801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802   (exit $ac_status); }; } &&
18803          { ac_try='test -s conftest$ac_exeext'
18804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805   (eval $ac_try) 2>&5
18806   ac_status=$?
18807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808   (exit $ac_status); }; }; then
18809
18810 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18811 }'`
18812 # Check for a 64-bit object if we didn't find anything.
18813 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; }
18814 }'`; fi
18815 else
18816   echo "$as_me: failed program was:" >&5
18817 sed 's/^/| /' conftest.$ac_ext >&5
18818
18819 fi
18820 rm -f conftest.err conftest.$ac_objext \
18821       conftest$ac_exeext conftest.$ac_ext
18822 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18823
18824          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18825           # Warning - without using the other run time loading flags,
18826           # -berok will link without error, but may produce a broken library.
18827           no_undefined_flag_GCJ=' ${wl}-bernotok'
18828           allow_undefined_flag_GCJ=' ${wl}-berok'
18829           # -bexpall does not export symbols beginning with underscore (_)
18830           always_export_symbols_GCJ=yes
18831           # Exported symbols can be pulled into shared objects from archives
18832           whole_archive_flag_spec_GCJ=' '
18833           archive_cmds_need_lc_GCJ=yes
18834           # This is similar to how AIX traditionally builds it's shared libraries.
18835           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'
18836         fi
18837       fi
18838       ;;
18839
18840     amigaos*)
18841       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)'
18842       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18843       hardcode_minus_L_GCJ=yes
18844       # see comment about different semantics on the GNU ld section
18845       ld_shlibs_GCJ=no
18846       ;;
18847
18848     bsdi[45]*)
18849       export_dynamic_flag_spec_GCJ=-rdynamic
18850       ;;
18851
18852     cygwin* | mingw* | pw32*)
18853       # When not using gcc, we currently assume that we are using
18854       # Microsoft Visual C++.
18855       # hardcode_libdir_flag_spec is actually meaningless, as there is
18856       # no search path for DLLs.
18857       hardcode_libdir_flag_spec_GCJ=' '
18858       allow_undefined_flag_GCJ=unsupported
18859       # Tell ltmain to make .lib files, not .a files.
18860       libext=lib
18861       # Tell ltmain to make .dll files, not .so files.
18862       shrext_cmds=".dll"
18863       # FIXME: Setting linknames here is a bad hack.
18864       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18865       # The linker will automatically build a .lib file if we build a DLL.
18866       old_archive_From_new_cmds_GCJ='true'
18867       # FIXME: Should let the user specify the lib program.
18868       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18869       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18870       enable_shared_with_static_runtimes_GCJ=yes
18871       ;;
18872
18873     darwin* | rhapsody*)
18874       case "$host_os" in
18875         rhapsody* | darwin1.[012])
18876          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18877          ;;
18878        *) # Darwin 1.3 on
18879          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18880            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18881          else
18882            case ${MACOSX_DEPLOYMENT_TARGET} in
18883              10.[012])
18884                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18885                ;;
18886              10.*)
18887                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18888                ;;
18889            esac
18890          fi
18891          ;;
18892       esac
18893       archive_cmds_need_lc_GCJ=no
18894       hardcode_direct_GCJ=no
18895       hardcode_automatic_GCJ=yes
18896       hardcode_shlibpath_var_GCJ=unsupported
18897       whole_archive_flag_spec_GCJ=''
18898       link_all_deplibs_GCJ=yes
18899     if test "$GCC" = yes ; then
18900         output_verbose_link_cmd='echo'
18901         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18902       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18903       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18904       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}'
18905       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}'
18906     else
18907       case $cc_basename in
18908         xlc*)
18909          output_verbose_link_cmd='echo'
18910          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18911          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18912           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18913          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}'
18914           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}'
18915           ;;
18916        *)
18917          ld_shlibs_GCJ=no
18918           ;;
18919       esac
18920     fi
18921       ;;
18922
18923     dgux*)
18924       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18925       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18926       hardcode_shlibpath_var_GCJ=no
18927       ;;
18928
18929     freebsd1*)
18930       ld_shlibs_GCJ=no
18931       ;;
18932
18933     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18934     # support.  Future versions do this automatically, but an explicit c++rt0.o
18935     # does not break anything, and helps significantly (at the cost of a little
18936     # extra space).
18937     freebsd2.2*)
18938       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18939       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18940       hardcode_direct_GCJ=yes
18941       hardcode_shlibpath_var_GCJ=no
18942       ;;
18943
18944     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18945     freebsd2*)
18946       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18947       hardcode_direct_GCJ=yes
18948       hardcode_minus_L_GCJ=yes
18949       hardcode_shlibpath_var_GCJ=no
18950       ;;
18951
18952     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18953     freebsd* | kfreebsd*-gnu | dragonfly*)
18954       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18955       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18956       hardcode_direct_GCJ=yes
18957       hardcode_shlibpath_var_GCJ=no
18958       ;;
18959
18960     hpux9*)
18961       if test "$GCC" = yes; then
18962         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'
18963       else
18964         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'
18965       fi
18966       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18967       hardcode_libdir_separator_GCJ=:
18968       hardcode_direct_GCJ=yes
18969
18970       # hardcode_minus_L: Not really in the search PATH,
18971       # but as the default location of the library.
18972       hardcode_minus_L_GCJ=yes
18973       export_dynamic_flag_spec_GCJ='${wl}-E'
18974       ;;
18975
18976     hpux10* | hpux11*)
18977       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18978         case "$host_cpu" in
18979         hppa*64*|ia64*)
18980           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18981           ;;
18982         *)
18983           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18984           ;;
18985         esac
18986       else
18987         case "$host_cpu" in
18988         hppa*64*|ia64*)
18989           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18990           ;;
18991         *)
18992           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18993           ;;
18994         esac
18995       fi
18996       if test "$with_gnu_ld" = no; then
18997         case "$host_cpu" in
18998         hppa*64*)
18999           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19000           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19001           hardcode_libdir_separator_GCJ=:
19002           hardcode_direct_GCJ=no
19003           hardcode_shlibpath_var_GCJ=no
19004           ;;
19005         ia64*)
19006           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19007           hardcode_direct_GCJ=no
19008           hardcode_shlibpath_var_GCJ=no
19009
19010           # hardcode_minus_L: Not really in the search PATH,
19011           # but as the default location of the library.
19012           hardcode_minus_L_GCJ=yes
19013           ;;
19014         *)
19015           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19016           hardcode_libdir_separator_GCJ=:
19017           hardcode_direct_GCJ=yes
19018           export_dynamic_flag_spec_GCJ='${wl}-E'
19019
19020           # hardcode_minus_L: Not really in the search PATH,
19021           # but as the default location of the library.
19022           hardcode_minus_L_GCJ=yes
19023           ;;
19024         esac
19025       fi
19026       ;;
19027
19028     irix5* | irix6* | nonstopux*)
19029       if test "$GCC" = yes; then
19030         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'
19031       else
19032         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'
19033         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19034       fi
19035       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19036       hardcode_libdir_separator_GCJ=:
19037       link_all_deplibs_GCJ=yes
19038       ;;
19039
19040     netbsd*)
19041       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19042         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19043       else
19044         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19045       fi
19046       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19047       hardcode_direct_GCJ=yes
19048       hardcode_shlibpath_var_GCJ=no
19049       ;;
19050
19051     newsos6)
19052       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19053       hardcode_direct_GCJ=yes
19054       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19055       hardcode_libdir_separator_GCJ=:
19056       hardcode_shlibpath_var_GCJ=no
19057       ;;
19058
19059     openbsd*)
19060       hardcode_direct_GCJ=yes
19061       hardcode_shlibpath_var_GCJ=no
19062       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19063         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19064         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19065         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19066         export_dynamic_flag_spec_GCJ='${wl}-E'
19067       else
19068        case $host_os in
19069          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19070            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19071            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19072            ;;
19073          *)
19074            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19075            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19076            ;;
19077        esac
19078       fi
19079       ;;
19080
19081     os2*)
19082       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19083       hardcode_minus_L_GCJ=yes
19084       allow_undefined_flag_GCJ=unsupported
19085       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'
19086       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19087       ;;
19088
19089     osf3*)
19090       if test "$GCC" = yes; then
19091         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19092         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'
19093       else
19094         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19095         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'
19096       fi
19097       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19098       hardcode_libdir_separator_GCJ=:
19099       ;;
19100
19101     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19102       if test "$GCC" = yes; then
19103         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19104         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'
19105         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19106       else
19107         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19108         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'
19109         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~
19110         $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'
19111
19112         # Both c and cxx compiler support -rpath directly
19113         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19114       fi
19115       hardcode_libdir_separator_GCJ=:
19116       ;;
19117
19118     sco3.2v5*)
19119       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19120       hardcode_shlibpath_var_GCJ=no
19121       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19122       runpath_var=LD_RUN_PATH
19123       hardcode_runpath_var=yes
19124       ;;
19125
19126     solaris*)
19127       no_undefined_flag_GCJ=' -z text'
19128       if test "$GCC" = yes; then
19129         wlarc='${wl}'
19130         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19131         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19132           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19133       else
19134         wlarc=''
19135         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19136         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19137         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19138       fi
19139       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19140       hardcode_shlibpath_var_GCJ=no
19141       case $host_os in
19142       solaris2.[0-5] | solaris2.[0-5].*) ;;
19143       *)
19144         # The compiler driver will combine linker options so we
19145         # cannot just pass the convience library names through
19146         # without $wl, iff we do not link with $LD.
19147         # Luckily, gcc supports the same syntax we need for Sun Studio.
19148         # Supported since Solaris 2.6 (maybe 2.5.1?)
19149         case $wlarc in
19150         '')
19151           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19152         *)
19153           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' ;;
19154         esac ;;
19155       esac
19156       link_all_deplibs_GCJ=yes
19157       ;;
19158
19159     sunos4*)
19160       if test "x$host_vendor" = xsequent; then
19161         # Use $CC to link under sequent, because it throws in some extra .o
19162         # files that make .init and .fini sections work.
19163         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19164       else
19165         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19166       fi
19167       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19168       hardcode_direct_GCJ=yes
19169       hardcode_minus_L_GCJ=yes
19170       hardcode_shlibpath_var_GCJ=no
19171       ;;
19172
19173     sysv4)
19174       case $host_vendor in
19175         sni)
19176           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19177           hardcode_direct_GCJ=yes # is this really true???
19178         ;;
19179         siemens)
19180           ## LD is ld it makes a PLAMLIB
19181           ## CC just makes a GrossModule.
19182           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19183           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19184           hardcode_direct_GCJ=no
19185         ;;
19186         motorola)
19187           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19188           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19189         ;;
19190       esac
19191       runpath_var='LD_RUN_PATH'
19192       hardcode_shlibpath_var_GCJ=no
19193       ;;
19194
19195     sysv4.3*)
19196       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19197       hardcode_shlibpath_var_GCJ=no
19198       export_dynamic_flag_spec_GCJ='-Bexport'
19199       ;;
19200
19201     sysv4*MP*)
19202       if test -d /usr/nec; then
19203         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19204         hardcode_shlibpath_var_GCJ=no
19205         runpath_var=LD_RUN_PATH
19206         hardcode_runpath_var=yes
19207         ld_shlibs_GCJ=yes
19208       fi
19209       ;;
19210
19211     sysv4.2uw2*)
19212       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19213       hardcode_direct_GCJ=yes
19214       hardcode_minus_L_GCJ=no
19215       hardcode_shlibpath_var_GCJ=no
19216       hardcode_runpath_var=yes
19217       runpath_var=LD_RUN_PATH
19218       ;;
19219
19220    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19221       no_undefined_flag_GCJ='${wl}-z ${wl}text'
19222       if test "$GCC" = yes; then
19223         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19224       else
19225         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19226       fi
19227       runpath_var='LD_RUN_PATH'
19228       hardcode_shlibpath_var_GCJ=no
19229       ;;
19230
19231     sysv5*)
19232       no_undefined_flag_GCJ=' -z text'
19233       # $CC -shared without GNU ld will not create a library from C++
19234       # object files and a static libstdc++, better avoid it by now
19235       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19236       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19237                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19238       hardcode_libdir_flag_spec_GCJ=
19239       hardcode_shlibpath_var_GCJ=no
19240       runpath_var='LD_RUN_PATH'
19241       ;;
19242
19243     uts4*)
19244       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19245       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19246       hardcode_shlibpath_var_GCJ=no
19247       ;;
19248
19249     *)
19250       ld_shlibs_GCJ=no
19251       ;;
19252     esac
19253   fi
19254
19255 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19256 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19257 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19258
19259 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19260 if test "$GCC" = yes; then
19261   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19262 fi
19263
19264 #
19265 # Do we need to explicitly link libc?
19266 #
19267 case "x$archive_cmds_need_lc_GCJ" in
19268 x|xyes)
19269   # Assume -lc should be added
19270   archive_cmds_need_lc_GCJ=yes
19271
19272   if test "$enable_shared" = yes && test "$GCC" = yes; then
19273     case $archive_cmds_GCJ in
19274     *'~'*)
19275       # FIXME: we may have to deal with multi-command sequences.
19276       ;;
19277     '$CC '*)
19278       # Test whether the compiler implicitly links with -lc since on some
19279       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19280       # to ld, don't add -lc before -lgcc.
19281       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19282 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19283       $rm conftest*
19284       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19285
19286       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19287   (eval $ac_compile) 2>&5
19288   ac_status=$?
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); } 2>conftest.err; then
19291         soname=conftest
19292         lib=conftest
19293         libobjs=conftest.$ac_objext
19294         deplibs=
19295         wl=$lt_prog_compiler_wl_GCJ
19296         compiler_flags=-v
19297         linker_flags=-v
19298         verstring=
19299         output_objdir=.
19300         libname=conftest
19301         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19302         allow_undefined_flag_GCJ=
19303         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19304   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19305   ac_status=$?
19306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307   (exit $ac_status); }
19308         then
19309           archive_cmds_need_lc_GCJ=no
19310         else
19311           archive_cmds_need_lc_GCJ=yes
19312         fi
19313         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19314       else
19315         cat conftest.err 1>&5
19316       fi
19317       $rm conftest*
19318       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19319 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19320       ;;
19321     esac
19322   fi
19323   ;;
19324 esac
19325
19326 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19327 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19328 library_names_spec=
19329 libname_spec='lib$name'
19330 soname_spec=
19331 shrext_cmds=".so"
19332 postinstall_cmds=
19333 postuninstall_cmds=
19334 finish_cmds=
19335 finish_eval=
19336 shlibpath_var=
19337 shlibpath_overrides_runpath=unknown
19338 version_type=none
19339 dynamic_linker="$host_os ld.so"
19340 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19341 if test "$GCC" = yes; then
19342   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19343   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19344     # if the path contains ";" then we assume it to be the separator
19345     # otherwise default to the standard path separator (i.e. ":") - it is
19346     # assumed that no part of a normal pathname contains ";" but that should
19347     # okay in the real world where ";" in dirpaths is itself problematic.
19348     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19349   else
19350     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19351   fi
19352 else
19353   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19354 fi
19355 need_lib_prefix=unknown
19356 hardcode_into_libs=no
19357
19358 # when you set need_version to no, make sure it does not cause -set_version
19359 # flags to be left without arguments
19360 need_version=unknown
19361
19362 case $host_os in
19363 aix3*)
19364   version_type=linux
19365   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19366   shlibpath_var=LIBPATH
19367
19368   # AIX 3 has no versioning support, so we append a major version to the name.
19369   soname_spec='${libname}${release}${shared_ext}$major'
19370   ;;
19371
19372 aix4* | aix5*)
19373   version_type=linux
19374   need_lib_prefix=no
19375   need_version=no
19376   hardcode_into_libs=yes
19377   if test "$host_cpu" = ia64; then
19378     # AIX 5 supports IA64
19379     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19380     shlibpath_var=LD_LIBRARY_PATH
19381   else
19382     # With GCC up to 2.95.x, collect2 would create an import file
19383     # for dependence libraries.  The import file would start with
19384     # the line `#! .'.  This would cause the generated library to
19385     # depend on `.', always an invalid library.  This was fixed in
19386     # development snapshots of GCC prior to 3.0.
19387     case $host_os in
19388       aix4 | aix4.[01] | aix4.[01].*)
19389       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19390            echo ' yes '
19391            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19392         :
19393       else
19394         can_build_shared=no
19395       fi
19396       ;;
19397     esac
19398     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19399     # soname into executable. Probably we can add versioning support to
19400     # collect2, so additional links can be useful in future.
19401     if test "$aix_use_runtimelinking" = yes; then
19402       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19403       # instead of lib<name>.a to let people know that these are not
19404       # typical AIX shared libraries.
19405       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19406     else
19407       # We preserve .a as extension for shared libraries through AIX4.2
19408       # and later when we are not doing run time linking.
19409       library_names_spec='${libname}${release}.a $libname.a'
19410       soname_spec='${libname}${release}${shared_ext}$major'
19411     fi
19412     shlibpath_var=LIBPATH
19413   fi
19414   ;;
19415
19416 amigaos*)
19417   library_names_spec='$libname.ixlibrary $libname.a'
19418   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19419   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'
19420   ;;
19421
19422 beos*)
19423   library_names_spec='${libname}${shared_ext}'
19424   dynamic_linker="$host_os ld.so"
19425   shlibpath_var=LIBRARY_PATH
19426   ;;
19427
19428 bsdi[45]*)
19429   version_type=linux
19430   need_version=no
19431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19432   soname_spec='${libname}${release}${shared_ext}$major'
19433   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19434   shlibpath_var=LD_LIBRARY_PATH
19435   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19436   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19437   # the default ld.so.conf also contains /usr/contrib/lib and
19438   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19439   # libtool to hard-code these into programs
19440   ;;
19441
19442 cygwin* | mingw* | pw32*)
19443   version_type=windows
19444   shrext_cmds=".dll"
19445   need_version=no
19446   need_lib_prefix=no
19447
19448   case $GCC,$host_os in
19449   yes,cygwin* | yes,mingw* | yes,pw32*)
19450     library_names_spec='$libname.dll.a'
19451     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19452     postinstall_cmds='base_file=`basename \${file}`~
19453       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19454       dldir=$destdir/`dirname \$dlpath`~
19455       test -d \$dldir || mkdir -p \$dldir~
19456       $install_prog $dir/$dlname \$dldir/$dlname'
19457     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19458       dlpath=$dir/\$dldll~
19459        $rm \$dlpath'
19460     shlibpath_overrides_runpath=yes
19461
19462     case $host_os in
19463     cygwin*)
19464       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19465       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19466       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19467       ;;
19468     mingw*)
19469       # MinGW DLLs use traditional 'lib' prefix
19470       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19471       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19472       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19473         # It is most probably a Windows format PATH printed by
19474         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19475         # path with ; separators, and with drive letters. We can handle the
19476         # drive letters (cygwin fileutils understands them), so leave them,
19477         # especially as we might pass files found there to a mingw objdump,
19478         # which wouldn't understand a cygwinified path. Ahh.
19479         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19480       else
19481         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19482       fi
19483       ;;
19484     pw32*)
19485       # pw32 DLLs use 'pw' prefix rather than 'lib'
19486       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19487       ;;
19488     esac
19489     ;;
19490
19491   *)
19492     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19493     ;;
19494   esac
19495   dynamic_linker='Win32 ld.exe'
19496   # FIXME: first we should search . and the directory the executable is in
19497   shlibpath_var=PATH
19498   ;;
19499
19500 darwin* | rhapsody*)
19501   dynamic_linker="$host_os dyld"
19502   version_type=darwin
19503   need_lib_prefix=no
19504   need_version=no
19505   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19506   soname_spec='${libname}${release}${major}$shared_ext'
19507   shlibpath_overrides_runpath=yes
19508   shlibpath_var=DYLD_LIBRARY_PATH
19509   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19510   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19511   if test "$GCC" = yes; then
19512     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"`
19513   else
19514     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19515   fi
19516   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19517   ;;
19518
19519 dgux*)
19520   version_type=linux
19521   need_lib_prefix=no
19522   need_version=no
19523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19524   soname_spec='${libname}${release}${shared_ext}$major'
19525   shlibpath_var=LD_LIBRARY_PATH
19526   ;;
19527
19528 freebsd1*)
19529   dynamic_linker=no
19530   ;;
19531
19532 kfreebsd*-gnu)
19533   version_type=linux
19534   need_lib_prefix=no
19535   need_version=no
19536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19537   soname_spec='${libname}${release}${shared_ext}$major'
19538   shlibpath_var=LD_LIBRARY_PATH
19539   shlibpath_overrides_runpath=no
19540   hardcode_into_libs=yes
19541   dynamic_linker='GNU ld.so'
19542   ;;
19543
19544 freebsd* | dragonfly*)
19545   # DragonFly does not have aout.  When/if they implement a new
19546   # versioning mechanism, adjust this.
19547   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19548   version_type=freebsd-$objformat
19549   case $version_type in
19550     freebsd-elf*)
19551       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19552       need_version=no
19553       need_lib_prefix=no
19554       ;;
19555     freebsd-*)
19556       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19557       need_version=yes
19558       ;;
19559   esac
19560   shlibpath_var=LD_LIBRARY_PATH
19561   case $host_os in
19562   freebsd2*)
19563     shlibpath_overrides_runpath=yes
19564     ;;
19565   freebsd3.[01]* | freebsdelf3.[01]*)
19566     shlibpath_overrides_runpath=yes
19567     hardcode_into_libs=yes
19568     ;;
19569   *) # from 3.2 on
19570     shlibpath_overrides_runpath=no
19571     hardcode_into_libs=yes
19572     ;;
19573   esac
19574   ;;
19575
19576 gnu*)
19577   version_type=linux
19578   need_lib_prefix=no
19579   need_version=no
19580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19581   soname_spec='${libname}${release}${shared_ext}$major'
19582   shlibpath_var=LD_LIBRARY_PATH
19583   hardcode_into_libs=yes
19584   ;;
19585
19586 hpux9* | hpux10* | hpux11*)
19587   # Give a soname corresponding to the major version so that dld.sl refuses to
19588   # link against other versions.
19589   version_type=sunos
19590   need_lib_prefix=no
19591   need_version=no
19592   case "$host_cpu" in
19593   ia64*)
19594     shrext_cmds='.so'
19595     hardcode_into_libs=yes
19596     dynamic_linker="$host_os dld.so"
19597     shlibpath_var=LD_LIBRARY_PATH
19598     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19599     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19600     soname_spec='${libname}${release}${shared_ext}$major'
19601     if test "X$HPUX_IA64_MODE" = X32; then
19602       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19603     else
19604       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19605     fi
19606     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19607     ;;
19608    hppa*64*)
19609      shrext_cmds='.sl'
19610      hardcode_into_libs=yes
19611      dynamic_linker="$host_os dld.sl"
19612      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19613      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19614      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19615      soname_spec='${libname}${release}${shared_ext}$major'
19616      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19617      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19618      ;;
19619    *)
19620     shrext_cmds='.sl'
19621     dynamic_linker="$host_os dld.sl"
19622     shlibpath_var=SHLIB_PATH
19623     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19624     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19625     soname_spec='${libname}${release}${shared_ext}$major'
19626     ;;
19627   esac
19628   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19629   postinstall_cmds='chmod 555 $lib'
19630   ;;
19631
19632 irix5* | irix6* | nonstopux*)
19633   case $host_os in
19634     nonstopux*) version_type=nonstopux ;;
19635     *)
19636         if test "$lt_cv_prog_gnu_ld" = yes; then
19637                 version_type=linux
19638         else
19639                 version_type=irix
19640         fi ;;
19641   esac
19642   need_lib_prefix=no
19643   need_version=no
19644   soname_spec='${libname}${release}${shared_ext}$major'
19645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19646   case $host_os in
19647   irix5* | nonstopux*)
19648     libsuff= shlibsuff=
19649     ;;
19650   *)
19651     case $LD in # libtool.m4 will add one of these switches to LD
19652     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19653       libsuff= shlibsuff= libmagic=32-bit;;
19654     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19655       libsuff=32 shlibsuff=N32 libmagic=N32;;
19656     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19657       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19658     *) libsuff= shlibsuff= libmagic=never-match;;
19659     esac
19660     ;;
19661   esac
19662   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19663   shlibpath_overrides_runpath=no
19664   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19665   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19666   hardcode_into_libs=yes
19667   ;;
19668
19669 # No shared lib support for Linux oldld, aout, or coff.
19670 linux*oldld* | linux*aout* | linux*coff*)
19671   dynamic_linker=no
19672   ;;
19673
19674 # This must be Linux ELF.
19675 linux*)
19676   version_type=linux
19677   need_lib_prefix=no
19678   need_version=no
19679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19680   soname_spec='${libname}${release}${shared_ext}$major'
19681   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19682   shlibpath_var=LD_LIBRARY_PATH
19683   shlibpath_overrides_runpath=no
19684   # This implies no fast_install, which is unacceptable.
19685   # Some rework will be needed to allow for fast_install
19686   # before this can be enabled.
19687   hardcode_into_libs=yes
19688
19689   # Append ld.so.conf contents to the search path
19690   if test -f /etc/ld.so.conf; then
19691     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' ' '`
19692     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19693   fi
19694
19695   # We used to test for /lib/ld.so.1 and disable shared libraries on
19696   # powerpc, because MkLinux only supported shared libraries with the
19697   # GNU dynamic linker.  Since this was broken with cross compilers,
19698   # most powerpc-linux boxes support dynamic linking these days and
19699   # people can always --disable-shared, the test was removed, and we
19700   # assume the GNU/Linux dynamic linker is in use.
19701   dynamic_linker='GNU/Linux ld.so'
19702   ;;
19703
19704 knetbsd*-gnu)
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   shlibpath_var=LD_LIBRARY_PATH
19711   shlibpath_overrides_runpath=no
19712   hardcode_into_libs=yes
19713   dynamic_linker='GNU ld.so'
19714   ;;
19715
19716 netbsd*)
19717   version_type=sunos
19718   need_lib_prefix=no
19719   need_version=no
19720   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19721     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19722     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19723     dynamic_linker='NetBSD (a.out) ld.so'
19724   else
19725     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19726     soname_spec='${libname}${release}${shared_ext}$major'
19727     dynamic_linker='NetBSD ld.elf_so'
19728   fi
19729   shlibpath_var=LD_LIBRARY_PATH
19730   shlibpath_overrides_runpath=yes
19731   hardcode_into_libs=yes
19732   ;;
19733
19734 newsos6)
19735   version_type=linux
19736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19737   shlibpath_var=LD_LIBRARY_PATH
19738   shlibpath_overrides_runpath=yes
19739   ;;
19740
19741 nto-qnx*)
19742   version_type=linux
19743   need_lib_prefix=no
19744   need_version=no
19745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19746   soname_spec='${libname}${release}${shared_ext}$major'
19747   shlibpath_var=LD_LIBRARY_PATH
19748   shlibpath_overrides_runpath=yes
19749   ;;
19750
19751 openbsd*)
19752   version_type=sunos
19753   need_lib_prefix=no
19754   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19755   case $host_os in
19756     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19757     *)                         need_version=no  ;;
19758   esac
19759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19760   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19761   shlibpath_var=LD_LIBRARY_PATH
19762   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19763     case $host_os in
19764       openbsd2.[89] | openbsd2.[89].*)
19765         shlibpath_overrides_runpath=no
19766         ;;
19767       *)
19768         shlibpath_overrides_runpath=yes
19769         ;;
19770       esac
19771   else
19772     shlibpath_overrides_runpath=yes
19773   fi
19774   ;;
19775
19776 os2*)
19777   libname_spec='$name'
19778   shrext_cmds=".dll"
19779   need_lib_prefix=no
19780   library_names_spec='$libname${shared_ext} $libname.a'
19781   dynamic_linker='OS/2 ld.exe'
19782   shlibpath_var=LIBPATH
19783   ;;
19784
19785 osf3* | osf4* | osf5*)
19786   version_type=osf
19787   need_lib_prefix=no
19788   need_version=no
19789   soname_spec='${libname}${release}${shared_ext}$major'
19790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19791   shlibpath_var=LD_LIBRARY_PATH
19792   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19793   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19794   ;;
19795
19796 sco3.2v5*)
19797   version_type=osf
19798   soname_spec='${libname}${release}${shared_ext}$major'
19799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19800   shlibpath_var=LD_LIBRARY_PATH
19801   ;;
19802
19803 solaris*)
19804   version_type=linux
19805   need_lib_prefix=no
19806   need_version=no
19807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19808   soname_spec='${libname}${release}${shared_ext}$major'
19809   shlibpath_var=LD_LIBRARY_PATH
19810   shlibpath_overrides_runpath=yes
19811   hardcode_into_libs=yes
19812   # ldd complains unless libraries are executable
19813   postinstall_cmds='chmod +x $lib'
19814   ;;
19815
19816 sunos4*)
19817   version_type=sunos
19818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19819   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19820   shlibpath_var=LD_LIBRARY_PATH
19821   shlibpath_overrides_runpath=yes
19822   if test "$with_gnu_ld" = yes; then
19823     need_lib_prefix=no
19824   fi
19825   need_version=yes
19826   ;;
19827
19828 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19829   version_type=linux
19830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19831   soname_spec='${libname}${release}${shared_ext}$major'
19832   shlibpath_var=LD_LIBRARY_PATH
19833   case $host_vendor in
19834     sni)
19835       shlibpath_overrides_runpath=no
19836       need_lib_prefix=no
19837       export_dynamic_flag_spec='${wl}-Blargedynsym'
19838       runpath_var=LD_RUN_PATH
19839       ;;
19840     siemens)
19841       need_lib_prefix=no
19842       ;;
19843     motorola)
19844       need_lib_prefix=no
19845       need_version=no
19846       shlibpath_overrides_runpath=no
19847       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19848       ;;
19849   esac
19850   ;;
19851
19852 sysv4*MP*)
19853   if test -d /usr/nec ;then
19854     version_type=linux
19855     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19856     soname_spec='$libname${shared_ext}.$major'
19857     shlibpath_var=LD_LIBRARY_PATH
19858   fi
19859   ;;
19860
19861 uts4*)
19862   version_type=linux
19863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19864   soname_spec='${libname}${release}${shared_ext}$major'
19865   shlibpath_var=LD_LIBRARY_PATH
19866   ;;
19867
19868 *)
19869   dynamic_linker=no
19870   ;;
19871 esac
19872 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19873 echo "${ECHO_T}$dynamic_linker" >&6
19874 test "$dynamic_linker" = no && can_build_shared=no
19875
19876 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19877 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19878 hardcode_action_GCJ=
19879 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19880    test -n "$runpath_var_GCJ" || \
19881    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19882
19883   # We can hardcode non-existant directories.
19884   if test "$hardcode_direct_GCJ" != no &&
19885      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19886      # have to relink, otherwise we might link with an installed library
19887      # when we should be linking with a yet-to-be-installed one
19888      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19889      test "$hardcode_minus_L_GCJ" != no; then
19890     # Linking always hardcodes the temporary library directory.
19891     hardcode_action_GCJ=relink
19892   else
19893     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19894     hardcode_action_GCJ=immediate
19895   fi
19896 else
19897   # We cannot hardcode anything, or else we can only hardcode existing
19898   # directories.
19899   hardcode_action_GCJ=unsupported
19900 fi
19901 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19902 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19903
19904 if test "$hardcode_action_GCJ" = relink; then
19905   # Fast installation is not supported
19906   enable_fast_install=no
19907 elif test "$shlibpath_overrides_runpath" = yes ||
19908      test "$enable_shared" = no; then
19909   # Fast installation is not necessary
19910   enable_fast_install=needless
19911 fi
19912
19913 striplib=
19914 old_striplib=
19915 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19916 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19917 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19918   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19919   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19920   echo "$as_me:$LINENO: result: yes" >&5
19921 echo "${ECHO_T}yes" >&6
19922 else
19923 # FIXME - insert some real tests, host_os isn't really good enough
19924   case $host_os in
19925    darwin*)
19926        if test -n "$STRIP" ; then
19927          striplib="$STRIP -x"
19928          echo "$as_me:$LINENO: result: yes" >&5
19929 echo "${ECHO_T}yes" >&6
19930        else
19931   echo "$as_me:$LINENO: result: no" >&5
19932 echo "${ECHO_T}no" >&6
19933 fi
19934        ;;
19935    *)
19936   echo "$as_me:$LINENO: result: no" >&5
19937 echo "${ECHO_T}no" >&6
19938     ;;
19939   esac
19940 fi
19941
19942 if test "x$enable_dlopen" != xyes; then
19943   enable_dlopen=unknown
19944   enable_dlopen_self=unknown
19945   enable_dlopen_self_static=unknown
19946 else
19947   lt_cv_dlopen=no
19948   lt_cv_dlopen_libs=
19949
19950   case $host_os in
19951   beos*)
19952     lt_cv_dlopen="load_add_on"
19953     lt_cv_dlopen_libs=
19954     lt_cv_dlopen_self=yes
19955     ;;
19956
19957   mingw* | pw32*)
19958     lt_cv_dlopen="LoadLibrary"
19959     lt_cv_dlopen_libs=
19960    ;;
19961
19962   cygwin*)
19963     lt_cv_dlopen="dlopen"
19964     lt_cv_dlopen_libs=
19965    ;;
19966
19967   darwin*)
19968   # if libdl is installed we need to link against it
19969     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19970 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19971 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19972   echo $ECHO_N "(cached) $ECHO_C" >&6
19973 else
19974   ac_check_lib_save_LIBS=$LIBS
19975 LIBS="-ldl  $LIBS"
19976 cat >conftest.$ac_ext <<_ACEOF
19977 /* confdefs.h.  */
19978 _ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h.  */
19982
19983 /* Override any gcc2 internal prototype to avoid an error.  */
19984 #ifdef __cplusplus
19985 extern "C"
19986 #endif
19987 /* We use char because int might match the return type of a gcc2
19988    builtin and then its argument prototype would still apply.  */
19989 char dlopen ();
19990 int
19991 main ()
19992 {
19993 dlopen ();
19994   ;
19995   return 0;
19996 }
19997 _ACEOF
19998 rm -f conftest.$ac_objext conftest$ac_exeext
19999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20000   (eval $ac_link) 2>conftest.er1
20001   ac_status=$?
20002   grep -v '^ *+' conftest.er1 >conftest.err
20003   rm -f conftest.er1
20004   cat conftest.err >&5
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); } &&
20007          { ac_try='test -z "$ac_c_werror_flag"
20008                          || test ! -s conftest.err'
20009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010   (eval $ac_try) 2>&5
20011   ac_status=$?
20012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013   (exit $ac_status); }; } &&
20014          { ac_try='test -s conftest$ac_exeext'
20015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016   (eval $ac_try) 2>&5
20017   ac_status=$?
20018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019   (exit $ac_status); }; }; then
20020   ac_cv_lib_dl_dlopen=yes
20021 else
20022   echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20024
20025 ac_cv_lib_dl_dlopen=no
20026 fi
20027 rm -f conftest.err conftest.$ac_objext \
20028       conftest$ac_exeext conftest.$ac_ext
20029 LIBS=$ac_check_lib_save_LIBS
20030 fi
20031 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20032 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20033 if test $ac_cv_lib_dl_dlopen = yes; then
20034   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20035 else
20036
20037     lt_cv_dlopen="dyld"
20038     lt_cv_dlopen_libs=
20039     lt_cv_dlopen_self=yes
20040
20041 fi
20042
20043    ;;
20044
20045   *)
20046     echo "$as_me:$LINENO: checking for shl_load" >&5
20047 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20048 if test "${ac_cv_func_shl_load+set}" = set; then
20049   echo $ECHO_N "(cached) $ECHO_C" >&6
20050 else
20051   cat >conftest.$ac_ext <<_ACEOF
20052 /* confdefs.h.  */
20053 _ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h.  */
20057 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20059 #define shl_load innocuous_shl_load
20060
20061 /* System header to define __stub macros and hopefully few prototypes,
20062     which can conflict with char shl_load (); below.
20063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20064     <limits.h> exists even on freestanding compilers.  */
20065
20066 #ifdef __STDC__
20067 # include <limits.h>
20068 #else
20069 # include <assert.h>
20070 #endif
20071
20072 #undef shl_load
20073
20074 /* Override any gcc2 internal prototype to avoid an error.  */
20075 #ifdef __cplusplus
20076 extern "C"
20077 {
20078 #endif
20079 /* We use char because int might match the return type of a gcc2
20080    builtin and then its argument prototype would still apply.  */
20081 char shl_load ();
20082 /* The GNU C library defines this for functions which it implements
20083     to always fail with ENOSYS.  Some functions are actually named
20084     something starting with __ and the normal name is an alias.  */
20085 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20086 choke me
20087 #else
20088 char (*f) () = shl_load;
20089 #endif
20090 #ifdef __cplusplus
20091 }
20092 #endif
20093
20094 int
20095 main ()
20096 {
20097 return f != shl_load;
20098   ;
20099   return 0;
20100 }
20101 _ACEOF
20102 rm -f conftest.$ac_objext conftest$ac_exeext
20103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20104   (eval $ac_link) 2>conftest.er1
20105   ac_status=$?
20106   grep -v '^ *+' conftest.er1 >conftest.err
20107   rm -f conftest.er1
20108   cat conftest.err >&5
20109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); } &&
20111          { ac_try='test -z "$ac_c_werror_flag"
20112                          || test ! -s conftest.err'
20113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114   (eval $ac_try) 2>&5
20115   ac_status=$?
20116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117   (exit $ac_status); }; } &&
20118          { ac_try='test -s conftest$ac_exeext'
20119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120   (eval $ac_try) 2>&5
20121   ac_status=$?
20122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123   (exit $ac_status); }; }; then
20124   ac_cv_func_shl_load=yes
20125 else
20126   echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20128
20129 ac_cv_func_shl_load=no
20130 fi
20131 rm -f conftest.err conftest.$ac_objext \
20132       conftest$ac_exeext conftest.$ac_ext
20133 fi
20134 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20135 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20136 if test $ac_cv_func_shl_load = yes; then
20137   lt_cv_dlopen="shl_load"
20138 else
20139   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20140 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20141 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20142   echo $ECHO_N "(cached) $ECHO_C" >&6
20143 else
20144   ac_check_lib_save_LIBS=$LIBS
20145 LIBS="-ldld  $LIBS"
20146 cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h.  */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h.  */
20152
20153 /* Override any gcc2 internal prototype to avoid an error.  */
20154 #ifdef __cplusplus
20155 extern "C"
20156 #endif
20157 /* We use char because int might match the return type of a gcc2
20158    builtin and then its argument prototype would still apply.  */
20159 char shl_load ();
20160 int
20161 main ()
20162 {
20163 shl_load ();
20164   ;
20165   return 0;
20166 }
20167 _ACEOF
20168 rm -f conftest.$ac_objext conftest$ac_exeext
20169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20170   (eval $ac_link) 2>conftest.er1
20171   ac_status=$?
20172   grep -v '^ *+' conftest.er1 >conftest.err
20173   rm -f conftest.er1
20174   cat conftest.err >&5
20175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176   (exit $ac_status); } &&
20177          { ac_try='test -z "$ac_c_werror_flag"
20178                          || test ! -s conftest.err'
20179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180   (eval $ac_try) 2>&5
20181   ac_status=$?
20182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183   (exit $ac_status); }; } &&
20184          { ac_try='test -s conftest$ac_exeext'
20185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186   (eval $ac_try) 2>&5
20187   ac_status=$?
20188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189   (exit $ac_status); }; }; then
20190   ac_cv_lib_dld_shl_load=yes
20191 else
20192   echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20194
20195 ac_cv_lib_dld_shl_load=no
20196 fi
20197 rm -f conftest.err conftest.$ac_objext \
20198       conftest$ac_exeext conftest.$ac_ext
20199 LIBS=$ac_check_lib_save_LIBS
20200 fi
20201 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20202 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20203 if test $ac_cv_lib_dld_shl_load = yes; then
20204   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20205 else
20206   echo "$as_me:$LINENO: checking for dlopen" >&5
20207 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20208 if test "${ac_cv_func_dlopen+set}" = set; then
20209   echo $ECHO_N "(cached) $ECHO_C" >&6
20210 else
20211   cat >conftest.$ac_ext <<_ACEOF
20212 /* confdefs.h.  */
20213 _ACEOF
20214 cat confdefs.h >>conftest.$ac_ext
20215 cat >>conftest.$ac_ext <<_ACEOF
20216 /* end confdefs.h.  */
20217 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20218    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20219 #define dlopen innocuous_dlopen
20220
20221 /* System header to define __stub macros and hopefully few prototypes,
20222     which can conflict with char dlopen (); below.
20223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20224     <limits.h> exists even on freestanding compilers.  */
20225
20226 #ifdef __STDC__
20227 # include <limits.h>
20228 #else
20229 # include <assert.h>
20230 #endif
20231
20232 #undef dlopen
20233
20234 /* Override any gcc2 internal prototype to avoid an error.  */
20235 #ifdef __cplusplus
20236 extern "C"
20237 {
20238 #endif
20239 /* We use char because int might match the return type of a gcc2
20240    builtin and then its argument prototype would still apply.  */
20241 char dlopen ();
20242 /* The GNU C library defines this for functions which it implements
20243     to always fail with ENOSYS.  Some functions are actually named
20244     something starting with __ and the normal name is an alias.  */
20245 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20246 choke me
20247 #else
20248 char (*f) () = dlopen;
20249 #endif
20250 #ifdef __cplusplus
20251 }
20252 #endif
20253
20254 int
20255 main ()
20256 {
20257 return f != dlopen;
20258   ;
20259   return 0;
20260 }
20261 _ACEOF
20262 rm -f conftest.$ac_objext conftest$ac_exeext
20263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20264   (eval $ac_link) 2>conftest.er1
20265   ac_status=$?
20266   grep -v '^ *+' conftest.er1 >conftest.err
20267   rm -f conftest.er1
20268   cat conftest.err >&5
20269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270   (exit $ac_status); } &&
20271          { ac_try='test -z "$ac_c_werror_flag"
20272                          || test ! -s conftest.err'
20273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274   (eval $ac_try) 2>&5
20275   ac_status=$?
20276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277   (exit $ac_status); }; } &&
20278          { ac_try='test -s conftest$ac_exeext'
20279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280   (eval $ac_try) 2>&5
20281   ac_status=$?
20282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283   (exit $ac_status); }; }; then
20284   ac_cv_func_dlopen=yes
20285 else
20286   echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20288
20289 ac_cv_func_dlopen=no
20290 fi
20291 rm -f conftest.err conftest.$ac_objext \
20292       conftest$ac_exeext conftest.$ac_ext
20293 fi
20294 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20295 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20296 if test $ac_cv_func_dlopen = yes; then
20297   lt_cv_dlopen="dlopen"
20298 else
20299   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20300 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20301 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20302   echo $ECHO_N "(cached) $ECHO_C" >&6
20303 else
20304   ac_check_lib_save_LIBS=$LIBS
20305 LIBS="-ldl  $LIBS"
20306 cat >conftest.$ac_ext <<_ACEOF
20307 /* confdefs.h.  */
20308 _ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h.  */
20312
20313 /* Override any gcc2 internal prototype to avoid an error.  */
20314 #ifdef __cplusplus
20315 extern "C"
20316 #endif
20317 /* We use char because int might match the return type of a gcc2
20318    builtin and then its argument prototype would still apply.  */
20319 char dlopen ();
20320 int
20321 main ()
20322 {
20323 dlopen ();
20324   ;
20325   return 0;
20326 }
20327 _ACEOF
20328 rm -f conftest.$ac_objext conftest$ac_exeext
20329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20330   (eval $ac_link) 2>conftest.er1
20331   ac_status=$?
20332   grep -v '^ *+' conftest.er1 >conftest.err
20333   rm -f conftest.er1
20334   cat conftest.err >&5
20335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336   (exit $ac_status); } &&
20337          { ac_try='test -z "$ac_c_werror_flag"
20338                          || test ! -s conftest.err'
20339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340   (eval $ac_try) 2>&5
20341   ac_status=$?
20342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343   (exit $ac_status); }; } &&
20344          { ac_try='test -s conftest$ac_exeext'
20345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346   (eval $ac_try) 2>&5
20347   ac_status=$?
20348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349   (exit $ac_status); }; }; then
20350   ac_cv_lib_dl_dlopen=yes
20351 else
20352   echo "$as_me: failed program was:" >&5
20353 sed 's/^/| /' conftest.$ac_ext >&5
20354
20355 ac_cv_lib_dl_dlopen=no
20356 fi
20357 rm -f conftest.err conftest.$ac_objext \
20358       conftest$ac_exeext conftest.$ac_ext
20359 LIBS=$ac_check_lib_save_LIBS
20360 fi
20361 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20362 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20363 if test $ac_cv_lib_dl_dlopen = yes; then
20364   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20365 else
20366   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20367 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20368 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20369   echo $ECHO_N "(cached) $ECHO_C" >&6
20370 else
20371   ac_check_lib_save_LIBS=$LIBS
20372 LIBS="-lsvld  $LIBS"
20373 cat >conftest.$ac_ext <<_ACEOF
20374 /* confdefs.h.  */
20375 _ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h.  */
20379
20380 /* Override any gcc2 internal prototype to avoid an error.  */
20381 #ifdef __cplusplus
20382 extern "C"
20383 #endif
20384 /* We use char because int might match the return type of a gcc2
20385    builtin and then its argument prototype would still apply.  */
20386 char dlopen ();
20387 int
20388 main ()
20389 {
20390 dlopen ();
20391   ;
20392   return 0;
20393 }
20394 _ACEOF
20395 rm -f conftest.$ac_objext conftest$ac_exeext
20396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20397   (eval $ac_link) 2>conftest.er1
20398   ac_status=$?
20399   grep -v '^ *+' conftest.er1 >conftest.err
20400   rm -f conftest.er1
20401   cat conftest.err >&5
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); } &&
20404          { ac_try='test -z "$ac_c_werror_flag"
20405                          || test ! -s conftest.err'
20406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407   (eval $ac_try) 2>&5
20408   ac_status=$?
20409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410   (exit $ac_status); }; } &&
20411          { ac_try='test -s conftest$ac_exeext'
20412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413   (eval $ac_try) 2>&5
20414   ac_status=$?
20415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416   (exit $ac_status); }; }; then
20417   ac_cv_lib_svld_dlopen=yes
20418 else
20419   echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20421
20422 ac_cv_lib_svld_dlopen=no
20423 fi
20424 rm -f conftest.err conftest.$ac_objext \
20425       conftest$ac_exeext conftest.$ac_ext
20426 LIBS=$ac_check_lib_save_LIBS
20427 fi
20428 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20429 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20430 if test $ac_cv_lib_svld_dlopen = yes; then
20431   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20432 else
20433   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20434 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20435 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20436   echo $ECHO_N "(cached) $ECHO_C" >&6
20437 else
20438   ac_check_lib_save_LIBS=$LIBS
20439 LIBS="-ldld  $LIBS"
20440 cat >conftest.$ac_ext <<_ACEOF
20441 /* confdefs.h.  */
20442 _ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h.  */
20446
20447 /* Override any gcc2 internal prototype to avoid an error.  */
20448 #ifdef __cplusplus
20449 extern "C"
20450 #endif
20451 /* We use char because int might match the return type of a gcc2
20452    builtin and then its argument prototype would still apply.  */
20453 char dld_link ();
20454 int
20455 main ()
20456 {
20457 dld_link ();
20458   ;
20459   return 0;
20460 }
20461 _ACEOF
20462 rm -f conftest.$ac_objext conftest$ac_exeext
20463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20464   (eval $ac_link) 2>conftest.er1
20465   ac_status=$?
20466   grep -v '^ *+' conftest.er1 >conftest.err
20467   rm -f conftest.er1
20468   cat conftest.err >&5
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); } &&
20471          { ac_try='test -z "$ac_c_werror_flag"
20472                          || test ! -s conftest.err'
20473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474   (eval $ac_try) 2>&5
20475   ac_status=$?
20476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477   (exit $ac_status); }; } &&
20478          { ac_try='test -s conftest$ac_exeext'
20479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20480   (eval $ac_try) 2>&5
20481   ac_status=$?
20482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483   (exit $ac_status); }; }; then
20484   ac_cv_lib_dld_dld_link=yes
20485 else
20486   echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20488
20489 ac_cv_lib_dld_dld_link=no
20490 fi
20491 rm -f conftest.err conftest.$ac_objext \
20492       conftest$ac_exeext conftest.$ac_ext
20493 LIBS=$ac_check_lib_save_LIBS
20494 fi
20495 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20496 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20497 if test $ac_cv_lib_dld_dld_link = yes; then
20498   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20499 fi
20500
20501
20502 fi
20503
20504
20505 fi
20506
20507
20508 fi
20509
20510
20511 fi
20512
20513
20514 fi
20515
20516     ;;
20517   esac
20518
20519   if test "x$lt_cv_dlopen" != xno; then
20520     enable_dlopen=yes
20521   else
20522     enable_dlopen=no
20523   fi
20524
20525   case $lt_cv_dlopen in
20526   dlopen)
20527     save_CPPFLAGS="$CPPFLAGS"
20528     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20529
20530     save_LDFLAGS="$LDFLAGS"
20531     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20532
20533     save_LIBS="$LIBS"
20534     LIBS="$lt_cv_dlopen_libs $LIBS"
20535
20536     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20537 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20538 if test "${lt_cv_dlopen_self+set}" = set; then
20539   echo $ECHO_N "(cached) $ECHO_C" >&6
20540 else
20541           if test "$cross_compiling" = yes; then :
20542   lt_cv_dlopen_self=cross
20543 else
20544   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20545   lt_status=$lt_dlunknown
20546   cat > conftest.$ac_ext <<EOF
20547 #line 20547 "configure"
20548 #include "confdefs.h"
20549
20550 #if HAVE_DLFCN_H
20551 #include <dlfcn.h>
20552 #endif
20553
20554 #include <stdio.h>
20555
20556 #ifdef RTLD_GLOBAL
20557 #  define LT_DLGLOBAL           RTLD_GLOBAL
20558 #else
20559 #  ifdef DL_GLOBAL
20560 #    define LT_DLGLOBAL         DL_GLOBAL
20561 #  else
20562 #    define LT_DLGLOBAL         0
20563 #  endif
20564 #endif
20565
20566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20567    find out it does not work in some platform. */
20568 #ifndef LT_DLLAZY_OR_NOW
20569 #  ifdef RTLD_LAZY
20570 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20571 #  else
20572 #    ifdef DL_LAZY
20573 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20574 #    else
20575 #      ifdef RTLD_NOW
20576 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20577 #      else
20578 #        ifdef DL_NOW
20579 #          define LT_DLLAZY_OR_NOW      DL_NOW
20580 #        else
20581 #          define LT_DLLAZY_OR_NOW      0
20582 #        endif
20583 #      endif
20584 #    endif
20585 #  endif
20586 #endif
20587
20588 #ifdef __cplusplus
20589 extern "C" void exit (int);
20590 #endif
20591
20592 void fnord() { int i=42;}
20593 int main ()
20594 {
20595   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20596   int status = $lt_dlunknown;
20597
20598   if (self)
20599     {
20600       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20601       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20602       /* dlclose (self); */
20603     }
20604
20605     exit (status);
20606 }
20607 EOF
20608   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20609   (eval $ac_link) 2>&5
20610   ac_status=$?
20611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20613     (./conftest; exit; ) 2>/dev/null
20614     lt_status=$?
20615     case x$lt_status in
20616       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20617       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20618       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20619     esac
20620   else :
20621     # compilation failed
20622     lt_cv_dlopen_self=no
20623   fi
20624 fi
20625 rm -fr conftest*
20626
20627
20628 fi
20629 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20630 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20631
20632     if test "x$lt_cv_dlopen_self" = xyes; then
20633       LDFLAGS="$LDFLAGS $link_static_flag"
20634       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20635 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20636 if test "${lt_cv_dlopen_self_static+set}" = set; then
20637   echo $ECHO_N "(cached) $ECHO_C" >&6
20638 else
20639           if test "$cross_compiling" = yes; then :
20640   lt_cv_dlopen_self_static=cross
20641 else
20642   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20643   lt_status=$lt_dlunknown
20644   cat > conftest.$ac_ext <<EOF
20645 #line 20645 "configure"
20646 #include "confdefs.h"
20647
20648 #if HAVE_DLFCN_H
20649 #include <dlfcn.h>
20650 #endif
20651
20652 #include <stdio.h>
20653
20654 #ifdef RTLD_GLOBAL
20655 #  define LT_DLGLOBAL           RTLD_GLOBAL
20656 #else
20657 #  ifdef DL_GLOBAL
20658 #    define LT_DLGLOBAL         DL_GLOBAL
20659 #  else
20660 #    define LT_DLGLOBAL         0
20661 #  endif
20662 #endif
20663
20664 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20665    find out it does not work in some platform. */
20666 #ifndef LT_DLLAZY_OR_NOW
20667 #  ifdef RTLD_LAZY
20668 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20669 #  else
20670 #    ifdef DL_LAZY
20671 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20672 #    else
20673 #      ifdef RTLD_NOW
20674 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20675 #      else
20676 #        ifdef DL_NOW
20677 #          define LT_DLLAZY_OR_NOW      DL_NOW
20678 #        else
20679 #          define LT_DLLAZY_OR_NOW      0
20680 #        endif
20681 #      endif
20682 #    endif
20683 #  endif
20684 #endif
20685
20686 #ifdef __cplusplus
20687 extern "C" void exit (int);
20688 #endif
20689
20690 void fnord() { int i=42;}
20691 int main ()
20692 {
20693   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20694   int status = $lt_dlunknown;
20695
20696   if (self)
20697     {
20698       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20699       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20700       /* dlclose (self); */
20701     }
20702
20703     exit (status);
20704 }
20705 EOF
20706   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20707   (eval $ac_link) 2>&5
20708   ac_status=$?
20709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20711     (./conftest; exit; ) 2>/dev/null
20712     lt_status=$?
20713     case x$lt_status in
20714       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20715       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20716       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20717     esac
20718   else :
20719     # compilation failed
20720     lt_cv_dlopen_self_static=no
20721   fi
20722 fi
20723 rm -fr conftest*
20724
20725
20726 fi
20727 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20728 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20729     fi
20730
20731     CPPFLAGS="$save_CPPFLAGS"
20732     LDFLAGS="$save_LDFLAGS"
20733     LIBS="$save_LIBS"
20734     ;;
20735   esac
20736
20737   case $lt_cv_dlopen_self in
20738   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20739   *) enable_dlopen_self=unknown ;;
20740   esac
20741
20742   case $lt_cv_dlopen_self_static in
20743   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20744   *) enable_dlopen_self_static=unknown ;;
20745   esac
20746 fi
20747
20748
20749 # The else clause should only fire when bootstrapping the
20750 # libtool distribution, otherwise you forgot to ship ltmain.sh
20751 # with your package, and you will get complaints that there are
20752 # no rules to generate ltmain.sh.
20753 if test -f "$ltmain"; then
20754   # See if we are running on zsh, and set the options which allow our commands through
20755   # without removal of \ escapes.
20756   if test -n "${ZSH_VERSION+set}" ; then
20757     setopt NO_GLOB_SUBST
20758   fi
20759   # Now quote all the things that may contain metacharacters while being
20760   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20761   # variables and quote the copies for generation of the libtool script.
20762   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20763     SED SHELL STRIP \
20764     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20765     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20766     deplibs_check_method reload_flag reload_cmds need_locks \
20767     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20768     lt_cv_sys_global_symbol_to_c_name_address \
20769     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20770     old_postinstall_cmds old_postuninstall_cmds \
20771     compiler_GCJ \
20772     CC_GCJ \
20773     LD_GCJ \
20774     lt_prog_compiler_wl_GCJ \
20775     lt_prog_compiler_pic_GCJ \
20776     lt_prog_compiler_static_GCJ \
20777     lt_prog_compiler_no_builtin_flag_GCJ \
20778     export_dynamic_flag_spec_GCJ \
20779     thread_safe_flag_spec_GCJ \
20780     whole_archive_flag_spec_GCJ \
20781     enable_shared_with_static_runtimes_GCJ \
20782     old_archive_cmds_GCJ \
20783     old_archive_from_new_cmds_GCJ \
20784     predep_objects_GCJ \
20785     postdep_objects_GCJ \
20786     predeps_GCJ \
20787     postdeps_GCJ \
20788     compiler_lib_search_path_GCJ \
20789     archive_cmds_GCJ \
20790     archive_expsym_cmds_GCJ \
20791     postinstall_cmds_GCJ \
20792     postuninstall_cmds_GCJ \
20793     old_archive_from_expsyms_cmds_GCJ \
20794     allow_undefined_flag_GCJ \
20795     no_undefined_flag_GCJ \
20796     export_symbols_cmds_GCJ \
20797     hardcode_libdir_flag_spec_GCJ \
20798     hardcode_libdir_flag_spec_ld_GCJ \
20799     hardcode_libdir_separator_GCJ \
20800     hardcode_automatic_GCJ \
20801     module_cmds_GCJ \
20802     module_expsym_cmds_GCJ \
20803     lt_cv_prog_compiler_c_o_GCJ \
20804     exclude_expsyms_GCJ \
20805     include_expsyms_GCJ; do
20806
20807     case $var in
20808     old_archive_cmds_GCJ | \
20809     old_archive_from_new_cmds_GCJ | \
20810     archive_cmds_GCJ | \
20811     archive_expsym_cmds_GCJ | \
20812     module_cmds_GCJ | \
20813     module_expsym_cmds_GCJ | \
20814     old_archive_from_expsyms_cmds_GCJ | \
20815     export_symbols_cmds_GCJ | \
20816     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20817     postinstall_cmds | postuninstall_cmds | \
20818     old_postinstall_cmds | old_postuninstall_cmds | \
20819     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20820       # Double-quote double-evaled strings.
20821       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20822       ;;
20823     *)
20824       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20825       ;;
20826     esac
20827   done
20828
20829   case $lt_echo in
20830   *'\$0 --fallback-echo"')
20831     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20832     ;;
20833   esac
20834
20835 cfgfile="$ofile"
20836
20837   cat <<__EOF__ >> "$cfgfile"
20838 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20839
20840 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20841
20842 # Shell to use when invoking shell scripts.
20843 SHELL=$lt_SHELL
20844
20845 # Whether or not to build shared libraries.
20846 build_libtool_libs=$enable_shared
20847
20848 # Whether or not to build static libraries.
20849 build_old_libs=$enable_static
20850
20851 # Whether or not to add -lc for building shared libraries.
20852 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20853
20854 # Whether or not to disallow shared libs when runtime libs are static
20855 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20856
20857 # Whether or not to optimize for fast installation.
20858 fast_install=$enable_fast_install
20859
20860 # The host system.
20861 host_alias=$host_alias
20862 host=$host
20863 host_os=$host_os
20864
20865 # The build system.
20866 build_alias=$build_alias
20867 build=$build
20868 build_os=$build_os
20869
20870 # An echo program that does not interpret backslashes.
20871 echo=$lt_echo
20872
20873 # The archiver.
20874 AR=$lt_AR
20875 AR_FLAGS=$lt_AR_FLAGS
20876
20877 # A C compiler.
20878 LTCC=$lt_LTCC
20879
20880 # A language-specific compiler.
20881 CC=$lt_compiler_GCJ
20882
20883 # Is the compiler the GNU C compiler?
20884 with_gcc=$GCC_GCJ
20885
20886 # An ERE matcher.
20887 EGREP=$lt_EGREP
20888
20889 # The linker used to build libraries.
20890 LD=$lt_LD_GCJ
20891
20892 # Whether we need hard or soft links.
20893 LN_S=$lt_LN_S
20894
20895 # A BSD-compatible nm program.
20896 NM=$lt_NM
20897
20898 # A symbol stripping program
20899 STRIP=$lt_STRIP
20900
20901 # Used to examine libraries when file_magic_cmd begins "file"
20902 MAGIC_CMD=$MAGIC_CMD
20903
20904 # Used on cygwin: DLL creation program.
20905 DLLTOOL="$DLLTOOL"
20906
20907 # Used on cygwin: object dumper.
20908 OBJDUMP="$OBJDUMP"
20909
20910 # Used on cygwin: assembler.
20911 AS="$AS"
20912
20913 # The name of the directory that contains temporary libtool files.
20914 objdir=$objdir
20915
20916 # How to create reloadable object files.
20917 reload_flag=$lt_reload_flag
20918 reload_cmds=$lt_reload_cmds
20919
20920 # How to pass a linker flag through the compiler.
20921 wl=$lt_lt_prog_compiler_wl_GCJ
20922
20923 # Object file suffix (normally "o").
20924 objext="$ac_objext"
20925
20926 # Old archive suffix (normally "a").
20927 libext="$libext"
20928
20929 # Shared library suffix (normally ".so").
20930 shrext_cmds='$shrext_cmds'
20931
20932 # Executable file suffix (normally "").
20933 exeext="$exeext"
20934
20935 # Additional compiler flags for building library objects.
20936 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20937 pic_mode=$pic_mode
20938
20939 # What is the maximum length of a command?
20940 max_cmd_len=$lt_cv_sys_max_cmd_len
20941
20942 # Does compiler simultaneously support -c and -o options?
20943 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20944
20945 # Must we lock files when doing compilation?
20946 need_locks=$lt_need_locks
20947
20948 # Do we need the lib prefix for modules?
20949 need_lib_prefix=$need_lib_prefix
20950
20951 # Do we need a version for libraries?
20952 need_version=$need_version
20953
20954 # Whether dlopen is supported.
20955 dlopen_support=$enable_dlopen
20956
20957 # Whether dlopen of programs is supported.
20958 dlopen_self=$enable_dlopen_self
20959
20960 # Whether dlopen of statically linked programs is supported.
20961 dlopen_self_static=$enable_dlopen_self_static
20962
20963 # Compiler flag to prevent dynamic linking.
20964 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20965
20966 # Compiler flag to turn off builtin functions.
20967 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20968
20969 # Compiler flag to allow reflexive dlopens.
20970 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20971
20972 # Compiler flag to generate shared objects directly from archives.
20973 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20974
20975 # Compiler flag to generate thread-safe objects.
20976 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20977
20978 # Library versioning type.
20979 version_type=$version_type
20980
20981 # Format of library name prefix.
20982 libname_spec=$lt_libname_spec
20983
20984 # List of archive names.  First name is the real one, the rest are links.
20985 # The last name is the one that the linker finds with -lNAME.
20986 library_names_spec=$lt_library_names_spec
20987
20988 # The coded name of the library, if different from the real name.
20989 soname_spec=$lt_soname_spec
20990
20991 # Commands used to build and install an old-style archive.
20992 RANLIB=$lt_RANLIB
20993 old_archive_cmds=$lt_old_archive_cmds_GCJ
20994 old_postinstall_cmds=$lt_old_postinstall_cmds
20995 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20996
20997 # Create an old-style archive from a shared archive.
20998 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20999
21000 # Create a temporary old-style archive to link instead of a shared archive.
21001 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21002
21003 # Commands used to build and install a shared archive.
21004 archive_cmds=$lt_archive_cmds_GCJ
21005 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21006 postinstall_cmds=$lt_postinstall_cmds
21007 postuninstall_cmds=$lt_postuninstall_cmds
21008
21009 # Commands used to build a loadable module (assumed same as above if empty)
21010 module_cmds=$lt_module_cmds_GCJ
21011 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21012
21013 # Commands to strip libraries.
21014 old_striplib=$lt_old_striplib
21015 striplib=$lt_striplib
21016
21017 # Dependencies to place before the objects being linked to create a
21018 # shared library.
21019 predep_objects=$lt_predep_objects_GCJ
21020
21021 # Dependencies to place after the objects being linked to create a
21022 # shared library.
21023 postdep_objects=$lt_postdep_objects_GCJ
21024
21025 # Dependencies to place before the objects being linked to create a
21026 # shared library.
21027 predeps=$lt_predeps_GCJ
21028
21029 # Dependencies to place after the objects being linked to create a
21030 # shared library.
21031 postdeps=$lt_postdeps_GCJ
21032
21033 # The library search path used internally by the compiler when linking
21034 # a shared library.
21035 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21036
21037 # Method to check whether dependent libraries are shared objects.
21038 deplibs_check_method=$lt_deplibs_check_method
21039
21040 # Command to use when deplibs_check_method == file_magic.
21041 file_magic_cmd=$lt_file_magic_cmd
21042
21043 # Flag that allows shared libraries with undefined symbols to be built.
21044 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21045
21046 # Flag that forces no undefined symbols.
21047 no_undefined_flag=$lt_no_undefined_flag_GCJ
21048
21049 # Commands used to finish a libtool library installation in a directory.
21050 finish_cmds=$lt_finish_cmds
21051
21052 # Same as above, but a single script fragment to be evaled but not shown.
21053 finish_eval=$lt_finish_eval
21054
21055 # Take the output of nm and produce a listing of raw symbols and C names.
21056 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21057
21058 # Transform the output of nm in a proper C declaration
21059 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21060
21061 # Transform the output of nm in a C name address pair
21062 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21063
21064 # This is the shared library runtime path variable.
21065 runpath_var=$runpath_var
21066
21067 # This is the shared library path variable.
21068 shlibpath_var=$shlibpath_var
21069
21070 # Is shlibpath searched before the hard-coded library search path?
21071 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21072
21073 # How to hardcode a shared library path into an executable.
21074 hardcode_action=$hardcode_action_GCJ
21075
21076 # Whether we should hardcode library paths into libraries.
21077 hardcode_into_libs=$hardcode_into_libs
21078
21079 # Flag to hardcode \$libdir into a binary during linking.
21080 # This must work even if \$libdir does not exist.
21081 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21082
21083 # If ld is used when linking, flag to hardcode \$libdir into
21084 # a binary during linking. This must work even if \$libdir does
21085 # not exist.
21086 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21087
21088 # Whether we need a single -rpath flag with a separated argument.
21089 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21090
21091 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21092 # resulting binary.
21093 hardcode_direct=$hardcode_direct_GCJ
21094
21095 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21096 # resulting binary.
21097 hardcode_minus_L=$hardcode_minus_L_GCJ
21098
21099 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21100 # the resulting binary.
21101 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21102
21103 # Set to yes if building a shared library automatically hardcodes DIR into the library
21104 # and all subsequent libraries and executables linked against it.
21105 hardcode_automatic=$hardcode_automatic_GCJ
21106
21107 # Variables whose values should be saved in libtool wrapper scripts and
21108 # restored at relink time.
21109 variables_saved_for_relink="$variables_saved_for_relink"
21110
21111 # Whether libtool must link a program against all its dependency libraries.
21112 link_all_deplibs=$link_all_deplibs_GCJ
21113
21114 # Compile-time system search path for libraries
21115 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21116
21117 # Run-time system search path for libraries
21118 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21119
21120 # Fix the shell variable \$srcfile for the compiler.
21121 fix_srcfile_path="$fix_srcfile_path_GCJ"
21122
21123 # Set to yes if exported symbols are required.
21124 always_export_symbols=$always_export_symbols_GCJ
21125
21126 # The commands to list exported symbols.
21127 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21128
21129 # The commands to extract the exported symbol list from a shared archive.
21130 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21131
21132 # Symbols that should not be listed in the preloaded symbols.
21133 exclude_expsyms=$lt_exclude_expsyms_GCJ
21134
21135 # Symbols that must always be exported.
21136 include_expsyms=$lt_include_expsyms_GCJ
21137
21138 # ### END LIBTOOL TAG CONFIG: $tagname
21139
21140 __EOF__
21141
21142
21143 else
21144   # If there is no Makefile yet, we rely on a make rule to execute
21145   # `config.status --recheck' to rerun these tests and create the
21146   # libtool script then.
21147   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21148   if test -f "$ltmain_in"; then
21149     test -f Makefile && make "$ltmain"
21150   fi
21151 fi
21152
21153
21154 ac_ext=c
21155 ac_cpp='$CPP $CPPFLAGS'
21156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21159
21160 CC="$lt_save_CC"
21161
21162         else
21163           tagname=""
21164         fi
21165         ;;
21166
21167       RC)
21168
21169
21170
21171 # Source file extension for RC test sources.
21172 ac_ext=rc
21173
21174 # Object file extension for compiled RC test sources.
21175 objext=o
21176 objext_RC=$objext
21177
21178 # Code to be used in simple compile tests
21179 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21180
21181 # Code to be used in simple link tests
21182 lt_simple_link_test_code="$lt_simple_compile_test_code"
21183
21184 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21185
21186 # If no C compiler was specified, use CC.
21187 LTCC=${LTCC-"$CC"}
21188
21189 # Allow CC to be a program name with arguments.
21190 compiler=$CC
21191
21192
21193 # save warnings/boilerplate of simple test code
21194 ac_outfile=conftest.$ac_objext
21195 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21196 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21197 _lt_compiler_boilerplate=`cat conftest.err`
21198 $rm conftest*
21199
21200 ac_outfile=conftest.$ac_objext
21201 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21202 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21203 _lt_linker_boilerplate=`cat conftest.err`
21204 $rm conftest*
21205
21206
21207 # Allow CC to be a program name with arguments.
21208 lt_save_CC="$CC"
21209 CC=${RC-"windres"}
21210 compiler=$CC
21211 compiler_RC=$CC
21212 for cc_temp in $compiler""; do
21213   case $cc_temp in
21214     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21215     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21216     \-*) ;;
21217     *) break;;
21218   esac
21219 done
21220 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21221
21222 lt_cv_prog_compiler_c_o_RC=yes
21223
21224 # The else clause should only fire when bootstrapping the
21225 # libtool distribution, otherwise you forgot to ship ltmain.sh
21226 # with your package, and you will get complaints that there are
21227 # no rules to generate ltmain.sh.
21228 if test -f "$ltmain"; then
21229   # See if we are running on zsh, and set the options which allow our commands through
21230   # without removal of \ escapes.
21231   if test -n "${ZSH_VERSION+set}" ; then
21232     setopt NO_GLOB_SUBST
21233   fi
21234   # Now quote all the things that may contain metacharacters while being
21235   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21236   # variables and quote the copies for generation of the libtool script.
21237   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21238     SED SHELL STRIP \
21239     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21240     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21241     deplibs_check_method reload_flag reload_cmds need_locks \
21242     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21243     lt_cv_sys_global_symbol_to_c_name_address \
21244     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21245     old_postinstall_cmds old_postuninstall_cmds \
21246     compiler_RC \
21247     CC_RC \
21248     LD_RC \
21249     lt_prog_compiler_wl_RC \
21250     lt_prog_compiler_pic_RC \
21251     lt_prog_compiler_static_RC \
21252     lt_prog_compiler_no_builtin_flag_RC \
21253     export_dynamic_flag_spec_RC \
21254     thread_safe_flag_spec_RC \
21255     whole_archive_flag_spec_RC \
21256     enable_shared_with_static_runtimes_RC \
21257     old_archive_cmds_RC \
21258     old_archive_from_new_cmds_RC \
21259     predep_objects_RC \
21260     postdep_objects_RC \
21261     predeps_RC \
21262     postdeps_RC \
21263     compiler_lib_search_path_RC \
21264     archive_cmds_RC \
21265     archive_expsym_cmds_RC \
21266     postinstall_cmds_RC \
21267     postuninstall_cmds_RC \
21268     old_archive_from_expsyms_cmds_RC \
21269     allow_undefined_flag_RC \
21270     no_undefined_flag_RC \
21271     export_symbols_cmds_RC \
21272     hardcode_libdir_flag_spec_RC \
21273     hardcode_libdir_flag_spec_ld_RC \
21274     hardcode_libdir_separator_RC \
21275     hardcode_automatic_RC \
21276     module_cmds_RC \
21277     module_expsym_cmds_RC \
21278     lt_cv_prog_compiler_c_o_RC \
21279     exclude_expsyms_RC \
21280     include_expsyms_RC; do
21281
21282     case $var in
21283     old_archive_cmds_RC | \
21284     old_archive_from_new_cmds_RC | \
21285     archive_cmds_RC | \
21286     archive_expsym_cmds_RC | \
21287     module_cmds_RC | \
21288     module_expsym_cmds_RC | \
21289     old_archive_from_expsyms_cmds_RC | \
21290     export_symbols_cmds_RC | \
21291     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21292     postinstall_cmds | postuninstall_cmds | \
21293     old_postinstall_cmds | old_postuninstall_cmds | \
21294     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21295       # Double-quote double-evaled strings.
21296       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21297       ;;
21298     *)
21299       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21300       ;;
21301     esac
21302   done
21303
21304   case $lt_echo in
21305   *'\$0 --fallback-echo"')
21306     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21307     ;;
21308   esac
21309
21310 cfgfile="$ofile"
21311
21312   cat <<__EOF__ >> "$cfgfile"
21313 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21314
21315 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21316
21317 # Shell to use when invoking shell scripts.
21318 SHELL=$lt_SHELL
21319
21320 # Whether or not to build shared libraries.
21321 build_libtool_libs=$enable_shared
21322
21323 # Whether or not to build static libraries.
21324 build_old_libs=$enable_static
21325
21326 # Whether or not to add -lc for building shared libraries.
21327 build_libtool_need_lc=$archive_cmds_need_lc_RC
21328
21329 # Whether or not to disallow shared libs when runtime libs are static
21330 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21331
21332 # Whether or not to optimize for fast installation.
21333 fast_install=$enable_fast_install
21334
21335 # The host system.
21336 host_alias=$host_alias
21337 host=$host
21338 host_os=$host_os
21339
21340 # The build system.
21341 build_alias=$build_alias
21342 build=$build
21343 build_os=$build_os
21344
21345 # An echo program that does not interpret backslashes.
21346 echo=$lt_echo
21347
21348 # The archiver.
21349 AR=$lt_AR
21350 AR_FLAGS=$lt_AR_FLAGS
21351
21352 # A C compiler.
21353 LTCC=$lt_LTCC
21354
21355 # A language-specific compiler.
21356 CC=$lt_compiler_RC
21357
21358 # Is the compiler the GNU C compiler?
21359 with_gcc=$GCC_RC
21360
21361 # An ERE matcher.
21362 EGREP=$lt_EGREP
21363
21364 # The linker used to build libraries.
21365 LD=$lt_LD_RC
21366
21367 # Whether we need hard or soft links.
21368 LN_S=$lt_LN_S
21369
21370 # A BSD-compatible nm program.
21371 NM=$lt_NM
21372
21373 # A symbol stripping program
21374 STRIP=$lt_STRIP
21375
21376 # Used to examine libraries when file_magic_cmd begins "file"
21377 MAGIC_CMD=$MAGIC_CMD
21378
21379 # Used on cygwin: DLL creation program.
21380 DLLTOOL="$DLLTOOL"
21381
21382 # Used on cygwin: object dumper.
21383 OBJDUMP="$OBJDUMP"
21384
21385 # Used on cygwin: assembler.
21386 AS="$AS"
21387
21388 # The name of the directory that contains temporary libtool files.
21389 objdir=$objdir
21390
21391 # How to create reloadable object files.
21392 reload_flag=$lt_reload_flag
21393 reload_cmds=$lt_reload_cmds
21394
21395 # How to pass a linker flag through the compiler.
21396 wl=$lt_lt_prog_compiler_wl_RC
21397
21398 # Object file suffix (normally "o").
21399 objext="$ac_objext"
21400
21401 # Old archive suffix (normally "a").
21402 libext="$libext"
21403
21404 # Shared library suffix (normally ".so").
21405 shrext_cmds='$shrext_cmds'
21406
21407 # Executable file suffix (normally "").
21408 exeext="$exeext"
21409
21410 # Additional compiler flags for building library objects.
21411 pic_flag=$lt_lt_prog_compiler_pic_RC
21412 pic_mode=$pic_mode
21413
21414 # What is the maximum length of a command?
21415 max_cmd_len=$lt_cv_sys_max_cmd_len
21416
21417 # Does compiler simultaneously support -c and -o options?
21418 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21419
21420 # Must we lock files when doing compilation?
21421 need_locks=$lt_need_locks
21422
21423 # Do we need the lib prefix for modules?
21424 need_lib_prefix=$need_lib_prefix
21425
21426 # Do we need a version for libraries?
21427 need_version=$need_version
21428
21429 # Whether dlopen is supported.
21430 dlopen_support=$enable_dlopen
21431
21432 # Whether dlopen of programs is supported.
21433 dlopen_self=$enable_dlopen_self
21434
21435 # Whether dlopen of statically linked programs is supported.
21436 dlopen_self_static=$enable_dlopen_self_static
21437
21438 # Compiler flag to prevent dynamic linking.
21439 link_static_flag=$lt_lt_prog_compiler_static_RC
21440
21441 # Compiler flag to turn off builtin functions.
21442 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21443
21444 # Compiler flag to allow reflexive dlopens.
21445 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21446
21447 # Compiler flag to generate shared objects directly from archives.
21448 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21449
21450 # Compiler flag to generate thread-safe objects.
21451 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21452
21453 # Library versioning type.
21454 version_type=$version_type
21455
21456 # Format of library name prefix.
21457 libname_spec=$lt_libname_spec
21458
21459 # List of archive names.  First name is the real one, the rest are links.
21460 # The last name is the one that the linker finds with -lNAME.
21461 library_names_spec=$lt_library_names_spec
21462
21463 # The coded name of the library, if different from the real name.
21464 soname_spec=$lt_soname_spec
21465
21466 # Commands used to build and install an old-style archive.
21467 RANLIB=$lt_RANLIB
21468 old_archive_cmds=$lt_old_archive_cmds_RC
21469 old_postinstall_cmds=$lt_old_postinstall_cmds
21470 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21471
21472 # Create an old-style archive from a shared archive.
21473 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21474
21475 # Create a temporary old-style archive to link instead of a shared archive.
21476 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21477
21478 # Commands used to build and install a shared archive.
21479 archive_cmds=$lt_archive_cmds_RC
21480 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21481 postinstall_cmds=$lt_postinstall_cmds
21482 postuninstall_cmds=$lt_postuninstall_cmds
21483
21484 # Commands used to build a loadable module (assumed same as above if empty)
21485 module_cmds=$lt_module_cmds_RC
21486 module_expsym_cmds=$lt_module_expsym_cmds_RC
21487
21488 # Commands to strip libraries.
21489 old_striplib=$lt_old_striplib
21490 striplib=$lt_striplib
21491
21492 # Dependencies to place before the objects being linked to create a
21493 # shared library.
21494 predep_objects=$lt_predep_objects_RC
21495
21496 # Dependencies to place after the objects being linked to create a
21497 # shared library.
21498 postdep_objects=$lt_postdep_objects_RC
21499
21500 # Dependencies to place before the objects being linked to create a
21501 # shared library.
21502 predeps=$lt_predeps_RC
21503
21504 # Dependencies to place after the objects being linked to create a
21505 # shared library.
21506 postdeps=$lt_postdeps_RC
21507
21508 # The library search path used internally by the compiler when linking
21509 # a shared library.
21510 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21511
21512 # Method to check whether dependent libraries are shared objects.
21513 deplibs_check_method=$lt_deplibs_check_method
21514
21515 # Command to use when deplibs_check_method == file_magic.
21516 file_magic_cmd=$lt_file_magic_cmd
21517
21518 # Flag that allows shared libraries with undefined symbols to be built.
21519 allow_undefined_flag=$lt_allow_undefined_flag_RC
21520
21521 # Flag that forces no undefined symbols.
21522 no_undefined_flag=$lt_no_undefined_flag_RC
21523
21524 # Commands used to finish a libtool library installation in a directory.
21525 finish_cmds=$lt_finish_cmds
21526
21527 # Same as above, but a single script fragment to be evaled but not shown.
21528 finish_eval=$lt_finish_eval
21529
21530 # Take the output of nm and produce a listing of raw symbols and C names.
21531 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21532
21533 # Transform the output of nm in a proper C declaration
21534 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21535
21536 # Transform the output of nm in a C name address pair
21537 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21538
21539 # This is the shared library runtime path variable.
21540 runpath_var=$runpath_var
21541
21542 # This is the shared library path variable.
21543 shlibpath_var=$shlibpath_var
21544
21545 # Is shlibpath searched before the hard-coded library search path?
21546 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21547
21548 # How to hardcode a shared library path into an executable.
21549 hardcode_action=$hardcode_action_RC
21550
21551 # Whether we should hardcode library paths into libraries.
21552 hardcode_into_libs=$hardcode_into_libs
21553
21554 # Flag to hardcode \$libdir into a binary during linking.
21555 # This must work even if \$libdir does not exist.
21556 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21557
21558 # If ld is used when linking, flag to hardcode \$libdir into
21559 # a binary during linking. This must work even if \$libdir does
21560 # not exist.
21561 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21562
21563 # Whether we need a single -rpath flag with a separated argument.
21564 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21565
21566 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21567 # resulting binary.
21568 hardcode_direct=$hardcode_direct_RC
21569
21570 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21571 # resulting binary.
21572 hardcode_minus_L=$hardcode_minus_L_RC
21573
21574 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21575 # the resulting binary.
21576 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21577
21578 # Set to yes if building a shared library automatically hardcodes DIR into the library
21579 # and all subsequent libraries and executables linked against it.
21580 hardcode_automatic=$hardcode_automatic_RC
21581
21582 # Variables whose values should be saved in libtool wrapper scripts and
21583 # restored at relink time.
21584 variables_saved_for_relink="$variables_saved_for_relink"
21585
21586 # Whether libtool must link a program against all its dependency libraries.
21587 link_all_deplibs=$link_all_deplibs_RC
21588
21589 # Compile-time system search path for libraries
21590 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21591
21592 # Run-time system search path for libraries
21593 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21594
21595 # Fix the shell variable \$srcfile for the compiler.
21596 fix_srcfile_path="$fix_srcfile_path_RC"
21597
21598 # Set to yes if exported symbols are required.
21599 always_export_symbols=$always_export_symbols_RC
21600
21601 # The commands to list exported symbols.
21602 export_symbols_cmds=$lt_export_symbols_cmds_RC
21603
21604 # The commands to extract the exported symbol list from a shared archive.
21605 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21606
21607 # Symbols that should not be listed in the preloaded symbols.
21608 exclude_expsyms=$lt_exclude_expsyms_RC
21609
21610 # Symbols that must always be exported.
21611 include_expsyms=$lt_include_expsyms_RC
21612
21613 # ### END LIBTOOL TAG CONFIG: $tagname
21614
21615 __EOF__
21616
21617
21618 else
21619   # If there is no Makefile yet, we rely on a make rule to execute
21620   # `config.status --recheck' to rerun these tests and create the
21621   # libtool script then.
21622   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21623   if test -f "$ltmain_in"; then
21624     test -f Makefile && make "$ltmain"
21625   fi
21626 fi
21627
21628
21629 ac_ext=c
21630 ac_cpp='$CPP $CPPFLAGS'
21631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21634
21635 CC="$lt_save_CC"
21636
21637         ;;
21638
21639       *)
21640         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21641 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21642    { (exit 1); exit 1; }; }
21643         ;;
21644       esac
21645
21646       # Append the new tag name to the list of available tags.
21647       if test -n "$tagname" ; then
21648       available_tags="$available_tags $tagname"
21649     fi
21650     fi
21651   done
21652   IFS="$lt_save_ifs"
21653
21654   # Now substitute the updated list of available tags.
21655   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21656     mv "${ofile}T" "$ofile"
21657     chmod +x "$ofile"
21658   else
21659     rm -f "${ofile}T"
21660     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21661 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21662    { (exit 1); exit 1; }; }
21663   fi
21664 fi
21665
21666
21667
21668 # This can be used to rebuild libtool when needed
21669 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21670
21671 # Always use our own libtool.
21672 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21673
21674 # Prevent multiple expansion
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696 ol_link_perl=no
21697 if test $ol_enable_perl != no ; then
21698         # Extract the first word of "perl", so it can be a program name with args.
21699 set dummy perl; ac_word=$2
21700 echo "$as_me:$LINENO: checking for $ac_word" >&5
21701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21702 if test "${ac_cv_path_PERLBIN+set}" = set; then
21703   echo $ECHO_N "(cached) $ECHO_C" >&6
21704 else
21705   case $PERLBIN in
21706   [\\/]* | ?:[\\/]*)
21707   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21708   ;;
21709   *)
21710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21711 for as_dir in $PATH
21712 do
21713   IFS=$as_save_IFS
21714   test -z "$as_dir" && as_dir=.
21715   for ac_exec_ext in '' $ac_executable_extensions; do
21716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21717     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21719     break 2
21720   fi
21721 done
21722 done
21723
21724   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21725   ;;
21726 esac
21727 fi
21728 PERLBIN=$ac_cv_path_PERLBIN
21729
21730 if test -n "$PERLBIN"; then
21731   echo "$as_me:$LINENO: result: $PERLBIN" >&5
21732 echo "${ECHO_T}$PERLBIN" >&6
21733 else
21734   echo "$as_me:$LINENO: result: no" >&5
21735 echo "${ECHO_T}no" >&6
21736 fi
21737
21738
21739         if test "no$PERLBIN" = "no" ; then
21740                 if test $ol_enable_perl = yes ; then
21741                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21742 echo "$as_me: error: could not locate perl" >&2;}
21743    { (exit 1); exit 1; }; }
21744                 fi
21745
21746         else
21747                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21748                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21749
21750                 if test x"$ol_enable_perl" = "xyes" ; then
21751                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21752                 else
21753                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21754                 fi
21755                                 ol_link_perl=yes
21756         fi
21757 fi
21758
21759 ac_ext=c
21760 ac_cpp='$CPP $CPPFLAGS'
21761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21764 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21765 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21766 # On Suns, sometimes $CPP names a directory.
21767 if test -n "$CPP" && test -d "$CPP"; then
21768   CPP=
21769 fi
21770 if test -z "$CPP"; then
21771   if test "${ac_cv_prog_CPP+set}" = set; then
21772   echo $ECHO_N "(cached) $ECHO_C" >&6
21773 else
21774       # Double quotes because CPP needs to be expanded
21775     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21776     do
21777       ac_preproc_ok=false
21778 for ac_c_preproc_warn_flag in '' yes
21779 do
21780   # Use a header file that comes with gcc, so configuring glibc
21781   # with a fresh cross-compiler works.
21782   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21783   # <limits.h> exists even on freestanding compilers.
21784   # On the NeXT, cc -E runs the code through the compiler's parser,
21785   # not just through cpp. "Syntax error" is here to catch this case.
21786   cat >conftest.$ac_ext <<_ACEOF
21787 /* confdefs.h.  */
21788 _ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h.  */
21792 #ifdef __STDC__
21793 # include <limits.h>
21794 #else
21795 # include <assert.h>
21796 #endif
21797                      Syntax error
21798 _ACEOF
21799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21800   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21801   ac_status=$?
21802   grep -v '^ *+' conftest.er1 >conftest.err
21803   rm -f conftest.er1
21804   cat conftest.err >&5
21805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806   (exit $ac_status); } >/dev/null; then
21807   if test -s conftest.err; then
21808     ac_cpp_err=$ac_c_preproc_warn_flag
21809     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21810   else
21811     ac_cpp_err=
21812   fi
21813 else
21814   ac_cpp_err=yes
21815 fi
21816 if test -z "$ac_cpp_err"; then
21817   :
21818 else
21819   echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21821
21822   # Broken: fails on valid input.
21823 continue
21824 fi
21825 rm -f conftest.err conftest.$ac_ext
21826
21827   # OK, works on sane cases.  Now check whether non-existent headers
21828   # can be detected and how.
21829   cat >conftest.$ac_ext <<_ACEOF
21830 /* confdefs.h.  */
21831 _ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h.  */
21835 #include <ac_nonexistent.h>
21836 _ACEOF
21837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21838   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21839   ac_status=$?
21840   grep -v '^ *+' conftest.er1 >conftest.err
21841   rm -f conftest.er1
21842   cat conftest.err >&5
21843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844   (exit $ac_status); } >/dev/null; then
21845   if test -s conftest.err; then
21846     ac_cpp_err=$ac_c_preproc_warn_flag
21847     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21848   else
21849     ac_cpp_err=
21850   fi
21851 else
21852   ac_cpp_err=yes
21853 fi
21854 if test -z "$ac_cpp_err"; then
21855   # Broken: success on invalid input.
21856 continue
21857 else
21858   echo "$as_me: failed program was:" >&5
21859 sed 's/^/| /' conftest.$ac_ext >&5
21860
21861   # Passes both tests.
21862 ac_preproc_ok=:
21863 break
21864 fi
21865 rm -f conftest.err conftest.$ac_ext
21866
21867 done
21868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21869 rm -f conftest.err conftest.$ac_ext
21870 if $ac_preproc_ok; then
21871   break
21872 fi
21873
21874     done
21875     ac_cv_prog_CPP=$CPP
21876
21877 fi
21878   CPP=$ac_cv_prog_CPP
21879 else
21880   ac_cv_prog_CPP=$CPP
21881 fi
21882 echo "$as_me:$LINENO: result: $CPP" >&5
21883 echo "${ECHO_T}$CPP" >&6
21884 ac_preproc_ok=false
21885 for ac_c_preproc_warn_flag in '' yes
21886 do
21887   # Use a header file that comes with gcc, so configuring glibc
21888   # with a fresh cross-compiler works.
21889   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21890   # <limits.h> exists even on freestanding compilers.
21891   # On the NeXT, cc -E runs the code through the compiler's parser,
21892   # not just through cpp. "Syntax error" is here to catch this case.
21893   cat >conftest.$ac_ext <<_ACEOF
21894 /* confdefs.h.  */
21895 _ACEOF
21896 cat confdefs.h >>conftest.$ac_ext
21897 cat >>conftest.$ac_ext <<_ACEOF
21898 /* end confdefs.h.  */
21899 #ifdef __STDC__
21900 # include <limits.h>
21901 #else
21902 # include <assert.h>
21903 #endif
21904                      Syntax error
21905 _ACEOF
21906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21907   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21908   ac_status=$?
21909   grep -v '^ *+' conftest.er1 >conftest.err
21910   rm -f conftest.er1
21911   cat conftest.err >&5
21912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913   (exit $ac_status); } >/dev/null; then
21914   if test -s conftest.err; then
21915     ac_cpp_err=$ac_c_preproc_warn_flag
21916     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21917   else
21918     ac_cpp_err=
21919   fi
21920 else
21921   ac_cpp_err=yes
21922 fi
21923 if test -z "$ac_cpp_err"; then
21924   :
21925 else
21926   echo "$as_me: failed program was:" >&5
21927 sed 's/^/| /' conftest.$ac_ext >&5
21928
21929   # Broken: fails on valid input.
21930 continue
21931 fi
21932 rm -f conftest.err conftest.$ac_ext
21933
21934   # OK, works on sane cases.  Now check whether non-existent headers
21935   # can be detected and how.
21936   cat >conftest.$ac_ext <<_ACEOF
21937 /* confdefs.h.  */
21938 _ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h.  */
21942 #include <ac_nonexistent.h>
21943 _ACEOF
21944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21945   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21946   ac_status=$?
21947   grep -v '^ *+' conftest.er1 >conftest.err
21948   rm -f conftest.er1
21949   cat conftest.err >&5
21950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951   (exit $ac_status); } >/dev/null; then
21952   if test -s conftest.err; then
21953     ac_cpp_err=$ac_c_preproc_warn_flag
21954     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21955   else
21956     ac_cpp_err=
21957   fi
21958 else
21959   ac_cpp_err=yes
21960 fi
21961 if test -z "$ac_cpp_err"; then
21962   # Broken: success on invalid input.
21963 continue
21964 else
21965   echo "$as_me: failed program was:" >&5
21966 sed 's/^/| /' conftest.$ac_ext >&5
21967
21968   # Passes both tests.
21969 ac_preproc_ok=:
21970 break
21971 fi
21972 rm -f conftest.err conftest.$ac_ext
21973
21974 done
21975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21976 rm -f conftest.err conftest.$ac_ext
21977 if $ac_preproc_ok; then
21978   :
21979 else
21980   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
21981 See \`config.log' for more details." >&5
21982 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
21983 See \`config.log' for more details." >&2;}
21984    { (exit 1); exit 1; }; }
21985 fi
21986
21987 ac_ext=c
21988 ac_cpp='$CPP $CPPFLAGS'
21989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21992
21993
21994
21995
21996 case $host_os in
21997   *cygwin* ) CYGWIN=yes;;
21998          * ) CYGWIN=no;;
21999 esac
22000
22001
22002 case $host_os in
22003   *mingw32* ) MINGW32=yes;;
22004           * ) MINGW32=no;;
22005 esac
22006
22007
22008
22009
22010
22011 cat >>confdefs.h <<_ACEOF
22012 #define EXEEXT "${EXEEXT}"
22013 _ACEOF
22014
22015
22016 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22017 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22018 if test "${ac_cv_lib_be_be_app+set}" = set; then
22019   echo $ECHO_N "(cached) $ECHO_C" >&6
22020 else
22021   ac_check_lib_save_LIBS=$LIBS
22022 LIBS="-lbe -lroot -lnet $LIBS"
22023 cat >conftest.$ac_ext <<_ACEOF
22024 /* confdefs.h.  */
22025 _ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h.  */
22029
22030 /* Override any gcc2 internal prototype to avoid an error.  */
22031 #ifdef __cplusplus
22032 extern "C"
22033 #endif
22034 /* We use char because int might match the return type of a gcc2
22035    builtin and then its argument prototype would still apply.  */
22036 char be_app ();
22037 int
22038 main ()
22039 {
22040 be_app ();
22041   ;
22042   return 0;
22043 }
22044 _ACEOF
22045 rm -f conftest.$ac_objext conftest$ac_exeext
22046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22047   (eval $ac_link) 2>conftest.er1
22048   ac_status=$?
22049   grep -v '^ *+' conftest.er1 >conftest.err
22050   rm -f conftest.er1
22051   cat conftest.err >&5
22052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053   (exit $ac_status); } &&
22054          { ac_try='test -z "$ac_c_werror_flag"
22055                          || test ! -s conftest.err'
22056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22057   (eval $ac_try) 2>&5
22058   ac_status=$?
22059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060   (exit $ac_status); }; } &&
22061          { ac_try='test -s conftest$ac_exeext'
22062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22063   (eval $ac_try) 2>&5
22064   ac_status=$?
22065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066   (exit $ac_status); }; }; then
22067   ac_cv_lib_be_be_app=yes
22068 else
22069   echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22071
22072 ac_cv_lib_be_be_app=no
22073 fi
22074 rm -f conftest.err conftest.$ac_objext \
22075       conftest$ac_exeext conftest.$ac_ext
22076 LIBS=$ac_check_lib_save_LIBS
22077 fi
22078 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22079 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22080 if test $ac_cv_lib_be_be_app = yes; then
22081   LIBS="$LIBS -lbe -lroot -lnet"
22082 else
22083   :
22084 fi
22085
22086
22087 ac_ext=c
22088 ac_cpp='$CPP $CPPFLAGS'
22089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22092 if test -n "$ac_tool_prefix"; then
22093   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22094 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22095 echo "$as_me:$LINENO: checking for $ac_word" >&5
22096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22097 if test "${ac_cv_prog_CC+set}" = set; then
22098   echo $ECHO_N "(cached) $ECHO_C" >&6
22099 else
22100   if test -n "$CC"; then
22101   ac_cv_prog_CC="$CC" # Let the user override the test.
22102 else
22103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22104 for as_dir in $PATH
22105 do
22106   IFS=$as_save_IFS
22107   test -z "$as_dir" && as_dir=.
22108   for ac_exec_ext in '' $ac_executable_extensions; do
22109   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22110     ac_cv_prog_CC="${ac_tool_prefix}gcc"
22111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22112     break 2
22113   fi
22114 done
22115 done
22116
22117 fi
22118 fi
22119 CC=$ac_cv_prog_CC
22120 if test -n "$CC"; then
22121   echo "$as_me:$LINENO: result: $CC" >&5
22122 echo "${ECHO_T}$CC" >&6
22123 else
22124   echo "$as_me:$LINENO: result: no" >&5
22125 echo "${ECHO_T}no" >&6
22126 fi
22127
22128 fi
22129 if test -z "$ac_cv_prog_CC"; then
22130   ac_ct_CC=$CC
22131   # Extract the first word of "gcc", so it can be a program name with args.
22132 set dummy gcc; ac_word=$2
22133 echo "$as_me:$LINENO: checking for $ac_word" >&5
22134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22136   echo $ECHO_N "(cached) $ECHO_C" >&6
22137 else
22138   if test -n "$ac_ct_CC"; then
22139   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22140 else
22141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22142 for as_dir in $PATH
22143 do
22144   IFS=$as_save_IFS
22145   test -z "$as_dir" && as_dir=.
22146   for ac_exec_ext in '' $ac_executable_extensions; do
22147   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22148     ac_cv_prog_ac_ct_CC="gcc"
22149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22150     break 2
22151   fi
22152 done
22153 done
22154
22155 fi
22156 fi
22157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22158 if test -n "$ac_ct_CC"; then
22159   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22160 echo "${ECHO_T}$ac_ct_CC" >&6
22161 else
22162   echo "$as_me:$LINENO: result: no" >&5
22163 echo "${ECHO_T}no" >&6
22164 fi
22165
22166   CC=$ac_ct_CC
22167 else
22168   CC="$ac_cv_prog_CC"
22169 fi
22170
22171 if test -z "$CC"; then
22172   if test -n "$ac_tool_prefix"; then
22173   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22174 set dummy ${ac_tool_prefix}cc; ac_word=$2
22175 echo "$as_me:$LINENO: checking for $ac_word" >&5
22176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22177 if test "${ac_cv_prog_CC+set}" = set; then
22178   echo $ECHO_N "(cached) $ECHO_C" >&6
22179 else
22180   if test -n "$CC"; then
22181   ac_cv_prog_CC="$CC" # Let the user override the test.
22182 else
22183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22184 for as_dir in $PATH
22185 do
22186   IFS=$as_save_IFS
22187   test -z "$as_dir" && as_dir=.
22188   for ac_exec_ext in '' $ac_executable_extensions; do
22189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22190     ac_cv_prog_CC="${ac_tool_prefix}cc"
22191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22192     break 2
22193   fi
22194 done
22195 done
22196
22197 fi
22198 fi
22199 CC=$ac_cv_prog_CC
22200 if test -n "$CC"; then
22201   echo "$as_me:$LINENO: result: $CC" >&5
22202 echo "${ECHO_T}$CC" >&6
22203 else
22204   echo "$as_me:$LINENO: result: no" >&5
22205 echo "${ECHO_T}no" >&6
22206 fi
22207
22208 fi
22209 if test -z "$ac_cv_prog_CC"; then
22210   ac_ct_CC=$CC
22211   # Extract the first word of "cc", so it can be a program name with args.
22212 set dummy cc; ac_word=$2
22213 echo "$as_me:$LINENO: checking for $ac_word" >&5
22214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22216   echo $ECHO_N "(cached) $ECHO_C" >&6
22217 else
22218   if test -n "$ac_ct_CC"; then
22219   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22220 else
22221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22222 for as_dir in $PATH
22223 do
22224   IFS=$as_save_IFS
22225   test -z "$as_dir" && as_dir=.
22226   for ac_exec_ext in '' $ac_executable_extensions; do
22227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22228     ac_cv_prog_ac_ct_CC="cc"
22229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22230     break 2
22231   fi
22232 done
22233 done
22234
22235 fi
22236 fi
22237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22238 if test -n "$ac_ct_CC"; then
22239   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22240 echo "${ECHO_T}$ac_ct_CC" >&6
22241 else
22242   echo "$as_me:$LINENO: result: no" >&5
22243 echo "${ECHO_T}no" >&6
22244 fi
22245
22246   CC=$ac_ct_CC
22247 else
22248   CC="$ac_cv_prog_CC"
22249 fi
22250
22251 fi
22252 if test -z "$CC"; then
22253   # Extract the first word of "cc", so it can be a program name with args.
22254 set dummy cc; ac_word=$2
22255 echo "$as_me:$LINENO: checking for $ac_word" >&5
22256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22257 if test "${ac_cv_prog_CC+set}" = set; then
22258   echo $ECHO_N "(cached) $ECHO_C" >&6
22259 else
22260   if test -n "$CC"; then
22261   ac_cv_prog_CC="$CC" # Let the user override the test.
22262 else
22263   ac_prog_rejected=no
22264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22265 for as_dir in $PATH
22266 do
22267   IFS=$as_save_IFS
22268   test -z "$as_dir" && as_dir=.
22269   for ac_exec_ext in '' $ac_executable_extensions; do
22270   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22271     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22272        ac_prog_rejected=yes
22273        continue
22274      fi
22275     ac_cv_prog_CC="cc"
22276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22277     break 2
22278   fi
22279 done
22280 done
22281
22282 if test $ac_prog_rejected = yes; then
22283   # We found a bogon in the path, so make sure we never use it.
22284   set dummy $ac_cv_prog_CC
22285   shift
22286   if test $# != 0; then
22287     # We chose a different compiler from the bogus one.
22288     # However, it has the same basename, so the bogon will be chosen
22289     # first if we set CC to just the basename; use the full file name.
22290     shift
22291     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22292   fi
22293 fi
22294 fi
22295 fi
22296 CC=$ac_cv_prog_CC
22297 if test -n "$CC"; then
22298   echo "$as_me:$LINENO: result: $CC" >&5
22299 echo "${ECHO_T}$CC" >&6
22300 else
22301   echo "$as_me:$LINENO: result: no" >&5
22302 echo "${ECHO_T}no" >&6
22303 fi
22304
22305 fi
22306 if test -z "$CC"; then
22307   if test -n "$ac_tool_prefix"; then
22308   for ac_prog in cl
22309   do
22310     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22312 echo "$as_me:$LINENO: checking for $ac_word" >&5
22313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22314 if test "${ac_cv_prog_CC+set}" = set; then
22315   echo $ECHO_N "(cached) $ECHO_C" >&6
22316 else
22317   if test -n "$CC"; then
22318   ac_cv_prog_CC="$CC" # Let the user override the test.
22319 else
22320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22321 for as_dir in $PATH
22322 do
22323   IFS=$as_save_IFS
22324   test -z "$as_dir" && as_dir=.
22325   for ac_exec_ext in '' $ac_executable_extensions; do
22326   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22327     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22329     break 2
22330   fi
22331 done
22332 done
22333
22334 fi
22335 fi
22336 CC=$ac_cv_prog_CC
22337 if test -n "$CC"; then
22338   echo "$as_me:$LINENO: result: $CC" >&5
22339 echo "${ECHO_T}$CC" >&6
22340 else
22341   echo "$as_me:$LINENO: result: no" >&5
22342 echo "${ECHO_T}no" >&6
22343 fi
22344
22345     test -n "$CC" && break
22346   done
22347 fi
22348 if test -z "$CC"; then
22349   ac_ct_CC=$CC
22350   for ac_prog in cl
22351 do
22352   # Extract the first word of "$ac_prog", so it can be a program name with args.
22353 set dummy $ac_prog; ac_word=$2
22354 echo "$as_me:$LINENO: checking for $ac_word" >&5
22355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22356 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22357   echo $ECHO_N "(cached) $ECHO_C" >&6
22358 else
22359   if test -n "$ac_ct_CC"; then
22360   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22361 else
22362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22363 for as_dir in $PATH
22364 do
22365   IFS=$as_save_IFS
22366   test -z "$as_dir" && as_dir=.
22367   for ac_exec_ext in '' $ac_executable_extensions; do
22368   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22369     ac_cv_prog_ac_ct_CC="$ac_prog"
22370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22371     break 2
22372   fi
22373 done
22374 done
22375
22376 fi
22377 fi
22378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22379 if test -n "$ac_ct_CC"; then
22380   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22381 echo "${ECHO_T}$ac_ct_CC" >&6
22382 else
22383   echo "$as_me:$LINENO: result: no" >&5
22384 echo "${ECHO_T}no" >&6
22385 fi
22386
22387   test -n "$ac_ct_CC" && break
22388 done
22389
22390   CC=$ac_ct_CC
22391 fi
22392
22393 fi
22394
22395
22396 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22397 See \`config.log' for more details." >&5
22398 echo "$as_me: error: no acceptable C compiler found in \$PATH
22399 See \`config.log' for more details." >&2;}
22400    { (exit 1); exit 1; }; }
22401
22402 # Provide some information about the compiler.
22403 echo "$as_me:$LINENO:" \
22404      "checking for C compiler version" >&5
22405 ac_compiler=`set X $ac_compile; echo $2`
22406 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22407   (eval $ac_compiler --version </dev/null >&5) 2>&5
22408   ac_status=$?
22409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410   (exit $ac_status); }
22411 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22412   (eval $ac_compiler -v </dev/null >&5) 2>&5
22413   ac_status=$?
22414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415   (exit $ac_status); }
22416 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22417   (eval $ac_compiler -V </dev/null >&5) 2>&5
22418   ac_status=$?
22419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420   (exit $ac_status); }
22421
22422 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22423 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22424 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22425   echo $ECHO_N "(cached) $ECHO_C" >&6
22426 else
22427   cat >conftest.$ac_ext <<_ACEOF
22428 /* confdefs.h.  */
22429 _ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h.  */
22433
22434 int
22435 main ()
22436 {
22437 #ifndef __GNUC__
22438        choke me
22439 #endif
22440
22441   ;
22442   return 0;
22443 }
22444 _ACEOF
22445 rm -f conftest.$ac_objext
22446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22447   (eval $ac_compile) 2>conftest.er1
22448   ac_status=$?
22449   grep -v '^ *+' conftest.er1 >conftest.err
22450   rm -f conftest.er1
22451   cat conftest.err >&5
22452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453   (exit $ac_status); } &&
22454          { ac_try='test -z "$ac_c_werror_flag"
22455                          || test ! -s conftest.err'
22456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22457   (eval $ac_try) 2>&5
22458   ac_status=$?
22459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460   (exit $ac_status); }; } &&
22461          { ac_try='test -s conftest.$ac_objext'
22462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22463   (eval $ac_try) 2>&5
22464   ac_status=$?
22465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466   (exit $ac_status); }; }; then
22467   ac_compiler_gnu=yes
22468 else
22469   echo "$as_me: failed program was:" >&5
22470 sed 's/^/| /' conftest.$ac_ext >&5
22471
22472 ac_compiler_gnu=no
22473 fi
22474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22475 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22476
22477 fi
22478 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22479 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22480 GCC=`test $ac_compiler_gnu = yes && echo yes`
22481 ac_test_CFLAGS=${CFLAGS+set}
22482 ac_save_CFLAGS=$CFLAGS
22483 CFLAGS="-g"
22484 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22485 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22486 if test "${ac_cv_prog_cc_g+set}" = set; then
22487   echo $ECHO_N "(cached) $ECHO_C" >&6
22488 else
22489   cat >conftest.$ac_ext <<_ACEOF
22490 /* confdefs.h.  */
22491 _ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h.  */
22495
22496 int
22497 main ()
22498 {
22499
22500   ;
22501   return 0;
22502 }
22503 _ACEOF
22504 rm -f conftest.$ac_objext
22505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22506   (eval $ac_compile) 2>conftest.er1
22507   ac_status=$?
22508   grep -v '^ *+' conftest.er1 >conftest.err
22509   rm -f conftest.er1
22510   cat conftest.err >&5
22511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512   (exit $ac_status); } &&
22513          { ac_try='test -z "$ac_c_werror_flag"
22514                          || test ! -s conftest.err'
22515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22516   (eval $ac_try) 2>&5
22517   ac_status=$?
22518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519   (exit $ac_status); }; } &&
22520          { ac_try='test -s conftest.$ac_objext'
22521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22522   (eval $ac_try) 2>&5
22523   ac_status=$?
22524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525   (exit $ac_status); }; }; then
22526   ac_cv_prog_cc_g=yes
22527 else
22528   echo "$as_me: failed program was:" >&5
22529 sed 's/^/| /' conftest.$ac_ext >&5
22530
22531 ac_cv_prog_cc_g=no
22532 fi
22533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22534 fi
22535 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22536 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22537 if test "$ac_test_CFLAGS" = set; then
22538   CFLAGS=$ac_save_CFLAGS
22539 elif test $ac_cv_prog_cc_g = yes; then
22540   if test "$GCC" = yes; then
22541     CFLAGS="-g -O2"
22542   else
22543     CFLAGS="-g"
22544   fi
22545 else
22546   if test "$GCC" = yes; then
22547     CFLAGS="-O2"
22548   else
22549     CFLAGS=
22550   fi
22551 fi
22552 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22553 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22554 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22555   echo $ECHO_N "(cached) $ECHO_C" >&6
22556 else
22557   ac_cv_prog_cc_stdc=no
22558 ac_save_CC=$CC
22559 cat >conftest.$ac_ext <<_ACEOF
22560 /* confdefs.h.  */
22561 _ACEOF
22562 cat confdefs.h >>conftest.$ac_ext
22563 cat >>conftest.$ac_ext <<_ACEOF
22564 /* end confdefs.h.  */
22565 #include <stdarg.h>
22566 #include <stdio.h>
22567 #include <sys/types.h>
22568 #include <sys/stat.h>
22569 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
22570 struct buf { int x; };
22571 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22572 static char *e (p, i)
22573      char **p;
22574      int i;
22575 {
22576   return p[i];
22577 }
22578 static char *f (char * (*g) (char **, int), char **p, ...)
22579 {
22580   char *s;
22581   va_list v;
22582   va_start (v,p);
22583   s = g (p, va_arg (v,int));
22584   va_end (v);
22585   return s;
22586 }
22587
22588 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
22589    function prototypes and stuff, but not '\xHH' hex character constants.
22590    These don't provoke an error unfortunately, instead are silently treated
22591    as 'x'.  The following induces an error, until -std1 is added to get
22592    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
22593    array size at least.  It's necessary to write '\x00'==0 to get something
22594    that's true only with -std1.  */
22595 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22596
22597 int test (int i, double x);
22598 struct s1 {int (*f) (int a);};
22599 struct s2 {int (*f) (double a);};
22600 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22601 int argc;
22602 char **argv;
22603 int
22604 main ()
22605 {
22606 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
22607   ;
22608   return 0;
22609 }
22610 _ACEOF
22611 # Don't try gcc -ansi; that turns off useful extensions and
22612 # breaks some systems' header files.
22613 # AIX                   -qlanglvl=ansi
22614 # Ultrix and OSF/1      -std1
22615 # HP-UX 10.20 and later -Ae
22616 # HP-UX older versions  -Aa -D_HPUX_SOURCE
22617 # SVR4                  -Xc -D__EXTENSIONS__
22618 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22619 do
22620   CC="$ac_save_CC $ac_arg"
22621   rm -f conftest.$ac_objext
22622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22623   (eval $ac_compile) 2>conftest.er1
22624   ac_status=$?
22625   grep -v '^ *+' conftest.er1 >conftest.err
22626   rm -f conftest.er1
22627   cat conftest.err >&5
22628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629   (exit $ac_status); } &&
22630          { ac_try='test -z "$ac_c_werror_flag"
22631                          || test ! -s conftest.err'
22632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22633   (eval $ac_try) 2>&5
22634   ac_status=$?
22635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636   (exit $ac_status); }; } &&
22637          { ac_try='test -s conftest.$ac_objext'
22638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639   (eval $ac_try) 2>&5
22640   ac_status=$?
22641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642   (exit $ac_status); }; }; then
22643   ac_cv_prog_cc_stdc=$ac_arg
22644 break
22645 else
22646   echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22648
22649 fi
22650 rm -f conftest.err conftest.$ac_objext
22651 done
22652 rm -f conftest.$ac_ext conftest.$ac_objext
22653 CC=$ac_save_CC
22654
22655 fi
22656
22657 case "x$ac_cv_prog_cc_stdc" in
22658   x|xno)
22659     echo "$as_me:$LINENO: result: none needed" >&5
22660 echo "${ECHO_T}none needed" >&6 ;;
22661   *)
22662     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22663 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22664     CC="$CC $ac_cv_prog_cc_stdc" ;;
22665 esac
22666
22667 # Some people use a C++ compiler to compile C.  Since we use `exit',
22668 # in C++ we need to declare it.  In case someone uses the same compiler
22669 # for both compiling C and C++ we need to have the C++ compiler decide
22670 # the declaration of exit, since it's the most demanding environment.
22671 cat >conftest.$ac_ext <<_ACEOF
22672 #ifndef __cplusplus
22673   choke me
22674 #endif
22675 _ACEOF
22676 rm -f conftest.$ac_objext
22677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22678   (eval $ac_compile) 2>conftest.er1
22679   ac_status=$?
22680   grep -v '^ *+' conftest.er1 >conftest.err
22681   rm -f conftest.er1
22682   cat conftest.err >&5
22683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684   (exit $ac_status); } &&
22685          { ac_try='test -z "$ac_c_werror_flag"
22686                          || test ! -s conftest.err'
22687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22688   (eval $ac_try) 2>&5
22689   ac_status=$?
22690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691   (exit $ac_status); }; } &&
22692          { ac_try='test -s conftest.$ac_objext'
22693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22694   (eval $ac_try) 2>&5
22695   ac_status=$?
22696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697   (exit $ac_status); }; }; then
22698   for ac_declaration in \
22699    '' \
22700    'extern "C" void std::exit (int) throw (); using std::exit;' \
22701    'extern "C" void std::exit (int); using std::exit;' \
22702    'extern "C" void exit (int) throw ();' \
22703    'extern "C" void exit (int);' \
22704    'void exit (int);'
22705 do
22706   cat >conftest.$ac_ext <<_ACEOF
22707 /* confdefs.h.  */
22708 _ACEOF
22709 cat confdefs.h >>conftest.$ac_ext
22710 cat >>conftest.$ac_ext <<_ACEOF
22711 /* end confdefs.h.  */
22712 $ac_declaration
22713 #include <stdlib.h>
22714 int
22715 main ()
22716 {
22717 exit (42);
22718   ;
22719   return 0;
22720 }
22721 _ACEOF
22722 rm -f conftest.$ac_objext
22723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22724   (eval $ac_compile) 2>conftest.er1
22725   ac_status=$?
22726   grep -v '^ *+' conftest.er1 >conftest.err
22727   rm -f conftest.er1
22728   cat conftest.err >&5
22729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730   (exit $ac_status); } &&
22731          { ac_try='test -z "$ac_c_werror_flag"
22732                          || test ! -s conftest.err'
22733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734   (eval $ac_try) 2>&5
22735   ac_status=$?
22736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737   (exit $ac_status); }; } &&
22738          { ac_try='test -s conftest.$ac_objext'
22739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740   (eval $ac_try) 2>&5
22741   ac_status=$?
22742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743   (exit $ac_status); }; }; then
22744   :
22745 else
22746   echo "$as_me: failed program was:" >&5
22747 sed 's/^/| /' conftest.$ac_ext >&5
22748
22749 continue
22750 fi
22751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22752   cat >conftest.$ac_ext <<_ACEOF
22753 /* confdefs.h.  */
22754 _ACEOF
22755 cat confdefs.h >>conftest.$ac_ext
22756 cat >>conftest.$ac_ext <<_ACEOF
22757 /* end confdefs.h.  */
22758 $ac_declaration
22759 int
22760 main ()
22761 {
22762 exit (42);
22763   ;
22764   return 0;
22765 }
22766 _ACEOF
22767 rm -f conftest.$ac_objext
22768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22769   (eval $ac_compile) 2>conftest.er1
22770   ac_status=$?
22771   grep -v '^ *+' conftest.er1 >conftest.err
22772   rm -f conftest.er1
22773   cat conftest.err >&5
22774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775   (exit $ac_status); } &&
22776          { ac_try='test -z "$ac_c_werror_flag"
22777                          || test ! -s conftest.err'
22778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779   (eval $ac_try) 2>&5
22780   ac_status=$?
22781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782   (exit $ac_status); }; } &&
22783          { ac_try='test -s conftest.$ac_objext'
22784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22785   (eval $ac_try) 2>&5
22786   ac_status=$?
22787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788   (exit $ac_status); }; }; then
22789   break
22790 else
22791   echo "$as_me: failed program was:" >&5
22792 sed 's/^/| /' conftest.$ac_ext >&5
22793
22794 fi
22795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22796 done
22797 rm -f conftest*
22798 if test -n "$ac_declaration"; then
22799   echo '#ifdef __cplusplus' >>confdefs.h
22800   echo $ac_declaration      >>confdefs.h
22801   echo '#endif'             >>confdefs.h
22802 fi
22803
22804 else
22805   echo "$as_me: failed program was:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22807
22808 fi
22809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22810 ac_ext=c
22811 ac_cpp='$CPP $CPPFLAGS'
22812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22815
22816 depcc="$CC"   am_compiler_list=
22817
22818 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22819 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22820 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22821   echo $ECHO_N "(cached) $ECHO_C" >&6
22822 else
22823   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22824   # We make a subdir and do the tests there.  Otherwise we can end up
22825   # making bogus files that we don't know about and never remove.  For
22826   # instance it was reported that on HP-UX the gcc test will end up
22827   # making a dummy file named `D' -- because `-MD' means `put the output
22828   # in D'.
22829   mkdir conftest.dir
22830   # Copy depcomp to subdir because otherwise we won't find it if we're
22831   # using a relative directory.
22832   cp "$am_depcomp" conftest.dir
22833   cd conftest.dir
22834   # We will build objects and dependencies in a subdirectory because
22835   # it helps to detect inapplicable dependency modes.  For instance
22836   # both Tru64's cc and ICC support -MD to output dependencies as a
22837   # side effect of compilation, but ICC will put the dependencies in
22838   # the current directory while Tru64 will put them in the object
22839   # directory.
22840   mkdir sub
22841
22842   am_cv_CC_dependencies_compiler_type=none
22843   if test "$am_compiler_list" = ""; then
22844      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22845   fi
22846   for depmode in $am_compiler_list; do
22847     # Setup a source with many dependencies, because some compilers
22848     # like to wrap large dependency lists on column 80 (with \), and
22849     # we should not choose a depcomp mode which is confused by this.
22850     #
22851     # We need to recreate these files for each test, as the compiler may
22852     # overwrite some of them when testing with obscure command lines.
22853     # This happens at least with the AIX C compiler.
22854     : > sub/conftest.c
22855     for i in 1 2 3 4 5 6; do
22856       echo '#include "conftst'$i'.h"' >> sub/conftest.c
22857       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22858       # Solaris 8's {/usr,}/bin/sh.
22859       touch sub/conftst$i.h
22860     done
22861     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22862
22863     case $depmode in
22864     nosideeffect)
22865       # after this tag, mechanisms are not by side-effect, so they'll
22866       # only be used when explicitly requested
22867       if test "x$enable_dependency_tracking" = xyes; then
22868         continue
22869       else
22870         break
22871       fi
22872       ;;
22873     none) break ;;
22874     esac
22875     # We check with `-c' and `-o' for the sake of the "dashmstdout"
22876     # mode.  It turns out that the SunPro C++ compiler does not properly
22877     # handle `-M -o', and we need to detect this.
22878     if depmode=$depmode \
22879        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22880        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22881        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22882          >/dev/null 2>conftest.err &&
22883        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22884        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22885        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22886       # icc doesn't choke on unknown options, it will just issue warnings
22887       # or remarks (even with -Werror).  So we grep stderr for any message
22888       # that says an option was ignored or not supported.
22889       # When given -MP, icc 7.0 and 7.1 complain thusly:
22890       #   icc: Command line warning: ignoring option '-M'; no argument required
22891       # The diagnosis changed in icc 8.0:
22892       #   icc: Command line remark: option '-MP' not supported
22893       if (grep 'ignoring option' conftest.err ||
22894           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22895         am_cv_CC_dependencies_compiler_type=$depmode
22896         break
22897       fi
22898     fi
22899   done
22900
22901   cd ..
22902   rm -rf conftest.dir
22903 else
22904   am_cv_CC_dependencies_compiler_type=none
22905 fi
22906
22907 fi
22908 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
22909 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
22910 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
22911
22912
22913
22914 if
22915   test "x$enable_dependency_tracking" != xno \
22916   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
22917   am__fastdepCC_TRUE=
22918   am__fastdepCC_FALSE='#'
22919 else
22920   am__fastdepCC_TRUE='#'
22921   am__fastdepCC_FALSE=
22922 fi
22923
22924
22925 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
22926         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
22927 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
22928    { (exit 1); exit 1; }; }
22929 fi
22930
22931 # test for make depend flag
22932 OL_MKDEP=
22933 OL_MKDEP_FLAGS=
22934 if test -z "${MKDEP}"; then
22935         OL_MKDEP="${CC-cc}"
22936         if test -z "${MKDEP_FLAGS}"; then
22937                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
22938 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
22939 if test "${ol_cv_mkdep+set}" = set; then
22940   echo $ECHO_N "(cached) $ECHO_C" >&6
22941 else
22942
22943                         ol_cv_mkdep=no
22944                         for flag in "-M" "-xM"; do
22945                                 cat > conftest.c <<EOF
22946  noCode;
22947 EOF
22948                                 if { ac_try='$OL_MKDEP $flag conftest.c'
22949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950   (eval $ac_try) 2>&5
22951   ac_status=$?
22952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953   (exit $ac_status); }; } \
22954                                         | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
22955                                 then
22956                                         if test ! -f conftest."${ac_object}" ; then
22957                                                 ol_cv_mkdep=$flag
22958                                                 OL_MKDEP_FLAGS="$flag"
22959                                                 break
22960                                         fi
22961                                 fi
22962                         done
22963                         rm -f conftest*
22964
22965 fi
22966 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
22967 echo "${ECHO_T}$ol_cv_mkdep" >&6
22968         else
22969                 cc_cv_mkdep=yes
22970                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22971         fi
22972 else
22973         cc_cv_mkdep=yes
22974         OL_MKDEP="${MKDEP}"
22975         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22976 fi
22977
22978
22979
22980 if test "${ol_cv_mkdep}" = no ; then
22981         # this will soon become an error
22982         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
22983 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
22984 fi
22985
22986 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
22987 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
22988 if test "${ac_cv_lib_s_afopen+set}" = set; then
22989   echo $ECHO_N "(cached) $ECHO_C" >&6
22990 else
22991   ac_check_lib_save_LIBS=$LIBS
22992 LIBS="-ls  $LIBS"
22993 cat >conftest.$ac_ext <<_ACEOF
22994 /* confdefs.h.  */
22995 _ACEOF
22996 cat confdefs.h >>conftest.$ac_ext
22997 cat >>conftest.$ac_ext <<_ACEOF
22998 /* end confdefs.h.  */
22999
23000 /* Override any gcc2 internal prototype to avoid an error.  */
23001 #ifdef __cplusplus
23002 extern "C"
23003 #endif
23004 /* We use char because int might match the return type of a gcc2
23005    builtin and then its argument prototype would still apply.  */
23006 char afopen ();
23007 int
23008 main ()
23009 {
23010 afopen ();
23011   ;
23012   return 0;
23013 }
23014 _ACEOF
23015 rm -f conftest.$ac_objext conftest$ac_exeext
23016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23017   (eval $ac_link) 2>conftest.er1
23018   ac_status=$?
23019   grep -v '^ *+' conftest.er1 >conftest.err
23020   rm -f conftest.er1
23021   cat conftest.err >&5
23022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023   (exit $ac_status); } &&
23024          { ac_try='test -z "$ac_c_werror_flag"
23025                          || test ! -s conftest.err'
23026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23027   (eval $ac_try) 2>&5
23028   ac_status=$?
23029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030   (exit $ac_status); }; } &&
23031          { ac_try='test -s conftest$ac_exeext'
23032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23033   (eval $ac_try) 2>&5
23034   ac_status=$?
23035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036   (exit $ac_status); }; }; then
23037   ac_cv_lib_s_afopen=yes
23038 else
23039   echo "$as_me: failed program was:" >&5
23040 sed 's/^/| /' conftest.$ac_ext >&5
23041
23042 ac_cv_lib_s_afopen=no
23043 fi
23044 rm -f conftest.err conftest.$ac_objext \
23045       conftest$ac_exeext conftest.$ac_ext
23046 LIBS=$ac_check_lib_save_LIBS
23047 fi
23048 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23049 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23050 if test $ac_cv_lib_s_afopen = yes; then
23051
23052         AUTH_LIBS=-ls
23053
23054 cat >>confdefs.h <<\_ACEOF
23055 #define HAVE_AIX_SECURITY 1
23056 _ACEOF
23057
23058
23059 fi
23060
23061
23062 case "$target" in
23063 *-ibm-openedition)
23064         ac_cv_func_getopt=no
23065
23066 cat >>confdefs.h <<\_ACEOF
23067 #define BOTH_STRINGS_H 1
23068 _ACEOF
23069
23070         ;;
23071 esac
23072
23073 ol_link_modules=no
23074 WITH_MODULES_ENABLED=no
23075 if test $ol_enable_modules != no ; then
23076
23077 for ac_header in ltdl.h
23078 do
23079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23081   echo "$as_me:$LINENO: checking for $ac_header" >&5
23082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23084   echo $ECHO_N "(cached) $ECHO_C" >&6
23085 fi
23086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23088 else
23089   # Is the header compilable?
23090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23092 cat >conftest.$ac_ext <<_ACEOF
23093 /* confdefs.h.  */
23094 _ACEOF
23095 cat confdefs.h >>conftest.$ac_ext
23096 cat >>conftest.$ac_ext <<_ACEOF
23097 /* end confdefs.h.  */
23098 $ac_includes_default
23099 #include <$ac_header>
23100 _ACEOF
23101 rm -f conftest.$ac_objext
23102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23103   (eval $ac_compile) 2>conftest.er1
23104   ac_status=$?
23105   grep -v '^ *+' conftest.er1 >conftest.err
23106   rm -f conftest.er1
23107   cat conftest.err >&5
23108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109   (exit $ac_status); } &&
23110          { ac_try='test -z "$ac_c_werror_flag"
23111                          || test ! -s conftest.err'
23112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23113   (eval $ac_try) 2>&5
23114   ac_status=$?
23115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116   (exit $ac_status); }; } &&
23117          { ac_try='test -s conftest.$ac_objext'
23118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23119   (eval $ac_try) 2>&5
23120   ac_status=$?
23121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122   (exit $ac_status); }; }; then
23123   ac_header_compiler=yes
23124 else
23125   echo "$as_me: failed program was:" >&5
23126 sed 's/^/| /' conftest.$ac_ext >&5
23127
23128 ac_header_compiler=no
23129 fi
23130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23132 echo "${ECHO_T}$ac_header_compiler" >&6
23133
23134 # Is the header present?
23135 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23137 cat >conftest.$ac_ext <<_ACEOF
23138 /* confdefs.h.  */
23139 _ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h.  */
23143 #include <$ac_header>
23144 _ACEOF
23145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23147   ac_status=$?
23148   grep -v '^ *+' conftest.er1 >conftest.err
23149   rm -f conftest.er1
23150   cat conftest.err >&5
23151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152   (exit $ac_status); } >/dev/null; then
23153   if test -s conftest.err; then
23154     ac_cpp_err=$ac_c_preproc_warn_flag
23155     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23156   else
23157     ac_cpp_err=
23158   fi
23159 else
23160   ac_cpp_err=yes
23161 fi
23162 if test -z "$ac_cpp_err"; then
23163   ac_header_preproc=yes
23164 else
23165   echo "$as_me: failed program was:" >&5
23166 sed 's/^/| /' conftest.$ac_ext >&5
23167
23168   ac_header_preproc=no
23169 fi
23170 rm -f conftest.err conftest.$ac_ext
23171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23172 echo "${ECHO_T}$ac_header_preproc" >&6
23173
23174 # So?  What about this header?
23175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23176   yes:no: )
23177     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23181     ac_header_preproc=yes
23182     ;;
23183   no:yes:* )
23184     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23186     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23187 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23188     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23190     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23191 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23194     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23196     (
23197       cat <<\_ASBOX
23198 ## ------------------------------------------ ##
23199 ## Report this to the AC_PACKAGE_NAME lists.  ##
23200 ## ------------------------------------------ ##
23201 _ASBOX
23202     ) |
23203       sed "s/^/$as_me: WARNING:     /" >&2
23204     ;;
23205 esac
23206 echo "$as_me:$LINENO: checking for $ac_header" >&5
23207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23209   echo $ECHO_N "(cached) $ECHO_C" >&6
23210 else
23211   eval "$as_ac_Header=\$ac_header_preproc"
23212 fi
23213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23215
23216 fi
23217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23218   cat >>confdefs.h <<_ACEOF
23219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23220 _ACEOF
23221
23222 fi
23223
23224 done
23225
23226
23227         if test $ac_cv_header_ltdl_h = no ; then
23228                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23229 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23230    { (exit 1); exit 1; }; }
23231         fi
23232
23233         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23234 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23235 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23236   echo $ECHO_N "(cached) $ECHO_C" >&6
23237 else
23238   ac_check_lib_save_LIBS=$LIBS
23239 LIBS="-lltdl  $LIBS"
23240 cat >conftest.$ac_ext <<_ACEOF
23241 /* confdefs.h.  */
23242 _ACEOF
23243 cat confdefs.h >>conftest.$ac_ext
23244 cat >>conftest.$ac_ext <<_ACEOF
23245 /* end confdefs.h.  */
23246
23247 /* Override any gcc2 internal prototype to avoid an error.  */
23248 #ifdef __cplusplus
23249 extern "C"
23250 #endif
23251 /* We use char because int might match the return type of a gcc2
23252    builtin and then its argument prototype would still apply.  */
23253 char lt_dlinit ();
23254 int
23255 main ()
23256 {
23257 lt_dlinit ();
23258   ;
23259   return 0;
23260 }
23261 _ACEOF
23262 rm -f conftest.$ac_objext conftest$ac_exeext
23263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23264   (eval $ac_link) 2>conftest.er1
23265   ac_status=$?
23266   grep -v '^ *+' conftest.er1 >conftest.err
23267   rm -f conftest.er1
23268   cat conftest.err >&5
23269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270   (exit $ac_status); } &&
23271          { ac_try='test -z "$ac_c_werror_flag"
23272                          || test ! -s conftest.err'
23273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23274   (eval $ac_try) 2>&5
23275   ac_status=$?
23276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277   (exit $ac_status); }; } &&
23278          { ac_try='test -s conftest$ac_exeext'
23279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23280   (eval $ac_try) 2>&5
23281   ac_status=$?
23282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283   (exit $ac_status); }; }; then
23284   ac_cv_lib_ltdl_lt_dlinit=yes
23285 else
23286   echo "$as_me: failed program was:" >&5
23287 sed 's/^/| /' conftest.$ac_ext >&5
23288
23289 ac_cv_lib_ltdl_lt_dlinit=no
23290 fi
23291 rm -f conftest.err conftest.$ac_objext \
23292       conftest$ac_exeext conftest.$ac_ext
23293 LIBS=$ac_check_lib_save_LIBS
23294 fi
23295 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23296 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23297 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23298
23299                 MODULES_LIBS=-lltdl
23300
23301 cat >>confdefs.h <<\_ACEOF
23302 #define HAVE_LIBLTDL 1
23303 _ACEOF
23304
23305
23306 fi
23307
23308
23309         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23310                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23311 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23312    { (exit 1); exit 1; }; }
23313         fi
23314         ol_link_modules=yes
23315         WITH_MODULES_ENABLED=yes
23316
23317 else
23318         for i in $Backends; do
23319                 eval "ol_tmp=\$ol_enable_$i"
23320                 if test $ol_tmp = mod ; then
23321                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23322 echo "$as_me: WARNING: building static $i backend" >&2;}
23323                         eval "ol_enable_$i=yes"
23324                 fi
23325         done
23326         for i in $Overlays; do
23327                 eval "ol_tmp=\$ol_enable_$i"
23328                 if test $ol_tmp = mod ; then
23329                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23330 echo "$as_me: WARNING: building static $i overlay" >&2;}
23331                         eval "ol_enable_$i=yes"
23332                 fi
23333         done
23334 fi
23335
23336 # test for EBCDIC
23337 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23338 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23339 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23340   echo $ECHO_N "(cached) $ECHO_C" >&6
23341 else
23342
23343         cat >conftest.$ac_ext <<_ACEOF
23344 /* confdefs.h.  */
23345 _ACEOF
23346 cat confdefs.h >>conftest.$ac_ext
23347 cat >>conftest.$ac_ext <<_ACEOF
23348 /* end confdefs.h.  */
23349
23350 #if !('M' == 0xd4)
23351 #include <__ASCII__/generate_error.h>
23352 #endif
23353
23354 _ACEOF
23355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23356   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23357   ac_status=$?
23358   grep -v '^ *+' conftest.er1 >conftest.err
23359   rm -f conftest.er1
23360   cat conftest.err >&5
23361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362   (exit $ac_status); } >/dev/null; then
23363   if test -s conftest.err; then
23364     ac_cpp_err=$ac_c_preproc_warn_flag
23365     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23366   else
23367     ac_cpp_err=
23368   fi
23369 else
23370   ac_cpp_err=yes
23371 fi
23372 if test -z "$ac_cpp_err"; then
23373   ol_cv_cpp_ebcdic=yes
23374 else
23375   echo "$as_me: failed program was:" >&5
23376 sed 's/^/| /' conftest.$ac_ext >&5
23377
23378   ol_cv_cpp_ebcdic=no
23379 fi
23380 rm -f conftest.err conftest.$ac_ext
23381 fi
23382 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23383 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23384 if test $ol_cv_cpp_ebcdic = yes ; then
23385
23386 cat >>confdefs.h <<\_ACEOF
23387 #define HAVE_EBCDIC 1
23388 _ACEOF
23389
23390 fi
23391
23392 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23393 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23394 if test "${ol_cv_header_stdc+set}" = set; then
23395   echo $ECHO_N "(cached) $ECHO_C" >&6
23396 else
23397   cat >conftest.$ac_ext <<_ACEOF
23398 /* confdefs.h.  */
23399 _ACEOF
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h.  */
23403 #include <stdlib.h>
23404 #include <stdarg.h>
23405 #include <string.h>
23406 #include <float.h>
23407 _ACEOF
23408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23409   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23410   ac_status=$?
23411   grep -v '^ *+' conftest.er1 >conftest.err
23412   rm -f conftest.er1
23413   cat conftest.err >&5
23414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415   (exit $ac_status); } >/dev/null; then
23416   if test -s conftest.err; then
23417     ac_cpp_err=$ac_c_preproc_warn_flag
23418     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23419   else
23420     ac_cpp_err=
23421   fi
23422 else
23423   ac_cpp_err=yes
23424 fi
23425 if test -z "$ac_cpp_err"; then
23426   ol_cv_header_stdc=yes
23427 else
23428   echo "$as_me: failed program was:" >&5
23429 sed 's/^/| /' conftest.$ac_ext >&5
23430
23431   ol_cv_header_stdc=no
23432 fi
23433 rm -f conftest.err conftest.$ac_ext
23434
23435 if test $ol_cv_header_stdc = yes; then
23436   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23437 cat >conftest.$ac_ext <<_ACEOF
23438 /* confdefs.h.  */
23439 _ACEOF
23440 cat confdefs.h >>conftest.$ac_ext
23441 cat >>conftest.$ac_ext <<_ACEOF
23442 /* end confdefs.h.  */
23443 #include <string.h>
23444
23445 _ACEOF
23446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23447   $EGREP "memchr" >/dev/null 2>&1; then
23448   :
23449 else
23450   ol_cv_header_stdc=no
23451 fi
23452 rm -f conftest*
23453
23454 fi
23455
23456 if test $ol_cv_header_stdc = yes; then
23457   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23458 cat >conftest.$ac_ext <<_ACEOF
23459 /* confdefs.h.  */
23460 _ACEOF
23461 cat confdefs.h >>conftest.$ac_ext
23462 cat >>conftest.$ac_ext <<_ACEOF
23463 /* end confdefs.h.  */
23464 #include <stdlib.h>
23465
23466 _ACEOF
23467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23468   $EGREP "free" >/dev/null 2>&1; then
23469   :
23470 else
23471   ol_cv_header_stdc=no
23472 fi
23473 rm -f conftest*
23474
23475 fi
23476
23477 if test $ol_cv_header_stdc = yes; then
23478   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23479 if test "$cross_compiling" = yes; then
23480   :
23481 else
23482   cat >conftest.$ac_ext <<_ACEOF
23483 /* confdefs.h.  */
23484 _ACEOF
23485 cat confdefs.h >>conftest.$ac_ext
23486 cat >>conftest.$ac_ext <<_ACEOF
23487 /* end confdefs.h.  */
23488 #include <ctype.h>
23489 #ifndef HAVE_EBCDIC
23490 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23491 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23492 #else
23493 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23494                 || ('j' <= (c) && (c) <= 'r') \
23495                 || ('s' <= (c) && (c) <= 'z'))
23496 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
23497 #endif
23498 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23499 int main () { int i; for (i = 0; i < 256; i++)
23500 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23501 exit (0); }
23502
23503 _ACEOF
23504 rm -f conftest$ac_exeext
23505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23506   (eval $ac_link) 2>&5
23507   ac_status=$?
23508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23511   (eval $ac_try) 2>&5
23512   ac_status=$?
23513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514   (exit $ac_status); }; }; then
23515   :
23516 else
23517   echo "$as_me: program exited with status $ac_status" >&5
23518 echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23520
23521 ( exit $ac_status )
23522 ol_cv_header_stdc=no
23523 fi
23524 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23525 fi
23526 fi
23527 fi
23528 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23529 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23530 if test $ol_cv_header_stdc = yes; then
23531   cat >>confdefs.h <<\_ACEOF
23532 #define STDC_HEADERS 1
23533 _ACEOF
23534
23535 fi
23536 ac_cv_header_stdc=disable
23537
23538
23539 if test $ol_cv_header_stdc != yes; then
23540         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23541 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23542 fi
23543
23544
23545
23546
23547
23548
23549 ac_header_dirent=no
23550 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23551   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23552 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23553 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23555   echo $ECHO_N "(cached) $ECHO_C" >&6
23556 else
23557   cat >conftest.$ac_ext <<_ACEOF
23558 /* confdefs.h.  */
23559 _ACEOF
23560 cat confdefs.h >>conftest.$ac_ext
23561 cat >>conftest.$ac_ext <<_ACEOF
23562 /* end confdefs.h.  */
23563 #include <sys/types.h>
23564 #include <$ac_hdr>
23565
23566 int
23567 main ()
23568 {
23569 if ((DIR *) 0)
23570 return 0;
23571   ;
23572   return 0;
23573 }
23574 _ACEOF
23575 rm -f conftest.$ac_objext
23576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23577   (eval $ac_compile) 2>conftest.er1
23578   ac_status=$?
23579   grep -v '^ *+' conftest.er1 >conftest.err
23580   rm -f conftest.er1
23581   cat conftest.err >&5
23582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583   (exit $ac_status); } &&
23584          { ac_try='test -z "$ac_c_werror_flag"
23585                          || test ! -s conftest.err'
23586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23587   (eval $ac_try) 2>&5
23588   ac_status=$?
23589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590   (exit $ac_status); }; } &&
23591          { ac_try='test -s conftest.$ac_objext'
23592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23593   (eval $ac_try) 2>&5
23594   ac_status=$?
23595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596   (exit $ac_status); }; }; then
23597   eval "$as_ac_Header=yes"
23598 else
23599   echo "$as_me: failed program was:" >&5
23600 sed 's/^/| /' conftest.$ac_ext >&5
23601
23602 eval "$as_ac_Header=no"
23603 fi
23604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23605 fi
23606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23609   cat >>confdefs.h <<_ACEOF
23610 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23611 _ACEOF
23612
23613 ac_header_dirent=$ac_hdr; break
23614 fi
23615
23616 done
23617 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23618 if test $ac_header_dirent = dirent.h; then
23619   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23620 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23621 if test "${ac_cv_search_opendir+set}" = set; then
23622   echo $ECHO_N "(cached) $ECHO_C" >&6
23623 else
23624   ac_func_search_save_LIBS=$LIBS
23625 ac_cv_search_opendir=no
23626 cat >conftest.$ac_ext <<_ACEOF
23627 /* confdefs.h.  */
23628 _ACEOF
23629 cat confdefs.h >>conftest.$ac_ext
23630 cat >>conftest.$ac_ext <<_ACEOF
23631 /* end confdefs.h.  */
23632
23633 /* Override any gcc2 internal prototype to avoid an error.  */
23634 #ifdef __cplusplus
23635 extern "C"
23636 #endif
23637 /* We use char because int might match the return type of a gcc2
23638    builtin and then its argument prototype would still apply.  */
23639 char opendir ();
23640 int
23641 main ()
23642 {
23643 opendir ();
23644   ;
23645   return 0;
23646 }
23647 _ACEOF
23648 rm -f conftest.$ac_objext conftest$ac_exeext
23649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23650   (eval $ac_link) 2>conftest.er1
23651   ac_status=$?
23652   grep -v '^ *+' conftest.er1 >conftest.err
23653   rm -f conftest.er1
23654   cat conftest.err >&5
23655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656   (exit $ac_status); } &&
23657          { ac_try='test -z "$ac_c_werror_flag"
23658                          || test ! -s conftest.err'
23659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23660   (eval $ac_try) 2>&5
23661   ac_status=$?
23662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663   (exit $ac_status); }; } &&
23664          { ac_try='test -s conftest$ac_exeext'
23665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23666   (eval $ac_try) 2>&5
23667   ac_status=$?
23668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669   (exit $ac_status); }; }; then
23670   ac_cv_search_opendir="none required"
23671 else
23672   echo "$as_me: failed program was:" >&5
23673 sed 's/^/| /' conftest.$ac_ext >&5
23674
23675 fi
23676 rm -f conftest.err conftest.$ac_objext \
23677       conftest$ac_exeext conftest.$ac_ext
23678 if test "$ac_cv_search_opendir" = no; then
23679   for ac_lib in dir; do
23680     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23681     cat >conftest.$ac_ext <<_ACEOF
23682 /* confdefs.h.  */
23683 _ACEOF
23684 cat confdefs.h >>conftest.$ac_ext
23685 cat >>conftest.$ac_ext <<_ACEOF
23686 /* end confdefs.h.  */
23687
23688 /* Override any gcc2 internal prototype to avoid an error.  */
23689 #ifdef __cplusplus
23690 extern "C"
23691 #endif
23692 /* We use char because int might match the return type of a gcc2
23693    builtin and then its argument prototype would still apply.  */
23694 char opendir ();
23695 int
23696 main ()
23697 {
23698 opendir ();
23699   ;
23700   return 0;
23701 }
23702 _ACEOF
23703 rm -f conftest.$ac_objext conftest$ac_exeext
23704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23705   (eval $ac_link) 2>conftest.er1
23706   ac_status=$?
23707   grep -v '^ *+' conftest.er1 >conftest.err
23708   rm -f conftest.er1
23709   cat conftest.err >&5
23710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711   (exit $ac_status); } &&
23712          { ac_try='test -z "$ac_c_werror_flag"
23713                          || test ! -s conftest.err'
23714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23715   (eval $ac_try) 2>&5
23716   ac_status=$?
23717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718   (exit $ac_status); }; } &&
23719          { ac_try='test -s conftest$ac_exeext'
23720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721   (eval $ac_try) 2>&5
23722   ac_status=$?
23723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724   (exit $ac_status); }; }; then
23725   ac_cv_search_opendir="-l$ac_lib"
23726 break
23727 else
23728   echo "$as_me: failed program was:" >&5
23729 sed 's/^/| /' conftest.$ac_ext >&5
23730
23731 fi
23732 rm -f conftest.err conftest.$ac_objext \
23733       conftest$ac_exeext conftest.$ac_ext
23734   done
23735 fi
23736 LIBS=$ac_func_search_save_LIBS
23737 fi
23738 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23739 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23740 if test "$ac_cv_search_opendir" != no; then
23741   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23742
23743 fi
23744
23745 else
23746   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23747 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23748 if test "${ac_cv_search_opendir+set}" = set; then
23749   echo $ECHO_N "(cached) $ECHO_C" >&6
23750 else
23751   ac_func_search_save_LIBS=$LIBS
23752 ac_cv_search_opendir=no
23753 cat >conftest.$ac_ext <<_ACEOF
23754 /* confdefs.h.  */
23755 _ACEOF
23756 cat confdefs.h >>conftest.$ac_ext
23757 cat >>conftest.$ac_ext <<_ACEOF
23758 /* end confdefs.h.  */
23759
23760 /* Override any gcc2 internal prototype to avoid an error.  */
23761 #ifdef __cplusplus
23762 extern "C"
23763 #endif
23764 /* We use char because int might match the return type of a gcc2
23765    builtin and then its argument prototype would still apply.  */
23766 char opendir ();
23767 int
23768 main ()
23769 {
23770 opendir ();
23771   ;
23772   return 0;
23773 }
23774 _ACEOF
23775 rm -f conftest.$ac_objext conftest$ac_exeext
23776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23777   (eval $ac_link) 2>conftest.er1
23778   ac_status=$?
23779   grep -v '^ *+' conftest.er1 >conftest.err
23780   rm -f conftest.er1
23781   cat conftest.err >&5
23782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783   (exit $ac_status); } &&
23784          { ac_try='test -z "$ac_c_werror_flag"
23785                          || test ! -s conftest.err'
23786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23787   (eval $ac_try) 2>&5
23788   ac_status=$?
23789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790   (exit $ac_status); }; } &&
23791          { ac_try='test -s conftest$ac_exeext'
23792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23793   (eval $ac_try) 2>&5
23794   ac_status=$?
23795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796   (exit $ac_status); }; }; then
23797   ac_cv_search_opendir="none required"
23798 else
23799   echo "$as_me: failed program was:" >&5
23800 sed 's/^/| /' conftest.$ac_ext >&5
23801
23802 fi
23803 rm -f conftest.err conftest.$ac_objext \
23804       conftest$ac_exeext conftest.$ac_ext
23805 if test "$ac_cv_search_opendir" = no; then
23806   for ac_lib in x; do
23807     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23808     cat >conftest.$ac_ext <<_ACEOF
23809 /* confdefs.h.  */
23810 _ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h.  */
23814
23815 /* Override any gcc2 internal prototype to avoid an error.  */
23816 #ifdef __cplusplus
23817 extern "C"
23818 #endif
23819 /* We use char because int might match the return type of a gcc2
23820    builtin and then its argument prototype would still apply.  */
23821 char opendir ();
23822 int
23823 main ()
23824 {
23825 opendir ();
23826   ;
23827   return 0;
23828 }
23829 _ACEOF
23830 rm -f conftest.$ac_objext conftest$ac_exeext
23831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23832   (eval $ac_link) 2>conftest.er1
23833   ac_status=$?
23834   grep -v '^ *+' conftest.er1 >conftest.err
23835   rm -f conftest.er1
23836   cat conftest.err >&5
23837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838   (exit $ac_status); } &&
23839          { ac_try='test -z "$ac_c_werror_flag"
23840                          || test ! -s conftest.err'
23841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23842   (eval $ac_try) 2>&5
23843   ac_status=$?
23844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845   (exit $ac_status); }; } &&
23846          { ac_try='test -s conftest$ac_exeext'
23847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23848   (eval $ac_try) 2>&5
23849   ac_status=$?
23850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851   (exit $ac_status); }; }; then
23852   ac_cv_search_opendir="-l$ac_lib"
23853 break
23854 else
23855   echo "$as_me: failed program was:" >&5
23856 sed 's/^/| /' conftest.$ac_ext >&5
23857
23858 fi
23859 rm -f conftest.err conftest.$ac_objext \
23860       conftest$ac_exeext conftest.$ac_ext
23861   done
23862 fi
23863 LIBS=$ac_func_search_save_LIBS
23864 fi
23865 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23866 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23867 if test "$ac_cv_search_opendir" != no; then
23868   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23869
23870 fi
23871
23872 fi
23873
23874 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23875 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
23876 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23877   echo $ECHO_N "(cached) $ECHO_C" >&6
23878 else
23879   cat >conftest.$ac_ext <<_ACEOF
23880 /* confdefs.h.  */
23881 _ACEOF
23882 cat confdefs.h >>conftest.$ac_ext
23883 cat >>conftest.$ac_ext <<_ACEOF
23884 /* end confdefs.h.  */
23885 #include <sys/types.h>
23886 #include <sys/wait.h>
23887 #ifndef WEXITSTATUS
23888 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
23889 #endif
23890 #ifndef WIFEXITED
23891 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23892 #endif
23893
23894 int
23895 main ()
23896 {
23897   int s;
23898   wait (&s);
23899   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23900   ;
23901   return 0;
23902 }
23903 _ACEOF
23904 rm -f conftest.$ac_objext
23905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23906   (eval $ac_compile) 2>conftest.er1
23907   ac_status=$?
23908   grep -v '^ *+' conftest.er1 >conftest.err
23909   rm -f conftest.er1
23910   cat conftest.err >&5
23911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912   (exit $ac_status); } &&
23913          { ac_try='test -z "$ac_c_werror_flag"
23914                          || test ! -s conftest.err'
23915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23916   (eval $ac_try) 2>&5
23917   ac_status=$?
23918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23919   (exit $ac_status); }; } &&
23920          { ac_try='test -s conftest.$ac_objext'
23921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23922   (eval $ac_try) 2>&5
23923   ac_status=$?
23924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925   (exit $ac_status); }; }; then
23926   ac_cv_header_sys_wait_h=yes
23927 else
23928   echo "$as_me: failed program was:" >&5
23929 sed 's/^/| /' conftest.$ac_ext >&5
23930
23931 ac_cv_header_sys_wait_h=no
23932 fi
23933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23934 fi
23935 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23936 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
23937 if test $ac_cv_header_sys_wait_h = yes; then
23938
23939 cat >>confdefs.h <<\_ACEOF
23940 #define HAVE_SYS_WAIT_H 1
23941 _ACEOF
23942
23943 fi
23944
23945 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
23946 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
23947 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
23948   echo $ECHO_N "(cached) $ECHO_C" >&6
23949 else
23950   cat >conftest.$ac_ext <<_ACEOF
23951 /* confdefs.h.  */
23952 _ACEOF
23953 cat confdefs.h >>conftest.$ac_ext
23954 cat >>conftest.$ac_ext <<_ACEOF
23955 /* end confdefs.h.  */
23956 #include <sys/types.h>
23957 #include <termios.h>
23958 #ifdef TIOCGWINSZ
23959   yes
23960 #endif
23961
23962 _ACEOF
23963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23964   $EGREP "yes" >/dev/null 2>&1; then
23965   ac_cv_sys_tiocgwinsz_in_termios_h=yes
23966 else
23967   ac_cv_sys_tiocgwinsz_in_termios_h=no
23968 fi
23969 rm -f conftest*
23970
23971 fi
23972 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
23973 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
23974
23975 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
23976   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
23977 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
23978 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
23979   echo $ECHO_N "(cached) $ECHO_C" >&6
23980 else
23981   cat >conftest.$ac_ext <<_ACEOF
23982 /* confdefs.h.  */
23983 _ACEOF
23984 cat confdefs.h >>conftest.$ac_ext
23985 cat >>conftest.$ac_ext <<_ACEOF
23986 /* end confdefs.h.  */
23987 #include <sys/types.h>
23988 #include <sys/ioctl.h>
23989 #ifdef TIOCGWINSZ
23990   yes
23991 #endif
23992
23993 _ACEOF
23994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23995   $EGREP "yes" >/dev/null 2>&1; then
23996   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
23997 else
23998   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
23999 fi
24000 rm -f conftest*
24001
24002 fi
24003 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24004 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24005
24006   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24007
24008 cat >>confdefs.h <<\_ACEOF
24009 #define GWINSZ_IN_SYS_IOCTL 1
24010 _ACEOF
24011
24012   fi
24013 fi
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028
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 for ac_header in \
24066         arpa/inet.h             \
24067         arpa/nameser.h          \
24068         assert.h                \
24069         bits/types.h            \
24070         conio.h                 \
24071         crypt.h                 \
24072         direct.h                \
24073         errno.h                 \
24074         fcntl.h                 \
24075         filio.h                 \
24076         getopt.h                \
24077         grp.h                   \
24078         io.h                    \
24079         libutil.h               \
24080         limits.h                \
24081         locale.h                \
24082         netinet/tcp.h           \
24083         malloc.h                \
24084         memory.h                \
24085         psap.h                  \
24086         pwd.h                   \
24087         process.h               \
24088         resolv.h                \
24089         sgtty.h                 \
24090         shadow.h                \
24091         stddef.h                \
24092         string.h                \
24093         strings.h               \
24094         sysexits.h              \
24095         sys/file.h              \
24096         sys/filio.h             \
24097         sys/errno.h             \
24098         sys/ioctl.h             \
24099         sys/param.h             \
24100         sys/resource.h          \
24101         sys/select.h            \
24102         sys/socket.h            \
24103         sys/stat.h              \
24104         sys/syslog.h            \
24105         sys/time.h              \
24106         sys/types.h             \
24107         sys/ucred.h             \
24108         sys/uio.h               \
24109         syslog.h                \
24110         termios.h               \
24111         unistd.h                \
24112         utime.h                 \
24113         winsock.h               \
24114         winsock2.h              \
24115
24116 do
24117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24119   echo "$as_me:$LINENO: checking for $ac_header" >&5
24120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24122   echo $ECHO_N "(cached) $ECHO_C" >&6
24123 fi
24124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24126 else
24127   # Is the header compilable?
24128 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24130 cat >conftest.$ac_ext <<_ACEOF
24131 /* confdefs.h.  */
24132 _ACEOF
24133 cat confdefs.h >>conftest.$ac_ext
24134 cat >>conftest.$ac_ext <<_ACEOF
24135 /* end confdefs.h.  */
24136 $ac_includes_default
24137 #include <$ac_header>
24138 _ACEOF
24139 rm -f conftest.$ac_objext
24140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24141   (eval $ac_compile) 2>conftest.er1
24142   ac_status=$?
24143   grep -v '^ *+' conftest.er1 >conftest.err
24144   rm -f conftest.er1
24145   cat conftest.err >&5
24146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147   (exit $ac_status); } &&
24148          { ac_try='test -z "$ac_c_werror_flag"
24149                          || test ! -s conftest.err'
24150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24151   (eval $ac_try) 2>&5
24152   ac_status=$?
24153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154   (exit $ac_status); }; } &&
24155          { ac_try='test -s conftest.$ac_objext'
24156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24157   (eval $ac_try) 2>&5
24158   ac_status=$?
24159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160   (exit $ac_status); }; }; then
24161   ac_header_compiler=yes
24162 else
24163   echo "$as_me: failed program was:" >&5
24164 sed 's/^/| /' conftest.$ac_ext >&5
24165
24166 ac_header_compiler=no
24167 fi
24168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24169 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24170 echo "${ECHO_T}$ac_header_compiler" >&6
24171
24172 # Is the header present?
24173 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24175 cat >conftest.$ac_ext <<_ACEOF
24176 /* confdefs.h.  */
24177 _ACEOF
24178 cat confdefs.h >>conftest.$ac_ext
24179 cat >>conftest.$ac_ext <<_ACEOF
24180 /* end confdefs.h.  */
24181 #include <$ac_header>
24182 _ACEOF
24183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24184   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24185   ac_status=$?
24186   grep -v '^ *+' conftest.er1 >conftest.err
24187   rm -f conftest.er1
24188   cat conftest.err >&5
24189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190   (exit $ac_status); } >/dev/null; then
24191   if test -s conftest.err; then
24192     ac_cpp_err=$ac_c_preproc_warn_flag
24193     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24194   else
24195     ac_cpp_err=
24196   fi
24197 else
24198   ac_cpp_err=yes
24199 fi
24200 if test -z "$ac_cpp_err"; then
24201   ac_header_preproc=yes
24202 else
24203   echo "$as_me: failed program was:" >&5
24204 sed 's/^/| /' conftest.$ac_ext >&5
24205
24206   ac_header_preproc=no
24207 fi
24208 rm -f conftest.err conftest.$ac_ext
24209 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24210 echo "${ECHO_T}$ac_header_preproc" >&6
24211
24212 # So?  What about this header?
24213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24214   yes:no: )
24215     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24217     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24219     ac_header_preproc=yes
24220     ;;
24221   no:yes:* )
24222     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24224     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24225 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24226     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24228     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24229 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24230     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24232     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24234     (
24235       cat <<\_ASBOX
24236 ## ------------------------------------------ ##
24237 ## Report this to the AC_PACKAGE_NAME lists.  ##
24238 ## ------------------------------------------ ##
24239 _ASBOX
24240     ) |
24241       sed "s/^/$as_me: WARNING:     /" >&2
24242     ;;
24243 esac
24244 echo "$as_me:$LINENO: checking for $ac_header" >&5
24245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24247   echo $ECHO_N "(cached) $ECHO_C" >&6
24248 else
24249   eval "$as_ac_Header=\$ac_header_preproc"
24250 fi
24251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24253
24254 fi
24255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24256   cat >>confdefs.h <<_ACEOF
24257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24258 _ACEOF
24259
24260 fi
24261
24262 done
24263
24264
24265
24266
24267
24268 for ac_func in sigaction sigset
24269 do
24270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24271 echo "$as_me:$LINENO: checking for $ac_func" >&5
24272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24273 if eval "test \"\${$as_ac_var+set}\" = set"; then
24274   echo $ECHO_N "(cached) $ECHO_C" >&6
24275 else
24276   cat >conftest.$ac_ext <<_ACEOF
24277 /* confdefs.h.  */
24278 _ACEOF
24279 cat confdefs.h >>conftest.$ac_ext
24280 cat >>conftest.$ac_ext <<_ACEOF
24281 /* end confdefs.h.  */
24282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24284 #define $ac_func innocuous_$ac_func
24285
24286 /* System header to define __stub macros and hopefully few prototypes,
24287     which can conflict with char $ac_func (); below.
24288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24289     <limits.h> exists even on freestanding compilers.  */
24290
24291 #ifdef __STDC__
24292 # include <limits.h>
24293 #else
24294 # include <assert.h>
24295 #endif
24296
24297 #undef $ac_func
24298
24299 /* Override any gcc2 internal prototype to avoid an error.  */
24300 #ifdef __cplusplus
24301 extern "C"
24302 {
24303 #endif
24304 /* We use char because int might match the return type of a gcc2
24305    builtin and then its argument prototype would still apply.  */
24306 char $ac_func ();
24307 /* The GNU C library defines this for functions which it implements
24308     to always fail with ENOSYS.  Some functions are actually named
24309     something starting with __ and the normal name is an alias.  */
24310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24311 choke me
24312 #else
24313 char (*f) () = $ac_func;
24314 #endif
24315 #ifdef __cplusplus
24316 }
24317 #endif
24318
24319 int
24320 main ()
24321 {
24322 return f != $ac_func;
24323   ;
24324   return 0;
24325 }
24326 _ACEOF
24327 rm -f conftest.$ac_objext conftest$ac_exeext
24328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24329   (eval $ac_link) 2>conftest.er1
24330   ac_status=$?
24331   grep -v '^ *+' conftest.er1 >conftest.err
24332   rm -f conftest.er1
24333   cat conftest.err >&5
24334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335   (exit $ac_status); } &&
24336          { ac_try='test -z "$ac_c_werror_flag"
24337                          || test ! -s conftest.err'
24338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24339   (eval $ac_try) 2>&5
24340   ac_status=$?
24341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342   (exit $ac_status); }; } &&
24343          { ac_try='test -s conftest$ac_exeext'
24344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24345   (eval $ac_try) 2>&5
24346   ac_status=$?
24347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348   (exit $ac_status); }; }; then
24349   eval "$as_ac_var=yes"
24350 else
24351   echo "$as_me: failed program was:" >&5
24352 sed 's/^/| /' conftest.$ac_ext >&5
24353
24354 eval "$as_ac_var=no"
24355 fi
24356 rm -f conftest.err conftest.$ac_objext \
24357       conftest$ac_exeext conftest.$ac_ext
24358 fi
24359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24361 if test `eval echo '${'$as_ac_var'}'` = yes; then
24362   cat >>confdefs.h <<_ACEOF
24363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24364 _ACEOF
24365
24366 fi
24367 done
24368
24369
24370 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24371
24372 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24373 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24374 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24375   echo $ECHO_N "(cached) $ECHO_C" >&6
24376 else
24377   ac_check_lib_save_LIBS=$LIBS
24378 LIBS="-lV3  $LIBS"
24379 cat >conftest.$ac_ext <<_ACEOF
24380 /* confdefs.h.  */
24381 _ACEOF
24382 cat confdefs.h >>conftest.$ac_ext
24383 cat >>conftest.$ac_ext <<_ACEOF
24384 /* end confdefs.h.  */
24385
24386 /* Override any gcc2 internal prototype to avoid an error.  */
24387 #ifdef __cplusplus
24388 extern "C"
24389 #endif
24390 /* We use char because int might match the return type of a gcc2
24391    builtin and then its argument prototype would still apply.  */
24392 char sigset ();
24393 int
24394 main ()
24395 {
24396 sigset ();
24397   ;
24398   return 0;
24399 }
24400 _ACEOF
24401 rm -f conftest.$ac_objext conftest$ac_exeext
24402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24403   (eval $ac_link) 2>conftest.er1
24404   ac_status=$?
24405   grep -v '^ *+' conftest.er1 >conftest.err
24406   rm -f conftest.er1
24407   cat conftest.err >&5
24408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409   (exit $ac_status); } &&
24410          { ac_try='test -z "$ac_c_werror_flag"
24411                          || test ! -s conftest.err'
24412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24413   (eval $ac_try) 2>&5
24414   ac_status=$?
24415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416   (exit $ac_status); }; } &&
24417          { ac_try='test -s conftest$ac_exeext'
24418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24419   (eval $ac_try) 2>&5
24420   ac_status=$?
24421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422   (exit $ac_status); }; }; then
24423   ac_cv_lib_V3_sigset=yes
24424 else
24425   echo "$as_me: failed program was:" >&5
24426 sed 's/^/| /' conftest.$ac_ext >&5
24427
24428 ac_cv_lib_V3_sigset=no
24429 fi
24430 rm -f conftest.err conftest.$ac_objext \
24431       conftest$ac_exeext conftest.$ac_ext
24432 LIBS=$ac_check_lib_save_LIBS
24433 fi
24434 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24435 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24436 if test $ac_cv_lib_V3_sigset = yes; then
24437   cat >>confdefs.h <<_ACEOF
24438 #define HAVE_LIBV3 1
24439 _ACEOF
24440
24441   LIBS="-lV3 $LIBS"
24442
24443 fi
24444
24445 fi
24446
24447 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24448 echo "$as_me:$LINENO: checking for winsock" >&5
24449 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24450 if test "${ol_cv_winsock+set}" = set; then
24451   echo $ECHO_N "(cached) $ECHO_C" >&6
24452 else
24453   save_LIBS="$LIBS"
24454 for curlib in ws2_32 wsock32; do
24455         LIBS="$LIBS -l$curlib"
24456         cat >conftest.$ac_ext <<_ACEOF
24457 /* confdefs.h.  */
24458 _ACEOF
24459 cat confdefs.h >>conftest.$ac_ext
24460 cat >>conftest.$ac_ext <<_ACEOF
24461 /* end confdefs.h.  */
24462 #include <winsock.h>
24463
24464 int
24465 main ()
24466 {
24467
24468                         socket(0,0,0);
24469                         select(0,NULL,NULL,NULL,NULL);
24470                         closesocket(0);
24471                         gethostname(NULL,0);
24472
24473   ;
24474   return 0;
24475 }
24476 _ACEOF
24477 rm -f conftest.$ac_objext conftest$ac_exeext
24478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24479   (eval $ac_link) 2>conftest.er1
24480   ac_status=$?
24481   grep -v '^ *+' conftest.er1 >conftest.err
24482   rm -f conftest.er1
24483   cat conftest.err >&5
24484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485   (exit $ac_status); } &&
24486          { ac_try='test -z "$ac_c_werror_flag"
24487                          || test ! -s conftest.err'
24488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24489   (eval $ac_try) 2>&5
24490   ac_status=$?
24491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492   (exit $ac_status); }; } &&
24493          { ac_try='test -s conftest$ac_exeext'
24494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24495   (eval $ac_try) 2>&5
24496   ac_status=$?
24497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24498   (exit $ac_status); }; }; then
24499   ol_cv_winsock=yes
24500 else
24501   echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24503
24504 ol_cv_winsock=no
24505 fi
24506 rm -f conftest.err conftest.$ac_objext \
24507       conftest$ac_exeext conftest.$ac_ext
24508
24509         if test $ol_cv_winsock = yes; then
24510
24511 cat >>confdefs.h <<\_ACEOF
24512 #define HAVE_WINSOCK 1
24513 _ACEOF
24514
24515                 ac_cv_func_socket=yes
24516                 ac_cv_func_select=yes
24517                 ac_cv_func_closesocket=yes
24518                 ac_cv_func_gethostname=yes
24519                 if test $curlib = ws2_32; then
24520                         ol_cv_winsock=winsock2
24521
24522 cat >>confdefs.h <<\_ACEOF
24523 #define HAVE_WINSOCK2 1
24524 _ACEOF
24525
24526                 fi
24527                 break
24528         fi
24529         LIBS="$save_LIBS"
24530 done
24531 fi
24532 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24533 echo "${ECHO_T}$ol_cv_winsock" >&6
24534 fi
24535
24536
24537 echo "$as_me:$LINENO: checking for socket" >&5
24538 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24539 if test "${ac_cv_func_socket+set}" = set; then
24540   echo $ECHO_N "(cached) $ECHO_C" >&6
24541 else
24542   cat >conftest.$ac_ext <<_ACEOF
24543 /* confdefs.h.  */
24544 _ACEOF
24545 cat confdefs.h >>conftest.$ac_ext
24546 cat >>conftest.$ac_ext <<_ACEOF
24547 /* end confdefs.h.  */
24548 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24550 #define socket innocuous_socket
24551
24552 /* System header to define __stub macros and hopefully few prototypes,
24553     which can conflict with char socket (); below.
24554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24555     <limits.h> exists even on freestanding compilers.  */
24556
24557 #ifdef __STDC__
24558 # include <limits.h>
24559 #else
24560 # include <assert.h>
24561 #endif
24562
24563 #undef socket
24564
24565 /* Override any gcc2 internal prototype to avoid an error.  */
24566 #ifdef __cplusplus
24567 extern "C"
24568 {
24569 #endif
24570 /* We use char because int might match the return type of a gcc2
24571    builtin and then its argument prototype would still apply.  */
24572 char socket ();
24573 /* The GNU C library defines this for functions which it implements
24574     to always fail with ENOSYS.  Some functions are actually named
24575     something starting with __ and the normal name is an alias.  */
24576 #if defined (__stub_socket) || defined (__stub___socket)
24577 choke me
24578 #else
24579 char (*f) () = socket;
24580 #endif
24581 #ifdef __cplusplus
24582 }
24583 #endif
24584
24585 int
24586 main ()
24587 {
24588 return f != socket;
24589   ;
24590   return 0;
24591 }
24592 _ACEOF
24593 rm -f conftest.$ac_objext conftest$ac_exeext
24594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24595   (eval $ac_link) 2>conftest.er1
24596   ac_status=$?
24597   grep -v '^ *+' conftest.er1 >conftest.err
24598   rm -f conftest.er1
24599   cat conftest.err >&5
24600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601   (exit $ac_status); } &&
24602          { ac_try='test -z "$ac_c_werror_flag"
24603                          || test ! -s conftest.err'
24604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24605   (eval $ac_try) 2>&5
24606   ac_status=$?
24607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608   (exit $ac_status); }; } &&
24609          { ac_try='test -s conftest$ac_exeext'
24610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24611   (eval $ac_try) 2>&5
24612   ac_status=$?
24613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614   (exit $ac_status); }; }; then
24615   ac_cv_func_socket=yes
24616 else
24617   echo "$as_me: failed program was:" >&5
24618 sed 's/^/| /' conftest.$ac_ext >&5
24619
24620 ac_cv_func_socket=no
24621 fi
24622 rm -f conftest.err conftest.$ac_objext \
24623       conftest$ac_exeext conftest.$ac_ext
24624 fi
24625 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24626 echo "${ECHO_T}$ac_cv_func_socket" >&6
24627 if test $ac_cv_func_socket = yes; then
24628   :
24629 else
24630
24631
24632 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24633 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24634 if test "${ac_cv_lib_socket_main+set}" = set; then
24635   echo $ECHO_N "(cached) $ECHO_C" >&6
24636 else
24637   ac_check_lib_save_LIBS=$LIBS
24638 LIBS="-lsocket  $LIBS"
24639 cat >conftest.$ac_ext <<_ACEOF
24640 /* confdefs.h.  */
24641 _ACEOF
24642 cat confdefs.h >>conftest.$ac_ext
24643 cat >>conftest.$ac_ext <<_ACEOF
24644 /* end confdefs.h.  */
24645
24646
24647 int
24648 main ()
24649 {
24650 main ();
24651   ;
24652   return 0;
24653 }
24654 _ACEOF
24655 rm -f conftest.$ac_objext conftest$ac_exeext
24656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24657   (eval $ac_link) 2>conftest.er1
24658   ac_status=$?
24659   grep -v '^ *+' conftest.er1 >conftest.err
24660   rm -f conftest.er1
24661   cat conftest.err >&5
24662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663   (exit $ac_status); } &&
24664          { ac_try='test -z "$ac_c_werror_flag"
24665                          || test ! -s conftest.err'
24666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24667   (eval $ac_try) 2>&5
24668   ac_status=$?
24669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670   (exit $ac_status); }; } &&
24671          { ac_try='test -s conftest$ac_exeext'
24672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24673   (eval $ac_try) 2>&5
24674   ac_status=$?
24675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676   (exit $ac_status); }; }; then
24677   ac_cv_lib_socket_main=yes
24678 else
24679   echo "$as_me: failed program was:" >&5
24680 sed 's/^/| /' conftest.$ac_ext >&5
24681
24682 ac_cv_lib_socket_main=no
24683 fi
24684 rm -f conftest.err conftest.$ac_objext \
24685       conftest$ac_exeext conftest.$ac_ext
24686 LIBS=$ac_check_lib_save_LIBS
24687 fi
24688 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24689 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24690 if test $ac_cv_lib_socket_main = yes; then
24691   cat >>confdefs.h <<_ACEOF
24692 #define HAVE_LIBSOCKET 1
24693 _ACEOF
24694
24695   LIBS="-lsocket $LIBS"
24696
24697 fi
24698
24699
24700 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24701 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24702 if test "${ac_cv_lib_net_main+set}" = set; then
24703   echo $ECHO_N "(cached) $ECHO_C" >&6
24704 else
24705   ac_check_lib_save_LIBS=$LIBS
24706 LIBS="-lnet  $LIBS"
24707 cat >conftest.$ac_ext <<_ACEOF
24708 /* confdefs.h.  */
24709 _ACEOF
24710 cat confdefs.h >>conftest.$ac_ext
24711 cat >>conftest.$ac_ext <<_ACEOF
24712 /* end confdefs.h.  */
24713
24714
24715 int
24716 main ()
24717 {
24718 main ();
24719   ;
24720   return 0;
24721 }
24722 _ACEOF
24723 rm -f conftest.$ac_objext conftest$ac_exeext
24724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24725   (eval $ac_link) 2>conftest.er1
24726   ac_status=$?
24727   grep -v '^ *+' conftest.er1 >conftest.err
24728   rm -f conftest.er1
24729   cat conftest.err >&5
24730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731   (exit $ac_status); } &&
24732          { ac_try='test -z "$ac_c_werror_flag"
24733                          || test ! -s conftest.err'
24734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24735   (eval $ac_try) 2>&5
24736   ac_status=$?
24737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738   (exit $ac_status); }; } &&
24739          { ac_try='test -s conftest$ac_exeext'
24740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24741   (eval $ac_try) 2>&5
24742   ac_status=$?
24743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744   (exit $ac_status); }; }; then
24745   ac_cv_lib_net_main=yes
24746 else
24747   echo "$as_me: failed program was:" >&5
24748 sed 's/^/| /' conftest.$ac_ext >&5
24749
24750 ac_cv_lib_net_main=no
24751 fi
24752 rm -f conftest.err conftest.$ac_objext \
24753       conftest$ac_exeext conftest.$ac_ext
24754 LIBS=$ac_check_lib_save_LIBS
24755 fi
24756 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
24757 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
24758 if test $ac_cv_lib_net_main = yes; then
24759   cat >>confdefs.h <<_ACEOF
24760 #define HAVE_LIBNET 1
24761 _ACEOF
24762
24763   LIBS="-lnet $LIBS"
24764
24765 fi
24766
24767
24768 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
24769 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
24770 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
24771   echo $ECHO_N "(cached) $ECHO_C" >&6
24772 else
24773   ac_check_lib_save_LIBS=$LIBS
24774 LIBS="-lnsl_s  $LIBS"
24775 cat >conftest.$ac_ext <<_ACEOF
24776 /* confdefs.h.  */
24777 _ACEOF
24778 cat confdefs.h >>conftest.$ac_ext
24779 cat >>conftest.$ac_ext <<_ACEOF
24780 /* end confdefs.h.  */
24781
24782
24783 int
24784 main ()
24785 {
24786 main ();
24787   ;
24788   return 0;
24789 }
24790 _ACEOF
24791 rm -f conftest.$ac_objext conftest$ac_exeext
24792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24793   (eval $ac_link) 2>conftest.er1
24794   ac_status=$?
24795   grep -v '^ *+' conftest.er1 >conftest.err
24796   rm -f conftest.er1
24797   cat conftest.err >&5
24798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799   (exit $ac_status); } &&
24800          { ac_try='test -z "$ac_c_werror_flag"
24801                          || test ! -s conftest.err'
24802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24803   (eval $ac_try) 2>&5
24804   ac_status=$?
24805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806   (exit $ac_status); }; } &&
24807          { ac_try='test -s conftest$ac_exeext'
24808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24809   (eval $ac_try) 2>&5
24810   ac_status=$?
24811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812   (exit $ac_status); }; }; then
24813   ac_cv_lib_nsl_s_main=yes
24814 else
24815   echo "$as_me: failed program was:" >&5
24816 sed 's/^/| /' conftest.$ac_ext >&5
24817
24818 ac_cv_lib_nsl_s_main=no
24819 fi
24820 rm -f conftest.err conftest.$ac_objext \
24821       conftest$ac_exeext conftest.$ac_ext
24822 LIBS=$ac_check_lib_save_LIBS
24823 fi
24824 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
24825 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
24826 if test $ac_cv_lib_nsl_s_main = yes; then
24827   cat >>confdefs.h <<_ACEOF
24828 #define HAVE_LIBNSL_S 1
24829 _ACEOF
24830
24831   LIBS="-lnsl_s $LIBS"
24832
24833 fi
24834
24835
24836 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24837 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24838 if test "${ac_cv_lib_nsl_main+set}" = set; then
24839   echo $ECHO_N "(cached) $ECHO_C" >&6
24840 else
24841   ac_check_lib_save_LIBS=$LIBS
24842 LIBS="-lnsl  $LIBS"
24843 cat >conftest.$ac_ext <<_ACEOF
24844 /* confdefs.h.  */
24845 _ACEOF
24846 cat confdefs.h >>conftest.$ac_ext
24847 cat >>conftest.$ac_ext <<_ACEOF
24848 /* end confdefs.h.  */
24849
24850
24851 int
24852 main ()
24853 {
24854 main ();
24855   ;
24856   return 0;
24857 }
24858 _ACEOF
24859 rm -f conftest.$ac_objext conftest$ac_exeext
24860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24861   (eval $ac_link) 2>conftest.er1
24862   ac_status=$?
24863   grep -v '^ *+' conftest.er1 >conftest.err
24864   rm -f conftest.er1
24865   cat conftest.err >&5
24866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24867   (exit $ac_status); } &&
24868          { ac_try='test -z "$ac_c_werror_flag"
24869                          || test ! -s conftest.err'
24870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24871   (eval $ac_try) 2>&5
24872   ac_status=$?
24873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874   (exit $ac_status); }; } &&
24875          { ac_try='test -s conftest$ac_exeext'
24876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24877   (eval $ac_try) 2>&5
24878   ac_status=$?
24879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880   (exit $ac_status); }; }; then
24881   ac_cv_lib_nsl_main=yes
24882 else
24883   echo "$as_me: failed program was:" >&5
24884 sed 's/^/| /' conftest.$ac_ext >&5
24885
24886 ac_cv_lib_nsl_main=no
24887 fi
24888 rm -f conftest.err conftest.$ac_objext \
24889       conftest$ac_exeext conftest.$ac_ext
24890 LIBS=$ac_check_lib_save_LIBS
24891 fi
24892 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24893 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24894 if test $ac_cv_lib_nsl_main = yes; then
24895   cat >>confdefs.h <<_ACEOF
24896 #define HAVE_LIBNSL 1
24897 _ACEOF
24898
24899   LIBS="-lnsl $LIBS"
24900
24901 fi
24902
24903
24904 echo "$as_me:$LINENO: checking for socket in -linet" >&5
24905 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
24906 if test "${ac_cv_lib_inet_socket+set}" = set; then
24907   echo $ECHO_N "(cached) $ECHO_C" >&6
24908 else
24909   ac_check_lib_save_LIBS=$LIBS
24910 LIBS="-linet  $LIBS"
24911 cat >conftest.$ac_ext <<_ACEOF
24912 /* confdefs.h.  */
24913 _ACEOF
24914 cat confdefs.h >>conftest.$ac_ext
24915 cat >>conftest.$ac_ext <<_ACEOF
24916 /* end confdefs.h.  */
24917
24918 /* Override any gcc2 internal prototype to avoid an error.  */
24919 #ifdef __cplusplus
24920 extern "C"
24921 #endif
24922 /* We use char because int might match the return type of a gcc2
24923    builtin and then its argument prototype would still apply.  */
24924 char socket ();
24925 int
24926 main ()
24927 {
24928 socket ();
24929   ;
24930   return 0;
24931 }
24932 _ACEOF
24933 rm -f conftest.$ac_objext conftest$ac_exeext
24934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24935   (eval $ac_link) 2>conftest.er1
24936   ac_status=$?
24937   grep -v '^ *+' conftest.er1 >conftest.err
24938   rm -f conftest.er1
24939   cat conftest.err >&5
24940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941   (exit $ac_status); } &&
24942          { ac_try='test -z "$ac_c_werror_flag"
24943                          || test ! -s conftest.err'
24944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24945   (eval $ac_try) 2>&5
24946   ac_status=$?
24947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948   (exit $ac_status); }; } &&
24949          { ac_try='test -s conftest$ac_exeext'
24950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24951   (eval $ac_try) 2>&5
24952   ac_status=$?
24953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954   (exit $ac_status); }; }; then
24955   ac_cv_lib_inet_socket=yes
24956 else
24957   echo "$as_me: failed program was:" >&5
24958 sed 's/^/| /' conftest.$ac_ext >&5
24959
24960 ac_cv_lib_inet_socket=no
24961 fi
24962 rm -f conftest.err conftest.$ac_objext \
24963       conftest$ac_exeext conftest.$ac_ext
24964 LIBS=$ac_check_lib_save_LIBS
24965 fi
24966 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
24967 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
24968 if test $ac_cv_lib_inet_socket = yes; then
24969   cat >>confdefs.h <<_ACEOF
24970 #define HAVE_LIBINET 1
24971 _ACEOF
24972
24973   LIBS="-linet $LIBS"
24974
24975 fi
24976
24977
24978 echo "$as_me:$LINENO: checking for main in -lgen" >&5
24979 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
24980 if test "${ac_cv_lib_gen_main+set}" = set; then
24981   echo $ECHO_N "(cached) $ECHO_C" >&6
24982 else
24983   ac_check_lib_save_LIBS=$LIBS
24984 LIBS="-lgen  $LIBS"
24985 cat >conftest.$ac_ext <<_ACEOF
24986 /* confdefs.h.  */
24987 _ACEOF
24988 cat confdefs.h >>conftest.$ac_ext
24989 cat >>conftest.$ac_ext <<_ACEOF
24990 /* end confdefs.h.  */
24991
24992
24993 int
24994 main ()
24995 {
24996 main ();
24997   ;
24998   return 0;
24999 }
25000 _ACEOF
25001 rm -f conftest.$ac_objext conftest$ac_exeext
25002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25003   (eval $ac_link) 2>conftest.er1
25004   ac_status=$?
25005   grep -v '^ *+' conftest.er1 >conftest.err
25006   rm -f conftest.er1
25007   cat conftest.err >&5
25008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009   (exit $ac_status); } &&
25010          { ac_try='test -z "$ac_c_werror_flag"
25011                          || test ! -s conftest.err'
25012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25013   (eval $ac_try) 2>&5
25014   ac_status=$?
25015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016   (exit $ac_status); }; } &&
25017          { ac_try='test -s conftest$ac_exeext'
25018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25019   (eval $ac_try) 2>&5
25020   ac_status=$?
25021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022   (exit $ac_status); }; }; then
25023   ac_cv_lib_gen_main=yes
25024 else
25025   echo "$as_me: failed program was:" >&5
25026 sed 's/^/| /' conftest.$ac_ext >&5
25027
25028 ac_cv_lib_gen_main=no
25029 fi
25030 rm -f conftest.err conftest.$ac_objext \
25031       conftest$ac_exeext conftest.$ac_ext
25032 LIBS=$ac_check_lib_save_LIBS
25033 fi
25034 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25035 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25036 if test $ac_cv_lib_gen_main = yes; then
25037   cat >>confdefs.h <<_ACEOF
25038 #define HAVE_LIBGEN 1
25039 _ACEOF
25040
25041   LIBS="-lgen $LIBS"
25042
25043 fi
25044
25045
25046 fi
25047
25048
25049 echo "$as_me:$LINENO: checking for select" >&5
25050 echo $ECHO_N "checking for select... $ECHO_C" >&6
25051 if test "${ac_cv_func_select+set}" = set; then
25052   echo $ECHO_N "(cached) $ECHO_C" >&6
25053 else
25054   cat >conftest.$ac_ext <<_ACEOF
25055 /* confdefs.h.  */
25056 _ACEOF
25057 cat confdefs.h >>conftest.$ac_ext
25058 cat >>conftest.$ac_ext <<_ACEOF
25059 /* end confdefs.h.  */
25060 /* Define select to an innocuous variant, in case <limits.h> declares select.
25061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25062 #define select innocuous_select
25063
25064 /* System header to define __stub macros and hopefully few prototypes,
25065     which can conflict with char select (); below.
25066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25067     <limits.h> exists even on freestanding compilers.  */
25068
25069 #ifdef __STDC__
25070 # include <limits.h>
25071 #else
25072 # include <assert.h>
25073 #endif
25074
25075 #undef select
25076
25077 /* Override any gcc2 internal prototype to avoid an error.  */
25078 #ifdef __cplusplus
25079 extern "C"
25080 {
25081 #endif
25082 /* We use char because int might match the return type of a gcc2
25083    builtin and then its argument prototype would still apply.  */
25084 char select ();
25085 /* The GNU C library defines this for functions which it implements
25086     to always fail with ENOSYS.  Some functions are actually named
25087     something starting with __ and the normal name is an alias.  */
25088 #if defined (__stub_select) || defined (__stub___select)
25089 choke me
25090 #else
25091 char (*f) () = select;
25092 #endif
25093 #ifdef __cplusplus
25094 }
25095 #endif
25096
25097 int
25098 main ()
25099 {
25100 return f != select;
25101   ;
25102   return 0;
25103 }
25104 _ACEOF
25105 rm -f conftest.$ac_objext conftest$ac_exeext
25106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25107   (eval $ac_link) 2>conftest.er1
25108   ac_status=$?
25109   grep -v '^ *+' conftest.er1 >conftest.err
25110   rm -f conftest.er1
25111   cat conftest.err >&5
25112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113   (exit $ac_status); } &&
25114          { ac_try='test -z "$ac_c_werror_flag"
25115                          || test ! -s conftest.err'
25116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25117   (eval $ac_try) 2>&5
25118   ac_status=$?
25119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25120   (exit $ac_status); }; } &&
25121          { ac_try='test -s conftest$ac_exeext'
25122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25123   (eval $ac_try) 2>&5
25124   ac_status=$?
25125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126   (exit $ac_status); }; }; then
25127   ac_cv_func_select=yes
25128 else
25129   echo "$as_me: failed program was:" >&5
25130 sed 's/^/| /' conftest.$ac_ext >&5
25131
25132 ac_cv_func_select=no
25133 fi
25134 rm -f conftest.err conftest.$ac_objext \
25135       conftest$ac_exeext conftest.$ac_ext
25136 fi
25137 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25138 echo "${ECHO_T}$ac_cv_func_select" >&6
25139 if test $ac_cv_func_select = yes; then
25140   :
25141 else
25142   { { echo "$as_me:$LINENO: error: select() required." >&5
25143 echo "$as_me: error: select() required." >&2;}
25144    { (exit 1); exit 1; }; }
25145 fi
25146
25147
25148 if test "${ac_cv_header_winsock_h}" != yes; then
25149
25150
25151 for ac_header in sys/select.h sys/socket.h
25152 do
25153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25155   echo "$as_me:$LINENO: checking for $ac_header" >&5
25156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25158   echo $ECHO_N "(cached) $ECHO_C" >&6
25159 fi
25160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25162 else
25163   # Is the header compilable?
25164 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25166 cat >conftest.$ac_ext <<_ACEOF
25167 /* confdefs.h.  */
25168 _ACEOF
25169 cat confdefs.h >>conftest.$ac_ext
25170 cat >>conftest.$ac_ext <<_ACEOF
25171 /* end confdefs.h.  */
25172 $ac_includes_default
25173 #include <$ac_header>
25174 _ACEOF
25175 rm -f conftest.$ac_objext
25176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25177   (eval $ac_compile) 2>conftest.er1
25178   ac_status=$?
25179   grep -v '^ *+' conftest.er1 >conftest.err
25180   rm -f conftest.er1
25181   cat conftest.err >&5
25182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183   (exit $ac_status); } &&
25184          { ac_try='test -z "$ac_c_werror_flag"
25185                          || test ! -s conftest.err'
25186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25187   (eval $ac_try) 2>&5
25188   ac_status=$?
25189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190   (exit $ac_status); }; } &&
25191          { ac_try='test -s conftest.$ac_objext'
25192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193   (eval $ac_try) 2>&5
25194   ac_status=$?
25195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196   (exit $ac_status); }; }; then
25197   ac_header_compiler=yes
25198 else
25199   echo "$as_me: failed program was:" >&5
25200 sed 's/^/| /' conftest.$ac_ext >&5
25201
25202 ac_header_compiler=no
25203 fi
25204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25205 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25206 echo "${ECHO_T}$ac_header_compiler" >&6
25207
25208 # Is the header present?
25209 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25211 cat >conftest.$ac_ext <<_ACEOF
25212 /* confdefs.h.  */
25213 _ACEOF
25214 cat confdefs.h >>conftest.$ac_ext
25215 cat >>conftest.$ac_ext <<_ACEOF
25216 /* end confdefs.h.  */
25217 #include <$ac_header>
25218 _ACEOF
25219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25220   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25221   ac_status=$?
25222   grep -v '^ *+' conftest.er1 >conftest.err
25223   rm -f conftest.er1
25224   cat conftest.err >&5
25225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226   (exit $ac_status); } >/dev/null; then
25227   if test -s conftest.err; then
25228     ac_cpp_err=$ac_c_preproc_warn_flag
25229     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25230   else
25231     ac_cpp_err=
25232   fi
25233 else
25234   ac_cpp_err=yes
25235 fi
25236 if test -z "$ac_cpp_err"; then
25237   ac_header_preproc=yes
25238 else
25239   echo "$as_me: failed program was:" >&5
25240 sed 's/^/| /' conftest.$ac_ext >&5
25241
25242   ac_header_preproc=no
25243 fi
25244 rm -f conftest.err conftest.$ac_ext
25245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25246 echo "${ECHO_T}$ac_header_preproc" >&6
25247
25248 # So?  What about this header?
25249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25250   yes:no: )
25251     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25255     ac_header_preproc=yes
25256     ;;
25257   no:yes:* )
25258     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25260     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25261 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25262     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25264     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25265 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25268     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25270     (
25271       cat <<\_ASBOX
25272 ## ------------------------------------------ ##
25273 ## Report this to the AC_PACKAGE_NAME lists.  ##
25274 ## ------------------------------------------ ##
25275 _ASBOX
25276     ) |
25277       sed "s/^/$as_me: WARNING:     /" >&2
25278     ;;
25279 esac
25280 echo "$as_me:$LINENO: checking for $ac_header" >&5
25281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25283   echo $ECHO_N "(cached) $ECHO_C" >&6
25284 else
25285   eval "$as_ac_Header=\$ac_header_preproc"
25286 fi
25287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25288 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25289
25290 fi
25291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25292   cat >>confdefs.h <<_ACEOF
25293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25294 _ACEOF
25295
25296 fi
25297
25298 done
25299
25300 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25301 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25302 if test "${ac_cv_func_select_args+set}" = set; then
25303   echo $ECHO_N "(cached) $ECHO_C" >&6
25304 else
25305   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25306  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25307   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25308    cat >conftest.$ac_ext <<_ACEOF
25309 /* confdefs.h.  */
25310 _ACEOF
25311 cat confdefs.h >>conftest.$ac_ext
25312 cat >>conftest.$ac_ext <<_ACEOF
25313 /* end confdefs.h.  */
25314 $ac_includes_default
25315 #if HAVE_SYS_SELECT_H
25316 # include <sys/select.h>
25317 #endif
25318 #if HAVE_SYS_SOCKET_H
25319 # include <sys/socket.h>
25320 #endif
25321
25322 int
25323 main ()
25324 {
25325 extern int select ($ac_arg1,
25326                                             $ac_arg234, $ac_arg234, $ac_arg234,
25327                                             $ac_arg5);
25328   ;
25329   return 0;
25330 }
25331 _ACEOF
25332 rm -f conftest.$ac_objext
25333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25334   (eval $ac_compile) 2>conftest.er1
25335   ac_status=$?
25336   grep -v '^ *+' conftest.er1 >conftest.err
25337   rm -f conftest.er1
25338   cat conftest.err >&5
25339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340   (exit $ac_status); } &&
25341          { ac_try='test -z "$ac_c_werror_flag"
25342                          || test ! -s conftest.err'
25343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25344   (eval $ac_try) 2>&5
25345   ac_status=$?
25346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347   (exit $ac_status); }; } &&
25348          { ac_try='test -s conftest.$ac_objext'
25349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25350   (eval $ac_try) 2>&5
25351   ac_status=$?
25352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353   (exit $ac_status); }; }; then
25354   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25355 else
25356   echo "$as_me: failed program was:" >&5
25357 sed 's/^/| /' conftest.$ac_ext >&5
25358
25359 fi
25360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25361   done
25362  done
25363 done
25364 # Provide a safe default value.
25365 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25366
25367 fi
25368 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25369 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25370 ac_save_IFS=$IFS; IFS=','
25371 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25372 IFS=$ac_save_IFS
25373 shift
25374
25375 cat >>confdefs.h <<_ACEOF
25376 #define SELECT_TYPE_ARG1 $1
25377 _ACEOF
25378
25379
25380 cat >>confdefs.h <<_ACEOF
25381 #define SELECT_TYPE_ARG234 ($2)
25382 _ACEOF
25383
25384
25385 cat >>confdefs.h <<_ACEOF
25386 #define SELECT_TYPE_ARG5 ($3)
25387 _ACEOF
25388
25389 rm -f conftest*
25390
25391 fi
25392
25393
25394
25395 for ac_func in poll
25396 do
25397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25398 echo "$as_me:$LINENO: checking for $ac_func" >&5
25399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25400 if eval "test \"\${$as_ac_var+set}\" = set"; then
25401   echo $ECHO_N "(cached) $ECHO_C" >&6
25402 else
25403   cat >conftest.$ac_ext <<_ACEOF
25404 /* confdefs.h.  */
25405 _ACEOF
25406 cat confdefs.h >>conftest.$ac_ext
25407 cat >>conftest.$ac_ext <<_ACEOF
25408 /* end confdefs.h.  */
25409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25410    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25411 #define $ac_func innocuous_$ac_func
25412
25413 /* System header to define __stub macros and hopefully few prototypes,
25414     which can conflict with char $ac_func (); below.
25415     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25416     <limits.h> exists even on freestanding compilers.  */
25417
25418 #ifdef __STDC__
25419 # include <limits.h>
25420 #else
25421 # include <assert.h>
25422 #endif
25423
25424 #undef $ac_func
25425
25426 /* Override any gcc2 internal prototype to avoid an error.  */
25427 #ifdef __cplusplus
25428 extern "C"
25429 {
25430 #endif
25431 /* We use char because int might match the return type of a gcc2
25432    builtin and then its argument prototype would still apply.  */
25433 char $ac_func ();
25434 /* The GNU C library defines this for functions which it implements
25435     to always fail with ENOSYS.  Some functions are actually named
25436     something starting with __ and the normal name is an alias.  */
25437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25438 choke me
25439 #else
25440 char (*f) () = $ac_func;
25441 #endif
25442 #ifdef __cplusplus
25443 }
25444 #endif
25445
25446 int
25447 main ()
25448 {
25449 return f != $ac_func;
25450   ;
25451   return 0;
25452 }
25453 _ACEOF
25454 rm -f conftest.$ac_objext conftest$ac_exeext
25455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25456   (eval $ac_link) 2>conftest.er1
25457   ac_status=$?
25458   grep -v '^ *+' conftest.er1 >conftest.err
25459   rm -f conftest.er1
25460   cat conftest.err >&5
25461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462   (exit $ac_status); } &&
25463          { ac_try='test -z "$ac_c_werror_flag"
25464                          || test ! -s conftest.err'
25465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25466   (eval $ac_try) 2>&5
25467   ac_status=$?
25468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469   (exit $ac_status); }; } &&
25470          { ac_try='test -s conftest$ac_exeext'
25471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25472   (eval $ac_try) 2>&5
25473   ac_status=$?
25474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475   (exit $ac_status); }; }; then
25476   eval "$as_ac_var=yes"
25477 else
25478   echo "$as_me: failed program was:" >&5
25479 sed 's/^/| /' conftest.$ac_ext >&5
25480
25481 eval "$as_ac_var=no"
25482 fi
25483 rm -f conftest.err conftest.$ac_objext \
25484       conftest$ac_exeext conftest.$ac_ext
25485 fi
25486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25487 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25488 if test `eval echo '${'$as_ac_var'}'` = yes; then
25489   cat >>confdefs.h <<_ACEOF
25490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25491 _ACEOF
25492
25493 fi
25494 done
25495
25496
25497 for ac_header in poll.h
25498 do
25499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25501   echo "$as_me:$LINENO: checking for $ac_header" >&5
25502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25504   echo $ECHO_N "(cached) $ECHO_C" >&6
25505 fi
25506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25508 else
25509   # Is the header compilable?
25510 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25512 cat >conftest.$ac_ext <<_ACEOF
25513 /* confdefs.h.  */
25514 _ACEOF
25515 cat confdefs.h >>conftest.$ac_ext
25516 cat >>conftest.$ac_ext <<_ACEOF
25517 /* end confdefs.h.  */
25518 $ac_includes_default
25519 #include <$ac_header>
25520 _ACEOF
25521 rm -f conftest.$ac_objext
25522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25523   (eval $ac_compile) 2>conftest.er1
25524   ac_status=$?
25525   grep -v '^ *+' conftest.er1 >conftest.err
25526   rm -f conftest.er1
25527   cat conftest.err >&5
25528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529   (exit $ac_status); } &&
25530          { ac_try='test -z "$ac_c_werror_flag"
25531                          || test ! -s conftest.err'
25532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25533   (eval $ac_try) 2>&5
25534   ac_status=$?
25535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536   (exit $ac_status); }; } &&
25537          { ac_try='test -s conftest.$ac_objext'
25538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25539   (eval $ac_try) 2>&5
25540   ac_status=$?
25541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542   (exit $ac_status); }; }; then
25543   ac_header_compiler=yes
25544 else
25545   echo "$as_me: failed program was:" >&5
25546 sed 's/^/| /' conftest.$ac_ext >&5
25547
25548 ac_header_compiler=no
25549 fi
25550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25552 echo "${ECHO_T}$ac_header_compiler" >&6
25553
25554 # Is the header present?
25555 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25557 cat >conftest.$ac_ext <<_ACEOF
25558 /* confdefs.h.  */
25559 _ACEOF
25560 cat confdefs.h >>conftest.$ac_ext
25561 cat >>conftest.$ac_ext <<_ACEOF
25562 /* end confdefs.h.  */
25563 #include <$ac_header>
25564 _ACEOF
25565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25566   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25567   ac_status=$?
25568   grep -v '^ *+' conftest.er1 >conftest.err
25569   rm -f conftest.er1
25570   cat conftest.err >&5
25571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572   (exit $ac_status); } >/dev/null; then
25573   if test -s conftest.err; then
25574     ac_cpp_err=$ac_c_preproc_warn_flag
25575     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25576   else
25577     ac_cpp_err=
25578   fi
25579 else
25580   ac_cpp_err=yes
25581 fi
25582 if test -z "$ac_cpp_err"; then
25583   ac_header_preproc=yes
25584 else
25585   echo "$as_me: failed program was:" >&5
25586 sed 's/^/| /' conftest.$ac_ext >&5
25587
25588   ac_header_preproc=no
25589 fi
25590 rm -f conftest.err conftest.$ac_ext
25591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25592 echo "${ECHO_T}$ac_header_preproc" >&6
25593
25594 # So?  What about this header?
25595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25596   yes:no: )
25597     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25599     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25601     ac_header_preproc=yes
25602     ;;
25603   no:yes:* )
25604     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25606     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25607 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25608     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25609 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25610     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25611 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25612     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25614     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25615 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25616     (
25617       cat <<\_ASBOX
25618 ## ------------------------------------------ ##
25619 ## Report this to the AC_PACKAGE_NAME lists.  ##
25620 ## ------------------------------------------ ##
25621 _ASBOX
25622     ) |
25623       sed "s/^/$as_me: WARNING:     /" >&2
25624     ;;
25625 esac
25626 echo "$as_me:$LINENO: checking for $ac_header" >&5
25627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25629   echo $ECHO_N "(cached) $ECHO_C" >&6
25630 else
25631   eval "$as_ac_Header=\$ac_header_preproc"
25632 fi
25633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25635
25636 fi
25637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25638   cat >>confdefs.h <<_ACEOF
25639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25640 _ACEOF
25641
25642 fi
25643
25644 done
25645
25646
25647
25648 for ac_header in sys/epoll.h
25649 do
25650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25652   echo "$as_me:$LINENO: checking for $ac_header" >&5
25653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25655   echo $ECHO_N "(cached) $ECHO_C" >&6
25656 fi
25657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25659 else
25660   # Is the header compilable?
25661 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25663 cat >conftest.$ac_ext <<_ACEOF
25664 /* confdefs.h.  */
25665 _ACEOF
25666 cat confdefs.h >>conftest.$ac_ext
25667 cat >>conftest.$ac_ext <<_ACEOF
25668 /* end confdefs.h.  */
25669 $ac_includes_default
25670 #include <$ac_header>
25671 _ACEOF
25672 rm -f conftest.$ac_objext
25673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25674   (eval $ac_compile) 2>conftest.er1
25675   ac_status=$?
25676   grep -v '^ *+' conftest.er1 >conftest.err
25677   rm -f conftest.er1
25678   cat conftest.err >&5
25679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680   (exit $ac_status); } &&
25681          { ac_try='test -z "$ac_c_werror_flag"
25682                          || test ! -s conftest.err'
25683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25684   (eval $ac_try) 2>&5
25685   ac_status=$?
25686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25687   (exit $ac_status); }; } &&
25688          { ac_try='test -s conftest.$ac_objext'
25689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25690   (eval $ac_try) 2>&5
25691   ac_status=$?
25692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693   (exit $ac_status); }; }; then
25694   ac_header_compiler=yes
25695 else
25696   echo "$as_me: failed program was:" >&5
25697 sed 's/^/| /' conftest.$ac_ext >&5
25698
25699 ac_header_compiler=no
25700 fi
25701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25702 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25703 echo "${ECHO_T}$ac_header_compiler" >&6
25704
25705 # Is the header present?
25706 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25708 cat >conftest.$ac_ext <<_ACEOF
25709 /* confdefs.h.  */
25710 _ACEOF
25711 cat confdefs.h >>conftest.$ac_ext
25712 cat >>conftest.$ac_ext <<_ACEOF
25713 /* end confdefs.h.  */
25714 #include <$ac_header>
25715 _ACEOF
25716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25717   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25718   ac_status=$?
25719   grep -v '^ *+' conftest.er1 >conftest.err
25720   rm -f conftest.er1
25721   cat conftest.err >&5
25722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723   (exit $ac_status); } >/dev/null; then
25724   if test -s conftest.err; then
25725     ac_cpp_err=$ac_c_preproc_warn_flag
25726     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25727   else
25728     ac_cpp_err=
25729   fi
25730 else
25731   ac_cpp_err=yes
25732 fi
25733 if test -z "$ac_cpp_err"; then
25734   ac_header_preproc=yes
25735 else
25736   echo "$as_me: failed program was:" >&5
25737 sed 's/^/| /' conftest.$ac_ext >&5
25738
25739   ac_header_preproc=no
25740 fi
25741 rm -f conftest.err conftest.$ac_ext
25742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25743 echo "${ECHO_T}$ac_header_preproc" >&6
25744
25745 # So?  What about this header?
25746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25747   yes:no: )
25748     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25750     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25752     ac_header_preproc=yes
25753     ;;
25754   no:yes:* )
25755     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25757     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25758 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25759     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25761     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25762 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25763     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25765     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25767     (
25768       cat <<\_ASBOX
25769 ## ------------------------------------------ ##
25770 ## Report this to the AC_PACKAGE_NAME lists.  ##
25771 ## ------------------------------------------ ##
25772 _ASBOX
25773     ) |
25774       sed "s/^/$as_me: WARNING:     /" >&2
25775     ;;
25776 esac
25777 echo "$as_me:$LINENO: checking for $ac_header" >&5
25778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25780   echo $ECHO_N "(cached) $ECHO_C" >&6
25781 else
25782   eval "$as_ac_Header=\$ac_header_preproc"
25783 fi
25784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25786
25787 fi
25788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25789   cat >>confdefs.h <<_ACEOF
25790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25791 _ACEOF
25792
25793 fi
25794
25795 done
25796
25797 if test "${ac_cv_header_sys_epoll_h}" = yes; then
25798 echo "$as_me:$LINENO: checking for epoll system call" >&5
25799 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
25800 if test "$cross_compiling" = yes; then
25801   echo "$as_me:$LINENO: result: no" >&5
25802 echo "${ECHO_T}no" >&6
25803 else
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 int main(int argc, char *argv)
25811 {
25812         int epfd = epoll_create(256);
25813         exit (epfd == -1 ? 1 : 0);
25814 }
25815 _ACEOF
25816 rm -f conftest$ac_exeext
25817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25818   (eval $ac_link) 2>&5
25819   ac_status=$?
25820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25823   (eval $ac_try) 2>&5
25824   ac_status=$?
25825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25826   (exit $ac_status); }; }; then
25827   echo "$as_me:$LINENO: result: yes" >&5
25828 echo "${ECHO_T}yes" >&6
25829
25830 cat >>confdefs.h <<\_ACEOF
25831 #define HAVE_EPOLL 1
25832 _ACEOF
25833
25834 else
25835   echo "$as_me: program exited with status $ac_status" >&5
25836 echo "$as_me: failed program was:" >&5
25837 sed 's/^/| /' conftest.$ac_ext >&5
25838
25839 ( exit $ac_status )
25840 echo "$as_me:$LINENO: result: no" >&5
25841 echo "${ECHO_T}no" >&6
25842 fi
25843 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25844 fi
25845 fi
25846
25847 # strerror checks
25848 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
25849 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
25850 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
25851   echo $ECHO_N "(cached) $ECHO_C" >&6
25852 else
25853
25854         cat >conftest.$ac_ext <<_ACEOF
25855 /* confdefs.h.  */
25856 _ACEOF
25857 cat confdefs.h >>conftest.$ac_ext
25858 cat >>conftest.$ac_ext <<_ACEOF
25859 /* end confdefs.h.  */
25860
25861 #include <stdio.h>
25862 #include <sys/types.h>
25863 #include <errno.h>
25864 #ifdef WINNT
25865 #include <stdlib.h>
25866 #endif
25867 int
25868 main ()
25869 {
25870 char *c = (char *) *sys_errlist
25871   ;
25872   return 0;
25873 }
25874 _ACEOF
25875 rm -f conftest.$ac_objext
25876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25877   (eval $ac_compile) 2>conftest.er1
25878   ac_status=$?
25879   grep -v '^ *+' conftest.er1 >conftest.err
25880   rm -f conftest.er1
25881   cat conftest.err >&5
25882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25883   (exit $ac_status); } &&
25884          { ac_try='test -z "$ac_c_werror_flag"
25885                          || test ! -s conftest.err'
25886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25887   (eval $ac_try) 2>&5
25888   ac_status=$?
25889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25890   (exit $ac_status); }; } &&
25891          { ac_try='test -s conftest.$ac_objext'
25892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25893   (eval $ac_try) 2>&5
25894   ac_status=$?
25895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896   (exit $ac_status); }; }; then
25897   ol_cv_dcl_sys_errlist=yes
25898         ol_cv_have_sys_errlist=yes
25899 else
25900   echo "$as_me: failed program was:" >&5
25901 sed 's/^/| /' conftest.$ac_ext >&5
25902
25903 ol_cv_dcl_sys_errlist=no
25904 fi
25905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25906 fi
25907 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
25908 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
25909 #
25910 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
25911 if test $ol_cv_dcl_sys_errlist = no ; then
25912
25913 cat >>confdefs.h <<\_ACEOF
25914 #define DECL_SYS_ERRLIST 1
25915 _ACEOF
25916
25917
25918         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
25919 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
25920 if test "${ol_cv_have_sys_errlist+set}" = set; then
25921   echo $ECHO_N "(cached) $ECHO_C" >&6
25922 else
25923
25924                 cat >conftest.$ac_ext <<_ACEOF
25925 /* confdefs.h.  */
25926 _ACEOF
25927 cat confdefs.h >>conftest.$ac_ext
25928 cat >>conftest.$ac_ext <<_ACEOF
25929 /* end confdefs.h.  */
25930 #include <errno.h>
25931 int
25932 main ()
25933 {
25934 char *c = (char *) *sys_errlist
25935   ;
25936   return 0;
25937 }
25938 _ACEOF
25939 rm -f conftest.$ac_objext conftest$ac_exeext
25940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25941   (eval $ac_link) 2>conftest.er1
25942   ac_status=$?
25943   grep -v '^ *+' conftest.er1 >conftest.err
25944   rm -f conftest.er1
25945   cat conftest.err >&5
25946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947   (exit $ac_status); } &&
25948          { ac_try='test -z "$ac_c_werror_flag"
25949                          || test ! -s conftest.err'
25950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25951   (eval $ac_try) 2>&5
25952   ac_status=$?
25953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954   (exit $ac_status); }; } &&
25955          { ac_try='test -s conftest$ac_exeext'
25956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25957   (eval $ac_try) 2>&5
25958   ac_status=$?
25959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960   (exit $ac_status); }; }; then
25961   ol_cv_have_sys_errlist=yes
25962 else
25963   echo "$as_me: failed program was:" >&5
25964 sed 's/^/| /' conftest.$ac_ext >&5
25965
25966 ol_cv_have_sys_errlist=no
25967 fi
25968 rm -f conftest.err conftest.$ac_objext \
25969       conftest$ac_exeext conftest.$ac_ext
25970 fi
25971 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
25972 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
25973 fi
25974 if test $ol_cv_have_sys_errlist = yes ; then
25975
25976 cat >>confdefs.h <<\_ACEOF
25977 #define HAVE_SYS_ERRLIST 1
25978 _ACEOF
25979
25980 fi
25981
25982
25983 for ac_func in strerror strerror_r
25984 do
25985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25986 echo "$as_me:$LINENO: checking for $ac_func" >&5
25987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25988 if eval "test \"\${$as_ac_var+set}\" = set"; then
25989   echo $ECHO_N "(cached) $ECHO_C" >&6
25990 else
25991   cat >conftest.$ac_ext <<_ACEOF
25992 /* confdefs.h.  */
25993 _ACEOF
25994 cat confdefs.h >>conftest.$ac_ext
25995 cat >>conftest.$ac_ext <<_ACEOF
25996 /* end confdefs.h.  */
25997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25999 #define $ac_func innocuous_$ac_func
26000
26001 /* System header to define __stub macros and hopefully few prototypes,
26002     which can conflict with char $ac_func (); below.
26003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26004     <limits.h> exists even on freestanding compilers.  */
26005
26006 #ifdef __STDC__
26007 # include <limits.h>
26008 #else
26009 # include <assert.h>
26010 #endif
26011
26012 #undef $ac_func
26013
26014 /* Override any gcc2 internal prototype to avoid an error.  */
26015 #ifdef __cplusplus
26016 extern "C"
26017 {
26018 #endif
26019 /* We use char because int might match the return type of a gcc2
26020    builtin and then its argument prototype would still apply.  */
26021 char $ac_func ();
26022 /* The GNU C library defines this for functions which it implements
26023     to always fail with ENOSYS.  Some functions are actually named
26024     something starting with __ and the normal name is an alias.  */
26025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26026 choke me
26027 #else
26028 char (*f) () = $ac_func;
26029 #endif
26030 #ifdef __cplusplus
26031 }
26032 #endif
26033
26034 int
26035 main ()
26036 {
26037 return f != $ac_func;
26038   ;
26039   return 0;
26040 }
26041 _ACEOF
26042 rm -f conftest.$ac_objext conftest$ac_exeext
26043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26044   (eval $ac_link) 2>conftest.er1
26045   ac_status=$?
26046   grep -v '^ *+' conftest.er1 >conftest.err
26047   rm -f conftest.er1
26048   cat conftest.err >&5
26049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050   (exit $ac_status); } &&
26051          { ac_try='test -z "$ac_c_werror_flag"
26052                          || test ! -s conftest.err'
26053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26054   (eval $ac_try) 2>&5
26055   ac_status=$?
26056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057   (exit $ac_status); }; } &&
26058          { ac_try='test -s conftest$ac_exeext'
26059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26060   (eval $ac_try) 2>&5
26061   ac_status=$?
26062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063   (exit $ac_status); }; }; then
26064   eval "$as_ac_var=yes"
26065 else
26066   echo "$as_me: failed program was:" >&5
26067 sed 's/^/| /' conftest.$ac_ext >&5
26068
26069 eval "$as_ac_var=no"
26070 fi
26071 rm -f conftest.err conftest.$ac_objext \
26072       conftest$ac_exeext conftest.$ac_ext
26073 fi
26074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26076 if test `eval echo '${'$as_ac_var'}'` = yes; then
26077   cat >>confdefs.h <<_ACEOF
26078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26079 _ACEOF
26080
26081 fi
26082 done
26083
26084 ol_cv_func_strerror_r=no
26085 if test "${ac_cv_func_strerror_r}" = yes ; then
26086         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26087 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26088 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26089   echo $ECHO_N "(cached) $ECHO_C" >&6
26090 else
26091
26092         cat >conftest.$ac_ext <<_ACEOF
26093 /* confdefs.h.  */
26094 _ACEOF
26095 cat confdefs.h >>conftest.$ac_ext
26096 cat >>conftest.$ac_ext <<_ACEOF
26097 /* end confdefs.h.  */
26098 #include <string.h>
26099 _ACEOF
26100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26101   $EGREP "strerror_r" >/dev/null 2>&1; then
26102   ol_decl_strerror_r=yes
26103 else
26104   ol_decl_strerror_r=no
26105 fi
26106 rm -f conftest*
26107
26108         if test $ol_decl_strerror_r = yes ; then
26109                 cat >conftest.$ac_ext <<_ACEOF
26110 /* confdefs.h.  */
26111 _ACEOF
26112 cat confdefs.h >>conftest.$ac_ext
26113 cat >>conftest.$ac_ext <<_ACEOF
26114 /* end confdefs.h.  */
26115 #include <string.h>
26116 int
26117 main ()
26118 {
26119    /* from autoconf 2.59 */
26120                                 char buf[100];
26121                                 char x = *strerror_r (0, buf, sizeof buf);
26122                                 char *p = strerror_r (0, buf, sizeof buf);
26123
26124   ;
26125   return 0;
26126 }
26127 _ACEOF
26128 rm -f conftest.$ac_objext
26129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26130   (eval $ac_compile) 2>conftest.er1
26131   ac_status=$?
26132   grep -v '^ *+' conftest.er1 >conftest.err
26133   rm -f conftest.er1
26134   cat conftest.err >&5
26135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136   (exit $ac_status); } &&
26137          { ac_try='test -z "$ac_c_werror_flag"
26138                          || test ! -s conftest.err'
26139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26140   (eval $ac_try) 2>&5
26141   ac_status=$?
26142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26143   (exit $ac_status); }; } &&
26144          { ac_try='test -s conftest.$ac_objext'
26145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26146   (eval $ac_try) 2>&5
26147   ac_status=$?
26148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149   (exit $ac_status); }; }; then
26150   ol_cv_nonposix_strerror_r=yes
26151 else
26152   echo "$as_me: failed program was:" >&5
26153 sed 's/^/| /' conftest.$ac_ext >&5
26154
26155 ol_cv_nonposix_strerror_r=no
26156 fi
26157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26158         else
26159                 if test "$cross_compiling" = yes; then
26160   ol_cv_nonposix_strerror=no
26161 else
26162   cat >conftest.$ac_ext <<_ACEOF
26163 /* confdefs.h.  */
26164 _ACEOF
26165 cat confdefs.h >>conftest.$ac_ext
26166 cat >>conftest.$ac_ext <<_ACEOF
26167 /* end confdefs.h.  */
26168
26169                         main() {
26170                                 char buf[100];
26171                                 buf[0] = 0;
26172                                 strerror_r( 1, buf, sizeof buf );
26173                                 exit( buf[0] == 0 );
26174                         }
26175
26176 _ACEOF
26177 rm -f conftest$ac_exeext
26178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26179   (eval $ac_link) 2>&5
26180   ac_status=$?
26181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26184   (eval $ac_try) 2>&5
26185   ac_status=$?
26186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187   (exit $ac_status); }; }; then
26188   ol_cv_nonposix_strerror_r=yes
26189 else
26190   echo "$as_me: program exited with status $ac_status" >&5
26191 echo "$as_me: failed program was:" >&5
26192 sed 's/^/| /' conftest.$ac_ext >&5
26193
26194 ( exit $ac_status )
26195 ol_cv_nonposix_strerror=no
26196 fi
26197 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26198 fi
26199         fi
26200
26201 fi
26202 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26203 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26204 if test $ol_cv_nonposix_strerror_r = yes ; then
26205
26206 cat >>confdefs.h <<\_ACEOF
26207 #define HAVE_NONPOSIX_STRERROR_R 1
26208 _ACEOF
26209
26210 fi
26211
26212 elif test "${ac_cv_func_strerror}" = no ; then
26213         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26214 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26215 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26216   echo $ECHO_N "(cached) $ECHO_C" >&6
26217 else
26218
26219         cat >conftest.$ac_ext <<_ACEOF
26220 /* confdefs.h.  */
26221 _ACEOF
26222 cat confdefs.h >>conftest.$ac_ext
26223 cat >>conftest.$ac_ext <<_ACEOF
26224 /* end confdefs.h.  */
26225
26226 #include <stdio.h>
26227 #include <sys/types.h>
26228 #include <errno.h>
26229 #ifdef WINNT
26230 #include <stdlib.h>
26231 #endif
26232 int
26233 main ()
26234 {
26235 char *c = (char *) *sys_errlist
26236   ;
26237   return 0;
26238 }
26239 _ACEOF
26240 rm -f conftest.$ac_objext
26241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26242   (eval $ac_compile) 2>conftest.er1
26243   ac_status=$?
26244   grep -v '^ *+' conftest.er1 >conftest.err
26245   rm -f conftest.er1
26246   cat conftest.err >&5
26247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248   (exit $ac_status); } &&
26249          { ac_try='test -z "$ac_c_werror_flag"
26250                          || test ! -s conftest.err'
26251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26252   (eval $ac_try) 2>&5
26253   ac_status=$?
26254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255   (exit $ac_status); }; } &&
26256          { ac_try='test -s conftest.$ac_objext'
26257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26258   (eval $ac_try) 2>&5
26259   ac_status=$?
26260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26261   (exit $ac_status); }; }; then
26262   ol_cv_dcl_sys_errlist=yes
26263         ol_cv_have_sys_errlist=yes
26264 else
26265   echo "$as_me: failed program was:" >&5
26266 sed 's/^/| /' conftest.$ac_ext >&5
26267
26268 ol_cv_dcl_sys_errlist=no
26269 fi
26270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26271 fi
26272 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26273 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26274 #
26275 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26276 if test $ol_cv_dcl_sys_errlist = no ; then
26277
26278 cat >>confdefs.h <<\_ACEOF
26279 #define DECL_SYS_ERRLIST 1
26280 _ACEOF
26281
26282
26283         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26284 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26285 if test "${ol_cv_have_sys_errlist+set}" = set; then
26286   echo $ECHO_N "(cached) $ECHO_C" >&6
26287 else
26288
26289                 cat >conftest.$ac_ext <<_ACEOF
26290 /* confdefs.h.  */
26291 _ACEOF
26292 cat confdefs.h >>conftest.$ac_ext
26293 cat >>conftest.$ac_ext <<_ACEOF
26294 /* end confdefs.h.  */
26295 #include <errno.h>
26296 int
26297 main ()
26298 {
26299 char *c = (char *) *sys_errlist
26300   ;
26301   return 0;
26302 }
26303 _ACEOF
26304 rm -f conftest.$ac_objext conftest$ac_exeext
26305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26306   (eval $ac_link) 2>conftest.er1
26307   ac_status=$?
26308   grep -v '^ *+' conftest.er1 >conftest.err
26309   rm -f conftest.er1
26310   cat conftest.err >&5
26311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312   (exit $ac_status); } &&
26313          { ac_try='test -z "$ac_c_werror_flag"
26314                          || test ! -s conftest.err'
26315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26316   (eval $ac_try) 2>&5
26317   ac_status=$?
26318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319   (exit $ac_status); }; } &&
26320          { ac_try='test -s conftest$ac_exeext'
26321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26322   (eval $ac_try) 2>&5
26323   ac_status=$?
26324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325   (exit $ac_status); }; }; then
26326   ol_cv_have_sys_errlist=yes
26327 else
26328   echo "$as_me: failed program was:" >&5
26329 sed 's/^/| /' conftest.$ac_ext >&5
26330
26331 ol_cv_have_sys_errlist=no
26332 fi
26333 rm -f conftest.err conftest.$ac_objext \
26334       conftest$ac_exeext conftest.$ac_ext
26335 fi
26336 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26337 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26338 fi
26339 if test $ol_cv_have_sys_errlist = yes ; then
26340
26341 cat >>confdefs.h <<\_ACEOF
26342 #define HAVE_SYS_ERRLIST 1
26343 _ACEOF
26344
26345 fi
26346
26347 fi
26348
26349
26350
26351 for ac_header in regex.h
26352 do
26353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26355   echo "$as_me:$LINENO: checking for $ac_header" >&5
26356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26358   echo $ECHO_N "(cached) $ECHO_C" >&6
26359 fi
26360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26362 else
26363   # Is the header compilable?
26364 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26366 cat >conftest.$ac_ext <<_ACEOF
26367 /* confdefs.h.  */
26368 _ACEOF
26369 cat confdefs.h >>conftest.$ac_ext
26370 cat >>conftest.$ac_ext <<_ACEOF
26371 /* end confdefs.h.  */
26372 $ac_includes_default
26373 #include <$ac_header>
26374 _ACEOF
26375 rm -f conftest.$ac_objext
26376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26377   (eval $ac_compile) 2>conftest.er1
26378   ac_status=$?
26379   grep -v '^ *+' conftest.er1 >conftest.err
26380   rm -f conftest.er1
26381   cat conftest.err >&5
26382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383   (exit $ac_status); } &&
26384          { ac_try='test -z "$ac_c_werror_flag"
26385                          || test ! -s conftest.err'
26386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26387   (eval $ac_try) 2>&5
26388   ac_status=$?
26389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390   (exit $ac_status); }; } &&
26391          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
26397   ac_header_compiler=yes
26398 else
26399   echo "$as_me: failed program was:" >&5
26400 sed 's/^/| /' conftest.$ac_ext >&5
26401
26402 ac_header_compiler=no
26403 fi
26404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26406 echo "${ECHO_T}$ac_header_compiler" >&6
26407
26408 # Is the header present?
26409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26411 cat >conftest.$ac_ext <<_ACEOF
26412 /* confdefs.h.  */
26413 _ACEOF
26414 cat confdefs.h >>conftest.$ac_ext
26415 cat >>conftest.$ac_ext <<_ACEOF
26416 /* end confdefs.h.  */
26417 #include <$ac_header>
26418 _ACEOF
26419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26420   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26421   ac_status=$?
26422   grep -v '^ *+' conftest.er1 >conftest.err
26423   rm -f conftest.er1
26424   cat conftest.err >&5
26425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426   (exit $ac_status); } >/dev/null; then
26427   if test -s conftest.err; then
26428     ac_cpp_err=$ac_c_preproc_warn_flag
26429     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26430   else
26431     ac_cpp_err=
26432   fi
26433 else
26434   ac_cpp_err=yes
26435 fi
26436 if test -z "$ac_cpp_err"; then
26437   ac_header_preproc=yes
26438 else
26439   echo "$as_me: failed program was:" >&5
26440 sed 's/^/| /' conftest.$ac_ext >&5
26441
26442   ac_header_preproc=no
26443 fi
26444 rm -f conftest.err conftest.$ac_ext
26445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26446 echo "${ECHO_T}$ac_header_preproc" >&6
26447
26448 # So?  What about this header?
26449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26450   yes:no: )
26451     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26455     ac_header_preproc=yes
26456     ;;
26457   no:yes:* )
26458     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26460     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26461 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26462     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26464     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26465 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26468     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26470     (
26471       cat <<\_ASBOX
26472 ## ------------------------------------------ ##
26473 ## Report this to the AC_PACKAGE_NAME lists.  ##
26474 ## ------------------------------------------ ##
26475 _ASBOX
26476     ) |
26477       sed "s/^/$as_me: WARNING:     /" >&2
26478     ;;
26479 esac
26480 echo "$as_me:$LINENO: checking for $ac_header" >&5
26481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26483   echo $ECHO_N "(cached) $ECHO_C" >&6
26484 else
26485   eval "$as_ac_Header=\$ac_header_preproc"
26486 fi
26487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26489
26490 fi
26491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26492   cat >>confdefs.h <<_ACEOF
26493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26494 _ACEOF
26495
26496 fi
26497
26498 done
26499
26500 if test "$ac_cv_header_regex_h" != yes ; then
26501         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26502 echo "$as_me: error: POSIX regex.h required." >&2;}
26503    { (exit 1); exit 1; }; }
26504 fi
26505 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26506 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26507 if test "${ac_cv_search_regfree+set}" = set; then
26508   echo $ECHO_N "(cached) $ECHO_C" >&6
26509 else
26510   ac_func_search_save_LIBS=$LIBS
26511 ac_cv_search_regfree=no
26512 cat >conftest.$ac_ext <<_ACEOF
26513 /* confdefs.h.  */
26514 _ACEOF
26515 cat confdefs.h >>conftest.$ac_ext
26516 cat >>conftest.$ac_ext <<_ACEOF
26517 /* end confdefs.h.  */
26518
26519 /* Override any gcc2 internal prototype to avoid an error.  */
26520 #ifdef __cplusplus
26521 extern "C"
26522 #endif
26523 /* We use char because int might match the return type of a gcc2
26524    builtin and then its argument prototype would still apply.  */
26525 char regfree ();
26526 int
26527 main ()
26528 {
26529 regfree ();
26530   ;
26531   return 0;
26532 }
26533 _ACEOF
26534 rm -f conftest.$ac_objext conftest$ac_exeext
26535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26536   (eval $ac_link) 2>conftest.er1
26537   ac_status=$?
26538   grep -v '^ *+' conftest.er1 >conftest.err
26539   rm -f conftest.er1
26540   cat conftest.err >&5
26541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26542   (exit $ac_status); } &&
26543          { ac_try='test -z "$ac_c_werror_flag"
26544                          || test ! -s conftest.err'
26545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26546   (eval $ac_try) 2>&5
26547   ac_status=$?
26548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549   (exit $ac_status); }; } &&
26550          { ac_try='test -s conftest$ac_exeext'
26551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26552   (eval $ac_try) 2>&5
26553   ac_status=$?
26554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555   (exit $ac_status); }; }; then
26556   ac_cv_search_regfree="none required"
26557 else
26558   echo "$as_me: failed program was:" >&5
26559 sed 's/^/| /' conftest.$ac_ext >&5
26560
26561 fi
26562 rm -f conftest.err conftest.$ac_objext \
26563       conftest$ac_exeext conftest.$ac_ext
26564 if test "$ac_cv_search_regfree" = no; then
26565   for ac_lib in regex gnuregex; do
26566     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26567     cat >conftest.$ac_ext <<_ACEOF
26568 /* confdefs.h.  */
26569 _ACEOF
26570 cat confdefs.h >>conftest.$ac_ext
26571 cat >>conftest.$ac_ext <<_ACEOF
26572 /* end confdefs.h.  */
26573
26574 /* Override any gcc2 internal prototype to avoid an error.  */
26575 #ifdef __cplusplus
26576 extern "C"
26577 #endif
26578 /* We use char because int might match the return type of a gcc2
26579    builtin and then its argument prototype would still apply.  */
26580 char regfree ();
26581 int
26582 main ()
26583 {
26584 regfree ();
26585   ;
26586   return 0;
26587 }
26588 _ACEOF
26589 rm -f conftest.$ac_objext conftest$ac_exeext
26590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26591   (eval $ac_link) 2>conftest.er1
26592   ac_status=$?
26593   grep -v '^ *+' conftest.er1 >conftest.err
26594   rm -f conftest.er1
26595   cat conftest.err >&5
26596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597   (exit $ac_status); } &&
26598          { ac_try='test -z "$ac_c_werror_flag"
26599                          || test ! -s conftest.err'
26600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26601   (eval $ac_try) 2>&5
26602   ac_status=$?
26603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604   (exit $ac_status); }; } &&
26605          { ac_try='test -s conftest$ac_exeext'
26606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26607   (eval $ac_try) 2>&5
26608   ac_status=$?
26609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26610   (exit $ac_status); }; }; then
26611   ac_cv_search_regfree="-l$ac_lib"
26612 break
26613 else
26614   echo "$as_me: failed program was:" >&5
26615 sed 's/^/| /' conftest.$ac_ext >&5
26616
26617 fi
26618 rm -f conftest.err conftest.$ac_objext \
26619       conftest$ac_exeext conftest.$ac_ext
26620   done
26621 fi
26622 LIBS=$ac_func_search_save_LIBS
26623 fi
26624 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26625 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26626 if test "$ac_cv_search_regfree" != no; then
26627   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26628   :
26629 else
26630   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26631 echo "$as_me: error: POSIX regex required." >&2;}
26632    { (exit 1); exit 1; }; }
26633 fi
26634
26635
26636
26637 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26638 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26639 if test "${ol_cv_c_posix_regex+set}" = set; then
26640   echo $ECHO_N "(cached) $ECHO_C" >&6
26641 else
26642
26643         if test "$cross_compiling" = yes; then
26644   ol_cv_c_posix_regex=cross
26645 else
26646   cat >conftest.$ac_ext <<_ACEOF
26647 /* confdefs.h.  */
26648 _ACEOF
26649 cat confdefs.h >>conftest.$ac_ext
26650 cat >>conftest.$ac_ext <<_ACEOF
26651 /* end confdefs.h.  */
26652
26653 #include <sys/types.h>
26654 #include <regex.h>
26655 static char *pattern, *string;
26656 main()
26657 {
26658         int rc;
26659         regex_t re;
26660
26661         pattern = "^A";
26662
26663         if(regcomp(&re, pattern, 0)) {
26664                 return -1;
26665         }
26666
26667         string = "ALL MATCH";
26668
26669         rc = regexec(&re, string, 0, (void*)0, 0);
26670
26671         regfree(&re);
26672
26673         return rc;
26674 }
26675 _ACEOF
26676 rm -f conftest$ac_exeext
26677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26678   (eval $ac_link) 2>&5
26679   ac_status=$?
26680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26681   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26683   (eval $ac_try) 2>&5
26684   ac_status=$?
26685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686   (exit $ac_status); }; }; then
26687   ol_cv_c_posix_regex=yes
26688 else
26689   echo "$as_me: program exited with status $ac_status" >&5
26690 echo "$as_me: failed program was:" >&5
26691 sed 's/^/| /' conftest.$ac_ext >&5
26692
26693 ( exit $ac_status )
26694 ol_cv_c_posix_regex=no
26695 fi
26696 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26697 fi
26698 fi
26699 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26700 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26701
26702 if test "$ol_cv_c_posix_regex" = no ; then
26703         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26704 echo "$as_me: error: broken POSIX regex!" >&2;}
26705    { (exit 1); exit 1; }; }
26706 fi
26707
26708
26709 have_uuid=no
26710
26711 for ac_header in sys/uuid.h
26712 do
26713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26715   echo "$as_me:$LINENO: checking for $ac_header" >&5
26716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26718   echo $ECHO_N "(cached) $ECHO_C" >&6
26719 fi
26720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26722 else
26723   # Is the header compilable?
26724 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26726 cat >conftest.$ac_ext <<_ACEOF
26727 /* confdefs.h.  */
26728 _ACEOF
26729 cat confdefs.h >>conftest.$ac_ext
26730 cat >>conftest.$ac_ext <<_ACEOF
26731 /* end confdefs.h.  */
26732 $ac_includes_default
26733 #include <$ac_header>
26734 _ACEOF
26735 rm -f conftest.$ac_objext
26736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26737   (eval $ac_compile) 2>conftest.er1
26738   ac_status=$?
26739   grep -v '^ *+' conftest.er1 >conftest.err
26740   rm -f conftest.er1
26741   cat conftest.err >&5
26742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743   (exit $ac_status); } &&
26744          { ac_try='test -z "$ac_c_werror_flag"
26745                          || test ! -s conftest.err'
26746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26747   (eval $ac_try) 2>&5
26748   ac_status=$?
26749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750   (exit $ac_status); }; } &&
26751          { ac_try='test -s conftest.$ac_objext'
26752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26753   (eval $ac_try) 2>&5
26754   ac_status=$?
26755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756   (exit $ac_status); }; }; then
26757   ac_header_compiler=yes
26758 else
26759   echo "$as_me: failed program was:" >&5
26760 sed 's/^/| /' conftest.$ac_ext >&5
26761
26762 ac_header_compiler=no
26763 fi
26764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26765 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26766 echo "${ECHO_T}$ac_header_compiler" >&6
26767
26768 # Is the header present?
26769 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26771 cat >conftest.$ac_ext <<_ACEOF
26772 /* confdefs.h.  */
26773 _ACEOF
26774 cat confdefs.h >>conftest.$ac_ext
26775 cat >>conftest.$ac_ext <<_ACEOF
26776 /* end confdefs.h.  */
26777 #include <$ac_header>
26778 _ACEOF
26779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26780   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26781   ac_status=$?
26782   grep -v '^ *+' conftest.er1 >conftest.err
26783   rm -f conftest.er1
26784   cat conftest.err >&5
26785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786   (exit $ac_status); } >/dev/null; then
26787   if test -s conftest.err; then
26788     ac_cpp_err=$ac_c_preproc_warn_flag
26789     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26790   else
26791     ac_cpp_err=
26792   fi
26793 else
26794   ac_cpp_err=yes
26795 fi
26796 if test -z "$ac_cpp_err"; then
26797   ac_header_preproc=yes
26798 else
26799   echo "$as_me: failed program was:" >&5
26800 sed 's/^/| /' conftest.$ac_ext >&5
26801
26802   ac_header_preproc=no
26803 fi
26804 rm -f conftest.err conftest.$ac_ext
26805 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26806 echo "${ECHO_T}$ac_header_preproc" >&6
26807
26808 # So?  What about this header?
26809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26810   yes:no: )
26811     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26813     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26815     ac_header_preproc=yes
26816     ;;
26817   no:yes:* )
26818     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26820     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26821 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26822     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26824     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26825 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26828     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26830     (
26831       cat <<\_ASBOX
26832 ## ------------------------------------------ ##
26833 ## Report this to the AC_PACKAGE_NAME lists.  ##
26834 ## ------------------------------------------ ##
26835 _ASBOX
26836     ) |
26837       sed "s/^/$as_me: WARNING:     /" >&2
26838     ;;
26839 esac
26840 echo "$as_me:$LINENO: checking for $ac_header" >&5
26841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26843   echo $ECHO_N "(cached) $ECHO_C" >&6
26844 else
26845   eval "$as_ac_Header=\$ac_header_preproc"
26846 fi
26847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26849
26850 fi
26851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26852   cat >>confdefs.h <<_ACEOF
26853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26854 _ACEOF
26855
26856 fi
26857
26858 done
26859
26860 if test $ac_cv_header_sys_uuid_h = yes ; then
26861         save_LIBS="$LIBS"
26862         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
26863 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
26864 if test "${ac_cv_search_uuid_to_str+set}" = set; then
26865   echo $ECHO_N "(cached) $ECHO_C" >&6
26866 else
26867   ac_func_search_save_LIBS=$LIBS
26868 ac_cv_search_uuid_to_str=no
26869 cat >conftest.$ac_ext <<_ACEOF
26870 /* confdefs.h.  */
26871 _ACEOF
26872 cat confdefs.h >>conftest.$ac_ext
26873 cat >>conftest.$ac_ext <<_ACEOF
26874 /* end confdefs.h.  */
26875
26876 /* Override any gcc2 internal prototype to avoid an error.  */
26877 #ifdef __cplusplus
26878 extern "C"
26879 #endif
26880 /* We use char because int might match the return type of a gcc2
26881    builtin and then its argument prototype would still apply.  */
26882 char uuid_to_str ();
26883 int
26884 main ()
26885 {
26886 uuid_to_str ();
26887   ;
26888   return 0;
26889 }
26890 _ACEOF
26891 rm -f conftest.$ac_objext conftest$ac_exeext
26892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26893   (eval $ac_link) 2>conftest.er1
26894   ac_status=$?
26895   grep -v '^ *+' conftest.er1 >conftest.err
26896   rm -f conftest.er1
26897   cat conftest.err >&5
26898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26899   (exit $ac_status); } &&
26900          { ac_try='test -z "$ac_c_werror_flag"
26901                          || test ! -s conftest.err'
26902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26903   (eval $ac_try) 2>&5
26904   ac_status=$?
26905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906   (exit $ac_status); }; } &&
26907          { ac_try='test -s conftest$ac_exeext'
26908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26909   (eval $ac_try) 2>&5
26910   ac_status=$?
26911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912   (exit $ac_status); }; }; then
26913   ac_cv_search_uuid_to_str="none required"
26914 else
26915   echo "$as_me: failed program was:" >&5
26916 sed 's/^/| /' conftest.$ac_ext >&5
26917
26918 fi
26919 rm -f conftest.err conftest.$ac_objext \
26920       conftest$ac_exeext conftest.$ac_ext
26921 if test "$ac_cv_search_uuid_to_str" = no; then
26922   for ac_lib in uuid; do
26923     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26924     cat >conftest.$ac_ext <<_ACEOF
26925 /* confdefs.h.  */
26926 _ACEOF
26927 cat confdefs.h >>conftest.$ac_ext
26928 cat >>conftest.$ac_ext <<_ACEOF
26929 /* end confdefs.h.  */
26930
26931 /* Override any gcc2 internal prototype to avoid an error.  */
26932 #ifdef __cplusplus
26933 extern "C"
26934 #endif
26935 /* We use char because int might match the return type of a gcc2
26936    builtin and then its argument prototype would still apply.  */
26937 char uuid_to_str ();
26938 int
26939 main ()
26940 {
26941 uuid_to_str ();
26942   ;
26943   return 0;
26944 }
26945 _ACEOF
26946 rm -f conftest.$ac_objext conftest$ac_exeext
26947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26948   (eval $ac_link) 2>conftest.er1
26949   ac_status=$?
26950   grep -v '^ *+' conftest.er1 >conftest.err
26951   rm -f conftest.er1
26952   cat conftest.err >&5
26953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954   (exit $ac_status); } &&
26955          { ac_try='test -z "$ac_c_werror_flag"
26956                          || test ! -s conftest.err'
26957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26958   (eval $ac_try) 2>&5
26959   ac_status=$?
26960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961   (exit $ac_status); }; } &&
26962          { ac_try='test -s conftest$ac_exeext'
26963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26964   (eval $ac_try) 2>&5
26965   ac_status=$?
26966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26967   (exit $ac_status); }; }; then
26968   ac_cv_search_uuid_to_str="-l$ac_lib"
26969 break
26970 else
26971   echo "$as_me: failed program was:" >&5
26972 sed 's/^/| /' conftest.$ac_ext >&5
26973
26974 fi
26975 rm -f conftest.err conftest.$ac_objext \
26976       conftest$ac_exeext conftest.$ac_ext
26977   done
26978 fi
26979 LIBS=$ac_func_search_save_LIBS
26980 fi
26981 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
26982 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
26983 if test "$ac_cv_search_uuid_to_str" != no; then
26984   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
26985   have_uuid=yes
26986 else
26987   :
26988 fi
26989
26990         LIBS="$save_LIBS"
26991
26992         if test have_uuid = yes ; then
26993
26994 cat >>confdefs.h <<\_ACEOF
26995 #define HAVE_UUID_TO_STR 1
26996 _ACEOF
26997
26998
26999                 test "$ac_cv_search_uuid_to_str" = "none required" || \
27000                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
27001         fi
27002 fi
27003
27004 if test $have_uuid = no ; then
27005         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27006 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27007         save_LIBS="$LIBS"
27008         LIBS="$LIBS -lrpcrt4"
27009         cat >conftest.$ac_ext <<_ACEOF
27010 /* confdefs.h.  */
27011 _ACEOF
27012 cat confdefs.h >>conftest.$ac_ext
27013 cat >>conftest.$ac_ext <<_ACEOF
27014 /* end confdefs.h.  */
27015
27016                 int __stdcall UuidCreate(void *);
27017                 int __stdcall UuidToStringA(void *,void **);
27018
27019 int
27020 main ()
27021 {
27022
27023                 UuidCreate(0);
27024                 UuidToStringA(0,0);
27025
27026   ;
27027   return 0;
27028 }
27029 _ACEOF
27030 rm -f conftest.$ac_objext conftest$ac_exeext
27031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27032   (eval $ac_link) 2>conftest.er1
27033   ac_status=$?
27034   grep -v '^ *+' conftest.er1 >conftest.err
27035   rm -f conftest.er1
27036   cat conftest.err >&5
27037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038   (exit $ac_status); } &&
27039          { ac_try='test -z "$ac_c_werror_flag"
27040                          || test ! -s conftest.err'
27041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27042   (eval $ac_try) 2>&5
27043   ac_status=$?
27044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045   (exit $ac_status); }; } &&
27046          { ac_try='test -s conftest$ac_exeext'
27047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27048   (eval $ac_try) 2>&5
27049   ac_status=$?
27050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051   (exit $ac_status); }; }; then
27052   need_rpcrt=yes
27053 else
27054   echo "$as_me: failed program was:" >&5
27055 sed 's/^/| /' conftest.$ac_ext >&5
27056
27057 need_rpcrt=no
27058 fi
27059 rm -f conftest.err conftest.$ac_objext \
27060       conftest$ac_exeext conftest.$ac_ext
27061         if test $need_rpcrt = yes; then
27062                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27063         fi
27064         LIBS="$save_LIBS"
27065         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27066 echo "${ECHO_T}$need_rpcrt" >&6
27067 fi
27068
27069 ol_cv_lib_resolver=no
27070 if test $ol_cv_lib_resolver = no ; then
27071         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27072 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27073 if test "${ol_cv_resolver_none+set}" = set; then
27074   echo $ECHO_N "(cached) $ECHO_C" >&6
27075 else
27076
27077         ol_RESOLVER_LIB=
27078         ol_LIBS=$LIBS
27079         LIBS="$ol_RESOLVER_LIB $LIBS"
27080
27081         cat >conftest.$ac_ext <<_ACEOF
27082 /* confdefs.h.  */
27083 _ACEOF
27084 cat confdefs.h >>conftest.$ac_ext
27085 cat >>conftest.$ac_ext <<_ACEOF
27086 /* end confdefs.h.  */
27087
27088 #ifdef HAVE_SYS_TYPES_H
27089 #       include <sys/types.h>
27090 #endif
27091 #include <netinet/in.h>
27092 #ifdef HAVE_ARPA_NAMESER_H
27093 #       include <arpa/nameser.h>
27094 #endif
27095 #ifdef HAVE_RESOLV_H
27096 #       include <resolv.h>
27097 #endif
27098
27099 int
27100 main ()
27101 {
27102 {
27103         int len, status;
27104         char *request = NULL;
27105         unsigned char reply[64*1024];
27106         unsigned char host[64*1024];
27107         unsigned char *p;
27108
27109 #ifdef NS_HFIXEDSZ
27110         /* Bind 8/9 interface */
27111         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27112 #else
27113         /* Bind 4 interface */
27114 # ifndef T_SRV
27115 #  define T_SRV 33
27116 # endif
27117         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27118 #endif
27119         p = reply;
27120 #ifdef NS_HFIXEDSZ
27121         /* Bind 8/9 interface */
27122         p += NS_HFIXEDSZ;
27123 #elif defined(HFIXEDSZ)
27124         /* Bind 4 interface w/ HFIXEDSZ */
27125         p += HFIXEDSZ;
27126 #else
27127         /* Bind 4 interface w/o HFIXEDSZ */
27128         p += sizeof(HEADER);
27129 #endif
27130         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27131 }
27132   ;
27133   return 0;
27134 }
27135 _ACEOF
27136 rm -f conftest.$ac_objext conftest$ac_exeext
27137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27138   (eval $ac_link) 2>conftest.er1
27139   ac_status=$?
27140   grep -v '^ *+' conftest.er1 >conftest.err
27141   rm -f conftest.er1
27142   cat conftest.err >&5
27143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144   (exit $ac_status); } &&
27145          { ac_try='test -z "$ac_c_werror_flag"
27146                          || test ! -s conftest.err'
27147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27148   (eval $ac_try) 2>&5
27149   ac_status=$?
27150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151   (exit $ac_status); }; } &&
27152          { ac_try='test -s conftest$ac_exeext'
27153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27154   (eval $ac_try) 2>&5
27155   ac_status=$?
27156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157   (exit $ac_status); }; }; then
27158   ol_cv_resolver_none=yes
27159 else
27160   echo "$as_me: failed program was:" >&5
27161 sed 's/^/| /' conftest.$ac_ext >&5
27162
27163 ol_cv_resolver_none=no
27164 fi
27165 rm -f conftest.err conftest.$ac_objext \
27166       conftest$ac_exeext conftest.$ac_ext
27167
27168         LIBS="$ol_LIBS"
27169
27170 fi
27171 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27172 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27173
27174         if test $ol_cv_resolver_none = yes ; then
27175                 ol_cv_lib_resolver=yes
27176         fi
27177 fi
27178
27179 if test $ol_cv_lib_resolver = no ; then
27180         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27181 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27182 if test "${ol_cv_resolver_resolv+set}" = set; then
27183   echo $ECHO_N "(cached) $ECHO_C" >&6
27184 else
27185
27186         ol_RESOLVER_LIB=-lresolv
27187         ol_LIBS=$LIBS
27188         LIBS="$ol_RESOLVER_LIB $LIBS"
27189
27190         cat >conftest.$ac_ext <<_ACEOF
27191 /* confdefs.h.  */
27192 _ACEOF
27193 cat confdefs.h >>conftest.$ac_ext
27194 cat >>conftest.$ac_ext <<_ACEOF
27195 /* end confdefs.h.  */
27196
27197 #ifdef HAVE_SYS_TYPES_H
27198 #       include <sys/types.h>
27199 #endif
27200 #include <netinet/in.h>
27201 #ifdef HAVE_ARPA_NAMESER_H
27202 #       include <arpa/nameser.h>
27203 #endif
27204 #ifdef HAVE_RESOLV_H
27205 #       include <resolv.h>
27206 #endif
27207
27208 int
27209 main ()
27210 {
27211 {
27212         int len, status;
27213         char *request = NULL;
27214         unsigned char reply[64*1024];
27215         unsigned char host[64*1024];
27216         unsigned char *p;
27217
27218 #ifdef NS_HFIXEDSZ
27219         /* Bind 8/9 interface */
27220         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27221 #else
27222         /* Bind 4 interface */
27223 # ifndef T_SRV
27224 #  define T_SRV 33
27225 # endif
27226         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27227 #endif
27228         p = reply;
27229 #ifdef NS_HFIXEDSZ
27230         /* Bind 8/9 interface */
27231         p += NS_HFIXEDSZ;
27232 #elif defined(HFIXEDSZ)
27233         /* Bind 4 interface w/ HFIXEDSZ */
27234         p += HFIXEDSZ;
27235 #else
27236         /* Bind 4 interface w/o HFIXEDSZ */
27237         p += sizeof(HEADER);
27238 #endif
27239         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27240 }
27241   ;
27242   return 0;
27243 }
27244 _ACEOF
27245 rm -f conftest.$ac_objext conftest$ac_exeext
27246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27247   (eval $ac_link) 2>conftest.er1
27248   ac_status=$?
27249   grep -v '^ *+' conftest.er1 >conftest.err
27250   rm -f conftest.er1
27251   cat conftest.err >&5
27252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27253   (exit $ac_status); } &&
27254          { ac_try='test -z "$ac_c_werror_flag"
27255                          || test ! -s conftest.err'
27256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27257   (eval $ac_try) 2>&5
27258   ac_status=$?
27259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260   (exit $ac_status); }; } &&
27261          { ac_try='test -s conftest$ac_exeext'
27262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27263   (eval $ac_try) 2>&5
27264   ac_status=$?
27265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266   (exit $ac_status); }; }; then
27267   ol_cv_resolver_resolv=yes
27268 else
27269   echo "$as_me: failed program was:" >&5
27270 sed 's/^/| /' conftest.$ac_ext >&5
27271
27272 ol_cv_resolver_resolv=no
27273 fi
27274 rm -f conftest.err conftest.$ac_objext \
27275       conftest$ac_exeext conftest.$ac_ext
27276
27277         LIBS="$ol_LIBS"
27278
27279 fi
27280 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27281 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27282
27283         if test $ol_cv_resolver_resolv = yes ; then
27284                 ol_cv_lib_resolver=-lresolv
27285         fi
27286 fi
27287
27288 if test $ol_cv_lib_resolver = no ; then
27289         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27290 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27291 if test "${ol_cv_resolver_bind+set}" = set; then
27292   echo $ECHO_N "(cached) $ECHO_C" >&6
27293 else
27294
27295         ol_RESOLVER_LIB=-lbind
27296         ol_LIBS=$LIBS
27297         LIBS="$ol_RESOLVER_LIB $LIBS"
27298
27299         cat >conftest.$ac_ext <<_ACEOF
27300 /* confdefs.h.  */
27301 _ACEOF
27302 cat confdefs.h >>conftest.$ac_ext
27303 cat >>conftest.$ac_ext <<_ACEOF
27304 /* end confdefs.h.  */
27305
27306 #ifdef HAVE_SYS_TYPES_H
27307 #       include <sys/types.h>
27308 #endif
27309 #include <netinet/in.h>
27310 #ifdef HAVE_ARPA_NAMESER_H
27311 #       include <arpa/nameser.h>
27312 #endif
27313 #ifdef HAVE_RESOLV_H
27314 #       include <resolv.h>
27315 #endif
27316
27317 int
27318 main ()
27319 {
27320 {
27321         int len, status;
27322         char *request = NULL;
27323         unsigned char reply[64*1024];
27324         unsigned char host[64*1024];
27325         unsigned char *p;
27326
27327 #ifdef NS_HFIXEDSZ
27328         /* Bind 8/9 interface */
27329         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27330 #else
27331         /* Bind 4 interface */
27332 # ifndef T_SRV
27333 #  define T_SRV 33
27334 # endif
27335         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27336 #endif
27337         p = reply;
27338 #ifdef NS_HFIXEDSZ
27339         /* Bind 8/9 interface */
27340         p += NS_HFIXEDSZ;
27341 #elif defined(HFIXEDSZ)
27342         /* Bind 4 interface w/ HFIXEDSZ */
27343         p += HFIXEDSZ;
27344 #else
27345         /* Bind 4 interface w/o HFIXEDSZ */
27346         p += sizeof(HEADER);
27347 #endif
27348         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27349 }
27350   ;
27351   return 0;
27352 }
27353 _ACEOF
27354 rm -f conftest.$ac_objext conftest$ac_exeext
27355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27356   (eval $ac_link) 2>conftest.er1
27357   ac_status=$?
27358   grep -v '^ *+' conftest.er1 >conftest.err
27359   rm -f conftest.er1
27360   cat conftest.err >&5
27361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27362   (exit $ac_status); } &&
27363          { ac_try='test -z "$ac_c_werror_flag"
27364                          || test ! -s conftest.err'
27365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27366   (eval $ac_try) 2>&5
27367   ac_status=$?
27368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369   (exit $ac_status); }; } &&
27370          { ac_try='test -s conftest$ac_exeext'
27371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27372   (eval $ac_try) 2>&5
27373   ac_status=$?
27374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375   (exit $ac_status); }; }; then
27376   ol_cv_resolver_bind=yes
27377 else
27378   echo "$as_me: failed program was:" >&5
27379 sed 's/^/| /' conftest.$ac_ext >&5
27380
27381 ol_cv_resolver_bind=no
27382 fi
27383 rm -f conftest.err conftest.$ac_objext \
27384       conftest$ac_exeext conftest.$ac_ext
27385
27386         LIBS="$ol_LIBS"
27387
27388 fi
27389 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27390 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27391
27392         if test $ol_cv_resolver_bind = yes ; then
27393                 ol_cv_lib_resolver=-lbind
27394         fi
27395 fi
27396
27397
27398
27399 ol_link_dnssrv=no
27400 if test "$ol_cv_lib_resolver" != no ; then
27401
27402 cat >>confdefs.h <<\_ACEOF
27403 #define HAVE_RES_QUERY 1
27404 _ACEOF
27405
27406
27407         if test "$ol_enable_dnssrv" != no ; then
27408                 ol_link_dnssrv=yes
27409         fi
27410
27411         if test "$ol_cv_lib_resolver" != yes ; then
27412                 LIBS="$ol_cv_lib_resolver $LIBS"
27413         fi
27414 fi
27415
27416 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27417         if test "$ol_link_dnssrv" = no ; then
27418                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27419 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27420    { (exit 1); exit 1; }; }
27421         fi
27422 else
27423         ol_enable_dnssrv=no
27424 fi
27425
27426
27427 for ac_func in hstrerror
27428 do
27429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27430 echo "$as_me:$LINENO: checking for $ac_func" >&5
27431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27432 if eval "test \"\${$as_ac_var+set}\" = set"; then
27433   echo $ECHO_N "(cached) $ECHO_C" >&6
27434 else
27435   cat >conftest.$ac_ext <<_ACEOF
27436 /* confdefs.h.  */
27437 _ACEOF
27438 cat confdefs.h >>conftest.$ac_ext
27439 cat >>conftest.$ac_ext <<_ACEOF
27440 /* end confdefs.h.  */
27441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27442    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27443 #define $ac_func innocuous_$ac_func
27444
27445 /* System header to define __stub macros and hopefully few prototypes,
27446     which can conflict with char $ac_func (); below.
27447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27448     <limits.h> exists even on freestanding compilers.  */
27449
27450 #ifdef __STDC__
27451 # include <limits.h>
27452 #else
27453 # include <assert.h>
27454 #endif
27455
27456 #undef $ac_func
27457
27458 /* Override any gcc2 internal prototype to avoid an error.  */
27459 #ifdef __cplusplus
27460 extern "C"
27461 {
27462 #endif
27463 /* We use char because int might match the return type of a gcc2
27464    builtin and then its argument prototype would still apply.  */
27465 char $ac_func ();
27466 /* The GNU C library defines this for functions which it implements
27467     to always fail with ENOSYS.  Some functions are actually named
27468     something starting with __ and the normal name is an alias.  */
27469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27470 choke me
27471 #else
27472 char (*f) () = $ac_func;
27473 #endif
27474 #ifdef __cplusplus
27475 }
27476 #endif
27477
27478 int
27479 main ()
27480 {
27481 return f != $ac_func;
27482   ;
27483   return 0;
27484 }
27485 _ACEOF
27486 rm -f conftest.$ac_objext conftest$ac_exeext
27487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27488   (eval $ac_link) 2>conftest.er1
27489   ac_status=$?
27490   grep -v '^ *+' conftest.er1 >conftest.err
27491   rm -f conftest.er1
27492   cat conftest.err >&5
27493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494   (exit $ac_status); } &&
27495          { ac_try='test -z "$ac_c_werror_flag"
27496                          || test ! -s conftest.err'
27497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27498   (eval $ac_try) 2>&5
27499   ac_status=$?
27500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27501   (exit $ac_status); }; } &&
27502          { ac_try='test -s conftest$ac_exeext'
27503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27504   (eval $ac_try) 2>&5
27505   ac_status=$?
27506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27507   (exit $ac_status); }; }; then
27508   eval "$as_ac_var=yes"
27509 else
27510   echo "$as_me: failed program was:" >&5
27511 sed 's/^/| /' conftest.$ac_ext >&5
27512
27513 eval "$as_ac_var=no"
27514 fi
27515 rm -f conftest.err conftest.$ac_objext \
27516       conftest$ac_exeext conftest.$ac_ext
27517 fi
27518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27520 if test `eval echo '${'$as_ac_var'}'` = yes; then
27521   cat >>confdefs.h <<_ACEOF
27522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27523 _ACEOF
27524
27525 fi
27526 done
27527
27528
27529
27530
27531
27532
27533 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27534 do
27535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27536 echo "$as_me:$LINENO: checking for $ac_func" >&5
27537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27538 if eval "test \"\${$as_ac_var+set}\" = set"; then
27539   echo $ECHO_N "(cached) $ECHO_C" >&6
27540 else
27541   cat >conftest.$ac_ext <<_ACEOF
27542 /* confdefs.h.  */
27543 _ACEOF
27544 cat confdefs.h >>conftest.$ac_ext
27545 cat >>conftest.$ac_ext <<_ACEOF
27546 /* end confdefs.h.  */
27547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27549 #define $ac_func innocuous_$ac_func
27550
27551 /* System header to define __stub macros and hopefully few prototypes,
27552     which can conflict with char $ac_func (); below.
27553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27554     <limits.h> exists even on freestanding compilers.  */
27555
27556 #ifdef __STDC__
27557 # include <limits.h>
27558 #else
27559 # include <assert.h>
27560 #endif
27561
27562 #undef $ac_func
27563
27564 /* Override any gcc2 internal prototype to avoid an error.  */
27565 #ifdef __cplusplus
27566 extern "C"
27567 {
27568 #endif
27569 /* We use char because int might match the return type of a gcc2
27570    builtin and then its argument prototype would still apply.  */
27571 char $ac_func ();
27572 /* The GNU C library defines this for functions which it implements
27573     to always fail with ENOSYS.  Some functions are actually named
27574     something starting with __ and the normal name is an alias.  */
27575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27576 choke me
27577 #else
27578 char (*f) () = $ac_func;
27579 #endif
27580 #ifdef __cplusplus
27581 }
27582 #endif
27583
27584 int
27585 main ()
27586 {
27587 return f != $ac_func;
27588   ;
27589   return 0;
27590 }
27591 _ACEOF
27592 rm -f conftest.$ac_objext conftest$ac_exeext
27593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27594   (eval $ac_link) 2>conftest.er1
27595   ac_status=$?
27596   grep -v '^ *+' conftest.er1 >conftest.err
27597   rm -f conftest.er1
27598   cat conftest.err >&5
27599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600   (exit $ac_status); } &&
27601          { ac_try='test -z "$ac_c_werror_flag"
27602                          || test ! -s conftest.err'
27603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27604   (eval $ac_try) 2>&5
27605   ac_status=$?
27606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607   (exit $ac_status); }; } &&
27608          { ac_try='test -s conftest$ac_exeext'
27609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27610   (eval $ac_try) 2>&5
27611   ac_status=$?
27612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613   (exit $ac_status); }; }; then
27614   eval "$as_ac_var=yes"
27615 else
27616   echo "$as_me: failed program was:" >&5
27617 sed 's/^/| /' conftest.$ac_ext >&5
27618
27619 eval "$as_ac_var=no"
27620 fi
27621 rm -f conftest.err conftest.$ac_objext \
27622       conftest$ac_exeext conftest.$ac_ext
27623 fi
27624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27626 if test `eval echo '${'$as_ac_var'}'` = yes; then
27627   cat >>confdefs.h <<_ACEOF
27628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27629 _ACEOF
27630
27631 fi
27632 done
27633
27634
27635 ol_link_ipv6=no
27636 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27637         if test $ol_enable_ipv6 = yes ; then
27638                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27639 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27640    { (exit 1); exit 1; }; }
27641         fi
27642 elif test $ol_enable_ipv6 != no ; then
27643         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27644 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27645 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27646   echo $ECHO_N "(cached) $ECHO_C" >&6
27647 else
27648
27649                 cat >conftest.$ac_ext <<_ACEOF
27650 /* confdefs.h.  */
27651 _ACEOF
27652 cat confdefs.h >>conftest.$ac_ext
27653 cat >>conftest.$ac_ext <<_ACEOF
27654 /* end confdefs.h.  */
27655
27656 #                       include <netinet/in.h>
27657 #                       ifdef INET6_ADDRSTRLEN
27658                                 __has_inet6_addrstrlen__;
27659 #                       endif
27660
27661 _ACEOF
27662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27663   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27664   ol_cv_inet6_addrstrlen=yes
27665 else
27666   ol_cv_inet6_addrstrlen=no
27667 fi
27668 rm -f conftest*
27669
27670 fi
27671 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27672 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27673
27674
27675         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27676 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27677 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27678   echo $ECHO_N "(cached) $ECHO_C" >&6
27679 else
27680
27681                 cat >conftest.$ac_ext <<_ACEOF
27682 /* confdefs.h.  */
27683 _ACEOF
27684 cat confdefs.h >>conftest.$ac_ext
27685 cat >>conftest.$ac_ext <<_ACEOF
27686 /* end confdefs.h.  */
27687
27688 #include <sys/types.h>
27689 #include <sys/socket.h>
27690
27691 int
27692 main ()
27693 {
27694
27695                         struct sockaddr_storage ss;
27696
27697   ;
27698   return 0;
27699 }
27700 _ACEOF
27701 rm -f conftest.$ac_objext
27702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27703   (eval $ac_compile) 2>conftest.er1
27704   ac_status=$?
27705   grep -v '^ *+' conftest.er1 >conftest.err
27706   rm -f conftest.er1
27707   cat conftest.err >&5
27708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709   (exit $ac_status); } &&
27710          { ac_try='test -z "$ac_c_werror_flag"
27711                          || test ! -s conftest.err'
27712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27713   (eval $ac_try) 2>&5
27714   ac_status=$?
27715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716   (exit $ac_status); }; } &&
27717          { ac_try='test -s conftest.$ac_objext'
27718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27719   (eval $ac_try) 2>&5
27720   ac_status=$?
27721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722   (exit $ac_status); }; }; then
27723   ol_cv_struct_sockaddr_storage=yes
27724 else
27725   echo "$as_me: failed program was:" >&5
27726 sed 's/^/| /' conftest.$ac_ext >&5
27727
27728 ol_cv_struct_sockaddr_storage=no
27729 fi
27730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27731 fi
27732 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
27733 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
27734
27735         if test $ol_cv_inet6_addrstrlen = yes \
27736                 -a $ol_cv_struct_sockaddr_storage = yes ; then
27737                 ol_link_ipv6=yes
27738         elif test $ol_enable_ipv6 = yes \
27739                         -a $ol_cv_inet6_addrstrlen = no ; then
27740                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
27741 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
27742    { (exit 1); exit 1; }; }
27743         elif test $ol_enable_ipv6 = yes \
27744                         -a $ol_cv_struct_sockaddr_storage = no ; then
27745                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
27746 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
27747    { (exit 1); exit 1; }; }
27748         fi
27749 fi
27750
27751 if test $ol_enable_local != no ; then
27752
27753 for ac_header in sys/un.h
27754 do
27755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27757   echo "$as_me:$LINENO: checking for $ac_header" >&5
27758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27760   echo $ECHO_N "(cached) $ECHO_C" >&6
27761 fi
27762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27764 else
27765   # Is the header compilable?
27766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27768 cat >conftest.$ac_ext <<_ACEOF
27769 /* confdefs.h.  */
27770 _ACEOF
27771 cat confdefs.h >>conftest.$ac_ext
27772 cat >>conftest.$ac_ext <<_ACEOF
27773 /* end confdefs.h.  */
27774 $ac_includes_default
27775 #include <$ac_header>
27776 _ACEOF
27777 rm -f conftest.$ac_objext
27778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27779   (eval $ac_compile) 2>conftest.er1
27780   ac_status=$?
27781   grep -v '^ *+' conftest.er1 >conftest.err
27782   rm -f conftest.er1
27783   cat conftest.err >&5
27784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785   (exit $ac_status); } &&
27786          { ac_try='test -z "$ac_c_werror_flag"
27787                          || test ! -s conftest.err'
27788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27789   (eval $ac_try) 2>&5
27790   ac_status=$?
27791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792   (exit $ac_status); }; } &&
27793          { ac_try='test -s conftest.$ac_objext'
27794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27795   (eval $ac_try) 2>&5
27796   ac_status=$?
27797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798   (exit $ac_status); }; }; then
27799   ac_header_compiler=yes
27800 else
27801   echo "$as_me: failed program was:" >&5
27802 sed 's/^/| /' conftest.$ac_ext >&5
27803
27804 ac_header_compiler=no
27805 fi
27806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27808 echo "${ECHO_T}$ac_header_compiler" >&6
27809
27810 # Is the header present?
27811 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27813 cat >conftest.$ac_ext <<_ACEOF
27814 /* confdefs.h.  */
27815 _ACEOF
27816 cat confdefs.h >>conftest.$ac_ext
27817 cat >>conftest.$ac_ext <<_ACEOF
27818 /* end confdefs.h.  */
27819 #include <$ac_header>
27820 _ACEOF
27821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27822   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27823   ac_status=$?
27824   grep -v '^ *+' conftest.er1 >conftest.err
27825   rm -f conftest.er1
27826   cat conftest.err >&5
27827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828   (exit $ac_status); } >/dev/null; then
27829   if test -s conftest.err; then
27830     ac_cpp_err=$ac_c_preproc_warn_flag
27831     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27832   else
27833     ac_cpp_err=
27834   fi
27835 else
27836   ac_cpp_err=yes
27837 fi
27838 if test -z "$ac_cpp_err"; then
27839   ac_header_preproc=yes
27840 else
27841   echo "$as_me: failed program was:" >&5
27842 sed 's/^/| /' conftest.$ac_ext >&5
27843
27844   ac_header_preproc=no
27845 fi
27846 rm -f conftest.err conftest.$ac_ext
27847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27848 echo "${ECHO_T}$ac_header_preproc" >&6
27849
27850 # So?  What about this header?
27851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27852   yes:no: )
27853     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27857     ac_header_preproc=yes
27858     ;;
27859   no:yes:* )
27860     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27862     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27863 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27864     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27866     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27867 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27868     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27870     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27872     (
27873       cat <<\_ASBOX
27874 ## ------------------------------------------ ##
27875 ## Report this to the AC_PACKAGE_NAME lists.  ##
27876 ## ------------------------------------------ ##
27877 _ASBOX
27878     ) |
27879       sed "s/^/$as_me: WARNING:     /" >&2
27880     ;;
27881 esac
27882 echo "$as_me:$LINENO: checking for $ac_header" >&5
27883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27885   echo $ECHO_N "(cached) $ECHO_C" >&6
27886 else
27887   eval "$as_ac_Header=\$ac_header_preproc"
27888 fi
27889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27891
27892 fi
27893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27894   cat >>confdefs.h <<_ACEOF
27895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27896 _ACEOF
27897
27898 fi
27899
27900 done
27901
27902
27903         if test $ol_enable_local = auto ; then
27904                 ol_enable_local=$ac_cv_header_sys_un_h
27905         elif test $ac_cv_header_sys_un_h = no ; then
27906                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
27907 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
27908    { (exit 1); exit 1; }; }
27909         fi
27910 fi
27911
27912 ol_link_kbind=no
27913 ol_link_krb5=no
27914 ol_link_krb4=no
27915
27916 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
27917         -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
27918         -o $ol_with_kerberos = k425 ; then
27919
27920
27921 for ac_header in krb5.h
27922 do
27923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27925   echo "$as_me:$LINENO: checking for $ac_header" >&5
27926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27928   echo $ECHO_N "(cached) $ECHO_C" >&6
27929 fi
27930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27932 else
27933   # Is the header compilable?
27934 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27936 cat >conftest.$ac_ext <<_ACEOF
27937 /* confdefs.h.  */
27938 _ACEOF
27939 cat confdefs.h >>conftest.$ac_ext
27940 cat >>conftest.$ac_ext <<_ACEOF
27941 /* end confdefs.h.  */
27942 $ac_includes_default
27943 #include <$ac_header>
27944 _ACEOF
27945 rm -f conftest.$ac_objext
27946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27947   (eval $ac_compile) 2>conftest.er1
27948   ac_status=$?
27949   grep -v '^ *+' conftest.er1 >conftest.err
27950   rm -f conftest.er1
27951   cat conftest.err >&5
27952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953   (exit $ac_status); } &&
27954          { ac_try='test -z "$ac_c_werror_flag"
27955                          || test ! -s conftest.err'
27956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27957   (eval $ac_try) 2>&5
27958   ac_status=$?
27959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960   (exit $ac_status); }; } &&
27961          { ac_try='test -s conftest.$ac_objext'
27962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27963   (eval $ac_try) 2>&5
27964   ac_status=$?
27965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966   (exit $ac_status); }; }; then
27967   ac_header_compiler=yes
27968 else
27969   echo "$as_me: failed program was:" >&5
27970 sed 's/^/| /' conftest.$ac_ext >&5
27971
27972 ac_header_compiler=no
27973 fi
27974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27975 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27976 echo "${ECHO_T}$ac_header_compiler" >&6
27977
27978 # Is the header present?
27979 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27981 cat >conftest.$ac_ext <<_ACEOF
27982 /* confdefs.h.  */
27983 _ACEOF
27984 cat confdefs.h >>conftest.$ac_ext
27985 cat >>conftest.$ac_ext <<_ACEOF
27986 /* end confdefs.h.  */
27987 #include <$ac_header>
27988 _ACEOF
27989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27990   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27991   ac_status=$?
27992   grep -v '^ *+' conftest.er1 >conftest.err
27993   rm -f conftest.er1
27994   cat conftest.err >&5
27995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996   (exit $ac_status); } >/dev/null; then
27997   if test -s conftest.err; then
27998     ac_cpp_err=$ac_c_preproc_warn_flag
27999     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28000   else
28001     ac_cpp_err=
28002   fi
28003 else
28004   ac_cpp_err=yes
28005 fi
28006 if test -z "$ac_cpp_err"; then
28007   ac_header_preproc=yes
28008 else
28009   echo "$as_me: failed program was:" >&5
28010 sed 's/^/| /' conftest.$ac_ext >&5
28011
28012   ac_header_preproc=no
28013 fi
28014 rm -f conftest.err conftest.$ac_ext
28015 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28016 echo "${ECHO_T}$ac_header_preproc" >&6
28017
28018 # So?  What about this header?
28019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28020   yes:no: )
28021     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28023     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28025     ac_header_preproc=yes
28026     ;;
28027   no:yes:* )
28028     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28030     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28031 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28032     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28034     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28035 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28038     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28040     (
28041       cat <<\_ASBOX
28042 ## ------------------------------------------ ##
28043 ## Report this to the AC_PACKAGE_NAME lists.  ##
28044 ## ------------------------------------------ ##
28045 _ASBOX
28046     ) |
28047       sed "s/^/$as_me: WARNING:     /" >&2
28048     ;;
28049 esac
28050 echo "$as_me:$LINENO: checking for $ac_header" >&5
28051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28053   echo $ECHO_N "(cached) $ECHO_C" >&6
28054 else
28055   eval "$as_ac_Header=\$ac_header_preproc"
28056 fi
28057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28059
28060 fi
28061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28062   cat >>confdefs.h <<_ACEOF
28063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28064 _ACEOF
28065
28066 fi
28067
28068 done
28069
28070
28071         if test $ac_cv_header_krb5_h = yes ; then
28072
28073 for ac_header in heim_err.h
28074 do
28075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28077   echo "$as_me:$LINENO: checking for $ac_header" >&5
28078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28080   echo $ECHO_N "(cached) $ECHO_C" >&6
28081 fi
28082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28084 else
28085   # Is the header compilable?
28086 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28088 cat >conftest.$ac_ext <<_ACEOF
28089 /* confdefs.h.  */
28090 _ACEOF
28091 cat confdefs.h >>conftest.$ac_ext
28092 cat >>conftest.$ac_ext <<_ACEOF
28093 /* end confdefs.h.  */
28094 $ac_includes_default
28095 #include <$ac_header>
28096 _ACEOF
28097 rm -f conftest.$ac_objext
28098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28099   (eval $ac_compile) 2>conftest.er1
28100   ac_status=$?
28101   grep -v '^ *+' conftest.er1 >conftest.err
28102   rm -f conftest.er1
28103   cat conftest.err >&5
28104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105   (exit $ac_status); } &&
28106          { ac_try='test -z "$ac_c_werror_flag"
28107                          || test ! -s conftest.err'
28108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28109   (eval $ac_try) 2>&5
28110   ac_status=$?
28111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112   (exit $ac_status); }; } &&
28113          { ac_try='test -s conftest.$ac_objext'
28114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28115   (eval $ac_try) 2>&5
28116   ac_status=$?
28117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28118   (exit $ac_status); }; }; then
28119   ac_header_compiler=yes
28120 else
28121   echo "$as_me: failed program was:" >&5
28122 sed 's/^/| /' conftest.$ac_ext >&5
28123
28124 ac_header_compiler=no
28125 fi
28126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28128 echo "${ECHO_T}$ac_header_compiler" >&6
28129
28130 # Is the header present?
28131 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28133 cat >conftest.$ac_ext <<_ACEOF
28134 /* confdefs.h.  */
28135 _ACEOF
28136 cat confdefs.h >>conftest.$ac_ext
28137 cat >>conftest.$ac_ext <<_ACEOF
28138 /* end confdefs.h.  */
28139 #include <$ac_header>
28140 _ACEOF
28141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28142   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28143   ac_status=$?
28144   grep -v '^ *+' conftest.er1 >conftest.err
28145   rm -f conftest.er1
28146   cat conftest.err >&5
28147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148   (exit $ac_status); } >/dev/null; then
28149   if test -s conftest.err; then
28150     ac_cpp_err=$ac_c_preproc_warn_flag
28151     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28152   else
28153     ac_cpp_err=
28154   fi
28155 else
28156   ac_cpp_err=yes
28157 fi
28158 if test -z "$ac_cpp_err"; then
28159   ac_header_preproc=yes
28160 else
28161   echo "$as_me: failed program was:" >&5
28162 sed 's/^/| /' conftest.$ac_ext >&5
28163
28164   ac_header_preproc=no
28165 fi
28166 rm -f conftest.err conftest.$ac_ext
28167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28168 echo "${ECHO_T}$ac_header_preproc" >&6
28169
28170 # So?  What about this header?
28171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28172   yes:no: )
28173     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28175     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28177     ac_header_preproc=yes
28178     ;;
28179   no:yes:* )
28180     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28182     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28183 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28184     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28186     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28187 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28188     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28190     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28192     (
28193       cat <<\_ASBOX
28194 ## ------------------------------------------ ##
28195 ## Report this to the AC_PACKAGE_NAME lists.  ##
28196 ## ------------------------------------------ ##
28197 _ASBOX
28198     ) |
28199       sed "s/^/$as_me: WARNING:     /" >&2
28200     ;;
28201 esac
28202 echo "$as_me:$LINENO: checking for $ac_header" >&5
28203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28205   echo $ECHO_N "(cached) $ECHO_C" >&6
28206 else
28207   eval "$as_ac_Header=\$ac_header_preproc"
28208 fi
28209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28211
28212 fi
28213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28214   cat >>confdefs.h <<_ACEOF
28215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28216 _ACEOF
28217
28218 fi
28219
28220 done
28221
28222                 if test $ac_cv_header_heim_err_h = yes ; then
28223                         krb5_impl=heimdal
28224                 else
28225                         krb5_impl=mit
28226                 fi
28227
28228                 if test $krb5_impl = mit; then
28229                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28230 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28231 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28232   echo $ECHO_N "(cached) $ECHO_C" >&6
28233 else
28234   ac_check_lib_save_LIBS=$LIBS
28235 LIBS="-lk5crypto  $LIBS"
28236 cat >conftest.$ac_ext <<_ACEOF
28237 /* confdefs.h.  */
28238 _ACEOF
28239 cat confdefs.h >>conftest.$ac_ext
28240 cat >>conftest.$ac_ext <<_ACEOF
28241 /* end confdefs.h.  */
28242
28243
28244 int
28245 main ()
28246 {
28247 main ();
28248   ;
28249   return 0;
28250 }
28251 _ACEOF
28252 rm -f conftest.$ac_objext conftest$ac_exeext
28253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28254   (eval $ac_link) 2>conftest.er1
28255   ac_status=$?
28256   grep -v '^ *+' conftest.er1 >conftest.err
28257   rm -f conftest.er1
28258   cat conftest.err >&5
28259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260   (exit $ac_status); } &&
28261          { ac_try='test -z "$ac_c_werror_flag"
28262                          || test ! -s conftest.err'
28263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28264   (eval $ac_try) 2>&5
28265   ac_status=$?
28266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28267   (exit $ac_status); }; } &&
28268          { ac_try='test -s conftest$ac_exeext'
28269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28270   (eval $ac_try) 2>&5
28271   ac_status=$?
28272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273   (exit $ac_status); }; }; then
28274   ac_cv_lib_k5crypto_main=yes
28275 else
28276   echo "$as_me: failed program was:" >&5
28277 sed 's/^/| /' conftest.$ac_ext >&5
28278
28279 ac_cv_lib_k5crypto_main=no
28280 fi
28281 rm -f conftest.err conftest.$ac_objext \
28282       conftest$ac_exeext conftest.$ac_ext
28283 LIBS=$ac_check_lib_save_LIBS
28284 fi
28285 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28286 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28287 if test $ac_cv_lib_k5crypto_main = yes; then
28288   krb5crypto=k5crypto
28289 else
28290   krb5crypto=crypto
28291 fi
28292
28293
28294                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28295 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28296 if test "${ac_cv_lib_krb5_main+set}" = set; then
28297   echo $ECHO_N "(cached) $ECHO_C" >&6
28298 else
28299   ac_check_lib_save_LIBS=$LIBS
28300 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28301 cat >conftest.$ac_ext <<_ACEOF
28302 /* confdefs.h.  */
28303 _ACEOF
28304 cat confdefs.h >>conftest.$ac_ext
28305 cat >>conftest.$ac_ext <<_ACEOF
28306 /* end confdefs.h.  */
28307
28308
28309 int
28310 main ()
28311 {
28312 main ();
28313   ;
28314   return 0;
28315 }
28316 _ACEOF
28317 rm -f conftest.$ac_objext conftest$ac_exeext
28318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28319   (eval $ac_link) 2>conftest.er1
28320   ac_status=$?
28321   grep -v '^ *+' conftest.er1 >conftest.err
28322   rm -f conftest.er1
28323   cat conftest.err >&5
28324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28325   (exit $ac_status); } &&
28326          { ac_try='test -z "$ac_c_werror_flag"
28327                          || test ! -s conftest.err'
28328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28329   (eval $ac_try) 2>&5
28330   ac_status=$?
28331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332   (exit $ac_status); }; } &&
28333          { ac_try='test -s conftest$ac_exeext'
28334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28335   (eval $ac_try) 2>&5
28336   ac_status=$?
28337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338   (exit $ac_status); }; }; then
28339   ac_cv_lib_krb5_main=yes
28340 else
28341   echo "$as_me: failed program was:" >&5
28342 sed 's/^/| /' conftest.$ac_ext >&5
28343
28344 ac_cv_lib_krb5_main=no
28345 fi
28346 rm -f conftest.err conftest.$ac_objext \
28347       conftest$ac_exeext conftest.$ac_ext
28348 LIBS=$ac_check_lib_save_LIBS
28349 fi
28350 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28351 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28352 if test $ac_cv_lib_krb5_main = yes; then
28353   have_krb5=yes
28354                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28355 else
28356   have_krb5=no
28357 fi
28358
28359
28360                 elif test $krb5_impl = heimdal; then
28361                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
28362 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28363 if test "${ac_cv_lib_des_main+set}" = set; then
28364   echo $ECHO_N "(cached) $ECHO_C" >&6
28365 else
28366   ac_check_lib_save_LIBS=$LIBS
28367 LIBS="-ldes  $LIBS"
28368 cat >conftest.$ac_ext <<_ACEOF
28369 /* confdefs.h.  */
28370 _ACEOF
28371 cat confdefs.h >>conftest.$ac_ext
28372 cat >>conftest.$ac_ext <<_ACEOF
28373 /* end confdefs.h.  */
28374
28375
28376 int
28377 main ()
28378 {
28379 main ();
28380   ;
28381   return 0;
28382 }
28383 _ACEOF
28384 rm -f conftest.$ac_objext conftest$ac_exeext
28385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28386   (eval $ac_link) 2>conftest.er1
28387   ac_status=$?
28388   grep -v '^ *+' conftest.er1 >conftest.err
28389   rm -f conftest.er1
28390   cat conftest.err >&5
28391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392   (exit $ac_status); } &&
28393          { ac_try='test -z "$ac_c_werror_flag"
28394                          || test ! -s conftest.err'
28395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28396   (eval $ac_try) 2>&5
28397   ac_status=$?
28398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399   (exit $ac_status); }; } &&
28400          { ac_try='test -s conftest$ac_exeext'
28401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28402   (eval $ac_try) 2>&5
28403   ac_status=$?
28404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405   (exit $ac_status); }; }; then
28406   ac_cv_lib_des_main=yes
28407 else
28408   echo "$as_me: failed program was:" >&5
28409 sed 's/^/| /' conftest.$ac_ext >&5
28410
28411 ac_cv_lib_des_main=no
28412 fi
28413 rm -f conftest.err conftest.$ac_objext \
28414       conftest$ac_exeext conftest.$ac_ext
28415 LIBS=$ac_check_lib_save_LIBS
28416 fi
28417 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28418 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28419 if test $ac_cv_lib_des_main = yes; then
28420   krb5crypto=des
28421 else
28422   krb5crypto=crypto
28423 fi
28424
28425
28426                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28427 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28428 if test "${ac_cv_lib_krb5_main+set}" = set; then
28429   echo $ECHO_N "(cached) $ECHO_C" >&6
28430 else
28431   ac_check_lib_save_LIBS=$LIBS
28432 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28433 cat >conftest.$ac_ext <<_ACEOF
28434 /* confdefs.h.  */
28435 _ACEOF
28436 cat confdefs.h >>conftest.$ac_ext
28437 cat >>conftest.$ac_ext <<_ACEOF
28438 /* end confdefs.h.  */
28439
28440
28441 int
28442 main ()
28443 {
28444 main ();
28445   ;
28446   return 0;
28447 }
28448 _ACEOF
28449 rm -f conftest.$ac_objext conftest$ac_exeext
28450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28451   (eval $ac_link) 2>conftest.er1
28452   ac_status=$?
28453   grep -v '^ *+' conftest.er1 >conftest.err
28454   rm -f conftest.er1
28455   cat conftest.err >&5
28456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457   (exit $ac_status); } &&
28458          { ac_try='test -z "$ac_c_werror_flag"
28459                          || test ! -s conftest.err'
28460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28461   (eval $ac_try) 2>&5
28462   ac_status=$?
28463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464   (exit $ac_status); }; } &&
28465          { ac_try='test -s conftest$ac_exeext'
28466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28467   (eval $ac_try) 2>&5
28468   ac_status=$?
28469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28470   (exit $ac_status); }; }; then
28471   ac_cv_lib_krb5_main=yes
28472 else
28473   echo "$as_me: failed program was:" >&5
28474 sed 's/^/| /' conftest.$ac_ext >&5
28475
28476 ac_cv_lib_krb5_main=no
28477 fi
28478 rm -f conftest.err conftest.$ac_objext \
28479       conftest$ac_exeext conftest.$ac_ext
28480 LIBS=$ac_check_lib_save_LIBS
28481 fi
28482 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28483 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28484 if test $ac_cv_lib_krb5_main = yes; then
28485   have_krb5=yes
28486                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28487 else
28488   have_krb5=no
28489 fi
28490
28491
28492
28493 cat >>confdefs.h <<\_ACEOF
28494 #define HAVE_HEIMDAL_KERBEROS 1
28495 _ACEOF
28496
28497
28498                 else
28499                         have_krb5=no
28500                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28501 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28502                 fi
28503
28504                 if test $have_krb5 = yes ; then
28505                         ol_link_krb5=yes
28506
28507
28508 cat >>confdefs.h <<\_ACEOF
28509 #define HAVE_KRB5 1
28510 _ACEOF
28511
28512
28513                         if test $ol_with_kerberos = k5only ; then
28514                                 ol_with_kerberos=found
28515                         fi
28516
28517                 elif test $ol_with_kerberos != auto ; then
28518                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28519 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28520    { (exit 1); exit 1; }; }
28521                 fi
28522
28523         fi
28524 fi
28525
28526 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28527         $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28528
28529
28530
28531 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28532 do
28533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28535   echo "$as_me:$LINENO: checking for $ac_header" >&5
28536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28538   echo $ECHO_N "(cached) $ECHO_C" >&6
28539 fi
28540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28542 else
28543   # Is the header compilable?
28544 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28546 cat >conftest.$ac_ext <<_ACEOF
28547 /* confdefs.h.  */
28548 _ACEOF
28549 cat confdefs.h >>conftest.$ac_ext
28550 cat >>conftest.$ac_ext <<_ACEOF
28551 /* end confdefs.h.  */
28552 $ac_includes_default
28553 #include <$ac_header>
28554 _ACEOF
28555 rm -f conftest.$ac_objext
28556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28557   (eval $ac_compile) 2>conftest.er1
28558   ac_status=$?
28559   grep -v '^ *+' conftest.er1 >conftest.err
28560   rm -f conftest.er1
28561   cat conftest.err >&5
28562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563   (exit $ac_status); } &&
28564          { ac_try='test -z "$ac_c_werror_flag"
28565                          || test ! -s conftest.err'
28566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28567   (eval $ac_try) 2>&5
28568   ac_status=$?
28569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28570   (exit $ac_status); }; } &&
28571          { ac_try='test -s conftest.$ac_objext'
28572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28573   (eval $ac_try) 2>&5
28574   ac_status=$?
28575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576   (exit $ac_status); }; }; then
28577   ac_header_compiler=yes
28578 else
28579   echo "$as_me: failed program was:" >&5
28580 sed 's/^/| /' conftest.$ac_ext >&5
28581
28582 ac_header_compiler=no
28583 fi
28584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28586 echo "${ECHO_T}$ac_header_compiler" >&6
28587
28588 # Is the header present?
28589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28591 cat >conftest.$ac_ext <<_ACEOF
28592 /* confdefs.h.  */
28593 _ACEOF
28594 cat confdefs.h >>conftest.$ac_ext
28595 cat >>conftest.$ac_ext <<_ACEOF
28596 /* end confdefs.h.  */
28597 #include <$ac_header>
28598 _ACEOF
28599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28600   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28601   ac_status=$?
28602   grep -v '^ *+' conftest.er1 >conftest.err
28603   rm -f conftest.er1
28604   cat conftest.err >&5
28605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606   (exit $ac_status); } >/dev/null; then
28607   if test -s conftest.err; then
28608     ac_cpp_err=$ac_c_preproc_warn_flag
28609     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28610   else
28611     ac_cpp_err=
28612   fi
28613 else
28614   ac_cpp_err=yes
28615 fi
28616 if test -z "$ac_cpp_err"; then
28617   ac_header_preproc=yes
28618 else
28619   echo "$as_me: failed program was:" >&5
28620 sed 's/^/| /' conftest.$ac_ext >&5
28621
28622   ac_header_preproc=no
28623 fi
28624 rm -f conftest.err conftest.$ac_ext
28625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28626 echo "${ECHO_T}$ac_header_preproc" >&6
28627
28628 # So?  What about this header?
28629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28630   yes:no: )
28631     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28633     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28635     ac_header_preproc=yes
28636     ;;
28637   no:yes:* )
28638     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28640     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28641 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28642     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28644     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28645 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28648     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28650     (
28651       cat <<\_ASBOX
28652 ## ------------------------------------------ ##
28653 ## Report this to the AC_PACKAGE_NAME lists.  ##
28654 ## ------------------------------------------ ##
28655 _ASBOX
28656     ) |
28657       sed "s/^/$as_me: WARNING:     /" >&2
28658     ;;
28659 esac
28660 echo "$as_me:$LINENO: checking for $ac_header" >&5
28661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28663   echo $ECHO_N "(cached) $ECHO_C" >&6
28664 else
28665   eval "$as_ac_Header=\$ac_header_preproc"
28666 fi
28667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28669
28670 fi
28671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28672   cat >>confdefs.h <<_ACEOF
28673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28674 _ACEOF
28675
28676 fi
28677
28678 done
28679
28680
28681         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28682                 if test $krb5_impl = mit; then
28683                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28684 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28685 if test "${ac_cv_lib_krb4_main+set}" = set; then
28686   echo $ECHO_N "(cached) $ECHO_C" >&6
28687 else
28688   ac_check_lib_save_LIBS=$LIBS
28689 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28690 cat >conftest.$ac_ext <<_ACEOF
28691 /* confdefs.h.  */
28692 _ACEOF
28693 cat confdefs.h >>conftest.$ac_ext
28694 cat >>conftest.$ac_ext <<_ACEOF
28695 /* end confdefs.h.  */
28696
28697
28698 int
28699 main ()
28700 {
28701 main ();
28702   ;
28703   return 0;
28704 }
28705 _ACEOF
28706 rm -f conftest.$ac_objext conftest$ac_exeext
28707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28708   (eval $ac_link) 2>conftest.er1
28709   ac_status=$?
28710   grep -v '^ *+' conftest.er1 >conftest.err
28711   rm -f conftest.er1
28712   cat conftest.err >&5
28713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714   (exit $ac_status); } &&
28715          { ac_try='test -z "$ac_c_werror_flag"
28716                          || test ! -s conftest.err'
28717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28718   (eval $ac_try) 2>&5
28719   ac_status=$?
28720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721   (exit $ac_status); }; } &&
28722          { ac_try='test -s conftest$ac_exeext'
28723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28724   (eval $ac_try) 2>&5
28725   ac_status=$?
28726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727   (exit $ac_status); }; }; then
28728   ac_cv_lib_krb4_main=yes
28729 else
28730   echo "$as_me: failed program was:" >&5
28731 sed 's/^/| /' conftest.$ac_ext >&5
28732
28733 ac_cv_lib_krb4_main=no
28734 fi
28735 rm -f conftest.err conftest.$ac_objext \
28736       conftest$ac_exeext conftest.$ac_ext
28737 LIBS=$ac_check_lib_save_LIBS
28738 fi
28739 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28740 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28741 if test $ac_cv_lib_krb4_main = yes; then
28742   have_k425=yes
28743                                 KRB4_LIBS="-lkrb4 -ldes425"
28744 else
28745   have_k425=no
28746 fi
28747
28748
28749                 elif test $krb5_impl = heimdal; then
28750                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28751 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28752 if test "${ac_cv_lib_krb4_main+set}" = set; then
28753   echo $ECHO_N "(cached) $ECHO_C" >&6
28754 else
28755   ac_check_lib_save_LIBS=$LIBS
28756 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28757 cat >conftest.$ac_ext <<_ACEOF
28758 /* confdefs.h.  */
28759 _ACEOF
28760 cat confdefs.h >>conftest.$ac_ext
28761 cat >>conftest.$ac_ext <<_ACEOF
28762 /* end confdefs.h.  */
28763
28764
28765 int
28766 main ()
28767 {
28768 main ();
28769   ;
28770   return 0;
28771 }
28772 _ACEOF
28773 rm -f conftest.$ac_objext conftest$ac_exeext
28774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28775   (eval $ac_link) 2>conftest.er1
28776   ac_status=$?
28777   grep -v '^ *+' conftest.er1 >conftest.err
28778   rm -f conftest.er1
28779   cat conftest.err >&5
28780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781   (exit $ac_status); } &&
28782          { ac_try='test -z "$ac_c_werror_flag"
28783                          || test ! -s conftest.err'
28784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28785   (eval $ac_try) 2>&5
28786   ac_status=$?
28787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788   (exit $ac_status); }; } &&
28789          { ac_try='test -s conftest$ac_exeext'
28790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28791   (eval $ac_try) 2>&5
28792   ac_status=$?
28793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794   (exit $ac_status); }; }; then
28795   ac_cv_lib_krb4_main=yes
28796 else
28797   echo "$as_me: failed program was:" >&5
28798 sed 's/^/| /' conftest.$ac_ext >&5
28799
28800 ac_cv_lib_krb4_main=no
28801 fi
28802 rm -f conftest.err conftest.$ac_objext \
28803       conftest$ac_exeext conftest.$ac_ext
28804 LIBS=$ac_check_lib_save_LIBS
28805 fi
28806 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28807 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28808 if test $ac_cv_lib_krb4_main = yes; then
28809   have_k425=yes
28810                                 KRB4_LIBS="-lkrb4"
28811 else
28812   have_k425=no
28813 fi
28814
28815
28816                 else
28817                         have_425=no
28818                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
28819 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
28820                 fi
28821
28822                 if test $have_k425 = yes ; then
28823                         ol_with_kerberos=found
28824                         ol_link_krb4=yes
28825
28826
28827 cat >>confdefs.h <<\_ACEOF
28828 #define HAVE_KRB425 1
28829 _ACEOF
28830
28831
28832 cat >>confdefs.h <<\_ACEOF
28833 #define HAVE_KRB4 1
28834 _ACEOF
28835
28836
28837                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
28838 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
28839 if test "${ol_cv_var_des_debug+set}" = set; then
28840   echo $ECHO_N "(cached) $ECHO_C" >&6
28841 else
28842
28843                                                                 save_LIBS="$LIBS"
28844                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
28845                                 cat >conftest.$ac_ext <<_ACEOF
28846 /* confdefs.h.  */
28847 _ACEOF
28848 cat confdefs.h >>conftest.$ac_ext
28849 cat >>conftest.$ac_ext <<_ACEOF
28850 /* end confdefs.h.  */
28851
28852 #include <kerberosIV/krb.h>
28853 #include <kerberosIV/des.h>
28854 extern int des_debug;
28855
28856 int
28857 main ()
28858 {
28859
28860 des_debug = 1;
28861
28862   ;
28863   return 0;
28864 }
28865 _ACEOF
28866 rm -f conftest.$ac_objext conftest$ac_exeext
28867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28868   (eval $ac_link) 2>conftest.er1
28869   ac_status=$?
28870   grep -v '^ *+' conftest.er1 >conftest.err
28871   rm -f conftest.er1
28872   cat conftest.err >&5
28873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874   (exit $ac_status); } &&
28875          { ac_try='test -z "$ac_c_werror_flag"
28876                          || test ! -s conftest.err'
28877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28878   (eval $ac_try) 2>&5
28879   ac_status=$?
28880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881   (exit $ac_status); }; } &&
28882          { ac_try='test -s conftest$ac_exeext'
28883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28884   (eval $ac_try) 2>&5
28885   ac_status=$?
28886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887   (exit $ac_status); }; }; then
28888   ol_cv_var_des_debug=yes
28889 else
28890   echo "$as_me: failed program was:" >&5
28891 sed 's/^/| /' conftest.$ac_ext >&5
28892
28893 ol_cv_var_des_debug=no
28894 fi
28895 rm -f conftest.err conftest.$ac_objext \
28896       conftest$ac_exeext conftest.$ac_ext
28897                                                                 LIBS="$save_LIBS"
28898
28899 fi
28900 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
28901 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
28902
28903                         if test $ol_cv_var_des_debug = yes ; then
28904
28905 cat >>confdefs.h <<\_ACEOF
28906 #define HAVE_DES_DEBUG 1
28907 _ACEOF
28908
28909                         fi
28910
28911                         LIBS="$save_LIBS"
28912                 fi
28913         fi
28914 fi
28915
28916 if test $ol_link_krb5 = yes ; then
28917         ol_with_kerberos=found
28918 fi
28919
28920 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28921         -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
28922
28923
28924
28925
28926 for ac_header in krb.h des.h krb-archaeology.h
28927 do
28928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28930   echo "$as_me:$LINENO: checking for $ac_header" >&5
28931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28933   echo $ECHO_N "(cached) $ECHO_C" >&6
28934 fi
28935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28937 else
28938   # Is the header compilable?
28939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28941 cat >conftest.$ac_ext <<_ACEOF
28942 /* confdefs.h.  */
28943 _ACEOF
28944 cat confdefs.h >>conftest.$ac_ext
28945 cat >>conftest.$ac_ext <<_ACEOF
28946 /* end confdefs.h.  */
28947 $ac_includes_default
28948 #include <$ac_header>
28949 _ACEOF
28950 rm -f conftest.$ac_objext
28951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28952   (eval $ac_compile) 2>conftest.er1
28953   ac_status=$?
28954   grep -v '^ *+' conftest.er1 >conftest.err
28955   rm -f conftest.er1
28956   cat conftest.err >&5
28957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958   (exit $ac_status); } &&
28959          { ac_try='test -z "$ac_c_werror_flag"
28960                          || test ! -s conftest.err'
28961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28962   (eval $ac_try) 2>&5
28963   ac_status=$?
28964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965   (exit $ac_status); }; } &&
28966          { ac_try='test -s conftest.$ac_objext'
28967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28968   (eval $ac_try) 2>&5
28969   ac_status=$?
28970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971   (exit $ac_status); }; }; then
28972   ac_header_compiler=yes
28973 else
28974   echo "$as_me: failed program was:" >&5
28975 sed 's/^/| /' conftest.$ac_ext >&5
28976
28977 ac_header_compiler=no
28978 fi
28979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28981 echo "${ECHO_T}$ac_header_compiler" >&6
28982
28983 # Is the header present?
28984 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 #include <$ac_header>
28993 _ACEOF
28994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28995   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28996   ac_status=$?
28997   grep -v '^ *+' conftest.er1 >conftest.err
28998   rm -f conftest.er1
28999   cat conftest.err >&5
29000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001   (exit $ac_status); } >/dev/null; then
29002   if test -s conftest.err; then
29003     ac_cpp_err=$ac_c_preproc_warn_flag
29004     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29005   else
29006     ac_cpp_err=
29007   fi
29008 else
29009   ac_cpp_err=yes
29010 fi
29011 if test -z "$ac_cpp_err"; then
29012   ac_header_preproc=yes
29013 else
29014   echo "$as_me: failed program was:" >&5
29015 sed 's/^/| /' conftest.$ac_ext >&5
29016
29017   ac_header_preproc=no
29018 fi
29019 rm -f conftest.err conftest.$ac_ext
29020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29021 echo "${ECHO_T}$ac_header_preproc" >&6
29022
29023 # So?  What about this header?
29024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29025   yes:no: )
29026     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29030     ac_header_preproc=yes
29031     ;;
29032   no:yes:* )
29033     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29035     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29036 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29037     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29039     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29040 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29043     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29045     (
29046       cat <<\_ASBOX
29047 ## ------------------------------------------ ##
29048 ## Report this to the AC_PACKAGE_NAME lists.  ##
29049 ## ------------------------------------------ ##
29050 _ASBOX
29051     ) |
29052       sed "s/^/$as_me: WARNING:     /" >&2
29053     ;;
29054 esac
29055 echo "$as_me:$LINENO: checking for $ac_header" >&5
29056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29058   echo $ECHO_N "(cached) $ECHO_C" >&6
29059 else
29060   eval "$as_ac_Header=\$ac_header_preproc"
29061 fi
29062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29064
29065 fi
29066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29067   cat >>confdefs.h <<_ACEOF
29068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29069 _ACEOF
29070
29071 fi
29072
29073 done
29074
29075
29076         if test $ac_cv_header_krb_h = yes ; then
29077                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29078 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29079 if test "${ac_cv_lib_krb_main+set}" = set; then
29080   echo $ECHO_N "(cached) $ECHO_C" >&6
29081 else
29082   ac_check_lib_save_LIBS=$LIBS
29083 LIBS="-lkrb -ldes $LIBS"
29084 cat >conftest.$ac_ext <<_ACEOF
29085 /* confdefs.h.  */
29086 _ACEOF
29087 cat confdefs.h >>conftest.$ac_ext
29088 cat >>conftest.$ac_ext <<_ACEOF
29089 /* end confdefs.h.  */
29090
29091
29092 int
29093 main ()
29094 {
29095 main ();
29096   ;
29097   return 0;
29098 }
29099 _ACEOF
29100 rm -f conftest.$ac_objext conftest$ac_exeext
29101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29102   (eval $ac_link) 2>conftest.er1
29103   ac_status=$?
29104   grep -v '^ *+' conftest.er1 >conftest.err
29105   rm -f conftest.er1
29106   cat conftest.err >&5
29107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108   (exit $ac_status); } &&
29109          { ac_try='test -z "$ac_c_werror_flag"
29110                          || test ! -s conftest.err'
29111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29112   (eval $ac_try) 2>&5
29113   ac_status=$?
29114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115   (exit $ac_status); }; } &&
29116          { ac_try='test -s conftest$ac_exeext'
29117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29118   (eval $ac_try) 2>&5
29119   ac_status=$?
29120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121   (exit $ac_status); }; }; then
29122   ac_cv_lib_krb_main=yes
29123 else
29124   echo "$as_me: failed program was:" >&5
29125 sed 's/^/| /' conftest.$ac_ext >&5
29126
29127 ac_cv_lib_krb_main=no
29128 fi
29129 rm -f conftest.err conftest.$ac_objext \
29130       conftest$ac_exeext conftest.$ac_ext
29131 LIBS=$ac_check_lib_save_LIBS
29132 fi
29133 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29134 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29135 if test $ac_cv_lib_krb_main = yes; then
29136   have_k4=yes
29137 else
29138   have_k4=no
29139 fi
29140
29141
29142                 if test $have_k4 = yes ; then
29143                         ol_with_kerberos=found
29144                         ol_link_krb4=yes
29145
29146
29147 cat >>confdefs.h <<\_ACEOF
29148 #define HAVE_KRB4 1
29149 _ACEOF
29150
29151
29152                         KRB4_LIBS="-lkrb -ldes"
29153
29154                         if test $ac_cv_header_krb_archaeology_h = yes ; then
29155
29156 cat >>confdefs.h <<\_ACEOF
29157 #define HAVE_KTH_KERBEROS 1
29158 _ACEOF
29159
29160                         fi
29161                 fi
29162         fi
29163 fi
29164
29165 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29166         ol_link_kbind=yes
29167
29168 elif test $ol_enable_kbind = yes ; then
29169         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29170 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29171    { (exit 1); exit 1; }; }
29172 fi
29173
29174 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29175
29176 cat >>confdefs.h <<\_ACEOF
29177 #define HAVE_KERBEROS 1
29178 _ACEOF
29179
29180
29181 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29182         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29183 echo "$as_me: error: Kerberos detection failed" >&2;}
29184    { (exit 1); exit 1; }; }
29185 fi
29186
29187
29188 ol_link_tls=no
29189 if test $ol_with_tls != no ; then
29190
29191
29192 for ac_header in openssl/ssl.h ssl.h
29193 do
29194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
29201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29203 else
29204   # Is the header compilable?
29205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29207 cat >conftest.$ac_ext <<_ACEOF
29208 /* confdefs.h.  */
29209 _ACEOF
29210 cat confdefs.h >>conftest.$ac_ext
29211 cat >>conftest.$ac_ext <<_ACEOF
29212 /* end confdefs.h.  */
29213 $ac_includes_default
29214 #include <$ac_header>
29215 _ACEOF
29216 rm -f conftest.$ac_objext
29217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29218   (eval $ac_compile) 2>conftest.er1
29219   ac_status=$?
29220   grep -v '^ *+' conftest.er1 >conftest.err
29221   rm -f conftest.er1
29222   cat conftest.err >&5
29223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224   (exit $ac_status); } &&
29225          { ac_try='test -z "$ac_c_werror_flag"
29226                          || test ! -s conftest.err'
29227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29228   (eval $ac_try) 2>&5
29229   ac_status=$?
29230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29231   (exit $ac_status); }; } &&
29232          { ac_try='test -s conftest.$ac_objext'
29233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29234   (eval $ac_try) 2>&5
29235   ac_status=$?
29236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237   (exit $ac_status); }; }; then
29238   ac_header_compiler=yes
29239 else
29240   echo "$as_me: failed program was:" >&5
29241 sed 's/^/| /' conftest.$ac_ext >&5
29242
29243 ac_header_compiler=no
29244 fi
29245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29247 echo "${ECHO_T}$ac_header_compiler" >&6
29248
29249 # Is the header present?
29250 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29252 cat >conftest.$ac_ext <<_ACEOF
29253 /* confdefs.h.  */
29254 _ACEOF
29255 cat confdefs.h >>conftest.$ac_ext
29256 cat >>conftest.$ac_ext <<_ACEOF
29257 /* end confdefs.h.  */
29258 #include <$ac_header>
29259 _ACEOF
29260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29261   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29262   ac_status=$?
29263   grep -v '^ *+' conftest.er1 >conftest.err
29264   rm -f conftest.er1
29265   cat conftest.err >&5
29266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267   (exit $ac_status); } >/dev/null; then
29268   if test -s conftest.err; then
29269     ac_cpp_err=$ac_c_preproc_warn_flag
29270     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29271   else
29272     ac_cpp_err=
29273   fi
29274 else
29275   ac_cpp_err=yes
29276 fi
29277 if test -z "$ac_cpp_err"; then
29278   ac_header_preproc=yes
29279 else
29280   echo "$as_me: failed program was:" >&5
29281 sed 's/^/| /' conftest.$ac_ext >&5
29282
29283   ac_header_preproc=no
29284 fi
29285 rm -f conftest.err conftest.$ac_ext
29286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29287 echo "${ECHO_T}$ac_header_preproc" >&6
29288
29289 # So?  What about this header?
29290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29291   yes:no: )
29292     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29294     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29296     ac_header_preproc=yes
29297     ;;
29298   no:yes:* )
29299     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29301     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29302 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29303     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29305     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29306 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29307     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29309     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29311     (
29312       cat <<\_ASBOX
29313 ## ------------------------------------------ ##
29314 ## Report this to the AC_PACKAGE_NAME lists.  ##
29315 ## ------------------------------------------ ##
29316 _ASBOX
29317     ) |
29318       sed "s/^/$as_me: WARNING:     /" >&2
29319     ;;
29320 esac
29321 echo "$as_me:$LINENO: checking for $ac_header" >&5
29322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29324   echo $ECHO_N "(cached) $ECHO_C" >&6
29325 else
29326   eval "$as_ac_Header=\$ac_header_preproc"
29327 fi
29328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29330
29331 fi
29332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29333   cat >>confdefs.h <<_ACEOF
29334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29335 _ACEOF
29336
29337 fi
29338
29339 done
29340
29341
29342         if test $ac_cv_header_openssl_ssl_h = yes \
29343                 -o $ac_cv_header_ssl_h = yes ; then
29344                 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29345 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29346 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29347   echo $ECHO_N "(cached) $ECHO_C" >&6
29348 else
29349   ac_check_lib_save_LIBS=$LIBS
29350 LIBS="-lssl -lcrypto $LIBS"
29351 cat >conftest.$ac_ext <<_ACEOF
29352 /* confdefs.h.  */
29353 _ACEOF
29354 cat confdefs.h >>conftest.$ac_ext
29355 cat >>conftest.$ac_ext <<_ACEOF
29356 /* end confdefs.h.  */
29357
29358 /* Override any gcc2 internal prototype to avoid an error.  */
29359 #ifdef __cplusplus
29360 extern "C"
29361 #endif
29362 /* We use char because int might match the return type of a gcc2
29363    builtin and then its argument prototype would still apply.  */
29364 char SSLeay_add_ssl_algorithms ();
29365 int
29366 main ()
29367 {
29368 SSLeay_add_ssl_algorithms ();
29369   ;
29370   return 0;
29371 }
29372 _ACEOF
29373 rm -f conftest.$ac_objext conftest$ac_exeext
29374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29375   (eval $ac_link) 2>conftest.er1
29376   ac_status=$?
29377   grep -v '^ *+' conftest.er1 >conftest.err
29378   rm -f conftest.er1
29379   cat conftest.err >&5
29380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29381   (exit $ac_status); } &&
29382          { ac_try='test -z "$ac_c_werror_flag"
29383                          || test ! -s conftest.err'
29384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29385   (eval $ac_try) 2>&5
29386   ac_status=$?
29387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29388   (exit $ac_status); }; } &&
29389          { ac_try='test -s conftest$ac_exeext'
29390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29391   (eval $ac_try) 2>&5
29392   ac_status=$?
29393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394   (exit $ac_status); }; }; then
29395   ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29396 else
29397   echo "$as_me: failed program was:" >&5
29398 sed 's/^/| /' conftest.$ac_ext >&5
29399
29400 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29401 fi
29402 rm -f conftest.err conftest.$ac_objext \
29403       conftest$ac_exeext conftest.$ac_ext
29404 LIBS=$ac_check_lib_save_LIBS
29405 fi
29406 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29407 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29408 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29409   have_ssleay=yes
29410                         need_rsaref=no
29411 else
29412   have_ssleay=no
29413 fi
29414
29415
29416                 if test $have_ssleay = no ; then
29417                         echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29418 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29419 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29420   echo $ECHO_N "(cached) $ECHO_C" >&6
29421 else
29422   ac_check_lib_save_LIBS=$LIBS
29423 LIBS="-lssl -lcrypto $LIBS"
29424 cat >conftest.$ac_ext <<_ACEOF
29425 /* confdefs.h.  */
29426 _ACEOF
29427 cat confdefs.h >>conftest.$ac_ext
29428 cat >>conftest.$ac_ext <<_ACEOF
29429 /* end confdefs.h.  */
29430
29431 /* Override any gcc2 internal prototype to avoid an error.  */
29432 #ifdef __cplusplus
29433 extern "C"
29434 #endif
29435 /* We use char because int might match the return type of a gcc2
29436    builtin and then its argument prototype would still apply.  */
29437 char SSL_library_init ();
29438 int
29439 main ()
29440 {
29441 SSL_library_init ();
29442   ;
29443   return 0;
29444 }
29445 _ACEOF
29446 rm -f conftest.$ac_objext conftest$ac_exeext
29447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29448   (eval $ac_link) 2>conftest.er1
29449   ac_status=$?
29450   grep -v '^ *+' conftest.er1 >conftest.err
29451   rm -f conftest.er1
29452   cat conftest.err >&5
29453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454   (exit $ac_status); } &&
29455          { ac_try='test -z "$ac_c_werror_flag"
29456                          || test ! -s conftest.err'
29457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29458   (eval $ac_try) 2>&5
29459   ac_status=$?
29460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461   (exit $ac_status); }; } &&
29462          { ac_try='test -s conftest$ac_exeext'
29463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29464   (eval $ac_try) 2>&5
29465   ac_status=$?
29466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467   (exit $ac_status); }; }; then
29468   ac_cv_lib_ssl_SSL_library_init=yes
29469 else
29470   echo "$as_me: failed program was:" >&5
29471 sed 's/^/| /' conftest.$ac_ext >&5
29472
29473 ac_cv_lib_ssl_SSL_library_init=no
29474 fi
29475 rm -f conftest.err conftest.$ac_objext \
29476       conftest$ac_exeext conftest.$ac_ext
29477 LIBS=$ac_check_lib_save_LIBS
29478 fi
29479 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29480 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29481 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29482   have_ssleay=yes
29483                                 need_rsaref=no
29484 else
29485   have_ssleay=no
29486 fi
29487
29488                 fi
29489
29490                 if test $have_ssleay = no ; then
29491                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29492 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29493 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29494   echo $ECHO_N "(cached) $ECHO_C" >&6
29495 else
29496   ac_check_lib_save_LIBS=$LIBS
29497 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29498 cat >conftest.$ac_ext <<_ACEOF
29499 /* confdefs.h.  */
29500 _ACEOF
29501 cat confdefs.h >>conftest.$ac_ext
29502 cat >>conftest.$ac_ext <<_ACEOF
29503 /* end confdefs.h.  */
29504
29505 /* Override any gcc2 internal prototype to avoid an error.  */
29506 #ifdef __cplusplus
29507 extern "C"
29508 #endif
29509 /* We use char because int might match the return type of a gcc2
29510    builtin and then its argument prototype would still apply.  */
29511 char ssl3_accept ();
29512 int
29513 main ()
29514 {
29515 ssl3_accept ();
29516   ;
29517   return 0;
29518 }
29519 _ACEOF
29520 rm -f conftest.$ac_objext conftest$ac_exeext
29521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29522   (eval $ac_link) 2>conftest.er1
29523   ac_status=$?
29524   grep -v '^ *+' conftest.er1 >conftest.err
29525   rm -f conftest.er1
29526   cat conftest.err >&5
29527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528   (exit $ac_status); } &&
29529          { ac_try='test -z "$ac_c_werror_flag"
29530                          || test ! -s conftest.err'
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); }; } &&
29536          { ac_try='test -s conftest$ac_exeext'
29537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29538   (eval $ac_try) 2>&5
29539   ac_status=$?
29540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541   (exit $ac_status); }; }; then
29542   ac_cv_lib_ssl_ssl3_accept=yes
29543 else
29544   echo "$as_me: failed program was:" >&5
29545 sed 's/^/| /' conftest.$ac_ext >&5
29546
29547 ac_cv_lib_ssl_ssl3_accept=no
29548 fi
29549 rm -f conftest.err conftest.$ac_objext \
29550       conftest$ac_exeext conftest.$ac_ext
29551 LIBS=$ac_check_lib_save_LIBS
29552 fi
29553 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29554 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29555 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29556   have_ssleay=yes
29557                                 need_rsaref=yes
29558 else
29559   have_ssleay=no
29560 fi
29561
29562                 fi
29563
29564                 if test $have_ssleay = yes ; then
29565                         ol_with_tls=found
29566                         ol_link_tls=yes
29567
29568
29569 cat >>confdefs.h <<\_ACEOF
29570 #define HAVE_SSLEAY 1
29571 _ACEOF
29572
29573
29574                         if test $need_rsaref = yes; then
29575
29576 cat >>confdefs.h <<\_ACEOF
29577 #define HAVE_RSAREF 1
29578 _ACEOF
29579
29580
29581                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29582                         else
29583                                 TLS_LIBS="-lssl -lcrypto"
29584                         fi
29585                 fi
29586                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29587 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29588 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29589   echo $ECHO_N "(cached) $ECHO_C" >&6
29590 else
29591
29592         cat >conftest.$ac_ext <<_ACEOF
29593 /* confdefs.h.  */
29594 _ACEOF
29595 cat confdefs.h >>conftest.$ac_ext
29596 cat >>conftest.$ac_ext <<_ACEOF
29597 /* end confdefs.h.  */
29598
29599 #ifdef HAVE_OPENSSL_SSL_H
29600 #include <openssl/ssl.h>
29601 #else
29602 #include <ssl.h>
29603 #endif
29604
29605 /* Require 0.9.7d+ */
29606 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29607         char *__ssl_compat = "0.9.7d";
29608 #endif
29609
29610 _ACEOF
29611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29612   $EGREP "__ssl_compat" >/dev/null 2>&1; then
29613   ol_cv_ssl_crl_compat=yes
29614 else
29615   ol_cv_ssl_crl_compat=no
29616 fi
29617 rm -f conftest*
29618
29619 fi
29620 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29621 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29622
29623                 if test $ol_cv_ssl_crl_compat = no ; then
29624                         ol_link_ssl=no
29625                 else
29626
29627 cat >>confdefs.h <<\_ACEOF
29628 #define HAVE_OPENSSL_CRL 1
29629 _ACEOF
29630
29631                 fi
29632         fi
29633
29634 else
29635         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29636 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29637 fi
29638
29639 WITH_TLS=no
29640 if test $ol_link_tls = yes ; then
29641
29642 cat >>confdefs.h <<\_ACEOF
29643 #define HAVE_TLS 1
29644 _ACEOF
29645
29646         WITH_TLS=yes
29647
29648 elif test $ol_with_tls = auto ; then
29649         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29650 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29651         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29652 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29653
29654 elif test $ol_with_tls != no ; then
29655         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29656 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29657    { (exit 1); exit 1; }; }
29658 fi
29659
29660 if test $ol_enable_lmpasswd != no; then
29661         if test $ol_link_tls != yes ; then
29662                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29663 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29664    { (exit 1); exit 1; }; }
29665         fi
29666
29667
29668 cat >>confdefs.h <<\_ACEOF
29669 #define SLAPD_LMHASH 1
29670 _ACEOF
29671
29672 fi
29673
29674 ol_link_threads=no
29675
29676 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29677         -o $ol_with_threads = nt ; then
29678
29679
29680         echo "$as_me:$LINENO: checking for _beginthread" >&5
29681 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29682 if test "${ac_cv_func__beginthread+set}" = set; then
29683   echo $ECHO_N "(cached) $ECHO_C" >&6
29684 else
29685   cat >conftest.$ac_ext <<_ACEOF
29686 /* confdefs.h.  */
29687 _ACEOF
29688 cat confdefs.h >>conftest.$ac_ext
29689 cat >>conftest.$ac_ext <<_ACEOF
29690 /* end confdefs.h.  */
29691 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29693 #define _beginthread innocuous__beginthread
29694
29695 /* System header to define __stub macros and hopefully few prototypes,
29696     which can conflict with char _beginthread (); below.
29697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29698     <limits.h> exists even on freestanding compilers.  */
29699
29700 #ifdef __STDC__
29701 # include <limits.h>
29702 #else
29703 # include <assert.h>
29704 #endif
29705
29706 #undef _beginthread
29707
29708 /* Override any gcc2 internal prototype to avoid an error.  */
29709 #ifdef __cplusplus
29710 extern "C"
29711 {
29712 #endif
29713 /* We use char because int might match the return type of a gcc2
29714    builtin and then its argument prototype would still apply.  */
29715 char _beginthread ();
29716 /* The GNU C library defines this for functions which it implements
29717     to always fail with ENOSYS.  Some functions are actually named
29718     something starting with __ and the normal name is an alias.  */
29719 #if defined (__stub__beginthread) || defined (__stub____beginthread)
29720 choke me
29721 #else
29722 char (*f) () = _beginthread;
29723 #endif
29724 #ifdef __cplusplus
29725 }
29726 #endif
29727
29728 int
29729 main ()
29730 {
29731 return f != _beginthread;
29732   ;
29733   return 0;
29734 }
29735 _ACEOF
29736 rm -f conftest.$ac_objext conftest$ac_exeext
29737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29738   (eval $ac_link) 2>conftest.er1
29739   ac_status=$?
29740   grep -v '^ *+' conftest.er1 >conftest.err
29741   rm -f conftest.er1
29742   cat conftest.err >&5
29743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744   (exit $ac_status); } &&
29745          { ac_try='test -z "$ac_c_werror_flag"
29746                          || test ! -s conftest.err'
29747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29748   (eval $ac_try) 2>&5
29749   ac_status=$?
29750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751   (exit $ac_status); }; } &&
29752          { ac_try='test -s conftest$ac_exeext'
29753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29754   (eval $ac_try) 2>&5
29755   ac_status=$?
29756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29757   (exit $ac_status); }; }; then
29758   ac_cv_func__beginthread=yes
29759 else
29760   echo "$as_me: failed program was:" >&5
29761 sed 's/^/| /' conftest.$ac_ext >&5
29762
29763 ac_cv_func__beginthread=no
29764 fi
29765 rm -f conftest.err conftest.$ac_objext \
29766       conftest$ac_exeext conftest.$ac_ext
29767 fi
29768 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
29769 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
29770
29771
29772         if test $ac_cv_func__beginthread = yes ; then
29773
29774 cat >>confdefs.h <<\_ACEOF
29775 #define HAVE_NT_THREADS 1
29776 _ACEOF
29777
29778                 ol_cv_nt_threads=yes
29779         fi
29780
29781
29782         if test "$ol_cv_nt_threads" = yes ; then
29783                 ol_link_threads=nt
29784                 ol_with_threads=found
29785                 ol_with_yielding_select=yes
29786
29787
29788 cat >>confdefs.h <<\_ACEOF
29789 #define HAVE_NT_SERVICE_MANAGER 1
29790 _ACEOF
29791
29792
29793 cat >>confdefs.h <<\_ACEOF
29794 #define HAVE_NT_EVENT_LOG 1
29795 _ACEOF
29796
29797         fi
29798
29799         if test $ol_with_threads = nt ; then
29800                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
29801 echo "$as_me: error: could not locate NT Threads" >&2;}
29802    { (exit 1); exit 1; }; }
29803         fi
29804 fi
29805
29806 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29807         -o $ol_with_threads = posix ; then
29808
29809
29810 for ac_header in pthread.h
29811 do
29812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29814   echo "$as_me:$LINENO: checking for $ac_header" >&5
29815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29817   echo $ECHO_N "(cached) $ECHO_C" >&6
29818 fi
29819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29821 else
29822   # Is the header compilable?
29823 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29825 cat >conftest.$ac_ext <<_ACEOF
29826 /* confdefs.h.  */
29827 _ACEOF
29828 cat confdefs.h >>conftest.$ac_ext
29829 cat >>conftest.$ac_ext <<_ACEOF
29830 /* end confdefs.h.  */
29831 $ac_includes_default
29832 #include <$ac_header>
29833 _ACEOF
29834 rm -f conftest.$ac_objext
29835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29836   (eval $ac_compile) 2>conftest.er1
29837   ac_status=$?
29838   grep -v '^ *+' conftest.er1 >conftest.err
29839   rm -f conftest.er1
29840   cat conftest.err >&5
29841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842   (exit $ac_status); } &&
29843          { ac_try='test -z "$ac_c_werror_flag"
29844                          || test ! -s conftest.err'
29845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29846   (eval $ac_try) 2>&5
29847   ac_status=$?
29848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849   (exit $ac_status); }; } &&
29850          { ac_try='test -s conftest.$ac_objext'
29851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29852   (eval $ac_try) 2>&5
29853   ac_status=$?
29854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855   (exit $ac_status); }; }; then
29856   ac_header_compiler=yes
29857 else
29858   echo "$as_me: failed program was:" >&5
29859 sed 's/^/| /' conftest.$ac_ext >&5
29860
29861 ac_header_compiler=no
29862 fi
29863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29865 echo "${ECHO_T}$ac_header_compiler" >&6
29866
29867 # Is the header present?
29868 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29870 cat >conftest.$ac_ext <<_ACEOF
29871 /* confdefs.h.  */
29872 _ACEOF
29873 cat confdefs.h >>conftest.$ac_ext
29874 cat >>conftest.$ac_ext <<_ACEOF
29875 /* end confdefs.h.  */
29876 #include <$ac_header>
29877 _ACEOF
29878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29879   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
29886   if test -s conftest.err; then
29887     ac_cpp_err=$ac_c_preproc_warn_flag
29888     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29889   else
29890     ac_cpp_err=
29891   fi
29892 else
29893   ac_cpp_err=yes
29894 fi
29895 if test -z "$ac_cpp_err"; then
29896   ac_header_preproc=yes
29897 else
29898   echo "$as_me: failed program was:" >&5
29899 sed 's/^/| /' conftest.$ac_ext >&5
29900
29901   ac_header_preproc=no
29902 fi
29903 rm -f conftest.err conftest.$ac_ext
29904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29905 echo "${ECHO_T}$ac_header_preproc" >&6
29906
29907 # So?  What about this header?
29908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29909   yes:no: )
29910     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29912     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29914     ac_header_preproc=yes
29915     ;;
29916   no:yes:* )
29917     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29919     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29920 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29921     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29923     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29924 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29925     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29927     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29929     (
29930       cat <<\_ASBOX
29931 ## ------------------------------------------ ##
29932 ## Report this to the AC_PACKAGE_NAME lists.  ##
29933 ## ------------------------------------------ ##
29934 _ASBOX
29935     ) |
29936       sed "s/^/$as_me: WARNING:     /" >&2
29937     ;;
29938 esac
29939 echo "$as_me:$LINENO: checking for $ac_header" >&5
29940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29942   echo $ECHO_N "(cached) $ECHO_C" >&6
29943 else
29944   eval "$as_ac_Header=\$ac_header_preproc"
29945 fi
29946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29948
29949 fi
29950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29951   cat >>confdefs.h <<_ACEOF
29952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29953 _ACEOF
29954
29955 fi
29956
29957 done
29958
29959
29960         if test $ac_cv_header_pthread_h = yes ; then
29961                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
29962 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
29963 if test "${ol_cv_pthread_version+set}" = set; then
29964   echo $ECHO_N "(cached) $ECHO_C" >&6
29965 else
29966
29967         cat >conftest.$ac_ext <<_ACEOF
29968 /* confdefs.h.  */
29969 _ACEOF
29970 cat confdefs.h >>conftest.$ac_ext
29971 cat >>conftest.$ac_ext <<_ACEOF
29972 /* end confdefs.h.  */
29973
29974 #               include <pthread.h>
29975
29976 int
29977 main ()
29978 {
29979
29980                 int i = PTHREAD_CREATE_JOINABLE;
29981
29982   ;
29983   return 0;
29984 }
29985 _ACEOF
29986 rm -f conftest.$ac_objext
29987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29988   (eval $ac_compile) 2>conftest.er1
29989   ac_status=$?
29990   grep -v '^ *+' conftest.er1 >conftest.err
29991   rm -f conftest.er1
29992   cat conftest.err >&5
29993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29994   (exit $ac_status); } &&
29995          { ac_try='test -z "$ac_c_werror_flag"
29996                          || test ! -s conftest.err'
29997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29998   (eval $ac_try) 2>&5
29999   ac_status=$?
30000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001   (exit $ac_status); }; } &&
30002          { ac_try='test -s conftest.$ac_objext'
30003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30004   (eval $ac_try) 2>&5
30005   ac_status=$?
30006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007   (exit $ac_status); }; }; then
30008
30009         cat >conftest.$ac_ext <<_ACEOF
30010 /* confdefs.h.  */
30011 _ACEOF
30012 cat confdefs.h >>conftest.$ac_ext
30013 cat >>conftest.$ac_ext <<_ACEOF
30014 /* end confdefs.h.  */
30015 #include <pthread.h>
30016
30017 _ACEOF
30018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30019   $EGREP "pthread_detach" >/dev/null 2>&1; then
30020   ol_cv_pthread_version=10
30021 else
30022   ol_cv_pthread_version=8
30023 fi
30024 rm -f conftest*
30025
30026 else
30027   echo "$as_me: failed program was:" >&5
30028 sed 's/^/| /' conftest.$ac_ext >&5
30029
30030
30031         cat >conftest.$ac_ext <<_ACEOF
30032 /* confdefs.h.  */
30033 _ACEOF
30034 cat confdefs.h >>conftest.$ac_ext
30035 cat >>conftest.$ac_ext <<_ACEOF
30036 /* end confdefs.h.  */
30037
30038 #               include <pthread.h>
30039 #               ifdef PTHREAD_CREATE_UNDETACHED
30040                 draft7
30041 #               endif
30042
30043 _ACEOF
30044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30045   $EGREP "draft7" >/dev/null 2>&1; then
30046   ol_cv_pthread_version=7
30047 else
30048
30049         cat >conftest.$ac_ext <<_ACEOF
30050 /* confdefs.h.  */
30051 _ACEOF
30052 cat confdefs.h >>conftest.$ac_ext
30053 cat >>conftest.$ac_ext <<_ACEOF
30054 /* end confdefs.h.  */
30055 #include <pthread.h>
30056
30057 _ACEOF
30058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30059   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30060   ol_cv_pthread_version=6
30061 else
30062
30063         cat >conftest.$ac_ext <<_ACEOF
30064 /* confdefs.h.  */
30065 _ACEOF
30066 cat confdefs.h >>conftest.$ac_ext
30067 cat >>conftest.$ac_ext <<_ACEOF
30068 /* end confdefs.h.  */
30069
30070 #               include <pthread.h>
30071 #ifdef          PTHREAD_MUTEX_INITIALIZER
30072                 draft5
30073 #endif
30074
30075 _ACEOF
30076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30077   $EGREP "draft5" >/dev/null 2>&1; then
30078   ol_cv_pthread_version=5
30079 else
30080   ol_cv_pthread_version=4
30081 fi
30082 rm -f conftest*
30083
30084 fi
30085 rm -f conftest*
30086
30087 fi
30088 rm -f conftest*
30089
30090 fi
30091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30092
30093 fi
30094 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30095 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30096
30097
30098                 if test $ol_cv_pthread_version != 0 ; then
30099
30100 cat >>confdefs.h <<_ACEOF
30101 #define HAVE_PTHREADS $ol_cv_pthread_version
30102 _ACEOF
30103
30104                 else
30105                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30106 echo "$as_me: error: unknown pthread version" >&2;}
30107    { (exit 1); exit 1; }; }
30108                 fi
30109
30110                 # consider threads found
30111                 ol_with_threads=found
30112
30113
30114         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30115 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30116 if test "${ol_cv_header_linux_threads+set}" = set; then
30117   echo $ECHO_N "(cached) $ECHO_C" >&6
30118 else
30119   cat >conftest.$ac_ext <<_ACEOF
30120 /* confdefs.h.  */
30121 _ACEOF
30122 cat confdefs.h >>conftest.$ac_ext
30123 cat >>conftest.$ac_ext <<_ACEOF
30124 /* end confdefs.h.  */
30125 #include <pthread.h>
30126 _ACEOF
30127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30128   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30129   ol_cv_header_linux_threads=yes
30130 else
30131   ol_cv_header_linux_threads=no
30132 fi
30133 rm -f conftest*
30134
30135
30136 fi
30137 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30138 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30139         if test $ol_cv_header_linux_threads = yes; then
30140
30141 cat >>confdefs.h <<\_ACEOF
30142 #define HAVE_LINUX_THREADS 1
30143 _ACEOF
30144
30145         fi
30146
30147
30148         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30149 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30150 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30151   echo $ECHO_N "(cached) $ECHO_C" >&6
30152 else
30153   cat >conftest.$ac_ext <<_ACEOF
30154 /* confdefs.h.  */
30155 _ACEOF
30156 cat confdefs.h >>conftest.$ac_ext
30157 cat >>conftest.$ac_ext <<_ACEOF
30158 /* end confdefs.h.  */
30159 #include <pthread.h>
30160 #ifdef _POSIX_THREAD_IS_GNU_PTH
30161         __gnu_pth__;
30162 #endif
30163
30164 _ACEOF
30165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30166   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30167   ol_cv_header_gnu_pth_pthread_h=yes
30168 else
30169   ol_cv_header_gnu_pth_pthread_h=no
30170 fi
30171 rm -f conftest*
30172
30173
30174 fi
30175 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30176 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30177
30178
30179                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30180
30181 for ac_header in sched.h
30182 do
30183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30185   echo "$as_me:$LINENO: checking for $ac_header" >&5
30186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30188   echo $ECHO_N "(cached) $ECHO_C" >&6
30189 fi
30190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30192 else
30193   # Is the header compilable?
30194 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30196 cat >conftest.$ac_ext <<_ACEOF
30197 /* confdefs.h.  */
30198 _ACEOF
30199 cat confdefs.h >>conftest.$ac_ext
30200 cat >>conftest.$ac_ext <<_ACEOF
30201 /* end confdefs.h.  */
30202 $ac_includes_default
30203 #include <$ac_header>
30204 _ACEOF
30205 rm -f conftest.$ac_objext
30206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30207   (eval $ac_compile) 2>conftest.er1
30208   ac_status=$?
30209   grep -v '^ *+' conftest.er1 >conftest.err
30210   rm -f conftest.er1
30211   cat conftest.err >&5
30212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213   (exit $ac_status); } &&
30214          { ac_try='test -z "$ac_c_werror_flag"
30215                          || test ! -s conftest.err'
30216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30217   (eval $ac_try) 2>&5
30218   ac_status=$?
30219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220   (exit $ac_status); }; } &&
30221          { ac_try='test -s conftest.$ac_objext'
30222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30223   (eval $ac_try) 2>&5
30224   ac_status=$?
30225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226   (exit $ac_status); }; }; then
30227   ac_header_compiler=yes
30228 else
30229   echo "$as_me: failed program was:" >&5
30230 sed 's/^/| /' conftest.$ac_ext >&5
30231
30232 ac_header_compiler=no
30233 fi
30234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30236 echo "${ECHO_T}$ac_header_compiler" >&6
30237
30238 # Is the header present?
30239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30241 cat >conftest.$ac_ext <<_ACEOF
30242 /* confdefs.h.  */
30243 _ACEOF
30244 cat confdefs.h >>conftest.$ac_ext
30245 cat >>conftest.$ac_ext <<_ACEOF
30246 /* end confdefs.h.  */
30247 #include <$ac_header>
30248 _ACEOF
30249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30250   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30251   ac_status=$?
30252   grep -v '^ *+' conftest.er1 >conftest.err
30253   rm -f conftest.er1
30254   cat conftest.err >&5
30255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256   (exit $ac_status); } >/dev/null; then
30257   if test -s conftest.err; then
30258     ac_cpp_err=$ac_c_preproc_warn_flag
30259     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30260   else
30261     ac_cpp_err=
30262   fi
30263 else
30264   ac_cpp_err=yes
30265 fi
30266 if test -z "$ac_cpp_err"; then
30267   ac_header_preproc=yes
30268 else
30269   echo "$as_me: failed program was:" >&5
30270 sed 's/^/| /' conftest.$ac_ext >&5
30271
30272   ac_header_preproc=no
30273 fi
30274 rm -f conftest.err conftest.$ac_ext
30275 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30276 echo "${ECHO_T}$ac_header_preproc" >&6
30277
30278 # So?  What about this header?
30279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30280   yes:no: )
30281     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30285     ac_header_preproc=yes
30286     ;;
30287   no:yes:* )
30288     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30290     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30291 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30292     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30294     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30295 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30298     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30300     (
30301       cat <<\_ASBOX
30302 ## ------------------------------------------ ##
30303 ## Report this to the AC_PACKAGE_NAME lists.  ##
30304 ## ------------------------------------------ ##
30305 _ASBOX
30306     ) |
30307       sed "s/^/$as_me: WARNING:     /" >&2
30308     ;;
30309 esac
30310 echo "$as_me:$LINENO: checking for $ac_header" >&5
30311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30313   echo $ECHO_N "(cached) $ECHO_C" >&6
30314 else
30315   eval "$as_ac_Header=\$ac_header_preproc"
30316 fi
30317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30319
30320 fi
30321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30322   cat >>confdefs.h <<_ACEOF
30323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30324 _ACEOF
30325
30326 fi
30327
30328 done
30329
30330                 fi
30331
30332
30333                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30334 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30335 if test "${ol_cv_pthread_create+set}" = set; then
30336   echo $ECHO_N "(cached) $ECHO_C" >&6
30337 else
30338
30339                 if test "$cross_compiling" = yes; then
30340   cat >conftest.$ac_ext <<_ACEOF
30341 /* confdefs.h.  */
30342 _ACEOF
30343 cat confdefs.h >>conftest.$ac_ext
30344 cat >>conftest.$ac_ext <<_ACEOF
30345 /* end confdefs.h.  */
30346 /* pthread test headers */
30347 #include <pthread.h>
30348 #if HAVE_PTHREADS < 7
30349 #include <errno.h>
30350 #endif
30351 #ifndef NULL
30352 #define NULL (void*)0
30353 #endif
30354
30355 static void *task(p)
30356         void *p;
30357 {
30358         return (void *) (p == NULL);
30359 }
30360
30361 int
30362 main ()
30363 {
30364
30365         /* pthread test function */
30366 #ifndef PTHREAD_CREATE_DETACHED
30367 #define PTHREAD_CREATE_DETACHED 1
30368 #endif
30369         pthread_t t;
30370         int status;
30371         int detach = PTHREAD_CREATE_DETACHED;
30372
30373 #if HAVE_PTHREADS > 4
30374         /* Final pthreads */
30375         pthread_attr_t attr;
30376
30377         status = pthread_attr_init(&attr);
30378         if( status ) return status;
30379
30380 #if HAVE_PTHREADS < 7
30381         status = pthread_attr_setdetachstate(&attr, &detach);
30382         if( status < 0 ) status = errno;
30383 #else
30384         status = pthread_attr_setdetachstate(&attr, detach);
30385 #endif
30386         if( status ) return status;
30387         status = pthread_create( &t, &attr, task, NULL );
30388 #if HAVE_PTHREADS < 7
30389         if( status < 0 ) status = errno;
30390 #endif
30391         if( status ) return status;
30392 #else
30393         /* Draft 4 pthreads */
30394         status = pthread_create( &t, pthread_attr_default, task, NULL );
30395         if( status ) return errno;
30396
30397         /* give thread a chance to complete */
30398         /* it should remain joinable and hence detachable */
30399         sleep( 1 );
30400
30401         status = pthread_detach( &t );
30402         if( status ) return errno;
30403 #endif
30404
30405 #ifdef HAVE_LINUX_THREADS
30406         pthread_kill_other_threads_np();
30407 #endif
30408
30409         return 0;
30410
30411   ;
30412   return 0;
30413 }
30414 _ACEOF
30415 rm -f conftest.$ac_objext conftest$ac_exeext
30416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30417   (eval $ac_link) 2>conftest.er1
30418   ac_status=$?
30419   grep -v '^ *+' conftest.er1 >conftest.err
30420   rm -f conftest.er1
30421   cat conftest.err >&5
30422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423   (exit $ac_status); } &&
30424          { ac_try='test -z "$ac_c_werror_flag"
30425                          || test ! -s conftest.err'
30426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30427   (eval $ac_try) 2>&5
30428   ac_status=$?
30429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30430   (exit $ac_status); }; } &&
30431          { ac_try='test -s conftest$ac_exeext'
30432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30433   (eval $ac_try) 2>&5
30434   ac_status=$?
30435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436   (exit $ac_status); }; }; then
30437   ol_cv_pthread_create=yes
30438 else
30439   echo "$as_me: failed program was:" >&5
30440 sed 's/^/| /' conftest.$ac_ext >&5
30441
30442 ol_cv_pthread_create=no
30443 fi
30444 rm -f conftest.err conftest.$ac_objext \
30445       conftest$ac_exeext conftest.$ac_ext
30446 else
30447   cat >conftest.$ac_ext <<_ACEOF
30448 /* confdefs.h.  */
30449 _ACEOF
30450 cat confdefs.h >>conftest.$ac_ext
30451 cat >>conftest.$ac_ext <<_ACEOF
30452 /* end confdefs.h.  */
30453 /* pthread test headers */
30454 #include <pthread.h>
30455 #if HAVE_PTHREADS < 7
30456 #include <errno.h>
30457 #endif
30458 #ifndef NULL
30459 #define NULL (void*)0
30460 #endif
30461
30462 static void *task(p)
30463         void *p;
30464 {
30465         return (void *) (p == NULL);
30466 }
30467
30468
30469 int main(argc, argv)
30470         int argc;
30471         char **argv;
30472 {
30473
30474         /* pthread test function */
30475 #ifndef PTHREAD_CREATE_DETACHED
30476 #define PTHREAD_CREATE_DETACHED 1
30477 #endif
30478         pthread_t t;
30479         int status;
30480         int detach = PTHREAD_CREATE_DETACHED;
30481
30482 #if HAVE_PTHREADS > 4
30483         /* Final pthreads */
30484         pthread_attr_t attr;
30485
30486         status = pthread_attr_init(&attr);
30487         if( status ) return status;
30488
30489 #if HAVE_PTHREADS < 7
30490         status = pthread_attr_setdetachstate(&attr, &detach);
30491         if( status < 0 ) status = errno;
30492 #else
30493         status = pthread_attr_setdetachstate(&attr, detach);
30494 #endif
30495         if( status ) return status;
30496         status = pthread_create( &t, &attr, task, NULL );
30497 #if HAVE_PTHREADS < 7
30498         if( status < 0 ) status = errno;
30499 #endif
30500         if( status ) return status;
30501 #else
30502         /* Draft 4 pthreads */
30503         status = pthread_create( &t, pthread_attr_default, task, NULL );
30504         if( status ) return errno;
30505
30506         /* give thread a chance to complete */
30507         /* it should remain joinable and hence detachable */
30508         sleep( 1 );
30509
30510         status = pthread_detach( &t );
30511         if( status ) return errno;
30512 #endif
30513
30514 #ifdef HAVE_LINUX_THREADS
30515         pthread_kill_other_threads_np();
30516 #endif
30517
30518         return 0;
30519
30520 }
30521
30522 _ACEOF
30523 rm -f conftest$ac_exeext
30524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30525   (eval $ac_link) 2>&5
30526   ac_status=$?
30527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30530   (eval $ac_try) 2>&5
30531   ac_status=$?
30532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533   (exit $ac_status); }; }; then
30534   ol_cv_pthread_create=yes
30535 else
30536   echo "$as_me: program exited with status $ac_status" >&5
30537 echo "$as_me: failed program was:" >&5
30538 sed 's/^/| /' conftest.$ac_ext >&5
30539
30540 ( exit $ac_status )
30541 ol_cv_pthread_create=no
30542 fi
30543 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30544 fi
30545 fi
30546 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30547 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30548
30549                 if test $ol_cv_pthread_create != no ; then
30550                         ol_link_threads=posix
30551                         ol_link_pthreads=""
30552                 fi
30553
30554                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30555 if test "$ol_link_threads" = no ; then
30556         # try -kthread
30557         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30558 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30559 if test "${ol_cv_pthread_kthread+set}" = set; then
30560   echo $ECHO_N "(cached) $ECHO_C" >&6
30561 else
30562
30563                 # save the flags
30564                 ol_LIBS="$LIBS"
30565                 LIBS="-kthread $LIBS"
30566
30567                 if test "$cross_compiling" = yes; then
30568   cat >conftest.$ac_ext <<_ACEOF
30569 /* confdefs.h.  */
30570 _ACEOF
30571 cat confdefs.h >>conftest.$ac_ext
30572 cat >>conftest.$ac_ext <<_ACEOF
30573 /* end confdefs.h.  */
30574 /* pthread test headers */
30575 #include <pthread.h>
30576 #if HAVE_PTHREADS < 7
30577 #include <errno.h>
30578 #endif
30579 #ifndef NULL
30580 #define NULL (void*)0
30581 #endif
30582
30583 static void *task(p)
30584         void *p;
30585 {
30586         return (void *) (p == NULL);
30587 }
30588
30589 int
30590 main ()
30591 {
30592
30593         /* pthread test function */
30594 #ifndef PTHREAD_CREATE_DETACHED
30595 #define PTHREAD_CREATE_DETACHED 1
30596 #endif
30597         pthread_t t;
30598         int status;
30599         int detach = PTHREAD_CREATE_DETACHED;
30600
30601 #if HAVE_PTHREADS > 4
30602         /* Final pthreads */
30603         pthread_attr_t attr;
30604
30605         status = pthread_attr_init(&attr);
30606         if( status ) return status;
30607
30608 #if HAVE_PTHREADS < 7
30609         status = pthread_attr_setdetachstate(&attr, &detach);
30610         if( status < 0 ) status = errno;
30611 #else
30612         status = pthread_attr_setdetachstate(&attr, detach);
30613 #endif
30614         if( status ) return status;
30615         status = pthread_create( &t, &attr, task, NULL );
30616 #if HAVE_PTHREADS < 7
30617         if( status < 0 ) status = errno;
30618 #endif
30619         if( status ) return status;
30620 #else
30621         /* Draft 4 pthreads */
30622         status = pthread_create( &t, pthread_attr_default, task, NULL );
30623         if( status ) return errno;
30624
30625         /* give thread a chance to complete */
30626         /* it should remain joinable and hence detachable */
30627         sleep( 1 );
30628
30629         status = pthread_detach( &t );
30630         if( status ) return errno;
30631 #endif
30632
30633 #ifdef HAVE_LINUX_THREADS
30634         pthread_kill_other_threads_np();
30635 #endif
30636
30637         return 0;
30638
30639   ;
30640   return 0;
30641 }
30642 _ACEOF
30643 rm -f conftest.$ac_objext conftest$ac_exeext
30644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30645   (eval $ac_link) 2>conftest.er1
30646   ac_status=$?
30647   grep -v '^ *+' conftest.er1 >conftest.err
30648   rm -f conftest.er1
30649   cat conftest.err >&5
30650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651   (exit $ac_status); } &&
30652          { ac_try='test -z "$ac_c_werror_flag"
30653                          || test ! -s conftest.err'
30654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30655   (eval $ac_try) 2>&5
30656   ac_status=$?
30657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658   (exit $ac_status); }; } &&
30659          { ac_try='test -s conftest$ac_exeext'
30660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30661   (eval $ac_try) 2>&5
30662   ac_status=$?
30663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30664   (exit $ac_status); }; }; then
30665   ol_cv_pthread_kthread=yes
30666 else
30667   echo "$as_me: failed program was:" >&5
30668 sed 's/^/| /' conftest.$ac_ext >&5
30669
30670 ol_cv_pthread_kthread=no
30671 fi
30672 rm -f conftest.err conftest.$ac_objext \
30673       conftest$ac_exeext conftest.$ac_ext
30674 else
30675   cat >conftest.$ac_ext <<_ACEOF
30676 /* confdefs.h.  */
30677 _ACEOF
30678 cat confdefs.h >>conftest.$ac_ext
30679 cat >>conftest.$ac_ext <<_ACEOF
30680 /* end confdefs.h.  */
30681 /* pthread test headers */
30682 #include <pthread.h>
30683 #if HAVE_PTHREADS < 7
30684 #include <errno.h>
30685 #endif
30686 #ifndef NULL
30687 #define NULL (void*)0
30688 #endif
30689
30690 static void *task(p)
30691         void *p;
30692 {
30693         return (void *) (p == NULL);
30694 }
30695
30696
30697 int main(argc, argv)
30698         int argc;
30699         char **argv;
30700 {
30701
30702         /* pthread test function */
30703 #ifndef PTHREAD_CREATE_DETACHED
30704 #define PTHREAD_CREATE_DETACHED 1
30705 #endif
30706         pthread_t t;
30707         int status;
30708         int detach = PTHREAD_CREATE_DETACHED;
30709
30710 #if HAVE_PTHREADS > 4
30711         /* Final pthreads */
30712         pthread_attr_t attr;
30713
30714         status = pthread_attr_init(&attr);
30715         if( status ) return status;
30716
30717 #if HAVE_PTHREADS < 7
30718         status = pthread_attr_setdetachstate(&attr, &detach);
30719         if( status < 0 ) status = errno;
30720 #else
30721         status = pthread_attr_setdetachstate(&attr, detach);
30722 #endif
30723         if( status ) return status;
30724         status = pthread_create( &t, &attr, task, NULL );
30725 #if HAVE_PTHREADS < 7
30726         if( status < 0 ) status = errno;
30727 #endif
30728         if( status ) return status;
30729 #else
30730         /* Draft 4 pthreads */
30731         status = pthread_create( &t, pthread_attr_default, task, NULL );
30732         if( status ) return errno;
30733
30734         /* give thread a chance to complete */
30735         /* it should remain joinable and hence detachable */
30736         sleep( 1 );
30737
30738         status = pthread_detach( &t );
30739         if( status ) return errno;
30740 #endif
30741
30742 #ifdef HAVE_LINUX_THREADS
30743         pthread_kill_other_threads_np();
30744 #endif
30745
30746         return 0;
30747
30748 }
30749
30750 _ACEOF
30751 rm -f conftest$ac_exeext
30752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30753   (eval $ac_link) 2>&5
30754   ac_status=$?
30755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30756   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30758   (eval $ac_try) 2>&5
30759   ac_status=$?
30760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761   (exit $ac_status); }; }; then
30762   ol_cv_pthread_kthread=yes
30763 else
30764   echo "$as_me: program exited with status $ac_status" >&5
30765 echo "$as_me: failed program was:" >&5
30766 sed 's/^/| /' conftest.$ac_ext >&5
30767
30768 ( exit $ac_status )
30769 ol_cv_pthread_kthread=no
30770 fi
30771 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30772 fi
30773
30774                 # restore the LIBS
30775                 LIBS="$ol_LIBS"
30776
30777 fi
30778 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
30779 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
30780
30781         if test $ol_cv_pthread_kthread = yes ; then
30782                 ol_link_pthreads="-kthread"
30783                 ol_link_threads=posix
30784         fi
30785 fi
30786
30787                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
30788 if test "$ol_link_threads" = no ; then
30789         # try -pthread
30790         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
30791 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
30792 if test "${ol_cv_pthread_pthread+set}" = set; then
30793   echo $ECHO_N "(cached) $ECHO_C" >&6
30794 else
30795
30796                 # save the flags
30797                 ol_LIBS="$LIBS"
30798                 LIBS="-pthread $LIBS"
30799
30800                 if test "$cross_compiling" = yes; then
30801   cat >conftest.$ac_ext <<_ACEOF
30802 /* confdefs.h.  */
30803 _ACEOF
30804 cat confdefs.h >>conftest.$ac_ext
30805 cat >>conftest.$ac_ext <<_ACEOF
30806 /* end confdefs.h.  */
30807 /* pthread test headers */
30808 #include <pthread.h>
30809 #if HAVE_PTHREADS < 7
30810 #include <errno.h>
30811 #endif
30812 #ifndef NULL
30813 #define NULL (void*)0
30814 #endif
30815
30816 static void *task(p)
30817         void *p;
30818 {
30819         return (void *) (p == NULL);
30820 }
30821
30822 int
30823 main ()
30824 {
30825
30826         /* pthread test function */
30827 #ifndef PTHREAD_CREATE_DETACHED
30828 #define PTHREAD_CREATE_DETACHED 1
30829 #endif
30830         pthread_t t;
30831         int status;
30832         int detach = PTHREAD_CREATE_DETACHED;
30833
30834 #if HAVE_PTHREADS > 4
30835         /* Final pthreads */
30836         pthread_attr_t attr;
30837
30838         status = pthread_attr_init(&attr);
30839         if( status ) return status;
30840
30841 #if HAVE_PTHREADS < 7
30842         status = pthread_attr_setdetachstate(&attr, &detach);
30843         if( status < 0 ) status = errno;
30844 #else
30845         status = pthread_attr_setdetachstate(&attr, detach);
30846 #endif
30847         if( status ) return status;
30848         status = pthread_create( &t, &attr, task, NULL );
30849 #if HAVE_PTHREADS < 7
30850         if( status < 0 ) status = errno;
30851 #endif
30852         if( status ) return status;
30853 #else
30854         /* Draft 4 pthreads */
30855         status = pthread_create( &t, pthread_attr_default, task, NULL );
30856         if( status ) return errno;
30857
30858         /* give thread a chance to complete */
30859         /* it should remain joinable and hence detachable */
30860         sleep( 1 );
30861
30862         status = pthread_detach( &t );
30863         if( status ) return errno;
30864 #endif
30865
30866 #ifdef HAVE_LINUX_THREADS
30867         pthread_kill_other_threads_np();
30868 #endif
30869
30870         return 0;
30871
30872   ;
30873   return 0;
30874 }
30875 _ACEOF
30876 rm -f conftest.$ac_objext conftest$ac_exeext
30877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30878   (eval $ac_link) 2>conftest.er1
30879   ac_status=$?
30880   grep -v '^ *+' conftest.er1 >conftest.err
30881   rm -f conftest.er1
30882   cat conftest.err >&5
30883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30884   (exit $ac_status); } &&
30885          { ac_try='test -z "$ac_c_werror_flag"
30886                          || test ! -s conftest.err'
30887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30888   (eval $ac_try) 2>&5
30889   ac_status=$?
30890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891   (exit $ac_status); }; } &&
30892          { ac_try='test -s conftest$ac_exeext'
30893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30894   (eval $ac_try) 2>&5
30895   ac_status=$?
30896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897   (exit $ac_status); }; }; then
30898   ol_cv_pthread_pthread=yes
30899 else
30900   echo "$as_me: failed program was:" >&5
30901 sed 's/^/| /' conftest.$ac_ext >&5
30902
30903 ol_cv_pthread_pthread=no
30904 fi
30905 rm -f conftest.err conftest.$ac_objext \
30906       conftest$ac_exeext conftest.$ac_ext
30907 else
30908   cat >conftest.$ac_ext <<_ACEOF
30909 /* confdefs.h.  */
30910 _ACEOF
30911 cat confdefs.h >>conftest.$ac_ext
30912 cat >>conftest.$ac_ext <<_ACEOF
30913 /* end confdefs.h.  */
30914 /* pthread test headers */
30915 #include <pthread.h>
30916 #if HAVE_PTHREADS < 7
30917 #include <errno.h>
30918 #endif
30919 #ifndef NULL
30920 #define NULL (void*)0
30921 #endif
30922
30923 static void *task(p)
30924         void *p;
30925 {
30926         return (void *) (p == NULL);
30927 }
30928
30929
30930 int main(argc, argv)
30931         int argc;
30932         char **argv;
30933 {
30934
30935         /* pthread test function */
30936 #ifndef PTHREAD_CREATE_DETACHED
30937 #define PTHREAD_CREATE_DETACHED 1
30938 #endif
30939         pthread_t t;
30940         int status;
30941         int detach = PTHREAD_CREATE_DETACHED;
30942
30943 #if HAVE_PTHREADS > 4
30944         /* Final pthreads */
30945         pthread_attr_t attr;
30946
30947         status = pthread_attr_init(&attr);
30948         if( status ) return status;
30949
30950 #if HAVE_PTHREADS < 7
30951         status = pthread_attr_setdetachstate(&attr, &detach);
30952         if( status < 0 ) status = errno;
30953 #else
30954         status = pthread_attr_setdetachstate(&attr, detach);
30955 #endif
30956         if( status ) return status;
30957         status = pthread_create( &t, &attr, task, NULL );
30958 #if HAVE_PTHREADS < 7
30959         if( status < 0 ) status = errno;
30960 #endif
30961         if( status ) return status;
30962 #else
30963         /* Draft 4 pthreads */
30964         status = pthread_create( &t, pthread_attr_default, task, NULL );
30965         if( status ) return errno;
30966
30967         /* give thread a chance to complete */
30968         /* it should remain joinable and hence detachable */
30969         sleep( 1 );
30970
30971         status = pthread_detach( &t );
30972         if( status ) return errno;
30973 #endif
30974
30975 #ifdef HAVE_LINUX_THREADS
30976         pthread_kill_other_threads_np();
30977 #endif
30978
30979         return 0;
30980
30981 }
30982
30983 _ACEOF
30984 rm -f conftest$ac_exeext
30985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30986   (eval $ac_link) 2>&5
30987   ac_status=$?
30988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30989   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30991   (eval $ac_try) 2>&5
30992   ac_status=$?
30993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994   (exit $ac_status); }; }; then
30995   ol_cv_pthread_pthread=yes
30996 else
30997   echo "$as_me: program exited with status $ac_status" >&5
30998 echo "$as_me: failed program was:" >&5
30999 sed 's/^/| /' conftest.$ac_ext >&5
31000
31001 ( exit $ac_status )
31002 ol_cv_pthread_pthread=no
31003 fi
31004 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31005 fi
31006
31007                 # restore the LIBS
31008                 LIBS="$ol_LIBS"
31009
31010 fi
31011 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31012 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31013
31014         if test $ol_cv_pthread_pthread = yes ; then
31015                 ol_link_pthreads="-pthread"
31016                 ol_link_threads=posix
31017         fi
31018 fi
31019
31020                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31021 if test "$ol_link_threads" = no ; then
31022         # try -pthreads
31023         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31024 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31025 if test "${ol_cv_pthread_pthreads+set}" = set; then
31026   echo $ECHO_N "(cached) $ECHO_C" >&6
31027 else
31028
31029                 # save the flags
31030                 ol_LIBS="$LIBS"
31031                 LIBS="-pthreads $LIBS"
31032
31033                 if test "$cross_compiling" = yes; then
31034   cat >conftest.$ac_ext <<_ACEOF
31035 /* confdefs.h.  */
31036 _ACEOF
31037 cat confdefs.h >>conftest.$ac_ext
31038 cat >>conftest.$ac_ext <<_ACEOF
31039 /* end confdefs.h.  */
31040 /* pthread test headers */
31041 #include <pthread.h>
31042 #if HAVE_PTHREADS < 7
31043 #include <errno.h>
31044 #endif
31045 #ifndef NULL
31046 #define NULL (void*)0
31047 #endif
31048
31049 static void *task(p)
31050         void *p;
31051 {
31052         return (void *) (p == NULL);
31053 }
31054
31055 int
31056 main ()
31057 {
31058
31059         /* pthread test function */
31060 #ifndef PTHREAD_CREATE_DETACHED
31061 #define PTHREAD_CREATE_DETACHED 1
31062 #endif
31063         pthread_t t;
31064         int status;
31065         int detach = PTHREAD_CREATE_DETACHED;
31066
31067 #if HAVE_PTHREADS > 4
31068         /* Final pthreads */
31069         pthread_attr_t attr;
31070
31071         status = pthread_attr_init(&attr);
31072         if( status ) return status;
31073
31074 #if HAVE_PTHREADS < 7
31075         status = pthread_attr_setdetachstate(&attr, &detach);
31076         if( status < 0 ) status = errno;
31077 #else
31078         status = pthread_attr_setdetachstate(&attr, detach);
31079 #endif
31080         if( status ) return status;
31081         status = pthread_create( &t, &attr, task, NULL );
31082 #if HAVE_PTHREADS < 7
31083         if( status < 0 ) status = errno;
31084 #endif
31085         if( status ) return status;
31086 #else
31087         /* Draft 4 pthreads */
31088         status = pthread_create( &t, pthread_attr_default, task, NULL );
31089         if( status ) return errno;
31090
31091         /* give thread a chance to complete */
31092         /* it should remain joinable and hence detachable */
31093         sleep( 1 );
31094
31095         status = pthread_detach( &t );
31096         if( status ) return errno;
31097 #endif
31098
31099 #ifdef HAVE_LINUX_THREADS
31100         pthread_kill_other_threads_np();
31101 #endif
31102
31103         return 0;
31104
31105   ;
31106   return 0;
31107 }
31108 _ACEOF
31109 rm -f conftest.$ac_objext conftest$ac_exeext
31110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31111   (eval $ac_link) 2>conftest.er1
31112   ac_status=$?
31113   grep -v '^ *+' conftest.er1 >conftest.err
31114   rm -f conftest.er1
31115   cat conftest.err >&5
31116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31117   (exit $ac_status); } &&
31118          { ac_try='test -z "$ac_c_werror_flag"
31119                          || test ! -s conftest.err'
31120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31121   (eval $ac_try) 2>&5
31122   ac_status=$?
31123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124   (exit $ac_status); }; } &&
31125          { ac_try='test -s conftest$ac_exeext'
31126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31127   (eval $ac_try) 2>&5
31128   ac_status=$?
31129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31130   (exit $ac_status); }; }; then
31131   ol_cv_pthread_pthreads=yes
31132 else
31133   echo "$as_me: failed program was:" >&5
31134 sed 's/^/| /' conftest.$ac_ext >&5
31135
31136 ol_cv_pthread_pthreads=no
31137 fi
31138 rm -f conftest.err conftest.$ac_objext \
31139       conftest$ac_exeext conftest.$ac_ext
31140 else
31141   cat >conftest.$ac_ext <<_ACEOF
31142 /* confdefs.h.  */
31143 _ACEOF
31144 cat confdefs.h >>conftest.$ac_ext
31145 cat >>conftest.$ac_ext <<_ACEOF
31146 /* end confdefs.h.  */
31147 /* pthread test headers */
31148 #include <pthread.h>
31149 #if HAVE_PTHREADS < 7
31150 #include <errno.h>
31151 #endif
31152 #ifndef NULL
31153 #define NULL (void*)0
31154 #endif
31155
31156 static void *task(p)
31157         void *p;
31158 {
31159         return (void *) (p == NULL);
31160 }
31161
31162
31163 int main(argc, argv)
31164         int argc;
31165         char **argv;
31166 {
31167
31168         /* pthread test function */
31169 #ifndef PTHREAD_CREATE_DETACHED
31170 #define PTHREAD_CREATE_DETACHED 1
31171 #endif
31172         pthread_t t;
31173         int status;
31174         int detach = PTHREAD_CREATE_DETACHED;
31175
31176 #if HAVE_PTHREADS > 4
31177         /* Final pthreads */
31178         pthread_attr_t attr;
31179
31180         status = pthread_attr_init(&attr);
31181         if( status ) return status;
31182
31183 #if HAVE_PTHREADS < 7
31184         status = pthread_attr_setdetachstate(&attr, &detach);
31185         if( status < 0 ) status = errno;
31186 #else
31187         status = pthread_attr_setdetachstate(&attr, detach);
31188 #endif
31189         if( status ) return status;
31190         status = pthread_create( &t, &attr, task, NULL );
31191 #if HAVE_PTHREADS < 7
31192         if( status < 0 ) status = errno;
31193 #endif
31194         if( status ) return status;
31195 #else
31196         /* Draft 4 pthreads */
31197         status = pthread_create( &t, pthread_attr_default, task, NULL );
31198         if( status ) return errno;
31199
31200         /* give thread a chance to complete */
31201         /* it should remain joinable and hence detachable */
31202         sleep( 1 );
31203
31204         status = pthread_detach( &t );
31205         if( status ) return errno;
31206 #endif
31207
31208 #ifdef HAVE_LINUX_THREADS
31209         pthread_kill_other_threads_np();
31210 #endif
31211
31212         return 0;
31213
31214 }
31215
31216 _ACEOF
31217 rm -f conftest$ac_exeext
31218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31219   (eval $ac_link) 2>&5
31220   ac_status=$?
31221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31224   (eval $ac_try) 2>&5
31225   ac_status=$?
31226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227   (exit $ac_status); }; }; then
31228   ol_cv_pthread_pthreads=yes
31229 else
31230   echo "$as_me: program exited with status $ac_status" >&5
31231 echo "$as_me: failed program was:" >&5
31232 sed 's/^/| /' conftest.$ac_ext >&5
31233
31234 ( exit $ac_status )
31235 ol_cv_pthread_pthreads=no
31236 fi
31237 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31238 fi
31239
31240                 # restore the LIBS
31241                 LIBS="$ol_LIBS"
31242
31243 fi
31244 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31245 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31246
31247         if test $ol_cv_pthread_pthreads = yes ; then
31248                 ol_link_pthreads="-pthreads"
31249                 ol_link_threads=posix
31250         fi
31251 fi
31252
31253                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31254 if test "$ol_link_threads" = no ; then
31255         # try -mthreads
31256         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31257 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31258 if test "${ol_cv_pthread_mthreads+set}" = set; then
31259   echo $ECHO_N "(cached) $ECHO_C" >&6
31260 else
31261
31262                 # save the flags
31263                 ol_LIBS="$LIBS"
31264                 LIBS="-mthreads $LIBS"
31265
31266                 if test "$cross_compiling" = yes; then
31267   cat >conftest.$ac_ext <<_ACEOF
31268 /* confdefs.h.  */
31269 _ACEOF
31270 cat confdefs.h >>conftest.$ac_ext
31271 cat >>conftest.$ac_ext <<_ACEOF
31272 /* end confdefs.h.  */
31273 /* pthread test headers */
31274 #include <pthread.h>
31275 #if HAVE_PTHREADS < 7
31276 #include <errno.h>
31277 #endif
31278 #ifndef NULL
31279 #define NULL (void*)0
31280 #endif
31281
31282 static void *task(p)
31283         void *p;
31284 {
31285         return (void *) (p == NULL);
31286 }
31287
31288 int
31289 main ()
31290 {
31291
31292         /* pthread test function */
31293 #ifndef PTHREAD_CREATE_DETACHED
31294 #define PTHREAD_CREATE_DETACHED 1
31295 #endif
31296         pthread_t t;
31297         int status;
31298         int detach = PTHREAD_CREATE_DETACHED;
31299
31300 #if HAVE_PTHREADS > 4
31301         /* Final pthreads */
31302         pthread_attr_t attr;
31303
31304         status = pthread_attr_init(&attr);
31305         if( status ) return status;
31306
31307 #if HAVE_PTHREADS < 7
31308         status = pthread_attr_setdetachstate(&attr, &detach);
31309         if( status < 0 ) status = errno;
31310 #else
31311         status = pthread_attr_setdetachstate(&attr, detach);
31312 #endif
31313         if( status ) return status;
31314         status = pthread_create( &t, &attr, task, NULL );
31315 #if HAVE_PTHREADS < 7
31316         if( status < 0 ) status = errno;
31317 #endif
31318         if( status ) return status;
31319 #else
31320         /* Draft 4 pthreads */
31321         status = pthread_create( &t, pthread_attr_default, task, NULL );
31322         if( status ) return errno;
31323
31324         /* give thread a chance to complete */
31325         /* it should remain joinable and hence detachable */
31326         sleep( 1 );
31327
31328         status = pthread_detach( &t );
31329         if( status ) return errno;
31330 #endif
31331
31332 #ifdef HAVE_LINUX_THREADS
31333         pthread_kill_other_threads_np();
31334 #endif
31335
31336         return 0;
31337
31338   ;
31339   return 0;
31340 }
31341 _ACEOF
31342 rm -f conftest.$ac_objext conftest$ac_exeext
31343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31344   (eval $ac_link) 2>conftest.er1
31345   ac_status=$?
31346   grep -v '^ *+' conftest.er1 >conftest.err
31347   rm -f conftest.er1
31348   cat conftest.err >&5
31349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31350   (exit $ac_status); } &&
31351          { ac_try='test -z "$ac_c_werror_flag"
31352                          || test ! -s conftest.err'
31353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31354   (eval $ac_try) 2>&5
31355   ac_status=$?
31356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357   (exit $ac_status); }; } &&
31358          { ac_try='test -s conftest$ac_exeext'
31359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31360   (eval $ac_try) 2>&5
31361   ac_status=$?
31362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363   (exit $ac_status); }; }; then
31364   ol_cv_pthread_mthreads=yes
31365 else
31366   echo "$as_me: failed program was:" >&5
31367 sed 's/^/| /' conftest.$ac_ext >&5
31368
31369 ol_cv_pthread_mthreads=no
31370 fi
31371 rm -f conftest.err conftest.$ac_objext \
31372       conftest$ac_exeext conftest.$ac_ext
31373 else
31374   cat >conftest.$ac_ext <<_ACEOF
31375 /* confdefs.h.  */
31376 _ACEOF
31377 cat confdefs.h >>conftest.$ac_ext
31378 cat >>conftest.$ac_ext <<_ACEOF
31379 /* end confdefs.h.  */
31380 /* pthread test headers */
31381 #include <pthread.h>
31382 #if HAVE_PTHREADS < 7
31383 #include <errno.h>
31384 #endif
31385 #ifndef NULL
31386 #define NULL (void*)0
31387 #endif
31388
31389 static void *task(p)
31390         void *p;
31391 {
31392         return (void *) (p == NULL);
31393 }
31394
31395
31396 int main(argc, argv)
31397         int argc;
31398         char **argv;
31399 {
31400
31401         /* pthread test function */
31402 #ifndef PTHREAD_CREATE_DETACHED
31403 #define PTHREAD_CREATE_DETACHED 1
31404 #endif
31405         pthread_t t;
31406         int status;
31407         int detach = PTHREAD_CREATE_DETACHED;
31408
31409 #if HAVE_PTHREADS > 4
31410         /* Final pthreads */
31411         pthread_attr_t attr;
31412
31413         status = pthread_attr_init(&attr);
31414         if( status ) return status;
31415
31416 #if HAVE_PTHREADS < 7
31417         status = pthread_attr_setdetachstate(&attr, &detach);
31418         if( status < 0 ) status = errno;
31419 #else
31420         status = pthread_attr_setdetachstate(&attr, detach);
31421 #endif
31422         if( status ) return status;
31423         status = pthread_create( &t, &attr, task, NULL );
31424 #if HAVE_PTHREADS < 7
31425         if( status < 0 ) status = errno;
31426 #endif
31427         if( status ) return status;
31428 #else
31429         /* Draft 4 pthreads */
31430         status = pthread_create( &t, pthread_attr_default, task, NULL );
31431         if( status ) return errno;
31432
31433         /* give thread a chance to complete */
31434         /* it should remain joinable and hence detachable */
31435         sleep( 1 );
31436
31437         status = pthread_detach( &t );
31438         if( status ) return errno;
31439 #endif
31440
31441 #ifdef HAVE_LINUX_THREADS
31442         pthread_kill_other_threads_np();
31443 #endif
31444
31445         return 0;
31446
31447 }
31448
31449 _ACEOF
31450 rm -f conftest$ac_exeext
31451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31452   (eval $ac_link) 2>&5
31453   ac_status=$?
31454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31457   (eval $ac_try) 2>&5
31458   ac_status=$?
31459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31460   (exit $ac_status); }; }; then
31461   ol_cv_pthread_mthreads=yes
31462 else
31463   echo "$as_me: program exited with status $ac_status" >&5
31464 echo "$as_me: failed program was:" >&5
31465 sed 's/^/| /' conftest.$ac_ext >&5
31466
31467 ( exit $ac_status )
31468 ol_cv_pthread_mthreads=no
31469 fi
31470 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31471 fi
31472
31473                 # restore the LIBS
31474                 LIBS="$ol_LIBS"
31475
31476 fi
31477 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31478 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31479
31480         if test $ol_cv_pthread_mthreads = yes ; then
31481                 ol_link_pthreads="-mthreads"
31482                 ol_link_threads=posix
31483         fi
31484 fi
31485
31486                 # Pthread try link: -thread (ol_cv_pthread_thread)
31487 if test "$ol_link_threads" = no ; then
31488         # try -thread
31489         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31490 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31491 if test "${ol_cv_pthread_thread+set}" = set; then
31492   echo $ECHO_N "(cached) $ECHO_C" >&6
31493 else
31494
31495                 # save the flags
31496                 ol_LIBS="$LIBS"
31497                 LIBS="-thread $LIBS"
31498
31499                 if test "$cross_compiling" = yes; then
31500   cat >conftest.$ac_ext <<_ACEOF
31501 /* confdefs.h.  */
31502 _ACEOF
31503 cat confdefs.h >>conftest.$ac_ext
31504 cat >>conftest.$ac_ext <<_ACEOF
31505 /* end confdefs.h.  */
31506 /* pthread test headers */
31507 #include <pthread.h>
31508 #if HAVE_PTHREADS < 7
31509 #include <errno.h>
31510 #endif
31511 #ifndef NULL
31512 #define NULL (void*)0
31513 #endif
31514
31515 static void *task(p)
31516         void *p;
31517 {
31518         return (void *) (p == NULL);
31519 }
31520
31521 int
31522 main ()
31523 {
31524
31525         /* pthread test function */
31526 #ifndef PTHREAD_CREATE_DETACHED
31527 #define PTHREAD_CREATE_DETACHED 1
31528 #endif
31529         pthread_t t;
31530         int status;
31531         int detach = PTHREAD_CREATE_DETACHED;
31532
31533 #if HAVE_PTHREADS > 4
31534         /* Final pthreads */
31535         pthread_attr_t attr;
31536
31537         status = pthread_attr_init(&attr);
31538         if( status ) return status;
31539
31540 #if HAVE_PTHREADS < 7
31541         status = pthread_attr_setdetachstate(&attr, &detach);
31542         if( status < 0 ) status = errno;
31543 #else
31544         status = pthread_attr_setdetachstate(&attr, detach);
31545 #endif
31546         if( status ) return status;
31547         status = pthread_create( &t, &attr, task, NULL );
31548 #if HAVE_PTHREADS < 7
31549         if( status < 0 ) status = errno;
31550 #endif
31551         if( status ) return status;
31552 #else
31553         /* Draft 4 pthreads */
31554         status = pthread_create( &t, pthread_attr_default, task, NULL );
31555         if( status ) return errno;
31556
31557         /* give thread a chance to complete */
31558         /* it should remain joinable and hence detachable */
31559         sleep( 1 );
31560
31561         status = pthread_detach( &t );
31562         if( status ) return errno;
31563 #endif
31564
31565 #ifdef HAVE_LINUX_THREADS
31566         pthread_kill_other_threads_np();
31567 #endif
31568
31569         return 0;
31570
31571   ;
31572   return 0;
31573 }
31574 _ACEOF
31575 rm -f conftest.$ac_objext conftest$ac_exeext
31576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31577   (eval $ac_link) 2>conftest.er1
31578   ac_status=$?
31579   grep -v '^ *+' conftest.er1 >conftest.err
31580   rm -f conftest.er1
31581   cat conftest.err >&5
31582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583   (exit $ac_status); } &&
31584          { ac_try='test -z "$ac_c_werror_flag"
31585                          || test ! -s conftest.err'
31586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31587   (eval $ac_try) 2>&5
31588   ac_status=$?
31589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31590   (exit $ac_status); }; } &&
31591          { ac_try='test -s conftest$ac_exeext'
31592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31593   (eval $ac_try) 2>&5
31594   ac_status=$?
31595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31596   (exit $ac_status); }; }; then
31597   ol_cv_pthread_thread=yes
31598 else
31599   echo "$as_me: failed program was:" >&5
31600 sed 's/^/| /' conftest.$ac_ext >&5
31601
31602 ol_cv_pthread_thread=no
31603 fi
31604 rm -f conftest.err conftest.$ac_objext \
31605       conftest$ac_exeext conftest.$ac_ext
31606 else
31607   cat >conftest.$ac_ext <<_ACEOF
31608 /* confdefs.h.  */
31609 _ACEOF
31610 cat confdefs.h >>conftest.$ac_ext
31611 cat >>conftest.$ac_ext <<_ACEOF
31612 /* end confdefs.h.  */
31613 /* pthread test headers */
31614 #include <pthread.h>
31615 #if HAVE_PTHREADS < 7
31616 #include <errno.h>
31617 #endif
31618 #ifndef NULL
31619 #define NULL (void*)0
31620 #endif
31621
31622 static void *task(p)
31623         void *p;
31624 {
31625         return (void *) (p == NULL);
31626 }
31627
31628
31629 int main(argc, argv)
31630         int argc;
31631         char **argv;
31632 {
31633
31634         /* pthread test function */
31635 #ifndef PTHREAD_CREATE_DETACHED
31636 #define PTHREAD_CREATE_DETACHED 1
31637 #endif
31638         pthread_t t;
31639         int status;
31640         int detach = PTHREAD_CREATE_DETACHED;
31641
31642 #if HAVE_PTHREADS > 4
31643         /* Final pthreads */
31644         pthread_attr_t attr;
31645
31646         status = pthread_attr_init(&attr);
31647         if( status ) return status;
31648
31649 #if HAVE_PTHREADS < 7
31650         status = pthread_attr_setdetachstate(&attr, &detach);
31651         if( status < 0 ) status = errno;
31652 #else
31653         status = pthread_attr_setdetachstate(&attr, detach);
31654 #endif
31655         if( status ) return status;
31656         status = pthread_create( &t, &attr, task, NULL );
31657 #if HAVE_PTHREADS < 7
31658         if( status < 0 ) status = errno;
31659 #endif
31660         if( status ) return status;
31661 #else
31662         /* Draft 4 pthreads */
31663         status = pthread_create( &t, pthread_attr_default, task, NULL );
31664         if( status ) return errno;
31665
31666         /* give thread a chance to complete */
31667         /* it should remain joinable and hence detachable */
31668         sleep( 1 );
31669
31670         status = pthread_detach( &t );
31671         if( status ) return errno;
31672 #endif
31673
31674 #ifdef HAVE_LINUX_THREADS
31675         pthread_kill_other_threads_np();
31676 #endif
31677
31678         return 0;
31679
31680 }
31681
31682 _ACEOF
31683 rm -f conftest$ac_exeext
31684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31685   (eval $ac_link) 2>&5
31686   ac_status=$?
31687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31690   (eval $ac_try) 2>&5
31691   ac_status=$?
31692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693   (exit $ac_status); }; }; then
31694   ol_cv_pthread_thread=yes
31695 else
31696   echo "$as_me: program exited with status $ac_status" >&5
31697 echo "$as_me: failed program was:" >&5
31698 sed 's/^/| /' conftest.$ac_ext >&5
31699
31700 ( exit $ac_status )
31701 ol_cv_pthread_thread=no
31702 fi
31703 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31704 fi
31705
31706                 # restore the LIBS
31707                 LIBS="$ol_LIBS"
31708
31709 fi
31710 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31711 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31712
31713         if test $ol_cv_pthread_thread = yes ; then
31714                 ol_link_pthreads="-thread"
31715                 ol_link_threads=posix
31716         fi
31717 fi
31718
31719
31720                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
31721 if test "$ol_link_threads" = no ; then
31722         # try -lpthread -lmach -lexc -lc_r
31723         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
31724 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
31725 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
31726   echo $ECHO_N "(cached) $ECHO_C" >&6
31727 else
31728
31729                 # save the flags
31730                 ol_LIBS="$LIBS"
31731                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
31732
31733                 if test "$cross_compiling" = yes; then
31734   cat >conftest.$ac_ext <<_ACEOF
31735 /* confdefs.h.  */
31736 _ACEOF
31737 cat confdefs.h >>conftest.$ac_ext
31738 cat >>conftest.$ac_ext <<_ACEOF
31739 /* end confdefs.h.  */
31740 /* pthread test headers */
31741 #include <pthread.h>
31742 #if HAVE_PTHREADS < 7
31743 #include <errno.h>
31744 #endif
31745 #ifndef NULL
31746 #define NULL (void*)0
31747 #endif
31748
31749 static void *task(p)
31750         void *p;
31751 {
31752         return (void *) (p == NULL);
31753 }
31754
31755 int
31756 main ()
31757 {
31758
31759         /* pthread test function */
31760 #ifndef PTHREAD_CREATE_DETACHED
31761 #define PTHREAD_CREATE_DETACHED 1
31762 #endif
31763         pthread_t t;
31764         int status;
31765         int detach = PTHREAD_CREATE_DETACHED;
31766
31767 #if HAVE_PTHREADS > 4
31768         /* Final pthreads */
31769         pthread_attr_t attr;
31770
31771         status = pthread_attr_init(&attr);
31772         if( status ) return status;
31773
31774 #if HAVE_PTHREADS < 7
31775         status = pthread_attr_setdetachstate(&attr, &detach);
31776         if( status < 0 ) status = errno;
31777 #else
31778         status = pthread_attr_setdetachstate(&attr, detach);
31779 #endif
31780         if( status ) return status;
31781         status = pthread_create( &t, &attr, task, NULL );
31782 #if HAVE_PTHREADS < 7
31783         if( status < 0 ) status = errno;
31784 #endif
31785         if( status ) return status;
31786 #else
31787         /* Draft 4 pthreads */
31788         status = pthread_create( &t, pthread_attr_default, task, NULL );
31789         if( status ) return errno;
31790
31791         /* give thread a chance to complete */
31792         /* it should remain joinable and hence detachable */
31793         sleep( 1 );
31794
31795         status = pthread_detach( &t );
31796         if( status ) return errno;
31797 #endif
31798
31799 #ifdef HAVE_LINUX_THREADS
31800         pthread_kill_other_threads_np();
31801 #endif
31802
31803         return 0;
31804
31805   ;
31806   return 0;
31807 }
31808 _ACEOF
31809 rm -f conftest.$ac_objext conftest$ac_exeext
31810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31811   (eval $ac_link) 2>conftest.er1
31812   ac_status=$?
31813   grep -v '^ *+' conftest.er1 >conftest.err
31814   rm -f conftest.er1
31815   cat conftest.err >&5
31816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31817   (exit $ac_status); } &&
31818          { ac_try='test -z "$ac_c_werror_flag"
31819                          || test ! -s conftest.err'
31820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31821   (eval $ac_try) 2>&5
31822   ac_status=$?
31823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31824   (exit $ac_status); }; } &&
31825          { ac_try='test -s conftest$ac_exeext'
31826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31827   (eval $ac_try) 2>&5
31828   ac_status=$?
31829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830   (exit $ac_status); }; }; then
31831   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31832 else
31833   echo "$as_me: failed program was:" >&5
31834 sed 's/^/| /' conftest.$ac_ext >&5
31835
31836 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31837 fi
31838 rm -f conftest.err conftest.$ac_objext \
31839       conftest$ac_exeext conftest.$ac_ext
31840 else
31841   cat >conftest.$ac_ext <<_ACEOF
31842 /* confdefs.h.  */
31843 _ACEOF
31844 cat confdefs.h >>conftest.$ac_ext
31845 cat >>conftest.$ac_ext <<_ACEOF
31846 /* end confdefs.h.  */
31847 /* pthread test headers */
31848 #include <pthread.h>
31849 #if HAVE_PTHREADS < 7
31850 #include <errno.h>
31851 #endif
31852 #ifndef NULL
31853 #define NULL (void*)0
31854 #endif
31855
31856 static void *task(p)
31857         void *p;
31858 {
31859         return (void *) (p == NULL);
31860 }
31861
31862
31863 int main(argc, argv)
31864         int argc;
31865         char **argv;
31866 {
31867
31868         /* pthread test function */
31869 #ifndef PTHREAD_CREATE_DETACHED
31870 #define PTHREAD_CREATE_DETACHED 1
31871 #endif
31872         pthread_t t;
31873         int status;
31874         int detach = PTHREAD_CREATE_DETACHED;
31875
31876 #if HAVE_PTHREADS > 4
31877         /* Final pthreads */
31878         pthread_attr_t attr;
31879
31880         status = pthread_attr_init(&attr);
31881         if( status ) return status;
31882
31883 #if HAVE_PTHREADS < 7
31884         status = pthread_attr_setdetachstate(&attr, &detach);
31885         if( status < 0 ) status = errno;
31886 #else
31887         status = pthread_attr_setdetachstate(&attr, detach);
31888 #endif
31889         if( status ) return status;
31890         status = pthread_create( &t, &attr, task, NULL );
31891 #if HAVE_PTHREADS < 7
31892         if( status < 0 ) status = errno;
31893 #endif
31894         if( status ) return status;
31895 #else
31896         /* Draft 4 pthreads */
31897         status = pthread_create( &t, pthread_attr_default, task, NULL );
31898         if( status ) return errno;
31899
31900         /* give thread a chance to complete */
31901         /* it should remain joinable and hence detachable */
31902         sleep( 1 );
31903
31904         status = pthread_detach( &t );
31905         if( status ) return errno;
31906 #endif
31907
31908 #ifdef HAVE_LINUX_THREADS
31909         pthread_kill_other_threads_np();
31910 #endif
31911
31912         return 0;
31913
31914 }
31915
31916 _ACEOF
31917 rm -f conftest$ac_exeext
31918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31919   (eval $ac_link) 2>&5
31920   ac_status=$?
31921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31922   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31924   (eval $ac_try) 2>&5
31925   ac_status=$?
31926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31927   (exit $ac_status); }; }; then
31928   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31929 else
31930   echo "$as_me: program exited with status $ac_status" >&5
31931 echo "$as_me: failed program was:" >&5
31932 sed 's/^/| /' conftest.$ac_ext >&5
31933
31934 ( exit $ac_status )
31935 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31936 fi
31937 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31938 fi
31939
31940                 # restore the LIBS
31941                 LIBS="$ol_LIBS"
31942
31943 fi
31944 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
31945 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
31946
31947         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
31948                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
31949                 ol_link_threads=posix
31950         fi
31951 fi
31952
31953                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
31954 if test "$ol_link_threads" = no ; then
31955         # try -lpthread -lmach -lexc
31956         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
31957 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
31958 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
31959   echo $ECHO_N "(cached) $ECHO_C" >&6
31960 else
31961
31962                 # save the flags
31963                 ol_LIBS="$LIBS"
31964                 LIBS="-lpthread -lmach -lexc $LIBS"
31965
31966                 if test "$cross_compiling" = yes; then
31967   cat >conftest.$ac_ext <<_ACEOF
31968 /* confdefs.h.  */
31969 _ACEOF
31970 cat confdefs.h >>conftest.$ac_ext
31971 cat >>conftest.$ac_ext <<_ACEOF
31972 /* end confdefs.h.  */
31973 /* pthread test headers */
31974 #include <pthread.h>
31975 #if HAVE_PTHREADS < 7
31976 #include <errno.h>
31977 #endif
31978 #ifndef NULL
31979 #define NULL (void*)0
31980 #endif
31981
31982 static void *task(p)
31983         void *p;
31984 {
31985         return (void *) (p == NULL);
31986 }
31987
31988 int
31989 main ()
31990 {
31991
31992         /* pthread test function */
31993 #ifndef PTHREAD_CREATE_DETACHED
31994 #define PTHREAD_CREATE_DETACHED 1
31995 #endif
31996         pthread_t t;
31997         int status;
31998         int detach = PTHREAD_CREATE_DETACHED;
31999
32000 #if HAVE_PTHREADS > 4
32001         /* Final pthreads */
32002         pthread_attr_t attr;
32003
32004         status = pthread_attr_init(&attr);
32005         if( status ) return status;
32006
32007 #if HAVE_PTHREADS < 7
32008         status = pthread_attr_setdetachstate(&attr, &detach);
32009         if( status < 0 ) status = errno;
32010 #else
32011         status = pthread_attr_setdetachstate(&attr, detach);
32012 #endif
32013         if( status ) return status;
32014         status = pthread_create( &t, &attr, task, NULL );
32015 #if HAVE_PTHREADS < 7
32016         if( status < 0 ) status = errno;
32017 #endif
32018         if( status ) return status;
32019 #else
32020         /* Draft 4 pthreads */
32021         status = pthread_create( &t, pthread_attr_default, task, NULL );
32022         if( status ) return errno;
32023
32024         /* give thread a chance to complete */
32025         /* it should remain joinable and hence detachable */
32026         sleep( 1 );
32027
32028         status = pthread_detach( &t );
32029         if( status ) return errno;
32030 #endif
32031
32032 #ifdef HAVE_LINUX_THREADS
32033         pthread_kill_other_threads_np();
32034 #endif
32035
32036         return 0;
32037
32038   ;
32039   return 0;
32040 }
32041 _ACEOF
32042 rm -f conftest.$ac_objext conftest$ac_exeext
32043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32044   (eval $ac_link) 2>conftest.er1
32045   ac_status=$?
32046   grep -v '^ *+' conftest.er1 >conftest.err
32047   rm -f conftest.er1
32048   cat conftest.err >&5
32049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32050   (exit $ac_status); } &&
32051          { ac_try='test -z "$ac_c_werror_flag"
32052                          || test ! -s conftest.err'
32053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32054   (eval $ac_try) 2>&5
32055   ac_status=$?
32056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32057   (exit $ac_status); }; } &&
32058          { ac_try='test -s conftest$ac_exeext'
32059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32060   (eval $ac_try) 2>&5
32061   ac_status=$?
32062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063   (exit $ac_status); }; }; then
32064   ol_cv_pthread_lpthread_lmach_lexc=yes
32065 else
32066   echo "$as_me: failed program was:" >&5
32067 sed 's/^/| /' conftest.$ac_ext >&5
32068
32069 ol_cv_pthread_lpthread_lmach_lexc=no
32070 fi
32071 rm -f conftest.err conftest.$ac_objext \
32072       conftest$ac_exeext conftest.$ac_ext
32073 else
32074   cat >conftest.$ac_ext <<_ACEOF
32075 /* confdefs.h.  */
32076 _ACEOF
32077 cat confdefs.h >>conftest.$ac_ext
32078 cat >>conftest.$ac_ext <<_ACEOF
32079 /* end confdefs.h.  */
32080 /* pthread test headers */
32081 #include <pthread.h>
32082 #if HAVE_PTHREADS < 7
32083 #include <errno.h>
32084 #endif
32085 #ifndef NULL
32086 #define NULL (void*)0
32087 #endif
32088
32089 static void *task(p)
32090         void *p;
32091 {
32092         return (void *) (p == NULL);
32093 }
32094
32095
32096 int main(argc, argv)
32097         int argc;
32098         char **argv;
32099 {
32100
32101         /* pthread test function */
32102 #ifndef PTHREAD_CREATE_DETACHED
32103 #define PTHREAD_CREATE_DETACHED 1
32104 #endif
32105         pthread_t t;
32106         int status;
32107         int detach = PTHREAD_CREATE_DETACHED;
32108
32109 #if HAVE_PTHREADS > 4
32110         /* Final pthreads */
32111         pthread_attr_t attr;
32112
32113         status = pthread_attr_init(&attr);
32114         if( status ) return status;
32115
32116 #if HAVE_PTHREADS < 7
32117         status = pthread_attr_setdetachstate(&attr, &detach);
32118         if( status < 0 ) status = errno;
32119 #else
32120         status = pthread_attr_setdetachstate(&attr, detach);
32121 #endif
32122         if( status ) return status;
32123         status = pthread_create( &t, &attr, task, NULL );
32124 #if HAVE_PTHREADS < 7
32125         if( status < 0 ) status = errno;
32126 #endif
32127         if( status ) return status;
32128 #else
32129         /* Draft 4 pthreads */
32130         status = pthread_create( &t, pthread_attr_default, task, NULL );
32131         if( status ) return errno;
32132
32133         /* give thread a chance to complete */
32134         /* it should remain joinable and hence detachable */
32135         sleep( 1 );
32136
32137         status = pthread_detach( &t );
32138         if( status ) return errno;
32139 #endif
32140
32141 #ifdef HAVE_LINUX_THREADS
32142         pthread_kill_other_threads_np();
32143 #endif
32144
32145         return 0;
32146
32147 }
32148
32149 _ACEOF
32150 rm -f conftest$ac_exeext
32151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32152   (eval $ac_link) 2>&5
32153   ac_status=$?
32154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32157   (eval $ac_try) 2>&5
32158   ac_status=$?
32159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32160   (exit $ac_status); }; }; then
32161   ol_cv_pthread_lpthread_lmach_lexc=yes
32162 else
32163   echo "$as_me: program exited with status $ac_status" >&5
32164 echo "$as_me: failed program was:" >&5
32165 sed 's/^/| /' conftest.$ac_ext >&5
32166
32167 ( exit $ac_status )
32168 ol_cv_pthread_lpthread_lmach_lexc=no
32169 fi
32170 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32171 fi
32172
32173                 # restore the LIBS
32174                 LIBS="$ol_LIBS"
32175
32176 fi
32177 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32178 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32179
32180         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32181                 ol_link_pthreads="-lpthread -lmach -lexc"
32182                 ol_link_threads=posix
32183         fi
32184 fi
32185
32186
32187                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32188 if test "$ol_link_threads" = no ; then
32189         # try -lpthread -Wl,-woff,85
32190         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32191 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32192 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32193   echo $ECHO_N "(cached) $ECHO_C" >&6
32194 else
32195
32196                 # save the flags
32197                 ol_LIBS="$LIBS"
32198                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32199
32200                 if test "$cross_compiling" = yes; then
32201   cat >conftest.$ac_ext <<_ACEOF
32202 /* confdefs.h.  */
32203 _ACEOF
32204 cat confdefs.h >>conftest.$ac_ext
32205 cat >>conftest.$ac_ext <<_ACEOF
32206 /* end confdefs.h.  */
32207 /* pthread test headers */
32208 #include <pthread.h>
32209 #if HAVE_PTHREADS < 7
32210 #include <errno.h>
32211 #endif
32212 #ifndef NULL
32213 #define NULL (void*)0
32214 #endif
32215
32216 static void *task(p)
32217         void *p;
32218 {
32219         return (void *) (p == NULL);
32220 }
32221
32222 int
32223 main ()
32224 {
32225
32226         /* pthread test function */
32227 #ifndef PTHREAD_CREATE_DETACHED
32228 #define PTHREAD_CREATE_DETACHED 1
32229 #endif
32230         pthread_t t;
32231         int status;
32232         int detach = PTHREAD_CREATE_DETACHED;
32233
32234 #if HAVE_PTHREADS > 4
32235         /* Final pthreads */
32236         pthread_attr_t attr;
32237
32238         status = pthread_attr_init(&attr);
32239         if( status ) return status;
32240
32241 #if HAVE_PTHREADS < 7
32242         status = pthread_attr_setdetachstate(&attr, &detach);
32243         if( status < 0 ) status = errno;
32244 #else
32245         status = pthread_attr_setdetachstate(&attr, detach);
32246 #endif
32247         if( status ) return status;
32248         status = pthread_create( &t, &attr, task, NULL );
32249 #if HAVE_PTHREADS < 7
32250         if( status < 0 ) status = errno;
32251 #endif
32252         if( status ) return status;
32253 #else
32254         /* Draft 4 pthreads */
32255         status = pthread_create( &t, pthread_attr_default, task, NULL );
32256         if( status ) return errno;
32257
32258         /* give thread a chance to complete */
32259         /* it should remain joinable and hence detachable */
32260         sleep( 1 );
32261
32262         status = pthread_detach( &t );
32263         if( status ) return errno;
32264 #endif
32265
32266 #ifdef HAVE_LINUX_THREADS
32267         pthread_kill_other_threads_np();
32268 #endif
32269
32270         return 0;
32271
32272   ;
32273   return 0;
32274 }
32275 _ACEOF
32276 rm -f conftest.$ac_objext conftest$ac_exeext
32277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32278   (eval $ac_link) 2>conftest.er1
32279   ac_status=$?
32280   grep -v '^ *+' conftest.er1 >conftest.err
32281   rm -f conftest.er1
32282   cat conftest.err >&5
32283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284   (exit $ac_status); } &&
32285          { ac_try='test -z "$ac_c_werror_flag"
32286                          || test ! -s conftest.err'
32287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32288   (eval $ac_try) 2>&5
32289   ac_status=$?
32290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291   (exit $ac_status); }; } &&
32292          { ac_try='test -s conftest$ac_exeext'
32293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32294   (eval $ac_try) 2>&5
32295   ac_status=$?
32296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32297   (exit $ac_status); }; }; then
32298   ol_cv_pthread_lib_lpthread_woff=yes
32299 else
32300   echo "$as_me: failed program was:" >&5
32301 sed 's/^/| /' conftest.$ac_ext >&5
32302
32303 ol_cv_pthread_lib_lpthread_woff=no
32304 fi
32305 rm -f conftest.err conftest.$ac_objext \
32306       conftest$ac_exeext conftest.$ac_ext
32307 else
32308   cat >conftest.$ac_ext <<_ACEOF
32309 /* confdefs.h.  */
32310 _ACEOF
32311 cat confdefs.h >>conftest.$ac_ext
32312 cat >>conftest.$ac_ext <<_ACEOF
32313 /* end confdefs.h.  */
32314 /* pthread test headers */
32315 #include <pthread.h>
32316 #if HAVE_PTHREADS < 7
32317 #include <errno.h>
32318 #endif
32319 #ifndef NULL
32320 #define NULL (void*)0
32321 #endif
32322
32323 static void *task(p)
32324         void *p;
32325 {
32326         return (void *) (p == NULL);
32327 }
32328
32329
32330 int main(argc, argv)
32331         int argc;
32332         char **argv;
32333 {
32334
32335         /* pthread test function */
32336 #ifndef PTHREAD_CREATE_DETACHED
32337 #define PTHREAD_CREATE_DETACHED 1
32338 #endif
32339         pthread_t t;
32340         int status;
32341         int detach = PTHREAD_CREATE_DETACHED;
32342
32343 #if HAVE_PTHREADS > 4
32344         /* Final pthreads */
32345         pthread_attr_t attr;
32346
32347         status = pthread_attr_init(&attr);
32348         if( status ) return status;
32349
32350 #if HAVE_PTHREADS < 7
32351         status = pthread_attr_setdetachstate(&attr, &detach);
32352         if( status < 0 ) status = errno;
32353 #else
32354         status = pthread_attr_setdetachstate(&attr, detach);
32355 #endif
32356         if( status ) return status;
32357         status = pthread_create( &t, &attr, task, NULL );
32358 #if HAVE_PTHREADS < 7
32359         if( status < 0 ) status = errno;
32360 #endif
32361         if( status ) return status;
32362 #else
32363         /* Draft 4 pthreads */
32364         status = pthread_create( &t, pthread_attr_default, task, NULL );
32365         if( status ) return errno;
32366
32367         /* give thread a chance to complete */
32368         /* it should remain joinable and hence detachable */
32369         sleep( 1 );
32370
32371         status = pthread_detach( &t );
32372         if( status ) return errno;
32373 #endif
32374
32375 #ifdef HAVE_LINUX_THREADS
32376         pthread_kill_other_threads_np();
32377 #endif
32378
32379         return 0;
32380
32381 }
32382
32383 _ACEOF
32384 rm -f conftest$ac_exeext
32385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32386   (eval $ac_link) 2>&5
32387   ac_status=$?
32388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32391   (eval $ac_try) 2>&5
32392   ac_status=$?
32393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394   (exit $ac_status); }; }; then
32395   ol_cv_pthread_lib_lpthread_woff=yes
32396 else
32397   echo "$as_me: program exited with status $ac_status" >&5
32398 echo "$as_me: failed program was:" >&5
32399 sed 's/^/| /' conftest.$ac_ext >&5
32400
32401 ( exit $ac_status )
32402 ol_cv_pthread_lib_lpthread_woff=no
32403 fi
32404 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32405 fi
32406
32407                 # restore the LIBS
32408                 LIBS="$ol_LIBS"
32409
32410 fi
32411 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32412 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32413
32414         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32415                 ol_link_pthreads="-lpthread -Wl,-woff,85"
32416                 ol_link_threads=posix
32417         fi
32418 fi
32419
32420
32421                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32422 if test "$ol_link_threads" = no ; then
32423         # try -lpthread
32424         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32425 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32426 if test "${ol_cv_pthread_lpthread+set}" = set; then
32427   echo $ECHO_N "(cached) $ECHO_C" >&6
32428 else
32429
32430                 # save the flags
32431                 ol_LIBS="$LIBS"
32432                 LIBS="-lpthread $LIBS"
32433
32434                 if test "$cross_compiling" = yes; then
32435   cat >conftest.$ac_ext <<_ACEOF
32436 /* confdefs.h.  */
32437 _ACEOF
32438 cat confdefs.h >>conftest.$ac_ext
32439 cat >>conftest.$ac_ext <<_ACEOF
32440 /* end confdefs.h.  */
32441 /* pthread test headers */
32442 #include <pthread.h>
32443 #if HAVE_PTHREADS < 7
32444 #include <errno.h>
32445 #endif
32446 #ifndef NULL
32447 #define NULL (void*)0
32448 #endif
32449
32450 static void *task(p)
32451         void *p;
32452 {
32453         return (void *) (p == NULL);
32454 }
32455
32456 int
32457 main ()
32458 {
32459
32460         /* pthread test function */
32461 #ifndef PTHREAD_CREATE_DETACHED
32462 #define PTHREAD_CREATE_DETACHED 1
32463 #endif
32464         pthread_t t;
32465         int status;
32466         int detach = PTHREAD_CREATE_DETACHED;
32467
32468 #if HAVE_PTHREADS > 4
32469         /* Final pthreads */
32470         pthread_attr_t attr;
32471
32472         status = pthread_attr_init(&attr);
32473         if( status ) return status;
32474
32475 #if HAVE_PTHREADS < 7
32476         status = pthread_attr_setdetachstate(&attr, &detach);
32477         if( status < 0 ) status = errno;
32478 #else
32479         status = pthread_attr_setdetachstate(&attr, detach);
32480 #endif
32481         if( status ) return status;
32482         status = pthread_create( &t, &attr, task, NULL );
32483 #if HAVE_PTHREADS < 7
32484         if( status < 0 ) status = errno;
32485 #endif
32486         if( status ) return status;
32487 #else
32488         /* Draft 4 pthreads */
32489         status = pthread_create( &t, pthread_attr_default, task, NULL );
32490         if( status ) return errno;
32491
32492         /* give thread a chance to complete */
32493         /* it should remain joinable and hence detachable */
32494         sleep( 1 );
32495
32496         status = pthread_detach( &t );
32497         if( status ) return errno;
32498 #endif
32499
32500 #ifdef HAVE_LINUX_THREADS
32501         pthread_kill_other_threads_np();
32502 #endif
32503
32504         return 0;
32505
32506   ;
32507   return 0;
32508 }
32509 _ACEOF
32510 rm -f conftest.$ac_objext conftest$ac_exeext
32511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32512   (eval $ac_link) 2>conftest.er1
32513   ac_status=$?
32514   grep -v '^ *+' conftest.er1 >conftest.err
32515   rm -f conftest.er1
32516   cat conftest.err >&5
32517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518   (exit $ac_status); } &&
32519          { ac_try='test -z "$ac_c_werror_flag"
32520                          || test ! -s conftest.err'
32521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32522   (eval $ac_try) 2>&5
32523   ac_status=$?
32524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525   (exit $ac_status); }; } &&
32526          { ac_try='test -s conftest$ac_exeext'
32527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32528   (eval $ac_try) 2>&5
32529   ac_status=$?
32530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32531   (exit $ac_status); }; }; then
32532   ol_cv_pthread_lpthread=yes
32533 else
32534   echo "$as_me: failed program was:" >&5
32535 sed 's/^/| /' conftest.$ac_ext >&5
32536
32537 ol_cv_pthread_lpthread=no
32538 fi
32539 rm -f conftest.err conftest.$ac_objext \
32540       conftest$ac_exeext conftest.$ac_ext
32541 else
32542   cat >conftest.$ac_ext <<_ACEOF
32543 /* confdefs.h.  */
32544 _ACEOF
32545 cat confdefs.h >>conftest.$ac_ext
32546 cat >>conftest.$ac_ext <<_ACEOF
32547 /* end confdefs.h.  */
32548 /* pthread test headers */
32549 #include <pthread.h>
32550 #if HAVE_PTHREADS < 7
32551 #include <errno.h>
32552 #endif
32553 #ifndef NULL
32554 #define NULL (void*)0
32555 #endif
32556
32557 static void *task(p)
32558         void *p;
32559 {
32560         return (void *) (p == NULL);
32561 }
32562
32563
32564 int main(argc, argv)
32565         int argc;
32566         char **argv;
32567 {
32568
32569         /* pthread test function */
32570 #ifndef PTHREAD_CREATE_DETACHED
32571 #define PTHREAD_CREATE_DETACHED 1
32572 #endif
32573         pthread_t t;
32574         int status;
32575         int detach = PTHREAD_CREATE_DETACHED;
32576
32577 #if HAVE_PTHREADS > 4
32578         /* Final pthreads */
32579         pthread_attr_t attr;
32580
32581         status = pthread_attr_init(&attr);
32582         if( status ) return status;
32583
32584 #if HAVE_PTHREADS < 7
32585         status = pthread_attr_setdetachstate(&attr, &detach);
32586         if( status < 0 ) status = errno;
32587 #else
32588         status = pthread_attr_setdetachstate(&attr, detach);
32589 #endif
32590         if( status ) return status;
32591         status = pthread_create( &t, &attr, task, NULL );
32592 #if HAVE_PTHREADS < 7
32593         if( status < 0 ) status = errno;
32594 #endif
32595         if( status ) return status;
32596 #else
32597         /* Draft 4 pthreads */
32598         status = pthread_create( &t, pthread_attr_default, task, NULL );
32599         if( status ) return errno;
32600
32601         /* give thread a chance to complete */
32602         /* it should remain joinable and hence detachable */
32603         sleep( 1 );
32604
32605         status = pthread_detach( &t );
32606         if( status ) return errno;
32607 #endif
32608
32609 #ifdef HAVE_LINUX_THREADS
32610         pthread_kill_other_threads_np();
32611 #endif
32612
32613         return 0;
32614
32615 }
32616
32617 _ACEOF
32618 rm -f conftest$ac_exeext
32619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32620   (eval $ac_link) 2>&5
32621   ac_status=$?
32622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32625   (eval $ac_try) 2>&5
32626   ac_status=$?
32627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32628   (exit $ac_status); }; }; then
32629   ol_cv_pthread_lpthread=yes
32630 else
32631   echo "$as_me: program exited with status $ac_status" >&5
32632 echo "$as_me: failed program was:" >&5
32633 sed 's/^/| /' conftest.$ac_ext >&5
32634
32635 ( exit $ac_status )
32636 ol_cv_pthread_lpthread=no
32637 fi
32638 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32639 fi
32640
32641                 # restore the LIBS
32642                 LIBS="$ol_LIBS"
32643
32644 fi
32645 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32646 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32647
32648         if test $ol_cv_pthread_lpthread = yes ; then
32649                 ol_link_pthreads="-lpthread"
32650                 ol_link_threads=posix
32651         fi
32652 fi
32653
32654                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32655 if test "$ol_link_threads" = no ; then
32656         # try -lc_r
32657         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32658 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32659 if test "${ol_cv_pthread_lc_r+set}" = set; then
32660   echo $ECHO_N "(cached) $ECHO_C" >&6
32661 else
32662
32663                 # save the flags
32664                 ol_LIBS="$LIBS"
32665                 LIBS="-lc_r $LIBS"
32666
32667                 if test "$cross_compiling" = yes; then
32668   cat >conftest.$ac_ext <<_ACEOF
32669 /* confdefs.h.  */
32670 _ACEOF
32671 cat confdefs.h >>conftest.$ac_ext
32672 cat >>conftest.$ac_ext <<_ACEOF
32673 /* end confdefs.h.  */
32674 /* pthread test headers */
32675 #include <pthread.h>
32676 #if HAVE_PTHREADS < 7
32677 #include <errno.h>
32678 #endif
32679 #ifndef NULL
32680 #define NULL (void*)0
32681 #endif
32682
32683 static void *task(p)
32684         void *p;
32685 {
32686         return (void *) (p == NULL);
32687 }
32688
32689 int
32690 main ()
32691 {
32692
32693         /* pthread test function */
32694 #ifndef PTHREAD_CREATE_DETACHED
32695 #define PTHREAD_CREATE_DETACHED 1
32696 #endif
32697         pthread_t t;
32698         int status;
32699         int detach = PTHREAD_CREATE_DETACHED;
32700
32701 #if HAVE_PTHREADS > 4
32702         /* Final pthreads */
32703         pthread_attr_t attr;
32704
32705         status = pthread_attr_init(&attr);
32706         if( status ) return status;
32707
32708 #if HAVE_PTHREADS < 7
32709         status = pthread_attr_setdetachstate(&attr, &detach);
32710         if( status < 0 ) status = errno;
32711 #else
32712         status = pthread_attr_setdetachstate(&attr, detach);
32713 #endif
32714         if( status ) return status;
32715         status = pthread_create( &t, &attr, task, NULL );
32716 #if HAVE_PTHREADS < 7
32717         if( status < 0 ) status = errno;
32718 #endif
32719         if( status ) return status;
32720 #else
32721         /* Draft 4 pthreads */
32722         status = pthread_create( &t, pthread_attr_default, task, NULL );
32723         if( status ) return errno;
32724
32725         /* give thread a chance to complete */
32726         /* it should remain joinable and hence detachable */
32727         sleep( 1 );
32728
32729         status = pthread_detach( &t );
32730         if( status ) return errno;
32731 #endif
32732
32733 #ifdef HAVE_LINUX_THREADS
32734         pthread_kill_other_threads_np();
32735 #endif
32736
32737         return 0;
32738
32739   ;
32740   return 0;
32741 }
32742 _ACEOF
32743 rm -f conftest.$ac_objext conftest$ac_exeext
32744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32745   (eval $ac_link) 2>conftest.er1
32746   ac_status=$?
32747   grep -v '^ *+' conftest.er1 >conftest.err
32748   rm -f conftest.er1
32749   cat conftest.err >&5
32750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32751   (exit $ac_status); } &&
32752          { ac_try='test -z "$ac_c_werror_flag"
32753                          || test ! -s conftest.err'
32754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32755   (eval $ac_try) 2>&5
32756   ac_status=$?
32757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32758   (exit $ac_status); }; } &&
32759          { ac_try='test -s conftest$ac_exeext'
32760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32761   (eval $ac_try) 2>&5
32762   ac_status=$?
32763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764   (exit $ac_status); }; }; then
32765   ol_cv_pthread_lc_r=yes
32766 else
32767   echo "$as_me: failed program was:" >&5
32768 sed 's/^/| /' conftest.$ac_ext >&5
32769
32770 ol_cv_pthread_lc_r=no
32771 fi
32772 rm -f conftest.err conftest.$ac_objext \
32773       conftest$ac_exeext conftest.$ac_ext
32774 else
32775   cat >conftest.$ac_ext <<_ACEOF
32776 /* confdefs.h.  */
32777 _ACEOF
32778 cat confdefs.h >>conftest.$ac_ext
32779 cat >>conftest.$ac_ext <<_ACEOF
32780 /* end confdefs.h.  */
32781 /* pthread test headers */
32782 #include <pthread.h>
32783 #if HAVE_PTHREADS < 7
32784 #include <errno.h>
32785 #endif
32786 #ifndef NULL
32787 #define NULL (void*)0
32788 #endif
32789
32790 static void *task(p)
32791         void *p;
32792 {
32793         return (void *) (p == NULL);
32794 }
32795
32796
32797 int main(argc, argv)
32798         int argc;
32799         char **argv;
32800 {
32801
32802         /* pthread test function */
32803 #ifndef PTHREAD_CREATE_DETACHED
32804 #define PTHREAD_CREATE_DETACHED 1
32805 #endif
32806         pthread_t t;
32807         int status;
32808         int detach = PTHREAD_CREATE_DETACHED;
32809
32810 #if HAVE_PTHREADS > 4
32811         /* Final pthreads */
32812         pthread_attr_t attr;
32813
32814         status = pthread_attr_init(&attr);
32815         if( status ) return status;
32816
32817 #if HAVE_PTHREADS < 7
32818         status = pthread_attr_setdetachstate(&attr, &detach);
32819         if( status < 0 ) status = errno;
32820 #else
32821         status = pthread_attr_setdetachstate(&attr, detach);
32822 #endif
32823         if( status ) return status;
32824         status = pthread_create( &t, &attr, task, NULL );
32825 #if HAVE_PTHREADS < 7
32826         if( status < 0 ) status = errno;
32827 #endif
32828         if( status ) return status;
32829 #else
32830         /* Draft 4 pthreads */
32831         status = pthread_create( &t, pthread_attr_default, task, NULL );
32832         if( status ) return errno;
32833
32834         /* give thread a chance to complete */
32835         /* it should remain joinable and hence detachable */
32836         sleep( 1 );
32837
32838         status = pthread_detach( &t );
32839         if( status ) return errno;
32840 #endif
32841
32842 #ifdef HAVE_LINUX_THREADS
32843         pthread_kill_other_threads_np();
32844 #endif
32845
32846         return 0;
32847
32848 }
32849
32850 _ACEOF
32851 rm -f conftest$ac_exeext
32852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32853   (eval $ac_link) 2>&5
32854   ac_status=$?
32855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32856   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32858   (eval $ac_try) 2>&5
32859   ac_status=$?
32860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861   (exit $ac_status); }; }; then
32862   ol_cv_pthread_lc_r=yes
32863 else
32864   echo "$as_me: program exited with status $ac_status" >&5
32865 echo "$as_me: failed program was:" >&5
32866 sed 's/^/| /' conftest.$ac_ext >&5
32867
32868 ( exit $ac_status )
32869 ol_cv_pthread_lc_r=no
32870 fi
32871 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32872 fi
32873
32874                 # restore the LIBS
32875                 LIBS="$ol_LIBS"
32876
32877 fi
32878 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
32879 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
32880
32881         if test $ol_cv_pthread_lc_r = yes ; then
32882                 ol_link_pthreads="-lc_r"
32883                 ol_link_threads=posix
32884         fi
32885 fi
32886
32887
32888                 # Pthread try link: -threads (ol_cv_pthread_threads)
32889 if test "$ol_link_threads" = no ; then
32890         # try -threads
32891         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
32892 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
32893 if test "${ol_cv_pthread_threads+set}" = set; then
32894   echo $ECHO_N "(cached) $ECHO_C" >&6
32895 else
32896
32897                 # save the flags
32898                 ol_LIBS="$LIBS"
32899                 LIBS="-threads $LIBS"
32900
32901                 if test "$cross_compiling" = yes; then
32902   cat >conftest.$ac_ext <<_ACEOF
32903 /* confdefs.h.  */
32904 _ACEOF
32905 cat confdefs.h >>conftest.$ac_ext
32906 cat >>conftest.$ac_ext <<_ACEOF
32907 /* end confdefs.h.  */
32908 /* pthread test headers */
32909 #include <pthread.h>
32910 #if HAVE_PTHREADS < 7
32911 #include <errno.h>
32912 #endif
32913 #ifndef NULL
32914 #define NULL (void*)0
32915 #endif
32916
32917 static void *task(p)
32918         void *p;
32919 {
32920         return (void *) (p == NULL);
32921 }
32922
32923 int
32924 main ()
32925 {
32926
32927         /* pthread test function */
32928 #ifndef PTHREAD_CREATE_DETACHED
32929 #define PTHREAD_CREATE_DETACHED 1
32930 #endif
32931         pthread_t t;
32932         int status;
32933         int detach = PTHREAD_CREATE_DETACHED;
32934
32935 #if HAVE_PTHREADS > 4
32936         /* Final pthreads */
32937         pthread_attr_t attr;
32938
32939         status = pthread_attr_init(&attr);
32940         if( status ) return status;
32941
32942 #if HAVE_PTHREADS < 7
32943         status = pthread_attr_setdetachstate(&attr, &detach);
32944         if( status < 0 ) status = errno;
32945 #else
32946         status = pthread_attr_setdetachstate(&attr, detach);
32947 #endif
32948         if( status ) return status;
32949         status = pthread_create( &t, &attr, task, NULL );
32950 #if HAVE_PTHREADS < 7
32951         if( status < 0 ) status = errno;
32952 #endif
32953         if( status ) return status;
32954 #else
32955         /* Draft 4 pthreads */
32956         status = pthread_create( &t, pthread_attr_default, task, NULL );
32957         if( status ) return errno;
32958
32959         /* give thread a chance to complete */
32960         /* it should remain joinable and hence detachable */
32961         sleep( 1 );
32962
32963         status = pthread_detach( &t );
32964         if( status ) return errno;
32965 #endif
32966
32967 #ifdef HAVE_LINUX_THREADS
32968         pthread_kill_other_threads_np();
32969 #endif
32970
32971         return 0;
32972
32973   ;
32974   return 0;
32975 }
32976 _ACEOF
32977 rm -f conftest.$ac_objext conftest$ac_exeext
32978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32979   (eval $ac_link) 2>conftest.er1
32980   ac_status=$?
32981   grep -v '^ *+' conftest.er1 >conftest.err
32982   rm -f conftest.er1
32983   cat conftest.err >&5
32984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985   (exit $ac_status); } &&
32986          { ac_try='test -z "$ac_c_werror_flag"
32987                          || test ! -s conftest.err'
32988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32989   (eval $ac_try) 2>&5
32990   ac_status=$?
32991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992   (exit $ac_status); }; } &&
32993          { ac_try='test -s conftest$ac_exeext'
32994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32995   (eval $ac_try) 2>&5
32996   ac_status=$?
32997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32998   (exit $ac_status); }; }; then
32999   ol_cv_pthread_threads=yes
33000 else
33001   echo "$as_me: failed program was:" >&5
33002 sed 's/^/| /' conftest.$ac_ext >&5
33003
33004 ol_cv_pthread_threads=no
33005 fi
33006 rm -f conftest.err conftest.$ac_objext \
33007       conftest$ac_exeext conftest.$ac_ext
33008 else
33009   cat >conftest.$ac_ext <<_ACEOF
33010 /* confdefs.h.  */
33011 _ACEOF
33012 cat confdefs.h >>conftest.$ac_ext
33013 cat >>conftest.$ac_ext <<_ACEOF
33014 /* end confdefs.h.  */
33015 /* pthread test headers */
33016 #include <pthread.h>
33017 #if HAVE_PTHREADS < 7
33018 #include <errno.h>
33019 #endif
33020 #ifndef NULL
33021 #define NULL (void*)0
33022 #endif
33023
33024 static void *task(p)
33025         void *p;
33026 {
33027         return (void *) (p == NULL);
33028 }
33029
33030
33031 int main(argc, argv)
33032         int argc;
33033         char **argv;
33034 {
33035
33036         /* pthread test function */
33037 #ifndef PTHREAD_CREATE_DETACHED
33038 #define PTHREAD_CREATE_DETACHED 1
33039 #endif
33040         pthread_t t;
33041         int status;
33042         int detach = PTHREAD_CREATE_DETACHED;
33043
33044 #if HAVE_PTHREADS > 4
33045         /* Final pthreads */
33046         pthread_attr_t attr;
33047
33048         status = pthread_attr_init(&attr);
33049         if( status ) return status;
33050
33051 #if HAVE_PTHREADS < 7
33052         status = pthread_attr_setdetachstate(&attr, &detach);
33053         if( status < 0 ) status = errno;
33054 #else
33055         status = pthread_attr_setdetachstate(&attr, detach);
33056 #endif
33057         if( status ) return status;
33058         status = pthread_create( &t, &attr, task, NULL );
33059 #if HAVE_PTHREADS < 7
33060         if( status < 0 ) status = errno;
33061 #endif
33062         if( status ) return status;
33063 #else
33064         /* Draft 4 pthreads */
33065         status = pthread_create( &t, pthread_attr_default, task, NULL );
33066         if( status ) return errno;
33067
33068         /* give thread a chance to complete */
33069         /* it should remain joinable and hence detachable */
33070         sleep( 1 );
33071
33072         status = pthread_detach( &t );
33073         if( status ) return errno;
33074 #endif
33075
33076 #ifdef HAVE_LINUX_THREADS
33077         pthread_kill_other_threads_np();
33078 #endif
33079
33080         return 0;
33081
33082 }
33083
33084 _ACEOF
33085 rm -f conftest$ac_exeext
33086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33087   (eval $ac_link) 2>&5
33088   ac_status=$?
33089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33092   (eval $ac_try) 2>&5
33093   ac_status=$?
33094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095   (exit $ac_status); }; }; then
33096   ol_cv_pthread_threads=yes
33097 else
33098   echo "$as_me: program exited with status $ac_status" >&5
33099 echo "$as_me: failed program was:" >&5
33100 sed 's/^/| /' conftest.$ac_ext >&5
33101
33102 ( exit $ac_status )
33103 ol_cv_pthread_threads=no
33104 fi
33105 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33106 fi
33107
33108                 # restore the LIBS
33109                 LIBS="$ol_LIBS"
33110
33111 fi
33112 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33113 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33114
33115         if test $ol_cv_pthread_threads = yes ; then
33116                 ol_link_pthreads="-threads"
33117                 ol_link_threads=posix
33118         fi
33119 fi
33120
33121
33122                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33123 if test "$ol_link_threads" = no ; then
33124         # try -lpthreads -lmach -lexc -lc_r
33125         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33126 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33127 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33128   echo $ECHO_N "(cached) $ECHO_C" >&6
33129 else
33130
33131                 # save the flags
33132                 ol_LIBS="$LIBS"
33133                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33134
33135                 if test "$cross_compiling" = yes; then
33136   cat >conftest.$ac_ext <<_ACEOF
33137 /* confdefs.h.  */
33138 _ACEOF
33139 cat confdefs.h >>conftest.$ac_ext
33140 cat >>conftest.$ac_ext <<_ACEOF
33141 /* end confdefs.h.  */
33142 /* pthread test headers */
33143 #include <pthread.h>
33144 #if HAVE_PTHREADS < 7
33145 #include <errno.h>
33146 #endif
33147 #ifndef NULL
33148 #define NULL (void*)0
33149 #endif
33150
33151 static void *task(p)
33152         void *p;
33153 {
33154         return (void *) (p == NULL);
33155 }
33156
33157 int
33158 main ()
33159 {
33160
33161         /* pthread test function */
33162 #ifndef PTHREAD_CREATE_DETACHED
33163 #define PTHREAD_CREATE_DETACHED 1
33164 #endif
33165         pthread_t t;
33166         int status;
33167         int detach = PTHREAD_CREATE_DETACHED;
33168
33169 #if HAVE_PTHREADS > 4
33170         /* Final pthreads */
33171         pthread_attr_t attr;
33172
33173         status = pthread_attr_init(&attr);
33174         if( status ) return status;
33175
33176 #if HAVE_PTHREADS < 7
33177         status = pthread_attr_setdetachstate(&attr, &detach);
33178         if( status < 0 ) status = errno;
33179 #else
33180         status = pthread_attr_setdetachstate(&attr, detach);
33181 #endif
33182         if( status ) return status;
33183         status = pthread_create( &t, &attr, task, NULL );
33184 #if HAVE_PTHREADS < 7
33185         if( status < 0 ) status = errno;
33186 #endif
33187         if( status ) return status;
33188 #else
33189         /* Draft 4 pthreads */
33190         status = pthread_create( &t, pthread_attr_default, task, NULL );
33191         if( status ) return errno;
33192
33193         /* give thread a chance to complete */
33194         /* it should remain joinable and hence detachable */
33195         sleep( 1 );
33196
33197         status = pthread_detach( &t );
33198         if( status ) return errno;
33199 #endif
33200
33201 #ifdef HAVE_LINUX_THREADS
33202         pthread_kill_other_threads_np();
33203 #endif
33204
33205         return 0;
33206
33207   ;
33208   return 0;
33209 }
33210 _ACEOF
33211 rm -f conftest.$ac_objext conftest$ac_exeext
33212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33213   (eval $ac_link) 2>conftest.er1
33214   ac_status=$?
33215   grep -v '^ *+' conftest.er1 >conftest.err
33216   rm -f conftest.er1
33217   cat conftest.err >&5
33218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33219   (exit $ac_status); } &&
33220          { ac_try='test -z "$ac_c_werror_flag"
33221                          || test ! -s conftest.err'
33222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33223   (eval $ac_try) 2>&5
33224   ac_status=$?
33225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226   (exit $ac_status); }; } &&
33227          { ac_try='test -s conftest$ac_exeext'
33228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33229   (eval $ac_try) 2>&5
33230   ac_status=$?
33231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33232   (exit $ac_status); }; }; then
33233   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33234 else
33235   echo "$as_me: failed program was:" >&5
33236 sed 's/^/| /' conftest.$ac_ext >&5
33237
33238 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33239 fi
33240 rm -f conftest.err conftest.$ac_objext \
33241       conftest$ac_exeext conftest.$ac_ext
33242 else
33243   cat >conftest.$ac_ext <<_ACEOF
33244 /* confdefs.h.  */
33245 _ACEOF
33246 cat confdefs.h >>conftest.$ac_ext
33247 cat >>conftest.$ac_ext <<_ACEOF
33248 /* end confdefs.h.  */
33249 /* pthread test headers */
33250 #include <pthread.h>
33251 #if HAVE_PTHREADS < 7
33252 #include <errno.h>
33253 #endif
33254 #ifndef NULL
33255 #define NULL (void*)0
33256 #endif
33257
33258 static void *task(p)
33259         void *p;
33260 {
33261         return (void *) (p == NULL);
33262 }
33263
33264
33265 int main(argc, argv)
33266         int argc;
33267         char **argv;
33268 {
33269
33270         /* pthread test function */
33271 #ifndef PTHREAD_CREATE_DETACHED
33272 #define PTHREAD_CREATE_DETACHED 1
33273 #endif
33274         pthread_t t;
33275         int status;
33276         int detach = PTHREAD_CREATE_DETACHED;
33277
33278 #if HAVE_PTHREADS > 4
33279         /* Final pthreads */
33280         pthread_attr_t attr;
33281
33282         status = pthread_attr_init(&attr);
33283         if( status ) return status;
33284
33285 #if HAVE_PTHREADS < 7
33286         status = pthread_attr_setdetachstate(&attr, &detach);
33287         if( status < 0 ) status = errno;
33288 #else
33289         status = pthread_attr_setdetachstate(&attr, detach);
33290 #endif
33291         if( status ) return status;
33292         status = pthread_create( &t, &attr, task, NULL );
33293 #if HAVE_PTHREADS < 7
33294         if( status < 0 ) status = errno;
33295 #endif
33296         if( status ) return status;
33297 #else
33298         /* Draft 4 pthreads */
33299         status = pthread_create( &t, pthread_attr_default, task, NULL );
33300         if( status ) return errno;
33301
33302         /* give thread a chance to complete */
33303         /* it should remain joinable and hence detachable */
33304         sleep( 1 );
33305
33306         status = pthread_detach( &t );
33307         if( status ) return errno;
33308 #endif
33309
33310 #ifdef HAVE_LINUX_THREADS
33311         pthread_kill_other_threads_np();
33312 #endif
33313
33314         return 0;
33315
33316 }
33317
33318 _ACEOF
33319 rm -f conftest$ac_exeext
33320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33321   (eval $ac_link) 2>&5
33322   ac_status=$?
33323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33326   (eval $ac_try) 2>&5
33327   ac_status=$?
33328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33329   (exit $ac_status); }; }; then
33330   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33331 else
33332   echo "$as_me: program exited with status $ac_status" >&5
33333 echo "$as_me: failed program was:" >&5
33334 sed 's/^/| /' conftest.$ac_ext >&5
33335
33336 ( exit $ac_status )
33337 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33338 fi
33339 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33340 fi
33341
33342                 # restore the LIBS
33343                 LIBS="$ol_LIBS"
33344
33345 fi
33346 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33347 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33348
33349         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33350                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33351                 ol_link_threads=posix
33352         fi
33353 fi
33354
33355                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33356 if test "$ol_link_threads" = no ; then
33357         # try -lpthreads -lmach -lexc
33358         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33359 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33360 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33361   echo $ECHO_N "(cached) $ECHO_C" >&6
33362 else
33363
33364                 # save the flags
33365                 ol_LIBS="$LIBS"
33366                 LIBS="-lpthreads -lmach -lexc $LIBS"
33367
33368                 if test "$cross_compiling" = yes; then
33369   cat >conftest.$ac_ext <<_ACEOF
33370 /* confdefs.h.  */
33371 _ACEOF
33372 cat confdefs.h >>conftest.$ac_ext
33373 cat >>conftest.$ac_ext <<_ACEOF
33374 /* end confdefs.h.  */
33375 /* pthread test headers */
33376 #include <pthread.h>
33377 #if HAVE_PTHREADS < 7
33378 #include <errno.h>
33379 #endif
33380 #ifndef NULL
33381 #define NULL (void*)0
33382 #endif
33383
33384 static void *task(p)
33385         void *p;
33386 {
33387         return (void *) (p == NULL);
33388 }
33389
33390 int
33391 main ()
33392 {
33393
33394         /* pthread test function */
33395 #ifndef PTHREAD_CREATE_DETACHED
33396 #define PTHREAD_CREATE_DETACHED 1
33397 #endif
33398         pthread_t t;
33399         int status;
33400         int detach = PTHREAD_CREATE_DETACHED;
33401
33402 #if HAVE_PTHREADS > 4
33403         /* Final pthreads */
33404         pthread_attr_t attr;
33405
33406         status = pthread_attr_init(&attr);
33407         if( status ) return status;
33408
33409 #if HAVE_PTHREADS < 7
33410         status = pthread_attr_setdetachstate(&attr, &detach);
33411         if( status < 0 ) status = errno;
33412 #else
33413         status = pthread_attr_setdetachstate(&attr, detach);
33414 #endif
33415         if( status ) return status;
33416         status = pthread_create( &t, &attr, task, NULL );
33417 #if HAVE_PTHREADS < 7
33418         if( status < 0 ) status = errno;
33419 #endif
33420         if( status ) return status;
33421 #else
33422         /* Draft 4 pthreads */
33423         status = pthread_create( &t, pthread_attr_default, task, NULL );
33424         if( status ) return errno;
33425
33426         /* give thread a chance to complete */
33427         /* it should remain joinable and hence detachable */
33428         sleep( 1 );
33429
33430         status = pthread_detach( &t );
33431         if( status ) return errno;
33432 #endif
33433
33434 #ifdef HAVE_LINUX_THREADS
33435         pthread_kill_other_threads_np();
33436 #endif
33437
33438         return 0;
33439
33440   ;
33441   return 0;
33442 }
33443 _ACEOF
33444 rm -f conftest.$ac_objext conftest$ac_exeext
33445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33446   (eval $ac_link) 2>conftest.er1
33447   ac_status=$?
33448   grep -v '^ *+' conftest.er1 >conftest.err
33449   rm -f conftest.er1
33450   cat conftest.err >&5
33451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33452   (exit $ac_status); } &&
33453          { ac_try='test -z "$ac_c_werror_flag"
33454                          || test ! -s conftest.err'
33455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33456   (eval $ac_try) 2>&5
33457   ac_status=$?
33458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459   (exit $ac_status); }; } &&
33460          { ac_try='test -s conftest$ac_exeext'
33461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33462   (eval $ac_try) 2>&5
33463   ac_status=$?
33464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33465   (exit $ac_status); }; }; then
33466   ol_cv_pthread_lpthreads_lmach_lexc=yes
33467 else
33468   echo "$as_me: failed program was:" >&5
33469 sed 's/^/| /' conftest.$ac_ext >&5
33470
33471 ol_cv_pthread_lpthreads_lmach_lexc=no
33472 fi
33473 rm -f conftest.err conftest.$ac_objext \
33474       conftest$ac_exeext conftest.$ac_ext
33475 else
33476   cat >conftest.$ac_ext <<_ACEOF
33477 /* confdefs.h.  */
33478 _ACEOF
33479 cat confdefs.h >>conftest.$ac_ext
33480 cat >>conftest.$ac_ext <<_ACEOF
33481 /* end confdefs.h.  */
33482 /* pthread test headers */
33483 #include <pthread.h>
33484 #if HAVE_PTHREADS < 7
33485 #include <errno.h>
33486 #endif
33487 #ifndef NULL
33488 #define NULL (void*)0
33489 #endif
33490
33491 static void *task(p)
33492         void *p;
33493 {
33494         return (void *) (p == NULL);
33495 }
33496
33497
33498 int main(argc, argv)
33499         int argc;
33500         char **argv;
33501 {
33502
33503         /* pthread test function */
33504 #ifndef PTHREAD_CREATE_DETACHED
33505 #define PTHREAD_CREATE_DETACHED 1
33506 #endif
33507         pthread_t t;
33508         int status;
33509         int detach = PTHREAD_CREATE_DETACHED;
33510
33511 #if HAVE_PTHREADS > 4
33512         /* Final pthreads */
33513         pthread_attr_t attr;
33514
33515         status = pthread_attr_init(&attr);
33516         if( status ) return status;
33517
33518 #if HAVE_PTHREADS < 7
33519         status = pthread_attr_setdetachstate(&attr, &detach);
33520         if( status < 0 ) status = errno;
33521 #else
33522         status = pthread_attr_setdetachstate(&attr, detach);
33523 #endif
33524         if( status ) return status;
33525         status = pthread_create( &t, &attr, task, NULL );
33526 #if HAVE_PTHREADS < 7
33527         if( status < 0 ) status = errno;
33528 #endif
33529         if( status ) return status;
33530 #else
33531         /* Draft 4 pthreads */
33532         status = pthread_create( &t, pthread_attr_default, task, NULL );
33533         if( status ) return errno;
33534
33535         /* give thread a chance to complete */
33536         /* it should remain joinable and hence detachable */
33537         sleep( 1 );
33538
33539         status = pthread_detach( &t );
33540         if( status ) return errno;
33541 #endif
33542
33543 #ifdef HAVE_LINUX_THREADS
33544         pthread_kill_other_threads_np();
33545 #endif
33546
33547         return 0;
33548
33549 }
33550
33551 _ACEOF
33552 rm -f conftest$ac_exeext
33553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33554   (eval $ac_link) 2>&5
33555   ac_status=$?
33556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33559   (eval $ac_try) 2>&5
33560   ac_status=$?
33561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33562   (exit $ac_status); }; }; then
33563   ol_cv_pthread_lpthreads_lmach_lexc=yes
33564 else
33565   echo "$as_me: program exited with status $ac_status" >&5
33566 echo "$as_me: failed program was:" >&5
33567 sed 's/^/| /' conftest.$ac_ext >&5
33568
33569 ( exit $ac_status )
33570 ol_cv_pthread_lpthreads_lmach_lexc=no
33571 fi
33572 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33573 fi
33574
33575                 # restore the LIBS
33576                 LIBS="$ol_LIBS"
33577
33578 fi
33579 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33580 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33581
33582         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33583                 ol_link_pthreads="-lpthreads -lmach -lexc"
33584                 ol_link_threads=posix
33585         fi
33586 fi
33587
33588                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33589 if test "$ol_link_threads" = no ; then
33590         # try -lpthreads -lexc
33591         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33592 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33593 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33594   echo $ECHO_N "(cached) $ECHO_C" >&6
33595 else
33596
33597                 # save the flags
33598                 ol_LIBS="$LIBS"
33599                 LIBS="-lpthreads -lexc $LIBS"
33600
33601                 if test "$cross_compiling" = yes; then
33602   cat >conftest.$ac_ext <<_ACEOF
33603 /* confdefs.h.  */
33604 _ACEOF
33605 cat confdefs.h >>conftest.$ac_ext
33606 cat >>conftest.$ac_ext <<_ACEOF
33607 /* end confdefs.h.  */
33608 /* pthread test headers */
33609 #include <pthread.h>
33610 #if HAVE_PTHREADS < 7
33611 #include <errno.h>
33612 #endif
33613 #ifndef NULL
33614 #define NULL (void*)0
33615 #endif
33616
33617 static void *task(p)
33618         void *p;
33619 {
33620         return (void *) (p == NULL);
33621 }
33622
33623 int
33624 main ()
33625 {
33626
33627         /* pthread test function */
33628 #ifndef PTHREAD_CREATE_DETACHED
33629 #define PTHREAD_CREATE_DETACHED 1
33630 #endif
33631         pthread_t t;
33632         int status;
33633         int detach = PTHREAD_CREATE_DETACHED;
33634
33635 #if HAVE_PTHREADS > 4
33636         /* Final pthreads */
33637         pthread_attr_t attr;
33638
33639         status = pthread_attr_init(&attr);
33640         if( status ) return status;
33641
33642 #if HAVE_PTHREADS < 7
33643         status = pthread_attr_setdetachstate(&attr, &detach);
33644         if( status < 0 ) status = errno;
33645 #else
33646         status = pthread_attr_setdetachstate(&attr, detach);
33647 #endif
33648         if( status ) return status;
33649         status = pthread_create( &t, &attr, task, NULL );
33650 #if HAVE_PTHREADS < 7
33651         if( status < 0 ) status = errno;
33652 #endif
33653         if( status ) return status;
33654 #else
33655         /* Draft 4 pthreads */
33656         status = pthread_create( &t, pthread_attr_default, task, NULL );
33657         if( status ) return errno;
33658
33659         /* give thread a chance to complete */
33660         /* it should remain joinable and hence detachable */
33661         sleep( 1 );
33662
33663         status = pthread_detach( &t );
33664         if( status ) return errno;
33665 #endif
33666
33667 #ifdef HAVE_LINUX_THREADS
33668         pthread_kill_other_threads_np();
33669 #endif
33670
33671         return 0;
33672
33673   ;
33674   return 0;
33675 }
33676 _ACEOF
33677 rm -f conftest.$ac_objext conftest$ac_exeext
33678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33679   (eval $ac_link) 2>conftest.er1
33680   ac_status=$?
33681   grep -v '^ *+' conftest.er1 >conftest.err
33682   rm -f conftest.er1
33683   cat conftest.err >&5
33684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33685   (exit $ac_status); } &&
33686          { ac_try='test -z "$ac_c_werror_flag"
33687                          || test ! -s conftest.err'
33688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33689   (eval $ac_try) 2>&5
33690   ac_status=$?
33691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33692   (exit $ac_status); }; } &&
33693          { ac_try='test -s conftest$ac_exeext'
33694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33695   (eval $ac_try) 2>&5
33696   ac_status=$?
33697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33698   (exit $ac_status); }; }; then
33699   ol_cv_pthread_lpthreads_lexc=yes
33700 else
33701   echo "$as_me: failed program was:" >&5
33702 sed 's/^/| /' conftest.$ac_ext >&5
33703
33704 ol_cv_pthread_lpthreads_lexc=no
33705 fi
33706 rm -f conftest.err conftest.$ac_objext \
33707       conftest$ac_exeext conftest.$ac_ext
33708 else
33709   cat >conftest.$ac_ext <<_ACEOF
33710 /* confdefs.h.  */
33711 _ACEOF
33712 cat confdefs.h >>conftest.$ac_ext
33713 cat >>conftest.$ac_ext <<_ACEOF
33714 /* end confdefs.h.  */
33715 /* pthread test headers */
33716 #include <pthread.h>
33717 #if HAVE_PTHREADS < 7
33718 #include <errno.h>
33719 #endif
33720 #ifndef NULL
33721 #define NULL (void*)0
33722 #endif
33723
33724 static void *task(p)
33725         void *p;
33726 {
33727         return (void *) (p == NULL);
33728 }
33729
33730
33731 int main(argc, argv)
33732         int argc;
33733         char **argv;
33734 {
33735
33736         /* pthread test function */
33737 #ifndef PTHREAD_CREATE_DETACHED
33738 #define PTHREAD_CREATE_DETACHED 1
33739 #endif
33740         pthread_t t;
33741         int status;
33742         int detach = PTHREAD_CREATE_DETACHED;
33743
33744 #if HAVE_PTHREADS > 4
33745         /* Final pthreads */
33746         pthread_attr_t attr;
33747
33748         status = pthread_attr_init(&attr);
33749         if( status ) return status;
33750
33751 #if HAVE_PTHREADS < 7
33752         status = pthread_attr_setdetachstate(&attr, &detach);
33753         if( status < 0 ) status = errno;
33754 #else
33755         status = pthread_attr_setdetachstate(&attr, detach);
33756 #endif
33757         if( status ) return status;
33758         status = pthread_create( &t, &attr, task, NULL );
33759 #if HAVE_PTHREADS < 7
33760         if( status < 0 ) status = errno;
33761 #endif
33762         if( status ) return status;
33763 #else
33764         /* Draft 4 pthreads */
33765         status = pthread_create( &t, pthread_attr_default, task, NULL );
33766         if( status ) return errno;
33767
33768         /* give thread a chance to complete */
33769         /* it should remain joinable and hence detachable */
33770         sleep( 1 );
33771
33772         status = pthread_detach( &t );
33773         if( status ) return errno;
33774 #endif
33775
33776 #ifdef HAVE_LINUX_THREADS
33777         pthread_kill_other_threads_np();
33778 #endif
33779
33780         return 0;
33781
33782 }
33783
33784 _ACEOF
33785 rm -f conftest$ac_exeext
33786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33787   (eval $ac_link) 2>&5
33788   ac_status=$?
33789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33790   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33792   (eval $ac_try) 2>&5
33793   ac_status=$?
33794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795   (exit $ac_status); }; }; then
33796   ol_cv_pthread_lpthreads_lexc=yes
33797 else
33798   echo "$as_me: program exited with status $ac_status" >&5
33799 echo "$as_me: failed program was:" >&5
33800 sed 's/^/| /' conftest.$ac_ext >&5
33801
33802 ( exit $ac_status )
33803 ol_cv_pthread_lpthreads_lexc=no
33804 fi
33805 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33806 fi
33807
33808                 # restore the LIBS
33809                 LIBS="$ol_LIBS"
33810
33811 fi
33812 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
33813 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
33814
33815         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
33816                 ol_link_pthreads="-lpthreads -lexc"
33817                 ol_link_threads=posix
33818         fi
33819 fi
33820
33821
33822                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
33823 if test "$ol_link_threads" = no ; then
33824         # try -lpthreads
33825         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
33826 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
33827 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
33828   echo $ECHO_N "(cached) $ECHO_C" >&6
33829 else
33830
33831                 # save the flags
33832                 ol_LIBS="$LIBS"
33833                 LIBS="-lpthreads $LIBS"
33834
33835                 if test "$cross_compiling" = yes; then
33836   cat >conftest.$ac_ext <<_ACEOF
33837 /* confdefs.h.  */
33838 _ACEOF
33839 cat confdefs.h >>conftest.$ac_ext
33840 cat >>conftest.$ac_ext <<_ACEOF
33841 /* end confdefs.h.  */
33842 /* pthread test headers */
33843 #include <pthread.h>
33844 #if HAVE_PTHREADS < 7
33845 #include <errno.h>
33846 #endif
33847 #ifndef NULL
33848 #define NULL (void*)0
33849 #endif
33850
33851 static void *task(p)
33852         void *p;
33853 {
33854         return (void *) (p == NULL);
33855 }
33856
33857 int
33858 main ()
33859 {
33860
33861         /* pthread test function */
33862 #ifndef PTHREAD_CREATE_DETACHED
33863 #define PTHREAD_CREATE_DETACHED 1
33864 #endif
33865         pthread_t t;
33866         int status;
33867         int detach = PTHREAD_CREATE_DETACHED;
33868
33869 #if HAVE_PTHREADS > 4
33870         /* Final pthreads */
33871         pthread_attr_t attr;
33872
33873         status = pthread_attr_init(&attr);
33874         if( status ) return status;
33875
33876 #if HAVE_PTHREADS < 7
33877         status = pthread_attr_setdetachstate(&attr, &detach);
33878         if( status < 0 ) status = errno;
33879 #else
33880         status = pthread_attr_setdetachstate(&attr, detach);
33881 #endif
33882         if( status ) return status;
33883         status = pthread_create( &t, &attr, task, NULL );
33884 #if HAVE_PTHREADS < 7
33885         if( status < 0 ) status = errno;
33886 #endif
33887         if( status ) return status;
33888 #else
33889         /* Draft 4 pthreads */
33890         status = pthread_create( &t, pthread_attr_default, task, NULL );
33891         if( status ) return errno;
33892
33893         /* give thread a chance to complete */
33894         /* it should remain joinable and hence detachable */
33895         sleep( 1 );
33896
33897         status = pthread_detach( &t );
33898         if( status ) return errno;
33899 #endif
33900
33901 #ifdef HAVE_LINUX_THREADS
33902         pthread_kill_other_threads_np();
33903 #endif
33904
33905         return 0;
33906
33907   ;
33908   return 0;
33909 }
33910 _ACEOF
33911 rm -f conftest.$ac_objext conftest$ac_exeext
33912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33913   (eval $ac_link) 2>conftest.er1
33914   ac_status=$?
33915   grep -v '^ *+' conftest.er1 >conftest.err
33916   rm -f conftest.er1
33917   cat conftest.err >&5
33918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33919   (exit $ac_status); } &&
33920          { ac_try='test -z "$ac_c_werror_flag"
33921                          || test ! -s conftest.err'
33922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33923   (eval $ac_try) 2>&5
33924   ac_status=$?
33925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33926   (exit $ac_status); }; } &&
33927          { ac_try='test -s conftest$ac_exeext'
33928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33929   (eval $ac_try) 2>&5
33930   ac_status=$?
33931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932   (exit $ac_status); }; }; then
33933   ol_cv_pthread_lib_lpthreads=yes
33934 else
33935   echo "$as_me: failed program was:" >&5
33936 sed 's/^/| /' conftest.$ac_ext >&5
33937
33938 ol_cv_pthread_lib_lpthreads=no
33939 fi
33940 rm -f conftest.err conftest.$ac_objext \
33941       conftest$ac_exeext conftest.$ac_ext
33942 else
33943   cat >conftest.$ac_ext <<_ACEOF
33944 /* confdefs.h.  */
33945 _ACEOF
33946 cat confdefs.h >>conftest.$ac_ext
33947 cat >>conftest.$ac_ext <<_ACEOF
33948 /* end confdefs.h.  */
33949 /* pthread test headers */
33950 #include <pthread.h>
33951 #if HAVE_PTHREADS < 7
33952 #include <errno.h>
33953 #endif
33954 #ifndef NULL
33955 #define NULL (void*)0
33956 #endif
33957
33958 static void *task(p)
33959         void *p;
33960 {
33961         return (void *) (p == NULL);
33962 }
33963
33964
33965 int main(argc, argv)
33966         int argc;
33967         char **argv;
33968 {
33969
33970         /* pthread test function */
33971 #ifndef PTHREAD_CREATE_DETACHED
33972 #define PTHREAD_CREATE_DETACHED 1
33973 #endif
33974         pthread_t t;
33975         int status;
33976         int detach = PTHREAD_CREATE_DETACHED;
33977
33978 #if HAVE_PTHREADS > 4
33979         /* Final pthreads */
33980         pthread_attr_t attr;
33981
33982         status = pthread_attr_init(&attr);
33983         if( status ) return status;
33984
33985 #if HAVE_PTHREADS < 7
33986         status = pthread_attr_setdetachstate(&attr, &detach);
33987         if( status < 0 ) status = errno;
33988 #else
33989         status = pthread_attr_setdetachstate(&attr, detach);
33990 #endif
33991         if( status ) return status;
33992         status = pthread_create( &t, &attr, task, NULL );
33993 #if HAVE_PTHREADS < 7
33994         if( status < 0 ) status = errno;
33995 #endif
33996         if( status ) return status;
33997 #else
33998         /* Draft 4 pthreads */
33999         status = pthread_create( &t, pthread_attr_default, task, NULL );
34000         if( status ) return errno;
34001
34002         /* give thread a chance to complete */
34003         /* it should remain joinable and hence detachable */
34004         sleep( 1 );
34005
34006         status = pthread_detach( &t );
34007         if( status ) return errno;
34008 #endif
34009
34010 #ifdef HAVE_LINUX_THREADS
34011         pthread_kill_other_threads_np();
34012 #endif
34013
34014         return 0;
34015
34016 }
34017
34018 _ACEOF
34019 rm -f conftest$ac_exeext
34020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34021   (eval $ac_link) 2>&5
34022   ac_status=$?
34023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34024   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34026   (eval $ac_try) 2>&5
34027   ac_status=$?
34028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029   (exit $ac_status); }; }; then
34030   ol_cv_pthread_lib_lpthreads=yes
34031 else
34032   echo "$as_me: program exited with status $ac_status" >&5
34033 echo "$as_me: failed program was:" >&5
34034 sed 's/^/| /' conftest.$ac_ext >&5
34035
34036 ( exit $ac_status )
34037 ol_cv_pthread_lib_lpthreads=no
34038 fi
34039 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34040 fi
34041
34042                 # restore the LIBS
34043                 LIBS="$ol_LIBS"
34044
34045 fi
34046 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34047 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34048
34049         if test $ol_cv_pthread_lib_lpthreads = yes ; then
34050                 ol_link_pthreads="-lpthreads"
34051                 ol_link_threads=posix
34052         fi
34053 fi
34054
34055
34056                 if test $ol_link_threads != no ; then
34057                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34058
34059                                                 save_CPPFLAGS="$CPPFLAGS"
34060                         save_LIBS="$LIBS"
34061                         LIBS="$LTHREAD_LIBS $LIBS"
34062
34063
34064
34065
34066 for ac_func in sched_yield pthread_yield thr_yield
34067 do
34068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34069 echo "$as_me:$LINENO: checking for $ac_func" >&5
34070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34071 if eval "test \"\${$as_ac_var+set}\" = set"; then
34072   echo $ECHO_N "(cached) $ECHO_C" >&6
34073 else
34074   cat >conftest.$ac_ext <<_ACEOF
34075 /* confdefs.h.  */
34076 _ACEOF
34077 cat confdefs.h >>conftest.$ac_ext
34078 cat >>conftest.$ac_ext <<_ACEOF
34079 /* end confdefs.h.  */
34080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34081    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34082 #define $ac_func innocuous_$ac_func
34083
34084 /* System header to define __stub macros and hopefully few prototypes,
34085     which can conflict with char $ac_func (); below.
34086     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34087     <limits.h> exists even on freestanding compilers.  */
34088
34089 #ifdef __STDC__
34090 # include <limits.h>
34091 #else
34092 # include <assert.h>
34093 #endif
34094
34095 #undef $ac_func
34096
34097 /* Override any gcc2 internal prototype to avoid an error.  */
34098 #ifdef __cplusplus
34099 extern "C"
34100 {
34101 #endif
34102 /* We use char because int might match the return type of a gcc2
34103    builtin and then its argument prototype would still apply.  */
34104 char $ac_func ();
34105 /* The GNU C library defines this for functions which it implements
34106     to always fail with ENOSYS.  Some functions are actually named
34107     something starting with __ and the normal name is an alias.  */
34108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34109 choke me
34110 #else
34111 char (*f) () = $ac_func;
34112 #endif
34113 #ifdef __cplusplus
34114 }
34115 #endif
34116
34117 int
34118 main ()
34119 {
34120 return f != $ac_func;
34121   ;
34122   return 0;
34123 }
34124 _ACEOF
34125 rm -f conftest.$ac_objext conftest$ac_exeext
34126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34127   (eval $ac_link) 2>conftest.er1
34128   ac_status=$?
34129   grep -v '^ *+' conftest.er1 >conftest.err
34130   rm -f conftest.er1
34131   cat conftest.err >&5
34132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34133   (exit $ac_status); } &&
34134          { ac_try='test -z "$ac_c_werror_flag"
34135                          || test ! -s conftest.err'
34136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34137   (eval $ac_try) 2>&5
34138   ac_status=$?
34139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34140   (exit $ac_status); }; } &&
34141          { ac_try='test -s conftest$ac_exeext'
34142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34143   (eval $ac_try) 2>&5
34144   ac_status=$?
34145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34146   (exit $ac_status); }; }; then
34147   eval "$as_ac_var=yes"
34148 else
34149   echo "$as_me: failed program was:" >&5
34150 sed 's/^/| /' conftest.$ac_ext >&5
34151
34152 eval "$as_ac_var=no"
34153 fi
34154 rm -f conftest.err conftest.$ac_objext \
34155       conftest$ac_exeext conftest.$ac_ext
34156 fi
34157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34158 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34159 if test `eval echo '${'$as_ac_var'}'` = yes; then
34160   cat >>confdefs.h <<_ACEOF
34161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34162 _ACEOF
34163
34164 fi
34165 done
34166
34167
34168                         if test $ac_cv_func_sched_yield = no -a \
34169                                 $ac_cv_func_pthread_yield = no -a \
34170                                 $ac_cv_func_thr_yield = no ; then
34171                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34172 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34173 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34174   echo $ECHO_N "(cached) $ECHO_C" >&6
34175 else
34176   ac_check_lib_save_LIBS=$LIBS
34177 LIBS="-lrt  $LIBS"
34178 cat >conftest.$ac_ext <<_ACEOF
34179 /* confdefs.h.  */
34180 _ACEOF
34181 cat confdefs.h >>conftest.$ac_ext
34182 cat >>conftest.$ac_ext <<_ACEOF
34183 /* end confdefs.h.  */
34184
34185 /* Override any gcc2 internal prototype to avoid an error.  */
34186 #ifdef __cplusplus
34187 extern "C"
34188 #endif
34189 /* We use char because int might match the return type of a gcc2
34190    builtin and then its argument prototype would still apply.  */
34191 char sched_yield ();
34192 int
34193 main ()
34194 {
34195 sched_yield ();
34196   ;
34197   return 0;
34198 }
34199 _ACEOF
34200 rm -f conftest.$ac_objext conftest$ac_exeext
34201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34202   (eval $ac_link) 2>conftest.er1
34203   ac_status=$?
34204   grep -v '^ *+' conftest.er1 >conftest.err
34205   rm -f conftest.er1
34206   cat conftest.err >&5
34207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34208   (exit $ac_status); } &&
34209          { ac_try='test -z "$ac_c_werror_flag"
34210                          || test ! -s conftest.err'
34211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34212   (eval $ac_try) 2>&5
34213   ac_status=$?
34214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34215   (exit $ac_status); }; } &&
34216          { ac_try='test -s conftest$ac_exeext'
34217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34218   (eval $ac_try) 2>&5
34219   ac_status=$?
34220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34221   (exit $ac_status); }; }; then
34222   ac_cv_lib_rt_sched_yield=yes
34223 else
34224   echo "$as_me: failed program was:" >&5
34225 sed 's/^/| /' conftest.$ac_ext >&5
34226
34227 ac_cv_lib_rt_sched_yield=no
34228 fi
34229 rm -f conftest.err conftest.$ac_objext \
34230       conftest$ac_exeext conftest.$ac_ext
34231 LIBS=$ac_check_lib_save_LIBS
34232 fi
34233 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34234 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34235 if test $ac_cv_lib_rt_sched_yield = yes; then
34236   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34237
34238 cat >>confdefs.h <<\_ACEOF
34239 #define HAVE_SCHED_YIELD 1
34240 _ACEOF
34241
34242                                         ac_cv_func_sched_yield=yes
34243 else
34244   ac_cv_func_sched_yield=no
34245 fi
34246
34247                         fi
34248                         if test $ac_cv_func_sched_yield = no -a \
34249                                 $ac_cv_func_pthread_yield = no -a \
34250                                 "$ac_cv_func_thr_yield" = no ; then
34251                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34252 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34253                         fi
34254
34255
34256
34257 for ac_func in pthread_kill pthread_rwlock_destroy
34258 do
34259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34260 echo "$as_me:$LINENO: checking for $ac_func" >&5
34261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34262 if eval "test \"\${$as_ac_var+set}\" = set"; then
34263   echo $ECHO_N "(cached) $ECHO_C" >&6
34264 else
34265   cat >conftest.$ac_ext <<_ACEOF
34266 /* confdefs.h.  */
34267 _ACEOF
34268 cat confdefs.h >>conftest.$ac_ext
34269 cat >>conftest.$ac_ext <<_ACEOF
34270 /* end confdefs.h.  */
34271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34272    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34273 #define $ac_func innocuous_$ac_func
34274
34275 /* System header to define __stub macros and hopefully few prototypes,
34276     which can conflict with char $ac_func (); below.
34277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34278     <limits.h> exists even on freestanding compilers.  */
34279
34280 #ifdef __STDC__
34281 # include <limits.h>
34282 #else
34283 # include <assert.h>
34284 #endif
34285
34286 #undef $ac_func
34287
34288 /* Override any gcc2 internal prototype to avoid an error.  */
34289 #ifdef __cplusplus
34290 extern "C"
34291 {
34292 #endif
34293 /* We use char because int might match the return type of a gcc2
34294    builtin and then its argument prototype would still apply.  */
34295 char $ac_func ();
34296 /* The GNU C library defines this for functions which it implements
34297     to always fail with ENOSYS.  Some functions are actually named
34298     something starting with __ and the normal name is an alias.  */
34299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34300 choke me
34301 #else
34302 char (*f) () = $ac_func;
34303 #endif
34304 #ifdef __cplusplus
34305 }
34306 #endif
34307
34308 int
34309 main ()
34310 {
34311 return f != $ac_func;
34312   ;
34313   return 0;
34314 }
34315 _ACEOF
34316 rm -f conftest.$ac_objext conftest$ac_exeext
34317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34318   (eval $ac_link) 2>conftest.er1
34319   ac_status=$?
34320   grep -v '^ *+' conftest.er1 >conftest.err
34321   rm -f conftest.er1
34322   cat conftest.err >&5
34323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34324   (exit $ac_status); } &&
34325          { ac_try='test -z "$ac_c_werror_flag"
34326                          || test ! -s conftest.err'
34327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34328   (eval $ac_try) 2>&5
34329   ac_status=$?
34330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331   (exit $ac_status); }; } &&
34332          { ac_try='test -s conftest$ac_exeext'
34333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34334   (eval $ac_try) 2>&5
34335   ac_status=$?
34336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337   (exit $ac_status); }; }; then
34338   eval "$as_ac_var=yes"
34339 else
34340   echo "$as_me: failed program was:" >&5
34341 sed 's/^/| /' conftest.$ac_ext >&5
34342
34343 eval "$as_ac_var=no"
34344 fi
34345 rm -f conftest.err conftest.$ac_objext \
34346       conftest$ac_exeext conftest.$ac_ext
34347 fi
34348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34350 if test `eval echo '${'$as_ac_var'}'` = yes; then
34351   cat >>confdefs.h <<_ACEOF
34352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34353 _ACEOF
34354
34355 fi
34356 done
34357
34358
34359                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34360 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34361 if test "${ol_cv_func_pthread_detach+set}" = set; then
34362   echo $ECHO_N "(cached) $ECHO_C" >&6
34363 else
34364
34365                                                                 cat >conftest.$ac_ext <<_ACEOF
34366 /* confdefs.h.  */
34367 _ACEOF
34368 cat confdefs.h >>conftest.$ac_ext
34369 cat >>conftest.$ac_ext <<_ACEOF
34370 /* end confdefs.h.  */
34371
34372 #include <pthread.h>
34373 #ifndef NULL
34374 #define NULL (void*)0
34375 #endif
34376
34377 int
34378 main ()
34379 {
34380 pthread_detach(NULL);
34381   ;
34382   return 0;
34383 }
34384 _ACEOF
34385 rm -f conftest.$ac_objext conftest$ac_exeext
34386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34387   (eval $ac_link) 2>conftest.er1
34388   ac_status=$?
34389   grep -v '^ *+' conftest.er1 >conftest.err
34390   rm -f conftest.er1
34391   cat conftest.err >&5
34392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34393   (exit $ac_status); } &&
34394          { ac_try='test -z "$ac_c_werror_flag"
34395                          || test ! -s conftest.err'
34396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34397   (eval $ac_try) 2>&5
34398   ac_status=$?
34399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34400   (exit $ac_status); }; } &&
34401          { ac_try='test -s conftest$ac_exeext'
34402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34403   (eval $ac_try) 2>&5
34404   ac_status=$?
34405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34406   (exit $ac_status); }; }; then
34407   ol_cv_func_pthread_detach=yes
34408 else
34409   echo "$as_me: failed program was:" >&5
34410 sed 's/^/| /' conftest.$ac_ext >&5
34411
34412 ol_cv_func_pthread_detach=no
34413 fi
34414 rm -f conftest.err conftest.$ac_objext \
34415       conftest$ac_exeext conftest.$ac_ext
34416
34417 fi
34418 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34419 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34420
34421                         if test $ol_cv_func_pthread_detach = no ; then
34422                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34423 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34424    { (exit 1); exit 1; }; }
34425                         fi
34426
34427
34428 cat >>confdefs.h <<\_ACEOF
34429 #define HAVE_PTHREAD_DETACH 1
34430 _ACEOF
34431
34432
34433
34434
34435
34436
34437 for ac_func in \
34438                                 pthread_setconcurrency \
34439                                 pthread_getconcurrency \
34440                                 thr_setconcurrency \
34441                                 thr_getconcurrency \
34442
34443 do
34444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34445 echo "$as_me:$LINENO: checking for $ac_func" >&5
34446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34447 if eval "test \"\${$as_ac_var+set}\" = set"; then
34448   echo $ECHO_N "(cached) $ECHO_C" >&6
34449 else
34450   cat >conftest.$ac_ext <<_ACEOF
34451 /* confdefs.h.  */
34452 _ACEOF
34453 cat confdefs.h >>conftest.$ac_ext
34454 cat >>conftest.$ac_ext <<_ACEOF
34455 /* end confdefs.h.  */
34456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34458 #define $ac_func innocuous_$ac_func
34459
34460 /* System header to define __stub macros and hopefully few prototypes,
34461     which can conflict with char $ac_func (); below.
34462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34463     <limits.h> exists even on freestanding compilers.  */
34464
34465 #ifdef __STDC__
34466 # include <limits.h>
34467 #else
34468 # include <assert.h>
34469 #endif
34470
34471 #undef $ac_func
34472
34473 /* Override any gcc2 internal prototype to avoid an error.  */
34474 #ifdef __cplusplus
34475 extern "C"
34476 {
34477 #endif
34478 /* We use char because int might match the return type of a gcc2
34479    builtin and then its argument prototype would still apply.  */
34480 char $ac_func ();
34481 /* The GNU C library defines this for functions which it implements
34482     to always fail with ENOSYS.  Some functions are actually named
34483     something starting with __ and the normal name is an alias.  */
34484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34485 choke me
34486 #else
34487 char (*f) () = $ac_func;
34488 #endif
34489 #ifdef __cplusplus
34490 }
34491 #endif
34492
34493 int
34494 main ()
34495 {
34496 return f != $ac_func;
34497   ;
34498   return 0;
34499 }
34500 _ACEOF
34501 rm -f conftest.$ac_objext conftest$ac_exeext
34502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34503   (eval $ac_link) 2>conftest.er1
34504   ac_status=$?
34505   grep -v '^ *+' conftest.er1 >conftest.err
34506   rm -f conftest.er1
34507   cat conftest.err >&5
34508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34509   (exit $ac_status); } &&
34510          { ac_try='test -z "$ac_c_werror_flag"
34511                          || test ! -s conftest.err'
34512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34513   (eval $ac_try) 2>&5
34514   ac_status=$?
34515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34516   (exit $ac_status); }; } &&
34517          { ac_try='test -s conftest$ac_exeext'
34518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34519   (eval $ac_try) 2>&5
34520   ac_status=$?
34521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34522   (exit $ac_status); }; }; then
34523   eval "$as_ac_var=yes"
34524 else
34525   echo "$as_me: failed program was:" >&5
34526 sed 's/^/| /' conftest.$ac_ext >&5
34527
34528 eval "$as_ac_var=no"
34529 fi
34530 rm -f conftest.err conftest.$ac_objext \
34531       conftest$ac_exeext conftest.$ac_ext
34532 fi
34533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34535 if test `eval echo '${'$as_ac_var'}'` = yes; then
34536   cat >>confdefs.h <<_ACEOF
34537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34538 _ACEOF
34539
34540 fi
34541 done
34542
34543
34544
34545
34546 for ac_func in pthread_kill_other_threads_np
34547 do
34548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34549 echo "$as_me:$LINENO: checking for $ac_func" >&5
34550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34551 if eval "test \"\${$as_ac_var+set}\" = set"; then
34552   echo $ECHO_N "(cached) $ECHO_C" >&6
34553 else
34554   cat >conftest.$ac_ext <<_ACEOF
34555 /* confdefs.h.  */
34556 _ACEOF
34557 cat confdefs.h >>conftest.$ac_ext
34558 cat >>conftest.$ac_ext <<_ACEOF
34559 /* end confdefs.h.  */
34560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34561    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34562 #define $ac_func innocuous_$ac_func
34563
34564 /* System header to define __stub macros and hopefully few prototypes,
34565     which can conflict with char $ac_func (); below.
34566     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34567     <limits.h> exists even on freestanding compilers.  */
34568
34569 #ifdef __STDC__
34570 # include <limits.h>
34571 #else
34572 # include <assert.h>
34573 #endif
34574
34575 #undef $ac_func
34576
34577 /* Override any gcc2 internal prototype to avoid an error.  */
34578 #ifdef __cplusplus
34579 extern "C"
34580 {
34581 #endif
34582 /* We use char because int might match the return type of a gcc2
34583    builtin and then its argument prototype would still apply.  */
34584 char $ac_func ();
34585 /* The GNU C library defines this for functions which it implements
34586     to always fail with ENOSYS.  Some functions are actually named
34587     something starting with __ and the normal name is an alias.  */
34588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34589 choke me
34590 #else
34591 char (*f) () = $ac_func;
34592 #endif
34593 #ifdef __cplusplus
34594 }
34595 #endif
34596
34597 int
34598 main ()
34599 {
34600 return f != $ac_func;
34601   ;
34602   return 0;
34603 }
34604 _ACEOF
34605 rm -f conftest.$ac_objext conftest$ac_exeext
34606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34607   (eval $ac_link) 2>conftest.er1
34608   ac_status=$?
34609   grep -v '^ *+' conftest.er1 >conftest.err
34610   rm -f conftest.er1
34611   cat conftest.err >&5
34612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34613   (exit $ac_status); } &&
34614          { ac_try='test -z "$ac_c_werror_flag"
34615                          || test ! -s conftest.err'
34616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34617   (eval $ac_try) 2>&5
34618   ac_status=$?
34619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34620   (exit $ac_status); }; } &&
34621          { ac_try='test -s conftest$ac_exeext'
34622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34623   (eval $ac_try) 2>&5
34624   ac_status=$?
34625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34626   (exit $ac_status); }; }; then
34627   eval "$as_ac_var=yes"
34628 else
34629   echo "$as_me: failed program was:" >&5
34630 sed 's/^/| /' conftest.$ac_ext >&5
34631
34632 eval "$as_ac_var=no"
34633 fi
34634 rm -f conftest.err conftest.$ac_objext \
34635       conftest$ac_exeext conftest.$ac_ext
34636 fi
34637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34638 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34639 if test `eval echo '${'$as_ac_var'}'` = yes; then
34640   cat >>confdefs.h <<_ACEOF
34641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34642 _ACEOF
34643
34644 fi
34645 done
34646
34647         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34648 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34649 if test "${ol_cv_sys_linux_threads+set}" = set; then
34650   echo $ECHO_N "(cached) $ECHO_C" >&6
34651 else
34652   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34653 fi
34654 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34655 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34656
34657
34658
34659
34660         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34661 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34662 if test "${ol_cv_linux_threads+set}" = set; then
34663   echo $ECHO_N "(cached) $ECHO_C" >&6
34664 else
34665
34666                 if test $ol_cv_header_linux_threads = yes -a \
34667                         $ol_cv_sys_linux_threads = yes; then
34668                         ol_cv_linux_threads=yes
34669                 elif test $ol_cv_header_linux_threads = no -a \
34670                         $ol_cv_sys_linux_threads = no; then
34671                         ol_cv_linux_threads=no
34672                 else
34673                         ol_cv_linux_threads=error
34674                 fi
34675
34676 fi
34677 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34678 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34679
34680
34681                         if test $ol_cv_linux_threads = error; then
34682                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34683 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34684    { (exit 1); exit 1; }; };
34685                         fi
34686
34687                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34688 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34689 if test "${ol_cv_pthread_create_works+set}" = set; then
34690   echo $ECHO_N "(cached) $ECHO_C" >&6
34691 else
34692
34693                         if test "$cross_compiling" = yes; then
34694                                 ol_cv_pthread_create_works=yes
34695 else
34696   cat >conftest.$ac_ext <<_ACEOF
34697 /* confdefs.h.  */
34698 _ACEOF
34699 cat confdefs.h >>conftest.$ac_ext
34700 cat >>conftest.$ac_ext <<_ACEOF
34701 /* end confdefs.h.  */
34702 /* pthread test headers */
34703 #include <pthread.h>
34704 #if HAVE_PTHREADS < 7
34705 #include <errno.h>
34706 #endif
34707 #ifndef NULL
34708 #define NULL (void*)0
34709 #endif
34710
34711 static void *task(p)
34712         void *p;
34713 {
34714         return (void *) (p == NULL);
34715 }
34716
34717
34718 int main(argc, argv)
34719         int argc;
34720         char **argv;
34721 {
34722
34723         /* pthread test function */
34724 #ifndef PTHREAD_CREATE_DETACHED
34725 #define PTHREAD_CREATE_DETACHED 1
34726 #endif
34727         pthread_t t;
34728         int status;
34729         int detach = PTHREAD_CREATE_DETACHED;
34730
34731 #if HAVE_PTHREADS > 4
34732         /* Final pthreads */
34733         pthread_attr_t attr;
34734
34735         status = pthread_attr_init(&attr);
34736         if( status ) return status;
34737
34738 #if HAVE_PTHREADS < 7
34739         status = pthread_attr_setdetachstate(&attr, &detach);
34740         if( status < 0 ) status = errno;
34741 #else
34742         status = pthread_attr_setdetachstate(&attr, detach);
34743 #endif
34744         if( status ) return status;
34745         status = pthread_create( &t, &attr, task, NULL );
34746 #if HAVE_PTHREADS < 7
34747         if( status < 0 ) status = errno;
34748 #endif
34749         if( status ) return status;
34750 #else
34751         /* Draft 4 pthreads */
34752         status = pthread_create( &t, pthread_attr_default, task, NULL );
34753         if( status ) return errno;
34754
34755         /* give thread a chance to complete */
34756         /* it should remain joinable and hence detachable */
34757         sleep( 1 );
34758
34759         status = pthread_detach( &t );
34760         if( status ) return errno;
34761 #endif
34762
34763 #ifdef HAVE_LINUX_THREADS
34764         pthread_kill_other_threads_np();
34765 #endif
34766
34767         return 0;
34768
34769 }
34770
34771 _ACEOF
34772 rm -f conftest$ac_exeext
34773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34774   (eval $ac_link) 2>&5
34775   ac_status=$?
34776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34777   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34779   (eval $ac_try) 2>&5
34780   ac_status=$?
34781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34782   (exit $ac_status); }; }; then
34783   ol_cv_pthread_create_works=yes
34784 else
34785   echo "$as_me: program exited with status $ac_status" >&5
34786 echo "$as_me: failed program was:" >&5
34787 sed 's/^/| /' conftest.$ac_ext >&5
34788
34789 ( exit $ac_status )
34790 ol_cv_pthread_create_works=no
34791 fi
34792 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34793 fi
34794 fi
34795 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
34796 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
34797
34798                         if test $ol_cv_pthread_create_works = no ; then
34799                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
34800 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
34801    { (exit 1); exit 1; }; }
34802                         fi
34803
34804                                                 if test $ol_with_yielding_select = auto ; then
34805                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
34806 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
34807 if test "${ol_cv_pthread_select_yields+set}" = set; then
34808   echo $ECHO_N "(cached) $ECHO_C" >&6
34809 else
34810
34811                                 if test "$cross_compiling" = yes; then
34812   ol_cv_pthread_select_yields=cross
34813 else
34814   cat >conftest.$ac_ext <<_ACEOF
34815 /* confdefs.h.  */
34816 _ACEOF
34817 cat confdefs.h >>conftest.$ac_ext
34818 cat >>conftest.$ac_ext <<_ACEOF
34819 /* end confdefs.h.  */
34820
34821 #include <sys/types.h>
34822 #include <sys/time.h>
34823 #include <unistd.h>
34824 #include <pthread.h>
34825 #ifndef NULL
34826 #define NULL (void*) 0
34827 #endif
34828
34829 static int fildes[2];
34830
34831 static void *task(p)
34832         void *p;
34833 {
34834         int i;
34835         struct timeval tv;
34836
34837         fd_set rfds;
34838
34839         tv.tv_sec=10;
34840         tv.tv_usec=0;
34841
34842         FD_ZERO(&rfds);
34843         FD_SET(fildes[0], &rfds);
34844
34845         /* we're not interested in any fds */
34846         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
34847
34848         if(i < 0) {
34849                 perror("select");
34850                 exit(10);
34851         }
34852
34853         exit(0); /* if we exit here, the select blocked the whole process */
34854 }
34855
34856 int main(argc, argv)
34857         int argc;
34858         char **argv;
34859 {
34860         pthread_t t;
34861
34862         /* create a pipe to select */
34863         if(pipe(&fildes[0])) {
34864                 perror("select");
34865                 exit(1);
34866         }
34867
34868 #ifdef HAVE_PTHREAD_SETCONCURRENCY
34869         (void) pthread_setconcurrency(2);
34870 #else
34871 #ifdef HAVE_THR_SETCONCURRENCY
34872         /* Set Solaris LWP concurrency to 2 */
34873         thr_setconcurrency(2);
34874 #endif
34875 #endif
34876
34877 #if HAVE_PTHREADS < 6
34878         pthread_create(&t, pthread_attr_default, task, NULL);
34879 #else
34880         pthread_create(&t, NULL, task, NULL);
34881 #endif
34882
34883         /* make sure task runs first */
34884 #if HAVE_THR_YIELD
34885         thr_yield();
34886 #elif defined( HAVE_SCHED_YIELD )
34887         sched_yield();
34888 #elif defined( HAVE_PTHREAD_YIELD )
34889         pthread_yield();
34890 #endif
34891
34892         exit(2);
34893 }
34894 _ACEOF
34895 rm -f conftest$ac_exeext
34896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34897   (eval $ac_link) 2>&5
34898   ac_status=$?
34899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34900   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34902   (eval $ac_try) 2>&5
34903   ac_status=$?
34904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34905   (exit $ac_status); }; }; then
34906   ol_cv_pthread_select_yields=no
34907 else
34908   echo "$as_me: program exited with status $ac_status" >&5
34909 echo "$as_me: failed program was:" >&5
34910 sed 's/^/| /' conftest.$ac_ext >&5
34911
34912 ( exit $ac_status )
34913 ol_cv_pthread_select_yields=yes
34914 fi
34915 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34916 fi
34917 fi
34918 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
34919 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
34920
34921                                 if test $ol_cv_pthread_select_yields = cross ; then
34922                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
34923 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
34924    { (exit 1); exit 1; }; }
34925                                 fi
34926
34927                                 if test $ol_cv_pthread_select_yields = yes ; then
34928                                         ol_with_yielding_select=yes
34929                                 fi
34930                         fi
34931
34932                                                 CPPFLAGS="$save_CPPFLAGS"
34933                         LIBS="$save_LIBS"
34934                 else
34935                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
34936 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
34937    { (exit 1); exit 1; }; }
34938                 fi
34939         fi
34940
34941         if test $ol_with_threads = posix ; then
34942                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
34943 echo "$as_me: error: could not locate POSIX Threads" >&2;}
34944    { (exit 1); exit 1; }; }
34945         fi
34946 fi
34947
34948 if test $ol_with_threads = auto -o $ol_with_threads = yes \
34949         -o $ol_with_threads = mach ; then
34950
34951
34952
34953 for ac_header in mach/cthreads.h cthreads.h
34954 do
34955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34957   echo "$as_me:$LINENO: checking for $ac_header" >&5
34958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34960   echo $ECHO_N "(cached) $ECHO_C" >&6
34961 fi
34962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34964 else
34965   # Is the header compilable?
34966 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34968 cat >conftest.$ac_ext <<_ACEOF
34969 /* confdefs.h.  */
34970 _ACEOF
34971 cat confdefs.h >>conftest.$ac_ext
34972 cat >>conftest.$ac_ext <<_ACEOF
34973 /* end confdefs.h.  */
34974 $ac_includes_default
34975 #include <$ac_header>
34976 _ACEOF
34977 rm -f conftest.$ac_objext
34978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34979   (eval $ac_compile) 2>conftest.er1
34980   ac_status=$?
34981   grep -v '^ *+' conftest.er1 >conftest.err
34982   rm -f conftest.er1
34983   cat conftest.err >&5
34984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34985   (exit $ac_status); } &&
34986          { ac_try='test -z "$ac_c_werror_flag"
34987                          || test ! -s conftest.err'
34988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34989   (eval $ac_try) 2>&5
34990   ac_status=$?
34991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34992   (exit $ac_status); }; } &&
34993          { ac_try='test -s conftest.$ac_objext'
34994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34995   (eval $ac_try) 2>&5
34996   ac_status=$?
34997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34998   (exit $ac_status); }; }; then
34999   ac_header_compiler=yes
35000 else
35001   echo "$as_me: failed program was:" >&5
35002 sed 's/^/| /' conftest.$ac_ext >&5
35003
35004 ac_header_compiler=no
35005 fi
35006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35008 echo "${ECHO_T}$ac_header_compiler" >&6
35009
35010 # Is the header present?
35011 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35013 cat >conftest.$ac_ext <<_ACEOF
35014 /* confdefs.h.  */
35015 _ACEOF
35016 cat confdefs.h >>conftest.$ac_ext
35017 cat >>conftest.$ac_ext <<_ACEOF
35018 /* end confdefs.h.  */
35019 #include <$ac_header>
35020 _ACEOF
35021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35022   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35023   ac_status=$?
35024   grep -v '^ *+' conftest.er1 >conftest.err
35025   rm -f conftest.er1
35026   cat conftest.err >&5
35027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35028   (exit $ac_status); } >/dev/null; then
35029   if test -s conftest.err; then
35030     ac_cpp_err=$ac_c_preproc_warn_flag
35031     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35032   else
35033     ac_cpp_err=
35034   fi
35035 else
35036   ac_cpp_err=yes
35037 fi
35038 if test -z "$ac_cpp_err"; then
35039   ac_header_preproc=yes
35040 else
35041   echo "$as_me: failed program was:" >&5
35042 sed 's/^/| /' conftest.$ac_ext >&5
35043
35044   ac_header_preproc=no
35045 fi
35046 rm -f conftest.err conftest.$ac_ext
35047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35048 echo "${ECHO_T}$ac_header_preproc" >&6
35049
35050 # So?  What about this header?
35051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35052   yes:no: )
35053     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35057     ac_header_preproc=yes
35058     ;;
35059   no:yes:* )
35060     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35062     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35063 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35064     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35066     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35067 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35068     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35070     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35072     (
35073       cat <<\_ASBOX
35074 ## ------------------------------------------ ##
35075 ## Report this to the AC_PACKAGE_NAME lists.  ##
35076 ## ------------------------------------------ ##
35077 _ASBOX
35078     ) |
35079       sed "s/^/$as_me: WARNING:     /" >&2
35080     ;;
35081 esac
35082 echo "$as_me:$LINENO: checking for $ac_header" >&5
35083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35085   echo $ECHO_N "(cached) $ECHO_C" >&6
35086 else
35087   eval "$as_ac_Header=\$ac_header_preproc"
35088 fi
35089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35091
35092 fi
35093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35094   cat >>confdefs.h <<_ACEOF
35095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35096 _ACEOF
35097
35098 fi
35099
35100 done
35101
35102         if test $ac_cv_header_mach_cthreads_h = yes ; then
35103                 ol_with_threads=found
35104
35105                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35106 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35107 if test "${ac_cv_func_cthread_fork+set}" = set; then
35108   echo $ECHO_N "(cached) $ECHO_C" >&6
35109 else
35110   cat >conftest.$ac_ext <<_ACEOF
35111 /* confdefs.h.  */
35112 _ACEOF
35113 cat confdefs.h >>conftest.$ac_ext
35114 cat >>conftest.$ac_ext <<_ACEOF
35115 /* end confdefs.h.  */
35116 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35117    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35118 #define cthread_fork innocuous_cthread_fork
35119
35120 /* System header to define __stub macros and hopefully few prototypes,
35121     which can conflict with char cthread_fork (); below.
35122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35123     <limits.h> exists even on freestanding compilers.  */
35124
35125 #ifdef __STDC__
35126 # include <limits.h>
35127 #else
35128 # include <assert.h>
35129 #endif
35130
35131 #undef cthread_fork
35132
35133 /* Override any gcc2 internal prototype to avoid an error.  */
35134 #ifdef __cplusplus
35135 extern "C"
35136 {
35137 #endif
35138 /* We use char because int might match the return type of a gcc2
35139    builtin and then its argument prototype would still apply.  */
35140 char cthread_fork ();
35141 /* The GNU C library defines this for functions which it implements
35142     to always fail with ENOSYS.  Some functions are actually named
35143     something starting with __ and the normal name is an alias.  */
35144 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35145 choke me
35146 #else
35147 char (*f) () = cthread_fork;
35148 #endif
35149 #ifdef __cplusplus
35150 }
35151 #endif
35152
35153 int
35154 main ()
35155 {
35156 return f != cthread_fork;
35157   ;
35158   return 0;
35159 }
35160 _ACEOF
35161 rm -f conftest.$ac_objext conftest$ac_exeext
35162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35163   (eval $ac_link) 2>conftest.er1
35164   ac_status=$?
35165   grep -v '^ *+' conftest.er1 >conftest.err
35166   rm -f conftest.er1
35167   cat conftest.err >&5
35168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35169   (exit $ac_status); } &&
35170          { ac_try='test -z "$ac_c_werror_flag"
35171                          || test ! -s conftest.err'
35172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35173   (eval $ac_try) 2>&5
35174   ac_status=$?
35175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35176   (exit $ac_status); }; } &&
35177          { ac_try='test -s conftest$ac_exeext'
35178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35179   (eval $ac_try) 2>&5
35180   ac_status=$?
35181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35182   (exit $ac_status); }; }; then
35183   ac_cv_func_cthread_fork=yes
35184 else
35185   echo "$as_me: failed program was:" >&5
35186 sed 's/^/| /' conftest.$ac_ext >&5
35187
35188 ac_cv_func_cthread_fork=no
35189 fi
35190 rm -f conftest.err conftest.$ac_objext \
35191       conftest$ac_exeext conftest.$ac_ext
35192 fi
35193 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35194 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35195 if test $ac_cv_func_cthread_fork = yes; then
35196   ol_link_threads=yes
35197 fi
35198
35199
35200                 if test $ol_link_threads = no ; then
35201                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35202 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35203 if test "${ol_cv_cthread_all_load+set}" = set; then
35204   echo $ECHO_N "(cached) $ECHO_C" >&6
35205 else
35206
35207                                                                 save_LIBS="$LIBS"
35208                                 LIBS="-all_load $LIBS"
35209                                 cat >conftest.$ac_ext <<_ACEOF
35210 /* confdefs.h.  */
35211 _ACEOF
35212 cat confdefs.h >>conftest.$ac_ext
35213 cat >>conftest.$ac_ext <<_ACEOF
35214 /* end confdefs.h.  */
35215 #include <mach/cthreads.h>
35216 int
35217 main ()
35218 {
35219
35220                                         cthread_fork((void *)0, (void *)0);
35221
35222   ;
35223   return 0;
35224 }
35225 _ACEOF
35226 rm -f conftest.$ac_objext conftest$ac_exeext
35227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35228   (eval $ac_link) 2>conftest.er1
35229   ac_status=$?
35230   grep -v '^ *+' conftest.er1 >conftest.err
35231   rm -f conftest.er1
35232   cat conftest.err >&5
35233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35234   (exit $ac_status); } &&
35235          { ac_try='test -z "$ac_c_werror_flag"
35236                          || test ! -s conftest.err'
35237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35238   (eval $ac_try) 2>&5
35239   ac_status=$?
35240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35241   (exit $ac_status); }; } &&
35242          { ac_try='test -s conftest$ac_exeext'
35243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35244   (eval $ac_try) 2>&5
35245   ac_status=$?
35246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35247   (exit $ac_status); }; }; then
35248   ol_cv_cthread_all_load=yes
35249 else
35250   echo "$as_me: failed program was:" >&5
35251 sed 's/^/| /' conftest.$ac_ext >&5
35252
35253 ol_cv_cthread_all_load=no
35254 fi
35255 rm -f conftest.err conftest.$ac_objext \
35256       conftest$ac_exeext conftest.$ac_ext
35257                                                                 LIBS="$save_LIBS"
35258
35259 fi
35260 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35261 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35262
35263                         if test $ol_cv_cthread_all_load = yes ; then
35264                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35265                                 ol_link_threads=mach
35266                                 ol_with_threads=found
35267                         fi
35268                 fi
35269
35270         elif test $ac_cv_header_cthreads_h = yes ; then
35271
35272                 ol_with_threads=found
35273
35274                                 save_LIBS="$LIBS"
35275                 LIBS="$LIBS -lthreads"
35276                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35277 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35278 if test "${ac_cv_func_cthread_fork+set}" = set; then
35279   echo $ECHO_N "(cached) $ECHO_C" >&6
35280 else
35281   cat >conftest.$ac_ext <<_ACEOF
35282 /* confdefs.h.  */
35283 _ACEOF
35284 cat confdefs.h >>conftest.$ac_ext
35285 cat >>conftest.$ac_ext <<_ACEOF
35286 /* end confdefs.h.  */
35287 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35288    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35289 #define cthread_fork innocuous_cthread_fork
35290
35291 /* System header to define __stub macros and hopefully few prototypes,
35292     which can conflict with char cthread_fork (); below.
35293     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35294     <limits.h> exists even on freestanding compilers.  */
35295
35296 #ifdef __STDC__
35297 # include <limits.h>
35298 #else
35299 # include <assert.h>
35300 #endif
35301
35302 #undef cthread_fork
35303
35304 /* Override any gcc2 internal prototype to avoid an error.  */
35305 #ifdef __cplusplus
35306 extern "C"
35307 {
35308 #endif
35309 /* We use char because int might match the return type of a gcc2
35310    builtin and then its argument prototype would still apply.  */
35311 char cthread_fork ();
35312 /* The GNU C library defines this for functions which it implements
35313     to always fail with ENOSYS.  Some functions are actually named
35314     something starting with __ and the normal name is an alias.  */
35315 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35316 choke me
35317 #else
35318 char (*f) () = cthread_fork;
35319 #endif
35320 #ifdef __cplusplus
35321 }
35322 #endif
35323
35324 int
35325 main ()
35326 {
35327 return f != cthread_fork;
35328   ;
35329   return 0;
35330 }
35331 _ACEOF
35332 rm -f conftest.$ac_objext conftest$ac_exeext
35333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35334   (eval $ac_link) 2>conftest.er1
35335   ac_status=$?
35336   grep -v '^ *+' conftest.er1 >conftest.err
35337   rm -f conftest.er1
35338   cat conftest.err >&5
35339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35340   (exit $ac_status); } &&
35341          { ac_try='test -z "$ac_c_werror_flag"
35342                          || test ! -s conftest.err'
35343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35344   (eval $ac_try) 2>&5
35345   ac_status=$?
35346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35347   (exit $ac_status); }; } &&
35348          { ac_try='test -s conftest$ac_exeext'
35349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35350   (eval $ac_try) 2>&5
35351   ac_status=$?
35352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35353   (exit $ac_status); }; }; then
35354   ac_cv_func_cthread_fork=yes
35355 else
35356   echo "$as_me: failed program was:" >&5
35357 sed 's/^/| /' conftest.$ac_ext >&5
35358
35359 ac_cv_func_cthread_fork=no
35360 fi
35361 rm -f conftest.err conftest.$ac_objext \
35362       conftest$ac_exeext conftest.$ac_ext
35363 fi
35364 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35365 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35366 if test $ac_cv_func_cthread_fork = yes; then
35367   ol_link_threads=yes
35368 fi
35369
35370                 LIBS="$save_LIBS"
35371
35372                 if test $ol_link_threads = yes ; then
35373                         LTHREAD_LIBS="-lthreads"
35374                         ol_link_threads=mach
35375                         ol_with_threads=found
35376                 else
35377                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35378 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35379    { (exit 1); exit 1; }; }
35380                 fi
35381
35382         elif test $ol_with_threads = mach ; then
35383                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35384 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35385    { (exit 1); exit 1; }; }
35386         fi
35387
35388         if test $ol_link_threads = mach ; then
35389
35390 cat >>confdefs.h <<\_ACEOF
35391 #define HAVE_MACH_CTHREADS 1
35392 _ACEOF
35393
35394         elif test $ol_with_threads = found ; then
35395                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35396 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35397    { (exit 1); exit 1; }; }
35398         fi
35399 fi
35400
35401 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35402         -o $ol_with_threads = pth ; then
35403
35404
35405 for ac_header in pth.h
35406 do
35407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35409   echo "$as_me:$LINENO: checking for $ac_header" >&5
35410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35412   echo $ECHO_N "(cached) $ECHO_C" >&6
35413 fi
35414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35416 else
35417   # Is the header compilable?
35418 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35420 cat >conftest.$ac_ext <<_ACEOF
35421 /* confdefs.h.  */
35422 _ACEOF
35423 cat confdefs.h >>conftest.$ac_ext
35424 cat >>conftest.$ac_ext <<_ACEOF
35425 /* end confdefs.h.  */
35426 $ac_includes_default
35427 #include <$ac_header>
35428 _ACEOF
35429 rm -f conftest.$ac_objext
35430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35431   (eval $ac_compile) 2>conftest.er1
35432   ac_status=$?
35433   grep -v '^ *+' conftest.er1 >conftest.err
35434   rm -f conftest.er1
35435   cat conftest.err >&5
35436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35437   (exit $ac_status); } &&
35438          { ac_try='test -z "$ac_c_werror_flag"
35439                          || test ! -s conftest.err'
35440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35441   (eval $ac_try) 2>&5
35442   ac_status=$?
35443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35444   (exit $ac_status); }; } &&
35445          { ac_try='test -s conftest.$ac_objext'
35446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35447   (eval $ac_try) 2>&5
35448   ac_status=$?
35449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35450   (exit $ac_status); }; }; then
35451   ac_header_compiler=yes
35452 else
35453   echo "$as_me: failed program was:" >&5
35454 sed 's/^/| /' conftest.$ac_ext >&5
35455
35456 ac_header_compiler=no
35457 fi
35458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35460 echo "${ECHO_T}$ac_header_compiler" >&6
35461
35462 # Is the header present?
35463 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35465 cat >conftest.$ac_ext <<_ACEOF
35466 /* confdefs.h.  */
35467 _ACEOF
35468 cat confdefs.h >>conftest.$ac_ext
35469 cat >>conftest.$ac_ext <<_ACEOF
35470 /* end confdefs.h.  */
35471 #include <$ac_header>
35472 _ACEOF
35473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35474   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35475   ac_status=$?
35476   grep -v '^ *+' conftest.er1 >conftest.err
35477   rm -f conftest.er1
35478   cat conftest.err >&5
35479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35480   (exit $ac_status); } >/dev/null; then
35481   if test -s conftest.err; then
35482     ac_cpp_err=$ac_c_preproc_warn_flag
35483     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35484   else
35485     ac_cpp_err=
35486   fi
35487 else
35488   ac_cpp_err=yes
35489 fi
35490 if test -z "$ac_cpp_err"; then
35491   ac_header_preproc=yes
35492 else
35493   echo "$as_me: failed program was:" >&5
35494 sed 's/^/| /' conftest.$ac_ext >&5
35495
35496   ac_header_preproc=no
35497 fi
35498 rm -f conftest.err conftest.$ac_ext
35499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35500 echo "${ECHO_T}$ac_header_preproc" >&6
35501
35502 # So?  What about this header?
35503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35504   yes:no: )
35505     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35506 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35507     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35508 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35509     ac_header_preproc=yes
35510     ;;
35511   no:yes:* )
35512     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35514     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35515 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35516     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35517 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35518     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35519 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35520     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35522     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35523 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35524     (
35525       cat <<\_ASBOX
35526 ## ------------------------------------------ ##
35527 ## Report this to the AC_PACKAGE_NAME lists.  ##
35528 ## ------------------------------------------ ##
35529 _ASBOX
35530     ) |
35531       sed "s/^/$as_me: WARNING:     /" >&2
35532     ;;
35533 esac
35534 echo "$as_me:$LINENO: checking for $ac_header" >&5
35535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35537   echo $ECHO_N "(cached) $ECHO_C" >&6
35538 else
35539   eval "$as_ac_Header=\$ac_header_preproc"
35540 fi
35541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35543
35544 fi
35545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35546   cat >>confdefs.h <<_ACEOF
35547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35548 _ACEOF
35549
35550 fi
35551
35552 done
35553
35554
35555         if test $ac_cv_header_pth_h = yes ; then
35556                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35557 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35558 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35559   echo $ECHO_N "(cached) $ECHO_C" >&6
35560 else
35561   ac_check_lib_save_LIBS=$LIBS
35562 LIBS="-lpth  $LIBS"
35563 cat >conftest.$ac_ext <<_ACEOF
35564 /* confdefs.h.  */
35565 _ACEOF
35566 cat confdefs.h >>conftest.$ac_ext
35567 cat >>conftest.$ac_ext <<_ACEOF
35568 /* end confdefs.h.  */
35569
35570 /* Override any gcc2 internal prototype to avoid an error.  */
35571 #ifdef __cplusplus
35572 extern "C"
35573 #endif
35574 /* We use char because int might match the return type of a gcc2
35575    builtin and then its argument prototype would still apply.  */
35576 char pth_version ();
35577 int
35578 main ()
35579 {
35580 pth_version ();
35581   ;
35582   return 0;
35583 }
35584 _ACEOF
35585 rm -f conftest.$ac_objext conftest$ac_exeext
35586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35587   (eval $ac_link) 2>conftest.er1
35588   ac_status=$?
35589   grep -v '^ *+' conftest.er1 >conftest.err
35590   rm -f conftest.er1
35591   cat conftest.err >&5
35592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35593   (exit $ac_status); } &&
35594          { ac_try='test -z "$ac_c_werror_flag"
35595                          || test ! -s conftest.err'
35596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35597   (eval $ac_try) 2>&5
35598   ac_status=$?
35599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35600   (exit $ac_status); }; } &&
35601          { ac_try='test -s conftest$ac_exeext'
35602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35603   (eval $ac_try) 2>&5
35604   ac_status=$?
35605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35606   (exit $ac_status); }; }; then
35607   ac_cv_lib_pth_pth_version=yes
35608 else
35609   echo "$as_me: failed program was:" >&5
35610 sed 's/^/| /' conftest.$ac_ext >&5
35611
35612 ac_cv_lib_pth_pth_version=no
35613 fi
35614 rm -f conftest.err conftest.$ac_objext \
35615       conftest$ac_exeext conftest.$ac_ext
35616 LIBS=$ac_check_lib_save_LIBS
35617 fi
35618 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35619 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35620 if test $ac_cv_lib_pth_pth_version = yes; then
35621   have_pth=yes
35622 else
35623   have_pth=no
35624 fi
35625
35626
35627                 if test $have_pth = yes ; then
35628
35629 cat >>confdefs.h <<\_ACEOF
35630 #define HAVE_GNU_PTH 1
35631 _ACEOF
35632
35633                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35634                         ol_link_threads=pth
35635                         ol_with_threads=found
35636
35637                         if test $ol_with_yielding_select = auto ; then
35638                                 ol_with_yielding_select=yes
35639                         fi
35640                 fi
35641         fi
35642 fi
35643
35644 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35645         -o $ol_with_threads = lwp ; then
35646
35647
35648
35649 for ac_header in thread.h synch.h
35650 do
35651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35653   echo "$as_me:$LINENO: checking for $ac_header" >&5
35654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35656   echo $ECHO_N "(cached) $ECHO_C" >&6
35657 fi
35658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35660 else
35661   # Is the header compilable?
35662 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35664 cat >conftest.$ac_ext <<_ACEOF
35665 /* confdefs.h.  */
35666 _ACEOF
35667 cat confdefs.h >>conftest.$ac_ext
35668 cat >>conftest.$ac_ext <<_ACEOF
35669 /* end confdefs.h.  */
35670 $ac_includes_default
35671 #include <$ac_header>
35672 _ACEOF
35673 rm -f conftest.$ac_objext
35674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35675   (eval $ac_compile) 2>conftest.er1
35676   ac_status=$?
35677   grep -v '^ *+' conftest.er1 >conftest.err
35678   rm -f conftest.er1
35679   cat conftest.err >&5
35680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35681   (exit $ac_status); } &&
35682          { ac_try='test -z "$ac_c_werror_flag"
35683                          || test ! -s conftest.err'
35684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35685   (eval $ac_try) 2>&5
35686   ac_status=$?
35687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35688   (exit $ac_status); }; } &&
35689          { ac_try='test -s conftest.$ac_objext'
35690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35691   (eval $ac_try) 2>&5
35692   ac_status=$?
35693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35694   (exit $ac_status); }; }; then
35695   ac_header_compiler=yes
35696 else
35697   echo "$as_me: failed program was:" >&5
35698 sed 's/^/| /' conftest.$ac_ext >&5
35699
35700 ac_header_compiler=no
35701 fi
35702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35703 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35704 echo "${ECHO_T}$ac_header_compiler" >&6
35705
35706 # Is the header present?
35707 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35709 cat >conftest.$ac_ext <<_ACEOF
35710 /* confdefs.h.  */
35711 _ACEOF
35712 cat confdefs.h >>conftest.$ac_ext
35713 cat >>conftest.$ac_ext <<_ACEOF
35714 /* end confdefs.h.  */
35715 #include <$ac_header>
35716 _ACEOF
35717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35718   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35719   ac_status=$?
35720   grep -v '^ *+' conftest.er1 >conftest.err
35721   rm -f conftest.er1
35722   cat conftest.err >&5
35723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35724   (exit $ac_status); } >/dev/null; then
35725   if test -s conftest.err; then
35726     ac_cpp_err=$ac_c_preproc_warn_flag
35727     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35728   else
35729     ac_cpp_err=
35730   fi
35731 else
35732   ac_cpp_err=yes
35733 fi
35734 if test -z "$ac_cpp_err"; then
35735   ac_header_preproc=yes
35736 else
35737   echo "$as_me: failed program was:" >&5
35738 sed 's/^/| /' conftest.$ac_ext >&5
35739
35740   ac_header_preproc=no
35741 fi
35742 rm -f conftest.err conftest.$ac_ext
35743 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35744 echo "${ECHO_T}$ac_header_preproc" >&6
35745
35746 # So?  What about this header?
35747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35748   yes:no: )
35749     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35751     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35753     ac_header_preproc=yes
35754     ;;
35755   no:yes:* )
35756     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35758     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35759 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35760     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35762     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35763 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35766     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35768     (
35769       cat <<\_ASBOX
35770 ## ------------------------------------------ ##
35771 ## Report this to the AC_PACKAGE_NAME lists.  ##
35772 ## ------------------------------------------ ##
35773 _ASBOX
35774     ) |
35775       sed "s/^/$as_me: WARNING:     /" >&2
35776     ;;
35777 esac
35778 echo "$as_me:$LINENO: checking for $ac_header" >&5
35779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35781   echo $ECHO_N "(cached) $ECHO_C" >&6
35782 else
35783   eval "$as_ac_Header=\$ac_header_preproc"
35784 fi
35785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35787
35788 fi
35789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35790   cat >>confdefs.h <<_ACEOF
35791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35792 _ACEOF
35793
35794 fi
35795
35796 done
35797
35798         if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
35799                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
35800 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
35801 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
35802   echo $ECHO_N "(cached) $ECHO_C" >&6
35803 else
35804   ac_check_lib_save_LIBS=$LIBS
35805 LIBS="-lthread  $LIBS"
35806 cat >conftest.$ac_ext <<_ACEOF
35807 /* confdefs.h.  */
35808 _ACEOF
35809 cat confdefs.h >>conftest.$ac_ext
35810 cat >>conftest.$ac_ext <<_ACEOF
35811 /* end confdefs.h.  */
35812
35813 /* Override any gcc2 internal prototype to avoid an error.  */
35814 #ifdef __cplusplus
35815 extern "C"
35816 #endif
35817 /* We use char because int might match the return type of a gcc2
35818    builtin and then its argument prototype would still apply.  */
35819 char thr_create ();
35820 int
35821 main ()
35822 {
35823 thr_create ();
35824   ;
35825   return 0;
35826 }
35827 _ACEOF
35828 rm -f conftest.$ac_objext conftest$ac_exeext
35829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35830   (eval $ac_link) 2>conftest.er1
35831   ac_status=$?
35832   grep -v '^ *+' conftest.er1 >conftest.err
35833   rm -f conftest.er1
35834   cat conftest.err >&5
35835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35836   (exit $ac_status); } &&
35837          { ac_try='test -z "$ac_c_werror_flag"
35838                          || test ! -s conftest.err'
35839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35840   (eval $ac_try) 2>&5
35841   ac_status=$?
35842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35843   (exit $ac_status); }; } &&
35844          { ac_try='test -s conftest$ac_exeext'
35845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35846   (eval $ac_try) 2>&5
35847   ac_status=$?
35848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35849   (exit $ac_status); }; }; then
35850   ac_cv_lib_thread_thr_create=yes
35851 else
35852   echo "$as_me: failed program was:" >&5
35853 sed 's/^/| /' conftest.$ac_ext >&5
35854
35855 ac_cv_lib_thread_thr_create=no
35856 fi
35857 rm -f conftest.err conftest.$ac_objext \
35858       conftest$ac_exeext conftest.$ac_ext
35859 LIBS=$ac_check_lib_save_LIBS
35860 fi
35861 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
35862 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
35863 if test $ac_cv_lib_thread_thr_create = yes; then
35864   have_thr=yes
35865 else
35866   have_thr=no
35867 fi
35868
35869
35870                 if test $have_thr = yes ; then
35871
35872 cat >>confdefs.h <<\_ACEOF
35873 #define HAVE_THR 1
35874 _ACEOF
35875
35876                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
35877                         ol_link_threads=thr
35878
35879                         if test $ol_with_yielding_select = auto ; then
35880                                 ol_with_yielding_select=yes
35881                         fi
35882
35883
35884
35885 for ac_func in \
35886                                 thr_setconcurrency \
35887                                 thr_getconcurrency \
35888
35889 do
35890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35891 echo "$as_me:$LINENO: checking for $ac_func" >&5
35892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35893 if eval "test \"\${$as_ac_var+set}\" = set"; then
35894   echo $ECHO_N "(cached) $ECHO_C" >&6
35895 else
35896   cat >conftest.$ac_ext <<_ACEOF
35897 /* confdefs.h.  */
35898 _ACEOF
35899 cat confdefs.h >>conftest.$ac_ext
35900 cat >>conftest.$ac_ext <<_ACEOF
35901 /* end confdefs.h.  */
35902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35903    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35904 #define $ac_func innocuous_$ac_func
35905
35906 /* System header to define __stub macros and hopefully few prototypes,
35907     which can conflict with char $ac_func (); below.
35908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35909     <limits.h> exists even on freestanding compilers.  */
35910
35911 #ifdef __STDC__
35912 # include <limits.h>
35913 #else
35914 # include <assert.h>
35915 #endif
35916
35917 #undef $ac_func
35918
35919 /* Override any gcc2 internal prototype to avoid an error.  */
35920 #ifdef __cplusplus
35921 extern "C"
35922 {
35923 #endif
35924 /* We use char because int might match the return type of a gcc2
35925    builtin and then its argument prototype would still apply.  */
35926 char $ac_func ();
35927 /* The GNU C library defines this for functions which it implements
35928     to always fail with ENOSYS.  Some functions are actually named
35929     something starting with __ and the normal name is an alias.  */
35930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35931 choke me
35932 #else
35933 char (*f) () = $ac_func;
35934 #endif
35935 #ifdef __cplusplus
35936 }
35937 #endif
35938
35939 int
35940 main ()
35941 {
35942 return f != $ac_func;
35943   ;
35944   return 0;
35945 }
35946 _ACEOF
35947 rm -f conftest.$ac_objext conftest$ac_exeext
35948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35949   (eval $ac_link) 2>conftest.er1
35950   ac_status=$?
35951   grep -v '^ *+' conftest.er1 >conftest.err
35952   rm -f conftest.er1
35953   cat conftest.err >&5
35954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35955   (exit $ac_status); } &&
35956          { ac_try='test -z "$ac_c_werror_flag"
35957                          || test ! -s conftest.err'
35958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35959   (eval $ac_try) 2>&5
35960   ac_status=$?
35961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35962   (exit $ac_status); }; } &&
35963          { ac_try='test -s conftest$ac_exeext'
35964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35965   (eval $ac_try) 2>&5
35966   ac_status=$?
35967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35968   (exit $ac_status); }; }; then
35969   eval "$as_ac_var=yes"
35970 else
35971   echo "$as_me: failed program was:" >&5
35972 sed 's/^/| /' conftest.$ac_ext >&5
35973
35974 eval "$as_ac_var=no"
35975 fi
35976 rm -f conftest.err conftest.$ac_objext \
35977       conftest$ac_exeext conftest.$ac_ext
35978 fi
35979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35981 if test `eval echo '${'$as_ac_var'}'` = yes; then
35982   cat >>confdefs.h <<_ACEOF
35983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35984 _ACEOF
35985
35986 fi
35987 done
35988
35989                 fi
35990         fi
35991
35992
35993 for ac_header in lwp/lwp.h
35994 do
35995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35997   echo "$as_me:$LINENO: checking for $ac_header" >&5
35998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36000   echo $ECHO_N "(cached) $ECHO_C" >&6
36001 fi
36002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36004 else
36005   # Is the header compilable?
36006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36008 cat >conftest.$ac_ext <<_ACEOF
36009 /* confdefs.h.  */
36010 _ACEOF
36011 cat confdefs.h >>conftest.$ac_ext
36012 cat >>conftest.$ac_ext <<_ACEOF
36013 /* end confdefs.h.  */
36014 $ac_includes_default
36015 #include <$ac_header>
36016 _ACEOF
36017 rm -f conftest.$ac_objext
36018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36019   (eval $ac_compile) 2>conftest.er1
36020   ac_status=$?
36021   grep -v '^ *+' conftest.er1 >conftest.err
36022   rm -f conftest.er1
36023   cat conftest.err >&5
36024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36025   (exit $ac_status); } &&
36026          { ac_try='test -z "$ac_c_werror_flag"
36027                          || test ! -s conftest.err'
36028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36029   (eval $ac_try) 2>&5
36030   ac_status=$?
36031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36032   (exit $ac_status); }; } &&
36033          { ac_try='test -s conftest.$ac_objext'
36034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36035   (eval $ac_try) 2>&5
36036   ac_status=$?
36037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36038   (exit $ac_status); }; }; then
36039   ac_header_compiler=yes
36040 else
36041   echo "$as_me: failed program was:" >&5
36042 sed 's/^/| /' conftest.$ac_ext >&5
36043
36044 ac_header_compiler=no
36045 fi
36046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36048 echo "${ECHO_T}$ac_header_compiler" >&6
36049
36050 # Is the header present?
36051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36053 cat >conftest.$ac_ext <<_ACEOF
36054 /* confdefs.h.  */
36055 _ACEOF
36056 cat confdefs.h >>conftest.$ac_ext
36057 cat >>conftest.$ac_ext <<_ACEOF
36058 /* end confdefs.h.  */
36059 #include <$ac_header>
36060 _ACEOF
36061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36062   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36063   ac_status=$?
36064   grep -v '^ *+' conftest.er1 >conftest.err
36065   rm -f conftest.er1
36066   cat conftest.err >&5
36067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36068   (exit $ac_status); } >/dev/null; then
36069   if test -s conftest.err; then
36070     ac_cpp_err=$ac_c_preproc_warn_flag
36071     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36072   else
36073     ac_cpp_err=
36074   fi
36075 else
36076   ac_cpp_err=yes
36077 fi
36078 if test -z "$ac_cpp_err"; then
36079   ac_header_preproc=yes
36080 else
36081   echo "$as_me: failed program was:" >&5
36082 sed 's/^/| /' conftest.$ac_ext >&5
36083
36084   ac_header_preproc=no
36085 fi
36086 rm -f conftest.err conftest.$ac_ext
36087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36088 echo "${ECHO_T}$ac_header_preproc" >&6
36089
36090 # So?  What about this header?
36091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36092   yes:no: )
36093     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36095     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36097     ac_header_preproc=yes
36098     ;;
36099   no:yes:* )
36100     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36102     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36103 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36104     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36106     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36107 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36108     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36110     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36112     (
36113       cat <<\_ASBOX
36114 ## ------------------------------------------ ##
36115 ## Report this to the AC_PACKAGE_NAME lists.  ##
36116 ## ------------------------------------------ ##
36117 _ASBOX
36118     ) |
36119       sed "s/^/$as_me: WARNING:     /" >&2
36120     ;;
36121 esac
36122 echo "$as_me:$LINENO: checking for $ac_header" >&5
36123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36125   echo $ECHO_N "(cached) $ECHO_C" >&6
36126 else
36127   eval "$as_ac_Header=\$ac_header_preproc"
36128 fi
36129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36131
36132 fi
36133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36134   cat >>confdefs.h <<_ACEOF
36135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36136 _ACEOF
36137
36138 fi
36139
36140 done
36141
36142         if test $ac_cv_header_lwp_lwp_h = yes ; then
36143                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36144 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36145 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36146   echo $ECHO_N "(cached) $ECHO_C" >&6
36147 else
36148   ac_check_lib_save_LIBS=$LIBS
36149 LIBS="-llwp  $LIBS"
36150 cat >conftest.$ac_ext <<_ACEOF
36151 /* confdefs.h.  */
36152 _ACEOF
36153 cat confdefs.h >>conftest.$ac_ext
36154 cat >>conftest.$ac_ext <<_ACEOF
36155 /* end confdefs.h.  */
36156
36157 /* Override any gcc2 internal prototype to avoid an error.  */
36158 #ifdef __cplusplus
36159 extern "C"
36160 #endif
36161 /* We use char because int might match the return type of a gcc2
36162    builtin and then its argument prototype would still apply.  */
36163 char lwp_create ();
36164 int
36165 main ()
36166 {
36167 lwp_create ();
36168   ;
36169   return 0;
36170 }
36171 _ACEOF
36172 rm -f conftest.$ac_objext conftest$ac_exeext
36173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36174   (eval $ac_link) 2>conftest.er1
36175   ac_status=$?
36176   grep -v '^ *+' conftest.er1 >conftest.err
36177   rm -f conftest.er1
36178   cat conftest.err >&5
36179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36180   (exit $ac_status); } &&
36181          { ac_try='test -z "$ac_c_werror_flag"
36182                          || test ! -s conftest.err'
36183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36184   (eval $ac_try) 2>&5
36185   ac_status=$?
36186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36187   (exit $ac_status); }; } &&
36188          { ac_try='test -s conftest$ac_exeext'
36189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36190   (eval $ac_try) 2>&5
36191   ac_status=$?
36192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36193   (exit $ac_status); }; }; then
36194   ac_cv_lib_lwp_lwp_create=yes
36195 else
36196   echo "$as_me: failed program was:" >&5
36197 sed 's/^/| /' conftest.$ac_ext >&5
36198
36199 ac_cv_lib_lwp_lwp_create=no
36200 fi
36201 rm -f conftest.err conftest.$ac_objext \
36202       conftest$ac_exeext conftest.$ac_ext
36203 LIBS=$ac_check_lib_save_LIBS
36204 fi
36205 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36206 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36207 if test $ac_cv_lib_lwp_lwp_create = yes; then
36208   have_lwp=yes
36209 else
36210   have_lwp=no
36211 fi
36212
36213
36214                 if test $have_lwp = yes ; then
36215
36216 cat >>confdefs.h <<\_ACEOF
36217 #define HAVE_LWP 1
36218 _ACEOF
36219
36220                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36221                         ol_link_threads=lwp
36222
36223                         if test $ol_with_yielding_select = auto ; then
36224                                 ol_with_yielding_select=no
36225                         fi
36226                 fi
36227         fi
36228 fi
36229
36230 if test $ol_with_yielding_select = yes ; then
36231
36232 cat >>confdefs.h <<\_ACEOF
36233 #define HAVE_YIELDING_SELECT 1
36234 _ACEOF
36235
36236 fi
36237
36238 if test $ol_with_threads = manual ; then
36239                 ol_link_threads=yes
36240
36241         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36242 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36243
36244
36245
36246 for ac_header in pthread.h sched.h
36247 do
36248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36250   echo "$as_me:$LINENO: checking for $ac_header" >&5
36251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36253   echo $ECHO_N "(cached) $ECHO_C" >&6
36254 fi
36255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36257 else
36258   # Is the header compilable?
36259 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36261 cat >conftest.$ac_ext <<_ACEOF
36262 /* confdefs.h.  */
36263 _ACEOF
36264 cat confdefs.h >>conftest.$ac_ext
36265 cat >>conftest.$ac_ext <<_ACEOF
36266 /* end confdefs.h.  */
36267 $ac_includes_default
36268 #include <$ac_header>
36269 _ACEOF
36270 rm -f conftest.$ac_objext
36271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36272   (eval $ac_compile) 2>conftest.er1
36273   ac_status=$?
36274   grep -v '^ *+' conftest.er1 >conftest.err
36275   rm -f conftest.er1
36276   cat conftest.err >&5
36277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36278   (exit $ac_status); } &&
36279          { ac_try='test -z "$ac_c_werror_flag"
36280                          || test ! -s conftest.err'
36281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36282   (eval $ac_try) 2>&5
36283   ac_status=$?
36284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36285   (exit $ac_status); }; } &&
36286          { ac_try='test -s conftest.$ac_objext'
36287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36288   (eval $ac_try) 2>&5
36289   ac_status=$?
36290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36291   (exit $ac_status); }; }; then
36292   ac_header_compiler=yes
36293 else
36294   echo "$as_me: failed program was:" >&5
36295 sed 's/^/| /' conftest.$ac_ext >&5
36296
36297 ac_header_compiler=no
36298 fi
36299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36301 echo "${ECHO_T}$ac_header_compiler" >&6
36302
36303 # Is the header present?
36304 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36306 cat >conftest.$ac_ext <<_ACEOF
36307 /* confdefs.h.  */
36308 _ACEOF
36309 cat confdefs.h >>conftest.$ac_ext
36310 cat >>conftest.$ac_ext <<_ACEOF
36311 /* end confdefs.h.  */
36312 #include <$ac_header>
36313 _ACEOF
36314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36315   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36316   ac_status=$?
36317   grep -v '^ *+' conftest.er1 >conftest.err
36318   rm -f conftest.er1
36319   cat conftest.err >&5
36320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36321   (exit $ac_status); } >/dev/null; then
36322   if test -s conftest.err; then
36323     ac_cpp_err=$ac_c_preproc_warn_flag
36324     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36325   else
36326     ac_cpp_err=
36327   fi
36328 else
36329   ac_cpp_err=yes
36330 fi
36331 if test -z "$ac_cpp_err"; then
36332   ac_header_preproc=yes
36333 else
36334   echo "$as_me: failed program was:" >&5
36335 sed 's/^/| /' conftest.$ac_ext >&5
36336
36337   ac_header_preproc=no
36338 fi
36339 rm -f conftest.err conftest.$ac_ext
36340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36341 echo "${ECHO_T}$ac_header_preproc" >&6
36342
36343 # So?  What about this header?
36344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36345   yes:no: )
36346     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36348     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36350     ac_header_preproc=yes
36351     ;;
36352   no:yes:* )
36353     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36355     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36356 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36357     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36359     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36360 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36361     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36363     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36365     (
36366       cat <<\_ASBOX
36367 ## ------------------------------------------ ##
36368 ## Report this to the AC_PACKAGE_NAME lists.  ##
36369 ## ------------------------------------------ ##
36370 _ASBOX
36371     ) |
36372       sed "s/^/$as_me: WARNING:     /" >&2
36373     ;;
36374 esac
36375 echo "$as_me:$LINENO: checking for $ac_header" >&5
36376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36378   echo $ECHO_N "(cached) $ECHO_C" >&6
36379 else
36380   eval "$as_ac_Header=\$ac_header_preproc"
36381 fi
36382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36384
36385 fi
36386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36387   cat >>confdefs.h <<_ACEOF
36388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36389 _ACEOF
36390
36391 fi
36392
36393 done
36394
36395
36396
36397 for ac_func in sched_yield pthread_yield
36398 do
36399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36400 echo "$as_me:$LINENO: checking for $ac_func" >&5
36401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36402 if eval "test \"\${$as_ac_var+set}\" = set"; then
36403   echo $ECHO_N "(cached) $ECHO_C" >&6
36404 else
36405   cat >conftest.$ac_ext <<_ACEOF
36406 /* confdefs.h.  */
36407 _ACEOF
36408 cat confdefs.h >>conftest.$ac_ext
36409 cat >>conftest.$ac_ext <<_ACEOF
36410 /* end confdefs.h.  */
36411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36412    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36413 #define $ac_func innocuous_$ac_func
36414
36415 /* System header to define __stub macros and hopefully few prototypes,
36416     which can conflict with char $ac_func (); below.
36417     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36418     <limits.h> exists even on freestanding compilers.  */
36419
36420 #ifdef __STDC__
36421 # include <limits.h>
36422 #else
36423 # include <assert.h>
36424 #endif
36425
36426 #undef $ac_func
36427
36428 /* Override any gcc2 internal prototype to avoid an error.  */
36429 #ifdef __cplusplus
36430 extern "C"
36431 {
36432 #endif
36433 /* We use char because int might match the return type of a gcc2
36434    builtin and then its argument prototype would still apply.  */
36435 char $ac_func ();
36436 /* The GNU C library defines this for functions which it implements
36437     to always fail with ENOSYS.  Some functions are actually named
36438     something starting with __ and the normal name is an alias.  */
36439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36440 choke me
36441 #else
36442 char (*f) () = $ac_func;
36443 #endif
36444 #ifdef __cplusplus
36445 }
36446 #endif
36447
36448 int
36449 main ()
36450 {
36451 return f != $ac_func;
36452   ;
36453   return 0;
36454 }
36455 _ACEOF
36456 rm -f conftest.$ac_objext conftest$ac_exeext
36457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36458   (eval $ac_link) 2>conftest.er1
36459   ac_status=$?
36460   grep -v '^ *+' conftest.er1 >conftest.err
36461   rm -f conftest.er1
36462   cat conftest.err >&5
36463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36464   (exit $ac_status); } &&
36465          { ac_try='test -z "$ac_c_werror_flag"
36466                          || test ! -s conftest.err'
36467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36468   (eval $ac_try) 2>&5
36469   ac_status=$?
36470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36471   (exit $ac_status); }; } &&
36472          { ac_try='test -s conftest$ac_exeext'
36473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36474   (eval $ac_try) 2>&5
36475   ac_status=$?
36476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36477   (exit $ac_status); }; }; then
36478   eval "$as_ac_var=yes"
36479 else
36480   echo "$as_me: failed program was:" >&5
36481 sed 's/^/| /' conftest.$ac_ext >&5
36482
36483 eval "$as_ac_var=no"
36484 fi
36485 rm -f conftest.err conftest.$ac_objext \
36486       conftest$ac_exeext conftest.$ac_ext
36487 fi
36488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36489 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36490 if test `eval echo '${'$as_ac_var'}'` = yes; then
36491   cat >>confdefs.h <<_ACEOF
36492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36493 _ACEOF
36494
36495 fi
36496 done
36497
36498
36499         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36500 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36501 if test "${ol_cv_header_linux_threads+set}" = set; then
36502   echo $ECHO_N "(cached) $ECHO_C" >&6
36503 else
36504   cat >conftest.$ac_ext <<_ACEOF
36505 /* confdefs.h.  */
36506 _ACEOF
36507 cat confdefs.h >>conftest.$ac_ext
36508 cat >>conftest.$ac_ext <<_ACEOF
36509 /* end confdefs.h.  */
36510 #include <pthread.h>
36511 _ACEOF
36512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36513   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36514   ol_cv_header_linux_threads=yes
36515 else
36516   ol_cv_header_linux_threads=no
36517 fi
36518 rm -f conftest*
36519
36520
36521 fi
36522 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36523 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36524         if test $ol_cv_header_linux_threads = yes; then
36525
36526 cat >>confdefs.h <<\_ACEOF
36527 #define HAVE_LINUX_THREADS 1
36528 _ACEOF
36529
36530         fi
36531
36532
36533
36534 for ac_header in mach/cthreads.h
36535 do
36536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36538   echo "$as_me:$LINENO: checking for $ac_header" >&5
36539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36541   echo $ECHO_N "(cached) $ECHO_C" >&6
36542 fi
36543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36545 else
36546   # Is the header compilable?
36547 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36549 cat >conftest.$ac_ext <<_ACEOF
36550 /* confdefs.h.  */
36551 _ACEOF
36552 cat confdefs.h >>conftest.$ac_ext
36553 cat >>conftest.$ac_ext <<_ACEOF
36554 /* end confdefs.h.  */
36555 $ac_includes_default
36556 #include <$ac_header>
36557 _ACEOF
36558 rm -f conftest.$ac_objext
36559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36560   (eval $ac_compile) 2>conftest.er1
36561   ac_status=$?
36562   grep -v '^ *+' conftest.er1 >conftest.err
36563   rm -f conftest.er1
36564   cat conftest.err >&5
36565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36566   (exit $ac_status); } &&
36567          { ac_try='test -z "$ac_c_werror_flag"
36568                          || test ! -s conftest.err'
36569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36570   (eval $ac_try) 2>&5
36571   ac_status=$?
36572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36573   (exit $ac_status); }; } &&
36574          { ac_try='test -s conftest.$ac_objext'
36575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36576   (eval $ac_try) 2>&5
36577   ac_status=$?
36578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36579   (exit $ac_status); }; }; then
36580   ac_header_compiler=yes
36581 else
36582   echo "$as_me: failed program was:" >&5
36583 sed 's/^/| /' conftest.$ac_ext >&5
36584
36585 ac_header_compiler=no
36586 fi
36587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36589 echo "${ECHO_T}$ac_header_compiler" >&6
36590
36591 # Is the header present?
36592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36594 cat >conftest.$ac_ext <<_ACEOF
36595 /* confdefs.h.  */
36596 _ACEOF
36597 cat confdefs.h >>conftest.$ac_ext
36598 cat >>conftest.$ac_ext <<_ACEOF
36599 /* end confdefs.h.  */
36600 #include <$ac_header>
36601 _ACEOF
36602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36603   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36604   ac_status=$?
36605   grep -v '^ *+' conftest.er1 >conftest.err
36606   rm -f conftest.er1
36607   cat conftest.err >&5
36608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36609   (exit $ac_status); } >/dev/null; then
36610   if test -s conftest.err; then
36611     ac_cpp_err=$ac_c_preproc_warn_flag
36612     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36613   else
36614     ac_cpp_err=
36615   fi
36616 else
36617   ac_cpp_err=yes
36618 fi
36619 if test -z "$ac_cpp_err"; then
36620   ac_header_preproc=yes
36621 else
36622   echo "$as_me: failed program was:" >&5
36623 sed 's/^/| /' conftest.$ac_ext >&5
36624
36625   ac_header_preproc=no
36626 fi
36627 rm -f conftest.err conftest.$ac_ext
36628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36629 echo "${ECHO_T}$ac_header_preproc" >&6
36630
36631 # So?  What about this header?
36632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36633   yes:no: )
36634     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36638     ac_header_preproc=yes
36639     ;;
36640   no:yes:* )
36641     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36643     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36644 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36645     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36647     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36648 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36651     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36653     (
36654       cat <<\_ASBOX
36655 ## ------------------------------------------ ##
36656 ## Report this to the AC_PACKAGE_NAME lists.  ##
36657 ## ------------------------------------------ ##
36658 _ASBOX
36659     ) |
36660       sed "s/^/$as_me: WARNING:     /" >&2
36661     ;;
36662 esac
36663 echo "$as_me:$LINENO: checking for $ac_header" >&5
36664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36666   echo $ECHO_N "(cached) $ECHO_C" >&6
36667 else
36668   eval "$as_ac_Header=\$ac_header_preproc"
36669 fi
36670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36672
36673 fi
36674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36675   cat >>confdefs.h <<_ACEOF
36676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36677 _ACEOF
36678
36679 fi
36680
36681 done
36682
36683
36684 for ac_header in lwp/lwp.h
36685 do
36686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36688   echo "$as_me:$LINENO: checking for $ac_header" >&5
36689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36691   echo $ECHO_N "(cached) $ECHO_C" >&6
36692 fi
36693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36695 else
36696   # Is the header compilable?
36697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36699 cat >conftest.$ac_ext <<_ACEOF
36700 /* confdefs.h.  */
36701 _ACEOF
36702 cat confdefs.h >>conftest.$ac_ext
36703 cat >>conftest.$ac_ext <<_ACEOF
36704 /* end confdefs.h.  */
36705 $ac_includes_default
36706 #include <$ac_header>
36707 _ACEOF
36708 rm -f conftest.$ac_objext
36709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36710   (eval $ac_compile) 2>conftest.er1
36711   ac_status=$?
36712   grep -v '^ *+' conftest.er1 >conftest.err
36713   rm -f conftest.er1
36714   cat conftest.err >&5
36715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36716   (exit $ac_status); } &&
36717          { ac_try='test -z "$ac_c_werror_flag"
36718                          || test ! -s conftest.err'
36719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36720   (eval $ac_try) 2>&5
36721   ac_status=$?
36722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36723   (exit $ac_status); }; } &&
36724          { ac_try='test -s conftest.$ac_objext'
36725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36726   (eval $ac_try) 2>&5
36727   ac_status=$?
36728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36729   (exit $ac_status); }; }; then
36730   ac_header_compiler=yes
36731 else
36732   echo "$as_me: failed program was:" >&5
36733 sed 's/^/| /' conftest.$ac_ext >&5
36734
36735 ac_header_compiler=no
36736 fi
36737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36739 echo "${ECHO_T}$ac_header_compiler" >&6
36740
36741 # Is the header present?
36742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36744 cat >conftest.$ac_ext <<_ACEOF
36745 /* confdefs.h.  */
36746 _ACEOF
36747 cat confdefs.h >>conftest.$ac_ext
36748 cat >>conftest.$ac_ext <<_ACEOF
36749 /* end confdefs.h.  */
36750 #include <$ac_header>
36751 _ACEOF
36752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36753   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36754   ac_status=$?
36755   grep -v '^ *+' conftest.er1 >conftest.err
36756   rm -f conftest.er1
36757   cat conftest.err >&5
36758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759   (exit $ac_status); } >/dev/null; then
36760   if test -s conftest.err; then
36761     ac_cpp_err=$ac_c_preproc_warn_flag
36762     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36763   else
36764     ac_cpp_err=
36765   fi
36766 else
36767   ac_cpp_err=yes
36768 fi
36769 if test -z "$ac_cpp_err"; then
36770   ac_header_preproc=yes
36771 else
36772   echo "$as_me: failed program was:" >&5
36773 sed 's/^/| /' conftest.$ac_ext >&5
36774
36775   ac_header_preproc=no
36776 fi
36777 rm -f conftest.err conftest.$ac_ext
36778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36779 echo "${ECHO_T}$ac_header_preproc" >&6
36780
36781 # So?  What about this header?
36782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36783   yes:no: )
36784     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36788     ac_header_preproc=yes
36789     ;;
36790   no:yes:* )
36791     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36793     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36794 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36795     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36797     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36798 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36801     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36803     (
36804       cat <<\_ASBOX
36805 ## ------------------------------------------ ##
36806 ## Report this to the AC_PACKAGE_NAME lists.  ##
36807 ## ------------------------------------------ ##
36808 _ASBOX
36809     ) |
36810       sed "s/^/$as_me: WARNING:     /" >&2
36811     ;;
36812 esac
36813 echo "$as_me:$LINENO: checking for $ac_header" >&5
36814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36816   echo $ECHO_N "(cached) $ECHO_C" >&6
36817 else
36818   eval "$as_ac_Header=\$ac_header_preproc"
36819 fi
36820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36822
36823 fi
36824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36825   cat >>confdefs.h <<_ACEOF
36826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36827 _ACEOF
36828
36829 fi
36830
36831 done
36832
36833
36834
36835 for ac_header in thread.h synch.h
36836 do
36837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36839   echo "$as_me:$LINENO: checking for $ac_header" >&5
36840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36842   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
36847   # Is the header compilable?
36848 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36850 cat >conftest.$ac_ext <<_ACEOF
36851 /* confdefs.h.  */
36852 _ACEOF
36853 cat confdefs.h >>conftest.$ac_ext
36854 cat >>conftest.$ac_ext <<_ACEOF
36855 /* end confdefs.h.  */
36856 $ac_includes_default
36857 #include <$ac_header>
36858 _ACEOF
36859 rm -f conftest.$ac_objext
36860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36861   (eval $ac_compile) 2>conftest.er1
36862   ac_status=$?
36863   grep -v '^ *+' conftest.er1 >conftest.err
36864   rm -f conftest.er1
36865   cat conftest.err >&5
36866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36867   (exit $ac_status); } &&
36868          { ac_try='test -z "$ac_c_werror_flag"
36869                          || test ! -s conftest.err'
36870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36871   (eval $ac_try) 2>&5
36872   ac_status=$?
36873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36874   (exit $ac_status); }; } &&
36875          { ac_try='test -s conftest.$ac_objext'
36876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36877   (eval $ac_try) 2>&5
36878   ac_status=$?
36879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36880   (exit $ac_status); }; }; then
36881   ac_header_compiler=yes
36882 else
36883   echo "$as_me: failed program was:" >&5
36884 sed 's/^/| /' conftest.$ac_ext >&5
36885
36886 ac_header_compiler=no
36887 fi
36888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36889 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36890 echo "${ECHO_T}$ac_header_compiler" >&6
36891
36892 # Is the header present?
36893 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36894 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36895 cat >conftest.$ac_ext <<_ACEOF
36896 /* confdefs.h.  */
36897 _ACEOF
36898 cat confdefs.h >>conftest.$ac_ext
36899 cat >>conftest.$ac_ext <<_ACEOF
36900 /* end confdefs.h.  */
36901 #include <$ac_header>
36902 _ACEOF
36903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36904   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36905   ac_status=$?
36906   grep -v '^ *+' conftest.er1 >conftest.err
36907   rm -f conftest.er1
36908   cat conftest.err >&5
36909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36910   (exit $ac_status); } >/dev/null; then
36911   if test -s conftest.err; then
36912     ac_cpp_err=$ac_c_preproc_warn_flag
36913     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36914   else
36915     ac_cpp_err=
36916   fi
36917 else
36918   ac_cpp_err=yes
36919 fi
36920 if test -z "$ac_cpp_err"; then
36921   ac_header_preproc=yes
36922 else
36923   echo "$as_me: failed program was:" >&5
36924 sed 's/^/| /' conftest.$ac_ext >&5
36925
36926   ac_header_preproc=no
36927 fi
36928 rm -f conftest.err conftest.$ac_ext
36929 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36930 echo "${ECHO_T}$ac_header_preproc" >&6
36931
36932 # So?  What about this header?
36933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36934   yes:no: )
36935     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36937     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36939     ac_header_preproc=yes
36940     ;;
36941   no:yes:* )
36942     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36944     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36945 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36946     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36948     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36949 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36950     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36952     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36954     (
36955       cat <<\_ASBOX
36956 ## ------------------------------------------ ##
36957 ## Report this to the AC_PACKAGE_NAME lists.  ##
36958 ## ------------------------------------------ ##
36959 _ASBOX
36960     ) |
36961       sed "s/^/$as_me: WARNING:     /" >&2
36962     ;;
36963 esac
36964 echo "$as_me:$LINENO: checking for $ac_header" >&5
36965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36967   echo $ECHO_N "(cached) $ECHO_C" >&6
36968 else
36969   eval "$as_ac_Header=\$ac_header_preproc"
36970 fi
36971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36973
36974 fi
36975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36976   cat >>confdefs.h <<_ACEOF
36977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36978 _ACEOF
36979
36980 fi
36981
36982 done
36983
36984 fi
36985
36986 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
36987                         cat >>confdefs.h <<\_ACEOF
36988 #define REENTRANT 1
36989 _ACEOF
36990
36991         cat >>confdefs.h <<\_ACEOF
36992 #define _REENTRANT 1
36993 _ACEOF
36994
36995         cat >>confdefs.h <<\_ACEOF
36996 #define THREAD_SAFE 1
36997 _ACEOF
36998
36999         cat >>confdefs.h <<\_ACEOF
37000 #define _THREAD_SAFE 1
37001 _ACEOF
37002
37003         cat >>confdefs.h <<\_ACEOF
37004 #define THREADSAFE 1
37005 _ACEOF
37006
37007         cat >>confdefs.h <<\_ACEOF
37008 #define _THREADSAFE 1
37009 _ACEOF
37010
37011         cat >>confdefs.h <<\_ACEOF
37012 #define _SGI_MP_SOURCE 1
37013 _ACEOF
37014
37015
37016                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
37017 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
37018 if test "${ol_cv_errno_thread_specific+set}" = set; then
37019   echo $ECHO_N "(cached) $ECHO_C" >&6
37020 else
37021
37022                 cat >conftest.$ac_ext <<_ACEOF
37023 /* confdefs.h.  */
37024 _ACEOF
37025 cat confdefs.h >>conftest.$ac_ext
37026 cat >>conftest.$ac_ext <<_ACEOF
37027 /* end confdefs.h.  */
37028 #include <errno.h>
37029 int
37030 main ()
37031 {
37032 errno = 0;
37033   ;
37034   return 0;
37035 }
37036 _ACEOF
37037 rm -f conftest.$ac_objext conftest$ac_exeext
37038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37039   (eval $ac_link) 2>conftest.er1
37040   ac_status=$?
37041   grep -v '^ *+' conftest.er1 >conftest.err
37042   rm -f conftest.er1
37043   cat conftest.err >&5
37044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37045   (exit $ac_status); } &&
37046          { ac_try='test -z "$ac_c_werror_flag"
37047                          || test ! -s conftest.err'
37048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37049   (eval $ac_try) 2>&5
37050   ac_status=$?
37051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37052   (exit $ac_status); }; } &&
37053          { ac_try='test -s conftest$ac_exeext'
37054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37055   (eval $ac_try) 2>&5
37056   ac_status=$?
37057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37058   (exit $ac_status); }; }; then
37059   ol_cv_errno_thread_specific=yes
37060 else
37061   echo "$as_me: failed program was:" >&5
37062 sed 's/^/| /' conftest.$ac_ext >&5
37063
37064 ol_cv_errno_thread_specific=no
37065 fi
37066 rm -f conftest.err conftest.$ac_objext \
37067       conftest$ac_exeext conftest.$ac_ext
37068
37069 fi
37070 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37071 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37072
37073                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37074 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37075 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37076   echo $ECHO_N "(cached) $ECHO_C" >&6
37077 else
37078
37079                 cat >conftest.$ac_ext <<_ACEOF
37080 /* confdefs.h.  */
37081 _ACEOF
37082 cat confdefs.h >>conftest.$ac_ext
37083 cat >>conftest.$ac_ext <<_ACEOF
37084 /* end confdefs.h.  */
37085 #include <netdb.h>
37086 int
37087 main ()
37088 {
37089 h_errno = 0;
37090   ;
37091   return 0;
37092 }
37093 _ACEOF
37094 rm -f conftest.$ac_objext conftest$ac_exeext
37095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37096   (eval $ac_link) 2>conftest.er1
37097   ac_status=$?
37098   grep -v '^ *+' conftest.er1 >conftest.err
37099   rm -f conftest.er1
37100   cat conftest.err >&5
37101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37102   (exit $ac_status); } &&
37103          { ac_try='test -z "$ac_c_werror_flag"
37104                          || test ! -s conftest.err'
37105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37106   (eval $ac_try) 2>&5
37107   ac_status=$?
37108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37109   (exit $ac_status); }; } &&
37110          { ac_try='test -s conftest$ac_exeext'
37111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37112   (eval $ac_try) 2>&5
37113   ac_status=$?
37114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37115   (exit $ac_status); }; }; then
37116   ol_cv_h_errno_thread_specific=yes
37117 else
37118   echo "$as_me: failed program was:" >&5
37119 sed 's/^/| /' conftest.$ac_ext >&5
37120
37121 ol_cv_h_errno_thread_specific=no
37122 fi
37123 rm -f conftest.err conftest.$ac_objext \
37124       conftest$ac_exeext conftest.$ac_ext
37125
37126 fi
37127 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37128 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37129
37130         if test $ol_cv_errno_thread_specific != yes \
37131                 -o $ol_cv_h_errno_thread_specific != yes ; then
37132                 LIBS="$LTHREAD_LIBS $LIBS"
37133                 LTHREAD_LIBS=""
37134         fi
37135
37136 fi
37137
37138 if test $ol_link_threads = no ; then
37139         if test $ol_with_threads = yes ; then
37140                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37141 echo "$as_me: error: no suitable thread support" >&2;}
37142    { (exit 1); exit 1; }; }
37143         fi
37144
37145         if test $ol_with_threads = auto ; then
37146                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37147 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37148                 ol_with_threads=no
37149         fi
37150
37151
37152 cat >>confdefs.h <<\_ACEOF
37153 #define NO_THREADS 1
37154 _ACEOF
37155
37156         LTHREAD_LIBS=""
37157 fi
37158
37159 if test $ol_link_threads != no ; then
37160         cat >>confdefs.h <<\_ACEOF
37161 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37162 _ACEOF
37163
37164 fi
37165
37166
37167
37168
37169 for ac_func in \
37170         ctime_r                 \
37171         gethostbyname_r gethostbyaddr_r \
37172
37173 do
37174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37175 echo "$as_me:$LINENO: checking for $ac_func" >&5
37176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37177 if eval "test \"\${$as_ac_var+set}\" = set"; then
37178   echo $ECHO_N "(cached) $ECHO_C" >&6
37179 else
37180   cat >conftest.$ac_ext <<_ACEOF
37181 /* confdefs.h.  */
37182 _ACEOF
37183 cat confdefs.h >>conftest.$ac_ext
37184 cat >>conftest.$ac_ext <<_ACEOF
37185 /* end confdefs.h.  */
37186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37188 #define $ac_func innocuous_$ac_func
37189
37190 /* System header to define __stub macros and hopefully few prototypes,
37191     which can conflict with char $ac_func (); below.
37192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37193     <limits.h> exists even on freestanding compilers.  */
37194
37195 #ifdef __STDC__
37196 # include <limits.h>
37197 #else
37198 # include <assert.h>
37199 #endif
37200
37201 #undef $ac_func
37202
37203 /* Override any gcc2 internal prototype to avoid an error.  */
37204 #ifdef __cplusplus
37205 extern "C"
37206 {
37207 #endif
37208 /* We use char because int might match the return type of a gcc2
37209    builtin and then its argument prototype would still apply.  */
37210 char $ac_func ();
37211 /* The GNU C library defines this for functions which it implements
37212     to always fail with ENOSYS.  Some functions are actually named
37213     something starting with __ and the normal name is an alias.  */
37214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37215 choke me
37216 #else
37217 char (*f) () = $ac_func;
37218 #endif
37219 #ifdef __cplusplus
37220 }
37221 #endif
37222
37223 int
37224 main ()
37225 {
37226 return f != $ac_func;
37227   ;
37228   return 0;
37229 }
37230 _ACEOF
37231 rm -f conftest.$ac_objext conftest$ac_exeext
37232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37233   (eval $ac_link) 2>conftest.er1
37234   ac_status=$?
37235   grep -v '^ *+' conftest.er1 >conftest.err
37236   rm -f conftest.er1
37237   cat conftest.err >&5
37238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37239   (exit $ac_status); } &&
37240          { ac_try='test -z "$ac_c_werror_flag"
37241                          || test ! -s conftest.err'
37242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37243   (eval $ac_try) 2>&5
37244   ac_status=$?
37245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37246   (exit $ac_status); }; } &&
37247          { ac_try='test -s conftest$ac_exeext'
37248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37249   (eval $ac_try) 2>&5
37250   ac_status=$?
37251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37252   (exit $ac_status); }; }; then
37253   eval "$as_ac_var=yes"
37254 else
37255   echo "$as_me: failed program was:" >&5
37256 sed 's/^/| /' conftest.$ac_ext >&5
37257
37258 eval "$as_ac_var=no"
37259 fi
37260 rm -f conftest.err conftest.$ac_objext \
37261       conftest$ac_exeext conftest.$ac_ext
37262 fi
37263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37265 if test `eval echo '${'$as_ac_var'}'` = yes; then
37266   cat >>confdefs.h <<_ACEOF
37267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37268 _ACEOF
37269
37270 fi
37271 done
37272
37273
37274 if test "$ac_cv_func_ctime_r" = no ; then
37275         ol_cv_func_ctime_r_nargs=0
37276 else
37277         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37278 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37279 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37280   echo $ECHO_N "(cached) $ECHO_C" >&6
37281 else
37282   cat >conftest.$ac_ext <<_ACEOF
37283 /* confdefs.h.  */
37284 _ACEOF
37285 cat confdefs.h >>conftest.$ac_ext
37286 cat >>conftest.$ac_ext <<_ACEOF
37287 /* end confdefs.h.  */
37288 #include <time.h>
37289 int
37290 main ()
37291 {
37292 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37293   ;
37294   return 0;
37295 }
37296 _ACEOF
37297 rm -f conftest.$ac_objext
37298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37299   (eval $ac_compile) 2>conftest.er1
37300   ac_status=$?
37301   grep -v '^ *+' conftest.er1 >conftest.err
37302   rm -f conftest.er1
37303   cat conftest.err >&5
37304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37305   (exit $ac_status); } &&
37306          { ac_try='test -z "$ac_c_werror_flag"
37307                          || test ! -s conftest.err'
37308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37309   (eval $ac_try) 2>&5
37310   ac_status=$?
37311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37312   (exit $ac_status); }; } &&
37313          { ac_try='test -s conftest.$ac_objext'
37314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37315   (eval $ac_try) 2>&5
37316   ac_status=$?
37317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37318   (exit $ac_status); }; }; then
37319   ol_cv_func_ctime_r_nargs3=yes
37320 else
37321   echo "$as_me: failed program was:" >&5
37322 sed 's/^/| /' conftest.$ac_ext >&5
37323
37324 ol_cv_func_ctime_r_nargs3=no
37325 fi
37326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37327
37328         cat >conftest.$ac_ext <<_ACEOF
37329 /* confdefs.h.  */
37330 _ACEOF
37331 cat confdefs.h >>conftest.$ac_ext
37332 cat >>conftest.$ac_ext <<_ACEOF
37333 /* end confdefs.h.  */
37334 #include <time.h>
37335 int
37336 main ()
37337 {
37338 time_t ti; char *buffer; ctime_r(&ti,buffer);
37339   ;
37340   return 0;
37341 }
37342 _ACEOF
37343 rm -f conftest.$ac_objext
37344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37345   (eval $ac_compile) 2>conftest.er1
37346   ac_status=$?
37347   grep -v '^ *+' conftest.er1 >conftest.err
37348   rm -f conftest.er1
37349   cat conftest.err >&5
37350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37351   (exit $ac_status); } &&
37352          { ac_try='test -z "$ac_c_werror_flag"
37353                          || test ! -s conftest.err'
37354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37355   (eval $ac_try) 2>&5
37356   ac_status=$?
37357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37358   (exit $ac_status); }; } &&
37359          { ac_try='test -s conftest.$ac_objext'
37360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37361   (eval $ac_try) 2>&5
37362   ac_status=$?
37363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37364   (exit $ac_status); }; }; then
37365   ol_cv_func_ctime_r_nargs2=yes
37366 else
37367   echo "$as_me: failed program was:" >&5
37368 sed 's/^/| /' conftest.$ac_ext >&5
37369
37370 ol_cv_func_ctime_r_nargs2=no
37371 fi
37372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37373
37374         if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37375                 $ol_cv_func_ctime_r_nargs2 = no ; then
37376
37377                 ol_cv_func_ctime_r_nargs=3
37378
37379         elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37380                 $ol_cv_func_ctime_r_nargs2 = yes ; then
37381
37382                 ol_cv_func_ctime_r_nargs=2
37383
37384         else
37385                 ol_cv_func_ctime_r_nargs=0
37386         fi
37387
37388 fi
37389 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37390 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37391
37392   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37393
37394 cat >>confdefs.h <<_ACEOF
37395 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37396 _ACEOF
37397
37398   fi
37399
37400 fi
37401
37402 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37403         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37404 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37405 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37406   echo $ECHO_N "(cached) $ECHO_C" >&6
37407 else
37408   cat >conftest.$ac_ext <<_ACEOF
37409 /* confdefs.h.  */
37410 _ACEOF
37411 cat confdefs.h >>conftest.$ac_ext
37412 cat >>conftest.$ac_ext <<_ACEOF
37413 /* end confdefs.h.  */
37414 #include <sys/types.h>
37415 #include <sys/socket.h>
37416 #include <netinet/in.h>
37417 #include <netdb.h>
37418 #define BUFSIZE (sizeof(struct hostent)+10)
37419 int
37420 main ()
37421 {
37422 struct hostent hent; char buffer[BUFSIZE];
37423                 int bufsize=BUFSIZE;int h_errno;
37424                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37425                         buffer, bufsize, &h_errno);
37426   ;
37427   return 0;
37428 }
37429 _ACEOF
37430 rm -f conftest.$ac_objext
37431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37432   (eval $ac_compile) 2>conftest.er1
37433   ac_status=$?
37434   grep -v '^ *+' conftest.er1 >conftest.err
37435   rm -f conftest.er1
37436   cat conftest.err >&5
37437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37438   (exit $ac_status); } &&
37439          { ac_try='test -z "$ac_c_werror_flag"
37440                          || test ! -s conftest.err'
37441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37442   (eval $ac_try) 2>&5
37443   ac_status=$?
37444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37445   (exit $ac_status); }; } &&
37446          { ac_try='test -s conftest.$ac_objext'
37447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37448   (eval $ac_try) 2>&5
37449   ac_status=$?
37450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37451   (exit $ac_status); }; }; then
37452   ol_cv_func_gethostbyname_r_nargs5=yes
37453 else
37454   echo "$as_me: failed program was:" >&5
37455 sed 's/^/| /' conftest.$ac_ext >&5
37456
37457 ol_cv_func_gethostbyname_r_nargs5=no
37458 fi
37459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37460
37461         cat >conftest.$ac_ext <<_ACEOF
37462 /* confdefs.h.  */
37463 _ACEOF
37464 cat confdefs.h >>conftest.$ac_ext
37465 cat >>conftest.$ac_ext <<_ACEOF
37466 /* end confdefs.h.  */
37467 #include <sys/types.h>
37468 #include <sys/socket.h>
37469 #include <netinet/in.h>
37470 #include <netdb.h>
37471 #define BUFSIZE (sizeof(struct hostent)+10)
37472 int
37473 main ()
37474 {
37475 struct hostent hent;struct hostent *rhent;
37476                 char buffer[BUFSIZE];
37477                 int bufsize=BUFSIZE;int h_errno;
37478                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37479                         &rhent, &h_errno);
37480   ;
37481   return 0;
37482 }
37483 _ACEOF
37484 rm -f conftest.$ac_objext
37485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37486   (eval $ac_compile) 2>conftest.er1
37487   ac_status=$?
37488   grep -v '^ *+' conftest.er1 >conftest.err
37489   rm -f conftest.er1
37490   cat conftest.err >&5
37491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37492   (exit $ac_status); } &&
37493          { ac_try='test -z "$ac_c_werror_flag"
37494                          || test ! -s conftest.err'
37495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37496   (eval $ac_try) 2>&5
37497   ac_status=$?
37498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37499   (exit $ac_status); }; } &&
37500          { ac_try='test -s conftest.$ac_objext'
37501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37502   (eval $ac_try) 2>&5
37503   ac_status=$?
37504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37505   (exit $ac_status); }; }; then
37506   ol_cv_func_gethostbyname_r_nargs6=yes
37507 else
37508   echo "$as_me: failed program was:" >&5
37509 sed 's/^/| /' conftest.$ac_ext >&5
37510
37511 ol_cv_func_gethostbyname_r_nargs6=no
37512 fi
37513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37514
37515         if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37516                 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37517
37518                 ol_cv_func_gethostbyname_r_nargs=5
37519
37520         elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37521                 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37522
37523                 ol_cv_func_gethostbyname_r_nargs=6
37524
37525         else
37526                 ol_cv_func_gethostbyname_r_nargs=0
37527         fi
37528
37529 fi
37530 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37531 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37532   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37533
37534 cat >>confdefs.h <<_ACEOF
37535 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37536 _ACEOF
37537
37538   fi
37539
37540 else
37541         ol_cv_func_gethostbyname_r_nargs=0
37542 fi
37543
37544 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37545         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37546 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37547 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37548   echo $ECHO_N "(cached) $ECHO_C" >&6
37549 else
37550   cat >conftest.$ac_ext <<_ACEOF
37551 /* confdefs.h.  */
37552 _ACEOF
37553 cat confdefs.h >>conftest.$ac_ext
37554 cat >>conftest.$ac_ext <<_ACEOF
37555 /* end confdefs.h.  */
37556 #include <sys/types.h>
37557 #include <sys/socket.h>
37558 #include <netinet/in.h>
37559 #include <netdb.h>
37560 #define BUFSIZE (sizeof(struct hostent)+10)
37561 int
37562 main ()
37563 {
37564 struct hostent hent; char buffer[BUFSIZE];
37565             struct in_addr add;
37566             size_t alen=sizeof(struct in_addr);
37567             int bufsize=BUFSIZE;int h_errno;
37568                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37569                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37570   ;
37571   return 0;
37572 }
37573 _ACEOF
37574 rm -f conftest.$ac_objext
37575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37576   (eval $ac_compile) 2>conftest.er1
37577   ac_status=$?
37578   grep -v '^ *+' conftest.er1 >conftest.err
37579   rm -f conftest.er1
37580   cat conftest.err >&5
37581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37582   (exit $ac_status); } &&
37583          { ac_try='test -z "$ac_c_werror_flag"
37584                          || test ! -s conftest.err'
37585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37586   (eval $ac_try) 2>&5
37587   ac_status=$?
37588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37589   (exit $ac_status); }; } &&
37590          { ac_try='test -s conftest.$ac_objext'
37591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37592   (eval $ac_try) 2>&5
37593   ac_status=$?
37594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37595   (exit $ac_status); }; }; then
37596   ol_cv_func_gethostbyaddr_r_nargs7=yes
37597 else
37598   echo "$as_me: failed program was:" >&5
37599 sed 's/^/| /' conftest.$ac_ext >&5
37600
37601 ol_cv_func_gethostbyaddr_r_nargs7=no
37602 fi
37603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37604
37605         cat >conftest.$ac_ext <<_ACEOF
37606 /* confdefs.h.  */
37607 _ACEOF
37608 cat confdefs.h >>conftest.$ac_ext
37609 cat >>conftest.$ac_ext <<_ACEOF
37610 /* end confdefs.h.  */
37611 #include <sys/types.h>
37612 #include <sys/socket.h>
37613 #include <netinet/in.h>
37614 #include <netdb.h>
37615 #define BUFSIZE (sizeof(struct hostent)+10)
37616 int
37617 main ()
37618 {
37619 struct hostent hent;
37620                 struct hostent *rhent; char buffer[BUFSIZE];
37621                 struct in_addr add;
37622                 size_t alen=sizeof(struct in_addr);
37623                 int bufsize=BUFSIZE;int h_errno;
37624                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37625                         alen, AF_INET, &hent, buffer, bufsize,
37626                         &rhent, &h_errno);
37627   ;
37628   return 0;
37629 }
37630 _ACEOF
37631 rm -f conftest.$ac_objext
37632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37633   (eval $ac_compile) 2>conftest.er1
37634   ac_status=$?
37635   grep -v '^ *+' conftest.er1 >conftest.err
37636   rm -f conftest.er1
37637   cat conftest.err >&5
37638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37639   (exit $ac_status); } &&
37640          { ac_try='test -z "$ac_c_werror_flag"
37641                          || test ! -s conftest.err'
37642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37643   (eval $ac_try) 2>&5
37644   ac_status=$?
37645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37646   (exit $ac_status); }; } &&
37647          { ac_try='test -s conftest.$ac_objext'
37648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37649   (eval $ac_try) 2>&5
37650   ac_status=$?
37651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37652   (exit $ac_status); }; }; then
37653   ol_cv_func_gethostbyaddr_r_nargs8=yes
37654 else
37655   echo "$as_me: failed program was:" >&5
37656 sed 's/^/| /' conftest.$ac_ext >&5
37657
37658 ol_cv_func_gethostbyaddr_r_nargs8=no
37659 fi
37660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37661
37662         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37663                 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37664
37665                 ol_cv_func_gethostbyaddr_r_nargs=7
37666
37667         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37668                 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37669
37670                 ol_cv_func_gethostbyaddr_r_nargs=8
37671
37672         else
37673                 ol_cv_func_gethostbyaddr_r_nargs=0
37674         fi
37675
37676 fi
37677 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37678 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37679   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37680
37681 cat >>confdefs.h <<_ACEOF
37682 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37683 _ACEOF
37684
37685   fi
37686
37687 else
37688         ol_cv_func_gethostbyaddr_r_nargs=0
37689 fi
37690
37691 ol_link_ldbm=no
37692
37693 if test $ol_with_ldbm_api = auto \
37694         -o $ol_with_ldbm_api = berkeley \
37695         -o $ol_with_ldbm_api = bcompat ; then
37696
37697         if test $ol_with_ldbm_api = bcompat; then \
37698
37699
37700 for ac_header in db_185.h db.h
37701 do
37702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37704   echo "$as_me:$LINENO: checking for $ac_header" >&5
37705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37707   echo $ECHO_N "(cached) $ECHO_C" >&6
37708 fi
37709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37711 else
37712   # Is the header compilable?
37713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37715 cat >conftest.$ac_ext <<_ACEOF
37716 /* confdefs.h.  */
37717 _ACEOF
37718 cat confdefs.h >>conftest.$ac_ext
37719 cat >>conftest.$ac_ext <<_ACEOF
37720 /* end confdefs.h.  */
37721 $ac_includes_default
37722 #include <$ac_header>
37723 _ACEOF
37724 rm -f conftest.$ac_objext
37725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37726   (eval $ac_compile) 2>conftest.er1
37727   ac_status=$?
37728   grep -v '^ *+' conftest.er1 >conftest.err
37729   rm -f conftest.er1
37730   cat conftest.err >&5
37731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37732   (exit $ac_status); } &&
37733          { ac_try='test -z "$ac_c_werror_flag"
37734                          || test ! -s conftest.err'
37735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37736   (eval $ac_try) 2>&5
37737   ac_status=$?
37738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37739   (exit $ac_status); }; } &&
37740          { ac_try='test -s conftest.$ac_objext'
37741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37742   (eval $ac_try) 2>&5
37743   ac_status=$?
37744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37745   (exit $ac_status); }; }; then
37746   ac_header_compiler=yes
37747 else
37748   echo "$as_me: failed program was:" >&5
37749 sed 's/^/| /' conftest.$ac_ext >&5
37750
37751 ac_header_compiler=no
37752 fi
37753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37755 echo "${ECHO_T}$ac_header_compiler" >&6
37756
37757 # Is the header present?
37758 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37760 cat >conftest.$ac_ext <<_ACEOF
37761 /* confdefs.h.  */
37762 _ACEOF
37763 cat confdefs.h >>conftest.$ac_ext
37764 cat >>conftest.$ac_ext <<_ACEOF
37765 /* end confdefs.h.  */
37766 #include <$ac_header>
37767 _ACEOF
37768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37769   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37770   ac_status=$?
37771   grep -v '^ *+' conftest.er1 >conftest.err
37772   rm -f conftest.er1
37773   cat conftest.err >&5
37774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37775   (exit $ac_status); } >/dev/null; then
37776   if test -s conftest.err; then
37777     ac_cpp_err=$ac_c_preproc_warn_flag
37778     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37779   else
37780     ac_cpp_err=
37781   fi
37782 else
37783   ac_cpp_err=yes
37784 fi
37785 if test -z "$ac_cpp_err"; then
37786   ac_header_preproc=yes
37787 else
37788   echo "$as_me: failed program was:" >&5
37789 sed 's/^/| /' conftest.$ac_ext >&5
37790
37791   ac_header_preproc=no
37792 fi
37793 rm -f conftest.err conftest.$ac_ext
37794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37795 echo "${ECHO_T}$ac_header_preproc" >&6
37796
37797 # So?  What about this header?
37798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37799   yes:no: )
37800     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37802     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37804     ac_header_preproc=yes
37805     ;;
37806   no:yes:* )
37807     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37809     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37810 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37811     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37813     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37814 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37815     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37817     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37819     (
37820       cat <<\_ASBOX
37821 ## ------------------------------------------ ##
37822 ## Report this to the AC_PACKAGE_NAME lists.  ##
37823 ## ------------------------------------------ ##
37824 _ASBOX
37825     ) |
37826       sed "s/^/$as_me: WARNING:     /" >&2
37827     ;;
37828 esac
37829 echo "$as_me:$LINENO: checking for $ac_header" >&5
37830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37832   echo $ECHO_N "(cached) $ECHO_C" >&6
37833 else
37834   eval "$as_ac_Header=\$ac_header_preproc"
37835 fi
37836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37838
37839 fi
37840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37841   cat >>confdefs.h <<_ACEOF
37842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37843 _ACEOF
37844
37845 fi
37846
37847 done
37848
37849 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
37850         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
37851 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
37852 if test "${ol_cv_header_db1+set}" = set; then
37853   echo $ECHO_N "(cached) $ECHO_C" >&6
37854 else
37855
37856                 cat >conftest.$ac_ext <<_ACEOF
37857 /* confdefs.h.  */
37858 _ACEOF
37859 cat confdefs.h >>conftest.$ac_ext
37860 cat >>conftest.$ac_ext <<_ACEOF
37861 /* end confdefs.h.  */
37862
37863 #if HAVE_DB_185_H
37864 #       include <db_185.h>
37865 #else
37866 #       include <db.h>
37867 #endif
37868
37869  /* this check could be improved */
37870 #ifndef DB_VERSION_MAJOR
37871 #       define DB_VERSION_MAJOR 1
37872 #endif
37873
37874 #if DB_VERSION_MAJOR == 1
37875         __db_version_1
37876 #endif
37877
37878 _ACEOF
37879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37880   $EGREP "__db_version_1" >/dev/null 2>&1; then
37881   ol_cv_header_db1=yes
37882 else
37883   ol_cv_header_db1=no
37884 fi
37885 rm -f conftest*
37886
37887 fi
37888 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
37889 echo "${ECHO_T}$ol_cv_header_db1" >&6
37890
37891         if test $ol_cv_header_db1 = yes ; then
37892                 ol_cv_lib_db=no
37893 if test $ol_cv_lib_db = no ; then
37894         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
37895 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
37896 if test "${ol_cv_db_none+set}" = set; then
37897   echo $ECHO_N "(cached) $ECHO_C" >&6
37898 else
37899
37900         ol_DB_LIB=
37901         ol_LIBS=$LIBS
37902         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37903
37904         cat >conftest.$ac_ext <<_ACEOF
37905 /* confdefs.h.  */
37906 _ACEOF
37907 cat confdefs.h >>conftest.$ac_ext
37908 cat >>conftest.$ac_ext <<_ACEOF
37909 /* end confdefs.h.  */
37910
37911 #ifdef HAVE_DB_185_H
37912 # include <db_185.h>
37913 #else
37914 # include <db.h>
37915 #endif
37916
37917 #ifndef DB_VERSION_MAJOR
37918 # define DB_VERSION_MAJOR 1
37919 #endif
37920
37921 #ifndef NULL
37922 #define NULL ((void*)0)
37923 #endif
37924
37925 int
37926 main ()
37927 {
37928
37929 #if DB_VERSION_MAJOR > 1
37930         {
37931                 char *version;
37932                 int major, minor, patch;
37933
37934                 version = db_version( &major, &minor, &patch );
37935
37936                 if( major != DB_VERSION_MAJOR ||
37937                         minor < DB_VERSION_MINOR )
37938                 {
37939                         printf("Berkeley DB version mismatch\n"
37940                                 "\theader: %s\n\tlibrary: %s\n",
37941                                 DB_VERSION_STRING, version);
37942                         return 1;
37943                 }
37944         }
37945 #endif
37946
37947 #if DB_VERSION_MAJOR > 2
37948         db_env_create( NULL, 0 );
37949 #elif DB_VERSION_MAJOR > 1
37950         db_appexit( NULL );
37951 #else
37952         (void) dbopen( NULL, 0, 0, 0, NULL);
37953 #endif
37954
37955   ;
37956   return 0;
37957 }
37958 _ACEOF
37959 rm -f conftest.$ac_objext conftest$ac_exeext
37960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37961   (eval $ac_link) 2>conftest.er1
37962   ac_status=$?
37963   grep -v '^ *+' conftest.er1 >conftest.err
37964   rm -f conftest.er1
37965   cat conftest.err >&5
37966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37967   (exit $ac_status); } &&
37968          { ac_try='test -z "$ac_c_werror_flag"
37969                          || test ! -s conftest.err'
37970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37971   (eval $ac_try) 2>&5
37972   ac_status=$?
37973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37974   (exit $ac_status); }; } &&
37975          { ac_try='test -s conftest$ac_exeext'
37976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37977   (eval $ac_try) 2>&5
37978   ac_status=$?
37979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37980   (exit $ac_status); }; }; then
37981   ol_cv_db_none=yes
37982 else
37983   echo "$as_me: failed program was:" >&5
37984 sed 's/^/| /' conftest.$ac_ext >&5
37985
37986 ol_cv_db_none=no
37987 fi
37988 rm -f conftest.err conftest.$ac_objext \
37989       conftest$ac_exeext conftest.$ac_ext
37990
37991         LIBS="$ol_LIBS"
37992
37993 fi
37994 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
37995 echo "${ECHO_T}$ol_cv_db_none" >&6
37996
37997         if test $ol_cv_db_none = yes ; then
37998                 ol_cv_lib_db=yes
37999         fi
38000 fi
38001
38002 if test $ol_cv_lib_db = no ; then
38003         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
38004 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
38005 if test "${ol_cv_db_db43+set}" = set; then
38006   echo $ECHO_N "(cached) $ECHO_C" >&6
38007 else
38008
38009         ol_DB_LIB=-ldb43
38010         ol_LIBS=$LIBS
38011         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38012
38013         cat >conftest.$ac_ext <<_ACEOF
38014 /* confdefs.h.  */
38015 _ACEOF
38016 cat confdefs.h >>conftest.$ac_ext
38017 cat >>conftest.$ac_ext <<_ACEOF
38018 /* end confdefs.h.  */
38019
38020 #ifdef HAVE_DB_185_H
38021 # include <db_185.h>
38022 #else
38023 # include <db.h>
38024 #endif
38025
38026 #ifndef DB_VERSION_MAJOR
38027 # define DB_VERSION_MAJOR 1
38028 #endif
38029
38030 #ifndef NULL
38031 #define NULL ((void*)0)
38032 #endif
38033
38034 int
38035 main ()
38036 {
38037
38038 #if DB_VERSION_MAJOR > 1
38039         {
38040                 char *version;
38041                 int major, minor, patch;
38042
38043                 version = db_version( &major, &minor, &patch );
38044
38045                 if( major != DB_VERSION_MAJOR ||
38046                         minor < DB_VERSION_MINOR )
38047                 {
38048                         printf("Berkeley DB version mismatch\n"
38049                                 "\theader: %s\n\tlibrary: %s\n",
38050                                 DB_VERSION_STRING, version);
38051                         return 1;
38052                 }
38053         }
38054 #endif
38055
38056 #if DB_VERSION_MAJOR > 2
38057         db_env_create( NULL, 0 );
38058 #elif DB_VERSION_MAJOR > 1
38059         db_appexit( NULL );
38060 #else
38061         (void) dbopen( NULL, 0, 0, 0, NULL);
38062 #endif
38063
38064   ;
38065   return 0;
38066 }
38067 _ACEOF
38068 rm -f conftest.$ac_objext conftest$ac_exeext
38069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38070   (eval $ac_link) 2>conftest.er1
38071   ac_status=$?
38072   grep -v '^ *+' conftest.er1 >conftest.err
38073   rm -f conftest.er1
38074   cat conftest.err >&5
38075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38076   (exit $ac_status); } &&
38077          { ac_try='test -z "$ac_c_werror_flag"
38078                          || test ! -s conftest.err'
38079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38080   (eval $ac_try) 2>&5
38081   ac_status=$?
38082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38083   (exit $ac_status); }; } &&
38084          { ac_try='test -s conftest$ac_exeext'
38085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38086   (eval $ac_try) 2>&5
38087   ac_status=$?
38088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38089   (exit $ac_status); }; }; then
38090   ol_cv_db_db43=yes
38091 else
38092   echo "$as_me: failed program was:" >&5
38093 sed 's/^/| /' conftest.$ac_ext >&5
38094
38095 ol_cv_db_db43=no
38096 fi
38097 rm -f conftest.err conftest.$ac_objext \
38098       conftest$ac_exeext conftest.$ac_ext
38099
38100         LIBS="$ol_LIBS"
38101
38102 fi
38103 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38104 echo "${ECHO_T}$ol_cv_db_db43" >&6
38105
38106         if test $ol_cv_db_db43 = yes ; then
38107                 ol_cv_lib_db=-ldb43
38108         fi
38109 fi
38110
38111 if test $ol_cv_lib_db = no ; then
38112         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38113 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38114 if test "${ol_cv_db_db_43+set}" = set; then
38115   echo $ECHO_N "(cached) $ECHO_C" >&6
38116 else
38117
38118         ol_DB_LIB=-ldb-43
38119         ol_LIBS=$LIBS
38120         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38121
38122         cat >conftest.$ac_ext <<_ACEOF
38123 /* confdefs.h.  */
38124 _ACEOF
38125 cat confdefs.h >>conftest.$ac_ext
38126 cat >>conftest.$ac_ext <<_ACEOF
38127 /* end confdefs.h.  */
38128
38129 #ifdef HAVE_DB_185_H
38130 # include <db_185.h>
38131 #else
38132 # include <db.h>
38133 #endif
38134
38135 #ifndef DB_VERSION_MAJOR
38136 # define DB_VERSION_MAJOR 1
38137 #endif
38138
38139 #ifndef NULL
38140 #define NULL ((void*)0)
38141 #endif
38142
38143 int
38144 main ()
38145 {
38146
38147 #if DB_VERSION_MAJOR > 1
38148         {
38149                 char *version;
38150                 int major, minor, patch;
38151
38152                 version = db_version( &major, &minor, &patch );
38153
38154                 if( major != DB_VERSION_MAJOR ||
38155                         minor < DB_VERSION_MINOR )
38156                 {
38157                         printf("Berkeley DB version mismatch\n"
38158                                 "\theader: %s\n\tlibrary: %s\n",
38159                                 DB_VERSION_STRING, version);
38160                         return 1;
38161                 }
38162         }
38163 #endif
38164
38165 #if DB_VERSION_MAJOR > 2
38166         db_env_create( NULL, 0 );
38167 #elif DB_VERSION_MAJOR > 1
38168         db_appexit( NULL );
38169 #else
38170         (void) dbopen( NULL, 0, 0, 0, NULL);
38171 #endif
38172
38173   ;
38174   return 0;
38175 }
38176 _ACEOF
38177 rm -f conftest.$ac_objext conftest$ac_exeext
38178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38179   (eval $ac_link) 2>conftest.er1
38180   ac_status=$?
38181   grep -v '^ *+' conftest.er1 >conftest.err
38182   rm -f conftest.er1
38183   cat conftest.err >&5
38184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38185   (exit $ac_status); } &&
38186          { ac_try='test -z "$ac_c_werror_flag"
38187                          || test ! -s conftest.err'
38188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38189   (eval $ac_try) 2>&5
38190   ac_status=$?
38191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38192   (exit $ac_status); }; } &&
38193          { ac_try='test -s conftest$ac_exeext'
38194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38195   (eval $ac_try) 2>&5
38196   ac_status=$?
38197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38198   (exit $ac_status); }; }; then
38199   ol_cv_db_db_43=yes
38200 else
38201   echo "$as_me: failed program was:" >&5
38202 sed 's/^/| /' conftest.$ac_ext >&5
38203
38204 ol_cv_db_db_43=no
38205 fi
38206 rm -f conftest.err conftest.$ac_objext \
38207       conftest$ac_exeext conftest.$ac_ext
38208
38209         LIBS="$ol_LIBS"
38210
38211 fi
38212 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38213 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38214
38215         if test $ol_cv_db_db_43 = yes ; then
38216                 ol_cv_lib_db=-ldb-43
38217         fi
38218 fi
38219
38220 if test $ol_cv_lib_db = no ; then
38221         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38222 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38223 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38224   echo $ECHO_N "(cached) $ECHO_C" >&6
38225 else
38226
38227         ol_DB_LIB=-ldb-4.3
38228         ol_LIBS=$LIBS
38229         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38230
38231         cat >conftest.$ac_ext <<_ACEOF
38232 /* confdefs.h.  */
38233 _ACEOF
38234 cat confdefs.h >>conftest.$ac_ext
38235 cat >>conftest.$ac_ext <<_ACEOF
38236 /* end confdefs.h.  */
38237
38238 #ifdef HAVE_DB_185_H
38239 # include <db_185.h>
38240 #else
38241 # include <db.h>
38242 #endif
38243
38244 #ifndef DB_VERSION_MAJOR
38245 # define DB_VERSION_MAJOR 1
38246 #endif
38247
38248 #ifndef NULL
38249 #define NULL ((void*)0)
38250 #endif
38251
38252 int
38253 main ()
38254 {
38255
38256 #if DB_VERSION_MAJOR > 1
38257         {
38258                 char *version;
38259                 int major, minor, patch;
38260
38261                 version = db_version( &major, &minor, &patch );
38262
38263                 if( major != DB_VERSION_MAJOR ||
38264                         minor < DB_VERSION_MINOR )
38265                 {
38266                         printf("Berkeley DB version mismatch\n"
38267                                 "\theader: %s\n\tlibrary: %s\n",
38268                                 DB_VERSION_STRING, version);
38269                         return 1;
38270                 }
38271         }
38272 #endif
38273
38274 #if DB_VERSION_MAJOR > 2
38275         db_env_create( NULL, 0 );
38276 #elif DB_VERSION_MAJOR > 1
38277         db_appexit( NULL );
38278 #else
38279         (void) dbopen( NULL, 0, 0, 0, NULL);
38280 #endif
38281
38282   ;
38283   return 0;
38284 }
38285 _ACEOF
38286 rm -f conftest.$ac_objext conftest$ac_exeext
38287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38288   (eval $ac_link) 2>conftest.er1
38289   ac_status=$?
38290   grep -v '^ *+' conftest.er1 >conftest.err
38291   rm -f conftest.er1
38292   cat conftest.err >&5
38293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38294   (exit $ac_status); } &&
38295          { ac_try='test -z "$ac_c_werror_flag"
38296                          || test ! -s conftest.err'
38297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38298   (eval $ac_try) 2>&5
38299   ac_status=$?
38300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38301   (exit $ac_status); }; } &&
38302          { ac_try='test -s conftest$ac_exeext'
38303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38304   (eval $ac_try) 2>&5
38305   ac_status=$?
38306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38307   (exit $ac_status); }; }; then
38308   ol_cv_db_db_4_dot_3=yes
38309 else
38310   echo "$as_me: failed program was:" >&5
38311 sed 's/^/| /' conftest.$ac_ext >&5
38312
38313 ol_cv_db_db_4_dot_3=no
38314 fi
38315 rm -f conftest.err conftest.$ac_objext \
38316       conftest$ac_exeext conftest.$ac_ext
38317
38318         LIBS="$ol_LIBS"
38319
38320 fi
38321 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38322 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38323
38324         if test $ol_cv_db_db_4_dot_3 = yes ; then
38325                 ol_cv_lib_db=-ldb-4.3
38326         fi
38327 fi
38328
38329 if test $ol_cv_lib_db = no ; then
38330         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38331 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38332 if test "${ol_cv_db_db_4_3+set}" = set; then
38333   echo $ECHO_N "(cached) $ECHO_C" >&6
38334 else
38335
38336         ol_DB_LIB=-ldb-4-3
38337         ol_LIBS=$LIBS
38338         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38339
38340         cat >conftest.$ac_ext <<_ACEOF
38341 /* confdefs.h.  */
38342 _ACEOF
38343 cat confdefs.h >>conftest.$ac_ext
38344 cat >>conftest.$ac_ext <<_ACEOF
38345 /* end confdefs.h.  */
38346
38347 #ifdef HAVE_DB_185_H
38348 # include <db_185.h>
38349 #else
38350 # include <db.h>
38351 #endif
38352
38353 #ifndef DB_VERSION_MAJOR
38354 # define DB_VERSION_MAJOR 1
38355 #endif
38356
38357 #ifndef NULL
38358 #define NULL ((void*)0)
38359 #endif
38360
38361 int
38362 main ()
38363 {
38364
38365 #if DB_VERSION_MAJOR > 1
38366         {
38367                 char *version;
38368                 int major, minor, patch;
38369
38370                 version = db_version( &major, &minor, &patch );
38371
38372                 if( major != DB_VERSION_MAJOR ||
38373                         minor < DB_VERSION_MINOR )
38374                 {
38375                         printf("Berkeley DB version mismatch\n"
38376                                 "\theader: %s\n\tlibrary: %s\n",
38377                                 DB_VERSION_STRING, version);
38378                         return 1;
38379                 }
38380         }
38381 #endif
38382
38383 #if DB_VERSION_MAJOR > 2
38384         db_env_create( NULL, 0 );
38385 #elif DB_VERSION_MAJOR > 1
38386         db_appexit( NULL );
38387 #else
38388         (void) dbopen( NULL, 0, 0, 0, NULL);
38389 #endif
38390
38391   ;
38392   return 0;
38393 }
38394 _ACEOF
38395 rm -f conftest.$ac_objext conftest$ac_exeext
38396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38397   (eval $ac_link) 2>conftest.er1
38398   ac_status=$?
38399   grep -v '^ *+' conftest.er1 >conftest.err
38400   rm -f conftest.er1
38401   cat conftest.err >&5
38402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38403   (exit $ac_status); } &&
38404          { ac_try='test -z "$ac_c_werror_flag"
38405                          || test ! -s conftest.err'
38406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38407   (eval $ac_try) 2>&5
38408   ac_status=$?
38409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38410   (exit $ac_status); }; } &&
38411          { ac_try='test -s conftest$ac_exeext'
38412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38413   (eval $ac_try) 2>&5
38414   ac_status=$?
38415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38416   (exit $ac_status); }; }; then
38417   ol_cv_db_db_4_3=yes
38418 else
38419   echo "$as_me: failed program was:" >&5
38420 sed 's/^/| /' conftest.$ac_ext >&5
38421
38422 ol_cv_db_db_4_3=no
38423 fi
38424 rm -f conftest.err conftest.$ac_objext \
38425       conftest$ac_exeext conftest.$ac_ext
38426
38427         LIBS="$ol_LIBS"
38428
38429 fi
38430 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38431 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38432
38433         if test $ol_cv_db_db_4_3 = yes ; then
38434                 ol_cv_lib_db=-ldb-4-3
38435         fi
38436 fi
38437
38438 if test $ol_cv_lib_db = no ; then
38439         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38440 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38441 if test "${ol_cv_db_db42+set}" = set; then
38442   echo $ECHO_N "(cached) $ECHO_C" >&6
38443 else
38444
38445         ol_DB_LIB=-ldb42
38446         ol_LIBS=$LIBS
38447         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38448
38449         cat >conftest.$ac_ext <<_ACEOF
38450 /* confdefs.h.  */
38451 _ACEOF
38452 cat confdefs.h >>conftest.$ac_ext
38453 cat >>conftest.$ac_ext <<_ACEOF
38454 /* end confdefs.h.  */
38455
38456 #ifdef HAVE_DB_185_H
38457 # include <db_185.h>
38458 #else
38459 # include <db.h>
38460 #endif
38461
38462 #ifndef DB_VERSION_MAJOR
38463 # define DB_VERSION_MAJOR 1
38464 #endif
38465
38466 #ifndef NULL
38467 #define NULL ((void*)0)
38468 #endif
38469
38470 int
38471 main ()
38472 {
38473
38474 #if DB_VERSION_MAJOR > 1
38475         {
38476                 char *version;
38477                 int major, minor, patch;
38478
38479                 version = db_version( &major, &minor, &patch );
38480
38481                 if( major != DB_VERSION_MAJOR ||
38482                         minor < DB_VERSION_MINOR )
38483                 {
38484                         printf("Berkeley DB version mismatch\n"
38485                                 "\theader: %s\n\tlibrary: %s\n",
38486                                 DB_VERSION_STRING, version);
38487                         return 1;
38488                 }
38489         }
38490 #endif
38491
38492 #if DB_VERSION_MAJOR > 2
38493         db_env_create( NULL, 0 );
38494 #elif DB_VERSION_MAJOR > 1
38495         db_appexit( NULL );
38496 #else
38497         (void) dbopen( NULL, 0, 0, 0, NULL);
38498 #endif
38499
38500   ;
38501   return 0;
38502 }
38503 _ACEOF
38504 rm -f conftest.$ac_objext conftest$ac_exeext
38505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38506   (eval $ac_link) 2>conftest.er1
38507   ac_status=$?
38508   grep -v '^ *+' conftest.er1 >conftest.err
38509   rm -f conftest.er1
38510   cat conftest.err >&5
38511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38512   (exit $ac_status); } &&
38513          { ac_try='test -z "$ac_c_werror_flag"
38514                          || test ! -s conftest.err'
38515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38516   (eval $ac_try) 2>&5
38517   ac_status=$?
38518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38519   (exit $ac_status); }; } &&
38520          { ac_try='test -s conftest$ac_exeext'
38521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38522   (eval $ac_try) 2>&5
38523   ac_status=$?
38524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38525   (exit $ac_status); }; }; then
38526   ol_cv_db_db42=yes
38527 else
38528   echo "$as_me: failed program was:" >&5
38529 sed 's/^/| /' conftest.$ac_ext >&5
38530
38531 ol_cv_db_db42=no
38532 fi
38533 rm -f conftest.err conftest.$ac_objext \
38534       conftest$ac_exeext conftest.$ac_ext
38535
38536         LIBS="$ol_LIBS"
38537
38538 fi
38539 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38540 echo "${ECHO_T}$ol_cv_db_db42" >&6
38541
38542         if test $ol_cv_db_db42 = yes ; then
38543                 ol_cv_lib_db=-ldb42
38544         fi
38545 fi
38546
38547 if test $ol_cv_lib_db = no ; then
38548         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38549 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38550 if test "${ol_cv_db_db_42+set}" = set; then
38551   echo $ECHO_N "(cached) $ECHO_C" >&6
38552 else
38553
38554         ol_DB_LIB=-ldb-42
38555         ol_LIBS=$LIBS
38556         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38557
38558         cat >conftest.$ac_ext <<_ACEOF
38559 /* confdefs.h.  */
38560 _ACEOF
38561 cat confdefs.h >>conftest.$ac_ext
38562 cat >>conftest.$ac_ext <<_ACEOF
38563 /* end confdefs.h.  */
38564
38565 #ifdef HAVE_DB_185_H
38566 # include <db_185.h>
38567 #else
38568 # include <db.h>
38569 #endif
38570
38571 #ifndef DB_VERSION_MAJOR
38572 # define DB_VERSION_MAJOR 1
38573 #endif
38574
38575 #ifndef NULL
38576 #define NULL ((void*)0)
38577 #endif
38578
38579 int
38580 main ()
38581 {
38582
38583 #if DB_VERSION_MAJOR > 1
38584         {
38585                 char *version;
38586                 int major, minor, patch;
38587
38588                 version = db_version( &major, &minor, &patch );
38589
38590                 if( major != DB_VERSION_MAJOR ||
38591                         minor < DB_VERSION_MINOR )
38592                 {
38593                         printf("Berkeley DB version mismatch\n"
38594                                 "\theader: %s\n\tlibrary: %s\n",
38595                                 DB_VERSION_STRING, version);
38596                         return 1;
38597                 }
38598         }
38599 #endif
38600
38601 #if DB_VERSION_MAJOR > 2
38602         db_env_create( NULL, 0 );
38603 #elif DB_VERSION_MAJOR > 1
38604         db_appexit( NULL );
38605 #else
38606         (void) dbopen( NULL, 0, 0, 0, NULL);
38607 #endif
38608
38609   ;
38610   return 0;
38611 }
38612 _ACEOF
38613 rm -f conftest.$ac_objext conftest$ac_exeext
38614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38615   (eval $ac_link) 2>conftest.er1
38616   ac_status=$?
38617   grep -v '^ *+' conftest.er1 >conftest.err
38618   rm -f conftest.er1
38619   cat conftest.err >&5
38620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38621   (exit $ac_status); } &&
38622          { ac_try='test -z "$ac_c_werror_flag"
38623                          || test ! -s conftest.err'
38624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38625   (eval $ac_try) 2>&5
38626   ac_status=$?
38627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38628   (exit $ac_status); }; } &&
38629          { ac_try='test -s conftest$ac_exeext'
38630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38631   (eval $ac_try) 2>&5
38632   ac_status=$?
38633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38634   (exit $ac_status); }; }; then
38635   ol_cv_db_db_42=yes
38636 else
38637   echo "$as_me: failed program was:" >&5
38638 sed 's/^/| /' conftest.$ac_ext >&5
38639
38640 ol_cv_db_db_42=no
38641 fi
38642 rm -f conftest.err conftest.$ac_objext \
38643       conftest$ac_exeext conftest.$ac_ext
38644
38645         LIBS="$ol_LIBS"
38646
38647 fi
38648 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38649 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38650
38651         if test $ol_cv_db_db_42 = yes ; then
38652                 ol_cv_lib_db=-ldb-42
38653         fi
38654 fi
38655
38656 if test $ol_cv_lib_db = no ; then
38657         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38658 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38659 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38660   echo $ECHO_N "(cached) $ECHO_C" >&6
38661 else
38662
38663         ol_DB_LIB=-ldb-4.2
38664         ol_LIBS=$LIBS
38665         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38666
38667         cat >conftest.$ac_ext <<_ACEOF
38668 /* confdefs.h.  */
38669 _ACEOF
38670 cat confdefs.h >>conftest.$ac_ext
38671 cat >>conftest.$ac_ext <<_ACEOF
38672 /* end confdefs.h.  */
38673
38674 #ifdef HAVE_DB_185_H
38675 # include <db_185.h>
38676 #else
38677 # include <db.h>
38678 #endif
38679
38680 #ifndef DB_VERSION_MAJOR
38681 # define DB_VERSION_MAJOR 1
38682 #endif
38683
38684 #ifndef NULL
38685 #define NULL ((void*)0)
38686 #endif
38687
38688 int
38689 main ()
38690 {
38691
38692 #if DB_VERSION_MAJOR > 1
38693         {
38694                 char *version;
38695                 int major, minor, patch;
38696
38697                 version = db_version( &major, &minor, &patch );
38698
38699                 if( major != DB_VERSION_MAJOR ||
38700                         minor < DB_VERSION_MINOR )
38701                 {
38702                         printf("Berkeley DB version mismatch\n"
38703                                 "\theader: %s\n\tlibrary: %s\n",
38704                                 DB_VERSION_STRING, version);
38705                         return 1;
38706                 }
38707         }
38708 #endif
38709
38710 #if DB_VERSION_MAJOR > 2
38711         db_env_create( NULL, 0 );
38712 #elif DB_VERSION_MAJOR > 1
38713         db_appexit( NULL );
38714 #else
38715         (void) dbopen( NULL, 0, 0, 0, NULL);
38716 #endif
38717
38718   ;
38719   return 0;
38720 }
38721 _ACEOF
38722 rm -f conftest.$ac_objext conftest$ac_exeext
38723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38724   (eval $ac_link) 2>conftest.er1
38725   ac_status=$?
38726   grep -v '^ *+' conftest.er1 >conftest.err
38727   rm -f conftest.er1
38728   cat conftest.err >&5
38729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38730   (exit $ac_status); } &&
38731          { ac_try='test -z "$ac_c_werror_flag"
38732                          || test ! -s conftest.err'
38733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38734   (eval $ac_try) 2>&5
38735   ac_status=$?
38736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38737   (exit $ac_status); }; } &&
38738          { ac_try='test -s conftest$ac_exeext'
38739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38740   (eval $ac_try) 2>&5
38741   ac_status=$?
38742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38743   (exit $ac_status); }; }; then
38744   ol_cv_db_db_4_dot_2=yes
38745 else
38746   echo "$as_me: failed program was:" >&5
38747 sed 's/^/| /' conftest.$ac_ext >&5
38748
38749 ol_cv_db_db_4_dot_2=no
38750 fi
38751 rm -f conftest.err conftest.$ac_objext \
38752       conftest$ac_exeext conftest.$ac_ext
38753
38754         LIBS="$ol_LIBS"
38755
38756 fi
38757 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
38758 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
38759
38760         if test $ol_cv_db_db_4_dot_2 = yes ; then
38761                 ol_cv_lib_db=-ldb-4.2
38762         fi
38763 fi
38764
38765 if test $ol_cv_lib_db = no ; then
38766         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
38767 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
38768 if test "${ol_cv_db_db_4_2+set}" = set; then
38769   echo $ECHO_N "(cached) $ECHO_C" >&6
38770 else
38771
38772         ol_DB_LIB=-ldb-4-2
38773         ol_LIBS=$LIBS
38774         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38775
38776         cat >conftest.$ac_ext <<_ACEOF
38777 /* confdefs.h.  */
38778 _ACEOF
38779 cat confdefs.h >>conftest.$ac_ext
38780 cat >>conftest.$ac_ext <<_ACEOF
38781 /* end confdefs.h.  */
38782
38783 #ifdef HAVE_DB_185_H
38784 # include <db_185.h>
38785 #else
38786 # include <db.h>
38787 #endif
38788
38789 #ifndef DB_VERSION_MAJOR
38790 # define DB_VERSION_MAJOR 1
38791 #endif
38792
38793 #ifndef NULL
38794 #define NULL ((void*)0)
38795 #endif
38796
38797 int
38798 main ()
38799 {
38800
38801 #if DB_VERSION_MAJOR > 1
38802         {
38803                 char *version;
38804                 int major, minor, patch;
38805
38806                 version = db_version( &major, &minor, &patch );
38807
38808                 if( major != DB_VERSION_MAJOR ||
38809                         minor < DB_VERSION_MINOR )
38810                 {
38811                         printf("Berkeley DB version mismatch\n"
38812                                 "\theader: %s\n\tlibrary: %s\n",
38813                                 DB_VERSION_STRING, version);
38814                         return 1;
38815                 }
38816         }
38817 #endif
38818
38819 #if DB_VERSION_MAJOR > 2
38820         db_env_create( NULL, 0 );
38821 #elif DB_VERSION_MAJOR > 1
38822         db_appexit( NULL );
38823 #else
38824         (void) dbopen( NULL, 0, 0, 0, NULL);
38825 #endif
38826
38827   ;
38828   return 0;
38829 }
38830 _ACEOF
38831 rm -f conftest.$ac_objext conftest$ac_exeext
38832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38833   (eval $ac_link) 2>conftest.er1
38834   ac_status=$?
38835   grep -v '^ *+' conftest.er1 >conftest.err
38836   rm -f conftest.er1
38837   cat conftest.err >&5
38838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38839   (exit $ac_status); } &&
38840          { ac_try='test -z "$ac_c_werror_flag"
38841                          || test ! -s conftest.err'
38842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38843   (eval $ac_try) 2>&5
38844   ac_status=$?
38845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38846   (exit $ac_status); }; } &&
38847          { ac_try='test -s conftest$ac_exeext'
38848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38849   (eval $ac_try) 2>&5
38850   ac_status=$?
38851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38852   (exit $ac_status); }; }; then
38853   ol_cv_db_db_4_2=yes
38854 else
38855   echo "$as_me: failed program was:" >&5
38856 sed 's/^/| /' conftest.$ac_ext >&5
38857
38858 ol_cv_db_db_4_2=no
38859 fi
38860 rm -f conftest.err conftest.$ac_objext \
38861       conftest$ac_exeext conftest.$ac_ext
38862
38863         LIBS="$ol_LIBS"
38864
38865 fi
38866 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
38867 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
38868
38869         if test $ol_cv_db_db_4_2 = yes ; then
38870                 ol_cv_lib_db=-ldb-4-2
38871         fi
38872 fi
38873
38874 if test $ol_cv_lib_db = no ; then
38875         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
38876 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
38877 if test "${ol_cv_db_db_4+set}" = set; then
38878   echo $ECHO_N "(cached) $ECHO_C" >&6
38879 else
38880
38881         ol_DB_LIB=-ldb-4
38882         ol_LIBS=$LIBS
38883         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38884
38885         cat >conftest.$ac_ext <<_ACEOF
38886 /* confdefs.h.  */
38887 _ACEOF
38888 cat confdefs.h >>conftest.$ac_ext
38889 cat >>conftest.$ac_ext <<_ACEOF
38890 /* end confdefs.h.  */
38891
38892 #ifdef HAVE_DB_185_H
38893 # include <db_185.h>
38894 #else
38895 # include <db.h>
38896 #endif
38897
38898 #ifndef DB_VERSION_MAJOR
38899 # define DB_VERSION_MAJOR 1
38900 #endif
38901
38902 #ifndef NULL
38903 #define NULL ((void*)0)
38904 #endif
38905
38906 int
38907 main ()
38908 {
38909
38910 #if DB_VERSION_MAJOR > 1
38911         {
38912                 char *version;
38913                 int major, minor, patch;
38914
38915                 version = db_version( &major, &minor, &patch );
38916
38917                 if( major != DB_VERSION_MAJOR ||
38918                         minor < DB_VERSION_MINOR )
38919                 {
38920                         printf("Berkeley DB version mismatch\n"
38921                                 "\theader: %s\n\tlibrary: %s\n",
38922                                 DB_VERSION_STRING, version);
38923                         return 1;
38924                 }
38925         }
38926 #endif
38927
38928 #if DB_VERSION_MAJOR > 2
38929         db_env_create( NULL, 0 );
38930 #elif DB_VERSION_MAJOR > 1
38931         db_appexit( NULL );
38932 #else
38933         (void) dbopen( NULL, 0, 0, 0, NULL);
38934 #endif
38935
38936   ;
38937   return 0;
38938 }
38939 _ACEOF
38940 rm -f conftest.$ac_objext conftest$ac_exeext
38941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38942   (eval $ac_link) 2>conftest.er1
38943   ac_status=$?
38944   grep -v '^ *+' conftest.er1 >conftest.err
38945   rm -f conftest.er1
38946   cat conftest.err >&5
38947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38948   (exit $ac_status); } &&
38949          { ac_try='test -z "$ac_c_werror_flag"
38950                          || test ! -s conftest.err'
38951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38952   (eval $ac_try) 2>&5
38953   ac_status=$?
38954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38955   (exit $ac_status); }; } &&
38956          { ac_try='test -s conftest$ac_exeext'
38957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38958   (eval $ac_try) 2>&5
38959   ac_status=$?
38960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38961   (exit $ac_status); }; }; then
38962   ol_cv_db_db_4=yes
38963 else
38964   echo "$as_me: failed program was:" >&5
38965 sed 's/^/| /' conftest.$ac_ext >&5
38966
38967 ol_cv_db_db_4=no
38968 fi
38969 rm -f conftest.err conftest.$ac_objext \
38970       conftest$ac_exeext conftest.$ac_ext
38971
38972         LIBS="$ol_LIBS"
38973
38974 fi
38975 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
38976 echo "${ECHO_T}$ol_cv_db_db_4" >&6
38977
38978         if test $ol_cv_db_db_4 = yes ; then
38979                 ol_cv_lib_db=-ldb-4
38980         fi
38981 fi
38982
38983 if test $ol_cv_lib_db = no ; then
38984         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
38985 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
38986 if test "${ol_cv_db_db4+set}" = set; then
38987   echo $ECHO_N "(cached) $ECHO_C" >&6
38988 else
38989
38990         ol_DB_LIB=-ldb4
38991         ol_LIBS=$LIBS
38992         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38993
38994         cat >conftest.$ac_ext <<_ACEOF
38995 /* confdefs.h.  */
38996 _ACEOF
38997 cat confdefs.h >>conftest.$ac_ext
38998 cat >>conftest.$ac_ext <<_ACEOF
38999 /* end confdefs.h.  */
39000
39001 #ifdef HAVE_DB_185_H
39002 # include <db_185.h>
39003 #else
39004 # include <db.h>
39005 #endif
39006
39007 #ifndef DB_VERSION_MAJOR
39008 # define DB_VERSION_MAJOR 1
39009 #endif
39010
39011 #ifndef NULL
39012 #define NULL ((void*)0)
39013 #endif
39014
39015 int
39016 main ()
39017 {
39018
39019 #if DB_VERSION_MAJOR > 1
39020         {
39021                 char *version;
39022                 int major, minor, patch;
39023
39024                 version = db_version( &major, &minor, &patch );
39025
39026                 if( major != DB_VERSION_MAJOR ||
39027                         minor < DB_VERSION_MINOR )
39028                 {
39029                         printf("Berkeley DB version mismatch\n"
39030                                 "\theader: %s\n\tlibrary: %s\n",
39031                                 DB_VERSION_STRING, version);
39032                         return 1;
39033                 }
39034         }
39035 #endif
39036
39037 #if DB_VERSION_MAJOR > 2
39038         db_env_create( NULL, 0 );
39039 #elif DB_VERSION_MAJOR > 1
39040         db_appexit( NULL );
39041 #else
39042         (void) dbopen( NULL, 0, 0, 0, NULL);
39043 #endif
39044
39045   ;
39046   return 0;
39047 }
39048 _ACEOF
39049 rm -f conftest.$ac_objext conftest$ac_exeext
39050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39051   (eval $ac_link) 2>conftest.er1
39052   ac_status=$?
39053   grep -v '^ *+' conftest.er1 >conftest.err
39054   rm -f conftest.er1
39055   cat conftest.err >&5
39056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39057   (exit $ac_status); } &&
39058          { ac_try='test -z "$ac_c_werror_flag"
39059                          || test ! -s conftest.err'
39060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39061   (eval $ac_try) 2>&5
39062   ac_status=$?
39063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39064   (exit $ac_status); }; } &&
39065          { ac_try='test -s conftest$ac_exeext'
39066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39067   (eval $ac_try) 2>&5
39068   ac_status=$?
39069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39070   (exit $ac_status); }; }; then
39071   ol_cv_db_db4=yes
39072 else
39073   echo "$as_me: failed program was:" >&5
39074 sed 's/^/| /' conftest.$ac_ext >&5
39075
39076 ol_cv_db_db4=no
39077 fi
39078 rm -f conftest.err conftest.$ac_objext \
39079       conftest$ac_exeext conftest.$ac_ext
39080
39081         LIBS="$ol_LIBS"
39082
39083 fi
39084 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39085 echo "${ECHO_T}$ol_cv_db_db4" >&6
39086
39087         if test $ol_cv_db_db4 = yes ; then
39088                 ol_cv_lib_db=-ldb4
39089         fi
39090 fi
39091
39092 if test $ol_cv_lib_db = no ; then
39093         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39094 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39095 if test "${ol_cv_db_db+set}" = set; then
39096   echo $ECHO_N "(cached) $ECHO_C" >&6
39097 else
39098
39099         ol_DB_LIB=-ldb
39100         ol_LIBS=$LIBS
39101         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39102
39103         cat >conftest.$ac_ext <<_ACEOF
39104 /* confdefs.h.  */
39105 _ACEOF
39106 cat confdefs.h >>conftest.$ac_ext
39107 cat >>conftest.$ac_ext <<_ACEOF
39108 /* end confdefs.h.  */
39109
39110 #ifdef HAVE_DB_185_H
39111 # include <db_185.h>
39112 #else
39113 # include <db.h>
39114 #endif
39115
39116 #ifndef DB_VERSION_MAJOR
39117 # define DB_VERSION_MAJOR 1
39118 #endif
39119
39120 #ifndef NULL
39121 #define NULL ((void*)0)
39122 #endif
39123
39124 int
39125 main ()
39126 {
39127
39128 #if DB_VERSION_MAJOR > 1
39129         {
39130                 char *version;
39131                 int major, minor, patch;
39132
39133                 version = db_version( &major, &minor, &patch );
39134
39135                 if( major != DB_VERSION_MAJOR ||
39136                         minor < DB_VERSION_MINOR )
39137                 {
39138                         printf("Berkeley DB version mismatch\n"
39139                                 "\theader: %s\n\tlibrary: %s\n",
39140                                 DB_VERSION_STRING, version);
39141                         return 1;
39142                 }
39143         }
39144 #endif
39145
39146 #if DB_VERSION_MAJOR > 2
39147         db_env_create( NULL, 0 );
39148 #elif DB_VERSION_MAJOR > 1
39149         db_appexit( NULL );
39150 #else
39151         (void) dbopen( NULL, 0, 0, 0, NULL);
39152 #endif
39153
39154   ;
39155   return 0;
39156 }
39157 _ACEOF
39158 rm -f conftest.$ac_objext conftest$ac_exeext
39159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39160   (eval $ac_link) 2>conftest.er1
39161   ac_status=$?
39162   grep -v '^ *+' conftest.er1 >conftest.err
39163   rm -f conftest.er1
39164   cat conftest.err >&5
39165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39166   (exit $ac_status); } &&
39167          { ac_try='test -z "$ac_c_werror_flag"
39168                          || test ! -s conftest.err'
39169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39170   (eval $ac_try) 2>&5
39171   ac_status=$?
39172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39173   (exit $ac_status); }; } &&
39174          { ac_try='test -s conftest$ac_exeext'
39175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39176   (eval $ac_try) 2>&5
39177   ac_status=$?
39178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39179   (exit $ac_status); }; }; then
39180   ol_cv_db_db=yes
39181 else
39182   echo "$as_me: failed program was:" >&5
39183 sed 's/^/| /' conftest.$ac_ext >&5
39184
39185 ol_cv_db_db=no
39186 fi
39187 rm -f conftest.err conftest.$ac_objext \
39188       conftest$ac_exeext conftest.$ac_ext
39189
39190         LIBS="$ol_LIBS"
39191
39192 fi
39193 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39194 echo "${ECHO_T}$ol_cv_db_db" >&6
39195
39196         if test $ol_cv_db_db = yes ; then
39197                 ol_cv_lib_db=-ldb
39198         fi
39199 fi
39200
39201 if test $ol_cv_lib_db = no ; then
39202         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39203 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39204 if test "${ol_cv_db_db41+set}" = set; then
39205   echo $ECHO_N "(cached) $ECHO_C" >&6
39206 else
39207
39208         ol_DB_LIB=-ldb41
39209         ol_LIBS=$LIBS
39210         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39211
39212         cat >conftest.$ac_ext <<_ACEOF
39213 /* confdefs.h.  */
39214 _ACEOF
39215 cat confdefs.h >>conftest.$ac_ext
39216 cat >>conftest.$ac_ext <<_ACEOF
39217 /* end confdefs.h.  */
39218
39219 #ifdef HAVE_DB_185_H
39220 # include <db_185.h>
39221 #else
39222 # include <db.h>
39223 #endif
39224
39225 #ifndef DB_VERSION_MAJOR
39226 # define DB_VERSION_MAJOR 1
39227 #endif
39228
39229 #ifndef NULL
39230 #define NULL ((void*)0)
39231 #endif
39232
39233 int
39234 main ()
39235 {
39236
39237 #if DB_VERSION_MAJOR > 1
39238         {
39239                 char *version;
39240                 int major, minor, patch;
39241
39242                 version = db_version( &major, &minor, &patch );
39243
39244                 if( major != DB_VERSION_MAJOR ||
39245                         minor < DB_VERSION_MINOR )
39246                 {
39247                         printf("Berkeley DB version mismatch\n"
39248                                 "\theader: %s\n\tlibrary: %s\n",
39249                                 DB_VERSION_STRING, version);
39250                         return 1;
39251                 }
39252         }
39253 #endif
39254
39255 #if DB_VERSION_MAJOR > 2
39256         db_env_create( NULL, 0 );
39257 #elif DB_VERSION_MAJOR > 1
39258         db_appexit( NULL );
39259 #else
39260         (void) dbopen( NULL, 0, 0, 0, NULL);
39261 #endif
39262
39263   ;
39264   return 0;
39265 }
39266 _ACEOF
39267 rm -f conftest.$ac_objext conftest$ac_exeext
39268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39269   (eval $ac_link) 2>conftest.er1
39270   ac_status=$?
39271   grep -v '^ *+' conftest.er1 >conftest.err
39272   rm -f conftest.er1
39273   cat conftest.err >&5
39274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39275   (exit $ac_status); } &&
39276          { ac_try='test -z "$ac_c_werror_flag"
39277                          || test ! -s conftest.err'
39278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39279   (eval $ac_try) 2>&5
39280   ac_status=$?
39281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39282   (exit $ac_status); }; } &&
39283          { ac_try='test -s conftest$ac_exeext'
39284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39285   (eval $ac_try) 2>&5
39286   ac_status=$?
39287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39288   (exit $ac_status); }; }; then
39289   ol_cv_db_db41=yes
39290 else
39291   echo "$as_me: failed program was:" >&5
39292 sed 's/^/| /' conftest.$ac_ext >&5
39293
39294 ol_cv_db_db41=no
39295 fi
39296 rm -f conftest.err conftest.$ac_objext \
39297       conftest$ac_exeext conftest.$ac_ext
39298
39299         LIBS="$ol_LIBS"
39300
39301 fi
39302 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39303 echo "${ECHO_T}$ol_cv_db_db41" >&6
39304
39305         if test $ol_cv_db_db41 = yes ; then
39306                 ol_cv_lib_db=-ldb41
39307         fi
39308 fi
39309
39310 if test $ol_cv_lib_db = no ; then
39311         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39312 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39313 if test "${ol_cv_db_db_41+set}" = set; then
39314   echo $ECHO_N "(cached) $ECHO_C" >&6
39315 else
39316
39317         ol_DB_LIB=-ldb-41
39318         ol_LIBS=$LIBS
39319         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39320
39321         cat >conftest.$ac_ext <<_ACEOF
39322 /* confdefs.h.  */
39323 _ACEOF
39324 cat confdefs.h >>conftest.$ac_ext
39325 cat >>conftest.$ac_ext <<_ACEOF
39326 /* end confdefs.h.  */
39327
39328 #ifdef HAVE_DB_185_H
39329 # include <db_185.h>
39330 #else
39331 # include <db.h>
39332 #endif
39333
39334 #ifndef DB_VERSION_MAJOR
39335 # define DB_VERSION_MAJOR 1
39336 #endif
39337
39338 #ifndef NULL
39339 #define NULL ((void*)0)
39340 #endif
39341
39342 int
39343 main ()
39344 {
39345
39346 #if DB_VERSION_MAJOR > 1
39347         {
39348                 char *version;
39349                 int major, minor, patch;
39350
39351                 version = db_version( &major, &minor, &patch );
39352
39353                 if( major != DB_VERSION_MAJOR ||
39354                         minor < DB_VERSION_MINOR )
39355                 {
39356                         printf("Berkeley DB version mismatch\n"
39357                                 "\theader: %s\n\tlibrary: %s\n",
39358                                 DB_VERSION_STRING, version);
39359                         return 1;
39360                 }
39361         }
39362 #endif
39363
39364 #if DB_VERSION_MAJOR > 2
39365         db_env_create( NULL, 0 );
39366 #elif DB_VERSION_MAJOR > 1
39367         db_appexit( NULL );
39368 #else
39369         (void) dbopen( NULL, 0, 0, 0, NULL);
39370 #endif
39371
39372   ;
39373   return 0;
39374 }
39375 _ACEOF
39376 rm -f conftest.$ac_objext conftest$ac_exeext
39377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39378   (eval $ac_link) 2>conftest.er1
39379   ac_status=$?
39380   grep -v '^ *+' conftest.er1 >conftest.err
39381   rm -f conftest.er1
39382   cat conftest.err >&5
39383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39384   (exit $ac_status); } &&
39385          { ac_try='test -z "$ac_c_werror_flag"
39386                          || test ! -s conftest.err'
39387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39388   (eval $ac_try) 2>&5
39389   ac_status=$?
39390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39391   (exit $ac_status); }; } &&
39392          { ac_try='test -s conftest$ac_exeext'
39393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39394   (eval $ac_try) 2>&5
39395   ac_status=$?
39396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39397   (exit $ac_status); }; }; then
39398   ol_cv_db_db_41=yes
39399 else
39400   echo "$as_me: failed program was:" >&5
39401 sed 's/^/| /' conftest.$ac_ext >&5
39402
39403 ol_cv_db_db_41=no
39404 fi
39405 rm -f conftest.err conftest.$ac_objext \
39406       conftest$ac_exeext conftest.$ac_ext
39407
39408         LIBS="$ol_LIBS"
39409
39410 fi
39411 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39412 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39413
39414         if test $ol_cv_db_db_41 = yes ; then
39415                 ol_cv_lib_db=-ldb-41
39416         fi
39417 fi
39418
39419 if test $ol_cv_lib_db = no ; then
39420         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39421 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39422 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39423   echo $ECHO_N "(cached) $ECHO_C" >&6
39424 else
39425
39426         ol_DB_LIB=-ldb-4.1
39427         ol_LIBS=$LIBS
39428         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39429
39430         cat >conftest.$ac_ext <<_ACEOF
39431 /* confdefs.h.  */
39432 _ACEOF
39433 cat confdefs.h >>conftest.$ac_ext
39434 cat >>conftest.$ac_ext <<_ACEOF
39435 /* end confdefs.h.  */
39436
39437 #ifdef HAVE_DB_185_H
39438 # include <db_185.h>
39439 #else
39440 # include <db.h>
39441 #endif
39442
39443 #ifndef DB_VERSION_MAJOR
39444 # define DB_VERSION_MAJOR 1
39445 #endif
39446
39447 #ifndef NULL
39448 #define NULL ((void*)0)
39449 #endif
39450
39451 int
39452 main ()
39453 {
39454
39455 #if DB_VERSION_MAJOR > 1
39456         {
39457                 char *version;
39458                 int major, minor, patch;
39459
39460                 version = db_version( &major, &minor, &patch );
39461
39462                 if( major != DB_VERSION_MAJOR ||
39463                         minor < DB_VERSION_MINOR )
39464                 {
39465                         printf("Berkeley DB version mismatch\n"
39466                                 "\theader: %s\n\tlibrary: %s\n",
39467                                 DB_VERSION_STRING, version);
39468                         return 1;
39469                 }
39470         }
39471 #endif
39472
39473 #if DB_VERSION_MAJOR > 2
39474         db_env_create( NULL, 0 );
39475 #elif DB_VERSION_MAJOR > 1
39476         db_appexit( NULL );
39477 #else
39478         (void) dbopen( NULL, 0, 0, 0, NULL);
39479 #endif
39480
39481   ;
39482   return 0;
39483 }
39484 _ACEOF
39485 rm -f conftest.$ac_objext conftest$ac_exeext
39486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39487   (eval $ac_link) 2>conftest.er1
39488   ac_status=$?
39489   grep -v '^ *+' conftest.er1 >conftest.err
39490   rm -f conftest.er1
39491   cat conftest.err >&5
39492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39493   (exit $ac_status); } &&
39494          { ac_try='test -z "$ac_c_werror_flag"
39495                          || test ! -s conftest.err'
39496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39497   (eval $ac_try) 2>&5
39498   ac_status=$?
39499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39500   (exit $ac_status); }; } &&
39501          { ac_try='test -s conftest$ac_exeext'
39502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39503   (eval $ac_try) 2>&5
39504   ac_status=$?
39505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39506   (exit $ac_status); }; }; then
39507   ol_cv_db_db_4_dot_1=yes
39508 else
39509   echo "$as_me: failed program was:" >&5
39510 sed 's/^/| /' conftest.$ac_ext >&5
39511
39512 ol_cv_db_db_4_dot_1=no
39513 fi
39514 rm -f conftest.err conftest.$ac_objext \
39515       conftest$ac_exeext conftest.$ac_ext
39516
39517         LIBS="$ol_LIBS"
39518
39519 fi
39520 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39521 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39522
39523         if test $ol_cv_db_db_4_dot_1 = yes ; then
39524                 ol_cv_lib_db=-ldb-4.1
39525         fi
39526 fi
39527
39528 if test $ol_cv_lib_db = no ; then
39529         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39530 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39531 if test "${ol_cv_db_db_4_1+set}" = set; then
39532   echo $ECHO_N "(cached) $ECHO_C" >&6
39533 else
39534
39535         ol_DB_LIB=-ldb-4-1
39536         ol_LIBS=$LIBS
39537         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39538
39539         cat >conftest.$ac_ext <<_ACEOF
39540 /* confdefs.h.  */
39541 _ACEOF
39542 cat confdefs.h >>conftest.$ac_ext
39543 cat >>conftest.$ac_ext <<_ACEOF
39544 /* end confdefs.h.  */
39545
39546 #ifdef HAVE_DB_185_H
39547 # include <db_185.h>
39548 #else
39549 # include <db.h>
39550 #endif
39551
39552 #ifndef DB_VERSION_MAJOR
39553 # define DB_VERSION_MAJOR 1
39554 #endif
39555
39556 #ifndef NULL
39557 #define NULL ((void*)0)
39558 #endif
39559
39560 int
39561 main ()
39562 {
39563
39564 #if DB_VERSION_MAJOR > 1
39565         {
39566                 char *version;
39567                 int major, minor, patch;
39568
39569                 version = db_version( &major, &minor, &patch );
39570
39571                 if( major != DB_VERSION_MAJOR ||
39572                         minor < DB_VERSION_MINOR )
39573                 {
39574                         printf("Berkeley DB version mismatch\n"
39575                                 "\theader: %s\n\tlibrary: %s\n",
39576                                 DB_VERSION_STRING, version);
39577                         return 1;
39578                 }
39579         }
39580 #endif
39581
39582 #if DB_VERSION_MAJOR > 2
39583         db_env_create( NULL, 0 );
39584 #elif DB_VERSION_MAJOR > 1
39585         db_appexit( NULL );
39586 #else
39587         (void) dbopen( NULL, 0, 0, 0, NULL);
39588 #endif
39589
39590   ;
39591   return 0;
39592 }
39593 _ACEOF
39594 rm -f conftest.$ac_objext conftest$ac_exeext
39595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39596   (eval $ac_link) 2>conftest.er1
39597   ac_status=$?
39598   grep -v '^ *+' conftest.er1 >conftest.err
39599   rm -f conftest.er1
39600   cat conftest.err >&5
39601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39602   (exit $ac_status); } &&
39603          { ac_try='test -z "$ac_c_werror_flag"
39604                          || test ! -s conftest.err'
39605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39606   (eval $ac_try) 2>&5
39607   ac_status=$?
39608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39609   (exit $ac_status); }; } &&
39610          { ac_try='test -s conftest$ac_exeext'
39611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39612   (eval $ac_try) 2>&5
39613   ac_status=$?
39614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615   (exit $ac_status); }; }; then
39616   ol_cv_db_db_4_1=yes
39617 else
39618   echo "$as_me: failed program was:" >&5
39619 sed 's/^/| /' conftest.$ac_ext >&5
39620
39621 ol_cv_db_db_4_1=no
39622 fi
39623 rm -f conftest.err conftest.$ac_objext \
39624       conftest$ac_exeext conftest.$ac_ext
39625
39626         LIBS="$ol_LIBS"
39627
39628 fi
39629 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39630 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39631
39632         if test $ol_cv_db_db_4_1 = yes ; then
39633                 ol_cv_lib_db=-ldb-4-1
39634         fi
39635 fi
39636
39637 if test $ol_cv_lib_db = no ; then
39638         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39639 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39640 if test "${ol_cv_db_db3+set}" = set; then
39641   echo $ECHO_N "(cached) $ECHO_C" >&6
39642 else
39643
39644         ol_DB_LIB=-ldb3
39645         ol_LIBS=$LIBS
39646         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39647
39648         cat >conftest.$ac_ext <<_ACEOF
39649 /* confdefs.h.  */
39650 _ACEOF
39651 cat confdefs.h >>conftest.$ac_ext
39652 cat >>conftest.$ac_ext <<_ACEOF
39653 /* end confdefs.h.  */
39654
39655 #ifdef HAVE_DB_185_H
39656 # include <db_185.h>
39657 #else
39658 # include <db.h>
39659 #endif
39660
39661 #ifndef DB_VERSION_MAJOR
39662 # define DB_VERSION_MAJOR 1
39663 #endif
39664
39665 #ifndef NULL
39666 #define NULL ((void*)0)
39667 #endif
39668
39669 int
39670 main ()
39671 {
39672
39673 #if DB_VERSION_MAJOR > 1
39674         {
39675                 char *version;
39676                 int major, minor, patch;
39677
39678                 version = db_version( &major, &minor, &patch );
39679
39680                 if( major != DB_VERSION_MAJOR ||
39681                         minor < DB_VERSION_MINOR )
39682                 {
39683                         printf("Berkeley DB version mismatch\n"
39684                                 "\theader: %s\n\tlibrary: %s\n",
39685                                 DB_VERSION_STRING, version);
39686                         return 1;
39687                 }
39688         }
39689 #endif
39690
39691 #if DB_VERSION_MAJOR > 2
39692         db_env_create( NULL, 0 );
39693 #elif DB_VERSION_MAJOR > 1
39694         db_appexit( NULL );
39695 #else
39696         (void) dbopen( NULL, 0, 0, 0, NULL);
39697 #endif
39698
39699   ;
39700   return 0;
39701 }
39702 _ACEOF
39703 rm -f conftest.$ac_objext conftest$ac_exeext
39704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39705   (eval $ac_link) 2>conftest.er1
39706   ac_status=$?
39707   grep -v '^ *+' conftest.er1 >conftest.err
39708   rm -f conftest.er1
39709   cat conftest.err >&5
39710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39711   (exit $ac_status); } &&
39712          { ac_try='test -z "$ac_c_werror_flag"
39713                          || test ! -s conftest.err'
39714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39715   (eval $ac_try) 2>&5
39716   ac_status=$?
39717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39718   (exit $ac_status); }; } &&
39719          { ac_try='test -s conftest$ac_exeext'
39720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39721   (eval $ac_try) 2>&5
39722   ac_status=$?
39723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39724   (exit $ac_status); }; }; then
39725   ol_cv_db_db3=yes
39726 else
39727   echo "$as_me: failed program was:" >&5
39728 sed 's/^/| /' conftest.$ac_ext >&5
39729
39730 ol_cv_db_db3=no
39731 fi
39732 rm -f conftest.err conftest.$ac_objext \
39733       conftest$ac_exeext conftest.$ac_ext
39734
39735         LIBS="$ol_LIBS"
39736
39737 fi
39738 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
39739 echo "${ECHO_T}$ol_cv_db_db3" >&6
39740
39741         if test $ol_cv_db_db3 = yes ; then
39742                 ol_cv_lib_db=-ldb3
39743         fi
39744 fi
39745
39746 if test $ol_cv_lib_db = no ; then
39747         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
39748 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
39749 if test "${ol_cv_db_db_3+set}" = set; then
39750   echo $ECHO_N "(cached) $ECHO_C" >&6
39751 else
39752
39753         ol_DB_LIB=-ldb-3
39754         ol_LIBS=$LIBS
39755         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39756
39757         cat >conftest.$ac_ext <<_ACEOF
39758 /* confdefs.h.  */
39759 _ACEOF
39760 cat confdefs.h >>conftest.$ac_ext
39761 cat >>conftest.$ac_ext <<_ACEOF
39762 /* end confdefs.h.  */
39763
39764 #ifdef HAVE_DB_185_H
39765 # include <db_185.h>
39766 #else
39767 # include <db.h>
39768 #endif
39769
39770 #ifndef DB_VERSION_MAJOR
39771 # define DB_VERSION_MAJOR 1
39772 #endif
39773
39774 #ifndef NULL
39775 #define NULL ((void*)0)
39776 #endif
39777
39778 int
39779 main ()
39780 {
39781
39782 #if DB_VERSION_MAJOR > 1
39783         {
39784                 char *version;
39785                 int major, minor, patch;
39786
39787                 version = db_version( &major, &minor, &patch );
39788
39789                 if( major != DB_VERSION_MAJOR ||
39790                         minor < DB_VERSION_MINOR )
39791                 {
39792                         printf("Berkeley DB version mismatch\n"
39793                                 "\theader: %s\n\tlibrary: %s\n",
39794                                 DB_VERSION_STRING, version);
39795                         return 1;
39796                 }
39797         }
39798 #endif
39799
39800 #if DB_VERSION_MAJOR > 2
39801         db_env_create( NULL, 0 );
39802 #elif DB_VERSION_MAJOR > 1
39803         db_appexit( NULL );
39804 #else
39805         (void) dbopen( NULL, 0, 0, 0, NULL);
39806 #endif
39807
39808   ;
39809   return 0;
39810 }
39811 _ACEOF
39812 rm -f conftest.$ac_objext conftest$ac_exeext
39813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39814   (eval $ac_link) 2>conftest.er1
39815   ac_status=$?
39816   grep -v '^ *+' conftest.er1 >conftest.err
39817   rm -f conftest.er1
39818   cat conftest.err >&5
39819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39820   (exit $ac_status); } &&
39821          { ac_try='test -z "$ac_c_werror_flag"
39822                          || test ! -s conftest.err'
39823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39824   (eval $ac_try) 2>&5
39825   ac_status=$?
39826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39827   (exit $ac_status); }; } &&
39828          { ac_try='test -s conftest$ac_exeext'
39829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39830   (eval $ac_try) 2>&5
39831   ac_status=$?
39832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39833   (exit $ac_status); }; }; then
39834   ol_cv_db_db_3=yes
39835 else
39836   echo "$as_me: failed program was:" >&5
39837 sed 's/^/| /' conftest.$ac_ext >&5
39838
39839 ol_cv_db_db_3=no
39840 fi
39841 rm -f conftest.err conftest.$ac_objext \
39842       conftest$ac_exeext conftest.$ac_ext
39843
39844         LIBS="$ol_LIBS"
39845
39846 fi
39847 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
39848 echo "${ECHO_T}$ol_cv_db_db_3" >&6
39849
39850         if test $ol_cv_db_db_3 = yes ; then
39851                 ol_cv_lib_db=-ldb-3
39852         fi
39853 fi
39854
39855 if test $ol_cv_lib_db = no ; then
39856         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
39857 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
39858 if test "${ol_cv_db_db2+set}" = set; then
39859   echo $ECHO_N "(cached) $ECHO_C" >&6
39860 else
39861
39862         ol_DB_LIB=-ldb2
39863         ol_LIBS=$LIBS
39864         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39865
39866         cat >conftest.$ac_ext <<_ACEOF
39867 /* confdefs.h.  */
39868 _ACEOF
39869 cat confdefs.h >>conftest.$ac_ext
39870 cat >>conftest.$ac_ext <<_ACEOF
39871 /* end confdefs.h.  */
39872
39873 #ifdef HAVE_DB_185_H
39874 # include <db_185.h>
39875 #else
39876 # include <db.h>
39877 #endif
39878
39879 #ifndef DB_VERSION_MAJOR
39880 # define DB_VERSION_MAJOR 1
39881 #endif
39882
39883 #ifndef NULL
39884 #define NULL ((void*)0)
39885 #endif
39886
39887 int
39888 main ()
39889 {
39890
39891 #if DB_VERSION_MAJOR > 1
39892         {
39893                 char *version;
39894                 int major, minor, patch;
39895
39896                 version = db_version( &major, &minor, &patch );
39897
39898                 if( major != DB_VERSION_MAJOR ||
39899                         minor < DB_VERSION_MINOR )
39900                 {
39901                         printf("Berkeley DB version mismatch\n"
39902                                 "\theader: %s\n\tlibrary: %s\n",
39903                                 DB_VERSION_STRING, version);
39904                         return 1;
39905                 }
39906         }
39907 #endif
39908
39909 #if DB_VERSION_MAJOR > 2
39910         db_env_create( NULL, 0 );
39911 #elif DB_VERSION_MAJOR > 1
39912         db_appexit( NULL );
39913 #else
39914         (void) dbopen( NULL, 0, 0, 0, NULL);
39915 #endif
39916
39917   ;
39918   return 0;
39919 }
39920 _ACEOF
39921 rm -f conftest.$ac_objext conftest$ac_exeext
39922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39923   (eval $ac_link) 2>conftest.er1
39924   ac_status=$?
39925   grep -v '^ *+' conftest.er1 >conftest.err
39926   rm -f conftest.er1
39927   cat conftest.err >&5
39928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39929   (exit $ac_status); } &&
39930          { ac_try='test -z "$ac_c_werror_flag"
39931                          || test ! -s conftest.err'
39932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39933   (eval $ac_try) 2>&5
39934   ac_status=$?
39935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39936   (exit $ac_status); }; } &&
39937          { ac_try='test -s conftest$ac_exeext'
39938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39939   (eval $ac_try) 2>&5
39940   ac_status=$?
39941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39942   (exit $ac_status); }; }; then
39943   ol_cv_db_db2=yes
39944 else
39945   echo "$as_me: failed program was:" >&5
39946 sed 's/^/| /' conftest.$ac_ext >&5
39947
39948 ol_cv_db_db2=no
39949 fi
39950 rm -f conftest.err conftest.$ac_objext \
39951       conftest$ac_exeext conftest.$ac_ext
39952
39953         LIBS="$ol_LIBS"
39954
39955 fi
39956 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
39957 echo "${ECHO_T}$ol_cv_db_db2" >&6
39958
39959         if test $ol_cv_db_db2 = yes ; then
39960                 ol_cv_lib_db=-ldb2
39961         fi
39962 fi
39963
39964 if test $ol_cv_lib_db = no ; then
39965         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
39966 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
39967 if test "${ol_cv_db_db_2+set}" = set; then
39968   echo $ECHO_N "(cached) $ECHO_C" >&6
39969 else
39970
39971         ol_DB_LIB=-ldb-2
39972         ol_LIBS=$LIBS
39973         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39974
39975         cat >conftest.$ac_ext <<_ACEOF
39976 /* confdefs.h.  */
39977 _ACEOF
39978 cat confdefs.h >>conftest.$ac_ext
39979 cat >>conftest.$ac_ext <<_ACEOF
39980 /* end confdefs.h.  */
39981
39982 #ifdef HAVE_DB_185_H
39983 # include <db_185.h>
39984 #else
39985 # include <db.h>
39986 #endif
39987
39988 #ifndef DB_VERSION_MAJOR
39989 # define DB_VERSION_MAJOR 1
39990 #endif
39991
39992 #ifndef NULL
39993 #define NULL ((void*)0)
39994 #endif
39995
39996 int
39997 main ()
39998 {
39999
40000 #if DB_VERSION_MAJOR > 1
40001         {
40002                 char *version;
40003                 int major, minor, patch;
40004
40005                 version = db_version( &major, &minor, &patch );
40006
40007                 if( major != DB_VERSION_MAJOR ||
40008                         minor < DB_VERSION_MINOR )
40009                 {
40010                         printf("Berkeley DB version mismatch\n"
40011                                 "\theader: %s\n\tlibrary: %s\n",
40012                                 DB_VERSION_STRING, version);
40013                         return 1;
40014                 }
40015         }
40016 #endif
40017
40018 #if DB_VERSION_MAJOR > 2
40019         db_env_create( NULL, 0 );
40020 #elif DB_VERSION_MAJOR > 1
40021         db_appexit( NULL );
40022 #else
40023         (void) dbopen( NULL, 0, 0, 0, NULL);
40024 #endif
40025
40026   ;
40027   return 0;
40028 }
40029 _ACEOF
40030 rm -f conftest.$ac_objext conftest$ac_exeext
40031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40032   (eval $ac_link) 2>conftest.er1
40033   ac_status=$?
40034   grep -v '^ *+' conftest.er1 >conftest.err
40035   rm -f conftest.er1
40036   cat conftest.err >&5
40037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40038   (exit $ac_status); } &&
40039          { ac_try='test -z "$ac_c_werror_flag"
40040                          || test ! -s conftest.err'
40041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40042   (eval $ac_try) 2>&5
40043   ac_status=$?
40044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40045   (exit $ac_status); }; } &&
40046          { ac_try='test -s conftest$ac_exeext'
40047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40048   (eval $ac_try) 2>&5
40049   ac_status=$?
40050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40051   (exit $ac_status); }; }; then
40052   ol_cv_db_db_2=yes
40053 else
40054   echo "$as_me: failed program was:" >&5
40055 sed 's/^/| /' conftest.$ac_ext >&5
40056
40057 ol_cv_db_db_2=no
40058 fi
40059 rm -f conftest.err conftest.$ac_objext \
40060       conftest$ac_exeext conftest.$ac_ext
40061
40062         LIBS="$ol_LIBS"
40063
40064 fi
40065 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40066 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40067
40068         if test $ol_cv_db_db_2 = yes ; then
40069                 ol_cv_lib_db=-ldb-2
40070         fi
40071 fi
40072
40073 if test $ol_cv_lib_db = no ; then
40074         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40075 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40076 if test "${ol_cv_db_db1+set}" = set; then
40077   echo $ECHO_N "(cached) $ECHO_C" >&6
40078 else
40079
40080         ol_DB_LIB=-ldb1
40081         ol_LIBS=$LIBS
40082         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40083
40084         cat >conftest.$ac_ext <<_ACEOF
40085 /* confdefs.h.  */
40086 _ACEOF
40087 cat confdefs.h >>conftest.$ac_ext
40088 cat >>conftest.$ac_ext <<_ACEOF
40089 /* end confdefs.h.  */
40090
40091 #ifdef HAVE_DB_185_H
40092 # include <db_185.h>
40093 #else
40094 # include <db.h>
40095 #endif
40096
40097 #ifndef DB_VERSION_MAJOR
40098 # define DB_VERSION_MAJOR 1
40099 #endif
40100
40101 #ifndef NULL
40102 #define NULL ((void*)0)
40103 #endif
40104
40105 int
40106 main ()
40107 {
40108
40109 #if DB_VERSION_MAJOR > 1
40110         {
40111                 char *version;
40112                 int major, minor, patch;
40113
40114                 version = db_version( &major, &minor, &patch );
40115
40116                 if( major != DB_VERSION_MAJOR ||
40117                         minor < DB_VERSION_MINOR )
40118                 {
40119                         printf("Berkeley DB version mismatch\n"
40120                                 "\theader: %s\n\tlibrary: %s\n",
40121                                 DB_VERSION_STRING, version);
40122                         return 1;
40123                 }
40124         }
40125 #endif
40126
40127 #if DB_VERSION_MAJOR > 2
40128         db_env_create( NULL, 0 );
40129 #elif DB_VERSION_MAJOR > 1
40130         db_appexit( NULL );
40131 #else
40132         (void) dbopen( NULL, 0, 0, 0, NULL);
40133 #endif
40134
40135   ;
40136   return 0;
40137 }
40138 _ACEOF
40139 rm -f conftest.$ac_objext conftest$ac_exeext
40140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40141   (eval $ac_link) 2>conftest.er1
40142   ac_status=$?
40143   grep -v '^ *+' conftest.er1 >conftest.err
40144   rm -f conftest.er1
40145   cat conftest.err >&5
40146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40147   (exit $ac_status); } &&
40148          { ac_try='test -z "$ac_c_werror_flag"
40149                          || test ! -s conftest.err'
40150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40151   (eval $ac_try) 2>&5
40152   ac_status=$?
40153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40154   (exit $ac_status); }; } &&
40155          { ac_try='test -s conftest$ac_exeext'
40156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40157   (eval $ac_try) 2>&5
40158   ac_status=$?
40159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40160   (exit $ac_status); }; }; then
40161   ol_cv_db_db1=yes
40162 else
40163   echo "$as_me: failed program was:" >&5
40164 sed 's/^/| /' conftest.$ac_ext >&5
40165
40166 ol_cv_db_db1=no
40167 fi
40168 rm -f conftest.err conftest.$ac_objext \
40169       conftest$ac_exeext conftest.$ac_ext
40170
40171         LIBS="$ol_LIBS"
40172
40173 fi
40174 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40175 echo "${ECHO_T}$ol_cv_db_db1" >&6
40176
40177         if test $ol_cv_db_db1 = yes ; then
40178                 ol_cv_lib_db=-ldb1
40179         fi
40180 fi
40181
40182 if test $ol_cv_lib_db = no ; then
40183         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40184 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40185 if test "${ol_cv_db_db_1+set}" = set; then
40186   echo $ECHO_N "(cached) $ECHO_C" >&6
40187 else
40188
40189         ol_DB_LIB=-ldb-1
40190         ol_LIBS=$LIBS
40191         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40192
40193         cat >conftest.$ac_ext <<_ACEOF
40194 /* confdefs.h.  */
40195 _ACEOF
40196 cat confdefs.h >>conftest.$ac_ext
40197 cat >>conftest.$ac_ext <<_ACEOF
40198 /* end confdefs.h.  */
40199
40200 #ifdef HAVE_DB_185_H
40201 # include <db_185.h>
40202 #else
40203 # include <db.h>
40204 #endif
40205
40206 #ifndef DB_VERSION_MAJOR
40207 # define DB_VERSION_MAJOR 1
40208 #endif
40209
40210 #ifndef NULL
40211 #define NULL ((void*)0)
40212 #endif
40213
40214 int
40215 main ()
40216 {
40217
40218 #if DB_VERSION_MAJOR > 1
40219         {
40220                 char *version;
40221                 int major, minor, patch;
40222
40223                 version = db_version( &major, &minor, &patch );
40224
40225                 if( major != DB_VERSION_MAJOR ||
40226                         minor < DB_VERSION_MINOR )
40227                 {
40228                         printf("Berkeley DB version mismatch\n"
40229                                 "\theader: %s\n\tlibrary: %s\n",
40230                                 DB_VERSION_STRING, version);
40231                         return 1;
40232                 }
40233         }
40234 #endif
40235
40236 #if DB_VERSION_MAJOR > 2
40237         db_env_create( NULL, 0 );
40238 #elif DB_VERSION_MAJOR > 1
40239         db_appexit( NULL );
40240 #else
40241         (void) dbopen( NULL, 0, 0, 0, NULL);
40242 #endif
40243
40244   ;
40245   return 0;
40246 }
40247 _ACEOF
40248 rm -f conftest.$ac_objext conftest$ac_exeext
40249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40250   (eval $ac_link) 2>conftest.er1
40251   ac_status=$?
40252   grep -v '^ *+' conftest.er1 >conftest.err
40253   rm -f conftest.er1
40254   cat conftest.err >&5
40255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40256   (exit $ac_status); } &&
40257          { ac_try='test -z "$ac_c_werror_flag"
40258                          || test ! -s conftest.err'
40259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40260   (eval $ac_try) 2>&5
40261   ac_status=$?
40262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40263   (exit $ac_status); }; } &&
40264          { ac_try='test -s conftest$ac_exeext'
40265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40266   (eval $ac_try) 2>&5
40267   ac_status=$?
40268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40269   (exit $ac_status); }; }; then
40270   ol_cv_db_db_1=yes
40271 else
40272   echo "$as_me: failed program was:" >&5
40273 sed 's/^/| /' conftest.$ac_ext >&5
40274
40275 ol_cv_db_db_1=no
40276 fi
40277 rm -f conftest.err conftest.$ac_objext \
40278       conftest$ac_exeext conftest.$ac_ext
40279
40280         LIBS="$ol_LIBS"
40281
40282 fi
40283 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40284 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40285
40286         if test $ol_cv_db_db_1 = yes ; then
40287                 ol_cv_lib_db=-ldb-1
40288         fi
40289 fi
40290
40291
40292                 if test "$ol_cv_lib_db" != no ; then
40293                         ol_cv_berkeley_db=yes
40294                 fi
40295         fi
40296 fi
40297
40298         else
40299                 ol_cv_berkeley_db=no
40300
40301 for ac_header in db.h
40302 do
40303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40305   echo "$as_me:$LINENO: checking for $ac_header" >&5
40306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40308   echo $ECHO_N "(cached) $ECHO_C" >&6
40309 fi
40310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40312 else
40313   # Is the header compilable?
40314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40316 cat >conftest.$ac_ext <<_ACEOF
40317 /* confdefs.h.  */
40318 _ACEOF
40319 cat confdefs.h >>conftest.$ac_ext
40320 cat >>conftest.$ac_ext <<_ACEOF
40321 /* end confdefs.h.  */
40322 $ac_includes_default
40323 #include <$ac_header>
40324 _ACEOF
40325 rm -f conftest.$ac_objext
40326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40327   (eval $ac_compile) 2>conftest.er1
40328   ac_status=$?
40329   grep -v '^ *+' conftest.er1 >conftest.err
40330   rm -f conftest.er1
40331   cat conftest.err >&5
40332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40333   (exit $ac_status); } &&
40334          { ac_try='test -z "$ac_c_werror_flag"
40335                          || test ! -s conftest.err'
40336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40337   (eval $ac_try) 2>&5
40338   ac_status=$?
40339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40340   (exit $ac_status); }; } &&
40341          { ac_try='test -s conftest.$ac_objext'
40342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40343   (eval $ac_try) 2>&5
40344   ac_status=$?
40345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40346   (exit $ac_status); }; }; then
40347   ac_header_compiler=yes
40348 else
40349   echo "$as_me: failed program was:" >&5
40350 sed 's/^/| /' conftest.$ac_ext >&5
40351
40352 ac_header_compiler=no
40353 fi
40354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40356 echo "${ECHO_T}$ac_header_compiler" >&6
40357
40358 # Is the header present?
40359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40361 cat >conftest.$ac_ext <<_ACEOF
40362 /* confdefs.h.  */
40363 _ACEOF
40364 cat confdefs.h >>conftest.$ac_ext
40365 cat >>conftest.$ac_ext <<_ACEOF
40366 /* end confdefs.h.  */
40367 #include <$ac_header>
40368 _ACEOF
40369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40370   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40371   ac_status=$?
40372   grep -v '^ *+' conftest.er1 >conftest.err
40373   rm -f conftest.er1
40374   cat conftest.err >&5
40375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40376   (exit $ac_status); } >/dev/null; then
40377   if test -s conftest.err; then
40378     ac_cpp_err=$ac_c_preproc_warn_flag
40379     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40380   else
40381     ac_cpp_err=
40382   fi
40383 else
40384   ac_cpp_err=yes
40385 fi
40386 if test -z "$ac_cpp_err"; then
40387   ac_header_preproc=yes
40388 else
40389   echo "$as_me: failed program was:" >&5
40390 sed 's/^/| /' conftest.$ac_ext >&5
40391
40392   ac_header_preproc=no
40393 fi
40394 rm -f conftest.err conftest.$ac_ext
40395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40396 echo "${ECHO_T}$ac_header_preproc" >&6
40397
40398 # So?  What about this header?
40399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40400   yes:no: )
40401     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40405     ac_header_preproc=yes
40406     ;;
40407   no:yes:* )
40408     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40410     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40411 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40412     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40414     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40415 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40418     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40420     (
40421       cat <<\_ASBOX
40422 ## ------------------------------------------ ##
40423 ## Report this to the AC_PACKAGE_NAME lists.  ##
40424 ## ------------------------------------------ ##
40425 _ASBOX
40426     ) |
40427       sed "s/^/$as_me: WARNING:     /" >&2
40428     ;;
40429 esac
40430 echo "$as_me:$LINENO: checking for $ac_header" >&5
40431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40433   echo $ECHO_N "(cached) $ECHO_C" >&6
40434 else
40435   eval "$as_ac_Header=\$ac_header_preproc"
40436 fi
40437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40439
40440 fi
40441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40442   cat >>confdefs.h <<_ACEOF
40443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40444 _ACEOF
40445
40446 fi
40447
40448 done
40449
40450 if test $ac_cv_header_db_h = yes; then
40451         ol_cv_lib_db=no
40452 if test $ol_cv_lib_db = no ; then
40453         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40454 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40455 if test "${ol_cv_db_none+set}" = set; then
40456   echo $ECHO_N "(cached) $ECHO_C" >&6
40457 else
40458
40459         ol_DB_LIB=
40460         ol_LIBS=$LIBS
40461         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40462
40463         cat >conftest.$ac_ext <<_ACEOF
40464 /* confdefs.h.  */
40465 _ACEOF
40466 cat confdefs.h >>conftest.$ac_ext
40467 cat >>conftest.$ac_ext <<_ACEOF
40468 /* end confdefs.h.  */
40469
40470 #ifdef HAVE_DB_185_H
40471 # include <db_185.h>
40472 #else
40473 # include <db.h>
40474 #endif
40475
40476 #ifndef DB_VERSION_MAJOR
40477 # define DB_VERSION_MAJOR 1
40478 #endif
40479
40480 #ifndef NULL
40481 #define NULL ((void*)0)
40482 #endif
40483
40484 int
40485 main ()
40486 {
40487
40488 #if DB_VERSION_MAJOR > 1
40489         {
40490                 char *version;
40491                 int major, minor, patch;
40492
40493                 version = db_version( &major, &minor, &patch );
40494
40495                 if( major != DB_VERSION_MAJOR ||
40496                         minor < DB_VERSION_MINOR )
40497                 {
40498                         printf("Berkeley DB version mismatch\n"
40499                                 "\theader: %s\n\tlibrary: %s\n",
40500                                 DB_VERSION_STRING, version);
40501                         return 1;
40502                 }
40503         }
40504 #endif
40505
40506 #if DB_VERSION_MAJOR > 2
40507         db_env_create( NULL, 0 );
40508 #elif DB_VERSION_MAJOR > 1
40509         db_appexit( NULL );
40510 #else
40511         (void) dbopen( NULL, 0, 0, 0, NULL);
40512 #endif
40513
40514   ;
40515   return 0;
40516 }
40517 _ACEOF
40518 rm -f conftest.$ac_objext conftest$ac_exeext
40519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40520   (eval $ac_link) 2>conftest.er1
40521   ac_status=$?
40522   grep -v '^ *+' conftest.er1 >conftest.err
40523   rm -f conftest.er1
40524   cat conftest.err >&5
40525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40526   (exit $ac_status); } &&
40527          { ac_try='test -z "$ac_c_werror_flag"
40528                          || test ! -s conftest.err'
40529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40530   (eval $ac_try) 2>&5
40531   ac_status=$?
40532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40533   (exit $ac_status); }; } &&
40534          { ac_try='test -s conftest$ac_exeext'
40535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40536   (eval $ac_try) 2>&5
40537   ac_status=$?
40538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40539   (exit $ac_status); }; }; then
40540   ol_cv_db_none=yes
40541 else
40542   echo "$as_me: failed program was:" >&5
40543 sed 's/^/| /' conftest.$ac_ext >&5
40544
40545 ol_cv_db_none=no
40546 fi
40547 rm -f conftest.err conftest.$ac_objext \
40548       conftest$ac_exeext conftest.$ac_ext
40549
40550         LIBS="$ol_LIBS"
40551
40552 fi
40553 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40554 echo "${ECHO_T}$ol_cv_db_none" >&6
40555
40556         if test $ol_cv_db_none = yes ; then
40557                 ol_cv_lib_db=yes
40558         fi
40559 fi
40560
40561 if test $ol_cv_lib_db = no ; then
40562         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40563 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40564 if test "${ol_cv_db_db43+set}" = set; then
40565   echo $ECHO_N "(cached) $ECHO_C" >&6
40566 else
40567
40568         ol_DB_LIB=-ldb43
40569         ol_LIBS=$LIBS
40570         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40571
40572         cat >conftest.$ac_ext <<_ACEOF
40573 /* confdefs.h.  */
40574 _ACEOF
40575 cat confdefs.h >>conftest.$ac_ext
40576 cat >>conftest.$ac_ext <<_ACEOF
40577 /* end confdefs.h.  */
40578
40579 #ifdef HAVE_DB_185_H
40580 # include <db_185.h>
40581 #else
40582 # include <db.h>
40583 #endif
40584
40585 #ifndef DB_VERSION_MAJOR
40586 # define DB_VERSION_MAJOR 1
40587 #endif
40588
40589 #ifndef NULL
40590 #define NULL ((void*)0)
40591 #endif
40592
40593 int
40594 main ()
40595 {
40596
40597 #if DB_VERSION_MAJOR > 1
40598         {
40599                 char *version;
40600                 int major, minor, patch;
40601
40602                 version = db_version( &major, &minor, &patch );
40603
40604                 if( major != DB_VERSION_MAJOR ||
40605                         minor < DB_VERSION_MINOR )
40606                 {
40607                         printf("Berkeley DB version mismatch\n"
40608                                 "\theader: %s\n\tlibrary: %s\n",
40609                                 DB_VERSION_STRING, version);
40610                         return 1;
40611                 }
40612         }
40613 #endif
40614
40615 #if DB_VERSION_MAJOR > 2
40616         db_env_create( NULL, 0 );
40617 #elif DB_VERSION_MAJOR > 1
40618         db_appexit( NULL );
40619 #else
40620         (void) dbopen( NULL, 0, 0, 0, NULL);
40621 #endif
40622
40623   ;
40624   return 0;
40625 }
40626 _ACEOF
40627 rm -f conftest.$ac_objext conftest$ac_exeext
40628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40629   (eval $ac_link) 2>conftest.er1
40630   ac_status=$?
40631   grep -v '^ *+' conftest.er1 >conftest.err
40632   rm -f conftest.er1
40633   cat conftest.err >&5
40634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40635   (exit $ac_status); } &&
40636          { ac_try='test -z "$ac_c_werror_flag"
40637                          || test ! -s conftest.err'
40638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40639   (eval $ac_try) 2>&5
40640   ac_status=$?
40641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40642   (exit $ac_status); }; } &&
40643          { ac_try='test -s conftest$ac_exeext'
40644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40645   (eval $ac_try) 2>&5
40646   ac_status=$?
40647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40648   (exit $ac_status); }; }; then
40649   ol_cv_db_db43=yes
40650 else
40651   echo "$as_me: failed program was:" >&5
40652 sed 's/^/| /' conftest.$ac_ext >&5
40653
40654 ol_cv_db_db43=no
40655 fi
40656 rm -f conftest.err conftest.$ac_objext \
40657       conftest$ac_exeext conftest.$ac_ext
40658
40659         LIBS="$ol_LIBS"
40660
40661 fi
40662 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40663 echo "${ECHO_T}$ol_cv_db_db43" >&6
40664
40665         if test $ol_cv_db_db43 = yes ; then
40666                 ol_cv_lib_db=-ldb43
40667         fi
40668 fi
40669
40670 if test $ol_cv_lib_db = no ; then
40671         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40672 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40673 if test "${ol_cv_db_db_43+set}" = set; then
40674   echo $ECHO_N "(cached) $ECHO_C" >&6
40675 else
40676
40677         ol_DB_LIB=-ldb-43
40678         ol_LIBS=$LIBS
40679         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40680
40681         cat >conftest.$ac_ext <<_ACEOF
40682 /* confdefs.h.  */
40683 _ACEOF
40684 cat confdefs.h >>conftest.$ac_ext
40685 cat >>conftest.$ac_ext <<_ACEOF
40686 /* end confdefs.h.  */
40687
40688 #ifdef HAVE_DB_185_H
40689 # include <db_185.h>
40690 #else
40691 # include <db.h>
40692 #endif
40693
40694 #ifndef DB_VERSION_MAJOR
40695 # define DB_VERSION_MAJOR 1
40696 #endif
40697
40698 #ifndef NULL
40699 #define NULL ((void*)0)
40700 #endif
40701
40702 int
40703 main ()
40704 {
40705
40706 #if DB_VERSION_MAJOR > 1
40707         {
40708                 char *version;
40709                 int major, minor, patch;
40710
40711                 version = db_version( &major, &minor, &patch );
40712
40713                 if( major != DB_VERSION_MAJOR ||
40714                         minor < DB_VERSION_MINOR )
40715                 {
40716                         printf("Berkeley DB version mismatch\n"
40717                                 "\theader: %s\n\tlibrary: %s\n",
40718                                 DB_VERSION_STRING, version);
40719                         return 1;
40720                 }
40721         }
40722 #endif
40723
40724 #if DB_VERSION_MAJOR > 2
40725         db_env_create( NULL, 0 );
40726 #elif DB_VERSION_MAJOR > 1
40727         db_appexit( NULL );
40728 #else
40729         (void) dbopen( NULL, 0, 0, 0, NULL);
40730 #endif
40731
40732   ;
40733   return 0;
40734 }
40735 _ACEOF
40736 rm -f conftest.$ac_objext conftest$ac_exeext
40737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40738   (eval $ac_link) 2>conftest.er1
40739   ac_status=$?
40740   grep -v '^ *+' conftest.er1 >conftest.err
40741   rm -f conftest.er1
40742   cat conftest.err >&5
40743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40744   (exit $ac_status); } &&
40745          { ac_try='test -z "$ac_c_werror_flag"
40746                          || test ! -s conftest.err'
40747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40748   (eval $ac_try) 2>&5
40749   ac_status=$?
40750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40751   (exit $ac_status); }; } &&
40752          { ac_try='test -s conftest$ac_exeext'
40753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40754   (eval $ac_try) 2>&5
40755   ac_status=$?
40756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40757   (exit $ac_status); }; }; then
40758   ol_cv_db_db_43=yes
40759 else
40760   echo "$as_me: failed program was:" >&5
40761 sed 's/^/| /' conftest.$ac_ext >&5
40762
40763 ol_cv_db_db_43=no
40764 fi
40765 rm -f conftest.err conftest.$ac_objext \
40766       conftest$ac_exeext conftest.$ac_ext
40767
40768         LIBS="$ol_LIBS"
40769
40770 fi
40771 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
40772 echo "${ECHO_T}$ol_cv_db_db_43" >&6
40773
40774         if test $ol_cv_db_db_43 = yes ; then
40775                 ol_cv_lib_db=-ldb-43
40776         fi
40777 fi
40778
40779 if test $ol_cv_lib_db = no ; then
40780         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
40781 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
40782 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
40783   echo $ECHO_N "(cached) $ECHO_C" >&6
40784 else
40785
40786         ol_DB_LIB=-ldb-4.3
40787         ol_LIBS=$LIBS
40788         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40789
40790         cat >conftest.$ac_ext <<_ACEOF
40791 /* confdefs.h.  */
40792 _ACEOF
40793 cat confdefs.h >>conftest.$ac_ext
40794 cat >>conftest.$ac_ext <<_ACEOF
40795 /* end confdefs.h.  */
40796
40797 #ifdef HAVE_DB_185_H
40798 # include <db_185.h>
40799 #else
40800 # include <db.h>
40801 #endif
40802
40803 #ifndef DB_VERSION_MAJOR
40804 # define DB_VERSION_MAJOR 1
40805 #endif
40806
40807 #ifndef NULL
40808 #define NULL ((void*)0)
40809 #endif
40810
40811 int
40812 main ()
40813 {
40814
40815 #if DB_VERSION_MAJOR > 1
40816         {
40817                 char *version;
40818                 int major, minor, patch;
40819
40820                 version = db_version( &major, &minor, &patch );
40821
40822                 if( major != DB_VERSION_MAJOR ||
40823                         minor < DB_VERSION_MINOR )
40824                 {
40825                         printf("Berkeley DB version mismatch\n"
40826                                 "\theader: %s\n\tlibrary: %s\n",
40827                                 DB_VERSION_STRING, version);
40828                         return 1;
40829                 }
40830         }
40831 #endif
40832
40833 #if DB_VERSION_MAJOR > 2
40834         db_env_create( NULL, 0 );
40835 #elif DB_VERSION_MAJOR > 1
40836         db_appexit( NULL );
40837 #else
40838         (void) dbopen( NULL, 0, 0, 0, NULL);
40839 #endif
40840
40841   ;
40842   return 0;
40843 }
40844 _ACEOF
40845 rm -f conftest.$ac_objext conftest$ac_exeext
40846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40847   (eval $ac_link) 2>conftest.er1
40848   ac_status=$?
40849   grep -v '^ *+' conftest.er1 >conftest.err
40850   rm -f conftest.er1
40851   cat conftest.err >&5
40852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40853   (exit $ac_status); } &&
40854          { ac_try='test -z "$ac_c_werror_flag"
40855                          || test ! -s conftest.err'
40856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40857   (eval $ac_try) 2>&5
40858   ac_status=$?
40859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40860   (exit $ac_status); }; } &&
40861          { ac_try='test -s conftest$ac_exeext'
40862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40863   (eval $ac_try) 2>&5
40864   ac_status=$?
40865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40866   (exit $ac_status); }; }; then
40867   ol_cv_db_db_4_dot_3=yes
40868 else
40869   echo "$as_me: failed program was:" >&5
40870 sed 's/^/| /' conftest.$ac_ext >&5
40871
40872 ol_cv_db_db_4_dot_3=no
40873 fi
40874 rm -f conftest.err conftest.$ac_objext \
40875       conftest$ac_exeext conftest.$ac_ext
40876
40877         LIBS="$ol_LIBS"
40878
40879 fi
40880 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
40881 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
40882
40883         if test $ol_cv_db_db_4_dot_3 = yes ; then
40884                 ol_cv_lib_db=-ldb-4.3
40885         fi
40886 fi
40887
40888 if test $ol_cv_lib_db = no ; then
40889         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
40890 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
40891 if test "${ol_cv_db_db_4_3+set}" = set; then
40892   echo $ECHO_N "(cached) $ECHO_C" >&6
40893 else
40894
40895         ol_DB_LIB=-ldb-4-3
40896         ol_LIBS=$LIBS
40897         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40898
40899         cat >conftest.$ac_ext <<_ACEOF
40900 /* confdefs.h.  */
40901 _ACEOF
40902 cat confdefs.h >>conftest.$ac_ext
40903 cat >>conftest.$ac_ext <<_ACEOF
40904 /* end confdefs.h.  */
40905
40906 #ifdef HAVE_DB_185_H
40907 # include <db_185.h>
40908 #else
40909 # include <db.h>
40910 #endif
40911
40912 #ifndef DB_VERSION_MAJOR
40913 # define DB_VERSION_MAJOR 1
40914 #endif
40915
40916 #ifndef NULL
40917 #define NULL ((void*)0)
40918 #endif
40919
40920 int
40921 main ()
40922 {
40923
40924 #if DB_VERSION_MAJOR > 1
40925         {
40926                 char *version;
40927                 int major, minor, patch;
40928
40929                 version = db_version( &major, &minor, &patch );
40930
40931                 if( major != DB_VERSION_MAJOR ||
40932                         minor < DB_VERSION_MINOR )
40933                 {
40934                         printf("Berkeley DB version mismatch\n"
40935                                 "\theader: %s\n\tlibrary: %s\n",
40936                                 DB_VERSION_STRING, version);
40937                         return 1;
40938                 }
40939         }
40940 #endif
40941
40942 #if DB_VERSION_MAJOR > 2
40943         db_env_create( NULL, 0 );
40944 #elif DB_VERSION_MAJOR > 1
40945         db_appexit( NULL );
40946 #else
40947         (void) dbopen( NULL, 0, 0, 0, NULL);
40948 #endif
40949
40950   ;
40951   return 0;
40952 }
40953 _ACEOF
40954 rm -f conftest.$ac_objext conftest$ac_exeext
40955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40956   (eval $ac_link) 2>conftest.er1
40957   ac_status=$?
40958   grep -v '^ *+' conftest.er1 >conftest.err
40959   rm -f conftest.er1
40960   cat conftest.err >&5
40961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40962   (exit $ac_status); } &&
40963          { ac_try='test -z "$ac_c_werror_flag"
40964                          || test ! -s conftest.err'
40965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40966   (eval $ac_try) 2>&5
40967   ac_status=$?
40968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40969   (exit $ac_status); }; } &&
40970          { ac_try='test -s conftest$ac_exeext'
40971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40972   (eval $ac_try) 2>&5
40973   ac_status=$?
40974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40975   (exit $ac_status); }; }; then
40976   ol_cv_db_db_4_3=yes
40977 else
40978   echo "$as_me: failed program was:" >&5
40979 sed 's/^/| /' conftest.$ac_ext >&5
40980
40981 ol_cv_db_db_4_3=no
40982 fi
40983 rm -f conftest.err conftest.$ac_objext \
40984       conftest$ac_exeext conftest.$ac_ext
40985
40986         LIBS="$ol_LIBS"
40987
40988 fi
40989 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
40990 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
40991
40992         if test $ol_cv_db_db_4_3 = yes ; then
40993                 ol_cv_lib_db=-ldb-4-3
40994         fi
40995 fi
40996
40997 if test $ol_cv_lib_db = no ; then
40998         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
40999 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
41000 if test "${ol_cv_db_db42+set}" = set; then
41001   echo $ECHO_N "(cached) $ECHO_C" >&6
41002 else
41003
41004         ol_DB_LIB=-ldb42
41005         ol_LIBS=$LIBS
41006         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41007
41008         cat >conftest.$ac_ext <<_ACEOF
41009 /* confdefs.h.  */
41010 _ACEOF
41011 cat confdefs.h >>conftest.$ac_ext
41012 cat >>conftest.$ac_ext <<_ACEOF
41013 /* end confdefs.h.  */
41014
41015 #ifdef HAVE_DB_185_H
41016 # include <db_185.h>
41017 #else
41018 # include <db.h>
41019 #endif
41020
41021 #ifndef DB_VERSION_MAJOR
41022 # define DB_VERSION_MAJOR 1
41023 #endif
41024
41025 #ifndef NULL
41026 #define NULL ((void*)0)
41027 #endif
41028
41029 int
41030 main ()
41031 {
41032
41033 #if DB_VERSION_MAJOR > 1
41034         {
41035                 char *version;
41036                 int major, minor, patch;
41037
41038                 version = db_version( &major, &minor, &patch );
41039
41040                 if( major != DB_VERSION_MAJOR ||
41041                         minor < DB_VERSION_MINOR )
41042                 {
41043                         printf("Berkeley DB version mismatch\n"
41044                                 "\theader: %s\n\tlibrary: %s\n",
41045                                 DB_VERSION_STRING, version);
41046                         return 1;
41047                 }
41048         }
41049 #endif
41050
41051 #if DB_VERSION_MAJOR > 2
41052         db_env_create( NULL, 0 );
41053 #elif DB_VERSION_MAJOR > 1
41054         db_appexit( NULL );
41055 #else
41056         (void) dbopen( NULL, 0, 0, 0, NULL);
41057 #endif
41058
41059   ;
41060   return 0;
41061 }
41062 _ACEOF
41063 rm -f conftest.$ac_objext conftest$ac_exeext
41064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41065   (eval $ac_link) 2>conftest.er1
41066   ac_status=$?
41067   grep -v '^ *+' conftest.er1 >conftest.err
41068   rm -f conftest.er1
41069   cat conftest.err >&5
41070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41071   (exit $ac_status); } &&
41072          { ac_try='test -z "$ac_c_werror_flag"
41073                          || test ! -s conftest.err'
41074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41075   (eval $ac_try) 2>&5
41076   ac_status=$?
41077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41078   (exit $ac_status); }; } &&
41079          { ac_try='test -s conftest$ac_exeext'
41080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41081   (eval $ac_try) 2>&5
41082   ac_status=$?
41083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41084   (exit $ac_status); }; }; then
41085   ol_cv_db_db42=yes
41086 else
41087   echo "$as_me: failed program was:" >&5
41088 sed 's/^/| /' conftest.$ac_ext >&5
41089
41090 ol_cv_db_db42=no
41091 fi
41092 rm -f conftest.err conftest.$ac_objext \
41093       conftest$ac_exeext conftest.$ac_ext
41094
41095         LIBS="$ol_LIBS"
41096
41097 fi
41098 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41099 echo "${ECHO_T}$ol_cv_db_db42" >&6
41100
41101         if test $ol_cv_db_db42 = yes ; then
41102                 ol_cv_lib_db=-ldb42
41103         fi
41104 fi
41105
41106 if test $ol_cv_lib_db = no ; then
41107         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41108 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41109 if test "${ol_cv_db_db_42+set}" = set; then
41110   echo $ECHO_N "(cached) $ECHO_C" >&6
41111 else
41112
41113         ol_DB_LIB=-ldb-42
41114         ol_LIBS=$LIBS
41115         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41116
41117         cat >conftest.$ac_ext <<_ACEOF
41118 /* confdefs.h.  */
41119 _ACEOF
41120 cat confdefs.h >>conftest.$ac_ext
41121 cat >>conftest.$ac_ext <<_ACEOF
41122 /* end confdefs.h.  */
41123
41124 #ifdef HAVE_DB_185_H
41125 # include <db_185.h>
41126 #else
41127 # include <db.h>
41128 #endif
41129
41130 #ifndef DB_VERSION_MAJOR
41131 # define DB_VERSION_MAJOR 1
41132 #endif
41133
41134 #ifndef NULL
41135 #define NULL ((void*)0)
41136 #endif
41137
41138 int
41139 main ()
41140 {
41141
41142 #if DB_VERSION_MAJOR > 1
41143         {
41144                 char *version;
41145                 int major, minor, patch;
41146
41147                 version = db_version( &major, &minor, &patch );
41148
41149                 if( major != DB_VERSION_MAJOR ||
41150                         minor < DB_VERSION_MINOR )
41151                 {
41152                         printf("Berkeley DB version mismatch\n"
41153                                 "\theader: %s\n\tlibrary: %s\n",
41154                                 DB_VERSION_STRING, version);
41155                         return 1;
41156                 }
41157         }
41158 #endif
41159
41160 #if DB_VERSION_MAJOR > 2
41161         db_env_create( NULL, 0 );
41162 #elif DB_VERSION_MAJOR > 1
41163         db_appexit( NULL );
41164 #else
41165         (void) dbopen( NULL, 0, 0, 0, NULL);
41166 #endif
41167
41168   ;
41169   return 0;
41170 }
41171 _ACEOF
41172 rm -f conftest.$ac_objext conftest$ac_exeext
41173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41174   (eval $ac_link) 2>conftest.er1
41175   ac_status=$?
41176   grep -v '^ *+' conftest.er1 >conftest.err
41177   rm -f conftest.er1
41178   cat conftest.err >&5
41179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41180   (exit $ac_status); } &&
41181          { ac_try='test -z "$ac_c_werror_flag"
41182                          || test ! -s conftest.err'
41183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41184   (eval $ac_try) 2>&5
41185   ac_status=$?
41186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41187   (exit $ac_status); }; } &&
41188          { ac_try='test -s conftest$ac_exeext'
41189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41190   (eval $ac_try) 2>&5
41191   ac_status=$?
41192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41193   (exit $ac_status); }; }; then
41194   ol_cv_db_db_42=yes
41195 else
41196   echo "$as_me: failed program was:" >&5
41197 sed 's/^/| /' conftest.$ac_ext >&5
41198
41199 ol_cv_db_db_42=no
41200 fi
41201 rm -f conftest.err conftest.$ac_objext \
41202       conftest$ac_exeext conftest.$ac_ext
41203
41204         LIBS="$ol_LIBS"
41205
41206 fi
41207 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41208 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41209
41210         if test $ol_cv_db_db_42 = yes ; then
41211                 ol_cv_lib_db=-ldb-42
41212         fi
41213 fi
41214
41215 if test $ol_cv_lib_db = no ; then
41216         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41217 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41218 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41219   echo $ECHO_N "(cached) $ECHO_C" >&6
41220 else
41221
41222         ol_DB_LIB=-ldb-4.2
41223         ol_LIBS=$LIBS
41224         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41225
41226         cat >conftest.$ac_ext <<_ACEOF
41227 /* confdefs.h.  */
41228 _ACEOF
41229 cat confdefs.h >>conftest.$ac_ext
41230 cat >>conftest.$ac_ext <<_ACEOF
41231 /* end confdefs.h.  */
41232
41233 #ifdef HAVE_DB_185_H
41234 # include <db_185.h>
41235 #else
41236 # include <db.h>
41237 #endif
41238
41239 #ifndef DB_VERSION_MAJOR
41240 # define DB_VERSION_MAJOR 1
41241 #endif
41242
41243 #ifndef NULL
41244 #define NULL ((void*)0)
41245 #endif
41246
41247 int
41248 main ()
41249 {
41250
41251 #if DB_VERSION_MAJOR > 1
41252         {
41253                 char *version;
41254                 int major, minor, patch;
41255
41256                 version = db_version( &major, &minor, &patch );
41257
41258                 if( major != DB_VERSION_MAJOR ||
41259                         minor < DB_VERSION_MINOR )
41260                 {
41261                         printf("Berkeley DB version mismatch\n"
41262                                 "\theader: %s\n\tlibrary: %s\n",
41263                                 DB_VERSION_STRING, version);
41264                         return 1;
41265                 }
41266         }
41267 #endif
41268
41269 #if DB_VERSION_MAJOR > 2
41270         db_env_create( NULL, 0 );
41271 #elif DB_VERSION_MAJOR > 1
41272         db_appexit( NULL );
41273 #else
41274         (void) dbopen( NULL, 0, 0, 0, NULL);
41275 #endif
41276
41277   ;
41278   return 0;
41279 }
41280 _ACEOF
41281 rm -f conftest.$ac_objext conftest$ac_exeext
41282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41283   (eval $ac_link) 2>conftest.er1
41284   ac_status=$?
41285   grep -v '^ *+' conftest.er1 >conftest.err
41286   rm -f conftest.er1
41287   cat conftest.err >&5
41288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41289   (exit $ac_status); } &&
41290          { ac_try='test -z "$ac_c_werror_flag"
41291                          || test ! -s conftest.err'
41292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41293   (eval $ac_try) 2>&5
41294   ac_status=$?
41295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41296   (exit $ac_status); }; } &&
41297          { ac_try='test -s conftest$ac_exeext'
41298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41299   (eval $ac_try) 2>&5
41300   ac_status=$?
41301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41302   (exit $ac_status); }; }; then
41303   ol_cv_db_db_4_dot_2=yes
41304 else
41305   echo "$as_me: failed program was:" >&5
41306 sed 's/^/| /' conftest.$ac_ext >&5
41307
41308 ol_cv_db_db_4_dot_2=no
41309 fi
41310 rm -f conftest.err conftest.$ac_objext \
41311       conftest$ac_exeext conftest.$ac_ext
41312
41313         LIBS="$ol_LIBS"
41314
41315 fi
41316 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41317 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41318
41319         if test $ol_cv_db_db_4_dot_2 = yes ; then
41320                 ol_cv_lib_db=-ldb-4.2
41321         fi
41322 fi
41323
41324 if test $ol_cv_lib_db = no ; then
41325         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41326 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41327 if test "${ol_cv_db_db_4_2+set}" = set; then
41328   echo $ECHO_N "(cached) $ECHO_C" >&6
41329 else
41330
41331         ol_DB_LIB=-ldb-4-2
41332         ol_LIBS=$LIBS
41333         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41334
41335         cat >conftest.$ac_ext <<_ACEOF
41336 /* confdefs.h.  */
41337 _ACEOF
41338 cat confdefs.h >>conftest.$ac_ext
41339 cat >>conftest.$ac_ext <<_ACEOF
41340 /* end confdefs.h.  */
41341
41342 #ifdef HAVE_DB_185_H
41343 # include <db_185.h>
41344 #else
41345 # include <db.h>
41346 #endif
41347
41348 #ifndef DB_VERSION_MAJOR
41349 # define DB_VERSION_MAJOR 1
41350 #endif
41351
41352 #ifndef NULL
41353 #define NULL ((void*)0)
41354 #endif
41355
41356 int
41357 main ()
41358 {
41359
41360 #if DB_VERSION_MAJOR > 1
41361         {
41362                 char *version;
41363                 int major, minor, patch;
41364
41365                 version = db_version( &major, &minor, &patch );
41366
41367                 if( major != DB_VERSION_MAJOR ||
41368                         minor < DB_VERSION_MINOR )
41369                 {
41370                         printf("Berkeley DB version mismatch\n"
41371                                 "\theader: %s\n\tlibrary: %s\n",
41372                                 DB_VERSION_STRING, version);
41373                         return 1;
41374                 }
41375         }
41376 #endif
41377
41378 #if DB_VERSION_MAJOR > 2
41379         db_env_create( NULL, 0 );
41380 #elif DB_VERSION_MAJOR > 1
41381         db_appexit( NULL );
41382 #else
41383         (void) dbopen( NULL, 0, 0, 0, NULL);
41384 #endif
41385
41386   ;
41387   return 0;
41388 }
41389 _ACEOF
41390 rm -f conftest.$ac_objext conftest$ac_exeext
41391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41392   (eval $ac_link) 2>conftest.er1
41393   ac_status=$?
41394   grep -v '^ *+' conftest.er1 >conftest.err
41395   rm -f conftest.er1
41396   cat conftest.err >&5
41397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41398   (exit $ac_status); } &&
41399          { ac_try='test -z "$ac_c_werror_flag"
41400                          || test ! -s conftest.err'
41401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41402   (eval $ac_try) 2>&5
41403   ac_status=$?
41404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41405   (exit $ac_status); }; } &&
41406          { ac_try='test -s conftest$ac_exeext'
41407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41408   (eval $ac_try) 2>&5
41409   ac_status=$?
41410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41411   (exit $ac_status); }; }; then
41412   ol_cv_db_db_4_2=yes
41413 else
41414   echo "$as_me: failed program was:" >&5
41415 sed 's/^/| /' conftest.$ac_ext >&5
41416
41417 ol_cv_db_db_4_2=no
41418 fi
41419 rm -f conftest.err conftest.$ac_objext \
41420       conftest$ac_exeext conftest.$ac_ext
41421
41422         LIBS="$ol_LIBS"
41423
41424 fi
41425 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41426 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41427
41428         if test $ol_cv_db_db_4_2 = yes ; then
41429                 ol_cv_lib_db=-ldb-4-2
41430         fi
41431 fi
41432
41433 if test $ol_cv_lib_db = no ; then
41434         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41435 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41436 if test "${ol_cv_db_db_4+set}" = set; then
41437   echo $ECHO_N "(cached) $ECHO_C" >&6
41438 else
41439
41440         ol_DB_LIB=-ldb-4
41441         ol_LIBS=$LIBS
41442         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41443
41444         cat >conftest.$ac_ext <<_ACEOF
41445 /* confdefs.h.  */
41446 _ACEOF
41447 cat confdefs.h >>conftest.$ac_ext
41448 cat >>conftest.$ac_ext <<_ACEOF
41449 /* end confdefs.h.  */
41450
41451 #ifdef HAVE_DB_185_H
41452 # include <db_185.h>
41453 #else
41454 # include <db.h>
41455 #endif
41456
41457 #ifndef DB_VERSION_MAJOR
41458 # define DB_VERSION_MAJOR 1
41459 #endif
41460
41461 #ifndef NULL
41462 #define NULL ((void*)0)
41463 #endif
41464
41465 int
41466 main ()
41467 {
41468
41469 #if DB_VERSION_MAJOR > 1
41470         {
41471                 char *version;
41472                 int major, minor, patch;
41473
41474                 version = db_version( &major, &minor, &patch );
41475
41476                 if( major != DB_VERSION_MAJOR ||
41477                         minor < DB_VERSION_MINOR )
41478                 {
41479                         printf("Berkeley DB version mismatch\n"
41480                                 "\theader: %s\n\tlibrary: %s\n",
41481                                 DB_VERSION_STRING, version);
41482                         return 1;
41483                 }
41484         }
41485 #endif
41486
41487 #if DB_VERSION_MAJOR > 2
41488         db_env_create( NULL, 0 );
41489 #elif DB_VERSION_MAJOR > 1
41490         db_appexit( NULL );
41491 #else
41492         (void) dbopen( NULL, 0, 0, 0, NULL);
41493 #endif
41494
41495   ;
41496   return 0;
41497 }
41498 _ACEOF
41499 rm -f conftest.$ac_objext conftest$ac_exeext
41500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41501   (eval $ac_link) 2>conftest.er1
41502   ac_status=$?
41503   grep -v '^ *+' conftest.er1 >conftest.err
41504   rm -f conftest.er1
41505   cat conftest.err >&5
41506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41507   (exit $ac_status); } &&
41508          { ac_try='test -z "$ac_c_werror_flag"
41509                          || test ! -s conftest.err'
41510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41511   (eval $ac_try) 2>&5
41512   ac_status=$?
41513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41514   (exit $ac_status); }; } &&
41515          { ac_try='test -s conftest$ac_exeext'
41516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41517   (eval $ac_try) 2>&5
41518   ac_status=$?
41519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41520   (exit $ac_status); }; }; then
41521   ol_cv_db_db_4=yes
41522 else
41523   echo "$as_me: failed program was:" >&5
41524 sed 's/^/| /' conftest.$ac_ext >&5
41525
41526 ol_cv_db_db_4=no
41527 fi
41528 rm -f conftest.err conftest.$ac_objext \
41529       conftest$ac_exeext conftest.$ac_ext
41530
41531         LIBS="$ol_LIBS"
41532
41533 fi
41534 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41535 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41536
41537         if test $ol_cv_db_db_4 = yes ; then
41538                 ol_cv_lib_db=-ldb-4
41539         fi
41540 fi
41541
41542 if test $ol_cv_lib_db = no ; then
41543         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41544 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41545 if test "${ol_cv_db_db4+set}" = set; then
41546   echo $ECHO_N "(cached) $ECHO_C" >&6
41547 else
41548
41549         ol_DB_LIB=-ldb4
41550         ol_LIBS=$LIBS
41551         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41552
41553         cat >conftest.$ac_ext <<_ACEOF
41554 /* confdefs.h.  */
41555 _ACEOF
41556 cat confdefs.h >>conftest.$ac_ext
41557 cat >>conftest.$ac_ext <<_ACEOF
41558 /* end confdefs.h.  */
41559
41560 #ifdef HAVE_DB_185_H
41561 # include <db_185.h>
41562 #else
41563 # include <db.h>
41564 #endif
41565
41566 #ifndef DB_VERSION_MAJOR
41567 # define DB_VERSION_MAJOR 1
41568 #endif
41569
41570 #ifndef NULL
41571 #define NULL ((void*)0)
41572 #endif
41573
41574 int
41575 main ()
41576 {
41577
41578 #if DB_VERSION_MAJOR > 1
41579         {
41580                 char *version;
41581                 int major, minor, patch;
41582
41583                 version = db_version( &major, &minor, &patch );
41584
41585                 if( major != DB_VERSION_MAJOR ||
41586                         minor < DB_VERSION_MINOR )
41587                 {
41588                         printf("Berkeley DB version mismatch\n"
41589                                 "\theader: %s\n\tlibrary: %s\n",
41590                                 DB_VERSION_STRING, version);
41591                         return 1;
41592                 }
41593         }
41594 #endif
41595
41596 #if DB_VERSION_MAJOR > 2
41597         db_env_create( NULL, 0 );
41598 #elif DB_VERSION_MAJOR > 1
41599         db_appexit( NULL );
41600 #else
41601         (void) dbopen( NULL, 0, 0, 0, NULL);
41602 #endif
41603
41604   ;
41605   return 0;
41606 }
41607 _ACEOF
41608 rm -f conftest.$ac_objext conftest$ac_exeext
41609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41610   (eval $ac_link) 2>conftest.er1
41611   ac_status=$?
41612   grep -v '^ *+' conftest.er1 >conftest.err
41613   rm -f conftest.er1
41614   cat conftest.err >&5
41615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41616   (exit $ac_status); } &&
41617          { ac_try='test -z "$ac_c_werror_flag"
41618                          || test ! -s conftest.err'
41619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41620   (eval $ac_try) 2>&5
41621   ac_status=$?
41622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41623   (exit $ac_status); }; } &&
41624          { ac_try='test -s conftest$ac_exeext'
41625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41626   (eval $ac_try) 2>&5
41627   ac_status=$?
41628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41629   (exit $ac_status); }; }; then
41630   ol_cv_db_db4=yes
41631 else
41632   echo "$as_me: failed program was:" >&5
41633 sed 's/^/| /' conftest.$ac_ext >&5
41634
41635 ol_cv_db_db4=no
41636 fi
41637 rm -f conftest.err conftest.$ac_objext \
41638       conftest$ac_exeext conftest.$ac_ext
41639
41640         LIBS="$ol_LIBS"
41641
41642 fi
41643 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41644 echo "${ECHO_T}$ol_cv_db_db4" >&6
41645
41646         if test $ol_cv_db_db4 = yes ; then
41647                 ol_cv_lib_db=-ldb4
41648         fi
41649 fi
41650
41651 if test $ol_cv_lib_db = no ; then
41652         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41653 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41654 if test "${ol_cv_db_db+set}" = set; then
41655   echo $ECHO_N "(cached) $ECHO_C" >&6
41656 else
41657
41658         ol_DB_LIB=-ldb
41659         ol_LIBS=$LIBS
41660         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41661
41662         cat >conftest.$ac_ext <<_ACEOF
41663 /* confdefs.h.  */
41664 _ACEOF
41665 cat confdefs.h >>conftest.$ac_ext
41666 cat >>conftest.$ac_ext <<_ACEOF
41667 /* end confdefs.h.  */
41668
41669 #ifdef HAVE_DB_185_H
41670 # include <db_185.h>
41671 #else
41672 # include <db.h>
41673 #endif
41674
41675 #ifndef DB_VERSION_MAJOR
41676 # define DB_VERSION_MAJOR 1
41677 #endif
41678
41679 #ifndef NULL
41680 #define NULL ((void*)0)
41681 #endif
41682
41683 int
41684 main ()
41685 {
41686
41687 #if DB_VERSION_MAJOR > 1
41688         {
41689                 char *version;
41690                 int major, minor, patch;
41691
41692                 version = db_version( &major, &minor, &patch );
41693
41694                 if( major != DB_VERSION_MAJOR ||
41695                         minor < DB_VERSION_MINOR )
41696                 {
41697                         printf("Berkeley DB version mismatch\n"
41698                                 "\theader: %s\n\tlibrary: %s\n",
41699                                 DB_VERSION_STRING, version);
41700                         return 1;
41701                 }
41702         }
41703 #endif
41704
41705 #if DB_VERSION_MAJOR > 2
41706         db_env_create( NULL, 0 );
41707 #elif DB_VERSION_MAJOR > 1
41708         db_appexit( NULL );
41709 #else
41710         (void) dbopen( NULL, 0, 0, 0, NULL);
41711 #endif
41712
41713   ;
41714   return 0;
41715 }
41716 _ACEOF
41717 rm -f conftest.$ac_objext conftest$ac_exeext
41718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41719   (eval $ac_link) 2>conftest.er1
41720   ac_status=$?
41721   grep -v '^ *+' conftest.er1 >conftest.err
41722   rm -f conftest.er1
41723   cat conftest.err >&5
41724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41725   (exit $ac_status); } &&
41726          { ac_try='test -z "$ac_c_werror_flag"
41727                          || test ! -s conftest.err'
41728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41729   (eval $ac_try) 2>&5
41730   ac_status=$?
41731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41732   (exit $ac_status); }; } &&
41733          { ac_try='test -s conftest$ac_exeext'
41734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41735   (eval $ac_try) 2>&5
41736   ac_status=$?
41737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41738   (exit $ac_status); }; }; then
41739   ol_cv_db_db=yes
41740 else
41741   echo "$as_me: failed program was:" >&5
41742 sed 's/^/| /' conftest.$ac_ext >&5
41743
41744 ol_cv_db_db=no
41745 fi
41746 rm -f conftest.err conftest.$ac_objext \
41747       conftest$ac_exeext conftest.$ac_ext
41748
41749         LIBS="$ol_LIBS"
41750
41751 fi
41752 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
41753 echo "${ECHO_T}$ol_cv_db_db" >&6
41754
41755         if test $ol_cv_db_db = yes ; then
41756                 ol_cv_lib_db=-ldb
41757         fi
41758 fi
41759
41760 if test $ol_cv_lib_db = no ; then
41761         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
41762 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
41763 if test "${ol_cv_db_db41+set}" = set; then
41764   echo $ECHO_N "(cached) $ECHO_C" >&6
41765 else
41766
41767         ol_DB_LIB=-ldb41
41768         ol_LIBS=$LIBS
41769         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41770
41771         cat >conftest.$ac_ext <<_ACEOF
41772 /* confdefs.h.  */
41773 _ACEOF
41774 cat confdefs.h >>conftest.$ac_ext
41775 cat >>conftest.$ac_ext <<_ACEOF
41776 /* end confdefs.h.  */
41777
41778 #ifdef HAVE_DB_185_H
41779 # include <db_185.h>
41780 #else
41781 # include <db.h>
41782 #endif
41783
41784 #ifndef DB_VERSION_MAJOR
41785 # define DB_VERSION_MAJOR 1
41786 #endif
41787
41788 #ifndef NULL
41789 #define NULL ((void*)0)
41790 #endif
41791
41792 int
41793 main ()
41794 {
41795
41796 #if DB_VERSION_MAJOR > 1
41797         {
41798                 char *version;
41799                 int major, minor, patch;
41800
41801                 version = db_version( &major, &minor, &patch );
41802
41803                 if( major != DB_VERSION_MAJOR ||
41804                         minor < DB_VERSION_MINOR )
41805                 {
41806                         printf("Berkeley DB version mismatch\n"
41807                                 "\theader: %s\n\tlibrary: %s\n",
41808                                 DB_VERSION_STRING, version);
41809                         return 1;
41810                 }
41811         }
41812 #endif
41813
41814 #if DB_VERSION_MAJOR > 2
41815         db_env_create( NULL, 0 );
41816 #elif DB_VERSION_MAJOR > 1
41817         db_appexit( NULL );
41818 #else
41819         (void) dbopen( NULL, 0, 0, 0, NULL);
41820 #endif
41821
41822   ;
41823   return 0;
41824 }
41825 _ACEOF
41826 rm -f conftest.$ac_objext conftest$ac_exeext
41827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41828   (eval $ac_link) 2>conftest.er1
41829   ac_status=$?
41830   grep -v '^ *+' conftest.er1 >conftest.err
41831   rm -f conftest.er1
41832   cat conftest.err >&5
41833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41834   (exit $ac_status); } &&
41835          { ac_try='test -z "$ac_c_werror_flag"
41836                          || test ! -s conftest.err'
41837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41838   (eval $ac_try) 2>&5
41839   ac_status=$?
41840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41841   (exit $ac_status); }; } &&
41842          { ac_try='test -s conftest$ac_exeext'
41843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41844   (eval $ac_try) 2>&5
41845   ac_status=$?
41846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41847   (exit $ac_status); }; }; then
41848   ol_cv_db_db41=yes
41849 else
41850   echo "$as_me: failed program was:" >&5
41851 sed 's/^/| /' conftest.$ac_ext >&5
41852
41853 ol_cv_db_db41=no
41854 fi
41855 rm -f conftest.err conftest.$ac_objext \
41856       conftest$ac_exeext conftest.$ac_ext
41857
41858         LIBS="$ol_LIBS"
41859
41860 fi
41861 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
41862 echo "${ECHO_T}$ol_cv_db_db41" >&6
41863
41864         if test $ol_cv_db_db41 = yes ; then
41865                 ol_cv_lib_db=-ldb41
41866         fi
41867 fi
41868
41869 if test $ol_cv_lib_db = no ; then
41870         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
41871 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
41872 if test "${ol_cv_db_db_41+set}" = set; then
41873   echo $ECHO_N "(cached) $ECHO_C" >&6
41874 else
41875
41876         ol_DB_LIB=-ldb-41
41877         ol_LIBS=$LIBS
41878         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41879
41880         cat >conftest.$ac_ext <<_ACEOF
41881 /* confdefs.h.  */
41882 _ACEOF
41883 cat confdefs.h >>conftest.$ac_ext
41884 cat >>conftest.$ac_ext <<_ACEOF
41885 /* end confdefs.h.  */
41886
41887 #ifdef HAVE_DB_185_H
41888 # include <db_185.h>
41889 #else
41890 # include <db.h>
41891 #endif
41892
41893 #ifndef DB_VERSION_MAJOR
41894 # define DB_VERSION_MAJOR 1
41895 #endif
41896
41897 #ifndef NULL
41898 #define NULL ((void*)0)
41899 #endif
41900
41901 int
41902 main ()
41903 {
41904
41905 #if DB_VERSION_MAJOR > 1
41906         {
41907                 char *version;
41908                 int major, minor, patch;
41909
41910                 version = db_version( &major, &minor, &patch );
41911
41912                 if( major != DB_VERSION_MAJOR ||
41913                         minor < DB_VERSION_MINOR )
41914                 {
41915                         printf("Berkeley DB version mismatch\n"
41916                                 "\theader: %s\n\tlibrary: %s\n",
41917                                 DB_VERSION_STRING, version);
41918                         return 1;
41919                 }
41920         }
41921 #endif
41922
41923 #if DB_VERSION_MAJOR > 2
41924         db_env_create( NULL, 0 );
41925 #elif DB_VERSION_MAJOR > 1
41926         db_appexit( NULL );
41927 #else
41928         (void) dbopen( NULL, 0, 0, 0, NULL);
41929 #endif
41930
41931   ;
41932   return 0;
41933 }
41934 _ACEOF
41935 rm -f conftest.$ac_objext conftest$ac_exeext
41936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41937   (eval $ac_link) 2>conftest.er1
41938   ac_status=$?
41939   grep -v '^ *+' conftest.er1 >conftest.err
41940   rm -f conftest.er1
41941   cat conftest.err >&5
41942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41943   (exit $ac_status); } &&
41944          { ac_try='test -z "$ac_c_werror_flag"
41945                          || test ! -s conftest.err'
41946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41947   (eval $ac_try) 2>&5
41948   ac_status=$?
41949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41950   (exit $ac_status); }; } &&
41951          { ac_try='test -s conftest$ac_exeext'
41952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41953   (eval $ac_try) 2>&5
41954   ac_status=$?
41955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41956   (exit $ac_status); }; }; then
41957   ol_cv_db_db_41=yes
41958 else
41959   echo "$as_me: failed program was:" >&5
41960 sed 's/^/| /' conftest.$ac_ext >&5
41961
41962 ol_cv_db_db_41=no
41963 fi
41964 rm -f conftest.err conftest.$ac_objext \
41965       conftest$ac_exeext conftest.$ac_ext
41966
41967         LIBS="$ol_LIBS"
41968
41969 fi
41970 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
41971 echo "${ECHO_T}$ol_cv_db_db_41" >&6
41972
41973         if test $ol_cv_db_db_41 = yes ; then
41974                 ol_cv_lib_db=-ldb-41
41975         fi
41976 fi
41977
41978 if test $ol_cv_lib_db = no ; then
41979         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
41980 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
41981 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
41982   echo $ECHO_N "(cached) $ECHO_C" >&6
41983 else
41984
41985         ol_DB_LIB=-ldb-4.1
41986         ol_LIBS=$LIBS
41987         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41988
41989         cat >conftest.$ac_ext <<_ACEOF
41990 /* confdefs.h.  */
41991 _ACEOF
41992 cat confdefs.h >>conftest.$ac_ext
41993 cat >>conftest.$ac_ext <<_ACEOF
41994 /* end confdefs.h.  */
41995
41996 #ifdef HAVE_DB_185_H
41997 # include <db_185.h>
41998 #else
41999 # include <db.h>
42000 #endif
42001
42002 #ifndef DB_VERSION_MAJOR
42003 # define DB_VERSION_MAJOR 1
42004 #endif
42005
42006 #ifndef NULL
42007 #define NULL ((void*)0)
42008 #endif
42009
42010 int
42011 main ()
42012 {
42013
42014 #if DB_VERSION_MAJOR > 1
42015         {
42016                 char *version;
42017                 int major, minor, patch;
42018
42019                 version = db_version( &major, &minor, &patch );
42020
42021                 if( major != DB_VERSION_MAJOR ||
42022                         minor < DB_VERSION_MINOR )
42023                 {
42024                         printf("Berkeley DB version mismatch\n"
42025                                 "\theader: %s\n\tlibrary: %s\n",
42026                                 DB_VERSION_STRING, version);
42027                         return 1;
42028                 }
42029         }
42030 #endif
42031
42032 #if DB_VERSION_MAJOR > 2
42033         db_env_create( NULL, 0 );
42034 #elif DB_VERSION_MAJOR > 1
42035         db_appexit( NULL );
42036 #else
42037         (void) dbopen( NULL, 0, 0, 0, NULL);
42038 #endif
42039
42040   ;
42041   return 0;
42042 }
42043 _ACEOF
42044 rm -f conftest.$ac_objext conftest$ac_exeext
42045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42046   (eval $ac_link) 2>conftest.er1
42047   ac_status=$?
42048   grep -v '^ *+' conftest.er1 >conftest.err
42049   rm -f conftest.er1
42050   cat conftest.err >&5
42051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42052   (exit $ac_status); } &&
42053          { ac_try='test -z "$ac_c_werror_flag"
42054                          || test ! -s conftest.err'
42055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42056   (eval $ac_try) 2>&5
42057   ac_status=$?
42058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42059   (exit $ac_status); }; } &&
42060          { ac_try='test -s conftest$ac_exeext'
42061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42062   (eval $ac_try) 2>&5
42063   ac_status=$?
42064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42065   (exit $ac_status); }; }; then
42066   ol_cv_db_db_4_dot_1=yes
42067 else
42068   echo "$as_me: failed program was:" >&5
42069 sed 's/^/| /' conftest.$ac_ext >&5
42070
42071 ol_cv_db_db_4_dot_1=no
42072 fi
42073 rm -f conftest.err conftest.$ac_objext \
42074       conftest$ac_exeext conftest.$ac_ext
42075
42076         LIBS="$ol_LIBS"
42077
42078 fi
42079 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42080 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42081
42082         if test $ol_cv_db_db_4_dot_1 = yes ; then
42083                 ol_cv_lib_db=-ldb-4.1
42084         fi
42085 fi
42086
42087 if test $ol_cv_lib_db = no ; then
42088         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42089 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42090 if test "${ol_cv_db_db_4_1+set}" = set; then
42091   echo $ECHO_N "(cached) $ECHO_C" >&6
42092 else
42093
42094         ol_DB_LIB=-ldb-4-1
42095         ol_LIBS=$LIBS
42096         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42097
42098         cat >conftest.$ac_ext <<_ACEOF
42099 /* confdefs.h.  */
42100 _ACEOF
42101 cat confdefs.h >>conftest.$ac_ext
42102 cat >>conftest.$ac_ext <<_ACEOF
42103 /* end confdefs.h.  */
42104
42105 #ifdef HAVE_DB_185_H
42106 # include <db_185.h>
42107 #else
42108 # include <db.h>
42109 #endif
42110
42111 #ifndef DB_VERSION_MAJOR
42112 # define DB_VERSION_MAJOR 1
42113 #endif
42114
42115 #ifndef NULL
42116 #define NULL ((void*)0)
42117 #endif
42118
42119 int
42120 main ()
42121 {
42122
42123 #if DB_VERSION_MAJOR > 1
42124         {
42125                 char *version;
42126                 int major, minor, patch;
42127
42128                 version = db_version( &major, &minor, &patch );
42129
42130                 if( major != DB_VERSION_MAJOR ||
42131                         minor < DB_VERSION_MINOR )
42132                 {
42133                         printf("Berkeley DB version mismatch\n"
42134                                 "\theader: %s\n\tlibrary: %s\n",
42135                                 DB_VERSION_STRING, version);
42136                         return 1;
42137                 }
42138         }
42139 #endif
42140
42141 #if DB_VERSION_MAJOR > 2
42142         db_env_create( NULL, 0 );
42143 #elif DB_VERSION_MAJOR > 1
42144         db_appexit( NULL );
42145 #else
42146         (void) dbopen( NULL, 0, 0, 0, NULL);
42147 #endif
42148
42149   ;
42150   return 0;
42151 }
42152 _ACEOF
42153 rm -f conftest.$ac_objext conftest$ac_exeext
42154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42155   (eval $ac_link) 2>conftest.er1
42156   ac_status=$?
42157   grep -v '^ *+' conftest.er1 >conftest.err
42158   rm -f conftest.er1
42159   cat conftest.err >&5
42160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42161   (exit $ac_status); } &&
42162          { ac_try='test -z "$ac_c_werror_flag"
42163                          || test ! -s conftest.err'
42164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42165   (eval $ac_try) 2>&5
42166   ac_status=$?
42167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42168   (exit $ac_status); }; } &&
42169          { ac_try='test -s conftest$ac_exeext'
42170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42171   (eval $ac_try) 2>&5
42172   ac_status=$?
42173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42174   (exit $ac_status); }; }; then
42175   ol_cv_db_db_4_1=yes
42176 else
42177   echo "$as_me: failed program was:" >&5
42178 sed 's/^/| /' conftest.$ac_ext >&5
42179
42180 ol_cv_db_db_4_1=no
42181 fi
42182 rm -f conftest.err conftest.$ac_objext \
42183       conftest$ac_exeext conftest.$ac_ext
42184
42185         LIBS="$ol_LIBS"
42186
42187 fi
42188 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42189 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42190
42191         if test $ol_cv_db_db_4_1 = yes ; then
42192                 ol_cv_lib_db=-ldb-4-1
42193         fi
42194 fi
42195
42196 if test $ol_cv_lib_db = no ; then
42197         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42198 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42199 if test "${ol_cv_db_db3+set}" = set; then
42200   echo $ECHO_N "(cached) $ECHO_C" >&6
42201 else
42202
42203         ol_DB_LIB=-ldb3
42204         ol_LIBS=$LIBS
42205         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42206
42207         cat >conftest.$ac_ext <<_ACEOF
42208 /* confdefs.h.  */
42209 _ACEOF
42210 cat confdefs.h >>conftest.$ac_ext
42211 cat >>conftest.$ac_ext <<_ACEOF
42212 /* end confdefs.h.  */
42213
42214 #ifdef HAVE_DB_185_H
42215 # include <db_185.h>
42216 #else
42217 # include <db.h>
42218 #endif
42219
42220 #ifndef DB_VERSION_MAJOR
42221 # define DB_VERSION_MAJOR 1
42222 #endif
42223
42224 #ifndef NULL
42225 #define NULL ((void*)0)
42226 #endif
42227
42228 int
42229 main ()
42230 {
42231
42232 #if DB_VERSION_MAJOR > 1
42233         {
42234                 char *version;
42235                 int major, minor, patch;
42236
42237                 version = db_version( &major, &minor, &patch );
42238
42239                 if( major != DB_VERSION_MAJOR ||
42240                         minor < DB_VERSION_MINOR )
42241                 {
42242                         printf("Berkeley DB version mismatch\n"
42243                                 "\theader: %s\n\tlibrary: %s\n",
42244                                 DB_VERSION_STRING, version);
42245                         return 1;
42246                 }
42247         }
42248 #endif
42249
42250 #if DB_VERSION_MAJOR > 2
42251         db_env_create( NULL, 0 );
42252 #elif DB_VERSION_MAJOR > 1
42253         db_appexit( NULL );
42254 #else
42255         (void) dbopen( NULL, 0, 0, 0, NULL);
42256 #endif
42257
42258   ;
42259   return 0;
42260 }
42261 _ACEOF
42262 rm -f conftest.$ac_objext conftest$ac_exeext
42263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42264   (eval $ac_link) 2>conftest.er1
42265   ac_status=$?
42266   grep -v '^ *+' conftest.er1 >conftest.err
42267   rm -f conftest.er1
42268   cat conftest.err >&5
42269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42270   (exit $ac_status); } &&
42271          { ac_try='test -z "$ac_c_werror_flag"
42272                          || test ! -s conftest.err'
42273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42274   (eval $ac_try) 2>&5
42275   ac_status=$?
42276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42277   (exit $ac_status); }; } &&
42278          { ac_try='test -s conftest$ac_exeext'
42279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42280   (eval $ac_try) 2>&5
42281   ac_status=$?
42282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42283   (exit $ac_status); }; }; then
42284   ol_cv_db_db3=yes
42285 else
42286   echo "$as_me: failed program was:" >&5
42287 sed 's/^/| /' conftest.$ac_ext >&5
42288
42289 ol_cv_db_db3=no
42290 fi
42291 rm -f conftest.err conftest.$ac_objext \
42292       conftest$ac_exeext conftest.$ac_ext
42293
42294         LIBS="$ol_LIBS"
42295
42296 fi
42297 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42298 echo "${ECHO_T}$ol_cv_db_db3" >&6
42299
42300         if test $ol_cv_db_db3 = yes ; then
42301                 ol_cv_lib_db=-ldb3
42302         fi
42303 fi
42304
42305 if test $ol_cv_lib_db = no ; then
42306         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42307 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42308 if test "${ol_cv_db_db_3+set}" = set; then
42309   echo $ECHO_N "(cached) $ECHO_C" >&6
42310 else
42311
42312         ol_DB_LIB=-ldb-3
42313         ol_LIBS=$LIBS
42314         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42315
42316         cat >conftest.$ac_ext <<_ACEOF
42317 /* confdefs.h.  */
42318 _ACEOF
42319 cat confdefs.h >>conftest.$ac_ext
42320 cat >>conftest.$ac_ext <<_ACEOF
42321 /* end confdefs.h.  */
42322
42323 #ifdef HAVE_DB_185_H
42324 # include <db_185.h>
42325 #else
42326 # include <db.h>
42327 #endif
42328
42329 #ifndef DB_VERSION_MAJOR
42330 # define DB_VERSION_MAJOR 1
42331 #endif
42332
42333 #ifndef NULL
42334 #define NULL ((void*)0)
42335 #endif
42336
42337 int
42338 main ()
42339 {
42340
42341 #if DB_VERSION_MAJOR > 1
42342         {
42343                 char *version;
42344                 int major, minor, patch;
42345
42346                 version = db_version( &major, &minor, &patch );
42347
42348                 if( major != DB_VERSION_MAJOR ||
42349                         minor < DB_VERSION_MINOR )
42350                 {
42351                         printf("Berkeley DB version mismatch\n"
42352                                 "\theader: %s\n\tlibrary: %s\n",
42353                                 DB_VERSION_STRING, version);
42354                         return 1;
42355                 }
42356         }
42357 #endif
42358
42359 #if DB_VERSION_MAJOR > 2
42360         db_env_create( NULL, 0 );
42361 #elif DB_VERSION_MAJOR > 1
42362         db_appexit( NULL );
42363 #else
42364         (void) dbopen( NULL, 0, 0, 0, NULL);
42365 #endif
42366
42367   ;
42368   return 0;
42369 }
42370 _ACEOF
42371 rm -f conftest.$ac_objext conftest$ac_exeext
42372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42373   (eval $ac_link) 2>conftest.er1
42374   ac_status=$?
42375   grep -v '^ *+' conftest.er1 >conftest.err
42376   rm -f conftest.er1
42377   cat conftest.err >&5
42378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42379   (exit $ac_status); } &&
42380          { ac_try='test -z "$ac_c_werror_flag"
42381                          || test ! -s conftest.err'
42382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42383   (eval $ac_try) 2>&5
42384   ac_status=$?
42385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42386   (exit $ac_status); }; } &&
42387          { ac_try='test -s conftest$ac_exeext'
42388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42389   (eval $ac_try) 2>&5
42390   ac_status=$?
42391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42392   (exit $ac_status); }; }; then
42393   ol_cv_db_db_3=yes
42394 else
42395   echo "$as_me: failed program was:" >&5
42396 sed 's/^/| /' conftest.$ac_ext >&5
42397
42398 ol_cv_db_db_3=no
42399 fi
42400 rm -f conftest.err conftest.$ac_objext \
42401       conftest$ac_exeext conftest.$ac_ext
42402
42403         LIBS="$ol_LIBS"
42404
42405 fi
42406 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42407 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42408
42409         if test $ol_cv_db_db_3 = yes ; then
42410                 ol_cv_lib_db=-ldb-3
42411         fi
42412 fi
42413
42414 if test $ol_cv_lib_db = no ; then
42415         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42416 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42417 if test "${ol_cv_db_db2+set}" = set; then
42418   echo $ECHO_N "(cached) $ECHO_C" >&6
42419 else
42420
42421         ol_DB_LIB=-ldb2
42422         ol_LIBS=$LIBS
42423         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42424
42425         cat >conftest.$ac_ext <<_ACEOF
42426 /* confdefs.h.  */
42427 _ACEOF
42428 cat confdefs.h >>conftest.$ac_ext
42429 cat >>conftest.$ac_ext <<_ACEOF
42430 /* end confdefs.h.  */
42431
42432 #ifdef HAVE_DB_185_H
42433 # include <db_185.h>
42434 #else
42435 # include <db.h>
42436 #endif
42437
42438 #ifndef DB_VERSION_MAJOR
42439 # define DB_VERSION_MAJOR 1
42440 #endif
42441
42442 #ifndef NULL
42443 #define NULL ((void*)0)
42444 #endif
42445
42446 int
42447 main ()
42448 {
42449
42450 #if DB_VERSION_MAJOR > 1
42451         {
42452                 char *version;
42453                 int major, minor, patch;
42454
42455                 version = db_version( &major, &minor, &patch );
42456
42457                 if( major != DB_VERSION_MAJOR ||
42458                         minor < DB_VERSION_MINOR )
42459                 {
42460                         printf("Berkeley DB version mismatch\n"
42461                                 "\theader: %s\n\tlibrary: %s\n",
42462                                 DB_VERSION_STRING, version);
42463                         return 1;
42464                 }
42465         }
42466 #endif
42467
42468 #if DB_VERSION_MAJOR > 2
42469         db_env_create( NULL, 0 );
42470 #elif DB_VERSION_MAJOR > 1
42471         db_appexit( NULL );
42472 #else
42473         (void) dbopen( NULL, 0, 0, 0, NULL);
42474 #endif
42475
42476   ;
42477   return 0;
42478 }
42479 _ACEOF
42480 rm -f conftest.$ac_objext conftest$ac_exeext
42481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42482   (eval $ac_link) 2>conftest.er1
42483   ac_status=$?
42484   grep -v '^ *+' conftest.er1 >conftest.err
42485   rm -f conftest.er1
42486   cat conftest.err >&5
42487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42488   (exit $ac_status); } &&
42489          { ac_try='test -z "$ac_c_werror_flag"
42490                          || test ! -s conftest.err'
42491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42492   (eval $ac_try) 2>&5
42493   ac_status=$?
42494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42495   (exit $ac_status); }; } &&
42496          { ac_try='test -s conftest$ac_exeext'
42497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42498   (eval $ac_try) 2>&5
42499   ac_status=$?
42500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42501   (exit $ac_status); }; }; then
42502   ol_cv_db_db2=yes
42503 else
42504   echo "$as_me: failed program was:" >&5
42505 sed 's/^/| /' conftest.$ac_ext >&5
42506
42507 ol_cv_db_db2=no
42508 fi
42509 rm -f conftest.err conftest.$ac_objext \
42510       conftest$ac_exeext conftest.$ac_ext
42511
42512         LIBS="$ol_LIBS"
42513
42514 fi
42515 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42516 echo "${ECHO_T}$ol_cv_db_db2" >&6
42517
42518         if test $ol_cv_db_db2 = yes ; then
42519                 ol_cv_lib_db=-ldb2
42520         fi
42521 fi
42522
42523 if test $ol_cv_lib_db = no ; then
42524         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42525 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42526 if test "${ol_cv_db_db_2+set}" = set; then
42527   echo $ECHO_N "(cached) $ECHO_C" >&6
42528 else
42529
42530         ol_DB_LIB=-ldb-2
42531         ol_LIBS=$LIBS
42532         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42533
42534         cat >conftest.$ac_ext <<_ACEOF
42535 /* confdefs.h.  */
42536 _ACEOF
42537 cat confdefs.h >>conftest.$ac_ext
42538 cat >>conftest.$ac_ext <<_ACEOF
42539 /* end confdefs.h.  */
42540
42541 #ifdef HAVE_DB_185_H
42542 # include <db_185.h>
42543 #else
42544 # include <db.h>
42545 #endif
42546
42547 #ifndef DB_VERSION_MAJOR
42548 # define DB_VERSION_MAJOR 1
42549 #endif
42550
42551 #ifndef NULL
42552 #define NULL ((void*)0)
42553 #endif
42554
42555 int
42556 main ()
42557 {
42558
42559 #if DB_VERSION_MAJOR > 1
42560         {
42561                 char *version;
42562                 int major, minor, patch;
42563
42564                 version = db_version( &major, &minor, &patch );
42565
42566                 if( major != DB_VERSION_MAJOR ||
42567                         minor < DB_VERSION_MINOR )
42568                 {
42569                         printf("Berkeley DB version mismatch\n"
42570                                 "\theader: %s\n\tlibrary: %s\n",
42571                                 DB_VERSION_STRING, version);
42572                         return 1;
42573                 }
42574         }
42575 #endif
42576
42577 #if DB_VERSION_MAJOR > 2
42578         db_env_create( NULL, 0 );
42579 #elif DB_VERSION_MAJOR > 1
42580         db_appexit( NULL );
42581 #else
42582         (void) dbopen( NULL, 0, 0, 0, NULL);
42583 #endif
42584
42585   ;
42586   return 0;
42587 }
42588 _ACEOF
42589 rm -f conftest.$ac_objext conftest$ac_exeext
42590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42591   (eval $ac_link) 2>conftest.er1
42592   ac_status=$?
42593   grep -v '^ *+' conftest.er1 >conftest.err
42594   rm -f conftest.er1
42595   cat conftest.err >&5
42596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42597   (exit $ac_status); } &&
42598          { ac_try='test -z "$ac_c_werror_flag"
42599                          || test ! -s conftest.err'
42600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42601   (eval $ac_try) 2>&5
42602   ac_status=$?
42603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42604   (exit $ac_status); }; } &&
42605          { ac_try='test -s conftest$ac_exeext'
42606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42607   (eval $ac_try) 2>&5
42608   ac_status=$?
42609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42610   (exit $ac_status); }; }; then
42611   ol_cv_db_db_2=yes
42612 else
42613   echo "$as_me: failed program was:" >&5
42614 sed 's/^/| /' conftest.$ac_ext >&5
42615
42616 ol_cv_db_db_2=no
42617 fi
42618 rm -f conftest.err conftest.$ac_objext \
42619       conftest$ac_exeext conftest.$ac_ext
42620
42621         LIBS="$ol_LIBS"
42622
42623 fi
42624 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42625 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42626
42627         if test $ol_cv_db_db_2 = yes ; then
42628                 ol_cv_lib_db=-ldb-2
42629         fi
42630 fi
42631
42632 if test $ol_cv_lib_db = no ; then
42633         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42634 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42635 if test "${ol_cv_db_db1+set}" = set; then
42636   echo $ECHO_N "(cached) $ECHO_C" >&6
42637 else
42638
42639         ol_DB_LIB=-ldb1
42640         ol_LIBS=$LIBS
42641         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42642
42643         cat >conftest.$ac_ext <<_ACEOF
42644 /* confdefs.h.  */
42645 _ACEOF
42646 cat confdefs.h >>conftest.$ac_ext
42647 cat >>conftest.$ac_ext <<_ACEOF
42648 /* end confdefs.h.  */
42649
42650 #ifdef HAVE_DB_185_H
42651 # include <db_185.h>
42652 #else
42653 # include <db.h>
42654 #endif
42655
42656 #ifndef DB_VERSION_MAJOR
42657 # define DB_VERSION_MAJOR 1
42658 #endif
42659
42660 #ifndef NULL
42661 #define NULL ((void*)0)
42662 #endif
42663
42664 int
42665 main ()
42666 {
42667
42668 #if DB_VERSION_MAJOR > 1
42669         {
42670                 char *version;
42671                 int major, minor, patch;
42672
42673                 version = db_version( &major, &minor, &patch );
42674
42675                 if( major != DB_VERSION_MAJOR ||
42676                         minor < DB_VERSION_MINOR )
42677                 {
42678                         printf("Berkeley DB version mismatch\n"
42679                                 "\theader: %s\n\tlibrary: %s\n",
42680                                 DB_VERSION_STRING, version);
42681                         return 1;
42682                 }
42683         }
42684 #endif
42685
42686 #if DB_VERSION_MAJOR > 2
42687         db_env_create( NULL, 0 );
42688 #elif DB_VERSION_MAJOR > 1
42689         db_appexit( NULL );
42690 #else
42691         (void) dbopen( NULL, 0, 0, 0, NULL);
42692 #endif
42693
42694   ;
42695   return 0;
42696 }
42697 _ACEOF
42698 rm -f conftest.$ac_objext conftest$ac_exeext
42699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42700   (eval $ac_link) 2>conftest.er1
42701   ac_status=$?
42702   grep -v '^ *+' conftest.er1 >conftest.err
42703   rm -f conftest.er1
42704   cat conftest.err >&5
42705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42706   (exit $ac_status); } &&
42707          { ac_try='test -z "$ac_c_werror_flag"
42708                          || test ! -s conftest.err'
42709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42710   (eval $ac_try) 2>&5
42711   ac_status=$?
42712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42713   (exit $ac_status); }; } &&
42714          { ac_try='test -s conftest$ac_exeext'
42715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42716   (eval $ac_try) 2>&5
42717   ac_status=$?
42718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42719   (exit $ac_status); }; }; then
42720   ol_cv_db_db1=yes
42721 else
42722   echo "$as_me: failed program was:" >&5
42723 sed 's/^/| /' conftest.$ac_ext >&5
42724
42725 ol_cv_db_db1=no
42726 fi
42727 rm -f conftest.err conftest.$ac_objext \
42728       conftest$ac_exeext conftest.$ac_ext
42729
42730         LIBS="$ol_LIBS"
42731
42732 fi
42733 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
42734 echo "${ECHO_T}$ol_cv_db_db1" >&6
42735
42736         if test $ol_cv_db_db1 = yes ; then
42737                 ol_cv_lib_db=-ldb1
42738         fi
42739 fi
42740
42741 if test $ol_cv_lib_db = no ; then
42742         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
42743 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
42744 if test "${ol_cv_db_db_1+set}" = set; then
42745   echo $ECHO_N "(cached) $ECHO_C" >&6
42746 else
42747
42748         ol_DB_LIB=-ldb-1
42749         ol_LIBS=$LIBS
42750         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42751
42752         cat >conftest.$ac_ext <<_ACEOF
42753 /* confdefs.h.  */
42754 _ACEOF
42755 cat confdefs.h >>conftest.$ac_ext
42756 cat >>conftest.$ac_ext <<_ACEOF
42757 /* end confdefs.h.  */
42758
42759 #ifdef HAVE_DB_185_H
42760 # include <db_185.h>
42761 #else
42762 # include <db.h>
42763 #endif
42764
42765 #ifndef DB_VERSION_MAJOR
42766 # define DB_VERSION_MAJOR 1
42767 #endif
42768
42769 #ifndef NULL
42770 #define NULL ((void*)0)
42771 #endif
42772
42773 int
42774 main ()
42775 {
42776
42777 #if DB_VERSION_MAJOR > 1
42778         {
42779                 char *version;
42780                 int major, minor, patch;
42781
42782                 version = db_version( &major, &minor, &patch );
42783
42784                 if( major != DB_VERSION_MAJOR ||
42785                         minor < DB_VERSION_MINOR )
42786                 {
42787                         printf("Berkeley DB version mismatch\n"
42788                                 "\theader: %s\n\tlibrary: %s\n",
42789                                 DB_VERSION_STRING, version);
42790                         return 1;
42791                 }
42792         }
42793 #endif
42794
42795 #if DB_VERSION_MAJOR > 2
42796         db_env_create( NULL, 0 );
42797 #elif DB_VERSION_MAJOR > 1
42798         db_appexit( NULL );
42799 #else
42800         (void) dbopen( NULL, 0, 0, 0, NULL);
42801 #endif
42802
42803   ;
42804   return 0;
42805 }
42806 _ACEOF
42807 rm -f conftest.$ac_objext conftest$ac_exeext
42808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42809   (eval $ac_link) 2>conftest.er1
42810   ac_status=$?
42811   grep -v '^ *+' conftest.er1 >conftest.err
42812   rm -f conftest.er1
42813   cat conftest.err >&5
42814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42815   (exit $ac_status); } &&
42816          { ac_try='test -z "$ac_c_werror_flag"
42817                          || test ! -s conftest.err'
42818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42819   (eval $ac_try) 2>&5
42820   ac_status=$?
42821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42822   (exit $ac_status); }; } &&
42823          { ac_try='test -s conftest$ac_exeext'
42824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42825   (eval $ac_try) 2>&5
42826   ac_status=$?
42827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42828   (exit $ac_status); }; }; then
42829   ol_cv_db_db_1=yes
42830 else
42831   echo "$as_me: failed program was:" >&5
42832 sed 's/^/| /' conftest.$ac_ext >&5
42833
42834 ol_cv_db_db_1=no
42835 fi
42836 rm -f conftest.err conftest.$ac_objext \
42837       conftest$ac_exeext conftest.$ac_ext
42838
42839         LIBS="$ol_LIBS"
42840
42841 fi
42842 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
42843 echo "${ECHO_T}$ol_cv_db_db_1" >&6
42844
42845         if test $ol_cv_db_db_1 = yes ; then
42846                 ol_cv_lib_db=-ldb-1
42847         fi
42848 fi
42849
42850
42851         if test "$ol_cv_lib_db" != no ; then
42852                 ol_cv_berkeley_db=yes
42853                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
42854 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
42855 if test "${ol_cv_berkeley_db_version+set}" = set; then
42856   echo $ECHO_N "(cached) $ECHO_C" >&6
42857 else
42858
42859         ol_LIBS="$LIBS"
42860         LIBS="$LTHREAD_LIBS $LIBS"
42861         if test $ol_cv_lib_db != yes ; then
42862                 LIBS="$ol_cv_lib_db $LIBS"
42863         fi
42864
42865         if test "$cross_compiling" = yes; then
42866   ol_cv_berkeley_db_version=cross
42867 else
42868   cat >conftest.$ac_ext <<_ACEOF
42869 /* confdefs.h.  */
42870 _ACEOF
42871 cat confdefs.h >>conftest.$ac_ext
42872 cat >>conftest.$ac_ext <<_ACEOF
42873 /* end confdefs.h.  */
42874
42875 #ifdef HAVE_DB_185_H
42876         choke me;
42877 #else
42878 #include <db.h>
42879 #endif
42880 #ifndef DB_VERSION_MAJOR
42881 # define DB_VERSION_MAJOR 1
42882 #endif
42883 #ifndef NULL
42884 #define NULL ((void *)0)
42885 #endif
42886 main()
42887 {
42888 #if DB_VERSION_MAJOR > 1
42889         char *version;
42890         int major, minor, patch;
42891
42892         version = db_version( &major, &minor, &patch );
42893
42894         if( major != DB_VERSION_MAJOR ||
42895                 minor != DB_VERSION_MINOR ||
42896                 patch != DB_VERSION_PATCH )
42897         {
42898                 printf("Berkeley DB version mismatch\n"
42899                         "\theader: %s\n\tlibrary: %s\n",
42900                         DB_VERSION_STRING, version);
42901                 return 1;
42902         }
42903 #endif
42904
42905         return 0;
42906 }
42907 _ACEOF
42908 rm -f conftest$ac_exeext
42909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42910   (eval $ac_link) 2>&5
42911   ac_status=$?
42912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42913   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42915   (eval $ac_try) 2>&5
42916   ac_status=$?
42917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42918   (exit $ac_status); }; }; then
42919   ol_cv_berkeley_db_version=yes
42920 else
42921   echo "$as_me: program exited with status $ac_status" >&5
42922 echo "$as_me: failed program was:" >&5
42923 sed 's/^/| /' conftest.$ac_ext >&5
42924
42925 ( exit $ac_status )
42926 ol_cv_berkeley_db_version=no
42927 fi
42928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42929 fi
42930
42931         LIBS="$ol_LIBS"
42932
42933 fi
42934 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
42935 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
42936
42937         if test $ol_cv_berkeley_db_version = no ; then
42938                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
42939 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
42940    { (exit 1); exit 1; }; }
42941         fi
42942
42943                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
42944 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
42945 if test "${ol_cv_berkeley_db_thread+set}" = set; then
42946   echo $ECHO_N "(cached) $ECHO_C" >&6
42947 else
42948
42949         ol_LIBS="$LIBS"
42950         LIBS="$LTHREAD_LIBS $LIBS"
42951         if test $ol_cv_lib_db != yes ; then
42952                 LIBS="$ol_cv_lib_db $LIBS"
42953         fi
42954
42955         if test "$cross_compiling" = yes; then
42956   ol_cv_berkeley_db_thread=cross
42957 else
42958   cat >conftest.$ac_ext <<_ACEOF
42959 /* confdefs.h.  */
42960 _ACEOF
42961 cat confdefs.h >>conftest.$ac_ext
42962 cat >>conftest.$ac_ext <<_ACEOF
42963 /* end confdefs.h.  */
42964
42965 #ifdef HAVE_DB_185_H
42966         choke me;
42967 #else
42968 #include <db.h>
42969 #endif
42970 #ifndef NULL
42971 #define NULL ((void *)0)
42972 #endif
42973 main()
42974 {
42975         int rc;
42976         u_int32_t flags = DB_CREATE |
42977 #ifdef DB_PRIVATE
42978                 DB_PRIVATE |
42979 #endif
42980                 DB_THREAD;
42981
42982 #if DB_VERSION_MAJOR > 2
42983         DB_ENV *env = NULL;
42984
42985         rc = db_env_create( &env, 0 );
42986
42987         flags |= DB_INIT_MPOOL;
42988 #ifdef DB_MPOOL_PRIVATE
42989         flags |= DB_MPOOL_PRIVATE;
42990 #endif
42991
42992         if( rc ) {
42993                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
42994                 return rc;
42995         }
42996
42997 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
42998         rc = env->open( env, NULL, flags, 0 );
42999 #else
43000         rc = env->open( env, NULL, NULL, flags, 0 );
43001 #endif
43002
43003         if ( rc == 0 ) {
43004                 rc = env->close( env, 0 );
43005         }
43006
43007         if( rc ) {
43008                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43009                 return rc;
43010         }
43011
43012 #else
43013         DB_ENV env;
43014         memset( &env, '\0', sizeof(env) );
43015
43016         rc = db_appinit( NULL, NULL, &env, flags );
43017
43018         if( rc == 0 ) {
43019                 db_appexit( &env );
43020         }
43021
43022         unlink("__db_mpool.share");
43023         unlink("__db_lock.share");
43024 #endif
43025
43026         return rc;
43027 }
43028 _ACEOF
43029 rm -f conftest$ac_exeext
43030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43031   (eval $ac_link) 2>&5
43032   ac_status=$?
43033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43036   (eval $ac_try) 2>&5
43037   ac_status=$?
43038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43039   (exit $ac_status); }; }; then
43040   ol_cv_berkeley_db_thread=yes
43041 else
43042   echo "$as_me: program exited with status $ac_status" >&5
43043 echo "$as_me: failed program was:" >&5
43044 sed 's/^/| /' conftest.$ac_ext >&5
43045
43046 ( exit $ac_status )
43047 ol_cv_berkeley_db_thread=no
43048 fi
43049 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43050 fi
43051
43052         LIBS="$ol_LIBS"
43053
43054 fi
43055 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43056 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43057
43058         if test $ol_cv_berkeley_db_thread != no ; then
43059
43060 cat >>confdefs.h <<\_ACEOF
43061 #define HAVE_BERKELEY_DB_THREAD 1
43062 _ACEOF
43063
43064         fi
43065
43066         fi
43067 fi
43068
43069         fi
43070
43071         if test $ol_cv_berkeley_db != no ; then
43072
43073 cat >>confdefs.h <<\_ACEOF
43074 #define HAVE_BERKELEY_DB 1
43075 _ACEOF
43076
43077
43078                 ol_link_ldbm=berkeley
43079                 ol_with_ldbm_api=berkeley
43080
43081                 if test $ol_with_ldbm_type = hash ; then
43082
43083 cat >>confdefs.h <<\_ACEOF
43084 #define LDBM_USE_DBHASH 1
43085 _ACEOF
43086
43087                 else
43088
43089 cat >>confdefs.h <<\_ACEOF
43090 #define LDBM_USE_DBBTREE 1
43091 _ACEOF
43092
43093                 fi
43094
43095                                                 if test $ol_cv_lib_db != yes ; then
43096                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43097                 fi
43098         fi
43099 fi
43100
43101 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43102         if test $ol_link_ldbm != berkeley ; then
43103                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43104 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43105    { (exit 1); exit 1; }; }
43106         else
43107                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB backend" >&5
43108 echo $ECHO_N "checking Berkeley DB version for BDB backend... $ECHO_C" >&6
43109 if test "${ol_cv_bdb_compat+set}" = set; then
43110   echo $ECHO_N "(cached) $ECHO_C" >&6
43111 else
43112
43113         cat >conftest.$ac_ext <<_ACEOF
43114 /* confdefs.h.  */
43115 _ACEOF
43116 cat confdefs.h >>conftest.$ac_ext
43117 cat >>conftest.$ac_ext <<_ACEOF
43118 /* end confdefs.h.  */
43119
43120 #include <db.h>
43121
43122  /* this check could be improved */
43123 #ifndef DB_VERSION_MAJOR
43124 #       define DB_VERSION_MAJOR 1
43125 #endif
43126 #ifndef DB_VERSION_MINOR
43127 #       define DB_VERSION_MINOR 0
43128 #endif
43129
43130 /* require 4.2 or later */
43131 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43132         __db_version_compat
43133 #endif
43134
43135 _ACEOF
43136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43137   $EGREP "__db_version_compat" >/dev/null 2>&1; then
43138   ol_cv_bdb_compat=yes
43139 else
43140   ol_cv_bdb_compat=no
43141 fi
43142 rm -f conftest*
43143
43144 fi
43145 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43146 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43147
43148
43149                 if test $ol_cv_bdb_compat != yes ; then
43150                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43151 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43152    { (exit 1); exit 1; }; }
43153                 fi
43154         fi
43155 fi
43156
43157 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
43158         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43159 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43160         ol_with_ldbm_api=none
43161 fi
43162
43163 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
43164         echo "$as_me:$LINENO: checking for MDBM library" >&5
43165 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43166 if test "${ol_cv_lib_mdbm+set}" = set; then
43167   echo $ECHO_N "(cached) $ECHO_C" >&6
43168 else
43169         ol_LIBS="$LIBS"
43170         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43171 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43172 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43173   echo $ECHO_N "(cached) $ECHO_C" >&6
43174 else
43175   cat >conftest.$ac_ext <<_ACEOF
43176 /* confdefs.h.  */
43177 _ACEOF
43178 cat confdefs.h >>conftest.$ac_ext
43179 cat >>conftest.$ac_ext <<_ACEOF
43180 /* end confdefs.h.  */
43181 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43182    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43183 #define mdbm_set_chain innocuous_mdbm_set_chain
43184
43185 /* System header to define __stub macros and hopefully few prototypes,
43186     which can conflict with char mdbm_set_chain (); below.
43187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43188     <limits.h> exists even on freestanding compilers.  */
43189
43190 #ifdef __STDC__
43191 # include <limits.h>
43192 #else
43193 # include <assert.h>
43194 #endif
43195
43196 #undef mdbm_set_chain
43197
43198 /* Override any gcc2 internal prototype to avoid an error.  */
43199 #ifdef __cplusplus
43200 extern "C"
43201 {
43202 #endif
43203 /* We use char because int might match the return type of a gcc2
43204    builtin and then its argument prototype would still apply.  */
43205 char mdbm_set_chain ();
43206 /* The GNU C library defines this for functions which it implements
43207     to always fail with ENOSYS.  Some functions are actually named
43208     something starting with __ and the normal name is an alias.  */
43209 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43210 choke me
43211 #else
43212 char (*f) () = mdbm_set_chain;
43213 #endif
43214 #ifdef __cplusplus
43215 }
43216 #endif
43217
43218 int
43219 main ()
43220 {
43221 return f != mdbm_set_chain;
43222   ;
43223   return 0;
43224 }
43225 _ACEOF
43226 rm -f conftest.$ac_objext conftest$ac_exeext
43227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43228   (eval $ac_link) 2>conftest.er1
43229   ac_status=$?
43230   grep -v '^ *+' conftest.er1 >conftest.err
43231   rm -f conftest.er1
43232   cat conftest.err >&5
43233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43234   (exit $ac_status); } &&
43235          { ac_try='test -z "$ac_c_werror_flag"
43236                          || test ! -s conftest.err'
43237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43238   (eval $ac_try) 2>&5
43239   ac_status=$?
43240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43241   (exit $ac_status); }; } &&
43242          { ac_try='test -s conftest$ac_exeext'
43243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43244   (eval $ac_try) 2>&5
43245   ac_status=$?
43246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43247   (exit $ac_status); }; }; then
43248   ac_cv_func_mdbm_set_chain=yes
43249 else
43250   echo "$as_me: failed program was:" >&5
43251 sed 's/^/| /' conftest.$ac_ext >&5
43252
43253 ac_cv_func_mdbm_set_chain=no
43254 fi
43255 rm -f conftest.err conftest.$ac_objext \
43256       conftest$ac_exeext conftest.$ac_ext
43257 fi
43258 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43259 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43260 if test $ac_cv_func_mdbm_set_chain = yes; then
43261   ol_cv_lib_mdbm=yes
43262 else
43263
43264                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43265 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43266 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43267   echo $ECHO_N "(cached) $ECHO_C" >&6
43268 else
43269   ac_check_lib_save_LIBS=$LIBS
43270 LIBS="-lmdbm  $LIBS"
43271 cat >conftest.$ac_ext <<_ACEOF
43272 /* confdefs.h.  */
43273 _ACEOF
43274 cat confdefs.h >>conftest.$ac_ext
43275 cat >>conftest.$ac_ext <<_ACEOF
43276 /* end confdefs.h.  */
43277
43278 /* Override any gcc2 internal prototype to avoid an error.  */
43279 #ifdef __cplusplus
43280 extern "C"
43281 #endif
43282 /* We use char because int might match the return type of a gcc2
43283    builtin and then its argument prototype would still apply.  */
43284 char mdbm_set_chain ();
43285 int
43286 main ()
43287 {
43288 mdbm_set_chain ();
43289   ;
43290   return 0;
43291 }
43292 _ACEOF
43293 rm -f conftest.$ac_objext conftest$ac_exeext
43294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43295   (eval $ac_link) 2>conftest.er1
43296   ac_status=$?
43297   grep -v '^ *+' conftest.er1 >conftest.err
43298   rm -f conftest.er1
43299   cat conftest.err >&5
43300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43301   (exit $ac_status); } &&
43302          { ac_try='test -z "$ac_c_werror_flag"
43303                          || test ! -s conftest.err'
43304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43305   (eval $ac_try) 2>&5
43306   ac_status=$?
43307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43308   (exit $ac_status); }; } &&
43309          { ac_try='test -s conftest$ac_exeext'
43310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43311   (eval $ac_try) 2>&5
43312   ac_status=$?
43313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43314   (exit $ac_status); }; }; then
43315   ac_cv_lib_mdbm_mdbm_set_chain=yes
43316 else
43317   echo "$as_me: failed program was:" >&5
43318 sed 's/^/| /' conftest.$ac_ext >&5
43319
43320 ac_cv_lib_mdbm_mdbm_set_chain=no
43321 fi
43322 rm -f conftest.err conftest.$ac_objext \
43323       conftest$ac_exeext conftest.$ac_ext
43324 LIBS=$ac_check_lib_save_LIBS
43325 fi
43326 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43327 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43328 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43329   ol_cv_lib_mdbm=-lmdbm
43330 else
43331   ol_cv_lib_mdbm=no
43332 fi
43333
43334
43335 fi
43336
43337         LIBS="$ol_LIBS"
43338
43339 fi
43340 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43341 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43342
43343
43344
43345 for ac_header in mdbm.h
43346 do
43347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43349   echo "$as_me:$LINENO: checking for $ac_header" >&5
43350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43352   echo $ECHO_N "(cached) $ECHO_C" >&6
43353 fi
43354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43356 else
43357   # Is the header compilable?
43358 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43360 cat >conftest.$ac_ext <<_ACEOF
43361 /* confdefs.h.  */
43362 _ACEOF
43363 cat confdefs.h >>conftest.$ac_ext
43364 cat >>conftest.$ac_ext <<_ACEOF
43365 /* end confdefs.h.  */
43366 $ac_includes_default
43367 #include <$ac_header>
43368 _ACEOF
43369 rm -f conftest.$ac_objext
43370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43371   (eval $ac_compile) 2>conftest.er1
43372   ac_status=$?
43373   grep -v '^ *+' conftest.er1 >conftest.err
43374   rm -f conftest.er1
43375   cat conftest.err >&5
43376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43377   (exit $ac_status); } &&
43378          { ac_try='test -z "$ac_c_werror_flag"
43379                          || test ! -s conftest.err'
43380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43381   (eval $ac_try) 2>&5
43382   ac_status=$?
43383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43384   (exit $ac_status); }; } &&
43385          { ac_try='test -s conftest.$ac_objext'
43386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43387   (eval $ac_try) 2>&5
43388   ac_status=$?
43389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43390   (exit $ac_status); }; }; then
43391   ac_header_compiler=yes
43392 else
43393   echo "$as_me: failed program was:" >&5
43394 sed 's/^/| /' conftest.$ac_ext >&5
43395
43396 ac_header_compiler=no
43397 fi
43398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43399 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43400 echo "${ECHO_T}$ac_header_compiler" >&6
43401
43402 # Is the header present?
43403 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43405 cat >conftest.$ac_ext <<_ACEOF
43406 /* confdefs.h.  */
43407 _ACEOF
43408 cat confdefs.h >>conftest.$ac_ext
43409 cat >>conftest.$ac_ext <<_ACEOF
43410 /* end confdefs.h.  */
43411 #include <$ac_header>
43412 _ACEOF
43413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43414   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43415   ac_status=$?
43416   grep -v '^ *+' conftest.er1 >conftest.err
43417   rm -f conftest.er1
43418   cat conftest.err >&5
43419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43420   (exit $ac_status); } >/dev/null; then
43421   if test -s conftest.err; then
43422     ac_cpp_err=$ac_c_preproc_warn_flag
43423     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43424   else
43425     ac_cpp_err=
43426   fi
43427 else
43428   ac_cpp_err=yes
43429 fi
43430 if test -z "$ac_cpp_err"; then
43431   ac_header_preproc=yes
43432 else
43433   echo "$as_me: failed program was:" >&5
43434 sed 's/^/| /' conftest.$ac_ext >&5
43435
43436   ac_header_preproc=no
43437 fi
43438 rm -f conftest.err conftest.$ac_ext
43439 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43440 echo "${ECHO_T}$ac_header_preproc" >&6
43441
43442 # So?  What about this header?
43443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43444   yes:no: )
43445     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43449     ac_header_preproc=yes
43450     ;;
43451   no:yes:* )
43452     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43454     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43455 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43456     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43458     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43459 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43462     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43464     (
43465       cat <<\_ASBOX
43466 ## ------------------------------------------ ##
43467 ## Report this to the AC_PACKAGE_NAME lists.  ##
43468 ## ------------------------------------------ ##
43469 _ASBOX
43470     ) |
43471       sed "s/^/$as_me: WARNING:     /" >&2
43472     ;;
43473 esac
43474 echo "$as_me:$LINENO: checking for $ac_header" >&5
43475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43477   echo $ECHO_N "(cached) $ECHO_C" >&6
43478 else
43479   eval "$as_ac_Header=\$ac_header_preproc"
43480 fi
43481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43483
43484 fi
43485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43486   cat >>confdefs.h <<_ACEOF
43487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43488 _ACEOF
43489
43490 fi
43491
43492 done
43493
43494  echo "$as_me:$LINENO: checking for db" >&5
43495 echo $ECHO_N "checking for db... $ECHO_C" >&6
43496 if test "${ol_cv_mdbm+set}" = set; then
43497   echo $ECHO_N "(cached) $ECHO_C" >&6
43498 else
43499
43500         if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43501                 ol_cv_mdbm=no
43502         else
43503                 ol_cv_mdbm=yes
43504         fi
43505
43506 fi
43507 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43508 echo "${ECHO_T}$ol_cv_mdbm" >&6
43509  if test $ol_cv_mdbm = yes ; then
43510
43511 cat >>confdefs.h <<\_ACEOF
43512 #define HAVE_MDBM 1
43513 _ACEOF
43514
43515  fi
43516
43517
43518         if test $ol_cv_mdbm = yes ; then
43519                 ol_link_ldbm=mdbm
43520                 ol_with_ldbm_api=mdbm
43521                 if test $ol_cv_lib_mdbm != yes ; then
43522                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43523                 fi
43524         fi
43525 fi
43526
43527 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
43528         echo "$as_me:$LINENO: checking for GDBM library" >&5
43529 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43530 if test "${ol_cv_lib_gdbm+set}" = set; then
43531   echo $ECHO_N "(cached) $ECHO_C" >&6
43532 else
43533         ol_LIBS="$LIBS"
43534         echo "$as_me:$LINENO: checking for gdbm_open" >&5
43535 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43536 if test "${ac_cv_func_gdbm_open+set}" = set; then
43537   echo $ECHO_N "(cached) $ECHO_C" >&6
43538 else
43539   cat >conftest.$ac_ext <<_ACEOF
43540 /* confdefs.h.  */
43541 _ACEOF
43542 cat confdefs.h >>conftest.$ac_ext
43543 cat >>conftest.$ac_ext <<_ACEOF
43544 /* end confdefs.h.  */
43545 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43547 #define gdbm_open innocuous_gdbm_open
43548
43549 /* System header to define __stub macros and hopefully few prototypes,
43550     which can conflict with char gdbm_open (); below.
43551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43552     <limits.h> exists even on freestanding compilers.  */
43553
43554 #ifdef __STDC__
43555 # include <limits.h>
43556 #else
43557 # include <assert.h>
43558 #endif
43559
43560 #undef gdbm_open
43561
43562 /* Override any gcc2 internal prototype to avoid an error.  */
43563 #ifdef __cplusplus
43564 extern "C"
43565 {
43566 #endif
43567 /* We use char because int might match the return type of a gcc2
43568    builtin and then its argument prototype would still apply.  */
43569 char gdbm_open ();
43570 /* The GNU C library defines this for functions which it implements
43571     to always fail with ENOSYS.  Some functions are actually named
43572     something starting with __ and the normal name is an alias.  */
43573 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43574 choke me
43575 #else
43576 char (*f) () = gdbm_open;
43577 #endif
43578 #ifdef __cplusplus
43579 }
43580 #endif
43581
43582 int
43583 main ()
43584 {
43585 return f != gdbm_open;
43586   ;
43587   return 0;
43588 }
43589 _ACEOF
43590 rm -f conftest.$ac_objext conftest$ac_exeext
43591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43592   (eval $ac_link) 2>conftest.er1
43593   ac_status=$?
43594   grep -v '^ *+' conftest.er1 >conftest.err
43595   rm -f conftest.er1
43596   cat conftest.err >&5
43597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43598   (exit $ac_status); } &&
43599          { ac_try='test -z "$ac_c_werror_flag"
43600                          || test ! -s conftest.err'
43601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43602   (eval $ac_try) 2>&5
43603   ac_status=$?
43604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43605   (exit $ac_status); }; } &&
43606          { ac_try='test -s conftest$ac_exeext'
43607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43608   (eval $ac_try) 2>&5
43609   ac_status=$?
43610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43611   (exit $ac_status); }; }; then
43612   ac_cv_func_gdbm_open=yes
43613 else
43614   echo "$as_me: failed program was:" >&5
43615 sed 's/^/| /' conftest.$ac_ext >&5
43616
43617 ac_cv_func_gdbm_open=no
43618 fi
43619 rm -f conftest.err conftest.$ac_objext \
43620       conftest$ac_exeext conftest.$ac_ext
43621 fi
43622 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43623 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43624 if test $ac_cv_func_gdbm_open = yes; then
43625   ol_cv_lib_gdbm=yes
43626 else
43627
43628                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43629 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43630 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43631   echo $ECHO_N "(cached) $ECHO_C" >&6
43632 else
43633   ac_check_lib_save_LIBS=$LIBS
43634 LIBS="-lgdbm  $LIBS"
43635 cat >conftest.$ac_ext <<_ACEOF
43636 /* confdefs.h.  */
43637 _ACEOF
43638 cat confdefs.h >>conftest.$ac_ext
43639 cat >>conftest.$ac_ext <<_ACEOF
43640 /* end confdefs.h.  */
43641
43642 /* Override any gcc2 internal prototype to avoid an error.  */
43643 #ifdef __cplusplus
43644 extern "C"
43645 #endif
43646 /* We use char because int might match the return type of a gcc2
43647    builtin and then its argument prototype would still apply.  */
43648 char gdbm_open ();
43649 int
43650 main ()
43651 {
43652 gdbm_open ();
43653   ;
43654   return 0;
43655 }
43656 _ACEOF
43657 rm -f conftest.$ac_objext conftest$ac_exeext
43658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43659   (eval $ac_link) 2>conftest.er1
43660   ac_status=$?
43661   grep -v '^ *+' conftest.er1 >conftest.err
43662   rm -f conftest.er1
43663   cat conftest.err >&5
43664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43665   (exit $ac_status); } &&
43666          { ac_try='test -z "$ac_c_werror_flag"
43667                          || test ! -s conftest.err'
43668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43669   (eval $ac_try) 2>&5
43670   ac_status=$?
43671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43672   (exit $ac_status); }; } &&
43673          { ac_try='test -s conftest$ac_exeext'
43674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43675   (eval $ac_try) 2>&5
43676   ac_status=$?
43677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43678   (exit $ac_status); }; }; then
43679   ac_cv_lib_gdbm_gdbm_open=yes
43680 else
43681   echo "$as_me: failed program was:" >&5
43682 sed 's/^/| /' conftest.$ac_ext >&5
43683
43684 ac_cv_lib_gdbm_gdbm_open=no
43685 fi
43686 rm -f conftest.err conftest.$ac_objext \
43687       conftest$ac_exeext conftest.$ac_ext
43688 LIBS=$ac_check_lib_save_LIBS
43689 fi
43690 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43691 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43692 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43693   ol_cv_lib_gdbm=-lgdbm
43694 else
43695   ol_cv_lib_gdbm=no
43696 fi
43697
43698
43699 fi
43700
43701         LIBS="$ol_LIBS"
43702
43703 fi
43704 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
43705 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
43706
43707
43708
43709 for ac_header in gdbm.h
43710 do
43711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43713   echo "$as_me:$LINENO: checking for $ac_header" >&5
43714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43716   echo $ECHO_N "(cached) $ECHO_C" >&6
43717 fi
43718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43720 else
43721   # Is the header compilable?
43722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43724 cat >conftest.$ac_ext <<_ACEOF
43725 /* confdefs.h.  */
43726 _ACEOF
43727 cat confdefs.h >>conftest.$ac_ext
43728 cat >>conftest.$ac_ext <<_ACEOF
43729 /* end confdefs.h.  */
43730 $ac_includes_default
43731 #include <$ac_header>
43732 _ACEOF
43733 rm -f conftest.$ac_objext
43734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43735   (eval $ac_compile) 2>conftest.er1
43736   ac_status=$?
43737   grep -v '^ *+' conftest.er1 >conftest.err
43738   rm -f conftest.er1
43739   cat conftest.err >&5
43740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43741   (exit $ac_status); } &&
43742          { ac_try='test -z "$ac_c_werror_flag"
43743                          || test ! -s conftest.err'
43744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43745   (eval $ac_try) 2>&5
43746   ac_status=$?
43747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43748   (exit $ac_status); }; } &&
43749          { ac_try='test -s conftest.$ac_objext'
43750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43751   (eval $ac_try) 2>&5
43752   ac_status=$?
43753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43754   (exit $ac_status); }; }; then
43755   ac_header_compiler=yes
43756 else
43757   echo "$as_me: failed program was:" >&5
43758 sed 's/^/| /' conftest.$ac_ext >&5
43759
43760 ac_header_compiler=no
43761 fi
43762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43764 echo "${ECHO_T}$ac_header_compiler" >&6
43765
43766 # Is the header present?
43767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43769 cat >conftest.$ac_ext <<_ACEOF
43770 /* confdefs.h.  */
43771 _ACEOF
43772 cat confdefs.h >>conftest.$ac_ext
43773 cat >>conftest.$ac_ext <<_ACEOF
43774 /* end confdefs.h.  */
43775 #include <$ac_header>
43776 _ACEOF
43777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43778   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43779   ac_status=$?
43780   grep -v '^ *+' conftest.er1 >conftest.err
43781   rm -f conftest.er1
43782   cat conftest.err >&5
43783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43784   (exit $ac_status); } >/dev/null; then
43785   if test -s conftest.err; then
43786     ac_cpp_err=$ac_c_preproc_warn_flag
43787     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43788   else
43789     ac_cpp_err=
43790   fi
43791 else
43792   ac_cpp_err=yes
43793 fi
43794 if test -z "$ac_cpp_err"; then
43795   ac_header_preproc=yes
43796 else
43797   echo "$as_me: failed program was:" >&5
43798 sed 's/^/| /' conftest.$ac_ext >&5
43799
43800   ac_header_preproc=no
43801 fi
43802 rm -f conftest.err conftest.$ac_ext
43803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43804 echo "${ECHO_T}$ac_header_preproc" >&6
43805
43806 # So?  What about this header?
43807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43808   yes:no: )
43809     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43813     ac_header_preproc=yes
43814     ;;
43815   no:yes:* )
43816     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43818     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43819 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43820     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43822     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43823 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43826     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43828     (
43829       cat <<\_ASBOX
43830 ## ------------------------------------------ ##
43831 ## Report this to the AC_PACKAGE_NAME lists.  ##
43832 ## ------------------------------------------ ##
43833 _ASBOX
43834     ) |
43835       sed "s/^/$as_me: WARNING:     /" >&2
43836     ;;
43837 esac
43838 echo "$as_me:$LINENO: checking for $ac_header" >&5
43839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43841   echo $ECHO_N "(cached) $ECHO_C" >&6
43842 else
43843   eval "$as_ac_Header=\$ac_header_preproc"
43844 fi
43845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43847
43848 fi
43849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43850   cat >>confdefs.h <<_ACEOF
43851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43852 _ACEOF
43853
43854 fi
43855
43856 done
43857
43858  echo "$as_me:$LINENO: checking for db" >&5
43859 echo $ECHO_N "checking for db... $ECHO_C" >&6
43860 if test "${ol_cv_gdbm+set}" = set; then
43861   echo $ECHO_N "(cached) $ECHO_C" >&6
43862 else
43863
43864         if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
43865                 ol_cv_gdbm=no
43866         else
43867                 ol_cv_gdbm=yes
43868         fi
43869
43870 fi
43871 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
43872 echo "${ECHO_T}$ol_cv_gdbm" >&6
43873  if test $ol_cv_gdbm = yes ; then
43874
43875 cat >>confdefs.h <<\_ACEOF
43876 #define HAVE_GDBM 1
43877 _ACEOF
43878
43879  fi
43880
43881
43882         if test $ol_cv_gdbm = yes ; then
43883                 ol_link_ldbm=gdbm
43884                 ol_with_ldbm_api=gdbm
43885
43886                 if test $ol_cv_lib_gdbm != yes ; then
43887                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
43888                 fi
43889         fi
43890 fi
43891
43892 if test $ol_with_ldbm_api = ndbm ; then
43893         echo "$as_me:$LINENO: checking for NDBM library" >&5
43894 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
43895 if test "${ol_cv_lib_ndbm+set}" = set; then
43896   echo $ECHO_N "(cached) $ECHO_C" >&6
43897 else
43898         ol_LIBS="$LIBS"
43899         echo "$as_me:$LINENO: checking for dbm_open" >&5
43900 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
43901 if test "${ac_cv_func_dbm_open+set}" = set; then
43902   echo $ECHO_N "(cached) $ECHO_C" >&6
43903 else
43904   cat >conftest.$ac_ext <<_ACEOF
43905 /* confdefs.h.  */
43906 _ACEOF
43907 cat confdefs.h >>conftest.$ac_ext
43908 cat >>conftest.$ac_ext <<_ACEOF
43909 /* end confdefs.h.  */
43910 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
43911    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43912 #define dbm_open innocuous_dbm_open
43913
43914 /* System header to define __stub macros and hopefully few prototypes,
43915     which can conflict with char dbm_open (); below.
43916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43917     <limits.h> exists even on freestanding compilers.  */
43918
43919 #ifdef __STDC__
43920 # include <limits.h>
43921 #else
43922 # include <assert.h>
43923 #endif
43924
43925 #undef dbm_open
43926
43927 /* Override any gcc2 internal prototype to avoid an error.  */
43928 #ifdef __cplusplus
43929 extern "C"
43930 {
43931 #endif
43932 /* We use char because int might match the return type of a gcc2
43933    builtin and then its argument prototype would still apply.  */
43934 char dbm_open ();
43935 /* The GNU C library defines this for functions which it implements
43936     to always fail with ENOSYS.  Some functions are actually named
43937     something starting with __ and the normal name is an alias.  */
43938 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
43939 choke me
43940 #else
43941 char (*f) () = dbm_open;
43942 #endif
43943 #ifdef __cplusplus
43944 }
43945 #endif
43946
43947 int
43948 main ()
43949 {
43950 return f != dbm_open;
43951   ;
43952   return 0;
43953 }
43954 _ACEOF
43955 rm -f conftest.$ac_objext conftest$ac_exeext
43956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43957   (eval $ac_link) 2>conftest.er1
43958   ac_status=$?
43959   grep -v '^ *+' conftest.er1 >conftest.err
43960   rm -f conftest.er1
43961   cat conftest.err >&5
43962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43963   (exit $ac_status); } &&
43964          { ac_try='test -z "$ac_c_werror_flag"
43965                          || test ! -s conftest.err'
43966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43967   (eval $ac_try) 2>&5
43968   ac_status=$?
43969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43970   (exit $ac_status); }; } &&
43971          { ac_try='test -s conftest$ac_exeext'
43972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43973   (eval $ac_try) 2>&5
43974   ac_status=$?
43975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43976   (exit $ac_status); }; }; then
43977   ac_cv_func_dbm_open=yes
43978 else
43979   echo "$as_me: failed program was:" >&5
43980 sed 's/^/| /' conftest.$ac_ext >&5
43981
43982 ac_cv_func_dbm_open=no
43983 fi
43984 rm -f conftest.err conftest.$ac_objext \
43985       conftest$ac_exeext conftest.$ac_ext
43986 fi
43987 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
43988 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
43989 if test $ac_cv_func_dbm_open = yes; then
43990   ol_cv_lib_ndbm=yes
43991 else
43992
43993                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
43994 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
43995 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
43996   echo $ECHO_N "(cached) $ECHO_C" >&6
43997 else
43998   ac_check_lib_save_LIBS=$LIBS
43999 LIBS="-lndbm  $LIBS"
44000 cat >conftest.$ac_ext <<_ACEOF
44001 /* confdefs.h.  */
44002 _ACEOF
44003 cat confdefs.h >>conftest.$ac_ext
44004 cat >>conftest.$ac_ext <<_ACEOF
44005 /* end confdefs.h.  */
44006
44007 /* Override any gcc2 internal prototype to avoid an error.  */
44008 #ifdef __cplusplus
44009 extern "C"
44010 #endif
44011 /* We use char because int might match the return type of a gcc2
44012    builtin and then its argument prototype would still apply.  */
44013 char dbm_open ();
44014 int
44015 main ()
44016 {
44017 dbm_open ();
44018   ;
44019   return 0;
44020 }
44021 _ACEOF
44022 rm -f conftest.$ac_objext conftest$ac_exeext
44023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44024   (eval $ac_link) 2>conftest.er1
44025   ac_status=$?
44026   grep -v '^ *+' conftest.er1 >conftest.err
44027   rm -f conftest.er1
44028   cat conftest.err >&5
44029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44030   (exit $ac_status); } &&
44031          { ac_try='test -z "$ac_c_werror_flag"
44032                          || test ! -s conftest.err'
44033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44034   (eval $ac_try) 2>&5
44035   ac_status=$?
44036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44037   (exit $ac_status); }; } &&
44038          { ac_try='test -s conftest$ac_exeext'
44039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44040   (eval $ac_try) 2>&5
44041   ac_status=$?
44042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44043   (exit $ac_status); }; }; then
44044   ac_cv_lib_ndbm_dbm_open=yes
44045 else
44046   echo "$as_me: failed program was:" >&5
44047 sed 's/^/| /' conftest.$ac_ext >&5
44048
44049 ac_cv_lib_ndbm_dbm_open=no
44050 fi
44051 rm -f conftest.err conftest.$ac_objext \
44052       conftest$ac_exeext conftest.$ac_ext
44053 LIBS=$ac_check_lib_save_LIBS
44054 fi
44055 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44056 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44057 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44058   ol_cv_lib_ndbm=-lndbm
44059 else
44060
44061                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44062 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44063 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44064   echo $ECHO_N "(cached) $ECHO_C" >&6
44065 else
44066   ac_check_lib_save_LIBS=$LIBS
44067 LIBS="-ldbm  $LIBS"
44068 cat >conftest.$ac_ext <<_ACEOF
44069 /* confdefs.h.  */
44070 _ACEOF
44071 cat confdefs.h >>conftest.$ac_ext
44072 cat >>conftest.$ac_ext <<_ACEOF
44073 /* end confdefs.h.  */
44074
44075 /* Override any gcc2 internal prototype to avoid an error.  */
44076 #ifdef __cplusplus
44077 extern "C"
44078 #endif
44079 /* We use char because int might match the return type of a gcc2
44080    builtin and then its argument prototype would still apply.  */
44081 char dbm_open ();
44082 int
44083 main ()
44084 {
44085 dbm_open ();
44086   ;
44087   return 0;
44088 }
44089 _ACEOF
44090 rm -f conftest.$ac_objext conftest$ac_exeext
44091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44092   (eval $ac_link) 2>conftest.er1
44093   ac_status=$?
44094   grep -v '^ *+' conftest.er1 >conftest.err
44095   rm -f conftest.er1
44096   cat conftest.err >&5
44097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44098   (exit $ac_status); } &&
44099          { ac_try='test -z "$ac_c_werror_flag"
44100                          || test ! -s conftest.err'
44101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44102   (eval $ac_try) 2>&5
44103   ac_status=$?
44104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44105   (exit $ac_status); }; } &&
44106          { ac_try='test -s conftest$ac_exeext'
44107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44108   (eval $ac_try) 2>&5
44109   ac_status=$?
44110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44111   (exit $ac_status); }; }; then
44112   ac_cv_lib_dbm_dbm_open=yes
44113 else
44114   echo "$as_me: failed program was:" >&5
44115 sed 's/^/| /' conftest.$ac_ext >&5
44116
44117 ac_cv_lib_dbm_dbm_open=no
44118 fi
44119 rm -f conftest.err conftest.$ac_objext \
44120       conftest$ac_exeext conftest.$ac_ext
44121 LIBS=$ac_check_lib_save_LIBS
44122 fi
44123 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44124 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44125 if test $ac_cv_lib_dbm_dbm_open = yes; then
44126   ol_cv_lib_ndbm=-ldbm
44127 else
44128   ol_cv_lib_ndbm=no
44129 fi
44130
44131 fi
44132
44133
44134 fi
44135
44136         LIBS="$ol_LIBS"
44137
44138 fi
44139 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44140 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44141
44142
44143
44144 for ac_header in ndbm.h
44145 do
44146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44148   echo "$as_me:$LINENO: checking for $ac_header" >&5
44149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44151   echo $ECHO_N "(cached) $ECHO_C" >&6
44152 fi
44153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44155 else
44156   # Is the header compilable?
44157 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44159 cat >conftest.$ac_ext <<_ACEOF
44160 /* confdefs.h.  */
44161 _ACEOF
44162 cat confdefs.h >>conftest.$ac_ext
44163 cat >>conftest.$ac_ext <<_ACEOF
44164 /* end confdefs.h.  */
44165 $ac_includes_default
44166 #include <$ac_header>
44167 _ACEOF
44168 rm -f conftest.$ac_objext
44169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44170   (eval $ac_compile) 2>conftest.er1
44171   ac_status=$?
44172   grep -v '^ *+' conftest.er1 >conftest.err
44173   rm -f conftest.er1
44174   cat conftest.err >&5
44175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44176   (exit $ac_status); } &&
44177          { ac_try='test -z "$ac_c_werror_flag"
44178                          || test ! -s conftest.err'
44179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44180   (eval $ac_try) 2>&5
44181   ac_status=$?
44182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44183   (exit $ac_status); }; } &&
44184          { ac_try='test -s conftest.$ac_objext'
44185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44186   (eval $ac_try) 2>&5
44187   ac_status=$?
44188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44189   (exit $ac_status); }; }; then
44190   ac_header_compiler=yes
44191 else
44192   echo "$as_me: failed program was:" >&5
44193 sed 's/^/| /' conftest.$ac_ext >&5
44194
44195 ac_header_compiler=no
44196 fi
44197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44199 echo "${ECHO_T}$ac_header_compiler" >&6
44200
44201 # Is the header present?
44202 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44204 cat >conftest.$ac_ext <<_ACEOF
44205 /* confdefs.h.  */
44206 _ACEOF
44207 cat confdefs.h >>conftest.$ac_ext
44208 cat >>conftest.$ac_ext <<_ACEOF
44209 /* end confdefs.h.  */
44210 #include <$ac_header>
44211 _ACEOF
44212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44214   ac_status=$?
44215   grep -v '^ *+' conftest.er1 >conftest.err
44216   rm -f conftest.er1
44217   cat conftest.err >&5
44218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44219   (exit $ac_status); } >/dev/null; then
44220   if test -s conftest.err; then
44221     ac_cpp_err=$ac_c_preproc_warn_flag
44222     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44223   else
44224     ac_cpp_err=
44225   fi
44226 else
44227   ac_cpp_err=yes
44228 fi
44229 if test -z "$ac_cpp_err"; then
44230   ac_header_preproc=yes
44231 else
44232   echo "$as_me: failed program was:" >&5
44233 sed 's/^/| /' conftest.$ac_ext >&5
44234
44235   ac_header_preproc=no
44236 fi
44237 rm -f conftest.err conftest.$ac_ext
44238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44239 echo "${ECHO_T}$ac_header_preproc" >&6
44240
44241 # So?  What about this header?
44242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44243   yes:no: )
44244     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44248     ac_header_preproc=yes
44249     ;;
44250   no:yes:* )
44251     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44253     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44254 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44255     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44257     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44258 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44261     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44263     (
44264       cat <<\_ASBOX
44265 ## ------------------------------------------ ##
44266 ## Report this to the AC_PACKAGE_NAME lists.  ##
44267 ## ------------------------------------------ ##
44268 _ASBOX
44269     ) |
44270       sed "s/^/$as_me: WARNING:     /" >&2
44271     ;;
44272 esac
44273 echo "$as_me:$LINENO: checking for $ac_header" >&5
44274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44276   echo $ECHO_N "(cached) $ECHO_C" >&6
44277 else
44278   eval "$as_ac_Header=\$ac_header_preproc"
44279 fi
44280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44282
44283 fi
44284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44285   cat >>confdefs.h <<_ACEOF
44286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44287 _ACEOF
44288
44289 fi
44290
44291 done
44292
44293  echo "$as_me:$LINENO: checking for db" >&5
44294 echo $ECHO_N "checking for db... $ECHO_C" >&6
44295 if test "${ol_cv_ndbm+set}" = set; then
44296   echo $ECHO_N "(cached) $ECHO_C" >&6
44297 else
44298
44299         if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44300                 ol_cv_ndbm=no
44301         else
44302                 ol_cv_ndbm=yes
44303         fi
44304
44305 fi
44306 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44307 echo "${ECHO_T}$ol_cv_ndbm" >&6
44308  if test $ol_cv_ndbm = yes ; then
44309
44310 cat >>confdefs.h <<\_ACEOF
44311 #define HAVE_NDBM 1
44312 _ACEOF
44313
44314  fi
44315
44316
44317         if test $ol_cv_ndbm = yes ; then
44318                 ol_link_ldbm=ndbm
44319                 ol_with_ldbm_api=ndbm
44320
44321                 if test $ol_cv_lib_ndbm != yes ; then
44322                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44323                 fi
44324         fi
44325 fi
44326
44327 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44328         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44329 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44330    { (exit 1); exit 1; }; }
44331 fi
44332
44333 if test $ol_enable_bdb = yes -o \
44334         $ol_enable_hdb = yes -o \
44335         $ol_enable_ldbm = yes ; then
44336         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44337 fi
44338
44339
44340 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44341         BUILD_LIBS_DYNAMIC=shared
44342
44343 cat >>confdefs.h <<\_ACEOF
44344 #define LDAP_LIBS_DYNAMIC 1
44345 _ACEOF
44346
44347         LTSTATIC=""
44348 else
44349         BUILD_LIBS_DYNAMIC=static
44350         LTSTATIC="-static"
44351 fi
44352
44353 if test $ol_enable_wrappers != no ; then
44354
44355 for ac_header in tcpd.h
44356 do
44357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44359   echo "$as_me:$LINENO: checking for $ac_header" >&5
44360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44362   echo $ECHO_N "(cached) $ECHO_C" >&6
44363 fi
44364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44366 else
44367   # Is the header compilable?
44368 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44370 cat >conftest.$ac_ext <<_ACEOF
44371 /* confdefs.h.  */
44372 _ACEOF
44373 cat confdefs.h >>conftest.$ac_ext
44374 cat >>conftest.$ac_ext <<_ACEOF
44375 /* end confdefs.h.  */
44376 $ac_includes_default
44377 #include <$ac_header>
44378 _ACEOF
44379 rm -f conftest.$ac_objext
44380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44381   (eval $ac_compile) 2>conftest.er1
44382   ac_status=$?
44383   grep -v '^ *+' conftest.er1 >conftest.err
44384   rm -f conftest.er1
44385   cat conftest.err >&5
44386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44387   (exit $ac_status); } &&
44388          { ac_try='test -z "$ac_c_werror_flag"
44389                          || test ! -s conftest.err'
44390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44391   (eval $ac_try) 2>&5
44392   ac_status=$?
44393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44394   (exit $ac_status); }; } &&
44395          { ac_try='test -s conftest.$ac_objext'
44396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44397   (eval $ac_try) 2>&5
44398   ac_status=$?
44399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44400   (exit $ac_status); }; }; then
44401   ac_header_compiler=yes
44402 else
44403   echo "$as_me: failed program was:" >&5
44404 sed 's/^/| /' conftest.$ac_ext >&5
44405
44406 ac_header_compiler=no
44407 fi
44408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44410 echo "${ECHO_T}$ac_header_compiler" >&6
44411
44412 # Is the header present?
44413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44415 cat >conftest.$ac_ext <<_ACEOF
44416 /* confdefs.h.  */
44417 _ACEOF
44418 cat confdefs.h >>conftest.$ac_ext
44419 cat >>conftest.$ac_ext <<_ACEOF
44420 /* end confdefs.h.  */
44421 #include <$ac_header>
44422 _ACEOF
44423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44424   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44425   ac_status=$?
44426   grep -v '^ *+' conftest.er1 >conftest.err
44427   rm -f conftest.er1
44428   cat conftest.err >&5
44429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44430   (exit $ac_status); } >/dev/null; then
44431   if test -s conftest.err; then
44432     ac_cpp_err=$ac_c_preproc_warn_flag
44433     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44434   else
44435     ac_cpp_err=
44436   fi
44437 else
44438   ac_cpp_err=yes
44439 fi
44440 if test -z "$ac_cpp_err"; then
44441   ac_header_preproc=yes
44442 else
44443   echo "$as_me: failed program was:" >&5
44444 sed 's/^/| /' conftest.$ac_ext >&5
44445
44446   ac_header_preproc=no
44447 fi
44448 rm -f conftest.err conftest.$ac_ext
44449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44450 echo "${ECHO_T}$ac_header_preproc" >&6
44451
44452 # So?  What about this header?
44453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44454   yes:no: )
44455     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44459     ac_header_preproc=yes
44460     ;;
44461   no:yes:* )
44462     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44464     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44465 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44466     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44468     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44469 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44472     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44474     (
44475       cat <<\_ASBOX
44476 ## ------------------------------------------ ##
44477 ## Report this to the AC_PACKAGE_NAME lists.  ##
44478 ## ------------------------------------------ ##
44479 _ASBOX
44480     ) |
44481       sed "s/^/$as_me: WARNING:     /" >&2
44482     ;;
44483 esac
44484 echo "$as_me:$LINENO: checking for $ac_header" >&5
44485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44487   echo $ECHO_N "(cached) $ECHO_C" >&6
44488 else
44489   eval "$as_ac_Header=\$ac_header_preproc"
44490 fi
44491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44493
44494 fi
44495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44496   cat >>confdefs.h <<_ACEOF
44497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44498 _ACEOF
44499
44500                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44501 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44502                 save_LIBS="$LIBS"
44503                 LIBS="$LIBS -lwrap"
44504                 cat >conftest.$ac_ext <<_ACEOF
44505 /* confdefs.h.  */
44506 _ACEOF
44507 cat confdefs.h >>conftest.$ac_ext
44508 cat >>conftest.$ac_ext <<_ACEOF
44509 /* end confdefs.h.  */
44510
44511 #include <tcpd.h>
44512 int allow_severity = 0;
44513 int deny_severity  = 0;
44514
44515 struct request_info *req;
44516
44517 int
44518 main ()
44519 {
44520
44521 hosts_access(req)
44522
44523   ;
44524   return 0;
44525 }
44526 _ACEOF
44527 rm -f conftest.$ac_objext conftest$ac_exeext
44528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44529   (eval $ac_link) 2>conftest.er1
44530   ac_status=$?
44531   grep -v '^ *+' conftest.er1 >conftest.err
44532   rm -f conftest.er1
44533   cat conftest.err >&5
44534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44535   (exit $ac_status); } &&
44536          { ac_try='test -z "$ac_c_werror_flag"
44537                          || test ! -s conftest.err'
44538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44539   (eval $ac_try) 2>&5
44540   ac_status=$?
44541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44542   (exit $ac_status); }; } &&
44543          { ac_try='test -s conftest$ac_exeext'
44544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44545   (eval $ac_try) 2>&5
44546   ac_status=$?
44547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44548   (exit $ac_status); }; }; then
44549   echo "$as_me:$LINENO: result: -lwrap" >&5
44550 echo "${ECHO_T}-lwrap" >&6
44551                 have_wrappers=yes
44552                 LIBS="$save_LIBS"
44553 else
44554   echo "$as_me: failed program was:" >&5
44555 sed 's/^/| /' conftest.$ac_ext >&5
44556
44557
44558                                 LIBS="$LIBS -lnsl"
44559                 cat >conftest.$ac_ext <<_ACEOF
44560 /* confdefs.h.  */
44561 _ACEOF
44562 cat confdefs.h >>conftest.$ac_ext
44563 cat >>conftest.$ac_ext <<_ACEOF
44564 /* end confdefs.h.  */
44565
44566 #include <tcpd.h>
44567 int allow_severity = 0;
44568 int deny_severity  = 0;
44569
44570 struct request_info *req;
44571
44572 int
44573 main ()
44574 {
44575
44576 hosts_access(req)
44577
44578   ;
44579   return 0;
44580 }
44581 _ACEOF
44582 rm -f conftest.$ac_objext conftest$ac_exeext
44583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44584   (eval $ac_link) 2>conftest.er1
44585   ac_status=$?
44586   grep -v '^ *+' conftest.er1 >conftest.err
44587   rm -f conftest.er1
44588   cat conftest.err >&5
44589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44590   (exit $ac_status); } &&
44591          { ac_try='test -z "$ac_c_werror_flag"
44592                          || test ! -s conftest.err'
44593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44594   (eval $ac_try) 2>&5
44595   ac_status=$?
44596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44597   (exit $ac_status); }; } &&
44598          { ac_try='test -s conftest$ac_exeext'
44599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44600   (eval $ac_try) 2>&5
44601   ac_status=$?
44602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44603   (exit $ac_status); }; }; then
44604   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44605 echo "${ECHO_T}-lwrap -lnsl" >&6
44606                 have_wrappers=yes
44607                 LIBS="$save_LIBS -lnsl"
44608 else
44609   echo "$as_me: failed program was:" >&5
44610 sed 's/^/| /' conftest.$ac_ext >&5
44611
44612
44613                 echo "$as_me:$LINENO: result: no" >&5
44614 echo "${ECHO_T}no" >&6
44615                 have_wrappers=no
44616                 LIBS=$save_LIBS
44617 fi
44618 rm -f conftest.err conftest.$ac_objext \
44619       conftest$ac_exeext conftest.$ac_ext
44620 fi
44621 rm -f conftest.err conftest.$ac_objext \
44622       conftest$ac_exeext conftest.$ac_ext
44623 else
44624   have_wrappers=no
44625 fi
44626
44627 done
44628
44629
44630         if test $have_wrappers = yes ; then
44631
44632 cat >>confdefs.h <<\_ACEOF
44633 #define HAVE_TCPD 1
44634 _ACEOF
44635
44636                 WRAP_LIBS="-lwrap"
44637         elif test $ol_enable_wrappers = yes ; then
44638                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44639 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44640    { (exit 1); exit 1; }; }
44641         else
44642                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44643 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44644                 WRAP_LIBS=""
44645         fi
44646 fi
44647
44648 if test $ol_enable_syslog != no ; then
44649         echo "$as_me:$LINENO: checking for openlog" >&5
44650 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44651 if test "${ac_cv_func_openlog+set}" = set; then
44652   echo $ECHO_N "(cached) $ECHO_C" >&6
44653 else
44654   cat >conftest.$ac_ext <<_ACEOF
44655 /* confdefs.h.  */
44656 _ACEOF
44657 cat confdefs.h >>conftest.$ac_ext
44658 cat >>conftest.$ac_ext <<_ACEOF
44659 /* end confdefs.h.  */
44660 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44662 #define openlog innocuous_openlog
44663
44664 /* System header to define __stub macros and hopefully few prototypes,
44665     which can conflict with char openlog (); below.
44666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44667     <limits.h> exists even on freestanding compilers.  */
44668
44669 #ifdef __STDC__
44670 # include <limits.h>
44671 #else
44672 # include <assert.h>
44673 #endif
44674
44675 #undef openlog
44676
44677 /* Override any gcc2 internal prototype to avoid an error.  */
44678 #ifdef __cplusplus
44679 extern "C"
44680 {
44681 #endif
44682 /* We use char because int might match the return type of a gcc2
44683    builtin and then its argument prototype would still apply.  */
44684 char openlog ();
44685 /* The GNU C library defines this for functions which it implements
44686     to always fail with ENOSYS.  Some functions are actually named
44687     something starting with __ and the normal name is an alias.  */
44688 #if defined (__stub_openlog) || defined (__stub___openlog)
44689 choke me
44690 #else
44691 char (*f) () = openlog;
44692 #endif
44693 #ifdef __cplusplus
44694 }
44695 #endif
44696
44697 int
44698 main ()
44699 {
44700 return f != openlog;
44701   ;
44702   return 0;
44703 }
44704 _ACEOF
44705 rm -f conftest.$ac_objext conftest$ac_exeext
44706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44707   (eval $ac_link) 2>conftest.er1
44708   ac_status=$?
44709   grep -v '^ *+' conftest.er1 >conftest.err
44710   rm -f conftest.er1
44711   cat conftest.err >&5
44712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44713   (exit $ac_status); } &&
44714          { ac_try='test -z "$ac_c_werror_flag"
44715                          || test ! -s conftest.err'
44716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44717   (eval $ac_try) 2>&5
44718   ac_status=$?
44719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44720   (exit $ac_status); }; } &&
44721          { ac_try='test -s conftest$ac_exeext'
44722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44723   (eval $ac_try) 2>&5
44724   ac_status=$?
44725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44726   (exit $ac_status); }; }; then
44727   ac_cv_func_openlog=yes
44728 else
44729   echo "$as_me: failed program was:" >&5
44730 sed 's/^/| /' conftest.$ac_ext >&5
44731
44732 ac_cv_func_openlog=no
44733 fi
44734 rm -f conftest.err conftest.$ac_objext \
44735       conftest$ac_exeext conftest.$ac_ext
44736 fi
44737 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
44738 echo "${ECHO_T}$ac_cv_func_openlog" >&6
44739
44740         if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
44741                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
44742 echo "$as_me: error: could not find syslog" >&2;}
44743    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
44744         fi
44745         ol_enable_syslog=$ac_cv_func_openlog
44746 fi
44747
44748
44749 ol_link_sql=no
44750 if test $ol_enable_sql != no ; then
44751
44752
44753 for ac_header in sql.h sqlext.h
44754 do
44755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44757   echo "$as_me:$LINENO: checking for $ac_header" >&5
44758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44760   echo $ECHO_N "(cached) $ECHO_C" >&6
44761 fi
44762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44764 else
44765   # Is the header compilable?
44766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44768 cat >conftest.$ac_ext <<_ACEOF
44769 /* confdefs.h.  */
44770 _ACEOF
44771 cat confdefs.h >>conftest.$ac_ext
44772 cat >>conftest.$ac_ext <<_ACEOF
44773 /* end confdefs.h.  */
44774 $ac_includes_default
44775 #include <$ac_header>
44776 _ACEOF
44777 rm -f conftest.$ac_objext
44778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44779   (eval $ac_compile) 2>conftest.er1
44780   ac_status=$?
44781   grep -v '^ *+' conftest.er1 >conftest.err
44782   rm -f conftest.er1
44783   cat conftest.err >&5
44784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44785   (exit $ac_status); } &&
44786          { ac_try='test -z "$ac_c_werror_flag"
44787                          || test ! -s conftest.err'
44788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44789   (eval $ac_try) 2>&5
44790   ac_status=$?
44791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44792   (exit $ac_status); }; } &&
44793          { ac_try='test -s conftest.$ac_objext'
44794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44795   (eval $ac_try) 2>&5
44796   ac_status=$?
44797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44798   (exit $ac_status); }; }; then
44799   ac_header_compiler=yes
44800 else
44801   echo "$as_me: failed program was:" >&5
44802 sed 's/^/| /' conftest.$ac_ext >&5
44803
44804 ac_header_compiler=no
44805 fi
44806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44808 echo "${ECHO_T}$ac_header_compiler" >&6
44809
44810 # Is the header present?
44811 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44813 cat >conftest.$ac_ext <<_ACEOF
44814 /* confdefs.h.  */
44815 _ACEOF
44816 cat confdefs.h >>conftest.$ac_ext
44817 cat >>conftest.$ac_ext <<_ACEOF
44818 /* end confdefs.h.  */
44819 #include <$ac_header>
44820 _ACEOF
44821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44822   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44823   ac_status=$?
44824   grep -v '^ *+' conftest.er1 >conftest.err
44825   rm -f conftest.er1
44826   cat conftest.err >&5
44827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44828   (exit $ac_status); } >/dev/null; then
44829   if test -s conftest.err; then
44830     ac_cpp_err=$ac_c_preproc_warn_flag
44831     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44832   else
44833     ac_cpp_err=
44834   fi
44835 else
44836   ac_cpp_err=yes
44837 fi
44838 if test -z "$ac_cpp_err"; then
44839   ac_header_preproc=yes
44840 else
44841   echo "$as_me: failed program was:" >&5
44842 sed 's/^/| /' conftest.$ac_ext >&5
44843
44844   ac_header_preproc=no
44845 fi
44846 rm -f conftest.err conftest.$ac_ext
44847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44848 echo "${ECHO_T}$ac_header_preproc" >&6
44849
44850 # So?  What about this header?
44851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44852   yes:no: )
44853     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44857     ac_header_preproc=yes
44858     ;;
44859   no:yes:* )
44860     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44862     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44863 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44864     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44866     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44867 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44868     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44870     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44872     (
44873       cat <<\_ASBOX
44874 ## ------------------------------------------ ##
44875 ## Report this to the AC_PACKAGE_NAME lists.  ##
44876 ## ------------------------------------------ ##
44877 _ASBOX
44878     ) |
44879       sed "s/^/$as_me: WARNING:     /" >&2
44880     ;;
44881 esac
44882 echo "$as_me:$LINENO: checking for $ac_header" >&5
44883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44885   echo $ECHO_N "(cached) $ECHO_C" >&6
44886 else
44887   eval "$as_ac_Header=\$ac_header_preproc"
44888 fi
44889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44891
44892 fi
44893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44894   cat >>confdefs.h <<_ACEOF
44895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44896 _ACEOF
44897
44898 else
44899
44900                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
44901 echo "$as_me: error: could not locate SQL headers" >&2;}
44902    { (exit 1); exit 1; }; }
44903
44904 fi
44905
44906 done
44907
44908
44909         sql_LIBS="$LIBS"
44910         LIBS="$LTHREAD_LIBS"
44911
44912         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
44913 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
44914 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
44915   echo $ECHO_N "(cached) $ECHO_C" >&6
44916 else
44917   ac_check_lib_save_LIBS=$LIBS
44918 LIBS="-liodbc  $LIBS"
44919 cat >conftest.$ac_ext <<_ACEOF
44920 /* confdefs.h.  */
44921 _ACEOF
44922 cat confdefs.h >>conftest.$ac_ext
44923 cat >>conftest.$ac_ext <<_ACEOF
44924 /* end confdefs.h.  */
44925
44926 /* Override any gcc2 internal prototype to avoid an error.  */
44927 #ifdef __cplusplus
44928 extern "C"
44929 #endif
44930 /* We use char because int might match the return type of a gcc2
44931    builtin and then its argument prototype would still apply.  */
44932 char SQLDriverConnect ();
44933 int
44934 main ()
44935 {
44936 SQLDriverConnect ();
44937   ;
44938   return 0;
44939 }
44940 _ACEOF
44941 rm -f conftest.$ac_objext conftest$ac_exeext
44942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44943   (eval $ac_link) 2>conftest.er1
44944   ac_status=$?
44945   grep -v '^ *+' conftest.er1 >conftest.err
44946   rm -f conftest.er1
44947   cat conftest.err >&5
44948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44949   (exit $ac_status); } &&
44950          { ac_try='test -z "$ac_c_werror_flag"
44951                          || test ! -s conftest.err'
44952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44953   (eval $ac_try) 2>&5
44954   ac_status=$?
44955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44956   (exit $ac_status); }; } &&
44957          { ac_try='test -s conftest$ac_exeext'
44958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44959   (eval $ac_try) 2>&5
44960   ac_status=$?
44961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44962   (exit $ac_status); }; }; then
44963   ac_cv_lib_iodbc_SQLDriverConnect=yes
44964 else
44965   echo "$as_me: failed program was:" >&5
44966 sed 's/^/| /' conftest.$ac_ext >&5
44967
44968 ac_cv_lib_iodbc_SQLDriverConnect=no
44969 fi
44970 rm -f conftest.err conftest.$ac_objext \
44971       conftest$ac_exeext conftest.$ac_ext
44972 LIBS=$ac_check_lib_save_LIBS
44973 fi
44974 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
44975 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
44976 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
44977   have_iodbc=yes
44978 else
44979   have_iodbc=no
44980 fi
44981
44982         if test $have_iodbc = yes ; then
44983                 ol_link_sql="-liodbc"
44984         else
44985                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
44986 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
44987 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
44988   echo $ECHO_N "(cached) $ECHO_C" >&6
44989 else
44990   ac_check_lib_save_LIBS=$LIBS
44991 LIBS="-lodbc  $LIBS"
44992 cat >conftest.$ac_ext <<_ACEOF
44993 /* confdefs.h.  */
44994 _ACEOF
44995 cat confdefs.h >>conftest.$ac_ext
44996 cat >>conftest.$ac_ext <<_ACEOF
44997 /* end confdefs.h.  */
44998
44999 /* Override any gcc2 internal prototype to avoid an error.  */
45000 #ifdef __cplusplus
45001 extern "C"
45002 #endif
45003 /* We use char because int might match the return type of a gcc2
45004    builtin and then its argument prototype would still apply.  */
45005 char SQLDriverConnect ();
45006 int
45007 main ()
45008 {
45009 SQLDriverConnect ();
45010   ;
45011   return 0;
45012 }
45013 _ACEOF
45014 rm -f conftest.$ac_objext conftest$ac_exeext
45015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45016   (eval $ac_link) 2>conftest.er1
45017   ac_status=$?
45018   grep -v '^ *+' conftest.er1 >conftest.err
45019   rm -f conftest.er1
45020   cat conftest.err >&5
45021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45022   (exit $ac_status); } &&
45023          { ac_try='test -z "$ac_c_werror_flag"
45024                          || test ! -s conftest.err'
45025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45026   (eval $ac_try) 2>&5
45027   ac_status=$?
45028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45029   (exit $ac_status); }; } &&
45030          { ac_try='test -s conftest$ac_exeext'
45031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45032   (eval $ac_try) 2>&5
45033   ac_status=$?
45034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45035   (exit $ac_status); }; }; then
45036   ac_cv_lib_odbc_SQLDriverConnect=yes
45037 else
45038   echo "$as_me: failed program was:" >&5
45039 sed 's/^/| /' conftest.$ac_ext >&5
45040
45041 ac_cv_lib_odbc_SQLDriverConnect=no
45042 fi
45043 rm -f conftest.err conftest.$ac_objext \
45044       conftest$ac_exeext conftest.$ac_ext
45045 LIBS=$ac_check_lib_save_LIBS
45046 fi
45047 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45048 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45049 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45050   have_odbc=yes
45051 else
45052   have_odbc=no
45053 fi
45054
45055                 if test $have_odbc = yes ; then
45056                         ol_link_sql="-lodbc"
45057                 fi
45058         fi
45059
45060         LIBS="$sql_LIBS"
45061
45062         if test $ol_link_sql != no ; then
45063                 SLAPD_SQL_LIBS="$ol_link_sql"
45064
45065         elif test $ol_enable_sql != auto ; then
45066                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45067 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45068    { (exit 1); exit 1; }; }
45069         fi
45070 fi
45071
45072 WITH_SASL=no
45073 ol_link_sasl=no
45074 ol_link_spasswd=no
45075 if test $ol_with_cyrus_sasl != no ; then
45076
45077
45078 for ac_header in sasl/sasl.h sasl.h
45079 do
45080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45082   echo "$as_me:$LINENO: checking for $ac_header" >&5
45083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45085   echo $ECHO_N "(cached) $ECHO_C" >&6
45086 fi
45087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45089 else
45090   # Is the header compilable?
45091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
45100 #include <$ac_header>
45101 _ACEOF
45102 rm -f conftest.$ac_objext
45103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45104   (eval $ac_compile) 2>conftest.er1
45105   ac_status=$?
45106   grep -v '^ *+' conftest.er1 >conftest.err
45107   rm -f conftest.er1
45108   cat conftest.err >&5
45109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45110   (exit $ac_status); } &&
45111          { ac_try='test -z "$ac_c_werror_flag"
45112                          || test ! -s conftest.err'
45113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45114   (eval $ac_try) 2>&5
45115   ac_status=$?
45116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45117   (exit $ac_status); }; } &&
45118          { ac_try='test -s conftest.$ac_objext'
45119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45120   (eval $ac_try) 2>&5
45121   ac_status=$?
45122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45123   (exit $ac_status); }; }; then
45124   ac_header_compiler=yes
45125 else
45126   echo "$as_me: failed program was:" >&5
45127 sed 's/^/| /' conftest.$ac_ext >&5
45128
45129 ac_header_compiler=no
45130 fi
45131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45133 echo "${ECHO_T}$ac_header_compiler" >&6
45134
45135 # Is the header present?
45136 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45138 cat >conftest.$ac_ext <<_ACEOF
45139 /* confdefs.h.  */
45140 _ACEOF
45141 cat confdefs.h >>conftest.$ac_ext
45142 cat >>conftest.$ac_ext <<_ACEOF
45143 /* end confdefs.h.  */
45144 #include <$ac_header>
45145 _ACEOF
45146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45147   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45148   ac_status=$?
45149   grep -v '^ *+' conftest.er1 >conftest.err
45150   rm -f conftest.er1
45151   cat conftest.err >&5
45152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45153   (exit $ac_status); } >/dev/null; then
45154   if test -s conftest.err; then
45155     ac_cpp_err=$ac_c_preproc_warn_flag
45156     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45157   else
45158     ac_cpp_err=
45159   fi
45160 else
45161   ac_cpp_err=yes
45162 fi
45163 if test -z "$ac_cpp_err"; then
45164   ac_header_preproc=yes
45165 else
45166   echo "$as_me: failed program was:" >&5
45167 sed 's/^/| /' conftest.$ac_ext >&5
45168
45169   ac_header_preproc=no
45170 fi
45171 rm -f conftest.err conftest.$ac_ext
45172 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45173 echo "${ECHO_T}$ac_header_preproc" >&6
45174
45175 # So?  What about this header?
45176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45177   yes:no: )
45178     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45182     ac_header_preproc=yes
45183     ;;
45184   no:yes:* )
45185     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45187     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45188 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45189     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45191     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45192 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45195     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45197     (
45198       cat <<\_ASBOX
45199 ## ------------------------------------------ ##
45200 ## Report this to the AC_PACKAGE_NAME lists.  ##
45201 ## ------------------------------------------ ##
45202 _ASBOX
45203     ) |
45204       sed "s/^/$as_me: WARNING:     /" >&2
45205     ;;
45206 esac
45207 echo "$as_me:$LINENO: checking for $ac_header" >&5
45208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45210   echo $ECHO_N "(cached) $ECHO_C" >&6
45211 else
45212   eval "$as_ac_Header=\$ac_header_preproc"
45213 fi
45214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45216
45217 fi
45218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45219   cat >>confdefs.h <<_ACEOF
45220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45221 _ACEOF
45222
45223 fi
45224
45225 done
45226
45227
45228         if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45229                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45230 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45231 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45232   echo $ECHO_N "(cached) $ECHO_C" >&6
45233 else
45234   ac_check_lib_save_LIBS=$LIBS
45235 LIBS="-lsasl2  $LIBS"
45236 cat >conftest.$ac_ext <<_ACEOF
45237 /* confdefs.h.  */
45238 _ACEOF
45239 cat confdefs.h >>conftest.$ac_ext
45240 cat >>conftest.$ac_ext <<_ACEOF
45241 /* end confdefs.h.  */
45242
45243 /* Override any gcc2 internal prototype to avoid an error.  */
45244 #ifdef __cplusplus
45245 extern "C"
45246 #endif
45247 /* We use char because int might match the return type of a gcc2
45248    builtin and then its argument prototype would still apply.  */
45249 char sasl_client_init ();
45250 int
45251 main ()
45252 {
45253 sasl_client_init ();
45254   ;
45255   return 0;
45256 }
45257 _ACEOF
45258 rm -f conftest.$ac_objext conftest$ac_exeext
45259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45260   (eval $ac_link) 2>conftest.er1
45261   ac_status=$?
45262   grep -v '^ *+' conftest.er1 >conftest.err
45263   rm -f conftest.er1
45264   cat conftest.err >&5
45265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45266   (exit $ac_status); } &&
45267          { ac_try='test -z "$ac_c_werror_flag"
45268                          || test ! -s conftest.err'
45269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45270   (eval $ac_try) 2>&5
45271   ac_status=$?
45272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45273   (exit $ac_status); }; } &&
45274          { ac_try='test -s conftest$ac_exeext'
45275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45276   (eval $ac_try) 2>&5
45277   ac_status=$?
45278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45279   (exit $ac_status); }; }; then
45280   ac_cv_lib_sasl2_sasl_client_init=yes
45281 else
45282   echo "$as_me: failed program was:" >&5
45283 sed 's/^/| /' conftest.$ac_ext >&5
45284
45285 ac_cv_lib_sasl2_sasl_client_init=no
45286 fi
45287 rm -f conftest.err conftest.$ac_objext \
45288       conftest$ac_exeext conftest.$ac_ext
45289 LIBS=$ac_check_lib_save_LIBS
45290 fi
45291 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45292 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45293 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45294   ol_link_sasl="-lsasl2"
45295 else
45296   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45297 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45298 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45299   echo $ECHO_N "(cached) $ECHO_C" >&6
45300 else
45301   ac_check_lib_save_LIBS=$LIBS
45302 LIBS="-lsasl  $LIBS"
45303 cat >conftest.$ac_ext <<_ACEOF
45304 /* confdefs.h.  */
45305 _ACEOF
45306 cat confdefs.h >>conftest.$ac_ext
45307 cat >>conftest.$ac_ext <<_ACEOF
45308 /* end confdefs.h.  */
45309
45310 /* Override any gcc2 internal prototype to avoid an error.  */
45311 #ifdef __cplusplus
45312 extern "C"
45313 #endif
45314 /* We use char because int might match the return type of a gcc2
45315    builtin and then its argument prototype would still apply.  */
45316 char sasl_client_init ();
45317 int
45318 main ()
45319 {
45320 sasl_client_init ();
45321   ;
45322   return 0;
45323 }
45324 _ACEOF
45325 rm -f conftest.$ac_objext conftest$ac_exeext
45326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45327   (eval $ac_link) 2>conftest.er1
45328   ac_status=$?
45329   grep -v '^ *+' conftest.er1 >conftest.err
45330   rm -f conftest.er1
45331   cat conftest.err >&5
45332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45333   (exit $ac_status); } &&
45334          { ac_try='test -z "$ac_c_werror_flag"
45335                          || test ! -s conftest.err'
45336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45337   (eval $ac_try) 2>&5
45338   ac_status=$?
45339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45340   (exit $ac_status); }; } &&
45341          { ac_try='test -s conftest$ac_exeext'
45342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45343   (eval $ac_try) 2>&5
45344   ac_status=$?
45345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45346   (exit $ac_status); }; }; then
45347   ac_cv_lib_sasl_sasl_client_init=yes
45348 else
45349   echo "$as_me: failed program was:" >&5
45350 sed 's/^/| /' conftest.$ac_ext >&5
45351
45352 ac_cv_lib_sasl_sasl_client_init=no
45353 fi
45354 rm -f conftest.err conftest.$ac_objext \
45355       conftest$ac_exeext conftest.$ac_ext
45356 LIBS=$ac_check_lib_save_LIBS
45357 fi
45358 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45359 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45360 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45361   ol_link_sasl="-lsasl"
45362 fi
45363
45364 fi
45365
45366         fi
45367
45368         if test $ol_link_sasl = no ; then
45369                 if test $ol_with_cyrus_sasl != auto ; then
45370                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45371 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45372    { (exit 1); exit 1; }; }
45373                 else
45374                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45375 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45376                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45377 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45378                         if test $ol_link_tls = no ; then
45379                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45380 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45381                         fi
45382                 fi
45383         else
45384                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45385 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45386 if test "${ol_cv_sasl_compat+set}" = set; then
45387   echo $ECHO_N "(cached) $ECHO_C" >&6
45388 else
45389
45390         cat >conftest.$ac_ext <<_ACEOF
45391 /* confdefs.h.  */
45392 _ACEOF
45393 cat confdefs.h >>conftest.$ac_ext
45394 cat >>conftest.$ac_ext <<_ACEOF
45395 /* end confdefs.h.  */
45396
45397 #ifdef HAVE_SASL_SASL_H
45398 #include <sasl/sasl.h>
45399 #else
45400 #include <sasl.h>
45401 #endif
45402
45403 /* Require 2.1.15+ */
45404 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
45405         char *__sasl_compat = "2.2+ or better okay (we guess)";
45406 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
45407         && SASL_VERSION_STEP >=15
45408         char *__sasl_compat = "2.1.15+ or better okay";
45409 #endif
45410
45411 _ACEOF
45412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45413   $EGREP "__sasl_compat" >/dev/null 2>&1; then
45414   ol_cv_sasl_compat=yes
45415 else
45416   ol_cv_sasl_compat=no
45417 fi
45418 rm -f conftest*
45419
45420 fi
45421 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45422 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45423
45424                 if test $ol_cv_sasl_compat = no ; then
45425                         ol_link_sasl=no
45426                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45427 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45428    { (exit 1); exit 1; }; }
45429                 fi
45430
45431
45432 cat >>confdefs.h <<\_ACEOF
45433 #define HAVE_CYRUS_SASL 1
45434 _ACEOF
45435
45436                 SASL_LIBS="$ol_link_sasl"
45437                 if test $ol_enable_spasswd != no ; then
45438                         ol_link_spasswd=yes
45439                 fi
45440
45441                 ac_save_LIBS="$LIBS"
45442                 LIBS="$LIBS $ol_link_sasl"
45443                 echo "$as_me:$LINENO: checking for sasl_version" >&5
45444 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45445 if test "${ac_cv_func_sasl_version+set}" = set; then
45446   echo $ECHO_N "(cached) $ECHO_C" >&6
45447 else
45448   cat >conftest.$ac_ext <<_ACEOF
45449 /* confdefs.h.  */
45450 _ACEOF
45451 cat confdefs.h >>conftest.$ac_ext
45452 cat >>conftest.$ac_ext <<_ACEOF
45453 /* end confdefs.h.  */
45454 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45456 #define sasl_version innocuous_sasl_version
45457
45458 /* System header to define __stub macros and hopefully few prototypes,
45459     which can conflict with char sasl_version (); below.
45460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45461     <limits.h> exists even on freestanding compilers.  */
45462
45463 #ifdef __STDC__
45464 # include <limits.h>
45465 #else
45466 # include <assert.h>
45467 #endif
45468
45469 #undef sasl_version
45470
45471 /* Override any gcc2 internal prototype to avoid an error.  */
45472 #ifdef __cplusplus
45473 extern "C"
45474 {
45475 #endif
45476 /* We use char because int might match the return type of a gcc2
45477    builtin and then its argument prototype would still apply.  */
45478 char sasl_version ();
45479 /* The GNU C library defines this for functions which it implements
45480     to always fail with ENOSYS.  Some functions are actually named
45481     something starting with __ and the normal name is an alias.  */
45482 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45483 choke me
45484 #else
45485 char (*f) () = sasl_version;
45486 #endif
45487 #ifdef __cplusplus
45488 }
45489 #endif
45490
45491 int
45492 main ()
45493 {
45494 return f != sasl_version;
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_func_sasl_version=yes
45522 else
45523   echo "$as_me: failed program was:" >&5
45524 sed 's/^/| /' conftest.$ac_ext >&5
45525
45526 ac_cv_func_sasl_version=no
45527 fi
45528 rm -f conftest.err conftest.$ac_objext \
45529       conftest$ac_exeext conftest.$ac_ext
45530 fi
45531 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45532 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45533 if test $ac_cv_func_sasl_version = yes; then
45534
45535 cat >>confdefs.h <<\_ACEOF
45536 #define HAVE_SASL_VERSION 1
45537 _ACEOF
45538
45539 fi
45540
45541                 LIBS="$ac_save_LIBS"
45542
45543                 WITH_SASL=yes
45544         fi
45545
45546 else
45547         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45548 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45549         if test $ol_link_tls = no ; then
45550                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45551 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45552         fi
45553 fi
45554
45555 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45556         dev=no
45557         if test -r /dev/urandom ; then
45558                 dev="/dev/urandom";
45559         elif test -r /idev/urandom ; then
45560                 dev="/idev/urandom";
45561         elif test -r /dev/srandom ; then
45562                 dev="/dev/srandom";
45563         elif test -r /dev/random ; then
45564                 dev="/dev/random";
45565         elif test -r /idev/random ; then
45566                 dev="/idev/random";
45567         fi
45568
45569         if test $dev != no ; then
45570
45571 cat >>confdefs.h <<_ACEOF
45572 #define URANDOM_DEVICE "$dev"
45573 _ACEOF
45574
45575         fi
45576 fi
45577
45578 ol_link_fetch=no
45579 if test $ol_with_fetch != no ; then
45580         ol_LIBS=$LIBS
45581 LIBS="-lfetch -lcom_err $LIBS"
45582 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45583 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45584 if test "${ol_cv_lib_fetch+set}" = set; then
45585   echo $ECHO_N "(cached) $ECHO_C" >&6
45586 else
45587
45588         cat >conftest.$ac_ext <<_ACEOF
45589 /* confdefs.h.  */
45590 _ACEOF
45591 cat confdefs.h >>conftest.$ac_ext
45592 cat >>conftest.$ac_ext <<_ACEOF
45593 /* end confdefs.h.  */
45594
45595 #include <sys/param.h>
45596 #include <stdio.h>
45597 #include <fetch.h>
45598 int
45599 main ()
45600 {
45601 struct url *u = fetchParseURL("file:///");
45602   ;
45603   return 0;
45604 }
45605 _ACEOF
45606 rm -f conftest.$ac_objext conftest$ac_exeext
45607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45608   (eval $ac_link) 2>conftest.er1
45609   ac_status=$?
45610   grep -v '^ *+' conftest.er1 >conftest.err
45611   rm -f conftest.er1
45612   cat conftest.err >&5
45613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45614   (exit $ac_status); } &&
45615          { ac_try='test -z "$ac_c_werror_flag"
45616                          || test ! -s conftest.err'
45617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45618   (eval $ac_try) 2>&5
45619   ac_status=$?
45620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45621   (exit $ac_status); }; } &&
45622          { ac_try='test -s conftest$ac_exeext'
45623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45624   (eval $ac_try) 2>&5
45625   ac_status=$?
45626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45627   (exit $ac_status); }; }; then
45628   ol_cv_lib_fetch=yes
45629 else
45630   echo "$as_me: failed program was:" >&5
45631 sed 's/^/| /' conftest.$ac_ext >&5
45632
45633 ol_cv_lib_fetch=no
45634 fi
45635 rm -f conftest.err conftest.$ac_objext \
45636       conftest$ac_exeext conftest.$ac_ext
45637 fi
45638 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45639 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45640 LIBS=$ol_LIBS
45641 if test $ol_cv_lib_fetch != no ; then
45642         ol_link_fetch="-lfetch -lcom_err"
45643
45644 cat >>confdefs.h <<\_ACEOF
45645 #define HAVE_FETCH 1
45646 _ACEOF
45647
45648 fi
45649
45650
45651         if test $ol_cv_lib_fetch != no ; then
45652                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45653                 ol_link_fetch=freebsd
45654
45655         elif test $ol_with_fetch != auto ; then
45656                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45657 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45658    { (exit 1); exit 1; }; }
45659         fi
45660 fi
45661
45662 if test $ol_enable_crypt != no ; then
45663         save_LIBS="$LIBS"
45664         LIBS="$TLS_LIBS $LIBS"
45665
45666         echo "$as_me:$LINENO: checking for crypt" >&5
45667 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45668 if test "${ac_cv_func_crypt+set}" = set; then
45669   echo $ECHO_N "(cached) $ECHO_C" >&6
45670 else
45671   cat >conftest.$ac_ext <<_ACEOF
45672 /* confdefs.h.  */
45673 _ACEOF
45674 cat confdefs.h >>conftest.$ac_ext
45675 cat >>conftest.$ac_ext <<_ACEOF
45676 /* end confdefs.h.  */
45677 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45679 #define crypt innocuous_crypt
45680
45681 /* System header to define __stub macros and hopefully few prototypes,
45682     which can conflict with char crypt (); below.
45683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45684     <limits.h> exists even on freestanding compilers.  */
45685
45686 #ifdef __STDC__
45687 # include <limits.h>
45688 #else
45689 # include <assert.h>
45690 #endif
45691
45692 #undef crypt
45693
45694 /* Override any gcc2 internal prototype to avoid an error.  */
45695 #ifdef __cplusplus
45696 extern "C"
45697 {
45698 #endif
45699 /* We use char because int might match the return type of a gcc2
45700    builtin and then its argument prototype would still apply.  */
45701 char crypt ();
45702 /* The GNU C library defines this for functions which it implements
45703     to always fail with ENOSYS.  Some functions are actually named
45704     something starting with __ and the normal name is an alias.  */
45705 #if defined (__stub_crypt) || defined (__stub___crypt)
45706 choke me
45707 #else
45708 char (*f) () = crypt;
45709 #endif
45710 #ifdef __cplusplus
45711 }
45712 #endif
45713
45714 int
45715 main ()
45716 {
45717 return f != crypt;
45718   ;
45719   return 0;
45720 }
45721 _ACEOF
45722 rm -f conftest.$ac_objext conftest$ac_exeext
45723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45724   (eval $ac_link) 2>conftest.er1
45725   ac_status=$?
45726   grep -v '^ *+' conftest.er1 >conftest.err
45727   rm -f conftest.er1
45728   cat conftest.err >&5
45729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45730   (exit $ac_status); } &&
45731          { ac_try='test -z "$ac_c_werror_flag"
45732                          || test ! -s conftest.err'
45733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45734   (eval $ac_try) 2>&5
45735   ac_status=$?
45736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45737   (exit $ac_status); }; } &&
45738          { ac_try='test -s conftest$ac_exeext'
45739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45740   (eval $ac_try) 2>&5
45741   ac_status=$?
45742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45743   (exit $ac_status); }; }; then
45744   ac_cv_func_crypt=yes
45745 else
45746   echo "$as_me: failed program was:" >&5
45747 sed 's/^/| /' conftest.$ac_ext >&5
45748
45749 ac_cv_func_crypt=no
45750 fi
45751 rm -f conftest.err conftest.$ac_objext \
45752       conftest$ac_exeext conftest.$ac_ext
45753 fi
45754 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
45755 echo "${ECHO_T}$ac_cv_func_crypt" >&6
45756 if test $ac_cv_func_crypt = yes; then
45757   have_crypt=yes
45758 else
45759
45760                 LIBS="$save_LIBS"
45761                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
45762 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
45763 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
45764   echo $ECHO_N "(cached) $ECHO_C" >&6
45765 else
45766   ac_check_lib_save_LIBS=$LIBS
45767 LIBS="-lcrypt  $LIBS"
45768 cat >conftest.$ac_ext <<_ACEOF
45769 /* confdefs.h.  */
45770 _ACEOF
45771 cat confdefs.h >>conftest.$ac_ext
45772 cat >>conftest.$ac_ext <<_ACEOF
45773 /* end confdefs.h.  */
45774
45775 /* Override any gcc2 internal prototype to avoid an error.  */
45776 #ifdef __cplusplus
45777 extern "C"
45778 #endif
45779 /* We use char because int might match the return type of a gcc2
45780    builtin and then its argument prototype would still apply.  */
45781 char crypt ();
45782 int
45783 main ()
45784 {
45785 crypt ();
45786   ;
45787   return 0;
45788 }
45789 _ACEOF
45790 rm -f conftest.$ac_objext conftest$ac_exeext
45791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45792   (eval $ac_link) 2>conftest.er1
45793   ac_status=$?
45794   grep -v '^ *+' conftest.er1 >conftest.err
45795   rm -f conftest.er1
45796   cat conftest.err >&5
45797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45798   (exit $ac_status); } &&
45799          { ac_try='test -z "$ac_c_werror_flag"
45800                          || test ! -s conftest.err'
45801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45802   (eval $ac_try) 2>&5
45803   ac_status=$?
45804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45805   (exit $ac_status); }; } &&
45806          { ac_try='test -s conftest$ac_exeext'
45807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45808   (eval $ac_try) 2>&5
45809   ac_status=$?
45810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45811   (exit $ac_status); }; }; then
45812   ac_cv_lib_crypt_crypt=yes
45813 else
45814   echo "$as_me: failed program was:" >&5
45815 sed 's/^/| /' conftest.$ac_ext >&5
45816
45817 ac_cv_lib_crypt_crypt=no
45818 fi
45819 rm -f conftest.err conftest.$ac_objext \
45820       conftest$ac_exeext conftest.$ac_ext
45821 LIBS=$ac_check_lib_save_LIBS
45822 fi
45823 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
45824 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
45825 if test $ac_cv_lib_crypt_crypt = yes; then
45826   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
45827                         have_crypt=yes
45828 else
45829   have_crypt=no
45830 fi
45831
45832 fi
45833
45834
45835         LIBS="$save_LIBS"
45836
45837         if test $have_crypt = yes ; then
45838
45839 cat >>confdefs.h <<\_ACEOF
45840 #define HAVE_CRYPT 1
45841 _ACEOF
45842
45843         else
45844                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
45845 echo "$as_me: WARNING: could not find crypt" >&2;}
45846                 if test $ol_enable_crypt = yes ; then
45847                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
45848 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
45849    { (exit 1); exit 1; }; }
45850                 fi
45851
45852                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
45853 echo "$as_me: WARNING: disabling crypt support" >&2;}
45854                 ol_enable_crypt=no
45855         fi
45856 fi
45857
45858 if test $ol_enable_proctitle != no ; then
45859         echo "$as_me:$LINENO: checking for setproctitle" >&5
45860 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
45861 if test "${ac_cv_func_setproctitle+set}" = set; then
45862   echo $ECHO_N "(cached) $ECHO_C" >&6
45863 else
45864   cat >conftest.$ac_ext <<_ACEOF
45865 /* confdefs.h.  */
45866 _ACEOF
45867 cat confdefs.h >>conftest.$ac_ext
45868 cat >>conftest.$ac_ext <<_ACEOF
45869 /* end confdefs.h.  */
45870 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
45871    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45872 #define setproctitle innocuous_setproctitle
45873
45874 /* System header to define __stub macros and hopefully few prototypes,
45875     which can conflict with char setproctitle (); below.
45876     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45877     <limits.h> exists even on freestanding compilers.  */
45878
45879 #ifdef __STDC__
45880 # include <limits.h>
45881 #else
45882 # include <assert.h>
45883 #endif
45884
45885 #undef setproctitle
45886
45887 /* Override any gcc2 internal prototype to avoid an error.  */
45888 #ifdef __cplusplus
45889 extern "C"
45890 {
45891 #endif
45892 /* We use char because int might match the return type of a gcc2
45893    builtin and then its argument prototype would still apply.  */
45894 char setproctitle ();
45895 /* The GNU C library defines this for functions which it implements
45896     to always fail with ENOSYS.  Some functions are actually named
45897     something starting with __ and the normal name is an alias.  */
45898 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
45899 choke me
45900 #else
45901 char (*f) () = setproctitle;
45902 #endif
45903 #ifdef __cplusplus
45904 }
45905 #endif
45906
45907 int
45908 main ()
45909 {
45910 return f != setproctitle;
45911   ;
45912   return 0;
45913 }
45914 _ACEOF
45915 rm -f conftest.$ac_objext conftest$ac_exeext
45916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45917   (eval $ac_link) 2>conftest.er1
45918   ac_status=$?
45919   grep -v '^ *+' conftest.er1 >conftest.err
45920   rm -f conftest.er1
45921   cat conftest.err >&5
45922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45923   (exit $ac_status); } &&
45924          { ac_try='test -z "$ac_c_werror_flag"
45925                          || test ! -s conftest.err'
45926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45927   (eval $ac_try) 2>&5
45928   ac_status=$?
45929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45930   (exit $ac_status); }; } &&
45931          { ac_try='test -s conftest$ac_exeext'
45932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45933   (eval $ac_try) 2>&5
45934   ac_status=$?
45935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45936   (exit $ac_status); }; }; then
45937   ac_cv_func_setproctitle=yes
45938 else
45939   echo "$as_me: failed program was:" >&5
45940 sed 's/^/| /' conftest.$ac_ext >&5
45941
45942 ac_cv_func_setproctitle=no
45943 fi
45944 rm -f conftest.err conftest.$ac_objext \
45945       conftest$ac_exeext conftest.$ac_ext
45946 fi
45947 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
45948 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
45949 if test $ac_cv_func_setproctitle = yes; then
45950   have_setproctitle=yes
45951 else
45952
45953                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
45954 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
45955 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
45956   echo $ECHO_N "(cached) $ECHO_C" >&6
45957 else
45958   ac_check_lib_save_LIBS=$LIBS
45959 LIBS="-lutil  $LIBS"
45960 cat >conftest.$ac_ext <<_ACEOF
45961 /* confdefs.h.  */
45962 _ACEOF
45963 cat confdefs.h >>conftest.$ac_ext
45964 cat >>conftest.$ac_ext <<_ACEOF
45965 /* end confdefs.h.  */
45966
45967 /* Override any gcc2 internal prototype to avoid an error.  */
45968 #ifdef __cplusplus
45969 extern "C"
45970 #endif
45971 /* We use char because int might match the return type of a gcc2
45972    builtin and then its argument prototype would still apply.  */
45973 char setproctitle ();
45974 int
45975 main ()
45976 {
45977 setproctitle ();
45978   ;
45979   return 0;
45980 }
45981 _ACEOF
45982 rm -f conftest.$ac_objext conftest$ac_exeext
45983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45984   (eval $ac_link) 2>conftest.er1
45985   ac_status=$?
45986   grep -v '^ *+' conftest.er1 >conftest.err
45987   rm -f conftest.er1
45988   cat conftest.err >&5
45989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45990   (exit $ac_status); } &&
45991          { ac_try='test -z "$ac_c_werror_flag"
45992                          || test ! -s conftest.err'
45993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45994   (eval $ac_try) 2>&5
45995   ac_status=$?
45996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45997   (exit $ac_status); }; } &&
45998          { ac_try='test -s conftest$ac_exeext'
45999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46000   (eval $ac_try) 2>&5
46001   ac_status=$?
46002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46003   (exit $ac_status); }; }; then
46004   ac_cv_lib_util_setproctitle=yes
46005 else
46006   echo "$as_me: failed program was:" >&5
46007 sed 's/^/| /' conftest.$ac_ext >&5
46008
46009 ac_cv_lib_util_setproctitle=no
46010 fi
46011 rm -f conftest.err conftest.$ac_objext \
46012       conftest$ac_exeext conftest.$ac_ext
46013 LIBS=$ac_check_lib_save_LIBS
46014 fi
46015 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
46016 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
46017 if test $ac_cv_lib_util_setproctitle = yes; then
46018   have_setproctitle=yes
46019                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
46020 else
46021   have_setproctitle=no
46022                         case $LIBOBJS in
46023     "setproctitle.$ac_objext"   | \
46024   *" setproctitle.$ac_objext"   | \
46025     "setproctitle.$ac_objext "* | \
46026   *" setproctitle.$ac_objext "* ) ;;
46027   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
46028 esac
46029
46030                         LIBSRCS="$LIBSRCS setproctitle.c"
46031 fi
46032
46033 fi
46034
46035
46036         if test $have_setproctitle = yes ; then
46037
46038 cat >>confdefs.h <<\_ACEOF
46039 #define HAVE_SETPROCTITLE 1
46040 _ACEOF
46041
46042         fi
46043 fi
46044
46045 if test $ol_enable_slp != no ; then
46046
46047 for ac_header in slp.h
46048 do
46049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46051   echo "$as_me:$LINENO: checking for $ac_header" >&5
46052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46054   echo $ECHO_N "(cached) $ECHO_C" >&6
46055 fi
46056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46058 else
46059   # Is the header compilable?
46060 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46062 cat >conftest.$ac_ext <<_ACEOF
46063 /* confdefs.h.  */
46064 _ACEOF
46065 cat confdefs.h >>conftest.$ac_ext
46066 cat >>conftest.$ac_ext <<_ACEOF
46067 /* end confdefs.h.  */
46068 $ac_includes_default
46069 #include <$ac_header>
46070 _ACEOF
46071 rm -f conftest.$ac_objext
46072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46073   (eval $ac_compile) 2>conftest.er1
46074   ac_status=$?
46075   grep -v '^ *+' conftest.er1 >conftest.err
46076   rm -f conftest.er1
46077   cat conftest.err >&5
46078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46079   (exit $ac_status); } &&
46080          { ac_try='test -z "$ac_c_werror_flag"
46081                          || test ! -s conftest.err'
46082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46083   (eval $ac_try) 2>&5
46084   ac_status=$?
46085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46086   (exit $ac_status); }; } &&
46087          { ac_try='test -s conftest.$ac_objext'
46088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46089   (eval $ac_try) 2>&5
46090   ac_status=$?
46091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46092   (exit $ac_status); }; }; then
46093   ac_header_compiler=yes
46094 else
46095   echo "$as_me: failed program was:" >&5
46096 sed 's/^/| /' conftest.$ac_ext >&5
46097
46098 ac_header_compiler=no
46099 fi
46100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46102 echo "${ECHO_T}$ac_header_compiler" >&6
46103
46104 # Is the header present?
46105 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46107 cat >conftest.$ac_ext <<_ACEOF
46108 /* confdefs.h.  */
46109 _ACEOF
46110 cat confdefs.h >>conftest.$ac_ext
46111 cat >>conftest.$ac_ext <<_ACEOF
46112 /* end confdefs.h.  */
46113 #include <$ac_header>
46114 _ACEOF
46115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46116   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46117   ac_status=$?
46118   grep -v '^ *+' conftest.er1 >conftest.err
46119   rm -f conftest.er1
46120   cat conftest.err >&5
46121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46122   (exit $ac_status); } >/dev/null; then
46123   if test -s conftest.err; then
46124     ac_cpp_err=$ac_c_preproc_warn_flag
46125     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46126   else
46127     ac_cpp_err=
46128   fi
46129 else
46130   ac_cpp_err=yes
46131 fi
46132 if test -z "$ac_cpp_err"; then
46133   ac_header_preproc=yes
46134 else
46135   echo "$as_me: failed program was:" >&5
46136 sed 's/^/| /' conftest.$ac_ext >&5
46137
46138   ac_header_preproc=no
46139 fi
46140 rm -f conftest.err conftest.$ac_ext
46141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46142 echo "${ECHO_T}$ac_header_preproc" >&6
46143
46144 # So?  What about this header?
46145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46146   yes:no: )
46147     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46151     ac_header_preproc=yes
46152     ;;
46153   no:yes:* )
46154     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46156     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46157 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46158     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46160     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46161 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46162     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46164     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46166     (
46167       cat <<\_ASBOX
46168 ## ------------------------------------------ ##
46169 ## Report this to the AC_PACKAGE_NAME lists.  ##
46170 ## ------------------------------------------ ##
46171 _ASBOX
46172     ) |
46173       sed "s/^/$as_me: WARNING:     /" >&2
46174     ;;
46175 esac
46176 echo "$as_me:$LINENO: checking for $ac_header" >&5
46177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46179   echo $ECHO_N "(cached) $ECHO_C" >&6
46180 else
46181   eval "$as_ac_Header=\$ac_header_preproc"
46182 fi
46183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46185
46186 fi
46187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46188   cat >>confdefs.h <<_ACEOF
46189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46190 _ACEOF
46191
46192 fi
46193
46194 done
46195
46196
46197         if test $ac_cv_header_slp_h = yes ; then
46198                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46199 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46200 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46201   echo $ECHO_N "(cached) $ECHO_C" >&6
46202 else
46203   ac_check_lib_save_LIBS=$LIBS
46204 LIBS="-lslp  $LIBS"
46205 cat >conftest.$ac_ext <<_ACEOF
46206 /* confdefs.h.  */
46207 _ACEOF
46208 cat confdefs.h >>conftest.$ac_ext
46209 cat >>conftest.$ac_ext <<_ACEOF
46210 /* end confdefs.h.  */
46211
46212 /* Override any gcc2 internal prototype to avoid an error.  */
46213 #ifdef __cplusplus
46214 extern "C"
46215 #endif
46216 /* We use char because int might match the return type of a gcc2
46217    builtin and then its argument prototype would still apply.  */
46218 char SLPOpen ();
46219 int
46220 main ()
46221 {
46222 SLPOpen ();
46223   ;
46224   return 0;
46225 }
46226 _ACEOF
46227 rm -f conftest.$ac_objext conftest$ac_exeext
46228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46229   (eval $ac_link) 2>conftest.er1
46230   ac_status=$?
46231   grep -v '^ *+' conftest.er1 >conftest.err
46232   rm -f conftest.er1
46233   cat conftest.err >&5
46234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46235   (exit $ac_status); } &&
46236          { ac_try='test -z "$ac_c_werror_flag"
46237                          || test ! -s conftest.err'
46238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46239   (eval $ac_try) 2>&5
46240   ac_status=$?
46241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46242   (exit $ac_status); }; } &&
46243          { ac_try='test -s conftest$ac_exeext'
46244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46245   (eval $ac_try) 2>&5
46246   ac_status=$?
46247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46248   (exit $ac_status); }; }; then
46249   ac_cv_lib_slp_SLPOpen=yes
46250 else
46251   echo "$as_me: failed program was:" >&5
46252 sed 's/^/| /' conftest.$ac_ext >&5
46253
46254 ac_cv_lib_slp_SLPOpen=no
46255 fi
46256 rm -f conftest.err conftest.$ac_objext \
46257       conftest$ac_exeext conftest.$ac_ext
46258 LIBS=$ac_check_lib_save_LIBS
46259 fi
46260 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46261 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46262 if test $ac_cv_lib_slp_SLPOpen = yes; then
46263   have_slp=yes
46264 else
46265   have_slp=no
46266 fi
46267
46268                 if test $have_slp = yes ; then
46269
46270 cat >>confdefs.h <<\_ACEOF
46271 #define HAVE_SLP 1
46272 _ACEOF
46273
46274                         SLAPD_SLP_LIBS=-lslp
46275                 fi
46276
46277         elif test $ol_enable_slp = yes ; then
46278                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46279 echo "$as_me: error: SLP not found" >&2;}
46280    { (exit 1); exit 1; }; }
46281         fi
46282 fi
46283
46284 if test "$ol_with_multiple_precision" != "no" ; then
46285         ol_have_bignum=no
46286         ol_have_gmp=no
46287
46288
46289
46290 for ac_header in openssl/bn.h bn.h
46291 do
46292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46294   echo "$as_me:$LINENO: checking for $ac_header" >&5
46295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46297   echo $ECHO_N "(cached) $ECHO_C" >&6
46298 fi
46299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46301 else
46302   # Is the header compilable?
46303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46305 cat >conftest.$ac_ext <<_ACEOF
46306 /* confdefs.h.  */
46307 _ACEOF
46308 cat confdefs.h >>conftest.$ac_ext
46309 cat >>conftest.$ac_ext <<_ACEOF
46310 /* end confdefs.h.  */
46311 $ac_includes_default
46312 #include <$ac_header>
46313 _ACEOF
46314 rm -f conftest.$ac_objext
46315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46316   (eval $ac_compile) 2>conftest.er1
46317   ac_status=$?
46318   grep -v '^ *+' conftest.er1 >conftest.err
46319   rm -f conftest.er1
46320   cat conftest.err >&5
46321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46322   (exit $ac_status); } &&
46323          { ac_try='test -z "$ac_c_werror_flag"
46324                          || test ! -s conftest.err'
46325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46326   (eval $ac_try) 2>&5
46327   ac_status=$?
46328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46329   (exit $ac_status); }; } &&
46330          { ac_try='test -s conftest.$ac_objext'
46331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46332   (eval $ac_try) 2>&5
46333   ac_status=$?
46334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46335   (exit $ac_status); }; }; then
46336   ac_header_compiler=yes
46337 else
46338   echo "$as_me: failed program was:" >&5
46339 sed 's/^/| /' conftest.$ac_ext >&5
46340
46341 ac_header_compiler=no
46342 fi
46343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46345 echo "${ECHO_T}$ac_header_compiler" >&6
46346
46347 # Is the header present?
46348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46350 cat >conftest.$ac_ext <<_ACEOF
46351 /* confdefs.h.  */
46352 _ACEOF
46353 cat confdefs.h >>conftest.$ac_ext
46354 cat >>conftest.$ac_ext <<_ACEOF
46355 /* end confdefs.h.  */
46356 #include <$ac_header>
46357 _ACEOF
46358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46360   ac_status=$?
46361   grep -v '^ *+' conftest.er1 >conftest.err
46362   rm -f conftest.er1
46363   cat conftest.err >&5
46364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46365   (exit $ac_status); } >/dev/null; then
46366   if test -s conftest.err; then
46367     ac_cpp_err=$ac_c_preproc_warn_flag
46368     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46369   else
46370     ac_cpp_err=
46371   fi
46372 else
46373   ac_cpp_err=yes
46374 fi
46375 if test -z "$ac_cpp_err"; then
46376   ac_header_preproc=yes
46377 else
46378   echo "$as_me: failed program was:" >&5
46379 sed 's/^/| /' conftest.$ac_ext >&5
46380
46381   ac_header_preproc=no
46382 fi
46383 rm -f conftest.err conftest.$ac_ext
46384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46385 echo "${ECHO_T}$ac_header_preproc" >&6
46386
46387 # So?  What about this header?
46388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46389   yes:no: )
46390     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46392     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46394     ac_header_preproc=yes
46395     ;;
46396   no:yes:* )
46397     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46399     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46400 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46401     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46403     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46404 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46405     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46407     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46409     (
46410       cat <<\_ASBOX
46411 ## ------------------------------------------ ##
46412 ## Report this to the AC_PACKAGE_NAME lists.  ##
46413 ## ------------------------------------------ ##
46414 _ASBOX
46415     ) |
46416       sed "s/^/$as_me: WARNING:     /" >&2
46417     ;;
46418 esac
46419 echo "$as_me:$LINENO: checking for $ac_header" >&5
46420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46422   echo $ECHO_N "(cached) $ECHO_C" >&6
46423 else
46424   eval "$as_ac_Header=\$ac_header_preproc"
46425 fi
46426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46428
46429 fi
46430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46431   cat >>confdefs.h <<_ACEOF
46432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46433 _ACEOF
46434
46435 fi
46436
46437 done
46438
46439
46440
46441 for ac_header in openssl/crypto.h crypto.h
46442 do
46443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46445   echo "$as_me:$LINENO: checking for $ac_header" >&5
46446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46448   echo $ECHO_N "(cached) $ECHO_C" >&6
46449 fi
46450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46452 else
46453   # Is the header compilable?
46454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46456 cat >conftest.$ac_ext <<_ACEOF
46457 /* confdefs.h.  */
46458 _ACEOF
46459 cat confdefs.h >>conftest.$ac_ext
46460 cat >>conftest.$ac_ext <<_ACEOF
46461 /* end confdefs.h.  */
46462 $ac_includes_default
46463 #include <$ac_header>
46464 _ACEOF
46465 rm -f conftest.$ac_objext
46466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46467   (eval $ac_compile) 2>conftest.er1
46468   ac_status=$?
46469   grep -v '^ *+' conftest.er1 >conftest.err
46470   rm -f conftest.er1
46471   cat conftest.err >&5
46472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46473   (exit $ac_status); } &&
46474          { ac_try='test -z "$ac_c_werror_flag"
46475                          || test ! -s conftest.err'
46476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46477   (eval $ac_try) 2>&5
46478   ac_status=$?
46479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46480   (exit $ac_status); }; } &&
46481          { ac_try='test -s conftest.$ac_objext'
46482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46483   (eval $ac_try) 2>&5
46484   ac_status=$?
46485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46486   (exit $ac_status); }; }; then
46487   ac_header_compiler=yes
46488 else
46489   echo "$as_me: failed program was:" >&5
46490 sed 's/^/| /' conftest.$ac_ext >&5
46491
46492 ac_header_compiler=no
46493 fi
46494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46496 echo "${ECHO_T}$ac_header_compiler" >&6
46497
46498 # Is the header present?
46499 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46501 cat >conftest.$ac_ext <<_ACEOF
46502 /* confdefs.h.  */
46503 _ACEOF
46504 cat confdefs.h >>conftest.$ac_ext
46505 cat >>conftest.$ac_ext <<_ACEOF
46506 /* end confdefs.h.  */
46507 #include <$ac_header>
46508 _ACEOF
46509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46510   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46511   ac_status=$?
46512   grep -v '^ *+' conftest.er1 >conftest.err
46513   rm -f conftest.er1
46514   cat conftest.err >&5
46515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46516   (exit $ac_status); } >/dev/null; then
46517   if test -s conftest.err; then
46518     ac_cpp_err=$ac_c_preproc_warn_flag
46519     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46520   else
46521     ac_cpp_err=
46522   fi
46523 else
46524   ac_cpp_err=yes
46525 fi
46526 if test -z "$ac_cpp_err"; then
46527   ac_header_preproc=yes
46528 else
46529   echo "$as_me: failed program was:" >&5
46530 sed 's/^/| /' conftest.$ac_ext >&5
46531
46532   ac_header_preproc=no
46533 fi
46534 rm -f conftest.err conftest.$ac_ext
46535 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46536 echo "${ECHO_T}$ac_header_preproc" >&6
46537
46538 # So?  What about this header?
46539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46540   yes:no: )
46541     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46543     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46545     ac_header_preproc=yes
46546     ;;
46547   no:yes:* )
46548     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46550     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46551 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46552     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46554     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46555 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46556     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46558     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46560     (
46561       cat <<\_ASBOX
46562 ## ------------------------------------------ ##
46563 ## Report this to the AC_PACKAGE_NAME lists.  ##
46564 ## ------------------------------------------ ##
46565 _ASBOX
46566     ) |
46567       sed "s/^/$as_me: WARNING:     /" >&2
46568     ;;
46569 esac
46570 echo "$as_me:$LINENO: checking for $ac_header" >&5
46571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46573   echo $ECHO_N "(cached) $ECHO_C" >&6
46574 else
46575   eval "$as_ac_Header=\$ac_header_preproc"
46576 fi
46577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46579
46580 fi
46581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46582   cat >>confdefs.h <<_ACEOF
46583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46584 _ACEOF
46585
46586 fi
46587
46588 done
46589
46590
46591 for ac_header in gmp.h
46592 do
46593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46595   echo "$as_me:$LINENO: checking for $ac_header" >&5
46596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46598   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
46603   # Is the header compilable?
46604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46606 cat >conftest.$ac_ext <<_ACEOF
46607 /* confdefs.h.  */
46608 _ACEOF
46609 cat confdefs.h >>conftest.$ac_ext
46610 cat >>conftest.$ac_ext <<_ACEOF
46611 /* end confdefs.h.  */
46612 $ac_includes_default
46613 #include <$ac_header>
46614 _ACEOF
46615 rm -f conftest.$ac_objext
46616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46617   (eval $ac_compile) 2>conftest.er1
46618   ac_status=$?
46619   grep -v '^ *+' conftest.er1 >conftest.err
46620   rm -f conftest.er1
46621   cat conftest.err >&5
46622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46623   (exit $ac_status); } &&
46624          { ac_try='test -z "$ac_c_werror_flag"
46625                          || test ! -s conftest.err'
46626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46627   (eval $ac_try) 2>&5
46628   ac_status=$?
46629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46630   (exit $ac_status); }; } &&
46631          { ac_try='test -s conftest.$ac_objext'
46632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46633   (eval $ac_try) 2>&5
46634   ac_status=$?
46635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46636   (exit $ac_status); }; }; then
46637   ac_header_compiler=yes
46638 else
46639   echo "$as_me: failed program was:" >&5
46640 sed 's/^/| /' conftest.$ac_ext >&5
46641
46642 ac_header_compiler=no
46643 fi
46644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46646 echo "${ECHO_T}$ac_header_compiler" >&6
46647
46648 # Is the header present?
46649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46651 cat >conftest.$ac_ext <<_ACEOF
46652 /* confdefs.h.  */
46653 _ACEOF
46654 cat confdefs.h >>conftest.$ac_ext
46655 cat >>conftest.$ac_ext <<_ACEOF
46656 /* end confdefs.h.  */
46657 #include <$ac_header>
46658 _ACEOF
46659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46660   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46661   ac_status=$?
46662   grep -v '^ *+' conftest.er1 >conftest.err
46663   rm -f conftest.er1
46664   cat conftest.err >&5
46665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46666   (exit $ac_status); } >/dev/null; then
46667   if test -s conftest.err; then
46668     ac_cpp_err=$ac_c_preproc_warn_flag
46669     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46670   else
46671     ac_cpp_err=
46672   fi
46673 else
46674   ac_cpp_err=yes
46675 fi
46676 if test -z "$ac_cpp_err"; then
46677   ac_header_preproc=yes
46678 else
46679   echo "$as_me: failed program was:" >&5
46680 sed 's/^/| /' conftest.$ac_ext >&5
46681
46682   ac_header_preproc=no
46683 fi
46684 rm -f conftest.err conftest.$ac_ext
46685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46686 echo "${ECHO_T}$ac_header_preproc" >&6
46687
46688 # So?  What about this header?
46689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46690   yes:no: )
46691     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46694 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46695     ac_header_preproc=yes
46696     ;;
46697   no:yes:* )
46698     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46700     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46701 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46702     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46703 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46704     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46705 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46706     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46708     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46709 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46710     (
46711       cat <<\_ASBOX
46712 ## ------------------------------------------ ##
46713 ## Report this to the AC_PACKAGE_NAME lists.  ##
46714 ## ------------------------------------------ ##
46715 _ASBOX
46716     ) |
46717       sed "s/^/$as_me: WARNING:     /" >&2
46718     ;;
46719 esac
46720 echo "$as_me:$LINENO: checking for $ac_header" >&5
46721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46723   echo $ECHO_N "(cached) $ECHO_C" >&6
46724 else
46725   eval "$as_ac_Header=\$ac_header_preproc"
46726 fi
46727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46729
46730 fi
46731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46732   cat >>confdefs.h <<_ACEOF
46733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46734 _ACEOF
46735
46736 fi
46737
46738 done
46739
46740
46741         if test "$ol_with_tls" = "found" ; then
46742                 ol_have_bn_h=no
46743                 ol_have_crypto_h=no
46744
46745                 if test "$ac_cv_header_openssl_bn_h" = "yes" \
46746                                 -o "$ac_cv_header_bn_h" = "yes" ; then
46747                         ol_have_bn_h=yes
46748                 fi
46749
46750                 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
46751                                 -o "$ac_cv_header_crypto_h" = "yes" ; then
46752                         ol_have_crypto_h=yes
46753                 fi
46754
46755                 if test "$ol_have_bn_h" = "yes" \
46756                                 -a "$ol_have_crypto_h" = "yes" ; then
46757                         ol_have_bignum=yes
46758                 fi
46759         fi
46760
46761         if test $ac_cv_header_gmp_h = yes ; then
46762                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
46763 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
46764 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
46765   echo $ECHO_N "(cached) $ECHO_C" >&6
46766 else
46767   ac_check_lib_save_LIBS=$LIBS
46768 LIBS="-lgmp  $LIBS"
46769 cat >conftest.$ac_ext <<_ACEOF
46770 /* confdefs.h.  */
46771 _ACEOF
46772 cat confdefs.h >>conftest.$ac_ext
46773 cat >>conftest.$ac_ext <<_ACEOF
46774 /* end confdefs.h.  */
46775
46776 /* Override any gcc2 internal prototype to avoid an error.  */
46777 #ifdef __cplusplus
46778 extern "C"
46779 #endif
46780 /* We use char because int might match the return type of a gcc2
46781    builtin and then its argument prototype would still apply.  */
46782 char __gmpz_add_ui ();
46783 int
46784 main ()
46785 {
46786 __gmpz_add_ui ();
46787   ;
46788   return 0;
46789 }
46790 _ACEOF
46791 rm -f conftest.$ac_objext conftest$ac_exeext
46792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46793   (eval $ac_link) 2>conftest.er1
46794   ac_status=$?
46795   grep -v '^ *+' conftest.er1 >conftest.err
46796   rm -f conftest.er1
46797   cat conftest.err >&5
46798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46799   (exit $ac_status); } &&
46800          { ac_try='test -z "$ac_c_werror_flag"
46801                          || test ! -s conftest.err'
46802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46803   (eval $ac_try) 2>&5
46804   ac_status=$?
46805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46806   (exit $ac_status); }; } &&
46807          { ac_try='test -s conftest$ac_exeext'
46808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46809   (eval $ac_try) 2>&5
46810   ac_status=$?
46811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46812   (exit $ac_status); }; }; then
46813   ac_cv_lib_gmp___gmpz_add_ui=yes
46814 else
46815   echo "$as_me: failed program was:" >&5
46816 sed 's/^/| /' conftest.$ac_ext >&5
46817
46818 ac_cv_lib_gmp___gmpz_add_ui=no
46819 fi
46820 rm -f conftest.err conftest.$ac_objext \
46821       conftest$ac_exeext conftest.$ac_ext
46822 LIBS=$ac_check_lib_save_LIBS
46823 fi
46824 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
46825 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
46826 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
46827   have_gmp=yes
46828 else
46829   have_gmp=no
46830 fi
46831
46832                 if test $have_gmp = yes ; then
46833                         ol_have_gmp=yes
46834                 fi
46835         fi
46836
46837         echo "$as_me:$LINENO: checking for multiple precision support" >&5
46838 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
46839
46840         ol_mp_support="none"
46841         case "$ol_with_multiple_precision" in
46842         auto)
46843                                                                                 if test "$ol_have_bignum" = "yes" ; then
46844                         ol_mp_support="bignum"
46845                 else
46846                         if test "$ol_have_gmp" = "yes" ; then
46847                                 ol_mp_support="gmp"
46848                         fi
46849                 fi
46850                 ;;
46851         bignum)
46852                 if test "$ol_have_bignum" != "yes" ; then
46853                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
46854 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
46855    { (exit 1); exit 1; }; }
46856                 fi
46857                 ol_mp_support="bignum"
46858                 ;;
46859         gmp)
46860                 if test "$ol_have_gmp" != "yes" ; then
46861                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
46862 echo "$as_me: error: GMP not available" >&2;}
46863    { (exit 1); exit 1; }; }
46864                 fi
46865                 ol_mp_support="gmp"
46866                 ;;
46867         yes)
46868                 if test "$ol_have_bignum" = "yes" ; then
46869                         ol_mp_support="bignum"
46870                 elif test "$ol_have_gmp" = "yes" ; then
46871                         ol_mp_support="gmp"
46872                 else
46873                         { { echo "$as_me:$LINENO: error: not available" >&5
46874 echo "$as_me: error: not available" >&2;}
46875    { (exit 1); exit 1; }; }
46876                 fi
46877                 ;;
46878         esac
46879
46880         case "$ol_mp_support" in
46881         bignum)
46882
46883 cat >>confdefs.h <<\_ACEOF
46884 #define HAVE_BIGNUM 1
46885 _ACEOF
46886
46887                 ;;
46888         gmp)
46889
46890 cat >>confdefs.h <<\_ACEOF
46891 #define HAVE_GMP 1
46892 _ACEOF
46893
46894                 SLAPD_GMP_LIBS=-lgmp
46895                 ;;
46896         none)
46897                 ;;
46898         esac
46899
46900         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
46901 echo "${ECHO_T}$ol_mp_support" >&6
46902 fi
46903
46904
46905 echo "$as_me:$LINENO: checking long long" >&5
46906 echo $ECHO_N "checking long long... $ECHO_C" >&6
46907 if test "${ol_cv_type_long_long+set}" = set; then
46908   echo $ECHO_N "(cached) $ECHO_C" >&6
46909 else
46910
46911         cat >conftest.$ac_ext <<_ACEOF
46912 /* confdefs.h.  */
46913 _ACEOF
46914 cat confdefs.h >>conftest.$ac_ext
46915 cat >>conftest.$ac_ext <<_ACEOF
46916 /* end confdefs.h.  */
46917
46918 int
46919 main ()
46920 {
46921 long long x;
46922   ;
46923   return 0;
46924 }
46925 _ACEOF
46926 rm -f conftest.$ac_objext
46927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46928   (eval $ac_compile) 2>conftest.er1
46929   ac_status=$?
46930   grep -v '^ *+' conftest.er1 >conftest.err
46931   rm -f conftest.er1
46932   cat conftest.err >&5
46933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46934   (exit $ac_status); } &&
46935          { ac_try='test -z "$ac_c_werror_flag"
46936                          || test ! -s conftest.err'
46937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46938   (eval $ac_try) 2>&5
46939   ac_status=$?
46940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46941   (exit $ac_status); }; } &&
46942          { ac_try='test -s conftest.$ac_objext'
46943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46944   (eval $ac_try) 2>&5
46945   ac_status=$?
46946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46947   (exit $ac_status); }; }; then
46948   ol_cv_type_long_long=yes
46949 else
46950   echo "$as_me: failed program was:" >&5
46951 sed 's/^/| /' conftest.$ac_ext >&5
46952
46953 ol_cv_type_long_long=no
46954 fi
46955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46956 fi
46957 echo "$as_me:$LINENO: result: $ol_cv_type_long_long" >&5
46958 echo "${ECHO_T}$ol_cv_type_long_long" >&6
46959 if test $ol_cv_type_long_long = yes; then
46960
46961 cat >>confdefs.h <<\_ACEOF
46962 #define HAVE_LONG_LONG 1
46963 _ACEOF
46964
46965 fi
46966
46967 echo "$as_me:$LINENO: checking for mode_t" >&5
46968 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
46969 if test "${ac_cv_type_mode_t+set}" = set; then
46970   echo $ECHO_N "(cached) $ECHO_C" >&6
46971 else
46972   cat >conftest.$ac_ext <<_ACEOF
46973 /* confdefs.h.  */
46974 _ACEOF
46975 cat confdefs.h >>conftest.$ac_ext
46976 cat >>conftest.$ac_ext <<_ACEOF
46977 /* end confdefs.h.  */
46978 $ac_includes_default
46979 int
46980 main ()
46981 {
46982 if ((mode_t *) 0)
46983   return 0;
46984 if (sizeof (mode_t))
46985   return 0;
46986   ;
46987   return 0;
46988 }
46989 _ACEOF
46990 rm -f conftest.$ac_objext
46991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46992   (eval $ac_compile) 2>conftest.er1
46993   ac_status=$?
46994   grep -v '^ *+' conftest.er1 >conftest.err
46995   rm -f conftest.er1
46996   cat conftest.err >&5
46997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46998   (exit $ac_status); } &&
46999          { ac_try='test -z "$ac_c_werror_flag"
47000                          || test ! -s conftest.err'
47001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47002   (eval $ac_try) 2>&5
47003   ac_status=$?
47004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47005   (exit $ac_status); }; } &&
47006          { ac_try='test -s conftest.$ac_objext'
47007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47008   (eval $ac_try) 2>&5
47009   ac_status=$?
47010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47011   (exit $ac_status); }; }; then
47012   ac_cv_type_mode_t=yes
47013 else
47014   echo "$as_me: failed program was:" >&5
47015 sed 's/^/| /' conftest.$ac_ext >&5
47016
47017 ac_cv_type_mode_t=no
47018 fi
47019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47020 fi
47021 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
47022 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
47023 if test $ac_cv_type_mode_t = yes; then
47024   :
47025 else
47026
47027 cat >>confdefs.h <<_ACEOF
47028 #define mode_t int
47029 _ACEOF
47030
47031 fi
47032
47033 echo "$as_me:$LINENO: checking for off_t" >&5
47034 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47035 if test "${ac_cv_type_off_t+set}" = set; then
47036   echo $ECHO_N "(cached) $ECHO_C" >&6
47037 else
47038   cat >conftest.$ac_ext <<_ACEOF
47039 /* confdefs.h.  */
47040 _ACEOF
47041 cat confdefs.h >>conftest.$ac_ext
47042 cat >>conftest.$ac_ext <<_ACEOF
47043 /* end confdefs.h.  */
47044 $ac_includes_default
47045 int
47046 main ()
47047 {
47048 if ((off_t *) 0)
47049   return 0;
47050 if (sizeof (off_t))
47051   return 0;
47052   ;
47053   return 0;
47054 }
47055 _ACEOF
47056 rm -f conftest.$ac_objext
47057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47058   (eval $ac_compile) 2>conftest.er1
47059   ac_status=$?
47060   grep -v '^ *+' conftest.er1 >conftest.err
47061   rm -f conftest.er1
47062   cat conftest.err >&5
47063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47064   (exit $ac_status); } &&
47065          { ac_try='test -z "$ac_c_werror_flag"
47066                          || test ! -s conftest.err'
47067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47068   (eval $ac_try) 2>&5
47069   ac_status=$?
47070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47071   (exit $ac_status); }; } &&
47072          { ac_try='test -s conftest.$ac_objext'
47073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47074   (eval $ac_try) 2>&5
47075   ac_status=$?
47076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47077   (exit $ac_status); }; }; then
47078   ac_cv_type_off_t=yes
47079 else
47080   echo "$as_me: failed program was:" >&5
47081 sed 's/^/| /' conftest.$ac_ext >&5
47082
47083 ac_cv_type_off_t=no
47084 fi
47085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47086 fi
47087 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47088 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47089 if test $ac_cv_type_off_t = yes; then
47090   :
47091 else
47092
47093 cat >>confdefs.h <<_ACEOF
47094 #define off_t long
47095 _ACEOF
47096
47097 fi
47098
47099 echo "$as_me:$LINENO: checking for pid_t" >&5
47100 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47101 if test "${ac_cv_type_pid_t+set}" = set; then
47102   echo $ECHO_N "(cached) $ECHO_C" >&6
47103 else
47104   cat >conftest.$ac_ext <<_ACEOF
47105 /* confdefs.h.  */
47106 _ACEOF
47107 cat confdefs.h >>conftest.$ac_ext
47108 cat >>conftest.$ac_ext <<_ACEOF
47109 /* end confdefs.h.  */
47110 $ac_includes_default
47111 int
47112 main ()
47113 {
47114 if ((pid_t *) 0)
47115   return 0;
47116 if (sizeof (pid_t))
47117   return 0;
47118   ;
47119   return 0;
47120 }
47121 _ACEOF
47122 rm -f conftest.$ac_objext
47123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47124   (eval $ac_compile) 2>conftest.er1
47125   ac_status=$?
47126   grep -v '^ *+' conftest.er1 >conftest.err
47127   rm -f conftest.er1
47128   cat conftest.err >&5
47129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47130   (exit $ac_status); } &&
47131          { ac_try='test -z "$ac_c_werror_flag"
47132                          || test ! -s conftest.err'
47133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47134   (eval $ac_try) 2>&5
47135   ac_status=$?
47136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47137   (exit $ac_status); }; } &&
47138          { ac_try='test -s conftest.$ac_objext'
47139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47140   (eval $ac_try) 2>&5
47141   ac_status=$?
47142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47143   (exit $ac_status); }; }; then
47144   ac_cv_type_pid_t=yes
47145 else
47146   echo "$as_me: failed program was:" >&5
47147 sed 's/^/| /' conftest.$ac_ext >&5
47148
47149 ac_cv_type_pid_t=no
47150 fi
47151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47152 fi
47153 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47154 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47155 if test $ac_cv_type_pid_t = yes; then
47156   :
47157 else
47158
47159 cat >>confdefs.h <<_ACEOF
47160 #define pid_t int
47161 _ACEOF
47162
47163 fi
47164
47165 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47166 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47167 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47168   echo $ECHO_N "(cached) $ECHO_C" >&6
47169 else
47170   cat >conftest.$ac_ext <<_ACEOF
47171 /* confdefs.h.  */
47172 _ACEOF
47173 cat confdefs.h >>conftest.$ac_ext
47174 cat >>conftest.$ac_ext <<_ACEOF
47175 /* end confdefs.h.  */
47176 $ac_includes_default
47177 int
47178 main ()
47179 {
47180 if ((ptrdiff_t *) 0)
47181   return 0;
47182 if (sizeof (ptrdiff_t))
47183   return 0;
47184   ;
47185   return 0;
47186 }
47187 _ACEOF
47188 rm -f conftest.$ac_objext
47189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47190   (eval $ac_compile) 2>conftest.er1
47191   ac_status=$?
47192   grep -v '^ *+' conftest.er1 >conftest.err
47193   rm -f conftest.er1
47194   cat conftest.err >&5
47195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47196   (exit $ac_status); } &&
47197          { ac_try='test -z "$ac_c_werror_flag"
47198                          || test ! -s conftest.err'
47199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47200   (eval $ac_try) 2>&5
47201   ac_status=$?
47202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47203   (exit $ac_status); }; } &&
47204          { ac_try='test -s conftest.$ac_objext'
47205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47206   (eval $ac_try) 2>&5
47207   ac_status=$?
47208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47209   (exit $ac_status); }; }; then
47210   ac_cv_type_ptrdiff_t=yes
47211 else
47212   echo "$as_me: failed program was:" >&5
47213 sed 's/^/| /' conftest.$ac_ext >&5
47214
47215 ac_cv_type_ptrdiff_t=no
47216 fi
47217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47218 fi
47219 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47220 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47221 if test $ac_cv_type_ptrdiff_t = yes; then
47222
47223 cat >>confdefs.h <<_ACEOF
47224 #define HAVE_PTRDIFF_T 1
47225 _ACEOF
47226
47227
47228 fi
47229
47230 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47231 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47232 if test "${ac_cv_type_signal+set}" = set; then
47233   echo $ECHO_N "(cached) $ECHO_C" >&6
47234 else
47235   cat >conftest.$ac_ext <<_ACEOF
47236 /* confdefs.h.  */
47237 _ACEOF
47238 cat confdefs.h >>conftest.$ac_ext
47239 cat >>conftest.$ac_ext <<_ACEOF
47240 /* end confdefs.h.  */
47241 #include <sys/types.h>
47242 #include <signal.h>
47243 #ifdef signal
47244 # undef signal
47245 #endif
47246 #ifdef __cplusplus
47247 extern "C" void (*signal (int, void (*)(int)))(int);
47248 #else
47249 void (*signal ()) ();
47250 #endif
47251
47252 int
47253 main ()
47254 {
47255 int i;
47256   ;
47257   return 0;
47258 }
47259 _ACEOF
47260 rm -f conftest.$ac_objext
47261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47262   (eval $ac_compile) 2>conftest.er1
47263   ac_status=$?
47264   grep -v '^ *+' conftest.er1 >conftest.err
47265   rm -f conftest.er1
47266   cat conftest.err >&5
47267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47268   (exit $ac_status); } &&
47269          { ac_try='test -z "$ac_c_werror_flag"
47270                          || test ! -s conftest.err'
47271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47272   (eval $ac_try) 2>&5
47273   ac_status=$?
47274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47275   (exit $ac_status); }; } &&
47276          { ac_try='test -s conftest.$ac_objext'
47277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47278   (eval $ac_try) 2>&5
47279   ac_status=$?
47280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47281   (exit $ac_status); }; }; then
47282   ac_cv_type_signal=void
47283 else
47284   echo "$as_me: failed program was:" >&5
47285 sed 's/^/| /' conftest.$ac_ext >&5
47286
47287 ac_cv_type_signal=int
47288 fi
47289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47290 fi
47291 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47292 echo "${ECHO_T}$ac_cv_type_signal" >&6
47293
47294 cat >>confdefs.h <<_ACEOF
47295 #define RETSIGTYPE $ac_cv_type_signal
47296 _ACEOF
47297
47298
47299 echo "$as_me:$LINENO: checking for size_t" >&5
47300 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47301 if test "${ac_cv_type_size_t+set}" = set; then
47302   echo $ECHO_N "(cached) $ECHO_C" >&6
47303 else
47304   cat >conftest.$ac_ext <<_ACEOF
47305 /* confdefs.h.  */
47306 _ACEOF
47307 cat confdefs.h >>conftest.$ac_ext
47308 cat >>conftest.$ac_ext <<_ACEOF
47309 /* end confdefs.h.  */
47310 $ac_includes_default
47311 int
47312 main ()
47313 {
47314 if ((size_t *) 0)
47315   return 0;
47316 if (sizeof (size_t))
47317   return 0;
47318   ;
47319   return 0;
47320 }
47321 _ACEOF
47322 rm -f conftest.$ac_objext
47323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47324   (eval $ac_compile) 2>conftest.er1
47325   ac_status=$?
47326   grep -v '^ *+' conftest.er1 >conftest.err
47327   rm -f conftest.er1
47328   cat conftest.err >&5
47329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47330   (exit $ac_status); } &&
47331          { ac_try='test -z "$ac_c_werror_flag"
47332                          || test ! -s conftest.err'
47333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47334   (eval $ac_try) 2>&5
47335   ac_status=$?
47336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47337   (exit $ac_status); }; } &&
47338          { ac_try='test -s conftest.$ac_objext'
47339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47340   (eval $ac_try) 2>&5
47341   ac_status=$?
47342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47343   (exit $ac_status); }; }; then
47344   ac_cv_type_size_t=yes
47345 else
47346   echo "$as_me: failed program was:" >&5
47347 sed 's/^/| /' conftest.$ac_ext >&5
47348
47349 ac_cv_type_size_t=no
47350 fi
47351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47352 fi
47353 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47354 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47355 if test $ac_cv_type_size_t = yes; then
47356   :
47357 else
47358
47359 cat >>confdefs.h <<_ACEOF
47360 #define size_t unsigned
47361 _ACEOF
47362
47363 fi
47364
47365
47366 echo "$as_me:$LINENO: checking for ssize_t" >&5
47367 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47368 if test "${ac_cv_type_ssize_t+set}" = set; then
47369   echo $ECHO_N "(cached) $ECHO_C" >&6
47370 else
47371   cat >conftest.$ac_ext <<_ACEOF
47372 /* confdefs.h.  */
47373 _ACEOF
47374 cat confdefs.h >>conftest.$ac_ext
47375 cat >>conftest.$ac_ext <<_ACEOF
47376 /* end confdefs.h.  */
47377 $ac_includes_default
47378 int
47379 main ()
47380 {
47381 if ((ssize_t *) 0)
47382   return 0;
47383 if (sizeof (ssize_t))
47384   return 0;
47385   ;
47386   return 0;
47387 }
47388 _ACEOF
47389 rm -f conftest.$ac_objext
47390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47391   (eval $ac_compile) 2>conftest.er1
47392   ac_status=$?
47393   grep -v '^ *+' conftest.er1 >conftest.err
47394   rm -f conftest.er1
47395   cat conftest.err >&5
47396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47397   (exit $ac_status); } &&
47398          { ac_try='test -z "$ac_c_werror_flag"
47399                          || test ! -s conftest.err'
47400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47401   (eval $ac_try) 2>&5
47402   ac_status=$?
47403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47404   (exit $ac_status); }; } &&
47405          { ac_try='test -s conftest.$ac_objext'
47406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47407   (eval $ac_try) 2>&5
47408   ac_status=$?
47409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47410   (exit $ac_status); }; }; then
47411   ac_cv_type_ssize_t=yes
47412 else
47413   echo "$as_me: failed program was:" >&5
47414 sed 's/^/| /' conftest.$ac_ext >&5
47415
47416 ac_cv_type_ssize_t=no
47417 fi
47418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47419 fi
47420 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47421 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47422 if test $ac_cv_type_ssize_t = yes; then
47423   :
47424 else
47425
47426 cat >>confdefs.h <<_ACEOF
47427 #define ssize_t signed int
47428 _ACEOF
47429
47430 fi
47431
47432 echo "$as_me:$LINENO: checking for caddr_t" >&5
47433 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47434 if test "${ac_cv_type_caddr_t+set}" = set; then
47435   echo $ECHO_N "(cached) $ECHO_C" >&6
47436 else
47437   cat >conftest.$ac_ext <<_ACEOF
47438 /* confdefs.h.  */
47439 _ACEOF
47440 cat confdefs.h >>conftest.$ac_ext
47441 cat >>conftest.$ac_ext <<_ACEOF
47442 /* end confdefs.h.  */
47443 $ac_includes_default
47444 int
47445 main ()
47446 {
47447 if ((caddr_t *) 0)
47448   return 0;
47449 if (sizeof (caddr_t))
47450   return 0;
47451   ;
47452   return 0;
47453 }
47454 _ACEOF
47455 rm -f conftest.$ac_objext
47456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47457   (eval $ac_compile) 2>conftest.er1
47458   ac_status=$?
47459   grep -v '^ *+' conftest.er1 >conftest.err
47460   rm -f conftest.er1
47461   cat conftest.err >&5
47462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47463   (exit $ac_status); } &&
47464          { ac_try='test -z "$ac_c_werror_flag"
47465                          || test ! -s conftest.err'
47466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47467   (eval $ac_try) 2>&5
47468   ac_status=$?
47469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47470   (exit $ac_status); }; } &&
47471          { ac_try='test -s conftest.$ac_objext'
47472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47473   (eval $ac_try) 2>&5
47474   ac_status=$?
47475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47476   (exit $ac_status); }; }; then
47477   ac_cv_type_caddr_t=yes
47478 else
47479   echo "$as_me: failed program was:" >&5
47480 sed 's/^/| /' conftest.$ac_ext >&5
47481
47482 ac_cv_type_caddr_t=no
47483 fi
47484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47485 fi
47486 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47487 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47488 if test $ac_cv_type_caddr_t = yes; then
47489   :
47490 else
47491
47492 cat >>confdefs.h <<_ACEOF
47493 #define caddr_t char *
47494 _ACEOF
47495
47496 fi
47497
47498
47499 echo "$as_me:$LINENO: checking for socklen_t" >&5
47500 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47501 if test "${ol_cv_type_socklen_t+set}" = set; then
47502   echo $ECHO_N "(cached) $ECHO_C" >&6
47503 else
47504   cat >conftest.$ac_ext <<_ACEOF
47505 /* confdefs.h.  */
47506 _ACEOF
47507 cat confdefs.h >>conftest.$ac_ext
47508 cat >>conftest.$ac_ext <<_ACEOF
47509 /* end confdefs.h.  */
47510
47511 #ifdef HAVE_SYS_TYPES_H
47512 #include <sys/types.h>
47513 #endif
47514 #ifdef HAVE_SYS_SOCKET_H
47515 #include <sys/socket.h>
47516 #endif
47517
47518 int
47519 main ()
47520 {
47521 socklen_t len;
47522   ;
47523   return 0;
47524 }
47525 _ACEOF
47526 rm -f conftest.$ac_objext
47527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47528   (eval $ac_compile) 2>conftest.er1
47529   ac_status=$?
47530   grep -v '^ *+' conftest.er1 >conftest.err
47531   rm -f conftest.er1
47532   cat conftest.err >&5
47533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47534   (exit $ac_status); } &&
47535          { ac_try='test -z "$ac_c_werror_flag"
47536                          || test ! -s conftest.err'
47537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47538   (eval $ac_try) 2>&5
47539   ac_status=$?
47540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47541   (exit $ac_status); }; } &&
47542          { ac_try='test -s conftest.$ac_objext'
47543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47544   (eval $ac_try) 2>&5
47545   ac_status=$?
47546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47547   (exit $ac_status); }; }; then
47548   ol_cv_type_socklen_t=yes
47549 else
47550   echo "$as_me: failed program was:" >&5
47551 sed 's/^/| /' conftest.$ac_ext >&5
47552
47553 ol_cv_type_socklen_t=no
47554 fi
47555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47556 fi
47557 echo "$as_me:$LINENO: result: $ol_cv_type_socklen_t" >&5
47558 echo "${ECHO_T}$ol_cv_type_socklen_t" >&6
47559   if test $ol_cv_type_socklen_t = no; then
47560
47561 cat >>confdefs.h <<\_ACEOF
47562 #define socklen_t int
47563 _ACEOF
47564
47565   fi
47566
47567
47568 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
47569 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
47570 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
47571   echo $ECHO_N "(cached) $ECHO_C" >&6
47572 else
47573   cat >conftest.$ac_ext <<_ACEOF
47574 /* confdefs.h.  */
47575 _ACEOF
47576 cat confdefs.h >>conftest.$ac_ext
47577 cat >>conftest.$ac_ext <<_ACEOF
47578 /* end confdefs.h.  */
47579 $ac_includes_default
47580 int
47581 main ()
47582 {
47583 static struct stat ac_aggr;
47584 if (ac_aggr.st_blksize)
47585 return 0;
47586   ;
47587   return 0;
47588 }
47589 _ACEOF
47590 rm -f conftest.$ac_objext
47591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47592   (eval $ac_compile) 2>conftest.er1
47593   ac_status=$?
47594   grep -v '^ *+' conftest.er1 >conftest.err
47595   rm -f conftest.er1
47596   cat conftest.err >&5
47597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47598   (exit $ac_status); } &&
47599          { ac_try='test -z "$ac_c_werror_flag"
47600                          || test ! -s conftest.err'
47601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47602   (eval $ac_try) 2>&5
47603   ac_status=$?
47604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47605   (exit $ac_status); }; } &&
47606          { ac_try='test -s conftest.$ac_objext'
47607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47608   (eval $ac_try) 2>&5
47609   ac_status=$?
47610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47611   (exit $ac_status); }; }; then
47612   ac_cv_member_struct_stat_st_blksize=yes
47613 else
47614   echo "$as_me: failed program was:" >&5
47615 sed 's/^/| /' conftest.$ac_ext >&5
47616
47617 cat >conftest.$ac_ext <<_ACEOF
47618 /* confdefs.h.  */
47619 _ACEOF
47620 cat confdefs.h >>conftest.$ac_ext
47621 cat >>conftest.$ac_ext <<_ACEOF
47622 /* end confdefs.h.  */
47623 $ac_includes_default
47624 int
47625 main ()
47626 {
47627 static struct stat ac_aggr;
47628 if (sizeof ac_aggr.st_blksize)
47629 return 0;
47630   ;
47631   return 0;
47632 }
47633 _ACEOF
47634 rm -f conftest.$ac_objext
47635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47636   (eval $ac_compile) 2>conftest.er1
47637   ac_status=$?
47638   grep -v '^ *+' conftest.er1 >conftest.err
47639   rm -f conftest.er1
47640   cat conftest.err >&5
47641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47642   (exit $ac_status); } &&
47643          { ac_try='test -z "$ac_c_werror_flag"
47644                          || test ! -s conftest.err'
47645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47646   (eval $ac_try) 2>&5
47647   ac_status=$?
47648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47649   (exit $ac_status); }; } &&
47650          { ac_try='test -s conftest.$ac_objext'
47651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47652   (eval $ac_try) 2>&5
47653   ac_status=$?
47654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47655   (exit $ac_status); }; }; then
47656   ac_cv_member_struct_stat_st_blksize=yes
47657 else
47658   echo "$as_me: failed program was:" >&5
47659 sed 's/^/| /' conftest.$ac_ext >&5
47660
47661 ac_cv_member_struct_stat_st_blksize=no
47662 fi
47663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47664 fi
47665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47666 fi
47667 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
47668 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
47669 if test $ac_cv_member_struct_stat_st_blksize = yes; then
47670
47671 cat >>confdefs.h <<_ACEOF
47672 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
47673 _ACEOF
47674
47675
47676 cat >>confdefs.h <<\_ACEOF
47677 #define HAVE_ST_BLKSIZE 1
47678 _ACEOF
47679
47680 fi
47681
47682
47683 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47684 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47685 if test "${ac_cv_header_time+set}" = set; then
47686   echo $ECHO_N "(cached) $ECHO_C" >&6
47687 else
47688   cat >conftest.$ac_ext <<_ACEOF
47689 /* confdefs.h.  */
47690 _ACEOF
47691 cat confdefs.h >>conftest.$ac_ext
47692 cat >>conftest.$ac_ext <<_ACEOF
47693 /* end confdefs.h.  */
47694 #include <sys/types.h>
47695 #include <sys/time.h>
47696 #include <time.h>
47697
47698 int
47699 main ()
47700 {
47701 if ((struct tm *) 0)
47702 return 0;
47703   ;
47704   return 0;
47705 }
47706 _ACEOF
47707 rm -f conftest.$ac_objext
47708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47709   (eval $ac_compile) 2>conftest.er1
47710   ac_status=$?
47711   grep -v '^ *+' conftest.er1 >conftest.err
47712   rm -f conftest.er1
47713   cat conftest.err >&5
47714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47715   (exit $ac_status); } &&
47716          { ac_try='test -z "$ac_c_werror_flag"
47717                          || test ! -s conftest.err'
47718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47719   (eval $ac_try) 2>&5
47720   ac_status=$?
47721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47722   (exit $ac_status); }; } &&
47723          { ac_try='test -s conftest.$ac_objext'
47724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47725   (eval $ac_try) 2>&5
47726   ac_status=$?
47727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47728   (exit $ac_status); }; }; then
47729   ac_cv_header_time=yes
47730 else
47731   echo "$as_me: failed program was:" >&5
47732 sed 's/^/| /' conftest.$ac_ext >&5
47733
47734 ac_cv_header_time=no
47735 fi
47736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47737 fi
47738 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
47739 echo "${ECHO_T}$ac_cv_header_time" >&6
47740 if test $ac_cv_header_time = yes; then
47741
47742 cat >>confdefs.h <<\_ACEOF
47743 #define TIME_WITH_SYS_TIME 1
47744 _ACEOF
47745
47746 fi
47747
47748 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
47749 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
47750 if test "${ac_cv_struct_tm+set}" = set; then
47751   echo $ECHO_N "(cached) $ECHO_C" >&6
47752 else
47753   cat >conftest.$ac_ext <<_ACEOF
47754 /* confdefs.h.  */
47755 _ACEOF
47756 cat confdefs.h >>conftest.$ac_ext
47757 cat >>conftest.$ac_ext <<_ACEOF
47758 /* end confdefs.h.  */
47759 #include <sys/types.h>
47760 #include <time.h>
47761
47762 int
47763 main ()
47764 {
47765 struct tm *tp; tp->tm_sec;
47766   ;
47767   return 0;
47768 }
47769 _ACEOF
47770 rm -f conftest.$ac_objext
47771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47772   (eval $ac_compile) 2>conftest.er1
47773   ac_status=$?
47774   grep -v '^ *+' conftest.er1 >conftest.err
47775   rm -f conftest.er1
47776   cat conftest.err >&5
47777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47778   (exit $ac_status); } &&
47779          { ac_try='test -z "$ac_c_werror_flag"
47780                          || test ! -s conftest.err'
47781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47782   (eval $ac_try) 2>&5
47783   ac_status=$?
47784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47785   (exit $ac_status); }; } &&
47786          { ac_try='test -s conftest.$ac_objext'
47787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47788   (eval $ac_try) 2>&5
47789   ac_status=$?
47790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47791   (exit $ac_status); }; }; then
47792   ac_cv_struct_tm=time.h
47793 else
47794   echo "$as_me: failed program was:" >&5
47795 sed 's/^/| /' conftest.$ac_ext >&5
47796
47797 ac_cv_struct_tm=sys/time.h
47798 fi
47799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47800 fi
47801 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
47802 echo "${ECHO_T}$ac_cv_struct_tm" >&6
47803 if test $ac_cv_struct_tm = sys/time.h; then
47804
47805 cat >>confdefs.h <<\_ACEOF
47806 #define TM_IN_SYS_TIME 1
47807 _ACEOF
47808
47809 fi
47810
47811 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47812 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47813 if test "${ac_cv_type_uid_t+set}" = set; then
47814   echo $ECHO_N "(cached) $ECHO_C" >&6
47815 else
47816   cat >conftest.$ac_ext <<_ACEOF
47817 /* confdefs.h.  */
47818 _ACEOF
47819 cat confdefs.h >>conftest.$ac_ext
47820 cat >>conftest.$ac_ext <<_ACEOF
47821 /* end confdefs.h.  */
47822 #include <sys/types.h>
47823
47824 _ACEOF
47825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47826   $EGREP "uid_t" >/dev/null 2>&1; then
47827   ac_cv_type_uid_t=yes
47828 else
47829   ac_cv_type_uid_t=no
47830 fi
47831 rm -f conftest*
47832
47833 fi
47834 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47835 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47836 if test $ac_cv_type_uid_t = no; then
47837
47838 cat >>confdefs.h <<\_ACEOF
47839 #define uid_t int
47840 _ACEOF
47841
47842
47843 cat >>confdefs.h <<\_ACEOF
47844 #define gid_t int
47845 _ACEOF
47846
47847 fi
47848
47849 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47850 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47851 if test "${ol_cv_type_sig_atomic_t+set}" = set; then
47852   echo $ECHO_N "(cached) $ECHO_C" >&6
47853 else
47854   cat >conftest.$ac_ext <<_ACEOF
47855 /* confdefs.h.  */
47856 _ACEOF
47857 cat confdefs.h >>conftest.$ac_ext
47858 cat >>conftest.$ac_ext <<_ACEOF
47859 /* end confdefs.h.  */
47860 #include <signal.h>
47861 int
47862 main ()
47863 {
47864 sig_atomic_t atomic;
47865   ;
47866   return 0;
47867 }
47868 _ACEOF
47869 rm -f conftest.$ac_objext
47870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47871   (eval $ac_compile) 2>conftest.er1
47872   ac_status=$?
47873   grep -v '^ *+' conftest.er1 >conftest.err
47874   rm -f conftest.er1
47875   cat conftest.err >&5
47876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47877   (exit $ac_status); } &&
47878          { ac_try='test -z "$ac_c_werror_flag"
47879                          || test ! -s conftest.err'
47880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47881   (eval $ac_try) 2>&5
47882   ac_status=$?
47883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47884   (exit $ac_status); }; } &&
47885          { ac_try='test -s conftest.$ac_objext'
47886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47887   (eval $ac_try) 2>&5
47888   ac_status=$?
47889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47890   (exit $ac_status); }; }; then
47891   ol_cv_type_sig_atomic_t=yes
47892 else
47893   echo "$as_me: failed program was:" >&5
47894 sed 's/^/| /' conftest.$ac_ext >&5
47895
47896 ol_cv_type_sig_atomic_t=no
47897 fi
47898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47899 fi
47900 echo "$as_me:$LINENO: result: $ol_cv_type_sig_atomic_t" >&5
47901 echo "${ECHO_T}$ol_cv_type_sig_atomic_t" >&6
47902   if test $ol_cv_type_sig_atomic_t = no; then
47903
47904 cat >>confdefs.h <<\_ACEOF
47905 #define sig_atomic_t int
47906 _ACEOF
47907
47908   fi
47909
47910
47911
47912 # test for pw_gecos in struct passwd
47913 echo "$as_me:$LINENO: checking struct passwd for pw_gecos" >&5
47914 echo $ECHO_N "checking struct passwd for pw_gecos... $ECHO_C" >&6
47915 if test "${ol_cv_struct_passwd_pw_gecos+set}" = set; then
47916   echo $ECHO_N "(cached) $ECHO_C" >&6
47917 else
47918
47919         cat >conftest.$ac_ext <<_ACEOF
47920 /* confdefs.h.  */
47921 _ACEOF
47922 cat confdefs.h >>conftest.$ac_ext
47923 cat >>conftest.$ac_ext <<_ACEOF
47924 /* end confdefs.h.  */
47925 #include <pwd.h>
47926 int
47927 main ()
47928 {
47929
47930         struct passwd pwd;
47931         pwd.pw_gecos = pwd.pw_name;
47932
47933   ;
47934   return 0;
47935 }
47936 _ACEOF
47937 rm -f conftest.$ac_objext
47938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47939   (eval $ac_compile) 2>conftest.er1
47940   ac_status=$?
47941   grep -v '^ *+' conftest.er1 >conftest.err
47942   rm -f conftest.er1
47943   cat conftest.err >&5
47944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47945   (exit $ac_status); } &&
47946          { ac_try='test -z "$ac_c_werror_flag"
47947                          || test ! -s conftest.err'
47948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47949   (eval $ac_try) 2>&5
47950   ac_status=$?
47951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47952   (exit $ac_status); }; } &&
47953          { ac_try='test -s conftest.$ac_objext'
47954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47955   (eval $ac_try) 2>&5
47956   ac_status=$?
47957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47958   (exit $ac_status); }; }; then
47959   ol_cv_struct_passwd_pw_gecos=yes
47960 else
47961   echo "$as_me: failed program was:" >&5
47962 sed 's/^/| /' conftest.$ac_ext >&5
47963
47964 ol_cv_struct_passwd_pw_gecos=no
47965 fi
47966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47967 fi
47968 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_gecos" >&5
47969 echo "${ECHO_T}$ol_cv_struct_passwd_pw_gecos" >&6
47970 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
47971
47972 cat >>confdefs.h <<\_ACEOF
47973 #define HAVE_PW_GECOS 1
47974 _ACEOF
47975
47976 fi
47977
47978 # test for pw_passwd in struct passwd
47979 echo "$as_me:$LINENO: checking struct passwd for pw_passwd" >&5
47980 echo $ECHO_N "checking struct passwd for pw_passwd... $ECHO_C" >&6
47981 if test "${ol_cv_struct_passwd_pw_passwd+set}" = set; then
47982   echo $ECHO_N "(cached) $ECHO_C" >&6
47983 else
47984
47985         cat >conftest.$ac_ext <<_ACEOF
47986 /* confdefs.h.  */
47987 _ACEOF
47988 cat confdefs.h >>conftest.$ac_ext
47989 cat >>conftest.$ac_ext <<_ACEOF
47990 /* end confdefs.h.  */
47991 #include <pwd.h>
47992 int
47993 main ()
47994 {
47995
47996         struct passwd pwd;
47997         pwd.pw_passwd = pwd.pw_name;
47998
47999   ;
48000   return 0;
48001 }
48002 _ACEOF
48003 rm -f conftest.$ac_objext
48004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48005   (eval $ac_compile) 2>conftest.er1
48006   ac_status=$?
48007   grep -v '^ *+' conftest.er1 >conftest.err
48008   rm -f conftest.er1
48009   cat conftest.err >&5
48010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48011   (exit $ac_status); } &&
48012          { ac_try='test -z "$ac_c_werror_flag"
48013                          || test ! -s conftest.err'
48014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48015   (eval $ac_try) 2>&5
48016   ac_status=$?
48017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48018   (exit $ac_status); }; } &&
48019          { ac_try='test -s conftest.$ac_objext'
48020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48021   (eval $ac_try) 2>&5
48022   ac_status=$?
48023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48024   (exit $ac_status); }; }; then
48025   ol_cv_struct_passwd_pw_passwd=yes
48026 else
48027   echo "$as_me: failed program was:" >&5
48028 sed 's/^/| /' conftest.$ac_ext >&5
48029
48030 ol_cv_struct_passwd_pw_passwd=no
48031 fi
48032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48033 fi
48034 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_passwd" >&5
48035 echo "${ECHO_T}$ol_cv_struct_passwd_pw_passwd" >&6
48036 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
48037
48038 cat >>confdefs.h <<\_ACEOF
48039 #define HAVE_PW_PASSWD 1
48040 _ACEOF
48041
48042 fi
48043
48044
48045 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48046 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48047 if test "${ol_cv_c_upper_lower+set}" = set; then
48048   echo $ECHO_N "(cached) $ECHO_C" >&6
48049 else
48050
48051         if test "$cross_compiling" = yes; then
48052   ol_cv_c_upper_lower=safe
48053 else
48054   cat >conftest.$ac_ext <<_ACEOF
48055 /* confdefs.h.  */
48056 _ACEOF
48057 cat confdefs.h >>conftest.$ac_ext
48058 cat >>conftest.$ac_ext <<_ACEOF
48059 /* end confdefs.h.  */
48060
48061 #include <ctype.h>
48062 main()
48063 {
48064         if ('C' == toupper('C'))
48065                 exit(0);
48066         else
48067                 exit(1);
48068 }
48069 _ACEOF
48070 rm -f conftest$ac_exeext
48071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48072   (eval $ac_link) 2>&5
48073   ac_status=$?
48074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48075   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48077   (eval $ac_try) 2>&5
48078   ac_status=$?
48079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48080   (exit $ac_status); }; }; then
48081   ol_cv_c_upper_lower=no
48082 else
48083   echo "$as_me: program exited with status $ac_status" >&5
48084 echo "$as_me: failed program was:" >&5
48085 sed 's/^/| /' conftest.$ac_ext >&5
48086
48087 ( exit $ac_status )
48088 ol_cv_c_upper_lower=yes
48089 fi
48090 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48091 fi
48092 fi
48093 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48094 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48095 if test $ol_cv_c_upper_lower != no ; then
48096
48097 cat >>confdefs.h <<\_ACEOF
48098 #define C_UPPER_LOWER 1
48099 _ACEOF
48100
48101 fi
48102
48103 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48104 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48105 if test "${ac_cv_c_const+set}" = set; then
48106   echo $ECHO_N "(cached) $ECHO_C" >&6
48107 else
48108   cat >conftest.$ac_ext <<_ACEOF
48109 /* confdefs.h.  */
48110 _ACEOF
48111 cat confdefs.h >>conftest.$ac_ext
48112 cat >>conftest.$ac_ext <<_ACEOF
48113 /* end confdefs.h.  */
48114
48115 int
48116 main ()
48117 {
48118 /* FIXME: Include the comments suggested by Paul. */
48119 #ifndef __cplusplus
48120   /* Ultrix mips cc rejects this.  */
48121   typedef int charset[2];
48122   const charset x;
48123   /* SunOS 4.1.1 cc rejects this.  */
48124   char const *const *ccp;
48125   char **p;
48126   /* NEC SVR4.0.2 mips cc rejects this.  */
48127   struct point {int x, y;};
48128   static struct point const zero = {0,0};
48129   /* AIX XL C 1.02.0.0 rejects this.
48130      It does not let you subtract one const X* pointer from another in
48131      an arm of an if-expression whose if-part is not a constant
48132      expression */
48133   const char *g = "string";
48134   ccp = &g + (g ? g-g : 0);
48135   /* HPUX 7.0 cc rejects these. */
48136   ++ccp;
48137   p = (char**) ccp;
48138   ccp = (char const *const *) p;
48139   { /* SCO 3.2v4 cc rejects this.  */
48140     char *t;
48141     char const *s = 0 ? (char *) 0 : (char const *) 0;
48142
48143     *t++ = 0;
48144   }
48145   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
48146     int x[] = {25, 17};
48147     const int *foo = &x[0];
48148     ++foo;
48149   }
48150   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48151     typedef const int *iptr;
48152     iptr p = 0;
48153     ++p;
48154   }
48155   { /* AIX XL C 1.02.0.0 rejects this saying
48156        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48157     struct s { int j; const int *ap[3]; };
48158     struct s *b; b->j = 5;
48159   }
48160   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48161     const int foo = 10;
48162   }
48163 #endif
48164
48165   ;
48166   return 0;
48167 }
48168 _ACEOF
48169 rm -f conftest.$ac_objext
48170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48171   (eval $ac_compile) 2>conftest.er1
48172   ac_status=$?
48173   grep -v '^ *+' conftest.er1 >conftest.err
48174   rm -f conftest.er1
48175   cat conftest.err >&5
48176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48177   (exit $ac_status); } &&
48178          { ac_try='test -z "$ac_c_werror_flag"
48179                          || test ! -s conftest.err'
48180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48181   (eval $ac_try) 2>&5
48182   ac_status=$?
48183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48184   (exit $ac_status); }; } &&
48185          { ac_try='test -s conftest.$ac_objext'
48186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48187   (eval $ac_try) 2>&5
48188   ac_status=$?
48189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48190   (exit $ac_status); }; }; then
48191   ac_cv_c_const=yes
48192 else
48193   echo "$as_me: failed program was:" >&5
48194 sed 's/^/| /' conftest.$ac_ext >&5
48195
48196 ac_cv_c_const=no
48197 fi
48198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48199 fi
48200 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48201 echo "${ECHO_T}$ac_cv_c_const" >&6
48202 if test $ac_cv_c_const = no; then
48203
48204 cat >>confdefs.h <<\_ACEOF
48205 #define const
48206 _ACEOF
48207
48208 fi
48209
48210 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48211 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48212 if test "${ol_cv_c_volatile+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 int x, y, z;
48222 int
48223 main ()
48224 {
48225 volatile int a; int * volatile b = x ? &y : &z;
48226       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48227       *b = 0;
48228   ;
48229   return 0;
48230 }
48231 _ACEOF
48232 rm -f conftest.$ac_objext
48233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48234   (eval $ac_compile) 2>conftest.er1
48235   ac_status=$?
48236   grep -v '^ *+' conftest.er1 >conftest.err
48237   rm -f conftest.er1
48238   cat conftest.err >&5
48239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48240   (exit $ac_status); } &&
48241          { ac_try='test -z "$ac_c_werror_flag"
48242                          || test ! -s conftest.err'
48243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48244   (eval $ac_try) 2>&5
48245   ac_status=$?
48246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48247   (exit $ac_status); }; } &&
48248          { ac_try='test -s conftest.$ac_objext'
48249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48250   (eval $ac_try) 2>&5
48251   ac_status=$?
48252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48253   (exit $ac_status); }; }; then
48254   ol_cv_c_volatile=yes
48255 else
48256   echo "$as_me: failed program was:" >&5
48257 sed 's/^/| /' conftest.$ac_ext >&5
48258
48259 ol_cv_c_volatile=no
48260 fi
48261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48262 fi
48263 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48264 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48265   if test $ol_cv_c_volatile = yes; then
48266     :
48267   else
48268
48269 cat >>confdefs.h <<\_ACEOF
48270 #define volatile
48271 _ACEOF
48272
48273   fi
48274
48275
48276 if test $cross_compiling = yes ; then
48277         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48278 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48279
48280 cat >>confdefs.h <<\_ACEOF
48281 #define CROSS_COMPILING 1
48282 _ACEOF
48283
48284 else
48285         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48286 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48287 if test "${ac_cv_c_bigendian+set}" = set; then
48288   echo $ECHO_N "(cached) $ECHO_C" >&6
48289 else
48290   # See if sys/param.h defines the BYTE_ORDER macro.
48291 cat >conftest.$ac_ext <<_ACEOF
48292 /* confdefs.h.  */
48293 _ACEOF
48294 cat confdefs.h >>conftest.$ac_ext
48295 cat >>conftest.$ac_ext <<_ACEOF
48296 /* end confdefs.h.  */
48297 #include <sys/types.h>
48298 #include <sys/param.h>
48299
48300 int
48301 main ()
48302 {
48303 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48304  bogus endian macros
48305 #endif
48306
48307   ;
48308   return 0;
48309 }
48310 _ACEOF
48311 rm -f conftest.$ac_objext
48312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48313   (eval $ac_compile) 2>conftest.er1
48314   ac_status=$?
48315   grep -v '^ *+' conftest.er1 >conftest.err
48316   rm -f conftest.er1
48317   cat conftest.err >&5
48318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48319   (exit $ac_status); } &&
48320          { ac_try='test -z "$ac_c_werror_flag"
48321                          || test ! -s conftest.err'
48322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48323   (eval $ac_try) 2>&5
48324   ac_status=$?
48325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48326   (exit $ac_status); }; } &&
48327          { ac_try='test -s conftest.$ac_objext'
48328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48329   (eval $ac_try) 2>&5
48330   ac_status=$?
48331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48332   (exit $ac_status); }; }; then
48333   # It does; now see whether it defined to BIG_ENDIAN or not.
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 #include <sys/types.h>
48341 #include <sys/param.h>
48342
48343 int
48344 main ()
48345 {
48346 #if BYTE_ORDER != BIG_ENDIAN
48347  not big endian
48348 #endif
48349
48350   ;
48351   return 0;
48352 }
48353 _ACEOF
48354 rm -f conftest.$ac_objext
48355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48356   (eval $ac_compile) 2>conftest.er1
48357   ac_status=$?
48358   grep -v '^ *+' conftest.er1 >conftest.err
48359   rm -f conftest.er1
48360   cat conftest.err >&5
48361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48362   (exit $ac_status); } &&
48363          { ac_try='test -z "$ac_c_werror_flag"
48364                          || test ! -s conftest.err'
48365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48366   (eval $ac_try) 2>&5
48367   ac_status=$?
48368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48369   (exit $ac_status); }; } &&
48370          { ac_try='test -s conftest.$ac_objext'
48371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48372   (eval $ac_try) 2>&5
48373   ac_status=$?
48374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48375   (exit $ac_status); }; }; then
48376   ac_cv_c_bigendian=yes
48377 else
48378   echo "$as_me: failed program was:" >&5
48379 sed 's/^/| /' conftest.$ac_ext >&5
48380
48381 ac_cv_c_bigendian=no
48382 fi
48383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48384 else
48385   echo "$as_me: failed program was:" >&5
48386 sed 's/^/| /' conftest.$ac_ext >&5
48387
48388 # It does not; compile a test program.
48389 if test "$cross_compiling" = yes; then
48390   # try to guess the endianness by grepping values into an object file
48391   ac_cv_c_bigendian=unknown
48392   cat >conftest.$ac_ext <<_ACEOF
48393 /* confdefs.h.  */
48394 _ACEOF
48395 cat confdefs.h >>conftest.$ac_ext
48396 cat >>conftest.$ac_ext <<_ACEOF
48397 /* end confdefs.h.  */
48398 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48399 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48400 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48401 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48402 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48403 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48404 int
48405 main ()
48406 {
48407  _ascii (); _ebcdic ();
48408   ;
48409   return 0;
48410 }
48411 _ACEOF
48412 rm -f conftest.$ac_objext
48413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48414   (eval $ac_compile) 2>conftest.er1
48415   ac_status=$?
48416   grep -v '^ *+' conftest.er1 >conftest.err
48417   rm -f conftest.er1
48418   cat conftest.err >&5
48419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48420   (exit $ac_status); } &&
48421          { ac_try='test -z "$ac_c_werror_flag"
48422                          || test ! -s conftest.err'
48423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48424   (eval $ac_try) 2>&5
48425   ac_status=$?
48426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48427   (exit $ac_status); }; } &&
48428          { ac_try='test -s conftest.$ac_objext'
48429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48430   (eval $ac_try) 2>&5
48431   ac_status=$?
48432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48433   (exit $ac_status); }; }; then
48434   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48435   ac_cv_c_bigendian=yes
48436 fi
48437 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48438   if test "$ac_cv_c_bigendian" = unknown; then
48439     ac_cv_c_bigendian=no
48440   else
48441     # finding both strings is unlikely to happen, but who knows?
48442     ac_cv_c_bigendian=unknown
48443   fi
48444 fi
48445 else
48446   echo "$as_me: failed program was:" >&5
48447 sed 's/^/| /' conftest.$ac_ext >&5
48448
48449 fi
48450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48451 else
48452   cat >conftest.$ac_ext <<_ACEOF
48453 /* confdefs.h.  */
48454 _ACEOF
48455 cat confdefs.h >>conftest.$ac_ext
48456 cat >>conftest.$ac_ext <<_ACEOF
48457 /* end confdefs.h.  */
48458 int
48459 main ()
48460 {
48461   /* Are we little or big endian?  From Harbison&Steele.  */
48462   union
48463   {
48464     long l;
48465     char c[sizeof (long)];
48466   } u;
48467   u.l = 1;
48468   exit (u.c[sizeof (long) - 1] == 1);
48469 }
48470 _ACEOF
48471 rm -f conftest$ac_exeext
48472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48473   (eval $ac_link) 2>&5
48474   ac_status=$?
48475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48476   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48478   (eval $ac_try) 2>&5
48479   ac_status=$?
48480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48481   (exit $ac_status); }; }; then
48482   ac_cv_c_bigendian=no
48483 else
48484   echo "$as_me: program exited with status $ac_status" >&5
48485 echo "$as_me: failed program was:" >&5
48486 sed 's/^/| /' conftest.$ac_ext >&5
48487
48488 ( exit $ac_status )
48489 ac_cv_c_bigendian=yes
48490 fi
48491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48492 fi
48493 fi
48494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48495 fi
48496 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48497 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48498 case $ac_cv_c_bigendian in
48499   yes)
48500
48501 cat >>confdefs.h <<\_ACEOF
48502 #define WORDS_BIGENDIAN 1
48503 _ACEOF
48504  ;;
48505   no)
48506      ;;
48507   *)
48508     { { echo "$as_me:$LINENO: error: unknown endianness
48509 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48510 echo "$as_me: error: unknown endianness
48511 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48512    { (exit 1); exit 1; }; } ;;
48513 esac
48514
48515 fi
48516
48517 echo "$as_me:$LINENO: checking size of short" >&5
48518 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48519 if test "${ac_cv_sizeof_short+set}" = set; then
48520   echo $ECHO_N "(cached) $ECHO_C" >&6
48521 else
48522   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48523   cat >conftest.$ac_ext <<_ACEOF
48524 /* confdefs.h.  */
48525 _ACEOF
48526 cat confdefs.h >>conftest.$ac_ext
48527 cat >>conftest.$ac_ext <<_ACEOF
48528 /* end confdefs.h.  */
48529 #include "confdefs.h"
48530 #include <stdlib.h>
48531 #include <sys/types.h>
48532
48533
48534 int
48535 main ()
48536 {
48537 switch (0) case 0: case (sizeof (short) == $ac_size):;
48538   ;
48539   return 0;
48540 }
48541 _ACEOF
48542 rm -f conftest.$ac_objext
48543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48544   (eval $ac_compile) 2>conftest.er1
48545   ac_status=$?
48546   grep -v '^ *+' conftest.er1 >conftest.err
48547   rm -f conftest.er1
48548   cat conftest.err >&5
48549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48550   (exit $ac_status); } &&
48551          { ac_try='test -z "$ac_c_werror_flag"
48552                          || test ! -s conftest.err'
48553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48554   (eval $ac_try) 2>&5
48555   ac_status=$?
48556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48557   (exit $ac_status); }; } &&
48558          { ac_try='test -s conftest.$ac_objext'
48559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48560   (eval $ac_try) 2>&5
48561   ac_status=$?
48562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48563   (exit $ac_status); }; }; then
48564   ac_cv_sizeof_short=$ac_size
48565 else
48566   echo "$as_me: failed program was:" >&5
48567 sed 's/^/| /' conftest.$ac_ext >&5
48568
48569 fi
48570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48571   if test x$ac_cv_sizeof_short != x ; then break; fi
48572 done
48573
48574 fi
48575
48576 if test x$ac_cv_sizeof_short = x ; then
48577   { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
48578 echo "$as_me: error: cannot determine a size for short" >&2;}
48579    { (exit 1); exit 1; }; }
48580 fi
48581 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
48582 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
48583
48584 cat >>confdefs.h <<_ACEOF
48585 #define SIZEOF_SHORT $ac_cv_sizeof_short
48586 _ACEOF
48587
48588
48589 echo "$as_me:$LINENO: checking size of int" >&5
48590 echo $ECHO_N "checking size of int... $ECHO_C" >&6
48591 if test "${ac_cv_sizeof_int+set}" = set; then
48592   echo $ECHO_N "(cached) $ECHO_C" >&6
48593 else
48594   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48595   cat >conftest.$ac_ext <<_ACEOF
48596 /* confdefs.h.  */
48597 _ACEOF
48598 cat confdefs.h >>conftest.$ac_ext
48599 cat >>conftest.$ac_ext <<_ACEOF
48600 /* end confdefs.h.  */
48601 #include "confdefs.h"
48602 #include <stdlib.h>
48603 #include <sys/types.h>
48604
48605
48606 int
48607 main ()
48608 {
48609 switch (0) case 0: case (sizeof (int) == $ac_size):;
48610   ;
48611   return 0;
48612 }
48613 _ACEOF
48614 rm -f conftest.$ac_objext
48615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48616   (eval $ac_compile) 2>conftest.er1
48617   ac_status=$?
48618   grep -v '^ *+' conftest.er1 >conftest.err
48619   rm -f conftest.er1
48620   cat conftest.err >&5
48621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48622   (exit $ac_status); } &&
48623          { ac_try='test -z "$ac_c_werror_flag"
48624                          || test ! -s conftest.err'
48625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48626   (eval $ac_try) 2>&5
48627   ac_status=$?
48628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48629   (exit $ac_status); }; } &&
48630          { ac_try='test -s conftest.$ac_objext'
48631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48632   (eval $ac_try) 2>&5
48633   ac_status=$?
48634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48635   (exit $ac_status); }; }; then
48636   ac_cv_sizeof_int=$ac_size
48637 else
48638   echo "$as_me: failed program was:" >&5
48639 sed 's/^/| /' conftest.$ac_ext >&5
48640
48641 fi
48642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48643   if test x$ac_cv_sizeof_int != x ; then break; fi
48644 done
48645
48646 fi
48647
48648 if test x$ac_cv_sizeof_int = x ; then
48649   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
48650 echo "$as_me: error: cannot determine a size for int" >&2;}
48651    { (exit 1); exit 1; }; }
48652 fi
48653 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
48654 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
48655
48656 cat >>confdefs.h <<_ACEOF
48657 #define SIZEOF_INT $ac_cv_sizeof_int
48658 _ACEOF
48659
48660
48661 echo "$as_me:$LINENO: checking size of long" >&5
48662 echo $ECHO_N "checking size of long... $ECHO_C" >&6
48663 if test "${ac_cv_sizeof_long+set}" = set; then
48664   echo $ECHO_N "(cached) $ECHO_C" >&6
48665 else
48666   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48667   cat >conftest.$ac_ext <<_ACEOF
48668 /* confdefs.h.  */
48669 _ACEOF
48670 cat confdefs.h >>conftest.$ac_ext
48671 cat >>conftest.$ac_ext <<_ACEOF
48672 /* end confdefs.h.  */
48673 #include "confdefs.h"
48674 #include <stdlib.h>
48675 #include <sys/types.h>
48676
48677
48678 int
48679 main ()
48680 {
48681 switch (0) case 0: case (sizeof (long) == $ac_size):;
48682   ;
48683   return 0;
48684 }
48685 _ACEOF
48686 rm -f conftest.$ac_objext
48687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48688   (eval $ac_compile) 2>conftest.er1
48689   ac_status=$?
48690   grep -v '^ *+' conftest.er1 >conftest.err
48691   rm -f conftest.er1
48692   cat conftest.err >&5
48693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48694   (exit $ac_status); } &&
48695          { ac_try='test -z "$ac_c_werror_flag"
48696                          || test ! -s conftest.err'
48697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48698   (eval $ac_try) 2>&5
48699   ac_status=$?
48700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48701   (exit $ac_status); }; } &&
48702          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
48708   ac_cv_sizeof_long=$ac_size
48709 else
48710   echo "$as_me: failed program was:" >&5
48711 sed 's/^/| /' conftest.$ac_ext >&5
48712
48713 fi
48714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48715   if test x$ac_cv_sizeof_long != x ; then break; fi
48716 done
48717
48718 fi
48719
48720 if test x$ac_cv_sizeof_long = x ; then
48721   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
48722 echo "$as_me: error: cannot determine a size for long" >&2;}
48723    { (exit 1); exit 1; }; }
48724 fi
48725 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
48726 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
48727
48728 cat >>confdefs.h <<_ACEOF
48729 #define SIZEOF_LONG $ac_cv_sizeof_long
48730 _ACEOF
48731
48732
48733 echo "$as_me:$LINENO: checking size of wchar_t" >&5
48734 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
48735 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
48736   echo $ECHO_N "(cached) $ECHO_C" >&6
48737 else
48738   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48739   cat >conftest.$ac_ext <<_ACEOF
48740 /* confdefs.h.  */
48741 _ACEOF
48742 cat confdefs.h >>conftest.$ac_ext
48743 cat >>conftest.$ac_ext <<_ACEOF
48744 /* end confdefs.h.  */
48745 #include "confdefs.h"
48746 #include <stdlib.h>
48747 #include <sys/types.h>
48748
48749
48750 int
48751 main ()
48752 {
48753 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
48754   ;
48755   return 0;
48756 }
48757 _ACEOF
48758 rm -f conftest.$ac_objext
48759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48760   (eval $ac_compile) 2>conftest.er1
48761   ac_status=$?
48762   grep -v '^ *+' conftest.er1 >conftest.err
48763   rm -f conftest.er1
48764   cat conftest.err >&5
48765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48766   (exit $ac_status); } &&
48767          { ac_try='test -z "$ac_c_werror_flag"
48768                          || test ! -s conftest.err'
48769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48770   (eval $ac_try) 2>&5
48771   ac_status=$?
48772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48773   (exit $ac_status); }; } &&
48774          { ac_try='test -s conftest.$ac_objext'
48775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48776   (eval $ac_try) 2>&5
48777   ac_status=$?
48778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48779   (exit $ac_status); }; }; then
48780   ac_cv_sizeof_wchar_t=$ac_size
48781 else
48782   echo "$as_me: failed program was:" >&5
48783 sed 's/^/| /' conftest.$ac_ext >&5
48784
48785 fi
48786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48787   if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
48788 done
48789
48790 fi
48791
48792 if test x$ac_cv_sizeof_wchar_t = x ; then
48793   { { echo "$as_me:$LINENO: error: cannot determine a size for wchar_t" >&5
48794 echo "$as_me: error: cannot determine a size for wchar_t" >&2;}
48795    { (exit 1); exit 1; }; }
48796 fi
48797 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
48798 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
48799
48800 cat >>confdefs.h <<_ACEOF
48801 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
48802 _ACEOF
48803
48804
48805
48806 if test "$ac_cv_sizeof_int" -lt 4 ; then
48807         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
48808 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
48809
48810         cat >>confdefs.h <<\_ACEOF
48811 #define LBER_INT_T long
48812 _ACEOF
48813
48814 else
48815         cat >>confdefs.h <<\_ACEOF
48816 #define LBER_INT_T int
48817 _ACEOF
48818
48819 fi
48820
48821 cat >>confdefs.h <<\_ACEOF
48822 #define LBER_LEN_T long
48823 _ACEOF
48824
48825 cat >>confdefs.h <<\_ACEOF
48826 #define LBER_SOCKET_T int
48827 _ACEOF
48828
48829 cat >>confdefs.h <<\_ACEOF
48830 #define LBER_TAG_T long
48831 _ACEOF
48832
48833
48834 echo "$as_me:$LINENO: checking for working memcmp" >&5
48835 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
48836 if test "${ac_cv_func_memcmp_working+set}" = set; then
48837   echo $ECHO_N "(cached) $ECHO_C" >&6
48838 else
48839   if test "$cross_compiling" = yes; then
48840   ac_cv_func_memcmp_working=no
48841 else
48842   cat >conftest.$ac_ext <<_ACEOF
48843 /* confdefs.h.  */
48844 _ACEOF
48845 cat confdefs.h >>conftest.$ac_ext
48846 cat >>conftest.$ac_ext <<_ACEOF
48847 /* end confdefs.h.  */
48848 $ac_includes_default
48849 int
48850 main ()
48851 {
48852
48853   /* Some versions of memcmp are not 8-bit clean.  */
48854   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
48855   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
48856     exit (1);
48857
48858   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
48859      or more and with at least one buffer not starting on a 4-byte boundary.
48860      William Lewis provided this test program.   */
48861   {
48862     char foo[21];
48863     char bar[21];
48864     int i;
48865     for (i = 0; i < 4; i++)
48866       {
48867         char *a = foo + i;
48868         char *b = bar + i;
48869         strcpy (a, "--------01111111");
48870         strcpy (b, "--------10000000");
48871         if (memcmp (a, b, 16) >= 0)
48872           exit (1);
48873       }
48874     exit (0);
48875   }
48876
48877   ;
48878   return 0;
48879 }
48880 _ACEOF
48881 rm -f conftest$ac_exeext
48882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48883   (eval $ac_link) 2>&5
48884   ac_status=$?
48885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48886   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48888   (eval $ac_try) 2>&5
48889   ac_status=$?
48890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48891   (exit $ac_status); }; }; then
48892   ac_cv_func_memcmp_working=yes
48893 else
48894   echo "$as_me: program exited with status $ac_status" >&5
48895 echo "$as_me: failed program was:" >&5
48896 sed 's/^/| /' conftest.$ac_ext >&5
48897
48898 ( exit $ac_status )
48899 ac_cv_func_memcmp_working=no
48900 fi
48901 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48902 fi
48903 fi
48904 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
48905 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
48906 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
48907     "memcmp.$ac_objext"   | \
48908   *" memcmp.$ac_objext"   | \
48909     "memcmp.$ac_objext "* | \
48910   *" memcmp.$ac_objext "* ) ;;
48911   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
48912 esac
48913
48914
48915
48916 if test $ac_cv_func_memcmp_working = no ; then
48917
48918 cat >>confdefs.h <<\_ACEOF
48919 #define NEED_MEMCMP_REPLACEMENT 1
48920 _ACEOF
48921
48922 fi
48923
48924
48925 for ac_func in strftime
48926 do
48927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48928 echo "$as_me:$LINENO: checking for $ac_func" >&5
48929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48930 if eval "test \"\${$as_ac_var+set}\" = set"; then
48931   echo $ECHO_N "(cached) $ECHO_C" >&6
48932 else
48933   cat >conftest.$ac_ext <<_ACEOF
48934 /* confdefs.h.  */
48935 _ACEOF
48936 cat confdefs.h >>conftest.$ac_ext
48937 cat >>conftest.$ac_ext <<_ACEOF
48938 /* end confdefs.h.  */
48939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48941 #define $ac_func innocuous_$ac_func
48942
48943 /* System header to define __stub macros and hopefully few prototypes,
48944     which can conflict with char $ac_func (); below.
48945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48946     <limits.h> exists even on freestanding compilers.  */
48947
48948 #ifdef __STDC__
48949 # include <limits.h>
48950 #else
48951 # include <assert.h>
48952 #endif
48953
48954 #undef $ac_func
48955
48956 /* Override any gcc2 internal prototype to avoid an error.  */
48957 #ifdef __cplusplus
48958 extern "C"
48959 {
48960 #endif
48961 /* We use char because int might match the return type of a gcc2
48962    builtin and then its argument prototype would still apply.  */
48963 char $ac_func ();
48964 /* The GNU C library defines this for functions which it implements
48965     to always fail with ENOSYS.  Some functions are actually named
48966     something starting with __ and the normal name is an alias.  */
48967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48968 choke me
48969 #else
48970 char (*f) () = $ac_func;
48971 #endif
48972 #ifdef __cplusplus
48973 }
48974 #endif
48975
48976 int
48977 main ()
48978 {
48979 return f != $ac_func;
48980   ;
48981   return 0;
48982 }
48983 _ACEOF
48984 rm -f conftest.$ac_objext conftest$ac_exeext
48985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48986   (eval $ac_link) 2>conftest.er1
48987   ac_status=$?
48988   grep -v '^ *+' conftest.er1 >conftest.err
48989   rm -f conftest.er1
48990   cat conftest.err >&5
48991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48992   (exit $ac_status); } &&
48993          { ac_try='test -z "$ac_c_werror_flag"
48994                          || test ! -s conftest.err'
48995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48996   (eval $ac_try) 2>&5
48997   ac_status=$?
48998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48999   (exit $ac_status); }; } &&
49000          { ac_try='test -s conftest$ac_exeext'
49001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49002   (eval $ac_try) 2>&5
49003   ac_status=$?
49004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49005   (exit $ac_status); }; }; then
49006   eval "$as_ac_var=yes"
49007 else
49008   echo "$as_me: failed program was:" >&5
49009 sed 's/^/| /' conftest.$ac_ext >&5
49010
49011 eval "$as_ac_var=no"
49012 fi
49013 rm -f conftest.err conftest.$ac_objext \
49014       conftest$ac_exeext conftest.$ac_ext
49015 fi
49016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49018 if test `eval echo '${'$as_ac_var'}'` = yes; then
49019   cat >>confdefs.h <<_ACEOF
49020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49021 _ACEOF
49022
49023 else
49024   # strftime is in -lintl on SCO UNIX.
49025 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
49026 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
49027 if test "${ac_cv_lib_intl_strftime+set}" = set; then
49028   echo $ECHO_N "(cached) $ECHO_C" >&6
49029 else
49030   ac_check_lib_save_LIBS=$LIBS
49031 LIBS="-lintl  $LIBS"
49032 cat >conftest.$ac_ext <<_ACEOF
49033 /* confdefs.h.  */
49034 _ACEOF
49035 cat confdefs.h >>conftest.$ac_ext
49036 cat >>conftest.$ac_ext <<_ACEOF
49037 /* end confdefs.h.  */
49038
49039 /* Override any gcc2 internal prototype to avoid an error.  */
49040 #ifdef __cplusplus
49041 extern "C"
49042 #endif
49043 /* We use char because int might match the return type of a gcc2
49044    builtin and then its argument prototype would still apply.  */
49045 char strftime ();
49046 int
49047 main ()
49048 {
49049 strftime ();
49050   ;
49051   return 0;
49052 }
49053 _ACEOF
49054 rm -f conftest.$ac_objext conftest$ac_exeext
49055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49056   (eval $ac_link) 2>conftest.er1
49057   ac_status=$?
49058   grep -v '^ *+' conftest.er1 >conftest.err
49059   rm -f conftest.er1
49060   cat conftest.err >&5
49061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49062   (exit $ac_status); } &&
49063          { ac_try='test -z "$ac_c_werror_flag"
49064                          || test ! -s conftest.err'
49065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49066   (eval $ac_try) 2>&5
49067   ac_status=$?
49068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49069   (exit $ac_status); }; } &&
49070          { ac_try='test -s conftest$ac_exeext'
49071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49072   (eval $ac_try) 2>&5
49073   ac_status=$?
49074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49075   (exit $ac_status); }; }; then
49076   ac_cv_lib_intl_strftime=yes
49077 else
49078   echo "$as_me: failed program was:" >&5
49079 sed 's/^/| /' conftest.$ac_ext >&5
49080
49081 ac_cv_lib_intl_strftime=no
49082 fi
49083 rm -f conftest.err conftest.$ac_objext \
49084       conftest$ac_exeext conftest.$ac_ext
49085 LIBS=$ac_check_lib_save_LIBS
49086 fi
49087 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
49088 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
49089 if test $ac_cv_lib_intl_strftime = yes; then
49090   cat >>confdefs.h <<\_ACEOF
49091 #define HAVE_STRFTIME 1
49092 _ACEOF
49093
49094 LIBS="-lintl $LIBS"
49095 fi
49096
49097 fi
49098 done
49099
49100
49101 echo "$as_me:$LINENO: checking for inet_aton()" >&5
49102 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
49103 if test "${ol_cv_func_inet_aton+set}" = set; then
49104   echo $ECHO_N "(cached) $ECHO_C" >&6
49105 else
49106   cat >conftest.$ac_ext <<_ACEOF
49107 /* confdefs.h.  */
49108 _ACEOF
49109 cat confdefs.h >>conftest.$ac_ext
49110 cat >>conftest.$ac_ext <<_ACEOF
49111 /* end confdefs.h.  */
49112
49113 #ifdef HAVE_SYS_TYPES_H
49114 #       include <sys/types.h>
49115 #endif
49116 #ifdef HAVE_SYS_SOCKET_H
49117 #       include <sys/socket.h>
49118 #       ifdef HAVE_SYS_SELECT_H
49119 #               include <sys/select.h>
49120 #       endif
49121 #       include <netinet/in.h>
49122 #       ifdef HAVE_ARPA_INET_H
49123 #               include <arpa/inet.h>
49124 #       endif
49125 #endif
49126
49127 int
49128 main ()
49129 {
49130 struct in_addr in;
49131 int rc = inet_aton( "255.255.255.255", &in );
49132   ;
49133   return 0;
49134 }
49135 _ACEOF
49136 rm -f conftest.$ac_objext conftest$ac_exeext
49137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49138   (eval $ac_link) 2>conftest.er1
49139   ac_status=$?
49140   grep -v '^ *+' conftest.er1 >conftest.err
49141   rm -f conftest.er1
49142   cat conftest.err >&5
49143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49144   (exit $ac_status); } &&
49145          { ac_try='test -z "$ac_c_werror_flag"
49146                          || test ! -s conftest.err'
49147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49148   (eval $ac_try) 2>&5
49149   ac_status=$?
49150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49151   (exit $ac_status); }; } &&
49152          { ac_try='test -s conftest$ac_exeext'
49153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49154   (eval $ac_try) 2>&5
49155   ac_status=$?
49156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49157   (exit $ac_status); }; }; then
49158   ol_cv_func_inet_aton=yes
49159 else
49160   echo "$as_me: failed program was:" >&5
49161 sed 's/^/| /' conftest.$ac_ext >&5
49162
49163 ol_cv_func_inet_aton=no
49164 fi
49165 rm -f conftest.err conftest.$ac_objext \
49166       conftest$ac_exeext conftest.$ac_ext
49167 fi
49168 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
49169 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
49170   if test $ol_cv_func_inet_aton != no; then
49171
49172 cat >>confdefs.h <<\_ACEOF
49173 #define HAVE_INET_ATON 1
49174 _ACEOF
49175
49176   fi
49177
49178
49179 echo "$as_me:$LINENO: checking for _spawnlp" >&5
49180 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
49181 if test "${ac_cv_func__spawnlp+set}" = set; then
49182   echo $ECHO_N "(cached) $ECHO_C" >&6
49183 else
49184   cat >conftest.$ac_ext <<_ACEOF
49185 /* confdefs.h.  */
49186 _ACEOF
49187 cat confdefs.h >>conftest.$ac_ext
49188 cat >>conftest.$ac_ext <<_ACEOF
49189 /* end confdefs.h.  */
49190 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
49191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49192 #define _spawnlp innocuous__spawnlp
49193
49194 /* System header to define __stub macros and hopefully few prototypes,
49195     which can conflict with char _spawnlp (); below.
49196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49197     <limits.h> exists even on freestanding compilers.  */
49198
49199 #ifdef __STDC__
49200 # include <limits.h>
49201 #else
49202 # include <assert.h>
49203 #endif
49204
49205 #undef _spawnlp
49206
49207 /* Override any gcc2 internal prototype to avoid an error.  */
49208 #ifdef __cplusplus
49209 extern "C"
49210 {
49211 #endif
49212 /* We use char because int might match the return type of a gcc2
49213    builtin and then its argument prototype would still apply.  */
49214 char _spawnlp ();
49215 /* The GNU C library defines this for functions which it implements
49216     to always fail with ENOSYS.  Some functions are actually named
49217     something starting with __ and the normal name is an alias.  */
49218 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
49219 choke me
49220 #else
49221 char (*f) () = _spawnlp;
49222 #endif
49223 #ifdef __cplusplus
49224 }
49225 #endif
49226
49227 int
49228 main ()
49229 {
49230 return f != _spawnlp;
49231   ;
49232   return 0;
49233 }
49234 _ACEOF
49235 rm -f conftest.$ac_objext conftest$ac_exeext
49236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49237   (eval $ac_link) 2>conftest.er1
49238   ac_status=$?
49239   grep -v '^ *+' conftest.er1 >conftest.err
49240   rm -f conftest.er1
49241   cat conftest.err >&5
49242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49243   (exit $ac_status); } &&
49244          { ac_try='test -z "$ac_c_werror_flag"
49245                          || test ! -s conftest.err'
49246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49247   (eval $ac_try) 2>&5
49248   ac_status=$?
49249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49250   (exit $ac_status); }; } &&
49251          { ac_try='test -s conftest$ac_exeext'
49252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49253   (eval $ac_try) 2>&5
49254   ac_status=$?
49255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49256   (exit $ac_status); }; }; then
49257   ac_cv_func__spawnlp=yes
49258 else
49259   echo "$as_me: failed program was:" >&5
49260 sed 's/^/| /' conftest.$ac_ext >&5
49261
49262 ac_cv_func__spawnlp=no
49263 fi
49264 rm -f conftest.err conftest.$ac_objext \
49265       conftest$ac_exeext conftest.$ac_ext
49266 fi
49267 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
49268 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
49269 if test $ac_cv_func__spawnlp = yes; then
49270
49271 cat >>confdefs.h <<\_ACEOF
49272 #define HAVE_SPAWNLP 1
49273 _ACEOF
49274
49275 fi
49276
49277
49278 echo "$as_me:$LINENO: checking for _snprintf" >&5
49279 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
49280 if test "${ac_cv_func__snprintf+set}" = set; then
49281   echo $ECHO_N "(cached) $ECHO_C" >&6
49282 else
49283   cat >conftest.$ac_ext <<_ACEOF
49284 /* confdefs.h.  */
49285 _ACEOF
49286 cat confdefs.h >>conftest.$ac_ext
49287 cat >>conftest.$ac_ext <<_ACEOF
49288 /* end confdefs.h.  */
49289 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
49290    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49291 #define _snprintf innocuous__snprintf
49292
49293 /* System header to define __stub macros and hopefully few prototypes,
49294     which can conflict with char _snprintf (); below.
49295     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49296     <limits.h> exists even on freestanding compilers.  */
49297
49298 #ifdef __STDC__
49299 # include <limits.h>
49300 #else
49301 # include <assert.h>
49302 #endif
49303
49304 #undef _snprintf
49305
49306 /* Override any gcc2 internal prototype to avoid an error.  */
49307 #ifdef __cplusplus
49308 extern "C"
49309 {
49310 #endif
49311 /* We use char because int might match the return type of a gcc2
49312    builtin and then its argument prototype would still apply.  */
49313 char _snprintf ();
49314 /* The GNU C library defines this for functions which it implements
49315     to always fail with ENOSYS.  Some functions are actually named
49316     something starting with __ and the normal name is an alias.  */
49317 #if defined (__stub__snprintf) || defined (__stub____snprintf)
49318 choke me
49319 #else
49320 char (*f) () = _snprintf;
49321 #endif
49322 #ifdef __cplusplus
49323 }
49324 #endif
49325
49326 int
49327 main ()
49328 {
49329 return f != _snprintf;
49330   ;
49331   return 0;
49332 }
49333 _ACEOF
49334 rm -f conftest.$ac_objext conftest$ac_exeext
49335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49336   (eval $ac_link) 2>conftest.er1
49337   ac_status=$?
49338   grep -v '^ *+' conftest.er1 >conftest.err
49339   rm -f conftest.er1
49340   cat conftest.err >&5
49341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49342   (exit $ac_status); } &&
49343          { ac_try='test -z "$ac_c_werror_flag"
49344                          || test ! -s conftest.err'
49345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49346   (eval $ac_try) 2>&5
49347   ac_status=$?
49348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49349   (exit $ac_status); }; } &&
49350          { ac_try='test -s conftest$ac_exeext'
49351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49352   (eval $ac_try) 2>&5
49353   ac_status=$?
49354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49355   (exit $ac_status); }; }; then
49356   ac_cv_func__snprintf=yes
49357 else
49358   echo "$as_me: failed program was:" >&5
49359 sed 's/^/| /' conftest.$ac_ext >&5
49360
49361 ac_cv_func__snprintf=no
49362 fi
49363 rm -f conftest.err conftest.$ac_objext \
49364       conftest$ac_exeext conftest.$ac_ext
49365 fi
49366 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
49367 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
49368 if test $ac_cv_func__snprintf = yes; then
49369   ac_cv_func_snprintf=yes
49370
49371 cat >>confdefs.h <<\_ACEOF
49372 #define snprintf _snprintf
49373 _ACEOF
49374
49375
49376 fi
49377
49378
49379 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
49380 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
49381 if test "${ac_cv_func__vsnprintf+set}" = set; then
49382   echo $ECHO_N "(cached) $ECHO_C" >&6
49383 else
49384   cat >conftest.$ac_ext <<_ACEOF
49385 /* confdefs.h.  */
49386 _ACEOF
49387 cat confdefs.h >>conftest.$ac_ext
49388 cat >>conftest.$ac_ext <<_ACEOF
49389 /* end confdefs.h.  */
49390 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
49391    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49392 #define _vsnprintf innocuous__vsnprintf
49393
49394 /* System header to define __stub macros and hopefully few prototypes,
49395     which can conflict with char _vsnprintf (); below.
49396     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49397     <limits.h> exists even on freestanding compilers.  */
49398
49399 #ifdef __STDC__
49400 # include <limits.h>
49401 #else
49402 # include <assert.h>
49403 #endif
49404
49405 #undef _vsnprintf
49406
49407 /* Override any gcc2 internal prototype to avoid an error.  */
49408 #ifdef __cplusplus
49409 extern "C"
49410 {
49411 #endif
49412 /* We use char because int might match the return type of a gcc2
49413    builtin and then its argument prototype would still apply.  */
49414 char _vsnprintf ();
49415 /* The GNU C library defines this for functions which it implements
49416     to always fail with ENOSYS.  Some functions are actually named
49417     something starting with __ and the normal name is an alias.  */
49418 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
49419 choke me
49420 #else
49421 char (*f) () = _vsnprintf;
49422 #endif
49423 #ifdef __cplusplus
49424 }
49425 #endif
49426
49427 int
49428 main ()
49429 {
49430 return f != _vsnprintf;
49431   ;
49432   return 0;
49433 }
49434 _ACEOF
49435 rm -f conftest.$ac_objext conftest$ac_exeext
49436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49437   (eval $ac_link) 2>conftest.er1
49438   ac_status=$?
49439   grep -v '^ *+' conftest.er1 >conftest.err
49440   rm -f conftest.er1
49441   cat conftest.err >&5
49442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49443   (exit $ac_status); } &&
49444          { ac_try='test -z "$ac_c_werror_flag"
49445                          || test ! -s conftest.err'
49446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49447   (eval $ac_try) 2>&5
49448   ac_status=$?
49449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49450   (exit $ac_status); }; } &&
49451          { ac_try='test -s conftest$ac_exeext'
49452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49453   (eval $ac_try) 2>&5
49454   ac_status=$?
49455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49456   (exit $ac_status); }; }; then
49457   ac_cv_func__vsnprintf=yes
49458 else
49459   echo "$as_me: failed program was:" >&5
49460 sed 's/^/| /' conftest.$ac_ext >&5
49461
49462 ac_cv_func__vsnprintf=no
49463 fi
49464 rm -f conftest.err conftest.$ac_objext \
49465       conftest$ac_exeext conftest.$ac_ext
49466 fi
49467 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
49468 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
49469 if test $ac_cv_func__vsnprintf = yes; then
49470   ac_cv_func_vsnprintf=yes
49471
49472 cat >>confdefs.h <<\_ACEOF
49473 #define vsnprintf _vsnprintf
49474 _ACEOF
49475
49476
49477 fi
49478
49479
49480
49481 for ac_func in vprintf
49482 do
49483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49484 echo "$as_me:$LINENO: checking for $ac_func" >&5
49485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49486 if eval "test \"\${$as_ac_var+set}\" = set"; then
49487   echo $ECHO_N "(cached) $ECHO_C" >&6
49488 else
49489   cat >conftest.$ac_ext <<_ACEOF
49490 /* confdefs.h.  */
49491 _ACEOF
49492 cat confdefs.h >>conftest.$ac_ext
49493 cat >>conftest.$ac_ext <<_ACEOF
49494 /* end confdefs.h.  */
49495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49497 #define $ac_func innocuous_$ac_func
49498
49499 /* System header to define __stub macros and hopefully few prototypes,
49500     which can conflict with char $ac_func (); below.
49501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49502     <limits.h> exists even on freestanding compilers.  */
49503
49504 #ifdef __STDC__
49505 # include <limits.h>
49506 #else
49507 # include <assert.h>
49508 #endif
49509
49510 #undef $ac_func
49511
49512 /* Override any gcc2 internal prototype to avoid an error.  */
49513 #ifdef __cplusplus
49514 extern "C"
49515 {
49516 #endif
49517 /* We use char because int might match the return type of a gcc2
49518    builtin and then its argument prototype would still apply.  */
49519 char $ac_func ();
49520 /* The GNU C library defines this for functions which it implements
49521     to always fail with ENOSYS.  Some functions are actually named
49522     something starting with __ and the normal name is an alias.  */
49523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49524 choke me
49525 #else
49526 char (*f) () = $ac_func;
49527 #endif
49528 #ifdef __cplusplus
49529 }
49530 #endif
49531
49532 int
49533 main ()
49534 {
49535 return f != $ac_func;
49536   ;
49537   return 0;
49538 }
49539 _ACEOF
49540 rm -f conftest.$ac_objext conftest$ac_exeext
49541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49542   (eval $ac_link) 2>conftest.er1
49543   ac_status=$?
49544   grep -v '^ *+' conftest.er1 >conftest.err
49545   rm -f conftest.er1
49546   cat conftest.err >&5
49547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49548   (exit $ac_status); } &&
49549          { ac_try='test -z "$ac_c_werror_flag"
49550                          || test ! -s conftest.err'
49551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49552   (eval $ac_try) 2>&5
49553   ac_status=$?
49554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49555   (exit $ac_status); }; } &&
49556          { ac_try='test -s conftest$ac_exeext'
49557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49558   (eval $ac_try) 2>&5
49559   ac_status=$?
49560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49561   (exit $ac_status); }; }; then
49562   eval "$as_ac_var=yes"
49563 else
49564   echo "$as_me: failed program was:" >&5
49565 sed 's/^/| /' conftest.$ac_ext >&5
49566
49567 eval "$as_ac_var=no"
49568 fi
49569 rm -f conftest.err conftest.$ac_objext \
49570       conftest$ac_exeext conftest.$ac_ext
49571 fi
49572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49574 if test `eval echo '${'$as_ac_var'}'` = yes; then
49575   cat >>confdefs.h <<_ACEOF
49576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49577 _ACEOF
49578
49579 echo "$as_me:$LINENO: checking for _doprnt" >&5
49580 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
49581 if test "${ac_cv_func__doprnt+set}" = set; then
49582   echo $ECHO_N "(cached) $ECHO_C" >&6
49583 else
49584   cat >conftest.$ac_ext <<_ACEOF
49585 /* confdefs.h.  */
49586 _ACEOF
49587 cat confdefs.h >>conftest.$ac_ext
49588 cat >>conftest.$ac_ext <<_ACEOF
49589 /* end confdefs.h.  */
49590 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
49591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49592 #define _doprnt innocuous__doprnt
49593
49594 /* System header to define __stub macros and hopefully few prototypes,
49595     which can conflict with char _doprnt (); below.
49596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49597     <limits.h> exists even on freestanding compilers.  */
49598
49599 #ifdef __STDC__
49600 # include <limits.h>
49601 #else
49602 # include <assert.h>
49603 #endif
49604
49605 #undef _doprnt
49606
49607 /* Override any gcc2 internal prototype to avoid an error.  */
49608 #ifdef __cplusplus
49609 extern "C"
49610 {
49611 #endif
49612 /* We use char because int might match the return type of a gcc2
49613    builtin and then its argument prototype would still apply.  */
49614 char _doprnt ();
49615 /* The GNU C library defines this for functions which it implements
49616     to always fail with ENOSYS.  Some functions are actually named
49617     something starting with __ and the normal name is an alias.  */
49618 #if defined (__stub__doprnt) || defined (__stub____doprnt)
49619 choke me
49620 #else
49621 char (*f) () = _doprnt;
49622 #endif
49623 #ifdef __cplusplus
49624 }
49625 #endif
49626
49627 int
49628 main ()
49629 {
49630 return f != _doprnt;
49631   ;
49632   return 0;
49633 }
49634 _ACEOF
49635 rm -f conftest.$ac_objext conftest$ac_exeext
49636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49637   (eval $ac_link) 2>conftest.er1
49638   ac_status=$?
49639   grep -v '^ *+' conftest.er1 >conftest.err
49640   rm -f conftest.er1
49641   cat conftest.err >&5
49642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49643   (exit $ac_status); } &&
49644          { ac_try='test -z "$ac_c_werror_flag"
49645                          || test ! -s conftest.err'
49646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49647   (eval $ac_try) 2>&5
49648   ac_status=$?
49649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49650   (exit $ac_status); }; } &&
49651          { ac_try='test -s conftest$ac_exeext'
49652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49653   (eval $ac_try) 2>&5
49654   ac_status=$?
49655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49656   (exit $ac_status); }; }; then
49657   ac_cv_func__doprnt=yes
49658 else
49659   echo "$as_me: failed program was:" >&5
49660 sed 's/^/| /' conftest.$ac_ext >&5
49661
49662 ac_cv_func__doprnt=no
49663 fi
49664 rm -f conftest.err conftest.$ac_objext \
49665       conftest$ac_exeext conftest.$ac_ext
49666 fi
49667 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
49668 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
49669 if test $ac_cv_func__doprnt = yes; then
49670
49671 cat >>confdefs.h <<\_ACEOF
49672 #define HAVE_DOPRNT 1
49673 _ACEOF
49674
49675 fi
49676
49677 fi
49678 done
49679
49680
49681
49682 if test $ac_cv_func_vprintf = yes ; then
49683
49684
49685 for ac_func in snprintf vsnprintf
49686 do
49687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49688 echo "$as_me:$LINENO: checking for $ac_func" >&5
49689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49690 if eval "test \"\${$as_ac_var+set}\" = set"; then
49691   echo $ECHO_N "(cached) $ECHO_C" >&6
49692 else
49693   cat >conftest.$ac_ext <<_ACEOF
49694 /* confdefs.h.  */
49695 _ACEOF
49696 cat confdefs.h >>conftest.$ac_ext
49697 cat >>conftest.$ac_ext <<_ACEOF
49698 /* end confdefs.h.  */
49699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49701 #define $ac_func innocuous_$ac_func
49702
49703 /* System header to define __stub macros and hopefully few prototypes,
49704     which can conflict with char $ac_func (); below.
49705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49706     <limits.h> exists even on freestanding compilers.  */
49707
49708 #ifdef __STDC__
49709 # include <limits.h>
49710 #else
49711 # include <assert.h>
49712 #endif
49713
49714 #undef $ac_func
49715
49716 /* Override any gcc2 internal prototype to avoid an error.  */
49717 #ifdef __cplusplus
49718 extern "C"
49719 {
49720 #endif
49721 /* We use char because int might match the return type of a gcc2
49722    builtin and then its argument prototype would still apply.  */
49723 char $ac_func ();
49724 /* The GNU C library defines this for functions which it implements
49725     to always fail with ENOSYS.  Some functions are actually named
49726     something starting with __ and the normal name is an alias.  */
49727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49728 choke me
49729 #else
49730 char (*f) () = $ac_func;
49731 #endif
49732 #ifdef __cplusplus
49733 }
49734 #endif
49735
49736 int
49737 main ()
49738 {
49739 return f != $ac_func;
49740   ;
49741   return 0;
49742 }
49743 _ACEOF
49744 rm -f conftest.$ac_objext conftest$ac_exeext
49745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49746   (eval $ac_link) 2>conftest.er1
49747   ac_status=$?
49748   grep -v '^ *+' conftest.er1 >conftest.err
49749   rm -f conftest.er1
49750   cat conftest.err >&5
49751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49752   (exit $ac_status); } &&
49753          { ac_try='test -z "$ac_c_werror_flag"
49754                          || test ! -s conftest.err'
49755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49756   (eval $ac_try) 2>&5
49757   ac_status=$?
49758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49759   (exit $ac_status); }; } &&
49760          { ac_try='test -s conftest$ac_exeext'
49761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49762   (eval $ac_try) 2>&5
49763   ac_status=$?
49764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49765   (exit $ac_status); }; }; then
49766   eval "$as_ac_var=yes"
49767 else
49768   echo "$as_me: failed program was:" >&5
49769 sed 's/^/| /' conftest.$ac_ext >&5
49770
49771 eval "$as_ac_var=no"
49772 fi
49773 rm -f conftest.err conftest.$ac_objext \
49774       conftest$ac_exeext conftest.$ac_ext
49775 fi
49776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49778 if test `eval echo '${'$as_ac_var'}'` = yes; then
49779   cat >>confdefs.h <<_ACEOF
49780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49781 _ACEOF
49782
49783 fi
49784 done
49785
49786 fi
49787
49788
49789
49790
49791
49792
49793
49794
49795
49796
49797
49798
49799
49800
49801
49802
49803
49804
49805
49806
49807
49808
49809
49810
49811
49812
49813
49814
49815
49816
49817
49818
49819
49820
49821
49822
49823
49824
49825
49826
49827
49828
49829
49830
49831
49832
49833
49834
49835
49836
49837
49838
49839
49840
49841 for ac_func in \
49842         bcopy                   \
49843         closesocket             \
49844         chroot                  \
49845         endgrent                \
49846         endpwent                \
49847         fcntl                   \
49848         flock                   \
49849         fstat                   \
49850         getdtablesize   \
49851         getgrgid                \
49852         gethostname             \
49853         getpass                 \
49854         getpassphrase   \
49855         getpwuid                \
49856         getpwnam                \
49857         getspnam                \
49858         gettimeofday    \
49859         initgroups              \
49860         lockf                   \
49861         memcpy                  \
49862         memmove                 \
49863         mkstemp                 \
49864         mktemp                  \
49865         pipe                    \
49866         read                    \
49867         recv                    \
49868         recvfrom                \
49869         setpwfile               \
49870         setgid                  \
49871         setegid                 \
49872         setsid                  \
49873         setuid                  \
49874         seteuid                 \
49875         signal                  \
49876         strdup                  \
49877         strpbrk                 \
49878         strrchr                 \
49879         strsep                  \
49880         strstr                  \
49881         strtol                  \
49882         strtoul                 \
49883         strtoq                  \
49884         strtouq                 \
49885         strtoll                 \
49886         strspn                  \
49887         sysconf                 \
49888         usleep                  \
49889         waitpid                 \
49890         wait4                   \
49891         write                   \
49892         send                    \
49893         sendmsg                 \
49894         sendto                  \
49895
49896 do
49897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49898 echo "$as_me:$LINENO: checking for $ac_func" >&5
49899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49900 if eval "test \"\${$as_ac_var+set}\" = set"; then
49901   echo $ECHO_N "(cached) $ECHO_C" >&6
49902 else
49903   cat >conftest.$ac_ext <<_ACEOF
49904 /* confdefs.h.  */
49905 _ACEOF
49906 cat confdefs.h >>conftest.$ac_ext
49907 cat >>conftest.$ac_ext <<_ACEOF
49908 /* end confdefs.h.  */
49909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49911 #define $ac_func innocuous_$ac_func
49912
49913 /* System header to define __stub macros and hopefully few prototypes,
49914     which can conflict with char $ac_func (); below.
49915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49916     <limits.h> exists even on freestanding compilers.  */
49917
49918 #ifdef __STDC__
49919 # include <limits.h>
49920 #else
49921 # include <assert.h>
49922 #endif
49923
49924 #undef $ac_func
49925
49926 /* Override any gcc2 internal prototype to avoid an error.  */
49927 #ifdef __cplusplus
49928 extern "C"
49929 {
49930 #endif
49931 /* We use char because int might match the return type of a gcc2
49932    builtin and then its argument prototype would still apply.  */
49933 char $ac_func ();
49934 /* The GNU C library defines this for functions which it implements
49935     to always fail with ENOSYS.  Some functions are actually named
49936     something starting with __ and the normal name is an alias.  */
49937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49938 choke me
49939 #else
49940 char (*f) () = $ac_func;
49941 #endif
49942 #ifdef __cplusplus
49943 }
49944 #endif
49945
49946 int
49947 main ()
49948 {
49949 return f != $ac_func;
49950   ;
49951   return 0;
49952 }
49953 _ACEOF
49954 rm -f conftest.$ac_objext conftest$ac_exeext
49955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49956   (eval $ac_link) 2>conftest.er1
49957   ac_status=$?
49958   grep -v '^ *+' conftest.er1 >conftest.err
49959   rm -f conftest.er1
49960   cat conftest.err >&5
49961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49962   (exit $ac_status); } &&
49963          { ac_try='test -z "$ac_c_werror_flag"
49964                          || test ! -s conftest.err'
49965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49966   (eval $ac_try) 2>&5
49967   ac_status=$?
49968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49969   (exit $ac_status); }; } &&
49970          { ac_try='test -s conftest$ac_exeext'
49971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49972   (eval $ac_try) 2>&5
49973   ac_status=$?
49974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49975   (exit $ac_status); }; }; then
49976   eval "$as_ac_var=yes"
49977 else
49978   echo "$as_me: failed program was:" >&5
49979 sed 's/^/| /' conftest.$ac_ext >&5
49980
49981 eval "$as_ac_var=no"
49982 fi
49983 rm -f conftest.err conftest.$ac_objext \
49984       conftest$ac_exeext conftest.$ac_ext
49985 fi
49986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49988 if test `eval echo '${'$as_ac_var'}'` = yes; then
49989   cat >>confdefs.h <<_ACEOF
49990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49991 _ACEOF
49992
49993 fi
49994 done
49995
49996
49997
49998
49999 for ac_func in getopt getpeereid
50000 do
50001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50002 echo "$as_me:$LINENO: checking for $ac_func" >&5
50003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50004 if eval "test \"\${$as_ac_var+set}\" = set"; then
50005   echo $ECHO_N "(cached) $ECHO_C" >&6
50006 else
50007   cat >conftest.$ac_ext <<_ACEOF
50008 /* confdefs.h.  */
50009 _ACEOF
50010 cat confdefs.h >>conftest.$ac_ext
50011 cat >>conftest.$ac_ext <<_ACEOF
50012 /* end confdefs.h.  */
50013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50014    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50015 #define $ac_func innocuous_$ac_func
50016
50017 /* System header to define __stub macros and hopefully few prototypes,
50018     which can conflict with char $ac_func (); below.
50019     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50020     <limits.h> exists even on freestanding compilers.  */
50021
50022 #ifdef __STDC__
50023 # include <limits.h>
50024 #else
50025 # include <assert.h>
50026 #endif
50027
50028 #undef $ac_func
50029
50030 /* Override any gcc2 internal prototype to avoid an error.  */
50031 #ifdef __cplusplus
50032 extern "C"
50033 {
50034 #endif
50035 /* We use char because int might match the return type of a gcc2
50036    builtin and then its argument prototype would still apply.  */
50037 char $ac_func ();
50038 /* The GNU C library defines this for functions which it implements
50039     to always fail with ENOSYS.  Some functions are actually named
50040     something starting with __ and the normal name is an alias.  */
50041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50042 choke me
50043 #else
50044 char (*f) () = $ac_func;
50045 #endif
50046 #ifdef __cplusplus
50047 }
50048 #endif
50049
50050 int
50051 main ()
50052 {
50053 return f != $ac_func;
50054   ;
50055   return 0;
50056 }
50057 _ACEOF
50058 rm -f conftest.$ac_objext conftest$ac_exeext
50059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50060   (eval $ac_link) 2>conftest.er1
50061   ac_status=$?
50062   grep -v '^ *+' conftest.er1 >conftest.err
50063   rm -f conftest.er1
50064   cat conftest.err >&5
50065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50066   (exit $ac_status); } &&
50067          { ac_try='test -z "$ac_c_werror_flag"
50068                          || test ! -s conftest.err'
50069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50070   (eval $ac_try) 2>&5
50071   ac_status=$?
50072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50073   (exit $ac_status); }; } &&
50074          { ac_try='test -s conftest$ac_exeext'
50075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50076   (eval $ac_try) 2>&5
50077   ac_status=$?
50078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50079   (exit $ac_status); }; }; then
50080   eval "$as_ac_var=yes"
50081 else
50082   echo "$as_me: failed program was:" >&5
50083 sed 's/^/| /' conftest.$ac_ext >&5
50084
50085 eval "$as_ac_var=no"
50086 fi
50087 rm -f conftest.err conftest.$ac_objext \
50088       conftest$ac_exeext conftest.$ac_ext
50089 fi
50090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50092 if test `eval echo '${'$as_ac_var'}'` = yes; then
50093   cat >>confdefs.h <<_ACEOF
50094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50095 _ACEOF
50096
50097 else
50098   case $LIBOBJS in
50099     "$ac_func.$ac_objext"   | \
50100   *" $ac_func.$ac_objext"   | \
50101     "$ac_func.$ac_objext "* | \
50102   *" $ac_func.$ac_objext "* ) ;;
50103   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
50104 esac
50105
50106 fi
50107 done
50108
50109
50110
50111 if test "$ac_cv_func_getopt" != yes; then
50112         LIBSRCS="$LIBSRCS getopt.c"
50113 fi
50114 if test "$ac_cv_func_getpeereid" != yes; then
50115         echo "$as_me:$LINENO: checking for msg_accrights in msghdr" >&5
50116 echo $ECHO_N "checking for msg_accrights in msghdr... $ECHO_C" >&6
50117 if test "${ol_cv_msghdr_msg_accrights+set}" = set; then
50118   echo $ECHO_N "(cached) $ECHO_C" >&6
50119 else
50120   cat >conftest.$ac_ext <<_ACEOF
50121 /* confdefs.h.  */
50122 _ACEOF
50123 cat confdefs.h >>conftest.$ac_ext
50124 cat >>conftest.$ac_ext <<_ACEOF
50125 /* end confdefs.h.  */
50126 #include <sys/socket.h>
50127 int
50128 main ()
50129 {
50130 struct msghdr m; m.msg_accrightslen=0
50131   ;
50132   return 0;
50133 }
50134 _ACEOF
50135 rm -f conftest.$ac_objext
50136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50137   (eval $ac_compile) 2>conftest.er1
50138   ac_status=$?
50139   grep -v '^ *+' conftest.er1 >conftest.err
50140   rm -f conftest.er1
50141   cat conftest.err >&5
50142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50143   (exit $ac_status); } &&
50144          { ac_try='test -z "$ac_c_werror_flag"
50145                          || test ! -s conftest.err'
50146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50147   (eval $ac_try) 2>&5
50148   ac_status=$?
50149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50150   (exit $ac_status); }; } &&
50151          { ac_try='test -s conftest.$ac_objext'
50152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50153   (eval $ac_try) 2>&5
50154   ac_status=$?
50155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50156   (exit $ac_status); }; }; then
50157   ol_cv_msghdr_msg_accrights=yes
50158 else
50159   echo "$as_me: failed program was:" >&5
50160 sed 's/^/| /' conftest.$ac_ext >&5
50161
50162 ol_cv_msghdr_msg_accrights=no
50163 fi
50164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50165
50166 fi
50167 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_accrights" >&5
50168 echo "${ECHO_T}$ol_cv_msghdr_msg_accrights" >&6
50169   if test $ol_cv_msghdr_msg_accrights = "yes" ; then
50170
50171 cat >>confdefs.h <<\_ACEOF
50172 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
50173 _ACEOF
50174
50175   fi
50176
50177         if test "$ac_cv_func_getpeereid" != yes; then
50178                 echo "$as_me:$LINENO: checking for msg_control in msghdr" >&5
50179 echo $ECHO_N "checking for msg_control in msghdr... $ECHO_C" >&6
50180 if test "${ol_cv_msghdr_msg_control+set}" = set; then
50181   echo $ECHO_N "(cached) $ECHO_C" >&6
50182 else
50183   cat >conftest.$ac_ext <<_ACEOF
50184 /* confdefs.h.  */
50185 _ACEOF
50186 cat confdefs.h >>conftest.$ac_ext
50187 cat >>conftest.$ac_ext <<_ACEOF
50188 /* end confdefs.h.  */
50189 #include <sys/socket.h>
50190 int
50191 main ()
50192 {
50193 struct msghdr m; m.msg_control=(struct cmsghdr *)0
50194   ;
50195   return 0;
50196 }
50197 _ACEOF
50198 rm -f conftest.$ac_objext
50199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50200   (eval $ac_compile) 2>conftest.er1
50201   ac_status=$?
50202   grep -v '^ *+' conftest.er1 >conftest.err
50203   rm -f conftest.er1
50204   cat conftest.err >&5
50205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50206   (exit $ac_status); } &&
50207          { ac_try='test -z "$ac_c_werror_flag"
50208                          || test ! -s conftest.err'
50209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50210   (eval $ac_try) 2>&5
50211   ac_status=$?
50212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50213   (exit $ac_status); }; } &&
50214          { ac_try='test -s conftest.$ac_objext'
50215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50216   (eval $ac_try) 2>&5
50217   ac_status=$?
50218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50219   (exit $ac_status); }; }; then
50220   ol_cv_msghdr_msg_control=yes
50221 else
50222   echo "$as_me: failed program was:" >&5
50223 sed 's/^/| /' conftest.$ac_ext >&5
50224
50225 ol_cv_msghdr_msg_control=no
50226 fi
50227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50228
50229 fi
50230 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_control" >&5
50231 echo "${ECHO_T}$ol_cv_msghdr_msg_control" >&6
50232   if test $ol_cv_msghdr_msg_control = "yes" ; then
50233
50234 cat >>confdefs.h <<\_ACEOF
50235 #define HAVE_MSGHDR_MSG_CONTROL 1
50236 _ACEOF
50237
50238   fi
50239
50240         fi
50241         LIBSRCS="$LIBSRCS getpeereid.c"
50242 fi
50243 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
50244         if test "$ac_cv_func_snprintf" != yes; then
50245
50246 cat >>confdefs.h <<\_ACEOF
50247 #define snprintf ber_pvt_snprintf
50248 _ACEOF
50249
50250         fi
50251         if test "$ac_cv_func_vsnprintf" != yes; then
50252
50253 cat >>confdefs.h <<\_ACEOF
50254 #define vsnprintf ber_pvt_vsnprintf
50255 _ACEOF
50256
50257         fi
50258 fi
50259
50260
50261 if test "$ol_enable_slapi" != no ; then
50262
50263 for ac_header in ltdl.h
50264 do
50265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50267   echo "$as_me:$LINENO: checking for $ac_header" >&5
50268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50270   echo $ECHO_N "(cached) $ECHO_C" >&6
50271 fi
50272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50274 else
50275   # Is the header compilable?
50276 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50278 cat >conftest.$ac_ext <<_ACEOF
50279 /* confdefs.h.  */
50280 _ACEOF
50281 cat confdefs.h >>conftest.$ac_ext
50282 cat >>conftest.$ac_ext <<_ACEOF
50283 /* end confdefs.h.  */
50284 $ac_includes_default
50285 #include <$ac_header>
50286 _ACEOF
50287 rm -f conftest.$ac_objext
50288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50289   (eval $ac_compile) 2>conftest.er1
50290   ac_status=$?
50291   grep -v '^ *+' conftest.er1 >conftest.err
50292   rm -f conftest.er1
50293   cat conftest.err >&5
50294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50295   (exit $ac_status); } &&
50296          { ac_try='test -z "$ac_c_werror_flag"
50297                          || test ! -s conftest.err'
50298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50299   (eval $ac_try) 2>&5
50300   ac_status=$?
50301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50302   (exit $ac_status); }; } &&
50303          { ac_try='test -s conftest.$ac_objext'
50304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50305   (eval $ac_try) 2>&5
50306   ac_status=$?
50307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50308   (exit $ac_status); }; }; then
50309   ac_header_compiler=yes
50310 else
50311   echo "$as_me: failed program was:" >&5
50312 sed 's/^/| /' conftest.$ac_ext >&5
50313
50314 ac_header_compiler=no
50315 fi
50316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50318 echo "${ECHO_T}$ac_header_compiler" >&6
50319
50320 # Is the header present?
50321 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50323 cat >conftest.$ac_ext <<_ACEOF
50324 /* confdefs.h.  */
50325 _ACEOF
50326 cat confdefs.h >>conftest.$ac_ext
50327 cat >>conftest.$ac_ext <<_ACEOF
50328 /* end confdefs.h.  */
50329 #include <$ac_header>
50330 _ACEOF
50331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50332   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50333   ac_status=$?
50334   grep -v '^ *+' conftest.er1 >conftest.err
50335   rm -f conftest.er1
50336   cat conftest.err >&5
50337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50338   (exit $ac_status); } >/dev/null; then
50339   if test -s conftest.err; then
50340     ac_cpp_err=$ac_c_preproc_warn_flag
50341     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
50342   else
50343     ac_cpp_err=
50344   fi
50345 else
50346   ac_cpp_err=yes
50347 fi
50348 if test -z "$ac_cpp_err"; then
50349   ac_header_preproc=yes
50350 else
50351   echo "$as_me: failed program was:" >&5
50352 sed 's/^/| /' conftest.$ac_ext >&5
50353
50354   ac_header_preproc=no
50355 fi
50356 rm -f conftest.err conftest.$ac_ext
50357 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50358 echo "${ECHO_T}$ac_header_preproc" >&6
50359
50360 # So?  What about this header?
50361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50362   yes:no: )
50363     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50365     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50367     ac_header_preproc=yes
50368     ;;
50369   no:yes:* )
50370     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50372     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
50373 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
50374     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50376     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
50377 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
50378     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50380     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50382     (
50383       cat <<\_ASBOX
50384 ## ------------------------------------------ ##
50385 ## Report this to the AC_PACKAGE_NAME lists.  ##
50386 ## ------------------------------------------ ##
50387 _ASBOX
50388     ) |
50389       sed "s/^/$as_me: WARNING:     /" >&2
50390     ;;
50391 esac
50392 echo "$as_me:$LINENO: checking for $ac_header" >&5
50393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50395   echo $ECHO_N "(cached) $ECHO_C" >&6
50396 else
50397   eval "$as_ac_Header=\$ac_header_preproc"
50398 fi
50399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50401
50402 fi
50403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50404   cat >>confdefs.h <<_ACEOF
50405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50406 _ACEOF
50407
50408 fi
50409
50410 done
50411
50412
50413         if test $ac_cv_header_ltdl_h != yes ; then
50414                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
50415 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
50416    { (exit 1); exit 1; }; }
50417         fi
50418         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
50419 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
50420 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
50421   echo $ECHO_N "(cached) $ECHO_C" >&6
50422 else
50423   ac_check_lib_save_LIBS=$LIBS
50424 LIBS="-lltdl  $LIBS"
50425 cat >conftest.$ac_ext <<_ACEOF
50426 /* confdefs.h.  */
50427 _ACEOF
50428 cat confdefs.h >>conftest.$ac_ext
50429 cat >>conftest.$ac_ext <<_ACEOF
50430 /* end confdefs.h.  */
50431
50432 /* Override any gcc2 internal prototype to avoid an error.  */
50433 #ifdef __cplusplus
50434 extern "C"
50435 #endif
50436 /* We use char because int might match the return type of a gcc2
50437    builtin and then its argument prototype would still apply.  */
50438 char lt_dlinit ();
50439 int
50440 main ()
50441 {
50442 lt_dlinit ();
50443   ;
50444   return 0;
50445 }
50446 _ACEOF
50447 rm -f conftest.$ac_objext conftest$ac_exeext
50448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50449   (eval $ac_link) 2>conftest.er1
50450   ac_status=$?
50451   grep -v '^ *+' conftest.er1 >conftest.err
50452   rm -f conftest.er1
50453   cat conftest.err >&5
50454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50455   (exit $ac_status); } &&
50456          { ac_try='test -z "$ac_c_werror_flag"
50457                          || test ! -s conftest.err'
50458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50459   (eval $ac_try) 2>&5
50460   ac_status=$?
50461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50462   (exit $ac_status); }; } &&
50463          { ac_try='test -s conftest$ac_exeext'
50464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50465   (eval $ac_try) 2>&5
50466   ac_status=$?
50467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50468   (exit $ac_status); }; }; then
50469   ac_cv_lib_ltdl_lt_dlinit=yes
50470 else
50471   echo "$as_me: failed program was:" >&5
50472 sed 's/^/| /' conftest.$ac_ext >&5
50473
50474 ac_cv_lib_ltdl_lt_dlinit=no
50475 fi
50476 rm -f conftest.err conftest.$ac_objext \
50477       conftest$ac_exeext conftest.$ac_ext
50478 LIBS=$ac_check_lib_save_LIBS
50479 fi
50480 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
50481 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
50482 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
50483
50484                 SLAPI_LIBS=-lltdl
50485                 LIBSLAPI=libslapi.a
50486                 LIBSLAPITOOLS=../libslapi.a
50487
50488 cat >>confdefs.h <<\_ACEOF
50489 #define HAVE_LIBLTDL 1
50490 _ACEOF
50491
50492
50493 else
50494   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
50495 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
50496    { (exit 1); exit 1; }; }
50497 fi
50498
50499
50500
50501 cat >>confdefs.h <<\_ACEOF
50502 #define LDAP_SLAPI 1
50503 _ACEOF
50504
50505 fi
50506
50507 if test "$ol_enable_debug" != no ; then
50508
50509 cat >>confdefs.h <<\_ACEOF
50510 #define LDAP_DEBUG 1
50511 _ACEOF
50512
50513 fi
50514 if test "$ol_enable_syslog" = yes ; then
50515
50516 cat >>confdefs.h <<\_ACEOF
50517 #define LDAP_SYSLOG 1
50518 _ACEOF
50519
50520 fi
50521 if test "$ol_link_kbind" != no ; then
50522         cat >>confdefs.h <<\_ACEOF
50523 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
50524 _ACEOF
50525
50526 fi
50527 if test "$ol_enable_proctitle" != no ; then
50528
50529 cat >>confdefs.h <<\_ACEOF
50530 #define LDAP_PROCTITLE 1
50531 _ACEOF
50532
50533 fi
50534 if test "$ol_enable_referrals" != no ; then
50535         cat >>confdefs.h <<\_ACEOF
50536 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
50537 _ACEOF
50538
50539 fi
50540 if test "$ol_enable_local" != no; then
50541
50542 cat >>confdefs.h <<\_ACEOF
50543 #define LDAP_PF_LOCAL 1
50544 _ACEOF
50545
50546 fi
50547 if test "$ol_link_ipv6" != no; then
50548
50549 cat >>confdefs.h <<\_ACEOF
50550 #define LDAP_PF_INET6 1
50551 _ACEOF
50552
50553 fi
50554 if test "$ol_enable_cleartext" != no ; then
50555
50556 cat >>confdefs.h <<\_ACEOF
50557 #define SLAPD_CLEARTEXT 1
50558 _ACEOF
50559
50560 fi
50561 if test "$ol_enable_crypt" != no ; then
50562
50563 cat >>confdefs.h <<\_ACEOF
50564 #define SLAPD_CRYPT 1
50565 _ACEOF
50566
50567 fi
50568 if test "$ol_link_spasswd" != no ; then
50569
50570 cat >>confdefs.h <<\_ACEOF
50571 #define SLAPD_SPASSWD 1
50572 _ACEOF
50573
50574 fi
50575 if test "$ol_enable_multimaster" != no ; then
50576
50577 cat >>confdefs.h <<\_ACEOF
50578 #define SLAPD_MULTIMASTER 1
50579 _ACEOF
50580
50581 fi
50582 if test "$ol_enable_rlookups" != no ; then
50583
50584 cat >>confdefs.h <<\_ACEOF
50585 #define SLAPD_RLOOKUPS 1
50586 _ACEOF
50587
50588 fi
50589 if test "$ol_enable_aci" != no ; then
50590
50591 cat >>confdefs.h <<\_ACEOF
50592 #define SLAPD_ACI_ENABLED 1
50593 _ACEOF
50594
50595 fi
50596
50597 if test "$ol_link_modules" != no ; then
50598
50599 cat >>confdefs.h <<\_ACEOF
50600 #define SLAPD_MODULES 1
50601 _ACEOF
50602
50603         BUILD_SLAPD=yes
50604         SLAPD_MODULES_LDFLAGS="-dlopen self"
50605 fi
50606
50607
50608 cat >>confdefs.h <<\_ACEOF
50609 #define SLAPD_MOD_STATIC 1
50610 _ACEOF
50611
50612
50613 cat >>confdefs.h <<\_ACEOF
50614 #define SLAPD_MOD_DYNAMIC 2
50615 _ACEOF
50616
50617
50618 if test "$ol_enable_bdb" != no ; then
50619         BUILD_SLAPD=yes
50620         BUILD_BDB=$ol_enable_bdb
50621         if test "$ol_enable_bdb" = mod ; then
50622                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
50623                 MFLAG=SLAPD_MOD_DYNAMIC
50624         else
50625                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
50626                 MFLAG=SLAPD_MOD_STATIC
50627         fi
50628
50629 cat >>confdefs.h <<_ACEOF
50630 #define SLAPD_BDB $MFLAG
50631 _ACEOF
50632
50633 fi
50634
50635 if test "$ol_enable_dnssrv" != no ; then
50636         BUILD_SLAPD=yes
50637         BUILD_DNSSRV=$ol_enable_dnssrv
50638         if test "$ol_enable_dnssrv" = mod ; then
50639                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
50640                 MFLAG=SLAPD_MOD_DYNAMIC
50641         else
50642                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
50643                 MFLAG=SLAPD_MOD_STATIC
50644         fi
50645
50646 cat >>confdefs.h <<_ACEOF
50647 #define SLAPD_DNSSRV $MFLAG
50648 _ACEOF
50649
50650 fi
50651
50652 if test "$ol_enable_hdb" != no ; then
50653         BUILD_SLAPD=yes
50654         BUILD_HDB=$ol_enable_hdb
50655         if test "$ol_enable_hdb" = mod ; then
50656                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
50657                 MFLAG=SLAPD_MOD_DYNAMIC
50658         else
50659                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
50660                 MFLAG=SLAPD_MOD_STATIC
50661         fi
50662
50663 cat >>confdefs.h <<_ACEOF
50664 #define SLAPD_HDB $MFLAG
50665 _ACEOF
50666
50667 fi
50668
50669 if test "$ol_enable_ldap" != no ; then
50670         BUILD_SLAPD=yes
50671         BUILD_LDAP=$ol_enable_ldap
50672         if test "$ol_enable_ldap" = mod ; then
50673                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
50674                 MFLAG=SLAPD_MOD_DYNAMIC
50675         else
50676                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
50677                 MFLAG=SLAPD_MOD_STATIC
50678         fi
50679
50680 cat >>confdefs.h <<_ACEOF
50681 #define SLAPD_LDAP $MFLAG
50682 _ACEOF
50683
50684 fi
50685
50686 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
50687         BUILD_SLAPD=yes
50688         BUILD_LDBM=$ol_enable_ldbm
50689         if test "$ol_enable_ldbm" = mod ; then
50690                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
50691                 MFLAG=SLAPD_MOD_DYNAMIC
50692         else
50693                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
50694                 MFLAG=SLAPD_MOD_STATIC
50695         fi
50696
50697 cat >>confdefs.h <<_ACEOF
50698 #define SLAPD_LDBM $MFLAG
50699 _ACEOF
50700
50701 fi
50702
50703 if test "$ol_enable_meta" != no ; then
50704         BUILD_SLAPD=yes
50705         BUILD_META=$ol_enable_meta
50706         BUILD_REWRITE=yes
50707         if test "$ol_enable_meta" = mod ; then
50708                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
50709                 MFLAG=SLAPD_MOD_DYNAMIC
50710         else
50711                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
50712                 MFLAG=SLAPD_MOD_STATIC
50713         fi
50714
50715 cat >>confdefs.h <<_ACEOF
50716 #define SLAPD_META $MFLAG
50717 _ACEOF
50718
50719 fi
50720
50721 if test "$ol_enable_monitor" != no ; then
50722         BUILD_SLAPD=yes
50723         BUILD_MONITOR=$ol_enable_monitor
50724         if test "$ol_enable_monitor" = mod ; then
50725                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
50726                 MFLAG=SLAPD_MOD_DYNAMIC
50727         else
50728                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
50729                 MFLAG=SLAPD_MOD_STATIC
50730         fi
50731
50732 cat >>confdefs.h <<_ACEOF
50733 #define SLAPD_MONITOR $MFLAG
50734 _ACEOF
50735
50736 fi
50737
50738 if test "$ol_enable_null" != no ; then
50739         BUILD_SLAPD=yes
50740         BUILD_NULL=$ol_enable_null
50741         if test "$ol_enable_null" = mod ; then
50742                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
50743                 MFLAG=SLAPD_MOD_DYNAMIC
50744         else
50745                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
50746                 MFLAG=SLAPD_MOD_STATIC
50747         fi
50748
50749 cat >>confdefs.h <<_ACEOF
50750 #define SLAPD_NULL $MFLAG
50751 _ACEOF
50752
50753 fi
50754
50755 if test "$ol_enable_passwd" != no ; then
50756         BUILD_SLAPD=yes
50757         BUILD_PASSWD=$ol_enable_passwd
50758         if test "$ol_enable_passwd" = mod ; then
50759                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
50760                 MFLAG=SLAPD_MOD_DYNAMIC
50761         else
50762                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
50763                 MFLAG=SLAPD_MOD_STATIC
50764         fi
50765
50766 cat >>confdefs.h <<_ACEOF
50767 #define SLAPD_PASSWD $MFLAG
50768 _ACEOF
50769
50770 fi
50771
50772 if test "$ol_link_perl" != no ; then
50773         BUILD_SLAPD=yes
50774         BUILD_PERL=$ol_enable_perl
50775         if test "$ol_enable_perl" = mod ; then
50776                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
50777                 MFLAG=SLAPD_MOD_DYNAMIC
50778         else
50779                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
50780                 MFLAG=SLAPD_MOD_STATIC
50781         fi
50782
50783 cat >>confdefs.h <<_ACEOF
50784 #define SLAPD_PERL $MFLAG
50785 _ACEOF
50786
50787 fi
50788
50789 if test "$ol_enable_relay" != no ; then
50790         BUILD_SLAPD=yes
50791         BUILD_RELAY=$ol_enable_relay
50792         if test "$ol_enable_relay" = mod ; then
50793                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
50794                 MFLAG=SLAPD_MOD_DYNAMIC
50795         else
50796                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
50797                 MFLAG=SLAPD_MOD_STATIC
50798         fi
50799
50800 cat >>confdefs.h <<_ACEOF
50801 #define SLAPD_RELAY $MFLAG
50802 _ACEOF
50803
50804 fi
50805
50806 if test "$ol_enable_shell" != no ; then
50807         if test "$ol_link_thread" != no ; then
50808                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
50809 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
50810         fi
50811         BUILD_SLAPD=yes
50812         BUILD_SHELL=$ol_enable_shell
50813         if test "$ol_enable_shell" = mod ; then
50814                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
50815                 MFLAG=SLAPD_MOD_DYNAMIC
50816         else
50817                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
50818                 MFLAG=SLAPD_MOD_STATIC
50819         fi
50820
50821 cat >>confdefs.h <<_ACEOF
50822 #define SLAPD_SHELL $MFLAG
50823 _ACEOF
50824
50825 fi
50826
50827 if test "$ol_link_sql" != no ; then
50828         BUILD_SLAPD=yes
50829         BUILD_SQL=$ol_enable_sql
50830         if test "$ol_enable_sql" = mod; then
50831                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
50832                 MFLAG=SLAPD_MOD_DYNAMIC
50833         else
50834                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
50835                 MFLAG=SLAPD_MOD_STATIC
50836         fi
50837
50838 cat >>confdefs.h <<_ACEOF
50839 #define SLAPD_SQL $MFLAG
50840 _ACEOF
50841
50842 fi
50843
50844 if test "$ol_enable_accesslog" != no ; then
50845         BUILD_ACCESSLOG=$ol_enable_accesslog
50846         if test "$ol_enable_accesslog" = mod ; then
50847                 MFLAG=SLAPD_MOD_DYNAMIC
50848                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
50849         else
50850                 MFLAG=SLAPD_MOD_STATIC
50851                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
50852         fi
50853
50854 cat >>confdefs.h <<_ACEOF
50855 #define SLAPD_OVER_ACCESSLOG $MFLAG
50856 _ACEOF
50857
50858 fi
50859
50860 if test "$ol_enable_denyop" != no ; then
50861         BUILD_DENYOP=$ol_enable_denyop
50862         if test "$ol_enable_denyop" = mod ; then
50863                 MFLAG=SLAPD_MOD_DYNAMIC
50864                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
50865         else
50866                 MFLAG=SLAPD_MOD_STATIC
50867                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
50868         fi
50869
50870 cat >>confdefs.h <<_ACEOF
50871 #define SLAPD_OVER_DENYOP $MFLAG
50872 _ACEOF
50873
50874 fi
50875
50876 if test "$ol_enable_dyngroup" != no ; then
50877         BUILD_DYNGROUP=$ol_enable_dyngroup
50878         if test "$ol_enable_dyngroup" = mod ; then
50879                 MFLAG=SLAPD_MOD_DYNAMIC
50880                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
50881         else
50882                 MFLAG=SLAPD_MOD_STATIC
50883                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
50884         fi
50885
50886 cat >>confdefs.h <<_ACEOF
50887 #define SLAPD_OVER_DYNGROUP $MFLAG
50888 _ACEOF
50889
50890 fi
50891
50892 if test "$ol_enable_dynlist" != no ; then
50893         BUILD_DYNLIST=$ol_enable_dynlist
50894         if test "$ol_enable_dynlist" = mod ; then
50895                 MFLAG=SLAPD_MOD_DYNAMIC
50896                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
50897         else
50898                 MFLAG=SLAPD_MOD_STATIC
50899                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
50900         fi
50901
50902 cat >>confdefs.h <<_ACEOF
50903 #define SLAPD_OVER_DYNLIST $MFLAG
50904 _ACEOF
50905
50906 fi
50907
50908 if test "$ol_enable_glue" != no ; then
50909         BUILD_GLUE=$ol_enable_glue
50910         if test "$ol_enable_glue" = mod ; then
50911                 MFLAG=SLAPD_MOD_DYNAMIC
50912                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
50913         else
50914                 MFLAG=SLAPD_MOD_STATIC
50915                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
50916         fi
50917
50918 cat >>confdefs.h <<_ACEOF
50919 #define SLAPD_OVER_GLUE $MFLAG
50920 _ACEOF
50921
50922 fi
50923
50924 if test "$ol_enable_lastmod" != no ; then
50925         BUILD_LASTMOD=$ol_enable_lastmod
50926         if test "$ol_enable_lastmod" = mod ; then
50927                 MFLAG=SLAPD_MOD_DYNAMIC
50928                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
50929         else
50930                 MFLAG=SLAPD_MOD_STATIC
50931                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
50932         fi
50933
50934 cat >>confdefs.h <<_ACEOF
50935 #define SLAPD_OVER_LASTMOD $MFLAG
50936 _ACEOF
50937
50938 fi
50939
50940 if test "$ol_enable_ppolicy" != no ; then
50941         BUILD_PPOLICY=$ol_enable_ppolicy
50942         if test "$ol_enable_ppolicy" = mod ; then
50943                 MFLAG=SLAPD_MOD_DYNAMIC
50944                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
50945         else
50946                 MFLAG=SLAPD_MOD_STATIC
50947                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
50948         fi
50949
50950 cat >>confdefs.h <<_ACEOF
50951 #define SLAPD_OVER_PPOLICY $MFLAG
50952 _ACEOF
50953
50954 fi
50955
50956 if test "$ol_enable_proxycache" != no ; then
50957         BUILD_PROXYCACHE=$ol_enable_proxycache
50958         if test "$ol_enable_proxycache" = mod ; then
50959                 MFLAG=SLAPD_MOD_DYNAMIC
50960                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
50961         else
50962                 MFLAG=SLAPD_MOD_STATIC
50963                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
50964         fi
50965
50966 cat >>confdefs.h <<_ACEOF
50967 #define SLAPD_OVER_PROXYCACHE $MFLAG
50968 _ACEOF
50969
50970 fi
50971
50972 if test "$ol_enable_refint" != no ; then
50973         BUILD_REFINT=$ol_enable_refint
50974         if test "$ol_enable_refint" = mod ; then
50975                 MFLAG=SLAPD_MOD_DYNAMIC
50976                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
50977         else
50978                 MFLAG=SLAPD_MOD_STATIC
50979                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
50980         fi
50981
50982 cat >>confdefs.h <<_ACEOF
50983 #define SLAPD_OVER_REFINT $MFLAG
50984 _ACEOF
50985
50986 fi
50987
50988 if test "$ol_enable_retcode" != no ; then
50989         BUILD_RETCODE=$ol_enable_retcode
50990         if test "$ol_enable_retcode" = mod ; then
50991                 MFLAG=SLAPD_MOD_DYNAMIC
50992                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
50993         else
50994                 MFLAG=SLAPD_MOD_STATIC
50995                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
50996         fi
50997
50998 cat >>confdefs.h <<_ACEOF
50999 #define SLAPD_OVER_RETCODE $MFLAG
51000 _ACEOF
51001
51002 fi
51003
51004 if test "$ol_enable_rwm" != no ; then
51005         BUILD_REWRITE=yes
51006         BUILD_RWM=$ol_enable_rwm
51007         if test "$ol_enable_rwm" = mod ; then
51008                 MFLAG=SLAPD_MOD_DYNAMIC
51009                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
51010         else
51011                 MFLAG=SLAPD_MOD_STATIC
51012                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
51013         fi
51014
51015 cat >>confdefs.h <<_ACEOF
51016 #define SLAPD_OVER_RWM $MFLAG
51017 _ACEOF
51018
51019 fi
51020
51021 if test "$ol_enable_syncprov" != no ; then
51022         BUILD_SYNCPROV=$ol_enable_syncprov
51023         if test "$ol_enable_syncprov" = mod ; then
51024                 MFLAG=SLAPD_MOD_DYNAMIC
51025                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
51026         else
51027                 MFLAG=SLAPD_MOD_STATIC
51028                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
51029         fi
51030
51031 cat >>confdefs.h <<_ACEOF
51032 #define SLAPD_OVER_SYNCPROV $MFLAG
51033 _ACEOF
51034
51035 fi
51036
51037 if test "$ol_enable_translucent" != no ; then
51038         BUILD_TRANSLUCENT=$ol_enable_translucent
51039         if test "$ol_enable_translucent" = mod ; then
51040                 MFLAG=SLAPD_MOD_DYNAMIC
51041                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
51042         else
51043                 MFLAG=SLAPD_MOD_STATIC
51044                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
51045         fi
51046
51047 cat >>confdefs.h <<_ACEOF
51048 #define SLAPD_OVER_TRANSLUCENT $MFLAG
51049 _ACEOF
51050
51051 fi
51052
51053 if test "$ol_enable_unique" != no ; then
51054         BUILD_UNIQUE=$ol_enable_unique
51055         if test "$ol_enable_unique" = mod ; then
51056                 MFLAG=SLAPD_MOD_DYNAMIC
51057                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
51058         else
51059                 MFLAG=SLAPD_MOD_STATIC
51060                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
51061         fi
51062
51063 cat >>confdefs.h <<_ACEOF
51064 #define SLAPD_OVER_UNIQUE $MFLAG
51065 _ACEOF
51066
51067 fi
51068
51069 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
51070         $BUILD_SLAPD = yes ; then
51071         BUILD_SLURPD=yes
51072 fi
51073
51074 if test "$ol_enable_rewrite" != no ; then
51075
51076 cat >>confdefs.h <<\_ACEOF
51077 #define ENABLE_REWRITE 1
51078 _ACEOF
51079
51080         BUILD_REWRITE=yes
51081 fi
51082
51083 if test "$ol_enable_slapi" != no ; then
51084
51085 cat >>confdefs.h <<\_ACEOF
51086 #define ENABLE_SLAPI 1
51087 _ACEOF
51088
51089         BUILD_SLAPI=yes
51090         SLAPD_SLAPI_DEPEND=libslapi.a
51091 fi
51092
51093
51094
51095 if test "$ac_cv_mingw32" = yes ; then
51096         PLAT=NT
51097         SLAPD_MODULES_LDFLAGS=
51098 else
51099         PLAT=UNIX
51100 fi
51101
51102
51103
51104
51105
51106
51107
51108
51109
51110
51111
51112
51113
51114
51115
51116
51117
51118
51119
51120
51121
51122
51123
51124
51125
51126
51127
51128
51129
51130
51131
51132
51133
51134
51135
51136
51137
51138
51139
51140
51141
51142
51143
51144
51145
51146
51147
51148
51149
51150
51151
51152
51153
51154
51155
51156
51157
51158
51159
51160
51161
51162
51163
51164
51165
51166
51167
51168
51169
51170
51171
51172
51173
51174
51175
51176
51177
51178
51179
51180 # Check whether --with-xxinstall or --without-xxinstall was given.
51181 if test "${with_xxinstall+set}" = set; then
51182   withval="$with_xxinstall"
51183
51184 fi;
51185
51186
51187                                                                                                                                                                                                                                                                                                                                                                                                                 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"
51188           ac_config_commands="$ac_config_commands default"
51189
51190
51191 test "x$prefix" = xNONE && prefix=$ac_default_prefix
51192 # Let make expand exec_prefix.
51193 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51194
51195 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51196 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51197 # trailing colons and then remove the whole line if VPATH becomes empty
51198 # (actually we leave an empty line to preserve line numbers).
51199 if test "x$srcdir" = x.; then
51200   ac_vpsub='/^[  ]*VPATH[        ]*=/{
51201 s/:*\$(srcdir):*/:/;
51202 s/:*\${srcdir}:*/:/;
51203 s/:*@srcdir@:*/:/;
51204 s/^\([^=]*=[     ]*\):*/\1/;
51205 s/:*$//;
51206 s/^[^=]*=[       ]*$//;
51207 }'
51208 fi
51209
51210 DEFS=-DHAVE_CONFIG_H
51211
51212 ac_libobjs=
51213 ac_ltlibobjs=
51214 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51215   # 1. Remove the extension, and $U if already installed.
51216   ac_i=`echo "$ac_i" |
51217          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
51218   # 2. Add them.
51219   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
51220   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
51221 done
51222 LIBOBJS=$ac_libobjs
51223
51224 LTLIBOBJS=$ac_ltlibobjs
51225
51226
51227 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
51228   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
51229 Usually this means the macro was only invoked conditionally." >&5
51230 echo "$as_me: error: conditional \"AMDEP\" was never defined.
51231 Usually this means the macro was only invoked conditionally." >&2;}
51232    { (exit 1); exit 1; }; }
51233 fi
51234 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51235   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51236 Usually this means the macro was only invoked conditionally." >&5
51237 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51238 Usually this means the macro was only invoked conditionally." >&2;}
51239    { (exit 1); exit 1; }; }
51240 fi
51241 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
51242   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
51243 Usually this means the macro was only invoked conditionally." >&5
51244 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
51245 Usually this means the macro was only invoked conditionally." >&2;}
51246    { (exit 1); exit 1; }; }
51247 fi
51248 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51249   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51250 Usually this means the macro was only invoked conditionally." >&5
51251 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51252 Usually this means the macro was only invoked conditionally." >&2;}
51253    { (exit 1); exit 1; }; }
51254 fi
51255
51256 : ${CONFIG_STATUS=./config.status}
51257 ac_clean_files_save=$ac_clean_files
51258 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51259 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51260 echo "$as_me: creating $CONFIG_STATUS" >&6;}
51261 cat >$CONFIG_STATUS <<_ACEOF
51262 #! $SHELL
51263 # Generated by $as_me.
51264 # Run this file to recreate the current configuration.
51265 # Compiler output produced by configure, useful for debugging
51266 # configure, is in config.log if it exists.
51267
51268 debug=false
51269 ac_cs_recheck=false
51270 ac_cs_silent=false
51271 SHELL=\${CONFIG_SHELL-$SHELL}
51272 _ACEOF
51273
51274 cat >>$CONFIG_STATUS <<\_ACEOF
51275 ## --------------------- ##
51276 ## M4sh Initialization.  ##
51277 ## --------------------- ##
51278
51279 # Be Bourne compatible
51280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51281   emulate sh
51282   NULLCMD=:
51283   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51284   # is contrary to our usage.  Disable this feature.
51285   alias -g '${1+"$@"}'='"$@"'
51286 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
51287   set -o posix
51288 fi
51289 DUALCASE=1; export DUALCASE # for MKS sh
51290
51291 # Support unset when possible.
51292 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51293   as_unset=unset
51294 else
51295   as_unset=false
51296 fi
51297
51298
51299 # Work around bugs in pre-3.0 UWIN ksh.
51300 $as_unset ENV MAIL MAILPATH
51301 PS1='$ '
51302 PS2='> '
51303 PS4='+ '
51304
51305 # NLS nuisances.
51306 for as_var in \
51307   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51308   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51309   LC_TELEPHONE LC_TIME
51310 do
51311   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51312     eval $as_var=C; export $as_var
51313   else
51314     $as_unset $as_var
51315   fi
51316 done
51317
51318 # Required to use basename.
51319 if expr a : '\(a\)' >/dev/null 2>&1; then
51320   as_expr=expr
51321 else
51322   as_expr=false
51323 fi
51324
51325 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
51326   as_basename=basename
51327 else
51328   as_basename=false
51329 fi
51330
51331
51332 # Name of the executable.
51333 as_me=`$as_basename "$0" ||
51334 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51335          X"$0" : 'X\(//\)$' \| \
51336          X"$0" : 'X\(/\)$' \| \
51337          .     : '\(.\)' 2>/dev/null ||
51338 echo X/"$0" |
51339     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
51340           /^X\/\(\/\/\)$/{ s//\1/; q; }
51341           /^X\/\(\/\).*/{ s//\1/; q; }
51342           s/.*/./; q'`
51343
51344
51345 # PATH needs CR, and LINENO needs CR and PATH.
51346 # Avoid depending upon Character Ranges.
51347 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51348 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51349 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51350 as_cr_digits='0123456789'
51351 as_cr_alnum=$as_cr_Letters$as_cr_digits
51352
51353 # The user is always right.
51354 if test "${PATH_SEPARATOR+set}" != set; then
51355   echo "#! /bin/sh" >conf$$.sh
51356   echo  "exit 0"   >>conf$$.sh
51357   chmod +x conf$$.sh
51358   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51359     PATH_SEPARATOR=';'
51360   else
51361     PATH_SEPARATOR=:
51362   fi
51363   rm -f conf$$.sh
51364 fi
51365
51366
51367   as_lineno_1=$LINENO
51368   as_lineno_2=$LINENO
51369   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51370   test "x$as_lineno_1" != "x$as_lineno_2" &&
51371   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
51372   # Find who we are.  Look in the path if we contain no path at all
51373   # relative or not.
51374   case $0 in
51375     *[\\/]* ) as_myself=$0 ;;
51376     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51377 for as_dir in $PATH
51378 do
51379   IFS=$as_save_IFS
51380   test -z "$as_dir" && as_dir=.
51381   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51382 done
51383
51384        ;;
51385   esac
51386   # We did not find ourselves, most probably we were run as `sh COMMAND'
51387   # in which case we are not to be found in the path.
51388   if test "x$as_myself" = x; then
51389     as_myself=$0
51390   fi
51391   if test ! -f "$as_myself"; then
51392     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
51393 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
51394    { (exit 1); exit 1; }; }
51395   fi
51396   case $CONFIG_SHELL in
51397   '')
51398     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51399 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
51400 do
51401   IFS=$as_save_IFS
51402   test -z "$as_dir" && as_dir=.
51403   for as_base in sh bash ksh sh5; do
51404          case $as_dir in
51405          /*)
51406            if ("$as_dir/$as_base" -c '
51407   as_lineno_1=$LINENO
51408   as_lineno_2=$LINENO
51409   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51410   test "x$as_lineno_1" != "x$as_lineno_2" &&
51411   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
51412              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
51413              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
51414              CONFIG_SHELL=$as_dir/$as_base
51415              export CONFIG_SHELL
51416              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
51417            fi;;
51418          esac
51419        done
51420 done
51421 ;;
51422   esac
51423
51424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51425   # uniformly replaced by the line number.  The first 'sed' inserts a
51426   # line-number line before each line; the second 'sed' does the real
51427   # work.  The second script uses 'N' to pair each line-number line
51428   # with the numbered line, and appends trailing '-' during
51429   # substitution so that $LINENO is not a special case at line end.
51430   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51431   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
51432   sed '=' <$as_myself |
51433     sed '
51434       N
51435       s,$,-,
51436       : loop
51437       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
51438       t loop
51439       s,-$,,
51440       s,^['$as_cr_digits']*\n,,
51441     ' >$as_me.lineno &&
51442   chmod +x $as_me.lineno ||
51443     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
51444 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
51445    { (exit 1); exit 1; }; }
51446
51447   # Don't try to exec as it changes $[0], causing all sort of problems
51448   # (the dirname of $[0] is not the place where we might find the
51449   # original and so on.  Autoconf is especially sensible to this).
51450   . ./$as_me.lineno
51451   # Exit status is that of the last command.
51452   exit
51453 }
51454
51455
51456 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
51457   *c*,-n*) ECHO_N= ECHO_C='
51458 ' ECHO_T='      ' ;;
51459   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
51460   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
51461 esac
51462
51463 if expr a : '\(a\)' >/dev/null 2>&1; then
51464   as_expr=expr
51465 else
51466   as_expr=false
51467 fi
51468
51469 rm -f conf$$ conf$$.exe conf$$.file
51470 echo >conf$$.file
51471 if ln -s conf$$.file conf$$ 2>/dev/null; then
51472   # We could just check for DJGPP; but this test a) works b) is more generic
51473   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
51474   if test -f conf$$.exe; then
51475     # Don't use ln at all; we don't have any links
51476     as_ln_s='cp -p'
51477   else
51478     as_ln_s='ln -s'
51479   fi
51480 elif ln conf$$.file conf$$ 2>/dev/null; then
51481   as_ln_s=ln
51482 else
51483   as_ln_s='cp -p'
51484 fi
51485 rm -f conf$$ conf$$.exe conf$$.file
51486
51487 if mkdir -p . 2>/dev/null; then
51488   as_mkdir_p=:
51489 else
51490   test -d ./-p && rmdir ./-p
51491   as_mkdir_p=false
51492 fi
51493
51494 as_executable_p="test -f"
51495
51496 # Sed expression to map a string onto a valid CPP name.
51497 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51498
51499 # Sed expression to map a string onto a valid variable name.
51500 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51501
51502
51503 # IFS
51504 # We need space, tab and new line, in precisely that order.
51505 as_nl='
51506 '
51507 IFS="   $as_nl"
51508
51509 # CDPATH.
51510 $as_unset CDPATH
51511
51512 exec 6>&1
51513
51514 # Open the log real soon, to keep \$[0] and so on meaningful, and to
51515 # report actual input values of CONFIG_FILES etc. instead of their
51516 # values after options handling.  Logging --version etc. is OK.
51517 exec 5>>config.log
51518 {
51519   echo
51520   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51521 ## Running $as_me. ##
51522 _ASBOX
51523 } >&5
51524 cat >&5 <<_CSEOF
51525
51526 This file was extended by $as_me, which was
51527 generated by GNU Autoconf 2.59.  Invocation command line was
51528
51529   CONFIG_FILES    = $CONFIG_FILES
51530   CONFIG_HEADERS  = $CONFIG_HEADERS
51531   CONFIG_LINKS    = $CONFIG_LINKS
51532   CONFIG_COMMANDS = $CONFIG_COMMANDS
51533   $ $0 $@
51534
51535 _CSEOF
51536 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
51537 echo >&5
51538 _ACEOF
51539
51540 # Files that config.status was made for.
51541 if test -n "$ac_config_files"; then
51542   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
51543 fi
51544
51545 if test -n "$ac_config_headers"; then
51546   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
51547 fi
51548
51549 if test -n "$ac_config_links"; then
51550   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
51551 fi
51552
51553 if test -n "$ac_config_commands"; then
51554   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
51555 fi
51556
51557 cat >>$CONFIG_STATUS <<\_ACEOF
51558
51559 ac_cs_usage="\
51560 \`$as_me' instantiates files from templates according to the
51561 current configuration.
51562
51563 Usage: $0 [OPTIONS] [FILE]...
51564
51565   -h, --help       print this help, then exit
51566   -V, --version    print version number, then exit
51567   -q, --quiet      do not print progress messages
51568   -d, --debug      don't remove temporary files
51569       --recheck    update $as_me by reconfiguring in the same conditions
51570   --file=FILE[:TEMPLATE]
51571                    instantiate the configuration file FILE
51572   --header=FILE[:TEMPLATE]
51573                    instantiate the configuration header FILE
51574
51575 Configuration files:
51576 $config_files
51577
51578 Configuration headers:
51579 $config_headers
51580
51581 Configuration commands:
51582 $config_commands
51583
51584 Report bugs to <bug-autoconf@gnu.org>."
51585 _ACEOF
51586
51587 cat >>$CONFIG_STATUS <<_ACEOF
51588 ac_cs_version="\\
51589 config.status
51590 configured by $0, generated by GNU Autoconf 2.59,
51591   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
51592
51593 Copyright (C) 2003 Free Software Foundation, Inc.
51594 This config.status script is free software; the Free Software Foundation
51595 gives unlimited permission to copy, distribute and modify it."
51596 srcdir=$srcdir
51597 INSTALL="$INSTALL"
51598 _ACEOF
51599
51600 cat >>$CONFIG_STATUS <<\_ACEOF
51601 # If no file are specified by the user, then we need to provide default
51602 # value.  By we need to know if files were specified by the user.
51603 ac_need_defaults=:
51604 while test $# != 0
51605 do
51606   case $1 in
51607   --*=*)
51608     ac_option=`expr "x$1" : 'x\([^=]*\)='`
51609     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
51610     ac_shift=:
51611     ;;
51612   -*)
51613     ac_option=$1
51614     ac_optarg=$2
51615     ac_shift=shift
51616     ;;
51617   *) # This is not an option, so the user has probably given explicit
51618      # arguments.
51619      ac_option=$1
51620      ac_need_defaults=false;;
51621   esac
51622
51623   case $ac_option in
51624   # Handling of the options.
51625 _ACEOF
51626 cat >>$CONFIG_STATUS <<\_ACEOF
51627   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51628     ac_cs_recheck=: ;;
51629   --version | --vers* | -V )
51630     echo "$ac_cs_version"; exit 0 ;;
51631   --he | --h)
51632     # Conflict between --help and --header
51633     { { echo "$as_me:$LINENO: error: ambiguous option: $1
51634 Try \`$0 --help' for more information." >&5
51635 echo "$as_me: error: ambiguous option: $1
51636 Try \`$0 --help' for more information." >&2;}
51637    { (exit 1); exit 1; }; };;
51638   --help | --hel | -h )
51639     echo "$ac_cs_usage"; exit 0 ;;
51640   --debug | --d* | -d )
51641     debug=: ;;
51642   --file | --fil | --fi | --f )
51643     $ac_shift
51644     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51645     ac_need_defaults=false;;
51646   --header | --heade | --head | --hea )
51647     $ac_shift
51648     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51649     ac_need_defaults=false;;
51650   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51651   | -silent | --silent | --silen | --sile | --sil | --si | --s)
51652     ac_cs_silent=: ;;
51653
51654   # This is an error.
51655   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
51656 Try \`$0 --help' for more information." >&5
51657 echo "$as_me: error: unrecognized option: $1
51658 Try \`$0 --help' for more information." >&2;}
51659    { (exit 1); exit 1; }; } ;;
51660
51661   *) ac_config_targets="$ac_config_targets $1" ;;
51662
51663   esac
51664   shift
51665 done
51666
51667 ac_configure_extra_args=
51668
51669 if $ac_cs_silent; then
51670   exec 6>/dev/null
51671   ac_configure_extra_args="$ac_configure_extra_args --silent"
51672 fi
51673
51674 _ACEOF
51675 cat >>$CONFIG_STATUS <<_ACEOF
51676 if \$ac_cs_recheck; then
51677   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51678   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51679 fi
51680
51681 _ACEOF
51682
51683 cat >>$CONFIG_STATUS <<_ACEOF
51684 #
51685 # INIT-COMMANDS section.
51686 #
51687
51688 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
51689 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
51690
51691 _ACEOF
51692
51693
51694
51695 cat >>$CONFIG_STATUS <<\_ACEOF
51696 for ac_config_target in $ac_config_targets
51697 do
51698   case "$ac_config_target" in
51699   # Handling of arguments.
51700   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
51701   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
51702   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
51703   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
51704   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
51705   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
51706   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
51707   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
51708   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
51709   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
51710   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
51711   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51712   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51713   "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" ;;
51714   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
51715   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
51716   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51717   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
51718   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
51719   "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" ;;
51720   "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" ;;
51721   "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" ;;
51722   "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" ;;
51723   "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" ;;
51724   "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" ;;
51725   "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" ;;
51726   "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" ;;
51727   "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" ;;
51728   "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" ;;
51729   "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" ;;
51730   "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" ;;
51731   "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" ;;
51732   "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" ;;
51733   "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" ;;
51734   "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" ;;
51735   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
51736   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
51737   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
51738   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
51739   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
51740   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
51741   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
51742   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h" ;;
51743   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h" ;;
51744   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h" ;;
51745   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51746 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51747    { (exit 1); exit 1; }; };;
51748   esac
51749 done
51750
51751 # If the user did not use the arguments to specify the items to instantiate,
51752 # then the envvar interface is used.  Set only those that are not.
51753 # We use the long form for the default assignment because of an extremely
51754 # bizarre bug on SunOS 4.1.3.
51755 if $ac_need_defaults; then
51756   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51757   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51758   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51759 fi
51760
51761 # Have a temporary directory for convenience.  Make it in the build tree
51762 # simply because there is no reason to put it here, and in addition,
51763 # creating and moving files from /tmp can sometimes cause problems.
51764 # Create a temporary directory, and hook for its removal unless debugging.
51765 $debug ||
51766 {
51767   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
51768   trap '{ (exit 1); exit 1; }' 1 2 13 15
51769 }
51770
51771 # Create a (secure) tmp directory for tmp files.
51772
51773 {
51774   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
51775   test -n "$tmp" && test -d "$tmp"
51776 }  ||
51777 {
51778   tmp=./confstat$$-$RANDOM
51779   (umask 077 && mkdir $tmp)
51780 } ||
51781 {
51782    echo "$me: cannot create a temporary directory in ." >&2
51783    { (exit 1); exit 1; }
51784 }
51785
51786 _ACEOF
51787
51788 cat >>$CONFIG_STATUS <<_ACEOF
51789
51790 #
51791 # CONFIG_FILES section.
51792 #
51793
51794 # No need to generate the scripts if there are no CONFIG_FILES.
51795 # This happens for instance when ./config.status config.h
51796 if test -n "\$CONFIG_FILES"; then
51797   # Protect against being on the right side of a sed subst in config.status.
51798   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51799    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51800 s,@SHELL@,$SHELL,;t t
51801 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51802 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51803 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51804 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51805 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51806 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51807 s,@exec_prefix@,$exec_prefix,;t t
51808 s,@prefix@,$prefix,;t t
51809 s,@program_transform_name@,$program_transform_name,;t t
51810 s,@bindir@,$bindir,;t t
51811 s,@sbindir@,$sbindir,;t t
51812 s,@libexecdir@,$libexecdir,;t t
51813 s,@datadir@,$datadir,;t t
51814 s,@sysconfdir@,$sysconfdir,;t t
51815 s,@sharedstatedir@,$sharedstatedir,;t t
51816 s,@localstatedir@,$localstatedir,;t t
51817 s,@libdir@,$libdir,;t t
51818 s,@includedir@,$includedir,;t t
51819 s,@oldincludedir@,$oldincludedir,;t t
51820 s,@infodir@,$infodir,;t t
51821 s,@mandir@,$mandir,;t t
51822 s,@build_alias@,$build_alias,;t t
51823 s,@host_alias@,$host_alias,;t t
51824 s,@target_alias@,$target_alias,;t t
51825 s,@DEFS@,$DEFS,;t t
51826 s,@ECHO_C@,$ECHO_C,;t t
51827 s,@ECHO_N@,$ECHO_N,;t t
51828 s,@ECHO_T@,$ECHO_T,;t t
51829 s,@LIBS@,$LIBS,;t t
51830 s,@build@,$build,;t t
51831 s,@build_cpu@,$build_cpu,;t t
51832 s,@build_vendor@,$build_vendor,;t t
51833 s,@build_os@,$build_os,;t t
51834 s,@host@,$host,;t t
51835 s,@host_cpu@,$host_cpu,;t t
51836 s,@host_vendor@,$host_vendor,;t t
51837 s,@host_os@,$host_os,;t t
51838 s,@target@,$target,;t t
51839 s,@target_cpu@,$target_cpu,;t t
51840 s,@target_vendor@,$target_vendor,;t t
51841 s,@target_os@,$target_os,;t t
51842 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51843 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51844 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51845 s,@CYGPATH_W@,$CYGPATH_W,;t t
51846 s,@PACKAGE@,$PACKAGE,;t t
51847 s,@VERSION@,$VERSION,;t t
51848 s,@ACLOCAL@,$ACLOCAL,;t t
51849 s,@AUTOCONF@,$AUTOCONF,;t t
51850 s,@AUTOMAKE@,$AUTOMAKE,;t t
51851 s,@AUTOHEADER@,$AUTOHEADER,;t t
51852 s,@MAKEINFO@,$MAKEINFO,;t t
51853 s,@install_sh@,$install_sh,;t t
51854 s,@STRIP@,$STRIP,;t t
51855 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
51856 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
51857 s,@mkdir_p@,$mkdir_p,;t t
51858 s,@AWK@,$AWK,;t t
51859 s,@SET_MAKE@,$SET_MAKE,;t t
51860 s,@am__leading_dot@,$am__leading_dot,;t t
51861 s,@AMTAR@,$AMTAR,;t t
51862 s,@am__tar@,$am__tar,;t t
51863 s,@am__untar@,$am__untar,;t t
51864 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
51865 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
51866 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
51867 s,@top_builddir@,$top_builddir,;t t
51868 s,@ldap_subdir@,$ldap_subdir,;t t
51869 s,@CC@,$CC,;t t
51870 s,@AR@,$AR,;t t
51871 s,@CFLAGS@,$CFLAGS,;t t
51872 s,@LDFLAGS@,$LDFLAGS,;t t
51873 s,@CPPFLAGS@,$CPPFLAGS,;t t
51874 s,@ac_ct_CC@,$ac_ct_CC,;t t
51875 s,@EXEEXT@,$EXEEXT,;t t
51876 s,@OBJEXT@,$OBJEXT,;t t
51877 s,@DEPDIR@,$DEPDIR,;t t
51878 s,@am__include@,$am__include,;t t
51879 s,@am__quote@,$am__quote,;t t
51880 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
51881 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
51882 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
51883 s,@CCDEPMODE@,$CCDEPMODE,;t t
51884 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
51885 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
51886 s,@EGREP@,$EGREP,;t t
51887 s,@LN_S@,$LN_S,;t t
51888 s,@ECHO@,$ECHO,;t t
51889 s,@ac_ct_AR@,$ac_ct_AR,;t t
51890 s,@RANLIB@,$RANLIB,;t t
51891 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51892 s,@DLLTOOL@,$DLLTOOL,;t t
51893 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
51894 s,@AS@,$AS,;t t
51895 s,@ac_ct_AS@,$ac_ct_AS,;t t
51896 s,@OBJDUMP@,$OBJDUMP,;t t
51897 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
51898 s,@CPP@,$CPP,;t t
51899 s,@CXX@,$CXX,;t t
51900 s,@CXXFLAGS@,$CXXFLAGS,;t t
51901 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
51902 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
51903 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
51904 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
51905 s,@CXXCPP@,$CXXCPP,;t t
51906 s,@F77@,$F77,;t t
51907 s,@FFLAGS@,$FFLAGS,;t t
51908 s,@ac_ct_F77@,$ac_ct_F77,;t t
51909 s,@LIBTOOL@,$LIBTOOL,;t t
51910 s,@PERLBIN@,$PERLBIN,;t t
51911 s,@OL_MKDEP@,$OL_MKDEP,;t t
51912 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
51913 s,@LTSTATIC@,$LTSTATIC,;t t
51914 s,@LIBOBJS@,$LIBOBJS,;t t
51915 s,@LIBSRCS@,$LIBSRCS,;t t
51916 s,@PLAT@,$PLAT,;t t
51917 s,@WITH_SASL@,$WITH_SASL,;t t
51918 s,@WITH_TLS@,$WITH_TLS,;t t
51919 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
51920 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
51921 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
51922 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
51923 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
51924 s,@BUILD_BDB@,$BUILD_BDB,;t t
51925 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
51926 s,@BUILD_HDB@,$BUILD_HDB,;t t
51927 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
51928 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
51929 s,@BUILD_META@,$BUILD_META,;t t
51930 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
51931 s,@BUILD_NULL@,$BUILD_NULL,;t t
51932 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
51933 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
51934 s,@BUILD_PERL@,$BUILD_PERL,;t t
51935 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
51936 s,@BUILD_SQL@,$BUILD_SQL,;t t
51937 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
51938 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
51939 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
51940 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
51941 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
51942 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
51943 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
51944 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
51945 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
51946 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
51947 s,@BUILD_RWM@,$BUILD_RWM,;t t
51948 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
51949 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
51950 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
51951 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
51952 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
51953 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
51954 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
51955 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
51956 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
51957 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
51958 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
51959 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
51960 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
51961 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
51962 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
51963 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
51964 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
51965 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
51966 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
51967 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
51968 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
51969 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
51970 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
51971 s,@SASL_LIBS@,$SASL_LIBS,;t t
51972 s,@TLS_LIBS@,$TLS_LIBS,;t t
51973 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
51974 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
51975 s,@LIBSLAPI@,$LIBSLAPI,;t t
51976 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
51977 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
51978 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
51979 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
51980 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
51981 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
51982 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
51983 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51984 CEOF
51985
51986 _ACEOF
51987
51988   cat >>$CONFIG_STATUS <<\_ACEOF
51989   # Split the substitutions into bite-sized pieces for seds with
51990   # small command number limits, like on Digital OSF/1 and HP-UX.
51991   ac_max_sed_lines=48
51992   ac_sed_frag=1 # Number of current file.
51993   ac_beg=1 # First line for current file.
51994   ac_end=$ac_max_sed_lines # Line after last line for current file.
51995   ac_more_lines=:
51996   ac_sed_cmds=
51997   while $ac_more_lines; do
51998     if test $ac_beg -gt 1; then
51999       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
52000     else
52001       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
52002     fi
52003     if test ! -s $tmp/subs.frag; then
52004       ac_more_lines=false
52005     else
52006       # The purpose of the label and of the branching condition is to
52007       # speed up the sed processing (if there are no `@' at all, there
52008       # is no need to browse any of the substitutions).
52009       # These are the two extra sed commands mentioned above.
52010       (echo ':t
52011   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
52012       if test -z "$ac_sed_cmds"; then
52013         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
52014       else
52015         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
52016       fi
52017       ac_sed_frag=`expr $ac_sed_frag + 1`
52018       ac_beg=$ac_end
52019       ac_end=`expr $ac_end + $ac_max_sed_lines`
52020     fi
52021   done
52022   if test -z "$ac_sed_cmds"; then
52023     ac_sed_cmds=cat
52024   fi
52025 fi # test -n "$CONFIG_FILES"
52026
52027 _ACEOF
52028 cat >>$CONFIG_STATUS <<\_ACEOF
52029 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
52030   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52031   case $ac_file in
52032   - | *:- | *:-:* ) # input from stdin
52033         cat >$tmp/stdin
52034         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52035         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52036   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52037         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52038   * )   ac_file_in=$ac_file.in ;;
52039   esac
52040
52041   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
52042   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52043 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52044          X"$ac_file" : 'X\(//\)[^/]' \| \
52045          X"$ac_file" : 'X\(//\)$' \| \
52046          X"$ac_file" : 'X\(/\)' \| \
52047          .     : '\(.\)' 2>/dev/null ||
52048 echo X"$ac_file" |
52049     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52050           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52051           /^X\(\/\/\)$/{ s//\1/; q; }
52052           /^X\(\/\).*/{ s//\1/; q; }
52053           s/.*/./; q'`
52054   { if $as_mkdir_p; then
52055     mkdir -p "$ac_dir"
52056   else
52057     as_dir="$ac_dir"
52058     as_dirs=
52059     while test ! -d "$as_dir"; do
52060       as_dirs="$as_dir $as_dirs"
52061       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52062 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52063          X"$as_dir" : 'X\(//\)[^/]' \| \
52064          X"$as_dir" : 'X\(//\)$' \| \
52065          X"$as_dir" : 'X\(/\)' \| \
52066          .     : '\(.\)' 2>/dev/null ||
52067 echo X"$as_dir" |
52068     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52069           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52070           /^X\(\/\/\)$/{ s//\1/; q; }
52071           /^X\(\/\).*/{ s//\1/; q; }
52072           s/.*/./; q'`
52073     done
52074     test ! -n "$as_dirs" || mkdir $as_dirs
52075   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52076 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52077    { (exit 1); exit 1; }; }; }
52078
52079   ac_builddir=.
52080
52081 if test "$ac_dir" != .; then
52082   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52083   # A "../" for each directory in $ac_dir_suffix.
52084   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52085 else
52086   ac_dir_suffix= ac_top_builddir=
52087 fi
52088
52089 case $srcdir in
52090   .)  # No --srcdir option.  We are building in place.
52091     ac_srcdir=.
52092     if test -z "$ac_top_builddir"; then
52093        ac_top_srcdir=.
52094     else
52095        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52096     fi ;;
52097   [\\/]* | ?:[\\/]* )  # Absolute path.
52098     ac_srcdir=$srcdir$ac_dir_suffix;
52099     ac_top_srcdir=$srcdir ;;
52100   *) # Relative path.
52101     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52102     ac_top_srcdir=$ac_top_builddir$srcdir ;;
52103 esac
52104
52105 # Do not use `cd foo && pwd` to compute absolute paths, because
52106 # the directories may not exist.
52107 case `pwd` in
52108 .) ac_abs_builddir="$ac_dir";;
52109 *)
52110   case "$ac_dir" in
52111   .) ac_abs_builddir=`pwd`;;
52112   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52113   *) ac_abs_builddir=`pwd`/"$ac_dir";;
52114   esac;;
52115 esac
52116 case $ac_abs_builddir in
52117 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52118 *)
52119   case ${ac_top_builddir}. in
52120   .) ac_abs_top_builddir=$ac_abs_builddir;;
52121   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52122   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52123   esac;;
52124 esac
52125 case $ac_abs_builddir in
52126 .) ac_abs_srcdir=$ac_srcdir;;
52127 *)
52128   case $ac_srcdir in
52129   .) ac_abs_srcdir=$ac_abs_builddir;;
52130   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52131   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52132   esac;;
52133 esac
52134 case $ac_abs_builddir in
52135 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52136 *)
52137   case $ac_top_srcdir in
52138   .) ac_abs_top_srcdir=$ac_abs_builddir;;
52139   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52140   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52141   esac;;
52142 esac
52143
52144
52145   case $INSTALL in
52146   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52147   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
52148   esac
52149
52150   if test x"$ac_file" != x-; then
52151     { echo "$as_me:$LINENO: creating $ac_file" >&5
52152 echo "$as_me: creating $ac_file" >&6;}
52153     rm -f "$ac_file"
52154   fi
52155   # Let's still pretend it is `configure' which instantiates (i.e., don't
52156   # use $as_me), people would be surprised to read:
52157   #    /* config.h.  Generated by config.status.  */
52158   if test x"$ac_file" = x-; then
52159     configure_input=
52160   else
52161     configure_input="$ac_file.  "
52162   fi
52163   configure_input=$configure_input"Generated from `echo $ac_file_in |
52164                                      sed 's,.*/,,'` by configure."
52165
52166   # First look for the input files in the build tree, otherwise in the
52167   # src tree.
52168   ac_file_inputs=`IFS=:
52169     for f in $ac_file_in; do
52170       case $f in
52171       -) echo $tmp/stdin ;;
52172       [\\/$]*)
52173          # Absolute (can't be DOS-style, as IFS=:)
52174          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52175 echo "$as_me: error: cannot find input file: $f" >&2;}
52176    { (exit 1); exit 1; }; }
52177          echo "$f";;
52178       *) # Relative
52179          if test -f "$f"; then
52180            # Build tree
52181            echo "$f"
52182          elif test -f "$srcdir/$f"; then
52183            # Source tree
52184            echo "$srcdir/$f"
52185          else
52186            # /dev/null tree
52187            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52188 echo "$as_me: error: cannot find input file: $f" >&2;}
52189    { (exit 1); exit 1; }; }
52190          fi;;
52191       esac
52192     done` || { (exit 1); exit 1; }
52193 _ACEOF
52194 cat >>$CONFIG_STATUS <<_ACEOF
52195   sed "$ac_vpsub
52196 $extrasub
52197 _ACEOF
52198 cat >>$CONFIG_STATUS <<\_ACEOF
52199 :t
52200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52201 s,@configure_input@,$configure_input,;t t
52202 s,@srcdir@,$ac_srcdir,;t t
52203 s,@abs_srcdir@,$ac_abs_srcdir,;t t
52204 s,@top_srcdir@,$ac_top_srcdir,;t t
52205 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
52206 s,@builddir@,$ac_builddir,;t t
52207 s,@abs_builddir@,$ac_abs_builddir,;t t
52208 s,@top_builddir@,$ac_top_builddir,;t t
52209 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
52210 s,@INSTALL@,$ac_INSTALL,;t t
52211 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
52212   rm -f $tmp/stdin
52213   if test x"$ac_file" != x-; then
52214     mv $tmp/out $ac_file
52215   else
52216     cat $tmp/out
52217     rm -f $tmp/out
52218   fi
52219
52220 done
52221 _ACEOF
52222 cat >>$CONFIG_STATUS <<\_ACEOF
52223
52224 #
52225 # CONFIG_HEADER section.
52226 #
52227
52228 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
52229 # NAME is the cpp macro being defined and VALUE is the value it is being given.
52230 #
52231 # ac_d sets the value in "#define NAME VALUE" lines.
52232 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
52233 ac_dB='[         ].*$,\1#\2'
52234 ac_dC=' '
52235 ac_dD=',;t'
52236 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
52237 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
52238 ac_uB='$,\1#\2define\3'
52239 ac_uC=' '
52240 ac_uD=',;t'
52241
52242 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
52243   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52244   case $ac_file in
52245   - | *:- | *:-:* ) # input from stdin
52246         cat >$tmp/stdin
52247         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52248         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52249   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52250         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52251   * )   ac_file_in=$ac_file.in ;;
52252   esac
52253
52254   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
52255 echo "$as_me: creating $ac_file" >&6;}
52256
52257   # First look for the input files in the build tree, otherwise in the
52258   # src tree.
52259   ac_file_inputs=`IFS=:
52260     for f in $ac_file_in; do
52261       case $f in
52262       -) echo $tmp/stdin ;;
52263       [\\/$]*)
52264          # Absolute (can't be DOS-style, as IFS=:)
52265          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52266 echo "$as_me: error: cannot find input file: $f" >&2;}
52267    { (exit 1); exit 1; }; }
52268          # Do quote $f, to prevent DOS paths from being IFS'd.
52269          echo "$f";;
52270       *) # Relative
52271          if test -f "$f"; then
52272            # Build tree
52273            echo "$f"
52274          elif test -f "$srcdir/$f"; then
52275            # Source tree
52276            echo "$srcdir/$f"
52277          else
52278            # /dev/null tree
52279            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52280 echo "$as_me: error: cannot find input file: $f" >&2;}
52281    { (exit 1); exit 1; }; }
52282          fi;;
52283       esac
52284     done` || { (exit 1); exit 1; }
52285   # Remove the trailing spaces.
52286   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
52287
52288 _ACEOF
52289
52290 # Transform confdefs.h into two sed scripts, `conftest.defines' and
52291 # `conftest.undefs', that substitutes the proper values into
52292 # config.h.in to produce config.h.  The first handles `#define'
52293 # templates, and the second `#undef' templates.
52294 # And first: Protect against being on the right side of a sed subst in
52295 # config.status.  Protect against being in an unquoted here document
52296 # in config.status.
52297 rm -f conftest.defines conftest.undefs
52298 # Using a here document instead of a string reduces the quoting nightmare.
52299 # Putting comments in sed scripts is not portable.
52300 #
52301 # `end' is used to avoid that the second main sed command (meant for
52302 # 0-ary CPP macros) applies to n-ary macro definitions.
52303 # See the Autoconf documentation for `clear'.
52304 cat >confdef2sed.sed <<\_ACEOF
52305 s/[\\&,]/\\&/g
52306 s,[\\$`],\\&,g
52307 t clear
52308 : clear
52309 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
52310 t end
52311 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
52312 : end
52313 _ACEOF
52314 # If some macros were called several times there might be several times
52315 # the same #defines, which is useless.  Nevertheless, we may not want to
52316 # sort them, since we want the *last* AC-DEFINE to be honored.
52317 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
52318 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
52319 rm -f confdef2sed.sed
52320
52321 # This sed command replaces #undef with comments.  This is necessary, for
52322 # example, in the case of _POSIX_SOURCE, which is predefined and required
52323 # on some systems where configure will not decide to define it.
52324 cat >>conftest.undefs <<\_ACEOF
52325 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
52326 _ACEOF
52327
52328 # Break up conftest.defines because some shells have a limit on the size
52329 # of here documents, and old seds have small limits too (100 cmds).
52330 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
52331 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
52332 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
52333 echo '  :' >>$CONFIG_STATUS
52334 rm -f conftest.tail
52335 while grep . conftest.defines >/dev/null
52336 do
52337   # Write a limited-size here document to $tmp/defines.sed.
52338   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
52339   # Speed up: don't consider the non `#define' lines.
52340   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
52341   # Work around the forget-to-reset-the-flag bug.
52342   echo 't clr' >>$CONFIG_STATUS
52343   echo ': clr' >>$CONFIG_STATUS
52344   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
52345   echo 'CEOF
52346   sed -f $tmp/defines.sed $tmp/in >$tmp/out
52347   rm -f $tmp/in
52348   mv $tmp/out $tmp/in
52349 ' >>$CONFIG_STATUS
52350   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
52351   rm -f conftest.defines
52352   mv conftest.tail conftest.defines
52353 done
52354 rm -f conftest.defines
52355 echo '  fi # grep' >>$CONFIG_STATUS
52356 echo >>$CONFIG_STATUS
52357
52358 # Break up conftest.undefs because some shells have a limit on the size
52359 # of here documents, and old seds have small limits too (100 cmds).
52360 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
52361 rm -f conftest.tail
52362 while grep . conftest.undefs >/dev/null
52363 do
52364   # Write a limited-size here document to $tmp/undefs.sed.
52365   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
52366   # Speed up: don't consider the non `#undef'
52367   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
52368   # Work around the forget-to-reset-the-flag bug.
52369   echo 't clr' >>$CONFIG_STATUS
52370   echo ': clr' >>$CONFIG_STATUS
52371   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
52372   echo 'CEOF
52373   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
52374   rm -f $tmp/in
52375   mv $tmp/out $tmp/in
52376 ' >>$CONFIG_STATUS
52377   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
52378   rm -f conftest.undefs
52379   mv conftest.tail conftest.undefs
52380 done
52381 rm -f conftest.undefs
52382
52383 cat >>$CONFIG_STATUS <<\_ACEOF
52384   # Let's still pretend it is `configure' which instantiates (i.e., don't
52385   # use $as_me), people would be surprised to read:
52386   #    /* config.h.  Generated by config.status.  */
52387   if test x"$ac_file" = x-; then
52388     echo "/* Generated by configure.  */" >$tmp/config.h
52389   else
52390     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
52391   fi
52392   cat $tmp/in >>$tmp/config.h
52393   rm -f $tmp/in
52394   if test x"$ac_file" != x-; then
52395     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
52396       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52397 echo "$as_me: $ac_file is unchanged" >&6;}
52398     else
52399       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52400 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52401          X"$ac_file" : 'X\(//\)[^/]' \| \
52402          X"$ac_file" : 'X\(//\)$' \| \
52403          X"$ac_file" : 'X\(/\)' \| \
52404          .     : '\(.\)' 2>/dev/null ||
52405 echo X"$ac_file" |
52406     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52407           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52408           /^X\(\/\/\)$/{ s//\1/; q; }
52409           /^X\(\/\).*/{ s//\1/; q; }
52410           s/.*/./; q'`
52411       { if $as_mkdir_p; then
52412     mkdir -p "$ac_dir"
52413   else
52414     as_dir="$ac_dir"
52415     as_dirs=
52416     while test ! -d "$as_dir"; do
52417       as_dirs="$as_dir $as_dirs"
52418       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52419 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52420          X"$as_dir" : 'X\(//\)[^/]' \| \
52421          X"$as_dir" : 'X\(//\)$' \| \
52422          X"$as_dir" : 'X\(/\)' \| \
52423          .     : '\(.\)' 2>/dev/null ||
52424 echo X"$as_dir" |
52425     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52426           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52427           /^X\(\/\/\)$/{ s//\1/; q; }
52428           /^X\(\/\).*/{ s//\1/; q; }
52429           s/.*/./; q'`
52430     done
52431     test ! -n "$as_dirs" || mkdir $as_dirs
52432   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52433 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52434    { (exit 1); exit 1; }; }; }
52435
52436       rm -f $ac_file
52437       mv $tmp/config.h $ac_file
52438     fi
52439   else
52440     cat $tmp/config.h
52441     rm -f $tmp/config.h
52442   fi
52443 # Compute $ac_file's index in $config_headers.
52444 _am_stamp_count=1
52445 for _am_header in $config_headers :; do
52446   case $_am_header in
52447     $ac_file | $ac_file:* )
52448       break ;;
52449     * )
52450       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
52451   esac
52452 done
52453 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
52454 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52455          X$ac_file : 'X\(//\)[^/]' \| \
52456          X$ac_file : 'X\(//\)$' \| \
52457          X$ac_file : 'X\(/\)' \| \
52458          .     : '\(.\)' 2>/dev/null ||
52459 echo X$ac_file |
52460     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52461           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52462           /^X\(\/\/\)$/{ s//\1/; q; }
52463           /^X\(\/\).*/{ s//\1/; q; }
52464           s/.*/./; q'`/stamp-h$_am_stamp_count
52465 done
52466 _ACEOF
52467 cat >>$CONFIG_STATUS <<\_ACEOF
52468
52469 #
52470 # CONFIG_COMMANDS section.
52471 #
52472 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
52473   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
52474   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
52475   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
52476 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52477          X"$ac_dest" : 'X\(//\)[^/]' \| \
52478          X"$ac_dest" : 'X\(//\)$' \| \
52479          X"$ac_dest" : 'X\(/\)' \| \
52480          .     : '\(.\)' 2>/dev/null ||
52481 echo X"$ac_dest" |
52482     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52483           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52484           /^X\(\/\/\)$/{ s//\1/; q; }
52485           /^X\(\/\).*/{ s//\1/; q; }
52486           s/.*/./; q'`
52487   { if $as_mkdir_p; then
52488     mkdir -p "$ac_dir"
52489   else
52490     as_dir="$ac_dir"
52491     as_dirs=
52492     while test ! -d "$as_dir"; do
52493       as_dirs="$as_dir $as_dirs"
52494       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52495 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52496          X"$as_dir" : 'X\(//\)[^/]' \| \
52497          X"$as_dir" : 'X\(//\)$' \| \
52498          X"$as_dir" : 'X\(/\)' \| \
52499          .     : '\(.\)' 2>/dev/null ||
52500 echo X"$as_dir" |
52501     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52502           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52503           /^X\(\/\/\)$/{ s//\1/; q; }
52504           /^X\(\/\).*/{ s//\1/; q; }
52505           s/.*/./; q'`
52506     done
52507     test ! -n "$as_dirs" || mkdir $as_dirs
52508   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52509 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52510    { (exit 1); exit 1; }; }; }
52511
52512   ac_builddir=.
52513
52514 if test "$ac_dir" != .; then
52515   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52516   # A "../" for each directory in $ac_dir_suffix.
52517   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52518 else
52519   ac_dir_suffix= ac_top_builddir=
52520 fi
52521
52522 case $srcdir in
52523   .)  # No --srcdir option.  We are building in place.
52524     ac_srcdir=.
52525     if test -z "$ac_top_builddir"; then
52526        ac_top_srcdir=.
52527     else
52528        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52529     fi ;;
52530   [\\/]* | ?:[\\/]* )  # Absolute path.
52531     ac_srcdir=$srcdir$ac_dir_suffix;
52532     ac_top_srcdir=$srcdir ;;
52533   *) # Relative path.
52534     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52535     ac_top_srcdir=$ac_top_builddir$srcdir ;;
52536 esac
52537
52538 # Do not use `cd foo && pwd` to compute absolute paths, because
52539 # the directories may not exist.
52540 case `pwd` in
52541 .) ac_abs_builddir="$ac_dir";;
52542 *)
52543   case "$ac_dir" in
52544   .) ac_abs_builddir=`pwd`;;
52545   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52546   *) ac_abs_builddir=`pwd`/"$ac_dir";;
52547   esac;;
52548 esac
52549 case $ac_abs_builddir in
52550 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52551 *)
52552   case ${ac_top_builddir}. in
52553   .) ac_abs_top_builddir=$ac_abs_builddir;;
52554   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52555   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52556   esac;;
52557 esac
52558 case $ac_abs_builddir in
52559 .) ac_abs_srcdir=$ac_srcdir;;
52560 *)
52561   case $ac_srcdir in
52562   .) ac_abs_srcdir=$ac_abs_builddir;;
52563   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52564   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52565   esac;;
52566 esac
52567 case $ac_abs_builddir in
52568 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52569 *)
52570   case $ac_top_srcdir in
52571   .) ac_abs_top_srcdir=$ac_abs_builddir;;
52572   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52573   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52574   esac;;
52575 esac
52576
52577
52578   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52579 echo "$as_me: executing $ac_dest commands" >&6;}
52580   case $ac_dest in
52581     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
52582   # Strip MF so we end up with the name of the file.
52583   mf=`echo "$mf" | sed -e 's/:.*$//'`
52584   # Check whether this is an Automake generated Makefile or not.
52585   # We used to match only the files named `Makefile.in', but
52586   # some people rename them; so instead we look at the file content.
52587   # Grep'ing the first line is not enough: some people post-process
52588   # each Makefile.in and add a new line on top of each file to say so.
52589   # So let's grep whole file.
52590   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
52591     dirpart=`(dirname "$mf") 2>/dev/null ||
52592 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52593          X"$mf" : 'X\(//\)[^/]' \| \
52594          X"$mf" : 'X\(//\)$' \| \
52595          X"$mf" : 'X\(/\)' \| \
52596          .     : '\(.\)' 2>/dev/null ||
52597 echo X"$mf" |
52598     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52599           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52600           /^X\(\/\/\)$/{ s//\1/; q; }
52601           /^X\(\/\).*/{ s//\1/; q; }
52602           s/.*/./; q'`
52603   else
52604     continue
52605   fi
52606   # Extract the definition of DEPDIR, am__include, and am__quote
52607   # from the Makefile without running `make'.
52608   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
52609   test -z "$DEPDIR" && continue
52610   am__include=`sed -n 's/^am__include = //p' < "$mf"`
52611   test -z "am__include" && continue
52612   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
52613   # When using ansi2knr, U may be empty or an underscore; expand it
52614   U=`sed -n 's/^U = //p' < "$mf"`
52615   # Find all dependency output files, they are included files with
52616   # $(DEPDIR) in their names.  We invoke sed twice because it is the
52617   # simplest approach to changing $(DEPDIR) to its actual value in the
52618   # expansion.
52619   for file in `sed -n "
52620     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
52621        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
52622     # Make sure the directory exists.
52623     test -f "$dirpart/$file" && continue
52624     fdir=`(dirname "$file") 2>/dev/null ||
52625 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52626          X"$file" : 'X\(//\)[^/]' \| \
52627          X"$file" : 'X\(//\)$' \| \
52628          X"$file" : 'X\(/\)' \| \
52629          .     : '\(.\)' 2>/dev/null ||
52630 echo X"$file" |
52631     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52632           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52633           /^X\(\/\/\)$/{ s//\1/; q; }
52634           /^X\(\/\).*/{ s//\1/; q; }
52635           s/.*/./; q'`
52636     { if $as_mkdir_p; then
52637     mkdir -p $dirpart/$fdir
52638   else
52639     as_dir=$dirpart/$fdir
52640     as_dirs=
52641     while test ! -d "$as_dir"; do
52642       as_dirs="$as_dir $as_dirs"
52643       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52644 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52645          X"$as_dir" : 'X\(//\)[^/]' \| \
52646          X"$as_dir" : 'X\(//\)$' \| \
52647          X"$as_dir" : 'X\(/\)' \| \
52648          .     : '\(.\)' 2>/dev/null ||
52649 echo X"$as_dir" |
52650     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52651           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52652           /^X\(\/\/\)$/{ s//\1/; q; }
52653           /^X\(\/\).*/{ s//\1/; q; }
52654           s/.*/./; q'`
52655     done
52656     test ! -n "$as_dirs" || mkdir $as_dirs
52657   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
52658 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
52659    { (exit 1); exit 1; }; }; }
52660
52661     # echo "creating $dirpart/$file"
52662     echo '# dummy' > "$dirpart/$file"
52663   done
52664 done
52665  ;;
52666     default )
52667 chmod +x tests/run
52668 date > stamp-h
52669 BACKENDSC="servers/slapd/backends.c"
52670 echo "Making $BACKENDSC"
52671 rm -f $BACKENDSC
52672 cat > $BACKENDSC << ENDX
52673 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
52674  *
52675  * Copyright 1998-2005 The OpenLDAP Foundation.
52676  * All rights reserved.
52677  *
52678  * Redistribution and use in source and binary forms, with or without
52679  * modification, are permitted only as authorized by the OpenLDAP
52680  * Public License.
52681  *
52682  * A copy of this license is available in the file LICENSE in the
52683  * top-level directory of the distribution or, alternatively, at
52684  * <http://www.OpenLDAP.org/license.html>.
52685  */
52686 /* This file is automatically generated by configure; please do not edit. */
52687
52688 #include "portable.h"
52689 #include "slap.h"
52690
52691 ENDX
52692 if test "${STATIC_BACKENDS}"; then
52693         for b in config ${STATIC_BACKENDS}; do
52694                 bb=`echo "${b}" | sed -e 's/back-//'`
52695                 cat >> $BACKENDSC << ENDX
52696 extern BI_init ${bb}_back_initialize;
52697 ENDX
52698         done
52699
52700         cat >> $BACKENDSC << ENDX
52701
52702 BackendInfo slap_binfo[] = {
52703 ENDX
52704
52705         for b in config ${STATIC_BACKENDS}; do
52706                 bb=`echo "${b}" | sed -e 's/back-//'`
52707                 echo "    Add ${bb} ..."
52708                 cat >> $BACKENDSC << ENDX
52709         { "${bb}", ${bb}_back_initialize },
52710 ENDX
52711         done
52712
52713         cat >> $BACKENDSC << ENDX
52714         { NULL, NULL },
52715 };
52716
52717 /* end of generated file */
52718 ENDX
52719 fi
52720
52721 echo Please run \"make depend\" to build dependencies
52722  ;;
52723   esac
52724 done
52725 _ACEOF
52726
52727 cat >>$CONFIG_STATUS <<\_ACEOF
52728
52729 { (exit 0); exit 0; }
52730 _ACEOF
52731 chmod +x $CONFIG_STATUS
52732 ac_clean_files=$ac_clean_files_save
52733
52734
52735 # configure is writing to config.log, and then calls config.status.
52736 # config.status does its own redirection, appending to config.log.
52737 # Unfortunately, on DOS this fails, as config.log is still kept open
52738 # by configure, so config.status won't be able to write to it; its
52739 # output is simply discarded.  So we exec the FD to /dev/null,
52740 # effectively closing config.log, so it can be properly (re)opened and
52741 # appended to by config.status.  When coming back to configure, we
52742 # need to make the FD available again.
52743 if test "$no_create" != yes; then
52744   ac_cs_success=:
52745   ac_config_status_args=
52746   test "$silent" = yes &&
52747     ac_config_status_args="$ac_config_status_args --quiet"
52748   exec 5>/dev/null
52749   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52750   exec 5>>config.log
52751   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52752   # would make configure fail if this is the last instruction.
52753   $ac_cs_success || { (exit 1); exit 1; }
52754 fi
52755