]> git.sur5r.net Git - openldap/blob - configure
Back out autoupdate 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 # set unset (borrowed from autoconf 2.49c)
1555 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
1556   ol_unset=unset
1557 else
1558   ol_unset=false
1559 fi
1560 # unset CDPATH
1561 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
1562
1563 ac_aux_dir=
1564 for ac_dir in build $srcdir/build; do
1565   if test -f $ac_dir/install-sh; then
1566     ac_aux_dir=$ac_dir
1567     ac_install_sh="$ac_aux_dir/install-sh -c"
1568     break
1569   elif test -f $ac_dir/install.sh; then
1570     ac_aux_dir=$ac_dir
1571     ac_install_sh="$ac_aux_dir/install.sh -c"
1572     break
1573   elif test -f $ac_dir/shtool; then
1574     ac_aux_dir=$ac_dir
1575     ac_install_sh="$ac_aux_dir/shtool install -c"
1576     break
1577   fi
1578 done
1579 if test -z "$ac_aux_dir"; then
1580   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1581 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1582    { (exit 1); exit 1; }; }
1583 fi
1584 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1585 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1586 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1587
1588 eval `$ac_aux_dir/version.sh`
1589 if test -z "$OL_STRING"; then
1590         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1591 echo "$as_me: error: could not determine version" >&2;}
1592    { (exit 1); exit 1; }; }
1593 fi
1594
1595 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
1596         ac_cv_shtool="$ac_aux_dir/shtool"
1597 else
1598         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1599 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1600    { (exit 1); exit 1; }; }
1601 fi
1602
1603 SHTOOL="$ac_cv_shtool"
1604
1605 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1606 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1607
1608 OPENLDAP_CVS=""
1609 if test -d $ac_aux_dir/CVS; then
1610         OPENLDAP_CVS="(from CVS sources) "
1611 fi
1612
1613 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1614
1615 # Make sure we can run config.sub.
1616 $ac_config_sub sun4 >/dev/null 2>&1 ||
1617   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1618 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1619    { (exit 1); exit 1; }; }
1620
1621 echo "$as_me:$LINENO: checking build system type" >&5
1622 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1623 if test "${ac_cv_build+set}" = set; then
1624   echo $ECHO_N "(cached) $ECHO_C" >&6
1625 else
1626   ac_cv_build_alias=$build_alias
1627 test -z "$ac_cv_build_alias" &&
1628   ac_cv_build_alias=`$ac_config_guess`
1629 test -z "$ac_cv_build_alias" &&
1630   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1631 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1632    { (exit 1); exit 1; }; }
1633 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1634   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1635 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1636    { (exit 1); exit 1; }; }
1637
1638 fi
1639 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1640 echo "${ECHO_T}$ac_cv_build" >&6
1641 build=$ac_cv_build
1642 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1645
1646
1647 echo "$as_me:$LINENO: checking host system type" >&5
1648 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1649 if test "${ac_cv_host+set}" = set; then
1650   echo $ECHO_N "(cached) $ECHO_C" >&6
1651 else
1652   ac_cv_host_alias=$host_alias
1653 test -z "$ac_cv_host_alias" &&
1654   ac_cv_host_alias=$ac_cv_build_alias
1655 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1656   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1657 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1658    { (exit 1); exit 1; }; }
1659
1660 fi
1661 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1662 echo "${ECHO_T}$ac_cv_host" >&6
1663 host=$ac_cv_host
1664 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1665 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1666 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1667
1668
1669 echo "$as_me:$LINENO: checking target system type" >&5
1670 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1671 if test "${ac_cv_target+set}" = set; then
1672   echo $ECHO_N "(cached) $ECHO_C" >&6
1673 else
1674   ac_cv_target_alias=$target_alias
1675 test "x$ac_cv_target_alias" = "x" &&
1676   ac_cv_target_alias=$ac_cv_host_alias
1677 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1678   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1679 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1680    { (exit 1); exit 1; }; }
1681
1682 fi
1683 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1684 echo "${ECHO_T}$ac_cv_target" >&6
1685 target=$ac_cv_target
1686 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1689
1690
1691 # The aliases save the names the user supplied, while $host etc.
1692 # will get canonicalized.
1693 test -n "$target_alias" &&
1694   test "$program_prefix$program_suffix$program_transform_name" = \
1695     NONENONEs,x,x, &&
1696   program_prefix=${target_alias}-
1697
1698 am__api_version="1.9"
1699 # Find a good install program.  We prefer a C program (faster),
1700 # so one script is as good as another.  But avoid the broken or
1701 # incompatible versions:
1702 # SysV /etc/install, /usr/sbin/install
1703 # SunOS /usr/etc/install
1704 # IRIX /sbin/install
1705 # AIX /bin/install
1706 # AmigaOS /C/install, which installs bootblocks on floppy discs
1707 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1708 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1709 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1710 # OS/2's system install, which has a completely different semantic
1711 # ./install, which can be erroneously created by make from ./install.sh.
1712 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1713 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1714 if test -z "$INSTALL"; then
1715 if test "${ac_cv_path_install+set}" = set; then
1716   echo $ECHO_N "(cached) $ECHO_C" >&6
1717 else
1718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 for as_dir in $PATH
1720 do
1721   IFS=$as_save_IFS
1722   test -z "$as_dir" && as_dir=.
1723   # Account for people who put trailing slashes in PATH elements.
1724 case $as_dir/ in
1725   ./ | .// | /cC/* | \
1726   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1727   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1728   /usr/ucb/* ) ;;
1729   *)
1730     # OSF1 and SCO ODT 3.0 have their own names for install.
1731     # Don't use installbsd from OSF since it installs stuff as root
1732     # by default.
1733     for ac_prog in ginstall scoinst install; do
1734       for ac_exec_ext in '' $ac_executable_extensions; do
1735         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1736           if test $ac_prog = install &&
1737             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1738             # AIX install.  It has an incompatible calling convention.
1739             :
1740           elif test $ac_prog = install &&
1741             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1742             # program-specific install script used by HP pwplus--don't use.
1743             :
1744           else
1745             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1746             break 3
1747           fi
1748         fi
1749       done
1750     done
1751     ;;
1752 esac
1753 done
1754
1755
1756 fi
1757   if test "${ac_cv_path_install+set}" = set; then
1758     INSTALL=$ac_cv_path_install
1759   else
1760     # As a last resort, use the slow shell script.  We don't cache a
1761     # path for INSTALL within a source directory, because that will
1762     # break other packages using the cache if that directory is
1763     # removed, or if the path is relative.
1764     INSTALL=$ac_install_sh
1765   fi
1766 fi
1767 echo "$as_me:$LINENO: result: $INSTALL" >&5
1768 echo "${ECHO_T}$INSTALL" >&6
1769
1770 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1771 # It thinks the first close brace ends the variable substitution.
1772 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1773
1774 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1775
1776 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1777
1778 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1779 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1780 # Just in case
1781 sleep 1
1782 echo timestamp > conftest.file
1783 # Do `set' in a subshell so we don't clobber the current shell's
1784 # arguments.  Must try -L first in case configure is actually a
1785 # symlink; some systems play weird games with the mod time of symlinks
1786 # (eg FreeBSD returns the mod time of the symlink's containing
1787 # directory).
1788 if (
1789    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1790    if test "$*" = "X"; then
1791       # -L didn't work.
1792       set X `ls -t $srcdir/configure conftest.file`
1793    fi
1794    rm -f conftest.file
1795    if test "$*" != "X $srcdir/configure conftest.file" \
1796       && test "$*" != "X conftest.file $srcdir/configure"; then
1797
1798       # If neither matched, then we have a broken ls.  This can happen
1799       # if, for instance, CONFIG_SHELL is bash and it inherits a
1800       # broken ls alias from the environment.  This has actually
1801       # happened.  Such a system could not be considered "sane".
1802       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1803 alias in your environment" >&5
1804 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1805 alias in your environment" >&2;}
1806    { (exit 1); exit 1; }; }
1807    fi
1808
1809    test "$2" = conftest.file
1810    )
1811 then
1812    # Ok.
1813    :
1814 else
1815    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1816 Check your system clock" >&5
1817 echo "$as_me: error: newly created file is older than distributed files!
1818 Check your system clock" >&2;}
1819    { (exit 1); exit 1; }; }
1820 fi
1821 echo "$as_me:$LINENO: result: yes" >&5
1822 echo "${ECHO_T}yes" >&6
1823 test "$program_prefix" != NONE &&
1824   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1825 # Use a double $ so make ignores it.
1826 test "$program_suffix" != NONE &&
1827   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1828 # Double any \ or $.  echo might interpret backslashes.
1829 # By default was `s,x,x', remove it if useless.
1830 cat <<\_ACEOF >conftest.sed
1831 s/[\\$]/&&/g;s/;s,x,x,$//
1832 _ACEOF
1833 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1834 rm conftest.sed
1835
1836 # expand $ac_aux_dir to an absolute path
1837 am_aux_dir=`cd $ac_aux_dir && pwd`
1838
1839 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1840 # Use eval to expand $SHELL
1841 if eval "$MISSING --run true"; then
1842   am_missing_run="$MISSING --run "
1843 else
1844   am_missing_run=
1845   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1846 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1847 fi
1848
1849 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1850   # We used to keeping the `.' as first argument, in order to
1851   # allow $(mkdir_p) to be used without argument.  As in
1852   #   $(mkdir_p) $(somedir)
1853   # where $(somedir) is conditionally defined.  However this is wrong
1854   # for two reasons:
1855   #  1. if the package is installed by a user who cannot write `.'
1856   #     make install will fail,
1857   #  2. the above comment should most certainly read
1858   #     $(mkdir_p) $(DESTDIR)$(somedir)
1859   #     so it does not work when $(somedir) is undefined and
1860   #     $(DESTDIR) is not.
1861   #  To support the latter case, we have to write
1862   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1863   #  so the `.' trick is pointless.
1864   mkdir_p='mkdir -p --'
1865 else
1866   # On NextStep and OpenStep, the `mkdir' command does not
1867   # recognize any option.  It will interpret all options as
1868   # directories to create, and then abort because `.' already
1869   # exists.
1870   for d in ./-p ./--version;
1871   do
1872     test -d $d && rmdir $d
1873   done
1874   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1875   if test -f "$ac_aux_dir/mkinstalldirs"; then
1876     mkdir_p='$(mkinstalldirs)'
1877   else
1878     mkdir_p='$(install_sh) -d'
1879   fi
1880 fi
1881
1882 for ac_prog in gawk mawk nawk awk
1883 do
1884   # Extract the first word of "$ac_prog", so it can be a program name with args.
1885 set dummy $ac_prog; ac_word=$2
1886 echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888 if test "${ac_cv_prog_AWK+set}" = set; then
1889   echo $ECHO_N "(cached) $ECHO_C" >&6
1890 else
1891   if test -n "$AWK"; then
1892   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1893 else
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 for as_dir in $PATH
1896 do
1897   IFS=$as_save_IFS
1898   test -z "$as_dir" && as_dir=.
1899   for ac_exec_ext in '' $ac_executable_extensions; do
1900   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901     ac_cv_prog_AWK="$ac_prog"
1902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903     break 2
1904   fi
1905 done
1906 done
1907
1908 fi
1909 fi
1910 AWK=$ac_cv_prog_AWK
1911 if test -n "$AWK"; then
1912   echo "$as_me:$LINENO: result: $AWK" >&5
1913 echo "${ECHO_T}$AWK" >&6
1914 else
1915   echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1917 fi
1918
1919   test -n "$AWK" && break
1920 done
1921
1922 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1923 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1924 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1925 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1926   echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928   cat >conftest.make <<\_ACEOF
1929 all:
1930         @echo 'ac_maketemp="$(MAKE)"'
1931 _ACEOF
1932 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1933 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1934 if test -n "$ac_maketemp"; then
1935   eval ac_cv_prog_make_${ac_make}_set=yes
1936 else
1937   eval ac_cv_prog_make_${ac_make}_set=no
1938 fi
1939 rm -f conftest.make
1940 fi
1941 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1942   echo "$as_me:$LINENO: result: yes" >&5
1943 echo "${ECHO_T}yes" >&6
1944   SET_MAKE=
1945 else
1946   echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6
1948   SET_MAKE="MAKE=${MAKE-make}"
1949 fi
1950
1951 rm -rf .tst 2>/dev/null
1952 mkdir .tst 2>/dev/null
1953 if test -d .tst; then
1954   am__leading_dot=.
1955 else
1956   am__leading_dot=_
1957 fi
1958 rmdir .tst 2>/dev/null
1959
1960 # test to see if srcdir already configured
1961 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1962    test -f $srcdir/config.status; then
1963   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1964 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1965    { (exit 1); exit 1; }; }
1966 fi
1967
1968 # test whether we have cygpath
1969 if test -z "$CYGPATH_W"; then
1970   if (cygpath --version) >/dev/null 2>/dev/null; then
1971     CYGPATH_W='cygpath -w'
1972   else
1973     CYGPATH_W=echo
1974   fi
1975 fi
1976
1977
1978 # Define the identity of the package.
1979  PACKAGE=$OL_PACKAGE
1980  VERSION=$OL_VERSION
1981
1982
1983 # Some tools Automake needs.
1984
1985 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1986
1987
1988 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1989
1990
1991 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1992
1993
1994 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1995
1996
1997 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1998
1999 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2000
2001 # Installed binaries are usually stripped using `strip' when the user
2002 # run `make install-strip'.  However `strip' might not be the right
2003 # tool to use in cross-compilation environments, therefore Automake
2004 # will honor the `STRIP' environment variable to overrule this program.
2005 if test "$cross_compiling" != no; then
2006   if test -n "$ac_tool_prefix"; then
2007   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2008 set dummy ${ac_tool_prefix}strip; ac_word=$2
2009 echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_STRIP+set}" = set; then
2012   echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014   if test -n "$STRIP"; then
2015   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2016 else
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 for as_dir in $PATH
2019 do
2020   IFS=$as_save_IFS
2021   test -z "$as_dir" && as_dir=.
2022   for ac_exec_ext in '' $ac_executable_extensions; do
2023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026     break 2
2027   fi
2028 done
2029 done
2030
2031 fi
2032 fi
2033 STRIP=$ac_cv_prog_STRIP
2034 if test -n "$STRIP"; then
2035   echo "$as_me:$LINENO: result: $STRIP" >&5
2036 echo "${ECHO_T}$STRIP" >&6
2037 else
2038   echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6
2040 fi
2041
2042 fi
2043 if test -z "$ac_cv_prog_STRIP"; then
2044   ac_ct_STRIP=$STRIP
2045   # Extract the first word of "strip", so it can be a program name with args.
2046 set dummy strip; ac_word=$2
2047 echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   if test -n "$ac_ct_STRIP"; then
2053   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2054 else
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2057 do
2058   IFS=$as_save_IFS
2059   test -z "$as_dir" && as_dir=.
2060   for ac_exec_ext in '' $ac_executable_extensions; do
2061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062     ac_cv_prog_ac_ct_STRIP="strip"
2063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064     break 2
2065   fi
2066 done
2067 done
2068
2069   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2070 fi
2071 fi
2072 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2073 if test -n "$ac_ct_STRIP"; then
2074   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2075 echo "${ECHO_T}$ac_ct_STRIP" >&6
2076 else
2077   echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6
2079 fi
2080
2081   STRIP=$ac_ct_STRIP
2082 else
2083   STRIP="$ac_cv_prog_STRIP"
2084 fi
2085
2086 fi
2087 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2088
2089 # We need awk for the "check" target.  The system "awk" is bad on
2090 # some platforms.
2091 # Always define AMTAR for backward compatibility.
2092
2093 AMTAR=${AMTAR-"${am_missing_run}tar"}
2094
2095 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2096
2097
2098
2099
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define OPENLDAP_PACKAGE "$PACKAGE"
2103 _ACEOF
2104
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define OPENLDAP_VERSION "$VERSION"
2108 _ACEOF
2109
2110
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define LDAP_VENDOR_VERSION $OL_API_INC
2114 _ACEOF
2115
2116
2117 cat >>confdefs.h <<_ACEOF
2118 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2119 _ACEOF
2120
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2124 _ACEOF
2125
2126
2127 cat >>confdefs.h <<_ACEOF
2128 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2129 _ACEOF
2130
2131
2132 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2133
2134 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2135
2136 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2137
2138
2139                               ac_config_headers="$ac_config_headers include/portable.h include/ldap_features.h include/lber_types.h"
2140
2141 echo "$as_me:$LINENO: checking configure arguments" >&5
2142 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2143
2144
2145 top_builddir=`pwd`
2146
2147 ldap_subdir="/openldap"
2148
2149
2150 # Check whether --with-subdir or --without-subdir was given.
2151 if test "${with_subdir+set}" = set; then
2152   withval="$with_subdir"
2153   case "$withval" in
2154         no) ldap_subdir=""
2155                 ;;
2156         yes)
2157                 ;;
2158         /*|\\*)
2159                 ldap_subdir="$withval"
2160                 ;;
2161         *)
2162                 ldap_subdir="/$withval"
2163                 ;;
2164 esac
2165
2166 fi;
2167
2168 # OpenLDAP --enable-debug
2169         # Check whether --enable-debug or --disable-debug was given.
2170 if test "${enable_debug+set}" = set; then
2171   enableval="$enable_debug"
2172
2173         ol_arg=invalid
2174         for ol_val in auto yes no ; do
2175                 if test "$enableval" = "$ol_val" ; then
2176                         ol_arg="$ol_val"
2177                 fi
2178         done
2179         if test "$ol_arg" = "invalid" ; then
2180                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2181 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2182    { (exit 1); exit 1; }; }
2183         fi
2184         ol_enable_debug="$ol_arg"
2185
2186 else
2187         ol_enable_debug="yes"
2188 fi; # end --enable-debug
2189 # OpenLDAP --enable-dynamic
2190         # Check whether --enable-dynamic or --disable-dynamic was given.
2191 if test "${enable_dynamic+set}" = set; then
2192   enableval="$enable_dynamic"
2193
2194         ol_arg=invalid
2195         for ol_val in auto yes no ; do
2196                 if test "$enableval" = "$ol_val" ; then
2197                         ol_arg="$ol_val"
2198                 fi
2199         done
2200         if test "$ol_arg" = "invalid" ; then
2201                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2202 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2203    { (exit 1); exit 1; }; }
2204         fi
2205         ol_enable_dynamic="$ol_arg"
2206
2207 else
2208         ol_enable_dynamic="no"
2209 fi; # end --enable-dynamic
2210 # OpenLDAP --enable-syslog
2211         # Check whether --enable-syslog or --disable-syslog was given.
2212 if test "${enable_syslog+set}" = set; then
2213   enableval="$enable_syslog"
2214
2215         ol_arg=invalid
2216         for ol_val in auto yes no ; do
2217                 if test "$enableval" = "$ol_val" ; then
2218                         ol_arg="$ol_val"
2219                 fi
2220         done
2221         if test "$ol_arg" = "invalid" ; then
2222                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2223 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2224    { (exit 1); exit 1; }; }
2225         fi
2226         ol_enable_syslog="$ol_arg"
2227
2228 else
2229         ol_enable_syslog="auto"
2230 fi; # end --enable-syslog
2231 # OpenLDAP --enable-proctitle
2232         # Check whether --enable-proctitle or --disable-proctitle was given.
2233 if test "${enable_proctitle+set}" = set; then
2234   enableval="$enable_proctitle"
2235
2236         ol_arg=invalid
2237         for ol_val in auto yes no ; do
2238                 if test "$enableval" = "$ol_val" ; then
2239                         ol_arg="$ol_val"
2240                 fi
2241         done
2242         if test "$ol_arg" = "invalid" ; then
2243                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2244 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2245    { (exit 1); exit 1; }; }
2246         fi
2247         ol_enable_proctitle="$ol_arg"
2248
2249 else
2250         ol_enable_proctitle="yes"
2251 fi; # end --enable-proctitle
2252 ol_enable_referrals=${ol_enable_referrals-no}
2253 ol_enable_kbind=${ol_enable_kbind-no}
2254 # OpenLDAP --enable-ipv6
2255         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2256 if test "${enable_ipv6+set}" = set; then
2257   enableval="$enable_ipv6"
2258
2259         ol_arg=invalid
2260         for ol_val in auto yes no ; do
2261                 if test "$enableval" = "$ol_val" ; then
2262                         ol_arg="$ol_val"
2263                 fi
2264         done
2265         if test "$ol_arg" = "invalid" ; then
2266                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2267 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2268    { (exit 1); exit 1; }; }
2269         fi
2270         ol_enable_ipv6="$ol_arg"
2271
2272 else
2273         ol_enable_ipv6="auto"
2274 fi; # end --enable-ipv6
2275 # OpenLDAP --enable-local
2276         # Check whether --enable-local or --disable-local was given.
2277 if test "${enable_local+set}" = set; then
2278   enableval="$enable_local"
2279
2280         ol_arg=invalid
2281         for ol_val in auto yes no ; do
2282                 if test "$enableval" = "$ol_val" ; then
2283                         ol_arg="$ol_val"
2284                 fi
2285         done
2286         if test "$ol_arg" = "invalid" ; then
2287                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2288 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2289    { (exit 1); exit 1; }; }
2290         fi
2291         ol_enable_local="$ol_arg"
2292
2293 else
2294         ol_enable_local="auto"
2295 fi; # end --enable-local
2296
2297
2298 # OpenLDAP --with-cyrus_sasl
2299
2300 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2301 if test "${with_cyrus_sasl+set}" = set; then
2302   withval="$with_cyrus_sasl"
2303
2304         ol_arg=invalid
2305         for ol_val in auto yes no  ; do
2306                 if test "$withval" = "$ol_val" ; then
2307                         ol_arg="$ol_val"
2308                 fi
2309         done
2310         if test "$ol_arg" = "invalid" ; then
2311                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2312 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2313    { (exit 1); exit 1; }; }
2314         fi
2315         ol_with_cyrus_sasl="$ol_arg"
2316
2317 else
2318         ol_with_cyrus_sasl="auto"
2319 fi; # end --with-cyrus_sasl
2320
2321 # OpenLDAP --with-fetch
2322
2323 # Check whether --with-fetch or --without-fetch was given.
2324 if test "${with_fetch+set}" = set; then
2325   withval="$with_fetch"
2326
2327         ol_arg=invalid
2328         for ol_val in auto yes no  ; do
2329                 if test "$withval" = "$ol_val" ; then
2330                         ol_arg="$ol_val"
2331                 fi
2332         done
2333         if test "$ol_arg" = "invalid" ; then
2334                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2335 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2336    { (exit 1); exit 1; }; }
2337         fi
2338         ol_with_fetch="$ol_arg"
2339
2340 else
2341         ol_with_fetch="auto"
2342 fi; # end --with-fetch
2343
2344 ol_with_kerberos=${ol_with_kerberos-auto}
2345 # OpenLDAP --with-threads
2346
2347 # Check whether --with-threads or --without-threads was given.
2348 if test "${with_threads+set}" = set; then
2349   withval="$with_threads"
2350
2351         ol_arg=invalid
2352         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2353                 if test "$withval" = "$ol_val" ; then
2354                         ol_arg="$ol_val"
2355                 fi
2356         done
2357         if test "$ol_arg" = "invalid" ; then
2358                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2359 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2360    { (exit 1); exit 1; }; }
2361         fi
2362         ol_with_threads="$ol_arg"
2363
2364 else
2365         ol_with_threads="auto"
2366 fi; # end --with-threads
2367
2368 # OpenLDAP --with-tls
2369
2370 # Check whether --with-tls or --without-tls was given.
2371 if test "${with_tls+set}" = set; then
2372   withval="$with_tls"
2373
2374         ol_arg=invalid
2375         for ol_val in auto ssleay openssl yes no  ; do
2376                 if test "$withval" = "$ol_val" ; then
2377                         ol_arg="$ol_val"
2378                 fi
2379         done
2380         if test "$ol_arg" = "invalid" ; then
2381                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2382 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2383    { (exit 1); exit 1; }; }
2384         fi
2385         ol_with_tls="$ol_arg"
2386
2387 else
2388         ol_with_tls="auto"
2389 fi; # end --with-tls
2390
2391 # OpenLDAP --with-yielding_select
2392
2393 # Check whether --with-yielding_select or --without-yielding_select was given.
2394 if test "${with_yielding_select+set}" = set; then
2395   withval="$with_yielding_select"
2396
2397         ol_arg=invalid
2398         for ol_val in auto yes no manual  ; do
2399                 if test "$withval" = "$ol_val" ; then
2400                         ol_arg="$ol_val"
2401                 fi
2402         done
2403         if test "$ol_arg" = "invalid" ; then
2404                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2405 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2406    { (exit 1); exit 1; }; }
2407         fi
2408         ol_with_yielding_select="$ol_arg"
2409
2410 else
2411         ol_with_yielding_select="auto"
2412 fi; # end --with-yielding_select
2413
2414 # OpenLDAP --with-multiple_precision
2415
2416 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2417 if test "${with_multiple_precision+set}" = set; then
2418   withval="$with_multiple_precision"
2419
2420         ol_arg=invalid
2421         for ol_val in auto bignum gmp yes no  ; do
2422                 if test "$withval" = "$ol_val" ; then
2423                         ol_arg="$ol_val"
2424                 fi
2425         done
2426         if test "$ol_arg" = "invalid" ; then
2427                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2428 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2429    { (exit 1); exit 1; }; }
2430         fi
2431         ol_with_multiple_precision="$ol_arg"
2432
2433 else
2434         ol_with_multiple_precision="auto"
2435 fi; # end --with-multiple_precision
2436
2437
2438
2439
2440 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
2441 if test "${with_xxslapdoptions+set}" = set; then
2442   withval="$with_xxslapdoptions"
2443
2444 fi;
2445 # OpenLDAP --enable-slapd
2446         # Check whether --enable-slapd or --disable-slapd was given.
2447 if test "${enable_slapd+set}" = set; then
2448   enableval="$enable_slapd"
2449
2450         ol_arg=invalid
2451         for ol_val in auto yes no ; do
2452                 if test "$enableval" = "$ol_val" ; then
2453                         ol_arg="$ol_val"
2454                 fi
2455         done
2456         if test "$ol_arg" = "invalid" ; then
2457                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2458 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2459    { (exit 1); exit 1; }; }
2460         fi
2461         ol_enable_slapd="$ol_arg"
2462
2463 else
2464         ol_enable_slapd="yes"
2465 fi; # end --enable-slapd
2466 # OpenLDAP --enable-aci
2467         # Check whether --enable-aci or --disable-aci was given.
2468 if test "${enable_aci+set}" = set; then
2469   enableval="$enable_aci"
2470
2471         ol_arg=invalid
2472         for ol_val in auto yes no ; do
2473                 if test "$enableval" = "$ol_val" ; then
2474                         ol_arg="$ol_val"
2475                 fi
2476         done
2477         if test "$ol_arg" = "invalid" ; then
2478                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2479 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2480    { (exit 1); exit 1; }; }
2481         fi
2482         ol_enable_aci="$ol_arg"
2483
2484 else
2485         ol_enable_aci="no"
2486 fi; # end --enable-aci
2487 # OpenLDAP --enable-cleartext
2488         # Check whether --enable-cleartext or --disable-cleartext was given.
2489 if test "${enable_cleartext+set}" = set; then
2490   enableval="$enable_cleartext"
2491
2492         ol_arg=invalid
2493         for ol_val in auto yes no ; do
2494                 if test "$enableval" = "$ol_val" ; then
2495                         ol_arg="$ol_val"
2496                 fi
2497         done
2498         if test "$ol_arg" = "invalid" ; then
2499                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2500 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2501    { (exit 1); exit 1; }; }
2502         fi
2503         ol_enable_cleartext="$ol_arg"
2504
2505 else
2506         ol_enable_cleartext="yes"
2507 fi; # end --enable-cleartext
2508 # OpenLDAP --enable-crypt
2509         # Check whether --enable-crypt or --disable-crypt was given.
2510 if test "${enable_crypt+set}" = set; then
2511   enableval="$enable_crypt"
2512
2513         ol_arg=invalid
2514         for ol_val in auto yes no ; do
2515                 if test "$enableval" = "$ol_val" ; then
2516                         ol_arg="$ol_val"
2517                 fi
2518         done
2519         if test "$ol_arg" = "invalid" ; then
2520                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2521 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2522    { (exit 1); exit 1; }; }
2523         fi
2524         ol_enable_crypt="$ol_arg"
2525
2526 else
2527         ol_enable_crypt="no"
2528 fi; # end --enable-crypt
2529 # OpenLDAP --enable-lmpasswd
2530         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2531 if test "${enable_lmpasswd+set}" = set; then
2532   enableval="$enable_lmpasswd"
2533
2534         ol_arg=invalid
2535         for ol_val in auto yes no ; do
2536                 if test "$enableval" = "$ol_val" ; then
2537                         ol_arg="$ol_val"
2538                 fi
2539         done
2540         if test "$ol_arg" = "invalid" ; then
2541                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2542 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2543    { (exit 1); exit 1; }; }
2544         fi
2545         ol_enable_lmpasswd="$ol_arg"
2546
2547 else
2548         ol_enable_lmpasswd="no"
2549 fi; # end --enable-lmpasswd
2550 # OpenLDAP --enable-spasswd
2551         # Check whether --enable-spasswd or --disable-spasswd was given.
2552 if test "${enable_spasswd+set}" = set; then
2553   enableval="$enable_spasswd"
2554
2555         ol_arg=invalid
2556         for ol_val in auto yes no ; do
2557                 if test "$enableval" = "$ol_val" ; then
2558                         ol_arg="$ol_val"
2559                 fi
2560         done
2561         if test "$ol_arg" = "invalid" ; then
2562                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2563 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2564    { (exit 1); exit 1; }; }
2565         fi
2566         ol_enable_spasswd="$ol_arg"
2567
2568 else
2569         ol_enable_spasswd="no"
2570 fi; # end --enable-spasswd
2571 # OpenLDAP --enable-modules
2572         # Check whether --enable-modules or --disable-modules was given.
2573 if test "${enable_modules+set}" = set; then
2574   enableval="$enable_modules"
2575
2576         ol_arg=invalid
2577         for ol_val in auto yes no ; do
2578                 if test "$enableval" = "$ol_val" ; then
2579                         ol_arg="$ol_val"
2580                 fi
2581         done
2582         if test "$ol_arg" = "invalid" ; then
2583                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2584 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2585    { (exit 1); exit 1; }; }
2586         fi
2587         ol_enable_modules="$ol_arg"
2588
2589 else
2590         ol_enable_modules="no"
2591 fi; # end --enable-modules
2592 ol_enable_multimaster=${ol_enable_multimaster-no}
2593 # OpenLDAP --enable-rewrite
2594         # Check whether --enable-rewrite or --disable-rewrite was given.
2595 if test "${enable_rewrite+set}" = set; then
2596   enableval="$enable_rewrite"
2597
2598         ol_arg=invalid
2599         for ol_val in auto yes no ; do
2600                 if test "$enableval" = "$ol_val" ; then
2601                         ol_arg="$ol_val"
2602                 fi
2603         done
2604         if test "$ol_arg" = "invalid" ; then
2605                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2606 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2607    { (exit 1); exit 1; }; }
2608         fi
2609         ol_enable_rewrite="$ol_arg"
2610
2611 else
2612         ol_enable_rewrite="auto"
2613 fi; # end --enable-rewrite
2614 # OpenLDAP --enable-rlookups
2615         # Check whether --enable-rlookups or --disable-rlookups was given.
2616 if test "${enable_rlookups+set}" = set; then
2617   enableval="$enable_rlookups"
2618
2619         ol_arg=invalid
2620         for ol_val in auto yes no ; do
2621                 if test "$enableval" = "$ol_val" ; then
2622                         ol_arg="$ol_val"
2623                 fi
2624         done
2625         if test "$ol_arg" = "invalid" ; then
2626                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2627 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2628    { (exit 1); exit 1; }; }
2629         fi
2630         ol_enable_rlookups="$ol_arg"
2631
2632 else
2633         ol_enable_rlookups="no"
2634 fi; # end --enable-rlookups
2635 # OpenLDAP --enable-slapi
2636         # Check whether --enable-slapi or --disable-slapi was given.
2637 if test "${enable_slapi+set}" = set; then
2638   enableval="$enable_slapi"
2639
2640         ol_arg=invalid
2641         for ol_val in auto yes no ; do
2642                 if test "$enableval" = "$ol_val" ; then
2643                         ol_arg="$ol_val"
2644                 fi
2645         done
2646         if test "$ol_arg" = "invalid" ; then
2647                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2648 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2649    { (exit 1); exit 1; }; }
2650         fi
2651         ol_enable_slapi="$ol_arg"
2652
2653 else
2654         ol_enable_slapi="no"
2655 fi; # end --enable-slapi
2656 # OpenLDAP --enable-slp
2657         # Check whether --enable-slp or --disable-slp was given.
2658 if test "${enable_slp+set}" = set; then
2659   enableval="$enable_slp"
2660
2661         ol_arg=invalid
2662         for ol_val in auto yes no ; do
2663                 if test "$enableval" = "$ol_val" ; then
2664                         ol_arg="$ol_val"
2665                 fi
2666         done
2667         if test "$ol_arg" = "invalid" ; then
2668                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2669 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2670    { (exit 1); exit 1; }; }
2671         fi
2672         ol_enable_slp="$ol_arg"
2673
2674 else
2675         ol_enable_slp="no"
2676 fi; # end --enable-slp
2677 # OpenLDAP --enable-wrappers
2678         # Check whether --enable-wrappers or --disable-wrappers was given.
2679 if test "${enable_wrappers+set}" = set; then
2680   enableval="$enable_wrappers"
2681
2682         ol_arg=invalid
2683         for ol_val in auto yes no ; do
2684                 if test "$enableval" = "$ol_val" ; then
2685                         ol_arg="$ol_val"
2686                 fi
2687         done
2688         if test "$ol_arg" = "invalid" ; then
2689                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2690 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2691    { (exit 1); exit 1; }; }
2692         fi
2693         ol_enable_wrappers="$ol_arg"
2694
2695 else
2696         ol_enable_wrappers="no"
2697 fi; # end --enable-wrappers
2698
2699 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
2700         passwd perl relay shell sql"
2701
2702
2703 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
2704 if test "${with_xxslapbackends+set}" = set; then
2705   withval="$with_xxslapbackends"
2706
2707 fi;
2708
2709 # OpenLDAP --enable-backends
2710         # Check whether --enable-backends or --disable-backends was given.
2711 if test "${enable_backends+set}" = set; then
2712   enableval="$enable_backends"
2713
2714         ol_arg=invalid
2715         for ol_val in no yes mod ; do
2716                 if test "$enableval" = "$ol_val" ; then
2717                         ol_arg="$ol_val"
2718                 fi
2719         done
2720         if test "$ol_arg" = "invalid" ; then
2721                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2722 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2723    { (exit 1); exit 1; }; }
2724         fi
2725         ol_enable_backends="$ol_arg"
2726
2727 fi; # end --enable-backends
2728 test -n "$ol_enable_backends" && ol_dflt_backends="$ol_enable_backends"
2729 # OpenLDAP --enable-bdb
2730         # Check whether --enable-bdb or --disable-bdb was given.
2731 if test "${enable_bdb+set}" = set; then
2732   enableval="$enable_bdb"
2733
2734         ol_arg=invalid
2735         for ol_val in no yes mod ; do
2736                 if test "$enableval" = "$ol_val" ; then
2737                         ol_arg="$ol_val"
2738                 fi
2739         done
2740         if test "$ol_arg" = "invalid" ; then
2741                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2742 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2743    { (exit 1); exit 1; }; }
2744         fi
2745         ol_enable_bdb="$ol_arg"
2746
2747 else
2748         ol_enable_bdb="${ol_dflt_backends-yes}"
2749 fi; # end --enable-bdb
2750 # OpenLDAP --enable-dnssrv
2751         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2752 if test "${enable_dnssrv+set}" = set; then
2753   enableval="$enable_dnssrv"
2754
2755         ol_arg=invalid
2756         for ol_val in no yes mod ; do
2757                 if test "$enableval" = "$ol_val" ; then
2758                         ol_arg="$ol_val"
2759                 fi
2760         done
2761         if test "$ol_arg" = "invalid" ; then
2762                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2763 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2764    { (exit 1); exit 1; }; }
2765         fi
2766         ol_enable_dnssrv="$ol_arg"
2767
2768 else
2769         ol_enable_dnssrv="${ol_dflt_backends-no}"
2770 fi; # end --enable-dnssrv
2771 # OpenLDAP --enable-hdb
2772         # Check whether --enable-hdb or --disable-hdb was given.
2773 if test "${enable_hdb+set}" = set; then
2774   enableval="$enable_hdb"
2775
2776         ol_arg=invalid
2777         for ol_val in no yes mod ; do
2778                 if test "$enableval" = "$ol_val" ; then
2779                         ol_arg="$ol_val"
2780                 fi
2781         done
2782         if test "$ol_arg" = "invalid" ; then
2783                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2784 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2785    { (exit 1); exit 1; }; }
2786         fi
2787         ol_enable_hdb="$ol_arg"
2788
2789 else
2790         ol_enable_hdb="${ol_dflt_backends-yes}"
2791 fi; # end --enable-hdb
2792 # OpenLDAP --enable-ldap
2793         # Check whether --enable-ldap or --disable-ldap was given.
2794 if test "${enable_ldap+set}" = set; then
2795   enableval="$enable_ldap"
2796
2797         ol_arg=invalid
2798         for ol_val in no yes mod ; do
2799                 if test "$enableval" = "$ol_val" ; then
2800                         ol_arg="$ol_val"
2801                 fi
2802         done
2803         if test "$ol_arg" = "invalid" ; then
2804                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2805 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2806    { (exit 1); exit 1; }; }
2807         fi
2808         ol_enable_ldap="$ol_arg"
2809
2810 else
2811         ol_enable_ldap="${ol_dflt_backends-no}"
2812 fi; # end --enable-ldap
2813 # OpenLDAP --enable-ldbm
2814         # Check whether --enable-ldbm or --disable-ldbm was given.
2815 if test "${enable_ldbm+set}" = set; then
2816   enableval="$enable_ldbm"
2817
2818         ol_arg=invalid
2819         for ol_val in no yes mod ; do
2820                 if test "$enableval" = "$ol_val" ; then
2821                         ol_arg="$ol_val"
2822                 fi
2823         done
2824         if test "$ol_arg" = "invalid" ; then
2825                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2826 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2827    { (exit 1); exit 1; }; }
2828         fi
2829         ol_enable_ldbm="$ol_arg"
2830
2831 else
2832         ol_enable_ldbm="${ol_dflt_backends-no}"
2833 fi; # end --enable-ldbm
2834 # OpenLDAP --with-ldbm_api
2835
2836 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2837 if test "${with_ldbm_api+set}" = set; then
2838   withval="$with_ldbm_api"
2839
2840         ol_arg=invalid
2841         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2842                 if test "$withval" = "$ol_val" ; then
2843                         ol_arg="$ol_val"
2844                 fi
2845         done
2846         if test "$ol_arg" = "invalid" ; then
2847                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_api" >&5
2848 echo "$as_me: error: bad value $withval for --with-ldbm_api" >&2;}
2849    { (exit 1); exit 1; }; }
2850         fi
2851         ol_with_ldbm_api="$ol_arg"
2852
2853 else
2854         ol_with_ldbm_api="auto"
2855 fi; # end --with-ldbm_api
2856
2857 # OpenLDAP --with-ldbm_type
2858
2859 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2860 if test "${with_ldbm_type+set}" = set; then
2861   withval="$with_ldbm_type"
2862
2863         ol_arg=invalid
2864         for ol_val in auto btree hash ; do
2865                 if test "$withval" = "$ol_val" ; then
2866                         ol_arg="$ol_val"
2867                 fi
2868         done
2869         if test "$ol_arg" = "invalid" ; then
2870                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_type" >&5
2871 echo "$as_me: error: bad value $withval for --with-ldbm_type" >&2;}
2872    { (exit 1); exit 1; }; }
2873         fi
2874         ol_with_ldbm_type="$ol_arg"
2875
2876 else
2877         ol_with_ldbm_type="auto"
2878 fi; # end --with-ldbm_type
2879
2880 # OpenLDAP --enable-meta
2881         # Check whether --enable-meta or --disable-meta was given.
2882 if test "${enable_meta+set}" = set; then
2883   enableval="$enable_meta"
2884
2885         ol_arg=invalid
2886         for ol_val in no yes mod ; do
2887                 if test "$enableval" = "$ol_val" ; then
2888                         ol_arg="$ol_val"
2889                 fi
2890         done
2891         if test "$ol_arg" = "invalid" ; then
2892                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2893 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2894    { (exit 1); exit 1; }; }
2895         fi
2896         ol_enable_meta="$ol_arg"
2897
2898 else
2899         ol_enable_meta="${ol_dflt_backends-no}"
2900 fi; # end --enable-meta
2901 # OpenLDAP --enable-monitor
2902         # Check whether --enable-monitor or --disable-monitor was given.
2903 if test "${enable_monitor+set}" = set; then
2904   enableval="$enable_monitor"
2905
2906         ol_arg=invalid
2907         for ol_val in no yes mod ; do
2908                 if test "$enableval" = "$ol_val" ; then
2909                         ol_arg="$ol_val"
2910                 fi
2911         done
2912         if test "$ol_arg" = "invalid" ; then
2913                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2914 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2915    { (exit 1); exit 1; }; }
2916         fi
2917         ol_enable_monitor="$ol_arg"
2918
2919 else
2920         ol_enable_monitor="${ol_dflt_backends-yes}"
2921 fi; # end --enable-monitor
2922 # OpenLDAP --enable-null
2923         # Check whether --enable-null or --disable-null was given.
2924 if test "${enable_null+set}" = set; then
2925   enableval="$enable_null"
2926
2927         ol_arg=invalid
2928         for ol_val in no yes mod ; do
2929                 if test "$enableval" = "$ol_val" ; then
2930                         ol_arg="$ol_val"
2931                 fi
2932         done
2933         if test "$ol_arg" = "invalid" ; then
2934                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2935 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2936    { (exit 1); exit 1; }; }
2937         fi
2938         ol_enable_null="$ol_arg"
2939
2940 else
2941         ol_enable_null="${ol_dflt_backends-no}"
2942 fi; # end --enable-null
2943 # OpenLDAP --enable-passwd
2944         # Check whether --enable-passwd or --disable-passwd was given.
2945 if test "${enable_passwd+set}" = set; then
2946   enableval="$enable_passwd"
2947
2948         ol_arg=invalid
2949         for ol_val in no yes mod ; do
2950                 if test "$enableval" = "$ol_val" ; then
2951                         ol_arg="$ol_val"
2952                 fi
2953         done
2954         if test "$ol_arg" = "invalid" ; then
2955                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2956 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2957    { (exit 1); exit 1; }; }
2958         fi
2959         ol_enable_passwd="$ol_arg"
2960
2961 else
2962         ol_enable_passwd="${ol_dflt_backends-no}"
2963 fi; # end --enable-passwd
2964 # OpenLDAP --enable-perl
2965         # Check whether --enable-perl or --disable-perl was given.
2966 if test "${enable_perl+set}" = set; then
2967   enableval="$enable_perl"
2968
2969         ol_arg=invalid
2970         for ol_val in no yes mod ; do
2971                 if test "$enableval" = "$ol_val" ; then
2972                         ol_arg="$ol_val"
2973                 fi
2974         done
2975         if test "$ol_arg" = "invalid" ; then
2976                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
2977 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
2978    { (exit 1); exit 1; }; }
2979         fi
2980         ol_enable_perl="$ol_arg"
2981
2982 else
2983         ol_enable_perl="${ol_dflt_backends-no}"
2984 fi; # end --enable-perl
2985 # OpenLDAP --enable-relay
2986         # Check whether --enable-relay or --disable-relay was given.
2987 if test "${enable_relay+set}" = set; then
2988   enableval="$enable_relay"
2989
2990         ol_arg=invalid
2991         for ol_val in no yes mod ; do
2992                 if test "$enableval" = "$ol_val" ; then
2993                         ol_arg="$ol_val"
2994                 fi
2995         done
2996         if test "$ol_arg" = "invalid" ; then
2997                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
2998 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
2999    { (exit 1); exit 1; }; }
3000         fi
3001         ol_enable_relay="$ol_arg"
3002
3003 else
3004         ol_enable_relay="${ol_dflt_backends-yes}"
3005 fi; # end --enable-relay
3006 # OpenLDAP --enable-shell
3007         # Check whether --enable-shell or --disable-shell was given.
3008 if test "${enable_shell+set}" = set; then
3009   enableval="$enable_shell"
3010
3011         ol_arg=invalid
3012         for ol_val in no yes mod ; do
3013                 if test "$enableval" = "$ol_val" ; then
3014                         ol_arg="$ol_val"
3015                 fi
3016         done
3017         if test "$ol_arg" = "invalid" ; then
3018                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3019 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3020    { (exit 1); exit 1; }; }
3021         fi
3022         ol_enable_shell="$ol_arg"
3023
3024 else
3025         ol_enable_shell="${ol_dflt_backends-no}"
3026 fi; # end --enable-shell
3027 # OpenLDAP --enable-sql
3028         # Check whether --enable-sql or --disable-sql was given.
3029 if test "${enable_sql+set}" = set; then
3030   enableval="$enable_sql"
3031
3032         ol_arg=invalid
3033         for ol_val in no yes mod ; do
3034                 if test "$enableval" = "$ol_val" ; then
3035                         ol_arg="$ol_val"
3036                 fi
3037         done
3038         if test "$ol_arg" = "invalid" ; then
3039                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3040 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3041    { (exit 1); exit 1; }; }
3042         fi
3043         ol_enable_sql="$ol_arg"
3044
3045 else
3046         ol_enable_sql="${ol_dflt_backends-no}"
3047 fi; # end --enable-sql
3048
3049 Overlays="accesslog denyop dyngroup dynlist glue lastmod ppolicy proxycache \
3050         refint retcode rwm syncprov translucent unique"
3051
3052
3053 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
3054 if test "${with_xxslapoverlays+set}" = set; then
3055   withval="$with_xxslapoverlays"
3056
3057 fi;
3058
3059 # OpenLDAP --enable-overlays
3060         # Check whether --enable-overlays or --disable-overlays was given.
3061 if test "${enable_overlays+set}" = set; then
3062   enableval="$enable_overlays"
3063
3064         ol_arg=invalid
3065         for ol_val in no yes mod ; do
3066                 if test "$enableval" = "$ol_val" ; then
3067                         ol_arg="$ol_val"
3068                 fi
3069         done
3070         if test "$ol_arg" = "invalid" ; then
3071                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3072 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3073    { (exit 1); exit 1; }; }
3074         fi
3075         ol_enable_overlays="$ol_arg"
3076
3077 fi; # end --enable-overlays
3078 test -n "$ol_enable_overlays" && ol_dflt_overlays="$ol_enable_overlays"
3079 # OpenLDAP --enable-accesslog
3080         # Check whether --enable-accesslog or --disable-accesslog was given.
3081 if test "${enable_accesslog+set}" = set; then
3082   enableval="$enable_accesslog"
3083
3084         ol_arg=invalid
3085         for ol_val in no yes mod ; do
3086                 if test "$enableval" = "$ol_val" ; then
3087                         ol_arg="$ol_val"
3088                 fi
3089         done
3090         if test "$ol_arg" = "invalid" ; then
3091                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3092 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3093    { (exit 1); exit 1; }; }
3094         fi
3095         ol_enable_accesslog="$ol_arg"
3096
3097 else
3098         ol_enable_accesslog="${ol_dflt_overlays-no}"
3099 fi; # end --enable-accesslog
3100
3101 # OpenLDAP --enable-denyop
3102         # Check whether --enable-denyop or --disable-denyop was given.
3103 if test "${enable_denyop+set}" = set; then
3104   enableval="$enable_denyop"
3105
3106         ol_arg=invalid
3107         for ol_val in no yes mod ; do
3108                 if test "$enableval" = "$ol_val" ; then
3109                         ol_arg="$ol_val"
3110                 fi
3111         done
3112         if test "$ol_arg" = "invalid" ; then
3113                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3114 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3115    { (exit 1); exit 1; }; }
3116         fi
3117         ol_enable_denyop="$ol_arg"
3118
3119 else
3120         ol_enable_denyop="${ol_dflt_overlays-no}"
3121 fi; # end --enable-denyop
3122
3123 # OpenLDAP --enable-dyngroup
3124         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3125 if test "${enable_dyngroup+set}" = set; then
3126   enableval="$enable_dyngroup"
3127
3128         ol_arg=invalid
3129         for ol_val in no yes mod ; do
3130                 if test "$enableval" = "$ol_val" ; then
3131                         ol_arg="$ol_val"
3132                 fi
3133         done
3134         if test "$ol_arg" = "invalid" ; then
3135                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3136 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3137    { (exit 1); exit 1; }; }
3138         fi
3139         ol_enable_dyngroup="$ol_arg"
3140
3141 else
3142         ol_enable_dyngroup="${ol_dflt_overlays-no}"
3143 fi; # end --enable-dyngroup
3144
3145 # OpenLDAP --enable-dynlist
3146         # Check whether --enable-dynlist or --disable-dynlist was given.
3147 if test "${enable_dynlist+set}" = set; then
3148   enableval="$enable_dynlist"
3149
3150         ol_arg=invalid
3151         for ol_val in no yes mod ; do
3152                 if test "$enableval" = "$ol_val" ; then
3153                         ol_arg="$ol_val"
3154                 fi
3155         done
3156         if test "$ol_arg" = "invalid" ; then
3157                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3158 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3159    { (exit 1); exit 1; }; }
3160         fi
3161         ol_enable_dynlist="$ol_arg"
3162
3163 else
3164         ol_enable_dynlist="${ol_dflt_overlays-no}"
3165 fi; # end --enable-dynlist
3166
3167 # OpenLDAP --enable-glue
3168         # Check whether --enable-glue or --disable-glue was given.
3169 if test "${enable_glue+set}" = set; then
3170   enableval="$enable_glue"
3171
3172         ol_arg=invalid
3173         for ol_val in no yes mod ; do
3174                 if test "$enableval" = "$ol_val" ; then
3175                         ol_arg="$ol_val"
3176                 fi
3177         done
3178         if test "$ol_arg" = "invalid" ; then
3179                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3180 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3181    { (exit 1); exit 1; }; }
3182         fi
3183         ol_enable_glue="$ol_arg"
3184
3185 else
3186         ol_enable_glue="${ol_dflt_overlays-yes}"
3187 fi; # end --enable-glue
3188
3189 # OpenLDAP --enable-lastmod
3190         # Check whether --enable-lastmod or --disable-lastmod was given.
3191 if test "${enable_lastmod+set}" = set; then
3192   enableval="$enable_lastmod"
3193
3194         ol_arg=invalid
3195         for ol_val in no yes mod ; do
3196                 if test "$enableval" = "$ol_val" ; then
3197                         ol_arg="$ol_val"
3198                 fi
3199         done
3200         if test "$ol_arg" = "invalid" ; then
3201                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3202 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3203    { (exit 1); exit 1; }; }
3204         fi
3205         ol_enable_lastmod="$ol_arg"
3206
3207 else
3208         ol_enable_lastmod="${ol_dflt_overlays-no}"
3209 fi; # end --enable-lastmod
3210
3211 # OpenLDAP --enable-ppolicy
3212         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3213 if test "${enable_ppolicy+set}" = set; then
3214   enableval="$enable_ppolicy"
3215
3216         ol_arg=invalid
3217         for ol_val in no yes mod ; do
3218                 if test "$enableval" = "$ol_val" ; then
3219                         ol_arg="$ol_val"
3220                 fi
3221         done
3222         if test "$ol_arg" = "invalid" ; then
3223                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3224 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3225    { (exit 1); exit 1; }; }
3226         fi
3227         ol_enable_ppolicy="$ol_arg"
3228
3229 else
3230         ol_enable_ppolicy="${ol_dflt_overlays-no}"
3231 fi; # end --enable-ppolicy
3232
3233 # OpenLDAP --enable-proxycache
3234         # Check whether --enable-proxycache or --disable-proxycache was given.
3235 if test "${enable_proxycache+set}" = set; then
3236   enableval="$enable_proxycache"
3237
3238         ol_arg=invalid
3239         for ol_val in no yes mod ; do
3240                 if test "$enableval" = "$ol_val" ; then
3241                         ol_arg="$ol_val"
3242                 fi
3243         done
3244         if test "$ol_arg" = "invalid" ; then
3245                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3246 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3247    { (exit 1); exit 1; }; }
3248         fi
3249         ol_enable_proxycache="$ol_arg"
3250
3251 else
3252         ol_enable_proxycache="${ol_dflt_overlays-no}"
3253 fi; # end --enable-proxycache
3254
3255 # OpenLDAP --enable-refint
3256         # Check whether --enable-refint or --disable-refint was given.
3257 if test "${enable_refint+set}" = set; then
3258   enableval="$enable_refint"
3259
3260         ol_arg=invalid
3261         for ol_val in no yes mod ; do
3262                 if test "$enableval" = "$ol_val" ; then
3263                         ol_arg="$ol_val"
3264                 fi
3265         done
3266         if test "$ol_arg" = "invalid" ; then
3267                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3268 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3269    { (exit 1); exit 1; }; }
3270         fi
3271         ol_enable_refint="$ol_arg"
3272
3273 else
3274         ol_enable_refint="${ol_dflt_overlays-no}"
3275 fi; # end --enable-refint
3276
3277 # OpenLDAP --enable-retcode
3278         # Check whether --enable-retcode or --disable-retcode was given.
3279 if test "${enable_retcode+set}" = set; then
3280   enableval="$enable_retcode"
3281
3282         ol_arg=invalid
3283         for ol_val in no yes mod ; do
3284                 if test "$enableval" = "$ol_val" ; then
3285                         ol_arg="$ol_val"
3286                 fi
3287         done
3288         if test "$ol_arg" = "invalid" ; then
3289                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3290 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3291    { (exit 1); exit 1; }; }
3292         fi
3293         ol_enable_retcode="$ol_arg"
3294
3295 else
3296         ol_enable_retcode="${ol_dflt_overlays-no}"
3297 fi; # end --enable-retcode
3298
3299 # OpenLDAP --enable-rwm
3300         # Check whether --enable-rwm or --disable-rwm was given.
3301 if test "${enable_rwm+set}" = set; then
3302   enableval="$enable_rwm"
3303
3304         ol_arg=invalid
3305         for ol_val in no yes mod ; do
3306                 if test "$enableval" = "$ol_val" ; then
3307                         ol_arg="$ol_val"
3308                 fi
3309         done
3310         if test "$ol_arg" = "invalid" ; then
3311                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3312 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3313    { (exit 1); exit 1; }; }
3314         fi
3315         ol_enable_rwm="$ol_arg"
3316
3317 else
3318         ol_enable_rwm="${ol_dflt_overlays-no}"
3319 fi; # end --enable-rwm
3320
3321 # OpenLDAP --enable-syncprov
3322         # Check whether --enable-syncprov or --disable-syncprov was given.
3323 if test "${enable_syncprov+set}" = set; then
3324   enableval="$enable_syncprov"
3325
3326         ol_arg=invalid
3327         for ol_val in no yes mod ; do
3328                 if test "$enableval" = "$ol_val" ; then
3329                         ol_arg="$ol_val"
3330                 fi
3331         done
3332         if test "$ol_arg" = "invalid" ; then
3333                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3334 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3335    { (exit 1); exit 1; }; }
3336         fi
3337         ol_enable_syncprov="$ol_arg"
3338
3339 else
3340         ol_enable_syncprov="${ol_dflt_overlays-yes}"
3341 fi; # end --enable-syncprov
3342
3343 # OpenLDAP --enable-translucent
3344         # Check whether --enable-translucent or --disable-translucent was given.
3345 if test "${enable_translucent+set}" = set; then
3346   enableval="$enable_translucent"
3347
3348         ol_arg=invalid
3349         for ol_val in no yes mod ; do
3350                 if test "$enableval" = "$ol_val" ; then
3351                         ol_arg="$ol_val"
3352                 fi
3353         done
3354         if test "$ol_arg" = "invalid" ; then
3355                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3356 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3357    { (exit 1); exit 1; }; }
3358         fi
3359         ol_enable_translucent="$ol_arg"
3360
3361 else
3362         ol_enable_translucent="${ol_dflt_overlays-no}"
3363 fi; # end --enable-translucent
3364
3365 # OpenLDAP --enable-unique
3366         # Check whether --enable-unique or --disable-unique was given.
3367 if test "${enable_unique+set}" = set; then
3368   enableval="$enable_unique"
3369
3370         ol_arg=invalid
3371         for ol_val in no yes mod ; do
3372                 if test "$enableval" = "$ol_val" ; then
3373                         ol_arg="$ol_val"
3374                 fi
3375         done
3376         if test "$ol_arg" = "invalid" ; then
3377                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3378 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3379    { (exit 1); exit 1; }; }
3380         fi
3381         ol_enable_unique="$ol_arg"
3382
3383 else
3384         ol_enable_unique="${ol_dflt_overlays-no}"
3385 fi; # end --enable-unique
3386
3387
3388
3389
3390 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
3391 if test "${with_xxslurpdoptions+set}" = set; then
3392   withval="$with_xxslurpdoptions"
3393
3394 fi;
3395 # OpenLDAP --enable-slurpd
3396         # Check whether --enable-slurpd or --disable-slurpd was given.
3397 if test "${enable_slurpd+set}" = set; then
3398   enableval="$enable_slurpd"
3399
3400         ol_arg=invalid
3401         for ol_val in auto yes no ; do
3402                 if test "$enableval" = "$ol_val" ; then
3403                         ol_arg="$ol_val"
3404                 fi
3405         done
3406         if test "$ol_arg" = "invalid" ; then
3407                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3408 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3409    { (exit 1); exit 1; }; }
3410         fi
3411         ol_enable_slurpd="$ol_arg"
3412
3413 else
3414         ol_enable_slurpd="auto"
3415 fi; # end --enable-slurpd
3416
3417
3418 # Check whether --with-xxliboptions or --without-xxliboptions was given.
3419 if test "${with_xxliboptions+set}" = set; then
3420   withval="$with_xxliboptions"
3421
3422 fi;
3423 # Check whether --enable-static or --disable-static was given.
3424 if test "${enable_static+set}" = set; then
3425   enableval="$enable_static"
3426   p=${PACKAGE-default}
3427     case $enableval in
3428     yes) enable_static=yes ;;
3429     no) enable_static=no ;;
3430     *)
3431      enable_static=no
3432       # Look at the argument we got.  We use all the common list separators.
3433       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3434       for pkg in $enableval; do
3435         IFS="$lt_save_ifs"
3436         if test "X$pkg" = "X$p"; then
3437           enable_static=yes
3438         fi
3439       done
3440       IFS="$lt_save_ifs"
3441       ;;
3442     esac
3443 else
3444   enable_static=yes
3445 fi;
3446
3447 # Check whether --enable-shared or --disable-shared was given.
3448 if test "${enable_shared+set}" = set; then
3449   enableval="$enable_shared"
3450   p=${PACKAGE-default}
3451     case $enableval in
3452     yes) enable_shared=yes ;;
3453     no) enable_shared=no ;;
3454     *)
3455       enable_shared=no
3456       # Look at the argument we got.  We use all the common list separators.
3457       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3458       for pkg in $enableval; do
3459         IFS="$lt_save_ifs"
3460         if test "X$pkg" = "X$p"; then
3461           enable_shared=yes
3462         fi
3463       done
3464       IFS="$lt_save_ifs"
3465       ;;
3466     esac
3467 else
3468   enable_shared=yes
3469 fi;
3470
3471
3472
3473 # validate options
3474 if test $ol_enable_slapd = no ; then
3475                 if test $ol_enable_slapi = yes ; then
3476                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3477 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3478         fi
3479         case "$ol_enable_backends" in yes | mod)
3480                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3481 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3482         esac
3483         for i in $Backends; do
3484                 eval "ol_tmp=\$ol_enable_$i"
3485                 if test $ol_tmp != no ; then
3486                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3487 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3488                         eval "ol_enable_$i=no"
3489                 fi
3490         done
3491         if test $ol_enable_modules = yes ; then
3492                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3493 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3494         fi
3495         if test $ol_enable_multimaster = yes ; then
3496                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3497 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3498         fi
3499         if test $ol_enable_wrappers = yes ; then
3500                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3501 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3502         fi
3503         if test $ol_enable_rlookups = yes ; then
3504                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3505 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3506         fi
3507         if test $ol_enable_aci = yes ; then
3508                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3509 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3510         fi
3511         if test $ol_with_ldbm_api != auto ; then
3512                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&5
3513 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&2;}
3514         fi
3515         if test $ol_with_ldbm_type != auto ; then
3516                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&5
3517 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&2;}
3518         fi
3519         if test $ol_enable_slurpd = yes ; then
3520                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3521 echo "$as_me: error: slurpd requires slapd" >&2;}
3522    { (exit 1); exit 1; }; }
3523         fi
3524         if test $ol_enable_rewrite = yes ; then
3525                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3526 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3527         fi
3528                 case "$ol_enable_overlays" in yes | mod)
3529                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3530 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3531         esac
3532         for i in $Overlays; do
3533                 eval "ol_tmp=\$ol_enable_$i"
3534                 if test $ol_tmp != no ; then
3535                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3536 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3537                         eval "ol_enable_$i=no"
3538                 fi
3539         done
3540
3541         # force settings to no
3542         ol_enable_slapi=no
3543
3544         ol_enable_backends=
3545         ol_enable_overlays=
3546         ol_enable_modules=no
3547         ol_enable_multimaster=no
3548         ol_enable_rlookups=no
3549         ol_enable_aci=no
3550         ol_enable_wrappers=no
3551
3552         ol_with_ldbm_api=no
3553         ol_with_ldbm_type=no
3554
3555         ol_enable_slurpd=no
3556
3557         ol_enable_rewrite=no
3558
3559 elif test $ol_enable_ldbm = no ; then
3560
3561         if test $ol_with_ldbm_api != auto ; then
3562                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&5
3563 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&2;}
3564         fi
3565
3566         if test $ol_with_ldbm_type != auto ; then
3567                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&5
3568 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&2;}
3569         fi
3570
3571         if test $ol_enable_modules != yes -a \
3572                 $ol_enable_bdb = no -a \
3573                 $ol_enable_dnssrv = no -a \
3574                 $ol_enable_hdb = no -a \
3575                 $ol_enable_ldap = no -a \
3576                 $ol_enable_meta = no -a \
3577                 $ol_enable_monitor = no -a \
3578                 $ol_enable_null = no -a \
3579                 $ol_enable_passwd = no -a \
3580                 $ol_enable_perl = no -a \
3581                 $ol_enable_relay = no -a \
3582                 $ol_enable_shell = no -a \
3583                 $ol_enable_sql = no ; then
3584
3585                 if test $ol_enable_slapd = yes ; then
3586                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3587 echo "$as_me: error: slapd requires a backend" >&2;}
3588    { (exit 1); exit 1; }; }
3589                 else
3590                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3591 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3592                         ol_enable_slapd=no
3593                 fi
3594         fi
3595
3596         ol_with_ldbm_api=no
3597         ol_with_ldbm_type=no
3598
3599         if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3600                 ol_with_ldbm_api=berkeley
3601         fi
3602
3603 else
3604                 if test $ol_with_ldbm_api = gdbm -a \
3605                 $ol_with_ldbm_type = btree ; then
3606                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3607 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3608    { (exit 1); exit 1; }; }
3609         fi
3610         if test $ol_with_ldbm_api = mdbm -a \
3611                 $ol_with_ldbm_type = btree ; then
3612                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3613 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3614    { (exit 1); exit 1; }; }
3615         fi
3616         if test $ol_with_ldbm_api = ndbm -a \
3617                 $ol_with_ldbm_type = btree ; then
3618                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3619 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3620    { (exit 1); exit 1; }; }
3621         fi
3622
3623         if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3624                 if test $ol_with_ldbm_api = auto ; then
3625                         ol_with_ldbm_api=berkeley
3626                 elif test $ol_with_ldbm_api != berkeley ; then
3627                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3628 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3629    { (exit 1); exit 1; }; }
3630                 fi
3631         fi
3632 fi
3633
3634 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3635         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3636 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3637    { (exit 1); exit 1; }; }
3638 fi
3639
3640 if test $ol_enable_slurpd = yes ; then
3641                 if test $ol_with_threads = no ; then
3642                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3643 echo "$as_me: error: slurpd requires threads" >&2;}
3644    { (exit 1); exit 1; }; }
3645         fi
3646 fi
3647
3648 if test $ol_enable_lmpasswd = yes ; then
3649         if test $ol_with_tls = no ; then
3650                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3651 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3652    { (exit 1); exit 1; }; }
3653         fi
3654 fi
3655
3656 if test $ol_enable_kbind = yes ; then
3657         if test $ol_with_kerberos = no ; then
3658                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3659 echo "$as_me: error: options require --with-kerberos" >&2;}
3660    { (exit 1); exit 1; }; }
3661         elif test $ol_with_kerberos = auto ; then
3662                 ol_with_kerberos=yes
3663         fi
3664
3665 elif test $ol_enable_kbind = no ; then
3666         if test $ol_with_kerberos = auto ; then
3667                 ol_with_kerberos=no
3668         elif test $ol_with_kerberos != no ; then
3669                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3670 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3671                 ol_with_kerberos=no
3672         fi
3673 fi
3674
3675 if test $ol_enable_spasswd = yes ; then
3676         if test $ol_with_cyrus_sasl = no ; then
3677                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3678 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3679    { (exit 1); exit 1; }; }
3680         fi
3681         ol_with_cyrus_sasl=yes
3682 fi
3683
3684 echo "$as_me:$LINENO: result: done" >&5
3685 echo "${ECHO_T}done" >&6
3686
3687 LDAP_LIBS=
3688 LDBM_LIBS=
3689 LTHREAD_LIBS=
3690 LUTIL_LIBS=
3691
3692 SLAPD_LIBS=
3693 SLURPD_LIBS=
3694
3695 BUILD_SLAPD=no
3696 BUILD_SLURPD=no
3697
3698 BUILD_THREAD=no
3699
3700 BUILD_SLAPI=no
3701 SLAPD_SLAPI_DEPEND=
3702
3703 BUILD_BDB=no
3704 BUILD_DNSSRV=no
3705 BUILD_HDB=no
3706 BUILD_LDAP=no
3707 BUILD_LDBM=no
3708 BUILD_META=no
3709 BUILD_MONITOR=no
3710 BUILD_NULL=no
3711 BUILD_PASSWD=no
3712 BUILD_PERL=no
3713 BUILD_RELAY=no
3714 BUILD_SHELL=no
3715 BUILD_SQL=no
3716
3717 BUILD_ACCESSLOG=no
3718 BUILD_DENYOP=no
3719 BUILD_DYNGROUP=no
3720 BUILD_DYNLIST=no
3721 BUILD_GLUE=no
3722 BUILD_LASTMOD=no
3723 BUILD_PPOLICY=no
3724 BUILD_PROXYCACHE=no
3725 BUILD_REFINT=no
3726 BUILD_RETCODE=no
3727 BUILD_RWM=no
3728 BUILD_SYNCPROV=no
3729 BUILD_TRANSLUCENT=no
3730 BUILD_UNIQUE=no
3731
3732 SLAPD_STATIC_OVERLAYS=
3733 SLAPD_DYNAMIC_OVERLAYS=
3734
3735 SLAPD_MODULES_LDFLAGS=
3736 SLAPD_MODULES_CPPFLAGS=
3737
3738 SLAPD_STATIC_BACKENDS=back-ldif
3739 SLAPD_DYNAMIC_BACKENDS=
3740
3741 SLAPD_PERL_LDFLAGS=
3742 MOD_PERL_LDFLAGS=
3743 PERL_CPPFLAGS=
3744
3745 SLAPD_SQL_LDFLAGS=
3746 SLAPD_SQL_LIBS=
3747 SLAPD_SQL_INCLUDES=
3748
3749 KRB4_LIBS=
3750 KRB5_LIBS=
3751 SASL_LIBS=
3752 TLS_LIBS=
3753 MODULES_LIBS=
3754 SLAPI_LIBS=
3755 LIBSLAPI=
3756 LIBSLAPITOOLS=
3757 AUTH_LIBS=
3758
3759 SLAPD_SLP_LIBS=
3760 SLAPD_GMP_LIBS=
3761
3762
3763
3764 cat >>confdefs.h <<\_ACEOF
3765 #define HAVE_MKVERSION 1
3766 _ACEOF
3767
3768
3769
3770
3771 ol_aix_threads=no
3772 case "$target" in
3773 *-*-aix*)       if test -z "$CC" ; then
3774                 case "$ol_with_threads" in
3775                 auto | yes |  posix) ol_aix_threads=yes ;;
3776                 esac
3777         fi
3778 ;;
3779 esac
3780
3781 if test $ol_aix_threads = yes ; then
3782         if test -z "${CC}" ; then
3783                 for ac_prog in cc_r xlc_r cc
3784 do
3785   # Extract the first word of "$ac_prog", so it can be a program name with args.
3786 set dummy $ac_prog; ac_word=$2
3787 echo "$as_me:$LINENO: checking for $ac_word" >&5
3788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3789 if test "${ac_cv_prog_CC+set}" = set; then
3790   echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792   if test -n "$CC"; then
3793   ac_cv_prog_CC="$CC" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3797 do
3798   IFS=$as_save_IFS
3799   test -z "$as_dir" && as_dir=.
3800   for ac_exec_ext in '' $ac_executable_extensions; do
3801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802     ac_cv_prog_CC="$ac_prog"
3803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804     break 2
3805   fi
3806 done
3807 done
3808
3809 fi
3810 fi
3811 CC=$ac_cv_prog_CC
3812 if test -n "$CC"; then
3813   echo "$as_me:$LINENO: result: $CC" >&5
3814 echo "${ECHO_T}$CC" >&6
3815 else
3816   echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3818 fi
3819
3820   test -n "$CC" && break
3821 done
3822
3823
3824                 if test "$CC" = cc ; then
3825                                                 if test $ol_with_threads != auto ; then
3826                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3827 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3828    { (exit 1); exit 1; }; }
3829                         else
3830                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3831 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3832                         fi
3833                         ol_with_threads=no
3834                 fi
3835         fi
3836
3837         if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3838                 ol_with_threads=posix
3839                 ol_cv_pthread_create=yes
3840         fi
3841 fi
3842
3843 if test -z "${CC}"; then
3844         for ac_prog in cc gcc
3845 do
3846   # Extract the first word of "$ac_prog", so it can be a program name with args.
3847 set dummy $ac_prog; ac_word=$2
3848 echo "$as_me:$LINENO: checking for $ac_word" >&5
3849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3850 if test "${ac_cv_prog_CC+set}" = set; then
3851   echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853   if test -n "$CC"; then
3854   ac_cv_prog_CC="$CC" # Let the user override the test.
3855 else
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH
3858 do
3859   IFS=$as_save_IFS
3860   test -z "$as_dir" && as_dir=.
3861   for ac_exec_ext in '' $ac_executable_extensions; do
3862   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3863     ac_cv_prog_CC="$ac_prog"
3864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3865     break 2
3866   fi
3867 done
3868 done
3869
3870 fi
3871 fi
3872 CC=$ac_cv_prog_CC
3873 if test -n "$CC"; then
3874   echo "$as_me:$LINENO: result: $CC" >&5
3875 echo "${ECHO_T}$CC" >&6
3876 else
3877   echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3879 fi
3880
3881   test -n "$CC" && break
3882 done
3883 test -n "$CC" || CC="missing"
3884
3885
3886         if test "${CC}" = "missing" ; then
3887                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
3888 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
3889    { (exit 1); exit 1; }; }
3890         fi
3891 fi
3892
3893 if test -z "${AR}"; then
3894         for ac_prog in ar gar
3895 do
3896   # Extract the first word of "$ac_prog", so it can be a program name with args.
3897 set dummy $ac_prog; ac_word=$2
3898 echo "$as_me:$LINENO: checking for $ac_word" >&5
3899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900 if test "${ac_cv_prog_AR+set}" = set; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903   if test -n "$AR"; then
3904   ac_cv_prog_AR="$AR" # Let the user override the test.
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3908 do
3909   IFS=$as_save_IFS
3910   test -z "$as_dir" && as_dir=.
3911   for ac_exec_ext in '' $ac_executable_extensions; do
3912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913     ac_cv_prog_AR="$ac_prog"
3914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915     break 2
3916   fi
3917 done
3918 done
3919
3920 fi
3921 fi
3922 AR=$ac_cv_prog_AR
3923 if test -n "$AR"; then
3924   echo "$as_me:$LINENO: result: $AR" >&5
3925 echo "${ECHO_T}$AR" >&6
3926 else
3927   echo "$as_me:$LINENO: result: no" >&5
3928 echo "${ECHO_T}no" >&6
3929 fi
3930
3931   test -n "$AR" && break
3932 done
3933 test -n "$AR" || AR="missing"
3934
3935
3936         if test "${AR}" = "missing" ; then
3937                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
3938 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
3939    { (exit 1); exit 1; }; }
3940         fi
3941 fi
3942
3943
3944
3945
3946
3947 # Check whether --enable-fast-install or --disable-fast-install was given.
3948 if test "${enable_fast_install+set}" = set; then
3949   enableval="$enable_fast_install"
3950   p=${PACKAGE-default}
3951     case $enableval in
3952     yes) enable_fast_install=yes ;;
3953     no) enable_fast_install=no ;;
3954     *)
3955       enable_fast_install=no
3956       # Look at the argument we got.  We use all the common list separators.
3957       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3958       for pkg in $enableval; do
3959         IFS="$lt_save_ifs"
3960         if test "X$pkg" = "X$p"; then
3961           enable_fast_install=yes
3962         fi
3963       done
3964       IFS="$lt_save_ifs"
3965       ;;
3966     esac
3967 else
3968   enable_fast_install=yes
3969 fi;
3970
3971 DEPDIR="${am__leading_dot}deps"
3972
3973           ac_config_commands="$ac_config_commands depfiles"
3974
3975
3976 am_make=${MAKE-make}
3977 cat > confinc << 'END'
3978 am__doit:
3979         @echo done
3980 .PHONY: am__doit
3981 END
3982 # If we don't find an include directive, just comment out the code.
3983 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3984 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3985 am__include="#"
3986 am__quote=
3987 _am_result=none
3988 # First try GNU make style include.
3989 echo "include confinc" > confmf
3990 # We grep out `Entering directory' and `Leaving directory'
3991 # messages which can occur if `w' ends up in MAKEFLAGS.
3992 # In particular we don't look at `^make:' because GNU make might
3993 # be invoked under some other name (usually "gmake"), in which
3994 # case it prints its new name instead of `make'.
3995 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3996    am__include=include
3997    am__quote=
3998    _am_result=GNU
3999 fi
4000 # Now try BSD make style include.
4001 if test "$am__include" = "#"; then
4002    echo '.include "confinc"' > confmf
4003    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4004       am__include=.include
4005       am__quote="\""
4006       _am_result=BSD
4007    fi
4008 fi
4009
4010
4011 echo "$as_me:$LINENO: result: $_am_result" >&5
4012 echo "${ECHO_T}$_am_result" >&6
4013 rm -f confinc confmf
4014
4015 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4016 if test "${enable_dependency_tracking+set}" = set; then
4017   enableval="$enable_dependency_tracking"
4018
4019 fi;
4020 if test "x$enable_dependency_tracking" != xno; then
4021   am_depcomp="$ac_aux_dir/depcomp"
4022   AMDEPBACKSLASH='\'
4023 fi
4024
4025
4026 if test "x$enable_dependency_tracking" != xno; then
4027   AMDEP_TRUE=
4028   AMDEP_FALSE='#'
4029 else
4030   AMDEP_TRUE='#'
4031   AMDEP_FALSE=
4032 fi
4033
4034
4035
4036 ac_ext=c
4037 ac_cpp='$CPP $CPPFLAGS'
4038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041 if test -n "$ac_tool_prefix"; then
4042   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4043 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4044 echo "$as_me:$LINENO: checking for $ac_word" >&5
4045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4046 if test "${ac_cv_prog_CC+set}" = set; then
4047   echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049   if test -n "$CC"; then
4050   ac_cv_prog_CC="$CC" # Let the user override the test.
4051 else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4054 do
4055   IFS=$as_save_IFS
4056   test -z "$as_dir" && as_dir=.
4057   for ac_exec_ext in '' $ac_executable_extensions; do
4058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4061     break 2
4062   fi
4063 done
4064 done
4065
4066 fi
4067 fi
4068 CC=$ac_cv_prog_CC
4069 if test -n "$CC"; then
4070   echo "$as_me:$LINENO: result: $CC" >&5
4071 echo "${ECHO_T}$CC" >&6
4072 else
4073   echo "$as_me:$LINENO: result: no" >&5
4074 echo "${ECHO_T}no" >&6
4075 fi
4076
4077 fi
4078 if test -z "$ac_cv_prog_CC"; then
4079   ac_ct_CC=$CC
4080   # Extract the first word of "gcc", so it can be a program name with args.
4081 set dummy gcc; ac_word=$2
4082 echo "$as_me:$LINENO: checking for $ac_word" >&5
4083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4084 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4085   echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087   if test -n "$ac_ct_CC"; then
4088   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4089 else
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4092 do
4093   IFS=$as_save_IFS
4094   test -z "$as_dir" && as_dir=.
4095   for ac_exec_ext in '' $ac_executable_extensions; do
4096   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097     ac_cv_prog_ac_ct_CC="gcc"
4098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099     break 2
4100   fi
4101 done
4102 done
4103
4104 fi
4105 fi
4106 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4107 if test -n "$ac_ct_CC"; then
4108   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4109 echo "${ECHO_T}$ac_ct_CC" >&6
4110 else
4111   echo "$as_me:$LINENO: result: no" >&5
4112 echo "${ECHO_T}no" >&6
4113 fi
4114
4115   CC=$ac_ct_CC
4116 else
4117   CC="$ac_cv_prog_CC"
4118 fi
4119
4120 if test -z "$CC"; then
4121   if test -n "$ac_tool_prefix"; then
4122   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4123 set dummy ${ac_tool_prefix}cc; ac_word=$2
4124 echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4126 if test "${ac_cv_prog_CC+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   if test -n "$CC"; then
4130   ac_cv_prog_CC="$CC" # Let the user override the test.
4131 else
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4134 do
4135   IFS=$as_save_IFS
4136   test -z "$as_dir" && as_dir=.
4137   for ac_exec_ext in '' $ac_executable_extensions; do
4138   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139     ac_cv_prog_CC="${ac_tool_prefix}cc"
4140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141     break 2
4142   fi
4143 done
4144 done
4145
4146 fi
4147 fi
4148 CC=$ac_cv_prog_CC
4149 if test -n "$CC"; then
4150   echo "$as_me:$LINENO: result: $CC" >&5
4151 echo "${ECHO_T}$CC" >&6
4152 else
4153   echo "$as_me:$LINENO: result: no" >&5
4154 echo "${ECHO_T}no" >&6
4155 fi
4156
4157 fi
4158 if test -z "$ac_cv_prog_CC"; then
4159   ac_ct_CC=$CC
4160   # Extract the first word of "cc", so it can be a program name with args.
4161 set dummy cc; ac_word=$2
4162 echo "$as_me:$LINENO: checking for $ac_word" >&5
4163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4164 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4165   echo $ECHO_N "(cached) $ECHO_C" >&6
4166 else
4167   if test -n "$ac_ct_CC"; then
4168   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4169 else
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173   IFS=$as_save_IFS
4174   test -z "$as_dir" && as_dir=.
4175   for ac_exec_ext in '' $ac_executable_extensions; do
4176   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177     ac_cv_prog_ac_ct_CC="cc"
4178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179     break 2
4180   fi
4181 done
4182 done
4183
4184 fi
4185 fi
4186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4187 if test -n "$ac_ct_CC"; then
4188   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4189 echo "${ECHO_T}$ac_ct_CC" >&6
4190 else
4191   echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6
4193 fi
4194
4195   CC=$ac_ct_CC
4196 else
4197   CC="$ac_cv_prog_CC"
4198 fi
4199
4200 fi
4201 if test -z "$CC"; then
4202   # Extract the first word of "cc", so it can be a program name with args.
4203 set dummy cc; ac_word=$2
4204 echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4206 if test "${ac_cv_prog_CC+set}" = set; then
4207   echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209   if test -n "$CC"; then
4210   ac_cv_prog_CC="$CC" # Let the user override the test.
4211 else
4212   ac_prog_rejected=no
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4215 do
4216   IFS=$as_save_IFS
4217   test -z "$as_dir" && as_dir=.
4218   for ac_exec_ext in '' $ac_executable_extensions; do
4219   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4221        ac_prog_rejected=yes
4222        continue
4223      fi
4224     ac_cv_prog_CC="cc"
4225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4226     break 2
4227   fi
4228 done
4229 done
4230
4231 if test $ac_prog_rejected = yes; then
4232   # We found a bogon in the path, so make sure we never use it.
4233   set dummy $ac_cv_prog_CC
4234   shift
4235   if test $# != 0; then
4236     # We chose a different compiler from the bogus one.
4237     # However, it has the same basename, so the bogon will be chosen
4238     # first if we set CC to just the basename; use the full file name.
4239     shift
4240     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4241   fi
4242 fi
4243 fi
4244 fi
4245 CC=$ac_cv_prog_CC
4246 if test -n "$CC"; then
4247   echo "$as_me:$LINENO: result: $CC" >&5
4248 echo "${ECHO_T}$CC" >&6
4249 else
4250   echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6
4252 fi
4253
4254 fi
4255 if test -z "$CC"; then
4256   if test -n "$ac_tool_prefix"; then
4257   for ac_prog in cl
4258   do
4259     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4260 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4261 echo "$as_me:$LINENO: checking for $ac_word" >&5
4262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4263 if test "${ac_cv_prog_CC+set}" = set; then
4264   echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266   if test -n "$CC"; then
4267   ac_cv_prog_CC="$CC" # Let the user override the test.
4268 else
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH
4271 do
4272   IFS=$as_save_IFS
4273   test -z "$as_dir" && as_dir=.
4274   for ac_exec_ext in '' $ac_executable_extensions; do
4275   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4276     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4278     break 2
4279   fi
4280 done
4281 done
4282
4283 fi
4284 fi
4285 CC=$ac_cv_prog_CC
4286 if test -n "$CC"; then
4287   echo "$as_me:$LINENO: result: $CC" >&5
4288 echo "${ECHO_T}$CC" >&6
4289 else
4290   echo "$as_me:$LINENO: result: no" >&5
4291 echo "${ECHO_T}no" >&6
4292 fi
4293
4294     test -n "$CC" && break
4295   done
4296 fi
4297 if test -z "$CC"; then
4298   ac_ct_CC=$CC
4299   for ac_prog in cl
4300 do
4301   # Extract the first word of "$ac_prog", so it can be a program name with args.
4302 set dummy $ac_prog; ac_word=$2
4303 echo "$as_me:$LINENO: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4305 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4306   echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308   if test -n "$ac_ct_CC"; then
4309   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4310 else
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4313 do
4314   IFS=$as_save_IFS
4315   test -z "$as_dir" && as_dir=.
4316   for ac_exec_ext in '' $ac_executable_extensions; do
4317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4318     ac_cv_prog_ac_ct_CC="$ac_prog"
4319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4320     break 2
4321   fi
4322 done
4323 done
4324
4325 fi
4326 fi
4327 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4328 if test -n "$ac_ct_CC"; then
4329   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4330 echo "${ECHO_T}$ac_ct_CC" >&6
4331 else
4332   echo "$as_me:$LINENO: result: no" >&5
4333 echo "${ECHO_T}no" >&6
4334 fi
4335
4336   test -n "$ac_ct_CC" && break
4337 done
4338
4339   CC=$ac_ct_CC
4340 fi
4341
4342 fi
4343
4344
4345 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4346 See \`config.log' for more details." >&5
4347 echo "$as_me: error: no acceptable C compiler found in \$PATH
4348 See \`config.log' for more details." >&2;}
4349    { (exit 1); exit 1; }; }
4350
4351 # Provide some information about the compiler.
4352 echo "$as_me:$LINENO:" \
4353      "checking for C compiler version" >&5
4354 ac_compiler=`set X $ac_compile; echo $2`
4355 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4356   (eval $ac_compiler --version </dev/null >&5) 2>&5
4357   ac_status=$?
4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359   (exit $ac_status); }
4360 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4361   (eval $ac_compiler -v </dev/null >&5) 2>&5
4362   ac_status=$?
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); }
4365 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4366   (eval $ac_compiler -V </dev/null >&5) 2>&5
4367   ac_status=$?
4368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369   (exit $ac_status); }
4370
4371 cat >conftest.$ac_ext <<_ACEOF
4372 /* confdefs.h.  */
4373 _ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h.  */
4377
4378 int
4379 main ()
4380 {
4381
4382   ;
4383   return 0;
4384 }
4385 _ACEOF
4386 ac_clean_files_save=$ac_clean_files
4387 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4388 # Try to create an executable without -o first, disregard a.out.
4389 # It will help us diagnose broken compilers, and finding out an intuition
4390 # of exeext.
4391 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4392 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4393 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4394 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4395   (eval $ac_link_default) 2>&5
4396   ac_status=$?
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); }; then
4399   # Find the output, starting from the most likely.  This scheme is
4400 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4401 # resort.
4402
4403 # Be careful to initialize this variable, since it used to be cached.
4404 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4405 ac_cv_exeext=
4406 # b.out is created by i960 compilers.
4407 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4408 do
4409   test -f "$ac_file" || continue
4410   case $ac_file in
4411     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4412         ;;
4413     conftest.$ac_ext )
4414         # This is the source file.
4415         ;;
4416     [ab].out )
4417         # We found the default executable, but exeext='' is most
4418         # certainly right.
4419         break;;
4420     *.* )
4421         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4422         # FIXME: I believe we export ac_cv_exeext for Libtool,
4423         # but it would be cool to find out if it's true.  Does anybody
4424         # maintain Libtool? --akim.
4425         export ac_cv_exeext
4426         break;;
4427     * )
4428         break;;
4429   esac
4430 done
4431 else
4432   echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4434
4435 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4436 See \`config.log' for more details." >&5
4437 echo "$as_me: error: C compiler cannot create executables
4438 See \`config.log' for more details." >&2;}
4439    { (exit 77); exit 77; }; }
4440 fi
4441
4442 ac_exeext=$ac_cv_exeext
4443 echo "$as_me:$LINENO: result: $ac_file" >&5
4444 echo "${ECHO_T}$ac_file" >&6
4445
4446 # Check the compiler produces executables we can run.  If not, either
4447 # the compiler is broken, or we cross compile.
4448 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4449 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4450 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4451 # If not cross compiling, check that we can run a simple program.
4452 if test "$cross_compiling" != yes; then
4453   if { ac_try='./$ac_file'
4454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455   (eval $ac_try) 2>&5
4456   ac_status=$?
4457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458   (exit $ac_status); }; }; then
4459     cross_compiling=no
4460   else
4461     if test "$cross_compiling" = maybe; then
4462         cross_compiling=yes
4463     else
4464         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4465 If you meant to cross compile, use \`--host'.
4466 See \`config.log' for more details." >&5
4467 echo "$as_me: error: cannot run C compiled programs.
4468 If you meant to cross compile, use \`--host'.
4469 See \`config.log' for more details." >&2;}
4470    { (exit 1); exit 1; }; }
4471     fi
4472   fi
4473 fi
4474 echo "$as_me:$LINENO: result: yes" >&5
4475 echo "${ECHO_T}yes" >&6
4476
4477 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4478 ac_clean_files=$ac_clean_files_save
4479 # Check the compiler produces executables we can run.  If not, either
4480 # the compiler is broken, or we cross compile.
4481 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4482 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4483 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4484 echo "${ECHO_T}$cross_compiling" >&6
4485
4486 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4487 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4489   (eval $ac_link) 2>&5
4490   ac_status=$?
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); }; then
4493   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4494 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4495 # work properly (i.e., refer to `conftest.exe'), while it won't with
4496 # `rm'.
4497 for ac_file in conftest.exe conftest conftest.*; do
4498   test -f "$ac_file" || continue
4499   case $ac_file in
4500     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4501     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4502           export ac_cv_exeext
4503           break;;
4504     * ) break;;
4505   esac
4506 done
4507 else
4508   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4509 See \`config.log' for more details." >&5
4510 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4511 See \`config.log' for more details." >&2;}
4512    { (exit 1); exit 1; }; }
4513 fi
4514
4515 rm -f conftest$ac_cv_exeext
4516 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4517 echo "${ECHO_T}$ac_cv_exeext" >&6
4518
4519 rm -f conftest.$ac_ext
4520 EXEEXT=$ac_cv_exeext
4521 ac_exeext=$EXEEXT
4522 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4523 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4524 if test "${ac_cv_objext+set}" = set; then
4525   echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527   cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h.  */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h.  */
4533
4534 int
4535 main ()
4536 {
4537
4538   ;
4539   return 0;
4540 }
4541 _ACEOF
4542 rm -f conftest.o conftest.obj
4543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4544   (eval $ac_compile) 2>&5
4545   ac_status=$?
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); }; then
4548   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4549   case $ac_file in
4550     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4551     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4552        break;;
4553   esac
4554 done
4555 else
4556   echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4558
4559 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4560 See \`config.log' for more details." >&5
4561 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4562 See \`config.log' for more details." >&2;}
4563    { (exit 1); exit 1; }; }
4564 fi
4565
4566 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4567 fi
4568 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4569 echo "${ECHO_T}$ac_cv_objext" >&6
4570 OBJEXT=$ac_cv_objext
4571 ac_objext=$OBJEXT
4572 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4573 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4574 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577   cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h.  */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h.  */
4583
4584 int
4585 main ()
4586 {
4587 #ifndef __GNUC__
4588        choke me
4589 #endif
4590
4591   ;
4592   return 0;
4593 }
4594 _ACEOF
4595 rm -f conftest.$ac_objext
4596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597   (eval $ac_compile) 2>conftest.er1
4598   ac_status=$?
4599   grep -v '^ *+' conftest.er1 >conftest.err
4600   rm -f conftest.er1
4601   cat conftest.err >&5
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); } &&
4604          { ac_try='test -z "$ac_c_werror_flag"
4605                          || test ! -s conftest.err'
4606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607   (eval $ac_try) 2>&5
4608   ac_status=$?
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); }; } &&
4611          { ac_try='test -s conftest.$ac_objext'
4612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613   (eval $ac_try) 2>&5
4614   ac_status=$?
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); }; }; then
4617   ac_compiler_gnu=yes
4618 else
4619   echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4621
4622 ac_compiler_gnu=no
4623 fi
4624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4625 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4626
4627 fi
4628 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4629 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4630 GCC=`test $ac_compiler_gnu = yes && echo yes`
4631 ac_test_CFLAGS=${CFLAGS+set}
4632 ac_save_CFLAGS=$CFLAGS
4633 CFLAGS="-g"
4634 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4635 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4636 if test "${ac_cv_prog_cc_g+set}" = set; then
4637   echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639   cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h.  */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h.  */
4645
4646 int
4647 main ()
4648 {
4649
4650   ;
4651   return 0;
4652 }
4653 _ACEOF
4654 rm -f conftest.$ac_objext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4656   (eval $ac_compile) 2>conftest.er1
4657   ac_status=$?
4658   grep -v '^ *+' conftest.er1 >conftest.err
4659   rm -f conftest.er1
4660   cat conftest.err >&5
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); } &&
4663          { ac_try='test -z "$ac_c_werror_flag"
4664                          || test ! -s conftest.err'
4665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666   (eval $ac_try) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; } &&
4670          { ac_try='test -s conftest.$ac_objext'
4671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672   (eval $ac_try) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; }; then
4676   ac_cv_prog_cc_g=yes
4677 else
4678   echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4680
4681 ac_cv_prog_cc_g=no
4682 fi
4683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4684 fi
4685 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4686 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4687 if test "$ac_test_CFLAGS" = set; then
4688   CFLAGS=$ac_save_CFLAGS
4689 elif test $ac_cv_prog_cc_g = yes; then
4690   if test "$GCC" = yes; then
4691     CFLAGS="-g -O2"
4692   else
4693     CFLAGS="-g"
4694   fi
4695 else
4696   if test "$GCC" = yes; then
4697     CFLAGS="-O2"
4698   else
4699     CFLAGS=
4700   fi
4701 fi
4702 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4703 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4704 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4705   echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707   ac_cv_prog_cc_stdc=no
4708 ac_save_CC=$CC
4709 cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h.  */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h.  */
4715 #include <stdarg.h>
4716 #include <stdio.h>
4717 #include <sys/types.h>
4718 #include <sys/stat.h>
4719 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4720 struct buf { int x; };
4721 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4722 static char *e (p, i)
4723      char **p;
4724      int i;
4725 {
4726   return p[i];
4727 }
4728 static char *f (char * (*g) (char **, int), char **p, ...)
4729 {
4730   char *s;
4731   va_list v;
4732   va_start (v,p);
4733   s = g (p, va_arg (v,int));
4734   va_end (v);
4735   return s;
4736 }
4737
4738 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4739    function prototypes and stuff, but not '\xHH' hex character constants.
4740    These don't provoke an error unfortunately, instead are silently treated
4741    as 'x'.  The following induces an error, until -std1 is added to get
4742    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4743    array size at least.  It's necessary to write '\x00'==0 to get something
4744    that's true only with -std1.  */
4745 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4746
4747 int test (int i, double x);
4748 struct s1 {int (*f) (int a);};
4749 struct s2 {int (*f) (double a);};
4750 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4751 int argc;
4752 char **argv;
4753 int
4754 main ()
4755 {
4756 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4757   ;
4758   return 0;
4759 }
4760 _ACEOF
4761 # Don't try gcc -ansi; that turns off useful extensions and
4762 # breaks some systems' header files.
4763 # AIX                   -qlanglvl=ansi
4764 # Ultrix and OSF/1      -std1
4765 # HP-UX 10.20 and later -Ae
4766 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4767 # SVR4                  -Xc -D__EXTENSIONS__
4768 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4769 do
4770   CC="$ac_save_CC $ac_arg"
4771   rm -f conftest.$ac_objext
4772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4773   (eval $ac_compile) 2>conftest.er1
4774   ac_status=$?
4775   grep -v '^ *+' conftest.er1 >conftest.err
4776   rm -f conftest.er1
4777   cat conftest.err >&5
4778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779   (exit $ac_status); } &&
4780          { ac_try='test -z "$ac_c_werror_flag"
4781                          || test ! -s conftest.err'
4782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783   (eval $ac_try) 2>&5
4784   ac_status=$?
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); }; } &&
4787          { ac_try='test -s conftest.$ac_objext'
4788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789   (eval $ac_try) 2>&5
4790   ac_status=$?
4791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792   (exit $ac_status); }; }; then
4793   ac_cv_prog_cc_stdc=$ac_arg
4794 break
4795 else
4796   echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799 fi
4800 rm -f conftest.err conftest.$ac_objext
4801 done
4802 rm -f conftest.$ac_ext conftest.$ac_objext
4803 CC=$ac_save_CC
4804
4805 fi
4806
4807 case "x$ac_cv_prog_cc_stdc" in
4808   x|xno)
4809     echo "$as_me:$LINENO: result: none needed" >&5
4810 echo "${ECHO_T}none needed" >&6 ;;
4811   *)
4812     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4813 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4814     CC="$CC $ac_cv_prog_cc_stdc" ;;
4815 esac
4816
4817 # Some people use a C++ compiler to compile C.  Since we use `exit',
4818 # in C++ we need to declare it.  In case someone uses the same compiler
4819 # for both compiling C and C++ we need to have the C++ compiler decide
4820 # the declaration of exit, since it's the most demanding environment.
4821 cat >conftest.$ac_ext <<_ACEOF
4822 #ifndef __cplusplus
4823   choke me
4824 #endif
4825 _ACEOF
4826 rm -f conftest.$ac_objext
4827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4828   (eval $ac_compile) 2>conftest.er1
4829   ac_status=$?
4830   grep -v '^ *+' conftest.er1 >conftest.err
4831   rm -f conftest.er1
4832   cat conftest.err >&5
4833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); } &&
4835          { ac_try='test -z "$ac_c_werror_flag"
4836                          || test ! -s conftest.err'
4837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838   (eval $ac_try) 2>&5
4839   ac_status=$?
4840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841   (exit $ac_status); }; } &&
4842          { ac_try='test -s conftest.$ac_objext'
4843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844   (eval $ac_try) 2>&5
4845   ac_status=$?
4846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847   (exit $ac_status); }; }; then
4848   for ac_declaration in \
4849    '' \
4850    'extern "C" void std::exit (int) throw (); using std::exit;' \
4851    'extern "C" void std::exit (int); using std::exit;' \
4852    'extern "C" void exit (int) throw ();' \
4853    'extern "C" void exit (int);' \
4854    'void exit (int);'
4855 do
4856   cat >conftest.$ac_ext <<_ACEOF
4857 /* confdefs.h.  */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h.  */
4862 $ac_declaration
4863 #include <stdlib.h>
4864 int
4865 main ()
4866 {
4867 exit (42);
4868   ;
4869   return 0;
4870 }
4871 _ACEOF
4872 rm -f conftest.$ac_objext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4874   (eval $ac_compile) 2>conftest.er1
4875   ac_status=$?
4876   grep -v '^ *+' conftest.er1 >conftest.err
4877   rm -f conftest.er1
4878   cat conftest.err >&5
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); } &&
4881          { ac_try='test -z "$ac_c_werror_flag"
4882                          || test ! -s conftest.err'
4883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884   (eval $ac_try) 2>&5
4885   ac_status=$?
4886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887   (exit $ac_status); }; } &&
4888          { ac_try='test -s conftest.$ac_objext'
4889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890   (eval $ac_try) 2>&5
4891   ac_status=$?
4892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893   (exit $ac_status); }; }; then
4894   :
4895 else
4896   echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4898
4899 continue
4900 fi
4901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4902   cat >conftest.$ac_ext <<_ACEOF
4903 /* confdefs.h.  */
4904 _ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h.  */
4908 $ac_declaration
4909 int
4910 main ()
4911 {
4912 exit (42);
4913   ;
4914   return 0;
4915 }
4916 _ACEOF
4917 rm -f conftest.$ac_objext
4918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4919   (eval $ac_compile) 2>conftest.er1
4920   ac_status=$?
4921   grep -v '^ *+' conftest.er1 >conftest.err
4922   rm -f conftest.er1
4923   cat conftest.err >&5
4924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925   (exit $ac_status); } &&
4926          { ac_try='test -z "$ac_c_werror_flag"
4927                          || test ! -s conftest.err'
4928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929   (eval $ac_try) 2>&5
4930   ac_status=$?
4931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932   (exit $ac_status); }; } &&
4933          { ac_try='test -s conftest.$ac_objext'
4934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935   (eval $ac_try) 2>&5
4936   ac_status=$?
4937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938   (exit $ac_status); }; }; then
4939   break
4940 else
4941   echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4943
4944 fi
4945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4946 done
4947 rm -f conftest*
4948 if test -n "$ac_declaration"; then
4949   echo '#ifdef __cplusplus' >>confdefs.h
4950   echo $ac_declaration      >>confdefs.h
4951   echo '#endif'             >>confdefs.h
4952 fi
4953
4954 else
4955   echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4957
4958 fi
4959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4960 ac_ext=c
4961 ac_cpp='$CPP $CPPFLAGS'
4962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4965
4966 depcc="$CC"   am_compiler_list=
4967
4968 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4969 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4970 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4971   echo $ECHO_N "(cached) $ECHO_C" >&6
4972 else
4973   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4974   # We make a subdir and do the tests there.  Otherwise we can end up
4975   # making bogus files that we don't know about and never remove.  For
4976   # instance it was reported that on HP-UX the gcc test will end up
4977   # making a dummy file named `D' -- because `-MD' means `put the output
4978   # in D'.
4979   mkdir conftest.dir
4980   # Copy depcomp to subdir because otherwise we won't find it if we're
4981   # using a relative directory.
4982   cp "$am_depcomp" conftest.dir
4983   cd conftest.dir
4984   # We will build objects and dependencies in a subdirectory because
4985   # it helps to detect inapplicable dependency modes.  For instance
4986   # both Tru64's cc and ICC support -MD to output dependencies as a
4987   # side effect of compilation, but ICC will put the dependencies in
4988   # the current directory while Tru64 will put them in the object
4989   # directory.
4990   mkdir sub
4991
4992   am_cv_CC_dependencies_compiler_type=none
4993   if test "$am_compiler_list" = ""; then
4994      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4995   fi
4996   for depmode in $am_compiler_list; do
4997     # Setup a source with many dependencies, because some compilers
4998     # like to wrap large dependency lists on column 80 (with \), and
4999     # we should not choose a depcomp mode which is confused by this.
5000     #
5001     # We need to recreate these files for each test, as the compiler may
5002     # overwrite some of them when testing with obscure command lines.
5003     # This happens at least with the AIX C compiler.
5004     : > sub/conftest.c
5005     for i in 1 2 3 4 5 6; do
5006       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5007       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5008       # Solaris 8's {/usr,}/bin/sh.
5009       touch sub/conftst$i.h
5010     done
5011     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5012
5013     case $depmode in
5014     nosideeffect)
5015       # after this tag, mechanisms are not by side-effect, so they'll
5016       # only be used when explicitly requested
5017       if test "x$enable_dependency_tracking" = xyes; then
5018         continue
5019       else
5020         break
5021       fi
5022       ;;
5023     none) break ;;
5024     esac
5025     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5026     # mode.  It turns out that the SunPro C++ compiler does not properly
5027     # handle `-M -o', and we need to detect this.
5028     if depmode=$depmode \
5029        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5030        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5031        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5032          >/dev/null 2>conftest.err &&
5033        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5034        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5035        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5036       # icc doesn't choke on unknown options, it will just issue warnings
5037       # or remarks (even with -Werror).  So we grep stderr for any message
5038       # that says an option was ignored or not supported.
5039       # When given -MP, icc 7.0 and 7.1 complain thusly:
5040       #   icc: Command line warning: ignoring option '-M'; no argument required
5041       # The diagnosis changed in icc 8.0:
5042       #   icc: Command line remark: option '-MP' not supported
5043       if (grep 'ignoring option' conftest.err ||
5044           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5045         am_cv_CC_dependencies_compiler_type=$depmode
5046         break
5047       fi
5048     fi
5049   done
5050
5051   cd ..
5052   rm -rf conftest.dir
5053 else
5054   am_cv_CC_dependencies_compiler_type=none
5055 fi
5056
5057 fi
5058 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5059 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5060 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5061
5062
5063
5064 if
5065   test "x$enable_dependency_tracking" != xno \
5066   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5067   am__fastdepCC_TRUE=
5068   am__fastdepCC_FALSE='#'
5069 else
5070   am__fastdepCC_TRUE='#'
5071   am__fastdepCC_FALSE=
5072 fi
5073
5074
5075 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5076 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5077 if test "${lt_cv_path_SED+set}" = set; then
5078   echo $ECHO_N "(cached) $ECHO_C" >&6
5079 else
5080   # Loop through the user's path and test for sed and gsed.
5081 # Then use that list of sed's as ones to test for truncation.
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085   IFS=$as_save_IFS
5086   test -z "$as_dir" && as_dir=.
5087   for lt_ac_prog in sed gsed; do
5088     for ac_exec_ext in '' $ac_executable_extensions; do
5089       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5090         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5091       fi
5092     done
5093   done
5094 done
5095 lt_ac_max=0
5096 lt_ac_count=0
5097 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5098 # along with /bin/sed that truncates output.
5099 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5100   test ! -f $lt_ac_sed && continue
5101   cat /dev/null > conftest.in
5102   lt_ac_count=0
5103   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5104   # Check for GNU sed and select it if it is found.
5105   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5106     lt_cv_path_SED=$lt_ac_sed
5107     break
5108   fi
5109   while true; do
5110     cat conftest.in conftest.in >conftest.tmp
5111     mv conftest.tmp conftest.in
5112     cp conftest.in conftest.nl
5113     echo >>conftest.nl
5114     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5115     cmp -s conftest.out conftest.nl || break
5116     # 10000 chars as input seems more than enough
5117     test $lt_ac_count -gt 10 && break
5118     lt_ac_count=`expr $lt_ac_count + 1`
5119     if test $lt_ac_count -gt $lt_ac_max; then
5120       lt_ac_max=$lt_ac_count
5121       lt_cv_path_SED=$lt_ac_sed
5122     fi
5123   done
5124 done
5125
5126 fi
5127
5128 SED=$lt_cv_path_SED
5129 echo "$as_me:$LINENO: result: $SED" >&5
5130 echo "${ECHO_T}$SED" >&6
5131
5132 echo "$as_me:$LINENO: checking for egrep" >&5
5133 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5134 if test "${ac_cv_prog_egrep+set}" = set; then
5135   echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5138     then ac_cv_prog_egrep='grep -E'
5139     else ac_cv_prog_egrep='egrep'
5140     fi
5141 fi
5142 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5143 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5144  EGREP=$ac_cv_prog_egrep
5145
5146
5147
5148 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5149 if test "${with_gnu_ld+set}" = set; then
5150   withval="$with_gnu_ld"
5151   test "$withval" = no || with_gnu_ld=yes
5152 else
5153   with_gnu_ld=no
5154 fi;
5155 ac_prog=ld
5156 if test "$GCC" = yes; then
5157   # Check if gcc -print-prog-name=ld gives a path.
5158   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5159 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5160   case $host in
5161   *-*-mingw*)
5162     # gcc leaves a trailing carriage return which upsets mingw
5163     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5164   *)
5165     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5166   esac
5167   case $ac_prog in
5168     # Accept absolute paths.
5169     [\\/]* | ?:[\\/]*)
5170       re_direlt='/[^/][^/]*/\.\./'
5171       # Canonicalize the pathname of ld
5172       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5173       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5174         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5175       done
5176       test -z "$LD" && LD="$ac_prog"
5177       ;;
5178   "")
5179     # If it fails, then pretend we aren't using GCC.
5180     ac_prog=ld
5181     ;;
5182   *)
5183     # If it is relative, then search for the first ld in PATH.
5184     with_gnu_ld=unknown
5185     ;;
5186   esac
5187 elif test "$with_gnu_ld" = yes; then
5188   echo "$as_me:$LINENO: checking for GNU ld" >&5
5189 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5190 else
5191   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5192 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5193 fi
5194 if test "${lt_cv_path_LD+set}" = set; then
5195   echo $ECHO_N "(cached) $ECHO_C" >&6
5196 else
5197   if test -z "$LD"; then
5198   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5199   for ac_dir in $PATH; do
5200     IFS="$lt_save_ifs"
5201     test -z "$ac_dir" && ac_dir=.
5202     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5203       lt_cv_path_LD="$ac_dir/$ac_prog"
5204       # Check to see if the program is GNU ld.  I'd rather use --version,
5205       # but apparently some GNU ld's only accept -v.
5206       # Break only if it was the GNU/non-GNU ld that we prefer.
5207       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5208       *GNU* | *'with BFD'*)
5209         test "$with_gnu_ld" != no && break
5210         ;;
5211       *)
5212         test "$with_gnu_ld" != yes && break
5213         ;;
5214       esac
5215     fi
5216   done
5217   IFS="$lt_save_ifs"
5218 else
5219   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5220 fi
5221 fi
5222
5223 LD="$lt_cv_path_LD"
5224 if test -n "$LD"; then
5225   echo "$as_me:$LINENO: result: $LD" >&5
5226 echo "${ECHO_T}$LD" >&6
5227 else
5228   echo "$as_me:$LINENO: result: no" >&5
5229 echo "${ECHO_T}no" >&6
5230 fi
5231 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5232 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5233    { (exit 1); exit 1; }; }
5234 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5235 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5236 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5237   echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5240 case `$LD -v 2>&1 </dev/null` in
5241 *GNU* | *'with BFD'*)
5242   lt_cv_prog_gnu_ld=yes
5243   ;;
5244 *)
5245   lt_cv_prog_gnu_ld=no
5246   ;;
5247 esac
5248 fi
5249 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5250 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5251 with_gnu_ld=$lt_cv_prog_gnu_ld
5252
5253
5254 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5255 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5256 if test "${lt_cv_ld_reload_flag+set}" = set; then
5257   echo $ECHO_N "(cached) $ECHO_C" >&6
5258 else
5259   lt_cv_ld_reload_flag='-r'
5260 fi
5261 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5262 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5263 reload_flag=$lt_cv_ld_reload_flag
5264 case $reload_flag in
5265 "" | " "*) ;;
5266 *) reload_flag=" $reload_flag" ;;
5267 esac
5268 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5269 case $host_os in
5270   darwin*)
5271     if test "$GCC" = yes; then
5272       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5273     else
5274       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5275     fi
5276     ;;
5277 esac
5278
5279 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5280 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5281 if test "${lt_cv_path_NM+set}" = set; then
5282   echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284   if test -n "$NM"; then
5285   # Let the user override the test.
5286   lt_cv_path_NM="$NM"
5287 else
5288   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5289   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5290     IFS="$lt_save_ifs"
5291     test -z "$ac_dir" && ac_dir=.
5292     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5293     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5294       # Check to see if the nm accepts a BSD-compat flag.
5295       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5296       #   nm: unknown option "B" ignored
5297       # Tru64's nm complains that /dev/null is an invalid object file
5298       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5299       */dev/null* | *'Invalid file or object type'*)
5300         lt_cv_path_NM="$tmp_nm -B"
5301         break
5302         ;;
5303       *)
5304         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5305         */dev/null*)
5306           lt_cv_path_NM="$tmp_nm -p"
5307           break
5308           ;;
5309         *)
5310           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5311           continue # so that we can try to find one that supports BSD flags
5312           ;;
5313         esac
5314       esac
5315     fi
5316   done
5317   IFS="$lt_save_ifs"
5318   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5319 fi
5320 fi
5321 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5322 echo "${ECHO_T}$lt_cv_path_NM" >&6
5323 NM="$lt_cv_path_NM"
5324
5325 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5326 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5327 LN_S=$as_ln_s
5328 if test "$LN_S" = "ln -s"; then
5329   echo "$as_me:$LINENO: result: yes" >&5
5330 echo "${ECHO_T}yes" >&6
5331 else
5332   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5333 echo "${ECHO_T}no, using $LN_S" >&6
5334 fi
5335
5336 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5337 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5338 if test "${lt_cv_deplibs_check_method+set}" = set; then
5339   echo $ECHO_N "(cached) $ECHO_C" >&6
5340 else
5341   lt_cv_file_magic_cmd='$MAGIC_CMD'
5342 lt_cv_file_magic_test_file=
5343 lt_cv_deplibs_check_method='unknown'
5344 # Need to set the preceding variable on all platforms that support
5345 # interlibrary dependencies.
5346 # 'none' -- dependencies not supported.
5347 # `unknown' -- same as none, but documents that we really don't know.
5348 # 'pass_all' -- all dependencies passed with no checks.
5349 # 'test_compile' -- check by making test program.
5350 # 'file_magic [[regex]]' -- check by looking for files in library path
5351 # which responds to the $file_magic_cmd with a given extended regex.
5352 # If you have `file' or equivalent on your system and you're not sure
5353 # whether `pass_all' will *always* work, you probably want this one.
5354
5355 case $host_os in
5356 aix4* | aix5*)
5357   lt_cv_deplibs_check_method=pass_all
5358   ;;
5359
5360 beos*)
5361   lt_cv_deplibs_check_method=pass_all
5362   ;;
5363
5364 bsdi[45]*)
5365   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5366   lt_cv_file_magic_cmd='/usr/bin/file -L'
5367   lt_cv_file_magic_test_file=/shlib/libc.so
5368   ;;
5369
5370 cygwin*)
5371   # func_win32_libid is a shell function defined in ltmain.sh
5372   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5373   lt_cv_file_magic_cmd='func_win32_libid'
5374   ;;
5375
5376 mingw* | pw32*)
5377   # Base MSYS/MinGW do not provide the 'file' command needed by
5378   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5379   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5380   lt_cv_file_magic_cmd='$OBJDUMP -f'
5381   ;;
5382
5383 darwin* | rhapsody*)
5384   lt_cv_deplibs_check_method=pass_all
5385   ;;
5386
5387 freebsd* | kfreebsd*-gnu | dragonfly*)
5388   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5389     case $host_cpu in
5390     i*86 )
5391       # Not sure whether the presence of OpenBSD here was a mistake.
5392       # Let's accept both of them until this is cleared up.
5393       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5394       lt_cv_file_magic_cmd=/usr/bin/file
5395       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5396       ;;
5397     esac
5398   else
5399     lt_cv_deplibs_check_method=pass_all
5400   fi
5401   ;;
5402
5403 gnu*)
5404   lt_cv_deplibs_check_method=pass_all
5405   ;;
5406
5407 hpux10.20* | hpux11*)
5408   lt_cv_file_magic_cmd=/usr/bin/file
5409   case "$host_cpu" in
5410   ia64*)
5411     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5412     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5413     ;;
5414   hppa*64*)
5415     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]'
5416     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5417     ;;
5418   *)
5419     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5420     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5421     ;;
5422   esac
5423   ;;
5424
5425 irix5* | irix6* | nonstopux*)
5426   case $LD in
5427   *-32|*"-32 ") libmagic=32-bit;;
5428   *-n32|*"-n32 ") libmagic=N32;;
5429   *-64|*"-64 ") libmagic=64-bit;;
5430   *) libmagic=never-match;;
5431   esac
5432   lt_cv_deplibs_check_method=pass_all
5433   ;;
5434
5435 # This must be Linux ELF.
5436 linux*)
5437   lt_cv_deplibs_check_method=pass_all
5438   ;;
5439
5440 netbsd*)
5441   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5442     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5443   else
5444     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5445   fi
5446   ;;
5447
5448 newos6*)
5449   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5450   lt_cv_file_magic_cmd=/usr/bin/file
5451   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5452   ;;
5453
5454 nto-qnx*)
5455   lt_cv_deplibs_check_method=unknown
5456   ;;
5457
5458 openbsd*)
5459   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5460     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5461   else
5462     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5463   fi
5464   ;;
5465
5466 osf3* | osf4* | osf5*)
5467   lt_cv_deplibs_check_method=pass_all
5468   ;;
5469
5470 sco3.2v5*)
5471   lt_cv_deplibs_check_method=pass_all
5472   ;;
5473
5474 solaris*)
5475   lt_cv_deplibs_check_method=pass_all
5476   ;;
5477
5478 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5479   case $host_vendor in
5480   motorola)
5481     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]'
5482     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5483     ;;
5484   ncr)
5485     lt_cv_deplibs_check_method=pass_all
5486     ;;
5487   sequent)
5488     lt_cv_file_magic_cmd='/bin/file'
5489     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5490     ;;
5491   sni)
5492     lt_cv_file_magic_cmd='/bin/file'
5493     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5494     lt_cv_file_magic_test_file=/lib/libc.so
5495     ;;
5496   siemens)
5497     lt_cv_deplibs_check_method=pass_all
5498     ;;
5499   esac
5500   ;;
5501
5502 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5503   lt_cv_deplibs_check_method=pass_all
5504   ;;
5505 esac
5506
5507 fi
5508 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5509 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5510 file_magic_cmd=$lt_cv_file_magic_cmd
5511 deplibs_check_method=$lt_cv_deplibs_check_method
5512 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5513
5514
5515
5516
5517 # If no C compiler was specified, use CC.
5518 LTCC=${LTCC-"$CC"}
5519
5520 # Allow CC to be a program name with arguments.
5521 compiler=$CC
5522
5523
5524 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5525 if test "${enable_libtool_lock+set}" = set; then
5526   enableval="$enable_libtool_lock"
5527
5528 fi;
5529 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5530
5531 # Some flags need to be propagated to the compiler or linker for good
5532 # libtool support.
5533 case $host in
5534 ia64-*-hpux*)
5535   # Find out which ABI we are using.
5536   echo 'int i;' > conftest.$ac_ext
5537   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5538   (eval $ac_compile) 2>&5
5539   ac_status=$?
5540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); }; then
5542     case `/usr/bin/file conftest.$ac_objext` in
5543     *ELF-32*)
5544       HPUX_IA64_MODE="32"
5545       ;;
5546     *ELF-64*)
5547       HPUX_IA64_MODE="64"
5548       ;;
5549     esac
5550   fi
5551   rm -rf conftest*
5552   ;;
5553 *-*-irix6*)
5554   # Find out which ABI we are using.
5555   echo '#line 5555 "configure"' > conftest.$ac_ext
5556   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5557   (eval $ac_compile) 2>&5
5558   ac_status=$?
5559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560   (exit $ac_status); }; then
5561    if test "$lt_cv_prog_gnu_ld" = yes; then
5562     case `/usr/bin/file conftest.$ac_objext` in
5563     *32-bit*)
5564       LD="${LD-ld} -melf32bsmip"
5565       ;;
5566     *N32*)
5567       LD="${LD-ld} -melf32bmipn32"
5568       ;;
5569     *64-bit*)
5570       LD="${LD-ld} -melf64bmip"
5571       ;;
5572     esac
5573    else
5574     case `/usr/bin/file conftest.$ac_objext` in
5575     *32-bit*)
5576       LD="${LD-ld} -32"
5577       ;;
5578     *N32*)
5579       LD="${LD-ld} -n32"
5580       ;;
5581     *64-bit*)
5582       LD="${LD-ld} -64"
5583       ;;
5584     esac
5585    fi
5586   fi
5587   rm -rf conftest*
5588   ;;
5589
5590 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5591   # Find out which ABI we are using.
5592   echo 'int i;' > conftest.$ac_ext
5593   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594   (eval $ac_compile) 2>&5
5595   ac_status=$?
5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); }; then
5598     case "`/usr/bin/file conftest.o`" in
5599     *32-bit*)
5600       case $host in
5601         x86_64-*linux*)
5602           LD="${LD-ld} -m elf_i386"
5603           ;;
5604         ppc64-*linux*|powerpc64-*linux*)
5605           LD="${LD-ld} -m elf32ppclinux"
5606           ;;
5607         s390x-*linux*)
5608           LD="${LD-ld} -m elf_s390"
5609           ;;
5610         sparc64-*linux*)
5611           LD="${LD-ld} -m elf32_sparc"
5612           ;;
5613       esac
5614       ;;
5615     *64-bit*)
5616       case $host in
5617         x86_64-*linux*)
5618           LD="${LD-ld} -m elf_x86_64"
5619           ;;
5620         ppc*-*linux*|powerpc*-*linux*)
5621           LD="${LD-ld} -m elf64ppc"
5622           ;;
5623         s390*-*linux*)
5624           LD="${LD-ld} -m elf64_s390"
5625           ;;
5626         sparc*-*linux*)
5627           LD="${LD-ld} -m elf64_sparc"
5628           ;;
5629       esac
5630       ;;
5631     esac
5632   fi
5633   rm -rf conftest*
5634   ;;
5635
5636 *-*-sco3.2v5*)
5637   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5638   SAVE_CFLAGS="$CFLAGS"
5639   CFLAGS="$CFLAGS -belf"
5640   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5641 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5642 if test "${lt_cv_cc_needs_belf+set}" = set; then
5643   echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645   ac_ext=c
5646 ac_cpp='$CPP $CPPFLAGS'
5647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5650
5651      cat >conftest.$ac_ext <<_ACEOF
5652 /* confdefs.h.  */
5653 _ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h.  */
5657
5658 int
5659 main ()
5660 {
5661
5662   ;
5663   return 0;
5664 }
5665 _ACEOF
5666 rm -f conftest.$ac_objext conftest$ac_exeext
5667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5668   (eval $ac_link) 2>conftest.er1
5669   ac_status=$?
5670   grep -v '^ *+' conftest.er1 >conftest.err
5671   rm -f conftest.er1
5672   cat conftest.err >&5
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); } &&
5675          { ac_try='test -z "$ac_c_werror_flag"
5676                          || test ! -s conftest.err'
5677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678   (eval $ac_try) 2>&5
5679   ac_status=$?
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); }; } &&
5682          { ac_try='test -s conftest$ac_exeext'
5683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684   (eval $ac_try) 2>&5
5685   ac_status=$?
5686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687   (exit $ac_status); }; }; then
5688   lt_cv_cc_needs_belf=yes
5689 else
5690   echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5692
5693 lt_cv_cc_needs_belf=no
5694 fi
5695 rm -f conftest.err conftest.$ac_objext \
5696       conftest$ac_exeext conftest.$ac_ext
5697      ac_ext=c
5698 ac_cpp='$CPP $CPPFLAGS'
5699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5702
5703 fi
5704 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5705 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5706   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5707     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5708     CFLAGS="$SAVE_CFLAGS"
5709   fi
5710   ;;
5711 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5712   if test -n "$ac_tool_prefix"; then
5713   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5714 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5715 echo "$as_me:$LINENO: checking for $ac_word" >&5
5716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5717 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5718   echo $ECHO_N "(cached) $ECHO_C" >&6
5719 else
5720   if test -n "$DLLTOOL"; then
5721   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5722 else
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 for as_dir in $PATH
5725 do
5726   IFS=$as_save_IFS
5727   test -z "$as_dir" && as_dir=.
5728   for ac_exec_ext in '' $ac_executable_extensions; do
5729   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5730     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5732     break 2
5733   fi
5734 done
5735 done
5736
5737 fi
5738 fi
5739 DLLTOOL=$ac_cv_prog_DLLTOOL
5740 if test -n "$DLLTOOL"; then
5741   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5742 echo "${ECHO_T}$DLLTOOL" >&6
5743 else
5744   echo "$as_me:$LINENO: result: no" >&5
5745 echo "${ECHO_T}no" >&6
5746 fi
5747
5748 fi
5749 if test -z "$ac_cv_prog_DLLTOOL"; then
5750   ac_ct_DLLTOOL=$DLLTOOL
5751   # Extract the first word of "dlltool", so it can be a program name with args.
5752 set dummy dlltool; ac_word=$2
5753 echo "$as_me:$LINENO: checking for $ac_word" >&5
5754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5755 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5756   echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758   if test -n "$ac_ct_DLLTOOL"; then
5759   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5760 else
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH
5763 do
5764   IFS=$as_save_IFS
5765   test -z "$as_dir" && as_dir=.
5766   for ac_exec_ext in '' $ac_executable_extensions; do
5767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5768     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5770     break 2
5771   fi
5772 done
5773 done
5774
5775   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5776 fi
5777 fi
5778 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5779 if test -n "$ac_ct_DLLTOOL"; then
5780   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5781 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5782 else
5783   echo "$as_me:$LINENO: result: no" >&5
5784 echo "${ECHO_T}no" >&6
5785 fi
5786
5787   DLLTOOL=$ac_ct_DLLTOOL
5788 else
5789   DLLTOOL="$ac_cv_prog_DLLTOOL"
5790 fi
5791
5792   if test -n "$ac_tool_prefix"; then
5793   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5794 set dummy ${ac_tool_prefix}as; ac_word=$2
5795 echo "$as_me:$LINENO: checking for $ac_word" >&5
5796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5797 if test "${ac_cv_prog_AS+set}" = set; then
5798   echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800   if test -n "$AS"; then
5801   ac_cv_prog_AS="$AS" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806   IFS=$as_save_IFS
5807   test -z "$as_dir" && as_dir=.
5808   for ac_exec_ext in '' $ac_executable_extensions; do
5809   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5810     ac_cv_prog_AS="${ac_tool_prefix}as"
5811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5812     break 2
5813   fi
5814 done
5815 done
5816
5817 fi
5818 fi
5819 AS=$ac_cv_prog_AS
5820 if test -n "$AS"; then
5821   echo "$as_me:$LINENO: result: $AS" >&5
5822 echo "${ECHO_T}$AS" >&6
5823 else
5824   echo "$as_me:$LINENO: result: no" >&5
5825 echo "${ECHO_T}no" >&6
5826 fi
5827
5828 fi
5829 if test -z "$ac_cv_prog_AS"; then
5830   ac_ct_AS=$AS
5831   # Extract the first word of "as", so it can be a program name with args.
5832 set dummy as; ac_word=$2
5833 echo "$as_me:$LINENO: checking for $ac_word" >&5
5834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5835 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5836   echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838   if test -n "$ac_ct_AS"; then
5839   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5840 else
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 for as_dir in $PATH
5843 do
5844   IFS=$as_save_IFS
5845   test -z "$as_dir" && as_dir=.
5846   for ac_exec_ext in '' $ac_executable_extensions; do
5847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848     ac_cv_prog_ac_ct_AS="as"
5849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850     break 2
5851   fi
5852 done
5853 done
5854
5855   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5856 fi
5857 fi
5858 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5859 if test -n "$ac_ct_AS"; then
5860   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5861 echo "${ECHO_T}$ac_ct_AS" >&6
5862 else
5863   echo "$as_me:$LINENO: result: no" >&5
5864 echo "${ECHO_T}no" >&6
5865 fi
5866
5867   AS=$ac_ct_AS
5868 else
5869   AS="$ac_cv_prog_AS"
5870 fi
5871
5872   if test -n "$ac_tool_prefix"; then
5873   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5874 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5875 echo "$as_me:$LINENO: checking for $ac_word" >&5
5876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5877 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5878   echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880   if test -n "$OBJDUMP"; then
5881   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5882 else
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886   IFS=$as_save_IFS
5887   test -z "$as_dir" && as_dir=.
5888   for ac_exec_ext in '' $ac_executable_extensions; do
5889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5892     break 2
5893   fi
5894 done
5895 done
5896
5897 fi
5898 fi
5899 OBJDUMP=$ac_cv_prog_OBJDUMP
5900 if test -n "$OBJDUMP"; then
5901   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5902 echo "${ECHO_T}$OBJDUMP" >&6
5903 else
5904   echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6
5906 fi
5907
5908 fi
5909 if test -z "$ac_cv_prog_OBJDUMP"; then
5910   ac_ct_OBJDUMP=$OBJDUMP
5911   # Extract the first word of "objdump", so it can be a program name with args.
5912 set dummy objdump; ac_word=$2
5913 echo "$as_me:$LINENO: checking for $ac_word" >&5
5914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5915 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5916   echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918   if test -n "$ac_ct_OBJDUMP"; then
5919   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5920 else
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5923 do
5924   IFS=$as_save_IFS
5925   test -z "$as_dir" && as_dir=.
5926   for ac_exec_ext in '' $ac_executable_extensions; do
5927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5930     break 2
5931   fi
5932 done
5933 done
5934
5935   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5936 fi
5937 fi
5938 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5939 if test -n "$ac_ct_OBJDUMP"; then
5940   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5941 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5942 else
5943   echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6
5945 fi
5946
5947   OBJDUMP=$ac_ct_OBJDUMP
5948 else
5949   OBJDUMP="$ac_cv_prog_OBJDUMP"
5950 fi
5951
5952   ;;
5953
5954 esac
5955
5956 need_locks="$enable_libtool_lock"
5957
5958
5959 ac_ext=c
5960 ac_cpp='$CPP $CPPFLAGS'
5961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5964 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5965 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5966 # On Suns, sometimes $CPP names a directory.
5967 if test -n "$CPP" && test -d "$CPP"; then
5968   CPP=
5969 fi
5970 if test -z "$CPP"; then
5971   if test "${ac_cv_prog_CPP+set}" = set; then
5972   echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974       # Double quotes because CPP needs to be expanded
5975     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5976     do
5977       ac_preproc_ok=false
5978 for ac_c_preproc_warn_flag in '' yes
5979 do
5980   # Use a header file that comes with gcc, so configuring glibc
5981   # with a fresh cross-compiler works.
5982   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5983   # <limits.h> exists even on freestanding compilers.
5984   # On the NeXT, cc -E runs the code through the compiler's parser,
5985   # not just through cpp. "Syntax error" is here to catch this case.
5986   cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h.  */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h.  */
5992 #ifdef __STDC__
5993 # include <limits.h>
5994 #else
5995 # include <assert.h>
5996 #endif
5997                      Syntax error
5998 _ACEOF
5999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6000   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6001   ac_status=$?
6002   grep -v '^ *+' conftest.er1 >conftest.err
6003   rm -f conftest.er1
6004   cat conftest.err >&5
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); } >/dev/null; then
6007   if test -s conftest.err; then
6008     ac_cpp_err=$ac_c_preproc_warn_flag
6009     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6010   else
6011     ac_cpp_err=
6012   fi
6013 else
6014   ac_cpp_err=yes
6015 fi
6016 if test -z "$ac_cpp_err"; then
6017   :
6018 else
6019   echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6021
6022   # Broken: fails on valid input.
6023 continue
6024 fi
6025 rm -f conftest.err conftest.$ac_ext
6026
6027   # OK, works on sane cases.  Now check whether non-existent headers
6028   # can be detected and how.
6029   cat >conftest.$ac_ext <<_ACEOF
6030 /* confdefs.h.  */
6031 _ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h.  */
6035 #include <ac_nonexistent.h>
6036 _ACEOF
6037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6038   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6039   ac_status=$?
6040   grep -v '^ *+' conftest.er1 >conftest.err
6041   rm -f conftest.er1
6042   cat conftest.err >&5
6043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044   (exit $ac_status); } >/dev/null; then
6045   if test -s conftest.err; then
6046     ac_cpp_err=$ac_c_preproc_warn_flag
6047     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6048   else
6049     ac_cpp_err=
6050   fi
6051 else
6052   ac_cpp_err=yes
6053 fi
6054 if test -z "$ac_cpp_err"; then
6055   # Broken: success on invalid input.
6056 continue
6057 else
6058   echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6060
6061   # Passes both tests.
6062 ac_preproc_ok=:
6063 break
6064 fi
6065 rm -f conftest.err conftest.$ac_ext
6066
6067 done
6068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6069 rm -f conftest.err conftest.$ac_ext
6070 if $ac_preproc_ok; then
6071   break
6072 fi
6073
6074     done
6075     ac_cv_prog_CPP=$CPP
6076
6077 fi
6078   CPP=$ac_cv_prog_CPP
6079 else
6080   ac_cv_prog_CPP=$CPP
6081 fi
6082 echo "$as_me:$LINENO: result: $CPP" >&5
6083 echo "${ECHO_T}$CPP" >&6
6084 ac_preproc_ok=false
6085 for ac_c_preproc_warn_flag in '' yes
6086 do
6087   # Use a header file that comes with gcc, so configuring glibc
6088   # with a fresh cross-compiler works.
6089   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6090   # <limits.h> exists even on freestanding compilers.
6091   # On the NeXT, cc -E runs the code through the compiler's parser,
6092   # not just through cpp. "Syntax error" is here to catch this case.
6093   cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h.  */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h.  */
6099 #ifdef __STDC__
6100 # include <limits.h>
6101 #else
6102 # include <assert.h>
6103 #endif
6104                      Syntax error
6105 _ACEOF
6106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6107   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6108   ac_status=$?
6109   grep -v '^ *+' conftest.er1 >conftest.err
6110   rm -f conftest.er1
6111   cat conftest.err >&5
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); } >/dev/null; then
6114   if test -s conftest.err; then
6115     ac_cpp_err=$ac_c_preproc_warn_flag
6116     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6117   else
6118     ac_cpp_err=
6119   fi
6120 else
6121   ac_cpp_err=yes
6122 fi
6123 if test -z "$ac_cpp_err"; then
6124   :
6125 else
6126   echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6128
6129   # Broken: fails on valid input.
6130 continue
6131 fi
6132 rm -f conftest.err conftest.$ac_ext
6133
6134   # OK, works on sane cases.  Now check whether non-existent headers
6135   # can be detected and how.
6136   cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h.  */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h.  */
6142 #include <ac_nonexistent.h>
6143 _ACEOF
6144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6145   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6146   ac_status=$?
6147   grep -v '^ *+' conftest.er1 >conftest.err
6148   rm -f conftest.er1
6149   cat conftest.err >&5
6150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151   (exit $ac_status); } >/dev/null; then
6152   if test -s conftest.err; then
6153     ac_cpp_err=$ac_c_preproc_warn_flag
6154     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6155   else
6156     ac_cpp_err=
6157   fi
6158 else
6159   ac_cpp_err=yes
6160 fi
6161 if test -z "$ac_cpp_err"; then
6162   # Broken: success on invalid input.
6163 continue
6164 else
6165   echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6167
6168   # Passes both tests.
6169 ac_preproc_ok=:
6170 break
6171 fi
6172 rm -f conftest.err conftest.$ac_ext
6173
6174 done
6175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6176 rm -f conftest.err conftest.$ac_ext
6177 if $ac_preproc_ok; then
6178   :
6179 else
6180   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6181 See \`config.log' for more details." >&5
6182 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6183 See \`config.log' for more details." >&2;}
6184    { (exit 1); exit 1; }; }
6185 fi
6186
6187 ac_ext=c
6188 ac_cpp='$CPP $CPPFLAGS'
6189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6192
6193
6194 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6195 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6196 if test "${ac_cv_header_stdc+set}" = set; then
6197   echo $ECHO_N "(cached) $ECHO_C" >&6
6198 else
6199   cat >conftest.$ac_ext <<_ACEOF
6200 /* confdefs.h.  */
6201 _ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h.  */
6205 #include <stdlib.h>
6206 #include <stdarg.h>
6207 #include <string.h>
6208 #include <float.h>
6209
6210 int
6211 main ()
6212 {
6213
6214   ;
6215   return 0;
6216 }
6217 _ACEOF
6218 rm -f conftest.$ac_objext
6219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6220   (eval $ac_compile) 2>conftest.er1
6221   ac_status=$?
6222   grep -v '^ *+' conftest.er1 >conftest.err
6223   rm -f conftest.er1
6224   cat conftest.err >&5
6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); } &&
6227          { ac_try='test -z "$ac_c_werror_flag"
6228                          || test ! -s conftest.err'
6229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230   (eval $ac_try) 2>&5
6231   ac_status=$?
6232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233   (exit $ac_status); }; } &&
6234          { ac_try='test -s conftest.$ac_objext'
6235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236   (eval $ac_try) 2>&5
6237   ac_status=$?
6238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239   (exit $ac_status); }; }; then
6240   ac_cv_header_stdc=yes
6241 else
6242   echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6244
6245 ac_cv_header_stdc=no
6246 fi
6247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6248
6249 if test $ac_cv_header_stdc = yes; then
6250   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6251   cat >conftest.$ac_ext <<_ACEOF
6252 /* confdefs.h.  */
6253 _ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h.  */
6257 #include <string.h>
6258
6259 _ACEOF
6260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6261   $EGREP "memchr" >/dev/null 2>&1; then
6262   :
6263 else
6264   ac_cv_header_stdc=no
6265 fi
6266 rm -f conftest*
6267
6268 fi
6269
6270 if test $ac_cv_header_stdc = yes; then
6271   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6272   cat >conftest.$ac_ext <<_ACEOF
6273 /* confdefs.h.  */
6274 _ACEOF
6275 cat confdefs.h >>conftest.$ac_ext
6276 cat >>conftest.$ac_ext <<_ACEOF
6277 /* end confdefs.h.  */
6278 #include <stdlib.h>
6279
6280 _ACEOF
6281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6282   $EGREP "free" >/dev/null 2>&1; then
6283   :
6284 else
6285   ac_cv_header_stdc=no
6286 fi
6287 rm -f conftest*
6288
6289 fi
6290
6291 if test $ac_cv_header_stdc = yes; then
6292   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6293   if test "$cross_compiling" = yes; then
6294   :
6295 else
6296   cat >conftest.$ac_ext <<_ACEOF
6297 /* confdefs.h.  */
6298 _ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h.  */
6302 #include <ctype.h>
6303 #if ((' ' & 0x0FF) == 0x020)
6304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6306 #else
6307 # define ISLOWER(c) \
6308                    (('a' <= (c) && (c) <= 'i') \
6309                      || ('j' <= (c) && (c) <= 'r') \
6310                      || ('s' <= (c) && (c) <= 'z'))
6311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6312 #endif
6313
6314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6315 int
6316 main ()
6317 {
6318   int i;
6319   for (i = 0; i < 256; i++)
6320     if (XOR (islower (i), ISLOWER (i))
6321         || toupper (i) != TOUPPER (i))
6322       exit(2);
6323   exit (0);
6324 }
6325 _ACEOF
6326 rm -f conftest$ac_exeext
6327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6328   (eval $ac_link) 2>&5
6329   ac_status=$?
6330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333   (eval $ac_try) 2>&5
6334   ac_status=$?
6335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336   (exit $ac_status); }; }; then
6337   :
6338 else
6339   echo "$as_me: program exited with status $ac_status" >&5
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6342
6343 ( exit $ac_status )
6344 ac_cv_header_stdc=no
6345 fi
6346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6347 fi
6348 fi
6349 fi
6350 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6351 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6352 if test $ac_cv_header_stdc = yes; then
6353
6354 cat >>confdefs.h <<\_ACEOF
6355 #define STDC_HEADERS 1
6356 _ACEOF
6357
6358 fi
6359
6360 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6371                   inttypes.h stdint.h unistd.h
6372 do
6373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6374 echo "$as_me:$LINENO: checking for $ac_header" >&5
6375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6377   echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379   cat >conftest.$ac_ext <<_ACEOF
6380 /* confdefs.h.  */
6381 _ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h.  */
6385 $ac_includes_default
6386
6387 #include <$ac_header>
6388 _ACEOF
6389 rm -f conftest.$ac_objext
6390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6391   (eval $ac_compile) 2>conftest.er1
6392   ac_status=$?
6393   grep -v '^ *+' conftest.er1 >conftest.err
6394   rm -f conftest.er1
6395   cat conftest.err >&5
6396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397   (exit $ac_status); } &&
6398          { ac_try='test -z "$ac_c_werror_flag"
6399                          || test ! -s conftest.err'
6400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401   (eval $ac_try) 2>&5
6402   ac_status=$?
6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404   (exit $ac_status); }; } &&
6405          { ac_try='test -s conftest.$ac_objext'
6406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407   (eval $ac_try) 2>&5
6408   ac_status=$?
6409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410   (exit $ac_status); }; }; then
6411   eval "$as_ac_Header=yes"
6412 else
6413   echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6415
6416 eval "$as_ac_Header=no"
6417 fi
6418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6419 fi
6420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6423   cat >>confdefs.h <<_ACEOF
6424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6425 _ACEOF
6426
6427 fi
6428
6429 done
6430
6431
6432
6433 for ac_header in dlfcn.h
6434 do
6435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6437   echo "$as_me:$LINENO: checking for $ac_header" >&5
6438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6440   echo $ECHO_N "(cached) $ECHO_C" >&6
6441 fi
6442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6444 else
6445   # Is the header compilable?
6446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6448 cat >conftest.$ac_ext <<_ACEOF
6449 /* confdefs.h.  */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h.  */
6454 $ac_includes_default
6455 #include <$ac_header>
6456 _ACEOF
6457 rm -f conftest.$ac_objext
6458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6459   (eval $ac_compile) 2>conftest.er1
6460   ac_status=$?
6461   grep -v '^ *+' conftest.er1 >conftest.err
6462   rm -f conftest.er1
6463   cat conftest.err >&5
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); } &&
6466          { ac_try='test -z "$ac_c_werror_flag"
6467                          || test ! -s conftest.err'
6468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469   (eval $ac_try) 2>&5
6470   ac_status=$?
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); }; } &&
6473          { ac_try='test -s conftest.$ac_objext'
6474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475   (eval $ac_try) 2>&5
6476   ac_status=$?
6477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478   (exit $ac_status); }; }; then
6479   ac_header_compiler=yes
6480 else
6481   echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6483
6484 ac_header_compiler=no
6485 fi
6486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6488 echo "${ECHO_T}$ac_header_compiler" >&6
6489
6490 # Is the header present?
6491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6493 cat >conftest.$ac_ext <<_ACEOF
6494 /* confdefs.h.  */
6495 _ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h.  */
6499 #include <$ac_header>
6500 _ACEOF
6501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6502   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6503   ac_status=$?
6504   grep -v '^ *+' conftest.er1 >conftest.err
6505   rm -f conftest.er1
6506   cat conftest.err >&5
6507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); } >/dev/null; then
6509   if test -s conftest.err; then
6510     ac_cpp_err=$ac_c_preproc_warn_flag
6511     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6512   else
6513     ac_cpp_err=
6514   fi
6515 else
6516   ac_cpp_err=yes
6517 fi
6518 if test -z "$ac_cpp_err"; then
6519   ac_header_preproc=yes
6520 else
6521   echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6523
6524   ac_header_preproc=no
6525 fi
6526 rm -f conftest.err conftest.$ac_ext
6527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6528 echo "${ECHO_T}$ac_header_preproc" >&6
6529
6530 # So?  What about this header?
6531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6532   yes:no: )
6533     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6535     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6537     ac_header_preproc=yes
6538     ;;
6539   no:yes:* )
6540     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6542     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6543 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6544     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6546     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6547 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6548     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6550     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6552     (
6553       cat <<\_ASBOX
6554 ## ------------------------------------------ ##
6555 ## Report this to the AC_PACKAGE_NAME lists.  ##
6556 ## ------------------------------------------ ##
6557 _ASBOX
6558     ) |
6559       sed "s/^/$as_me: WARNING:     /" >&2
6560     ;;
6561 esac
6562 echo "$as_me:$LINENO: checking for $ac_header" >&5
6563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6565   echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567   eval "$as_ac_Header=\$ac_header_preproc"
6568 fi
6569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6571
6572 fi
6573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6574   cat >>confdefs.h <<_ACEOF
6575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6576 _ACEOF
6577
6578 fi
6579
6580 done
6581
6582 ac_ext=cc
6583 ac_cpp='$CXXCPP $CPPFLAGS'
6584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6587 if test -n "$ac_tool_prefix"; then
6588   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6589   do
6590     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6592 echo "$as_me:$LINENO: checking for $ac_word" >&5
6593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6594 if test "${ac_cv_prog_CXX+set}" = set; then
6595   echo $ECHO_N "(cached) $ECHO_C" >&6
6596 else
6597   if test -n "$CXX"; then
6598   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6599 else
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH
6602 do
6603   IFS=$as_save_IFS
6604   test -z "$as_dir" && as_dir=.
6605   for ac_exec_ext in '' $ac_executable_extensions; do
6606   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6607     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6609     break 2
6610   fi
6611 done
6612 done
6613
6614 fi
6615 fi
6616 CXX=$ac_cv_prog_CXX
6617 if test -n "$CXX"; then
6618   echo "$as_me:$LINENO: result: $CXX" >&5
6619 echo "${ECHO_T}$CXX" >&6
6620 else
6621   echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6
6623 fi
6624
6625     test -n "$CXX" && break
6626   done
6627 fi
6628 if test -z "$CXX"; then
6629   ac_ct_CXX=$CXX
6630   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6631 do
6632   # Extract the first word of "$ac_prog", so it can be a program name with args.
6633 set dummy $ac_prog; ac_word=$2
6634 echo "$as_me:$LINENO: checking for $ac_word" >&5
6635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6636 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6637   echo $ECHO_N "(cached) $ECHO_C" >&6
6638 else
6639   if test -n "$ac_ct_CXX"; then
6640   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6641 else
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 for as_dir in $PATH
6644 do
6645   IFS=$as_save_IFS
6646   test -z "$as_dir" && as_dir=.
6647   for ac_exec_ext in '' $ac_executable_extensions; do
6648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6649     ac_cv_prog_ac_ct_CXX="$ac_prog"
6650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6651     break 2
6652   fi
6653 done
6654 done
6655
6656 fi
6657 fi
6658 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6659 if test -n "$ac_ct_CXX"; then
6660   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6661 echo "${ECHO_T}$ac_ct_CXX" >&6
6662 else
6663   echo "$as_me:$LINENO: result: no" >&5
6664 echo "${ECHO_T}no" >&6
6665 fi
6666
6667   test -n "$ac_ct_CXX" && break
6668 done
6669 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6670
6671   CXX=$ac_ct_CXX
6672 fi
6673
6674
6675 # Provide some information about the compiler.
6676 echo "$as_me:$LINENO:" \
6677      "checking for C++ compiler version" >&5
6678 ac_compiler=`set X $ac_compile; echo $2`
6679 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6680   (eval $ac_compiler --version </dev/null >&5) 2>&5
6681   ac_status=$?
6682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683   (exit $ac_status); }
6684 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6685   (eval $ac_compiler -v </dev/null >&5) 2>&5
6686   ac_status=$?
6687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688   (exit $ac_status); }
6689 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6690   (eval $ac_compiler -V </dev/null >&5) 2>&5
6691   ac_status=$?
6692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693   (exit $ac_status); }
6694
6695 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6696 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6697 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6698   echo $ECHO_N "(cached) $ECHO_C" >&6
6699 else
6700   cat >conftest.$ac_ext <<_ACEOF
6701 /* confdefs.h.  */
6702 _ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h.  */
6706
6707 int
6708 main ()
6709 {
6710 #ifndef __GNUC__
6711        choke me
6712 #endif
6713
6714   ;
6715   return 0;
6716 }
6717 _ACEOF
6718 rm -f conftest.$ac_objext
6719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6720   (eval $ac_compile) 2>conftest.er1
6721   ac_status=$?
6722   grep -v '^ *+' conftest.er1 >conftest.err
6723   rm -f conftest.er1
6724   cat conftest.err >&5
6725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726   (exit $ac_status); } &&
6727          { ac_try='test -z "$ac_cxx_werror_flag"
6728                          || test ! -s conftest.err'
6729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730   (eval $ac_try) 2>&5
6731   ac_status=$?
6732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733   (exit $ac_status); }; } &&
6734          { ac_try='test -s conftest.$ac_objext'
6735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736   (eval $ac_try) 2>&5
6737   ac_status=$?
6738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739   (exit $ac_status); }; }; then
6740   ac_compiler_gnu=yes
6741 else
6742   echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6744
6745 ac_compiler_gnu=no
6746 fi
6747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6748 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6749
6750 fi
6751 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6752 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6753 GXX=`test $ac_compiler_gnu = yes && echo yes`
6754 ac_test_CXXFLAGS=${CXXFLAGS+set}
6755 ac_save_CXXFLAGS=$CXXFLAGS
6756 CXXFLAGS="-g"
6757 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6758 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6759 if test "${ac_cv_prog_cxx_g+set}" = set; then
6760   echo $ECHO_N "(cached) $ECHO_C" >&6
6761 else
6762   cat >conftest.$ac_ext <<_ACEOF
6763 /* confdefs.h.  */
6764 _ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h.  */
6768
6769 int
6770 main ()
6771 {
6772
6773   ;
6774   return 0;
6775 }
6776 _ACEOF
6777 rm -f conftest.$ac_objext
6778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6779   (eval $ac_compile) 2>conftest.er1
6780   ac_status=$?
6781   grep -v '^ *+' conftest.er1 >conftest.err
6782   rm -f conftest.er1
6783   cat conftest.err >&5
6784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785   (exit $ac_status); } &&
6786          { ac_try='test -z "$ac_cxx_werror_flag"
6787                          || test ! -s conftest.err'
6788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789   (eval $ac_try) 2>&5
6790   ac_status=$?
6791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792   (exit $ac_status); }; } &&
6793          { ac_try='test -s conftest.$ac_objext'
6794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795   (eval $ac_try) 2>&5
6796   ac_status=$?
6797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798   (exit $ac_status); }; }; then
6799   ac_cv_prog_cxx_g=yes
6800 else
6801   echo "$as_me: failed program was:" >&5
6802 sed 's/^/| /' conftest.$ac_ext >&5
6803
6804 ac_cv_prog_cxx_g=no
6805 fi
6806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6807 fi
6808 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6809 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6810 if test "$ac_test_CXXFLAGS" = set; then
6811   CXXFLAGS=$ac_save_CXXFLAGS
6812 elif test $ac_cv_prog_cxx_g = yes; then
6813   if test "$GXX" = yes; then
6814     CXXFLAGS="-g -O2"
6815   else
6816     CXXFLAGS="-g"
6817   fi
6818 else
6819   if test "$GXX" = yes; then
6820     CXXFLAGS="-O2"
6821   else
6822     CXXFLAGS=
6823   fi
6824 fi
6825 for ac_declaration in \
6826    '' \
6827    'extern "C" void std::exit (int) throw (); using std::exit;' \
6828    'extern "C" void std::exit (int); using std::exit;' \
6829    'extern "C" void exit (int) throw ();' \
6830    'extern "C" void exit (int);' \
6831    'void exit (int);'
6832 do
6833   cat >conftest.$ac_ext <<_ACEOF
6834 /* confdefs.h.  */
6835 _ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h.  */
6839 $ac_declaration
6840 #include <stdlib.h>
6841 int
6842 main ()
6843 {
6844 exit (42);
6845   ;
6846   return 0;
6847 }
6848 _ACEOF
6849 rm -f conftest.$ac_objext
6850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6851   (eval $ac_compile) 2>conftest.er1
6852   ac_status=$?
6853   grep -v '^ *+' conftest.er1 >conftest.err
6854   rm -f conftest.er1
6855   cat conftest.err >&5
6856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857   (exit $ac_status); } &&
6858          { ac_try='test -z "$ac_cxx_werror_flag"
6859                          || test ! -s conftest.err'
6860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861   (eval $ac_try) 2>&5
6862   ac_status=$?
6863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864   (exit $ac_status); }; } &&
6865          { ac_try='test -s conftest.$ac_objext'
6866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867   (eval $ac_try) 2>&5
6868   ac_status=$?
6869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870   (exit $ac_status); }; }; then
6871   :
6872 else
6873   echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.$ac_ext >&5
6875
6876 continue
6877 fi
6878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6879   cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h.  */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h.  */
6885 $ac_declaration
6886 int
6887 main ()
6888 {
6889 exit (42);
6890   ;
6891   return 0;
6892 }
6893 _ACEOF
6894 rm -f conftest.$ac_objext
6895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896   (eval $ac_compile) 2>conftest.er1
6897   ac_status=$?
6898   grep -v '^ *+' conftest.er1 >conftest.err
6899   rm -f conftest.er1
6900   cat conftest.err >&5
6901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902   (exit $ac_status); } &&
6903          { ac_try='test -z "$ac_cxx_werror_flag"
6904                          || test ! -s conftest.err'
6905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906   (eval $ac_try) 2>&5
6907   ac_status=$?
6908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909   (exit $ac_status); }; } &&
6910          { ac_try='test -s conftest.$ac_objext'
6911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912   (eval $ac_try) 2>&5
6913   ac_status=$?
6914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915   (exit $ac_status); }; }; then
6916   break
6917 else
6918   echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6920
6921 fi
6922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6923 done
6924 rm -f conftest*
6925 if test -n "$ac_declaration"; then
6926   echo '#ifdef __cplusplus' >>confdefs.h
6927   echo $ac_declaration      >>confdefs.h
6928   echo '#endif'             >>confdefs.h
6929 fi
6930
6931 ac_ext=cc
6932 ac_cpp='$CXXCPP $CPPFLAGS'
6933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6936
6937 depcc="$CXX"  am_compiler_list=
6938
6939 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6940 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6941 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6942   echo $ECHO_N "(cached) $ECHO_C" >&6
6943 else
6944   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6945   # We make a subdir and do the tests there.  Otherwise we can end up
6946   # making bogus files that we don't know about and never remove.  For
6947   # instance it was reported that on HP-UX the gcc test will end up
6948   # making a dummy file named `D' -- because `-MD' means `put the output
6949   # in D'.
6950   mkdir conftest.dir
6951   # Copy depcomp to subdir because otherwise we won't find it if we're
6952   # using a relative directory.
6953   cp "$am_depcomp" conftest.dir
6954   cd conftest.dir
6955   # We will build objects and dependencies in a subdirectory because
6956   # it helps to detect inapplicable dependency modes.  For instance
6957   # both Tru64's cc and ICC support -MD to output dependencies as a
6958   # side effect of compilation, but ICC will put the dependencies in
6959   # the current directory while Tru64 will put them in the object
6960   # directory.
6961   mkdir sub
6962
6963   am_cv_CXX_dependencies_compiler_type=none
6964   if test "$am_compiler_list" = ""; then
6965      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6966   fi
6967   for depmode in $am_compiler_list; do
6968     # Setup a source with many dependencies, because some compilers
6969     # like to wrap large dependency lists on column 80 (with \), and
6970     # we should not choose a depcomp mode which is confused by this.
6971     #
6972     # We need to recreate these files for each test, as the compiler may
6973     # overwrite some of them when testing with obscure command lines.
6974     # This happens at least with the AIX C compiler.
6975     : > sub/conftest.c
6976     for i in 1 2 3 4 5 6; do
6977       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6978       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6979       # Solaris 8's {/usr,}/bin/sh.
6980       touch sub/conftst$i.h
6981     done
6982     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6983
6984     case $depmode in
6985     nosideeffect)
6986       # after this tag, mechanisms are not by side-effect, so they'll
6987       # only be used when explicitly requested
6988       if test "x$enable_dependency_tracking" = xyes; then
6989         continue
6990       else
6991         break
6992       fi
6993       ;;
6994     none) break ;;
6995     esac
6996     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6997     # mode.  It turns out that the SunPro C++ compiler does not properly
6998     # handle `-M -o', and we need to detect this.
6999     if depmode=$depmode \
7000        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7001        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7002        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7003          >/dev/null 2>conftest.err &&
7004        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7005        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7006        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7007       # icc doesn't choke on unknown options, it will just issue warnings
7008       # or remarks (even with -Werror).  So we grep stderr for any message
7009       # that says an option was ignored or not supported.
7010       # When given -MP, icc 7.0 and 7.1 complain thusly:
7011       #   icc: Command line warning: ignoring option '-M'; no argument required
7012       # The diagnosis changed in icc 8.0:
7013       #   icc: Command line remark: option '-MP' not supported
7014       if (grep 'ignoring option' conftest.err ||
7015           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7016         am_cv_CXX_dependencies_compiler_type=$depmode
7017         break
7018       fi
7019     fi
7020   done
7021
7022   cd ..
7023   rm -rf conftest.dir
7024 else
7025   am_cv_CXX_dependencies_compiler_type=none
7026 fi
7027
7028 fi
7029 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7030 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7031 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7032
7033
7034
7035 if
7036   test "x$enable_dependency_tracking" != xno \
7037   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7038   am__fastdepCXX_TRUE=
7039   am__fastdepCXX_FALSE='#'
7040 else
7041   am__fastdepCXX_TRUE='#'
7042   am__fastdepCXX_FALSE=
7043 fi
7044
7045
7046
7047
7048 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7049     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7050     (test "X$CXX" != "Xg++"))) ; then
7051   ac_ext=cc
7052 ac_cpp='$CXXCPP $CPPFLAGS'
7053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7056 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7057 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7058 if test -z "$CXXCPP"; then
7059   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7060   echo $ECHO_N "(cached) $ECHO_C" >&6
7061 else
7062       # Double quotes because CXXCPP needs to be expanded
7063     for CXXCPP in "$CXX -E" "/lib/cpp"
7064     do
7065       ac_preproc_ok=false
7066 for ac_cxx_preproc_warn_flag in '' yes
7067 do
7068   # Use a header file that comes with gcc, so configuring glibc
7069   # with a fresh cross-compiler works.
7070   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7071   # <limits.h> exists even on freestanding compilers.
7072   # On the NeXT, cc -E runs the code through the compiler's parser,
7073   # not just through cpp. "Syntax error" is here to catch this case.
7074   cat >conftest.$ac_ext <<_ACEOF
7075 /* confdefs.h.  */
7076 _ACEOF
7077 cat confdefs.h >>conftest.$ac_ext
7078 cat >>conftest.$ac_ext <<_ACEOF
7079 /* end confdefs.h.  */
7080 #ifdef __STDC__
7081 # include <limits.h>
7082 #else
7083 # include <assert.h>
7084 #endif
7085                      Syntax error
7086 _ACEOF
7087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7088   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7089   ac_status=$?
7090   grep -v '^ *+' conftest.er1 >conftest.err
7091   rm -f conftest.er1
7092   cat conftest.err >&5
7093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094   (exit $ac_status); } >/dev/null; then
7095   if test -s conftest.err; then
7096     ac_cpp_err=$ac_cxx_preproc_warn_flag
7097     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7098   else
7099     ac_cpp_err=
7100   fi
7101 else
7102   ac_cpp_err=yes
7103 fi
7104 if test -z "$ac_cpp_err"; then
7105   :
7106 else
7107   echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7109
7110   # Broken: fails on valid input.
7111 continue
7112 fi
7113 rm -f conftest.err conftest.$ac_ext
7114
7115   # OK, works on sane cases.  Now check whether non-existent headers
7116   # can be detected and how.
7117   cat >conftest.$ac_ext <<_ACEOF
7118 /* confdefs.h.  */
7119 _ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h.  */
7123 #include <ac_nonexistent.h>
7124 _ACEOF
7125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7126   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7127   ac_status=$?
7128   grep -v '^ *+' conftest.er1 >conftest.err
7129   rm -f conftest.er1
7130   cat conftest.err >&5
7131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132   (exit $ac_status); } >/dev/null; then
7133   if test -s conftest.err; then
7134     ac_cpp_err=$ac_cxx_preproc_warn_flag
7135     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7136   else
7137     ac_cpp_err=
7138   fi
7139 else
7140   ac_cpp_err=yes
7141 fi
7142 if test -z "$ac_cpp_err"; then
7143   # Broken: success on invalid input.
7144 continue
7145 else
7146   echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7148
7149   # Passes both tests.
7150 ac_preproc_ok=:
7151 break
7152 fi
7153 rm -f conftest.err conftest.$ac_ext
7154
7155 done
7156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7157 rm -f conftest.err conftest.$ac_ext
7158 if $ac_preproc_ok; then
7159   break
7160 fi
7161
7162     done
7163     ac_cv_prog_CXXCPP=$CXXCPP
7164
7165 fi
7166   CXXCPP=$ac_cv_prog_CXXCPP
7167 else
7168   ac_cv_prog_CXXCPP=$CXXCPP
7169 fi
7170 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7171 echo "${ECHO_T}$CXXCPP" >&6
7172 ac_preproc_ok=false
7173 for ac_cxx_preproc_warn_flag in '' yes
7174 do
7175   # Use a header file that comes with gcc, so configuring glibc
7176   # with a fresh cross-compiler works.
7177   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7178   # <limits.h> exists even on freestanding compilers.
7179   # On the NeXT, cc -E runs the code through the compiler's parser,
7180   # not just through cpp. "Syntax error" is here to catch this case.
7181   cat >conftest.$ac_ext <<_ACEOF
7182 /* confdefs.h.  */
7183 _ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h.  */
7187 #ifdef __STDC__
7188 # include <limits.h>
7189 #else
7190 # include <assert.h>
7191 #endif
7192                      Syntax error
7193 _ACEOF
7194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7195   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7196   ac_status=$?
7197   grep -v '^ *+' conftest.er1 >conftest.err
7198   rm -f conftest.er1
7199   cat conftest.err >&5
7200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201   (exit $ac_status); } >/dev/null; then
7202   if test -s conftest.err; then
7203     ac_cpp_err=$ac_cxx_preproc_warn_flag
7204     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7205   else
7206     ac_cpp_err=
7207   fi
7208 else
7209   ac_cpp_err=yes
7210 fi
7211 if test -z "$ac_cpp_err"; then
7212   :
7213 else
7214   echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.$ac_ext >&5
7216
7217   # Broken: fails on valid input.
7218 continue
7219 fi
7220 rm -f conftest.err conftest.$ac_ext
7221
7222   # OK, works on sane cases.  Now check whether non-existent headers
7223   # can be detected and how.
7224   cat >conftest.$ac_ext <<_ACEOF
7225 /* confdefs.h.  */
7226 _ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h.  */
7230 #include <ac_nonexistent.h>
7231 _ACEOF
7232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7233   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7234   ac_status=$?
7235   grep -v '^ *+' conftest.er1 >conftest.err
7236   rm -f conftest.er1
7237   cat conftest.err >&5
7238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239   (exit $ac_status); } >/dev/null; then
7240   if test -s conftest.err; then
7241     ac_cpp_err=$ac_cxx_preproc_warn_flag
7242     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7243   else
7244     ac_cpp_err=
7245   fi
7246 else
7247   ac_cpp_err=yes
7248 fi
7249 if test -z "$ac_cpp_err"; then
7250   # Broken: success on invalid input.
7251 continue
7252 else
7253   echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7255
7256   # Passes both tests.
7257 ac_preproc_ok=:
7258 break
7259 fi
7260 rm -f conftest.err conftest.$ac_ext
7261
7262 done
7263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7264 rm -f conftest.err conftest.$ac_ext
7265 if $ac_preproc_ok; then
7266   :
7267 else
7268   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7269 See \`config.log' for more details." >&5
7270 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7271 See \`config.log' for more details." >&2;}
7272    { (exit 1); exit 1; }; }
7273 fi
7274
7275 ac_ext=cc
7276 ac_cpp='$CXXCPP $CPPFLAGS'
7277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7280
7281 fi
7282
7283
7284 ac_ext=f
7285 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7286 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7287 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7288 if test -n "$ac_tool_prefix"; then
7289   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7290   do
7291     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7293 echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7295 if test "${ac_cv_prog_F77+set}" = set; then
7296   echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298   if test -n "$F77"; then
7299   ac_cv_prog_F77="$F77" # Let the user override the test.
7300 else
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 for as_dir in $PATH
7303 do
7304   IFS=$as_save_IFS
7305   test -z "$as_dir" && as_dir=.
7306   for ac_exec_ext in '' $ac_executable_extensions; do
7307   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7308     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7310     break 2
7311   fi
7312 done
7313 done
7314
7315 fi
7316 fi
7317 F77=$ac_cv_prog_F77
7318 if test -n "$F77"; then
7319   echo "$as_me:$LINENO: result: $F77" >&5
7320 echo "${ECHO_T}$F77" >&6
7321 else
7322   echo "$as_me:$LINENO: result: no" >&5
7323 echo "${ECHO_T}no" >&6
7324 fi
7325
7326     test -n "$F77" && break
7327   done
7328 fi
7329 if test -z "$F77"; then
7330   ac_ct_F77=$F77
7331   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7332 do
7333   # Extract the first word of "$ac_prog", so it can be a program name with args.
7334 set dummy $ac_prog; ac_word=$2
7335 echo "$as_me:$LINENO: checking for $ac_word" >&5
7336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7337 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7338   echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340   if test -n "$ac_ct_F77"; then
7341   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7342 else
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
7346   IFS=$as_save_IFS
7347   test -z "$as_dir" && as_dir=.
7348   for ac_exec_ext in '' $ac_executable_extensions; do
7349   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350     ac_cv_prog_ac_ct_F77="$ac_prog"
7351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352     break 2
7353   fi
7354 done
7355 done
7356
7357 fi
7358 fi
7359 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7360 if test -n "$ac_ct_F77"; then
7361   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7362 echo "${ECHO_T}$ac_ct_F77" >&6
7363 else
7364   echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7366 fi
7367
7368   test -n "$ac_ct_F77" && break
7369 done
7370
7371   F77=$ac_ct_F77
7372 fi
7373
7374
7375 # Provide some information about the compiler.
7376 echo "$as_me:7376:" \
7377      "checking for Fortran 77 compiler version" >&5
7378 ac_compiler=`set X $ac_compile; echo $2`
7379 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7380   (eval $ac_compiler --version </dev/null >&5) 2>&5
7381   ac_status=$?
7382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383   (exit $ac_status); }
7384 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7385   (eval $ac_compiler -v </dev/null >&5) 2>&5
7386   ac_status=$?
7387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388   (exit $ac_status); }
7389 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7390   (eval $ac_compiler -V </dev/null >&5) 2>&5
7391   ac_status=$?
7392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393   (exit $ac_status); }
7394 rm -f a.out
7395
7396 # If we don't use `.F' as extension, the preprocessor is not run on the
7397 # input file.  (Note that this only needs to work for GNU compilers.)
7398 ac_save_ext=$ac_ext
7399 ac_ext=F
7400 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7401 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7402 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7403   echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405   cat >conftest.$ac_ext <<_ACEOF
7406       program main
7407 #ifndef __GNUC__
7408        choke me
7409 #endif
7410
7411       end
7412 _ACEOF
7413 rm -f conftest.$ac_objext
7414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7415   (eval $ac_compile) 2>conftest.er1
7416   ac_status=$?
7417   grep -v '^ *+' conftest.er1 >conftest.err
7418   rm -f conftest.er1
7419   cat conftest.err >&5
7420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421   (exit $ac_status); } &&
7422          { ac_try='test -z "$ac_f77_werror_flag"
7423                          || test ! -s conftest.err'
7424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425   (eval $ac_try) 2>&5
7426   ac_status=$?
7427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428   (exit $ac_status); }; } &&
7429          { ac_try='test -s conftest.$ac_objext'
7430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431   (eval $ac_try) 2>&5
7432   ac_status=$?
7433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434   (exit $ac_status); }; }; then
7435   ac_compiler_gnu=yes
7436 else
7437   echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7439
7440 ac_compiler_gnu=no
7441 fi
7442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7443 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7444
7445 fi
7446 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7447 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7448 ac_ext=$ac_save_ext
7449 ac_test_FFLAGS=${FFLAGS+set}
7450 ac_save_FFLAGS=$FFLAGS
7451 FFLAGS=
7452 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7453 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7454 if test "${ac_cv_prog_f77_g+set}" = set; then
7455   echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457   FFLAGS=-g
7458 cat >conftest.$ac_ext <<_ACEOF
7459       program main
7460
7461       end
7462 _ACEOF
7463 rm -f conftest.$ac_objext
7464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7465   (eval $ac_compile) 2>conftest.er1
7466   ac_status=$?
7467   grep -v '^ *+' conftest.er1 >conftest.err
7468   rm -f conftest.er1
7469   cat conftest.err >&5
7470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471   (exit $ac_status); } &&
7472          { ac_try='test -z "$ac_f77_werror_flag"
7473                          || test ! -s conftest.err'
7474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475   (eval $ac_try) 2>&5
7476   ac_status=$?
7477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478   (exit $ac_status); }; } &&
7479          { ac_try='test -s conftest.$ac_objext'
7480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481   (eval $ac_try) 2>&5
7482   ac_status=$?
7483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484   (exit $ac_status); }; }; then
7485   ac_cv_prog_f77_g=yes
7486 else
7487   echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7489
7490 ac_cv_prog_f77_g=no
7491 fi
7492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7493
7494 fi
7495 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7496 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7497 if test "$ac_test_FFLAGS" = set; then
7498   FFLAGS=$ac_save_FFLAGS
7499 elif test $ac_cv_prog_f77_g = yes; then
7500   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7501     FFLAGS="-g -O2"
7502   else
7503     FFLAGS="-g"
7504   fi
7505 else
7506   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7507     FFLAGS="-O2"
7508   else
7509     FFLAGS=
7510   fi
7511 fi
7512
7513 G77=`test $ac_compiler_gnu = yes && echo yes`
7514 ac_ext=c
7515 ac_cpp='$CPP $CPPFLAGS'
7516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7519
7520
7521
7522 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7523
7524 # find the maximum length of command line arguments
7525 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7526 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7527 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7528   echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530     i=0
7531   teststring="ABCD"
7532
7533   case $build_os in
7534   msdosdjgpp*)
7535     # On DJGPP, this test can blow up pretty badly due to problems in libc
7536     # (any single argument exceeding 2000 bytes causes a buffer overrun
7537     # during glob expansion).  Even if it were fixed, the result of this
7538     # check would be larger than it should be.
7539     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7540     ;;
7541
7542   gnu*)
7543     # Under GNU Hurd, this test is not required because there is
7544     # no limit to the length of command line arguments.
7545     # Libtool will interpret -1 as no limit whatsoever
7546     lt_cv_sys_max_cmd_len=-1;
7547     ;;
7548
7549   cygwin* | mingw*)
7550     # On Win9x/ME, this test blows up -- it succeeds, but takes
7551     # about 5 minutes as the teststring grows exponentially.
7552     # Worse, since 9x/ME are not pre-emptively multitasking,
7553     # you end up with a "frozen" computer, even though with patience
7554     # the test eventually succeeds (with a max line length of 256k).
7555     # Instead, let's just punt: use the minimum linelength reported by
7556     # all of the supported platforms: 8192 (on NT/2K/XP).
7557     lt_cv_sys_max_cmd_len=8192;
7558     ;;
7559
7560   amigaos*)
7561     # On AmigaOS with pdksh, this test takes hours, literally.
7562     # So we just punt and use a minimum line length of 8192.
7563     lt_cv_sys_max_cmd_len=8192;
7564     ;;
7565
7566   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7567     # This has been around since 386BSD, at least.  Likely further.
7568     if test -x /sbin/sysctl; then
7569       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7570     elif test -x /usr/sbin/sysctl; then
7571       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7572     else
7573       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7574     fi
7575     # And add a safety zone
7576     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7577     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7578     ;;
7579   osf*)
7580     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7581     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7582     # nice to cause kernel panics so lets avoid the loop below.
7583     # First set a reasonable default.
7584     lt_cv_sys_max_cmd_len=16384
7585     #
7586     if test -x /sbin/sysconfig; then
7587       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7588         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7589       esac
7590     fi
7591     ;;
7592   *)
7593     # If test is not a shell built-in, we'll probably end up computing a
7594     # maximum length that is only half of the actual maximum length, but
7595     # we can't tell.
7596     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7597     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7598                = "XX$teststring") >/dev/null 2>&1 &&
7599             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7600             lt_cv_sys_max_cmd_len=$new_result &&
7601             test $i != 17 # 1/2 MB should be enough
7602     do
7603       i=`expr $i + 1`
7604       teststring=$teststring$teststring
7605     done
7606     teststring=
7607     # Add a significant safety factor because C++ compilers can tack on massive
7608     # amounts of additional arguments before passing them to the linker.
7609     # It appears as though 1/2 is a usable value.
7610     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7611     ;;
7612   esac
7613
7614 fi
7615
7616 if test -n $lt_cv_sys_max_cmd_len ; then
7617   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7618 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7619 else
7620   echo "$as_me:$LINENO: result: none" >&5
7621 echo "${ECHO_T}none" >&6
7622 fi
7623
7624
7625
7626
7627 # Check for command to grab the raw symbol name followed by C symbol from nm.
7628 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7629 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7630 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7631   echo $ECHO_N "(cached) $ECHO_C" >&6
7632 else
7633
7634 # These are sane defaults that work on at least a few old systems.
7635 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7636
7637 # Character class describing NM global symbol codes.
7638 symcode='[BCDEGRST]'
7639
7640 # Regexp to match symbols that can be accessed directly from C.
7641 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7642
7643 # Transform an extracted symbol line into a proper C declaration
7644 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7645
7646 # Transform an extracted symbol line into symbol name and symbol address
7647 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'"
7648
7649 # Define system-specific variables.
7650 case $host_os in
7651 aix*)
7652   symcode='[BCDT]'
7653   ;;
7654 cygwin* | mingw* | pw32*)
7655   symcode='[ABCDGISTW]'
7656   ;;
7657 hpux*) # Its linker distinguishes data from code symbols
7658   if test "$host_cpu" = ia64; then
7659     symcode='[ABCDEGRST]'
7660   fi
7661   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7662   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'"
7663   ;;
7664 linux*)
7665   if test "$host_cpu" = ia64; then
7666     symcode='[ABCDGIRSTW]'
7667     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7668     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'"
7669   fi
7670   ;;
7671 irix* | nonstopux*)
7672   symcode='[BCDEGRST]'
7673   ;;
7674 osf*)
7675   symcode='[BCDEGQRST]'
7676   ;;
7677 solaris* | sysv5*)
7678   symcode='[BDRT]'
7679   ;;
7680 sysv4)
7681   symcode='[DFNSTU]'
7682   ;;
7683 esac
7684
7685 # Handle CRLF in mingw tool chain
7686 opt_cr=
7687 case $build_os in
7688 mingw*)
7689   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7690   ;;
7691 esac
7692
7693 # If we're using GNU nm, then use its standard symbol codes.
7694 case `$NM -V 2>&1` in
7695 *GNU* | *'with BFD'*)
7696   symcode='[ABCDGIRSTW]' ;;
7697 esac
7698
7699 # Try without a prefix undercore, then with it.
7700 for ac_symprfx in "" "_"; do
7701
7702   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7703   symxfrm="\\1 $ac_symprfx\\2 \\2"
7704
7705   # Write the raw and C identifiers.
7706   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7707
7708   # Check to see that the pipe works correctly.
7709   pipe_works=no
7710
7711   rm -f conftest*
7712   cat > conftest.$ac_ext <<EOF
7713 #ifdef __cplusplus
7714 extern "C" {
7715 #endif
7716 char nm_test_var;
7717 void nm_test_func(){}
7718 #ifdef __cplusplus
7719 }
7720 #endif
7721 int main(){nm_test_var='a';nm_test_func();return(0);}
7722 EOF
7723
7724   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7725   (eval $ac_compile) 2>&5
7726   ac_status=$?
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   (exit $ac_status); }; then
7729     # Now try to grab the symbols.
7730     nlist=conftest.nm
7731     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7732   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7733   ac_status=$?
7734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735   (exit $ac_status); } && test -s "$nlist"; then
7736       # Try sorting and uniquifying the output.
7737       if sort "$nlist" | uniq > "$nlist"T; then
7738         mv -f "$nlist"T "$nlist"
7739       else
7740         rm -f "$nlist"T
7741       fi
7742
7743       # Make sure that we snagged all the symbols we need.
7744       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7745         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7746           cat <<EOF > conftest.$ac_ext
7747 #ifdef __cplusplus
7748 extern "C" {
7749 #endif
7750
7751 EOF
7752           # Now generate the symbol file.
7753           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7754
7755           cat <<EOF >> conftest.$ac_ext
7756 #if defined (__STDC__) && __STDC__
7757 # define lt_ptr_t void *
7758 #else
7759 # define lt_ptr_t char *
7760 # define const
7761 #endif
7762
7763 /* The mapping between symbol names and symbols. */
7764 const struct {
7765   const char *name;
7766   lt_ptr_t address;
7767 }
7768 lt_preloaded_symbols[] =
7769 {
7770 EOF
7771           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7772           cat <<\EOF >> conftest.$ac_ext
7773   {0, (lt_ptr_t) 0}
7774 };
7775
7776 #ifdef __cplusplus
7777 }
7778 #endif
7779 EOF
7780           # Now try linking the two files.
7781           mv conftest.$ac_objext conftstm.$ac_objext
7782           lt_save_LIBS="$LIBS"
7783           lt_save_CFLAGS="$CFLAGS"
7784           LIBS="conftstm.$ac_objext"
7785           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7786           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7787   (eval $ac_link) 2>&5
7788   ac_status=$?
7789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7791             pipe_works=yes
7792           fi
7793           LIBS="$lt_save_LIBS"
7794           CFLAGS="$lt_save_CFLAGS"
7795         else
7796           echo "cannot find nm_test_func in $nlist" >&5
7797         fi
7798       else
7799         echo "cannot find nm_test_var in $nlist" >&5
7800       fi
7801     else
7802       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7803     fi
7804   else
7805     echo "$progname: failed program was:" >&5
7806     cat conftest.$ac_ext >&5
7807   fi
7808   rm -f conftest* conftst*
7809
7810   # Do not use the global_symbol_pipe unless it works.
7811   if test "$pipe_works" = yes; then
7812     break
7813   else
7814     lt_cv_sys_global_symbol_pipe=
7815   fi
7816 done
7817
7818 fi
7819
7820 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7821   lt_cv_sys_global_symbol_to_cdecl=
7822 fi
7823 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7824   echo "$as_me:$LINENO: result: failed" >&5
7825 echo "${ECHO_T}failed" >&6
7826 else
7827   echo "$as_me:$LINENO: result: ok" >&5
7828 echo "${ECHO_T}ok" >&6
7829 fi
7830
7831 echo "$as_me:$LINENO: checking for objdir" >&5
7832 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7833 if test "${lt_cv_objdir+set}" = set; then
7834   echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836   rm -f .libs 2>/dev/null
7837 mkdir .libs 2>/dev/null
7838 if test -d .libs; then
7839   lt_cv_objdir=.libs
7840 else
7841   # MS-DOS does not allow filenames that begin with a dot.
7842   lt_cv_objdir=_libs
7843 fi
7844 rmdir .libs 2>/dev/null
7845 fi
7846 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7847 echo "${ECHO_T}$lt_cv_objdir" >&6
7848 objdir=$lt_cv_objdir
7849
7850
7851
7852
7853
7854 case $host_os in
7855 aix3*)
7856   # AIX sometimes has problems with the GCC collect2 program.  For some
7857   # reason, if we set the COLLECT_NAMES environment variable, the problems
7858   # vanish in a puff of smoke.
7859   if test "X${COLLECT_NAMES+set}" != Xset; then
7860     COLLECT_NAMES=
7861     export COLLECT_NAMES
7862   fi
7863   ;;
7864 esac
7865
7866 # Sed substitution that helps us do robust quoting.  It backslashifies
7867 # metacharacters that are still active within double-quoted strings.
7868 Xsed='sed -e 1s/^X//'
7869 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7870
7871 # Same as above, but do not quote variable references.
7872 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7873
7874 # Sed substitution to delay expansion of an escaped shell variable in a
7875 # double_quote_subst'ed string.
7876 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7877
7878 # Sed substitution to avoid accidental globbing in evaled expressions
7879 no_glob_subst='s/\*/\\\*/g'
7880
7881 # Constants:
7882 rm="rm -f"
7883
7884 # Global variables:
7885 default_ofile=libtool
7886 can_build_shared=yes
7887
7888 # All known linkers require a `.a' archive for static linking (except M$VC,
7889 # which needs '.lib').
7890 libext=a
7891 ltmain="$ac_aux_dir/ltmain.sh"
7892 ofile="$default_ofile"
7893 with_gnu_ld="$lt_cv_prog_gnu_ld"
7894
7895 if test -n "$ac_tool_prefix"; then
7896   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7897 set dummy ${ac_tool_prefix}ar; ac_word=$2
7898 echo "$as_me:$LINENO: checking for $ac_word" >&5
7899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7900 if test "${ac_cv_prog_AR+set}" = set; then
7901   echo $ECHO_N "(cached) $ECHO_C" >&6
7902 else
7903   if test -n "$AR"; then
7904   ac_cv_prog_AR="$AR" # Let the user override the test.
7905 else
7906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 for as_dir in $PATH
7908 do
7909   IFS=$as_save_IFS
7910   test -z "$as_dir" && as_dir=.
7911   for ac_exec_ext in '' $ac_executable_extensions; do
7912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7913     ac_cv_prog_AR="${ac_tool_prefix}ar"
7914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7915     break 2
7916   fi
7917 done
7918 done
7919
7920 fi
7921 fi
7922 AR=$ac_cv_prog_AR
7923 if test -n "$AR"; then
7924   echo "$as_me:$LINENO: result: $AR" >&5
7925 echo "${ECHO_T}$AR" >&6
7926 else
7927   echo "$as_me:$LINENO: result: no" >&5
7928 echo "${ECHO_T}no" >&6
7929 fi
7930
7931 fi
7932 if test -z "$ac_cv_prog_AR"; then
7933   ac_ct_AR=$AR
7934   # Extract the first word of "ar", so it can be a program name with args.
7935 set dummy ar; ac_word=$2
7936 echo "$as_me:$LINENO: checking for $ac_word" >&5
7937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7938 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7939   echo $ECHO_N "(cached) $ECHO_C" >&6
7940 else
7941   if test -n "$ac_ct_AR"; then
7942   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7943 else
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 for as_dir in $PATH
7946 do
7947   IFS=$as_save_IFS
7948   test -z "$as_dir" && as_dir=.
7949   for ac_exec_ext in '' $ac_executable_extensions; do
7950   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7951     ac_cv_prog_ac_ct_AR="ar"
7952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7953     break 2
7954   fi
7955 done
7956 done
7957
7958   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7959 fi
7960 fi
7961 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7962 if test -n "$ac_ct_AR"; then
7963   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7964 echo "${ECHO_T}$ac_ct_AR" >&6
7965 else
7966   echo "$as_me:$LINENO: result: no" >&5
7967 echo "${ECHO_T}no" >&6
7968 fi
7969
7970   AR=$ac_ct_AR
7971 else
7972   AR="$ac_cv_prog_AR"
7973 fi
7974
7975 if test -n "$ac_tool_prefix"; then
7976   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7977 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7978 echo "$as_me:$LINENO: checking for $ac_word" >&5
7979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7980 if test "${ac_cv_prog_RANLIB+set}" = set; then
7981   echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983   if test -n "$RANLIB"; then
7984   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7985 else
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 for as_dir in $PATH
7988 do
7989   IFS=$as_save_IFS
7990   test -z "$as_dir" && as_dir=.
7991   for ac_exec_ext in '' $ac_executable_extensions; do
7992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7993     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7995     break 2
7996   fi
7997 done
7998 done
7999
8000 fi
8001 fi
8002 RANLIB=$ac_cv_prog_RANLIB
8003 if test -n "$RANLIB"; then
8004   echo "$as_me:$LINENO: result: $RANLIB" >&5
8005 echo "${ECHO_T}$RANLIB" >&6
8006 else
8007   echo "$as_me:$LINENO: result: no" >&5
8008 echo "${ECHO_T}no" >&6
8009 fi
8010
8011 fi
8012 if test -z "$ac_cv_prog_RANLIB"; then
8013   ac_ct_RANLIB=$RANLIB
8014   # Extract the first word of "ranlib", so it can be a program name with args.
8015 set dummy ranlib; ac_word=$2
8016 echo "$as_me:$LINENO: checking for $ac_word" >&5
8017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8018 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8019   echo $ECHO_N "(cached) $ECHO_C" >&6
8020 else
8021   if test -n "$ac_ct_RANLIB"; then
8022   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8023 else
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH
8026 do
8027   IFS=$as_save_IFS
8028   test -z "$as_dir" && as_dir=.
8029   for ac_exec_ext in '' $ac_executable_extensions; do
8030   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8031     ac_cv_prog_ac_ct_RANLIB="ranlib"
8032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8033     break 2
8034   fi
8035 done
8036 done
8037
8038   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8039 fi
8040 fi
8041 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8042 if test -n "$ac_ct_RANLIB"; then
8043   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8044 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8045 else
8046   echo "$as_me:$LINENO: result: no" >&5
8047 echo "${ECHO_T}no" >&6
8048 fi
8049
8050   RANLIB=$ac_ct_RANLIB
8051 else
8052   RANLIB="$ac_cv_prog_RANLIB"
8053 fi
8054
8055 if test -n "$ac_tool_prefix"; then
8056   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8057 set dummy ${ac_tool_prefix}strip; ac_word=$2
8058 echo "$as_me:$LINENO: checking for $ac_word" >&5
8059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8060 if test "${ac_cv_prog_STRIP+set}" = set; then
8061   echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063   if test -n "$STRIP"; then
8064   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8065 else
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 for as_dir in $PATH
8068 do
8069   IFS=$as_save_IFS
8070   test -z "$as_dir" && as_dir=.
8071   for ac_exec_ext in '' $ac_executable_extensions; do
8072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8073     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8075     break 2
8076   fi
8077 done
8078 done
8079
8080 fi
8081 fi
8082 STRIP=$ac_cv_prog_STRIP
8083 if test -n "$STRIP"; then
8084   echo "$as_me:$LINENO: result: $STRIP" >&5
8085 echo "${ECHO_T}$STRIP" >&6
8086 else
8087   echo "$as_me:$LINENO: result: no" >&5
8088 echo "${ECHO_T}no" >&6
8089 fi
8090
8091 fi
8092 if test -z "$ac_cv_prog_STRIP"; then
8093   ac_ct_STRIP=$STRIP
8094   # Extract the first word of "strip", so it can be a program name with args.
8095 set dummy strip; ac_word=$2
8096 echo "$as_me:$LINENO: checking for $ac_word" >&5
8097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8098 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8099   echo $ECHO_N "(cached) $ECHO_C" >&6
8100 else
8101   if test -n "$ac_ct_STRIP"; then
8102   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8103 else
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105 for as_dir in $PATH
8106 do
8107   IFS=$as_save_IFS
8108   test -z "$as_dir" && as_dir=.
8109   for ac_exec_ext in '' $ac_executable_extensions; do
8110   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8111     ac_cv_prog_ac_ct_STRIP="strip"
8112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8113     break 2
8114   fi
8115 done
8116 done
8117
8118   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8119 fi
8120 fi
8121 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8122 if test -n "$ac_ct_STRIP"; then
8123   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8124 echo "${ECHO_T}$ac_ct_STRIP" >&6
8125 else
8126   echo "$as_me:$LINENO: result: no" >&5
8127 echo "${ECHO_T}no" >&6
8128 fi
8129
8130   STRIP=$ac_ct_STRIP
8131 else
8132   STRIP="$ac_cv_prog_STRIP"
8133 fi
8134
8135
8136 old_CC="$CC"
8137 old_CFLAGS="$CFLAGS"
8138
8139 # Set sane defaults for various variables
8140 test -z "$AR" && AR=ar
8141 test -z "$AR_FLAGS" && AR_FLAGS=cru
8142 test -z "$AS" && AS=as
8143 test -z "$CC" && CC=cc
8144 test -z "$LTCC" && LTCC=$CC
8145 test -z "$DLLTOOL" && DLLTOOL=dlltool
8146 test -z "$LD" && LD=ld
8147 test -z "$LN_S" && LN_S="ln -s"
8148 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8149 test -z "$NM" && NM=nm
8150 test -z "$SED" && SED=sed
8151 test -z "$OBJDUMP" && OBJDUMP=objdump
8152 test -z "$RANLIB" && RANLIB=:
8153 test -z "$STRIP" && STRIP=:
8154 test -z "$ac_objext" && ac_objext=o
8155
8156 # Determine commands to create old-style static archives.
8157 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8158 old_postinstall_cmds='chmod 644 $oldlib'
8159 old_postuninstall_cmds=
8160
8161 if test -n "$RANLIB"; then
8162   case $host_os in
8163   openbsd*)
8164     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8165     ;;
8166   *)
8167     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8168     ;;
8169   esac
8170   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8171 fi
8172
8173 for cc_temp in $compiler""; do
8174   case $cc_temp in
8175     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8176     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8177     \-*) ;;
8178     *) break;;
8179   esac
8180 done
8181 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8182
8183
8184 # Only perform the check for file, if the check method requires it
8185 case $deplibs_check_method in
8186 file_magic*)
8187   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8188     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8189 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8190 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8191   echo $ECHO_N "(cached) $ECHO_C" >&6
8192 else
8193   case $MAGIC_CMD in
8194 [\\/*] |  ?:[\\/]*)
8195   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8196   ;;
8197 *)
8198   lt_save_MAGIC_CMD="$MAGIC_CMD"
8199   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8200   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8201   for ac_dir in $ac_dummy; do
8202     IFS="$lt_save_ifs"
8203     test -z "$ac_dir" && ac_dir=.
8204     if test -f $ac_dir/${ac_tool_prefix}file; then
8205       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8206       if test -n "$file_magic_test_file"; then
8207         case $deplibs_check_method in
8208         "file_magic "*)
8209           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8210           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8211           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8212             $EGREP "$file_magic_regex" > /dev/null; then
8213             :
8214           else
8215             cat <<EOF 1>&2
8216
8217 *** Warning: the command libtool uses to detect shared libraries,
8218 *** $file_magic_cmd, produces output that libtool cannot recognize.
8219 *** The result is that libtool may fail to recognize shared libraries
8220 *** as such.  This will affect the creation of libtool libraries that
8221 *** depend on shared libraries, but programs linked with such libtool
8222 *** libraries will work regardless of this problem.  Nevertheless, you
8223 *** may want to report the problem to your system manager and/or to
8224 *** bug-libtool@gnu.org
8225
8226 EOF
8227           fi ;;
8228         esac
8229       fi
8230       break
8231     fi
8232   done
8233   IFS="$lt_save_ifs"
8234   MAGIC_CMD="$lt_save_MAGIC_CMD"
8235   ;;
8236 esac
8237 fi
8238
8239 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8240 if test -n "$MAGIC_CMD"; then
8241   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8242 echo "${ECHO_T}$MAGIC_CMD" >&6
8243 else
8244   echo "$as_me:$LINENO: result: no" >&5
8245 echo "${ECHO_T}no" >&6
8246 fi
8247
8248 if test -z "$lt_cv_path_MAGIC_CMD"; then
8249   if test -n "$ac_tool_prefix"; then
8250     echo "$as_me:$LINENO: checking for file" >&5
8251 echo $ECHO_N "checking for file... $ECHO_C" >&6
8252 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8253   echo $ECHO_N "(cached) $ECHO_C" >&6
8254 else
8255   case $MAGIC_CMD in
8256 [\\/*] |  ?:[\\/]*)
8257   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8258   ;;
8259 *)
8260   lt_save_MAGIC_CMD="$MAGIC_CMD"
8261   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8262   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8263   for ac_dir in $ac_dummy; do
8264     IFS="$lt_save_ifs"
8265     test -z "$ac_dir" && ac_dir=.
8266     if test -f $ac_dir/file; then
8267       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8268       if test -n "$file_magic_test_file"; then
8269         case $deplibs_check_method in
8270         "file_magic "*)
8271           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8272           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8273           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8274             $EGREP "$file_magic_regex" > /dev/null; then
8275             :
8276           else
8277             cat <<EOF 1>&2
8278
8279 *** Warning: the command libtool uses to detect shared libraries,
8280 *** $file_magic_cmd, produces output that libtool cannot recognize.
8281 *** The result is that libtool may fail to recognize shared libraries
8282 *** as such.  This will affect the creation of libtool libraries that
8283 *** depend on shared libraries, but programs linked with such libtool
8284 *** libraries will work regardless of this problem.  Nevertheless, you
8285 *** may want to report the problem to your system manager and/or to
8286 *** bug-libtool@gnu.org
8287
8288 EOF
8289           fi ;;
8290         esac
8291       fi
8292       break
8293     fi
8294   done
8295   IFS="$lt_save_ifs"
8296   MAGIC_CMD="$lt_save_MAGIC_CMD"
8297   ;;
8298 esac
8299 fi
8300
8301 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8302 if test -n "$MAGIC_CMD"; then
8303   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8304 echo "${ECHO_T}$MAGIC_CMD" >&6
8305 else
8306   echo "$as_me:$LINENO: result: no" >&5
8307 echo "${ECHO_T}no" >&6
8308 fi
8309
8310   else
8311     MAGIC_CMD=:
8312   fi
8313 fi
8314
8315   fi
8316   ;;
8317 esac
8318
8319 enable_dlopen=yes
8320 enable_win32_dll=yes
8321
8322 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8323 if test "${enable_libtool_lock+set}" = set; then
8324   enableval="$enable_libtool_lock"
8325
8326 fi;
8327 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8328
8329
8330 # Check whether --with-pic or --without-pic was given.
8331 if test "${with_pic+set}" = set; then
8332   withval="$with_pic"
8333   pic_mode="$withval"
8334 else
8335   pic_mode=default
8336 fi;
8337 test -z "$pic_mode" && pic_mode=default
8338
8339 # Use C for the default configuration in the libtool script
8340 tagname=
8341 lt_save_CC="$CC"
8342 ac_ext=c
8343 ac_cpp='$CPP $CPPFLAGS'
8344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8347
8348
8349 # Source file extension for C test sources.
8350 ac_ext=c
8351
8352 # Object file extension for compiled C test sources.
8353 objext=o
8354 objext=$objext
8355
8356 # Code to be used in simple compile tests
8357 lt_simple_compile_test_code="int some_variable = 0;\n"
8358
8359 # Code to be used in simple link tests
8360 lt_simple_link_test_code='int main(){return(0);}\n'
8361
8362
8363 # If no C compiler was specified, use CC.
8364 LTCC=${LTCC-"$CC"}
8365
8366 # Allow CC to be a program name with arguments.
8367 compiler=$CC
8368
8369
8370 # save warnings/boilerplate of simple test code
8371 ac_outfile=conftest.$ac_objext
8372 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8373 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8374 _lt_compiler_boilerplate=`cat conftest.err`
8375 $rm conftest*
8376
8377 ac_outfile=conftest.$ac_objext
8378 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8379 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8380 _lt_linker_boilerplate=`cat conftest.err`
8381 $rm conftest*
8382
8383
8384 #
8385 # Check for any special shared library compilation flags.
8386 #
8387 lt_prog_cc_shlib=
8388 if test "$GCC" = no; then
8389   case $host_os in
8390   sco3.2v5*)
8391     lt_prog_cc_shlib='-belf'
8392     ;;
8393   esac
8394 fi
8395 if test -n "$lt_prog_cc_shlib"; then
8396   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8397 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8398   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8399   else
8400     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8401 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8402     lt_cv_prog_cc_can_build_shared=no
8403   fi
8404 fi
8405
8406
8407 #
8408 # Check to make sure the static flag actually works.
8409 #
8410 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8411 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8412 if test "${lt_prog_compiler_static_works+set}" = set; then
8413   echo $ECHO_N "(cached) $ECHO_C" >&6
8414 else
8415   lt_prog_compiler_static_works=no
8416    save_LDFLAGS="$LDFLAGS"
8417    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8418    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8419    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8420      # The compiler can only warn and ignore the option if not recognized
8421      # So say no if there are warnings
8422      if test -s conftest.err; then
8423        # Append any errors to the config.log.
8424        cat conftest.err 1>&5
8425        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8426        $SED '/^$/d' conftest.err >conftest.er2
8427        if diff conftest.exp conftest.er2 >/dev/null; then
8428          lt_prog_compiler_static_works=yes
8429        fi
8430      else
8431        lt_prog_compiler_static_works=yes
8432      fi
8433    fi
8434    $rm conftest*
8435    LDFLAGS="$save_LDFLAGS"
8436
8437 fi
8438 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8439 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8440
8441 if test x"$lt_prog_compiler_static_works" = xyes; then
8442     :
8443 else
8444     lt_prog_compiler_static=
8445 fi
8446
8447
8448
8449
8450 lt_prog_compiler_no_builtin_flag=
8451
8452 if test "$GCC" = yes; then
8453   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8454
8455
8456 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8457 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8458 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8459   echo $ECHO_N "(cached) $ECHO_C" >&6
8460 else
8461   lt_cv_prog_compiler_rtti_exceptions=no
8462   ac_outfile=conftest.$ac_objext
8463    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8464    lt_compiler_flag="-fno-rtti -fno-exceptions"
8465    # Insert the option either (1) after the last *FLAGS variable, or
8466    # (2) before a word containing "conftest.", or (3) at the end.
8467    # Note that $ac_compile itself does not contain backslashes and begins
8468    # with a dollar sign (not a hyphen), so the echo should work correctly.
8469    # The option is referenced via a variable to avoid confusing sed.
8470    lt_compile=`echo "$ac_compile" | $SED \
8471    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8472    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8473    -e 's:$: $lt_compiler_flag:'`
8474    (eval echo "\"\$as_me:8474: $lt_compile\"" >&5)
8475    (eval "$lt_compile" 2>conftest.err)
8476    ac_status=$?
8477    cat conftest.err >&5
8478    echo "$as_me:8478: \$? = $ac_status" >&5
8479    if (exit $ac_status) && test -s "$ac_outfile"; then
8480      # The compiler can only warn and ignore the option if not recognized
8481      # So say no if there are warnings other than the usual output.
8482      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8483      $SED '/^$/d' conftest.err >conftest.er2
8484      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8485        lt_cv_prog_compiler_rtti_exceptions=yes
8486      fi
8487    fi
8488    $rm conftest*
8489
8490 fi
8491 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8492 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8493
8494 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8495     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8496 else
8497     :
8498 fi
8499
8500 fi
8501
8502 lt_prog_compiler_wl=
8503 lt_prog_compiler_pic=
8504 lt_prog_compiler_static=
8505
8506 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8507 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8508
8509   if test "$GCC" = yes; then
8510     lt_prog_compiler_wl='-Wl,'
8511     lt_prog_compiler_static='-static'
8512
8513     case $host_os in
8514       aix*)
8515       # All AIX code is PIC.
8516       if test "$host_cpu" = ia64; then
8517         # AIX 5 now supports IA64 processor
8518         lt_prog_compiler_static='-Bstatic'
8519       fi
8520       ;;
8521
8522     amigaos*)
8523       # FIXME: we need at least 68020 code to build shared libraries, but
8524       # adding the `-m68020' flag to GCC prevents building anything better,
8525       # like `-m68040'.
8526       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8527       ;;
8528
8529     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8530       # PIC is the default for these OSes.
8531       ;;
8532
8533     mingw* | pw32* | os2*)
8534       # This hack is so that the source file can tell whether it is being
8535       # built for inclusion in a dll (and should export symbols for example).
8536       lt_prog_compiler_pic='-DDLL_EXPORT'
8537       ;;
8538
8539     darwin* | rhapsody*)
8540       # PIC is the default on this platform
8541       # Common symbols not allowed in MH_DYLIB files
8542       lt_prog_compiler_pic='-fno-common'
8543       ;;
8544
8545     msdosdjgpp*)
8546       # Just because we use GCC doesn't mean we suddenly get shared libraries
8547       # on systems that don't support them.
8548       lt_prog_compiler_can_build_shared=no
8549       enable_shared=no
8550       ;;
8551
8552     sysv4*MP*)
8553       if test -d /usr/nec; then
8554         lt_prog_compiler_pic=-Kconform_pic
8555       fi
8556       ;;
8557
8558     hpux*)
8559       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8560       # not for PA HP-UX.
8561       case "$host_cpu" in
8562       hppa*64*|ia64*)
8563         # +Z the default
8564         ;;
8565       *)
8566         lt_prog_compiler_pic='-fPIC'
8567         ;;
8568       esac
8569       ;;
8570
8571     *)
8572       lt_prog_compiler_pic='-fPIC'
8573       ;;
8574     esac
8575   else
8576     # PORTME Check for flag to pass linker flags through the system compiler.
8577     case $host_os in
8578     aix*)
8579       lt_prog_compiler_wl='-Wl,'
8580       if test "$host_cpu" = ia64; then
8581         # AIX 5 now supports IA64 processor
8582         lt_prog_compiler_static='-Bstatic'
8583       else
8584         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8585       fi
8586       ;;
8587       darwin*)
8588         # PIC is the default on this platform
8589         # Common symbols not allowed in MH_DYLIB files
8590        case $cc_basename in
8591          xlc*)
8592          lt_prog_compiler_pic='-qnocommon'
8593          lt_prog_compiler_wl='-Wl,'
8594          ;;
8595        esac
8596        ;;
8597
8598     mingw* | pw32* | os2*)
8599       # This hack is so that the source file can tell whether it is being
8600       # built for inclusion in a dll (and should export symbols for example).
8601       lt_prog_compiler_pic='-DDLL_EXPORT'
8602       ;;
8603
8604     hpux9* | hpux10* | hpux11*)
8605       lt_prog_compiler_wl='-Wl,'
8606       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8607       # not for PA HP-UX.
8608       case "$host_cpu" in
8609       hppa*64*|ia64*)
8610         # +Z the default
8611         ;;
8612       *)
8613         lt_prog_compiler_pic='+Z'
8614         ;;
8615       esac
8616       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8617       lt_prog_compiler_static='${wl}-a ${wl}archive'
8618       ;;
8619
8620     irix5* | irix6* | nonstopux*)
8621       lt_prog_compiler_wl='-Wl,'
8622       # PIC (with -KPIC) is the default.
8623       lt_prog_compiler_static='-non_shared'
8624       ;;
8625
8626     newsos6)
8627       lt_prog_compiler_pic='-KPIC'
8628       lt_prog_compiler_static='-Bstatic'
8629       ;;
8630
8631     linux*)
8632       case $cc_basename in
8633       icc* | ecc*)
8634         lt_prog_compiler_wl='-Wl,'
8635         lt_prog_compiler_pic='-KPIC'
8636         lt_prog_compiler_static='-static'
8637         ;;
8638       pgcc* | pgf77* | pgf90*)
8639         # Portland Group compilers (*not* the Pentium gcc compiler,
8640         # which looks to be a dead project)
8641         lt_prog_compiler_wl='-Wl,'
8642         lt_prog_compiler_pic='-fpic'
8643         lt_prog_compiler_static='-static'
8644         ;;
8645       ccc*)
8646         lt_prog_compiler_wl='-Wl,'
8647         # All Alpha code is PIC.
8648         lt_prog_compiler_static='-non_shared'
8649         ;;
8650       esac
8651       ;;
8652
8653     osf3* | osf4* | osf5*)
8654       lt_prog_compiler_wl='-Wl,'
8655       # All OSF/1 code is PIC.
8656       lt_prog_compiler_static='-non_shared'
8657       ;;
8658
8659     sco3.2v5*)
8660       lt_prog_compiler_pic='-Kpic'
8661       lt_prog_compiler_static='-dn'
8662       ;;
8663
8664     solaris*)
8665       lt_prog_compiler_pic='-KPIC'
8666       lt_prog_compiler_static='-Bstatic'
8667       case $cc_basename in
8668       f77* | f90* | f95*)
8669         lt_prog_compiler_wl='-Qoption ld ';;
8670       *)
8671         lt_prog_compiler_wl='-Wl,';;
8672       esac
8673       ;;
8674
8675     sunos4*)
8676       lt_prog_compiler_wl='-Qoption ld '
8677       lt_prog_compiler_pic='-PIC'
8678       lt_prog_compiler_static='-Bstatic'
8679       ;;
8680
8681     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8682       lt_prog_compiler_wl='-Wl,'
8683       lt_prog_compiler_pic='-KPIC'
8684       lt_prog_compiler_static='-Bstatic'
8685       ;;
8686
8687     sysv4*MP*)
8688       if test -d /usr/nec ;then
8689         lt_prog_compiler_pic='-Kconform_pic'
8690         lt_prog_compiler_static='-Bstatic'
8691       fi
8692       ;;
8693
8694     unicos*)
8695       lt_prog_compiler_wl='-Wl,'
8696       lt_prog_compiler_can_build_shared=no
8697       ;;
8698
8699     uts4*)
8700       lt_prog_compiler_pic='-pic'
8701       lt_prog_compiler_static='-Bstatic'
8702       ;;
8703
8704     *)
8705       lt_prog_compiler_can_build_shared=no
8706       ;;
8707     esac
8708   fi
8709
8710 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8711 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8712
8713 #
8714 # Check to make sure the PIC flag actually works.
8715 #
8716 if test -n "$lt_prog_compiler_pic"; then
8717
8718 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8719 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8720 if test "${lt_prog_compiler_pic_works+set}" = set; then
8721   echo $ECHO_N "(cached) $ECHO_C" >&6
8722 else
8723   lt_prog_compiler_pic_works=no
8724   ac_outfile=conftest.$ac_objext
8725    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8726    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8727    # Insert the option either (1) after the last *FLAGS variable, or
8728    # (2) before a word containing "conftest.", or (3) at the end.
8729    # Note that $ac_compile itself does not contain backslashes and begins
8730    # with a dollar sign (not a hyphen), so the echo should work correctly.
8731    # The option is referenced via a variable to avoid confusing sed.
8732    lt_compile=`echo "$ac_compile" | $SED \
8733    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8734    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8735    -e 's:$: $lt_compiler_flag:'`
8736    (eval echo "\"\$as_me:8736: $lt_compile\"" >&5)
8737    (eval "$lt_compile" 2>conftest.err)
8738    ac_status=$?
8739    cat conftest.err >&5
8740    echo "$as_me:8740: \$? = $ac_status" >&5
8741    if (exit $ac_status) && test -s "$ac_outfile"; then
8742      # The compiler can only warn and ignore the option if not recognized
8743      # So say no if there are warnings other than the usual output.
8744      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8745      $SED '/^$/d' conftest.err >conftest.er2
8746      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8747        lt_prog_compiler_pic_works=yes
8748      fi
8749    fi
8750    $rm conftest*
8751
8752 fi
8753 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8754 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8755
8756 if test x"$lt_prog_compiler_pic_works" = xyes; then
8757     case $lt_prog_compiler_pic in
8758      "" | " "*) ;;
8759      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8760      esac
8761 else
8762     lt_prog_compiler_pic=
8763      lt_prog_compiler_can_build_shared=no
8764 fi
8765
8766 fi
8767 case "$host_os" in
8768   # For platforms which do not support PIC, -DPIC is meaningless:
8769   *djgpp*)
8770     lt_prog_compiler_pic=
8771     ;;
8772   *)
8773     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8774     ;;
8775 esac
8776
8777 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8778 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8779 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8780   echo $ECHO_N "(cached) $ECHO_C" >&6
8781 else
8782   lt_cv_prog_compiler_c_o=no
8783    $rm -r conftest 2>/dev/null
8784    mkdir conftest
8785    cd conftest
8786    mkdir out
8787    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8788
8789    lt_compiler_flag="-o out/conftest2.$ac_objext"
8790    # Insert the option either (1) after the last *FLAGS variable, or
8791    # (2) before a word containing "conftest.", or (3) at the end.
8792    # Note that $ac_compile itself does not contain backslashes and begins
8793    # with a dollar sign (not a hyphen), so the echo should work correctly.
8794    lt_compile=`echo "$ac_compile" | $SED \
8795    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8797    -e 's:$: $lt_compiler_flag:'`
8798    (eval echo "\"\$as_me:8798: $lt_compile\"" >&5)
8799    (eval "$lt_compile" 2>out/conftest.err)
8800    ac_status=$?
8801    cat out/conftest.err >&5
8802    echo "$as_me:8802: \$? = $ac_status" >&5
8803    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8804    then
8805      # The compiler can only warn and ignore the option if not recognized
8806      # So say no if there are warnings
8807      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8808      $SED '/^$/d' out/conftest.err >out/conftest.er2
8809      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8810        lt_cv_prog_compiler_c_o=yes
8811      fi
8812    fi
8813    chmod u+w .
8814    $rm conftest*
8815    # SGI C++ compiler will create directory out/ii_files/ for
8816    # template instantiation
8817    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8818    $rm out/* && rmdir out
8819    cd ..
8820    rmdir conftest
8821    $rm conftest*
8822
8823 fi
8824 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8825 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8826
8827
8828 hard_links="nottested"
8829 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8830   # do not overwrite the value of need_locks provided by the user
8831   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8832 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8833   hard_links=yes
8834   $rm conftest*
8835   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8836   touch conftest.a
8837   ln conftest.a conftest.b 2>&5 || hard_links=no
8838   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8839   echo "$as_me:$LINENO: result: $hard_links" >&5
8840 echo "${ECHO_T}$hard_links" >&6
8841   if test "$hard_links" = no; then
8842     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8843 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8844     need_locks=warn
8845   fi
8846 else
8847   need_locks=no
8848 fi
8849
8850 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8851 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8852
8853   runpath_var=
8854   allow_undefined_flag=
8855   enable_shared_with_static_runtimes=no
8856   archive_cmds=
8857   archive_expsym_cmds=
8858   old_archive_From_new_cmds=
8859   old_archive_from_expsyms_cmds=
8860   export_dynamic_flag_spec=
8861   whole_archive_flag_spec=
8862   thread_safe_flag_spec=
8863   hardcode_libdir_flag_spec=
8864   hardcode_libdir_flag_spec_ld=
8865   hardcode_libdir_separator=
8866   hardcode_direct=no
8867   hardcode_minus_L=no
8868   hardcode_shlibpath_var=unsupported
8869   link_all_deplibs=unknown
8870   hardcode_automatic=no
8871   module_cmds=
8872   module_expsym_cmds=
8873   always_export_symbols=no
8874   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8875   # include_expsyms should be a list of space-separated symbols to be *always*
8876   # included in the symbol list
8877   include_expsyms=
8878   # exclude_expsyms can be an extended regexp of symbols to exclude
8879   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8880   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8881   # as well as any symbol that contains `d'.
8882   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8883   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8884   # platforms (ab)use it in PIC code, but their linkers get confused if
8885   # the symbol is explicitly referenced.  Since portable code cannot
8886   # rely on this symbol name, it's probably fine to never include it in
8887   # preloaded symbol tables.
8888   extract_expsyms_cmds=
8889   # Just being paranoid about ensuring that cc_basename is set.
8890   for cc_temp in $compiler""; do
8891   case $cc_temp in
8892     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8893     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8894     \-*) ;;
8895     *) break;;
8896   esac
8897 done
8898 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8899
8900   case $host_os in
8901   cygwin* | mingw* | pw32*)
8902     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8903     # When not using gcc, we currently assume that we are using
8904     # Microsoft Visual C++.
8905     if test "$GCC" != yes; then
8906       with_gnu_ld=no
8907     fi
8908     ;;
8909   openbsd*)
8910     with_gnu_ld=no
8911     ;;
8912   esac
8913
8914   ld_shlibs=yes
8915   if test "$with_gnu_ld" = yes; then
8916     # If archive_cmds runs LD, not CC, wlarc should be empty
8917     wlarc='${wl}'
8918
8919     # Set some defaults for GNU ld with shared library support. These
8920     # are reset later if shared libraries are not supported. Putting them
8921     # here allows them to be overridden if necessary.
8922     runpath_var=LD_RUN_PATH
8923     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8924     export_dynamic_flag_spec='${wl}--export-dynamic'
8925     # ancient GNU ld didn't support --whole-archive et. al.
8926     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8927         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8928       else
8929         whole_archive_flag_spec=
8930     fi
8931     supports_anon_versioning=no
8932     case `$LD -v 2>/dev/null` in
8933       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8934       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8935       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8936       *\ 2.11.*) ;; # other 2.11 versions
8937       *) supports_anon_versioning=yes ;;
8938     esac
8939
8940     # See if GNU ld supports shared libraries.
8941     case $host_os in
8942     aix3* | aix4* | aix5*)
8943       # On AIX/PPC, the GNU linker is very broken
8944       if test "$host_cpu" != ia64; then
8945         ld_shlibs=no
8946         cat <<EOF 1>&2
8947
8948 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8949 *** to be unable to reliably create shared libraries on AIX.
8950 *** Therefore, libtool is disabling shared libraries support.  If you
8951 *** really care for shared libraries, you may want to modify your PATH
8952 *** so that a non-GNU linker is found, and then restart.
8953
8954 EOF
8955       fi
8956       ;;
8957
8958     amigaos*)
8959       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)'
8960       hardcode_libdir_flag_spec='-L$libdir'
8961       hardcode_minus_L=yes
8962
8963       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8964       # that the semantics of dynamic libraries on AmigaOS, at least up
8965       # to version 4, is to share data among multiple programs linked
8966       # with the same dynamic library.  Since this doesn't match the
8967       # behavior of shared libraries on other platforms, we can't use
8968       # them.
8969       ld_shlibs=no
8970       ;;
8971
8972     beos*)
8973       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8974         allow_undefined_flag=unsupported
8975         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8976         # support --undefined.  This deserves some investigation.  FIXME
8977         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8978       else
8979         ld_shlibs=no
8980       fi
8981       ;;
8982
8983     cygwin* | mingw* | pw32*)
8984       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8985       # as there is no search path for DLLs.
8986       hardcode_libdir_flag_spec='-L$libdir'
8987       allow_undefined_flag=unsupported
8988       always_export_symbols=no
8989       enable_shared_with_static_runtimes=yes
8990       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8991
8992       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8993         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8994         # If the export-symbols file already is a .def file (1st line
8995         # is EXPORTS), use it as is; otherwise, prepend...
8996         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8997           cp $export_symbols $output_objdir/$soname.def;
8998         else
8999           echo EXPORTS > $output_objdir/$soname.def;
9000           cat $export_symbols >> $output_objdir/$soname.def;
9001         fi~
9002         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9003       else
9004         ld_shlibs=no
9005       fi
9006       ;;
9007
9008     linux*)
9009       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9010         tmp_addflag=
9011         case $cc_basename,$host_cpu in
9012         pgcc*)                          # Portland Group C compiler
9013           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'
9014           tmp_addflag=' $pic_flag'
9015           ;;
9016         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
9017           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'
9018           tmp_addflag=' $pic_flag -Mnomain' ;;
9019         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9020           tmp_addflag=' -i_dynamic' ;;
9021         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9022           tmp_addflag=' -i_dynamic -nofor_main' ;;
9023         ifc* | ifort*)                  # Intel Fortran compiler
9024           tmp_addflag=' -nofor_main' ;;
9025         esac
9026         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9027
9028         if test $supports_anon_versioning = yes; then
9029           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9030   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9031   $echo "local: *; };" >> $output_objdir/$libname.ver~
9032           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9033         fi
9034       else
9035         ld_shlibs=no
9036       fi
9037       ;;
9038
9039     netbsd*)
9040       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9041         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9042         wlarc=
9043       else
9044         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9045         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9046       fi
9047       ;;
9048
9049     solaris* | sysv5*)
9050       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9051         ld_shlibs=no
9052         cat <<EOF 1>&2
9053
9054 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9055 *** create shared libraries on Solaris systems.  Therefore, libtool
9056 *** is disabling shared libraries support.  We urge you to upgrade GNU
9057 *** binutils to release 2.9.1 or newer.  Another option is to modify
9058 *** your PATH or compiler configuration so that the native linker is
9059 *** used, and then restart.
9060
9061 EOF
9062       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9063         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9064         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9065       else
9066         ld_shlibs=no
9067       fi
9068       ;;
9069
9070     sunos4*)
9071       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9072       wlarc=
9073       hardcode_direct=yes
9074       hardcode_shlibpath_var=no
9075       ;;
9076
9077     *)
9078       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9079         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9080         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9081       else
9082         ld_shlibs=no
9083       fi
9084       ;;
9085     esac
9086
9087     if test "$ld_shlibs" = no; then
9088       runpath_var=
9089       hardcode_libdir_flag_spec=
9090       export_dynamic_flag_spec=
9091       whole_archive_flag_spec=
9092     fi
9093   else
9094     # PORTME fill in a description of your system's linker (not GNU ld)
9095     case $host_os in
9096     aix3*)
9097       allow_undefined_flag=unsupported
9098       always_export_symbols=yes
9099       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'
9100       # Note: this linker hardcodes the directories in LIBPATH if there
9101       # are no directories specified by -L.
9102       hardcode_minus_L=yes
9103       if test "$GCC" = yes && test -z "$link_static_flag"; then
9104         # Neither direct hardcoding nor static linking is supported with a
9105         # broken collect2.
9106         hardcode_direct=unsupported
9107       fi
9108       ;;
9109
9110     aix4* | aix5*)
9111       if test "$host_cpu" = ia64; then
9112         # On IA64, the linker does run time linking by default, so we don't
9113         # have to do anything special.
9114         aix_use_runtimelinking=no
9115         exp_sym_flag='-Bexport'
9116         no_entry_flag=""
9117       else
9118         # If we're using GNU nm, then we don't want the "-C" option.
9119         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9120         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9121           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'
9122         else
9123           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'
9124         fi
9125         aix_use_runtimelinking=no
9126
9127         # Test if we are trying to use run time linking or normal
9128         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9129         # need to do runtime linking.
9130         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9131           for ld_flag in $LDFLAGS; do
9132           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9133             aix_use_runtimelinking=yes
9134             break
9135           fi
9136           done
9137         esac
9138
9139         exp_sym_flag='-bexport'
9140         no_entry_flag='-bnoentry'
9141       fi
9142
9143       # When large executables or shared objects are built, AIX ld can
9144       # have problems creating the table of contents.  If linking a library
9145       # or program results in "error TOC overflow" add -mminimal-toc to
9146       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9147       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9148
9149       archive_cmds=''
9150       hardcode_direct=yes
9151       hardcode_libdir_separator=':'
9152       link_all_deplibs=yes
9153
9154       if test "$GCC" = yes; then
9155         case $host_os in aix4.[012]|aix4.[012].*)
9156         # We only want to do this on AIX 4.2 and lower, the check
9157         # below for broken collect2 doesn't work under 4.3+
9158           collect2name=`${CC} -print-prog-name=collect2`
9159           if test -f "$collect2name" && \
9160            strings "$collect2name" | grep resolve_lib_name >/dev/null
9161           then
9162           # We have reworked collect2
9163           hardcode_direct=yes
9164           else
9165           # We have old collect2
9166           hardcode_direct=unsupported
9167           # It fails to find uninstalled libraries when the uninstalled
9168           # path is not listed in the libpath.  Setting hardcode_minus_L
9169           # to unsupported forces relinking
9170           hardcode_minus_L=yes
9171           hardcode_libdir_flag_spec='-L$libdir'
9172           hardcode_libdir_separator=
9173           fi
9174         esac
9175         shared_flag='-shared'
9176         if test "$aix_use_runtimelinking" = yes; then
9177           shared_flag="$shared_flag "'${wl}-G'
9178         fi
9179       else
9180         # not using gcc
9181         if test "$host_cpu" = ia64; then
9182         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9183         # chokes on -Wl,-G. The following line is correct:
9184           shared_flag='-G'
9185         else
9186         if test "$aix_use_runtimelinking" = yes; then
9187             shared_flag='${wl}-G'
9188           else
9189             shared_flag='${wl}-bM:SRE'
9190         fi
9191         fi
9192       fi
9193
9194       # It seems that -bexpall does not export symbols beginning with
9195       # underscore (_), so it is better to generate a list of symbols to export.
9196       always_export_symbols=yes
9197       if test "$aix_use_runtimelinking" = yes; then
9198         # Warning - without using the other runtime loading flags (-brtl),
9199         # -berok will link without error, but may produce a broken library.
9200         allow_undefined_flag='-berok'
9201        # Determine the default libpath from the value encoded in an empty executable.
9202        cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h.  */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h.  */
9208
9209 int
9210 main ()
9211 {
9212
9213   ;
9214   return 0;
9215 }
9216 _ACEOF
9217 rm -f conftest.$ac_objext conftest$ac_exeext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219   (eval $ac_link) 2>conftest.er1
9220   ac_status=$?
9221   grep -v '^ *+' conftest.er1 >conftest.err
9222   rm -f conftest.er1
9223   cat conftest.err >&5
9224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225   (exit $ac_status); } &&
9226          { ac_try='test -z "$ac_c_werror_flag"
9227                          || test ! -s conftest.err'
9228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229   (eval $ac_try) 2>&5
9230   ac_status=$?
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); }; } &&
9233          { ac_try='test -s conftest$ac_exeext'
9234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235   (eval $ac_try) 2>&5
9236   ac_status=$?
9237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238   (exit $ac_status); }; }; then
9239
9240 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9241 }'`
9242 # Check for a 64-bit object if we didn't find anything.
9243 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; }
9244 }'`; fi
9245 else
9246   echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9248
9249 fi
9250 rm -f conftest.err conftest.$ac_objext \
9251       conftest$ac_exeext conftest.$ac_ext
9252 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9253
9254        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9255         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"
9256        else
9257         if test "$host_cpu" = ia64; then
9258           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9259           allow_undefined_flag="-z nodefs"
9260           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"
9261         else
9262          # Determine the default libpath from the value encoded in an empty executable.
9263          cat >conftest.$ac_ext <<_ACEOF
9264 /* confdefs.h.  */
9265 _ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h.  */
9269
9270 int
9271 main ()
9272 {
9273
9274   ;
9275   return 0;
9276 }
9277 _ACEOF
9278 rm -f conftest.$ac_objext conftest$ac_exeext
9279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9280   (eval $ac_link) 2>conftest.er1
9281   ac_status=$?
9282   grep -v '^ *+' conftest.er1 >conftest.err
9283   rm -f conftest.er1
9284   cat conftest.err >&5
9285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286   (exit $ac_status); } &&
9287          { ac_try='test -z "$ac_c_werror_flag"
9288                          || test ! -s conftest.err'
9289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290   (eval $ac_try) 2>&5
9291   ac_status=$?
9292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293   (exit $ac_status); }; } &&
9294          { ac_try='test -s conftest$ac_exeext'
9295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296   (eval $ac_try) 2>&5
9297   ac_status=$?
9298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299   (exit $ac_status); }; }; then
9300
9301 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9302 }'`
9303 # Check for a 64-bit object if we didn't find anything.
9304 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; }
9305 }'`; fi
9306 else
9307   echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9309
9310 fi
9311 rm -f conftest.err conftest.$ac_objext \
9312       conftest$ac_exeext conftest.$ac_ext
9313 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9314
9315          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9316           # Warning - without using the other run time loading flags,
9317           # -berok will link without error, but may produce a broken library.
9318           no_undefined_flag=' ${wl}-bernotok'
9319           allow_undefined_flag=' ${wl}-berok'
9320           # -bexpall does not export symbols beginning with underscore (_)
9321           always_export_symbols=yes
9322           # Exported symbols can be pulled into shared objects from archives
9323           whole_archive_flag_spec=' '
9324           archive_cmds_need_lc=yes
9325           # This is similar to how AIX traditionally builds it's shared libraries.
9326           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'
9327         fi
9328       fi
9329       ;;
9330
9331     amigaos*)
9332       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)'
9333       hardcode_libdir_flag_spec='-L$libdir'
9334       hardcode_minus_L=yes
9335       # see comment about different semantics on the GNU ld section
9336       ld_shlibs=no
9337       ;;
9338
9339     bsdi[45]*)
9340       export_dynamic_flag_spec=-rdynamic
9341       ;;
9342
9343     cygwin* | mingw* | pw32*)
9344       # When not using gcc, we currently assume that we are using
9345       # Microsoft Visual C++.
9346       # hardcode_libdir_flag_spec is actually meaningless, as there is
9347       # no search path for DLLs.
9348       hardcode_libdir_flag_spec=' '
9349       allow_undefined_flag=unsupported
9350       # Tell ltmain to make .lib files, not .a files.
9351       libext=lib
9352       # Tell ltmain to make .dll files, not .so files.
9353       shrext_cmds=".dll"
9354       # FIXME: Setting linknames here is a bad hack.
9355       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9356       # The linker will automatically build a .lib file if we build a DLL.
9357       old_archive_From_new_cmds='true'
9358       # FIXME: Should let the user specify the lib program.
9359       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9360       fix_srcfile_path='`cygpath -w "$srcfile"`'
9361       enable_shared_with_static_runtimes=yes
9362       ;;
9363
9364     darwin* | rhapsody*)
9365       case "$host_os" in
9366         rhapsody* | darwin1.[012])
9367          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9368          ;;
9369        *) # Darwin 1.3 on
9370          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9371            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9372          else
9373            case ${MACOSX_DEPLOYMENT_TARGET} in
9374              10.[012])
9375                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9376                ;;
9377              10.*)
9378                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9379                ;;
9380            esac
9381          fi
9382          ;;
9383       esac
9384       archive_cmds_need_lc=no
9385       hardcode_direct=no
9386       hardcode_automatic=yes
9387       hardcode_shlibpath_var=unsupported
9388       whole_archive_flag_spec=''
9389       link_all_deplibs=yes
9390     if test "$GCC" = yes ; then
9391         output_verbose_link_cmd='echo'
9392         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9393       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9394       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9395       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}'
9396       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}'
9397     else
9398       case $cc_basename in
9399         xlc*)
9400          output_verbose_link_cmd='echo'
9401          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9402          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9403           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9404          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}'
9405           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}'
9406           ;;
9407        *)
9408          ld_shlibs=no
9409           ;;
9410       esac
9411     fi
9412       ;;
9413
9414     dgux*)
9415       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9416       hardcode_libdir_flag_spec='-L$libdir'
9417       hardcode_shlibpath_var=no
9418       ;;
9419
9420     freebsd1*)
9421       ld_shlibs=no
9422       ;;
9423
9424     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9425     # support.  Future versions do this automatically, but an explicit c++rt0.o
9426     # does not break anything, and helps significantly (at the cost of a little
9427     # extra space).
9428     freebsd2.2*)
9429       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9430       hardcode_libdir_flag_spec='-R$libdir'
9431       hardcode_direct=yes
9432       hardcode_shlibpath_var=no
9433       ;;
9434
9435     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9436     freebsd2*)
9437       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9438       hardcode_direct=yes
9439       hardcode_minus_L=yes
9440       hardcode_shlibpath_var=no
9441       ;;
9442
9443     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9444     freebsd* | kfreebsd*-gnu | dragonfly*)
9445       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9446       hardcode_libdir_flag_spec='-R$libdir'
9447       hardcode_direct=yes
9448       hardcode_shlibpath_var=no
9449       ;;
9450
9451     hpux9*)
9452       if test "$GCC" = yes; then
9453         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'
9454       else
9455         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'
9456       fi
9457       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9458       hardcode_libdir_separator=:
9459       hardcode_direct=yes
9460
9461       # hardcode_minus_L: Not really in the search PATH,
9462       # but as the default location of the library.
9463       hardcode_minus_L=yes
9464       export_dynamic_flag_spec='${wl}-E'
9465       ;;
9466
9467     hpux10* | hpux11*)
9468       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9469         case "$host_cpu" in
9470         hppa*64*|ia64*)
9471           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9472           ;;
9473         *)
9474           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9475           ;;
9476         esac
9477       else
9478         case "$host_cpu" in
9479         hppa*64*|ia64*)
9480           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9481           ;;
9482         *)
9483           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9484           ;;
9485         esac
9486       fi
9487       if test "$with_gnu_ld" = no; then
9488         case "$host_cpu" in
9489         hppa*64*)
9490           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9491           hardcode_libdir_flag_spec_ld='+b $libdir'
9492           hardcode_libdir_separator=:
9493           hardcode_direct=no
9494           hardcode_shlibpath_var=no
9495           ;;
9496         ia64*)
9497           hardcode_libdir_flag_spec='-L$libdir'
9498           hardcode_direct=no
9499           hardcode_shlibpath_var=no
9500
9501           # hardcode_minus_L: Not really in the search PATH,
9502           # but as the default location of the library.
9503           hardcode_minus_L=yes
9504           ;;
9505         *)
9506           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9507           hardcode_libdir_separator=:
9508           hardcode_direct=yes
9509           export_dynamic_flag_spec='${wl}-E'
9510
9511           # hardcode_minus_L: Not really in the search PATH,
9512           # but as the default location of the library.
9513           hardcode_minus_L=yes
9514           ;;
9515         esac
9516       fi
9517       ;;
9518
9519     irix5* | irix6* | nonstopux*)
9520       if test "$GCC" = yes; then
9521         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'
9522       else
9523         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'
9524         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9525       fi
9526       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9527       hardcode_libdir_separator=:
9528       link_all_deplibs=yes
9529       ;;
9530
9531     netbsd*)
9532       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9533         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9534       else
9535         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9536       fi
9537       hardcode_libdir_flag_spec='-R$libdir'
9538       hardcode_direct=yes
9539       hardcode_shlibpath_var=no
9540       ;;
9541
9542     newsos6)
9543       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9544       hardcode_direct=yes
9545       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9546       hardcode_libdir_separator=:
9547       hardcode_shlibpath_var=no
9548       ;;
9549
9550     openbsd*)
9551       hardcode_direct=yes
9552       hardcode_shlibpath_var=no
9553       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9554         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9555         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9556         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9557         export_dynamic_flag_spec='${wl}-E'
9558       else
9559        case $host_os in
9560          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9561            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9562            hardcode_libdir_flag_spec='-R$libdir'
9563            ;;
9564          *)
9565            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9566            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9567            ;;
9568        esac
9569       fi
9570       ;;
9571
9572     os2*)
9573       hardcode_libdir_flag_spec='-L$libdir'
9574       hardcode_minus_L=yes
9575       allow_undefined_flag=unsupported
9576       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'
9577       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9578       ;;
9579
9580     osf3*)
9581       if test "$GCC" = yes; then
9582         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9583         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'
9584       else
9585         allow_undefined_flag=' -expect_unresolved \*'
9586         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'
9587       fi
9588       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9589       hardcode_libdir_separator=:
9590       ;;
9591
9592     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9593       if test "$GCC" = yes; then
9594         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9595         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'
9596         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9597       else
9598         allow_undefined_flag=' -expect_unresolved \*'
9599         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'
9600         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9601         $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'
9602
9603         # Both c and cxx compiler support -rpath directly
9604         hardcode_libdir_flag_spec='-rpath $libdir'
9605       fi
9606       hardcode_libdir_separator=:
9607       ;;
9608
9609     sco3.2v5*)
9610       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9611       hardcode_shlibpath_var=no
9612       export_dynamic_flag_spec='${wl}-Bexport'
9613       runpath_var=LD_RUN_PATH
9614       hardcode_runpath_var=yes
9615       ;;
9616
9617     solaris*)
9618       no_undefined_flag=' -z text'
9619       if test "$GCC" = yes; then
9620         wlarc='${wl}'
9621         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9622         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9623           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9624       else
9625         wlarc=''
9626         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9627         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9628         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9629       fi
9630       hardcode_libdir_flag_spec='-R$libdir'
9631       hardcode_shlibpath_var=no
9632       case $host_os in
9633       solaris2.[0-5] | solaris2.[0-5].*) ;;
9634       *)
9635         # The compiler driver will combine linker options so we
9636         # cannot just pass the convience library names through
9637         # without $wl, iff we do not link with $LD.
9638         # Luckily, gcc supports the same syntax we need for Sun Studio.
9639         # Supported since Solaris 2.6 (maybe 2.5.1?)
9640         case $wlarc in
9641         '')
9642           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9643         *)
9644           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' ;;
9645         esac ;;
9646       esac
9647       link_all_deplibs=yes
9648       ;;
9649
9650     sunos4*)
9651       if test "x$host_vendor" = xsequent; then
9652         # Use $CC to link under sequent, because it throws in some extra .o
9653         # files that make .init and .fini sections work.
9654         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9655       else
9656         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9657       fi
9658       hardcode_libdir_flag_spec='-L$libdir'
9659       hardcode_direct=yes
9660       hardcode_minus_L=yes
9661       hardcode_shlibpath_var=no
9662       ;;
9663
9664     sysv4)
9665       case $host_vendor in
9666         sni)
9667           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9668           hardcode_direct=yes # is this really true???
9669         ;;
9670         siemens)
9671           ## LD is ld it makes a PLAMLIB
9672           ## CC just makes a GrossModule.
9673           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9674           reload_cmds='$CC -r -o $output$reload_objs'
9675           hardcode_direct=no
9676         ;;
9677         motorola)
9678           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9680         ;;
9681       esac
9682       runpath_var='LD_RUN_PATH'
9683       hardcode_shlibpath_var=no
9684       ;;
9685
9686     sysv4.3*)
9687       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9688       hardcode_shlibpath_var=no
9689       export_dynamic_flag_spec='-Bexport'
9690       ;;
9691
9692     sysv4*MP*)
9693       if test -d /usr/nec; then
9694         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9695         hardcode_shlibpath_var=no
9696         runpath_var=LD_RUN_PATH
9697         hardcode_runpath_var=yes
9698         ld_shlibs=yes
9699       fi
9700       ;;
9701
9702     sysv4.2uw2*)
9703       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9704       hardcode_direct=yes
9705       hardcode_minus_L=no
9706       hardcode_shlibpath_var=no
9707       hardcode_runpath_var=yes
9708       runpath_var=LD_RUN_PATH
9709       ;;
9710
9711    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9712       no_undefined_flag='${wl}-z ${wl}text'
9713       if test "$GCC" = yes; then
9714         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9715       else
9716         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9717       fi
9718       runpath_var='LD_RUN_PATH'
9719       hardcode_shlibpath_var=no
9720       ;;
9721
9722     sysv5*)
9723       no_undefined_flag=' -z text'
9724       # $CC -shared without GNU ld will not create a library from C++
9725       # object files and a static libstdc++, better avoid it by now
9726       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9727       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9728                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9729       hardcode_libdir_flag_spec=
9730       hardcode_shlibpath_var=no
9731       runpath_var='LD_RUN_PATH'
9732       ;;
9733
9734     uts4*)
9735       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9736       hardcode_libdir_flag_spec='-L$libdir'
9737       hardcode_shlibpath_var=no
9738       ;;
9739
9740     *)
9741       ld_shlibs=no
9742       ;;
9743     esac
9744   fi
9745
9746 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9747 echo "${ECHO_T}$ld_shlibs" >&6
9748 test "$ld_shlibs" = no && can_build_shared=no
9749
9750 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9751 if test "$GCC" = yes; then
9752   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9753 fi
9754
9755 #
9756 # Do we need to explicitly link libc?
9757 #
9758 case "x$archive_cmds_need_lc" in
9759 x|xyes)
9760   # Assume -lc should be added
9761   archive_cmds_need_lc=yes
9762
9763   if test "$enable_shared" = yes && test "$GCC" = yes; then
9764     case $archive_cmds in
9765     *'~'*)
9766       # FIXME: we may have to deal with multi-command sequences.
9767       ;;
9768     '$CC '*)
9769       # Test whether the compiler implicitly links with -lc since on some
9770       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9771       # to ld, don't add -lc before -lgcc.
9772       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9773 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9774       $rm conftest*
9775       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9776
9777       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9778   (eval $ac_compile) 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); } 2>conftest.err; then
9782         soname=conftest
9783         lib=conftest
9784         libobjs=conftest.$ac_objext
9785         deplibs=
9786         wl=$lt_prog_compiler_wl
9787         compiler_flags=-v
9788         linker_flags=-v
9789         verstring=
9790         output_objdir=.
9791         libname=conftest
9792         lt_save_allow_undefined_flag=$allow_undefined_flag
9793         allow_undefined_flag=
9794         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9795   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9796   ac_status=$?
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); }
9799         then
9800           archive_cmds_need_lc=no
9801         else
9802           archive_cmds_need_lc=yes
9803         fi
9804         allow_undefined_flag=$lt_save_allow_undefined_flag
9805       else
9806         cat conftest.err 1>&5
9807       fi
9808       $rm conftest*
9809       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9810 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9811       ;;
9812     esac
9813   fi
9814   ;;
9815 esac
9816
9817 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9818 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9819 library_names_spec=
9820 libname_spec='lib$name'
9821 soname_spec=
9822 shrext_cmds=".so"
9823 postinstall_cmds=
9824 postuninstall_cmds=
9825 finish_cmds=
9826 finish_eval=
9827 shlibpath_var=
9828 shlibpath_overrides_runpath=unknown
9829 version_type=none
9830 dynamic_linker="$host_os ld.so"
9831 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9832 if test "$GCC" = yes; then
9833   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9834   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9835     # if the path contains ";" then we assume it to be the separator
9836     # otherwise default to the standard path separator (i.e. ":") - it is
9837     # assumed that no part of a normal pathname contains ";" but that should
9838     # okay in the real world where ";" in dirpaths is itself problematic.
9839     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9840   else
9841     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9842   fi
9843 else
9844   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9845 fi
9846 need_lib_prefix=unknown
9847 hardcode_into_libs=no
9848
9849 # when you set need_version to no, make sure it does not cause -set_version
9850 # flags to be left without arguments
9851 need_version=unknown
9852
9853 case $host_os in
9854 aix3*)
9855   version_type=linux
9856   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9857   shlibpath_var=LIBPATH
9858
9859   # AIX 3 has no versioning support, so we append a major version to the name.
9860   soname_spec='${libname}${release}${shared_ext}$major'
9861   ;;
9862
9863 aix4* | aix5*)
9864   version_type=linux
9865   need_lib_prefix=no
9866   need_version=no
9867   hardcode_into_libs=yes
9868   if test "$host_cpu" = ia64; then
9869     # AIX 5 supports IA64
9870     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9871     shlibpath_var=LD_LIBRARY_PATH
9872   else
9873     # With GCC up to 2.95.x, collect2 would create an import file
9874     # for dependence libraries.  The import file would start with
9875     # the line `#! .'.  This would cause the generated library to
9876     # depend on `.', always an invalid library.  This was fixed in
9877     # development snapshots of GCC prior to 3.0.
9878     case $host_os in
9879       aix4 | aix4.[01] | aix4.[01].*)
9880       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9881            echo ' yes '
9882            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9883         :
9884       else
9885         can_build_shared=no
9886       fi
9887       ;;
9888     esac
9889     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9890     # soname into executable. Probably we can add versioning support to
9891     # collect2, so additional links can be useful in future.
9892     if test "$aix_use_runtimelinking" = yes; then
9893       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9894       # instead of lib<name>.a to let people know that these are not
9895       # typical AIX shared libraries.
9896       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9897     else
9898       # We preserve .a as extension for shared libraries through AIX4.2
9899       # and later when we are not doing run time linking.
9900       library_names_spec='${libname}${release}.a $libname.a'
9901       soname_spec='${libname}${release}${shared_ext}$major'
9902     fi
9903     shlibpath_var=LIBPATH
9904   fi
9905   ;;
9906
9907 amigaos*)
9908   library_names_spec='$libname.ixlibrary $libname.a'
9909   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9910   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'
9911   ;;
9912
9913 beos*)
9914   library_names_spec='${libname}${shared_ext}'
9915   dynamic_linker="$host_os ld.so"
9916   shlibpath_var=LIBRARY_PATH
9917   ;;
9918
9919 bsdi[45]*)
9920   version_type=linux
9921   need_version=no
9922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9923   soname_spec='${libname}${release}${shared_ext}$major'
9924   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9925   shlibpath_var=LD_LIBRARY_PATH
9926   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9927   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9928   # the default ld.so.conf also contains /usr/contrib/lib and
9929   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9930   # libtool to hard-code these into programs
9931   ;;
9932
9933 cygwin* | mingw* | pw32*)
9934   version_type=windows
9935   shrext_cmds=".dll"
9936   need_version=no
9937   need_lib_prefix=no
9938
9939   case $GCC,$host_os in
9940   yes,cygwin* | yes,mingw* | yes,pw32*)
9941     library_names_spec='$libname.dll.a'
9942     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9943     postinstall_cmds='base_file=`basename \${file}`~
9944       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9945       dldir=$destdir/`dirname \$dlpath`~
9946       test -d \$dldir || mkdir -p \$dldir~
9947       $install_prog $dir/$dlname \$dldir/$dlname'
9948     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9949       dlpath=$dir/\$dldll~
9950        $rm \$dlpath'
9951     shlibpath_overrides_runpath=yes
9952
9953     case $host_os in
9954     cygwin*)
9955       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9956       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9957       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9958       ;;
9959     mingw*)
9960       # MinGW DLLs use traditional 'lib' prefix
9961       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9962       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9963       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9964         # It is most probably a Windows format PATH printed by
9965         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9966         # path with ; separators, and with drive letters. We can handle the
9967         # drive letters (cygwin fileutils understands them), so leave them,
9968         # especially as we might pass files found there to a mingw objdump,
9969         # which wouldn't understand a cygwinified path. Ahh.
9970         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9971       else
9972         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9973       fi
9974       ;;
9975     pw32*)
9976       # pw32 DLLs use 'pw' prefix rather than 'lib'
9977       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9978       ;;
9979     esac
9980     ;;
9981
9982   *)
9983     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9984     ;;
9985   esac
9986   dynamic_linker='Win32 ld.exe'
9987   # FIXME: first we should search . and the directory the executable is in
9988   shlibpath_var=PATH
9989   ;;
9990
9991 darwin* | rhapsody*)
9992   dynamic_linker="$host_os dyld"
9993   version_type=darwin
9994   need_lib_prefix=no
9995   need_version=no
9996   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9997   soname_spec='${libname}${release}${major}$shared_ext'
9998   shlibpath_overrides_runpath=yes
9999   shlibpath_var=DYLD_LIBRARY_PATH
10000   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10001   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10002   if test "$GCC" = yes; then
10003     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"`
10004   else
10005     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10006   fi
10007   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10008   ;;
10009
10010 dgux*)
10011   version_type=linux
10012   need_lib_prefix=no
10013   need_version=no
10014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10015   soname_spec='${libname}${release}${shared_ext}$major'
10016   shlibpath_var=LD_LIBRARY_PATH
10017   ;;
10018
10019 freebsd1*)
10020   dynamic_linker=no
10021   ;;
10022
10023 kfreebsd*-gnu)
10024   version_type=linux
10025   need_lib_prefix=no
10026   need_version=no
10027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10028   soname_spec='${libname}${release}${shared_ext}$major'
10029   shlibpath_var=LD_LIBRARY_PATH
10030   shlibpath_overrides_runpath=no
10031   hardcode_into_libs=yes
10032   dynamic_linker='GNU ld.so'
10033   ;;
10034
10035 freebsd* | dragonfly*)
10036   # DragonFly does not have aout.  When/if they implement a new
10037   # versioning mechanism, adjust this.
10038   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10039   version_type=freebsd-$objformat
10040   case $version_type in
10041     freebsd-elf*)
10042       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10043       need_version=no
10044       need_lib_prefix=no
10045       ;;
10046     freebsd-*)
10047       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10048       need_version=yes
10049       ;;
10050   esac
10051   shlibpath_var=LD_LIBRARY_PATH
10052   case $host_os in
10053   freebsd2*)
10054     shlibpath_overrides_runpath=yes
10055     ;;
10056   freebsd3.[01]* | freebsdelf3.[01]*)
10057     shlibpath_overrides_runpath=yes
10058     hardcode_into_libs=yes
10059     ;;
10060   *) # from 3.2 on
10061     shlibpath_overrides_runpath=no
10062     hardcode_into_libs=yes
10063     ;;
10064   esac
10065   ;;
10066
10067 gnu*)
10068   version_type=linux
10069   need_lib_prefix=no
10070   need_version=no
10071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10072   soname_spec='${libname}${release}${shared_ext}$major'
10073   shlibpath_var=LD_LIBRARY_PATH
10074   hardcode_into_libs=yes
10075   ;;
10076
10077 hpux9* | hpux10* | hpux11*)
10078   # Give a soname corresponding to the major version so that dld.sl refuses to
10079   # link against other versions.
10080   version_type=sunos
10081   need_lib_prefix=no
10082   need_version=no
10083   case "$host_cpu" in
10084   ia64*)
10085     shrext_cmds='.so'
10086     hardcode_into_libs=yes
10087     dynamic_linker="$host_os dld.so"
10088     shlibpath_var=LD_LIBRARY_PATH
10089     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10090     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10091     soname_spec='${libname}${release}${shared_ext}$major'
10092     if test "X$HPUX_IA64_MODE" = X32; then
10093       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10094     else
10095       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10096     fi
10097     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10098     ;;
10099    hppa*64*)
10100      shrext_cmds='.sl'
10101      hardcode_into_libs=yes
10102      dynamic_linker="$host_os dld.sl"
10103      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10104      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10105      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10106      soname_spec='${libname}${release}${shared_ext}$major'
10107      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10108      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10109      ;;
10110    *)
10111     shrext_cmds='.sl'
10112     dynamic_linker="$host_os dld.sl"
10113     shlibpath_var=SHLIB_PATH
10114     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10115     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10116     soname_spec='${libname}${release}${shared_ext}$major'
10117     ;;
10118   esac
10119   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10120   postinstall_cmds='chmod 555 $lib'
10121   ;;
10122
10123 irix5* | irix6* | nonstopux*)
10124   case $host_os in
10125     nonstopux*) version_type=nonstopux ;;
10126     *)
10127         if test "$lt_cv_prog_gnu_ld" = yes; then
10128                 version_type=linux
10129         else
10130                 version_type=irix
10131         fi ;;
10132   esac
10133   need_lib_prefix=no
10134   need_version=no
10135   soname_spec='${libname}${release}${shared_ext}$major'
10136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10137   case $host_os in
10138   irix5* | nonstopux*)
10139     libsuff= shlibsuff=
10140     ;;
10141   *)
10142     case $LD in # libtool.m4 will add one of these switches to LD
10143     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10144       libsuff= shlibsuff= libmagic=32-bit;;
10145     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10146       libsuff=32 shlibsuff=N32 libmagic=N32;;
10147     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10148       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10149     *) libsuff= shlibsuff= libmagic=never-match;;
10150     esac
10151     ;;
10152   esac
10153   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10154   shlibpath_overrides_runpath=no
10155   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10156   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10157   hardcode_into_libs=yes
10158   ;;
10159
10160 # No shared lib support for Linux oldld, aout, or coff.
10161 linux*oldld* | linux*aout* | linux*coff*)
10162   dynamic_linker=no
10163   ;;
10164
10165 # This must be Linux ELF.
10166 linux*)
10167   version_type=linux
10168   need_lib_prefix=no
10169   need_version=no
10170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10171   soname_spec='${libname}${release}${shared_ext}$major'
10172   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10173   shlibpath_var=LD_LIBRARY_PATH
10174   shlibpath_overrides_runpath=no
10175   # This implies no fast_install, which is unacceptable.
10176   # Some rework will be needed to allow for fast_install
10177   # before this can be enabled.
10178   hardcode_into_libs=yes
10179
10180   # Append ld.so.conf contents to the search path
10181   if test -f /etc/ld.so.conf; then
10182     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' ' '`
10183     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10184   fi
10185
10186   # We used to test for /lib/ld.so.1 and disable shared libraries on
10187   # powerpc, because MkLinux only supported shared libraries with the
10188   # GNU dynamic linker.  Since this was broken with cross compilers,
10189   # most powerpc-linux boxes support dynamic linking these days and
10190   # people can always --disable-shared, the test was removed, and we
10191   # assume the GNU/Linux dynamic linker is in use.
10192   dynamic_linker='GNU/Linux ld.so'
10193   ;;
10194
10195 knetbsd*-gnu)
10196   version_type=linux
10197   need_lib_prefix=no
10198   need_version=no
10199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10200   soname_spec='${libname}${release}${shared_ext}$major'
10201   shlibpath_var=LD_LIBRARY_PATH
10202   shlibpath_overrides_runpath=no
10203   hardcode_into_libs=yes
10204   dynamic_linker='GNU ld.so'
10205   ;;
10206
10207 netbsd*)
10208   version_type=sunos
10209   need_lib_prefix=no
10210   need_version=no
10211   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10212     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10213     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10214     dynamic_linker='NetBSD (a.out) ld.so'
10215   else
10216     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10217     soname_spec='${libname}${release}${shared_ext}$major'
10218     dynamic_linker='NetBSD ld.elf_so'
10219   fi
10220   shlibpath_var=LD_LIBRARY_PATH
10221   shlibpath_overrides_runpath=yes
10222   hardcode_into_libs=yes
10223   ;;
10224
10225 newsos6)
10226   version_type=linux
10227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228   shlibpath_var=LD_LIBRARY_PATH
10229   shlibpath_overrides_runpath=yes
10230   ;;
10231
10232 nto-qnx*)
10233   version_type=linux
10234   need_lib_prefix=no
10235   need_version=no
10236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237   soname_spec='${libname}${release}${shared_ext}$major'
10238   shlibpath_var=LD_LIBRARY_PATH
10239   shlibpath_overrides_runpath=yes
10240   ;;
10241
10242 openbsd*)
10243   version_type=sunos
10244   need_lib_prefix=no
10245   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10246   case $host_os in
10247     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10248     *)                         need_version=no  ;;
10249   esac
10250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10251   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10252   shlibpath_var=LD_LIBRARY_PATH
10253   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10254     case $host_os in
10255       openbsd2.[89] | openbsd2.[89].*)
10256         shlibpath_overrides_runpath=no
10257         ;;
10258       *)
10259         shlibpath_overrides_runpath=yes
10260         ;;
10261       esac
10262   else
10263     shlibpath_overrides_runpath=yes
10264   fi
10265   ;;
10266
10267 os2*)
10268   libname_spec='$name'
10269   shrext_cmds=".dll"
10270   need_lib_prefix=no
10271   library_names_spec='$libname${shared_ext} $libname.a'
10272   dynamic_linker='OS/2 ld.exe'
10273   shlibpath_var=LIBPATH
10274   ;;
10275
10276 osf3* | osf4* | osf5*)
10277   version_type=osf
10278   need_lib_prefix=no
10279   need_version=no
10280   soname_spec='${libname}${release}${shared_ext}$major'
10281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10282   shlibpath_var=LD_LIBRARY_PATH
10283   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10284   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10285   ;;
10286
10287 sco3.2v5*)
10288   version_type=osf
10289   soname_spec='${libname}${release}${shared_ext}$major'
10290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291   shlibpath_var=LD_LIBRARY_PATH
10292   ;;
10293
10294 solaris*)
10295   version_type=linux
10296   need_lib_prefix=no
10297   need_version=no
10298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299   soname_spec='${libname}${release}${shared_ext}$major'
10300   shlibpath_var=LD_LIBRARY_PATH
10301   shlibpath_overrides_runpath=yes
10302   hardcode_into_libs=yes
10303   # ldd complains unless libraries are executable
10304   postinstall_cmds='chmod +x $lib'
10305   ;;
10306
10307 sunos4*)
10308   version_type=sunos
10309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10310   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10311   shlibpath_var=LD_LIBRARY_PATH
10312   shlibpath_overrides_runpath=yes
10313   if test "$with_gnu_ld" = yes; then
10314     need_lib_prefix=no
10315   fi
10316   need_version=yes
10317   ;;
10318
10319 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10320   version_type=linux
10321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322   soname_spec='${libname}${release}${shared_ext}$major'
10323   shlibpath_var=LD_LIBRARY_PATH
10324   case $host_vendor in
10325     sni)
10326       shlibpath_overrides_runpath=no
10327       need_lib_prefix=no
10328       export_dynamic_flag_spec='${wl}-Blargedynsym'
10329       runpath_var=LD_RUN_PATH
10330       ;;
10331     siemens)
10332       need_lib_prefix=no
10333       ;;
10334     motorola)
10335       need_lib_prefix=no
10336       need_version=no
10337       shlibpath_overrides_runpath=no
10338       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10339       ;;
10340   esac
10341   ;;
10342
10343 sysv4*MP*)
10344   if test -d /usr/nec ;then
10345     version_type=linux
10346     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10347     soname_spec='$libname${shared_ext}.$major'
10348     shlibpath_var=LD_LIBRARY_PATH
10349   fi
10350   ;;
10351
10352 uts4*)
10353   version_type=linux
10354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10355   soname_spec='${libname}${release}${shared_ext}$major'
10356   shlibpath_var=LD_LIBRARY_PATH
10357   ;;
10358
10359 *)
10360   dynamic_linker=no
10361   ;;
10362 esac
10363 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10364 echo "${ECHO_T}$dynamic_linker" >&6
10365 test "$dynamic_linker" = no && can_build_shared=no
10366
10367 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10368 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10369 hardcode_action=
10370 if test -n "$hardcode_libdir_flag_spec" || \
10371    test -n "$runpath_var" || \
10372    test "X$hardcode_automatic" = "Xyes" ; then
10373
10374   # We can hardcode non-existant directories.
10375   if test "$hardcode_direct" != no &&
10376      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10377      # have to relink, otherwise we might link with an installed library
10378      # when we should be linking with a yet-to-be-installed one
10379      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10380      test "$hardcode_minus_L" != no; then
10381     # Linking always hardcodes the temporary library directory.
10382     hardcode_action=relink
10383   else
10384     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10385     hardcode_action=immediate
10386   fi
10387 else
10388   # We cannot hardcode anything, or else we can only hardcode existing
10389   # directories.
10390   hardcode_action=unsupported
10391 fi
10392 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10393 echo "${ECHO_T}$hardcode_action" >&6
10394
10395 if test "$hardcode_action" = relink; then
10396   # Fast installation is not supported
10397   enable_fast_install=no
10398 elif test "$shlibpath_overrides_runpath" = yes ||
10399      test "$enable_shared" = no; then
10400   # Fast installation is not necessary
10401   enable_fast_install=needless
10402 fi
10403
10404 striplib=
10405 old_striplib=
10406 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10407 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10408 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10409   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10410   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10411   echo "$as_me:$LINENO: result: yes" >&5
10412 echo "${ECHO_T}yes" >&6
10413 else
10414 # FIXME - insert some real tests, host_os isn't really good enough
10415   case $host_os in
10416    darwin*)
10417        if test -n "$STRIP" ; then
10418          striplib="$STRIP -x"
10419          echo "$as_me:$LINENO: result: yes" >&5
10420 echo "${ECHO_T}yes" >&6
10421        else
10422   echo "$as_me:$LINENO: result: no" >&5
10423 echo "${ECHO_T}no" >&6
10424 fi
10425        ;;
10426    *)
10427   echo "$as_me:$LINENO: result: no" >&5
10428 echo "${ECHO_T}no" >&6
10429     ;;
10430   esac
10431 fi
10432
10433 if test "x$enable_dlopen" != xyes; then
10434   enable_dlopen=unknown
10435   enable_dlopen_self=unknown
10436   enable_dlopen_self_static=unknown
10437 else
10438   lt_cv_dlopen=no
10439   lt_cv_dlopen_libs=
10440
10441   case $host_os in
10442   beos*)
10443     lt_cv_dlopen="load_add_on"
10444     lt_cv_dlopen_libs=
10445     lt_cv_dlopen_self=yes
10446     ;;
10447
10448   mingw* | pw32*)
10449     lt_cv_dlopen="LoadLibrary"
10450     lt_cv_dlopen_libs=
10451    ;;
10452
10453   cygwin*)
10454     lt_cv_dlopen="dlopen"
10455     lt_cv_dlopen_libs=
10456    ;;
10457
10458   darwin*)
10459   # if libdl is installed we need to link against it
10460     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10461 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10462 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10463   echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465   ac_check_lib_save_LIBS=$LIBS
10466 LIBS="-ldl  $LIBS"
10467 cat >conftest.$ac_ext <<_ACEOF
10468 /* confdefs.h.  */
10469 _ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h.  */
10473
10474 /* Override any gcc2 internal prototype to avoid an error.  */
10475 #ifdef __cplusplus
10476 extern "C"
10477 #endif
10478 /* We use char because int might match the return type of a gcc2
10479    builtin and then its argument prototype would still apply.  */
10480 char dlopen ();
10481 int
10482 main ()
10483 {
10484 dlopen ();
10485   ;
10486   return 0;
10487 }
10488 _ACEOF
10489 rm -f conftest.$ac_objext conftest$ac_exeext
10490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10491   (eval $ac_link) 2>conftest.er1
10492   ac_status=$?
10493   grep -v '^ *+' conftest.er1 >conftest.err
10494   rm -f conftest.er1
10495   cat conftest.err >&5
10496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497   (exit $ac_status); } &&
10498          { ac_try='test -z "$ac_c_werror_flag"
10499                          || test ! -s conftest.err'
10500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501   (eval $ac_try) 2>&5
10502   ac_status=$?
10503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504   (exit $ac_status); }; } &&
10505          { ac_try='test -s conftest$ac_exeext'
10506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507   (eval $ac_try) 2>&5
10508   ac_status=$?
10509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510   (exit $ac_status); }; }; then
10511   ac_cv_lib_dl_dlopen=yes
10512 else
10513   echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10515
10516 ac_cv_lib_dl_dlopen=no
10517 fi
10518 rm -f conftest.err conftest.$ac_objext \
10519       conftest$ac_exeext conftest.$ac_ext
10520 LIBS=$ac_check_lib_save_LIBS
10521 fi
10522 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10523 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10524 if test $ac_cv_lib_dl_dlopen = yes; then
10525   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10526 else
10527
10528     lt_cv_dlopen="dyld"
10529     lt_cv_dlopen_libs=
10530     lt_cv_dlopen_self=yes
10531
10532 fi
10533
10534    ;;
10535
10536   *)
10537     echo "$as_me:$LINENO: checking for shl_load" >&5
10538 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10539 if test "${ac_cv_func_shl_load+set}" = set; then
10540   echo $ECHO_N "(cached) $ECHO_C" >&6
10541 else
10542   cat >conftest.$ac_ext <<_ACEOF
10543 /* confdefs.h.  */
10544 _ACEOF
10545 cat confdefs.h >>conftest.$ac_ext
10546 cat >>conftest.$ac_ext <<_ACEOF
10547 /* end confdefs.h.  */
10548 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10550 #define shl_load innocuous_shl_load
10551
10552 /* System header to define __stub macros and hopefully few prototypes,
10553     which can conflict with char shl_load (); below.
10554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10555     <limits.h> exists even on freestanding compilers.  */
10556
10557 #ifdef __STDC__
10558 # include <limits.h>
10559 #else
10560 # include <assert.h>
10561 #endif
10562
10563 #undef shl_load
10564
10565 /* Override any gcc2 internal prototype to avoid an error.  */
10566 #ifdef __cplusplus
10567 extern "C"
10568 {
10569 #endif
10570 /* We use char because int might match the return type of a gcc2
10571    builtin and then its argument prototype would still apply.  */
10572 char shl_load ();
10573 /* The GNU C library defines this for functions which it implements
10574     to always fail with ENOSYS.  Some functions are actually named
10575     something starting with __ and the normal name is an alias.  */
10576 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10577 choke me
10578 #else
10579 char (*f) () = shl_load;
10580 #endif
10581 #ifdef __cplusplus
10582 }
10583 #endif
10584
10585 int
10586 main ()
10587 {
10588 return f != shl_load;
10589   ;
10590   return 0;
10591 }
10592 _ACEOF
10593 rm -f conftest.$ac_objext conftest$ac_exeext
10594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10595   (eval $ac_link) 2>conftest.er1
10596   ac_status=$?
10597   grep -v '^ *+' conftest.er1 >conftest.err
10598   rm -f conftest.er1
10599   cat conftest.err >&5
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); } &&
10602          { ac_try='test -z "$ac_c_werror_flag"
10603                          || test ! -s conftest.err'
10604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605   (eval $ac_try) 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); }; } &&
10609          { ac_try='test -s conftest$ac_exeext'
10610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611   (eval $ac_try) 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); }; }; then
10615   ac_cv_func_shl_load=yes
10616 else
10617   echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10619
10620 ac_cv_func_shl_load=no
10621 fi
10622 rm -f conftest.err conftest.$ac_objext \
10623       conftest$ac_exeext conftest.$ac_ext
10624 fi
10625 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10626 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10627 if test $ac_cv_func_shl_load = yes; then
10628   lt_cv_dlopen="shl_load"
10629 else
10630   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10631 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10632 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10633   echo $ECHO_N "(cached) $ECHO_C" >&6
10634 else
10635   ac_check_lib_save_LIBS=$LIBS
10636 LIBS="-ldld  $LIBS"
10637 cat >conftest.$ac_ext <<_ACEOF
10638 /* confdefs.h.  */
10639 _ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h.  */
10643
10644 /* Override any gcc2 internal prototype to avoid an error.  */
10645 #ifdef __cplusplus
10646 extern "C"
10647 #endif
10648 /* We use char because int might match the return type of a gcc2
10649    builtin and then its argument prototype would still apply.  */
10650 char shl_load ();
10651 int
10652 main ()
10653 {
10654 shl_load ();
10655   ;
10656   return 0;
10657 }
10658 _ACEOF
10659 rm -f conftest.$ac_objext conftest$ac_exeext
10660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10661   (eval $ac_link) 2>conftest.er1
10662   ac_status=$?
10663   grep -v '^ *+' conftest.er1 >conftest.err
10664   rm -f conftest.er1
10665   cat conftest.err >&5
10666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667   (exit $ac_status); } &&
10668          { ac_try='test -z "$ac_c_werror_flag"
10669                          || test ! -s conftest.err'
10670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671   (eval $ac_try) 2>&5
10672   ac_status=$?
10673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674   (exit $ac_status); }; } &&
10675          { ac_try='test -s conftest$ac_exeext'
10676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677   (eval $ac_try) 2>&5
10678   ac_status=$?
10679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680   (exit $ac_status); }; }; then
10681   ac_cv_lib_dld_shl_load=yes
10682 else
10683   echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10685
10686 ac_cv_lib_dld_shl_load=no
10687 fi
10688 rm -f conftest.err conftest.$ac_objext \
10689       conftest$ac_exeext conftest.$ac_ext
10690 LIBS=$ac_check_lib_save_LIBS
10691 fi
10692 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10693 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10694 if test $ac_cv_lib_dld_shl_load = yes; then
10695   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10696 else
10697   echo "$as_me:$LINENO: checking for dlopen" >&5
10698 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10699 if test "${ac_cv_func_dlopen+set}" = set; then
10700   echo $ECHO_N "(cached) $ECHO_C" >&6
10701 else
10702   cat >conftest.$ac_ext <<_ACEOF
10703 /* confdefs.h.  */
10704 _ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h.  */
10708 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10710 #define dlopen innocuous_dlopen
10711
10712 /* System header to define __stub macros and hopefully few prototypes,
10713     which can conflict with char dlopen (); below.
10714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10715     <limits.h> exists even on freestanding compilers.  */
10716
10717 #ifdef __STDC__
10718 # include <limits.h>
10719 #else
10720 # include <assert.h>
10721 #endif
10722
10723 #undef dlopen
10724
10725 /* Override any gcc2 internal prototype to avoid an error.  */
10726 #ifdef __cplusplus
10727 extern "C"
10728 {
10729 #endif
10730 /* We use char because int might match the return type of a gcc2
10731    builtin and then its argument prototype would still apply.  */
10732 char dlopen ();
10733 /* The GNU C library defines this for functions which it implements
10734     to always fail with ENOSYS.  Some functions are actually named
10735     something starting with __ and the normal name is an alias.  */
10736 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10737 choke me
10738 #else
10739 char (*f) () = dlopen;
10740 #endif
10741 #ifdef __cplusplus
10742 }
10743 #endif
10744
10745 int
10746 main ()
10747 {
10748 return f != dlopen;
10749   ;
10750   return 0;
10751 }
10752 _ACEOF
10753 rm -f conftest.$ac_objext conftest$ac_exeext
10754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10755   (eval $ac_link) 2>conftest.er1
10756   ac_status=$?
10757   grep -v '^ *+' conftest.er1 >conftest.err
10758   rm -f conftest.er1
10759   cat conftest.err >&5
10760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761   (exit $ac_status); } &&
10762          { ac_try='test -z "$ac_c_werror_flag"
10763                          || test ! -s conftest.err'
10764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765   (eval $ac_try) 2>&5
10766   ac_status=$?
10767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768   (exit $ac_status); }; } &&
10769          { ac_try='test -s conftest$ac_exeext'
10770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771   (eval $ac_try) 2>&5
10772   ac_status=$?
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); }; }; then
10775   ac_cv_func_dlopen=yes
10776 else
10777   echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10779
10780 ac_cv_func_dlopen=no
10781 fi
10782 rm -f conftest.err conftest.$ac_objext \
10783       conftest$ac_exeext conftest.$ac_ext
10784 fi
10785 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10786 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10787 if test $ac_cv_func_dlopen = yes; then
10788   lt_cv_dlopen="dlopen"
10789 else
10790   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10791 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10792 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10793   echo $ECHO_N "(cached) $ECHO_C" >&6
10794 else
10795   ac_check_lib_save_LIBS=$LIBS
10796 LIBS="-ldl  $LIBS"
10797 cat >conftest.$ac_ext <<_ACEOF
10798 /* confdefs.h.  */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h.  */
10803
10804 /* Override any gcc2 internal prototype to avoid an error.  */
10805 #ifdef __cplusplus
10806 extern "C"
10807 #endif
10808 /* We use char because int might match the return type of a gcc2
10809    builtin and then its argument prototype would still apply.  */
10810 char dlopen ();
10811 int
10812 main ()
10813 {
10814 dlopen ();
10815   ;
10816   return 0;
10817 }
10818 _ACEOF
10819 rm -f conftest.$ac_objext conftest$ac_exeext
10820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10821   (eval $ac_link) 2>conftest.er1
10822   ac_status=$?
10823   grep -v '^ *+' conftest.er1 >conftest.err
10824   rm -f conftest.er1
10825   cat conftest.err >&5
10826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827   (exit $ac_status); } &&
10828          { ac_try='test -z "$ac_c_werror_flag"
10829                          || test ! -s conftest.err'
10830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831   (eval $ac_try) 2>&5
10832   ac_status=$?
10833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834   (exit $ac_status); }; } &&
10835          { ac_try='test -s conftest$ac_exeext'
10836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837   (eval $ac_try) 2>&5
10838   ac_status=$?
10839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840   (exit $ac_status); }; }; then
10841   ac_cv_lib_dl_dlopen=yes
10842 else
10843   echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10845
10846 ac_cv_lib_dl_dlopen=no
10847 fi
10848 rm -f conftest.err conftest.$ac_objext \
10849       conftest$ac_exeext conftest.$ac_ext
10850 LIBS=$ac_check_lib_save_LIBS
10851 fi
10852 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10853 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10854 if test $ac_cv_lib_dl_dlopen = yes; then
10855   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10856 else
10857   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10858 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10859 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10860   echo $ECHO_N "(cached) $ECHO_C" >&6
10861 else
10862   ac_check_lib_save_LIBS=$LIBS
10863 LIBS="-lsvld  $LIBS"
10864 cat >conftest.$ac_ext <<_ACEOF
10865 /* confdefs.h.  */
10866 _ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h.  */
10870
10871 /* Override any gcc2 internal prototype to avoid an error.  */
10872 #ifdef __cplusplus
10873 extern "C"
10874 #endif
10875 /* We use char because int might match the return type of a gcc2
10876    builtin and then its argument prototype would still apply.  */
10877 char dlopen ();
10878 int
10879 main ()
10880 {
10881 dlopen ();
10882   ;
10883   return 0;
10884 }
10885 _ACEOF
10886 rm -f conftest.$ac_objext conftest$ac_exeext
10887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10888   (eval $ac_link) 2>conftest.er1
10889   ac_status=$?
10890   grep -v '^ *+' conftest.er1 >conftest.err
10891   rm -f conftest.er1
10892   cat conftest.err >&5
10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894   (exit $ac_status); } &&
10895          { ac_try='test -z "$ac_c_werror_flag"
10896                          || test ! -s conftest.err'
10897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898   (eval $ac_try) 2>&5
10899   ac_status=$?
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); }; } &&
10902          { ac_try='test -s conftest$ac_exeext'
10903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904   (eval $ac_try) 2>&5
10905   ac_status=$?
10906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907   (exit $ac_status); }; }; then
10908   ac_cv_lib_svld_dlopen=yes
10909 else
10910   echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10912
10913 ac_cv_lib_svld_dlopen=no
10914 fi
10915 rm -f conftest.err conftest.$ac_objext \
10916       conftest$ac_exeext conftest.$ac_ext
10917 LIBS=$ac_check_lib_save_LIBS
10918 fi
10919 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10920 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10921 if test $ac_cv_lib_svld_dlopen = yes; then
10922   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10923 else
10924   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10925 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10926 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10927   echo $ECHO_N "(cached) $ECHO_C" >&6
10928 else
10929   ac_check_lib_save_LIBS=$LIBS
10930 LIBS="-ldld  $LIBS"
10931 cat >conftest.$ac_ext <<_ACEOF
10932 /* confdefs.h.  */
10933 _ACEOF
10934 cat confdefs.h >>conftest.$ac_ext
10935 cat >>conftest.$ac_ext <<_ACEOF
10936 /* end confdefs.h.  */
10937
10938 /* Override any gcc2 internal prototype to avoid an error.  */
10939 #ifdef __cplusplus
10940 extern "C"
10941 #endif
10942 /* We use char because int might match the return type of a gcc2
10943    builtin and then its argument prototype would still apply.  */
10944 char dld_link ();
10945 int
10946 main ()
10947 {
10948 dld_link ();
10949   ;
10950   return 0;
10951 }
10952 _ACEOF
10953 rm -f conftest.$ac_objext conftest$ac_exeext
10954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10955   (eval $ac_link) 2>conftest.er1
10956   ac_status=$?
10957   grep -v '^ *+' conftest.er1 >conftest.err
10958   rm -f conftest.er1
10959   cat conftest.err >&5
10960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961   (exit $ac_status); } &&
10962          { ac_try='test -z "$ac_c_werror_flag"
10963                          || test ! -s conftest.err'
10964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10965   (eval $ac_try) 2>&5
10966   ac_status=$?
10967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968   (exit $ac_status); }; } &&
10969          { ac_try='test -s conftest$ac_exeext'
10970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971   (eval $ac_try) 2>&5
10972   ac_status=$?
10973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974   (exit $ac_status); }; }; then
10975   ac_cv_lib_dld_dld_link=yes
10976 else
10977   echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10979
10980 ac_cv_lib_dld_dld_link=no
10981 fi
10982 rm -f conftest.err conftest.$ac_objext \
10983       conftest$ac_exeext conftest.$ac_ext
10984 LIBS=$ac_check_lib_save_LIBS
10985 fi
10986 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10987 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10988 if test $ac_cv_lib_dld_dld_link = yes; then
10989   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10990 fi
10991
10992
10993 fi
10994
10995
10996 fi
10997
10998
10999 fi
11000
11001
11002 fi
11003
11004
11005 fi
11006
11007     ;;
11008   esac
11009
11010   if test "x$lt_cv_dlopen" != xno; then
11011     enable_dlopen=yes
11012   else
11013     enable_dlopen=no
11014   fi
11015
11016   case $lt_cv_dlopen in
11017   dlopen)
11018     save_CPPFLAGS="$CPPFLAGS"
11019     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11020
11021     save_LDFLAGS="$LDFLAGS"
11022     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11023
11024     save_LIBS="$LIBS"
11025     LIBS="$lt_cv_dlopen_libs $LIBS"
11026
11027     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11028 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11029 if test "${lt_cv_dlopen_self+set}" = set; then
11030   echo $ECHO_N "(cached) $ECHO_C" >&6
11031 else
11032           if test "$cross_compiling" = yes; then :
11033   lt_cv_dlopen_self=cross
11034 else
11035   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11036   lt_status=$lt_dlunknown
11037   cat > conftest.$ac_ext <<EOF
11038 #line 11038 "configure"
11039 #include "confdefs.h"
11040
11041 #if HAVE_DLFCN_H
11042 #include <dlfcn.h>
11043 #endif
11044
11045 #include <stdio.h>
11046
11047 #ifdef RTLD_GLOBAL
11048 #  define LT_DLGLOBAL           RTLD_GLOBAL
11049 #else
11050 #  ifdef DL_GLOBAL
11051 #    define LT_DLGLOBAL         DL_GLOBAL
11052 #  else
11053 #    define LT_DLGLOBAL         0
11054 #  endif
11055 #endif
11056
11057 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11058    find out it does not work in some platform. */
11059 #ifndef LT_DLLAZY_OR_NOW
11060 #  ifdef RTLD_LAZY
11061 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11062 #  else
11063 #    ifdef DL_LAZY
11064 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11065 #    else
11066 #      ifdef RTLD_NOW
11067 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11068 #      else
11069 #        ifdef DL_NOW
11070 #          define LT_DLLAZY_OR_NOW      DL_NOW
11071 #        else
11072 #          define LT_DLLAZY_OR_NOW      0
11073 #        endif
11074 #      endif
11075 #    endif
11076 #  endif
11077 #endif
11078
11079 #ifdef __cplusplus
11080 extern "C" void exit (int);
11081 #endif
11082
11083 void fnord() { int i=42;}
11084 int main ()
11085 {
11086   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11087   int status = $lt_dlunknown;
11088
11089   if (self)
11090     {
11091       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11092       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11093       /* dlclose (self); */
11094     }
11095
11096     exit (status);
11097 }
11098 EOF
11099   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11100   (eval $ac_link) 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11104     (./conftest; exit; ) 2>/dev/null
11105     lt_status=$?
11106     case x$lt_status in
11107       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11108       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11109       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11110     esac
11111   else :
11112     # compilation failed
11113     lt_cv_dlopen_self=no
11114   fi
11115 fi
11116 rm -fr conftest*
11117
11118
11119 fi
11120 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11121 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11122
11123     if test "x$lt_cv_dlopen_self" = xyes; then
11124       LDFLAGS="$LDFLAGS $link_static_flag"
11125       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11126 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11127 if test "${lt_cv_dlopen_self_static+set}" = set; then
11128   echo $ECHO_N "(cached) $ECHO_C" >&6
11129 else
11130           if test "$cross_compiling" = yes; then :
11131   lt_cv_dlopen_self_static=cross
11132 else
11133   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11134   lt_status=$lt_dlunknown
11135   cat > conftest.$ac_ext <<EOF
11136 #line 11136 "configure"
11137 #include "confdefs.h"
11138
11139 #if HAVE_DLFCN_H
11140 #include <dlfcn.h>
11141 #endif
11142
11143 #include <stdio.h>
11144
11145 #ifdef RTLD_GLOBAL
11146 #  define LT_DLGLOBAL           RTLD_GLOBAL
11147 #else
11148 #  ifdef DL_GLOBAL
11149 #    define LT_DLGLOBAL         DL_GLOBAL
11150 #  else
11151 #    define LT_DLGLOBAL         0
11152 #  endif
11153 #endif
11154
11155 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11156    find out it does not work in some platform. */
11157 #ifndef LT_DLLAZY_OR_NOW
11158 #  ifdef RTLD_LAZY
11159 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11160 #  else
11161 #    ifdef DL_LAZY
11162 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11163 #    else
11164 #      ifdef RTLD_NOW
11165 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11166 #      else
11167 #        ifdef DL_NOW
11168 #          define LT_DLLAZY_OR_NOW      DL_NOW
11169 #        else
11170 #          define LT_DLLAZY_OR_NOW      0
11171 #        endif
11172 #      endif
11173 #    endif
11174 #  endif
11175 #endif
11176
11177 #ifdef __cplusplus
11178 extern "C" void exit (int);
11179 #endif
11180
11181 void fnord() { int i=42;}
11182 int main ()
11183 {
11184   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11185   int status = $lt_dlunknown;
11186
11187   if (self)
11188     {
11189       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11190       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11191       /* dlclose (self); */
11192     }
11193
11194     exit (status);
11195 }
11196 EOF
11197   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11198   (eval $ac_link) 2>&5
11199   ac_status=$?
11200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11202     (./conftest; exit; ) 2>/dev/null
11203     lt_status=$?
11204     case x$lt_status in
11205       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11206       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11207       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11208     esac
11209   else :
11210     # compilation failed
11211     lt_cv_dlopen_self_static=no
11212   fi
11213 fi
11214 rm -fr conftest*
11215
11216
11217 fi
11218 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11219 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11220     fi
11221
11222     CPPFLAGS="$save_CPPFLAGS"
11223     LDFLAGS="$save_LDFLAGS"
11224     LIBS="$save_LIBS"
11225     ;;
11226   esac
11227
11228   case $lt_cv_dlopen_self in
11229   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11230   *) enable_dlopen_self=unknown ;;
11231   esac
11232
11233   case $lt_cv_dlopen_self_static in
11234   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11235   *) enable_dlopen_self_static=unknown ;;
11236   esac
11237 fi
11238
11239
11240 # Report which librarie types wil actually be built
11241 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11242 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11243 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11244 echo "${ECHO_T}$can_build_shared" >&6
11245
11246 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11247 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11248 test "$can_build_shared" = "no" && enable_shared=no
11249
11250 # On AIX, shared libraries and static libraries use the same namespace, and
11251 # are all built from PIC.
11252 case "$host_os" in
11253 aix3*)
11254   test "$enable_shared" = yes && enable_static=no
11255   if test -n "$RANLIB"; then
11256     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11257     postinstall_cmds='$RANLIB $lib'
11258   fi
11259   ;;
11260
11261 aix4* | aix5*)
11262   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11263     test "$enable_shared" = yes && enable_static=no
11264   fi
11265     ;;
11266 esac
11267 echo "$as_me:$LINENO: result: $enable_shared" >&5
11268 echo "${ECHO_T}$enable_shared" >&6
11269
11270 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11271 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11272 # Make sure either enable_shared or enable_static is yes.
11273 test "$enable_shared" = yes || enable_static=yes
11274 echo "$as_me:$LINENO: result: $enable_static" >&5
11275 echo "${ECHO_T}$enable_static" >&6
11276
11277 # The else clause should only fire when bootstrapping the
11278 # libtool distribution, otherwise you forgot to ship ltmain.sh
11279 # with your package, and you will get complaints that there are
11280 # no rules to generate ltmain.sh.
11281 if test -f "$ltmain"; then
11282   # See if we are running on zsh, and set the options which allow our commands through
11283   # without removal of \ escapes.
11284   if test -n "${ZSH_VERSION+set}" ; then
11285     setopt NO_GLOB_SUBST
11286   fi
11287   # Now quote all the things that may contain metacharacters while being
11288   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11289   # variables and quote the copies for generation of the libtool script.
11290   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11291     SED SHELL STRIP \
11292     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11293     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11294     deplibs_check_method reload_flag reload_cmds need_locks \
11295     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11296     lt_cv_sys_global_symbol_to_c_name_address \
11297     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11298     old_postinstall_cmds old_postuninstall_cmds \
11299     compiler \
11300     CC \
11301     LD \
11302     lt_prog_compiler_wl \
11303     lt_prog_compiler_pic \
11304     lt_prog_compiler_static \
11305     lt_prog_compiler_no_builtin_flag \
11306     export_dynamic_flag_spec \
11307     thread_safe_flag_spec \
11308     whole_archive_flag_spec \
11309     enable_shared_with_static_runtimes \
11310     old_archive_cmds \
11311     old_archive_from_new_cmds \
11312     predep_objects \
11313     postdep_objects \
11314     predeps \
11315     postdeps \
11316     compiler_lib_search_path \
11317     archive_cmds \
11318     archive_expsym_cmds \
11319     postinstall_cmds \
11320     postuninstall_cmds \
11321     old_archive_from_expsyms_cmds \
11322     allow_undefined_flag \
11323     no_undefined_flag \
11324     export_symbols_cmds \
11325     hardcode_libdir_flag_spec \
11326     hardcode_libdir_flag_spec_ld \
11327     hardcode_libdir_separator \
11328     hardcode_automatic \
11329     module_cmds \
11330     module_expsym_cmds \
11331     lt_cv_prog_compiler_c_o \
11332     exclude_expsyms \
11333     include_expsyms; do
11334
11335     case $var in
11336     old_archive_cmds | \
11337     old_archive_from_new_cmds | \
11338     archive_cmds | \
11339     archive_expsym_cmds | \
11340     module_cmds | \
11341     module_expsym_cmds | \
11342     old_archive_from_expsyms_cmds | \
11343     export_symbols_cmds | \
11344     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11345     postinstall_cmds | postuninstall_cmds | \
11346     old_postinstall_cmds | old_postuninstall_cmds | \
11347     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11348       # Double-quote double-evaled strings.
11349       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11350       ;;
11351     *)
11352       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11353       ;;
11354     esac
11355   done
11356
11357   case $lt_echo in
11358   *'\$0 --fallback-echo"')
11359     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11360     ;;
11361   esac
11362
11363 cfgfile="${ofile}T"
11364   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11365   $rm -f "$cfgfile"
11366   { echo "$as_me:$LINENO: creating $ofile" >&5
11367 echo "$as_me: creating $ofile" >&6;}
11368
11369   cat <<__EOF__ >> "$cfgfile"
11370 #! $SHELL
11371
11372 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11373 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11374 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11375 #
11376 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11377 # Free Software Foundation, Inc.
11378 #
11379 # This file is part of GNU Libtool:
11380 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11381 #
11382 # This program is free software; you can redistribute it and/or modify
11383 # it under the terms of the GNU General Public License as published by
11384 # the Free Software Foundation; either version 2 of the License, or
11385 # (at your option) any later version.
11386 #
11387 # This program is distributed in the hope that it will be useful, but
11388 # WITHOUT ANY WARRANTY; without even the implied warranty of
11389 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11390 # General Public License for more details.
11391 #
11392 # You should have received a copy of the GNU General Public License
11393 # along with this program; if not, write to the Free Software
11394 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11395 #
11396 # As a special exception to the GNU General Public License, if you
11397 # distribute this file as part of a program that contains a
11398 # configuration script generated by Autoconf, you may include it under
11399 # the same distribution terms that you use for the rest of that program.
11400
11401 # A sed program that does not truncate output.
11402 SED=$lt_SED
11403
11404 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11405 Xsed="$SED -e 1s/^X//"
11406
11407 # The HP-UX ksh and POSIX shell print the target directory to stdout
11408 # if CDPATH is set.
11409 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11410
11411 # The names of the tagged configurations supported by this script.
11412 available_tags=
11413
11414 # ### BEGIN LIBTOOL CONFIG
11415
11416 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11417
11418 # Shell to use when invoking shell scripts.
11419 SHELL=$lt_SHELL
11420
11421 # Whether or not to build shared libraries.
11422 build_libtool_libs=$enable_shared
11423
11424 # Whether or not to build static libraries.
11425 build_old_libs=$enable_static
11426
11427 # Whether or not to add -lc for building shared libraries.
11428 build_libtool_need_lc=$archive_cmds_need_lc
11429
11430 # Whether or not to disallow shared libs when runtime libs are static
11431 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11432
11433 # Whether or not to optimize for fast installation.
11434 fast_install=$enable_fast_install
11435
11436 # The host system.
11437 host_alias=$host_alias
11438 host=$host
11439 host_os=$host_os
11440
11441 # The build system.
11442 build_alias=$build_alias
11443 build=$build
11444 build_os=$build_os
11445
11446 # An echo program that does not interpret backslashes.
11447 echo=$lt_echo
11448
11449 # The archiver.
11450 AR=$lt_AR
11451 AR_FLAGS=$lt_AR_FLAGS
11452
11453 # A C compiler.
11454 LTCC=$lt_LTCC
11455
11456 # A language-specific compiler.
11457 CC=$lt_compiler
11458
11459 # Is the compiler the GNU C compiler?
11460 with_gcc=$GCC
11461
11462 # An ERE matcher.
11463 EGREP=$lt_EGREP
11464
11465 # The linker used to build libraries.
11466 LD=$lt_LD
11467
11468 # Whether we need hard or soft links.
11469 LN_S=$lt_LN_S
11470
11471 # A BSD-compatible nm program.
11472 NM=$lt_NM
11473
11474 # A symbol stripping program
11475 STRIP=$lt_STRIP
11476
11477 # Used to examine libraries when file_magic_cmd begins "file"
11478 MAGIC_CMD=$MAGIC_CMD
11479
11480 # Used on cygwin: DLL creation program.
11481 DLLTOOL="$DLLTOOL"
11482
11483 # Used on cygwin: object dumper.
11484 OBJDUMP="$OBJDUMP"
11485
11486 # Used on cygwin: assembler.
11487 AS="$AS"
11488
11489 # The name of the directory that contains temporary libtool files.
11490 objdir=$objdir
11491
11492 # How to create reloadable object files.
11493 reload_flag=$lt_reload_flag
11494 reload_cmds=$lt_reload_cmds
11495
11496 # How to pass a linker flag through the compiler.
11497 wl=$lt_lt_prog_compiler_wl
11498
11499 # Object file suffix (normally "o").
11500 objext="$ac_objext"
11501
11502 # Old archive suffix (normally "a").
11503 libext="$libext"
11504
11505 # Shared library suffix (normally ".so").
11506 shrext_cmds='$shrext_cmds'
11507
11508 # Executable file suffix (normally "").
11509 exeext="$exeext"
11510
11511 # Additional compiler flags for building library objects.
11512 pic_flag=$lt_lt_prog_compiler_pic
11513 pic_mode=$pic_mode
11514
11515 # What is the maximum length of a command?
11516 max_cmd_len=$lt_cv_sys_max_cmd_len
11517
11518 # Does compiler simultaneously support -c and -o options?
11519 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11520
11521 # Must we lock files when doing compilation?
11522 need_locks=$lt_need_locks
11523
11524 # Do we need the lib prefix for modules?
11525 need_lib_prefix=$need_lib_prefix
11526
11527 # Do we need a version for libraries?
11528 need_version=$need_version
11529
11530 # Whether dlopen is supported.
11531 dlopen_support=$enable_dlopen
11532
11533 # Whether dlopen of programs is supported.
11534 dlopen_self=$enable_dlopen_self
11535
11536 # Whether dlopen of statically linked programs is supported.
11537 dlopen_self_static=$enable_dlopen_self_static
11538
11539 # Compiler flag to prevent dynamic linking.
11540 link_static_flag=$lt_lt_prog_compiler_static
11541
11542 # Compiler flag to turn off builtin functions.
11543 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11544
11545 # Compiler flag to allow reflexive dlopens.
11546 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11547
11548 # Compiler flag to generate shared objects directly from archives.
11549 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11550
11551 # Compiler flag to generate thread-safe objects.
11552 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11553
11554 # Library versioning type.
11555 version_type=$version_type
11556
11557 # Format of library name prefix.
11558 libname_spec=$lt_libname_spec
11559
11560 # List of archive names.  First name is the real one, the rest are links.
11561 # The last name is the one that the linker finds with -lNAME.
11562 library_names_spec=$lt_library_names_spec
11563
11564 # The coded name of the library, if different from the real name.
11565 soname_spec=$lt_soname_spec
11566
11567 # Commands used to build and install an old-style archive.
11568 RANLIB=$lt_RANLIB
11569 old_archive_cmds=$lt_old_archive_cmds
11570 old_postinstall_cmds=$lt_old_postinstall_cmds
11571 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11572
11573 # Create an old-style archive from a shared archive.
11574 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11575
11576 # Create a temporary old-style archive to link instead of a shared archive.
11577 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11578
11579 # Commands used to build and install a shared archive.
11580 archive_cmds=$lt_archive_cmds
11581 archive_expsym_cmds=$lt_archive_expsym_cmds
11582 postinstall_cmds=$lt_postinstall_cmds
11583 postuninstall_cmds=$lt_postuninstall_cmds
11584
11585 # Commands used to build a loadable module (assumed same as above if empty)
11586 module_cmds=$lt_module_cmds
11587 module_expsym_cmds=$lt_module_expsym_cmds
11588
11589 # Commands to strip libraries.
11590 old_striplib=$lt_old_striplib
11591 striplib=$lt_striplib
11592
11593 # Dependencies to place before the objects being linked to create a
11594 # shared library.
11595 predep_objects=$lt_predep_objects
11596
11597 # Dependencies to place after the objects being linked to create a
11598 # shared library.
11599 postdep_objects=$lt_postdep_objects
11600
11601 # Dependencies to place before the objects being linked to create a
11602 # shared library.
11603 predeps=$lt_predeps
11604
11605 # Dependencies to place after the objects being linked to create a
11606 # shared library.
11607 postdeps=$lt_postdeps
11608
11609 # The library search path used internally by the compiler when linking
11610 # a shared library.
11611 compiler_lib_search_path=$lt_compiler_lib_search_path
11612
11613 # Method to check whether dependent libraries are shared objects.
11614 deplibs_check_method=$lt_deplibs_check_method
11615
11616 # Command to use when deplibs_check_method == file_magic.
11617 file_magic_cmd=$lt_file_magic_cmd
11618
11619 # Flag that allows shared libraries with undefined symbols to be built.
11620 allow_undefined_flag=$lt_allow_undefined_flag
11621
11622 # Flag that forces no undefined symbols.
11623 no_undefined_flag=$lt_no_undefined_flag
11624
11625 # Commands used to finish a libtool library installation in a directory.
11626 finish_cmds=$lt_finish_cmds
11627
11628 # Same as above, but a single script fragment to be evaled but not shown.
11629 finish_eval=$lt_finish_eval
11630
11631 # Take the output of nm and produce a listing of raw symbols and C names.
11632 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11633
11634 # Transform the output of nm in a proper C declaration
11635 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11636
11637 # Transform the output of nm in a C name address pair
11638 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11639
11640 # This is the shared library runtime path variable.
11641 runpath_var=$runpath_var
11642
11643 # This is the shared library path variable.
11644 shlibpath_var=$shlibpath_var
11645
11646 # Is shlibpath searched before the hard-coded library search path?
11647 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11648
11649 # How to hardcode a shared library path into an executable.
11650 hardcode_action=$hardcode_action
11651
11652 # Whether we should hardcode library paths into libraries.
11653 hardcode_into_libs=$hardcode_into_libs
11654
11655 # Flag to hardcode \$libdir into a binary during linking.
11656 # This must work even if \$libdir does not exist.
11657 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11658
11659 # If ld is used when linking, flag to hardcode \$libdir into
11660 # a binary during linking. This must work even if \$libdir does
11661 # not exist.
11662 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11663
11664 # Whether we need a single -rpath flag with a separated argument.
11665 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11666
11667 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11668 # resulting binary.
11669 hardcode_direct=$hardcode_direct
11670
11671 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11672 # resulting binary.
11673 hardcode_minus_L=$hardcode_minus_L
11674
11675 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11676 # the resulting binary.
11677 hardcode_shlibpath_var=$hardcode_shlibpath_var
11678
11679 # Set to yes if building a shared library automatically hardcodes DIR into the library
11680 # and all subsequent libraries and executables linked against it.
11681 hardcode_automatic=$hardcode_automatic
11682
11683 # Variables whose values should be saved in libtool wrapper scripts and
11684 # restored at relink time.
11685 variables_saved_for_relink="$variables_saved_for_relink"
11686
11687 # Whether libtool must link a program against all its dependency libraries.
11688 link_all_deplibs=$link_all_deplibs
11689
11690 # Compile-time system search path for libraries
11691 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11692
11693 # Run-time system search path for libraries
11694 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11695
11696 # Fix the shell variable \$srcfile for the compiler.
11697 fix_srcfile_path="$fix_srcfile_path"
11698
11699 # Set to yes if exported symbols are required.
11700 always_export_symbols=$always_export_symbols
11701
11702 # The commands to list exported symbols.
11703 export_symbols_cmds=$lt_export_symbols_cmds
11704
11705 # The commands to extract the exported symbol list from a shared archive.
11706 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11707
11708 # Symbols that should not be listed in the preloaded symbols.
11709 exclude_expsyms=$lt_exclude_expsyms
11710
11711 # Symbols that must always be exported.
11712 include_expsyms=$lt_include_expsyms
11713
11714 # ### END LIBTOOL CONFIG
11715
11716 __EOF__
11717
11718
11719   case $host_os in
11720   aix3*)
11721     cat <<\EOF >> "$cfgfile"
11722
11723 # AIX sometimes has problems with the GCC collect2 program.  For some
11724 # reason, if we set the COLLECT_NAMES environment variable, the problems
11725 # vanish in a puff of smoke.
11726 if test "X${COLLECT_NAMES+set}" != Xset; then
11727   COLLECT_NAMES=
11728   export COLLECT_NAMES
11729 fi
11730 EOF
11731     ;;
11732   esac
11733
11734   # We use sed instead of cat because bash on DJGPP gets confused if
11735   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11736   # text mode, it properly converts lines to CR/LF.  This bash problem
11737   # is reportedly fixed, but why not run on old versions too?
11738   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11739
11740   mv -f "$cfgfile" "$ofile" || \
11741     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11742   chmod +x "$ofile"
11743
11744 else
11745   # If there is no Makefile yet, we rely on a make rule to execute
11746   # `config.status --recheck' to rerun these tests and create the
11747   # libtool script then.
11748   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11749   if test -f "$ltmain_in"; then
11750     test -f Makefile && make "$ltmain"
11751   fi
11752 fi
11753
11754
11755 ac_ext=c
11756 ac_cpp='$CPP $CPPFLAGS'
11757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11760
11761 CC="$lt_save_CC"
11762
11763
11764 # Check whether --with-tags or --without-tags was given.
11765 if test "${with_tags+set}" = set; then
11766   withval="$with_tags"
11767   tagnames="$withval"
11768 fi;
11769
11770 if test -f "$ltmain" && test -n "$tagnames"; then
11771   if test ! -f "${ofile}"; then
11772     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11773 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11774   fi
11775
11776   if test -z "$LTCC"; then
11777     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11778     if test -z "$LTCC"; then
11779       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11780 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11781     else
11782       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11783 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11784     fi
11785   fi
11786
11787   # Extract list of available tagged configurations in $ofile.
11788   # Note that this assumes the entire list is on one line.
11789   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11790
11791   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11792   for tagname in $tagnames; do
11793     IFS="$lt_save_ifs"
11794     # Check whether tagname contains only valid characters
11795     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11796     "") ;;
11797     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11798 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11799    { (exit 1); exit 1; }; }
11800         ;;
11801     esac
11802
11803     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11804     then
11805       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11806 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11807    { (exit 1); exit 1; }; }
11808     fi
11809
11810     # Update the list of available tags.
11811     if test -n "$tagname"; then
11812       echo appending configuration tag \"$tagname\" to $ofile
11813
11814       case $tagname in
11815       CXX)
11816         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11817             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11818             (test "X$CXX" != "Xg++"))) ; then
11819           ac_ext=cc
11820 ac_cpp='$CXXCPP $CPPFLAGS'
11821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11824
11825
11826
11827
11828 archive_cmds_need_lc_CXX=no
11829 allow_undefined_flag_CXX=
11830 always_export_symbols_CXX=no
11831 archive_expsym_cmds_CXX=
11832 export_dynamic_flag_spec_CXX=
11833 hardcode_direct_CXX=no
11834 hardcode_libdir_flag_spec_CXX=
11835 hardcode_libdir_flag_spec_ld_CXX=
11836 hardcode_libdir_separator_CXX=
11837 hardcode_minus_L_CXX=no
11838 hardcode_automatic_CXX=no
11839 module_cmds_CXX=
11840 module_expsym_cmds_CXX=
11841 link_all_deplibs_CXX=unknown
11842 old_archive_cmds_CXX=$old_archive_cmds
11843 no_undefined_flag_CXX=
11844 whole_archive_flag_spec_CXX=
11845 enable_shared_with_static_runtimes_CXX=no
11846
11847 # Dependencies to place before and after the object being linked:
11848 predep_objects_CXX=
11849 postdep_objects_CXX=
11850 predeps_CXX=
11851 postdeps_CXX=
11852 compiler_lib_search_path_CXX=
11853
11854 # Source file extension for C++ test sources.
11855 ac_ext=cc
11856
11857 # Object file extension for compiled C++ test sources.
11858 objext=o
11859 objext_CXX=$objext
11860
11861 # Code to be used in simple compile tests
11862 lt_simple_compile_test_code="int some_variable = 0;\n"
11863
11864 # Code to be used in simple link tests
11865 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11866
11867 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11868
11869 # If no C compiler was specified, use CC.
11870 LTCC=${LTCC-"$CC"}
11871
11872 # Allow CC to be a program name with arguments.
11873 compiler=$CC
11874
11875
11876 # save warnings/boilerplate of simple test code
11877 ac_outfile=conftest.$ac_objext
11878 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11879 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11880 _lt_compiler_boilerplate=`cat conftest.err`
11881 $rm conftest*
11882
11883 ac_outfile=conftest.$ac_objext
11884 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11885 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11886 _lt_linker_boilerplate=`cat conftest.err`
11887 $rm conftest*
11888
11889
11890 # Allow CC to be a program name with arguments.
11891 lt_save_CC=$CC
11892 lt_save_LD=$LD
11893 lt_save_GCC=$GCC
11894 GCC=$GXX
11895 lt_save_with_gnu_ld=$with_gnu_ld
11896 lt_save_path_LD=$lt_cv_path_LD
11897 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11898   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11899 else
11900   unset lt_cv_prog_gnu_ld
11901 fi
11902 if test -n "${lt_cv_path_LDCXX+set}"; then
11903   lt_cv_path_LD=$lt_cv_path_LDCXX
11904 else
11905   unset lt_cv_path_LD
11906 fi
11907 test -z "${LDCXX+set}" || LD=$LDCXX
11908 CC=${CXX-"c++"}
11909 compiler=$CC
11910 compiler_CXX=$CC
11911 for cc_temp in $compiler""; do
11912   case $cc_temp in
11913     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11914     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11915     \-*) ;;
11916     *) break;;
11917   esac
11918 done
11919 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11920
11921
11922 # We don't want -fno-exception wen compiling C++ code, so set the
11923 # no_builtin_flag separately
11924 if test "$GXX" = yes; then
11925   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11926 else
11927   lt_prog_compiler_no_builtin_flag_CXX=
11928 fi
11929
11930 if test "$GXX" = yes; then
11931   # Set up default GNU C++ configuration
11932
11933
11934 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11935 if test "${with_gnu_ld+set}" = set; then
11936   withval="$with_gnu_ld"
11937   test "$withval" = no || with_gnu_ld=yes
11938 else
11939   with_gnu_ld=no
11940 fi;
11941 ac_prog=ld
11942 if test "$GCC" = yes; then
11943   # Check if gcc -print-prog-name=ld gives a path.
11944   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11945 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11946   case $host in
11947   *-*-mingw*)
11948     # gcc leaves a trailing carriage return which upsets mingw
11949     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11950   *)
11951     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11952   esac
11953   case $ac_prog in
11954     # Accept absolute paths.
11955     [\\/]* | ?:[\\/]*)
11956       re_direlt='/[^/][^/]*/\.\./'
11957       # Canonicalize the pathname of ld
11958       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11959       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11960         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11961       done
11962       test -z "$LD" && LD="$ac_prog"
11963       ;;
11964   "")
11965     # If it fails, then pretend we aren't using GCC.
11966     ac_prog=ld
11967     ;;
11968   *)
11969     # If it is relative, then search for the first ld in PATH.
11970     with_gnu_ld=unknown
11971     ;;
11972   esac
11973 elif test "$with_gnu_ld" = yes; then
11974   echo "$as_me:$LINENO: checking for GNU ld" >&5
11975 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11976 else
11977   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11978 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11979 fi
11980 if test "${lt_cv_path_LD+set}" = set; then
11981   echo $ECHO_N "(cached) $ECHO_C" >&6
11982 else
11983   if test -z "$LD"; then
11984   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11985   for ac_dir in $PATH; do
11986     IFS="$lt_save_ifs"
11987     test -z "$ac_dir" && ac_dir=.
11988     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11989       lt_cv_path_LD="$ac_dir/$ac_prog"
11990       # Check to see if the program is GNU ld.  I'd rather use --version,
11991       # but apparently some GNU ld's only accept -v.
11992       # Break only if it was the GNU/non-GNU ld that we prefer.
11993       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11994       *GNU* | *'with BFD'*)
11995         test "$with_gnu_ld" != no && break
11996         ;;
11997       *)
11998         test "$with_gnu_ld" != yes && break
11999         ;;
12000       esac
12001     fi
12002   done
12003   IFS="$lt_save_ifs"
12004 else
12005   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12006 fi
12007 fi
12008
12009 LD="$lt_cv_path_LD"
12010 if test -n "$LD"; then
12011   echo "$as_me:$LINENO: result: $LD" >&5
12012 echo "${ECHO_T}$LD" >&6
12013 else
12014   echo "$as_me:$LINENO: result: no" >&5
12015 echo "${ECHO_T}no" >&6
12016 fi
12017 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12018 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12019    { (exit 1); exit 1; }; }
12020 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12021 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12022 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12023   echo $ECHO_N "(cached) $ECHO_C" >&6
12024 else
12025   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12026 case `$LD -v 2>&1 </dev/null` in
12027 *GNU* | *'with BFD'*)
12028   lt_cv_prog_gnu_ld=yes
12029   ;;
12030 *)
12031   lt_cv_prog_gnu_ld=no
12032   ;;
12033 esac
12034 fi
12035 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12036 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12037 with_gnu_ld=$lt_cv_prog_gnu_ld
12038
12039
12040
12041   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12042   # archiving commands below assume that GNU ld is being used.
12043   if test "$with_gnu_ld" = yes; then
12044     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12045     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'
12046
12047     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12048     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12049
12050     # If archive_cmds runs LD, not CC, wlarc should be empty
12051     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12052     #     investigate it a little bit more. (MM)
12053     wlarc='${wl}'
12054
12055     # ancient GNU ld didn't support --whole-archive et. al.
12056     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12057         grep 'no-whole-archive' > /dev/null; then
12058       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12059     else
12060       whole_archive_flag_spec_CXX=
12061     fi
12062   else
12063     with_gnu_ld=no
12064     wlarc=
12065
12066     # A generic and very simple default shared library creation
12067     # command for GNU C++ for the case where it uses the native
12068     # linker, instead of GNU ld.  If possible, this setting should
12069     # overridden to take advantage of the native linker features on
12070     # the platform it is being used on.
12071     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12072   fi
12073
12074   # Commands to make compiler produce verbose output that lists
12075   # what "hidden" libraries, object files and flags are used when
12076   # linking a shared library.
12077   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12078
12079 else
12080   GXX=no
12081   with_gnu_ld=no
12082   wlarc=
12083 fi
12084
12085 # PORTME: fill in a description of your system's C++ link characteristics
12086 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12087 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12088 ld_shlibs_CXX=yes
12089 case $host_os in
12090   aix3*)
12091     # FIXME: insert proper C++ library support
12092     ld_shlibs_CXX=no
12093     ;;
12094   aix4* | aix5*)
12095     if test "$host_cpu" = ia64; then
12096       # On IA64, the linker does run time linking by default, so we don't
12097       # have to do anything special.
12098       aix_use_runtimelinking=no
12099       exp_sym_flag='-Bexport'
12100       no_entry_flag=""
12101     else
12102       aix_use_runtimelinking=no
12103
12104       # Test if we are trying to use run time linking or normal
12105       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12106       # need to do runtime linking.
12107       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12108         for ld_flag in $LDFLAGS; do
12109           case $ld_flag in
12110           *-brtl*)
12111             aix_use_runtimelinking=yes
12112             break
12113             ;;
12114           esac
12115         done
12116       esac
12117
12118       exp_sym_flag='-bexport'
12119       no_entry_flag='-bnoentry'
12120     fi
12121
12122     # When large executables or shared objects are built, AIX ld can
12123     # have problems creating the table of contents.  If linking a library
12124     # or program results in "error TOC overflow" add -mminimal-toc to
12125     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12126     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12127
12128     archive_cmds_CXX=''
12129     hardcode_direct_CXX=yes
12130     hardcode_libdir_separator_CXX=':'
12131     link_all_deplibs_CXX=yes
12132
12133     if test "$GXX" = yes; then
12134       case $host_os in aix4.[012]|aix4.[012].*)
12135       # We only want to do this on AIX 4.2 and lower, the check
12136       # below for broken collect2 doesn't work under 4.3+
12137         collect2name=`${CC} -print-prog-name=collect2`
12138         if test -f "$collect2name" && \
12139            strings "$collect2name" | grep resolve_lib_name >/dev/null
12140         then
12141           # We have reworked collect2
12142           hardcode_direct_CXX=yes
12143         else
12144           # We have old collect2
12145           hardcode_direct_CXX=unsupported
12146           # It fails to find uninstalled libraries when the uninstalled
12147           # path is not listed in the libpath.  Setting hardcode_minus_L
12148           # to unsupported forces relinking
12149           hardcode_minus_L_CXX=yes
12150           hardcode_libdir_flag_spec_CXX='-L$libdir'
12151           hardcode_libdir_separator_CXX=
12152         fi
12153       esac
12154       shared_flag='-shared'
12155       if test "$aix_use_runtimelinking" = yes; then
12156         shared_flag="$shared_flag "'${wl}-G'
12157       fi
12158     else
12159       # not using gcc
12160       if test "$host_cpu" = ia64; then
12161         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12162         # chokes on -Wl,-G. The following line is correct:
12163         shared_flag='-G'
12164       else
12165         if test "$aix_use_runtimelinking" = yes; then
12166           shared_flag='${wl}-G'
12167         else
12168           shared_flag='${wl}-bM:SRE'
12169         fi
12170       fi
12171     fi
12172
12173     # It seems that -bexpall does not export symbols beginning with
12174     # underscore (_), so it is better to generate a list of symbols to export.
12175     always_export_symbols_CXX=yes
12176     if test "$aix_use_runtimelinking" = yes; then
12177       # Warning - without using the other runtime loading flags (-brtl),
12178       # -berok will link without error, but may produce a broken library.
12179       allow_undefined_flag_CXX='-berok'
12180       # Determine the default libpath from the value encoded in an empty executable.
12181       cat >conftest.$ac_ext <<_ACEOF
12182 /* confdefs.h.  */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h.  */
12187
12188 int
12189 main ()
12190 {
12191
12192   ;
12193   return 0;
12194 }
12195 _ACEOF
12196 rm -f conftest.$ac_objext conftest$ac_exeext
12197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12198   (eval $ac_link) 2>conftest.er1
12199   ac_status=$?
12200   grep -v '^ *+' conftest.er1 >conftest.err
12201   rm -f conftest.er1
12202   cat conftest.err >&5
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); } &&
12205          { ac_try='test -z "$ac_cxx_werror_flag"
12206                          || test ! -s conftest.err'
12207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208   (eval $ac_try) 2>&5
12209   ac_status=$?
12210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211   (exit $ac_status); }; } &&
12212          { ac_try='test -s conftest$ac_exeext'
12213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214   (eval $ac_try) 2>&5
12215   ac_status=$?
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); }; }; then
12218
12219 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12220 }'`
12221 # Check for a 64-bit object if we didn't find anything.
12222 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; }
12223 }'`; fi
12224 else
12225   echo "$as_me: failed program was:" >&5
12226 sed 's/^/| /' conftest.$ac_ext >&5
12227
12228 fi
12229 rm -f conftest.err conftest.$ac_objext \
12230       conftest$ac_exeext conftest.$ac_ext
12231 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12232
12233       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12234
12235       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"
12236      else
12237       if test "$host_cpu" = ia64; then
12238         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12239         allow_undefined_flag_CXX="-z nodefs"
12240         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"
12241       else
12242         # Determine the default libpath from the value encoded in an empty executable.
12243         cat >conftest.$ac_ext <<_ACEOF
12244 /* confdefs.h.  */
12245 _ACEOF
12246 cat confdefs.h >>conftest.$ac_ext
12247 cat >>conftest.$ac_ext <<_ACEOF
12248 /* end confdefs.h.  */
12249
12250 int
12251 main ()
12252 {
12253
12254   ;
12255   return 0;
12256 }
12257 _ACEOF
12258 rm -f conftest.$ac_objext conftest$ac_exeext
12259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12260   (eval $ac_link) 2>conftest.er1
12261   ac_status=$?
12262   grep -v '^ *+' conftest.er1 >conftest.err
12263   rm -f conftest.er1
12264   cat conftest.err >&5
12265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266   (exit $ac_status); } &&
12267          { ac_try='test -z "$ac_cxx_werror_flag"
12268                          || test ! -s conftest.err'
12269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270   (eval $ac_try) 2>&5
12271   ac_status=$?
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   (exit $ac_status); }; } &&
12274          { ac_try='test -s conftest$ac_exeext'
12275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276   (eval $ac_try) 2>&5
12277   ac_status=$?
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); }; }; then
12280
12281 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12282 }'`
12283 # Check for a 64-bit object if we didn't find anything.
12284 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; }
12285 }'`; fi
12286 else
12287   echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12289
12290 fi
12291 rm -f conftest.err conftest.$ac_objext \
12292       conftest$ac_exeext conftest.$ac_ext
12293 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12294
12295         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12296         # Warning - without using the other run time loading flags,
12297         # -berok will link without error, but may produce a broken library.
12298         no_undefined_flag_CXX=' ${wl}-bernotok'
12299         allow_undefined_flag_CXX=' ${wl}-berok'
12300         # -bexpall does not export symbols beginning with underscore (_)
12301         always_export_symbols_CXX=yes
12302         # Exported symbols can be pulled into shared objects from archives
12303         whole_archive_flag_spec_CXX=' '
12304         archive_cmds_need_lc_CXX=yes
12305         # This is similar to how AIX traditionally builds it's shared libraries.
12306         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'
12307       fi
12308     fi
12309     ;;
12310   chorus*)
12311     case $cc_basename in
12312       *)
12313         # FIXME: insert proper C++ library support
12314         ld_shlibs_CXX=no
12315         ;;
12316     esac
12317     ;;
12318
12319
12320   cygwin* | mingw* | pw32*)
12321     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12322     # as there is no search path for DLLs.
12323     hardcode_libdir_flag_spec_CXX='-L$libdir'
12324     allow_undefined_flag_CXX=unsupported
12325     always_export_symbols_CXX=no
12326     enable_shared_with_static_runtimes_CXX=yes
12327
12328     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12329       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'
12330       # If the export-symbols file already is a .def file (1st line
12331       # is EXPORTS), use it as is; otherwise, prepend...
12332       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12333         cp $export_symbols $output_objdir/$soname.def;
12334       else
12335         echo EXPORTS > $output_objdir/$soname.def;
12336         cat $export_symbols >> $output_objdir/$soname.def;
12337       fi~
12338       $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'
12339     else
12340       ld_shlibs_CXX=no
12341     fi
12342   ;;
12343       darwin* | rhapsody*)
12344         case "$host_os" in
12345         rhapsody* | darwin1.[012])
12346          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12347          ;;
12348        *) # Darwin 1.3 on
12349          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12350            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12351          else
12352            case ${MACOSX_DEPLOYMENT_TARGET} in
12353              10.[012])
12354                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12355                ;;
12356              10.*)
12357                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12358                ;;
12359            esac
12360          fi
12361          ;;
12362         esac
12363       archive_cmds_need_lc_CXX=no
12364       hardcode_direct_CXX=no
12365       hardcode_automatic_CXX=yes
12366       hardcode_shlibpath_var_CXX=unsupported
12367       whole_archive_flag_spec_CXX=''
12368       link_all_deplibs_CXX=yes
12369
12370     if test "$GXX" = yes ; then
12371       lt_int_apple_cc_single_mod=no
12372       output_verbose_link_cmd='echo'
12373       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12374        lt_int_apple_cc_single_mod=yes
12375       fi
12376       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12377        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12378       else
12379           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'
12380         fi
12381         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12382         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12383           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12384             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}'
12385           else
12386             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}'
12387           fi
12388             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}'
12389       else
12390       case $cc_basename in
12391         xlc*)
12392          output_verbose_link_cmd='echo'
12393           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'
12394           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12395           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12396           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}'
12397           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}'
12398           ;;
12399        *)
12400          ld_shlibs_CXX=no
12401           ;;
12402       esac
12403       fi
12404         ;;
12405
12406   dgux*)
12407     case $cc_basename in
12408       ec++*)
12409         # FIXME: insert proper C++ library support
12410         ld_shlibs_CXX=no
12411         ;;
12412       ghcx*)
12413         # Green Hills C++ Compiler
12414         # FIXME: insert proper C++ library support
12415         ld_shlibs_CXX=no
12416         ;;
12417       *)
12418         # FIXME: insert proper C++ library support
12419         ld_shlibs_CXX=no
12420         ;;
12421     esac
12422     ;;
12423   freebsd[12]*)
12424     # C++ shared libraries reported to be fairly broken before switch to ELF
12425     ld_shlibs_CXX=no
12426     ;;
12427   freebsd-elf*)
12428     archive_cmds_need_lc_CXX=no
12429     ;;
12430   freebsd* | kfreebsd*-gnu | dragonfly*)
12431     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12432     # conventions
12433     ld_shlibs_CXX=yes
12434     ;;
12435   gnu*)
12436     ;;
12437   hpux9*)
12438     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12439     hardcode_libdir_separator_CXX=:
12440     export_dynamic_flag_spec_CXX='${wl}-E'
12441     hardcode_direct_CXX=yes
12442     hardcode_minus_L_CXX=yes # Not in the search PATH,
12443                                 # but as the default
12444                                 # location of the library.
12445
12446     case $cc_basename in
12447     CC*)
12448       # FIXME: insert proper C++ library support
12449       ld_shlibs_CXX=no
12450       ;;
12451     aCC*)
12452       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'
12453       # Commands to make compiler produce verbose output that lists
12454       # what "hidden" libraries, object files and flags are used when
12455       # linking a shared library.
12456       #
12457       # There doesn't appear to be a way to prevent this compiler from
12458       # explicitly linking system object files so we need to strip them
12459       # from the output so that they don't get included in the library
12460       # dependencies.
12461       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'
12462       ;;
12463     *)
12464       if test "$GXX" = yes; then
12465         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'
12466       else
12467         # FIXME: insert proper C++ library support
12468         ld_shlibs_CXX=no
12469       fi
12470       ;;
12471     esac
12472     ;;
12473   hpux10*|hpux11*)
12474     if test $with_gnu_ld = no; then
12475       case "$host_cpu" in
12476       hppa*64*)
12477         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12478         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12479         hardcode_libdir_separator_CXX=:
12480         ;;
12481       ia64*)
12482         hardcode_libdir_flag_spec_CXX='-L$libdir'
12483         ;;
12484       *)
12485         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12486         hardcode_libdir_separator_CXX=:
12487         export_dynamic_flag_spec_CXX='${wl}-E'
12488         ;;
12489       esac
12490     fi
12491     case "$host_cpu" in
12492     hppa*64*)
12493       hardcode_direct_CXX=no
12494       hardcode_shlibpath_var_CXX=no
12495       ;;
12496     ia64*)
12497       hardcode_direct_CXX=no
12498       hardcode_shlibpath_var_CXX=no
12499       hardcode_minus_L_CXX=yes # Not in the search PATH,
12500                                               # but as the default
12501                                               # location of the library.
12502       ;;
12503     *)
12504       hardcode_direct_CXX=yes
12505       hardcode_minus_L_CXX=yes # Not in the search PATH,
12506                                               # but as the default
12507                                               # location of the library.
12508       ;;
12509     esac
12510
12511     case $cc_basename in
12512       CC*)
12513         # FIXME: insert proper C++ library support
12514         ld_shlibs_CXX=no
12515         ;;
12516       aCC*)
12517         case "$host_cpu" in
12518         hppa*64*|ia64*)
12519           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12520           ;;
12521         *)
12522           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12523           ;;
12524         esac
12525         # Commands to make compiler produce verbose output that lists
12526         # what "hidden" libraries, object files and flags are used when
12527         # linking a shared library.
12528         #
12529         # There doesn't appear to be a way to prevent this compiler from
12530         # explicitly linking system object files so we need to strip them
12531         # from the output so that they don't get included in the library
12532         # dependencies.
12533         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'
12534         ;;
12535       *)
12536         if test "$GXX" = yes; then
12537           if test $with_gnu_ld = no; then
12538             case "$host_cpu" in
12539             ia64*|hppa*64*)
12540               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12541               ;;
12542             *)
12543               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'
12544               ;;
12545             esac
12546           fi
12547         else
12548           # FIXME: insert proper C++ library support
12549           ld_shlibs_CXX=no
12550         fi
12551         ;;
12552     esac
12553     ;;
12554   irix5* | irix6*)
12555     case $cc_basename in
12556       CC*)
12557         # SGI C++
12558         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'
12559
12560         # Archives containing C++ object files must be created using
12561         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12562         # necessary to make sure instantiated templates are included
12563         # in the archive.
12564         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12565         ;;
12566       *)
12567         if test "$GXX" = yes; then
12568           if test "$with_gnu_ld" = no; then
12569             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'
12570           else
12571             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'
12572           fi
12573         fi
12574         link_all_deplibs_CXX=yes
12575         ;;
12576     esac
12577     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12578     hardcode_libdir_separator_CXX=:
12579     ;;
12580   linux*)
12581     case $cc_basename in
12582       KCC*)
12583         # Kuck and Associates, Inc. (KAI) C++ Compiler
12584
12585         # KCC will only create a shared library if the output file
12586         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12587         # to its proper name (with version) after linking.
12588         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'
12589         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'
12590         # Commands to make compiler produce verbose output that lists
12591         # what "hidden" libraries, object files and flags are used when
12592         # linking a shared library.
12593         #
12594         # There doesn't appear to be a way to prevent this compiler from
12595         # explicitly linking system object files so we need to strip them
12596         # from the output so that they don't get included in the library
12597         # dependencies.
12598         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'
12599
12600         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12601         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12602
12603         # Archives containing C++ object files must be created using
12604         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12605         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12606         ;;
12607       icpc*)
12608         # Intel C++
12609         with_gnu_ld=yes
12610         # version 8.0 and above of icpc choke on multiply defined symbols
12611         # if we add $predep_objects and $postdep_objects, however 7.1 and
12612         # earlier do not add the objects themselves.
12613         case `$CC -V 2>&1` in
12614         *"Version 7."*)
12615           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12616           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'
12617           ;;
12618         *)  # Version 8.0 or newer
12619           tmp_idyn=
12620           case $host_cpu in
12621             ia64*) tmp_idyn=' -i_dynamic';;
12622           esac
12623           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12624           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'
12625           ;;
12626         esac
12627         archive_cmds_need_lc_CXX=no
12628         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12629         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12630         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12631         ;;
12632       pgCC*)
12633         # Portland Group C++ compiler
12634         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12635         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'
12636
12637         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12638         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12639         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'
12640         ;;
12641       cxx*)
12642         # Compaq C++
12643         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12644         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'
12645
12646         runpath_var=LD_RUN_PATH
12647         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12648         hardcode_libdir_separator_CXX=:
12649
12650         # Commands to make compiler produce verbose output that lists
12651         # what "hidden" libraries, object files and flags are used when
12652         # linking a shared library.
12653         #
12654         # There doesn't appear to be a way to prevent this compiler from
12655         # explicitly linking system object files so we need to strip them
12656         # from the output so that they don't get included in the library
12657         # dependencies.
12658         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'
12659         ;;
12660     esac
12661     ;;
12662   lynxos*)
12663     # FIXME: insert proper C++ library support
12664     ld_shlibs_CXX=no
12665     ;;
12666   m88k*)
12667     # FIXME: insert proper C++ library support
12668     ld_shlibs_CXX=no
12669     ;;
12670   mvs*)
12671     case $cc_basename in
12672       cxx*)
12673         # FIXME: insert proper C++ library support
12674         ld_shlibs_CXX=no
12675         ;;
12676       *)
12677         # FIXME: insert proper C++ library support
12678         ld_shlibs_CXX=no
12679         ;;
12680     esac
12681     ;;
12682   netbsd*)
12683     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12684       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12685       wlarc=
12686       hardcode_libdir_flag_spec_CXX='-R$libdir'
12687       hardcode_direct_CXX=yes
12688       hardcode_shlibpath_var_CXX=no
12689     fi
12690     # Workaround some broken pre-1.5 toolchains
12691     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12692     ;;
12693   openbsd2*)
12694     # C++ shared libraries are fairly broken
12695     ld_shlibs_CXX=no
12696     ;;
12697   openbsd*)
12698     hardcode_direct_CXX=yes
12699     hardcode_shlibpath_var_CXX=no
12700     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12701     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12702     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12703       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12704       export_dynamic_flag_spec_CXX='${wl}-E'
12705       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12706     fi
12707     output_verbose_link_cmd='echo'
12708     ;;
12709   osf3*)
12710     case $cc_basename in
12711       KCC*)
12712         # Kuck and Associates, Inc. (KAI) C++ Compiler
12713
12714         # KCC will only create a shared library if the output file
12715         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12716         # to its proper name (with version) after linking.
12717         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'
12718
12719         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12720         hardcode_libdir_separator_CXX=:
12721
12722         # Archives containing C++ object files must be created using
12723         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12724         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12725
12726         ;;
12727       RCC*)
12728         # Rational C++ 2.4.1
12729         # FIXME: insert proper C++ library support
12730         ld_shlibs_CXX=no
12731         ;;
12732       cxx*)
12733         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12734         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'
12735
12736         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12737         hardcode_libdir_separator_CXX=:
12738
12739         # Commands to make compiler produce verbose output that lists
12740         # what "hidden" libraries, object files and flags are used when
12741         # linking a shared library.
12742         #
12743         # There doesn't appear to be a way to prevent this compiler from
12744         # explicitly linking system object files so we need to strip them
12745         # from the output so that they don't get included in the library
12746         # dependencies.
12747         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'
12748         ;;
12749       *)
12750         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12751           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12752           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'
12753
12754           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12755           hardcode_libdir_separator_CXX=:
12756
12757           # Commands to make compiler produce verbose output that lists
12758           # what "hidden" libraries, object files and flags are used when
12759           # linking a shared library.
12760           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12761
12762         else
12763           # FIXME: insert proper C++ library support
12764           ld_shlibs_CXX=no
12765         fi
12766         ;;
12767     esac
12768     ;;
12769   osf4* | osf5*)
12770     case $cc_basename in
12771       KCC*)
12772         # Kuck and Associates, Inc. (KAI) C++ Compiler
12773
12774         # KCC will only create a shared library if the output file
12775         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12776         # to its proper name (with version) after linking.
12777         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'
12778
12779         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12780         hardcode_libdir_separator_CXX=:
12781
12782         # Archives containing C++ object files must be created using
12783         # the KAI C++ compiler.
12784         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12785         ;;
12786       RCC*)
12787         # Rational C++ 2.4.1
12788         # FIXME: insert proper C++ library support
12789         ld_shlibs_CXX=no
12790         ;;
12791       cxx*)
12792         allow_undefined_flag_CXX=' -expect_unresolved \*'
12793         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'
12794         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12795           echo "-hidden">> $lib.exp~
12796           $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~
12797           $rm $lib.exp'
12798
12799         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12800         hardcode_libdir_separator_CXX=:
12801
12802         # Commands to make compiler produce verbose output that lists
12803         # what "hidden" libraries, object files and flags are used when
12804         # linking a shared library.
12805         #
12806         # There doesn't appear to be a way to prevent this compiler from
12807         # explicitly linking system object files so we need to strip them
12808         # from the output so that they don't get included in the library
12809         # dependencies.
12810         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'
12811         ;;
12812       *)
12813         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12814           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12815          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'
12816
12817           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12818           hardcode_libdir_separator_CXX=:
12819
12820           # Commands to make compiler produce verbose output that lists
12821           # what "hidden" libraries, object files and flags are used when
12822           # linking a shared library.
12823           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12824
12825         else
12826           # FIXME: insert proper C++ library support
12827           ld_shlibs_CXX=no
12828         fi
12829         ;;
12830     esac
12831     ;;
12832   psos*)
12833     # FIXME: insert proper C++ library support
12834     ld_shlibs_CXX=no
12835     ;;
12836   sco*)
12837     archive_cmds_need_lc_CXX=no
12838     case $cc_basename in
12839       CC*)
12840         # FIXME: insert proper C++ library support
12841         ld_shlibs_CXX=no
12842         ;;
12843       *)
12844         # FIXME: insert proper C++ library support
12845         ld_shlibs_CXX=no
12846         ;;
12847     esac
12848     ;;
12849   sunos4*)
12850     case $cc_basename in
12851       CC*)
12852         # Sun C++ 4.x
12853         # FIXME: insert proper C++ library support
12854         ld_shlibs_CXX=no
12855         ;;
12856       lcc*)
12857         # Lucid
12858         # FIXME: insert proper C++ library support
12859         ld_shlibs_CXX=no
12860         ;;
12861       *)
12862         # FIXME: insert proper C++ library support
12863         ld_shlibs_CXX=no
12864         ;;
12865     esac
12866     ;;
12867   solaris*)
12868     case $cc_basename in
12869       CC*)
12870         # Sun C++ 4.2, 5.x and Centerline C++
12871         no_undefined_flag_CXX=' -zdefs'
12872         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12873         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12874         $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'
12875
12876         hardcode_libdir_flag_spec_CXX='-R$libdir'
12877         hardcode_shlibpath_var_CXX=no
12878         case $host_os in
12879           solaris2.[0-5] | solaris2.[0-5].*) ;;
12880           *)
12881             # The C++ compiler is used as linker so we must use $wl
12882             # flag to pass the commands to the underlying system
12883             # linker. We must also pass each convience library through
12884             # to the system linker between allextract/defaultextract.
12885             # The C++ compiler will combine linker options so we
12886             # cannot just pass the convience library names through
12887             # without $wl.
12888             # Supported since Solaris 2.6 (maybe 2.5.1?)
12889             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'
12890             ;;
12891         esac
12892         link_all_deplibs_CXX=yes
12893
12894         # Commands to make compiler produce verbose output that lists
12895         # what "hidden" libraries, object files and flags are used when
12896         # linking a shared library.
12897         #
12898         # There doesn't appear to be a way to prevent this compiler from
12899         # explicitly linking system object files so we need to strip them
12900         # from the output so that they don't get included in the library
12901         # dependencies.
12902         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'
12903
12904         # Archives containing C++ object files must be created using
12905         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12906         # necessary to make sure instantiated templates are included
12907         # in the archive.
12908         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12909         ;;
12910       gcx*)
12911         # Green Hills C++ Compiler
12912         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12913
12914         # The C++ compiler must be used to create the archive.
12915         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12916         ;;
12917       *)
12918         # GNU C++ compiler with Solaris linker
12919         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12920           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12921           if $CC --version | grep -v '^2\.7' > /dev/null; then
12922             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12923             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12924                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12925
12926             # Commands to make compiler produce verbose output that lists
12927             # what "hidden" libraries, object files and flags are used when
12928             # linking a shared library.
12929             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12930           else
12931             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12932             # platform.
12933             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12934             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12935                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12936
12937             # Commands to make compiler produce verbose output that lists
12938             # what "hidden" libraries, object files and flags are used when
12939             # linking a shared library.
12940             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12941           fi
12942
12943           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12944         fi
12945         ;;
12946     esac
12947     ;;
12948   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12949     archive_cmds_need_lc_CXX=no
12950     ;;
12951   tandem*)
12952     case $cc_basename in
12953       NCC*)
12954         # NonStop-UX NCC 3.20
12955         # FIXME: insert proper C++ library support
12956         ld_shlibs_CXX=no
12957         ;;
12958       *)
12959         # FIXME: insert proper C++ library support
12960         ld_shlibs_CXX=no
12961         ;;
12962     esac
12963     ;;
12964   vxworks*)
12965     # FIXME: insert proper C++ library support
12966     ld_shlibs_CXX=no
12967     ;;
12968   *)
12969     # FIXME: insert proper C++ library support
12970     ld_shlibs_CXX=no
12971     ;;
12972 esac
12973 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12974 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12975 test "$ld_shlibs_CXX" = no && can_build_shared=no
12976
12977 GCC_CXX="$GXX"
12978 LD_CXX="$LD"
12979
12980
12981 cat > conftest.$ac_ext <<EOF
12982 class Foo
12983 {
12984 public:
12985   Foo (void) { a = 0; }
12986 private:
12987   int a;
12988 };
12989 EOF
12990
12991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12992   (eval $ac_compile) 2>&5
12993   ac_status=$?
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); }; then
12996   # Parse the compiler output and extract the necessary
12997   # objects, libraries and library flags.
12998
12999   # Sentinel used to keep track of whether or not we are before
13000   # the conftest object file.
13001   pre_test_object_deps_done=no
13002
13003   # The `*' in the case matches for architectures that use `case' in
13004   # $output_verbose_cmd can trigger glob expansion during the loop
13005   # eval without this substitution.
13006   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13007
13008   for p in `eval $output_verbose_link_cmd`; do
13009     case $p in
13010
13011     -L* | -R* | -l*)
13012        # Some compilers place space between "-{L,R}" and the path.
13013        # Remove the space.
13014        if test $p = "-L" \
13015           || test $p = "-R"; then
13016          prev=$p
13017          continue
13018        else
13019          prev=
13020        fi
13021
13022        if test "$pre_test_object_deps_done" = no; then
13023          case $p in
13024          -L* | -R*)
13025            # Internal compiler library paths should come after those
13026            # provided the user.  The postdeps already come after the
13027            # user supplied libs so there is no need to process them.
13028            if test -z "$compiler_lib_search_path_CXX"; then
13029              compiler_lib_search_path_CXX="${prev}${p}"
13030            else
13031              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13032            fi
13033            ;;
13034          # The "-l" case would never come before the object being
13035          # linked, so don't bother handling this case.
13036          esac
13037        else
13038          if test -z "$postdeps_CXX"; then
13039            postdeps_CXX="${prev}${p}"
13040          else
13041            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13042          fi
13043        fi
13044        ;;
13045
13046     *.$objext)
13047        # This assumes that the test object file only shows up
13048        # once in the compiler output.
13049        if test "$p" = "conftest.$objext"; then
13050          pre_test_object_deps_done=yes
13051          continue
13052        fi
13053
13054        if test "$pre_test_object_deps_done" = no; then
13055          if test -z "$predep_objects_CXX"; then
13056            predep_objects_CXX="$p"
13057          else
13058            predep_objects_CXX="$predep_objects_CXX $p"
13059          fi
13060        else
13061          if test -z "$postdep_objects_CXX"; then
13062            postdep_objects_CXX="$p"
13063          else
13064            postdep_objects_CXX="$postdep_objects_CXX $p"
13065          fi
13066        fi
13067        ;;
13068
13069     *) ;; # Ignore the rest.
13070
13071     esac
13072   done
13073
13074   # Clean up.
13075   rm -f a.out a.exe
13076 else
13077   echo "libtool.m4: error: problem compiling CXX test program"
13078 fi
13079
13080 $rm -f confest.$objext
13081
13082 case " $postdeps_CXX " in
13083 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13084 esac
13085
13086 lt_prog_compiler_wl_CXX=
13087 lt_prog_compiler_pic_CXX=
13088 lt_prog_compiler_static_CXX=
13089
13090 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13091 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13092
13093   # C++ specific cases for pic, static, wl, etc.
13094   if test "$GXX" = yes; then
13095     lt_prog_compiler_wl_CXX='-Wl,'
13096     lt_prog_compiler_static_CXX='-static'
13097
13098     case $host_os in
13099     aix*)
13100       # All AIX code is PIC.
13101       if test "$host_cpu" = ia64; then
13102         # AIX 5 now supports IA64 processor
13103         lt_prog_compiler_static_CXX='-Bstatic'
13104       fi
13105       ;;
13106     amigaos*)
13107       # FIXME: we need at least 68020 code to build shared libraries, but
13108       # adding the `-m68020' flag to GCC prevents building anything better,
13109       # like `-m68040'.
13110       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13111       ;;
13112     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13113       # PIC is the default for these OSes.
13114       ;;
13115     mingw* | os2* | pw32*)
13116       # This hack is so that the source file can tell whether it is being
13117       # built for inclusion in a dll (and should export symbols for example).
13118       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13119       ;;
13120     darwin* | rhapsody*)
13121       # PIC is the default on this platform
13122       # Common symbols not allowed in MH_DYLIB files
13123       lt_prog_compiler_pic_CXX='-fno-common'
13124       ;;
13125     *djgpp*)
13126       # DJGPP does not support shared libraries at all
13127       lt_prog_compiler_pic_CXX=
13128       ;;
13129     sysv4*MP*)
13130       if test -d /usr/nec; then
13131         lt_prog_compiler_pic_CXX=-Kconform_pic
13132       fi
13133       ;;
13134     hpux*)
13135       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13136       # not for PA HP-UX.
13137       case "$host_cpu" in
13138       hppa*64*|ia64*)
13139         ;;
13140       *)
13141         lt_prog_compiler_pic_CXX='-fPIC'
13142         ;;
13143       esac
13144       ;;
13145     *)
13146       lt_prog_compiler_pic_CXX='-fPIC'
13147       ;;
13148     esac
13149   else
13150     case $host_os in
13151       aix4* | aix5*)
13152         # All AIX code is PIC.
13153         if test "$host_cpu" = ia64; then
13154           # AIX 5 now supports IA64 processor
13155           lt_prog_compiler_static_CXX='-Bstatic'
13156         else
13157           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13158         fi
13159         ;;
13160       chorus*)
13161         case $cc_basename in
13162         cxch68*)
13163           # Green Hills C++ Compiler
13164           # _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"
13165           ;;
13166         esac
13167         ;;
13168        darwin*)
13169          # PIC is the default on this platform
13170          # Common symbols not allowed in MH_DYLIB files
13171          case $cc_basename in
13172            xlc*)
13173            lt_prog_compiler_pic_CXX='-qnocommon'
13174            lt_prog_compiler_wl_CXX='-Wl,'
13175            ;;
13176          esac
13177        ;;
13178       dgux*)
13179         case $cc_basename in
13180           ec++*)
13181             lt_prog_compiler_pic_CXX='-KPIC'
13182             ;;
13183           ghcx*)
13184             # Green Hills C++ Compiler
13185             lt_prog_compiler_pic_CXX='-pic'
13186             ;;
13187           *)
13188             ;;
13189         esac
13190         ;;
13191       freebsd* | kfreebsd*-gnu | dragonfly*)
13192         # FreeBSD uses GNU C++
13193         ;;
13194       hpux9* | hpux10* | hpux11*)
13195         case $cc_basename in
13196           CC*)
13197             lt_prog_compiler_wl_CXX='-Wl,'
13198             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13199             if test "$host_cpu" != ia64; then
13200               lt_prog_compiler_pic_CXX='+Z'
13201             fi
13202             ;;
13203           aCC*)
13204             lt_prog_compiler_wl_CXX='-Wl,'
13205             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13206             case "$host_cpu" in
13207             hppa*64*|ia64*)
13208               # +Z the default
13209               ;;
13210             *)
13211               lt_prog_compiler_pic_CXX='+Z'
13212               ;;
13213             esac
13214             ;;
13215           *)
13216             ;;
13217         esac
13218         ;;
13219       irix5* | irix6* | nonstopux*)
13220         case $cc_basename in
13221           CC*)
13222             lt_prog_compiler_wl_CXX='-Wl,'
13223             lt_prog_compiler_static_CXX='-non_shared'
13224             # CC pic flag -KPIC is the default.
13225             ;;
13226           *)
13227             ;;
13228         esac
13229         ;;
13230       linux*)
13231         case $cc_basename in
13232           KCC*)
13233             # KAI C++ Compiler
13234             lt_prog_compiler_wl_CXX='--backend -Wl,'
13235             lt_prog_compiler_pic_CXX='-fPIC'
13236             ;;
13237           icpc* | ecpc*)
13238             # Intel C++
13239             lt_prog_compiler_wl_CXX='-Wl,'
13240             lt_prog_compiler_pic_CXX='-KPIC'
13241             lt_prog_compiler_static_CXX='-static'
13242             ;;
13243           pgCC*)
13244             # Portland Group C++ compiler.
13245             lt_prog_compiler_wl_CXX='-Wl,'
13246             lt_prog_compiler_pic_CXX='-fpic'
13247             lt_prog_compiler_static_CXX='-static'
13248             ;;
13249           cxx*)
13250             # Compaq C++
13251             # Make sure the PIC flag is empty.  It appears that all Alpha
13252             # Linux and Compaq Tru64 Unix objects are PIC.
13253             lt_prog_compiler_pic_CXX=
13254             lt_prog_compiler_static_CXX='-non_shared'
13255             ;;
13256           *)
13257             ;;
13258         esac
13259         ;;
13260       lynxos*)
13261         ;;
13262       m88k*)
13263         ;;
13264       mvs*)
13265         case $cc_basename in
13266           cxx*)
13267             lt_prog_compiler_pic_CXX='-W c,exportall'
13268             ;;
13269           *)
13270             ;;
13271         esac
13272         ;;
13273       netbsd*)
13274         ;;
13275       osf3* | osf4* | osf5*)
13276         case $cc_basename in
13277           KCC*)
13278             lt_prog_compiler_wl_CXX='--backend -Wl,'
13279             ;;
13280           RCC*)
13281             # Rational C++ 2.4.1
13282             lt_prog_compiler_pic_CXX='-pic'
13283             ;;
13284           cxx*)
13285             # Digital/Compaq C++
13286             lt_prog_compiler_wl_CXX='-Wl,'
13287             # Make sure the PIC flag is empty.  It appears that all Alpha
13288             # Linux and Compaq Tru64 Unix objects are PIC.
13289             lt_prog_compiler_pic_CXX=
13290             lt_prog_compiler_static_CXX='-non_shared'
13291             ;;
13292           *)
13293             ;;
13294         esac
13295         ;;
13296       psos*)
13297         ;;
13298       sco*)
13299         case $cc_basename in
13300           CC*)
13301             lt_prog_compiler_pic_CXX='-fPIC'
13302             ;;
13303           *)
13304             ;;
13305         esac
13306         ;;
13307       solaris*)
13308         case $cc_basename in
13309           CC*)
13310             # Sun C++ 4.2, 5.x and Centerline C++
13311             lt_prog_compiler_pic_CXX='-KPIC'
13312             lt_prog_compiler_static_CXX='-Bstatic'
13313             lt_prog_compiler_wl_CXX='-Qoption ld '
13314             ;;
13315           gcx*)
13316             # Green Hills C++ Compiler
13317             lt_prog_compiler_pic_CXX='-PIC'
13318             ;;
13319           *)
13320             ;;
13321         esac
13322         ;;
13323       sunos4*)
13324         case $cc_basename in
13325           CC*)
13326             # Sun C++ 4.x
13327             lt_prog_compiler_pic_CXX='-pic'
13328             lt_prog_compiler_static_CXX='-Bstatic'
13329             ;;
13330           lcc*)
13331             # Lucid
13332             lt_prog_compiler_pic_CXX='-pic'
13333             ;;
13334           *)
13335             ;;
13336         esac
13337         ;;
13338       tandem*)
13339         case $cc_basename in
13340           NCC*)
13341             # NonStop-UX NCC 3.20
13342             lt_prog_compiler_pic_CXX='-KPIC'
13343             ;;
13344           *)
13345             ;;
13346         esac
13347         ;;
13348       unixware*)
13349         ;;
13350       vxworks*)
13351         ;;
13352       *)
13353         lt_prog_compiler_can_build_shared_CXX=no
13354         ;;
13355     esac
13356   fi
13357
13358 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13359 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13360
13361 #
13362 # Check to make sure the PIC flag actually works.
13363 #
13364 if test -n "$lt_prog_compiler_pic_CXX"; then
13365
13366 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13367 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13368 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13369   echo $ECHO_N "(cached) $ECHO_C" >&6
13370 else
13371   lt_prog_compiler_pic_works_CXX=no
13372   ac_outfile=conftest.$ac_objext
13373    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13374    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13375    # Insert the option either (1) after the last *FLAGS variable, or
13376    # (2) before a word containing "conftest.", or (3) at the end.
13377    # Note that $ac_compile itself does not contain backslashes and begins
13378    # with a dollar sign (not a hyphen), so the echo should work correctly.
13379    # The option is referenced via a variable to avoid confusing sed.
13380    lt_compile=`echo "$ac_compile" | $SED \
13381    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13382    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13383    -e 's:$: $lt_compiler_flag:'`
13384    (eval echo "\"\$as_me:13384: $lt_compile\"" >&5)
13385    (eval "$lt_compile" 2>conftest.err)
13386    ac_status=$?
13387    cat conftest.err >&5
13388    echo "$as_me:13388: \$? = $ac_status" >&5
13389    if (exit $ac_status) && test -s "$ac_outfile"; then
13390      # The compiler can only warn and ignore the option if not recognized
13391      # So say no if there are warnings other than the usual output.
13392      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13393      $SED '/^$/d' conftest.err >conftest.er2
13394      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13395        lt_prog_compiler_pic_works_CXX=yes
13396      fi
13397    fi
13398    $rm conftest*
13399
13400 fi
13401 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13402 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13403
13404 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13405     case $lt_prog_compiler_pic_CXX in
13406      "" | " "*) ;;
13407      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13408      esac
13409 else
13410     lt_prog_compiler_pic_CXX=
13411      lt_prog_compiler_can_build_shared_CXX=no
13412 fi
13413
13414 fi
13415 case "$host_os" in
13416   # For platforms which do not support PIC, -DPIC is meaningless:
13417   *djgpp*)
13418     lt_prog_compiler_pic_CXX=
13419     ;;
13420   *)
13421     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13422     ;;
13423 esac
13424
13425 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13426 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13427 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13428   echo $ECHO_N "(cached) $ECHO_C" >&6
13429 else
13430   lt_cv_prog_compiler_c_o_CXX=no
13431    $rm -r conftest 2>/dev/null
13432    mkdir conftest
13433    cd conftest
13434    mkdir out
13435    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13436
13437    lt_compiler_flag="-o out/conftest2.$ac_objext"
13438    # Insert the option either (1) after the last *FLAGS variable, or
13439    # (2) before a word containing "conftest.", or (3) at the end.
13440    # Note that $ac_compile itself does not contain backslashes and begins
13441    # with a dollar sign (not a hyphen), so the echo should work correctly.
13442    lt_compile=`echo "$ac_compile" | $SED \
13443    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13444    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13445    -e 's:$: $lt_compiler_flag:'`
13446    (eval echo "\"\$as_me:13446: $lt_compile\"" >&5)
13447    (eval "$lt_compile" 2>out/conftest.err)
13448    ac_status=$?
13449    cat out/conftest.err >&5
13450    echo "$as_me:13450: \$? = $ac_status" >&5
13451    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13452    then
13453      # The compiler can only warn and ignore the option if not recognized
13454      # So say no if there are warnings
13455      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13456      $SED '/^$/d' out/conftest.err >out/conftest.er2
13457      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13458        lt_cv_prog_compiler_c_o_CXX=yes
13459      fi
13460    fi
13461    chmod u+w .
13462    $rm conftest*
13463    # SGI C++ compiler will create directory out/ii_files/ for
13464    # template instantiation
13465    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13466    $rm out/* && rmdir out
13467    cd ..
13468    rmdir conftest
13469    $rm conftest*
13470
13471 fi
13472 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13473 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13474
13475
13476 hard_links="nottested"
13477 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13478   # do not overwrite the value of need_locks provided by the user
13479   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13480 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13481   hard_links=yes
13482   $rm conftest*
13483   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13484   touch conftest.a
13485   ln conftest.a conftest.b 2>&5 || hard_links=no
13486   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13487   echo "$as_me:$LINENO: result: $hard_links" >&5
13488 echo "${ECHO_T}$hard_links" >&6
13489   if test "$hard_links" = no; then
13490     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13491 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13492     need_locks=warn
13493   fi
13494 else
13495   need_locks=no
13496 fi
13497
13498 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13499 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13500
13501   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13502   case $host_os in
13503   aix4* | aix5*)
13504     # If we're using GNU nm, then we don't want the "-C" option.
13505     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13506     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13507       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'
13508     else
13509       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'
13510     fi
13511     ;;
13512   pw32*)
13513     export_symbols_cmds_CXX="$ltdll_cmds"
13514   ;;
13515   cygwin* | mingw*)
13516     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'
13517   ;;
13518   *)
13519     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13520   ;;
13521   esac
13522
13523 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13524 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13525 test "$ld_shlibs_CXX" = no && can_build_shared=no
13526
13527 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13528 if test "$GCC" = yes; then
13529   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13530 fi
13531
13532 #
13533 # Do we need to explicitly link libc?
13534 #
13535 case "x$archive_cmds_need_lc_CXX" in
13536 x|xyes)
13537   # Assume -lc should be added
13538   archive_cmds_need_lc_CXX=yes
13539
13540   if test "$enable_shared" = yes && test "$GCC" = yes; then
13541     case $archive_cmds_CXX in
13542     *'~'*)
13543       # FIXME: we may have to deal with multi-command sequences.
13544       ;;
13545     '$CC '*)
13546       # Test whether the compiler implicitly links with -lc since on some
13547       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13548       # to ld, don't add -lc before -lgcc.
13549       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13550 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13551       $rm conftest*
13552       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13553
13554       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13555   (eval $ac_compile) 2>&5
13556   ac_status=$?
13557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558   (exit $ac_status); } 2>conftest.err; then
13559         soname=conftest
13560         lib=conftest
13561         libobjs=conftest.$ac_objext
13562         deplibs=
13563         wl=$lt_prog_compiler_wl_CXX
13564         compiler_flags=-v
13565         linker_flags=-v
13566         verstring=
13567         output_objdir=.
13568         libname=conftest
13569         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13570         allow_undefined_flag_CXX=
13571         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13572   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13573   ac_status=$?
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); }
13576         then
13577           archive_cmds_need_lc_CXX=no
13578         else
13579           archive_cmds_need_lc_CXX=yes
13580         fi
13581         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13582       else
13583         cat conftest.err 1>&5
13584       fi
13585       $rm conftest*
13586       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13587 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13588       ;;
13589     esac
13590   fi
13591   ;;
13592 esac
13593
13594 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13595 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13596 library_names_spec=
13597 libname_spec='lib$name'
13598 soname_spec=
13599 shrext_cmds=".so"
13600 postinstall_cmds=
13601 postuninstall_cmds=
13602 finish_cmds=
13603 finish_eval=
13604 shlibpath_var=
13605 shlibpath_overrides_runpath=unknown
13606 version_type=none
13607 dynamic_linker="$host_os ld.so"
13608 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13609 if test "$GCC" = yes; then
13610   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13611   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13612     # if the path contains ";" then we assume it to be the separator
13613     # otherwise default to the standard path separator (i.e. ":") - it is
13614     # assumed that no part of a normal pathname contains ";" but that should
13615     # okay in the real world where ";" in dirpaths is itself problematic.
13616     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13617   else
13618     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13619   fi
13620 else
13621   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13622 fi
13623 need_lib_prefix=unknown
13624 hardcode_into_libs=no
13625
13626 # when you set need_version to no, make sure it does not cause -set_version
13627 # flags to be left without arguments
13628 need_version=unknown
13629
13630 case $host_os in
13631 aix3*)
13632   version_type=linux
13633   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13634   shlibpath_var=LIBPATH
13635
13636   # AIX 3 has no versioning support, so we append a major version to the name.
13637   soname_spec='${libname}${release}${shared_ext}$major'
13638   ;;
13639
13640 aix4* | aix5*)
13641   version_type=linux
13642   need_lib_prefix=no
13643   need_version=no
13644   hardcode_into_libs=yes
13645   if test "$host_cpu" = ia64; then
13646     # AIX 5 supports IA64
13647     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13648     shlibpath_var=LD_LIBRARY_PATH
13649   else
13650     # With GCC up to 2.95.x, collect2 would create an import file
13651     # for dependence libraries.  The import file would start with
13652     # the line `#! .'.  This would cause the generated library to
13653     # depend on `.', always an invalid library.  This was fixed in
13654     # development snapshots of GCC prior to 3.0.
13655     case $host_os in
13656       aix4 | aix4.[01] | aix4.[01].*)
13657       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13658            echo ' yes '
13659            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13660         :
13661       else
13662         can_build_shared=no
13663       fi
13664       ;;
13665     esac
13666     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13667     # soname into executable. Probably we can add versioning support to
13668     # collect2, so additional links can be useful in future.
13669     if test "$aix_use_runtimelinking" = yes; then
13670       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13671       # instead of lib<name>.a to let people know that these are not
13672       # typical AIX shared libraries.
13673       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13674     else
13675       # We preserve .a as extension for shared libraries through AIX4.2
13676       # and later when we are not doing run time linking.
13677       library_names_spec='${libname}${release}.a $libname.a'
13678       soname_spec='${libname}${release}${shared_ext}$major'
13679     fi
13680     shlibpath_var=LIBPATH
13681   fi
13682   ;;
13683
13684 amigaos*)
13685   library_names_spec='$libname.ixlibrary $libname.a'
13686   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13687   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'
13688   ;;
13689
13690 beos*)
13691   library_names_spec='${libname}${shared_ext}'
13692   dynamic_linker="$host_os ld.so"
13693   shlibpath_var=LIBRARY_PATH
13694   ;;
13695
13696 bsdi[45]*)
13697   version_type=linux
13698   need_version=no
13699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13700   soname_spec='${libname}${release}${shared_ext}$major'
13701   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13702   shlibpath_var=LD_LIBRARY_PATH
13703   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13704   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13705   # the default ld.so.conf also contains /usr/contrib/lib and
13706   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13707   # libtool to hard-code these into programs
13708   ;;
13709
13710 cygwin* | mingw* | pw32*)
13711   version_type=windows
13712   shrext_cmds=".dll"
13713   need_version=no
13714   need_lib_prefix=no
13715
13716   case $GCC,$host_os in
13717   yes,cygwin* | yes,mingw* | yes,pw32*)
13718     library_names_spec='$libname.dll.a'
13719     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13720     postinstall_cmds='base_file=`basename \${file}`~
13721       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13722       dldir=$destdir/`dirname \$dlpath`~
13723       test -d \$dldir || mkdir -p \$dldir~
13724       $install_prog $dir/$dlname \$dldir/$dlname'
13725     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13726       dlpath=$dir/\$dldll~
13727        $rm \$dlpath'
13728     shlibpath_overrides_runpath=yes
13729
13730     case $host_os in
13731     cygwin*)
13732       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13733       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13734       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13735       ;;
13736     mingw*)
13737       # MinGW DLLs use traditional 'lib' prefix
13738       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13739       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13740       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13741         # It is most probably a Windows format PATH printed by
13742         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13743         # path with ; separators, and with drive letters. We can handle the
13744         # drive letters (cygwin fileutils understands them), so leave them,
13745         # especially as we might pass files found there to a mingw objdump,
13746         # which wouldn't understand a cygwinified path. Ahh.
13747         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13748       else
13749         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13750       fi
13751       ;;
13752     pw32*)
13753       # pw32 DLLs use 'pw' prefix rather than 'lib'
13754       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13755       ;;
13756     esac
13757     ;;
13758
13759   *)
13760     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13761     ;;
13762   esac
13763   dynamic_linker='Win32 ld.exe'
13764   # FIXME: first we should search . and the directory the executable is in
13765   shlibpath_var=PATH
13766   ;;
13767
13768 darwin* | rhapsody*)
13769   dynamic_linker="$host_os dyld"
13770   version_type=darwin
13771   need_lib_prefix=no
13772   need_version=no
13773   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13774   soname_spec='${libname}${release}${major}$shared_ext'
13775   shlibpath_overrides_runpath=yes
13776   shlibpath_var=DYLD_LIBRARY_PATH
13777   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13778   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13779   if test "$GCC" = yes; then
13780     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"`
13781   else
13782     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13783   fi
13784   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13785   ;;
13786
13787 dgux*)
13788   version_type=linux
13789   need_lib_prefix=no
13790   need_version=no
13791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13792   soname_spec='${libname}${release}${shared_ext}$major'
13793   shlibpath_var=LD_LIBRARY_PATH
13794   ;;
13795
13796 freebsd1*)
13797   dynamic_linker=no
13798   ;;
13799
13800 kfreebsd*-gnu)
13801   version_type=linux
13802   need_lib_prefix=no
13803   need_version=no
13804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13805   soname_spec='${libname}${release}${shared_ext}$major'
13806   shlibpath_var=LD_LIBRARY_PATH
13807   shlibpath_overrides_runpath=no
13808   hardcode_into_libs=yes
13809   dynamic_linker='GNU ld.so'
13810   ;;
13811
13812 freebsd* | dragonfly*)
13813   # DragonFly does not have aout.  When/if they implement a new
13814   # versioning mechanism, adjust this.
13815   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13816   version_type=freebsd-$objformat
13817   case $version_type in
13818     freebsd-elf*)
13819       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13820       need_version=no
13821       need_lib_prefix=no
13822       ;;
13823     freebsd-*)
13824       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13825       need_version=yes
13826       ;;
13827   esac
13828   shlibpath_var=LD_LIBRARY_PATH
13829   case $host_os in
13830   freebsd2*)
13831     shlibpath_overrides_runpath=yes
13832     ;;
13833   freebsd3.[01]* | freebsdelf3.[01]*)
13834     shlibpath_overrides_runpath=yes
13835     hardcode_into_libs=yes
13836     ;;
13837   *) # from 3.2 on
13838     shlibpath_overrides_runpath=no
13839     hardcode_into_libs=yes
13840     ;;
13841   esac
13842   ;;
13843
13844 gnu*)
13845   version_type=linux
13846   need_lib_prefix=no
13847   need_version=no
13848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13849   soname_spec='${libname}${release}${shared_ext}$major'
13850   shlibpath_var=LD_LIBRARY_PATH
13851   hardcode_into_libs=yes
13852   ;;
13853
13854 hpux9* | hpux10* | hpux11*)
13855   # Give a soname corresponding to the major version so that dld.sl refuses to
13856   # link against other versions.
13857   version_type=sunos
13858   need_lib_prefix=no
13859   need_version=no
13860   case "$host_cpu" in
13861   ia64*)
13862     shrext_cmds='.so'
13863     hardcode_into_libs=yes
13864     dynamic_linker="$host_os dld.so"
13865     shlibpath_var=LD_LIBRARY_PATH
13866     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13867     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13868     soname_spec='${libname}${release}${shared_ext}$major'
13869     if test "X$HPUX_IA64_MODE" = X32; then
13870       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13871     else
13872       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13873     fi
13874     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13875     ;;
13876    hppa*64*)
13877      shrext_cmds='.sl'
13878      hardcode_into_libs=yes
13879      dynamic_linker="$host_os dld.sl"
13880      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13881      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13882      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13883      soname_spec='${libname}${release}${shared_ext}$major'
13884      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13885      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13886      ;;
13887    *)
13888     shrext_cmds='.sl'
13889     dynamic_linker="$host_os dld.sl"
13890     shlibpath_var=SHLIB_PATH
13891     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13892     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13893     soname_spec='${libname}${release}${shared_ext}$major'
13894     ;;
13895   esac
13896   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13897   postinstall_cmds='chmod 555 $lib'
13898   ;;
13899
13900 irix5* | irix6* | nonstopux*)
13901   case $host_os in
13902     nonstopux*) version_type=nonstopux ;;
13903     *)
13904         if test "$lt_cv_prog_gnu_ld" = yes; then
13905                 version_type=linux
13906         else
13907                 version_type=irix
13908         fi ;;
13909   esac
13910   need_lib_prefix=no
13911   need_version=no
13912   soname_spec='${libname}${release}${shared_ext}$major'
13913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13914   case $host_os in
13915   irix5* | nonstopux*)
13916     libsuff= shlibsuff=
13917     ;;
13918   *)
13919     case $LD in # libtool.m4 will add one of these switches to LD
13920     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13921       libsuff= shlibsuff= libmagic=32-bit;;
13922     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13923       libsuff=32 shlibsuff=N32 libmagic=N32;;
13924     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13925       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13926     *) libsuff= shlibsuff= libmagic=never-match;;
13927     esac
13928     ;;
13929   esac
13930   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13931   shlibpath_overrides_runpath=no
13932   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13933   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13934   hardcode_into_libs=yes
13935   ;;
13936
13937 # No shared lib support for Linux oldld, aout, or coff.
13938 linux*oldld* | linux*aout* | linux*coff*)
13939   dynamic_linker=no
13940   ;;
13941
13942 # This must be Linux ELF.
13943 linux*)
13944   version_type=linux
13945   need_lib_prefix=no
13946   need_version=no
13947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13948   soname_spec='${libname}${release}${shared_ext}$major'
13949   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13950   shlibpath_var=LD_LIBRARY_PATH
13951   shlibpath_overrides_runpath=no
13952   # This implies no fast_install, which is unacceptable.
13953   # Some rework will be needed to allow for fast_install
13954   # before this can be enabled.
13955   hardcode_into_libs=yes
13956
13957   # Append ld.so.conf contents to the search path
13958   if test -f /etc/ld.so.conf; then
13959     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' ' '`
13960     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13961   fi
13962
13963   # We used to test for /lib/ld.so.1 and disable shared libraries on
13964   # powerpc, because MkLinux only supported shared libraries with the
13965   # GNU dynamic linker.  Since this was broken with cross compilers,
13966   # most powerpc-linux boxes support dynamic linking these days and
13967   # people can always --disable-shared, the test was removed, and we
13968   # assume the GNU/Linux dynamic linker is in use.
13969   dynamic_linker='GNU/Linux ld.so'
13970   ;;
13971
13972 knetbsd*-gnu)
13973   version_type=linux
13974   need_lib_prefix=no
13975   need_version=no
13976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13977   soname_spec='${libname}${release}${shared_ext}$major'
13978   shlibpath_var=LD_LIBRARY_PATH
13979   shlibpath_overrides_runpath=no
13980   hardcode_into_libs=yes
13981   dynamic_linker='GNU ld.so'
13982   ;;
13983
13984 netbsd*)
13985   version_type=sunos
13986   need_lib_prefix=no
13987   need_version=no
13988   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13989     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13990     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13991     dynamic_linker='NetBSD (a.out) ld.so'
13992   else
13993     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13994     soname_spec='${libname}${release}${shared_ext}$major'
13995     dynamic_linker='NetBSD ld.elf_so'
13996   fi
13997   shlibpath_var=LD_LIBRARY_PATH
13998   shlibpath_overrides_runpath=yes
13999   hardcode_into_libs=yes
14000   ;;
14001
14002 newsos6)
14003   version_type=linux
14004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14005   shlibpath_var=LD_LIBRARY_PATH
14006   shlibpath_overrides_runpath=yes
14007   ;;
14008
14009 nto-qnx*)
14010   version_type=linux
14011   need_lib_prefix=no
14012   need_version=no
14013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14014   soname_spec='${libname}${release}${shared_ext}$major'
14015   shlibpath_var=LD_LIBRARY_PATH
14016   shlibpath_overrides_runpath=yes
14017   ;;
14018
14019 openbsd*)
14020   version_type=sunos
14021   need_lib_prefix=no
14022   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14023   case $host_os in
14024     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14025     *)                         need_version=no  ;;
14026   esac
14027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14028   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14029   shlibpath_var=LD_LIBRARY_PATH
14030   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14031     case $host_os in
14032       openbsd2.[89] | openbsd2.[89].*)
14033         shlibpath_overrides_runpath=no
14034         ;;
14035       *)
14036         shlibpath_overrides_runpath=yes
14037         ;;
14038       esac
14039   else
14040     shlibpath_overrides_runpath=yes
14041   fi
14042   ;;
14043
14044 os2*)
14045   libname_spec='$name'
14046   shrext_cmds=".dll"
14047   need_lib_prefix=no
14048   library_names_spec='$libname${shared_ext} $libname.a'
14049   dynamic_linker='OS/2 ld.exe'
14050   shlibpath_var=LIBPATH
14051   ;;
14052
14053 osf3* | osf4* | osf5*)
14054   version_type=osf
14055   need_lib_prefix=no
14056   need_version=no
14057   soname_spec='${libname}${release}${shared_ext}$major'
14058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14059   shlibpath_var=LD_LIBRARY_PATH
14060   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14061   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14062   ;;
14063
14064 sco3.2v5*)
14065   version_type=osf
14066   soname_spec='${libname}${release}${shared_ext}$major'
14067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14068   shlibpath_var=LD_LIBRARY_PATH
14069   ;;
14070
14071 solaris*)
14072   version_type=linux
14073   need_lib_prefix=no
14074   need_version=no
14075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14076   soname_spec='${libname}${release}${shared_ext}$major'
14077   shlibpath_var=LD_LIBRARY_PATH
14078   shlibpath_overrides_runpath=yes
14079   hardcode_into_libs=yes
14080   # ldd complains unless libraries are executable
14081   postinstall_cmds='chmod +x $lib'
14082   ;;
14083
14084 sunos4*)
14085   version_type=sunos
14086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14087   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14088   shlibpath_var=LD_LIBRARY_PATH
14089   shlibpath_overrides_runpath=yes
14090   if test "$with_gnu_ld" = yes; then
14091     need_lib_prefix=no
14092   fi
14093   need_version=yes
14094   ;;
14095
14096 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14097   version_type=linux
14098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14099   soname_spec='${libname}${release}${shared_ext}$major'
14100   shlibpath_var=LD_LIBRARY_PATH
14101   case $host_vendor in
14102     sni)
14103       shlibpath_overrides_runpath=no
14104       need_lib_prefix=no
14105       export_dynamic_flag_spec='${wl}-Blargedynsym'
14106       runpath_var=LD_RUN_PATH
14107       ;;
14108     siemens)
14109       need_lib_prefix=no
14110       ;;
14111     motorola)
14112       need_lib_prefix=no
14113       need_version=no
14114       shlibpath_overrides_runpath=no
14115       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14116       ;;
14117   esac
14118   ;;
14119
14120 sysv4*MP*)
14121   if test -d /usr/nec ;then
14122     version_type=linux
14123     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14124     soname_spec='$libname${shared_ext}.$major'
14125     shlibpath_var=LD_LIBRARY_PATH
14126   fi
14127   ;;
14128
14129 uts4*)
14130   version_type=linux
14131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14132   soname_spec='${libname}${release}${shared_ext}$major'
14133   shlibpath_var=LD_LIBRARY_PATH
14134   ;;
14135
14136 *)
14137   dynamic_linker=no
14138   ;;
14139 esac
14140 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14141 echo "${ECHO_T}$dynamic_linker" >&6
14142 test "$dynamic_linker" = no && can_build_shared=no
14143
14144 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14145 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14146 hardcode_action_CXX=
14147 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14148    test -n "$runpath_var_CXX" || \
14149    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14150
14151   # We can hardcode non-existant directories.
14152   if test "$hardcode_direct_CXX" != no &&
14153      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14154      # have to relink, otherwise we might link with an installed library
14155      # when we should be linking with a yet-to-be-installed one
14156      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14157      test "$hardcode_minus_L_CXX" != no; then
14158     # Linking always hardcodes the temporary library directory.
14159     hardcode_action_CXX=relink
14160   else
14161     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14162     hardcode_action_CXX=immediate
14163   fi
14164 else
14165   # We cannot hardcode anything, or else we can only hardcode existing
14166   # directories.
14167   hardcode_action_CXX=unsupported
14168 fi
14169 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14170 echo "${ECHO_T}$hardcode_action_CXX" >&6
14171
14172 if test "$hardcode_action_CXX" = relink; then
14173   # Fast installation is not supported
14174   enable_fast_install=no
14175 elif test "$shlibpath_overrides_runpath" = yes ||
14176      test "$enable_shared" = no; then
14177   # Fast installation is not necessary
14178   enable_fast_install=needless
14179 fi
14180
14181 striplib=
14182 old_striplib=
14183 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14184 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14185 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14186   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14187   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14188   echo "$as_me:$LINENO: result: yes" >&5
14189 echo "${ECHO_T}yes" >&6
14190 else
14191 # FIXME - insert some real tests, host_os isn't really good enough
14192   case $host_os in
14193    darwin*)
14194        if test -n "$STRIP" ; then
14195          striplib="$STRIP -x"
14196          echo "$as_me:$LINENO: result: yes" >&5
14197 echo "${ECHO_T}yes" >&6
14198        else
14199   echo "$as_me:$LINENO: result: no" >&5
14200 echo "${ECHO_T}no" >&6
14201 fi
14202        ;;
14203    *)
14204   echo "$as_me:$LINENO: result: no" >&5
14205 echo "${ECHO_T}no" >&6
14206     ;;
14207   esac
14208 fi
14209
14210 if test "x$enable_dlopen" != xyes; then
14211   enable_dlopen=unknown
14212   enable_dlopen_self=unknown
14213   enable_dlopen_self_static=unknown
14214 else
14215   lt_cv_dlopen=no
14216   lt_cv_dlopen_libs=
14217
14218   case $host_os in
14219   beos*)
14220     lt_cv_dlopen="load_add_on"
14221     lt_cv_dlopen_libs=
14222     lt_cv_dlopen_self=yes
14223     ;;
14224
14225   mingw* | pw32*)
14226     lt_cv_dlopen="LoadLibrary"
14227     lt_cv_dlopen_libs=
14228    ;;
14229
14230   cygwin*)
14231     lt_cv_dlopen="dlopen"
14232     lt_cv_dlopen_libs=
14233    ;;
14234
14235   darwin*)
14236   # if libdl is installed we need to link against it
14237     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14238 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14239 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14240   echo $ECHO_N "(cached) $ECHO_C" >&6
14241 else
14242   ac_check_lib_save_LIBS=$LIBS
14243 LIBS="-ldl  $LIBS"
14244 cat >conftest.$ac_ext <<_ACEOF
14245 /* confdefs.h.  */
14246 _ACEOF
14247 cat confdefs.h >>conftest.$ac_ext
14248 cat >>conftest.$ac_ext <<_ACEOF
14249 /* end confdefs.h.  */
14250
14251 /* Override any gcc2 internal prototype to avoid an error.  */
14252 #ifdef __cplusplus
14253 extern "C"
14254 #endif
14255 /* We use char because int might match the return type of a gcc2
14256    builtin and then its argument prototype would still apply.  */
14257 char dlopen ();
14258 int
14259 main ()
14260 {
14261 dlopen ();
14262   ;
14263   return 0;
14264 }
14265 _ACEOF
14266 rm -f conftest.$ac_objext conftest$ac_exeext
14267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14268   (eval $ac_link) 2>conftest.er1
14269   ac_status=$?
14270   grep -v '^ *+' conftest.er1 >conftest.err
14271   rm -f conftest.er1
14272   cat conftest.err >&5
14273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); } &&
14275          { ac_try='test -z "$ac_cxx_werror_flag"
14276                          || test ! -s conftest.err'
14277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278   (eval $ac_try) 2>&5
14279   ac_status=$?
14280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281   (exit $ac_status); }; } &&
14282          { ac_try='test -s conftest$ac_exeext'
14283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284   (eval $ac_try) 2>&5
14285   ac_status=$?
14286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287   (exit $ac_status); }; }; then
14288   ac_cv_lib_dl_dlopen=yes
14289 else
14290   echo "$as_me: failed program was:" >&5
14291 sed 's/^/| /' conftest.$ac_ext >&5
14292
14293 ac_cv_lib_dl_dlopen=no
14294 fi
14295 rm -f conftest.err conftest.$ac_objext \
14296       conftest$ac_exeext conftest.$ac_ext
14297 LIBS=$ac_check_lib_save_LIBS
14298 fi
14299 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14300 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14301 if test $ac_cv_lib_dl_dlopen = yes; then
14302   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14303 else
14304
14305     lt_cv_dlopen="dyld"
14306     lt_cv_dlopen_libs=
14307     lt_cv_dlopen_self=yes
14308
14309 fi
14310
14311    ;;
14312
14313   *)
14314     echo "$as_me:$LINENO: checking for shl_load" >&5
14315 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14316 if test "${ac_cv_func_shl_load+set}" = set; then
14317   echo $ECHO_N "(cached) $ECHO_C" >&6
14318 else
14319   cat >conftest.$ac_ext <<_ACEOF
14320 /* confdefs.h.  */
14321 _ACEOF
14322 cat confdefs.h >>conftest.$ac_ext
14323 cat >>conftest.$ac_ext <<_ACEOF
14324 /* end confdefs.h.  */
14325 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14326    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14327 #define shl_load innocuous_shl_load
14328
14329 /* System header to define __stub macros and hopefully few prototypes,
14330     which can conflict with char shl_load (); below.
14331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14332     <limits.h> exists even on freestanding compilers.  */
14333
14334 #ifdef __STDC__
14335 # include <limits.h>
14336 #else
14337 # include <assert.h>
14338 #endif
14339
14340 #undef shl_load
14341
14342 /* Override any gcc2 internal prototype to avoid an error.  */
14343 #ifdef __cplusplus
14344 extern "C"
14345 {
14346 #endif
14347 /* We use char because int might match the return type of a gcc2
14348    builtin and then its argument prototype would still apply.  */
14349 char shl_load ();
14350 /* The GNU C library defines this for functions which it implements
14351     to always fail with ENOSYS.  Some functions are actually named
14352     something starting with __ and the normal name is an alias.  */
14353 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14354 choke me
14355 #else
14356 char (*f) () = shl_load;
14357 #endif
14358 #ifdef __cplusplus
14359 }
14360 #endif
14361
14362 int
14363 main ()
14364 {
14365 return f != shl_load;
14366   ;
14367   return 0;
14368 }
14369 _ACEOF
14370 rm -f conftest.$ac_objext conftest$ac_exeext
14371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14372   (eval $ac_link) 2>conftest.er1
14373   ac_status=$?
14374   grep -v '^ *+' conftest.er1 >conftest.err
14375   rm -f conftest.er1
14376   cat conftest.err >&5
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); } &&
14379          { ac_try='test -z "$ac_cxx_werror_flag"
14380                          || test ! -s conftest.err'
14381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382   (eval $ac_try) 2>&5
14383   ac_status=$?
14384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385   (exit $ac_status); }; } &&
14386          { ac_try='test -s conftest$ac_exeext'
14387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388   (eval $ac_try) 2>&5
14389   ac_status=$?
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); }; }; then
14392   ac_cv_func_shl_load=yes
14393 else
14394   echo "$as_me: failed program was:" >&5
14395 sed 's/^/| /' conftest.$ac_ext >&5
14396
14397 ac_cv_func_shl_load=no
14398 fi
14399 rm -f conftest.err conftest.$ac_objext \
14400       conftest$ac_exeext conftest.$ac_ext
14401 fi
14402 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14403 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14404 if test $ac_cv_func_shl_load = yes; then
14405   lt_cv_dlopen="shl_load"
14406 else
14407   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14408 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14409 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14410   echo $ECHO_N "(cached) $ECHO_C" >&6
14411 else
14412   ac_check_lib_save_LIBS=$LIBS
14413 LIBS="-ldld  $LIBS"
14414 cat >conftest.$ac_ext <<_ACEOF
14415 /* confdefs.h.  */
14416 _ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h.  */
14420
14421 /* Override any gcc2 internal prototype to avoid an error.  */
14422 #ifdef __cplusplus
14423 extern "C"
14424 #endif
14425 /* We use char because int might match the return type of a gcc2
14426    builtin and then its argument prototype would still apply.  */
14427 char shl_load ();
14428 int
14429 main ()
14430 {
14431 shl_load ();
14432   ;
14433   return 0;
14434 }
14435 _ACEOF
14436 rm -f conftest.$ac_objext conftest$ac_exeext
14437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14438   (eval $ac_link) 2>conftest.er1
14439   ac_status=$?
14440   grep -v '^ *+' conftest.er1 >conftest.err
14441   rm -f conftest.er1
14442   cat conftest.err >&5
14443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444   (exit $ac_status); } &&
14445          { ac_try='test -z "$ac_cxx_werror_flag"
14446                          || test ! -s conftest.err'
14447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448   (eval $ac_try) 2>&5
14449   ac_status=$?
14450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451   (exit $ac_status); }; } &&
14452          { ac_try='test -s conftest$ac_exeext'
14453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454   (eval $ac_try) 2>&5
14455   ac_status=$?
14456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457   (exit $ac_status); }; }; then
14458   ac_cv_lib_dld_shl_load=yes
14459 else
14460   echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14462
14463 ac_cv_lib_dld_shl_load=no
14464 fi
14465 rm -f conftest.err conftest.$ac_objext \
14466       conftest$ac_exeext conftest.$ac_ext
14467 LIBS=$ac_check_lib_save_LIBS
14468 fi
14469 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14470 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14471 if test $ac_cv_lib_dld_shl_load = yes; then
14472   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14473 else
14474   echo "$as_me:$LINENO: checking for dlopen" >&5
14475 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14476 if test "${ac_cv_func_dlopen+set}" = set; then
14477   echo $ECHO_N "(cached) $ECHO_C" >&6
14478 else
14479   cat >conftest.$ac_ext <<_ACEOF
14480 /* confdefs.h.  */
14481 _ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h.  */
14485 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14487 #define dlopen innocuous_dlopen
14488
14489 /* System header to define __stub macros and hopefully few prototypes,
14490     which can conflict with char dlopen (); below.
14491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14492     <limits.h> exists even on freestanding compilers.  */
14493
14494 #ifdef __STDC__
14495 # include <limits.h>
14496 #else
14497 # include <assert.h>
14498 #endif
14499
14500 #undef dlopen
14501
14502 /* Override any gcc2 internal prototype to avoid an error.  */
14503 #ifdef __cplusplus
14504 extern "C"
14505 {
14506 #endif
14507 /* We use char because int might match the return type of a gcc2
14508    builtin and then its argument prototype would still apply.  */
14509 char dlopen ();
14510 /* The GNU C library defines this for functions which it implements
14511     to always fail with ENOSYS.  Some functions are actually named
14512     something starting with __ and the normal name is an alias.  */
14513 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14514 choke me
14515 #else
14516 char (*f) () = dlopen;
14517 #endif
14518 #ifdef __cplusplus
14519 }
14520 #endif
14521
14522 int
14523 main ()
14524 {
14525 return f != dlopen;
14526   ;
14527   return 0;
14528 }
14529 _ACEOF
14530 rm -f conftest.$ac_objext conftest$ac_exeext
14531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14532   (eval $ac_link) 2>conftest.er1
14533   ac_status=$?
14534   grep -v '^ *+' conftest.er1 >conftest.err
14535   rm -f conftest.er1
14536   cat conftest.err >&5
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); } &&
14539          { ac_try='test -z "$ac_cxx_werror_flag"
14540                          || test ! -s conftest.err'
14541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542   (eval $ac_try) 2>&5
14543   ac_status=$?
14544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545   (exit $ac_status); }; } &&
14546          { ac_try='test -s conftest$ac_exeext'
14547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548   (eval $ac_try) 2>&5
14549   ac_status=$?
14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); }; }; then
14552   ac_cv_func_dlopen=yes
14553 else
14554   echo "$as_me: failed program was:" >&5
14555 sed 's/^/| /' conftest.$ac_ext >&5
14556
14557 ac_cv_func_dlopen=no
14558 fi
14559 rm -f conftest.err conftest.$ac_objext \
14560       conftest$ac_exeext conftest.$ac_ext
14561 fi
14562 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14563 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14564 if test $ac_cv_func_dlopen = yes; then
14565   lt_cv_dlopen="dlopen"
14566 else
14567   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14568 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14569 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14570   echo $ECHO_N "(cached) $ECHO_C" >&6
14571 else
14572   ac_check_lib_save_LIBS=$LIBS
14573 LIBS="-ldl  $LIBS"
14574 cat >conftest.$ac_ext <<_ACEOF
14575 /* confdefs.h.  */
14576 _ACEOF
14577 cat confdefs.h >>conftest.$ac_ext
14578 cat >>conftest.$ac_ext <<_ACEOF
14579 /* end confdefs.h.  */
14580
14581 /* Override any gcc2 internal prototype to avoid an error.  */
14582 #ifdef __cplusplus
14583 extern "C"
14584 #endif
14585 /* We use char because int might match the return type of a gcc2
14586    builtin and then its argument prototype would still apply.  */
14587 char dlopen ();
14588 int
14589 main ()
14590 {
14591 dlopen ();
14592   ;
14593   return 0;
14594 }
14595 _ACEOF
14596 rm -f conftest.$ac_objext conftest$ac_exeext
14597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14598   (eval $ac_link) 2>conftest.er1
14599   ac_status=$?
14600   grep -v '^ *+' conftest.er1 >conftest.err
14601   rm -f conftest.er1
14602   cat conftest.err >&5
14603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604   (exit $ac_status); } &&
14605          { ac_try='test -z "$ac_cxx_werror_flag"
14606                          || test ! -s conftest.err'
14607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608   (eval $ac_try) 2>&5
14609   ac_status=$?
14610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); }; } &&
14612          { ac_try='test -s conftest$ac_exeext'
14613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614   (eval $ac_try) 2>&5
14615   ac_status=$?
14616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617   (exit $ac_status); }; }; then
14618   ac_cv_lib_dl_dlopen=yes
14619 else
14620   echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14622
14623 ac_cv_lib_dl_dlopen=no
14624 fi
14625 rm -f conftest.err conftest.$ac_objext \
14626       conftest$ac_exeext conftest.$ac_ext
14627 LIBS=$ac_check_lib_save_LIBS
14628 fi
14629 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14630 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14631 if test $ac_cv_lib_dl_dlopen = yes; then
14632   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14633 else
14634   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14635 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14636 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14637   echo $ECHO_N "(cached) $ECHO_C" >&6
14638 else
14639   ac_check_lib_save_LIBS=$LIBS
14640 LIBS="-lsvld  $LIBS"
14641 cat >conftest.$ac_ext <<_ACEOF
14642 /* confdefs.h.  */
14643 _ACEOF
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h.  */
14647
14648 /* Override any gcc2 internal prototype to avoid an error.  */
14649 #ifdef __cplusplus
14650 extern "C"
14651 #endif
14652 /* We use char because int might match the return type of a gcc2
14653    builtin and then its argument prototype would still apply.  */
14654 char dlopen ();
14655 int
14656 main ()
14657 {
14658 dlopen ();
14659   ;
14660   return 0;
14661 }
14662 _ACEOF
14663 rm -f conftest.$ac_objext conftest$ac_exeext
14664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14665   (eval $ac_link) 2>conftest.er1
14666   ac_status=$?
14667   grep -v '^ *+' conftest.er1 >conftest.err
14668   rm -f conftest.er1
14669   cat conftest.err >&5
14670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671   (exit $ac_status); } &&
14672          { ac_try='test -z "$ac_cxx_werror_flag"
14673                          || test ! -s conftest.err'
14674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675   (eval $ac_try) 2>&5
14676   ac_status=$?
14677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678   (exit $ac_status); }; } &&
14679          { ac_try='test -s conftest$ac_exeext'
14680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681   (eval $ac_try) 2>&5
14682   ac_status=$?
14683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684   (exit $ac_status); }; }; then
14685   ac_cv_lib_svld_dlopen=yes
14686 else
14687   echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14689
14690 ac_cv_lib_svld_dlopen=no
14691 fi
14692 rm -f conftest.err conftest.$ac_objext \
14693       conftest$ac_exeext conftest.$ac_ext
14694 LIBS=$ac_check_lib_save_LIBS
14695 fi
14696 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14697 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14698 if test $ac_cv_lib_svld_dlopen = yes; then
14699   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14700 else
14701   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14702 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14703 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14704   echo $ECHO_N "(cached) $ECHO_C" >&6
14705 else
14706   ac_check_lib_save_LIBS=$LIBS
14707 LIBS="-ldld  $LIBS"
14708 cat >conftest.$ac_ext <<_ACEOF
14709 /* confdefs.h.  */
14710 _ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h.  */
14714
14715 /* Override any gcc2 internal prototype to avoid an error.  */
14716 #ifdef __cplusplus
14717 extern "C"
14718 #endif
14719 /* We use char because int might match the return type of a gcc2
14720    builtin and then its argument prototype would still apply.  */
14721 char dld_link ();
14722 int
14723 main ()
14724 {
14725 dld_link ();
14726   ;
14727   return 0;
14728 }
14729 _ACEOF
14730 rm -f conftest.$ac_objext conftest$ac_exeext
14731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14732   (eval $ac_link) 2>conftest.er1
14733   ac_status=$?
14734   grep -v '^ *+' conftest.er1 >conftest.err
14735   rm -f conftest.er1
14736   cat conftest.err >&5
14737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); } &&
14739          { ac_try='test -z "$ac_cxx_werror_flag"
14740                          || test ! -s conftest.err'
14741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742   (eval $ac_try) 2>&5
14743   ac_status=$?
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); }; } &&
14746          { ac_try='test -s conftest$ac_exeext'
14747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748   (eval $ac_try) 2>&5
14749   ac_status=$?
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); }; }; then
14752   ac_cv_lib_dld_dld_link=yes
14753 else
14754   echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14756
14757 ac_cv_lib_dld_dld_link=no
14758 fi
14759 rm -f conftest.err conftest.$ac_objext \
14760       conftest$ac_exeext conftest.$ac_ext
14761 LIBS=$ac_check_lib_save_LIBS
14762 fi
14763 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14764 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14765 if test $ac_cv_lib_dld_dld_link = yes; then
14766   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14767 fi
14768
14769
14770 fi
14771
14772
14773 fi
14774
14775
14776 fi
14777
14778
14779 fi
14780
14781
14782 fi
14783
14784     ;;
14785   esac
14786
14787   if test "x$lt_cv_dlopen" != xno; then
14788     enable_dlopen=yes
14789   else
14790     enable_dlopen=no
14791   fi
14792
14793   case $lt_cv_dlopen in
14794   dlopen)
14795     save_CPPFLAGS="$CPPFLAGS"
14796     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14797
14798     save_LDFLAGS="$LDFLAGS"
14799     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14800
14801     save_LIBS="$LIBS"
14802     LIBS="$lt_cv_dlopen_libs $LIBS"
14803
14804     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14805 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14806 if test "${lt_cv_dlopen_self+set}" = set; then
14807   echo $ECHO_N "(cached) $ECHO_C" >&6
14808 else
14809           if test "$cross_compiling" = yes; then :
14810   lt_cv_dlopen_self=cross
14811 else
14812   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14813   lt_status=$lt_dlunknown
14814   cat > conftest.$ac_ext <<EOF
14815 #line 14815 "configure"
14816 #include "confdefs.h"
14817
14818 #if HAVE_DLFCN_H
14819 #include <dlfcn.h>
14820 #endif
14821
14822 #include <stdio.h>
14823
14824 #ifdef RTLD_GLOBAL
14825 #  define LT_DLGLOBAL           RTLD_GLOBAL
14826 #else
14827 #  ifdef DL_GLOBAL
14828 #    define LT_DLGLOBAL         DL_GLOBAL
14829 #  else
14830 #    define LT_DLGLOBAL         0
14831 #  endif
14832 #endif
14833
14834 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14835    find out it does not work in some platform. */
14836 #ifndef LT_DLLAZY_OR_NOW
14837 #  ifdef RTLD_LAZY
14838 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14839 #  else
14840 #    ifdef DL_LAZY
14841 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14842 #    else
14843 #      ifdef RTLD_NOW
14844 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14845 #      else
14846 #        ifdef DL_NOW
14847 #          define LT_DLLAZY_OR_NOW      DL_NOW
14848 #        else
14849 #          define LT_DLLAZY_OR_NOW      0
14850 #        endif
14851 #      endif
14852 #    endif
14853 #  endif
14854 #endif
14855
14856 #ifdef __cplusplus
14857 extern "C" void exit (int);
14858 #endif
14859
14860 void fnord() { int i=42;}
14861 int main ()
14862 {
14863   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14864   int status = $lt_dlunknown;
14865
14866   if (self)
14867     {
14868       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14869       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14870       /* dlclose (self); */
14871     }
14872
14873     exit (status);
14874 }
14875 EOF
14876   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14877   (eval $ac_link) 2>&5
14878   ac_status=$?
14879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14881     (./conftest; exit; ) 2>/dev/null
14882     lt_status=$?
14883     case x$lt_status in
14884       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14885       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14886       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14887     esac
14888   else :
14889     # compilation failed
14890     lt_cv_dlopen_self=no
14891   fi
14892 fi
14893 rm -fr conftest*
14894
14895
14896 fi
14897 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14898 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14899
14900     if test "x$lt_cv_dlopen_self" = xyes; then
14901       LDFLAGS="$LDFLAGS $link_static_flag"
14902       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14903 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14904 if test "${lt_cv_dlopen_self_static+set}" = set; then
14905   echo $ECHO_N "(cached) $ECHO_C" >&6
14906 else
14907           if test "$cross_compiling" = yes; then :
14908   lt_cv_dlopen_self_static=cross
14909 else
14910   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14911   lt_status=$lt_dlunknown
14912   cat > conftest.$ac_ext <<EOF
14913 #line 14913 "configure"
14914 #include "confdefs.h"
14915
14916 #if HAVE_DLFCN_H
14917 #include <dlfcn.h>
14918 #endif
14919
14920 #include <stdio.h>
14921
14922 #ifdef RTLD_GLOBAL
14923 #  define LT_DLGLOBAL           RTLD_GLOBAL
14924 #else
14925 #  ifdef DL_GLOBAL
14926 #    define LT_DLGLOBAL         DL_GLOBAL
14927 #  else
14928 #    define LT_DLGLOBAL         0
14929 #  endif
14930 #endif
14931
14932 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14933    find out it does not work in some platform. */
14934 #ifndef LT_DLLAZY_OR_NOW
14935 #  ifdef RTLD_LAZY
14936 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14937 #  else
14938 #    ifdef DL_LAZY
14939 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14940 #    else
14941 #      ifdef RTLD_NOW
14942 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14943 #      else
14944 #        ifdef DL_NOW
14945 #          define LT_DLLAZY_OR_NOW      DL_NOW
14946 #        else
14947 #          define LT_DLLAZY_OR_NOW      0
14948 #        endif
14949 #      endif
14950 #    endif
14951 #  endif
14952 #endif
14953
14954 #ifdef __cplusplus
14955 extern "C" void exit (int);
14956 #endif
14957
14958 void fnord() { int i=42;}
14959 int main ()
14960 {
14961   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14962   int status = $lt_dlunknown;
14963
14964   if (self)
14965     {
14966       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14967       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14968       /* dlclose (self); */
14969     }
14970
14971     exit (status);
14972 }
14973 EOF
14974   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14975   (eval $ac_link) 2>&5
14976   ac_status=$?
14977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14979     (./conftest; exit; ) 2>/dev/null
14980     lt_status=$?
14981     case x$lt_status in
14982       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14983       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14984       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14985     esac
14986   else :
14987     # compilation failed
14988     lt_cv_dlopen_self_static=no
14989   fi
14990 fi
14991 rm -fr conftest*
14992
14993
14994 fi
14995 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14996 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14997     fi
14998
14999     CPPFLAGS="$save_CPPFLAGS"
15000     LDFLAGS="$save_LDFLAGS"
15001     LIBS="$save_LIBS"
15002     ;;
15003   esac
15004
15005   case $lt_cv_dlopen_self in
15006   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15007   *) enable_dlopen_self=unknown ;;
15008   esac
15009
15010   case $lt_cv_dlopen_self_static in
15011   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15012   *) enable_dlopen_self_static=unknown ;;
15013   esac
15014 fi
15015
15016
15017 # The else clause should only fire when bootstrapping the
15018 # libtool distribution, otherwise you forgot to ship ltmain.sh
15019 # with your package, and you will get complaints that there are
15020 # no rules to generate ltmain.sh.
15021 if test -f "$ltmain"; then
15022   # See if we are running on zsh, and set the options which allow our commands through
15023   # without removal of \ escapes.
15024   if test -n "${ZSH_VERSION+set}" ; then
15025     setopt NO_GLOB_SUBST
15026   fi
15027   # Now quote all the things that may contain metacharacters while being
15028   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15029   # variables and quote the copies for generation of the libtool script.
15030   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15031     SED SHELL STRIP \
15032     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15033     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15034     deplibs_check_method reload_flag reload_cmds need_locks \
15035     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15036     lt_cv_sys_global_symbol_to_c_name_address \
15037     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15038     old_postinstall_cmds old_postuninstall_cmds \
15039     compiler_CXX \
15040     CC_CXX \
15041     LD_CXX \
15042     lt_prog_compiler_wl_CXX \
15043     lt_prog_compiler_pic_CXX \
15044     lt_prog_compiler_static_CXX \
15045     lt_prog_compiler_no_builtin_flag_CXX \
15046     export_dynamic_flag_spec_CXX \
15047     thread_safe_flag_spec_CXX \
15048     whole_archive_flag_spec_CXX \
15049     enable_shared_with_static_runtimes_CXX \
15050     old_archive_cmds_CXX \
15051     old_archive_from_new_cmds_CXX \
15052     predep_objects_CXX \
15053     postdep_objects_CXX \
15054     predeps_CXX \
15055     postdeps_CXX \
15056     compiler_lib_search_path_CXX \
15057     archive_cmds_CXX \
15058     archive_expsym_cmds_CXX \
15059     postinstall_cmds_CXX \
15060     postuninstall_cmds_CXX \
15061     old_archive_from_expsyms_cmds_CXX \
15062     allow_undefined_flag_CXX \
15063     no_undefined_flag_CXX \
15064     export_symbols_cmds_CXX \
15065     hardcode_libdir_flag_spec_CXX \
15066     hardcode_libdir_flag_spec_ld_CXX \
15067     hardcode_libdir_separator_CXX \
15068     hardcode_automatic_CXX \
15069     module_cmds_CXX \
15070     module_expsym_cmds_CXX \
15071     lt_cv_prog_compiler_c_o_CXX \
15072     exclude_expsyms_CXX \
15073     include_expsyms_CXX; do
15074
15075     case $var in
15076     old_archive_cmds_CXX | \
15077     old_archive_from_new_cmds_CXX | \
15078     archive_cmds_CXX | \
15079     archive_expsym_cmds_CXX | \
15080     module_cmds_CXX | \
15081     module_expsym_cmds_CXX | \
15082     old_archive_from_expsyms_cmds_CXX | \
15083     export_symbols_cmds_CXX | \
15084     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15085     postinstall_cmds | postuninstall_cmds | \
15086     old_postinstall_cmds | old_postuninstall_cmds | \
15087     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15088       # Double-quote double-evaled strings.
15089       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15090       ;;
15091     *)
15092       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15093       ;;
15094     esac
15095   done
15096
15097   case $lt_echo in
15098   *'\$0 --fallback-echo"')
15099     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15100     ;;
15101   esac
15102
15103 cfgfile="$ofile"
15104
15105   cat <<__EOF__ >> "$cfgfile"
15106 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15107
15108 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15109
15110 # Shell to use when invoking shell scripts.
15111 SHELL=$lt_SHELL
15112
15113 # Whether or not to build shared libraries.
15114 build_libtool_libs=$enable_shared
15115
15116 # Whether or not to build static libraries.
15117 build_old_libs=$enable_static
15118
15119 # Whether or not to add -lc for building shared libraries.
15120 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15121
15122 # Whether or not to disallow shared libs when runtime libs are static
15123 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15124
15125 # Whether or not to optimize for fast installation.
15126 fast_install=$enable_fast_install
15127
15128 # The host system.
15129 host_alias=$host_alias
15130 host=$host
15131 host_os=$host_os
15132
15133 # The build system.
15134 build_alias=$build_alias
15135 build=$build
15136 build_os=$build_os
15137
15138 # An echo program that does not interpret backslashes.
15139 echo=$lt_echo
15140
15141 # The archiver.
15142 AR=$lt_AR
15143 AR_FLAGS=$lt_AR_FLAGS
15144
15145 # A C compiler.
15146 LTCC=$lt_LTCC
15147
15148 # A language-specific compiler.
15149 CC=$lt_compiler_CXX
15150
15151 # Is the compiler the GNU C compiler?
15152 with_gcc=$GCC_CXX
15153
15154 # An ERE matcher.
15155 EGREP=$lt_EGREP
15156
15157 # The linker used to build libraries.
15158 LD=$lt_LD_CXX
15159
15160 # Whether we need hard or soft links.
15161 LN_S=$lt_LN_S
15162
15163 # A BSD-compatible nm program.
15164 NM=$lt_NM
15165
15166 # A symbol stripping program
15167 STRIP=$lt_STRIP
15168
15169 # Used to examine libraries when file_magic_cmd begins "file"
15170 MAGIC_CMD=$MAGIC_CMD
15171
15172 # Used on cygwin: DLL creation program.
15173 DLLTOOL="$DLLTOOL"
15174
15175 # Used on cygwin: object dumper.
15176 OBJDUMP="$OBJDUMP"
15177
15178 # Used on cygwin: assembler.
15179 AS="$AS"
15180
15181 # The name of the directory that contains temporary libtool files.
15182 objdir=$objdir
15183
15184 # How to create reloadable object files.
15185 reload_flag=$lt_reload_flag
15186 reload_cmds=$lt_reload_cmds
15187
15188 # How to pass a linker flag through the compiler.
15189 wl=$lt_lt_prog_compiler_wl_CXX
15190
15191 # Object file suffix (normally "o").
15192 objext="$ac_objext"
15193
15194 # Old archive suffix (normally "a").
15195 libext="$libext"
15196
15197 # Shared library suffix (normally ".so").
15198 shrext_cmds='$shrext_cmds'
15199
15200 # Executable file suffix (normally "").
15201 exeext="$exeext"
15202
15203 # Additional compiler flags for building library objects.
15204 pic_flag=$lt_lt_prog_compiler_pic_CXX
15205 pic_mode=$pic_mode
15206
15207 # What is the maximum length of a command?
15208 max_cmd_len=$lt_cv_sys_max_cmd_len
15209
15210 # Does compiler simultaneously support -c and -o options?
15211 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15212
15213 # Must we lock files when doing compilation?
15214 need_locks=$lt_need_locks
15215
15216 # Do we need the lib prefix for modules?
15217 need_lib_prefix=$need_lib_prefix
15218
15219 # Do we need a version for libraries?
15220 need_version=$need_version
15221
15222 # Whether dlopen is supported.
15223 dlopen_support=$enable_dlopen
15224
15225 # Whether dlopen of programs is supported.
15226 dlopen_self=$enable_dlopen_self
15227
15228 # Whether dlopen of statically linked programs is supported.
15229 dlopen_self_static=$enable_dlopen_self_static
15230
15231 # Compiler flag to prevent dynamic linking.
15232 link_static_flag=$lt_lt_prog_compiler_static_CXX
15233
15234 # Compiler flag to turn off builtin functions.
15235 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15236
15237 # Compiler flag to allow reflexive dlopens.
15238 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15239
15240 # Compiler flag to generate shared objects directly from archives.
15241 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15242
15243 # Compiler flag to generate thread-safe objects.
15244 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15245
15246 # Library versioning type.
15247 version_type=$version_type
15248
15249 # Format of library name prefix.
15250 libname_spec=$lt_libname_spec
15251
15252 # List of archive names.  First name is the real one, the rest are links.
15253 # The last name is the one that the linker finds with -lNAME.
15254 library_names_spec=$lt_library_names_spec
15255
15256 # The coded name of the library, if different from the real name.
15257 soname_spec=$lt_soname_spec
15258
15259 # Commands used to build and install an old-style archive.
15260 RANLIB=$lt_RANLIB
15261 old_archive_cmds=$lt_old_archive_cmds_CXX
15262 old_postinstall_cmds=$lt_old_postinstall_cmds
15263 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15264
15265 # Create an old-style archive from a shared archive.
15266 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15267
15268 # Create a temporary old-style archive to link instead of a shared archive.
15269 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15270
15271 # Commands used to build and install a shared archive.
15272 archive_cmds=$lt_archive_cmds_CXX
15273 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15274 postinstall_cmds=$lt_postinstall_cmds
15275 postuninstall_cmds=$lt_postuninstall_cmds
15276
15277 # Commands used to build a loadable module (assumed same as above if empty)
15278 module_cmds=$lt_module_cmds_CXX
15279 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15280
15281 # Commands to strip libraries.
15282 old_striplib=$lt_old_striplib
15283 striplib=$lt_striplib
15284
15285 # Dependencies to place before the objects being linked to create a
15286 # shared library.
15287 predep_objects=$lt_predep_objects_CXX
15288
15289 # Dependencies to place after the objects being linked to create a
15290 # shared library.
15291 postdep_objects=$lt_postdep_objects_CXX
15292
15293 # Dependencies to place before the objects being linked to create a
15294 # shared library.
15295 predeps=$lt_predeps_CXX
15296
15297 # Dependencies to place after the objects being linked to create a
15298 # shared library.
15299 postdeps=$lt_postdeps_CXX
15300
15301 # The library search path used internally by the compiler when linking
15302 # a shared library.
15303 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15304
15305 # Method to check whether dependent libraries are shared objects.
15306 deplibs_check_method=$lt_deplibs_check_method
15307
15308 # Command to use when deplibs_check_method == file_magic.
15309 file_magic_cmd=$lt_file_magic_cmd
15310
15311 # Flag that allows shared libraries with undefined symbols to be built.
15312 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15313
15314 # Flag that forces no undefined symbols.
15315 no_undefined_flag=$lt_no_undefined_flag_CXX
15316
15317 # Commands used to finish a libtool library installation in a directory.
15318 finish_cmds=$lt_finish_cmds
15319
15320 # Same as above, but a single script fragment to be evaled but not shown.
15321 finish_eval=$lt_finish_eval
15322
15323 # Take the output of nm and produce a listing of raw symbols and C names.
15324 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15325
15326 # Transform the output of nm in a proper C declaration
15327 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15328
15329 # Transform the output of nm in a C name address pair
15330 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15331
15332 # This is the shared library runtime path variable.
15333 runpath_var=$runpath_var
15334
15335 # This is the shared library path variable.
15336 shlibpath_var=$shlibpath_var
15337
15338 # Is shlibpath searched before the hard-coded library search path?
15339 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15340
15341 # How to hardcode a shared library path into an executable.
15342 hardcode_action=$hardcode_action_CXX
15343
15344 # Whether we should hardcode library paths into libraries.
15345 hardcode_into_libs=$hardcode_into_libs
15346
15347 # Flag to hardcode \$libdir into a binary during linking.
15348 # This must work even if \$libdir does not exist.
15349 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15350
15351 # If ld is used when linking, flag to hardcode \$libdir into
15352 # a binary during linking. This must work even if \$libdir does
15353 # not exist.
15354 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15355
15356 # Whether we need a single -rpath flag with a separated argument.
15357 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15358
15359 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15360 # resulting binary.
15361 hardcode_direct=$hardcode_direct_CXX
15362
15363 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15364 # resulting binary.
15365 hardcode_minus_L=$hardcode_minus_L_CXX
15366
15367 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15368 # the resulting binary.
15369 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15370
15371 # Set to yes if building a shared library automatically hardcodes DIR into the library
15372 # and all subsequent libraries and executables linked against it.
15373 hardcode_automatic=$hardcode_automatic_CXX
15374
15375 # Variables whose values should be saved in libtool wrapper scripts and
15376 # restored at relink time.
15377 variables_saved_for_relink="$variables_saved_for_relink"
15378
15379 # Whether libtool must link a program against all its dependency libraries.
15380 link_all_deplibs=$link_all_deplibs_CXX
15381
15382 # Compile-time system search path for libraries
15383 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15384
15385 # Run-time system search path for libraries
15386 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15387
15388 # Fix the shell variable \$srcfile for the compiler.
15389 fix_srcfile_path="$fix_srcfile_path_CXX"
15390
15391 # Set to yes if exported symbols are required.
15392 always_export_symbols=$always_export_symbols_CXX
15393
15394 # The commands to list exported symbols.
15395 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15396
15397 # The commands to extract the exported symbol list from a shared archive.
15398 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15399
15400 # Symbols that should not be listed in the preloaded symbols.
15401 exclude_expsyms=$lt_exclude_expsyms_CXX
15402
15403 # Symbols that must always be exported.
15404 include_expsyms=$lt_include_expsyms_CXX
15405
15406 # ### END LIBTOOL TAG CONFIG: $tagname
15407
15408 __EOF__
15409
15410
15411 else
15412   # If there is no Makefile yet, we rely on a make rule to execute
15413   # `config.status --recheck' to rerun these tests and create the
15414   # libtool script then.
15415   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15416   if test -f "$ltmain_in"; then
15417     test -f Makefile && make "$ltmain"
15418   fi
15419 fi
15420
15421
15422 ac_ext=c
15423 ac_cpp='$CPP $CPPFLAGS'
15424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15427
15428 CC=$lt_save_CC
15429 LDCXX=$LD
15430 LD=$lt_save_LD
15431 GCC=$lt_save_GCC
15432 with_gnu_ldcxx=$with_gnu_ld
15433 with_gnu_ld=$lt_save_with_gnu_ld
15434 lt_cv_path_LDCXX=$lt_cv_path_LD
15435 lt_cv_path_LD=$lt_save_path_LD
15436 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15437 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15438
15439         else
15440           tagname=""
15441         fi
15442         ;;
15443
15444       F77)
15445         if test -n "$F77" && test "X$F77" != "Xno"; then
15446
15447 ac_ext=f
15448 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15449 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15450 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15451
15452
15453 archive_cmds_need_lc_F77=no
15454 allow_undefined_flag_F77=
15455 always_export_symbols_F77=no
15456 archive_expsym_cmds_F77=
15457 export_dynamic_flag_spec_F77=
15458 hardcode_direct_F77=no
15459 hardcode_libdir_flag_spec_F77=
15460 hardcode_libdir_flag_spec_ld_F77=
15461 hardcode_libdir_separator_F77=
15462 hardcode_minus_L_F77=no
15463 hardcode_automatic_F77=no
15464 module_cmds_F77=
15465 module_expsym_cmds_F77=
15466 link_all_deplibs_F77=unknown
15467 old_archive_cmds_F77=$old_archive_cmds
15468 no_undefined_flag_F77=
15469 whole_archive_flag_spec_F77=
15470 enable_shared_with_static_runtimes_F77=no
15471
15472 # Source file extension for f77 test sources.
15473 ac_ext=f
15474
15475 # Object file extension for compiled f77 test sources.
15476 objext=o
15477 objext_F77=$objext
15478
15479 # Code to be used in simple compile tests
15480 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15481
15482 # Code to be used in simple link tests
15483 lt_simple_link_test_code="      program t\n      end\n"
15484
15485 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15486
15487 # If no C compiler was specified, use CC.
15488 LTCC=${LTCC-"$CC"}
15489
15490 # Allow CC to be a program name with arguments.
15491 compiler=$CC
15492
15493
15494 # save warnings/boilerplate of simple test code
15495 ac_outfile=conftest.$ac_objext
15496 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15497 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15498 _lt_compiler_boilerplate=`cat conftest.err`
15499 $rm conftest*
15500
15501 ac_outfile=conftest.$ac_objext
15502 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15503 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15504 _lt_linker_boilerplate=`cat conftest.err`
15505 $rm conftest*
15506
15507
15508 # Allow CC to be a program name with arguments.
15509 lt_save_CC="$CC"
15510 CC=${F77-"f77"}
15511 compiler=$CC
15512 compiler_F77=$CC
15513 for cc_temp in $compiler""; do
15514   case $cc_temp in
15515     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15516     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15517     \-*) ;;
15518     *) break;;
15519   esac
15520 done
15521 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15522
15523
15524 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15525 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15526 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15527 echo "${ECHO_T}$can_build_shared" >&6
15528
15529 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15530 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15531 test "$can_build_shared" = "no" && enable_shared=no
15532
15533 # On AIX, shared libraries and static libraries use the same namespace, and
15534 # are all built from PIC.
15535 case "$host_os" in
15536 aix3*)
15537   test "$enable_shared" = yes && enable_static=no
15538   if test -n "$RANLIB"; then
15539     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15540     postinstall_cmds='$RANLIB $lib'
15541   fi
15542   ;;
15543 aix4* | aix5*)
15544   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15545     test "$enable_shared" = yes && enable_static=no
15546   fi
15547   ;;
15548 esac
15549 echo "$as_me:$LINENO: result: $enable_shared" >&5
15550 echo "${ECHO_T}$enable_shared" >&6
15551
15552 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15553 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15554 # Make sure either enable_shared or enable_static is yes.
15555 test "$enable_shared" = yes || enable_static=yes
15556 echo "$as_me:$LINENO: result: $enable_static" >&5
15557 echo "${ECHO_T}$enable_static" >&6
15558
15559 test "$ld_shlibs_F77" = no && can_build_shared=no
15560
15561 GCC_F77="$G77"
15562 LD_F77="$LD"
15563
15564 lt_prog_compiler_wl_F77=
15565 lt_prog_compiler_pic_F77=
15566 lt_prog_compiler_static_F77=
15567
15568 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15569 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15570
15571   if test "$GCC" = yes; then
15572     lt_prog_compiler_wl_F77='-Wl,'
15573     lt_prog_compiler_static_F77='-static'
15574
15575     case $host_os in
15576       aix*)
15577       # All AIX code is PIC.
15578       if test "$host_cpu" = ia64; then
15579         # AIX 5 now supports IA64 processor
15580         lt_prog_compiler_static_F77='-Bstatic'
15581       fi
15582       ;;
15583
15584     amigaos*)
15585       # FIXME: we need at least 68020 code to build shared libraries, but
15586       # adding the `-m68020' flag to GCC prevents building anything better,
15587       # like `-m68040'.
15588       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15589       ;;
15590
15591     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15592       # PIC is the default for these OSes.
15593       ;;
15594
15595     mingw* | pw32* | os2*)
15596       # This hack is so that the source file can tell whether it is being
15597       # built for inclusion in a dll (and should export symbols for example).
15598       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15599       ;;
15600
15601     darwin* | rhapsody*)
15602       # PIC is the default on this platform
15603       # Common symbols not allowed in MH_DYLIB files
15604       lt_prog_compiler_pic_F77='-fno-common'
15605       ;;
15606
15607     msdosdjgpp*)
15608       # Just because we use GCC doesn't mean we suddenly get shared libraries
15609       # on systems that don't support them.
15610       lt_prog_compiler_can_build_shared_F77=no
15611       enable_shared=no
15612       ;;
15613
15614     sysv4*MP*)
15615       if test -d /usr/nec; then
15616         lt_prog_compiler_pic_F77=-Kconform_pic
15617       fi
15618       ;;
15619
15620     hpux*)
15621       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15622       # not for PA HP-UX.
15623       case "$host_cpu" in
15624       hppa*64*|ia64*)
15625         # +Z the default
15626         ;;
15627       *)
15628         lt_prog_compiler_pic_F77='-fPIC'
15629         ;;
15630       esac
15631       ;;
15632
15633     *)
15634       lt_prog_compiler_pic_F77='-fPIC'
15635       ;;
15636     esac
15637   else
15638     # PORTME Check for flag to pass linker flags through the system compiler.
15639     case $host_os in
15640     aix*)
15641       lt_prog_compiler_wl_F77='-Wl,'
15642       if test "$host_cpu" = ia64; then
15643         # AIX 5 now supports IA64 processor
15644         lt_prog_compiler_static_F77='-Bstatic'
15645       else
15646         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15647       fi
15648       ;;
15649       darwin*)
15650         # PIC is the default on this platform
15651         # Common symbols not allowed in MH_DYLIB files
15652        case $cc_basename in
15653          xlc*)
15654          lt_prog_compiler_pic_F77='-qnocommon'
15655          lt_prog_compiler_wl_F77='-Wl,'
15656          ;;
15657        esac
15658        ;;
15659
15660     mingw* | pw32* | os2*)
15661       # This hack is so that the source file can tell whether it is being
15662       # built for inclusion in a dll (and should export symbols for example).
15663       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15664       ;;
15665
15666     hpux9* | hpux10* | hpux11*)
15667       lt_prog_compiler_wl_F77='-Wl,'
15668       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15669       # not for PA HP-UX.
15670       case "$host_cpu" in
15671       hppa*64*|ia64*)
15672         # +Z the default
15673         ;;
15674       *)
15675         lt_prog_compiler_pic_F77='+Z'
15676         ;;
15677       esac
15678       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15679       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15680       ;;
15681
15682     irix5* | irix6* | nonstopux*)
15683       lt_prog_compiler_wl_F77='-Wl,'
15684       # PIC (with -KPIC) is the default.
15685       lt_prog_compiler_static_F77='-non_shared'
15686       ;;
15687
15688     newsos6)
15689       lt_prog_compiler_pic_F77='-KPIC'
15690       lt_prog_compiler_static_F77='-Bstatic'
15691       ;;
15692
15693     linux*)
15694       case $cc_basename in
15695       icc* | ecc*)
15696         lt_prog_compiler_wl_F77='-Wl,'
15697         lt_prog_compiler_pic_F77='-KPIC'
15698         lt_prog_compiler_static_F77='-static'
15699         ;;
15700       pgcc* | pgf77* | pgf90*)
15701         # Portland Group compilers (*not* the Pentium gcc compiler,
15702         # which looks to be a dead project)
15703         lt_prog_compiler_wl_F77='-Wl,'
15704         lt_prog_compiler_pic_F77='-fpic'
15705         lt_prog_compiler_static_F77='-static'
15706         ;;
15707       ccc*)
15708         lt_prog_compiler_wl_F77='-Wl,'
15709         # All Alpha code is PIC.
15710         lt_prog_compiler_static_F77='-non_shared'
15711         ;;
15712       esac
15713       ;;
15714
15715     osf3* | osf4* | osf5*)
15716       lt_prog_compiler_wl_F77='-Wl,'
15717       # All OSF/1 code is PIC.
15718       lt_prog_compiler_static_F77='-non_shared'
15719       ;;
15720
15721     sco3.2v5*)
15722       lt_prog_compiler_pic_F77='-Kpic'
15723       lt_prog_compiler_static_F77='-dn'
15724       ;;
15725
15726     solaris*)
15727       lt_prog_compiler_pic_F77='-KPIC'
15728       lt_prog_compiler_static_F77='-Bstatic'
15729       case $cc_basename in
15730       f77* | f90* | f95*)
15731         lt_prog_compiler_wl_F77='-Qoption ld ';;
15732       *)
15733         lt_prog_compiler_wl_F77='-Wl,';;
15734       esac
15735       ;;
15736
15737     sunos4*)
15738       lt_prog_compiler_wl_F77='-Qoption ld '
15739       lt_prog_compiler_pic_F77='-PIC'
15740       lt_prog_compiler_static_F77='-Bstatic'
15741       ;;
15742
15743     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15744       lt_prog_compiler_wl_F77='-Wl,'
15745       lt_prog_compiler_pic_F77='-KPIC'
15746       lt_prog_compiler_static_F77='-Bstatic'
15747       ;;
15748
15749     sysv4*MP*)
15750       if test -d /usr/nec ;then
15751         lt_prog_compiler_pic_F77='-Kconform_pic'
15752         lt_prog_compiler_static_F77='-Bstatic'
15753       fi
15754       ;;
15755
15756     unicos*)
15757       lt_prog_compiler_wl_F77='-Wl,'
15758       lt_prog_compiler_can_build_shared_F77=no
15759       ;;
15760
15761     uts4*)
15762       lt_prog_compiler_pic_F77='-pic'
15763       lt_prog_compiler_static_F77='-Bstatic'
15764       ;;
15765
15766     *)
15767       lt_prog_compiler_can_build_shared_F77=no
15768       ;;
15769     esac
15770   fi
15771
15772 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15773 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15774
15775 #
15776 # Check to make sure the PIC flag actually works.
15777 #
15778 if test -n "$lt_prog_compiler_pic_F77"; then
15779
15780 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15781 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15782 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15783   echo $ECHO_N "(cached) $ECHO_C" >&6
15784 else
15785   lt_prog_compiler_pic_works_F77=no
15786   ac_outfile=conftest.$ac_objext
15787    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15788    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15789    # Insert the option either (1) after the last *FLAGS variable, or
15790    # (2) before a word containing "conftest.", or (3) at the end.
15791    # Note that $ac_compile itself does not contain backslashes and begins
15792    # with a dollar sign (not a hyphen), so the echo should work correctly.
15793    # The option is referenced via a variable to avoid confusing sed.
15794    lt_compile=`echo "$ac_compile" | $SED \
15795    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15797    -e 's:$: $lt_compiler_flag:'`
15798    (eval echo "\"\$as_me:15798: $lt_compile\"" >&5)
15799    (eval "$lt_compile" 2>conftest.err)
15800    ac_status=$?
15801    cat conftest.err >&5
15802    echo "$as_me:15802: \$? = $ac_status" >&5
15803    if (exit $ac_status) && test -s "$ac_outfile"; then
15804      # The compiler can only warn and ignore the option if not recognized
15805      # So say no if there are warnings other than the usual output.
15806      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15807      $SED '/^$/d' conftest.err >conftest.er2
15808      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15809        lt_prog_compiler_pic_works_F77=yes
15810      fi
15811    fi
15812    $rm conftest*
15813
15814 fi
15815 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15816 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15817
15818 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15819     case $lt_prog_compiler_pic_F77 in
15820      "" | " "*) ;;
15821      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15822      esac
15823 else
15824     lt_prog_compiler_pic_F77=
15825      lt_prog_compiler_can_build_shared_F77=no
15826 fi
15827
15828 fi
15829 case "$host_os" in
15830   # For platforms which do not support PIC, -DPIC is meaningless:
15831   *djgpp*)
15832     lt_prog_compiler_pic_F77=
15833     ;;
15834   *)
15835     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15836     ;;
15837 esac
15838
15839 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15840 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15841 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15842   echo $ECHO_N "(cached) $ECHO_C" >&6
15843 else
15844   lt_cv_prog_compiler_c_o_F77=no
15845    $rm -r conftest 2>/dev/null
15846    mkdir conftest
15847    cd conftest
15848    mkdir out
15849    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15850
15851    lt_compiler_flag="-o out/conftest2.$ac_objext"
15852    # Insert the option either (1) after the last *FLAGS variable, or
15853    # (2) before a word containing "conftest.", or (3) at the end.
15854    # Note that $ac_compile itself does not contain backslashes and begins
15855    # with a dollar sign (not a hyphen), so the echo should work correctly.
15856    lt_compile=`echo "$ac_compile" | $SED \
15857    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15858    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15859    -e 's:$: $lt_compiler_flag:'`
15860    (eval echo "\"\$as_me:15860: $lt_compile\"" >&5)
15861    (eval "$lt_compile" 2>out/conftest.err)
15862    ac_status=$?
15863    cat out/conftest.err >&5
15864    echo "$as_me:15864: \$? = $ac_status" >&5
15865    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15866    then
15867      # The compiler can only warn and ignore the option if not recognized
15868      # So say no if there are warnings
15869      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15870      $SED '/^$/d' out/conftest.err >out/conftest.er2
15871      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15872        lt_cv_prog_compiler_c_o_F77=yes
15873      fi
15874    fi
15875    chmod u+w .
15876    $rm conftest*
15877    # SGI C++ compiler will create directory out/ii_files/ for
15878    # template instantiation
15879    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15880    $rm out/* && rmdir out
15881    cd ..
15882    rmdir conftest
15883    $rm conftest*
15884
15885 fi
15886 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15887 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15888
15889
15890 hard_links="nottested"
15891 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15892   # do not overwrite the value of need_locks provided by the user
15893   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15894 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15895   hard_links=yes
15896   $rm conftest*
15897   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15898   touch conftest.a
15899   ln conftest.a conftest.b 2>&5 || hard_links=no
15900   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15901   echo "$as_me:$LINENO: result: $hard_links" >&5
15902 echo "${ECHO_T}$hard_links" >&6
15903   if test "$hard_links" = no; then
15904     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15905 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15906     need_locks=warn
15907   fi
15908 else
15909   need_locks=no
15910 fi
15911
15912 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15913 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15914
15915   runpath_var=
15916   allow_undefined_flag_F77=
15917   enable_shared_with_static_runtimes_F77=no
15918   archive_cmds_F77=
15919   archive_expsym_cmds_F77=
15920   old_archive_From_new_cmds_F77=
15921   old_archive_from_expsyms_cmds_F77=
15922   export_dynamic_flag_spec_F77=
15923   whole_archive_flag_spec_F77=
15924   thread_safe_flag_spec_F77=
15925   hardcode_libdir_flag_spec_F77=
15926   hardcode_libdir_flag_spec_ld_F77=
15927   hardcode_libdir_separator_F77=
15928   hardcode_direct_F77=no
15929   hardcode_minus_L_F77=no
15930   hardcode_shlibpath_var_F77=unsupported
15931   link_all_deplibs_F77=unknown
15932   hardcode_automatic_F77=no
15933   module_cmds_F77=
15934   module_expsym_cmds_F77=
15935   always_export_symbols_F77=no
15936   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15937   # include_expsyms should be a list of space-separated symbols to be *always*
15938   # included in the symbol list
15939   include_expsyms_F77=
15940   # exclude_expsyms can be an extended regexp of symbols to exclude
15941   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15942   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15943   # as well as any symbol that contains `d'.
15944   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15945   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15946   # platforms (ab)use it in PIC code, but their linkers get confused if
15947   # the symbol is explicitly referenced.  Since portable code cannot
15948   # rely on this symbol name, it's probably fine to never include it in
15949   # preloaded symbol tables.
15950   extract_expsyms_cmds=
15951   # Just being paranoid about ensuring that cc_basename is set.
15952   for cc_temp in $compiler""; do
15953   case $cc_temp in
15954     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15955     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15956     \-*) ;;
15957     *) break;;
15958   esac
15959 done
15960 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15961
15962   case $host_os in
15963   cygwin* | mingw* | pw32*)
15964     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15965     # When not using gcc, we currently assume that we are using
15966     # Microsoft Visual C++.
15967     if test "$GCC" != yes; then
15968       with_gnu_ld=no
15969     fi
15970     ;;
15971   openbsd*)
15972     with_gnu_ld=no
15973     ;;
15974   esac
15975
15976   ld_shlibs_F77=yes
15977   if test "$with_gnu_ld" = yes; then
15978     # If archive_cmds runs LD, not CC, wlarc should be empty
15979     wlarc='${wl}'
15980
15981     # Set some defaults for GNU ld with shared library support. These
15982     # are reset later if shared libraries are not supported. Putting them
15983     # here allows them to be overridden if necessary.
15984     runpath_var=LD_RUN_PATH
15985     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15986     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15987     # ancient GNU ld didn't support --whole-archive et. al.
15988     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15989         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15990       else
15991         whole_archive_flag_spec_F77=
15992     fi
15993     supports_anon_versioning=no
15994     case `$LD -v 2>/dev/null` in
15995       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15996       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15997       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15998       *\ 2.11.*) ;; # other 2.11 versions
15999       *) supports_anon_versioning=yes ;;
16000     esac
16001
16002     # See if GNU ld supports shared libraries.
16003     case $host_os in
16004     aix3* | aix4* | aix5*)
16005       # On AIX/PPC, the GNU linker is very broken
16006       if test "$host_cpu" != ia64; then
16007         ld_shlibs_F77=no
16008         cat <<EOF 1>&2
16009
16010 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16011 *** to be unable to reliably create shared libraries on AIX.
16012 *** Therefore, libtool is disabling shared libraries support.  If you
16013 *** really care for shared libraries, you may want to modify your PATH
16014 *** so that a non-GNU linker is found, and then restart.
16015
16016 EOF
16017       fi
16018       ;;
16019
16020     amigaos*)
16021       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)'
16022       hardcode_libdir_flag_spec_F77='-L$libdir'
16023       hardcode_minus_L_F77=yes
16024
16025       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16026       # that the semantics of dynamic libraries on AmigaOS, at least up
16027       # to version 4, is to share data among multiple programs linked
16028       # with the same dynamic library.  Since this doesn't match the
16029       # behavior of shared libraries on other platforms, we can't use
16030       # them.
16031       ld_shlibs_F77=no
16032       ;;
16033
16034     beos*)
16035       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16036         allow_undefined_flag_F77=unsupported
16037         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16038         # support --undefined.  This deserves some investigation.  FIXME
16039         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16040       else
16041         ld_shlibs_F77=no
16042       fi
16043       ;;
16044
16045     cygwin* | mingw* | pw32*)
16046       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16047       # as there is no search path for DLLs.
16048       hardcode_libdir_flag_spec_F77='-L$libdir'
16049       allow_undefined_flag_F77=unsupported
16050       always_export_symbols_F77=no
16051       enable_shared_with_static_runtimes_F77=yes
16052       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16053
16054       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16055         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16056         # If the export-symbols file already is a .def file (1st line
16057         # is EXPORTS), use it as is; otherwise, prepend...
16058         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16059           cp $export_symbols $output_objdir/$soname.def;
16060         else
16061           echo EXPORTS > $output_objdir/$soname.def;
16062           cat $export_symbols >> $output_objdir/$soname.def;
16063         fi~
16064         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16065       else
16066         ld_shlibs_F77=no
16067       fi
16068       ;;
16069
16070     linux*)
16071       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16072         tmp_addflag=
16073         case $cc_basename,$host_cpu in
16074         pgcc*)                          # Portland Group C compiler
16075           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'
16076           tmp_addflag=' $pic_flag'
16077           ;;
16078         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
16079           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'
16080           tmp_addflag=' $pic_flag -Mnomain' ;;
16081         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16082           tmp_addflag=' -i_dynamic' ;;
16083         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16084           tmp_addflag=' -i_dynamic -nofor_main' ;;
16085         ifc* | ifort*)                  # Intel Fortran compiler
16086           tmp_addflag=' -nofor_main' ;;
16087         esac
16088         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16089
16090         if test $supports_anon_versioning = yes; then
16091           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16092   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16093   $echo "local: *; };" >> $output_objdir/$libname.ver~
16094           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16095         fi
16096       else
16097         ld_shlibs_F77=no
16098       fi
16099       ;;
16100
16101     netbsd*)
16102       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16103         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16104         wlarc=
16105       else
16106         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16107         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16108       fi
16109       ;;
16110
16111     solaris* | sysv5*)
16112       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16113         ld_shlibs_F77=no
16114         cat <<EOF 1>&2
16115
16116 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16117 *** create shared libraries on Solaris systems.  Therefore, libtool
16118 *** is disabling shared libraries support.  We urge you to upgrade GNU
16119 *** binutils to release 2.9.1 or newer.  Another option is to modify
16120 *** your PATH or compiler configuration so that the native linker is
16121 *** used, and then restart.
16122
16123 EOF
16124       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16125         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16126         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16127       else
16128         ld_shlibs_F77=no
16129       fi
16130       ;;
16131
16132     sunos4*)
16133       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16134       wlarc=
16135       hardcode_direct_F77=yes
16136       hardcode_shlibpath_var_F77=no
16137       ;;
16138
16139     *)
16140       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16141         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16142         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16143       else
16144         ld_shlibs_F77=no
16145       fi
16146       ;;
16147     esac
16148
16149     if test "$ld_shlibs_F77" = no; then
16150       runpath_var=
16151       hardcode_libdir_flag_spec_F77=
16152       export_dynamic_flag_spec_F77=
16153       whole_archive_flag_spec_F77=
16154     fi
16155   else
16156     # PORTME fill in a description of your system's linker (not GNU ld)
16157     case $host_os in
16158     aix3*)
16159       allow_undefined_flag_F77=unsupported
16160       always_export_symbols_F77=yes
16161       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'
16162       # Note: this linker hardcodes the directories in LIBPATH if there
16163       # are no directories specified by -L.
16164       hardcode_minus_L_F77=yes
16165       if test "$GCC" = yes && test -z "$link_static_flag"; then
16166         # Neither direct hardcoding nor static linking is supported with a
16167         # broken collect2.
16168         hardcode_direct_F77=unsupported
16169       fi
16170       ;;
16171
16172     aix4* | aix5*)
16173       if test "$host_cpu" = ia64; then
16174         # On IA64, the linker does run time linking by default, so we don't
16175         # have to do anything special.
16176         aix_use_runtimelinking=no
16177         exp_sym_flag='-Bexport'
16178         no_entry_flag=""
16179       else
16180         # If we're using GNU nm, then we don't want the "-C" option.
16181         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16182         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16183           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'
16184         else
16185           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'
16186         fi
16187         aix_use_runtimelinking=no
16188
16189         # Test if we are trying to use run time linking or normal
16190         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16191         # need to do runtime linking.
16192         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16193           for ld_flag in $LDFLAGS; do
16194           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16195             aix_use_runtimelinking=yes
16196             break
16197           fi
16198           done
16199         esac
16200
16201         exp_sym_flag='-bexport'
16202         no_entry_flag='-bnoentry'
16203       fi
16204
16205       # When large executables or shared objects are built, AIX ld can
16206       # have problems creating the table of contents.  If linking a library
16207       # or program results in "error TOC overflow" add -mminimal-toc to
16208       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16209       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16210
16211       archive_cmds_F77=''
16212       hardcode_direct_F77=yes
16213       hardcode_libdir_separator_F77=':'
16214       link_all_deplibs_F77=yes
16215
16216       if test "$GCC" = yes; then
16217         case $host_os in aix4.[012]|aix4.[012].*)
16218         # We only want to do this on AIX 4.2 and lower, the check
16219         # below for broken collect2 doesn't work under 4.3+
16220           collect2name=`${CC} -print-prog-name=collect2`
16221           if test -f "$collect2name" && \
16222            strings "$collect2name" | grep resolve_lib_name >/dev/null
16223           then
16224           # We have reworked collect2
16225           hardcode_direct_F77=yes
16226           else
16227           # We have old collect2
16228           hardcode_direct_F77=unsupported
16229           # It fails to find uninstalled libraries when the uninstalled
16230           # path is not listed in the libpath.  Setting hardcode_minus_L
16231           # to unsupported forces relinking
16232           hardcode_minus_L_F77=yes
16233           hardcode_libdir_flag_spec_F77='-L$libdir'
16234           hardcode_libdir_separator_F77=
16235           fi
16236         esac
16237         shared_flag='-shared'
16238         if test "$aix_use_runtimelinking" = yes; then
16239           shared_flag="$shared_flag "'${wl}-G'
16240         fi
16241       else
16242         # not using gcc
16243         if test "$host_cpu" = ia64; then
16244         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16245         # chokes on -Wl,-G. The following line is correct:
16246           shared_flag='-G'
16247         else
16248         if test "$aix_use_runtimelinking" = yes; then
16249             shared_flag='${wl}-G'
16250           else
16251             shared_flag='${wl}-bM:SRE'
16252         fi
16253         fi
16254       fi
16255
16256       # It seems that -bexpall does not export symbols beginning with
16257       # underscore (_), so it is better to generate a list of symbols to export.
16258       always_export_symbols_F77=yes
16259       if test "$aix_use_runtimelinking" = yes; then
16260         # Warning - without using the other runtime loading flags (-brtl),
16261         # -berok will link without error, but may produce a broken library.
16262         allow_undefined_flag_F77='-berok'
16263        # Determine the default libpath from the value encoded in an empty executable.
16264        cat >conftest.$ac_ext <<_ACEOF
16265       program main
16266
16267       end
16268 _ACEOF
16269 rm -f conftest.$ac_objext conftest$ac_exeext
16270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16271   (eval $ac_link) 2>conftest.er1
16272   ac_status=$?
16273   grep -v '^ *+' conftest.er1 >conftest.err
16274   rm -f conftest.er1
16275   cat conftest.err >&5
16276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277   (exit $ac_status); } &&
16278          { ac_try='test -z "$ac_f77_werror_flag"
16279                          || test ! -s conftest.err'
16280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281   (eval $ac_try) 2>&5
16282   ac_status=$?
16283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284   (exit $ac_status); }; } &&
16285          { ac_try='test -s conftest$ac_exeext'
16286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287   (eval $ac_try) 2>&5
16288   ac_status=$?
16289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290   (exit $ac_status); }; }; then
16291
16292 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16293 }'`
16294 # Check for a 64-bit object if we didn't find anything.
16295 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; }
16296 }'`; fi
16297 else
16298   echo "$as_me: failed program was:" >&5
16299 sed 's/^/| /' conftest.$ac_ext >&5
16300
16301 fi
16302 rm -f conftest.err conftest.$ac_objext \
16303       conftest$ac_exeext conftest.$ac_ext
16304 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16305
16306        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16307         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"
16308        else
16309         if test "$host_cpu" = ia64; then
16310           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16311           allow_undefined_flag_F77="-z nodefs"
16312           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"
16313         else
16314          # Determine the default libpath from the value encoded in an empty executable.
16315          cat >conftest.$ac_ext <<_ACEOF
16316       program main
16317
16318       end
16319 _ACEOF
16320 rm -f conftest.$ac_objext conftest$ac_exeext
16321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16322   (eval $ac_link) 2>conftest.er1
16323   ac_status=$?
16324   grep -v '^ *+' conftest.er1 >conftest.err
16325   rm -f conftest.er1
16326   cat conftest.err >&5
16327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); } &&
16329          { ac_try='test -z "$ac_f77_werror_flag"
16330                          || test ! -s conftest.err'
16331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16332   (eval $ac_try) 2>&5
16333   ac_status=$?
16334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335   (exit $ac_status); }; } &&
16336          { ac_try='test -s conftest$ac_exeext'
16337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16338   (eval $ac_try) 2>&5
16339   ac_status=$?
16340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341   (exit $ac_status); }; }; then
16342
16343 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16344 }'`
16345 # Check for a 64-bit object if we didn't find anything.
16346 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; }
16347 }'`; fi
16348 else
16349   echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.$ac_ext >&5
16351
16352 fi
16353 rm -f conftest.err conftest.$ac_objext \
16354       conftest$ac_exeext conftest.$ac_ext
16355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16356
16357          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16358           # Warning - without using the other run time loading flags,
16359           # -berok will link without error, but may produce a broken library.
16360           no_undefined_flag_F77=' ${wl}-bernotok'
16361           allow_undefined_flag_F77=' ${wl}-berok'
16362           # -bexpall does not export symbols beginning with underscore (_)
16363           always_export_symbols_F77=yes
16364           # Exported symbols can be pulled into shared objects from archives
16365           whole_archive_flag_spec_F77=' '
16366           archive_cmds_need_lc_F77=yes
16367           # This is similar to how AIX traditionally builds it's shared libraries.
16368           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'
16369         fi
16370       fi
16371       ;;
16372
16373     amigaos*)
16374       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)'
16375       hardcode_libdir_flag_spec_F77='-L$libdir'
16376       hardcode_minus_L_F77=yes
16377       # see comment about different semantics on the GNU ld section
16378       ld_shlibs_F77=no
16379       ;;
16380
16381     bsdi[45]*)
16382       export_dynamic_flag_spec_F77=-rdynamic
16383       ;;
16384
16385     cygwin* | mingw* | pw32*)
16386       # When not using gcc, we currently assume that we are using
16387       # Microsoft Visual C++.
16388       # hardcode_libdir_flag_spec is actually meaningless, as there is
16389       # no search path for DLLs.
16390       hardcode_libdir_flag_spec_F77=' '
16391       allow_undefined_flag_F77=unsupported
16392       # Tell ltmain to make .lib files, not .a files.
16393       libext=lib
16394       # Tell ltmain to make .dll files, not .so files.
16395       shrext_cmds=".dll"
16396       # FIXME: Setting linknames here is a bad hack.
16397       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16398       # The linker will automatically build a .lib file if we build a DLL.
16399       old_archive_From_new_cmds_F77='true'
16400       # FIXME: Should let the user specify the lib program.
16401       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16402       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16403       enable_shared_with_static_runtimes_F77=yes
16404       ;;
16405
16406     darwin* | rhapsody*)
16407       case "$host_os" in
16408         rhapsody* | darwin1.[012])
16409          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16410          ;;
16411        *) # Darwin 1.3 on
16412          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16413            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16414          else
16415            case ${MACOSX_DEPLOYMENT_TARGET} in
16416              10.[012])
16417                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16418                ;;
16419              10.*)
16420                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16421                ;;
16422            esac
16423          fi
16424          ;;
16425       esac
16426       archive_cmds_need_lc_F77=no
16427       hardcode_direct_F77=no
16428       hardcode_automatic_F77=yes
16429       hardcode_shlibpath_var_F77=unsupported
16430       whole_archive_flag_spec_F77=''
16431       link_all_deplibs_F77=yes
16432     if test "$GCC" = yes ; then
16433         output_verbose_link_cmd='echo'
16434         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16435       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16436       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16437       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}'
16438       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}'
16439     else
16440       case $cc_basename in
16441         xlc*)
16442          output_verbose_link_cmd='echo'
16443          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16444          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16445           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16446          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}'
16447           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}'
16448           ;;
16449        *)
16450          ld_shlibs_F77=no
16451           ;;
16452       esac
16453     fi
16454       ;;
16455
16456     dgux*)
16457       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16458       hardcode_libdir_flag_spec_F77='-L$libdir'
16459       hardcode_shlibpath_var_F77=no
16460       ;;
16461
16462     freebsd1*)
16463       ld_shlibs_F77=no
16464       ;;
16465
16466     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16467     # support.  Future versions do this automatically, but an explicit c++rt0.o
16468     # does not break anything, and helps significantly (at the cost of a little
16469     # extra space).
16470     freebsd2.2*)
16471       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16472       hardcode_libdir_flag_spec_F77='-R$libdir'
16473       hardcode_direct_F77=yes
16474       hardcode_shlibpath_var_F77=no
16475       ;;
16476
16477     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16478     freebsd2*)
16479       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16480       hardcode_direct_F77=yes
16481       hardcode_minus_L_F77=yes
16482       hardcode_shlibpath_var_F77=no
16483       ;;
16484
16485     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16486     freebsd* | kfreebsd*-gnu | dragonfly*)
16487       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16488       hardcode_libdir_flag_spec_F77='-R$libdir'
16489       hardcode_direct_F77=yes
16490       hardcode_shlibpath_var_F77=no
16491       ;;
16492
16493     hpux9*)
16494       if test "$GCC" = yes; then
16495         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'
16496       else
16497         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'
16498       fi
16499       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16500       hardcode_libdir_separator_F77=:
16501       hardcode_direct_F77=yes
16502
16503       # hardcode_minus_L: Not really in the search PATH,
16504       # but as the default location of the library.
16505       hardcode_minus_L_F77=yes
16506       export_dynamic_flag_spec_F77='${wl}-E'
16507       ;;
16508
16509     hpux10* | hpux11*)
16510       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16511         case "$host_cpu" in
16512         hppa*64*|ia64*)
16513           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16514           ;;
16515         *)
16516           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16517           ;;
16518         esac
16519       else
16520         case "$host_cpu" in
16521         hppa*64*|ia64*)
16522           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16523           ;;
16524         *)
16525           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16526           ;;
16527         esac
16528       fi
16529       if test "$with_gnu_ld" = no; then
16530         case "$host_cpu" in
16531         hppa*64*)
16532           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16533           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16534           hardcode_libdir_separator_F77=:
16535           hardcode_direct_F77=no
16536           hardcode_shlibpath_var_F77=no
16537           ;;
16538         ia64*)
16539           hardcode_libdir_flag_spec_F77='-L$libdir'
16540           hardcode_direct_F77=no
16541           hardcode_shlibpath_var_F77=no
16542
16543           # hardcode_minus_L: Not really in the search PATH,
16544           # but as the default location of the library.
16545           hardcode_minus_L_F77=yes
16546           ;;
16547         *)
16548           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16549           hardcode_libdir_separator_F77=:
16550           hardcode_direct_F77=yes
16551           export_dynamic_flag_spec_F77='${wl}-E'
16552
16553           # hardcode_minus_L: Not really in the search PATH,
16554           # but as the default location of the library.
16555           hardcode_minus_L_F77=yes
16556           ;;
16557         esac
16558       fi
16559       ;;
16560
16561     irix5* | irix6* | nonstopux*)
16562       if test "$GCC" = yes; then
16563         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'
16564       else
16565         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'
16566         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16567       fi
16568       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16569       hardcode_libdir_separator_F77=:
16570       link_all_deplibs_F77=yes
16571       ;;
16572
16573     netbsd*)
16574       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16575         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16576       else
16577         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16578       fi
16579       hardcode_libdir_flag_spec_F77='-R$libdir'
16580       hardcode_direct_F77=yes
16581       hardcode_shlibpath_var_F77=no
16582       ;;
16583
16584     newsos6)
16585       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16586       hardcode_direct_F77=yes
16587       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16588       hardcode_libdir_separator_F77=:
16589       hardcode_shlibpath_var_F77=no
16590       ;;
16591
16592     openbsd*)
16593       hardcode_direct_F77=yes
16594       hardcode_shlibpath_var_F77=no
16595       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16596         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16597         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16598         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16599         export_dynamic_flag_spec_F77='${wl}-E'
16600       else
16601        case $host_os in
16602          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16603            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16604            hardcode_libdir_flag_spec_F77='-R$libdir'
16605            ;;
16606          *)
16607            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16608            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16609            ;;
16610        esac
16611       fi
16612       ;;
16613
16614     os2*)
16615       hardcode_libdir_flag_spec_F77='-L$libdir'
16616       hardcode_minus_L_F77=yes
16617       allow_undefined_flag_F77=unsupported
16618       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'
16619       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16620       ;;
16621
16622     osf3*)
16623       if test "$GCC" = yes; then
16624         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16625         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'
16626       else
16627         allow_undefined_flag_F77=' -expect_unresolved \*'
16628         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'
16629       fi
16630       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16631       hardcode_libdir_separator_F77=:
16632       ;;
16633
16634     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16635       if test "$GCC" = yes; then
16636         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16637         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'
16638         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16639       else
16640         allow_undefined_flag_F77=' -expect_unresolved \*'
16641         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'
16642         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~
16643         $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'
16644
16645         # Both c and cxx compiler support -rpath directly
16646         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16647       fi
16648       hardcode_libdir_separator_F77=:
16649       ;;
16650
16651     sco3.2v5*)
16652       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16653       hardcode_shlibpath_var_F77=no
16654       export_dynamic_flag_spec_F77='${wl}-Bexport'
16655       runpath_var=LD_RUN_PATH
16656       hardcode_runpath_var=yes
16657       ;;
16658
16659     solaris*)
16660       no_undefined_flag_F77=' -z text'
16661       if test "$GCC" = yes; then
16662         wlarc='${wl}'
16663         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16664         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16665           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16666       else
16667         wlarc=''
16668         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16669         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16670         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16671       fi
16672       hardcode_libdir_flag_spec_F77='-R$libdir'
16673       hardcode_shlibpath_var_F77=no
16674       case $host_os in
16675       solaris2.[0-5] | solaris2.[0-5].*) ;;
16676       *)
16677         # The compiler driver will combine linker options so we
16678         # cannot just pass the convience library names through
16679         # without $wl, iff we do not link with $LD.
16680         # Luckily, gcc supports the same syntax we need for Sun Studio.
16681         # Supported since Solaris 2.6 (maybe 2.5.1?)
16682         case $wlarc in
16683         '')
16684           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16685         *)
16686           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' ;;
16687         esac ;;
16688       esac
16689       link_all_deplibs_F77=yes
16690       ;;
16691
16692     sunos4*)
16693       if test "x$host_vendor" = xsequent; then
16694         # Use $CC to link under sequent, because it throws in some extra .o
16695         # files that make .init and .fini sections work.
16696         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16697       else
16698         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16699       fi
16700       hardcode_libdir_flag_spec_F77='-L$libdir'
16701       hardcode_direct_F77=yes
16702       hardcode_minus_L_F77=yes
16703       hardcode_shlibpath_var_F77=no
16704       ;;
16705
16706     sysv4)
16707       case $host_vendor in
16708         sni)
16709           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16710           hardcode_direct_F77=yes # is this really true???
16711         ;;
16712         siemens)
16713           ## LD is ld it makes a PLAMLIB
16714           ## CC just makes a GrossModule.
16715           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16716           reload_cmds_F77='$CC -r -o $output$reload_objs'
16717           hardcode_direct_F77=no
16718         ;;
16719         motorola)
16720           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16721           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16722         ;;
16723       esac
16724       runpath_var='LD_RUN_PATH'
16725       hardcode_shlibpath_var_F77=no
16726       ;;
16727
16728     sysv4.3*)
16729       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16730       hardcode_shlibpath_var_F77=no
16731       export_dynamic_flag_spec_F77='-Bexport'
16732       ;;
16733
16734     sysv4*MP*)
16735       if test -d /usr/nec; then
16736         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16737         hardcode_shlibpath_var_F77=no
16738         runpath_var=LD_RUN_PATH
16739         hardcode_runpath_var=yes
16740         ld_shlibs_F77=yes
16741       fi
16742       ;;
16743
16744     sysv4.2uw2*)
16745       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16746       hardcode_direct_F77=yes
16747       hardcode_minus_L_F77=no
16748       hardcode_shlibpath_var_F77=no
16749       hardcode_runpath_var=yes
16750       runpath_var=LD_RUN_PATH
16751       ;;
16752
16753    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16754       no_undefined_flag_F77='${wl}-z ${wl}text'
16755       if test "$GCC" = yes; then
16756         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16757       else
16758         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16759       fi
16760       runpath_var='LD_RUN_PATH'
16761       hardcode_shlibpath_var_F77=no
16762       ;;
16763
16764     sysv5*)
16765       no_undefined_flag_F77=' -z text'
16766       # $CC -shared without GNU ld will not create a library from C++
16767       # object files and a static libstdc++, better avoid it by now
16768       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16769       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16770                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16771       hardcode_libdir_flag_spec_F77=
16772       hardcode_shlibpath_var_F77=no
16773       runpath_var='LD_RUN_PATH'
16774       ;;
16775
16776     uts4*)
16777       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16778       hardcode_libdir_flag_spec_F77='-L$libdir'
16779       hardcode_shlibpath_var_F77=no
16780       ;;
16781
16782     *)
16783       ld_shlibs_F77=no
16784       ;;
16785     esac
16786   fi
16787
16788 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16789 echo "${ECHO_T}$ld_shlibs_F77" >&6
16790 test "$ld_shlibs_F77" = no && can_build_shared=no
16791
16792 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16793 if test "$GCC" = yes; then
16794   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16795 fi
16796
16797 #
16798 # Do we need to explicitly link libc?
16799 #
16800 case "x$archive_cmds_need_lc_F77" in
16801 x|xyes)
16802   # Assume -lc should be added
16803   archive_cmds_need_lc_F77=yes
16804
16805   if test "$enable_shared" = yes && test "$GCC" = yes; then
16806     case $archive_cmds_F77 in
16807     *'~'*)
16808       # FIXME: we may have to deal with multi-command sequences.
16809       ;;
16810     '$CC '*)
16811       # Test whether the compiler implicitly links with -lc since on some
16812       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16813       # to ld, don't add -lc before -lgcc.
16814       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16815 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16816       $rm conftest*
16817       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16818
16819       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16820   (eval $ac_compile) 2>&5
16821   ac_status=$?
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); } 2>conftest.err; then
16824         soname=conftest
16825         lib=conftest
16826         libobjs=conftest.$ac_objext
16827         deplibs=
16828         wl=$lt_prog_compiler_wl_F77
16829         compiler_flags=-v
16830         linker_flags=-v
16831         verstring=
16832         output_objdir=.
16833         libname=conftest
16834         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16835         allow_undefined_flag_F77=
16836         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16837   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16838   ac_status=$?
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); }
16841         then
16842           archive_cmds_need_lc_F77=no
16843         else
16844           archive_cmds_need_lc_F77=yes
16845         fi
16846         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16847       else
16848         cat conftest.err 1>&5
16849       fi
16850       $rm conftest*
16851       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16852 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16853       ;;
16854     esac
16855   fi
16856   ;;
16857 esac
16858
16859 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16860 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16861 library_names_spec=
16862 libname_spec='lib$name'
16863 soname_spec=
16864 shrext_cmds=".so"
16865 postinstall_cmds=
16866 postuninstall_cmds=
16867 finish_cmds=
16868 finish_eval=
16869 shlibpath_var=
16870 shlibpath_overrides_runpath=unknown
16871 version_type=none
16872 dynamic_linker="$host_os ld.so"
16873 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16874 if test "$GCC" = yes; then
16875   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16876   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16877     # if the path contains ";" then we assume it to be the separator
16878     # otherwise default to the standard path separator (i.e. ":") - it is
16879     # assumed that no part of a normal pathname contains ";" but that should
16880     # okay in the real world where ";" in dirpaths is itself problematic.
16881     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16882   else
16883     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16884   fi
16885 else
16886   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16887 fi
16888 need_lib_prefix=unknown
16889 hardcode_into_libs=no
16890
16891 # when you set need_version to no, make sure it does not cause -set_version
16892 # flags to be left without arguments
16893 need_version=unknown
16894
16895 case $host_os in
16896 aix3*)
16897   version_type=linux
16898   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16899   shlibpath_var=LIBPATH
16900
16901   # AIX 3 has no versioning support, so we append a major version to the name.
16902   soname_spec='${libname}${release}${shared_ext}$major'
16903   ;;
16904
16905 aix4* | aix5*)
16906   version_type=linux
16907   need_lib_prefix=no
16908   need_version=no
16909   hardcode_into_libs=yes
16910   if test "$host_cpu" = ia64; then
16911     # AIX 5 supports IA64
16912     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16913     shlibpath_var=LD_LIBRARY_PATH
16914   else
16915     # With GCC up to 2.95.x, collect2 would create an import file
16916     # for dependence libraries.  The import file would start with
16917     # the line `#! .'.  This would cause the generated library to
16918     # depend on `.', always an invalid library.  This was fixed in
16919     # development snapshots of GCC prior to 3.0.
16920     case $host_os in
16921       aix4 | aix4.[01] | aix4.[01].*)
16922       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16923            echo ' yes '
16924            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16925         :
16926       else
16927         can_build_shared=no
16928       fi
16929       ;;
16930     esac
16931     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16932     # soname into executable. Probably we can add versioning support to
16933     # collect2, so additional links can be useful in future.
16934     if test "$aix_use_runtimelinking" = yes; then
16935       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16936       # instead of lib<name>.a to let people know that these are not
16937       # typical AIX shared libraries.
16938       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16939     else
16940       # We preserve .a as extension for shared libraries through AIX4.2
16941       # and later when we are not doing run time linking.
16942       library_names_spec='${libname}${release}.a $libname.a'
16943       soname_spec='${libname}${release}${shared_ext}$major'
16944     fi
16945     shlibpath_var=LIBPATH
16946   fi
16947   ;;
16948
16949 amigaos*)
16950   library_names_spec='$libname.ixlibrary $libname.a'
16951   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16952   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'
16953   ;;
16954
16955 beos*)
16956   library_names_spec='${libname}${shared_ext}'
16957   dynamic_linker="$host_os ld.so"
16958   shlibpath_var=LIBRARY_PATH
16959   ;;
16960
16961 bsdi[45]*)
16962   version_type=linux
16963   need_version=no
16964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16965   soname_spec='${libname}${release}${shared_ext}$major'
16966   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16967   shlibpath_var=LD_LIBRARY_PATH
16968   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16969   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16970   # the default ld.so.conf also contains /usr/contrib/lib and
16971   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16972   # libtool to hard-code these into programs
16973   ;;
16974
16975 cygwin* | mingw* | pw32*)
16976   version_type=windows
16977   shrext_cmds=".dll"
16978   need_version=no
16979   need_lib_prefix=no
16980
16981   case $GCC,$host_os in
16982   yes,cygwin* | yes,mingw* | yes,pw32*)
16983     library_names_spec='$libname.dll.a'
16984     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16985     postinstall_cmds='base_file=`basename \${file}`~
16986       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16987       dldir=$destdir/`dirname \$dlpath`~
16988       test -d \$dldir || mkdir -p \$dldir~
16989       $install_prog $dir/$dlname \$dldir/$dlname'
16990     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16991       dlpath=$dir/\$dldll~
16992        $rm \$dlpath'
16993     shlibpath_overrides_runpath=yes
16994
16995     case $host_os in
16996     cygwin*)
16997       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16998       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16999       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17000       ;;
17001     mingw*)
17002       # MinGW DLLs use traditional 'lib' prefix
17003       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17004       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17005       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17006         # It is most probably a Windows format PATH printed by
17007         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17008         # path with ; separators, and with drive letters. We can handle the
17009         # drive letters (cygwin fileutils understands them), so leave them,
17010         # especially as we might pass files found there to a mingw objdump,
17011         # which wouldn't understand a cygwinified path. Ahh.
17012         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17013       else
17014         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17015       fi
17016       ;;
17017     pw32*)
17018       # pw32 DLLs use 'pw' prefix rather than 'lib'
17019       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17020       ;;
17021     esac
17022     ;;
17023
17024   *)
17025     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17026     ;;
17027   esac
17028   dynamic_linker='Win32 ld.exe'
17029   # FIXME: first we should search . and the directory the executable is in
17030   shlibpath_var=PATH
17031   ;;
17032
17033 darwin* | rhapsody*)
17034   dynamic_linker="$host_os dyld"
17035   version_type=darwin
17036   need_lib_prefix=no
17037   need_version=no
17038   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17039   soname_spec='${libname}${release}${major}$shared_ext'
17040   shlibpath_overrides_runpath=yes
17041   shlibpath_var=DYLD_LIBRARY_PATH
17042   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17043   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17044   if test "$GCC" = yes; then
17045     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"`
17046   else
17047     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17048   fi
17049   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17050   ;;
17051
17052 dgux*)
17053   version_type=linux
17054   need_lib_prefix=no
17055   need_version=no
17056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17057   soname_spec='${libname}${release}${shared_ext}$major'
17058   shlibpath_var=LD_LIBRARY_PATH
17059   ;;
17060
17061 freebsd1*)
17062   dynamic_linker=no
17063   ;;
17064
17065 kfreebsd*-gnu)
17066   version_type=linux
17067   need_lib_prefix=no
17068   need_version=no
17069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17070   soname_spec='${libname}${release}${shared_ext}$major'
17071   shlibpath_var=LD_LIBRARY_PATH
17072   shlibpath_overrides_runpath=no
17073   hardcode_into_libs=yes
17074   dynamic_linker='GNU ld.so'
17075   ;;
17076
17077 freebsd* | dragonfly*)
17078   # DragonFly does not have aout.  When/if they implement a new
17079   # versioning mechanism, adjust this.
17080   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17081   version_type=freebsd-$objformat
17082   case $version_type in
17083     freebsd-elf*)
17084       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17085       need_version=no
17086       need_lib_prefix=no
17087       ;;
17088     freebsd-*)
17089       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17090       need_version=yes
17091       ;;
17092   esac
17093   shlibpath_var=LD_LIBRARY_PATH
17094   case $host_os in
17095   freebsd2*)
17096     shlibpath_overrides_runpath=yes
17097     ;;
17098   freebsd3.[01]* | freebsdelf3.[01]*)
17099     shlibpath_overrides_runpath=yes
17100     hardcode_into_libs=yes
17101     ;;
17102   *) # from 3.2 on
17103     shlibpath_overrides_runpath=no
17104     hardcode_into_libs=yes
17105     ;;
17106   esac
17107   ;;
17108
17109 gnu*)
17110   version_type=linux
17111   need_lib_prefix=no
17112   need_version=no
17113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17114   soname_spec='${libname}${release}${shared_ext}$major'
17115   shlibpath_var=LD_LIBRARY_PATH
17116   hardcode_into_libs=yes
17117   ;;
17118
17119 hpux9* | hpux10* | hpux11*)
17120   # Give a soname corresponding to the major version so that dld.sl refuses to
17121   # link against other versions.
17122   version_type=sunos
17123   need_lib_prefix=no
17124   need_version=no
17125   case "$host_cpu" in
17126   ia64*)
17127     shrext_cmds='.so'
17128     hardcode_into_libs=yes
17129     dynamic_linker="$host_os dld.so"
17130     shlibpath_var=LD_LIBRARY_PATH
17131     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17132     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17133     soname_spec='${libname}${release}${shared_ext}$major'
17134     if test "X$HPUX_IA64_MODE" = X32; then
17135       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17136     else
17137       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17138     fi
17139     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17140     ;;
17141    hppa*64*)
17142      shrext_cmds='.sl'
17143      hardcode_into_libs=yes
17144      dynamic_linker="$host_os dld.sl"
17145      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17146      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17147      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17148      soname_spec='${libname}${release}${shared_ext}$major'
17149      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17150      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17151      ;;
17152    *)
17153     shrext_cmds='.sl'
17154     dynamic_linker="$host_os dld.sl"
17155     shlibpath_var=SHLIB_PATH
17156     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17157     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17158     soname_spec='${libname}${release}${shared_ext}$major'
17159     ;;
17160   esac
17161   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17162   postinstall_cmds='chmod 555 $lib'
17163   ;;
17164
17165 irix5* | irix6* | nonstopux*)
17166   case $host_os in
17167     nonstopux*) version_type=nonstopux ;;
17168     *)
17169         if test "$lt_cv_prog_gnu_ld" = yes; then
17170                 version_type=linux
17171         else
17172                 version_type=irix
17173         fi ;;
17174   esac
17175   need_lib_prefix=no
17176   need_version=no
17177   soname_spec='${libname}${release}${shared_ext}$major'
17178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17179   case $host_os in
17180   irix5* | nonstopux*)
17181     libsuff= shlibsuff=
17182     ;;
17183   *)
17184     case $LD in # libtool.m4 will add one of these switches to LD
17185     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17186       libsuff= shlibsuff= libmagic=32-bit;;
17187     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17188       libsuff=32 shlibsuff=N32 libmagic=N32;;
17189     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17190       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17191     *) libsuff= shlibsuff= libmagic=never-match;;
17192     esac
17193     ;;
17194   esac
17195   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17196   shlibpath_overrides_runpath=no
17197   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17198   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17199   hardcode_into_libs=yes
17200   ;;
17201
17202 # No shared lib support for Linux oldld, aout, or coff.
17203 linux*oldld* | linux*aout* | linux*coff*)
17204   dynamic_linker=no
17205   ;;
17206
17207 # This must be Linux ELF.
17208 linux*)
17209   version_type=linux
17210   need_lib_prefix=no
17211   need_version=no
17212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17213   soname_spec='${libname}${release}${shared_ext}$major'
17214   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17215   shlibpath_var=LD_LIBRARY_PATH
17216   shlibpath_overrides_runpath=no
17217   # This implies no fast_install, which is unacceptable.
17218   # Some rework will be needed to allow for fast_install
17219   # before this can be enabled.
17220   hardcode_into_libs=yes
17221
17222   # Append ld.so.conf contents to the search path
17223   if test -f /etc/ld.so.conf; then
17224     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' ' '`
17225     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17226   fi
17227
17228   # We used to test for /lib/ld.so.1 and disable shared libraries on
17229   # powerpc, because MkLinux only supported shared libraries with the
17230   # GNU dynamic linker.  Since this was broken with cross compilers,
17231   # most powerpc-linux boxes support dynamic linking these days and
17232   # people can always --disable-shared, the test was removed, and we
17233   # assume the GNU/Linux dynamic linker is in use.
17234   dynamic_linker='GNU/Linux ld.so'
17235   ;;
17236
17237 knetbsd*-gnu)
17238   version_type=linux
17239   need_lib_prefix=no
17240   need_version=no
17241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17242   soname_spec='${libname}${release}${shared_ext}$major'
17243   shlibpath_var=LD_LIBRARY_PATH
17244   shlibpath_overrides_runpath=no
17245   hardcode_into_libs=yes
17246   dynamic_linker='GNU ld.so'
17247   ;;
17248
17249 netbsd*)
17250   version_type=sunos
17251   need_lib_prefix=no
17252   need_version=no
17253   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17254     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17255     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17256     dynamic_linker='NetBSD (a.out) ld.so'
17257   else
17258     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17259     soname_spec='${libname}${release}${shared_ext}$major'
17260     dynamic_linker='NetBSD ld.elf_so'
17261   fi
17262   shlibpath_var=LD_LIBRARY_PATH
17263   shlibpath_overrides_runpath=yes
17264   hardcode_into_libs=yes
17265   ;;
17266
17267 newsos6)
17268   version_type=linux
17269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270   shlibpath_var=LD_LIBRARY_PATH
17271   shlibpath_overrides_runpath=yes
17272   ;;
17273
17274 nto-qnx*)
17275   version_type=linux
17276   need_lib_prefix=no
17277   need_version=no
17278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279   soname_spec='${libname}${release}${shared_ext}$major'
17280   shlibpath_var=LD_LIBRARY_PATH
17281   shlibpath_overrides_runpath=yes
17282   ;;
17283
17284 openbsd*)
17285   version_type=sunos
17286   need_lib_prefix=no
17287   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17288   case $host_os in
17289     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17290     *)                         need_version=no  ;;
17291   esac
17292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17293   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17294   shlibpath_var=LD_LIBRARY_PATH
17295   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17296     case $host_os in
17297       openbsd2.[89] | openbsd2.[89].*)
17298         shlibpath_overrides_runpath=no
17299         ;;
17300       *)
17301         shlibpath_overrides_runpath=yes
17302         ;;
17303       esac
17304   else
17305     shlibpath_overrides_runpath=yes
17306   fi
17307   ;;
17308
17309 os2*)
17310   libname_spec='$name'
17311   shrext_cmds=".dll"
17312   need_lib_prefix=no
17313   library_names_spec='$libname${shared_ext} $libname.a'
17314   dynamic_linker='OS/2 ld.exe'
17315   shlibpath_var=LIBPATH
17316   ;;
17317
17318 osf3* | osf4* | osf5*)
17319   version_type=osf
17320   need_lib_prefix=no
17321   need_version=no
17322   soname_spec='${libname}${release}${shared_ext}$major'
17323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17324   shlibpath_var=LD_LIBRARY_PATH
17325   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17326   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17327   ;;
17328
17329 sco3.2v5*)
17330   version_type=osf
17331   soname_spec='${libname}${release}${shared_ext}$major'
17332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17333   shlibpath_var=LD_LIBRARY_PATH
17334   ;;
17335
17336 solaris*)
17337   version_type=linux
17338   need_lib_prefix=no
17339   need_version=no
17340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17341   soname_spec='${libname}${release}${shared_ext}$major'
17342   shlibpath_var=LD_LIBRARY_PATH
17343   shlibpath_overrides_runpath=yes
17344   hardcode_into_libs=yes
17345   # ldd complains unless libraries are executable
17346   postinstall_cmds='chmod +x $lib'
17347   ;;
17348
17349 sunos4*)
17350   version_type=sunos
17351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17352   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17353   shlibpath_var=LD_LIBRARY_PATH
17354   shlibpath_overrides_runpath=yes
17355   if test "$with_gnu_ld" = yes; then
17356     need_lib_prefix=no
17357   fi
17358   need_version=yes
17359   ;;
17360
17361 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17362   version_type=linux
17363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17364   soname_spec='${libname}${release}${shared_ext}$major'
17365   shlibpath_var=LD_LIBRARY_PATH
17366   case $host_vendor in
17367     sni)
17368       shlibpath_overrides_runpath=no
17369       need_lib_prefix=no
17370       export_dynamic_flag_spec='${wl}-Blargedynsym'
17371       runpath_var=LD_RUN_PATH
17372       ;;
17373     siemens)
17374       need_lib_prefix=no
17375       ;;
17376     motorola)
17377       need_lib_prefix=no
17378       need_version=no
17379       shlibpath_overrides_runpath=no
17380       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17381       ;;
17382   esac
17383   ;;
17384
17385 sysv4*MP*)
17386   if test -d /usr/nec ;then
17387     version_type=linux
17388     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17389     soname_spec='$libname${shared_ext}.$major'
17390     shlibpath_var=LD_LIBRARY_PATH
17391   fi
17392   ;;
17393
17394 uts4*)
17395   version_type=linux
17396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17397   soname_spec='${libname}${release}${shared_ext}$major'
17398   shlibpath_var=LD_LIBRARY_PATH
17399   ;;
17400
17401 *)
17402   dynamic_linker=no
17403   ;;
17404 esac
17405 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17406 echo "${ECHO_T}$dynamic_linker" >&6
17407 test "$dynamic_linker" = no && can_build_shared=no
17408
17409 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17410 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17411 hardcode_action_F77=
17412 if test -n "$hardcode_libdir_flag_spec_F77" || \
17413    test -n "$runpath_var_F77" || \
17414    test "X$hardcode_automatic_F77" = "Xyes" ; then
17415
17416   # We can hardcode non-existant directories.
17417   if test "$hardcode_direct_F77" != no &&
17418      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17419      # have to relink, otherwise we might link with an installed library
17420      # when we should be linking with a yet-to-be-installed one
17421      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17422      test "$hardcode_minus_L_F77" != no; then
17423     # Linking always hardcodes the temporary library directory.
17424     hardcode_action_F77=relink
17425   else
17426     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17427     hardcode_action_F77=immediate
17428   fi
17429 else
17430   # We cannot hardcode anything, or else we can only hardcode existing
17431   # directories.
17432   hardcode_action_F77=unsupported
17433 fi
17434 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17435 echo "${ECHO_T}$hardcode_action_F77" >&6
17436
17437 if test "$hardcode_action_F77" = relink; then
17438   # Fast installation is not supported
17439   enable_fast_install=no
17440 elif test "$shlibpath_overrides_runpath" = yes ||
17441      test "$enable_shared" = no; then
17442   # Fast installation is not necessary
17443   enable_fast_install=needless
17444 fi
17445
17446 striplib=
17447 old_striplib=
17448 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17449 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17450 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17451   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17452   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17453   echo "$as_me:$LINENO: result: yes" >&5
17454 echo "${ECHO_T}yes" >&6
17455 else
17456 # FIXME - insert some real tests, host_os isn't really good enough
17457   case $host_os in
17458    darwin*)
17459        if test -n "$STRIP" ; then
17460          striplib="$STRIP -x"
17461          echo "$as_me:$LINENO: result: yes" >&5
17462 echo "${ECHO_T}yes" >&6
17463        else
17464   echo "$as_me:$LINENO: result: no" >&5
17465 echo "${ECHO_T}no" >&6
17466 fi
17467        ;;
17468    *)
17469   echo "$as_me:$LINENO: result: no" >&5
17470 echo "${ECHO_T}no" >&6
17471     ;;
17472   esac
17473 fi
17474
17475
17476
17477 # The else clause should only fire when bootstrapping the
17478 # libtool distribution, otherwise you forgot to ship ltmain.sh
17479 # with your package, and you will get complaints that there are
17480 # no rules to generate ltmain.sh.
17481 if test -f "$ltmain"; then
17482   # See if we are running on zsh, and set the options which allow our commands through
17483   # without removal of \ escapes.
17484   if test -n "${ZSH_VERSION+set}" ; then
17485     setopt NO_GLOB_SUBST
17486   fi
17487   # Now quote all the things that may contain metacharacters while being
17488   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17489   # variables and quote the copies for generation of the libtool script.
17490   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17491     SED SHELL STRIP \
17492     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17493     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17494     deplibs_check_method reload_flag reload_cmds need_locks \
17495     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17496     lt_cv_sys_global_symbol_to_c_name_address \
17497     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17498     old_postinstall_cmds old_postuninstall_cmds \
17499     compiler_F77 \
17500     CC_F77 \
17501     LD_F77 \
17502     lt_prog_compiler_wl_F77 \
17503     lt_prog_compiler_pic_F77 \
17504     lt_prog_compiler_static_F77 \
17505     lt_prog_compiler_no_builtin_flag_F77 \
17506     export_dynamic_flag_spec_F77 \
17507     thread_safe_flag_spec_F77 \
17508     whole_archive_flag_spec_F77 \
17509     enable_shared_with_static_runtimes_F77 \
17510     old_archive_cmds_F77 \
17511     old_archive_from_new_cmds_F77 \
17512     predep_objects_F77 \
17513     postdep_objects_F77 \
17514     predeps_F77 \
17515     postdeps_F77 \
17516     compiler_lib_search_path_F77 \
17517     archive_cmds_F77 \
17518     archive_expsym_cmds_F77 \
17519     postinstall_cmds_F77 \
17520     postuninstall_cmds_F77 \
17521     old_archive_from_expsyms_cmds_F77 \
17522     allow_undefined_flag_F77 \
17523     no_undefined_flag_F77 \
17524     export_symbols_cmds_F77 \
17525     hardcode_libdir_flag_spec_F77 \
17526     hardcode_libdir_flag_spec_ld_F77 \
17527     hardcode_libdir_separator_F77 \
17528     hardcode_automatic_F77 \
17529     module_cmds_F77 \
17530     module_expsym_cmds_F77 \
17531     lt_cv_prog_compiler_c_o_F77 \
17532     exclude_expsyms_F77 \
17533     include_expsyms_F77; do
17534
17535     case $var in
17536     old_archive_cmds_F77 | \
17537     old_archive_from_new_cmds_F77 | \
17538     archive_cmds_F77 | \
17539     archive_expsym_cmds_F77 | \
17540     module_cmds_F77 | \
17541     module_expsym_cmds_F77 | \
17542     old_archive_from_expsyms_cmds_F77 | \
17543     export_symbols_cmds_F77 | \
17544     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17545     postinstall_cmds | postuninstall_cmds | \
17546     old_postinstall_cmds | old_postuninstall_cmds | \
17547     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17548       # Double-quote double-evaled strings.
17549       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17550       ;;
17551     *)
17552       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17553       ;;
17554     esac
17555   done
17556
17557   case $lt_echo in
17558   *'\$0 --fallback-echo"')
17559     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17560     ;;
17561   esac
17562
17563 cfgfile="$ofile"
17564
17565   cat <<__EOF__ >> "$cfgfile"
17566 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17567
17568 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17569
17570 # Shell to use when invoking shell scripts.
17571 SHELL=$lt_SHELL
17572
17573 # Whether or not to build shared libraries.
17574 build_libtool_libs=$enable_shared
17575
17576 # Whether or not to build static libraries.
17577 build_old_libs=$enable_static
17578
17579 # Whether or not to add -lc for building shared libraries.
17580 build_libtool_need_lc=$archive_cmds_need_lc_F77
17581
17582 # Whether or not to disallow shared libs when runtime libs are static
17583 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17584
17585 # Whether or not to optimize for fast installation.
17586 fast_install=$enable_fast_install
17587
17588 # The host system.
17589 host_alias=$host_alias
17590 host=$host
17591 host_os=$host_os
17592
17593 # The build system.
17594 build_alias=$build_alias
17595 build=$build
17596 build_os=$build_os
17597
17598 # An echo program that does not interpret backslashes.
17599 echo=$lt_echo
17600
17601 # The archiver.
17602 AR=$lt_AR
17603 AR_FLAGS=$lt_AR_FLAGS
17604
17605 # A C compiler.
17606 LTCC=$lt_LTCC
17607
17608 # A language-specific compiler.
17609 CC=$lt_compiler_F77
17610
17611 # Is the compiler the GNU C compiler?
17612 with_gcc=$GCC_F77
17613
17614 # An ERE matcher.
17615 EGREP=$lt_EGREP
17616
17617 # The linker used to build libraries.
17618 LD=$lt_LD_F77
17619
17620 # Whether we need hard or soft links.
17621 LN_S=$lt_LN_S
17622
17623 # A BSD-compatible nm program.
17624 NM=$lt_NM
17625
17626 # A symbol stripping program
17627 STRIP=$lt_STRIP
17628
17629 # Used to examine libraries when file_magic_cmd begins "file"
17630 MAGIC_CMD=$MAGIC_CMD
17631
17632 # Used on cygwin: DLL creation program.
17633 DLLTOOL="$DLLTOOL"
17634
17635 # Used on cygwin: object dumper.
17636 OBJDUMP="$OBJDUMP"
17637
17638 # Used on cygwin: assembler.
17639 AS="$AS"
17640
17641 # The name of the directory that contains temporary libtool files.
17642 objdir=$objdir
17643
17644 # How to create reloadable object files.
17645 reload_flag=$lt_reload_flag
17646 reload_cmds=$lt_reload_cmds
17647
17648 # How to pass a linker flag through the compiler.
17649 wl=$lt_lt_prog_compiler_wl_F77
17650
17651 # Object file suffix (normally "o").
17652 objext="$ac_objext"
17653
17654 # Old archive suffix (normally "a").
17655 libext="$libext"
17656
17657 # Shared library suffix (normally ".so").
17658 shrext_cmds='$shrext_cmds'
17659
17660 # Executable file suffix (normally "").
17661 exeext="$exeext"
17662
17663 # Additional compiler flags for building library objects.
17664 pic_flag=$lt_lt_prog_compiler_pic_F77
17665 pic_mode=$pic_mode
17666
17667 # What is the maximum length of a command?
17668 max_cmd_len=$lt_cv_sys_max_cmd_len
17669
17670 # Does compiler simultaneously support -c and -o options?
17671 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17672
17673 # Must we lock files when doing compilation?
17674 need_locks=$lt_need_locks
17675
17676 # Do we need the lib prefix for modules?
17677 need_lib_prefix=$need_lib_prefix
17678
17679 # Do we need a version for libraries?
17680 need_version=$need_version
17681
17682 # Whether dlopen is supported.
17683 dlopen_support=$enable_dlopen
17684
17685 # Whether dlopen of programs is supported.
17686 dlopen_self=$enable_dlopen_self
17687
17688 # Whether dlopen of statically linked programs is supported.
17689 dlopen_self_static=$enable_dlopen_self_static
17690
17691 # Compiler flag to prevent dynamic linking.
17692 link_static_flag=$lt_lt_prog_compiler_static_F77
17693
17694 # Compiler flag to turn off builtin functions.
17695 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17696
17697 # Compiler flag to allow reflexive dlopens.
17698 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17699
17700 # Compiler flag to generate shared objects directly from archives.
17701 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17702
17703 # Compiler flag to generate thread-safe objects.
17704 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17705
17706 # Library versioning type.
17707 version_type=$version_type
17708
17709 # Format of library name prefix.
17710 libname_spec=$lt_libname_spec
17711
17712 # List of archive names.  First name is the real one, the rest are links.
17713 # The last name is the one that the linker finds with -lNAME.
17714 library_names_spec=$lt_library_names_spec
17715
17716 # The coded name of the library, if different from the real name.
17717 soname_spec=$lt_soname_spec
17718
17719 # Commands used to build and install an old-style archive.
17720 RANLIB=$lt_RANLIB
17721 old_archive_cmds=$lt_old_archive_cmds_F77
17722 old_postinstall_cmds=$lt_old_postinstall_cmds
17723 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17724
17725 # Create an old-style archive from a shared archive.
17726 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17727
17728 # Create a temporary old-style archive to link instead of a shared archive.
17729 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17730
17731 # Commands used to build and install a shared archive.
17732 archive_cmds=$lt_archive_cmds_F77
17733 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17734 postinstall_cmds=$lt_postinstall_cmds
17735 postuninstall_cmds=$lt_postuninstall_cmds
17736
17737 # Commands used to build a loadable module (assumed same as above if empty)
17738 module_cmds=$lt_module_cmds_F77
17739 module_expsym_cmds=$lt_module_expsym_cmds_F77
17740
17741 # Commands to strip libraries.
17742 old_striplib=$lt_old_striplib
17743 striplib=$lt_striplib
17744
17745 # Dependencies to place before the objects being linked to create a
17746 # shared library.
17747 predep_objects=$lt_predep_objects_F77
17748
17749 # Dependencies to place after the objects being linked to create a
17750 # shared library.
17751 postdep_objects=$lt_postdep_objects_F77
17752
17753 # Dependencies to place before the objects being linked to create a
17754 # shared library.
17755 predeps=$lt_predeps_F77
17756
17757 # Dependencies to place after the objects being linked to create a
17758 # shared library.
17759 postdeps=$lt_postdeps_F77
17760
17761 # The library search path used internally by the compiler when linking
17762 # a shared library.
17763 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17764
17765 # Method to check whether dependent libraries are shared objects.
17766 deplibs_check_method=$lt_deplibs_check_method
17767
17768 # Command to use when deplibs_check_method == file_magic.
17769 file_magic_cmd=$lt_file_magic_cmd
17770
17771 # Flag that allows shared libraries with undefined symbols to be built.
17772 allow_undefined_flag=$lt_allow_undefined_flag_F77
17773
17774 # Flag that forces no undefined symbols.
17775 no_undefined_flag=$lt_no_undefined_flag_F77
17776
17777 # Commands used to finish a libtool library installation in a directory.
17778 finish_cmds=$lt_finish_cmds
17779
17780 # Same as above, but a single script fragment to be evaled but not shown.
17781 finish_eval=$lt_finish_eval
17782
17783 # Take the output of nm and produce a listing of raw symbols and C names.
17784 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17785
17786 # Transform the output of nm in a proper C declaration
17787 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17788
17789 # Transform the output of nm in a C name address pair
17790 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17791
17792 # This is the shared library runtime path variable.
17793 runpath_var=$runpath_var
17794
17795 # This is the shared library path variable.
17796 shlibpath_var=$shlibpath_var
17797
17798 # Is shlibpath searched before the hard-coded library search path?
17799 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17800
17801 # How to hardcode a shared library path into an executable.
17802 hardcode_action=$hardcode_action_F77
17803
17804 # Whether we should hardcode library paths into libraries.
17805 hardcode_into_libs=$hardcode_into_libs
17806
17807 # Flag to hardcode \$libdir into a binary during linking.
17808 # This must work even if \$libdir does not exist.
17809 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17810
17811 # If ld is used when linking, flag to hardcode \$libdir into
17812 # a binary during linking. This must work even if \$libdir does
17813 # not exist.
17814 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17815
17816 # Whether we need a single -rpath flag with a separated argument.
17817 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17818
17819 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17820 # resulting binary.
17821 hardcode_direct=$hardcode_direct_F77
17822
17823 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17824 # resulting binary.
17825 hardcode_minus_L=$hardcode_minus_L_F77
17826
17827 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17828 # the resulting binary.
17829 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17830
17831 # Set to yes if building a shared library automatically hardcodes DIR into the library
17832 # and all subsequent libraries and executables linked against it.
17833 hardcode_automatic=$hardcode_automatic_F77
17834
17835 # Variables whose values should be saved in libtool wrapper scripts and
17836 # restored at relink time.
17837 variables_saved_for_relink="$variables_saved_for_relink"
17838
17839 # Whether libtool must link a program against all its dependency libraries.
17840 link_all_deplibs=$link_all_deplibs_F77
17841
17842 # Compile-time system search path for libraries
17843 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17844
17845 # Run-time system search path for libraries
17846 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17847
17848 # Fix the shell variable \$srcfile for the compiler.
17849 fix_srcfile_path="$fix_srcfile_path_F77"
17850
17851 # Set to yes if exported symbols are required.
17852 always_export_symbols=$always_export_symbols_F77
17853
17854 # The commands to list exported symbols.
17855 export_symbols_cmds=$lt_export_symbols_cmds_F77
17856
17857 # The commands to extract the exported symbol list from a shared archive.
17858 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17859
17860 # Symbols that should not be listed in the preloaded symbols.
17861 exclude_expsyms=$lt_exclude_expsyms_F77
17862
17863 # Symbols that must always be exported.
17864 include_expsyms=$lt_include_expsyms_F77
17865
17866 # ### END LIBTOOL TAG CONFIG: $tagname
17867
17868 __EOF__
17869
17870
17871 else
17872   # If there is no Makefile yet, we rely on a make rule to execute
17873   # `config.status --recheck' to rerun these tests and create the
17874   # libtool script then.
17875   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17876   if test -f "$ltmain_in"; then
17877     test -f Makefile && make "$ltmain"
17878   fi
17879 fi
17880
17881
17882 ac_ext=c
17883 ac_cpp='$CPP $CPPFLAGS'
17884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17887
17888 CC="$lt_save_CC"
17889
17890         else
17891           tagname=""
17892         fi
17893         ;;
17894
17895       GCJ)
17896         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17897
17898
17899
17900 # Source file extension for Java test sources.
17901 ac_ext=java
17902
17903 # Object file extension for compiled Java test sources.
17904 objext=o
17905 objext_GCJ=$objext
17906
17907 # Code to be used in simple compile tests
17908 lt_simple_compile_test_code="class foo {}\n"
17909
17910 # Code to be used in simple link tests
17911 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17912
17913 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17914
17915 # If no C compiler was specified, use CC.
17916 LTCC=${LTCC-"$CC"}
17917
17918 # Allow CC to be a program name with arguments.
17919 compiler=$CC
17920
17921
17922 # save warnings/boilerplate of simple test code
17923 ac_outfile=conftest.$ac_objext
17924 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17925 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17926 _lt_compiler_boilerplate=`cat conftest.err`
17927 $rm conftest*
17928
17929 ac_outfile=conftest.$ac_objext
17930 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17931 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17932 _lt_linker_boilerplate=`cat conftest.err`
17933 $rm conftest*
17934
17935
17936 # Allow CC to be a program name with arguments.
17937 lt_save_CC="$CC"
17938 CC=${GCJ-"gcj"}
17939 compiler=$CC
17940 compiler_GCJ=$CC
17941 for cc_temp in $compiler""; do
17942   case $cc_temp in
17943     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17944     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17945     \-*) ;;
17946     *) break;;
17947   esac
17948 done
17949 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17950
17951
17952 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17953 archive_cmds_need_lc_GCJ=no
17954
17955 old_archive_cmds_GCJ=$old_archive_cmds
17956
17957
17958 lt_prog_compiler_no_builtin_flag_GCJ=
17959
17960 if test "$GCC" = yes; then
17961   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17962
17963
17964 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17965 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17966 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17967   echo $ECHO_N "(cached) $ECHO_C" >&6
17968 else
17969   lt_cv_prog_compiler_rtti_exceptions=no
17970   ac_outfile=conftest.$ac_objext
17971    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17972    lt_compiler_flag="-fno-rtti -fno-exceptions"
17973    # Insert the option either (1) after the last *FLAGS variable, or
17974    # (2) before a word containing "conftest.", or (3) at the end.
17975    # Note that $ac_compile itself does not contain backslashes and begins
17976    # with a dollar sign (not a hyphen), so the echo should work correctly.
17977    # The option is referenced via a variable to avoid confusing sed.
17978    lt_compile=`echo "$ac_compile" | $SED \
17979    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17980    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17981    -e 's:$: $lt_compiler_flag:'`
17982    (eval echo "\"\$as_me:17982: $lt_compile\"" >&5)
17983    (eval "$lt_compile" 2>conftest.err)
17984    ac_status=$?
17985    cat conftest.err >&5
17986    echo "$as_me:17986: \$? = $ac_status" >&5
17987    if (exit $ac_status) && test -s "$ac_outfile"; then
17988      # The compiler can only warn and ignore the option if not recognized
17989      # So say no if there are warnings other than the usual output.
17990      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17991      $SED '/^$/d' conftest.err >conftest.er2
17992      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17993        lt_cv_prog_compiler_rtti_exceptions=yes
17994      fi
17995    fi
17996    $rm conftest*
17997
17998 fi
17999 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18000 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18001
18002 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18003     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18004 else
18005     :
18006 fi
18007
18008 fi
18009
18010 lt_prog_compiler_wl_GCJ=
18011 lt_prog_compiler_pic_GCJ=
18012 lt_prog_compiler_static_GCJ=
18013
18014 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18015 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18016
18017   if test "$GCC" = yes; then
18018     lt_prog_compiler_wl_GCJ='-Wl,'
18019     lt_prog_compiler_static_GCJ='-static'
18020
18021     case $host_os in
18022       aix*)
18023       # All AIX code is PIC.
18024       if test "$host_cpu" = ia64; then
18025         # AIX 5 now supports IA64 processor
18026         lt_prog_compiler_static_GCJ='-Bstatic'
18027       fi
18028       ;;
18029
18030     amigaos*)
18031       # FIXME: we need at least 68020 code to build shared libraries, but
18032       # adding the `-m68020' flag to GCC prevents building anything better,
18033       # like `-m68040'.
18034       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18035       ;;
18036
18037     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18038       # PIC is the default for these OSes.
18039       ;;
18040
18041     mingw* | pw32* | os2*)
18042       # This hack is so that the source file can tell whether it is being
18043       # built for inclusion in a dll (and should export symbols for example).
18044       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18045       ;;
18046
18047     darwin* | rhapsody*)
18048       # PIC is the default on this platform
18049       # Common symbols not allowed in MH_DYLIB files
18050       lt_prog_compiler_pic_GCJ='-fno-common'
18051       ;;
18052
18053     msdosdjgpp*)
18054       # Just because we use GCC doesn't mean we suddenly get shared libraries
18055       # on systems that don't support them.
18056       lt_prog_compiler_can_build_shared_GCJ=no
18057       enable_shared=no
18058       ;;
18059
18060     sysv4*MP*)
18061       if test -d /usr/nec; then
18062         lt_prog_compiler_pic_GCJ=-Kconform_pic
18063       fi
18064       ;;
18065
18066     hpux*)
18067       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18068       # not for PA HP-UX.
18069       case "$host_cpu" in
18070       hppa*64*|ia64*)
18071         # +Z the default
18072         ;;
18073       *)
18074         lt_prog_compiler_pic_GCJ='-fPIC'
18075         ;;
18076       esac
18077       ;;
18078
18079     *)
18080       lt_prog_compiler_pic_GCJ='-fPIC'
18081       ;;
18082     esac
18083   else
18084     # PORTME Check for flag to pass linker flags through the system compiler.
18085     case $host_os in
18086     aix*)
18087       lt_prog_compiler_wl_GCJ='-Wl,'
18088       if test "$host_cpu" = ia64; then
18089         # AIX 5 now supports IA64 processor
18090         lt_prog_compiler_static_GCJ='-Bstatic'
18091       else
18092         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18093       fi
18094       ;;
18095       darwin*)
18096         # PIC is the default on this platform
18097         # Common symbols not allowed in MH_DYLIB files
18098        case $cc_basename in
18099          xlc*)
18100          lt_prog_compiler_pic_GCJ='-qnocommon'
18101          lt_prog_compiler_wl_GCJ='-Wl,'
18102          ;;
18103        esac
18104        ;;
18105
18106     mingw* | pw32* | os2*)
18107       # This hack is so that the source file can tell whether it is being
18108       # built for inclusion in a dll (and should export symbols for example).
18109       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18110       ;;
18111
18112     hpux9* | hpux10* | hpux11*)
18113       lt_prog_compiler_wl_GCJ='-Wl,'
18114       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18115       # not for PA HP-UX.
18116       case "$host_cpu" in
18117       hppa*64*|ia64*)
18118         # +Z the default
18119         ;;
18120       *)
18121         lt_prog_compiler_pic_GCJ='+Z'
18122         ;;
18123       esac
18124       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18125       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18126       ;;
18127
18128     irix5* | irix6* | nonstopux*)
18129       lt_prog_compiler_wl_GCJ='-Wl,'
18130       # PIC (with -KPIC) is the default.
18131       lt_prog_compiler_static_GCJ='-non_shared'
18132       ;;
18133
18134     newsos6)
18135       lt_prog_compiler_pic_GCJ='-KPIC'
18136       lt_prog_compiler_static_GCJ='-Bstatic'
18137       ;;
18138
18139     linux*)
18140       case $cc_basename in
18141       icc* | ecc*)
18142         lt_prog_compiler_wl_GCJ='-Wl,'
18143         lt_prog_compiler_pic_GCJ='-KPIC'
18144         lt_prog_compiler_static_GCJ='-static'
18145         ;;
18146       pgcc* | pgf77* | pgf90*)
18147         # Portland Group compilers (*not* the Pentium gcc compiler,
18148         # which looks to be a dead project)
18149         lt_prog_compiler_wl_GCJ='-Wl,'
18150         lt_prog_compiler_pic_GCJ='-fpic'
18151         lt_prog_compiler_static_GCJ='-static'
18152         ;;
18153       ccc*)
18154         lt_prog_compiler_wl_GCJ='-Wl,'
18155         # All Alpha code is PIC.
18156         lt_prog_compiler_static_GCJ='-non_shared'
18157         ;;
18158       esac
18159       ;;
18160
18161     osf3* | osf4* | osf5*)
18162       lt_prog_compiler_wl_GCJ='-Wl,'
18163       # All OSF/1 code is PIC.
18164       lt_prog_compiler_static_GCJ='-non_shared'
18165       ;;
18166
18167     sco3.2v5*)
18168       lt_prog_compiler_pic_GCJ='-Kpic'
18169       lt_prog_compiler_static_GCJ='-dn'
18170       ;;
18171
18172     solaris*)
18173       lt_prog_compiler_pic_GCJ='-KPIC'
18174       lt_prog_compiler_static_GCJ='-Bstatic'
18175       case $cc_basename in
18176       f77* | f90* | f95*)
18177         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18178       *)
18179         lt_prog_compiler_wl_GCJ='-Wl,';;
18180       esac
18181       ;;
18182
18183     sunos4*)
18184       lt_prog_compiler_wl_GCJ='-Qoption ld '
18185       lt_prog_compiler_pic_GCJ='-PIC'
18186       lt_prog_compiler_static_GCJ='-Bstatic'
18187       ;;
18188
18189     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18190       lt_prog_compiler_wl_GCJ='-Wl,'
18191       lt_prog_compiler_pic_GCJ='-KPIC'
18192       lt_prog_compiler_static_GCJ='-Bstatic'
18193       ;;
18194
18195     sysv4*MP*)
18196       if test -d /usr/nec ;then
18197         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18198         lt_prog_compiler_static_GCJ='-Bstatic'
18199       fi
18200       ;;
18201
18202     unicos*)
18203       lt_prog_compiler_wl_GCJ='-Wl,'
18204       lt_prog_compiler_can_build_shared_GCJ=no
18205       ;;
18206
18207     uts4*)
18208       lt_prog_compiler_pic_GCJ='-pic'
18209       lt_prog_compiler_static_GCJ='-Bstatic'
18210       ;;
18211
18212     *)
18213       lt_prog_compiler_can_build_shared_GCJ=no
18214       ;;
18215     esac
18216   fi
18217
18218 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18219 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18220
18221 #
18222 # Check to make sure the PIC flag actually works.
18223 #
18224 if test -n "$lt_prog_compiler_pic_GCJ"; then
18225
18226 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18227 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18228 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18229   echo $ECHO_N "(cached) $ECHO_C" >&6
18230 else
18231   lt_prog_compiler_pic_works_GCJ=no
18232   ac_outfile=conftest.$ac_objext
18233    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18234    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18235    # Insert the option either (1) after the last *FLAGS variable, or
18236    # (2) before a word containing "conftest.", or (3) at the end.
18237    # Note that $ac_compile itself does not contain backslashes and begins
18238    # with a dollar sign (not a hyphen), so the echo should work correctly.
18239    # The option is referenced via a variable to avoid confusing sed.
18240    lt_compile=`echo "$ac_compile" | $SED \
18241    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18242    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18243    -e 's:$: $lt_compiler_flag:'`
18244    (eval echo "\"\$as_me:18244: $lt_compile\"" >&5)
18245    (eval "$lt_compile" 2>conftest.err)
18246    ac_status=$?
18247    cat conftest.err >&5
18248    echo "$as_me:18248: \$? = $ac_status" >&5
18249    if (exit $ac_status) && test -s "$ac_outfile"; then
18250      # The compiler can only warn and ignore the option if not recognized
18251      # So say no if there are warnings other than the usual output.
18252      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18253      $SED '/^$/d' conftest.err >conftest.er2
18254      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18255        lt_prog_compiler_pic_works_GCJ=yes
18256      fi
18257    fi
18258    $rm conftest*
18259
18260 fi
18261 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18262 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18263
18264 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18265     case $lt_prog_compiler_pic_GCJ in
18266      "" | " "*) ;;
18267      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18268      esac
18269 else
18270     lt_prog_compiler_pic_GCJ=
18271      lt_prog_compiler_can_build_shared_GCJ=no
18272 fi
18273
18274 fi
18275 case "$host_os" in
18276   # For platforms which do not support PIC, -DPIC is meaningless:
18277   *djgpp*)
18278     lt_prog_compiler_pic_GCJ=
18279     ;;
18280   *)
18281     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18282     ;;
18283 esac
18284
18285 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18286 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18287 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18288   echo $ECHO_N "(cached) $ECHO_C" >&6
18289 else
18290   lt_cv_prog_compiler_c_o_GCJ=no
18291    $rm -r conftest 2>/dev/null
18292    mkdir conftest
18293    cd conftest
18294    mkdir out
18295    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18296
18297    lt_compiler_flag="-o out/conftest2.$ac_objext"
18298    # Insert the option either (1) after the last *FLAGS variable, or
18299    # (2) before a word containing "conftest.", or (3) at the end.
18300    # Note that $ac_compile itself does not contain backslashes and begins
18301    # with a dollar sign (not a hyphen), so the echo should work correctly.
18302    lt_compile=`echo "$ac_compile" | $SED \
18303    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18304    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18305    -e 's:$: $lt_compiler_flag:'`
18306    (eval echo "\"\$as_me:18306: $lt_compile\"" >&5)
18307    (eval "$lt_compile" 2>out/conftest.err)
18308    ac_status=$?
18309    cat out/conftest.err >&5
18310    echo "$as_me:18310: \$? = $ac_status" >&5
18311    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18312    then
18313      # The compiler can only warn and ignore the option if not recognized
18314      # So say no if there are warnings
18315      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18316      $SED '/^$/d' out/conftest.err >out/conftest.er2
18317      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18318        lt_cv_prog_compiler_c_o_GCJ=yes
18319      fi
18320    fi
18321    chmod u+w .
18322    $rm conftest*
18323    # SGI C++ compiler will create directory out/ii_files/ for
18324    # template instantiation
18325    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18326    $rm out/* && rmdir out
18327    cd ..
18328    rmdir conftest
18329    $rm conftest*
18330
18331 fi
18332 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18333 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18334
18335
18336 hard_links="nottested"
18337 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18338   # do not overwrite the value of need_locks provided by the user
18339   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18340 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18341   hard_links=yes
18342   $rm conftest*
18343   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18344   touch conftest.a
18345   ln conftest.a conftest.b 2>&5 || hard_links=no
18346   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18347   echo "$as_me:$LINENO: result: $hard_links" >&5
18348 echo "${ECHO_T}$hard_links" >&6
18349   if test "$hard_links" = no; then
18350     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18351 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18352     need_locks=warn
18353   fi
18354 else
18355   need_locks=no
18356 fi
18357
18358 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18359 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18360
18361   runpath_var=
18362   allow_undefined_flag_GCJ=
18363   enable_shared_with_static_runtimes_GCJ=no
18364   archive_cmds_GCJ=
18365   archive_expsym_cmds_GCJ=
18366   old_archive_From_new_cmds_GCJ=
18367   old_archive_from_expsyms_cmds_GCJ=
18368   export_dynamic_flag_spec_GCJ=
18369   whole_archive_flag_spec_GCJ=
18370   thread_safe_flag_spec_GCJ=
18371   hardcode_libdir_flag_spec_GCJ=
18372   hardcode_libdir_flag_spec_ld_GCJ=
18373   hardcode_libdir_separator_GCJ=
18374   hardcode_direct_GCJ=no
18375   hardcode_minus_L_GCJ=no
18376   hardcode_shlibpath_var_GCJ=unsupported
18377   link_all_deplibs_GCJ=unknown
18378   hardcode_automatic_GCJ=no
18379   module_cmds_GCJ=
18380   module_expsym_cmds_GCJ=
18381   always_export_symbols_GCJ=no
18382   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18383   # include_expsyms should be a list of space-separated symbols to be *always*
18384   # included in the symbol list
18385   include_expsyms_GCJ=
18386   # exclude_expsyms can be an extended regexp of symbols to exclude
18387   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18388   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18389   # as well as any symbol that contains `d'.
18390   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18391   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18392   # platforms (ab)use it in PIC code, but their linkers get confused if
18393   # the symbol is explicitly referenced.  Since portable code cannot
18394   # rely on this symbol name, it's probably fine to never include it in
18395   # preloaded symbol tables.
18396   extract_expsyms_cmds=
18397   # Just being paranoid about ensuring that cc_basename is set.
18398   for cc_temp in $compiler""; do
18399   case $cc_temp in
18400     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18401     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18402     \-*) ;;
18403     *) break;;
18404   esac
18405 done
18406 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18407
18408   case $host_os in
18409   cygwin* | mingw* | pw32*)
18410     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18411     # When not using gcc, we currently assume that we are using
18412     # Microsoft Visual C++.
18413     if test "$GCC" != yes; then
18414       with_gnu_ld=no
18415     fi
18416     ;;
18417   openbsd*)
18418     with_gnu_ld=no
18419     ;;
18420   esac
18421
18422   ld_shlibs_GCJ=yes
18423   if test "$with_gnu_ld" = yes; then
18424     # If archive_cmds runs LD, not CC, wlarc should be empty
18425     wlarc='${wl}'
18426
18427     # Set some defaults for GNU ld with shared library support. These
18428     # are reset later if shared libraries are not supported. Putting them
18429     # here allows them to be overridden if necessary.
18430     runpath_var=LD_RUN_PATH
18431     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18432     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18433     # ancient GNU ld didn't support --whole-archive et. al.
18434     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18435         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18436       else
18437         whole_archive_flag_spec_GCJ=
18438     fi
18439     supports_anon_versioning=no
18440     case `$LD -v 2>/dev/null` in
18441       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18442       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18443       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18444       *\ 2.11.*) ;; # other 2.11 versions
18445       *) supports_anon_versioning=yes ;;
18446     esac
18447
18448     # See if GNU ld supports shared libraries.
18449     case $host_os in
18450     aix3* | aix4* | aix5*)
18451       # On AIX/PPC, the GNU linker is very broken
18452       if test "$host_cpu" != ia64; then
18453         ld_shlibs_GCJ=no
18454         cat <<EOF 1>&2
18455
18456 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18457 *** to be unable to reliably create shared libraries on AIX.
18458 *** Therefore, libtool is disabling shared libraries support.  If you
18459 *** really care for shared libraries, you may want to modify your PATH
18460 *** so that a non-GNU linker is found, and then restart.
18461
18462 EOF
18463       fi
18464       ;;
18465
18466     amigaos*)
18467       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)'
18468       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18469       hardcode_minus_L_GCJ=yes
18470
18471       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18472       # that the semantics of dynamic libraries on AmigaOS, at least up
18473       # to version 4, is to share data among multiple programs linked
18474       # with the same dynamic library.  Since this doesn't match the
18475       # behavior of shared libraries on other platforms, we can't use
18476       # them.
18477       ld_shlibs_GCJ=no
18478       ;;
18479
18480     beos*)
18481       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18482         allow_undefined_flag_GCJ=unsupported
18483         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18484         # support --undefined.  This deserves some investigation.  FIXME
18485         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18486       else
18487         ld_shlibs_GCJ=no
18488       fi
18489       ;;
18490
18491     cygwin* | mingw* | pw32*)
18492       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18493       # as there is no search path for DLLs.
18494       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18495       allow_undefined_flag_GCJ=unsupported
18496       always_export_symbols_GCJ=no
18497       enable_shared_with_static_runtimes_GCJ=yes
18498       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18499
18500       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18501         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18502         # If the export-symbols file already is a .def file (1st line
18503         # is EXPORTS), use it as is; otherwise, prepend...
18504         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18505           cp $export_symbols $output_objdir/$soname.def;
18506         else
18507           echo EXPORTS > $output_objdir/$soname.def;
18508           cat $export_symbols >> $output_objdir/$soname.def;
18509         fi~
18510         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
18511       else
18512         ld_shlibs_GCJ=no
18513       fi
18514       ;;
18515
18516     linux*)
18517       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18518         tmp_addflag=
18519         case $cc_basename,$host_cpu in
18520         pgcc*)                          # Portland Group C compiler
18521           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'
18522           tmp_addflag=' $pic_flag'
18523           ;;
18524         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
18525           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'
18526           tmp_addflag=' $pic_flag -Mnomain' ;;
18527         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18528           tmp_addflag=' -i_dynamic' ;;
18529         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18530           tmp_addflag=' -i_dynamic -nofor_main' ;;
18531         ifc* | ifort*)                  # Intel Fortran compiler
18532           tmp_addflag=' -nofor_main' ;;
18533         esac
18534         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18535
18536         if test $supports_anon_versioning = yes; then
18537           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18538   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18539   $echo "local: *; };" >> $output_objdir/$libname.ver~
18540           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18541         fi
18542       else
18543         ld_shlibs_GCJ=no
18544       fi
18545       ;;
18546
18547     netbsd*)
18548       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18549         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18550         wlarc=
18551       else
18552         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18553         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18554       fi
18555       ;;
18556
18557     solaris* | sysv5*)
18558       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18559         ld_shlibs_GCJ=no
18560         cat <<EOF 1>&2
18561
18562 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18563 *** create shared libraries on Solaris systems.  Therefore, libtool
18564 *** is disabling shared libraries support.  We urge you to upgrade GNU
18565 *** binutils to release 2.9.1 or newer.  Another option is to modify
18566 *** your PATH or compiler configuration so that the native linker is
18567 *** used, and then restart.
18568
18569 EOF
18570       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18571         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18572         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18573       else
18574         ld_shlibs_GCJ=no
18575       fi
18576       ;;
18577
18578     sunos4*)
18579       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18580       wlarc=
18581       hardcode_direct_GCJ=yes
18582       hardcode_shlibpath_var_GCJ=no
18583       ;;
18584
18585     *)
18586       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18587         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18588         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18589       else
18590         ld_shlibs_GCJ=no
18591       fi
18592       ;;
18593     esac
18594
18595     if test "$ld_shlibs_GCJ" = no; then
18596       runpath_var=
18597       hardcode_libdir_flag_spec_GCJ=
18598       export_dynamic_flag_spec_GCJ=
18599       whole_archive_flag_spec_GCJ=
18600     fi
18601   else
18602     # PORTME fill in a description of your system's linker (not GNU ld)
18603     case $host_os in
18604     aix3*)
18605       allow_undefined_flag_GCJ=unsupported
18606       always_export_symbols_GCJ=yes
18607       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'
18608       # Note: this linker hardcodes the directories in LIBPATH if there
18609       # are no directories specified by -L.
18610       hardcode_minus_L_GCJ=yes
18611       if test "$GCC" = yes && test -z "$link_static_flag"; then
18612         # Neither direct hardcoding nor static linking is supported with a
18613         # broken collect2.
18614         hardcode_direct_GCJ=unsupported
18615       fi
18616       ;;
18617
18618     aix4* | aix5*)
18619       if test "$host_cpu" = ia64; then
18620         # On IA64, the linker does run time linking by default, so we don't
18621         # have to do anything special.
18622         aix_use_runtimelinking=no
18623         exp_sym_flag='-Bexport'
18624         no_entry_flag=""
18625       else
18626         # If we're using GNU nm, then we don't want the "-C" option.
18627         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18628         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18629           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'
18630         else
18631           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'
18632         fi
18633         aix_use_runtimelinking=no
18634
18635         # Test if we are trying to use run time linking or normal
18636         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18637         # need to do runtime linking.
18638         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18639           for ld_flag in $LDFLAGS; do
18640           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18641             aix_use_runtimelinking=yes
18642             break
18643           fi
18644           done
18645         esac
18646
18647         exp_sym_flag='-bexport'
18648         no_entry_flag='-bnoentry'
18649       fi
18650
18651       # When large executables or shared objects are built, AIX ld can
18652       # have problems creating the table of contents.  If linking a library
18653       # or program results in "error TOC overflow" add -mminimal-toc to
18654       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18655       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18656
18657       archive_cmds_GCJ=''
18658       hardcode_direct_GCJ=yes
18659       hardcode_libdir_separator_GCJ=':'
18660       link_all_deplibs_GCJ=yes
18661
18662       if test "$GCC" = yes; then
18663         case $host_os in aix4.[012]|aix4.[012].*)
18664         # We only want to do this on AIX 4.2 and lower, the check
18665         # below for broken collect2 doesn't work under 4.3+
18666           collect2name=`${CC} -print-prog-name=collect2`
18667           if test -f "$collect2name" && \
18668            strings "$collect2name" | grep resolve_lib_name >/dev/null
18669           then
18670           # We have reworked collect2
18671           hardcode_direct_GCJ=yes
18672           else
18673           # We have old collect2
18674           hardcode_direct_GCJ=unsupported
18675           # It fails to find uninstalled libraries when the uninstalled
18676           # path is not listed in the libpath.  Setting hardcode_minus_L
18677           # to unsupported forces relinking
18678           hardcode_minus_L_GCJ=yes
18679           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18680           hardcode_libdir_separator_GCJ=
18681           fi
18682         esac
18683         shared_flag='-shared'
18684         if test "$aix_use_runtimelinking" = yes; then
18685           shared_flag="$shared_flag "'${wl}-G'
18686         fi
18687       else
18688         # not using gcc
18689         if test "$host_cpu" = ia64; then
18690         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18691         # chokes on -Wl,-G. The following line is correct:
18692           shared_flag='-G'
18693         else
18694         if test "$aix_use_runtimelinking" = yes; then
18695             shared_flag='${wl}-G'
18696           else
18697             shared_flag='${wl}-bM:SRE'
18698         fi
18699         fi
18700       fi
18701
18702       # It seems that -bexpall does not export symbols beginning with
18703       # underscore (_), so it is better to generate a list of symbols to export.
18704       always_export_symbols_GCJ=yes
18705       if test "$aix_use_runtimelinking" = yes; then
18706         # Warning - without using the other runtime loading flags (-brtl),
18707         # -berok will link without error, but may produce a broken library.
18708         allow_undefined_flag_GCJ='-berok'
18709        # Determine the default libpath from the value encoded in an empty executable.
18710        cat >conftest.$ac_ext <<_ACEOF
18711 /* confdefs.h.  */
18712 _ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h.  */
18716
18717 int
18718 main ()
18719 {
18720
18721   ;
18722   return 0;
18723 }
18724 _ACEOF
18725 rm -f conftest.$ac_objext conftest$ac_exeext
18726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18727   (eval $ac_link) 2>conftest.er1
18728   ac_status=$?
18729   grep -v '^ *+' conftest.er1 >conftest.err
18730   rm -f conftest.er1
18731   cat conftest.err >&5
18732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733   (exit $ac_status); } &&
18734          { ac_try='test -z "$ac_c_werror_flag"
18735                          || test ! -s conftest.err'
18736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18737   (eval $ac_try) 2>&5
18738   ac_status=$?
18739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740   (exit $ac_status); }; } &&
18741          { ac_try='test -s conftest$ac_exeext'
18742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18743   (eval $ac_try) 2>&5
18744   ac_status=$?
18745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746   (exit $ac_status); }; }; then
18747
18748 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18749 }'`
18750 # Check for a 64-bit object if we didn't find anything.
18751 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; }
18752 }'`; fi
18753 else
18754   echo "$as_me: failed program was:" >&5
18755 sed 's/^/| /' conftest.$ac_ext >&5
18756
18757 fi
18758 rm -f conftest.err conftest.$ac_objext \
18759       conftest$ac_exeext conftest.$ac_ext
18760 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18761
18762        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18763         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"
18764        else
18765         if test "$host_cpu" = ia64; then
18766           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18767           allow_undefined_flag_GCJ="-z nodefs"
18768           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"
18769         else
18770          # Determine the default libpath from the value encoded in an empty executable.
18771          cat >conftest.$ac_ext <<_ACEOF
18772 /* confdefs.h.  */
18773 _ACEOF
18774 cat confdefs.h >>conftest.$ac_ext
18775 cat >>conftest.$ac_ext <<_ACEOF
18776 /* end confdefs.h.  */
18777
18778 int
18779 main ()
18780 {
18781
18782   ;
18783   return 0;
18784 }
18785 _ACEOF
18786 rm -f conftest.$ac_objext conftest$ac_exeext
18787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18788   (eval $ac_link) 2>conftest.er1
18789   ac_status=$?
18790   grep -v '^ *+' conftest.er1 >conftest.err
18791   rm -f conftest.er1
18792   cat conftest.err >&5
18793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794   (exit $ac_status); } &&
18795          { ac_try='test -z "$ac_c_werror_flag"
18796                          || test ! -s conftest.err'
18797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798   (eval $ac_try) 2>&5
18799   ac_status=$?
18800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801   (exit $ac_status); }; } &&
18802          { ac_try='test -s conftest$ac_exeext'
18803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804   (eval $ac_try) 2>&5
18805   ac_status=$?
18806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807   (exit $ac_status); }; }; then
18808
18809 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18810 }'`
18811 # Check for a 64-bit object if we didn't find anything.
18812 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; }
18813 }'`; fi
18814 else
18815   echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18817
18818 fi
18819 rm -f conftest.err conftest.$ac_objext \
18820       conftest$ac_exeext conftest.$ac_ext
18821 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18822
18823          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18824           # Warning - without using the other run time loading flags,
18825           # -berok will link without error, but may produce a broken library.
18826           no_undefined_flag_GCJ=' ${wl}-bernotok'
18827           allow_undefined_flag_GCJ=' ${wl}-berok'
18828           # -bexpall does not export symbols beginning with underscore (_)
18829           always_export_symbols_GCJ=yes
18830           # Exported symbols can be pulled into shared objects from archives
18831           whole_archive_flag_spec_GCJ=' '
18832           archive_cmds_need_lc_GCJ=yes
18833           # This is similar to how AIX traditionally builds it's shared libraries.
18834           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'
18835         fi
18836       fi
18837       ;;
18838
18839     amigaos*)
18840       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)'
18841       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18842       hardcode_minus_L_GCJ=yes
18843       # see comment about different semantics on the GNU ld section
18844       ld_shlibs_GCJ=no
18845       ;;
18846
18847     bsdi[45]*)
18848       export_dynamic_flag_spec_GCJ=-rdynamic
18849       ;;
18850
18851     cygwin* | mingw* | pw32*)
18852       # When not using gcc, we currently assume that we are using
18853       # Microsoft Visual C++.
18854       # hardcode_libdir_flag_spec is actually meaningless, as there is
18855       # no search path for DLLs.
18856       hardcode_libdir_flag_spec_GCJ=' '
18857       allow_undefined_flag_GCJ=unsupported
18858       # Tell ltmain to make .lib files, not .a files.
18859       libext=lib
18860       # Tell ltmain to make .dll files, not .so files.
18861       shrext_cmds=".dll"
18862       # FIXME: Setting linknames here is a bad hack.
18863       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18864       # The linker will automatically build a .lib file if we build a DLL.
18865       old_archive_From_new_cmds_GCJ='true'
18866       # FIXME: Should let the user specify the lib program.
18867       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18868       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18869       enable_shared_with_static_runtimes_GCJ=yes
18870       ;;
18871
18872     darwin* | rhapsody*)
18873       case "$host_os" in
18874         rhapsody* | darwin1.[012])
18875          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18876          ;;
18877        *) # Darwin 1.3 on
18878          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18879            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18880          else
18881            case ${MACOSX_DEPLOYMENT_TARGET} in
18882              10.[012])
18883                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18884                ;;
18885              10.*)
18886                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18887                ;;
18888            esac
18889          fi
18890          ;;
18891       esac
18892       archive_cmds_need_lc_GCJ=no
18893       hardcode_direct_GCJ=no
18894       hardcode_automatic_GCJ=yes
18895       hardcode_shlibpath_var_GCJ=unsupported
18896       whole_archive_flag_spec_GCJ=''
18897       link_all_deplibs_GCJ=yes
18898     if test "$GCC" = yes ; then
18899         output_verbose_link_cmd='echo'
18900         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18901       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18902       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18903       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}'
18904       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}'
18905     else
18906       case $cc_basename in
18907         xlc*)
18908          output_verbose_link_cmd='echo'
18909          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18910          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18911           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18912          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}'
18913           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}'
18914           ;;
18915        *)
18916          ld_shlibs_GCJ=no
18917           ;;
18918       esac
18919     fi
18920       ;;
18921
18922     dgux*)
18923       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18924       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18925       hardcode_shlibpath_var_GCJ=no
18926       ;;
18927
18928     freebsd1*)
18929       ld_shlibs_GCJ=no
18930       ;;
18931
18932     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18933     # support.  Future versions do this automatically, but an explicit c++rt0.o
18934     # does not break anything, and helps significantly (at the cost of a little
18935     # extra space).
18936     freebsd2.2*)
18937       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18938       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18939       hardcode_direct_GCJ=yes
18940       hardcode_shlibpath_var_GCJ=no
18941       ;;
18942
18943     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18944     freebsd2*)
18945       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18946       hardcode_direct_GCJ=yes
18947       hardcode_minus_L_GCJ=yes
18948       hardcode_shlibpath_var_GCJ=no
18949       ;;
18950
18951     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18952     freebsd* | kfreebsd*-gnu | dragonfly*)
18953       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18954       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18955       hardcode_direct_GCJ=yes
18956       hardcode_shlibpath_var_GCJ=no
18957       ;;
18958
18959     hpux9*)
18960       if test "$GCC" = yes; then
18961         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'
18962       else
18963         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'
18964       fi
18965       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18966       hardcode_libdir_separator_GCJ=:
18967       hardcode_direct_GCJ=yes
18968
18969       # hardcode_minus_L: Not really in the search PATH,
18970       # but as the default location of the library.
18971       hardcode_minus_L_GCJ=yes
18972       export_dynamic_flag_spec_GCJ='${wl}-E'
18973       ;;
18974
18975     hpux10* | hpux11*)
18976       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18977         case "$host_cpu" in
18978         hppa*64*|ia64*)
18979           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18980           ;;
18981         *)
18982           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18983           ;;
18984         esac
18985       else
18986         case "$host_cpu" in
18987         hppa*64*|ia64*)
18988           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18989           ;;
18990         *)
18991           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18992           ;;
18993         esac
18994       fi
18995       if test "$with_gnu_ld" = no; then
18996         case "$host_cpu" in
18997         hppa*64*)
18998           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18999           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19000           hardcode_libdir_separator_GCJ=:
19001           hardcode_direct_GCJ=no
19002           hardcode_shlibpath_var_GCJ=no
19003           ;;
19004         ia64*)
19005           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19006           hardcode_direct_GCJ=no
19007           hardcode_shlibpath_var_GCJ=no
19008
19009           # hardcode_minus_L: Not really in the search PATH,
19010           # but as the default location of the library.
19011           hardcode_minus_L_GCJ=yes
19012           ;;
19013         *)
19014           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19015           hardcode_libdir_separator_GCJ=:
19016           hardcode_direct_GCJ=yes
19017           export_dynamic_flag_spec_GCJ='${wl}-E'
19018
19019           # hardcode_minus_L: Not really in the search PATH,
19020           # but as the default location of the library.
19021           hardcode_minus_L_GCJ=yes
19022           ;;
19023         esac
19024       fi
19025       ;;
19026
19027     irix5* | irix6* | nonstopux*)
19028       if test "$GCC" = yes; then
19029         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'
19030       else
19031         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'
19032         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19033       fi
19034       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19035       hardcode_libdir_separator_GCJ=:
19036       link_all_deplibs_GCJ=yes
19037       ;;
19038
19039     netbsd*)
19040       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19041         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19042       else
19043         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19044       fi
19045       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19046       hardcode_direct_GCJ=yes
19047       hardcode_shlibpath_var_GCJ=no
19048       ;;
19049
19050     newsos6)
19051       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19052       hardcode_direct_GCJ=yes
19053       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19054       hardcode_libdir_separator_GCJ=:
19055       hardcode_shlibpath_var_GCJ=no
19056       ;;
19057
19058     openbsd*)
19059       hardcode_direct_GCJ=yes
19060       hardcode_shlibpath_var_GCJ=no
19061       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19062         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19063         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19064         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19065         export_dynamic_flag_spec_GCJ='${wl}-E'
19066       else
19067        case $host_os in
19068          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19069            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19070            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19071            ;;
19072          *)
19073            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19074            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19075            ;;
19076        esac
19077       fi
19078       ;;
19079
19080     os2*)
19081       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19082       hardcode_minus_L_GCJ=yes
19083       allow_undefined_flag_GCJ=unsupported
19084       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'
19085       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19086       ;;
19087
19088     osf3*)
19089       if test "$GCC" = yes; then
19090         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19091         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'
19092       else
19093         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19094         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'
19095       fi
19096       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19097       hardcode_libdir_separator_GCJ=:
19098       ;;
19099
19100     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19101       if test "$GCC" = yes; then
19102         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19103         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'
19104         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19105       else
19106         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19107         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'
19108         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~
19109         $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'
19110
19111         # Both c and cxx compiler support -rpath directly
19112         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19113       fi
19114       hardcode_libdir_separator_GCJ=:
19115       ;;
19116
19117     sco3.2v5*)
19118       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19119       hardcode_shlibpath_var_GCJ=no
19120       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19121       runpath_var=LD_RUN_PATH
19122       hardcode_runpath_var=yes
19123       ;;
19124
19125     solaris*)
19126       no_undefined_flag_GCJ=' -z text'
19127       if test "$GCC" = yes; then
19128         wlarc='${wl}'
19129         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19130         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19131           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19132       else
19133         wlarc=''
19134         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19135         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19136         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19137       fi
19138       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19139       hardcode_shlibpath_var_GCJ=no
19140       case $host_os in
19141       solaris2.[0-5] | solaris2.[0-5].*) ;;
19142       *)
19143         # The compiler driver will combine linker options so we
19144         # cannot just pass the convience library names through
19145         # without $wl, iff we do not link with $LD.
19146         # Luckily, gcc supports the same syntax we need for Sun Studio.
19147         # Supported since Solaris 2.6 (maybe 2.5.1?)
19148         case $wlarc in
19149         '')
19150           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19151         *)
19152           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' ;;
19153         esac ;;
19154       esac
19155       link_all_deplibs_GCJ=yes
19156       ;;
19157
19158     sunos4*)
19159       if test "x$host_vendor" = xsequent; then
19160         # Use $CC to link under sequent, because it throws in some extra .o
19161         # files that make .init and .fini sections work.
19162         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19163       else
19164         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19165       fi
19166       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19167       hardcode_direct_GCJ=yes
19168       hardcode_minus_L_GCJ=yes
19169       hardcode_shlibpath_var_GCJ=no
19170       ;;
19171
19172     sysv4)
19173       case $host_vendor in
19174         sni)
19175           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19176           hardcode_direct_GCJ=yes # is this really true???
19177         ;;
19178         siemens)
19179           ## LD is ld it makes a PLAMLIB
19180           ## CC just makes a GrossModule.
19181           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19182           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19183           hardcode_direct_GCJ=no
19184         ;;
19185         motorola)
19186           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19187           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19188         ;;
19189       esac
19190       runpath_var='LD_RUN_PATH'
19191       hardcode_shlibpath_var_GCJ=no
19192       ;;
19193
19194     sysv4.3*)
19195       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19196       hardcode_shlibpath_var_GCJ=no
19197       export_dynamic_flag_spec_GCJ='-Bexport'
19198       ;;
19199
19200     sysv4*MP*)
19201       if test -d /usr/nec; then
19202         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19203         hardcode_shlibpath_var_GCJ=no
19204         runpath_var=LD_RUN_PATH
19205         hardcode_runpath_var=yes
19206         ld_shlibs_GCJ=yes
19207       fi
19208       ;;
19209
19210     sysv4.2uw2*)
19211       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19212       hardcode_direct_GCJ=yes
19213       hardcode_minus_L_GCJ=no
19214       hardcode_shlibpath_var_GCJ=no
19215       hardcode_runpath_var=yes
19216       runpath_var=LD_RUN_PATH
19217       ;;
19218
19219    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19220       no_undefined_flag_GCJ='${wl}-z ${wl}text'
19221       if test "$GCC" = yes; then
19222         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19223       else
19224         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19225       fi
19226       runpath_var='LD_RUN_PATH'
19227       hardcode_shlibpath_var_GCJ=no
19228       ;;
19229
19230     sysv5*)
19231       no_undefined_flag_GCJ=' -z text'
19232       # $CC -shared without GNU ld will not create a library from C++
19233       # object files and a static libstdc++, better avoid it by now
19234       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19235       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19236                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19237       hardcode_libdir_flag_spec_GCJ=
19238       hardcode_shlibpath_var_GCJ=no
19239       runpath_var='LD_RUN_PATH'
19240       ;;
19241
19242     uts4*)
19243       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19244       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19245       hardcode_shlibpath_var_GCJ=no
19246       ;;
19247
19248     *)
19249       ld_shlibs_GCJ=no
19250       ;;
19251     esac
19252   fi
19253
19254 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19255 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19256 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19257
19258 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19259 if test "$GCC" = yes; then
19260   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19261 fi
19262
19263 #
19264 # Do we need to explicitly link libc?
19265 #
19266 case "x$archive_cmds_need_lc_GCJ" in
19267 x|xyes)
19268   # Assume -lc should be added
19269   archive_cmds_need_lc_GCJ=yes
19270
19271   if test "$enable_shared" = yes && test "$GCC" = yes; then
19272     case $archive_cmds_GCJ in
19273     *'~'*)
19274       # FIXME: we may have to deal with multi-command sequences.
19275       ;;
19276     '$CC '*)
19277       # Test whether the compiler implicitly links with -lc since on some
19278       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19279       # to ld, don't add -lc before -lgcc.
19280       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19281 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19282       $rm conftest*
19283       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19284
19285       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19286   (eval $ac_compile) 2>&5
19287   ac_status=$?
19288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289   (exit $ac_status); } 2>conftest.err; then
19290         soname=conftest
19291         lib=conftest
19292         libobjs=conftest.$ac_objext
19293         deplibs=
19294         wl=$lt_prog_compiler_wl_GCJ
19295         compiler_flags=-v
19296         linker_flags=-v
19297         verstring=
19298         output_objdir=.
19299         libname=conftest
19300         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19301         allow_undefined_flag_GCJ=
19302         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19303   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19304   ac_status=$?
19305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306   (exit $ac_status); }
19307         then
19308           archive_cmds_need_lc_GCJ=no
19309         else
19310           archive_cmds_need_lc_GCJ=yes
19311         fi
19312         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19313       else
19314         cat conftest.err 1>&5
19315       fi
19316       $rm conftest*
19317       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19318 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19319       ;;
19320     esac
19321   fi
19322   ;;
19323 esac
19324
19325 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19326 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19327 library_names_spec=
19328 libname_spec='lib$name'
19329 soname_spec=
19330 shrext_cmds=".so"
19331 postinstall_cmds=
19332 postuninstall_cmds=
19333 finish_cmds=
19334 finish_eval=
19335 shlibpath_var=
19336 shlibpath_overrides_runpath=unknown
19337 version_type=none
19338 dynamic_linker="$host_os ld.so"
19339 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19340 if test "$GCC" = yes; then
19341   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19342   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19343     # if the path contains ";" then we assume it to be the separator
19344     # otherwise default to the standard path separator (i.e. ":") - it is
19345     # assumed that no part of a normal pathname contains ";" but that should
19346     # okay in the real world where ";" in dirpaths is itself problematic.
19347     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19348   else
19349     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19350   fi
19351 else
19352   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19353 fi
19354 need_lib_prefix=unknown
19355 hardcode_into_libs=no
19356
19357 # when you set need_version to no, make sure it does not cause -set_version
19358 # flags to be left without arguments
19359 need_version=unknown
19360
19361 case $host_os in
19362 aix3*)
19363   version_type=linux
19364   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19365   shlibpath_var=LIBPATH
19366
19367   # AIX 3 has no versioning support, so we append a major version to the name.
19368   soname_spec='${libname}${release}${shared_ext}$major'
19369   ;;
19370
19371 aix4* | aix5*)
19372   version_type=linux
19373   need_lib_prefix=no
19374   need_version=no
19375   hardcode_into_libs=yes
19376   if test "$host_cpu" = ia64; then
19377     # AIX 5 supports IA64
19378     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19379     shlibpath_var=LD_LIBRARY_PATH
19380   else
19381     # With GCC up to 2.95.x, collect2 would create an import file
19382     # for dependence libraries.  The import file would start with
19383     # the line `#! .'.  This would cause the generated library to
19384     # depend on `.', always an invalid library.  This was fixed in
19385     # development snapshots of GCC prior to 3.0.
19386     case $host_os in
19387       aix4 | aix4.[01] | aix4.[01].*)
19388       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19389            echo ' yes '
19390            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19391         :
19392       else
19393         can_build_shared=no
19394       fi
19395       ;;
19396     esac
19397     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19398     # soname into executable. Probably we can add versioning support to
19399     # collect2, so additional links can be useful in future.
19400     if test "$aix_use_runtimelinking" = yes; then
19401       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19402       # instead of lib<name>.a to let people know that these are not
19403       # typical AIX shared libraries.
19404       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19405     else
19406       # We preserve .a as extension for shared libraries through AIX4.2
19407       # and later when we are not doing run time linking.
19408       library_names_spec='${libname}${release}.a $libname.a'
19409       soname_spec='${libname}${release}${shared_ext}$major'
19410     fi
19411     shlibpath_var=LIBPATH
19412   fi
19413   ;;
19414
19415 amigaos*)
19416   library_names_spec='$libname.ixlibrary $libname.a'
19417   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19418   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'
19419   ;;
19420
19421 beos*)
19422   library_names_spec='${libname}${shared_ext}'
19423   dynamic_linker="$host_os ld.so"
19424   shlibpath_var=LIBRARY_PATH
19425   ;;
19426
19427 bsdi[45]*)
19428   version_type=linux
19429   need_version=no
19430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19431   soname_spec='${libname}${release}${shared_ext}$major'
19432   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19433   shlibpath_var=LD_LIBRARY_PATH
19434   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19435   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19436   # the default ld.so.conf also contains /usr/contrib/lib and
19437   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19438   # libtool to hard-code these into programs
19439   ;;
19440
19441 cygwin* | mingw* | pw32*)
19442   version_type=windows
19443   shrext_cmds=".dll"
19444   need_version=no
19445   need_lib_prefix=no
19446
19447   case $GCC,$host_os in
19448   yes,cygwin* | yes,mingw* | yes,pw32*)
19449     library_names_spec='$libname.dll.a'
19450     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19451     postinstall_cmds='base_file=`basename \${file}`~
19452       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19453       dldir=$destdir/`dirname \$dlpath`~
19454       test -d \$dldir || mkdir -p \$dldir~
19455       $install_prog $dir/$dlname \$dldir/$dlname'
19456     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19457       dlpath=$dir/\$dldll~
19458        $rm \$dlpath'
19459     shlibpath_overrides_runpath=yes
19460
19461     case $host_os in
19462     cygwin*)
19463       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19464       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19465       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19466       ;;
19467     mingw*)
19468       # MinGW DLLs use traditional 'lib' prefix
19469       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19470       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19471       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19472         # It is most probably a Windows format PATH printed by
19473         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19474         # path with ; separators, and with drive letters. We can handle the
19475         # drive letters (cygwin fileutils understands them), so leave them,
19476         # especially as we might pass files found there to a mingw objdump,
19477         # which wouldn't understand a cygwinified path. Ahh.
19478         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19479       else
19480         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19481       fi
19482       ;;
19483     pw32*)
19484       # pw32 DLLs use 'pw' prefix rather than 'lib'
19485       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19486       ;;
19487     esac
19488     ;;
19489
19490   *)
19491     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19492     ;;
19493   esac
19494   dynamic_linker='Win32 ld.exe'
19495   # FIXME: first we should search . and the directory the executable is in
19496   shlibpath_var=PATH
19497   ;;
19498
19499 darwin* | rhapsody*)
19500   dynamic_linker="$host_os dyld"
19501   version_type=darwin
19502   need_lib_prefix=no
19503   need_version=no
19504   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19505   soname_spec='${libname}${release}${major}$shared_ext'
19506   shlibpath_overrides_runpath=yes
19507   shlibpath_var=DYLD_LIBRARY_PATH
19508   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19509   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19510   if test "$GCC" = yes; then
19511     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"`
19512   else
19513     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19514   fi
19515   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19516   ;;
19517
19518 dgux*)
19519   version_type=linux
19520   need_lib_prefix=no
19521   need_version=no
19522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19523   soname_spec='${libname}${release}${shared_ext}$major'
19524   shlibpath_var=LD_LIBRARY_PATH
19525   ;;
19526
19527 freebsd1*)
19528   dynamic_linker=no
19529   ;;
19530
19531 kfreebsd*-gnu)
19532   version_type=linux
19533   need_lib_prefix=no
19534   need_version=no
19535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19536   soname_spec='${libname}${release}${shared_ext}$major'
19537   shlibpath_var=LD_LIBRARY_PATH
19538   shlibpath_overrides_runpath=no
19539   hardcode_into_libs=yes
19540   dynamic_linker='GNU ld.so'
19541   ;;
19542
19543 freebsd* | dragonfly*)
19544   # DragonFly does not have aout.  When/if they implement a new
19545   # versioning mechanism, adjust this.
19546   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19547   version_type=freebsd-$objformat
19548   case $version_type in
19549     freebsd-elf*)
19550       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19551       need_version=no
19552       need_lib_prefix=no
19553       ;;
19554     freebsd-*)
19555       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19556       need_version=yes
19557       ;;
19558   esac
19559   shlibpath_var=LD_LIBRARY_PATH
19560   case $host_os in
19561   freebsd2*)
19562     shlibpath_overrides_runpath=yes
19563     ;;
19564   freebsd3.[01]* | freebsdelf3.[01]*)
19565     shlibpath_overrides_runpath=yes
19566     hardcode_into_libs=yes
19567     ;;
19568   *) # from 3.2 on
19569     shlibpath_overrides_runpath=no
19570     hardcode_into_libs=yes
19571     ;;
19572   esac
19573   ;;
19574
19575 gnu*)
19576   version_type=linux
19577   need_lib_prefix=no
19578   need_version=no
19579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19580   soname_spec='${libname}${release}${shared_ext}$major'
19581   shlibpath_var=LD_LIBRARY_PATH
19582   hardcode_into_libs=yes
19583   ;;
19584
19585 hpux9* | hpux10* | hpux11*)
19586   # Give a soname corresponding to the major version so that dld.sl refuses to
19587   # link against other versions.
19588   version_type=sunos
19589   need_lib_prefix=no
19590   need_version=no
19591   case "$host_cpu" in
19592   ia64*)
19593     shrext_cmds='.so'
19594     hardcode_into_libs=yes
19595     dynamic_linker="$host_os dld.so"
19596     shlibpath_var=LD_LIBRARY_PATH
19597     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19598     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19599     soname_spec='${libname}${release}${shared_ext}$major'
19600     if test "X$HPUX_IA64_MODE" = X32; then
19601       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19602     else
19603       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19604     fi
19605     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19606     ;;
19607    hppa*64*)
19608      shrext_cmds='.sl'
19609      hardcode_into_libs=yes
19610      dynamic_linker="$host_os dld.sl"
19611      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19612      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19613      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19614      soname_spec='${libname}${release}${shared_ext}$major'
19615      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19616      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19617      ;;
19618    *)
19619     shrext_cmds='.sl'
19620     dynamic_linker="$host_os dld.sl"
19621     shlibpath_var=SHLIB_PATH
19622     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19623     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19624     soname_spec='${libname}${release}${shared_ext}$major'
19625     ;;
19626   esac
19627   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19628   postinstall_cmds='chmod 555 $lib'
19629   ;;
19630
19631 irix5* | irix6* | nonstopux*)
19632   case $host_os in
19633     nonstopux*) version_type=nonstopux ;;
19634     *)
19635         if test "$lt_cv_prog_gnu_ld" = yes; then
19636                 version_type=linux
19637         else
19638                 version_type=irix
19639         fi ;;
19640   esac
19641   need_lib_prefix=no
19642   need_version=no
19643   soname_spec='${libname}${release}${shared_ext}$major'
19644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19645   case $host_os in
19646   irix5* | nonstopux*)
19647     libsuff= shlibsuff=
19648     ;;
19649   *)
19650     case $LD in # libtool.m4 will add one of these switches to LD
19651     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19652       libsuff= shlibsuff= libmagic=32-bit;;
19653     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19654       libsuff=32 shlibsuff=N32 libmagic=N32;;
19655     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19656       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19657     *) libsuff= shlibsuff= libmagic=never-match;;
19658     esac
19659     ;;
19660   esac
19661   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19662   shlibpath_overrides_runpath=no
19663   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19664   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19665   hardcode_into_libs=yes
19666   ;;
19667
19668 # No shared lib support for Linux oldld, aout, or coff.
19669 linux*oldld* | linux*aout* | linux*coff*)
19670   dynamic_linker=no
19671   ;;
19672
19673 # This must be Linux ELF.
19674 linux*)
19675   version_type=linux
19676   need_lib_prefix=no
19677   need_version=no
19678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19679   soname_spec='${libname}${release}${shared_ext}$major'
19680   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19681   shlibpath_var=LD_LIBRARY_PATH
19682   shlibpath_overrides_runpath=no
19683   # This implies no fast_install, which is unacceptable.
19684   # Some rework will be needed to allow for fast_install
19685   # before this can be enabled.
19686   hardcode_into_libs=yes
19687
19688   # Append ld.so.conf contents to the search path
19689   if test -f /etc/ld.so.conf; then
19690     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' ' '`
19691     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19692   fi
19693
19694   # We used to test for /lib/ld.so.1 and disable shared libraries on
19695   # powerpc, because MkLinux only supported shared libraries with the
19696   # GNU dynamic linker.  Since this was broken with cross compilers,
19697   # most powerpc-linux boxes support dynamic linking these days and
19698   # people can always --disable-shared, the test was removed, and we
19699   # assume the GNU/Linux dynamic linker is in use.
19700   dynamic_linker='GNU/Linux ld.so'
19701   ;;
19702
19703 knetbsd*-gnu)
19704   version_type=linux
19705   need_lib_prefix=no
19706   need_version=no
19707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19708   soname_spec='${libname}${release}${shared_ext}$major'
19709   shlibpath_var=LD_LIBRARY_PATH
19710   shlibpath_overrides_runpath=no
19711   hardcode_into_libs=yes
19712   dynamic_linker='GNU ld.so'
19713   ;;
19714
19715 netbsd*)
19716   version_type=sunos
19717   need_lib_prefix=no
19718   need_version=no
19719   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19720     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19721     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19722     dynamic_linker='NetBSD (a.out) ld.so'
19723   else
19724     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19725     soname_spec='${libname}${release}${shared_ext}$major'
19726     dynamic_linker='NetBSD ld.elf_so'
19727   fi
19728   shlibpath_var=LD_LIBRARY_PATH
19729   shlibpath_overrides_runpath=yes
19730   hardcode_into_libs=yes
19731   ;;
19732
19733 newsos6)
19734   version_type=linux
19735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19736   shlibpath_var=LD_LIBRARY_PATH
19737   shlibpath_overrides_runpath=yes
19738   ;;
19739
19740 nto-qnx*)
19741   version_type=linux
19742   need_lib_prefix=no
19743   need_version=no
19744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19745   soname_spec='${libname}${release}${shared_ext}$major'
19746   shlibpath_var=LD_LIBRARY_PATH
19747   shlibpath_overrides_runpath=yes
19748   ;;
19749
19750 openbsd*)
19751   version_type=sunos
19752   need_lib_prefix=no
19753   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19754   case $host_os in
19755     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19756     *)                         need_version=no  ;;
19757   esac
19758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19759   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19760   shlibpath_var=LD_LIBRARY_PATH
19761   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19762     case $host_os in
19763       openbsd2.[89] | openbsd2.[89].*)
19764         shlibpath_overrides_runpath=no
19765         ;;
19766       *)
19767         shlibpath_overrides_runpath=yes
19768         ;;
19769       esac
19770   else
19771     shlibpath_overrides_runpath=yes
19772   fi
19773   ;;
19774
19775 os2*)
19776   libname_spec='$name'
19777   shrext_cmds=".dll"
19778   need_lib_prefix=no
19779   library_names_spec='$libname${shared_ext} $libname.a'
19780   dynamic_linker='OS/2 ld.exe'
19781   shlibpath_var=LIBPATH
19782   ;;
19783
19784 osf3* | osf4* | osf5*)
19785   version_type=osf
19786   need_lib_prefix=no
19787   need_version=no
19788   soname_spec='${libname}${release}${shared_ext}$major'
19789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19790   shlibpath_var=LD_LIBRARY_PATH
19791   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19792   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19793   ;;
19794
19795 sco3.2v5*)
19796   version_type=osf
19797   soname_spec='${libname}${release}${shared_ext}$major'
19798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19799   shlibpath_var=LD_LIBRARY_PATH
19800   ;;
19801
19802 solaris*)
19803   version_type=linux
19804   need_lib_prefix=no
19805   need_version=no
19806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19807   soname_spec='${libname}${release}${shared_ext}$major'
19808   shlibpath_var=LD_LIBRARY_PATH
19809   shlibpath_overrides_runpath=yes
19810   hardcode_into_libs=yes
19811   # ldd complains unless libraries are executable
19812   postinstall_cmds='chmod +x $lib'
19813   ;;
19814
19815 sunos4*)
19816   version_type=sunos
19817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19818   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19819   shlibpath_var=LD_LIBRARY_PATH
19820   shlibpath_overrides_runpath=yes
19821   if test "$with_gnu_ld" = yes; then
19822     need_lib_prefix=no
19823   fi
19824   need_version=yes
19825   ;;
19826
19827 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19828   version_type=linux
19829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19830   soname_spec='${libname}${release}${shared_ext}$major'
19831   shlibpath_var=LD_LIBRARY_PATH
19832   case $host_vendor in
19833     sni)
19834       shlibpath_overrides_runpath=no
19835       need_lib_prefix=no
19836       export_dynamic_flag_spec='${wl}-Blargedynsym'
19837       runpath_var=LD_RUN_PATH
19838       ;;
19839     siemens)
19840       need_lib_prefix=no
19841       ;;
19842     motorola)
19843       need_lib_prefix=no
19844       need_version=no
19845       shlibpath_overrides_runpath=no
19846       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19847       ;;
19848   esac
19849   ;;
19850
19851 sysv4*MP*)
19852   if test -d /usr/nec ;then
19853     version_type=linux
19854     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19855     soname_spec='$libname${shared_ext}.$major'
19856     shlibpath_var=LD_LIBRARY_PATH
19857   fi
19858   ;;
19859
19860 uts4*)
19861   version_type=linux
19862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19863   soname_spec='${libname}${release}${shared_ext}$major'
19864   shlibpath_var=LD_LIBRARY_PATH
19865   ;;
19866
19867 *)
19868   dynamic_linker=no
19869   ;;
19870 esac
19871 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19872 echo "${ECHO_T}$dynamic_linker" >&6
19873 test "$dynamic_linker" = no && can_build_shared=no
19874
19875 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19876 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19877 hardcode_action_GCJ=
19878 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19879    test -n "$runpath_var_GCJ" || \
19880    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19881
19882   # We can hardcode non-existant directories.
19883   if test "$hardcode_direct_GCJ" != no &&
19884      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19885      # have to relink, otherwise we might link with an installed library
19886      # when we should be linking with a yet-to-be-installed one
19887      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19888      test "$hardcode_minus_L_GCJ" != no; then
19889     # Linking always hardcodes the temporary library directory.
19890     hardcode_action_GCJ=relink
19891   else
19892     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19893     hardcode_action_GCJ=immediate
19894   fi
19895 else
19896   # We cannot hardcode anything, or else we can only hardcode existing
19897   # directories.
19898   hardcode_action_GCJ=unsupported
19899 fi
19900 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19901 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19902
19903 if test "$hardcode_action_GCJ" = relink; then
19904   # Fast installation is not supported
19905   enable_fast_install=no
19906 elif test "$shlibpath_overrides_runpath" = yes ||
19907      test "$enable_shared" = no; then
19908   # Fast installation is not necessary
19909   enable_fast_install=needless
19910 fi
19911
19912 striplib=
19913 old_striplib=
19914 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19915 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19916 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19917   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19918   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19919   echo "$as_me:$LINENO: result: yes" >&5
19920 echo "${ECHO_T}yes" >&6
19921 else
19922 # FIXME - insert some real tests, host_os isn't really good enough
19923   case $host_os in
19924    darwin*)
19925        if test -n "$STRIP" ; then
19926          striplib="$STRIP -x"
19927          echo "$as_me:$LINENO: result: yes" >&5
19928 echo "${ECHO_T}yes" >&6
19929        else
19930   echo "$as_me:$LINENO: result: no" >&5
19931 echo "${ECHO_T}no" >&6
19932 fi
19933        ;;
19934    *)
19935   echo "$as_me:$LINENO: result: no" >&5
19936 echo "${ECHO_T}no" >&6
19937     ;;
19938   esac
19939 fi
19940
19941 if test "x$enable_dlopen" != xyes; then
19942   enable_dlopen=unknown
19943   enable_dlopen_self=unknown
19944   enable_dlopen_self_static=unknown
19945 else
19946   lt_cv_dlopen=no
19947   lt_cv_dlopen_libs=
19948
19949   case $host_os in
19950   beos*)
19951     lt_cv_dlopen="load_add_on"
19952     lt_cv_dlopen_libs=
19953     lt_cv_dlopen_self=yes
19954     ;;
19955
19956   mingw* | pw32*)
19957     lt_cv_dlopen="LoadLibrary"
19958     lt_cv_dlopen_libs=
19959    ;;
19960
19961   cygwin*)
19962     lt_cv_dlopen="dlopen"
19963     lt_cv_dlopen_libs=
19964    ;;
19965
19966   darwin*)
19967   # if libdl is installed we need to link against it
19968     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19969 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19970 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19971   echo $ECHO_N "(cached) $ECHO_C" >&6
19972 else
19973   ac_check_lib_save_LIBS=$LIBS
19974 LIBS="-ldl  $LIBS"
19975 cat >conftest.$ac_ext <<_ACEOF
19976 /* confdefs.h.  */
19977 _ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h.  */
19981
19982 /* Override any gcc2 internal prototype to avoid an error.  */
19983 #ifdef __cplusplus
19984 extern "C"
19985 #endif
19986 /* We use char because int might match the return type of a gcc2
19987    builtin and then its argument prototype would still apply.  */
19988 char dlopen ();
19989 int
19990 main ()
19991 {
19992 dlopen ();
19993   ;
19994   return 0;
19995 }
19996 _ACEOF
19997 rm -f conftest.$ac_objext conftest$ac_exeext
19998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19999   (eval $ac_link) 2>conftest.er1
20000   ac_status=$?
20001   grep -v '^ *+' conftest.er1 >conftest.err
20002   rm -f conftest.er1
20003   cat conftest.err >&5
20004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005   (exit $ac_status); } &&
20006          { ac_try='test -z "$ac_c_werror_flag"
20007                          || test ! -s conftest.err'
20008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009   (eval $ac_try) 2>&5
20010   ac_status=$?
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); }; } &&
20013          { ac_try='test -s conftest$ac_exeext'
20014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015   (eval $ac_try) 2>&5
20016   ac_status=$?
20017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018   (exit $ac_status); }; }; then
20019   ac_cv_lib_dl_dlopen=yes
20020 else
20021   echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20023
20024 ac_cv_lib_dl_dlopen=no
20025 fi
20026 rm -f conftest.err conftest.$ac_objext \
20027       conftest$ac_exeext conftest.$ac_ext
20028 LIBS=$ac_check_lib_save_LIBS
20029 fi
20030 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20031 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20032 if test $ac_cv_lib_dl_dlopen = yes; then
20033   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20034 else
20035
20036     lt_cv_dlopen="dyld"
20037     lt_cv_dlopen_libs=
20038     lt_cv_dlopen_self=yes
20039
20040 fi
20041
20042    ;;
20043
20044   *)
20045     echo "$as_me:$LINENO: checking for shl_load" >&5
20046 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20047 if test "${ac_cv_func_shl_load+set}" = set; then
20048   echo $ECHO_N "(cached) $ECHO_C" >&6
20049 else
20050   cat >conftest.$ac_ext <<_ACEOF
20051 /* confdefs.h.  */
20052 _ACEOF
20053 cat confdefs.h >>conftest.$ac_ext
20054 cat >>conftest.$ac_ext <<_ACEOF
20055 /* end confdefs.h.  */
20056 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20058 #define shl_load innocuous_shl_load
20059
20060 /* System header to define __stub macros and hopefully few prototypes,
20061     which can conflict with char shl_load (); below.
20062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20063     <limits.h> exists even on freestanding compilers.  */
20064
20065 #ifdef __STDC__
20066 # include <limits.h>
20067 #else
20068 # include <assert.h>
20069 #endif
20070
20071 #undef shl_load
20072
20073 /* Override any gcc2 internal prototype to avoid an error.  */
20074 #ifdef __cplusplus
20075 extern "C"
20076 {
20077 #endif
20078 /* We use char because int might match the return type of a gcc2
20079    builtin and then its argument prototype would still apply.  */
20080 char shl_load ();
20081 /* The GNU C library defines this for functions which it implements
20082     to always fail with ENOSYS.  Some functions are actually named
20083     something starting with __ and the normal name is an alias.  */
20084 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20085 choke me
20086 #else
20087 char (*f) () = shl_load;
20088 #endif
20089 #ifdef __cplusplus
20090 }
20091 #endif
20092
20093 int
20094 main ()
20095 {
20096 return f != shl_load;
20097   ;
20098   return 0;
20099 }
20100 _ACEOF
20101 rm -f conftest.$ac_objext conftest$ac_exeext
20102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20103   (eval $ac_link) 2>conftest.er1
20104   ac_status=$?
20105   grep -v '^ *+' conftest.er1 >conftest.err
20106   rm -f conftest.er1
20107   cat conftest.err >&5
20108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109   (exit $ac_status); } &&
20110          { ac_try='test -z "$ac_c_werror_flag"
20111                          || test ! -s conftest.err'
20112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113   (eval $ac_try) 2>&5
20114   ac_status=$?
20115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116   (exit $ac_status); }; } &&
20117          { ac_try='test -s conftest$ac_exeext'
20118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20119   (eval $ac_try) 2>&5
20120   ac_status=$?
20121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122   (exit $ac_status); }; }; then
20123   ac_cv_func_shl_load=yes
20124 else
20125   echo "$as_me: failed program was:" >&5
20126 sed 's/^/| /' conftest.$ac_ext >&5
20127
20128 ac_cv_func_shl_load=no
20129 fi
20130 rm -f conftest.err conftest.$ac_objext \
20131       conftest$ac_exeext conftest.$ac_ext
20132 fi
20133 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20134 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20135 if test $ac_cv_func_shl_load = yes; then
20136   lt_cv_dlopen="shl_load"
20137 else
20138   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20139 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20140 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20141   echo $ECHO_N "(cached) $ECHO_C" >&6
20142 else
20143   ac_check_lib_save_LIBS=$LIBS
20144 LIBS="-ldld  $LIBS"
20145 cat >conftest.$ac_ext <<_ACEOF
20146 /* confdefs.h.  */
20147 _ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h.  */
20151
20152 /* Override any gcc2 internal prototype to avoid an error.  */
20153 #ifdef __cplusplus
20154 extern "C"
20155 #endif
20156 /* We use char because int might match the return type of a gcc2
20157    builtin and then its argument prototype would still apply.  */
20158 char shl_load ();
20159 int
20160 main ()
20161 {
20162 shl_load ();
20163   ;
20164   return 0;
20165 }
20166 _ACEOF
20167 rm -f conftest.$ac_objext conftest$ac_exeext
20168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20169   (eval $ac_link) 2>conftest.er1
20170   ac_status=$?
20171   grep -v '^ *+' conftest.er1 >conftest.err
20172   rm -f conftest.er1
20173   cat conftest.err >&5
20174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175   (exit $ac_status); } &&
20176          { ac_try='test -z "$ac_c_werror_flag"
20177                          || test ! -s conftest.err'
20178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179   (eval $ac_try) 2>&5
20180   ac_status=$?
20181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182   (exit $ac_status); }; } &&
20183          { ac_try='test -s conftest$ac_exeext'
20184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185   (eval $ac_try) 2>&5
20186   ac_status=$?
20187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188   (exit $ac_status); }; }; then
20189   ac_cv_lib_dld_shl_load=yes
20190 else
20191   echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20193
20194 ac_cv_lib_dld_shl_load=no
20195 fi
20196 rm -f conftest.err conftest.$ac_objext \
20197       conftest$ac_exeext conftest.$ac_ext
20198 LIBS=$ac_check_lib_save_LIBS
20199 fi
20200 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20201 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20202 if test $ac_cv_lib_dld_shl_load = yes; then
20203   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20204 else
20205   echo "$as_me:$LINENO: checking for dlopen" >&5
20206 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20207 if test "${ac_cv_func_dlopen+set}" = set; then
20208   echo $ECHO_N "(cached) $ECHO_C" >&6
20209 else
20210   cat >conftest.$ac_ext <<_ACEOF
20211 /* confdefs.h.  */
20212 _ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h.  */
20216 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20218 #define dlopen innocuous_dlopen
20219
20220 /* System header to define __stub macros and hopefully few prototypes,
20221     which can conflict with char dlopen (); below.
20222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20223     <limits.h> exists even on freestanding compilers.  */
20224
20225 #ifdef __STDC__
20226 # include <limits.h>
20227 #else
20228 # include <assert.h>
20229 #endif
20230
20231 #undef dlopen
20232
20233 /* Override any gcc2 internal prototype to avoid an error.  */
20234 #ifdef __cplusplus
20235 extern "C"
20236 {
20237 #endif
20238 /* We use char because int might match the return type of a gcc2
20239    builtin and then its argument prototype would still apply.  */
20240 char dlopen ();
20241 /* The GNU C library defines this for functions which it implements
20242     to always fail with ENOSYS.  Some functions are actually named
20243     something starting with __ and the normal name is an alias.  */
20244 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20245 choke me
20246 #else
20247 char (*f) () = dlopen;
20248 #endif
20249 #ifdef __cplusplus
20250 }
20251 #endif
20252
20253 int
20254 main ()
20255 {
20256 return f != dlopen;
20257   ;
20258   return 0;
20259 }
20260 _ACEOF
20261 rm -f conftest.$ac_objext conftest$ac_exeext
20262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20263   (eval $ac_link) 2>conftest.er1
20264   ac_status=$?
20265   grep -v '^ *+' conftest.er1 >conftest.err
20266   rm -f conftest.er1
20267   cat conftest.err >&5
20268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269   (exit $ac_status); } &&
20270          { ac_try='test -z "$ac_c_werror_flag"
20271                          || test ! -s conftest.err'
20272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273   (eval $ac_try) 2>&5
20274   ac_status=$?
20275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276   (exit $ac_status); }; } &&
20277          { ac_try='test -s conftest$ac_exeext'
20278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20279   (eval $ac_try) 2>&5
20280   ac_status=$?
20281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282   (exit $ac_status); }; }; then
20283   ac_cv_func_dlopen=yes
20284 else
20285   echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20287
20288 ac_cv_func_dlopen=no
20289 fi
20290 rm -f conftest.err conftest.$ac_objext \
20291       conftest$ac_exeext conftest.$ac_ext
20292 fi
20293 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20294 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20295 if test $ac_cv_func_dlopen = yes; then
20296   lt_cv_dlopen="dlopen"
20297 else
20298   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20299 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20300 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20301   echo $ECHO_N "(cached) $ECHO_C" >&6
20302 else
20303   ac_check_lib_save_LIBS=$LIBS
20304 LIBS="-ldl  $LIBS"
20305 cat >conftest.$ac_ext <<_ACEOF
20306 /* confdefs.h.  */
20307 _ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h.  */
20311
20312 /* Override any gcc2 internal prototype to avoid an error.  */
20313 #ifdef __cplusplus
20314 extern "C"
20315 #endif
20316 /* We use char because int might match the return type of a gcc2
20317    builtin and then its argument prototype would still apply.  */
20318 char dlopen ();
20319 int
20320 main ()
20321 {
20322 dlopen ();
20323   ;
20324   return 0;
20325 }
20326 _ACEOF
20327 rm -f conftest.$ac_objext conftest$ac_exeext
20328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20329   (eval $ac_link) 2>conftest.er1
20330   ac_status=$?
20331   grep -v '^ *+' conftest.er1 >conftest.err
20332   rm -f conftest.er1
20333   cat conftest.err >&5
20334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335   (exit $ac_status); } &&
20336          { ac_try='test -z "$ac_c_werror_flag"
20337                          || test ! -s conftest.err'
20338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339   (eval $ac_try) 2>&5
20340   ac_status=$?
20341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342   (exit $ac_status); }; } &&
20343          { ac_try='test -s conftest$ac_exeext'
20344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345   (eval $ac_try) 2>&5
20346   ac_status=$?
20347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348   (exit $ac_status); }; }; then
20349   ac_cv_lib_dl_dlopen=yes
20350 else
20351   echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20353
20354 ac_cv_lib_dl_dlopen=no
20355 fi
20356 rm -f conftest.err conftest.$ac_objext \
20357       conftest$ac_exeext conftest.$ac_ext
20358 LIBS=$ac_check_lib_save_LIBS
20359 fi
20360 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20361 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20362 if test $ac_cv_lib_dl_dlopen = yes; then
20363   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20364 else
20365   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20366 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20367 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20368   echo $ECHO_N "(cached) $ECHO_C" >&6
20369 else
20370   ac_check_lib_save_LIBS=$LIBS
20371 LIBS="-lsvld  $LIBS"
20372 cat >conftest.$ac_ext <<_ACEOF
20373 /* confdefs.h.  */
20374 _ACEOF
20375 cat confdefs.h >>conftest.$ac_ext
20376 cat >>conftest.$ac_ext <<_ACEOF
20377 /* end confdefs.h.  */
20378
20379 /* Override any gcc2 internal prototype to avoid an error.  */
20380 #ifdef __cplusplus
20381 extern "C"
20382 #endif
20383 /* We use char because int might match the return type of a gcc2
20384    builtin and then its argument prototype would still apply.  */
20385 char dlopen ();
20386 int
20387 main ()
20388 {
20389 dlopen ();
20390   ;
20391   return 0;
20392 }
20393 _ACEOF
20394 rm -f conftest.$ac_objext conftest$ac_exeext
20395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20396   (eval $ac_link) 2>conftest.er1
20397   ac_status=$?
20398   grep -v '^ *+' conftest.er1 >conftest.err
20399   rm -f conftest.er1
20400   cat conftest.err >&5
20401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402   (exit $ac_status); } &&
20403          { ac_try='test -z "$ac_c_werror_flag"
20404                          || test ! -s conftest.err'
20405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406   (eval $ac_try) 2>&5
20407   ac_status=$?
20408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409   (exit $ac_status); }; } &&
20410          { ac_try='test -s conftest$ac_exeext'
20411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412   (eval $ac_try) 2>&5
20413   ac_status=$?
20414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415   (exit $ac_status); }; }; then
20416   ac_cv_lib_svld_dlopen=yes
20417 else
20418   echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20420
20421 ac_cv_lib_svld_dlopen=no
20422 fi
20423 rm -f conftest.err conftest.$ac_objext \
20424       conftest$ac_exeext conftest.$ac_ext
20425 LIBS=$ac_check_lib_save_LIBS
20426 fi
20427 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20428 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20429 if test $ac_cv_lib_svld_dlopen = yes; then
20430   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20431 else
20432   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20433 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20434 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20435   echo $ECHO_N "(cached) $ECHO_C" >&6
20436 else
20437   ac_check_lib_save_LIBS=$LIBS
20438 LIBS="-ldld  $LIBS"
20439 cat >conftest.$ac_ext <<_ACEOF
20440 /* confdefs.h.  */
20441 _ACEOF
20442 cat confdefs.h >>conftest.$ac_ext
20443 cat >>conftest.$ac_ext <<_ACEOF
20444 /* end confdefs.h.  */
20445
20446 /* Override any gcc2 internal prototype to avoid an error.  */
20447 #ifdef __cplusplus
20448 extern "C"
20449 #endif
20450 /* We use char because int might match the return type of a gcc2
20451    builtin and then its argument prototype would still apply.  */
20452 char dld_link ();
20453 int
20454 main ()
20455 {
20456 dld_link ();
20457   ;
20458   return 0;
20459 }
20460 _ACEOF
20461 rm -f conftest.$ac_objext conftest$ac_exeext
20462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20463   (eval $ac_link) 2>conftest.er1
20464   ac_status=$?
20465   grep -v '^ *+' conftest.er1 >conftest.err
20466   rm -f conftest.er1
20467   cat conftest.err >&5
20468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469   (exit $ac_status); } &&
20470          { ac_try='test -z "$ac_c_werror_flag"
20471                          || test ! -s conftest.err'
20472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473   (eval $ac_try) 2>&5
20474   ac_status=$?
20475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476   (exit $ac_status); }; } &&
20477          { ac_try='test -s conftest$ac_exeext'
20478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479   (eval $ac_try) 2>&5
20480   ac_status=$?
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); }; }; then
20483   ac_cv_lib_dld_dld_link=yes
20484 else
20485   echo "$as_me: failed program was:" >&5
20486 sed 's/^/| /' conftest.$ac_ext >&5
20487
20488 ac_cv_lib_dld_dld_link=no
20489 fi
20490 rm -f conftest.err conftest.$ac_objext \
20491       conftest$ac_exeext conftest.$ac_ext
20492 LIBS=$ac_check_lib_save_LIBS
20493 fi
20494 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20495 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20496 if test $ac_cv_lib_dld_dld_link = yes; then
20497   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20498 fi
20499
20500
20501 fi
20502
20503
20504 fi
20505
20506
20507 fi
20508
20509
20510 fi
20511
20512
20513 fi
20514
20515     ;;
20516   esac
20517
20518   if test "x$lt_cv_dlopen" != xno; then
20519     enable_dlopen=yes
20520   else
20521     enable_dlopen=no
20522   fi
20523
20524   case $lt_cv_dlopen in
20525   dlopen)
20526     save_CPPFLAGS="$CPPFLAGS"
20527     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20528
20529     save_LDFLAGS="$LDFLAGS"
20530     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20531
20532     save_LIBS="$LIBS"
20533     LIBS="$lt_cv_dlopen_libs $LIBS"
20534
20535     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20536 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20537 if test "${lt_cv_dlopen_self+set}" = set; then
20538   echo $ECHO_N "(cached) $ECHO_C" >&6
20539 else
20540           if test "$cross_compiling" = yes; then :
20541   lt_cv_dlopen_self=cross
20542 else
20543   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20544   lt_status=$lt_dlunknown
20545   cat > conftest.$ac_ext <<EOF
20546 #line 20546 "configure"
20547 #include "confdefs.h"
20548
20549 #if HAVE_DLFCN_H
20550 #include <dlfcn.h>
20551 #endif
20552
20553 #include <stdio.h>
20554
20555 #ifdef RTLD_GLOBAL
20556 #  define LT_DLGLOBAL           RTLD_GLOBAL
20557 #else
20558 #  ifdef DL_GLOBAL
20559 #    define LT_DLGLOBAL         DL_GLOBAL
20560 #  else
20561 #    define LT_DLGLOBAL         0
20562 #  endif
20563 #endif
20564
20565 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20566    find out it does not work in some platform. */
20567 #ifndef LT_DLLAZY_OR_NOW
20568 #  ifdef RTLD_LAZY
20569 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20570 #  else
20571 #    ifdef DL_LAZY
20572 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20573 #    else
20574 #      ifdef RTLD_NOW
20575 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20576 #      else
20577 #        ifdef DL_NOW
20578 #          define LT_DLLAZY_OR_NOW      DL_NOW
20579 #        else
20580 #          define LT_DLLAZY_OR_NOW      0
20581 #        endif
20582 #      endif
20583 #    endif
20584 #  endif
20585 #endif
20586
20587 #ifdef __cplusplus
20588 extern "C" void exit (int);
20589 #endif
20590
20591 void fnord() { int i=42;}
20592 int main ()
20593 {
20594   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20595   int status = $lt_dlunknown;
20596
20597   if (self)
20598     {
20599       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20600       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20601       /* dlclose (self); */
20602     }
20603
20604     exit (status);
20605 }
20606 EOF
20607   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20608   (eval $ac_link) 2>&5
20609   ac_status=$?
20610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20612     (./conftest; exit; ) 2>/dev/null
20613     lt_status=$?
20614     case x$lt_status in
20615       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20616       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20617       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20618     esac
20619   else :
20620     # compilation failed
20621     lt_cv_dlopen_self=no
20622   fi
20623 fi
20624 rm -fr conftest*
20625
20626
20627 fi
20628 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20629 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20630
20631     if test "x$lt_cv_dlopen_self" = xyes; then
20632       LDFLAGS="$LDFLAGS $link_static_flag"
20633       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20634 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20635 if test "${lt_cv_dlopen_self_static+set}" = set; then
20636   echo $ECHO_N "(cached) $ECHO_C" >&6
20637 else
20638           if test "$cross_compiling" = yes; then :
20639   lt_cv_dlopen_self_static=cross
20640 else
20641   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20642   lt_status=$lt_dlunknown
20643   cat > conftest.$ac_ext <<EOF
20644 #line 20644 "configure"
20645 #include "confdefs.h"
20646
20647 #if HAVE_DLFCN_H
20648 #include <dlfcn.h>
20649 #endif
20650
20651 #include <stdio.h>
20652
20653 #ifdef RTLD_GLOBAL
20654 #  define LT_DLGLOBAL           RTLD_GLOBAL
20655 #else
20656 #  ifdef DL_GLOBAL
20657 #    define LT_DLGLOBAL         DL_GLOBAL
20658 #  else
20659 #    define LT_DLGLOBAL         0
20660 #  endif
20661 #endif
20662
20663 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20664    find out it does not work in some platform. */
20665 #ifndef LT_DLLAZY_OR_NOW
20666 #  ifdef RTLD_LAZY
20667 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20668 #  else
20669 #    ifdef DL_LAZY
20670 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20671 #    else
20672 #      ifdef RTLD_NOW
20673 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20674 #      else
20675 #        ifdef DL_NOW
20676 #          define LT_DLLAZY_OR_NOW      DL_NOW
20677 #        else
20678 #          define LT_DLLAZY_OR_NOW      0
20679 #        endif
20680 #      endif
20681 #    endif
20682 #  endif
20683 #endif
20684
20685 #ifdef __cplusplus
20686 extern "C" void exit (int);
20687 #endif
20688
20689 void fnord() { int i=42;}
20690 int main ()
20691 {
20692   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20693   int status = $lt_dlunknown;
20694
20695   if (self)
20696     {
20697       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20698       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20699       /* dlclose (self); */
20700     }
20701
20702     exit (status);
20703 }
20704 EOF
20705   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20706   (eval $ac_link) 2>&5
20707   ac_status=$?
20708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20710     (./conftest; exit; ) 2>/dev/null
20711     lt_status=$?
20712     case x$lt_status in
20713       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20714       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20715       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20716     esac
20717   else :
20718     # compilation failed
20719     lt_cv_dlopen_self_static=no
20720   fi
20721 fi
20722 rm -fr conftest*
20723
20724
20725 fi
20726 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20727 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20728     fi
20729
20730     CPPFLAGS="$save_CPPFLAGS"
20731     LDFLAGS="$save_LDFLAGS"
20732     LIBS="$save_LIBS"
20733     ;;
20734   esac
20735
20736   case $lt_cv_dlopen_self in
20737   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20738   *) enable_dlopen_self=unknown ;;
20739   esac
20740
20741   case $lt_cv_dlopen_self_static in
20742   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20743   *) enable_dlopen_self_static=unknown ;;
20744   esac
20745 fi
20746
20747
20748 # The else clause should only fire when bootstrapping the
20749 # libtool distribution, otherwise you forgot to ship ltmain.sh
20750 # with your package, and you will get complaints that there are
20751 # no rules to generate ltmain.sh.
20752 if test -f "$ltmain"; then
20753   # See if we are running on zsh, and set the options which allow our commands through
20754   # without removal of \ escapes.
20755   if test -n "${ZSH_VERSION+set}" ; then
20756     setopt NO_GLOB_SUBST
20757   fi
20758   # Now quote all the things that may contain metacharacters while being
20759   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20760   # variables and quote the copies for generation of the libtool script.
20761   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20762     SED SHELL STRIP \
20763     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20764     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20765     deplibs_check_method reload_flag reload_cmds need_locks \
20766     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20767     lt_cv_sys_global_symbol_to_c_name_address \
20768     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20769     old_postinstall_cmds old_postuninstall_cmds \
20770     compiler_GCJ \
20771     CC_GCJ \
20772     LD_GCJ \
20773     lt_prog_compiler_wl_GCJ \
20774     lt_prog_compiler_pic_GCJ \
20775     lt_prog_compiler_static_GCJ \
20776     lt_prog_compiler_no_builtin_flag_GCJ \
20777     export_dynamic_flag_spec_GCJ \
20778     thread_safe_flag_spec_GCJ \
20779     whole_archive_flag_spec_GCJ \
20780     enable_shared_with_static_runtimes_GCJ \
20781     old_archive_cmds_GCJ \
20782     old_archive_from_new_cmds_GCJ \
20783     predep_objects_GCJ \
20784     postdep_objects_GCJ \
20785     predeps_GCJ \
20786     postdeps_GCJ \
20787     compiler_lib_search_path_GCJ \
20788     archive_cmds_GCJ \
20789     archive_expsym_cmds_GCJ \
20790     postinstall_cmds_GCJ \
20791     postuninstall_cmds_GCJ \
20792     old_archive_from_expsyms_cmds_GCJ \
20793     allow_undefined_flag_GCJ \
20794     no_undefined_flag_GCJ \
20795     export_symbols_cmds_GCJ \
20796     hardcode_libdir_flag_spec_GCJ \
20797     hardcode_libdir_flag_spec_ld_GCJ \
20798     hardcode_libdir_separator_GCJ \
20799     hardcode_automatic_GCJ \
20800     module_cmds_GCJ \
20801     module_expsym_cmds_GCJ \
20802     lt_cv_prog_compiler_c_o_GCJ \
20803     exclude_expsyms_GCJ \
20804     include_expsyms_GCJ; do
20805
20806     case $var in
20807     old_archive_cmds_GCJ | \
20808     old_archive_from_new_cmds_GCJ | \
20809     archive_cmds_GCJ | \
20810     archive_expsym_cmds_GCJ | \
20811     module_cmds_GCJ | \
20812     module_expsym_cmds_GCJ | \
20813     old_archive_from_expsyms_cmds_GCJ | \
20814     export_symbols_cmds_GCJ | \
20815     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20816     postinstall_cmds | postuninstall_cmds | \
20817     old_postinstall_cmds | old_postuninstall_cmds | \
20818     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20819       # Double-quote double-evaled strings.
20820       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20821       ;;
20822     *)
20823       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20824       ;;
20825     esac
20826   done
20827
20828   case $lt_echo in
20829   *'\$0 --fallback-echo"')
20830     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20831     ;;
20832   esac
20833
20834 cfgfile="$ofile"
20835
20836   cat <<__EOF__ >> "$cfgfile"
20837 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20838
20839 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20840
20841 # Shell to use when invoking shell scripts.
20842 SHELL=$lt_SHELL
20843
20844 # Whether or not to build shared libraries.
20845 build_libtool_libs=$enable_shared
20846
20847 # Whether or not to build static libraries.
20848 build_old_libs=$enable_static
20849
20850 # Whether or not to add -lc for building shared libraries.
20851 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20852
20853 # Whether or not to disallow shared libs when runtime libs are static
20854 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20855
20856 # Whether or not to optimize for fast installation.
20857 fast_install=$enable_fast_install
20858
20859 # The host system.
20860 host_alias=$host_alias
20861 host=$host
20862 host_os=$host_os
20863
20864 # The build system.
20865 build_alias=$build_alias
20866 build=$build
20867 build_os=$build_os
20868
20869 # An echo program that does not interpret backslashes.
20870 echo=$lt_echo
20871
20872 # The archiver.
20873 AR=$lt_AR
20874 AR_FLAGS=$lt_AR_FLAGS
20875
20876 # A C compiler.
20877 LTCC=$lt_LTCC
20878
20879 # A language-specific compiler.
20880 CC=$lt_compiler_GCJ
20881
20882 # Is the compiler the GNU C compiler?
20883 with_gcc=$GCC_GCJ
20884
20885 # An ERE matcher.
20886 EGREP=$lt_EGREP
20887
20888 # The linker used to build libraries.
20889 LD=$lt_LD_GCJ
20890
20891 # Whether we need hard or soft links.
20892 LN_S=$lt_LN_S
20893
20894 # A BSD-compatible nm program.
20895 NM=$lt_NM
20896
20897 # A symbol stripping program
20898 STRIP=$lt_STRIP
20899
20900 # Used to examine libraries when file_magic_cmd begins "file"
20901 MAGIC_CMD=$MAGIC_CMD
20902
20903 # Used on cygwin: DLL creation program.
20904 DLLTOOL="$DLLTOOL"
20905
20906 # Used on cygwin: object dumper.
20907 OBJDUMP="$OBJDUMP"
20908
20909 # Used on cygwin: assembler.
20910 AS="$AS"
20911
20912 # The name of the directory that contains temporary libtool files.
20913 objdir=$objdir
20914
20915 # How to create reloadable object files.
20916 reload_flag=$lt_reload_flag
20917 reload_cmds=$lt_reload_cmds
20918
20919 # How to pass a linker flag through the compiler.
20920 wl=$lt_lt_prog_compiler_wl_GCJ
20921
20922 # Object file suffix (normally "o").
20923 objext="$ac_objext"
20924
20925 # Old archive suffix (normally "a").
20926 libext="$libext"
20927
20928 # Shared library suffix (normally ".so").
20929 shrext_cmds='$shrext_cmds'
20930
20931 # Executable file suffix (normally "").
20932 exeext="$exeext"
20933
20934 # Additional compiler flags for building library objects.
20935 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20936 pic_mode=$pic_mode
20937
20938 # What is the maximum length of a command?
20939 max_cmd_len=$lt_cv_sys_max_cmd_len
20940
20941 # Does compiler simultaneously support -c and -o options?
20942 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20943
20944 # Must we lock files when doing compilation?
20945 need_locks=$lt_need_locks
20946
20947 # Do we need the lib prefix for modules?
20948 need_lib_prefix=$need_lib_prefix
20949
20950 # Do we need a version for libraries?
20951 need_version=$need_version
20952
20953 # Whether dlopen is supported.
20954 dlopen_support=$enable_dlopen
20955
20956 # Whether dlopen of programs is supported.
20957 dlopen_self=$enable_dlopen_self
20958
20959 # Whether dlopen of statically linked programs is supported.
20960 dlopen_self_static=$enable_dlopen_self_static
20961
20962 # Compiler flag to prevent dynamic linking.
20963 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20964
20965 # Compiler flag to turn off builtin functions.
20966 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20967
20968 # Compiler flag to allow reflexive dlopens.
20969 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20970
20971 # Compiler flag to generate shared objects directly from archives.
20972 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20973
20974 # Compiler flag to generate thread-safe objects.
20975 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20976
20977 # Library versioning type.
20978 version_type=$version_type
20979
20980 # Format of library name prefix.
20981 libname_spec=$lt_libname_spec
20982
20983 # List of archive names.  First name is the real one, the rest are links.
20984 # The last name is the one that the linker finds with -lNAME.
20985 library_names_spec=$lt_library_names_spec
20986
20987 # The coded name of the library, if different from the real name.
20988 soname_spec=$lt_soname_spec
20989
20990 # Commands used to build and install an old-style archive.
20991 RANLIB=$lt_RANLIB
20992 old_archive_cmds=$lt_old_archive_cmds_GCJ
20993 old_postinstall_cmds=$lt_old_postinstall_cmds
20994 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20995
20996 # Create an old-style archive from a shared archive.
20997 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20998
20999 # Create a temporary old-style archive to link instead of a shared archive.
21000 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21001
21002 # Commands used to build and install a shared archive.
21003 archive_cmds=$lt_archive_cmds_GCJ
21004 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21005 postinstall_cmds=$lt_postinstall_cmds
21006 postuninstall_cmds=$lt_postuninstall_cmds
21007
21008 # Commands used to build a loadable module (assumed same as above if empty)
21009 module_cmds=$lt_module_cmds_GCJ
21010 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21011
21012 # Commands to strip libraries.
21013 old_striplib=$lt_old_striplib
21014 striplib=$lt_striplib
21015
21016 # Dependencies to place before the objects being linked to create a
21017 # shared library.
21018 predep_objects=$lt_predep_objects_GCJ
21019
21020 # Dependencies to place after the objects being linked to create a
21021 # shared library.
21022 postdep_objects=$lt_postdep_objects_GCJ
21023
21024 # Dependencies to place before the objects being linked to create a
21025 # shared library.
21026 predeps=$lt_predeps_GCJ
21027
21028 # Dependencies to place after the objects being linked to create a
21029 # shared library.
21030 postdeps=$lt_postdeps_GCJ
21031
21032 # The library search path used internally by the compiler when linking
21033 # a shared library.
21034 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21035
21036 # Method to check whether dependent libraries are shared objects.
21037 deplibs_check_method=$lt_deplibs_check_method
21038
21039 # Command to use when deplibs_check_method == file_magic.
21040 file_magic_cmd=$lt_file_magic_cmd
21041
21042 # Flag that allows shared libraries with undefined symbols to be built.
21043 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21044
21045 # Flag that forces no undefined symbols.
21046 no_undefined_flag=$lt_no_undefined_flag_GCJ
21047
21048 # Commands used to finish a libtool library installation in a directory.
21049 finish_cmds=$lt_finish_cmds
21050
21051 # Same as above, but a single script fragment to be evaled but not shown.
21052 finish_eval=$lt_finish_eval
21053
21054 # Take the output of nm and produce a listing of raw symbols and C names.
21055 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21056
21057 # Transform the output of nm in a proper C declaration
21058 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21059
21060 # Transform the output of nm in a C name address pair
21061 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21062
21063 # This is the shared library runtime path variable.
21064 runpath_var=$runpath_var
21065
21066 # This is the shared library path variable.
21067 shlibpath_var=$shlibpath_var
21068
21069 # Is shlibpath searched before the hard-coded library search path?
21070 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21071
21072 # How to hardcode a shared library path into an executable.
21073 hardcode_action=$hardcode_action_GCJ
21074
21075 # Whether we should hardcode library paths into libraries.
21076 hardcode_into_libs=$hardcode_into_libs
21077
21078 # Flag to hardcode \$libdir into a binary during linking.
21079 # This must work even if \$libdir does not exist.
21080 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21081
21082 # If ld is used when linking, flag to hardcode \$libdir into
21083 # a binary during linking. This must work even if \$libdir does
21084 # not exist.
21085 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21086
21087 # Whether we need a single -rpath flag with a separated argument.
21088 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21089
21090 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21091 # resulting binary.
21092 hardcode_direct=$hardcode_direct_GCJ
21093
21094 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21095 # resulting binary.
21096 hardcode_minus_L=$hardcode_minus_L_GCJ
21097
21098 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21099 # the resulting binary.
21100 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21101
21102 # Set to yes if building a shared library automatically hardcodes DIR into the library
21103 # and all subsequent libraries and executables linked against it.
21104 hardcode_automatic=$hardcode_automatic_GCJ
21105
21106 # Variables whose values should be saved in libtool wrapper scripts and
21107 # restored at relink time.
21108 variables_saved_for_relink="$variables_saved_for_relink"
21109
21110 # Whether libtool must link a program against all its dependency libraries.
21111 link_all_deplibs=$link_all_deplibs_GCJ
21112
21113 # Compile-time system search path for libraries
21114 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21115
21116 # Run-time system search path for libraries
21117 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21118
21119 # Fix the shell variable \$srcfile for the compiler.
21120 fix_srcfile_path="$fix_srcfile_path_GCJ"
21121
21122 # Set to yes if exported symbols are required.
21123 always_export_symbols=$always_export_symbols_GCJ
21124
21125 # The commands to list exported symbols.
21126 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21127
21128 # The commands to extract the exported symbol list from a shared archive.
21129 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21130
21131 # Symbols that should not be listed in the preloaded symbols.
21132 exclude_expsyms=$lt_exclude_expsyms_GCJ
21133
21134 # Symbols that must always be exported.
21135 include_expsyms=$lt_include_expsyms_GCJ
21136
21137 # ### END LIBTOOL TAG CONFIG: $tagname
21138
21139 __EOF__
21140
21141
21142 else
21143   # If there is no Makefile yet, we rely on a make rule to execute
21144   # `config.status --recheck' to rerun these tests and create the
21145   # libtool script then.
21146   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21147   if test -f "$ltmain_in"; then
21148     test -f Makefile && make "$ltmain"
21149   fi
21150 fi
21151
21152
21153 ac_ext=c
21154 ac_cpp='$CPP $CPPFLAGS'
21155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21158
21159 CC="$lt_save_CC"
21160
21161         else
21162           tagname=""
21163         fi
21164         ;;
21165
21166       RC)
21167
21168
21169
21170 # Source file extension for RC test sources.
21171 ac_ext=rc
21172
21173 # Object file extension for compiled RC test sources.
21174 objext=o
21175 objext_RC=$objext
21176
21177 # Code to be used in simple compile tests
21178 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21179
21180 # Code to be used in simple link tests
21181 lt_simple_link_test_code="$lt_simple_compile_test_code"
21182
21183 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21184
21185 # If no C compiler was specified, use CC.
21186 LTCC=${LTCC-"$CC"}
21187
21188 # Allow CC to be a program name with arguments.
21189 compiler=$CC
21190
21191
21192 # save warnings/boilerplate of simple test code
21193 ac_outfile=conftest.$ac_objext
21194 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21195 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21196 _lt_compiler_boilerplate=`cat conftest.err`
21197 $rm conftest*
21198
21199 ac_outfile=conftest.$ac_objext
21200 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21201 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21202 _lt_linker_boilerplate=`cat conftest.err`
21203 $rm conftest*
21204
21205
21206 # Allow CC to be a program name with arguments.
21207 lt_save_CC="$CC"
21208 CC=${RC-"windres"}
21209 compiler=$CC
21210 compiler_RC=$CC
21211 for cc_temp in $compiler""; do
21212   case $cc_temp in
21213     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21214     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21215     \-*) ;;
21216     *) break;;
21217   esac
21218 done
21219 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21220
21221 lt_cv_prog_compiler_c_o_RC=yes
21222
21223 # The else clause should only fire when bootstrapping the
21224 # libtool distribution, otherwise you forgot to ship ltmain.sh
21225 # with your package, and you will get complaints that there are
21226 # no rules to generate ltmain.sh.
21227 if test -f "$ltmain"; then
21228   # See if we are running on zsh, and set the options which allow our commands through
21229   # without removal of \ escapes.
21230   if test -n "${ZSH_VERSION+set}" ; then
21231     setopt NO_GLOB_SUBST
21232   fi
21233   # Now quote all the things that may contain metacharacters while being
21234   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21235   # variables and quote the copies for generation of the libtool script.
21236   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21237     SED SHELL STRIP \
21238     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21239     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21240     deplibs_check_method reload_flag reload_cmds need_locks \
21241     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21242     lt_cv_sys_global_symbol_to_c_name_address \
21243     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21244     old_postinstall_cmds old_postuninstall_cmds \
21245     compiler_RC \
21246     CC_RC \
21247     LD_RC \
21248     lt_prog_compiler_wl_RC \
21249     lt_prog_compiler_pic_RC \
21250     lt_prog_compiler_static_RC \
21251     lt_prog_compiler_no_builtin_flag_RC \
21252     export_dynamic_flag_spec_RC \
21253     thread_safe_flag_spec_RC \
21254     whole_archive_flag_spec_RC \
21255     enable_shared_with_static_runtimes_RC \
21256     old_archive_cmds_RC \
21257     old_archive_from_new_cmds_RC \
21258     predep_objects_RC \
21259     postdep_objects_RC \
21260     predeps_RC \
21261     postdeps_RC \
21262     compiler_lib_search_path_RC \
21263     archive_cmds_RC \
21264     archive_expsym_cmds_RC \
21265     postinstall_cmds_RC \
21266     postuninstall_cmds_RC \
21267     old_archive_from_expsyms_cmds_RC \
21268     allow_undefined_flag_RC \
21269     no_undefined_flag_RC \
21270     export_symbols_cmds_RC \
21271     hardcode_libdir_flag_spec_RC \
21272     hardcode_libdir_flag_spec_ld_RC \
21273     hardcode_libdir_separator_RC \
21274     hardcode_automatic_RC \
21275     module_cmds_RC \
21276     module_expsym_cmds_RC \
21277     lt_cv_prog_compiler_c_o_RC \
21278     exclude_expsyms_RC \
21279     include_expsyms_RC; do
21280
21281     case $var in
21282     old_archive_cmds_RC | \
21283     old_archive_from_new_cmds_RC | \
21284     archive_cmds_RC | \
21285     archive_expsym_cmds_RC | \
21286     module_cmds_RC | \
21287     module_expsym_cmds_RC | \
21288     old_archive_from_expsyms_cmds_RC | \
21289     export_symbols_cmds_RC | \
21290     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21291     postinstall_cmds | postuninstall_cmds | \
21292     old_postinstall_cmds | old_postuninstall_cmds | \
21293     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21294       # Double-quote double-evaled strings.
21295       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21296       ;;
21297     *)
21298       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21299       ;;
21300     esac
21301   done
21302
21303   case $lt_echo in
21304   *'\$0 --fallback-echo"')
21305     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21306     ;;
21307   esac
21308
21309 cfgfile="$ofile"
21310
21311   cat <<__EOF__ >> "$cfgfile"
21312 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21313
21314 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21315
21316 # Shell to use when invoking shell scripts.
21317 SHELL=$lt_SHELL
21318
21319 # Whether or not to build shared libraries.
21320 build_libtool_libs=$enable_shared
21321
21322 # Whether or not to build static libraries.
21323 build_old_libs=$enable_static
21324
21325 # Whether or not to add -lc for building shared libraries.
21326 build_libtool_need_lc=$archive_cmds_need_lc_RC
21327
21328 # Whether or not to disallow shared libs when runtime libs are static
21329 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21330
21331 # Whether or not to optimize for fast installation.
21332 fast_install=$enable_fast_install
21333
21334 # The host system.
21335 host_alias=$host_alias
21336 host=$host
21337 host_os=$host_os
21338
21339 # The build system.
21340 build_alias=$build_alias
21341 build=$build
21342 build_os=$build_os
21343
21344 # An echo program that does not interpret backslashes.
21345 echo=$lt_echo
21346
21347 # The archiver.
21348 AR=$lt_AR
21349 AR_FLAGS=$lt_AR_FLAGS
21350
21351 # A C compiler.
21352 LTCC=$lt_LTCC
21353
21354 # A language-specific compiler.
21355 CC=$lt_compiler_RC
21356
21357 # Is the compiler the GNU C compiler?
21358 with_gcc=$GCC_RC
21359
21360 # An ERE matcher.
21361 EGREP=$lt_EGREP
21362
21363 # The linker used to build libraries.
21364 LD=$lt_LD_RC
21365
21366 # Whether we need hard or soft links.
21367 LN_S=$lt_LN_S
21368
21369 # A BSD-compatible nm program.
21370 NM=$lt_NM
21371
21372 # A symbol stripping program
21373 STRIP=$lt_STRIP
21374
21375 # Used to examine libraries when file_magic_cmd begins "file"
21376 MAGIC_CMD=$MAGIC_CMD
21377
21378 # Used on cygwin: DLL creation program.
21379 DLLTOOL="$DLLTOOL"
21380
21381 # Used on cygwin: object dumper.
21382 OBJDUMP="$OBJDUMP"
21383
21384 # Used on cygwin: assembler.
21385 AS="$AS"
21386
21387 # The name of the directory that contains temporary libtool files.
21388 objdir=$objdir
21389
21390 # How to create reloadable object files.
21391 reload_flag=$lt_reload_flag
21392 reload_cmds=$lt_reload_cmds
21393
21394 # How to pass a linker flag through the compiler.
21395 wl=$lt_lt_prog_compiler_wl_RC
21396
21397 # Object file suffix (normally "o").
21398 objext="$ac_objext"
21399
21400 # Old archive suffix (normally "a").
21401 libext="$libext"
21402
21403 # Shared library suffix (normally ".so").
21404 shrext_cmds='$shrext_cmds'
21405
21406 # Executable file suffix (normally "").
21407 exeext="$exeext"
21408
21409 # Additional compiler flags for building library objects.
21410 pic_flag=$lt_lt_prog_compiler_pic_RC
21411 pic_mode=$pic_mode
21412
21413 # What is the maximum length of a command?
21414 max_cmd_len=$lt_cv_sys_max_cmd_len
21415
21416 # Does compiler simultaneously support -c and -o options?
21417 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21418
21419 # Must we lock files when doing compilation?
21420 need_locks=$lt_need_locks
21421
21422 # Do we need the lib prefix for modules?
21423 need_lib_prefix=$need_lib_prefix
21424
21425 # Do we need a version for libraries?
21426 need_version=$need_version
21427
21428 # Whether dlopen is supported.
21429 dlopen_support=$enable_dlopen
21430
21431 # Whether dlopen of programs is supported.
21432 dlopen_self=$enable_dlopen_self
21433
21434 # Whether dlopen of statically linked programs is supported.
21435 dlopen_self_static=$enable_dlopen_self_static
21436
21437 # Compiler flag to prevent dynamic linking.
21438 link_static_flag=$lt_lt_prog_compiler_static_RC
21439
21440 # Compiler flag to turn off builtin functions.
21441 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21442
21443 # Compiler flag to allow reflexive dlopens.
21444 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21445
21446 # Compiler flag to generate shared objects directly from archives.
21447 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21448
21449 # Compiler flag to generate thread-safe objects.
21450 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21451
21452 # Library versioning type.
21453 version_type=$version_type
21454
21455 # Format of library name prefix.
21456 libname_spec=$lt_libname_spec
21457
21458 # List of archive names.  First name is the real one, the rest are links.
21459 # The last name is the one that the linker finds with -lNAME.
21460 library_names_spec=$lt_library_names_spec
21461
21462 # The coded name of the library, if different from the real name.
21463 soname_spec=$lt_soname_spec
21464
21465 # Commands used to build and install an old-style archive.
21466 RANLIB=$lt_RANLIB
21467 old_archive_cmds=$lt_old_archive_cmds_RC
21468 old_postinstall_cmds=$lt_old_postinstall_cmds
21469 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21470
21471 # Create an old-style archive from a shared archive.
21472 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21473
21474 # Create a temporary old-style archive to link instead of a shared archive.
21475 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21476
21477 # Commands used to build and install a shared archive.
21478 archive_cmds=$lt_archive_cmds_RC
21479 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21480 postinstall_cmds=$lt_postinstall_cmds
21481 postuninstall_cmds=$lt_postuninstall_cmds
21482
21483 # Commands used to build a loadable module (assumed same as above if empty)
21484 module_cmds=$lt_module_cmds_RC
21485 module_expsym_cmds=$lt_module_expsym_cmds_RC
21486
21487 # Commands to strip libraries.
21488 old_striplib=$lt_old_striplib
21489 striplib=$lt_striplib
21490
21491 # Dependencies to place before the objects being linked to create a
21492 # shared library.
21493 predep_objects=$lt_predep_objects_RC
21494
21495 # Dependencies to place after the objects being linked to create a
21496 # shared library.
21497 postdep_objects=$lt_postdep_objects_RC
21498
21499 # Dependencies to place before the objects being linked to create a
21500 # shared library.
21501 predeps=$lt_predeps_RC
21502
21503 # Dependencies to place after the objects being linked to create a
21504 # shared library.
21505 postdeps=$lt_postdeps_RC
21506
21507 # The library search path used internally by the compiler when linking
21508 # a shared library.
21509 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21510
21511 # Method to check whether dependent libraries are shared objects.
21512 deplibs_check_method=$lt_deplibs_check_method
21513
21514 # Command to use when deplibs_check_method == file_magic.
21515 file_magic_cmd=$lt_file_magic_cmd
21516
21517 # Flag that allows shared libraries with undefined symbols to be built.
21518 allow_undefined_flag=$lt_allow_undefined_flag_RC
21519
21520 # Flag that forces no undefined symbols.
21521 no_undefined_flag=$lt_no_undefined_flag_RC
21522
21523 # Commands used to finish a libtool library installation in a directory.
21524 finish_cmds=$lt_finish_cmds
21525
21526 # Same as above, but a single script fragment to be evaled but not shown.
21527 finish_eval=$lt_finish_eval
21528
21529 # Take the output of nm and produce a listing of raw symbols and C names.
21530 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21531
21532 # Transform the output of nm in a proper C declaration
21533 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21534
21535 # Transform the output of nm in a C name address pair
21536 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21537
21538 # This is the shared library runtime path variable.
21539 runpath_var=$runpath_var
21540
21541 # This is the shared library path variable.
21542 shlibpath_var=$shlibpath_var
21543
21544 # Is shlibpath searched before the hard-coded library search path?
21545 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21546
21547 # How to hardcode a shared library path into an executable.
21548 hardcode_action=$hardcode_action_RC
21549
21550 # Whether we should hardcode library paths into libraries.
21551 hardcode_into_libs=$hardcode_into_libs
21552
21553 # Flag to hardcode \$libdir into a binary during linking.
21554 # This must work even if \$libdir does not exist.
21555 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21556
21557 # If ld is used when linking, flag to hardcode \$libdir into
21558 # a binary during linking. This must work even if \$libdir does
21559 # not exist.
21560 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21561
21562 # Whether we need a single -rpath flag with a separated argument.
21563 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21564
21565 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21566 # resulting binary.
21567 hardcode_direct=$hardcode_direct_RC
21568
21569 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21570 # resulting binary.
21571 hardcode_minus_L=$hardcode_minus_L_RC
21572
21573 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21574 # the resulting binary.
21575 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21576
21577 # Set to yes if building a shared library automatically hardcodes DIR into the library
21578 # and all subsequent libraries and executables linked against it.
21579 hardcode_automatic=$hardcode_automatic_RC
21580
21581 # Variables whose values should be saved in libtool wrapper scripts and
21582 # restored at relink time.
21583 variables_saved_for_relink="$variables_saved_for_relink"
21584
21585 # Whether libtool must link a program against all its dependency libraries.
21586 link_all_deplibs=$link_all_deplibs_RC
21587
21588 # Compile-time system search path for libraries
21589 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21590
21591 # Run-time system search path for libraries
21592 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21593
21594 # Fix the shell variable \$srcfile for the compiler.
21595 fix_srcfile_path="$fix_srcfile_path_RC"
21596
21597 # Set to yes if exported symbols are required.
21598 always_export_symbols=$always_export_symbols_RC
21599
21600 # The commands to list exported symbols.
21601 export_symbols_cmds=$lt_export_symbols_cmds_RC
21602
21603 # The commands to extract the exported symbol list from a shared archive.
21604 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21605
21606 # Symbols that should not be listed in the preloaded symbols.
21607 exclude_expsyms=$lt_exclude_expsyms_RC
21608
21609 # Symbols that must always be exported.
21610 include_expsyms=$lt_include_expsyms_RC
21611
21612 # ### END LIBTOOL TAG CONFIG: $tagname
21613
21614 __EOF__
21615
21616
21617 else
21618   # If there is no Makefile yet, we rely on a make rule to execute
21619   # `config.status --recheck' to rerun these tests and create the
21620   # libtool script then.
21621   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21622   if test -f "$ltmain_in"; then
21623     test -f Makefile && make "$ltmain"
21624   fi
21625 fi
21626
21627
21628 ac_ext=c
21629 ac_cpp='$CPP $CPPFLAGS'
21630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21633
21634 CC="$lt_save_CC"
21635
21636         ;;
21637
21638       *)
21639         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21640 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21641    { (exit 1); exit 1; }; }
21642         ;;
21643       esac
21644
21645       # Append the new tag name to the list of available tags.
21646       if test -n "$tagname" ; then
21647       available_tags="$available_tags $tagname"
21648     fi
21649     fi
21650   done
21651   IFS="$lt_save_ifs"
21652
21653   # Now substitute the updated list of available tags.
21654   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21655     mv "${ofile}T" "$ofile"
21656     chmod +x "$ofile"
21657   else
21658     rm -f "${ofile}T"
21659     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21660 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21661    { (exit 1); exit 1; }; }
21662   fi
21663 fi
21664
21665
21666
21667 # This can be used to rebuild libtool when needed
21668 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21669
21670 # Always use our own libtool.
21671 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21672
21673 # Prevent multiple expansion
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695 ol_link_perl=no
21696 if test $ol_enable_perl != no ; then
21697         # Extract the first word of "perl", so it can be a program name with args.
21698 set dummy perl; ac_word=$2
21699 echo "$as_me:$LINENO: checking for $ac_word" >&5
21700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21701 if test "${ac_cv_path_PERLBIN+set}" = set; then
21702   echo $ECHO_N "(cached) $ECHO_C" >&6
21703 else
21704   case $PERLBIN in
21705   [\\/]* | ?:[\\/]*)
21706   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21707   ;;
21708   *)
21709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21710 for as_dir in $PATH
21711 do
21712   IFS=$as_save_IFS
21713   test -z "$as_dir" && as_dir=.
21714   for ac_exec_ext in '' $ac_executable_extensions; do
21715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21716     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21718     break 2
21719   fi
21720 done
21721 done
21722
21723   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21724   ;;
21725 esac
21726 fi
21727 PERLBIN=$ac_cv_path_PERLBIN
21728
21729 if test -n "$PERLBIN"; then
21730   echo "$as_me:$LINENO: result: $PERLBIN" >&5
21731 echo "${ECHO_T}$PERLBIN" >&6
21732 else
21733   echo "$as_me:$LINENO: result: no" >&5
21734 echo "${ECHO_T}no" >&6
21735 fi
21736
21737
21738         if test "no$PERLBIN" = "no" ; then
21739                 if test $ol_enable_perl = yes ; then
21740                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21741 echo "$as_me: error: could not locate perl" >&2;}
21742    { (exit 1); exit 1; }; }
21743                 fi
21744
21745         else
21746                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21747                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21748
21749                 if test x"$ol_enable_perl" = "xyes" ; then
21750                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21751                 else
21752                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21753                 fi
21754                                 ol_link_perl=yes
21755         fi
21756 fi
21757
21758 ac_ext=c
21759 ac_cpp='$CPP $CPPFLAGS'
21760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21763 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21764 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21765 # On Suns, sometimes $CPP names a directory.
21766 if test -n "$CPP" && test -d "$CPP"; then
21767   CPP=
21768 fi
21769 if test -z "$CPP"; then
21770   if test "${ac_cv_prog_CPP+set}" = set; then
21771   echo $ECHO_N "(cached) $ECHO_C" >&6
21772 else
21773       # Double quotes because CPP needs to be expanded
21774     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21775     do
21776       ac_preproc_ok=false
21777 for ac_c_preproc_warn_flag in '' yes
21778 do
21779   # Use a header file that comes with gcc, so configuring glibc
21780   # with a fresh cross-compiler works.
21781   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21782   # <limits.h> exists even on freestanding compilers.
21783   # On the NeXT, cc -E runs the code through the compiler's parser,
21784   # not just through cpp. "Syntax error" is here to catch this case.
21785   cat >conftest.$ac_ext <<_ACEOF
21786 /* confdefs.h.  */
21787 _ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h.  */
21791 #ifdef __STDC__
21792 # include <limits.h>
21793 #else
21794 # include <assert.h>
21795 #endif
21796                      Syntax error
21797 _ACEOF
21798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21799   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21800   ac_status=$?
21801   grep -v '^ *+' conftest.er1 >conftest.err
21802   rm -f conftest.er1
21803   cat conftest.err >&5
21804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805   (exit $ac_status); } >/dev/null; then
21806   if test -s conftest.err; then
21807     ac_cpp_err=$ac_c_preproc_warn_flag
21808     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21809   else
21810     ac_cpp_err=
21811   fi
21812 else
21813   ac_cpp_err=yes
21814 fi
21815 if test -z "$ac_cpp_err"; then
21816   :
21817 else
21818   echo "$as_me: failed program was:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21820
21821   # Broken: fails on valid input.
21822 continue
21823 fi
21824 rm -f conftest.err conftest.$ac_ext
21825
21826   # OK, works on sane cases.  Now check whether non-existent headers
21827   # can be detected and how.
21828   cat >conftest.$ac_ext <<_ACEOF
21829 /* confdefs.h.  */
21830 _ACEOF
21831 cat confdefs.h >>conftest.$ac_ext
21832 cat >>conftest.$ac_ext <<_ACEOF
21833 /* end confdefs.h.  */
21834 #include <ac_nonexistent.h>
21835 _ACEOF
21836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21837   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21838   ac_status=$?
21839   grep -v '^ *+' conftest.er1 >conftest.err
21840   rm -f conftest.er1
21841   cat conftest.err >&5
21842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843   (exit $ac_status); } >/dev/null; then
21844   if test -s conftest.err; then
21845     ac_cpp_err=$ac_c_preproc_warn_flag
21846     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21847   else
21848     ac_cpp_err=
21849   fi
21850 else
21851   ac_cpp_err=yes
21852 fi
21853 if test -z "$ac_cpp_err"; then
21854   # Broken: success on invalid input.
21855 continue
21856 else
21857   echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21859
21860   # Passes both tests.
21861 ac_preproc_ok=:
21862 break
21863 fi
21864 rm -f conftest.err conftest.$ac_ext
21865
21866 done
21867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21868 rm -f conftest.err conftest.$ac_ext
21869 if $ac_preproc_ok; then
21870   break
21871 fi
21872
21873     done
21874     ac_cv_prog_CPP=$CPP
21875
21876 fi
21877   CPP=$ac_cv_prog_CPP
21878 else
21879   ac_cv_prog_CPP=$CPP
21880 fi
21881 echo "$as_me:$LINENO: result: $CPP" >&5
21882 echo "${ECHO_T}$CPP" >&6
21883 ac_preproc_ok=false
21884 for ac_c_preproc_warn_flag in '' yes
21885 do
21886   # Use a header file that comes with gcc, so configuring glibc
21887   # with a fresh cross-compiler works.
21888   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21889   # <limits.h> exists even on freestanding compilers.
21890   # On the NeXT, cc -E runs the code through the compiler's parser,
21891   # not just through cpp. "Syntax error" is here to catch this case.
21892   cat >conftest.$ac_ext <<_ACEOF
21893 /* confdefs.h.  */
21894 _ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h.  */
21898 #ifdef __STDC__
21899 # include <limits.h>
21900 #else
21901 # include <assert.h>
21902 #endif
21903                      Syntax error
21904 _ACEOF
21905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21907   ac_status=$?
21908   grep -v '^ *+' conftest.er1 >conftest.err
21909   rm -f conftest.er1
21910   cat conftest.err >&5
21911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912   (exit $ac_status); } >/dev/null; then
21913   if test -s conftest.err; then
21914     ac_cpp_err=$ac_c_preproc_warn_flag
21915     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21916   else
21917     ac_cpp_err=
21918   fi
21919 else
21920   ac_cpp_err=yes
21921 fi
21922 if test -z "$ac_cpp_err"; then
21923   :
21924 else
21925   echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.$ac_ext >&5
21927
21928   # Broken: fails on valid input.
21929 continue
21930 fi
21931 rm -f conftest.err conftest.$ac_ext
21932
21933   # OK, works on sane cases.  Now check whether non-existent headers
21934   # can be detected and how.
21935   cat >conftest.$ac_ext <<_ACEOF
21936 /* confdefs.h.  */
21937 _ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h.  */
21941 #include <ac_nonexistent.h>
21942 _ACEOF
21943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21944   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21945   ac_status=$?
21946   grep -v '^ *+' conftest.er1 >conftest.err
21947   rm -f conftest.er1
21948   cat conftest.err >&5
21949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950   (exit $ac_status); } >/dev/null; then
21951   if test -s conftest.err; then
21952     ac_cpp_err=$ac_c_preproc_warn_flag
21953     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21954   else
21955     ac_cpp_err=
21956   fi
21957 else
21958   ac_cpp_err=yes
21959 fi
21960 if test -z "$ac_cpp_err"; then
21961   # Broken: success on invalid input.
21962 continue
21963 else
21964   echo "$as_me: failed program was:" >&5
21965 sed 's/^/| /' conftest.$ac_ext >&5
21966
21967   # Passes both tests.
21968 ac_preproc_ok=:
21969 break
21970 fi
21971 rm -f conftest.err conftest.$ac_ext
21972
21973 done
21974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21975 rm -f conftest.err conftest.$ac_ext
21976 if $ac_preproc_ok; then
21977   :
21978 else
21979   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
21980 See \`config.log' for more details." >&5
21981 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
21982 See \`config.log' for more details." >&2;}
21983    { (exit 1); exit 1; }; }
21984 fi
21985
21986 ac_ext=c
21987 ac_cpp='$CPP $CPPFLAGS'
21988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21991
21992
21993
21994
21995 case $host_os in
21996   *cygwin* ) CYGWIN=yes;;
21997          * ) CYGWIN=no;;
21998 esac
21999
22000
22001 case $host_os in
22002   *mingw32* ) MINGW32=yes;;
22003           * ) MINGW32=no;;
22004 esac
22005
22006
22007
22008
22009
22010 cat >>confdefs.h <<_ACEOF
22011 #define EXEEXT "${EXEEXT}"
22012 _ACEOF
22013
22014
22015 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22016 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22017 if test "${ac_cv_lib_be_be_app+set}" = set; then
22018   echo $ECHO_N "(cached) $ECHO_C" >&6
22019 else
22020   ac_check_lib_save_LIBS=$LIBS
22021 LIBS="-lbe -lroot -lnet $LIBS"
22022 cat >conftest.$ac_ext <<_ACEOF
22023 /* confdefs.h.  */
22024 _ACEOF
22025 cat confdefs.h >>conftest.$ac_ext
22026 cat >>conftest.$ac_ext <<_ACEOF
22027 /* end confdefs.h.  */
22028
22029 /* Override any gcc2 internal prototype to avoid an error.  */
22030 #ifdef __cplusplus
22031 extern "C"
22032 #endif
22033 /* We use char because int might match the return type of a gcc2
22034    builtin and then its argument prototype would still apply.  */
22035 char be_app ();
22036 int
22037 main ()
22038 {
22039 be_app ();
22040   ;
22041   return 0;
22042 }
22043 _ACEOF
22044 rm -f conftest.$ac_objext conftest$ac_exeext
22045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22046   (eval $ac_link) 2>conftest.er1
22047   ac_status=$?
22048   grep -v '^ *+' conftest.er1 >conftest.err
22049   rm -f conftest.er1
22050   cat conftest.err >&5
22051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052   (exit $ac_status); } &&
22053          { ac_try='test -z "$ac_c_werror_flag"
22054                          || test ! -s conftest.err'
22055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22056   (eval $ac_try) 2>&5
22057   ac_status=$?
22058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059   (exit $ac_status); }; } &&
22060          { ac_try='test -s conftest$ac_exeext'
22061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22062   (eval $ac_try) 2>&5
22063   ac_status=$?
22064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065   (exit $ac_status); }; }; then
22066   ac_cv_lib_be_be_app=yes
22067 else
22068   echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22070
22071 ac_cv_lib_be_be_app=no
22072 fi
22073 rm -f conftest.err conftest.$ac_objext \
22074       conftest$ac_exeext conftest.$ac_ext
22075 LIBS=$ac_check_lib_save_LIBS
22076 fi
22077 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22078 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22079 if test $ac_cv_lib_be_be_app = yes; then
22080   LIBS="$LIBS -lbe -lroot -lnet"
22081 else
22082   :
22083 fi
22084
22085
22086 ac_ext=c
22087 ac_cpp='$CPP $CPPFLAGS'
22088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22091 if test -n "$ac_tool_prefix"; then
22092   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22093 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22094 echo "$as_me:$LINENO: checking for $ac_word" >&5
22095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22096 if test "${ac_cv_prog_CC+set}" = set; then
22097   echo $ECHO_N "(cached) $ECHO_C" >&6
22098 else
22099   if test -n "$CC"; then
22100   ac_cv_prog_CC="$CC" # Let the user override the test.
22101 else
22102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22103 for as_dir in $PATH
22104 do
22105   IFS=$as_save_IFS
22106   test -z "$as_dir" && as_dir=.
22107   for ac_exec_ext in '' $ac_executable_extensions; do
22108   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22109     ac_cv_prog_CC="${ac_tool_prefix}gcc"
22110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22111     break 2
22112   fi
22113 done
22114 done
22115
22116 fi
22117 fi
22118 CC=$ac_cv_prog_CC
22119 if test -n "$CC"; then
22120   echo "$as_me:$LINENO: result: $CC" >&5
22121 echo "${ECHO_T}$CC" >&6
22122 else
22123   echo "$as_me:$LINENO: result: no" >&5
22124 echo "${ECHO_T}no" >&6
22125 fi
22126
22127 fi
22128 if test -z "$ac_cv_prog_CC"; then
22129   ac_ct_CC=$CC
22130   # Extract the first word of "gcc", so it can be a program name with args.
22131 set dummy gcc; ac_word=$2
22132 echo "$as_me:$LINENO: checking for $ac_word" >&5
22133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22135   echo $ECHO_N "(cached) $ECHO_C" >&6
22136 else
22137   if test -n "$ac_ct_CC"; then
22138   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22139 else
22140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22141 for as_dir in $PATH
22142 do
22143   IFS=$as_save_IFS
22144   test -z "$as_dir" && as_dir=.
22145   for ac_exec_ext in '' $ac_executable_extensions; do
22146   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22147     ac_cv_prog_ac_ct_CC="gcc"
22148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22149     break 2
22150   fi
22151 done
22152 done
22153
22154 fi
22155 fi
22156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22157 if test -n "$ac_ct_CC"; then
22158   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22159 echo "${ECHO_T}$ac_ct_CC" >&6
22160 else
22161   echo "$as_me:$LINENO: result: no" >&5
22162 echo "${ECHO_T}no" >&6
22163 fi
22164
22165   CC=$ac_ct_CC
22166 else
22167   CC="$ac_cv_prog_CC"
22168 fi
22169
22170 if test -z "$CC"; then
22171   if test -n "$ac_tool_prefix"; then
22172   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22173 set dummy ${ac_tool_prefix}cc; ac_word=$2
22174 echo "$as_me:$LINENO: checking for $ac_word" >&5
22175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22176 if test "${ac_cv_prog_CC+set}" = set; then
22177   echo $ECHO_N "(cached) $ECHO_C" >&6
22178 else
22179   if test -n "$CC"; then
22180   ac_cv_prog_CC="$CC" # Let the user override the test.
22181 else
22182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22183 for as_dir in $PATH
22184 do
22185   IFS=$as_save_IFS
22186   test -z "$as_dir" && as_dir=.
22187   for ac_exec_ext in '' $ac_executable_extensions; do
22188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22189     ac_cv_prog_CC="${ac_tool_prefix}cc"
22190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22191     break 2
22192   fi
22193 done
22194 done
22195
22196 fi
22197 fi
22198 CC=$ac_cv_prog_CC
22199 if test -n "$CC"; then
22200   echo "$as_me:$LINENO: result: $CC" >&5
22201 echo "${ECHO_T}$CC" >&6
22202 else
22203   echo "$as_me:$LINENO: result: no" >&5
22204 echo "${ECHO_T}no" >&6
22205 fi
22206
22207 fi
22208 if test -z "$ac_cv_prog_CC"; then
22209   ac_ct_CC=$CC
22210   # Extract the first word of "cc", so it can be a program name with args.
22211 set dummy cc; ac_word=$2
22212 echo "$as_me:$LINENO: checking for $ac_word" >&5
22213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22215   echo $ECHO_N "(cached) $ECHO_C" >&6
22216 else
22217   if test -n "$ac_ct_CC"; then
22218   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22219 else
22220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22221 for as_dir in $PATH
22222 do
22223   IFS=$as_save_IFS
22224   test -z "$as_dir" && as_dir=.
22225   for ac_exec_ext in '' $ac_executable_extensions; do
22226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22227     ac_cv_prog_ac_ct_CC="cc"
22228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22229     break 2
22230   fi
22231 done
22232 done
22233
22234 fi
22235 fi
22236 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22237 if test -n "$ac_ct_CC"; then
22238   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22239 echo "${ECHO_T}$ac_ct_CC" >&6
22240 else
22241   echo "$as_me:$LINENO: result: no" >&5
22242 echo "${ECHO_T}no" >&6
22243 fi
22244
22245   CC=$ac_ct_CC
22246 else
22247   CC="$ac_cv_prog_CC"
22248 fi
22249
22250 fi
22251 if test -z "$CC"; then
22252   # Extract the first word of "cc", so it can be a program name with args.
22253 set dummy cc; ac_word=$2
22254 echo "$as_me:$LINENO: checking for $ac_word" >&5
22255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22256 if test "${ac_cv_prog_CC+set}" = set; then
22257   echo $ECHO_N "(cached) $ECHO_C" >&6
22258 else
22259   if test -n "$CC"; then
22260   ac_cv_prog_CC="$CC" # Let the user override the test.
22261 else
22262   ac_prog_rejected=no
22263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22264 for as_dir in $PATH
22265 do
22266   IFS=$as_save_IFS
22267   test -z "$as_dir" && as_dir=.
22268   for ac_exec_ext in '' $ac_executable_extensions; do
22269   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22270     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22271        ac_prog_rejected=yes
22272        continue
22273      fi
22274     ac_cv_prog_CC="cc"
22275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22276     break 2
22277   fi
22278 done
22279 done
22280
22281 if test $ac_prog_rejected = yes; then
22282   # We found a bogon in the path, so make sure we never use it.
22283   set dummy $ac_cv_prog_CC
22284   shift
22285   if test $# != 0; then
22286     # We chose a different compiler from the bogus one.
22287     # However, it has the same basename, so the bogon will be chosen
22288     # first if we set CC to just the basename; use the full file name.
22289     shift
22290     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22291   fi
22292 fi
22293 fi
22294 fi
22295 CC=$ac_cv_prog_CC
22296 if test -n "$CC"; then
22297   echo "$as_me:$LINENO: result: $CC" >&5
22298 echo "${ECHO_T}$CC" >&6
22299 else
22300   echo "$as_me:$LINENO: result: no" >&5
22301 echo "${ECHO_T}no" >&6
22302 fi
22303
22304 fi
22305 if test -z "$CC"; then
22306   if test -n "$ac_tool_prefix"; then
22307   for ac_prog in cl
22308   do
22309     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22311 echo "$as_me:$LINENO: checking for $ac_word" >&5
22312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22313 if test "${ac_cv_prog_CC+set}" = set; then
22314   echo $ECHO_N "(cached) $ECHO_C" >&6
22315 else
22316   if test -n "$CC"; then
22317   ac_cv_prog_CC="$CC" # Let the user override the test.
22318 else
22319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22320 for as_dir in $PATH
22321 do
22322   IFS=$as_save_IFS
22323   test -z "$as_dir" && as_dir=.
22324   for ac_exec_ext in '' $ac_executable_extensions; do
22325   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22326     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22328     break 2
22329   fi
22330 done
22331 done
22332
22333 fi
22334 fi
22335 CC=$ac_cv_prog_CC
22336 if test -n "$CC"; then
22337   echo "$as_me:$LINENO: result: $CC" >&5
22338 echo "${ECHO_T}$CC" >&6
22339 else
22340   echo "$as_me:$LINENO: result: no" >&5
22341 echo "${ECHO_T}no" >&6
22342 fi
22343
22344     test -n "$CC" && break
22345   done
22346 fi
22347 if test -z "$CC"; then
22348   ac_ct_CC=$CC
22349   for ac_prog in cl
22350 do
22351   # Extract the first word of "$ac_prog", so it can be a program name with args.
22352 set dummy $ac_prog; ac_word=$2
22353 echo "$as_me:$LINENO: checking for $ac_word" >&5
22354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22355 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22356   echo $ECHO_N "(cached) $ECHO_C" >&6
22357 else
22358   if test -n "$ac_ct_CC"; then
22359   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22360 else
22361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22362 for as_dir in $PATH
22363 do
22364   IFS=$as_save_IFS
22365   test -z "$as_dir" && as_dir=.
22366   for ac_exec_ext in '' $ac_executable_extensions; do
22367   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22368     ac_cv_prog_ac_ct_CC="$ac_prog"
22369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22370     break 2
22371   fi
22372 done
22373 done
22374
22375 fi
22376 fi
22377 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22378 if test -n "$ac_ct_CC"; then
22379   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22380 echo "${ECHO_T}$ac_ct_CC" >&6
22381 else
22382   echo "$as_me:$LINENO: result: no" >&5
22383 echo "${ECHO_T}no" >&6
22384 fi
22385
22386   test -n "$ac_ct_CC" && break
22387 done
22388
22389   CC=$ac_ct_CC
22390 fi
22391
22392 fi
22393
22394
22395 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22396 See \`config.log' for more details." >&5
22397 echo "$as_me: error: no acceptable C compiler found in \$PATH
22398 See \`config.log' for more details." >&2;}
22399    { (exit 1); exit 1; }; }
22400
22401 # Provide some information about the compiler.
22402 echo "$as_me:$LINENO:" \
22403      "checking for C compiler version" >&5
22404 ac_compiler=`set X $ac_compile; echo $2`
22405 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22406   (eval $ac_compiler --version </dev/null >&5) 2>&5
22407   ac_status=$?
22408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409   (exit $ac_status); }
22410 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22411   (eval $ac_compiler -v </dev/null >&5) 2>&5
22412   ac_status=$?
22413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414   (exit $ac_status); }
22415 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22416   (eval $ac_compiler -V </dev/null >&5) 2>&5
22417   ac_status=$?
22418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419   (exit $ac_status); }
22420
22421 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22422 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22423 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22424   echo $ECHO_N "(cached) $ECHO_C" >&6
22425 else
22426   cat >conftest.$ac_ext <<_ACEOF
22427 /* confdefs.h.  */
22428 _ACEOF
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h.  */
22432
22433 int
22434 main ()
22435 {
22436 #ifndef __GNUC__
22437        choke me
22438 #endif
22439
22440   ;
22441   return 0;
22442 }
22443 _ACEOF
22444 rm -f conftest.$ac_objext
22445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22446   (eval $ac_compile) 2>conftest.er1
22447   ac_status=$?
22448   grep -v '^ *+' conftest.er1 >conftest.err
22449   rm -f conftest.er1
22450   cat conftest.err >&5
22451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452   (exit $ac_status); } &&
22453          { ac_try='test -z "$ac_c_werror_flag"
22454                          || test ! -s conftest.err'
22455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456   (eval $ac_try) 2>&5
22457   ac_status=$?
22458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459   (exit $ac_status); }; } &&
22460          { ac_try='test -s conftest.$ac_objext'
22461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22462   (eval $ac_try) 2>&5
22463   ac_status=$?
22464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465   (exit $ac_status); }; }; then
22466   ac_compiler_gnu=yes
22467 else
22468   echo "$as_me: failed program was:" >&5
22469 sed 's/^/| /' conftest.$ac_ext >&5
22470
22471 ac_compiler_gnu=no
22472 fi
22473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22474 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22475
22476 fi
22477 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22478 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22479 GCC=`test $ac_compiler_gnu = yes && echo yes`
22480 ac_test_CFLAGS=${CFLAGS+set}
22481 ac_save_CFLAGS=$CFLAGS
22482 CFLAGS="-g"
22483 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22484 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22485 if test "${ac_cv_prog_cc_g+set}" = set; then
22486   echo $ECHO_N "(cached) $ECHO_C" >&6
22487 else
22488   cat >conftest.$ac_ext <<_ACEOF
22489 /* confdefs.h.  */
22490 _ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h.  */
22494
22495 int
22496 main ()
22497 {
22498
22499   ;
22500   return 0;
22501 }
22502 _ACEOF
22503 rm -f conftest.$ac_objext
22504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22505   (eval $ac_compile) 2>conftest.er1
22506   ac_status=$?
22507   grep -v '^ *+' conftest.er1 >conftest.err
22508   rm -f conftest.er1
22509   cat conftest.err >&5
22510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511   (exit $ac_status); } &&
22512          { ac_try='test -z "$ac_c_werror_flag"
22513                          || test ! -s conftest.err'
22514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515   (eval $ac_try) 2>&5
22516   ac_status=$?
22517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518   (exit $ac_status); }; } &&
22519          { ac_try='test -s conftest.$ac_objext'
22520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22521   (eval $ac_try) 2>&5
22522   ac_status=$?
22523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524   (exit $ac_status); }; }; then
22525   ac_cv_prog_cc_g=yes
22526 else
22527   echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22529
22530 ac_cv_prog_cc_g=no
22531 fi
22532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22533 fi
22534 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22535 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22536 if test "$ac_test_CFLAGS" = set; then
22537   CFLAGS=$ac_save_CFLAGS
22538 elif test $ac_cv_prog_cc_g = yes; then
22539   if test "$GCC" = yes; then
22540     CFLAGS="-g -O2"
22541   else
22542     CFLAGS="-g"
22543   fi
22544 else
22545   if test "$GCC" = yes; then
22546     CFLAGS="-O2"
22547   else
22548     CFLAGS=
22549   fi
22550 fi
22551 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22552 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22553 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22554   echo $ECHO_N "(cached) $ECHO_C" >&6
22555 else
22556   ac_cv_prog_cc_stdc=no
22557 ac_save_CC=$CC
22558 cat >conftest.$ac_ext <<_ACEOF
22559 /* confdefs.h.  */
22560 _ACEOF
22561 cat confdefs.h >>conftest.$ac_ext
22562 cat >>conftest.$ac_ext <<_ACEOF
22563 /* end confdefs.h.  */
22564 #include <stdarg.h>
22565 #include <stdio.h>
22566 #include <sys/types.h>
22567 #include <sys/stat.h>
22568 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
22569 struct buf { int x; };
22570 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22571 static char *e (p, i)
22572      char **p;
22573      int i;
22574 {
22575   return p[i];
22576 }
22577 static char *f (char * (*g) (char **, int), char **p, ...)
22578 {
22579   char *s;
22580   va_list v;
22581   va_start (v,p);
22582   s = g (p, va_arg (v,int));
22583   va_end (v);
22584   return s;
22585 }
22586
22587 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
22588    function prototypes and stuff, but not '\xHH' hex character constants.
22589    These don't provoke an error unfortunately, instead are silently treated
22590    as 'x'.  The following induces an error, until -std1 is added to get
22591    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
22592    array size at least.  It's necessary to write '\x00'==0 to get something
22593    that's true only with -std1.  */
22594 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22595
22596 int test (int i, double x);
22597 struct s1 {int (*f) (int a);};
22598 struct s2 {int (*f) (double a);};
22599 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22600 int argc;
22601 char **argv;
22602 int
22603 main ()
22604 {
22605 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
22606   ;
22607   return 0;
22608 }
22609 _ACEOF
22610 # Don't try gcc -ansi; that turns off useful extensions and
22611 # breaks some systems' header files.
22612 # AIX                   -qlanglvl=ansi
22613 # Ultrix and OSF/1      -std1
22614 # HP-UX 10.20 and later -Ae
22615 # HP-UX older versions  -Aa -D_HPUX_SOURCE
22616 # SVR4                  -Xc -D__EXTENSIONS__
22617 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22618 do
22619   CC="$ac_save_CC $ac_arg"
22620   rm -f conftest.$ac_objext
22621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22622   (eval $ac_compile) 2>conftest.er1
22623   ac_status=$?
22624   grep -v '^ *+' conftest.er1 >conftest.err
22625   rm -f conftest.er1
22626   cat conftest.err >&5
22627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628   (exit $ac_status); } &&
22629          { ac_try='test -z "$ac_c_werror_flag"
22630                          || test ! -s conftest.err'
22631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22632   (eval $ac_try) 2>&5
22633   ac_status=$?
22634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635   (exit $ac_status); }; } &&
22636          { ac_try='test -s conftest.$ac_objext'
22637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22638   (eval $ac_try) 2>&5
22639   ac_status=$?
22640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641   (exit $ac_status); }; }; then
22642   ac_cv_prog_cc_stdc=$ac_arg
22643 break
22644 else
22645   echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.$ac_ext >&5
22647
22648 fi
22649 rm -f conftest.err conftest.$ac_objext
22650 done
22651 rm -f conftest.$ac_ext conftest.$ac_objext
22652 CC=$ac_save_CC
22653
22654 fi
22655
22656 case "x$ac_cv_prog_cc_stdc" in
22657   x|xno)
22658     echo "$as_me:$LINENO: result: none needed" >&5
22659 echo "${ECHO_T}none needed" >&6 ;;
22660   *)
22661     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22662 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22663     CC="$CC $ac_cv_prog_cc_stdc" ;;
22664 esac
22665
22666 # Some people use a C++ compiler to compile C.  Since we use `exit',
22667 # in C++ we need to declare it.  In case someone uses the same compiler
22668 # for both compiling C and C++ we need to have the C++ compiler decide
22669 # the declaration of exit, since it's the most demanding environment.
22670 cat >conftest.$ac_ext <<_ACEOF
22671 #ifndef __cplusplus
22672   choke me
22673 #endif
22674 _ACEOF
22675 rm -f conftest.$ac_objext
22676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22677   (eval $ac_compile) 2>conftest.er1
22678   ac_status=$?
22679   grep -v '^ *+' conftest.er1 >conftest.err
22680   rm -f conftest.er1
22681   cat conftest.err >&5
22682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683   (exit $ac_status); } &&
22684          { ac_try='test -z "$ac_c_werror_flag"
22685                          || test ! -s conftest.err'
22686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22687   (eval $ac_try) 2>&5
22688   ac_status=$?
22689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690   (exit $ac_status); }; } &&
22691          { ac_try='test -s conftest.$ac_objext'
22692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22693   (eval $ac_try) 2>&5
22694   ac_status=$?
22695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696   (exit $ac_status); }; }; then
22697   for ac_declaration in \
22698    '' \
22699    'extern "C" void std::exit (int) throw (); using std::exit;' \
22700    'extern "C" void std::exit (int); using std::exit;' \
22701    'extern "C" void exit (int) throw ();' \
22702    'extern "C" void exit (int);' \
22703    'void exit (int);'
22704 do
22705   cat >conftest.$ac_ext <<_ACEOF
22706 /* confdefs.h.  */
22707 _ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h.  */
22711 $ac_declaration
22712 #include <stdlib.h>
22713 int
22714 main ()
22715 {
22716 exit (42);
22717   ;
22718   return 0;
22719 }
22720 _ACEOF
22721 rm -f conftest.$ac_objext
22722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22723   (eval $ac_compile) 2>conftest.er1
22724   ac_status=$?
22725   grep -v '^ *+' conftest.er1 >conftest.err
22726   rm -f conftest.er1
22727   cat conftest.err >&5
22728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729   (exit $ac_status); } &&
22730          { ac_try='test -z "$ac_c_werror_flag"
22731                          || test ! -s conftest.err'
22732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22733   (eval $ac_try) 2>&5
22734   ac_status=$?
22735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736   (exit $ac_status); }; } &&
22737          { ac_try='test -s conftest.$ac_objext'
22738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739   (eval $ac_try) 2>&5
22740   ac_status=$?
22741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742   (exit $ac_status); }; }; then
22743   :
22744 else
22745   echo "$as_me: failed program was:" >&5
22746 sed 's/^/| /' conftest.$ac_ext >&5
22747
22748 continue
22749 fi
22750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22751   cat >conftest.$ac_ext <<_ACEOF
22752 /* confdefs.h.  */
22753 _ACEOF
22754 cat confdefs.h >>conftest.$ac_ext
22755 cat >>conftest.$ac_ext <<_ACEOF
22756 /* end confdefs.h.  */
22757 $ac_declaration
22758 int
22759 main ()
22760 {
22761 exit (42);
22762   ;
22763   return 0;
22764 }
22765 _ACEOF
22766 rm -f conftest.$ac_objext
22767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22768   (eval $ac_compile) 2>conftest.er1
22769   ac_status=$?
22770   grep -v '^ *+' conftest.er1 >conftest.err
22771   rm -f conftest.er1
22772   cat conftest.err >&5
22773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774   (exit $ac_status); } &&
22775          { ac_try='test -z "$ac_c_werror_flag"
22776                          || test ! -s conftest.err'
22777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22778   (eval $ac_try) 2>&5
22779   ac_status=$?
22780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781   (exit $ac_status); }; } &&
22782          { ac_try='test -s conftest.$ac_objext'
22783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22784   (eval $ac_try) 2>&5
22785   ac_status=$?
22786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787   (exit $ac_status); }; }; then
22788   break
22789 else
22790   echo "$as_me: failed program was:" >&5
22791 sed 's/^/| /' conftest.$ac_ext >&5
22792
22793 fi
22794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22795 done
22796 rm -f conftest*
22797 if test -n "$ac_declaration"; then
22798   echo '#ifdef __cplusplus' >>confdefs.h
22799   echo $ac_declaration      >>confdefs.h
22800   echo '#endif'             >>confdefs.h
22801 fi
22802
22803 else
22804   echo "$as_me: failed program was:" >&5
22805 sed 's/^/| /' conftest.$ac_ext >&5
22806
22807 fi
22808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22809 ac_ext=c
22810 ac_cpp='$CPP $CPPFLAGS'
22811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22814
22815 depcc="$CC"   am_compiler_list=
22816
22817 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22818 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22819 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22820   echo $ECHO_N "(cached) $ECHO_C" >&6
22821 else
22822   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22823   # We make a subdir and do the tests there.  Otherwise we can end up
22824   # making bogus files that we don't know about and never remove.  For
22825   # instance it was reported that on HP-UX the gcc test will end up
22826   # making a dummy file named `D' -- because `-MD' means `put the output
22827   # in D'.
22828   mkdir conftest.dir
22829   # Copy depcomp to subdir because otherwise we won't find it if we're
22830   # using a relative directory.
22831   cp "$am_depcomp" conftest.dir
22832   cd conftest.dir
22833   # We will build objects and dependencies in a subdirectory because
22834   # it helps to detect inapplicable dependency modes.  For instance
22835   # both Tru64's cc and ICC support -MD to output dependencies as a
22836   # side effect of compilation, but ICC will put the dependencies in
22837   # the current directory while Tru64 will put them in the object
22838   # directory.
22839   mkdir sub
22840
22841   am_cv_CC_dependencies_compiler_type=none
22842   if test "$am_compiler_list" = ""; then
22843      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22844   fi
22845   for depmode in $am_compiler_list; do
22846     # Setup a source with many dependencies, because some compilers
22847     # like to wrap large dependency lists on column 80 (with \), and
22848     # we should not choose a depcomp mode which is confused by this.
22849     #
22850     # We need to recreate these files for each test, as the compiler may
22851     # overwrite some of them when testing with obscure command lines.
22852     # This happens at least with the AIX C compiler.
22853     : > sub/conftest.c
22854     for i in 1 2 3 4 5 6; do
22855       echo '#include "conftst'$i'.h"' >> sub/conftest.c
22856       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22857       # Solaris 8's {/usr,}/bin/sh.
22858       touch sub/conftst$i.h
22859     done
22860     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22861
22862     case $depmode in
22863     nosideeffect)
22864       # after this tag, mechanisms are not by side-effect, so they'll
22865       # only be used when explicitly requested
22866       if test "x$enable_dependency_tracking" = xyes; then
22867         continue
22868       else
22869         break
22870       fi
22871       ;;
22872     none) break ;;
22873     esac
22874     # We check with `-c' and `-o' for the sake of the "dashmstdout"
22875     # mode.  It turns out that the SunPro C++ compiler does not properly
22876     # handle `-M -o', and we need to detect this.
22877     if depmode=$depmode \
22878        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22879        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22880        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22881          >/dev/null 2>conftest.err &&
22882        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22883        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22884        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22885       # icc doesn't choke on unknown options, it will just issue warnings
22886       # or remarks (even with -Werror).  So we grep stderr for any message
22887       # that says an option was ignored or not supported.
22888       # When given -MP, icc 7.0 and 7.1 complain thusly:
22889       #   icc: Command line warning: ignoring option '-M'; no argument required
22890       # The diagnosis changed in icc 8.0:
22891       #   icc: Command line remark: option '-MP' not supported
22892       if (grep 'ignoring option' conftest.err ||
22893           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22894         am_cv_CC_dependencies_compiler_type=$depmode
22895         break
22896       fi
22897     fi
22898   done
22899
22900   cd ..
22901   rm -rf conftest.dir
22902 else
22903   am_cv_CC_dependencies_compiler_type=none
22904 fi
22905
22906 fi
22907 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
22908 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
22909 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
22910
22911
22912
22913 if
22914   test "x$enable_dependency_tracking" != xno \
22915   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
22916   am__fastdepCC_TRUE=
22917   am__fastdepCC_FALSE='#'
22918 else
22919   am__fastdepCC_TRUE='#'
22920   am__fastdepCC_FALSE=
22921 fi
22922
22923
22924
22925 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
22926
22927 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
22928         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
22929 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
22930    { (exit 1); exit 1; }; }
22931 fi
22932
22933 # test for make depend flag
22934 OL_MKDEP=
22935 OL_MKDEP_FLAGS=
22936 if test -z "${MKDEP}"; then
22937         OL_MKDEP="${CC-cc}"
22938         if test -z "${MKDEP_FLAGS}"; then
22939                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
22940 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
22941 if test "${ol_cv_mkdep+set}" = set; then
22942   echo $ECHO_N "(cached) $ECHO_C" >&6
22943 else
22944
22945                         ol_cv_mkdep=no
22946                         for flag in "-M" "-xM"; do
22947                                 cat > conftest.c <<EOF
22948  noCode;
22949 EOF
22950                                 if { ac_try='$OL_MKDEP $flag conftest.c'
22951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952   (eval $ac_try) 2>&5
22953   ac_status=$?
22954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955   (exit $ac_status); }; } \
22956                                         | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
22957                                 then
22958                                         if test ! -f conftest."${ac_object}" ; then
22959                                                 ol_cv_mkdep=$flag
22960                                                 OL_MKDEP_FLAGS="$flag"
22961                                                 break
22962                                         fi
22963                                 fi
22964                         done
22965                         rm -f conftest*
22966
22967 fi
22968 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
22969 echo "${ECHO_T}$ol_cv_mkdep" >&6
22970         else
22971                 cc_cv_mkdep=yes
22972                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22973         fi
22974 else
22975         cc_cv_mkdep=yes
22976         OL_MKDEP="${MKDEP}"
22977         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22978 fi
22979
22980
22981
22982 if test "${ol_cv_mkdep}" = no ; then
22983         # this will soon become an error
22984         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
22985 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
22986 fi
22987
22988 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
22989 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
22990 if test "${ac_cv_lib_s_afopen+set}" = set; then
22991   echo $ECHO_N "(cached) $ECHO_C" >&6
22992 else
22993   ac_check_lib_save_LIBS=$LIBS
22994 LIBS="-ls  $LIBS"
22995 cat >conftest.$ac_ext <<_ACEOF
22996 /* confdefs.h.  */
22997 _ACEOF
22998 cat confdefs.h >>conftest.$ac_ext
22999 cat >>conftest.$ac_ext <<_ACEOF
23000 /* end confdefs.h.  */
23001
23002 /* Override any gcc2 internal prototype to avoid an error.  */
23003 #ifdef __cplusplus
23004 extern "C"
23005 #endif
23006 /* We use char because int might match the return type of a gcc2
23007    builtin and then its argument prototype would still apply.  */
23008 char afopen ();
23009 int
23010 main ()
23011 {
23012 afopen ();
23013   ;
23014   return 0;
23015 }
23016 _ACEOF
23017 rm -f conftest.$ac_objext conftest$ac_exeext
23018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23019   (eval $ac_link) 2>conftest.er1
23020   ac_status=$?
23021   grep -v '^ *+' conftest.er1 >conftest.err
23022   rm -f conftest.er1
23023   cat conftest.err >&5
23024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025   (exit $ac_status); } &&
23026          { ac_try='test -z "$ac_c_werror_flag"
23027                          || test ! -s conftest.err'
23028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23029   (eval $ac_try) 2>&5
23030   ac_status=$?
23031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032   (exit $ac_status); }; } &&
23033          { ac_try='test -s conftest$ac_exeext'
23034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23035   (eval $ac_try) 2>&5
23036   ac_status=$?
23037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038   (exit $ac_status); }; }; then
23039   ac_cv_lib_s_afopen=yes
23040 else
23041   echo "$as_me: failed program was:" >&5
23042 sed 's/^/| /' conftest.$ac_ext >&5
23043
23044 ac_cv_lib_s_afopen=no
23045 fi
23046 rm -f conftest.err conftest.$ac_objext \
23047       conftest$ac_exeext conftest.$ac_ext
23048 LIBS=$ac_check_lib_save_LIBS
23049 fi
23050 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23051 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23052 if test $ac_cv_lib_s_afopen = yes; then
23053
23054         AUTH_LIBS=-ls
23055
23056 cat >>confdefs.h <<\_ACEOF
23057 #define HAVE_AIX_SECURITY 1
23058 _ACEOF
23059
23060
23061 fi
23062
23063
23064 case "$target" in
23065 *-ibm-openedition)
23066         ac_cv_func_getopt=no
23067
23068 cat >>confdefs.h <<\_ACEOF
23069 #define BOTH_STRINGS_H 1
23070 _ACEOF
23071
23072         ;;
23073 esac
23074
23075 ol_link_modules=no
23076 WITH_MODULES_ENABLED=no
23077 if test $ol_enable_modules != no ; then
23078
23079 for ac_header in ltdl.h
23080 do
23081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23083   echo "$as_me:$LINENO: checking for $ac_header" >&5
23084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23086   echo $ECHO_N "(cached) $ECHO_C" >&6
23087 fi
23088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23090 else
23091   # Is the header compilable?
23092 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23094 cat >conftest.$ac_ext <<_ACEOF
23095 /* confdefs.h.  */
23096 _ACEOF
23097 cat confdefs.h >>conftest.$ac_ext
23098 cat >>conftest.$ac_ext <<_ACEOF
23099 /* end confdefs.h.  */
23100 $ac_includes_default
23101 #include <$ac_header>
23102 _ACEOF
23103 rm -f conftest.$ac_objext
23104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23105   (eval $ac_compile) 2>conftest.er1
23106   ac_status=$?
23107   grep -v '^ *+' conftest.er1 >conftest.err
23108   rm -f conftest.er1
23109   cat conftest.err >&5
23110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111   (exit $ac_status); } &&
23112          { ac_try='test -z "$ac_c_werror_flag"
23113                          || test ! -s conftest.err'
23114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23115   (eval $ac_try) 2>&5
23116   ac_status=$?
23117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118   (exit $ac_status); }; } &&
23119          { ac_try='test -s conftest.$ac_objext'
23120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23121   (eval $ac_try) 2>&5
23122   ac_status=$?
23123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124   (exit $ac_status); }; }; then
23125   ac_header_compiler=yes
23126 else
23127   echo "$as_me: failed program was:" >&5
23128 sed 's/^/| /' conftest.$ac_ext >&5
23129
23130 ac_header_compiler=no
23131 fi
23132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23134 echo "${ECHO_T}$ac_header_compiler" >&6
23135
23136 # Is the header present?
23137 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23139 cat >conftest.$ac_ext <<_ACEOF
23140 /* confdefs.h.  */
23141 _ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h.  */
23145 #include <$ac_header>
23146 _ACEOF
23147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23148   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23149   ac_status=$?
23150   grep -v '^ *+' conftest.er1 >conftest.err
23151   rm -f conftest.er1
23152   cat conftest.err >&5
23153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); } >/dev/null; then
23155   if test -s conftest.err; then
23156     ac_cpp_err=$ac_c_preproc_warn_flag
23157     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23158   else
23159     ac_cpp_err=
23160   fi
23161 else
23162   ac_cpp_err=yes
23163 fi
23164 if test -z "$ac_cpp_err"; then
23165   ac_header_preproc=yes
23166 else
23167   echo "$as_me: failed program was:" >&5
23168 sed 's/^/| /' conftest.$ac_ext >&5
23169
23170   ac_header_preproc=no
23171 fi
23172 rm -f conftest.err conftest.$ac_ext
23173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23174 echo "${ECHO_T}$ac_header_preproc" >&6
23175
23176 # So?  What about this header?
23177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23178   yes:no: )
23179     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23181     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23183     ac_header_preproc=yes
23184     ;;
23185   no:yes:* )
23186     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23188     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23189 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23190     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23192     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23193 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23196     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23198     (
23199       cat <<\_ASBOX
23200 ## ------------------------------------------ ##
23201 ## Report this to the AC_PACKAGE_NAME lists.  ##
23202 ## ------------------------------------------ ##
23203 _ASBOX
23204     ) |
23205       sed "s/^/$as_me: WARNING:     /" >&2
23206     ;;
23207 esac
23208 echo "$as_me:$LINENO: checking for $ac_header" >&5
23209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23211   echo $ECHO_N "(cached) $ECHO_C" >&6
23212 else
23213   eval "$as_ac_Header=\$ac_header_preproc"
23214 fi
23215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23217
23218 fi
23219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23220   cat >>confdefs.h <<_ACEOF
23221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23222 _ACEOF
23223
23224 fi
23225
23226 done
23227
23228
23229         if test $ac_cv_header_ltdl_h = no ; then
23230                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23231 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23232    { (exit 1); exit 1; }; }
23233         fi
23234
23235         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23236 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23237 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23238   echo $ECHO_N "(cached) $ECHO_C" >&6
23239 else
23240   ac_check_lib_save_LIBS=$LIBS
23241 LIBS="-lltdl  $LIBS"
23242 cat >conftest.$ac_ext <<_ACEOF
23243 /* confdefs.h.  */
23244 _ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h.  */
23248
23249 /* Override any gcc2 internal prototype to avoid an error.  */
23250 #ifdef __cplusplus
23251 extern "C"
23252 #endif
23253 /* We use char because int might match the return type of a gcc2
23254    builtin and then its argument prototype would still apply.  */
23255 char lt_dlinit ();
23256 int
23257 main ()
23258 {
23259 lt_dlinit ();
23260   ;
23261   return 0;
23262 }
23263 _ACEOF
23264 rm -f conftest.$ac_objext conftest$ac_exeext
23265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23266   (eval $ac_link) 2>conftest.er1
23267   ac_status=$?
23268   grep -v '^ *+' conftest.er1 >conftest.err
23269   rm -f conftest.er1
23270   cat conftest.err >&5
23271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272   (exit $ac_status); } &&
23273          { ac_try='test -z "$ac_c_werror_flag"
23274                          || test ! -s conftest.err'
23275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276   (eval $ac_try) 2>&5
23277   ac_status=$?
23278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279   (exit $ac_status); }; } &&
23280          { ac_try='test -s conftest$ac_exeext'
23281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23282   (eval $ac_try) 2>&5
23283   ac_status=$?
23284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285   (exit $ac_status); }; }; then
23286   ac_cv_lib_ltdl_lt_dlinit=yes
23287 else
23288   echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23290
23291 ac_cv_lib_ltdl_lt_dlinit=no
23292 fi
23293 rm -f conftest.err conftest.$ac_objext \
23294       conftest$ac_exeext conftest.$ac_ext
23295 LIBS=$ac_check_lib_save_LIBS
23296 fi
23297 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23298 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23299 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23300
23301                 MODULES_LIBS=-lltdl
23302
23303 cat >>confdefs.h <<\_ACEOF
23304 #define HAVE_LIBLTDL 1
23305 _ACEOF
23306
23307
23308 fi
23309
23310
23311         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23312                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23313 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23314    { (exit 1); exit 1; }; }
23315         fi
23316         ol_link_modules=yes
23317         WITH_MODULES_ENABLED=yes
23318
23319 else
23320         for i in $Backends; do
23321                 eval "ol_tmp=\$ol_enable_$i"
23322                 if test $ol_tmp = mod ; then
23323                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23324 echo "$as_me: WARNING: building static $i backend" >&2;}
23325                         eval "ol_enable_$i=yes"
23326                 fi
23327         done
23328         for i in $Overlays; do
23329                 eval "ol_tmp=\$ol_enable_$i"
23330                 if test $ol_tmp = mod ; then
23331                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23332 echo "$as_me: WARNING: building static $i overlay" >&2;}
23333                         eval "ol_enable_$i=yes"
23334                 fi
23335         done
23336 fi
23337
23338 # test for EBCDIC
23339 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23340 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23341 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23342   echo $ECHO_N "(cached) $ECHO_C" >&6
23343 else
23344
23345         cat >conftest.$ac_ext <<_ACEOF
23346 /* confdefs.h.  */
23347 _ACEOF
23348 cat confdefs.h >>conftest.$ac_ext
23349 cat >>conftest.$ac_ext <<_ACEOF
23350 /* end confdefs.h.  */
23351
23352 #if !('M' == 0xd4)
23353 #include <__ASCII__/generate_error.h>
23354 #endif
23355
23356 _ACEOF
23357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23358   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23359   ac_status=$?
23360   grep -v '^ *+' conftest.er1 >conftest.err
23361   rm -f conftest.er1
23362   cat conftest.err >&5
23363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364   (exit $ac_status); } >/dev/null; then
23365   if test -s conftest.err; then
23366     ac_cpp_err=$ac_c_preproc_warn_flag
23367     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23368   else
23369     ac_cpp_err=
23370   fi
23371 else
23372   ac_cpp_err=yes
23373 fi
23374 if test -z "$ac_cpp_err"; then
23375   ol_cv_cpp_ebcdic=yes
23376 else
23377   echo "$as_me: failed program was:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23379
23380   ol_cv_cpp_ebcdic=no
23381 fi
23382 rm -f conftest.err conftest.$ac_ext
23383 fi
23384 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23385 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23386 if test $ol_cv_cpp_ebcdic = yes ; then
23387
23388 cat >>confdefs.h <<\_ACEOF
23389 #define HAVE_EBCDIC 1
23390 _ACEOF
23391
23392 fi
23393
23394 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23395 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23396 if test "${ol_cv_header_stdc+set}" = set; then
23397   echo $ECHO_N "(cached) $ECHO_C" >&6
23398 else
23399   cat >conftest.$ac_ext <<_ACEOF
23400 /* confdefs.h.  */
23401 _ACEOF
23402 cat confdefs.h >>conftest.$ac_ext
23403 cat >>conftest.$ac_ext <<_ACEOF
23404 /* end confdefs.h.  */
23405 #include <stdlib.h>
23406 #include <stdarg.h>
23407 #include <string.h>
23408 #include <float.h>
23409 _ACEOF
23410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23411   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23412   ac_status=$?
23413   grep -v '^ *+' conftest.er1 >conftest.err
23414   rm -f conftest.er1
23415   cat conftest.err >&5
23416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417   (exit $ac_status); } >/dev/null; then
23418   if test -s conftest.err; then
23419     ac_cpp_err=$ac_c_preproc_warn_flag
23420     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23421   else
23422     ac_cpp_err=
23423   fi
23424 else
23425   ac_cpp_err=yes
23426 fi
23427 if test -z "$ac_cpp_err"; then
23428   ol_cv_header_stdc=yes
23429 else
23430   echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23432
23433   ol_cv_header_stdc=no
23434 fi
23435 rm -f conftest.err conftest.$ac_ext
23436
23437 if test $ol_cv_header_stdc = yes; then
23438   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23439 cat >conftest.$ac_ext <<_ACEOF
23440 /* confdefs.h.  */
23441 _ACEOF
23442 cat confdefs.h >>conftest.$ac_ext
23443 cat >>conftest.$ac_ext <<_ACEOF
23444 /* end confdefs.h.  */
23445 #include <string.h>
23446
23447 _ACEOF
23448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23449   $EGREP "memchr" >/dev/null 2>&1; then
23450   :
23451 else
23452   ol_cv_header_stdc=no
23453 fi
23454 rm -f conftest*
23455
23456 fi
23457
23458 if test $ol_cv_header_stdc = yes; then
23459   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23460 cat >conftest.$ac_ext <<_ACEOF
23461 /* confdefs.h.  */
23462 _ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h.  */
23466 #include <stdlib.h>
23467
23468 _ACEOF
23469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23470   $EGREP "free" >/dev/null 2>&1; then
23471   :
23472 else
23473   ol_cv_header_stdc=no
23474 fi
23475 rm -f conftest*
23476
23477 fi
23478
23479 if test $ol_cv_header_stdc = yes; then
23480   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23481 if test "$cross_compiling" = yes; then
23482   :
23483 else
23484   cat >conftest.$ac_ext <<_ACEOF
23485 /* confdefs.h.  */
23486 _ACEOF
23487 cat confdefs.h >>conftest.$ac_ext
23488 cat >>conftest.$ac_ext <<_ACEOF
23489 /* end confdefs.h.  */
23490 #include <ctype.h>
23491 #ifndef HAVE_EBCDIC
23492 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23493 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23494 #else
23495 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23496                 || ('j' <= (c) && (c) <= 'r') \
23497                 || ('s' <= (c) && (c) <= 'z'))
23498 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
23499 #endif
23500 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23501 int main () { int i; for (i = 0; i < 256; i++)
23502 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23503 exit (0); }
23504
23505 _ACEOF
23506 rm -f conftest$ac_exeext
23507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23508   (eval $ac_link) 2>&5
23509   ac_status=$?
23510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23513   (eval $ac_try) 2>&5
23514   ac_status=$?
23515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23516   (exit $ac_status); }; }; then
23517   :
23518 else
23519   echo "$as_me: program exited with status $ac_status" >&5
23520 echo "$as_me: failed program was:" >&5
23521 sed 's/^/| /' conftest.$ac_ext >&5
23522
23523 ( exit $ac_status )
23524 ol_cv_header_stdc=no
23525 fi
23526 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23527 fi
23528 fi
23529 fi
23530 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23531 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23532 if test $ol_cv_header_stdc = yes; then
23533   cat >>confdefs.h <<\_ACEOF
23534 #define STDC_HEADERS 1
23535 _ACEOF
23536
23537 fi
23538 ac_cv_header_stdc=disable
23539
23540
23541 if test $ol_cv_header_stdc != yes; then
23542         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23543 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23544 fi
23545
23546
23547
23548
23549
23550
23551 ac_header_dirent=no
23552 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23553   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23554 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23555 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23557   echo $ECHO_N "(cached) $ECHO_C" >&6
23558 else
23559   cat >conftest.$ac_ext <<_ACEOF
23560 /* confdefs.h.  */
23561 _ACEOF
23562 cat confdefs.h >>conftest.$ac_ext
23563 cat >>conftest.$ac_ext <<_ACEOF
23564 /* end confdefs.h.  */
23565 #include <sys/types.h>
23566 #include <$ac_hdr>
23567
23568 int
23569 main ()
23570 {
23571 if ((DIR *) 0)
23572 return 0;
23573   ;
23574   return 0;
23575 }
23576 _ACEOF
23577 rm -f conftest.$ac_objext
23578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23579   (eval $ac_compile) 2>conftest.er1
23580   ac_status=$?
23581   grep -v '^ *+' conftest.er1 >conftest.err
23582   rm -f conftest.er1
23583   cat conftest.err >&5
23584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585   (exit $ac_status); } &&
23586          { ac_try='test -z "$ac_c_werror_flag"
23587                          || test ! -s conftest.err'
23588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23589   (eval $ac_try) 2>&5
23590   ac_status=$?
23591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592   (exit $ac_status); }; } &&
23593          { ac_try='test -s conftest.$ac_objext'
23594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23595   (eval $ac_try) 2>&5
23596   ac_status=$?
23597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598   (exit $ac_status); }; }; then
23599   eval "$as_ac_Header=yes"
23600 else
23601   echo "$as_me: failed program was:" >&5
23602 sed 's/^/| /' conftest.$ac_ext >&5
23603
23604 eval "$as_ac_Header=no"
23605 fi
23606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23607 fi
23608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23611   cat >>confdefs.h <<_ACEOF
23612 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23613 _ACEOF
23614
23615 ac_header_dirent=$ac_hdr; break
23616 fi
23617
23618 done
23619 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23620 if test $ac_header_dirent = dirent.h; then
23621   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23622 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23623 if test "${ac_cv_search_opendir+set}" = set; then
23624   echo $ECHO_N "(cached) $ECHO_C" >&6
23625 else
23626   ac_func_search_save_LIBS=$LIBS
23627 ac_cv_search_opendir=no
23628 cat >conftest.$ac_ext <<_ACEOF
23629 /* confdefs.h.  */
23630 _ACEOF
23631 cat confdefs.h >>conftest.$ac_ext
23632 cat >>conftest.$ac_ext <<_ACEOF
23633 /* end confdefs.h.  */
23634
23635 /* Override any gcc2 internal prototype to avoid an error.  */
23636 #ifdef __cplusplus
23637 extern "C"
23638 #endif
23639 /* We use char because int might match the return type of a gcc2
23640    builtin and then its argument prototype would still apply.  */
23641 char opendir ();
23642 int
23643 main ()
23644 {
23645 opendir ();
23646   ;
23647   return 0;
23648 }
23649 _ACEOF
23650 rm -f conftest.$ac_objext conftest$ac_exeext
23651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23652   (eval $ac_link) 2>conftest.er1
23653   ac_status=$?
23654   grep -v '^ *+' conftest.er1 >conftest.err
23655   rm -f conftest.er1
23656   cat conftest.err >&5
23657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658   (exit $ac_status); } &&
23659          { ac_try='test -z "$ac_c_werror_flag"
23660                          || test ! -s conftest.err'
23661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23662   (eval $ac_try) 2>&5
23663   ac_status=$?
23664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665   (exit $ac_status); }; } &&
23666          { ac_try='test -s conftest$ac_exeext'
23667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23668   (eval $ac_try) 2>&5
23669   ac_status=$?
23670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671   (exit $ac_status); }; }; then
23672   ac_cv_search_opendir="none required"
23673 else
23674   echo "$as_me: failed program was:" >&5
23675 sed 's/^/| /' conftest.$ac_ext >&5
23676
23677 fi
23678 rm -f conftest.err conftest.$ac_objext \
23679       conftest$ac_exeext conftest.$ac_ext
23680 if test "$ac_cv_search_opendir" = no; then
23681   for ac_lib in dir; do
23682     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23683     cat >conftest.$ac_ext <<_ACEOF
23684 /* confdefs.h.  */
23685 _ACEOF
23686 cat confdefs.h >>conftest.$ac_ext
23687 cat >>conftest.$ac_ext <<_ACEOF
23688 /* end confdefs.h.  */
23689
23690 /* Override any gcc2 internal prototype to avoid an error.  */
23691 #ifdef __cplusplus
23692 extern "C"
23693 #endif
23694 /* We use char because int might match the return type of a gcc2
23695    builtin and then its argument prototype would still apply.  */
23696 char opendir ();
23697 int
23698 main ()
23699 {
23700 opendir ();
23701   ;
23702   return 0;
23703 }
23704 _ACEOF
23705 rm -f conftest.$ac_objext conftest$ac_exeext
23706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23707   (eval $ac_link) 2>conftest.er1
23708   ac_status=$?
23709   grep -v '^ *+' conftest.er1 >conftest.err
23710   rm -f conftest.er1
23711   cat conftest.err >&5
23712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713   (exit $ac_status); } &&
23714          { ac_try='test -z "$ac_c_werror_flag"
23715                          || test ! -s conftest.err'
23716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23717   (eval $ac_try) 2>&5
23718   ac_status=$?
23719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720   (exit $ac_status); }; } &&
23721          { ac_try='test -s conftest$ac_exeext'
23722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23723   (eval $ac_try) 2>&5
23724   ac_status=$?
23725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726   (exit $ac_status); }; }; then
23727   ac_cv_search_opendir="-l$ac_lib"
23728 break
23729 else
23730   echo "$as_me: failed program was:" >&5
23731 sed 's/^/| /' conftest.$ac_ext >&5
23732
23733 fi
23734 rm -f conftest.err conftest.$ac_objext \
23735       conftest$ac_exeext conftest.$ac_ext
23736   done
23737 fi
23738 LIBS=$ac_func_search_save_LIBS
23739 fi
23740 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23741 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23742 if test "$ac_cv_search_opendir" != no; then
23743   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23744
23745 fi
23746
23747 else
23748   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23749 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23750 if test "${ac_cv_search_opendir+set}" = set; then
23751   echo $ECHO_N "(cached) $ECHO_C" >&6
23752 else
23753   ac_func_search_save_LIBS=$LIBS
23754 ac_cv_search_opendir=no
23755 cat >conftest.$ac_ext <<_ACEOF
23756 /* confdefs.h.  */
23757 _ACEOF
23758 cat confdefs.h >>conftest.$ac_ext
23759 cat >>conftest.$ac_ext <<_ACEOF
23760 /* end confdefs.h.  */
23761
23762 /* Override any gcc2 internal prototype to avoid an error.  */
23763 #ifdef __cplusplus
23764 extern "C"
23765 #endif
23766 /* We use char because int might match the return type of a gcc2
23767    builtin and then its argument prototype would still apply.  */
23768 char opendir ();
23769 int
23770 main ()
23771 {
23772 opendir ();
23773   ;
23774   return 0;
23775 }
23776 _ACEOF
23777 rm -f conftest.$ac_objext conftest$ac_exeext
23778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23779   (eval $ac_link) 2>conftest.er1
23780   ac_status=$?
23781   grep -v '^ *+' conftest.er1 >conftest.err
23782   rm -f conftest.er1
23783   cat conftest.err >&5
23784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785   (exit $ac_status); } &&
23786          { ac_try='test -z "$ac_c_werror_flag"
23787                          || test ! -s conftest.err'
23788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23789   (eval $ac_try) 2>&5
23790   ac_status=$?
23791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792   (exit $ac_status); }; } &&
23793          { ac_try='test -s conftest$ac_exeext'
23794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23795   (eval $ac_try) 2>&5
23796   ac_status=$?
23797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798   (exit $ac_status); }; }; then
23799   ac_cv_search_opendir="none required"
23800 else
23801   echo "$as_me: failed program was:" >&5
23802 sed 's/^/| /' conftest.$ac_ext >&5
23803
23804 fi
23805 rm -f conftest.err conftest.$ac_objext \
23806       conftest$ac_exeext conftest.$ac_ext
23807 if test "$ac_cv_search_opendir" = no; then
23808   for ac_lib in x; do
23809     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23810     cat >conftest.$ac_ext <<_ACEOF
23811 /* confdefs.h.  */
23812 _ACEOF
23813 cat confdefs.h >>conftest.$ac_ext
23814 cat >>conftest.$ac_ext <<_ACEOF
23815 /* end confdefs.h.  */
23816
23817 /* Override any gcc2 internal prototype to avoid an error.  */
23818 #ifdef __cplusplus
23819 extern "C"
23820 #endif
23821 /* We use char because int might match the return type of a gcc2
23822    builtin and then its argument prototype would still apply.  */
23823 char opendir ();
23824 int
23825 main ()
23826 {
23827 opendir ();
23828   ;
23829   return 0;
23830 }
23831 _ACEOF
23832 rm -f conftest.$ac_objext conftest$ac_exeext
23833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23834   (eval $ac_link) 2>conftest.er1
23835   ac_status=$?
23836   grep -v '^ *+' conftest.er1 >conftest.err
23837   rm -f conftest.er1
23838   cat conftest.err >&5
23839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840   (exit $ac_status); } &&
23841          { ac_try='test -z "$ac_c_werror_flag"
23842                          || test ! -s conftest.err'
23843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23844   (eval $ac_try) 2>&5
23845   ac_status=$?
23846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847   (exit $ac_status); }; } &&
23848          { ac_try='test -s conftest$ac_exeext'
23849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23850   (eval $ac_try) 2>&5
23851   ac_status=$?
23852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853   (exit $ac_status); }; }; then
23854   ac_cv_search_opendir="-l$ac_lib"
23855 break
23856 else
23857   echo "$as_me: failed program was:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23859
23860 fi
23861 rm -f conftest.err conftest.$ac_objext \
23862       conftest$ac_exeext conftest.$ac_ext
23863   done
23864 fi
23865 LIBS=$ac_func_search_save_LIBS
23866 fi
23867 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23868 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23869 if test "$ac_cv_search_opendir" != no; then
23870   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23871
23872 fi
23873
23874 fi
23875
23876 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23877 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
23878 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23879   echo $ECHO_N "(cached) $ECHO_C" >&6
23880 else
23881   cat >conftest.$ac_ext <<_ACEOF
23882 /* confdefs.h.  */
23883 _ACEOF
23884 cat confdefs.h >>conftest.$ac_ext
23885 cat >>conftest.$ac_ext <<_ACEOF
23886 /* end confdefs.h.  */
23887 #include <sys/types.h>
23888 #include <sys/wait.h>
23889 #ifndef WEXITSTATUS
23890 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
23891 #endif
23892 #ifndef WIFEXITED
23893 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23894 #endif
23895
23896 int
23897 main ()
23898 {
23899   int s;
23900   wait (&s);
23901   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23902   ;
23903   return 0;
23904 }
23905 _ACEOF
23906 rm -f conftest.$ac_objext
23907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23908   (eval $ac_compile) 2>conftest.er1
23909   ac_status=$?
23910   grep -v '^ *+' conftest.er1 >conftest.err
23911   rm -f conftest.er1
23912   cat conftest.err >&5
23913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914   (exit $ac_status); } &&
23915          { ac_try='test -z "$ac_c_werror_flag"
23916                          || test ! -s conftest.err'
23917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23918   (eval $ac_try) 2>&5
23919   ac_status=$?
23920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921   (exit $ac_status); }; } &&
23922          { ac_try='test -s conftest.$ac_objext'
23923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23924   (eval $ac_try) 2>&5
23925   ac_status=$?
23926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927   (exit $ac_status); }; }; then
23928   ac_cv_header_sys_wait_h=yes
23929 else
23930   echo "$as_me: failed program was:" >&5
23931 sed 's/^/| /' conftest.$ac_ext >&5
23932
23933 ac_cv_header_sys_wait_h=no
23934 fi
23935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23936 fi
23937 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23938 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
23939 if test $ac_cv_header_sys_wait_h = yes; then
23940
23941 cat >>confdefs.h <<\_ACEOF
23942 #define HAVE_SYS_WAIT_H 1
23943 _ACEOF
23944
23945 fi
23946
23947 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
23948 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
23949 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
23950   echo $ECHO_N "(cached) $ECHO_C" >&6
23951 else
23952   cat >conftest.$ac_ext <<_ACEOF
23953 /* confdefs.h.  */
23954 _ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h.  */
23958 #include <sys/types.h>
23959 #include <termios.h>
23960 #ifdef TIOCGWINSZ
23961   yes
23962 #endif
23963
23964 _ACEOF
23965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23966   $EGREP "yes" >/dev/null 2>&1; then
23967   ac_cv_sys_tiocgwinsz_in_termios_h=yes
23968 else
23969   ac_cv_sys_tiocgwinsz_in_termios_h=no
23970 fi
23971 rm -f conftest*
23972
23973 fi
23974 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
23975 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
23976
23977 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
23978   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
23979 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
23980 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
23981   echo $ECHO_N "(cached) $ECHO_C" >&6
23982 else
23983   cat >conftest.$ac_ext <<_ACEOF
23984 /* confdefs.h.  */
23985 _ACEOF
23986 cat confdefs.h >>conftest.$ac_ext
23987 cat >>conftest.$ac_ext <<_ACEOF
23988 /* end confdefs.h.  */
23989 #include <sys/types.h>
23990 #include <sys/ioctl.h>
23991 #ifdef TIOCGWINSZ
23992   yes
23993 #endif
23994
23995 _ACEOF
23996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23997   $EGREP "yes" >/dev/null 2>&1; then
23998   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
23999 else
24000   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
24001 fi
24002 rm -f conftest*
24003
24004 fi
24005 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24006 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24007
24008   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24009
24010 cat >>confdefs.h <<\_ACEOF
24011 #define GWINSZ_IN_SYS_IOCTL 1
24012 _ACEOF
24013
24014   fi
24015 fi
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
24066
24067 for ac_header in \
24068         arpa/inet.h             \
24069         arpa/nameser.h          \
24070         assert.h                \
24071         bits/types.h            \
24072         conio.h                 \
24073         crypt.h                 \
24074         direct.h                \
24075         errno.h                 \
24076         fcntl.h                 \
24077         filio.h                 \
24078         getopt.h                \
24079         grp.h                   \
24080         io.h                    \
24081         libutil.h               \
24082         limits.h                \
24083         locale.h                \
24084         netinet/tcp.h           \
24085         malloc.h                \
24086         memory.h                \
24087         psap.h                  \
24088         pwd.h                   \
24089         process.h               \
24090         resolv.h                \
24091         sgtty.h                 \
24092         shadow.h                \
24093         stddef.h                \
24094         string.h                \
24095         strings.h               \
24096         sysexits.h              \
24097         sys/file.h              \
24098         sys/filio.h             \
24099         sys/errno.h             \
24100         sys/ioctl.h             \
24101         sys/param.h             \
24102         sys/resource.h          \
24103         sys/select.h            \
24104         sys/socket.h            \
24105         sys/stat.h              \
24106         sys/syslog.h            \
24107         sys/time.h              \
24108         sys/types.h             \
24109         sys/ucred.h             \
24110         sys/uio.h               \
24111         syslog.h                \
24112         termios.h               \
24113         unistd.h                \
24114         utime.h                 \
24115         winsock.h               \
24116         winsock2.h              \
24117
24118 do
24119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24121   echo "$as_me:$LINENO: checking for $ac_header" >&5
24122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24124   echo $ECHO_N "(cached) $ECHO_C" >&6
24125 fi
24126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24128 else
24129   # Is the header compilable?
24130 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24132 cat >conftest.$ac_ext <<_ACEOF
24133 /* confdefs.h.  */
24134 _ACEOF
24135 cat confdefs.h >>conftest.$ac_ext
24136 cat >>conftest.$ac_ext <<_ACEOF
24137 /* end confdefs.h.  */
24138 $ac_includes_default
24139 #include <$ac_header>
24140 _ACEOF
24141 rm -f conftest.$ac_objext
24142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24143   (eval $ac_compile) 2>conftest.er1
24144   ac_status=$?
24145   grep -v '^ *+' conftest.er1 >conftest.err
24146   rm -f conftest.er1
24147   cat conftest.err >&5
24148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149   (exit $ac_status); } &&
24150          { ac_try='test -z "$ac_c_werror_flag"
24151                          || test ! -s conftest.err'
24152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24153   (eval $ac_try) 2>&5
24154   ac_status=$?
24155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156   (exit $ac_status); }; } &&
24157          { ac_try='test -s conftest.$ac_objext'
24158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24159   (eval $ac_try) 2>&5
24160   ac_status=$?
24161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162   (exit $ac_status); }; }; then
24163   ac_header_compiler=yes
24164 else
24165   echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.$ac_ext >&5
24167
24168 ac_header_compiler=no
24169 fi
24170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24171 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24172 echo "${ECHO_T}$ac_header_compiler" >&6
24173
24174 # Is the header present?
24175 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24177 cat >conftest.$ac_ext <<_ACEOF
24178 /* confdefs.h.  */
24179 _ACEOF
24180 cat confdefs.h >>conftest.$ac_ext
24181 cat >>conftest.$ac_ext <<_ACEOF
24182 /* end confdefs.h.  */
24183 #include <$ac_header>
24184 _ACEOF
24185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24186   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24187   ac_status=$?
24188   grep -v '^ *+' conftest.er1 >conftest.err
24189   rm -f conftest.er1
24190   cat conftest.err >&5
24191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24192   (exit $ac_status); } >/dev/null; then
24193   if test -s conftest.err; then
24194     ac_cpp_err=$ac_c_preproc_warn_flag
24195     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24196   else
24197     ac_cpp_err=
24198   fi
24199 else
24200   ac_cpp_err=yes
24201 fi
24202 if test -z "$ac_cpp_err"; then
24203   ac_header_preproc=yes
24204 else
24205   echo "$as_me: failed program was:" >&5
24206 sed 's/^/| /' conftest.$ac_ext >&5
24207
24208   ac_header_preproc=no
24209 fi
24210 rm -f conftest.err conftest.$ac_ext
24211 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24212 echo "${ECHO_T}$ac_header_preproc" >&6
24213
24214 # So?  What about this header?
24215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24216   yes:no: )
24217     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24219     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24221     ac_header_preproc=yes
24222     ;;
24223   no:yes:* )
24224     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24226     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24227 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24228     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24230     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24231 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24232     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24234     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24236     (
24237       cat <<\_ASBOX
24238 ## ------------------------------------------ ##
24239 ## Report this to the AC_PACKAGE_NAME lists.  ##
24240 ## ------------------------------------------ ##
24241 _ASBOX
24242     ) |
24243       sed "s/^/$as_me: WARNING:     /" >&2
24244     ;;
24245 esac
24246 echo "$as_me:$LINENO: checking for $ac_header" >&5
24247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24249   echo $ECHO_N "(cached) $ECHO_C" >&6
24250 else
24251   eval "$as_ac_Header=\$ac_header_preproc"
24252 fi
24253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24255
24256 fi
24257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24258   cat >>confdefs.h <<_ACEOF
24259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24260 _ACEOF
24261
24262 fi
24263
24264 done
24265
24266
24267
24268
24269
24270 for ac_func in sigaction sigset
24271 do
24272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24273 echo "$as_me:$LINENO: checking for $ac_func" >&5
24274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24275 if eval "test \"\${$as_ac_var+set}\" = set"; then
24276   echo $ECHO_N "(cached) $ECHO_C" >&6
24277 else
24278   cat >conftest.$ac_ext <<_ACEOF
24279 /* confdefs.h.  */
24280 _ACEOF
24281 cat confdefs.h >>conftest.$ac_ext
24282 cat >>conftest.$ac_ext <<_ACEOF
24283 /* end confdefs.h.  */
24284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24286 #define $ac_func innocuous_$ac_func
24287
24288 /* System header to define __stub macros and hopefully few prototypes,
24289     which can conflict with char $ac_func (); below.
24290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24291     <limits.h> exists even on freestanding compilers.  */
24292
24293 #ifdef __STDC__
24294 # include <limits.h>
24295 #else
24296 # include <assert.h>
24297 #endif
24298
24299 #undef $ac_func
24300
24301 /* Override any gcc2 internal prototype to avoid an error.  */
24302 #ifdef __cplusplus
24303 extern "C"
24304 {
24305 #endif
24306 /* We use char because int might match the return type of a gcc2
24307    builtin and then its argument prototype would still apply.  */
24308 char $ac_func ();
24309 /* The GNU C library defines this for functions which it implements
24310     to always fail with ENOSYS.  Some functions are actually named
24311     something starting with __ and the normal name is an alias.  */
24312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24313 choke me
24314 #else
24315 char (*f) () = $ac_func;
24316 #endif
24317 #ifdef __cplusplus
24318 }
24319 #endif
24320
24321 int
24322 main ()
24323 {
24324 return f != $ac_func;
24325   ;
24326   return 0;
24327 }
24328 _ACEOF
24329 rm -f conftest.$ac_objext conftest$ac_exeext
24330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24331   (eval $ac_link) 2>conftest.er1
24332   ac_status=$?
24333   grep -v '^ *+' conftest.er1 >conftest.err
24334   rm -f conftest.er1
24335   cat conftest.err >&5
24336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337   (exit $ac_status); } &&
24338          { ac_try='test -z "$ac_c_werror_flag"
24339                          || test ! -s conftest.err'
24340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24341   (eval $ac_try) 2>&5
24342   ac_status=$?
24343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344   (exit $ac_status); }; } &&
24345          { ac_try='test -s conftest$ac_exeext'
24346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24347   (eval $ac_try) 2>&5
24348   ac_status=$?
24349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350   (exit $ac_status); }; }; then
24351   eval "$as_ac_var=yes"
24352 else
24353   echo "$as_me: failed program was:" >&5
24354 sed 's/^/| /' conftest.$ac_ext >&5
24355
24356 eval "$as_ac_var=no"
24357 fi
24358 rm -f conftest.err conftest.$ac_objext \
24359       conftest$ac_exeext conftest.$ac_ext
24360 fi
24361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24363 if test `eval echo '${'$as_ac_var'}'` = yes; then
24364   cat >>confdefs.h <<_ACEOF
24365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24366 _ACEOF
24367
24368 fi
24369 done
24370
24371
24372 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24373
24374 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24375 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24376 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24377   echo $ECHO_N "(cached) $ECHO_C" >&6
24378 else
24379   ac_check_lib_save_LIBS=$LIBS
24380 LIBS="-lV3  $LIBS"
24381 cat >conftest.$ac_ext <<_ACEOF
24382 /* confdefs.h.  */
24383 _ACEOF
24384 cat confdefs.h >>conftest.$ac_ext
24385 cat >>conftest.$ac_ext <<_ACEOF
24386 /* end confdefs.h.  */
24387
24388 /* Override any gcc2 internal prototype to avoid an error.  */
24389 #ifdef __cplusplus
24390 extern "C"
24391 #endif
24392 /* We use char because int might match the return type of a gcc2
24393    builtin and then its argument prototype would still apply.  */
24394 char sigset ();
24395 int
24396 main ()
24397 {
24398 sigset ();
24399   ;
24400   return 0;
24401 }
24402 _ACEOF
24403 rm -f conftest.$ac_objext conftest$ac_exeext
24404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24405   (eval $ac_link) 2>conftest.er1
24406   ac_status=$?
24407   grep -v '^ *+' conftest.er1 >conftest.err
24408   rm -f conftest.er1
24409   cat conftest.err >&5
24410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411   (exit $ac_status); } &&
24412          { ac_try='test -z "$ac_c_werror_flag"
24413                          || test ! -s conftest.err'
24414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24415   (eval $ac_try) 2>&5
24416   ac_status=$?
24417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418   (exit $ac_status); }; } &&
24419          { ac_try='test -s conftest$ac_exeext'
24420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24421   (eval $ac_try) 2>&5
24422   ac_status=$?
24423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424   (exit $ac_status); }; }; then
24425   ac_cv_lib_V3_sigset=yes
24426 else
24427   echo "$as_me: failed program was:" >&5
24428 sed 's/^/| /' conftest.$ac_ext >&5
24429
24430 ac_cv_lib_V3_sigset=no
24431 fi
24432 rm -f conftest.err conftest.$ac_objext \
24433       conftest$ac_exeext conftest.$ac_ext
24434 LIBS=$ac_check_lib_save_LIBS
24435 fi
24436 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24437 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24438 if test $ac_cv_lib_V3_sigset = yes; then
24439   cat >>confdefs.h <<_ACEOF
24440 #define HAVE_LIBV3 1
24441 _ACEOF
24442
24443   LIBS="-lV3 $LIBS"
24444
24445 fi
24446
24447 fi
24448
24449 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24450 echo "$as_me:$LINENO: checking for winsock" >&5
24451 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24452 if test "${ol_cv_winsock+set}" = set; then
24453   echo $ECHO_N "(cached) $ECHO_C" >&6
24454 else
24455   save_LIBS="$LIBS"
24456 for curlib in ws2_32 wsock32; do
24457         LIBS="$LIBS -l$curlib"
24458         cat >conftest.$ac_ext <<_ACEOF
24459 /* confdefs.h.  */
24460 _ACEOF
24461 cat confdefs.h >>conftest.$ac_ext
24462 cat >>conftest.$ac_ext <<_ACEOF
24463 /* end confdefs.h.  */
24464 #include <winsock.h>
24465
24466 int
24467 main ()
24468 {
24469
24470                         socket(0,0,0);
24471                         select(0,NULL,NULL,NULL,NULL);
24472                         closesocket(0);
24473                         gethostname(NULL,0);
24474
24475   ;
24476   return 0;
24477 }
24478 _ACEOF
24479 rm -f conftest.$ac_objext conftest$ac_exeext
24480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24481   (eval $ac_link) 2>conftest.er1
24482   ac_status=$?
24483   grep -v '^ *+' conftest.er1 >conftest.err
24484   rm -f conftest.er1
24485   cat conftest.err >&5
24486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487   (exit $ac_status); } &&
24488          { ac_try='test -z "$ac_c_werror_flag"
24489                          || test ! -s conftest.err'
24490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24491   (eval $ac_try) 2>&5
24492   ac_status=$?
24493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494   (exit $ac_status); }; } &&
24495          { ac_try='test -s conftest$ac_exeext'
24496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24497   (eval $ac_try) 2>&5
24498   ac_status=$?
24499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500   (exit $ac_status); }; }; then
24501   ol_cv_winsock=yes
24502 else
24503   echo "$as_me: failed program was:" >&5
24504 sed 's/^/| /' conftest.$ac_ext >&5
24505
24506 ol_cv_winsock=no
24507 fi
24508 rm -f conftest.err conftest.$ac_objext \
24509       conftest$ac_exeext conftest.$ac_ext
24510
24511         if test $ol_cv_winsock = yes; then
24512
24513 cat >>confdefs.h <<\_ACEOF
24514 #define HAVE_WINSOCK 1
24515 _ACEOF
24516
24517                 ac_cv_func_socket=yes
24518                 ac_cv_func_select=yes
24519                 ac_cv_func_closesocket=yes
24520                 ac_cv_func_gethostname=yes
24521                 if test $curlib = ws2_32; then
24522                         ol_cv_winsock=winsock2
24523
24524 cat >>confdefs.h <<\_ACEOF
24525 #define HAVE_WINSOCK2 1
24526 _ACEOF
24527
24528                 fi
24529                 break
24530         fi
24531         LIBS="$save_LIBS"
24532 done
24533 fi
24534 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24535 echo "${ECHO_T}$ol_cv_winsock" >&6
24536 fi
24537
24538
24539 echo "$as_me:$LINENO: checking for socket" >&5
24540 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24541 if test "${ac_cv_func_socket+set}" = set; then
24542   echo $ECHO_N "(cached) $ECHO_C" >&6
24543 else
24544   cat >conftest.$ac_ext <<_ACEOF
24545 /* confdefs.h.  */
24546 _ACEOF
24547 cat confdefs.h >>conftest.$ac_ext
24548 cat >>conftest.$ac_ext <<_ACEOF
24549 /* end confdefs.h.  */
24550 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24552 #define socket innocuous_socket
24553
24554 /* System header to define __stub macros and hopefully few prototypes,
24555     which can conflict with char socket (); below.
24556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24557     <limits.h> exists even on freestanding compilers.  */
24558
24559 #ifdef __STDC__
24560 # include <limits.h>
24561 #else
24562 # include <assert.h>
24563 #endif
24564
24565 #undef socket
24566
24567 /* Override any gcc2 internal prototype to avoid an error.  */
24568 #ifdef __cplusplus
24569 extern "C"
24570 {
24571 #endif
24572 /* We use char because int might match the return type of a gcc2
24573    builtin and then its argument prototype would still apply.  */
24574 char socket ();
24575 /* The GNU C library defines this for functions which it implements
24576     to always fail with ENOSYS.  Some functions are actually named
24577     something starting with __ and the normal name is an alias.  */
24578 #if defined (__stub_socket) || defined (__stub___socket)
24579 choke me
24580 #else
24581 char (*f) () = socket;
24582 #endif
24583 #ifdef __cplusplus
24584 }
24585 #endif
24586
24587 int
24588 main ()
24589 {
24590 return f != socket;
24591   ;
24592   return 0;
24593 }
24594 _ACEOF
24595 rm -f conftest.$ac_objext conftest$ac_exeext
24596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24597   (eval $ac_link) 2>conftest.er1
24598   ac_status=$?
24599   grep -v '^ *+' conftest.er1 >conftest.err
24600   rm -f conftest.er1
24601   cat conftest.err >&5
24602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24603   (exit $ac_status); } &&
24604          { ac_try='test -z "$ac_c_werror_flag"
24605                          || test ! -s conftest.err'
24606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24607   (eval $ac_try) 2>&5
24608   ac_status=$?
24609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610   (exit $ac_status); }; } &&
24611          { ac_try='test -s conftest$ac_exeext'
24612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24613   (eval $ac_try) 2>&5
24614   ac_status=$?
24615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616   (exit $ac_status); }; }; then
24617   ac_cv_func_socket=yes
24618 else
24619   echo "$as_me: failed program was:" >&5
24620 sed 's/^/| /' conftest.$ac_ext >&5
24621
24622 ac_cv_func_socket=no
24623 fi
24624 rm -f conftest.err conftest.$ac_objext \
24625       conftest$ac_exeext conftest.$ac_ext
24626 fi
24627 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24628 echo "${ECHO_T}$ac_cv_func_socket" >&6
24629 if test $ac_cv_func_socket = yes; then
24630   :
24631 else
24632
24633
24634 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24635 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24636 if test "${ac_cv_lib_socket_main+set}" = set; then
24637   echo $ECHO_N "(cached) $ECHO_C" >&6
24638 else
24639   ac_check_lib_save_LIBS=$LIBS
24640 LIBS="-lsocket  $LIBS"
24641 cat >conftest.$ac_ext <<_ACEOF
24642 /* confdefs.h.  */
24643 _ACEOF
24644 cat confdefs.h >>conftest.$ac_ext
24645 cat >>conftest.$ac_ext <<_ACEOF
24646 /* end confdefs.h.  */
24647
24648
24649 int
24650 main ()
24651 {
24652 main ();
24653   ;
24654   return 0;
24655 }
24656 _ACEOF
24657 rm -f conftest.$ac_objext conftest$ac_exeext
24658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24659   (eval $ac_link) 2>conftest.er1
24660   ac_status=$?
24661   grep -v '^ *+' conftest.er1 >conftest.err
24662   rm -f conftest.er1
24663   cat conftest.err >&5
24664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665   (exit $ac_status); } &&
24666          { ac_try='test -z "$ac_c_werror_flag"
24667                          || test ! -s conftest.err'
24668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24669   (eval $ac_try) 2>&5
24670   ac_status=$?
24671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672   (exit $ac_status); }; } &&
24673          { ac_try='test -s conftest$ac_exeext'
24674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24675   (eval $ac_try) 2>&5
24676   ac_status=$?
24677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678   (exit $ac_status); }; }; then
24679   ac_cv_lib_socket_main=yes
24680 else
24681   echo "$as_me: failed program was:" >&5
24682 sed 's/^/| /' conftest.$ac_ext >&5
24683
24684 ac_cv_lib_socket_main=no
24685 fi
24686 rm -f conftest.err conftest.$ac_objext \
24687       conftest$ac_exeext conftest.$ac_ext
24688 LIBS=$ac_check_lib_save_LIBS
24689 fi
24690 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24691 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24692 if test $ac_cv_lib_socket_main = yes; then
24693   cat >>confdefs.h <<_ACEOF
24694 #define HAVE_LIBSOCKET 1
24695 _ACEOF
24696
24697   LIBS="-lsocket $LIBS"
24698
24699 fi
24700
24701
24702 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24703 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24704 if test "${ac_cv_lib_net_main+set}" = set; then
24705   echo $ECHO_N "(cached) $ECHO_C" >&6
24706 else
24707   ac_check_lib_save_LIBS=$LIBS
24708 LIBS="-lnet  $LIBS"
24709 cat >conftest.$ac_ext <<_ACEOF
24710 /* confdefs.h.  */
24711 _ACEOF
24712 cat confdefs.h >>conftest.$ac_ext
24713 cat >>conftest.$ac_ext <<_ACEOF
24714 /* end confdefs.h.  */
24715
24716
24717 int
24718 main ()
24719 {
24720 main ();
24721   ;
24722   return 0;
24723 }
24724 _ACEOF
24725 rm -f conftest.$ac_objext conftest$ac_exeext
24726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24727   (eval $ac_link) 2>conftest.er1
24728   ac_status=$?
24729   grep -v '^ *+' conftest.er1 >conftest.err
24730   rm -f conftest.er1
24731   cat conftest.err >&5
24732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733   (exit $ac_status); } &&
24734          { ac_try='test -z "$ac_c_werror_flag"
24735                          || test ! -s conftest.err'
24736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24737   (eval $ac_try) 2>&5
24738   ac_status=$?
24739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740   (exit $ac_status); }; } &&
24741          { ac_try='test -s conftest$ac_exeext'
24742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24743   (eval $ac_try) 2>&5
24744   ac_status=$?
24745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746   (exit $ac_status); }; }; then
24747   ac_cv_lib_net_main=yes
24748 else
24749   echo "$as_me: failed program was:" >&5
24750 sed 's/^/| /' conftest.$ac_ext >&5
24751
24752 ac_cv_lib_net_main=no
24753 fi
24754 rm -f conftest.err conftest.$ac_objext \
24755       conftest$ac_exeext conftest.$ac_ext
24756 LIBS=$ac_check_lib_save_LIBS
24757 fi
24758 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
24759 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
24760 if test $ac_cv_lib_net_main = yes; then
24761   cat >>confdefs.h <<_ACEOF
24762 #define HAVE_LIBNET 1
24763 _ACEOF
24764
24765   LIBS="-lnet $LIBS"
24766
24767 fi
24768
24769
24770 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
24771 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
24772 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
24773   echo $ECHO_N "(cached) $ECHO_C" >&6
24774 else
24775   ac_check_lib_save_LIBS=$LIBS
24776 LIBS="-lnsl_s  $LIBS"
24777 cat >conftest.$ac_ext <<_ACEOF
24778 /* confdefs.h.  */
24779 _ACEOF
24780 cat confdefs.h >>conftest.$ac_ext
24781 cat >>conftest.$ac_ext <<_ACEOF
24782 /* end confdefs.h.  */
24783
24784
24785 int
24786 main ()
24787 {
24788 main ();
24789   ;
24790   return 0;
24791 }
24792 _ACEOF
24793 rm -f conftest.$ac_objext conftest$ac_exeext
24794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24795   (eval $ac_link) 2>conftest.er1
24796   ac_status=$?
24797   grep -v '^ *+' conftest.er1 >conftest.err
24798   rm -f conftest.er1
24799   cat conftest.err >&5
24800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801   (exit $ac_status); } &&
24802          { ac_try='test -z "$ac_c_werror_flag"
24803                          || test ! -s conftest.err'
24804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24805   (eval $ac_try) 2>&5
24806   ac_status=$?
24807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808   (exit $ac_status); }; } &&
24809          { ac_try='test -s conftest$ac_exeext'
24810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24811   (eval $ac_try) 2>&5
24812   ac_status=$?
24813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814   (exit $ac_status); }; }; then
24815   ac_cv_lib_nsl_s_main=yes
24816 else
24817   echo "$as_me: failed program was:" >&5
24818 sed 's/^/| /' conftest.$ac_ext >&5
24819
24820 ac_cv_lib_nsl_s_main=no
24821 fi
24822 rm -f conftest.err conftest.$ac_objext \
24823       conftest$ac_exeext conftest.$ac_ext
24824 LIBS=$ac_check_lib_save_LIBS
24825 fi
24826 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
24827 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
24828 if test $ac_cv_lib_nsl_s_main = yes; then
24829   cat >>confdefs.h <<_ACEOF
24830 #define HAVE_LIBNSL_S 1
24831 _ACEOF
24832
24833   LIBS="-lnsl_s $LIBS"
24834
24835 fi
24836
24837
24838 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24839 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24840 if test "${ac_cv_lib_nsl_main+set}" = set; then
24841   echo $ECHO_N "(cached) $ECHO_C" >&6
24842 else
24843   ac_check_lib_save_LIBS=$LIBS
24844 LIBS="-lnsl  $LIBS"
24845 cat >conftest.$ac_ext <<_ACEOF
24846 /* confdefs.h.  */
24847 _ACEOF
24848 cat confdefs.h >>conftest.$ac_ext
24849 cat >>conftest.$ac_ext <<_ACEOF
24850 /* end confdefs.h.  */
24851
24852
24853 int
24854 main ()
24855 {
24856 main ();
24857   ;
24858   return 0;
24859 }
24860 _ACEOF
24861 rm -f conftest.$ac_objext conftest$ac_exeext
24862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24863   (eval $ac_link) 2>conftest.er1
24864   ac_status=$?
24865   grep -v '^ *+' conftest.er1 >conftest.err
24866   rm -f conftest.er1
24867   cat conftest.err >&5
24868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869   (exit $ac_status); } &&
24870          { ac_try='test -z "$ac_c_werror_flag"
24871                          || test ! -s conftest.err'
24872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24873   (eval $ac_try) 2>&5
24874   ac_status=$?
24875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876   (exit $ac_status); }; } &&
24877          { ac_try='test -s conftest$ac_exeext'
24878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24879   (eval $ac_try) 2>&5
24880   ac_status=$?
24881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882   (exit $ac_status); }; }; then
24883   ac_cv_lib_nsl_main=yes
24884 else
24885   echo "$as_me: failed program was:" >&5
24886 sed 's/^/| /' conftest.$ac_ext >&5
24887
24888 ac_cv_lib_nsl_main=no
24889 fi
24890 rm -f conftest.err conftest.$ac_objext \
24891       conftest$ac_exeext conftest.$ac_ext
24892 LIBS=$ac_check_lib_save_LIBS
24893 fi
24894 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24895 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24896 if test $ac_cv_lib_nsl_main = yes; then
24897   cat >>confdefs.h <<_ACEOF
24898 #define HAVE_LIBNSL 1
24899 _ACEOF
24900
24901   LIBS="-lnsl $LIBS"
24902
24903 fi
24904
24905
24906 echo "$as_me:$LINENO: checking for socket in -linet" >&5
24907 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
24908 if test "${ac_cv_lib_inet_socket+set}" = set; then
24909   echo $ECHO_N "(cached) $ECHO_C" >&6
24910 else
24911   ac_check_lib_save_LIBS=$LIBS
24912 LIBS="-linet  $LIBS"
24913 cat >conftest.$ac_ext <<_ACEOF
24914 /* confdefs.h.  */
24915 _ACEOF
24916 cat confdefs.h >>conftest.$ac_ext
24917 cat >>conftest.$ac_ext <<_ACEOF
24918 /* end confdefs.h.  */
24919
24920 /* Override any gcc2 internal prototype to avoid an error.  */
24921 #ifdef __cplusplus
24922 extern "C"
24923 #endif
24924 /* We use char because int might match the return type of a gcc2
24925    builtin and then its argument prototype would still apply.  */
24926 char socket ();
24927 int
24928 main ()
24929 {
24930 socket ();
24931   ;
24932   return 0;
24933 }
24934 _ACEOF
24935 rm -f conftest.$ac_objext conftest$ac_exeext
24936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24937   (eval $ac_link) 2>conftest.er1
24938   ac_status=$?
24939   grep -v '^ *+' conftest.er1 >conftest.err
24940   rm -f conftest.er1
24941   cat conftest.err >&5
24942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24943   (exit $ac_status); } &&
24944          { ac_try='test -z "$ac_c_werror_flag"
24945                          || test ! -s conftest.err'
24946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24947   (eval $ac_try) 2>&5
24948   ac_status=$?
24949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950   (exit $ac_status); }; } &&
24951          { ac_try='test -s conftest$ac_exeext'
24952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24953   (eval $ac_try) 2>&5
24954   ac_status=$?
24955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956   (exit $ac_status); }; }; then
24957   ac_cv_lib_inet_socket=yes
24958 else
24959   echo "$as_me: failed program was:" >&5
24960 sed 's/^/| /' conftest.$ac_ext >&5
24961
24962 ac_cv_lib_inet_socket=no
24963 fi
24964 rm -f conftest.err conftest.$ac_objext \
24965       conftest$ac_exeext conftest.$ac_ext
24966 LIBS=$ac_check_lib_save_LIBS
24967 fi
24968 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
24969 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
24970 if test $ac_cv_lib_inet_socket = yes; then
24971   cat >>confdefs.h <<_ACEOF
24972 #define HAVE_LIBINET 1
24973 _ACEOF
24974
24975   LIBS="-linet $LIBS"
24976
24977 fi
24978
24979
24980 echo "$as_me:$LINENO: checking for main in -lgen" >&5
24981 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
24982 if test "${ac_cv_lib_gen_main+set}" = set; then
24983   echo $ECHO_N "(cached) $ECHO_C" >&6
24984 else
24985   ac_check_lib_save_LIBS=$LIBS
24986 LIBS="-lgen  $LIBS"
24987 cat >conftest.$ac_ext <<_ACEOF
24988 /* confdefs.h.  */
24989 _ACEOF
24990 cat confdefs.h >>conftest.$ac_ext
24991 cat >>conftest.$ac_ext <<_ACEOF
24992 /* end confdefs.h.  */
24993
24994
24995 int
24996 main ()
24997 {
24998 main ();
24999   ;
25000   return 0;
25001 }
25002 _ACEOF
25003 rm -f conftest.$ac_objext conftest$ac_exeext
25004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25005   (eval $ac_link) 2>conftest.er1
25006   ac_status=$?
25007   grep -v '^ *+' conftest.er1 >conftest.err
25008   rm -f conftest.er1
25009   cat conftest.err >&5
25010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011   (exit $ac_status); } &&
25012          { ac_try='test -z "$ac_c_werror_flag"
25013                          || test ! -s conftest.err'
25014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25015   (eval $ac_try) 2>&5
25016   ac_status=$?
25017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018   (exit $ac_status); }; } &&
25019          { ac_try='test -s conftest$ac_exeext'
25020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25021   (eval $ac_try) 2>&5
25022   ac_status=$?
25023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024   (exit $ac_status); }; }; then
25025   ac_cv_lib_gen_main=yes
25026 else
25027   echo "$as_me: failed program was:" >&5
25028 sed 's/^/| /' conftest.$ac_ext >&5
25029
25030 ac_cv_lib_gen_main=no
25031 fi
25032 rm -f conftest.err conftest.$ac_objext \
25033       conftest$ac_exeext conftest.$ac_ext
25034 LIBS=$ac_check_lib_save_LIBS
25035 fi
25036 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25037 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25038 if test $ac_cv_lib_gen_main = yes; then
25039   cat >>confdefs.h <<_ACEOF
25040 #define HAVE_LIBGEN 1
25041 _ACEOF
25042
25043   LIBS="-lgen $LIBS"
25044
25045 fi
25046
25047
25048 fi
25049
25050
25051 echo "$as_me:$LINENO: checking for select" >&5
25052 echo $ECHO_N "checking for select... $ECHO_C" >&6
25053 if test "${ac_cv_func_select+set}" = set; then
25054   echo $ECHO_N "(cached) $ECHO_C" >&6
25055 else
25056   cat >conftest.$ac_ext <<_ACEOF
25057 /* confdefs.h.  */
25058 _ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h.  */
25062 /* Define select to an innocuous variant, in case <limits.h> declares select.
25063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25064 #define select innocuous_select
25065
25066 /* System header to define __stub macros and hopefully few prototypes,
25067     which can conflict with char select (); below.
25068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25069     <limits.h> exists even on freestanding compilers.  */
25070
25071 #ifdef __STDC__
25072 # include <limits.h>
25073 #else
25074 # include <assert.h>
25075 #endif
25076
25077 #undef select
25078
25079 /* Override any gcc2 internal prototype to avoid an error.  */
25080 #ifdef __cplusplus
25081 extern "C"
25082 {
25083 #endif
25084 /* We use char because int might match the return type of a gcc2
25085    builtin and then its argument prototype would still apply.  */
25086 char select ();
25087 /* The GNU C library defines this for functions which it implements
25088     to always fail with ENOSYS.  Some functions are actually named
25089     something starting with __ and the normal name is an alias.  */
25090 #if defined (__stub_select) || defined (__stub___select)
25091 choke me
25092 #else
25093 char (*f) () = select;
25094 #endif
25095 #ifdef __cplusplus
25096 }
25097 #endif
25098
25099 int
25100 main ()
25101 {
25102 return f != select;
25103   ;
25104   return 0;
25105 }
25106 _ACEOF
25107 rm -f conftest.$ac_objext conftest$ac_exeext
25108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25109   (eval $ac_link) 2>conftest.er1
25110   ac_status=$?
25111   grep -v '^ *+' conftest.er1 >conftest.err
25112   rm -f conftest.er1
25113   cat conftest.err >&5
25114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115   (exit $ac_status); } &&
25116          { ac_try='test -z "$ac_c_werror_flag"
25117                          || test ! -s conftest.err'
25118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25119   (eval $ac_try) 2>&5
25120   ac_status=$?
25121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122   (exit $ac_status); }; } &&
25123          { ac_try='test -s conftest$ac_exeext'
25124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25125   (eval $ac_try) 2>&5
25126   ac_status=$?
25127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128   (exit $ac_status); }; }; then
25129   ac_cv_func_select=yes
25130 else
25131   echo "$as_me: failed program was:" >&5
25132 sed 's/^/| /' conftest.$ac_ext >&5
25133
25134 ac_cv_func_select=no
25135 fi
25136 rm -f conftest.err conftest.$ac_objext \
25137       conftest$ac_exeext conftest.$ac_ext
25138 fi
25139 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25140 echo "${ECHO_T}$ac_cv_func_select" >&6
25141 if test $ac_cv_func_select = yes; then
25142   :
25143 else
25144   { { echo "$as_me:$LINENO: error: select() required." >&5
25145 echo "$as_me: error: select() required." >&2;}
25146    { (exit 1); exit 1; }; }
25147 fi
25148
25149
25150 if test "${ac_cv_header_winsock_h}" != yes; then
25151
25152
25153 for ac_header in sys/select.h sys/socket.h
25154 do
25155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25157   echo "$as_me:$LINENO: checking for $ac_header" >&5
25158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25160   echo $ECHO_N "(cached) $ECHO_C" >&6
25161 fi
25162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25164 else
25165   # Is the header compilable?
25166 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25168 cat >conftest.$ac_ext <<_ACEOF
25169 /* confdefs.h.  */
25170 _ACEOF
25171 cat confdefs.h >>conftest.$ac_ext
25172 cat >>conftest.$ac_ext <<_ACEOF
25173 /* end confdefs.h.  */
25174 $ac_includes_default
25175 #include <$ac_header>
25176 _ACEOF
25177 rm -f conftest.$ac_objext
25178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25179   (eval $ac_compile) 2>conftest.er1
25180   ac_status=$?
25181   grep -v '^ *+' conftest.er1 >conftest.err
25182   rm -f conftest.er1
25183   cat conftest.err >&5
25184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185   (exit $ac_status); } &&
25186          { ac_try='test -z "$ac_c_werror_flag"
25187                          || test ! -s conftest.err'
25188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25189   (eval $ac_try) 2>&5
25190   ac_status=$?
25191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192   (exit $ac_status); }; } &&
25193          { ac_try='test -s conftest.$ac_objext'
25194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25195   (eval $ac_try) 2>&5
25196   ac_status=$?
25197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198   (exit $ac_status); }; }; then
25199   ac_header_compiler=yes
25200 else
25201   echo "$as_me: failed program was:" >&5
25202 sed 's/^/| /' conftest.$ac_ext >&5
25203
25204 ac_header_compiler=no
25205 fi
25206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25207 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25208 echo "${ECHO_T}$ac_header_compiler" >&6
25209
25210 # Is the header present?
25211 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25213 cat >conftest.$ac_ext <<_ACEOF
25214 /* confdefs.h.  */
25215 _ACEOF
25216 cat confdefs.h >>conftest.$ac_ext
25217 cat >>conftest.$ac_ext <<_ACEOF
25218 /* end confdefs.h.  */
25219 #include <$ac_header>
25220 _ACEOF
25221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25222   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25223   ac_status=$?
25224   grep -v '^ *+' conftest.er1 >conftest.err
25225   rm -f conftest.er1
25226   cat conftest.err >&5
25227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228   (exit $ac_status); } >/dev/null; then
25229   if test -s conftest.err; then
25230     ac_cpp_err=$ac_c_preproc_warn_flag
25231     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25232   else
25233     ac_cpp_err=
25234   fi
25235 else
25236   ac_cpp_err=yes
25237 fi
25238 if test -z "$ac_cpp_err"; then
25239   ac_header_preproc=yes
25240 else
25241   echo "$as_me: failed program was:" >&5
25242 sed 's/^/| /' conftest.$ac_ext >&5
25243
25244   ac_header_preproc=no
25245 fi
25246 rm -f conftest.err conftest.$ac_ext
25247 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25248 echo "${ECHO_T}$ac_header_preproc" >&6
25249
25250 # So?  What about this header?
25251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25252   yes:no: )
25253     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25257     ac_header_preproc=yes
25258     ;;
25259   no:yes:* )
25260     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25262     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25263 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25264     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25266     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25267 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25270     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25272     (
25273       cat <<\_ASBOX
25274 ## ------------------------------------------ ##
25275 ## Report this to the AC_PACKAGE_NAME lists.  ##
25276 ## ------------------------------------------ ##
25277 _ASBOX
25278     ) |
25279       sed "s/^/$as_me: WARNING:     /" >&2
25280     ;;
25281 esac
25282 echo "$as_me:$LINENO: checking for $ac_header" >&5
25283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25285   echo $ECHO_N "(cached) $ECHO_C" >&6
25286 else
25287   eval "$as_ac_Header=\$ac_header_preproc"
25288 fi
25289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25291
25292 fi
25293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25294   cat >>confdefs.h <<_ACEOF
25295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25296 _ACEOF
25297
25298 fi
25299
25300 done
25301
25302 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25303 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25304 if test "${ac_cv_func_select_args+set}" = set; then
25305   echo $ECHO_N "(cached) $ECHO_C" >&6
25306 else
25307   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25308  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25309   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25310    cat >conftest.$ac_ext <<_ACEOF
25311 /* confdefs.h.  */
25312 _ACEOF
25313 cat confdefs.h >>conftest.$ac_ext
25314 cat >>conftest.$ac_ext <<_ACEOF
25315 /* end confdefs.h.  */
25316 $ac_includes_default
25317 #if HAVE_SYS_SELECT_H
25318 # include <sys/select.h>
25319 #endif
25320 #if HAVE_SYS_SOCKET_H
25321 # include <sys/socket.h>
25322 #endif
25323
25324 int
25325 main ()
25326 {
25327 extern int select ($ac_arg1,
25328                                             $ac_arg234, $ac_arg234, $ac_arg234,
25329                                             $ac_arg5);
25330   ;
25331   return 0;
25332 }
25333 _ACEOF
25334 rm -f conftest.$ac_objext
25335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25336   (eval $ac_compile) 2>conftest.er1
25337   ac_status=$?
25338   grep -v '^ *+' conftest.er1 >conftest.err
25339   rm -f conftest.er1
25340   cat conftest.err >&5
25341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342   (exit $ac_status); } &&
25343          { ac_try='test -z "$ac_c_werror_flag"
25344                          || test ! -s conftest.err'
25345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25346   (eval $ac_try) 2>&5
25347   ac_status=$?
25348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349   (exit $ac_status); }; } &&
25350          { ac_try='test -s conftest.$ac_objext'
25351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25352   (eval $ac_try) 2>&5
25353   ac_status=$?
25354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355   (exit $ac_status); }; }; then
25356   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25357 else
25358   echo "$as_me: failed program was:" >&5
25359 sed 's/^/| /' conftest.$ac_ext >&5
25360
25361 fi
25362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25363   done
25364  done
25365 done
25366 # Provide a safe default value.
25367 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25368
25369 fi
25370 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25371 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25372 ac_save_IFS=$IFS; IFS=','
25373 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25374 IFS=$ac_save_IFS
25375 shift
25376
25377 cat >>confdefs.h <<_ACEOF
25378 #define SELECT_TYPE_ARG1 $1
25379 _ACEOF
25380
25381
25382 cat >>confdefs.h <<_ACEOF
25383 #define SELECT_TYPE_ARG234 ($2)
25384 _ACEOF
25385
25386
25387 cat >>confdefs.h <<_ACEOF
25388 #define SELECT_TYPE_ARG5 ($3)
25389 _ACEOF
25390
25391 rm -f conftest*
25392
25393 fi
25394
25395
25396
25397 for ac_func in poll
25398 do
25399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25400 echo "$as_me:$LINENO: checking for $ac_func" >&5
25401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25402 if eval "test \"\${$as_ac_var+set}\" = set"; then
25403   echo $ECHO_N "(cached) $ECHO_C" >&6
25404 else
25405   cat >conftest.$ac_ext <<_ACEOF
25406 /* confdefs.h.  */
25407 _ACEOF
25408 cat confdefs.h >>conftest.$ac_ext
25409 cat >>conftest.$ac_ext <<_ACEOF
25410 /* end confdefs.h.  */
25411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25412    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25413 #define $ac_func innocuous_$ac_func
25414
25415 /* System header to define __stub macros and hopefully few prototypes,
25416     which can conflict with char $ac_func (); below.
25417     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25418     <limits.h> exists even on freestanding compilers.  */
25419
25420 #ifdef __STDC__
25421 # include <limits.h>
25422 #else
25423 # include <assert.h>
25424 #endif
25425
25426 #undef $ac_func
25427
25428 /* Override any gcc2 internal prototype to avoid an error.  */
25429 #ifdef __cplusplus
25430 extern "C"
25431 {
25432 #endif
25433 /* We use char because int might match the return type of a gcc2
25434    builtin and then its argument prototype would still apply.  */
25435 char $ac_func ();
25436 /* The GNU C library defines this for functions which it implements
25437     to always fail with ENOSYS.  Some functions are actually named
25438     something starting with __ and the normal name is an alias.  */
25439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25440 choke me
25441 #else
25442 char (*f) () = $ac_func;
25443 #endif
25444 #ifdef __cplusplus
25445 }
25446 #endif
25447
25448 int
25449 main ()
25450 {
25451 return f != $ac_func;
25452   ;
25453   return 0;
25454 }
25455 _ACEOF
25456 rm -f conftest.$ac_objext conftest$ac_exeext
25457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25458   (eval $ac_link) 2>conftest.er1
25459   ac_status=$?
25460   grep -v '^ *+' conftest.er1 >conftest.err
25461   rm -f conftest.er1
25462   cat conftest.err >&5
25463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464   (exit $ac_status); } &&
25465          { ac_try='test -z "$ac_c_werror_flag"
25466                          || test ! -s conftest.err'
25467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25468   (eval $ac_try) 2>&5
25469   ac_status=$?
25470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471   (exit $ac_status); }; } &&
25472          { ac_try='test -s conftest$ac_exeext'
25473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25474   (eval $ac_try) 2>&5
25475   ac_status=$?
25476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477   (exit $ac_status); }; }; then
25478   eval "$as_ac_var=yes"
25479 else
25480   echo "$as_me: failed program was:" >&5
25481 sed 's/^/| /' conftest.$ac_ext >&5
25482
25483 eval "$as_ac_var=no"
25484 fi
25485 rm -f conftest.err conftest.$ac_objext \
25486       conftest$ac_exeext conftest.$ac_ext
25487 fi
25488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25489 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25490 if test `eval echo '${'$as_ac_var'}'` = yes; then
25491   cat >>confdefs.h <<_ACEOF
25492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25493 _ACEOF
25494
25495 fi
25496 done
25497
25498
25499 for ac_header in poll.h
25500 do
25501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25503   echo "$as_me:$LINENO: checking for $ac_header" >&5
25504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25506   echo $ECHO_N "(cached) $ECHO_C" >&6
25507 fi
25508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25510 else
25511   # Is the header compilable?
25512 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25514 cat >conftest.$ac_ext <<_ACEOF
25515 /* confdefs.h.  */
25516 _ACEOF
25517 cat confdefs.h >>conftest.$ac_ext
25518 cat >>conftest.$ac_ext <<_ACEOF
25519 /* end confdefs.h.  */
25520 $ac_includes_default
25521 #include <$ac_header>
25522 _ACEOF
25523 rm -f conftest.$ac_objext
25524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25525   (eval $ac_compile) 2>conftest.er1
25526   ac_status=$?
25527   grep -v '^ *+' conftest.er1 >conftest.err
25528   rm -f conftest.er1
25529   cat conftest.err >&5
25530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531   (exit $ac_status); } &&
25532          { ac_try='test -z "$ac_c_werror_flag"
25533                          || test ! -s conftest.err'
25534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25535   (eval $ac_try) 2>&5
25536   ac_status=$?
25537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538   (exit $ac_status); }; } &&
25539          { ac_try='test -s conftest.$ac_objext'
25540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25541   (eval $ac_try) 2>&5
25542   ac_status=$?
25543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25544   (exit $ac_status); }; }; then
25545   ac_header_compiler=yes
25546 else
25547   echo "$as_me: failed program was:" >&5
25548 sed 's/^/| /' conftest.$ac_ext >&5
25549
25550 ac_header_compiler=no
25551 fi
25552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25554 echo "${ECHO_T}$ac_header_compiler" >&6
25555
25556 # Is the header present?
25557 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25559 cat >conftest.$ac_ext <<_ACEOF
25560 /* confdefs.h.  */
25561 _ACEOF
25562 cat confdefs.h >>conftest.$ac_ext
25563 cat >>conftest.$ac_ext <<_ACEOF
25564 /* end confdefs.h.  */
25565 #include <$ac_header>
25566 _ACEOF
25567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25568   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25569   ac_status=$?
25570   grep -v '^ *+' conftest.er1 >conftest.err
25571   rm -f conftest.er1
25572   cat conftest.err >&5
25573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574   (exit $ac_status); } >/dev/null; then
25575   if test -s conftest.err; then
25576     ac_cpp_err=$ac_c_preproc_warn_flag
25577     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25578   else
25579     ac_cpp_err=
25580   fi
25581 else
25582   ac_cpp_err=yes
25583 fi
25584 if test -z "$ac_cpp_err"; then
25585   ac_header_preproc=yes
25586 else
25587   echo "$as_me: failed program was:" >&5
25588 sed 's/^/| /' conftest.$ac_ext >&5
25589
25590   ac_header_preproc=no
25591 fi
25592 rm -f conftest.err conftest.$ac_ext
25593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25594 echo "${ECHO_T}$ac_header_preproc" >&6
25595
25596 # So?  What about this header?
25597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25598   yes:no: )
25599     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25603     ac_header_preproc=yes
25604     ;;
25605   no:yes:* )
25606     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25608     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25609 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25610     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25612     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25613 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25616     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25618     (
25619       cat <<\_ASBOX
25620 ## ------------------------------------------ ##
25621 ## Report this to the AC_PACKAGE_NAME lists.  ##
25622 ## ------------------------------------------ ##
25623 _ASBOX
25624     ) |
25625       sed "s/^/$as_me: WARNING:     /" >&2
25626     ;;
25627 esac
25628 echo "$as_me:$LINENO: checking for $ac_header" >&5
25629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25631   echo $ECHO_N "(cached) $ECHO_C" >&6
25632 else
25633   eval "$as_ac_Header=\$ac_header_preproc"
25634 fi
25635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25637
25638 fi
25639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25640   cat >>confdefs.h <<_ACEOF
25641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25642 _ACEOF
25643
25644 fi
25645
25646 done
25647
25648
25649
25650 for ac_header in sys/epoll.h
25651 do
25652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25654   echo "$as_me:$LINENO: checking for $ac_header" >&5
25655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25657   echo $ECHO_N "(cached) $ECHO_C" >&6
25658 fi
25659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25661 else
25662   # Is the header compilable?
25663 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25665 cat >conftest.$ac_ext <<_ACEOF
25666 /* confdefs.h.  */
25667 _ACEOF
25668 cat confdefs.h >>conftest.$ac_ext
25669 cat >>conftest.$ac_ext <<_ACEOF
25670 /* end confdefs.h.  */
25671 $ac_includes_default
25672 #include <$ac_header>
25673 _ACEOF
25674 rm -f conftest.$ac_objext
25675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25676   (eval $ac_compile) 2>conftest.er1
25677   ac_status=$?
25678   grep -v '^ *+' conftest.er1 >conftest.err
25679   rm -f conftest.er1
25680   cat conftest.err >&5
25681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682   (exit $ac_status); } &&
25683          { ac_try='test -z "$ac_c_werror_flag"
25684                          || test ! -s conftest.err'
25685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25686   (eval $ac_try) 2>&5
25687   ac_status=$?
25688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689   (exit $ac_status); }; } &&
25690          { ac_try='test -s conftest.$ac_objext'
25691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25692   (eval $ac_try) 2>&5
25693   ac_status=$?
25694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695   (exit $ac_status); }; }; then
25696   ac_header_compiler=yes
25697 else
25698   echo "$as_me: failed program was:" >&5
25699 sed 's/^/| /' conftest.$ac_ext >&5
25700
25701 ac_header_compiler=no
25702 fi
25703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25704 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25705 echo "${ECHO_T}$ac_header_compiler" >&6
25706
25707 # Is the header present?
25708 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25710 cat >conftest.$ac_ext <<_ACEOF
25711 /* confdefs.h.  */
25712 _ACEOF
25713 cat confdefs.h >>conftest.$ac_ext
25714 cat >>conftest.$ac_ext <<_ACEOF
25715 /* end confdefs.h.  */
25716 #include <$ac_header>
25717 _ACEOF
25718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25719   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25720   ac_status=$?
25721   grep -v '^ *+' conftest.er1 >conftest.err
25722   rm -f conftest.er1
25723   cat conftest.err >&5
25724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725   (exit $ac_status); } >/dev/null; then
25726   if test -s conftest.err; then
25727     ac_cpp_err=$ac_c_preproc_warn_flag
25728     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25729   else
25730     ac_cpp_err=
25731   fi
25732 else
25733   ac_cpp_err=yes
25734 fi
25735 if test -z "$ac_cpp_err"; then
25736   ac_header_preproc=yes
25737 else
25738   echo "$as_me: failed program was:" >&5
25739 sed 's/^/| /' conftest.$ac_ext >&5
25740
25741   ac_header_preproc=no
25742 fi
25743 rm -f conftest.err conftest.$ac_ext
25744 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25745 echo "${ECHO_T}$ac_header_preproc" >&6
25746
25747 # So?  What about this header?
25748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25749   yes:no: )
25750     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25754     ac_header_preproc=yes
25755     ;;
25756   no:yes:* )
25757     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25759     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25760 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25761     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25763     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25764 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25767     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25769     (
25770       cat <<\_ASBOX
25771 ## ------------------------------------------ ##
25772 ## Report this to the AC_PACKAGE_NAME lists.  ##
25773 ## ------------------------------------------ ##
25774 _ASBOX
25775     ) |
25776       sed "s/^/$as_me: WARNING:     /" >&2
25777     ;;
25778 esac
25779 echo "$as_me:$LINENO: checking for $ac_header" >&5
25780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25782   echo $ECHO_N "(cached) $ECHO_C" >&6
25783 else
25784   eval "$as_ac_Header=\$ac_header_preproc"
25785 fi
25786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25788
25789 fi
25790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25791   cat >>confdefs.h <<_ACEOF
25792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25793 _ACEOF
25794
25795 fi
25796
25797 done
25798
25799 if test "${ac_cv_header_sys_epoll_h}" = yes; then
25800 echo "$as_me:$LINENO: checking for epoll system call" >&5
25801 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
25802 if test "$cross_compiling" = yes; then
25803   echo "$as_me:$LINENO: result: no" >&5
25804 echo "${ECHO_T}no" >&6
25805 else
25806   cat >conftest.$ac_ext <<_ACEOF
25807 /* confdefs.h.  */
25808 _ACEOF
25809 cat confdefs.h >>conftest.$ac_ext
25810 cat >>conftest.$ac_ext <<_ACEOF
25811 /* end confdefs.h.  */
25812 int main(int argc, char *argv)
25813 {
25814         int epfd = epoll_create(256);
25815         exit (epfd == -1 ? 1 : 0);
25816 }
25817 _ACEOF
25818 rm -f conftest$ac_exeext
25819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25820   (eval $ac_link) 2>&5
25821   ac_status=$?
25822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25825   (eval $ac_try) 2>&5
25826   ac_status=$?
25827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828   (exit $ac_status); }; }; then
25829   echo "$as_me:$LINENO: result: yes" >&5
25830 echo "${ECHO_T}yes" >&6
25831
25832 cat >>confdefs.h <<\_ACEOF
25833 #define HAVE_EPOLL 1
25834 _ACEOF
25835
25836 else
25837   echo "$as_me: program exited with status $ac_status" >&5
25838 echo "$as_me: failed program was:" >&5
25839 sed 's/^/| /' conftest.$ac_ext >&5
25840
25841 ( exit $ac_status )
25842 echo "$as_me:$LINENO: result: no" >&5
25843 echo "${ECHO_T}no" >&6
25844 fi
25845 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25846 fi
25847 fi
25848
25849 # strerror checks
25850 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
25851 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
25852 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
25853   echo $ECHO_N "(cached) $ECHO_C" >&6
25854 else
25855
25856         cat >conftest.$ac_ext <<_ACEOF
25857 /* confdefs.h.  */
25858 _ACEOF
25859 cat confdefs.h >>conftest.$ac_ext
25860 cat >>conftest.$ac_ext <<_ACEOF
25861 /* end confdefs.h.  */
25862
25863 #include <stdio.h>
25864 #include <sys/types.h>
25865 #include <errno.h>
25866 #ifdef WINNT
25867 #include <stdlib.h>
25868 #endif
25869 int
25870 main ()
25871 {
25872 char *c = (char *) *sys_errlist
25873   ;
25874   return 0;
25875 }
25876 _ACEOF
25877 rm -f conftest.$ac_objext
25878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25879   (eval $ac_compile) 2>conftest.er1
25880   ac_status=$?
25881   grep -v '^ *+' conftest.er1 >conftest.err
25882   rm -f conftest.er1
25883   cat conftest.err >&5
25884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885   (exit $ac_status); } &&
25886          { ac_try='test -z "$ac_c_werror_flag"
25887                          || test ! -s conftest.err'
25888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25889   (eval $ac_try) 2>&5
25890   ac_status=$?
25891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25892   (exit $ac_status); }; } &&
25893          { ac_try='test -s conftest.$ac_objext'
25894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25895   (eval $ac_try) 2>&5
25896   ac_status=$?
25897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25898   (exit $ac_status); }; }; then
25899   ol_cv_dcl_sys_errlist=yes
25900         ol_cv_have_sys_errlist=yes
25901 else
25902   echo "$as_me: failed program was:" >&5
25903 sed 's/^/| /' conftest.$ac_ext >&5
25904
25905 ol_cv_dcl_sys_errlist=no
25906 fi
25907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25908 fi
25909 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
25910 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
25911 #
25912 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
25913 if test $ol_cv_dcl_sys_errlist = no ; then
25914
25915 cat >>confdefs.h <<\_ACEOF
25916 #define DECL_SYS_ERRLIST 1
25917 _ACEOF
25918
25919
25920         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
25921 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
25922 if test "${ol_cv_have_sys_errlist+set}" = set; then
25923   echo $ECHO_N "(cached) $ECHO_C" >&6
25924 else
25925
25926                 cat >conftest.$ac_ext <<_ACEOF
25927 /* confdefs.h.  */
25928 _ACEOF
25929 cat confdefs.h >>conftest.$ac_ext
25930 cat >>conftest.$ac_ext <<_ACEOF
25931 /* end confdefs.h.  */
25932 #include <errno.h>
25933 int
25934 main ()
25935 {
25936 char *c = (char *) *sys_errlist
25937   ;
25938   return 0;
25939 }
25940 _ACEOF
25941 rm -f conftest.$ac_objext conftest$ac_exeext
25942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25943   (eval $ac_link) 2>conftest.er1
25944   ac_status=$?
25945   grep -v '^ *+' conftest.er1 >conftest.err
25946   rm -f conftest.er1
25947   cat conftest.err >&5
25948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949   (exit $ac_status); } &&
25950          { ac_try='test -z "$ac_c_werror_flag"
25951                          || test ! -s conftest.err'
25952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25953   (eval $ac_try) 2>&5
25954   ac_status=$?
25955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956   (exit $ac_status); }; } &&
25957          { ac_try='test -s conftest$ac_exeext'
25958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25959   (eval $ac_try) 2>&5
25960   ac_status=$?
25961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962   (exit $ac_status); }; }; then
25963   ol_cv_have_sys_errlist=yes
25964 else
25965   echo "$as_me: failed program was:" >&5
25966 sed 's/^/| /' conftest.$ac_ext >&5
25967
25968 ol_cv_have_sys_errlist=no
25969 fi
25970 rm -f conftest.err conftest.$ac_objext \
25971       conftest$ac_exeext conftest.$ac_ext
25972 fi
25973 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
25974 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
25975 fi
25976 if test $ol_cv_have_sys_errlist = yes ; then
25977
25978 cat >>confdefs.h <<\_ACEOF
25979 #define HAVE_SYS_ERRLIST 1
25980 _ACEOF
25981
25982 fi
25983
25984
25985 for ac_func in strerror strerror_r
25986 do
25987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25988 echo "$as_me:$LINENO: checking for $ac_func" >&5
25989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25990 if eval "test \"\${$as_ac_var+set}\" = set"; then
25991   echo $ECHO_N "(cached) $ECHO_C" >&6
25992 else
25993   cat >conftest.$ac_ext <<_ACEOF
25994 /* confdefs.h.  */
25995 _ACEOF
25996 cat confdefs.h >>conftest.$ac_ext
25997 cat >>conftest.$ac_ext <<_ACEOF
25998 /* end confdefs.h.  */
25999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26001 #define $ac_func innocuous_$ac_func
26002
26003 /* System header to define __stub macros and hopefully few prototypes,
26004     which can conflict with char $ac_func (); below.
26005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26006     <limits.h> exists even on freestanding compilers.  */
26007
26008 #ifdef __STDC__
26009 # include <limits.h>
26010 #else
26011 # include <assert.h>
26012 #endif
26013
26014 #undef $ac_func
26015
26016 /* Override any gcc2 internal prototype to avoid an error.  */
26017 #ifdef __cplusplus
26018 extern "C"
26019 {
26020 #endif
26021 /* We use char because int might match the return type of a gcc2
26022    builtin and then its argument prototype would still apply.  */
26023 char $ac_func ();
26024 /* The GNU C library defines this for functions which it implements
26025     to always fail with ENOSYS.  Some functions are actually named
26026     something starting with __ and the normal name is an alias.  */
26027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26028 choke me
26029 #else
26030 char (*f) () = $ac_func;
26031 #endif
26032 #ifdef __cplusplus
26033 }
26034 #endif
26035
26036 int
26037 main ()
26038 {
26039 return f != $ac_func;
26040   ;
26041   return 0;
26042 }
26043 _ACEOF
26044 rm -f conftest.$ac_objext conftest$ac_exeext
26045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26046   (eval $ac_link) 2>conftest.er1
26047   ac_status=$?
26048   grep -v '^ *+' conftest.er1 >conftest.err
26049   rm -f conftest.er1
26050   cat conftest.err >&5
26051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052   (exit $ac_status); } &&
26053          { ac_try='test -z "$ac_c_werror_flag"
26054                          || test ! -s conftest.err'
26055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26056   (eval $ac_try) 2>&5
26057   ac_status=$?
26058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059   (exit $ac_status); }; } &&
26060          { ac_try='test -s conftest$ac_exeext'
26061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26062   (eval $ac_try) 2>&5
26063   ac_status=$?
26064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065   (exit $ac_status); }; }; then
26066   eval "$as_ac_var=yes"
26067 else
26068   echo "$as_me: failed program was:" >&5
26069 sed 's/^/| /' conftest.$ac_ext >&5
26070
26071 eval "$as_ac_var=no"
26072 fi
26073 rm -f conftest.err conftest.$ac_objext \
26074       conftest$ac_exeext conftest.$ac_ext
26075 fi
26076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26078 if test `eval echo '${'$as_ac_var'}'` = yes; then
26079   cat >>confdefs.h <<_ACEOF
26080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26081 _ACEOF
26082
26083 fi
26084 done
26085
26086 ol_cv_func_strerror_r=no
26087 if test "${ac_cv_func_strerror_r}" = yes ; then
26088         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26089 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26090 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26091   echo $ECHO_N "(cached) $ECHO_C" >&6
26092 else
26093
26094         cat >conftest.$ac_ext <<_ACEOF
26095 /* confdefs.h.  */
26096 _ACEOF
26097 cat confdefs.h >>conftest.$ac_ext
26098 cat >>conftest.$ac_ext <<_ACEOF
26099 /* end confdefs.h.  */
26100 #include <string.h>
26101 _ACEOF
26102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26103   $EGREP "strerror_r" >/dev/null 2>&1; then
26104   ol_decl_strerror_r=yes
26105 else
26106   ol_decl_strerror_r=no
26107 fi
26108 rm -f conftest*
26109
26110         if test $ol_decl_strerror_r = yes ; then
26111                 cat >conftest.$ac_ext <<_ACEOF
26112 /* confdefs.h.  */
26113 _ACEOF
26114 cat confdefs.h >>conftest.$ac_ext
26115 cat >>conftest.$ac_ext <<_ACEOF
26116 /* end confdefs.h.  */
26117 #include <string.h>
26118 int
26119 main ()
26120 {
26121    /* from autoconf 2.59 */
26122                                 char buf[100];
26123                                 char x = *strerror_r (0, buf, sizeof buf);
26124                                 char *p = strerror_r (0, buf, sizeof buf);
26125
26126   ;
26127   return 0;
26128 }
26129 _ACEOF
26130 rm -f conftest.$ac_objext
26131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26132   (eval $ac_compile) 2>conftest.er1
26133   ac_status=$?
26134   grep -v '^ *+' conftest.er1 >conftest.err
26135   rm -f conftest.er1
26136   cat conftest.err >&5
26137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138   (exit $ac_status); } &&
26139          { ac_try='test -z "$ac_c_werror_flag"
26140                          || test ! -s conftest.err'
26141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26142   (eval $ac_try) 2>&5
26143   ac_status=$?
26144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145   (exit $ac_status); }; } &&
26146          { ac_try='test -s conftest.$ac_objext'
26147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26148   (eval $ac_try) 2>&5
26149   ac_status=$?
26150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151   (exit $ac_status); }; }; then
26152   ol_cv_nonposix_strerror_r=yes
26153 else
26154   echo "$as_me: failed program was:" >&5
26155 sed 's/^/| /' conftest.$ac_ext >&5
26156
26157 ol_cv_nonposix_strerror_r=no
26158 fi
26159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26160         else
26161                 if test "$cross_compiling" = yes; then
26162   ol_cv_nonposix_strerror=no
26163 else
26164   cat >conftest.$ac_ext <<_ACEOF
26165 /* confdefs.h.  */
26166 _ACEOF
26167 cat confdefs.h >>conftest.$ac_ext
26168 cat >>conftest.$ac_ext <<_ACEOF
26169 /* end confdefs.h.  */
26170
26171                         main() {
26172                                 char buf[100];
26173                                 buf[0] = 0;
26174                                 strerror_r( 1, buf, sizeof buf );
26175                                 exit( buf[0] == 0 );
26176                         }
26177
26178 _ACEOF
26179 rm -f conftest$ac_exeext
26180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26181   (eval $ac_link) 2>&5
26182   ac_status=$?
26183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26186   (eval $ac_try) 2>&5
26187   ac_status=$?
26188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189   (exit $ac_status); }; }; then
26190   ol_cv_nonposix_strerror_r=yes
26191 else
26192   echo "$as_me: program exited with status $ac_status" >&5
26193 echo "$as_me: failed program was:" >&5
26194 sed 's/^/| /' conftest.$ac_ext >&5
26195
26196 ( exit $ac_status )
26197 ol_cv_nonposix_strerror=no
26198 fi
26199 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26200 fi
26201         fi
26202
26203 fi
26204 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26205 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26206 if test $ol_cv_nonposix_strerror_r = yes ; then
26207
26208 cat >>confdefs.h <<\_ACEOF
26209 #define HAVE_NONPOSIX_STRERROR_R 1
26210 _ACEOF
26211
26212 fi
26213
26214 elif test "${ac_cv_func_strerror}" = no ; then
26215         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26216 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26217 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26218   echo $ECHO_N "(cached) $ECHO_C" >&6
26219 else
26220
26221         cat >conftest.$ac_ext <<_ACEOF
26222 /* confdefs.h.  */
26223 _ACEOF
26224 cat confdefs.h >>conftest.$ac_ext
26225 cat >>conftest.$ac_ext <<_ACEOF
26226 /* end confdefs.h.  */
26227
26228 #include <stdio.h>
26229 #include <sys/types.h>
26230 #include <errno.h>
26231 #ifdef WINNT
26232 #include <stdlib.h>
26233 #endif
26234 int
26235 main ()
26236 {
26237 char *c = (char *) *sys_errlist
26238   ;
26239   return 0;
26240 }
26241 _ACEOF
26242 rm -f conftest.$ac_objext
26243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26244   (eval $ac_compile) 2>conftest.er1
26245   ac_status=$?
26246   grep -v '^ *+' conftest.er1 >conftest.err
26247   rm -f conftest.er1
26248   cat conftest.err >&5
26249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250   (exit $ac_status); } &&
26251          { ac_try='test -z "$ac_c_werror_flag"
26252                          || test ! -s conftest.err'
26253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26254   (eval $ac_try) 2>&5
26255   ac_status=$?
26256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257   (exit $ac_status); }; } &&
26258          { ac_try='test -s conftest.$ac_objext'
26259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26260   (eval $ac_try) 2>&5
26261   ac_status=$?
26262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263   (exit $ac_status); }; }; then
26264   ol_cv_dcl_sys_errlist=yes
26265         ol_cv_have_sys_errlist=yes
26266 else
26267   echo "$as_me: failed program was:" >&5
26268 sed 's/^/| /' conftest.$ac_ext >&5
26269
26270 ol_cv_dcl_sys_errlist=no
26271 fi
26272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26273 fi
26274 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26275 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26276 #
26277 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26278 if test $ol_cv_dcl_sys_errlist = no ; then
26279
26280 cat >>confdefs.h <<\_ACEOF
26281 #define DECL_SYS_ERRLIST 1
26282 _ACEOF
26283
26284
26285         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26286 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26287 if test "${ol_cv_have_sys_errlist+set}" = set; then
26288   echo $ECHO_N "(cached) $ECHO_C" >&6
26289 else
26290
26291                 cat >conftest.$ac_ext <<_ACEOF
26292 /* confdefs.h.  */
26293 _ACEOF
26294 cat confdefs.h >>conftest.$ac_ext
26295 cat >>conftest.$ac_ext <<_ACEOF
26296 /* end confdefs.h.  */
26297 #include <errno.h>
26298 int
26299 main ()
26300 {
26301 char *c = (char *) *sys_errlist
26302   ;
26303   return 0;
26304 }
26305 _ACEOF
26306 rm -f conftest.$ac_objext conftest$ac_exeext
26307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26308   (eval $ac_link) 2>conftest.er1
26309   ac_status=$?
26310   grep -v '^ *+' conftest.er1 >conftest.err
26311   rm -f conftest.er1
26312   cat conftest.err >&5
26313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314   (exit $ac_status); } &&
26315          { ac_try='test -z "$ac_c_werror_flag"
26316                          || test ! -s conftest.err'
26317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26318   (eval $ac_try) 2>&5
26319   ac_status=$?
26320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321   (exit $ac_status); }; } &&
26322          { ac_try='test -s conftest$ac_exeext'
26323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26324   (eval $ac_try) 2>&5
26325   ac_status=$?
26326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327   (exit $ac_status); }; }; then
26328   ol_cv_have_sys_errlist=yes
26329 else
26330   echo "$as_me: failed program was:" >&5
26331 sed 's/^/| /' conftest.$ac_ext >&5
26332
26333 ol_cv_have_sys_errlist=no
26334 fi
26335 rm -f conftest.err conftest.$ac_objext \
26336       conftest$ac_exeext conftest.$ac_ext
26337 fi
26338 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26339 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26340 fi
26341 if test $ol_cv_have_sys_errlist = yes ; then
26342
26343 cat >>confdefs.h <<\_ACEOF
26344 #define HAVE_SYS_ERRLIST 1
26345 _ACEOF
26346
26347 fi
26348
26349 fi
26350
26351
26352
26353 for ac_header in regex.h
26354 do
26355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26357   echo "$as_me:$LINENO: checking for $ac_header" >&5
26358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26360   echo $ECHO_N "(cached) $ECHO_C" >&6
26361 fi
26362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26364 else
26365   # Is the header compilable?
26366 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26368 cat >conftest.$ac_ext <<_ACEOF
26369 /* confdefs.h.  */
26370 _ACEOF
26371 cat confdefs.h >>conftest.$ac_ext
26372 cat >>conftest.$ac_ext <<_ACEOF
26373 /* end confdefs.h.  */
26374 $ac_includes_default
26375 #include <$ac_header>
26376 _ACEOF
26377 rm -f conftest.$ac_objext
26378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26379   (eval $ac_compile) 2>conftest.er1
26380   ac_status=$?
26381   grep -v '^ *+' conftest.er1 >conftest.err
26382   rm -f conftest.er1
26383   cat conftest.err >&5
26384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385   (exit $ac_status); } &&
26386          { ac_try='test -z "$ac_c_werror_flag"
26387                          || test ! -s conftest.err'
26388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26389   (eval $ac_try) 2>&5
26390   ac_status=$?
26391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26392   (exit $ac_status); }; } &&
26393          { ac_try='test -s conftest.$ac_objext'
26394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26395   (eval $ac_try) 2>&5
26396   ac_status=$?
26397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398   (exit $ac_status); }; }; then
26399   ac_header_compiler=yes
26400 else
26401   echo "$as_me: failed program was:" >&5
26402 sed 's/^/| /' conftest.$ac_ext >&5
26403
26404 ac_header_compiler=no
26405 fi
26406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26408 echo "${ECHO_T}$ac_header_compiler" >&6
26409
26410 # Is the header present?
26411 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26413 cat >conftest.$ac_ext <<_ACEOF
26414 /* confdefs.h.  */
26415 _ACEOF
26416 cat confdefs.h >>conftest.$ac_ext
26417 cat >>conftest.$ac_ext <<_ACEOF
26418 /* end confdefs.h.  */
26419 #include <$ac_header>
26420 _ACEOF
26421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26422   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26423   ac_status=$?
26424   grep -v '^ *+' conftest.er1 >conftest.err
26425   rm -f conftest.er1
26426   cat conftest.err >&5
26427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428   (exit $ac_status); } >/dev/null; then
26429   if test -s conftest.err; then
26430     ac_cpp_err=$ac_c_preproc_warn_flag
26431     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26432   else
26433     ac_cpp_err=
26434   fi
26435 else
26436   ac_cpp_err=yes
26437 fi
26438 if test -z "$ac_cpp_err"; then
26439   ac_header_preproc=yes
26440 else
26441   echo "$as_me: failed program was:" >&5
26442 sed 's/^/| /' conftest.$ac_ext >&5
26443
26444   ac_header_preproc=no
26445 fi
26446 rm -f conftest.err conftest.$ac_ext
26447 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26448 echo "${ECHO_T}$ac_header_preproc" >&6
26449
26450 # So?  What about this header?
26451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26452   yes:no: )
26453     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26457     ac_header_preproc=yes
26458     ;;
26459   no:yes:* )
26460     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26462     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26463 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26464     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26465 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26466     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26467 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26470     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26471 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26472     (
26473       cat <<\_ASBOX
26474 ## ------------------------------------------ ##
26475 ## Report this to the AC_PACKAGE_NAME lists.  ##
26476 ## ------------------------------------------ ##
26477 _ASBOX
26478     ) |
26479       sed "s/^/$as_me: WARNING:     /" >&2
26480     ;;
26481 esac
26482 echo "$as_me:$LINENO: checking for $ac_header" >&5
26483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26485   echo $ECHO_N "(cached) $ECHO_C" >&6
26486 else
26487   eval "$as_ac_Header=\$ac_header_preproc"
26488 fi
26489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26491
26492 fi
26493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26494   cat >>confdefs.h <<_ACEOF
26495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26496 _ACEOF
26497
26498 fi
26499
26500 done
26501
26502 if test "$ac_cv_header_regex_h" != yes ; then
26503         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26504 echo "$as_me: error: POSIX regex.h required." >&2;}
26505    { (exit 1); exit 1; }; }
26506 fi
26507 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26508 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26509 if test "${ac_cv_search_regfree+set}" = set; then
26510   echo $ECHO_N "(cached) $ECHO_C" >&6
26511 else
26512   ac_func_search_save_LIBS=$LIBS
26513 ac_cv_search_regfree=no
26514 cat >conftest.$ac_ext <<_ACEOF
26515 /* confdefs.h.  */
26516 _ACEOF
26517 cat confdefs.h >>conftest.$ac_ext
26518 cat >>conftest.$ac_ext <<_ACEOF
26519 /* end confdefs.h.  */
26520
26521 /* Override any gcc2 internal prototype to avoid an error.  */
26522 #ifdef __cplusplus
26523 extern "C"
26524 #endif
26525 /* We use char because int might match the return type of a gcc2
26526    builtin and then its argument prototype would still apply.  */
26527 char regfree ();
26528 int
26529 main ()
26530 {
26531 regfree ();
26532   ;
26533   return 0;
26534 }
26535 _ACEOF
26536 rm -f conftest.$ac_objext conftest$ac_exeext
26537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26538   (eval $ac_link) 2>conftest.er1
26539   ac_status=$?
26540   grep -v '^ *+' conftest.er1 >conftest.err
26541   rm -f conftest.er1
26542   cat conftest.err >&5
26543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26544   (exit $ac_status); } &&
26545          { ac_try='test -z "$ac_c_werror_flag"
26546                          || test ! -s conftest.err'
26547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26548   (eval $ac_try) 2>&5
26549   ac_status=$?
26550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551   (exit $ac_status); }; } &&
26552          { ac_try='test -s conftest$ac_exeext'
26553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26554   (eval $ac_try) 2>&5
26555   ac_status=$?
26556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557   (exit $ac_status); }; }; then
26558   ac_cv_search_regfree="none required"
26559 else
26560   echo "$as_me: failed program was:" >&5
26561 sed 's/^/| /' conftest.$ac_ext >&5
26562
26563 fi
26564 rm -f conftest.err conftest.$ac_objext \
26565       conftest$ac_exeext conftest.$ac_ext
26566 if test "$ac_cv_search_regfree" = no; then
26567   for ac_lib in regex gnuregex; do
26568     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26569     cat >conftest.$ac_ext <<_ACEOF
26570 /* confdefs.h.  */
26571 _ACEOF
26572 cat confdefs.h >>conftest.$ac_ext
26573 cat >>conftest.$ac_ext <<_ACEOF
26574 /* end confdefs.h.  */
26575
26576 /* Override any gcc2 internal prototype to avoid an error.  */
26577 #ifdef __cplusplus
26578 extern "C"
26579 #endif
26580 /* We use char because int might match the return type of a gcc2
26581    builtin and then its argument prototype would still apply.  */
26582 char regfree ();
26583 int
26584 main ()
26585 {
26586 regfree ();
26587   ;
26588   return 0;
26589 }
26590 _ACEOF
26591 rm -f conftest.$ac_objext conftest$ac_exeext
26592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26593   (eval $ac_link) 2>conftest.er1
26594   ac_status=$?
26595   grep -v '^ *+' conftest.er1 >conftest.err
26596   rm -f conftest.er1
26597   cat conftest.err >&5
26598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26599   (exit $ac_status); } &&
26600          { ac_try='test -z "$ac_c_werror_flag"
26601                          || test ! -s conftest.err'
26602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26603   (eval $ac_try) 2>&5
26604   ac_status=$?
26605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606   (exit $ac_status); }; } &&
26607          { ac_try='test -s conftest$ac_exeext'
26608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26609   (eval $ac_try) 2>&5
26610   ac_status=$?
26611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612   (exit $ac_status); }; }; then
26613   ac_cv_search_regfree="-l$ac_lib"
26614 break
26615 else
26616   echo "$as_me: failed program was:" >&5
26617 sed 's/^/| /' conftest.$ac_ext >&5
26618
26619 fi
26620 rm -f conftest.err conftest.$ac_objext \
26621       conftest$ac_exeext conftest.$ac_ext
26622   done
26623 fi
26624 LIBS=$ac_func_search_save_LIBS
26625 fi
26626 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26627 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26628 if test "$ac_cv_search_regfree" != no; then
26629   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26630   :
26631 else
26632   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26633 echo "$as_me: error: POSIX regex required." >&2;}
26634    { (exit 1); exit 1; }; }
26635 fi
26636
26637
26638
26639 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26640 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26641 if test "${ol_cv_c_posix_regex+set}" = set; then
26642   echo $ECHO_N "(cached) $ECHO_C" >&6
26643 else
26644
26645         if test "$cross_compiling" = yes; then
26646   ol_cv_c_posix_regex=cross
26647 else
26648   cat >conftest.$ac_ext <<_ACEOF
26649 /* confdefs.h.  */
26650 _ACEOF
26651 cat confdefs.h >>conftest.$ac_ext
26652 cat >>conftest.$ac_ext <<_ACEOF
26653 /* end confdefs.h.  */
26654
26655 #include <sys/types.h>
26656 #include <regex.h>
26657 static char *pattern, *string;
26658 main()
26659 {
26660         int rc;
26661         regex_t re;
26662
26663         pattern = "^A";
26664
26665         if(regcomp(&re, pattern, 0)) {
26666                 return -1;
26667         }
26668
26669         string = "ALL MATCH";
26670
26671         rc = regexec(&re, string, 0, (void*)0, 0);
26672
26673         regfree(&re);
26674
26675         return rc;
26676 }
26677 _ACEOF
26678 rm -f conftest$ac_exeext
26679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26680   (eval $ac_link) 2>&5
26681   ac_status=$?
26682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26685   (eval $ac_try) 2>&5
26686   ac_status=$?
26687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688   (exit $ac_status); }; }; then
26689   ol_cv_c_posix_regex=yes
26690 else
26691   echo "$as_me: program exited with status $ac_status" >&5
26692 echo "$as_me: failed program was:" >&5
26693 sed 's/^/| /' conftest.$ac_ext >&5
26694
26695 ( exit $ac_status )
26696 ol_cv_c_posix_regex=no
26697 fi
26698 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26699 fi
26700 fi
26701 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26702 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26703
26704 if test "$ol_cv_c_posix_regex" = no ; then
26705         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26706 echo "$as_me: error: broken POSIX regex!" >&2;}
26707    { (exit 1); exit 1; }; }
26708 fi
26709
26710
26711 have_uuid=no
26712
26713 for ac_header in sys/uuid.h
26714 do
26715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26717   echo "$as_me:$LINENO: checking for $ac_header" >&5
26718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26720   echo $ECHO_N "(cached) $ECHO_C" >&6
26721 fi
26722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26724 else
26725   # Is the header compilable?
26726 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26728 cat >conftest.$ac_ext <<_ACEOF
26729 /* confdefs.h.  */
26730 _ACEOF
26731 cat confdefs.h >>conftest.$ac_ext
26732 cat >>conftest.$ac_ext <<_ACEOF
26733 /* end confdefs.h.  */
26734 $ac_includes_default
26735 #include <$ac_header>
26736 _ACEOF
26737 rm -f conftest.$ac_objext
26738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26739   (eval $ac_compile) 2>conftest.er1
26740   ac_status=$?
26741   grep -v '^ *+' conftest.er1 >conftest.err
26742   rm -f conftest.er1
26743   cat conftest.err >&5
26744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745   (exit $ac_status); } &&
26746          { ac_try='test -z "$ac_c_werror_flag"
26747                          || test ! -s conftest.err'
26748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26749   (eval $ac_try) 2>&5
26750   ac_status=$?
26751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752   (exit $ac_status); }; } &&
26753          { ac_try='test -s conftest.$ac_objext'
26754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26755   (eval $ac_try) 2>&5
26756   ac_status=$?
26757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26758   (exit $ac_status); }; }; then
26759   ac_header_compiler=yes
26760 else
26761   echo "$as_me: failed program was:" >&5
26762 sed 's/^/| /' conftest.$ac_ext >&5
26763
26764 ac_header_compiler=no
26765 fi
26766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26768 echo "${ECHO_T}$ac_header_compiler" >&6
26769
26770 # Is the header present?
26771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26773 cat >conftest.$ac_ext <<_ACEOF
26774 /* confdefs.h.  */
26775 _ACEOF
26776 cat confdefs.h >>conftest.$ac_ext
26777 cat >>conftest.$ac_ext <<_ACEOF
26778 /* end confdefs.h.  */
26779 #include <$ac_header>
26780 _ACEOF
26781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26782   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26783   ac_status=$?
26784   grep -v '^ *+' conftest.er1 >conftest.err
26785   rm -f conftest.er1
26786   cat conftest.err >&5
26787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788   (exit $ac_status); } >/dev/null; then
26789   if test -s conftest.err; then
26790     ac_cpp_err=$ac_c_preproc_warn_flag
26791     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26792   else
26793     ac_cpp_err=
26794   fi
26795 else
26796   ac_cpp_err=yes
26797 fi
26798 if test -z "$ac_cpp_err"; then
26799   ac_header_preproc=yes
26800 else
26801   echo "$as_me: failed program was:" >&5
26802 sed 's/^/| /' conftest.$ac_ext >&5
26803
26804   ac_header_preproc=no
26805 fi
26806 rm -f conftest.err conftest.$ac_ext
26807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26808 echo "${ECHO_T}$ac_header_preproc" >&6
26809
26810 # So?  What about this header?
26811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26812   yes:no: )
26813     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26815     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26817     ac_header_preproc=yes
26818     ;;
26819   no:yes:* )
26820     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26822     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26823 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26824     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26826     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26827 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26830     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26832     (
26833       cat <<\_ASBOX
26834 ## ------------------------------------------ ##
26835 ## Report this to the AC_PACKAGE_NAME lists.  ##
26836 ## ------------------------------------------ ##
26837 _ASBOX
26838     ) |
26839       sed "s/^/$as_me: WARNING:     /" >&2
26840     ;;
26841 esac
26842 echo "$as_me:$LINENO: checking for $ac_header" >&5
26843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26845   echo $ECHO_N "(cached) $ECHO_C" >&6
26846 else
26847   eval "$as_ac_Header=\$ac_header_preproc"
26848 fi
26849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26851
26852 fi
26853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26854   cat >>confdefs.h <<_ACEOF
26855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26856 _ACEOF
26857
26858 fi
26859
26860 done
26861
26862 if test $ac_cv_header_sys_uuid_h = yes ; then
26863         save_LIBS="$LIBS"
26864         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
26865 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
26866 if test "${ac_cv_search_uuid_to_str+set}" = set; then
26867   echo $ECHO_N "(cached) $ECHO_C" >&6
26868 else
26869   ac_func_search_save_LIBS=$LIBS
26870 ac_cv_search_uuid_to_str=no
26871 cat >conftest.$ac_ext <<_ACEOF
26872 /* confdefs.h.  */
26873 _ACEOF
26874 cat confdefs.h >>conftest.$ac_ext
26875 cat >>conftest.$ac_ext <<_ACEOF
26876 /* end confdefs.h.  */
26877
26878 /* Override any gcc2 internal prototype to avoid an error.  */
26879 #ifdef __cplusplus
26880 extern "C"
26881 #endif
26882 /* We use char because int might match the return type of a gcc2
26883    builtin and then its argument prototype would still apply.  */
26884 char uuid_to_str ();
26885 int
26886 main ()
26887 {
26888 uuid_to_str ();
26889   ;
26890   return 0;
26891 }
26892 _ACEOF
26893 rm -f conftest.$ac_objext conftest$ac_exeext
26894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26895   (eval $ac_link) 2>conftest.er1
26896   ac_status=$?
26897   grep -v '^ *+' conftest.er1 >conftest.err
26898   rm -f conftest.er1
26899   cat conftest.err >&5
26900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26901   (exit $ac_status); } &&
26902          { ac_try='test -z "$ac_c_werror_flag"
26903                          || test ! -s conftest.err'
26904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26905   (eval $ac_try) 2>&5
26906   ac_status=$?
26907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908   (exit $ac_status); }; } &&
26909          { ac_try='test -s conftest$ac_exeext'
26910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26911   (eval $ac_try) 2>&5
26912   ac_status=$?
26913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914   (exit $ac_status); }; }; then
26915   ac_cv_search_uuid_to_str="none required"
26916 else
26917   echo "$as_me: failed program was:" >&5
26918 sed 's/^/| /' conftest.$ac_ext >&5
26919
26920 fi
26921 rm -f conftest.err conftest.$ac_objext \
26922       conftest$ac_exeext conftest.$ac_ext
26923 if test "$ac_cv_search_uuid_to_str" = no; then
26924   for ac_lib in uuid; do
26925     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26926     cat >conftest.$ac_ext <<_ACEOF
26927 /* confdefs.h.  */
26928 _ACEOF
26929 cat confdefs.h >>conftest.$ac_ext
26930 cat >>conftest.$ac_ext <<_ACEOF
26931 /* end confdefs.h.  */
26932
26933 /* Override any gcc2 internal prototype to avoid an error.  */
26934 #ifdef __cplusplus
26935 extern "C"
26936 #endif
26937 /* We use char because int might match the return type of a gcc2
26938    builtin and then its argument prototype would still apply.  */
26939 char uuid_to_str ();
26940 int
26941 main ()
26942 {
26943 uuid_to_str ();
26944   ;
26945   return 0;
26946 }
26947 _ACEOF
26948 rm -f conftest.$ac_objext conftest$ac_exeext
26949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26950   (eval $ac_link) 2>conftest.er1
26951   ac_status=$?
26952   grep -v '^ *+' conftest.er1 >conftest.err
26953   rm -f conftest.er1
26954   cat conftest.err >&5
26955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956   (exit $ac_status); } &&
26957          { ac_try='test -z "$ac_c_werror_flag"
26958                          || test ! -s conftest.err'
26959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26960   (eval $ac_try) 2>&5
26961   ac_status=$?
26962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963   (exit $ac_status); }; } &&
26964          { ac_try='test -s conftest$ac_exeext'
26965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26966   (eval $ac_try) 2>&5
26967   ac_status=$?
26968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969   (exit $ac_status); }; }; then
26970   ac_cv_search_uuid_to_str="-l$ac_lib"
26971 break
26972 else
26973   echo "$as_me: failed program was:" >&5
26974 sed 's/^/| /' conftest.$ac_ext >&5
26975
26976 fi
26977 rm -f conftest.err conftest.$ac_objext \
26978       conftest$ac_exeext conftest.$ac_ext
26979   done
26980 fi
26981 LIBS=$ac_func_search_save_LIBS
26982 fi
26983 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
26984 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
26985 if test "$ac_cv_search_uuid_to_str" != no; then
26986   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
26987   have_uuid=yes
26988 else
26989   :
26990 fi
26991
26992         LIBS="$save_LIBS"
26993
26994         if test have_uuid = yes ; then
26995
26996 cat >>confdefs.h <<\_ACEOF
26997 #define HAVE_UUID_TO_STR 1
26998 _ACEOF
26999
27000
27001                 test "$ac_cv_search_uuid_to_str" = "none required" || \
27002                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
27003         fi
27004 fi
27005
27006 if test $have_uuid = no ; then
27007         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27008 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27009         save_LIBS="$LIBS"
27010         LIBS="$LIBS -lrpcrt4"
27011         cat >conftest.$ac_ext <<_ACEOF
27012 /* confdefs.h.  */
27013 _ACEOF
27014 cat confdefs.h >>conftest.$ac_ext
27015 cat >>conftest.$ac_ext <<_ACEOF
27016 /* end confdefs.h.  */
27017
27018                 int __stdcall UuidCreate(void *);
27019                 int __stdcall UuidToStringA(void *,void **);
27020
27021 int
27022 main ()
27023 {
27024
27025                 UuidCreate(0);
27026                 UuidToStringA(0,0);
27027
27028   ;
27029   return 0;
27030 }
27031 _ACEOF
27032 rm -f conftest.$ac_objext conftest$ac_exeext
27033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27034   (eval $ac_link) 2>conftest.er1
27035   ac_status=$?
27036   grep -v '^ *+' conftest.er1 >conftest.err
27037   rm -f conftest.er1
27038   cat conftest.err >&5
27039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040   (exit $ac_status); } &&
27041          { ac_try='test -z "$ac_c_werror_flag"
27042                          || test ! -s conftest.err'
27043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27044   (eval $ac_try) 2>&5
27045   ac_status=$?
27046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047   (exit $ac_status); }; } &&
27048          { ac_try='test -s conftest$ac_exeext'
27049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27050   (eval $ac_try) 2>&5
27051   ac_status=$?
27052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053   (exit $ac_status); }; }; then
27054   need_rpcrt=yes
27055 else
27056   echo "$as_me: failed program was:" >&5
27057 sed 's/^/| /' conftest.$ac_ext >&5
27058
27059 need_rpcrt=no
27060 fi
27061 rm -f conftest.err conftest.$ac_objext \
27062       conftest$ac_exeext conftest.$ac_ext
27063         if test $need_rpcrt = yes; then
27064                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27065         fi
27066         LIBS="$save_LIBS"
27067         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27068 echo "${ECHO_T}$need_rpcrt" >&6
27069 fi
27070
27071 ol_cv_lib_resolver=no
27072 if test $ol_cv_lib_resolver = no ; then
27073         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27074 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27075 if test "${ol_cv_resolver_none+set}" = set; then
27076   echo $ECHO_N "(cached) $ECHO_C" >&6
27077 else
27078
27079         ol_RESOLVER_LIB=
27080         ol_LIBS=$LIBS
27081         LIBS="$ol_RESOLVER_LIB $LIBS"
27082
27083         cat >conftest.$ac_ext <<_ACEOF
27084 /* confdefs.h.  */
27085 _ACEOF
27086 cat confdefs.h >>conftest.$ac_ext
27087 cat >>conftest.$ac_ext <<_ACEOF
27088 /* end confdefs.h.  */
27089
27090 #ifdef HAVE_SYS_TYPES_H
27091 #       include <sys/types.h>
27092 #endif
27093 #include <netinet/in.h>
27094 #ifdef HAVE_ARPA_NAMESER_H
27095 #       include <arpa/nameser.h>
27096 #endif
27097 #ifdef HAVE_RESOLV_H
27098 #       include <resolv.h>
27099 #endif
27100
27101 int
27102 main ()
27103 {
27104 {
27105         int len, status;
27106         char *request = NULL;
27107         unsigned char reply[64*1024];
27108         unsigned char host[64*1024];
27109         unsigned char *p;
27110
27111 #ifdef NS_HFIXEDSZ
27112         /* Bind 8/9 interface */
27113         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27114 #else
27115         /* Bind 4 interface */
27116 # ifndef T_SRV
27117 #  define T_SRV 33
27118 # endif
27119         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27120 #endif
27121         p = reply;
27122 #ifdef NS_HFIXEDSZ
27123         /* Bind 8/9 interface */
27124         p += NS_HFIXEDSZ;
27125 #elif defined(HFIXEDSZ)
27126         /* Bind 4 interface w/ HFIXEDSZ */
27127         p += HFIXEDSZ;
27128 #else
27129         /* Bind 4 interface w/o HFIXEDSZ */
27130         p += sizeof(HEADER);
27131 #endif
27132         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27133 }
27134   ;
27135   return 0;
27136 }
27137 _ACEOF
27138 rm -f conftest.$ac_objext conftest$ac_exeext
27139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27140   (eval $ac_link) 2>conftest.er1
27141   ac_status=$?
27142   grep -v '^ *+' conftest.er1 >conftest.err
27143   rm -f conftest.er1
27144   cat conftest.err >&5
27145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146   (exit $ac_status); } &&
27147          { ac_try='test -z "$ac_c_werror_flag"
27148                          || test ! -s conftest.err'
27149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27150   (eval $ac_try) 2>&5
27151   ac_status=$?
27152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153   (exit $ac_status); }; } &&
27154          { ac_try='test -s conftest$ac_exeext'
27155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27156   (eval $ac_try) 2>&5
27157   ac_status=$?
27158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27159   (exit $ac_status); }; }; then
27160   ol_cv_resolver_none=yes
27161 else
27162   echo "$as_me: failed program was:" >&5
27163 sed 's/^/| /' conftest.$ac_ext >&5
27164
27165 ol_cv_resolver_none=no
27166 fi
27167 rm -f conftest.err conftest.$ac_objext \
27168       conftest$ac_exeext conftest.$ac_ext
27169
27170         LIBS="$ol_LIBS"
27171
27172 fi
27173 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27174 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27175
27176         if test $ol_cv_resolver_none = yes ; then
27177                 ol_cv_lib_resolver=yes
27178         fi
27179 fi
27180
27181 if test $ol_cv_lib_resolver = no ; then
27182         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27183 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27184 if test "${ol_cv_resolver_resolv+set}" = set; then
27185   echo $ECHO_N "(cached) $ECHO_C" >&6
27186 else
27187
27188         ol_RESOLVER_LIB=-lresolv
27189         ol_LIBS=$LIBS
27190         LIBS="$ol_RESOLVER_LIB $LIBS"
27191
27192         cat >conftest.$ac_ext <<_ACEOF
27193 /* confdefs.h.  */
27194 _ACEOF
27195 cat confdefs.h >>conftest.$ac_ext
27196 cat >>conftest.$ac_ext <<_ACEOF
27197 /* end confdefs.h.  */
27198
27199 #ifdef HAVE_SYS_TYPES_H
27200 #       include <sys/types.h>
27201 #endif
27202 #include <netinet/in.h>
27203 #ifdef HAVE_ARPA_NAMESER_H
27204 #       include <arpa/nameser.h>
27205 #endif
27206 #ifdef HAVE_RESOLV_H
27207 #       include <resolv.h>
27208 #endif
27209
27210 int
27211 main ()
27212 {
27213 {
27214         int len, status;
27215         char *request = NULL;
27216         unsigned char reply[64*1024];
27217         unsigned char host[64*1024];
27218         unsigned char *p;
27219
27220 #ifdef NS_HFIXEDSZ
27221         /* Bind 8/9 interface */
27222         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27223 #else
27224         /* Bind 4 interface */
27225 # ifndef T_SRV
27226 #  define T_SRV 33
27227 # endif
27228         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27229 #endif
27230         p = reply;
27231 #ifdef NS_HFIXEDSZ
27232         /* Bind 8/9 interface */
27233         p += NS_HFIXEDSZ;
27234 #elif defined(HFIXEDSZ)
27235         /* Bind 4 interface w/ HFIXEDSZ */
27236         p += HFIXEDSZ;
27237 #else
27238         /* Bind 4 interface w/o HFIXEDSZ */
27239         p += sizeof(HEADER);
27240 #endif
27241         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27242 }
27243   ;
27244   return 0;
27245 }
27246 _ACEOF
27247 rm -f conftest.$ac_objext conftest$ac_exeext
27248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27249   (eval $ac_link) 2>conftest.er1
27250   ac_status=$?
27251   grep -v '^ *+' conftest.er1 >conftest.err
27252   rm -f conftest.er1
27253   cat conftest.err >&5
27254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255   (exit $ac_status); } &&
27256          { ac_try='test -z "$ac_c_werror_flag"
27257                          || test ! -s conftest.err'
27258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27259   (eval $ac_try) 2>&5
27260   ac_status=$?
27261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262   (exit $ac_status); }; } &&
27263          { ac_try='test -s conftest$ac_exeext'
27264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27265   (eval $ac_try) 2>&5
27266   ac_status=$?
27267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27268   (exit $ac_status); }; }; then
27269   ol_cv_resolver_resolv=yes
27270 else
27271   echo "$as_me: failed program was:" >&5
27272 sed 's/^/| /' conftest.$ac_ext >&5
27273
27274 ol_cv_resolver_resolv=no
27275 fi
27276 rm -f conftest.err conftest.$ac_objext \
27277       conftest$ac_exeext conftest.$ac_ext
27278
27279         LIBS="$ol_LIBS"
27280
27281 fi
27282 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27283 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27284
27285         if test $ol_cv_resolver_resolv = yes ; then
27286                 ol_cv_lib_resolver=-lresolv
27287         fi
27288 fi
27289
27290 if test $ol_cv_lib_resolver = no ; then
27291         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27292 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27293 if test "${ol_cv_resolver_bind+set}" = set; then
27294   echo $ECHO_N "(cached) $ECHO_C" >&6
27295 else
27296
27297         ol_RESOLVER_LIB=-lbind
27298         ol_LIBS=$LIBS
27299         LIBS="$ol_RESOLVER_LIB $LIBS"
27300
27301         cat >conftest.$ac_ext <<_ACEOF
27302 /* confdefs.h.  */
27303 _ACEOF
27304 cat confdefs.h >>conftest.$ac_ext
27305 cat >>conftest.$ac_ext <<_ACEOF
27306 /* end confdefs.h.  */
27307
27308 #ifdef HAVE_SYS_TYPES_H
27309 #       include <sys/types.h>
27310 #endif
27311 #include <netinet/in.h>
27312 #ifdef HAVE_ARPA_NAMESER_H
27313 #       include <arpa/nameser.h>
27314 #endif
27315 #ifdef HAVE_RESOLV_H
27316 #       include <resolv.h>
27317 #endif
27318
27319 int
27320 main ()
27321 {
27322 {
27323         int len, status;
27324         char *request = NULL;
27325         unsigned char reply[64*1024];
27326         unsigned char host[64*1024];
27327         unsigned char *p;
27328
27329 #ifdef NS_HFIXEDSZ
27330         /* Bind 8/9 interface */
27331         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27332 #else
27333         /* Bind 4 interface */
27334 # ifndef T_SRV
27335 #  define T_SRV 33
27336 # endif
27337         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27338 #endif
27339         p = reply;
27340 #ifdef NS_HFIXEDSZ
27341         /* Bind 8/9 interface */
27342         p += NS_HFIXEDSZ;
27343 #elif defined(HFIXEDSZ)
27344         /* Bind 4 interface w/ HFIXEDSZ */
27345         p += HFIXEDSZ;
27346 #else
27347         /* Bind 4 interface w/o HFIXEDSZ */
27348         p += sizeof(HEADER);
27349 #endif
27350         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27351 }
27352   ;
27353   return 0;
27354 }
27355 _ACEOF
27356 rm -f conftest.$ac_objext conftest$ac_exeext
27357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27358   (eval $ac_link) 2>conftest.er1
27359   ac_status=$?
27360   grep -v '^ *+' conftest.er1 >conftest.err
27361   rm -f conftest.er1
27362   cat conftest.err >&5
27363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364   (exit $ac_status); } &&
27365          { ac_try='test -z "$ac_c_werror_flag"
27366                          || test ! -s conftest.err'
27367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27368   (eval $ac_try) 2>&5
27369   ac_status=$?
27370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371   (exit $ac_status); }; } &&
27372          { ac_try='test -s conftest$ac_exeext'
27373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27374   (eval $ac_try) 2>&5
27375   ac_status=$?
27376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377   (exit $ac_status); }; }; then
27378   ol_cv_resolver_bind=yes
27379 else
27380   echo "$as_me: failed program was:" >&5
27381 sed 's/^/| /' conftest.$ac_ext >&5
27382
27383 ol_cv_resolver_bind=no
27384 fi
27385 rm -f conftest.err conftest.$ac_objext \
27386       conftest$ac_exeext conftest.$ac_ext
27387
27388         LIBS="$ol_LIBS"
27389
27390 fi
27391 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27392 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27393
27394         if test $ol_cv_resolver_bind = yes ; then
27395                 ol_cv_lib_resolver=-lbind
27396         fi
27397 fi
27398
27399
27400
27401 ol_link_dnssrv=no
27402 if test "$ol_cv_lib_resolver" != no ; then
27403
27404 cat >>confdefs.h <<\_ACEOF
27405 #define HAVE_RES_QUERY 1
27406 _ACEOF
27407
27408
27409         if test "$ol_enable_dnssrv" != no ; then
27410                 ol_link_dnssrv=yes
27411         fi
27412
27413         if test "$ol_cv_lib_resolver" != yes ; then
27414                 LIBS="$ol_cv_lib_resolver $LIBS"
27415         fi
27416 fi
27417
27418 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27419         if test "$ol_link_dnssrv" = no ; then
27420                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27421 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27422    { (exit 1); exit 1; }; }
27423         fi
27424 else
27425         ol_enable_dnssrv=no
27426 fi
27427
27428
27429 for ac_func in hstrerror
27430 do
27431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27432 echo "$as_me:$LINENO: checking for $ac_func" >&5
27433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27434 if eval "test \"\${$as_ac_var+set}\" = set"; then
27435   echo $ECHO_N "(cached) $ECHO_C" >&6
27436 else
27437   cat >conftest.$ac_ext <<_ACEOF
27438 /* confdefs.h.  */
27439 _ACEOF
27440 cat confdefs.h >>conftest.$ac_ext
27441 cat >>conftest.$ac_ext <<_ACEOF
27442 /* end confdefs.h.  */
27443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27444    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27445 #define $ac_func innocuous_$ac_func
27446
27447 /* System header to define __stub macros and hopefully few prototypes,
27448     which can conflict with char $ac_func (); below.
27449     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27450     <limits.h> exists even on freestanding compilers.  */
27451
27452 #ifdef __STDC__
27453 # include <limits.h>
27454 #else
27455 # include <assert.h>
27456 #endif
27457
27458 #undef $ac_func
27459
27460 /* Override any gcc2 internal prototype to avoid an error.  */
27461 #ifdef __cplusplus
27462 extern "C"
27463 {
27464 #endif
27465 /* We use char because int might match the return type of a gcc2
27466    builtin and then its argument prototype would still apply.  */
27467 char $ac_func ();
27468 /* The GNU C library defines this for functions which it implements
27469     to always fail with ENOSYS.  Some functions are actually named
27470     something starting with __ and the normal name is an alias.  */
27471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27472 choke me
27473 #else
27474 char (*f) () = $ac_func;
27475 #endif
27476 #ifdef __cplusplus
27477 }
27478 #endif
27479
27480 int
27481 main ()
27482 {
27483 return f != $ac_func;
27484   ;
27485   return 0;
27486 }
27487 _ACEOF
27488 rm -f conftest.$ac_objext conftest$ac_exeext
27489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27490   (eval $ac_link) 2>conftest.er1
27491   ac_status=$?
27492   grep -v '^ *+' conftest.er1 >conftest.err
27493   rm -f conftest.er1
27494   cat conftest.err >&5
27495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27496   (exit $ac_status); } &&
27497          { ac_try='test -z "$ac_c_werror_flag"
27498                          || test ! -s conftest.err'
27499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27500   (eval $ac_try) 2>&5
27501   ac_status=$?
27502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503   (exit $ac_status); }; } &&
27504          { ac_try='test -s conftest$ac_exeext'
27505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27506   (eval $ac_try) 2>&5
27507   ac_status=$?
27508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509   (exit $ac_status); }; }; then
27510   eval "$as_ac_var=yes"
27511 else
27512   echo "$as_me: failed program was:" >&5
27513 sed 's/^/| /' conftest.$ac_ext >&5
27514
27515 eval "$as_ac_var=no"
27516 fi
27517 rm -f conftest.err conftest.$ac_objext \
27518       conftest$ac_exeext conftest.$ac_ext
27519 fi
27520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27522 if test `eval echo '${'$as_ac_var'}'` = yes; then
27523   cat >>confdefs.h <<_ACEOF
27524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27525 _ACEOF
27526
27527 fi
27528 done
27529
27530
27531
27532
27533
27534
27535 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27536 do
27537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27538 echo "$as_me:$LINENO: checking for $ac_func" >&5
27539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27540 if eval "test \"\${$as_ac_var+set}\" = set"; then
27541   echo $ECHO_N "(cached) $ECHO_C" >&6
27542 else
27543   cat >conftest.$ac_ext <<_ACEOF
27544 /* confdefs.h.  */
27545 _ACEOF
27546 cat confdefs.h >>conftest.$ac_ext
27547 cat >>conftest.$ac_ext <<_ACEOF
27548 /* end confdefs.h.  */
27549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27550    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27551 #define $ac_func innocuous_$ac_func
27552
27553 /* System header to define __stub macros and hopefully few prototypes,
27554     which can conflict with char $ac_func (); below.
27555     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27556     <limits.h> exists even on freestanding compilers.  */
27557
27558 #ifdef __STDC__
27559 # include <limits.h>
27560 #else
27561 # include <assert.h>
27562 #endif
27563
27564 #undef $ac_func
27565
27566 /* Override any gcc2 internal prototype to avoid an error.  */
27567 #ifdef __cplusplus
27568 extern "C"
27569 {
27570 #endif
27571 /* We use char because int might match the return type of a gcc2
27572    builtin and then its argument prototype would still apply.  */
27573 char $ac_func ();
27574 /* The GNU C library defines this for functions which it implements
27575     to always fail with ENOSYS.  Some functions are actually named
27576     something starting with __ and the normal name is an alias.  */
27577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27578 choke me
27579 #else
27580 char (*f) () = $ac_func;
27581 #endif
27582 #ifdef __cplusplus
27583 }
27584 #endif
27585
27586 int
27587 main ()
27588 {
27589 return f != $ac_func;
27590   ;
27591   return 0;
27592 }
27593 _ACEOF
27594 rm -f conftest.$ac_objext conftest$ac_exeext
27595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27596   (eval $ac_link) 2>conftest.er1
27597   ac_status=$?
27598   grep -v '^ *+' conftest.er1 >conftest.err
27599   rm -f conftest.er1
27600   cat conftest.err >&5
27601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602   (exit $ac_status); } &&
27603          { ac_try='test -z "$ac_c_werror_flag"
27604                          || test ! -s conftest.err'
27605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27606   (eval $ac_try) 2>&5
27607   ac_status=$?
27608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609   (exit $ac_status); }; } &&
27610          { ac_try='test -s conftest$ac_exeext'
27611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27612   (eval $ac_try) 2>&5
27613   ac_status=$?
27614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615   (exit $ac_status); }; }; then
27616   eval "$as_ac_var=yes"
27617 else
27618   echo "$as_me: failed program was:" >&5
27619 sed 's/^/| /' conftest.$ac_ext >&5
27620
27621 eval "$as_ac_var=no"
27622 fi
27623 rm -f conftest.err conftest.$ac_objext \
27624       conftest$ac_exeext conftest.$ac_ext
27625 fi
27626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27628 if test `eval echo '${'$as_ac_var'}'` = yes; then
27629   cat >>confdefs.h <<_ACEOF
27630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27631 _ACEOF
27632
27633 fi
27634 done
27635
27636
27637 ol_link_ipv6=no
27638 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27639         if test $ol_enable_ipv6 = yes ; then
27640                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27641 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27642    { (exit 1); exit 1; }; }
27643         fi
27644 elif test $ol_enable_ipv6 != no ; then
27645         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27646 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27647 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27648   echo $ECHO_N "(cached) $ECHO_C" >&6
27649 else
27650
27651                 cat >conftest.$ac_ext <<_ACEOF
27652 /* confdefs.h.  */
27653 _ACEOF
27654 cat confdefs.h >>conftest.$ac_ext
27655 cat >>conftest.$ac_ext <<_ACEOF
27656 /* end confdefs.h.  */
27657
27658 #                       include <netinet/in.h>
27659 #                       ifdef INET6_ADDRSTRLEN
27660                                 __has_inet6_addrstrlen__;
27661 #                       endif
27662
27663 _ACEOF
27664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27665   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27666   ol_cv_inet6_addrstrlen=yes
27667 else
27668   ol_cv_inet6_addrstrlen=no
27669 fi
27670 rm -f conftest*
27671
27672 fi
27673 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27674 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27675
27676
27677         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27678 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27679 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27680   echo $ECHO_N "(cached) $ECHO_C" >&6
27681 else
27682
27683                 cat >conftest.$ac_ext <<_ACEOF
27684 /* confdefs.h.  */
27685 _ACEOF
27686 cat confdefs.h >>conftest.$ac_ext
27687 cat >>conftest.$ac_ext <<_ACEOF
27688 /* end confdefs.h.  */
27689
27690 #include <sys/types.h>
27691 #include <sys/socket.h>
27692
27693 int
27694 main ()
27695 {
27696
27697                         struct sockaddr_storage ss;
27698
27699   ;
27700   return 0;
27701 }
27702 _ACEOF
27703 rm -f conftest.$ac_objext
27704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27705   (eval $ac_compile) 2>conftest.er1
27706   ac_status=$?
27707   grep -v '^ *+' conftest.er1 >conftest.err
27708   rm -f conftest.er1
27709   cat conftest.err >&5
27710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711   (exit $ac_status); } &&
27712          { ac_try='test -z "$ac_c_werror_flag"
27713                          || test ! -s conftest.err'
27714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27715   (eval $ac_try) 2>&5
27716   ac_status=$?
27717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718   (exit $ac_status); }; } &&
27719          { ac_try='test -s conftest.$ac_objext'
27720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27721   (eval $ac_try) 2>&5
27722   ac_status=$?
27723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724   (exit $ac_status); }; }; then
27725   ol_cv_struct_sockaddr_storage=yes
27726 else
27727   echo "$as_me: failed program was:" >&5
27728 sed 's/^/| /' conftest.$ac_ext >&5
27729
27730 ol_cv_struct_sockaddr_storage=no
27731 fi
27732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27733 fi
27734 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
27735 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
27736
27737         if test $ol_cv_inet6_addrstrlen = yes \
27738                 -a $ol_cv_struct_sockaddr_storage = yes ; then
27739                 ol_link_ipv6=yes
27740         elif test $ol_enable_ipv6 = yes \
27741                         -a $ol_cv_inet6_addrstrlen = no ; then
27742                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
27743 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
27744    { (exit 1); exit 1; }; }
27745         elif test $ol_enable_ipv6 = yes \
27746                         -a $ol_cv_struct_sockaddr_storage = no ; then
27747                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
27748 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
27749    { (exit 1); exit 1; }; }
27750         fi
27751 fi
27752
27753 if test $ol_enable_local != no ; then
27754
27755 for ac_header in sys/un.h
27756 do
27757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27759   echo "$as_me:$LINENO: checking for $ac_header" >&5
27760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27762   echo $ECHO_N "(cached) $ECHO_C" >&6
27763 fi
27764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27766 else
27767   # Is the header compilable?
27768 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27770 cat >conftest.$ac_ext <<_ACEOF
27771 /* confdefs.h.  */
27772 _ACEOF
27773 cat confdefs.h >>conftest.$ac_ext
27774 cat >>conftest.$ac_ext <<_ACEOF
27775 /* end confdefs.h.  */
27776 $ac_includes_default
27777 #include <$ac_header>
27778 _ACEOF
27779 rm -f conftest.$ac_objext
27780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27781   (eval $ac_compile) 2>conftest.er1
27782   ac_status=$?
27783   grep -v '^ *+' conftest.er1 >conftest.err
27784   rm -f conftest.er1
27785   cat conftest.err >&5
27786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787   (exit $ac_status); } &&
27788          { ac_try='test -z "$ac_c_werror_flag"
27789                          || test ! -s conftest.err'
27790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27791   (eval $ac_try) 2>&5
27792   ac_status=$?
27793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794   (exit $ac_status); }; } &&
27795          { ac_try='test -s conftest.$ac_objext'
27796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27797   (eval $ac_try) 2>&5
27798   ac_status=$?
27799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800   (exit $ac_status); }; }; then
27801   ac_header_compiler=yes
27802 else
27803   echo "$as_me: failed program was:" >&5
27804 sed 's/^/| /' conftest.$ac_ext >&5
27805
27806 ac_header_compiler=no
27807 fi
27808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27809 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27810 echo "${ECHO_T}$ac_header_compiler" >&6
27811
27812 # Is the header present?
27813 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27815 cat >conftest.$ac_ext <<_ACEOF
27816 /* confdefs.h.  */
27817 _ACEOF
27818 cat confdefs.h >>conftest.$ac_ext
27819 cat >>conftest.$ac_ext <<_ACEOF
27820 /* end confdefs.h.  */
27821 #include <$ac_header>
27822 _ACEOF
27823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27824   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27825   ac_status=$?
27826   grep -v '^ *+' conftest.er1 >conftest.err
27827   rm -f conftest.er1
27828   cat conftest.err >&5
27829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27830   (exit $ac_status); } >/dev/null; then
27831   if test -s conftest.err; then
27832     ac_cpp_err=$ac_c_preproc_warn_flag
27833     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27834   else
27835     ac_cpp_err=
27836   fi
27837 else
27838   ac_cpp_err=yes
27839 fi
27840 if test -z "$ac_cpp_err"; then
27841   ac_header_preproc=yes
27842 else
27843   echo "$as_me: failed program was:" >&5
27844 sed 's/^/| /' conftest.$ac_ext >&5
27845
27846   ac_header_preproc=no
27847 fi
27848 rm -f conftest.err conftest.$ac_ext
27849 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27850 echo "${ECHO_T}$ac_header_preproc" >&6
27851
27852 # So?  What about this header?
27853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27854   yes:no: )
27855     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27857     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27859     ac_header_preproc=yes
27860     ;;
27861   no:yes:* )
27862     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27864     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27865 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27866     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27868     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27869 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27870     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27872     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27874     (
27875       cat <<\_ASBOX
27876 ## ------------------------------------------ ##
27877 ## Report this to the AC_PACKAGE_NAME lists.  ##
27878 ## ------------------------------------------ ##
27879 _ASBOX
27880     ) |
27881       sed "s/^/$as_me: WARNING:     /" >&2
27882     ;;
27883 esac
27884 echo "$as_me:$LINENO: checking for $ac_header" >&5
27885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27887   echo $ECHO_N "(cached) $ECHO_C" >&6
27888 else
27889   eval "$as_ac_Header=\$ac_header_preproc"
27890 fi
27891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27893
27894 fi
27895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27896   cat >>confdefs.h <<_ACEOF
27897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27898 _ACEOF
27899
27900 fi
27901
27902 done
27903
27904
27905         if test $ol_enable_local = auto ; then
27906                 ol_enable_local=$ac_cv_header_sys_un_h
27907         elif test $ac_cv_header_sys_un_h = no ; then
27908                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
27909 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
27910    { (exit 1); exit 1; }; }
27911         fi
27912 fi
27913
27914 ol_link_kbind=no
27915 ol_link_krb5=no
27916 ol_link_krb4=no
27917
27918 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
27919         -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
27920         -o $ol_with_kerberos = k425 ; then
27921
27922
27923 for ac_header in krb5.h
27924 do
27925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27927   echo "$as_me:$LINENO: checking for $ac_header" >&5
27928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27930   echo $ECHO_N "(cached) $ECHO_C" >&6
27931 fi
27932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27934 else
27935   # Is the header compilable?
27936 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27938 cat >conftest.$ac_ext <<_ACEOF
27939 /* confdefs.h.  */
27940 _ACEOF
27941 cat confdefs.h >>conftest.$ac_ext
27942 cat >>conftest.$ac_ext <<_ACEOF
27943 /* end confdefs.h.  */
27944 $ac_includes_default
27945 #include <$ac_header>
27946 _ACEOF
27947 rm -f conftest.$ac_objext
27948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27949   (eval $ac_compile) 2>conftest.er1
27950   ac_status=$?
27951   grep -v '^ *+' conftest.er1 >conftest.err
27952   rm -f conftest.er1
27953   cat conftest.err >&5
27954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955   (exit $ac_status); } &&
27956          { ac_try='test -z "$ac_c_werror_flag"
27957                          || test ! -s conftest.err'
27958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27959   (eval $ac_try) 2>&5
27960   ac_status=$?
27961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962   (exit $ac_status); }; } &&
27963          { ac_try='test -s conftest.$ac_objext'
27964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27965   (eval $ac_try) 2>&5
27966   ac_status=$?
27967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968   (exit $ac_status); }; }; then
27969   ac_header_compiler=yes
27970 else
27971   echo "$as_me: failed program was:" >&5
27972 sed 's/^/| /' conftest.$ac_ext >&5
27973
27974 ac_header_compiler=no
27975 fi
27976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27978 echo "${ECHO_T}$ac_header_compiler" >&6
27979
27980 # Is the header present?
27981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27983 cat >conftest.$ac_ext <<_ACEOF
27984 /* confdefs.h.  */
27985 _ACEOF
27986 cat confdefs.h >>conftest.$ac_ext
27987 cat >>conftest.$ac_ext <<_ACEOF
27988 /* end confdefs.h.  */
27989 #include <$ac_header>
27990 _ACEOF
27991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27992   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27993   ac_status=$?
27994   grep -v '^ *+' conftest.er1 >conftest.err
27995   rm -f conftest.er1
27996   cat conftest.err >&5
27997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998   (exit $ac_status); } >/dev/null; then
27999   if test -s conftest.err; then
28000     ac_cpp_err=$ac_c_preproc_warn_flag
28001     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28002   else
28003     ac_cpp_err=
28004   fi
28005 else
28006   ac_cpp_err=yes
28007 fi
28008 if test -z "$ac_cpp_err"; then
28009   ac_header_preproc=yes
28010 else
28011   echo "$as_me: failed program was:" >&5
28012 sed 's/^/| /' conftest.$ac_ext >&5
28013
28014   ac_header_preproc=no
28015 fi
28016 rm -f conftest.err conftest.$ac_ext
28017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28018 echo "${ECHO_T}$ac_header_preproc" >&6
28019
28020 # So?  What about this header?
28021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28022   yes:no: )
28023     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28025     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28027     ac_header_preproc=yes
28028     ;;
28029   no:yes:* )
28030     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28032     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28033 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28034     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28036     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28037 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28040     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28042     (
28043       cat <<\_ASBOX
28044 ## ------------------------------------------ ##
28045 ## Report this to the AC_PACKAGE_NAME lists.  ##
28046 ## ------------------------------------------ ##
28047 _ASBOX
28048     ) |
28049       sed "s/^/$as_me: WARNING:     /" >&2
28050     ;;
28051 esac
28052 echo "$as_me:$LINENO: checking for $ac_header" >&5
28053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28055   echo $ECHO_N "(cached) $ECHO_C" >&6
28056 else
28057   eval "$as_ac_Header=\$ac_header_preproc"
28058 fi
28059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28061
28062 fi
28063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28064   cat >>confdefs.h <<_ACEOF
28065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28066 _ACEOF
28067
28068 fi
28069
28070 done
28071
28072
28073         if test $ac_cv_header_krb5_h = yes ; then
28074
28075 for ac_header in heim_err.h
28076 do
28077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28079   echo "$as_me:$LINENO: checking for $ac_header" >&5
28080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28082   echo $ECHO_N "(cached) $ECHO_C" >&6
28083 fi
28084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28086 else
28087   # Is the header compilable?
28088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28090 cat >conftest.$ac_ext <<_ACEOF
28091 /* confdefs.h.  */
28092 _ACEOF
28093 cat confdefs.h >>conftest.$ac_ext
28094 cat >>conftest.$ac_ext <<_ACEOF
28095 /* end confdefs.h.  */
28096 $ac_includes_default
28097 #include <$ac_header>
28098 _ACEOF
28099 rm -f conftest.$ac_objext
28100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28101   (eval $ac_compile) 2>conftest.er1
28102   ac_status=$?
28103   grep -v '^ *+' conftest.er1 >conftest.err
28104   rm -f conftest.er1
28105   cat conftest.err >&5
28106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107   (exit $ac_status); } &&
28108          { ac_try='test -z "$ac_c_werror_flag"
28109                          || test ! -s conftest.err'
28110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28111   (eval $ac_try) 2>&5
28112   ac_status=$?
28113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114   (exit $ac_status); }; } &&
28115          { ac_try='test -s conftest.$ac_objext'
28116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28117   (eval $ac_try) 2>&5
28118   ac_status=$?
28119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28120   (exit $ac_status); }; }; then
28121   ac_header_compiler=yes
28122 else
28123   echo "$as_me: failed program was:" >&5
28124 sed 's/^/| /' conftest.$ac_ext >&5
28125
28126 ac_header_compiler=no
28127 fi
28128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28130 echo "${ECHO_T}$ac_header_compiler" >&6
28131
28132 # Is the header present?
28133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28135 cat >conftest.$ac_ext <<_ACEOF
28136 /* confdefs.h.  */
28137 _ACEOF
28138 cat confdefs.h >>conftest.$ac_ext
28139 cat >>conftest.$ac_ext <<_ACEOF
28140 /* end confdefs.h.  */
28141 #include <$ac_header>
28142 _ACEOF
28143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28144   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28145   ac_status=$?
28146   grep -v '^ *+' conftest.er1 >conftest.err
28147   rm -f conftest.er1
28148   cat conftest.err >&5
28149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150   (exit $ac_status); } >/dev/null; then
28151   if test -s conftest.err; then
28152     ac_cpp_err=$ac_c_preproc_warn_flag
28153     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28154   else
28155     ac_cpp_err=
28156   fi
28157 else
28158   ac_cpp_err=yes
28159 fi
28160 if test -z "$ac_cpp_err"; then
28161   ac_header_preproc=yes
28162 else
28163   echo "$as_me: failed program was:" >&5
28164 sed 's/^/| /' conftest.$ac_ext >&5
28165
28166   ac_header_preproc=no
28167 fi
28168 rm -f conftest.err conftest.$ac_ext
28169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28170 echo "${ECHO_T}$ac_header_preproc" >&6
28171
28172 # So?  What about this header?
28173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28174   yes:no: )
28175     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28179     ac_header_preproc=yes
28180     ;;
28181   no:yes:* )
28182     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28184     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28185 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28186     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28188     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28189 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28192     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28194     (
28195       cat <<\_ASBOX
28196 ## ------------------------------------------ ##
28197 ## Report this to the AC_PACKAGE_NAME lists.  ##
28198 ## ------------------------------------------ ##
28199 _ASBOX
28200     ) |
28201       sed "s/^/$as_me: WARNING:     /" >&2
28202     ;;
28203 esac
28204 echo "$as_me:$LINENO: checking for $ac_header" >&5
28205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28207   echo $ECHO_N "(cached) $ECHO_C" >&6
28208 else
28209   eval "$as_ac_Header=\$ac_header_preproc"
28210 fi
28211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28213
28214 fi
28215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28216   cat >>confdefs.h <<_ACEOF
28217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28218 _ACEOF
28219
28220 fi
28221
28222 done
28223
28224                 if test $ac_cv_header_heim_err_h = yes ; then
28225                         krb5_impl=heimdal
28226                 else
28227                         krb5_impl=mit
28228                 fi
28229
28230                 if test $krb5_impl = mit; then
28231                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28232 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28233 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28234   echo $ECHO_N "(cached) $ECHO_C" >&6
28235 else
28236   ac_check_lib_save_LIBS=$LIBS
28237 LIBS="-lk5crypto  $LIBS"
28238 cat >conftest.$ac_ext <<_ACEOF
28239 /* confdefs.h.  */
28240 _ACEOF
28241 cat confdefs.h >>conftest.$ac_ext
28242 cat >>conftest.$ac_ext <<_ACEOF
28243 /* end confdefs.h.  */
28244
28245
28246 int
28247 main ()
28248 {
28249 main ();
28250   ;
28251   return 0;
28252 }
28253 _ACEOF
28254 rm -f conftest.$ac_objext conftest$ac_exeext
28255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28256   (eval $ac_link) 2>conftest.er1
28257   ac_status=$?
28258   grep -v '^ *+' conftest.er1 >conftest.err
28259   rm -f conftest.er1
28260   cat conftest.err >&5
28261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262   (exit $ac_status); } &&
28263          { ac_try='test -z "$ac_c_werror_flag"
28264                          || test ! -s conftest.err'
28265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28266   (eval $ac_try) 2>&5
28267   ac_status=$?
28268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269   (exit $ac_status); }; } &&
28270          { ac_try='test -s conftest$ac_exeext'
28271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28272   (eval $ac_try) 2>&5
28273   ac_status=$?
28274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275   (exit $ac_status); }; }; then
28276   ac_cv_lib_k5crypto_main=yes
28277 else
28278   echo "$as_me: failed program was:" >&5
28279 sed 's/^/| /' conftest.$ac_ext >&5
28280
28281 ac_cv_lib_k5crypto_main=no
28282 fi
28283 rm -f conftest.err conftest.$ac_objext \
28284       conftest$ac_exeext conftest.$ac_ext
28285 LIBS=$ac_check_lib_save_LIBS
28286 fi
28287 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28288 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28289 if test $ac_cv_lib_k5crypto_main = yes; then
28290   krb5crypto=k5crypto
28291 else
28292   krb5crypto=crypto
28293 fi
28294
28295
28296                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28297 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28298 if test "${ac_cv_lib_krb5_main+set}" = set; then
28299   echo $ECHO_N "(cached) $ECHO_C" >&6
28300 else
28301   ac_check_lib_save_LIBS=$LIBS
28302 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28303 cat >conftest.$ac_ext <<_ACEOF
28304 /* confdefs.h.  */
28305 _ACEOF
28306 cat confdefs.h >>conftest.$ac_ext
28307 cat >>conftest.$ac_ext <<_ACEOF
28308 /* end confdefs.h.  */
28309
28310
28311 int
28312 main ()
28313 {
28314 main ();
28315   ;
28316   return 0;
28317 }
28318 _ACEOF
28319 rm -f conftest.$ac_objext conftest$ac_exeext
28320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28321   (eval $ac_link) 2>conftest.er1
28322   ac_status=$?
28323   grep -v '^ *+' conftest.er1 >conftest.err
28324   rm -f conftest.er1
28325   cat conftest.err >&5
28326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28327   (exit $ac_status); } &&
28328          { ac_try='test -z "$ac_c_werror_flag"
28329                          || test ! -s conftest.err'
28330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28331   (eval $ac_try) 2>&5
28332   ac_status=$?
28333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28334   (exit $ac_status); }; } &&
28335          { ac_try='test -s conftest$ac_exeext'
28336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28337   (eval $ac_try) 2>&5
28338   ac_status=$?
28339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28340   (exit $ac_status); }; }; then
28341   ac_cv_lib_krb5_main=yes
28342 else
28343   echo "$as_me: failed program was:" >&5
28344 sed 's/^/| /' conftest.$ac_ext >&5
28345
28346 ac_cv_lib_krb5_main=no
28347 fi
28348 rm -f conftest.err conftest.$ac_objext \
28349       conftest$ac_exeext conftest.$ac_ext
28350 LIBS=$ac_check_lib_save_LIBS
28351 fi
28352 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28353 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28354 if test $ac_cv_lib_krb5_main = yes; then
28355   have_krb5=yes
28356                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28357 else
28358   have_krb5=no
28359 fi
28360
28361
28362                 elif test $krb5_impl = heimdal; then
28363                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
28364 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28365 if test "${ac_cv_lib_des_main+set}" = set; then
28366   echo $ECHO_N "(cached) $ECHO_C" >&6
28367 else
28368   ac_check_lib_save_LIBS=$LIBS
28369 LIBS="-ldes  $LIBS"
28370 cat >conftest.$ac_ext <<_ACEOF
28371 /* confdefs.h.  */
28372 _ACEOF
28373 cat confdefs.h >>conftest.$ac_ext
28374 cat >>conftest.$ac_ext <<_ACEOF
28375 /* end confdefs.h.  */
28376
28377
28378 int
28379 main ()
28380 {
28381 main ();
28382   ;
28383   return 0;
28384 }
28385 _ACEOF
28386 rm -f conftest.$ac_objext conftest$ac_exeext
28387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28388   (eval $ac_link) 2>conftest.er1
28389   ac_status=$?
28390   grep -v '^ *+' conftest.er1 >conftest.err
28391   rm -f conftest.er1
28392   cat conftest.err >&5
28393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394   (exit $ac_status); } &&
28395          { ac_try='test -z "$ac_c_werror_flag"
28396                          || test ! -s conftest.err'
28397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28398   (eval $ac_try) 2>&5
28399   ac_status=$?
28400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401   (exit $ac_status); }; } &&
28402          { ac_try='test -s conftest$ac_exeext'
28403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28404   (eval $ac_try) 2>&5
28405   ac_status=$?
28406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407   (exit $ac_status); }; }; then
28408   ac_cv_lib_des_main=yes
28409 else
28410   echo "$as_me: failed program was:" >&5
28411 sed 's/^/| /' conftest.$ac_ext >&5
28412
28413 ac_cv_lib_des_main=no
28414 fi
28415 rm -f conftest.err conftest.$ac_objext \
28416       conftest$ac_exeext conftest.$ac_ext
28417 LIBS=$ac_check_lib_save_LIBS
28418 fi
28419 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28420 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28421 if test $ac_cv_lib_des_main = yes; then
28422   krb5crypto=des
28423 else
28424   krb5crypto=crypto
28425 fi
28426
28427
28428                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28429 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28430 if test "${ac_cv_lib_krb5_main+set}" = set; then
28431   echo $ECHO_N "(cached) $ECHO_C" >&6
28432 else
28433   ac_check_lib_save_LIBS=$LIBS
28434 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28435 cat >conftest.$ac_ext <<_ACEOF
28436 /* confdefs.h.  */
28437 _ACEOF
28438 cat confdefs.h >>conftest.$ac_ext
28439 cat >>conftest.$ac_ext <<_ACEOF
28440 /* end confdefs.h.  */
28441
28442
28443 int
28444 main ()
28445 {
28446 main ();
28447   ;
28448   return 0;
28449 }
28450 _ACEOF
28451 rm -f conftest.$ac_objext conftest$ac_exeext
28452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28453   (eval $ac_link) 2>conftest.er1
28454   ac_status=$?
28455   grep -v '^ *+' conftest.er1 >conftest.err
28456   rm -f conftest.er1
28457   cat conftest.err >&5
28458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459   (exit $ac_status); } &&
28460          { ac_try='test -z "$ac_c_werror_flag"
28461                          || test ! -s conftest.err'
28462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28463   (eval $ac_try) 2>&5
28464   ac_status=$?
28465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466   (exit $ac_status); }; } &&
28467          { ac_try='test -s conftest$ac_exeext'
28468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28469   (eval $ac_try) 2>&5
28470   ac_status=$?
28471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472   (exit $ac_status); }; }; then
28473   ac_cv_lib_krb5_main=yes
28474 else
28475   echo "$as_me: failed program was:" >&5
28476 sed 's/^/| /' conftest.$ac_ext >&5
28477
28478 ac_cv_lib_krb5_main=no
28479 fi
28480 rm -f conftest.err conftest.$ac_objext \
28481       conftest$ac_exeext conftest.$ac_ext
28482 LIBS=$ac_check_lib_save_LIBS
28483 fi
28484 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28485 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28486 if test $ac_cv_lib_krb5_main = yes; then
28487   have_krb5=yes
28488                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28489 else
28490   have_krb5=no
28491 fi
28492
28493
28494
28495 cat >>confdefs.h <<\_ACEOF
28496 #define HAVE_HEIMDAL_KERBEROS 1
28497 _ACEOF
28498
28499
28500                 else
28501                         have_krb5=no
28502                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28503 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28504                 fi
28505
28506                 if test $have_krb5 = yes ; then
28507                         ol_link_krb5=yes
28508
28509
28510 cat >>confdefs.h <<\_ACEOF
28511 #define HAVE_KRB5 1
28512 _ACEOF
28513
28514
28515                         if test $ol_with_kerberos = k5only ; then
28516                                 ol_with_kerberos=found
28517                         fi
28518
28519                 elif test $ol_with_kerberos != auto ; then
28520                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28521 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28522    { (exit 1); exit 1; }; }
28523                 fi
28524
28525         fi
28526 fi
28527
28528 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28529         $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28530
28531
28532
28533 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28534 do
28535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28537   echo "$as_me:$LINENO: checking for $ac_header" >&5
28538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28540   echo $ECHO_N "(cached) $ECHO_C" >&6
28541 fi
28542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28544 else
28545   # Is the header compilable?
28546 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28548 cat >conftest.$ac_ext <<_ACEOF
28549 /* confdefs.h.  */
28550 _ACEOF
28551 cat confdefs.h >>conftest.$ac_ext
28552 cat >>conftest.$ac_ext <<_ACEOF
28553 /* end confdefs.h.  */
28554 $ac_includes_default
28555 #include <$ac_header>
28556 _ACEOF
28557 rm -f conftest.$ac_objext
28558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28559   (eval $ac_compile) 2>conftest.er1
28560   ac_status=$?
28561   grep -v '^ *+' conftest.er1 >conftest.err
28562   rm -f conftest.er1
28563   cat conftest.err >&5
28564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565   (exit $ac_status); } &&
28566          { ac_try='test -z "$ac_c_werror_flag"
28567                          || test ! -s conftest.err'
28568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28569   (eval $ac_try) 2>&5
28570   ac_status=$?
28571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572   (exit $ac_status); }; } &&
28573          { ac_try='test -s conftest.$ac_objext'
28574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28575   (eval $ac_try) 2>&5
28576   ac_status=$?
28577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578   (exit $ac_status); }; }; then
28579   ac_header_compiler=yes
28580 else
28581   echo "$as_me: failed program was:" >&5
28582 sed 's/^/| /' conftest.$ac_ext >&5
28583
28584 ac_header_compiler=no
28585 fi
28586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28587 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28588 echo "${ECHO_T}$ac_header_compiler" >&6
28589
28590 # Is the header present?
28591 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28593 cat >conftest.$ac_ext <<_ACEOF
28594 /* confdefs.h.  */
28595 _ACEOF
28596 cat confdefs.h >>conftest.$ac_ext
28597 cat >>conftest.$ac_ext <<_ACEOF
28598 /* end confdefs.h.  */
28599 #include <$ac_header>
28600 _ACEOF
28601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28602   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28603   ac_status=$?
28604   grep -v '^ *+' conftest.er1 >conftest.err
28605   rm -f conftest.er1
28606   cat conftest.err >&5
28607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608   (exit $ac_status); } >/dev/null; then
28609   if test -s conftest.err; then
28610     ac_cpp_err=$ac_c_preproc_warn_flag
28611     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28612   else
28613     ac_cpp_err=
28614   fi
28615 else
28616   ac_cpp_err=yes
28617 fi
28618 if test -z "$ac_cpp_err"; then
28619   ac_header_preproc=yes
28620 else
28621   echo "$as_me: failed program was:" >&5
28622 sed 's/^/| /' conftest.$ac_ext >&5
28623
28624   ac_header_preproc=no
28625 fi
28626 rm -f conftest.err conftest.$ac_ext
28627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28628 echo "${ECHO_T}$ac_header_preproc" >&6
28629
28630 # So?  What about this header?
28631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28632   yes:no: )
28633     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28635     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28637     ac_header_preproc=yes
28638     ;;
28639   no:yes:* )
28640     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28642     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28643 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28644     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28646     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28647 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28648     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28650     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28652     (
28653       cat <<\_ASBOX
28654 ## ------------------------------------------ ##
28655 ## Report this to the AC_PACKAGE_NAME lists.  ##
28656 ## ------------------------------------------ ##
28657 _ASBOX
28658     ) |
28659       sed "s/^/$as_me: WARNING:     /" >&2
28660     ;;
28661 esac
28662 echo "$as_me:$LINENO: checking for $ac_header" >&5
28663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28665   echo $ECHO_N "(cached) $ECHO_C" >&6
28666 else
28667   eval "$as_ac_Header=\$ac_header_preproc"
28668 fi
28669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28671
28672 fi
28673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28674   cat >>confdefs.h <<_ACEOF
28675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28676 _ACEOF
28677
28678 fi
28679
28680 done
28681
28682
28683         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28684                 if test $krb5_impl = mit; then
28685                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28686 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28687 if test "${ac_cv_lib_krb4_main+set}" = set; then
28688   echo $ECHO_N "(cached) $ECHO_C" >&6
28689 else
28690   ac_check_lib_save_LIBS=$LIBS
28691 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28692 cat >conftest.$ac_ext <<_ACEOF
28693 /* confdefs.h.  */
28694 _ACEOF
28695 cat confdefs.h >>conftest.$ac_ext
28696 cat >>conftest.$ac_ext <<_ACEOF
28697 /* end confdefs.h.  */
28698
28699
28700 int
28701 main ()
28702 {
28703 main ();
28704   ;
28705   return 0;
28706 }
28707 _ACEOF
28708 rm -f conftest.$ac_objext conftest$ac_exeext
28709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28710   (eval $ac_link) 2>conftest.er1
28711   ac_status=$?
28712   grep -v '^ *+' conftest.er1 >conftest.err
28713   rm -f conftest.er1
28714   cat conftest.err >&5
28715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716   (exit $ac_status); } &&
28717          { ac_try='test -z "$ac_c_werror_flag"
28718                          || test ! -s conftest.err'
28719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28720   (eval $ac_try) 2>&5
28721   ac_status=$?
28722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723   (exit $ac_status); }; } &&
28724          { ac_try='test -s conftest$ac_exeext'
28725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28726   (eval $ac_try) 2>&5
28727   ac_status=$?
28728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729   (exit $ac_status); }; }; then
28730   ac_cv_lib_krb4_main=yes
28731 else
28732   echo "$as_me: failed program was:" >&5
28733 sed 's/^/| /' conftest.$ac_ext >&5
28734
28735 ac_cv_lib_krb4_main=no
28736 fi
28737 rm -f conftest.err conftest.$ac_objext \
28738       conftest$ac_exeext conftest.$ac_ext
28739 LIBS=$ac_check_lib_save_LIBS
28740 fi
28741 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28742 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28743 if test $ac_cv_lib_krb4_main = yes; then
28744   have_k425=yes
28745                                 KRB4_LIBS="-lkrb4 -ldes425"
28746 else
28747   have_k425=no
28748 fi
28749
28750
28751                 elif test $krb5_impl = heimdal; then
28752                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28753 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28754 if test "${ac_cv_lib_krb4_main+set}" = set; then
28755   echo $ECHO_N "(cached) $ECHO_C" >&6
28756 else
28757   ac_check_lib_save_LIBS=$LIBS
28758 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28759 cat >conftest.$ac_ext <<_ACEOF
28760 /* confdefs.h.  */
28761 _ACEOF
28762 cat confdefs.h >>conftest.$ac_ext
28763 cat >>conftest.$ac_ext <<_ACEOF
28764 /* end confdefs.h.  */
28765
28766
28767 int
28768 main ()
28769 {
28770 main ();
28771   ;
28772   return 0;
28773 }
28774 _ACEOF
28775 rm -f conftest.$ac_objext conftest$ac_exeext
28776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28777   (eval $ac_link) 2>conftest.er1
28778   ac_status=$?
28779   grep -v '^ *+' conftest.er1 >conftest.err
28780   rm -f conftest.er1
28781   cat conftest.err >&5
28782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783   (exit $ac_status); } &&
28784          { ac_try='test -z "$ac_c_werror_flag"
28785                          || test ! -s conftest.err'
28786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28787   (eval $ac_try) 2>&5
28788   ac_status=$?
28789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790   (exit $ac_status); }; } &&
28791          { ac_try='test -s conftest$ac_exeext'
28792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28793   (eval $ac_try) 2>&5
28794   ac_status=$?
28795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796   (exit $ac_status); }; }; then
28797   ac_cv_lib_krb4_main=yes
28798 else
28799   echo "$as_me: failed program was:" >&5
28800 sed 's/^/| /' conftest.$ac_ext >&5
28801
28802 ac_cv_lib_krb4_main=no
28803 fi
28804 rm -f conftest.err conftest.$ac_objext \
28805       conftest$ac_exeext conftest.$ac_ext
28806 LIBS=$ac_check_lib_save_LIBS
28807 fi
28808 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28809 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28810 if test $ac_cv_lib_krb4_main = yes; then
28811   have_k425=yes
28812                                 KRB4_LIBS="-lkrb4"
28813 else
28814   have_k425=no
28815 fi
28816
28817
28818                 else
28819                         have_425=no
28820                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
28821 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
28822                 fi
28823
28824                 if test $have_k425 = yes ; then
28825                         ol_with_kerberos=found
28826                         ol_link_krb4=yes
28827
28828
28829 cat >>confdefs.h <<\_ACEOF
28830 #define HAVE_KRB425 1
28831 _ACEOF
28832
28833
28834 cat >>confdefs.h <<\_ACEOF
28835 #define HAVE_KRB4 1
28836 _ACEOF
28837
28838
28839                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
28840 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
28841 if test "${ol_cv_var_des_debug+set}" = set; then
28842   echo $ECHO_N "(cached) $ECHO_C" >&6
28843 else
28844
28845                                                                 save_LIBS="$LIBS"
28846                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
28847                                 cat >conftest.$ac_ext <<_ACEOF
28848 /* confdefs.h.  */
28849 _ACEOF
28850 cat confdefs.h >>conftest.$ac_ext
28851 cat >>conftest.$ac_ext <<_ACEOF
28852 /* end confdefs.h.  */
28853
28854 #include <kerberosIV/krb.h>
28855 #include <kerberosIV/des.h>
28856 extern int des_debug;
28857
28858 int
28859 main ()
28860 {
28861
28862 des_debug = 1;
28863
28864   ;
28865   return 0;
28866 }
28867 _ACEOF
28868 rm -f conftest.$ac_objext conftest$ac_exeext
28869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28870   (eval $ac_link) 2>conftest.er1
28871   ac_status=$?
28872   grep -v '^ *+' conftest.er1 >conftest.err
28873   rm -f conftest.er1
28874   cat conftest.err >&5
28875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876   (exit $ac_status); } &&
28877          { ac_try='test -z "$ac_c_werror_flag"
28878                          || test ! -s conftest.err'
28879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28880   (eval $ac_try) 2>&5
28881   ac_status=$?
28882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883   (exit $ac_status); }; } &&
28884          { ac_try='test -s conftest$ac_exeext'
28885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28886   (eval $ac_try) 2>&5
28887   ac_status=$?
28888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889   (exit $ac_status); }; }; then
28890   ol_cv_var_des_debug=yes
28891 else
28892   echo "$as_me: failed program was:" >&5
28893 sed 's/^/| /' conftest.$ac_ext >&5
28894
28895 ol_cv_var_des_debug=no
28896 fi
28897 rm -f conftest.err conftest.$ac_objext \
28898       conftest$ac_exeext conftest.$ac_ext
28899                                                                 LIBS="$save_LIBS"
28900
28901 fi
28902 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
28903 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
28904
28905                         if test $ol_cv_var_des_debug = yes ; then
28906
28907 cat >>confdefs.h <<\_ACEOF
28908 #define HAVE_DES_DEBUG 1
28909 _ACEOF
28910
28911                         fi
28912
28913                         LIBS="$save_LIBS"
28914                 fi
28915         fi
28916 fi
28917
28918 if test $ol_link_krb5 = yes ; then
28919         ol_with_kerberos=found
28920 fi
28921
28922 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28923         -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
28924
28925
28926
28927
28928 for ac_header in krb.h des.h krb-archaeology.h
28929 do
28930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28932   echo "$as_me:$LINENO: checking for $ac_header" >&5
28933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28935   echo $ECHO_N "(cached) $ECHO_C" >&6
28936 fi
28937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28939 else
28940   # Is the header compilable?
28941 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28943 cat >conftest.$ac_ext <<_ACEOF
28944 /* confdefs.h.  */
28945 _ACEOF
28946 cat confdefs.h >>conftest.$ac_ext
28947 cat >>conftest.$ac_ext <<_ACEOF
28948 /* end confdefs.h.  */
28949 $ac_includes_default
28950 #include <$ac_header>
28951 _ACEOF
28952 rm -f conftest.$ac_objext
28953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28954   (eval $ac_compile) 2>conftest.er1
28955   ac_status=$?
28956   grep -v '^ *+' conftest.er1 >conftest.err
28957   rm -f conftest.er1
28958   cat conftest.err >&5
28959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28960   (exit $ac_status); } &&
28961          { ac_try='test -z "$ac_c_werror_flag"
28962                          || test ! -s conftest.err'
28963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28964   (eval $ac_try) 2>&5
28965   ac_status=$?
28966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967   (exit $ac_status); }; } &&
28968          { ac_try='test -s conftest.$ac_objext'
28969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28970   (eval $ac_try) 2>&5
28971   ac_status=$?
28972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973   (exit $ac_status); }; }; then
28974   ac_header_compiler=yes
28975 else
28976   echo "$as_me: failed program was:" >&5
28977 sed 's/^/| /' conftest.$ac_ext >&5
28978
28979 ac_header_compiler=no
28980 fi
28981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28983 echo "${ECHO_T}$ac_header_compiler" >&6
28984
28985 # Is the header present?
28986 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28988 cat >conftest.$ac_ext <<_ACEOF
28989 /* confdefs.h.  */
28990 _ACEOF
28991 cat confdefs.h >>conftest.$ac_ext
28992 cat >>conftest.$ac_ext <<_ACEOF
28993 /* end confdefs.h.  */
28994 #include <$ac_header>
28995 _ACEOF
28996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28997   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28998   ac_status=$?
28999   grep -v '^ *+' conftest.er1 >conftest.err
29000   rm -f conftest.er1
29001   cat conftest.err >&5
29002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003   (exit $ac_status); } >/dev/null; then
29004   if test -s conftest.err; then
29005     ac_cpp_err=$ac_c_preproc_warn_flag
29006     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29007   else
29008     ac_cpp_err=
29009   fi
29010 else
29011   ac_cpp_err=yes
29012 fi
29013 if test -z "$ac_cpp_err"; then
29014   ac_header_preproc=yes
29015 else
29016   echo "$as_me: failed program was:" >&5
29017 sed 's/^/| /' conftest.$ac_ext >&5
29018
29019   ac_header_preproc=no
29020 fi
29021 rm -f conftest.err conftest.$ac_ext
29022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29023 echo "${ECHO_T}$ac_header_preproc" >&6
29024
29025 # So?  What about this header?
29026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29027   yes:no: )
29028     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29030     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29032     ac_header_preproc=yes
29033     ;;
29034   no:yes:* )
29035     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29037     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29038 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29039     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29041     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29042 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29045     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29047     (
29048       cat <<\_ASBOX
29049 ## ------------------------------------------ ##
29050 ## Report this to the AC_PACKAGE_NAME lists.  ##
29051 ## ------------------------------------------ ##
29052 _ASBOX
29053     ) |
29054       sed "s/^/$as_me: WARNING:     /" >&2
29055     ;;
29056 esac
29057 echo "$as_me:$LINENO: checking for $ac_header" >&5
29058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29060   echo $ECHO_N "(cached) $ECHO_C" >&6
29061 else
29062   eval "$as_ac_Header=\$ac_header_preproc"
29063 fi
29064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29066
29067 fi
29068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29069   cat >>confdefs.h <<_ACEOF
29070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29071 _ACEOF
29072
29073 fi
29074
29075 done
29076
29077
29078         if test $ac_cv_header_krb_h = yes ; then
29079                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29080 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29081 if test "${ac_cv_lib_krb_main+set}" = set; then
29082   echo $ECHO_N "(cached) $ECHO_C" >&6
29083 else
29084   ac_check_lib_save_LIBS=$LIBS
29085 LIBS="-lkrb -ldes $LIBS"
29086 cat >conftest.$ac_ext <<_ACEOF
29087 /* confdefs.h.  */
29088 _ACEOF
29089 cat confdefs.h >>conftest.$ac_ext
29090 cat >>conftest.$ac_ext <<_ACEOF
29091 /* end confdefs.h.  */
29092
29093
29094 int
29095 main ()
29096 {
29097 main ();
29098   ;
29099   return 0;
29100 }
29101 _ACEOF
29102 rm -f conftest.$ac_objext conftest$ac_exeext
29103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29104   (eval $ac_link) 2>conftest.er1
29105   ac_status=$?
29106   grep -v '^ *+' conftest.er1 >conftest.err
29107   rm -f conftest.er1
29108   cat conftest.err >&5
29109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110   (exit $ac_status); } &&
29111          { ac_try='test -z "$ac_c_werror_flag"
29112                          || test ! -s conftest.err'
29113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29114   (eval $ac_try) 2>&5
29115   ac_status=$?
29116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117   (exit $ac_status); }; } &&
29118          { ac_try='test -s conftest$ac_exeext'
29119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29120   (eval $ac_try) 2>&5
29121   ac_status=$?
29122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29123   (exit $ac_status); }; }; then
29124   ac_cv_lib_krb_main=yes
29125 else
29126   echo "$as_me: failed program was:" >&5
29127 sed 's/^/| /' conftest.$ac_ext >&5
29128
29129 ac_cv_lib_krb_main=no
29130 fi
29131 rm -f conftest.err conftest.$ac_objext \
29132       conftest$ac_exeext conftest.$ac_ext
29133 LIBS=$ac_check_lib_save_LIBS
29134 fi
29135 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29136 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29137 if test $ac_cv_lib_krb_main = yes; then
29138   have_k4=yes
29139 else
29140   have_k4=no
29141 fi
29142
29143
29144                 if test $have_k4 = yes ; then
29145                         ol_with_kerberos=found
29146                         ol_link_krb4=yes
29147
29148
29149 cat >>confdefs.h <<\_ACEOF
29150 #define HAVE_KRB4 1
29151 _ACEOF
29152
29153
29154                         KRB4_LIBS="-lkrb -ldes"
29155
29156                         if test $ac_cv_header_krb_archaeology_h = yes ; then
29157
29158 cat >>confdefs.h <<\_ACEOF
29159 #define HAVE_KTH_KERBEROS 1
29160 _ACEOF
29161
29162                         fi
29163                 fi
29164         fi
29165 fi
29166
29167 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29168         ol_link_kbind=yes
29169
29170 elif test $ol_enable_kbind = yes ; then
29171         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29172 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29173    { (exit 1); exit 1; }; }
29174 fi
29175
29176 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29177
29178 cat >>confdefs.h <<\_ACEOF
29179 #define HAVE_KERBEROS 1
29180 _ACEOF
29181
29182
29183 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29184         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29185 echo "$as_me: error: Kerberos detection failed" >&2;}
29186    { (exit 1); exit 1; }; }
29187 fi
29188
29189
29190 ol_link_tls=no
29191 if test $ol_with_tls != no ; then
29192
29193
29194 for ac_header in openssl/ssl.h ssl.h
29195 do
29196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29198   echo "$as_me:$LINENO: checking for $ac_header" >&5
29199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29201   echo $ECHO_N "(cached) $ECHO_C" >&6
29202 fi
29203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29205 else
29206   # Is the header compilable?
29207 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29209 cat >conftest.$ac_ext <<_ACEOF
29210 /* confdefs.h.  */
29211 _ACEOF
29212 cat confdefs.h >>conftest.$ac_ext
29213 cat >>conftest.$ac_ext <<_ACEOF
29214 /* end confdefs.h.  */
29215 $ac_includes_default
29216 #include <$ac_header>
29217 _ACEOF
29218 rm -f conftest.$ac_objext
29219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29220   (eval $ac_compile) 2>conftest.er1
29221   ac_status=$?
29222   grep -v '^ *+' conftest.er1 >conftest.err
29223   rm -f conftest.er1
29224   cat conftest.err >&5
29225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226   (exit $ac_status); } &&
29227          { ac_try='test -z "$ac_c_werror_flag"
29228                          || test ! -s conftest.err'
29229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29230   (eval $ac_try) 2>&5
29231   ac_status=$?
29232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233   (exit $ac_status); }; } &&
29234          { ac_try='test -s conftest.$ac_objext'
29235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29236   (eval $ac_try) 2>&5
29237   ac_status=$?
29238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239   (exit $ac_status); }; }; then
29240   ac_header_compiler=yes
29241 else
29242   echo "$as_me: failed program was:" >&5
29243 sed 's/^/| /' conftest.$ac_ext >&5
29244
29245 ac_header_compiler=no
29246 fi
29247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29249 echo "${ECHO_T}$ac_header_compiler" >&6
29250
29251 # Is the header present?
29252 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29254 cat >conftest.$ac_ext <<_ACEOF
29255 /* confdefs.h.  */
29256 _ACEOF
29257 cat confdefs.h >>conftest.$ac_ext
29258 cat >>conftest.$ac_ext <<_ACEOF
29259 /* end confdefs.h.  */
29260 #include <$ac_header>
29261 _ACEOF
29262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29263   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29264   ac_status=$?
29265   grep -v '^ *+' conftest.er1 >conftest.err
29266   rm -f conftest.er1
29267   cat conftest.err >&5
29268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269   (exit $ac_status); } >/dev/null; then
29270   if test -s conftest.err; then
29271     ac_cpp_err=$ac_c_preproc_warn_flag
29272     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29273   else
29274     ac_cpp_err=
29275   fi
29276 else
29277   ac_cpp_err=yes
29278 fi
29279 if test -z "$ac_cpp_err"; then
29280   ac_header_preproc=yes
29281 else
29282   echo "$as_me: failed program was:" >&5
29283 sed 's/^/| /' conftest.$ac_ext >&5
29284
29285   ac_header_preproc=no
29286 fi
29287 rm -f conftest.err conftest.$ac_ext
29288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29289 echo "${ECHO_T}$ac_header_preproc" >&6
29290
29291 # So?  What about this header?
29292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29293   yes:no: )
29294     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29298     ac_header_preproc=yes
29299     ;;
29300   no:yes:* )
29301     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29303     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29304 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29305     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29307     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29308 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29311     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29313     (
29314       cat <<\_ASBOX
29315 ## ------------------------------------------ ##
29316 ## Report this to the AC_PACKAGE_NAME lists.  ##
29317 ## ------------------------------------------ ##
29318 _ASBOX
29319     ) |
29320       sed "s/^/$as_me: WARNING:     /" >&2
29321     ;;
29322 esac
29323 echo "$as_me:$LINENO: checking for $ac_header" >&5
29324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29326   echo $ECHO_N "(cached) $ECHO_C" >&6
29327 else
29328   eval "$as_ac_Header=\$ac_header_preproc"
29329 fi
29330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29332
29333 fi
29334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29335   cat >>confdefs.h <<_ACEOF
29336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29337 _ACEOF
29338
29339 fi
29340
29341 done
29342
29343
29344         if test $ac_cv_header_openssl_ssl_h = yes \
29345                 -o $ac_cv_header_ssl_h = yes ; then
29346                 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29347 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29348 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29349   echo $ECHO_N "(cached) $ECHO_C" >&6
29350 else
29351   ac_check_lib_save_LIBS=$LIBS
29352 LIBS="-lssl -lcrypto $LIBS"
29353 cat >conftest.$ac_ext <<_ACEOF
29354 /* confdefs.h.  */
29355 _ACEOF
29356 cat confdefs.h >>conftest.$ac_ext
29357 cat >>conftest.$ac_ext <<_ACEOF
29358 /* end confdefs.h.  */
29359
29360 /* Override any gcc2 internal prototype to avoid an error.  */
29361 #ifdef __cplusplus
29362 extern "C"
29363 #endif
29364 /* We use char because int might match the return type of a gcc2
29365    builtin and then its argument prototype would still apply.  */
29366 char SSLeay_add_ssl_algorithms ();
29367 int
29368 main ()
29369 {
29370 SSLeay_add_ssl_algorithms ();
29371   ;
29372   return 0;
29373 }
29374 _ACEOF
29375 rm -f conftest.$ac_objext conftest$ac_exeext
29376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29377   (eval $ac_link) 2>conftest.er1
29378   ac_status=$?
29379   grep -v '^ *+' conftest.er1 >conftest.err
29380   rm -f conftest.er1
29381   cat conftest.err >&5
29382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383   (exit $ac_status); } &&
29384          { ac_try='test -z "$ac_c_werror_flag"
29385                          || test ! -s conftest.err'
29386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29387   (eval $ac_try) 2>&5
29388   ac_status=$?
29389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390   (exit $ac_status); }; } &&
29391          { ac_try='test -s conftest$ac_exeext'
29392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29393   (eval $ac_try) 2>&5
29394   ac_status=$?
29395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396   (exit $ac_status); }; }; then
29397   ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29398 else
29399   echo "$as_me: failed program was:" >&5
29400 sed 's/^/| /' conftest.$ac_ext >&5
29401
29402 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29403 fi
29404 rm -f conftest.err conftest.$ac_objext \
29405       conftest$ac_exeext conftest.$ac_ext
29406 LIBS=$ac_check_lib_save_LIBS
29407 fi
29408 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29409 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29410 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29411   have_ssleay=yes
29412                         need_rsaref=no
29413 else
29414   have_ssleay=no
29415 fi
29416
29417
29418                 if test $have_ssleay = no ; then
29419                         echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29420 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29421 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29422   echo $ECHO_N "(cached) $ECHO_C" >&6
29423 else
29424   ac_check_lib_save_LIBS=$LIBS
29425 LIBS="-lssl -lcrypto $LIBS"
29426 cat >conftest.$ac_ext <<_ACEOF
29427 /* confdefs.h.  */
29428 _ACEOF
29429 cat confdefs.h >>conftest.$ac_ext
29430 cat >>conftest.$ac_ext <<_ACEOF
29431 /* end confdefs.h.  */
29432
29433 /* Override any gcc2 internal prototype to avoid an error.  */
29434 #ifdef __cplusplus
29435 extern "C"
29436 #endif
29437 /* We use char because int might match the return type of a gcc2
29438    builtin and then its argument prototype would still apply.  */
29439 char SSL_library_init ();
29440 int
29441 main ()
29442 {
29443 SSL_library_init ();
29444   ;
29445   return 0;
29446 }
29447 _ACEOF
29448 rm -f conftest.$ac_objext conftest$ac_exeext
29449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29450   (eval $ac_link) 2>conftest.er1
29451   ac_status=$?
29452   grep -v '^ *+' conftest.er1 >conftest.err
29453   rm -f conftest.er1
29454   cat conftest.err >&5
29455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456   (exit $ac_status); } &&
29457          { ac_try='test -z "$ac_c_werror_flag"
29458                          || test ! -s conftest.err'
29459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29460   (eval $ac_try) 2>&5
29461   ac_status=$?
29462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29463   (exit $ac_status); }; } &&
29464          { ac_try='test -s conftest$ac_exeext'
29465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29466   (eval $ac_try) 2>&5
29467   ac_status=$?
29468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29469   (exit $ac_status); }; }; then
29470   ac_cv_lib_ssl_SSL_library_init=yes
29471 else
29472   echo "$as_me: failed program was:" >&5
29473 sed 's/^/| /' conftest.$ac_ext >&5
29474
29475 ac_cv_lib_ssl_SSL_library_init=no
29476 fi
29477 rm -f conftest.err conftest.$ac_objext \
29478       conftest$ac_exeext conftest.$ac_ext
29479 LIBS=$ac_check_lib_save_LIBS
29480 fi
29481 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29482 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29483 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29484   have_ssleay=yes
29485                                 need_rsaref=no
29486 else
29487   have_ssleay=no
29488 fi
29489
29490                 fi
29491
29492                 if test $have_ssleay = no ; then
29493                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29494 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29495 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29496   echo $ECHO_N "(cached) $ECHO_C" >&6
29497 else
29498   ac_check_lib_save_LIBS=$LIBS
29499 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29500 cat >conftest.$ac_ext <<_ACEOF
29501 /* confdefs.h.  */
29502 _ACEOF
29503 cat confdefs.h >>conftest.$ac_ext
29504 cat >>conftest.$ac_ext <<_ACEOF
29505 /* end confdefs.h.  */
29506
29507 /* Override any gcc2 internal prototype to avoid an error.  */
29508 #ifdef __cplusplus
29509 extern "C"
29510 #endif
29511 /* We use char because int might match the return type of a gcc2
29512    builtin and then its argument prototype would still apply.  */
29513 char ssl3_accept ();
29514 int
29515 main ()
29516 {
29517 ssl3_accept ();
29518   ;
29519   return 0;
29520 }
29521 _ACEOF
29522 rm -f conftest.$ac_objext conftest$ac_exeext
29523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29524   (eval $ac_link) 2>conftest.er1
29525   ac_status=$?
29526   grep -v '^ *+' conftest.er1 >conftest.err
29527   rm -f conftest.er1
29528   cat conftest.err >&5
29529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29530   (exit $ac_status); } &&
29531          { ac_try='test -z "$ac_c_werror_flag"
29532                          || test ! -s conftest.err'
29533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29534   (eval $ac_try) 2>&5
29535   ac_status=$?
29536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537   (exit $ac_status); }; } &&
29538          { ac_try='test -s conftest$ac_exeext'
29539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29540   (eval $ac_try) 2>&5
29541   ac_status=$?
29542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29543   (exit $ac_status); }; }; then
29544   ac_cv_lib_ssl_ssl3_accept=yes
29545 else
29546   echo "$as_me: failed program was:" >&5
29547 sed 's/^/| /' conftest.$ac_ext >&5
29548
29549 ac_cv_lib_ssl_ssl3_accept=no
29550 fi
29551 rm -f conftest.err conftest.$ac_objext \
29552       conftest$ac_exeext conftest.$ac_ext
29553 LIBS=$ac_check_lib_save_LIBS
29554 fi
29555 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29556 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29557 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29558   have_ssleay=yes
29559                                 need_rsaref=yes
29560 else
29561   have_ssleay=no
29562 fi
29563
29564                 fi
29565
29566                 if test $have_ssleay = yes ; then
29567                         ol_with_tls=found
29568                         ol_link_tls=yes
29569
29570
29571 cat >>confdefs.h <<\_ACEOF
29572 #define HAVE_SSLEAY 1
29573 _ACEOF
29574
29575
29576                         if test $need_rsaref = yes; then
29577
29578 cat >>confdefs.h <<\_ACEOF
29579 #define HAVE_RSAREF 1
29580 _ACEOF
29581
29582
29583                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29584                         else
29585                                 TLS_LIBS="-lssl -lcrypto"
29586                         fi
29587                 fi
29588                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29589 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29590 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29591   echo $ECHO_N "(cached) $ECHO_C" >&6
29592 else
29593
29594         cat >conftest.$ac_ext <<_ACEOF
29595 /* confdefs.h.  */
29596 _ACEOF
29597 cat confdefs.h >>conftest.$ac_ext
29598 cat >>conftest.$ac_ext <<_ACEOF
29599 /* end confdefs.h.  */
29600
29601 #ifdef HAVE_OPENSSL_SSL_H
29602 #include <openssl/ssl.h>
29603 #else
29604 #include <ssl.h>
29605 #endif
29606
29607 /* Require 0.9.7d+ */
29608 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29609         char *__ssl_compat = "0.9.7d";
29610 #endif
29611
29612 _ACEOF
29613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29614   $EGREP "__ssl_compat" >/dev/null 2>&1; then
29615   ol_cv_ssl_crl_compat=yes
29616 else
29617   ol_cv_ssl_crl_compat=no
29618 fi
29619 rm -f conftest*
29620
29621 fi
29622 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29623 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29624
29625                 if test $ol_cv_ssl_crl_compat = no ; then
29626                         ol_link_ssl=no
29627                 else
29628
29629 cat >>confdefs.h <<\_ACEOF
29630 #define HAVE_OPENSSL_CRL 1
29631 _ACEOF
29632
29633                 fi
29634         fi
29635
29636 else
29637         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29638 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29639 fi
29640
29641 WITH_TLS=no
29642 if test $ol_link_tls = yes ; then
29643
29644 cat >>confdefs.h <<\_ACEOF
29645 #define HAVE_TLS 1
29646 _ACEOF
29647
29648         WITH_TLS=yes
29649
29650 elif test $ol_with_tls = auto ; then
29651         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29652 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29653         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29654 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29655
29656 elif test $ol_with_tls != no ; then
29657         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29658 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29659    { (exit 1); exit 1; }; }
29660 fi
29661
29662 if test $ol_enable_lmpasswd != no; then
29663         if test $ol_link_tls != yes ; then
29664                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29665 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29666    { (exit 1); exit 1; }; }
29667         fi
29668
29669
29670 cat >>confdefs.h <<\_ACEOF
29671 #define SLAPD_LMHASH 1
29672 _ACEOF
29673
29674 fi
29675
29676 ol_link_threads=no
29677
29678 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29679         -o $ol_with_threads = nt ; then
29680
29681
29682         echo "$as_me:$LINENO: checking for _beginthread" >&5
29683 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29684 if test "${ac_cv_func__beginthread+set}" = set; then
29685   echo $ECHO_N "(cached) $ECHO_C" >&6
29686 else
29687   cat >conftest.$ac_ext <<_ACEOF
29688 /* confdefs.h.  */
29689 _ACEOF
29690 cat confdefs.h >>conftest.$ac_ext
29691 cat >>conftest.$ac_ext <<_ACEOF
29692 /* end confdefs.h.  */
29693 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29695 #define _beginthread innocuous__beginthread
29696
29697 /* System header to define __stub macros and hopefully few prototypes,
29698     which can conflict with char _beginthread (); below.
29699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29700     <limits.h> exists even on freestanding compilers.  */
29701
29702 #ifdef __STDC__
29703 # include <limits.h>
29704 #else
29705 # include <assert.h>
29706 #endif
29707
29708 #undef _beginthread
29709
29710 /* Override any gcc2 internal prototype to avoid an error.  */
29711 #ifdef __cplusplus
29712 extern "C"
29713 {
29714 #endif
29715 /* We use char because int might match the return type of a gcc2
29716    builtin and then its argument prototype would still apply.  */
29717 char _beginthread ();
29718 /* The GNU C library defines this for functions which it implements
29719     to always fail with ENOSYS.  Some functions are actually named
29720     something starting with __ and the normal name is an alias.  */
29721 #if defined (__stub__beginthread) || defined (__stub____beginthread)
29722 choke me
29723 #else
29724 char (*f) () = _beginthread;
29725 #endif
29726 #ifdef __cplusplus
29727 }
29728 #endif
29729
29730 int
29731 main ()
29732 {
29733 return f != _beginthread;
29734   ;
29735   return 0;
29736 }
29737 _ACEOF
29738 rm -f conftest.$ac_objext conftest$ac_exeext
29739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29740   (eval $ac_link) 2>conftest.er1
29741   ac_status=$?
29742   grep -v '^ *+' conftest.er1 >conftest.err
29743   rm -f conftest.er1
29744   cat conftest.err >&5
29745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746   (exit $ac_status); } &&
29747          { ac_try='test -z "$ac_c_werror_flag"
29748                          || test ! -s conftest.err'
29749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29750   (eval $ac_try) 2>&5
29751   ac_status=$?
29752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753   (exit $ac_status); }; } &&
29754          { ac_try='test -s conftest$ac_exeext'
29755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29756   (eval $ac_try) 2>&5
29757   ac_status=$?
29758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759   (exit $ac_status); }; }; then
29760   ac_cv_func__beginthread=yes
29761 else
29762   echo "$as_me: failed program was:" >&5
29763 sed 's/^/| /' conftest.$ac_ext >&5
29764
29765 ac_cv_func__beginthread=no
29766 fi
29767 rm -f conftest.err conftest.$ac_objext \
29768       conftest$ac_exeext conftest.$ac_ext
29769 fi
29770 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
29771 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
29772
29773
29774         if test $ac_cv_func__beginthread = yes ; then
29775
29776 cat >>confdefs.h <<\_ACEOF
29777 #define HAVE_NT_THREADS 1
29778 _ACEOF
29779
29780                 ol_cv_nt_threads=yes
29781         fi
29782
29783
29784         if test "$ol_cv_nt_threads" = yes ; then
29785                 ol_link_threads=nt
29786                 ol_with_threads=found
29787                 ol_with_yielding_select=yes
29788
29789
29790 cat >>confdefs.h <<\_ACEOF
29791 #define HAVE_NT_SERVICE_MANAGER 1
29792 _ACEOF
29793
29794
29795 cat >>confdefs.h <<\_ACEOF
29796 #define HAVE_NT_EVENT_LOG 1
29797 _ACEOF
29798
29799         fi
29800
29801         if test $ol_with_threads = nt ; then
29802                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
29803 echo "$as_me: error: could not locate NT Threads" >&2;}
29804    { (exit 1); exit 1; }; }
29805         fi
29806 fi
29807
29808 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29809         -o $ol_with_threads = posix ; then
29810
29811
29812 for ac_header in pthread.h
29813 do
29814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29816   echo "$as_me:$LINENO: checking for $ac_header" >&5
29817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29819   echo $ECHO_N "(cached) $ECHO_C" >&6
29820 fi
29821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29823 else
29824   # Is the header compilable?
29825 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29827 cat >conftest.$ac_ext <<_ACEOF
29828 /* confdefs.h.  */
29829 _ACEOF
29830 cat confdefs.h >>conftest.$ac_ext
29831 cat >>conftest.$ac_ext <<_ACEOF
29832 /* end confdefs.h.  */
29833 $ac_includes_default
29834 #include <$ac_header>
29835 _ACEOF
29836 rm -f conftest.$ac_objext
29837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29838   (eval $ac_compile) 2>conftest.er1
29839   ac_status=$?
29840   grep -v '^ *+' conftest.er1 >conftest.err
29841   rm -f conftest.er1
29842   cat conftest.err >&5
29843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844   (exit $ac_status); } &&
29845          { ac_try='test -z "$ac_c_werror_flag"
29846                          || test ! -s conftest.err'
29847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29848   (eval $ac_try) 2>&5
29849   ac_status=$?
29850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851   (exit $ac_status); }; } &&
29852          { ac_try='test -s conftest.$ac_objext'
29853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29854   (eval $ac_try) 2>&5
29855   ac_status=$?
29856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857   (exit $ac_status); }; }; then
29858   ac_header_compiler=yes
29859 else
29860   echo "$as_me: failed program was:" >&5
29861 sed 's/^/| /' conftest.$ac_ext >&5
29862
29863 ac_header_compiler=no
29864 fi
29865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29867 echo "${ECHO_T}$ac_header_compiler" >&6
29868
29869 # Is the header present?
29870 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29872 cat >conftest.$ac_ext <<_ACEOF
29873 /* confdefs.h.  */
29874 _ACEOF
29875 cat confdefs.h >>conftest.$ac_ext
29876 cat >>conftest.$ac_ext <<_ACEOF
29877 /* end confdefs.h.  */
29878 #include <$ac_header>
29879 _ACEOF
29880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29881   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29882   ac_status=$?
29883   grep -v '^ *+' conftest.er1 >conftest.err
29884   rm -f conftest.er1
29885   cat conftest.err >&5
29886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887   (exit $ac_status); } >/dev/null; then
29888   if test -s conftest.err; then
29889     ac_cpp_err=$ac_c_preproc_warn_flag
29890     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29891   else
29892     ac_cpp_err=
29893   fi
29894 else
29895   ac_cpp_err=yes
29896 fi
29897 if test -z "$ac_cpp_err"; then
29898   ac_header_preproc=yes
29899 else
29900   echo "$as_me: failed program was:" >&5
29901 sed 's/^/| /' conftest.$ac_ext >&5
29902
29903   ac_header_preproc=no
29904 fi
29905 rm -f conftest.err conftest.$ac_ext
29906 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29907 echo "${ECHO_T}$ac_header_preproc" >&6
29908
29909 # So?  What about this header?
29910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29911   yes:no: )
29912     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29916     ac_header_preproc=yes
29917     ;;
29918   no:yes:* )
29919     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29921     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29922 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29923     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29925     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29926 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29929     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29931     (
29932       cat <<\_ASBOX
29933 ## ------------------------------------------ ##
29934 ## Report this to the AC_PACKAGE_NAME lists.  ##
29935 ## ------------------------------------------ ##
29936 _ASBOX
29937     ) |
29938       sed "s/^/$as_me: WARNING:     /" >&2
29939     ;;
29940 esac
29941 echo "$as_me:$LINENO: checking for $ac_header" >&5
29942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29944   echo $ECHO_N "(cached) $ECHO_C" >&6
29945 else
29946   eval "$as_ac_Header=\$ac_header_preproc"
29947 fi
29948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29950
29951 fi
29952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29953   cat >>confdefs.h <<_ACEOF
29954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29955 _ACEOF
29956
29957 fi
29958
29959 done
29960
29961
29962         if test $ac_cv_header_pthread_h = yes ; then
29963                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
29964 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
29965 if test "${ol_cv_pthread_version+set}" = set; then
29966   echo $ECHO_N "(cached) $ECHO_C" >&6
29967 else
29968
29969         cat >conftest.$ac_ext <<_ACEOF
29970 /* confdefs.h.  */
29971 _ACEOF
29972 cat confdefs.h >>conftest.$ac_ext
29973 cat >>conftest.$ac_ext <<_ACEOF
29974 /* end confdefs.h.  */
29975
29976 #               include <pthread.h>
29977
29978 int
29979 main ()
29980 {
29981
29982                 int i = PTHREAD_CREATE_JOINABLE;
29983
29984   ;
29985   return 0;
29986 }
29987 _ACEOF
29988 rm -f conftest.$ac_objext
29989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29990   (eval $ac_compile) 2>conftest.er1
29991   ac_status=$?
29992   grep -v '^ *+' conftest.er1 >conftest.err
29993   rm -f conftest.er1
29994   cat conftest.err >&5
29995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29996   (exit $ac_status); } &&
29997          { ac_try='test -z "$ac_c_werror_flag"
29998                          || test ! -s conftest.err'
29999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30000   (eval $ac_try) 2>&5
30001   ac_status=$?
30002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30003   (exit $ac_status); }; } &&
30004          { ac_try='test -s conftest.$ac_objext'
30005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30006   (eval $ac_try) 2>&5
30007   ac_status=$?
30008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009   (exit $ac_status); }; }; then
30010
30011         cat >conftest.$ac_ext <<_ACEOF
30012 /* confdefs.h.  */
30013 _ACEOF
30014 cat confdefs.h >>conftest.$ac_ext
30015 cat >>conftest.$ac_ext <<_ACEOF
30016 /* end confdefs.h.  */
30017 #include <pthread.h>
30018
30019 _ACEOF
30020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30021   $EGREP "pthread_detach" >/dev/null 2>&1; then
30022   ol_cv_pthread_version=10
30023 else
30024   ol_cv_pthread_version=8
30025 fi
30026 rm -f conftest*
30027
30028 else
30029   echo "$as_me: failed program was:" >&5
30030 sed 's/^/| /' conftest.$ac_ext >&5
30031
30032
30033         cat >conftest.$ac_ext <<_ACEOF
30034 /* confdefs.h.  */
30035 _ACEOF
30036 cat confdefs.h >>conftest.$ac_ext
30037 cat >>conftest.$ac_ext <<_ACEOF
30038 /* end confdefs.h.  */
30039
30040 #               include <pthread.h>
30041 #               ifdef PTHREAD_CREATE_UNDETACHED
30042                 draft7
30043 #               endif
30044
30045 _ACEOF
30046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30047   $EGREP "draft7" >/dev/null 2>&1; then
30048   ol_cv_pthread_version=7
30049 else
30050
30051         cat >conftest.$ac_ext <<_ACEOF
30052 /* confdefs.h.  */
30053 _ACEOF
30054 cat confdefs.h >>conftest.$ac_ext
30055 cat >>conftest.$ac_ext <<_ACEOF
30056 /* end confdefs.h.  */
30057 #include <pthread.h>
30058
30059 _ACEOF
30060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30061   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30062   ol_cv_pthread_version=6
30063 else
30064
30065         cat >conftest.$ac_ext <<_ACEOF
30066 /* confdefs.h.  */
30067 _ACEOF
30068 cat confdefs.h >>conftest.$ac_ext
30069 cat >>conftest.$ac_ext <<_ACEOF
30070 /* end confdefs.h.  */
30071
30072 #               include <pthread.h>
30073 #ifdef          PTHREAD_MUTEX_INITIALIZER
30074                 draft5
30075 #endif
30076
30077 _ACEOF
30078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30079   $EGREP "draft5" >/dev/null 2>&1; then
30080   ol_cv_pthread_version=5
30081 else
30082   ol_cv_pthread_version=4
30083 fi
30084 rm -f conftest*
30085
30086 fi
30087 rm -f conftest*
30088
30089 fi
30090 rm -f conftest*
30091
30092 fi
30093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30094
30095 fi
30096 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30097 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30098
30099
30100                 if test $ol_cv_pthread_version != 0 ; then
30101
30102 cat >>confdefs.h <<_ACEOF
30103 #define HAVE_PTHREADS $ol_cv_pthread_version
30104 _ACEOF
30105
30106                 else
30107                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30108 echo "$as_me: error: unknown pthread version" >&2;}
30109    { (exit 1); exit 1; }; }
30110                 fi
30111
30112                 # consider threads found
30113                 ol_with_threads=found
30114
30115
30116         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30117 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30118 if test "${ol_cv_header_linux_threads+set}" = set; then
30119   echo $ECHO_N "(cached) $ECHO_C" >&6
30120 else
30121   cat >conftest.$ac_ext <<_ACEOF
30122 /* confdefs.h.  */
30123 _ACEOF
30124 cat confdefs.h >>conftest.$ac_ext
30125 cat >>conftest.$ac_ext <<_ACEOF
30126 /* end confdefs.h.  */
30127 #include <pthread.h>
30128 _ACEOF
30129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30130   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30131   ol_cv_header_linux_threads=yes
30132 else
30133   ol_cv_header_linux_threads=no
30134 fi
30135 rm -f conftest*
30136
30137
30138 fi
30139 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30140 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30141         if test $ol_cv_header_linux_threads = yes; then
30142
30143 cat >>confdefs.h <<\_ACEOF
30144 #define HAVE_LINUX_THREADS 1
30145 _ACEOF
30146
30147         fi
30148
30149
30150         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30151 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30152 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30153   echo $ECHO_N "(cached) $ECHO_C" >&6
30154 else
30155   cat >conftest.$ac_ext <<_ACEOF
30156 /* confdefs.h.  */
30157 _ACEOF
30158 cat confdefs.h >>conftest.$ac_ext
30159 cat >>conftest.$ac_ext <<_ACEOF
30160 /* end confdefs.h.  */
30161 #include <pthread.h>
30162 #ifdef _POSIX_THREAD_IS_GNU_PTH
30163         __gnu_pth__;
30164 #endif
30165
30166 _ACEOF
30167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30168   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30169   ol_cv_header_gnu_pth_pthread_h=yes
30170 else
30171   ol_cv_header_gnu_pth_pthread_h=no
30172 fi
30173 rm -f conftest*
30174
30175
30176 fi
30177 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30178 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30179
30180
30181                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30182
30183 for ac_header in sched.h
30184 do
30185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30187   echo "$as_me:$LINENO: checking for $ac_header" >&5
30188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30190   echo $ECHO_N "(cached) $ECHO_C" >&6
30191 fi
30192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30194 else
30195   # Is the header compilable?
30196 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30198 cat >conftest.$ac_ext <<_ACEOF
30199 /* confdefs.h.  */
30200 _ACEOF
30201 cat confdefs.h >>conftest.$ac_ext
30202 cat >>conftest.$ac_ext <<_ACEOF
30203 /* end confdefs.h.  */
30204 $ac_includes_default
30205 #include <$ac_header>
30206 _ACEOF
30207 rm -f conftest.$ac_objext
30208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30209   (eval $ac_compile) 2>conftest.er1
30210   ac_status=$?
30211   grep -v '^ *+' conftest.er1 >conftest.err
30212   rm -f conftest.er1
30213   cat conftest.err >&5
30214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215   (exit $ac_status); } &&
30216          { ac_try='test -z "$ac_c_werror_flag"
30217                          || test ! -s conftest.err'
30218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30219   (eval $ac_try) 2>&5
30220   ac_status=$?
30221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222   (exit $ac_status); }; } &&
30223          { ac_try='test -s conftest.$ac_objext'
30224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30225   (eval $ac_try) 2>&5
30226   ac_status=$?
30227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30228   (exit $ac_status); }; }; then
30229   ac_header_compiler=yes
30230 else
30231   echo "$as_me: failed program was:" >&5
30232 sed 's/^/| /' conftest.$ac_ext >&5
30233
30234 ac_header_compiler=no
30235 fi
30236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30238 echo "${ECHO_T}$ac_header_compiler" >&6
30239
30240 # Is the header present?
30241 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30243 cat >conftest.$ac_ext <<_ACEOF
30244 /* confdefs.h.  */
30245 _ACEOF
30246 cat confdefs.h >>conftest.$ac_ext
30247 cat >>conftest.$ac_ext <<_ACEOF
30248 /* end confdefs.h.  */
30249 #include <$ac_header>
30250 _ACEOF
30251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30252   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30253   ac_status=$?
30254   grep -v '^ *+' conftest.er1 >conftest.err
30255   rm -f conftest.er1
30256   cat conftest.err >&5
30257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30258   (exit $ac_status); } >/dev/null; then
30259   if test -s conftest.err; then
30260     ac_cpp_err=$ac_c_preproc_warn_flag
30261     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30262   else
30263     ac_cpp_err=
30264   fi
30265 else
30266   ac_cpp_err=yes
30267 fi
30268 if test -z "$ac_cpp_err"; then
30269   ac_header_preproc=yes
30270 else
30271   echo "$as_me: failed program was:" >&5
30272 sed 's/^/| /' conftest.$ac_ext >&5
30273
30274   ac_header_preproc=no
30275 fi
30276 rm -f conftest.err conftest.$ac_ext
30277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30278 echo "${ECHO_T}$ac_header_preproc" >&6
30279
30280 # So?  What about this header?
30281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30282   yes:no: )
30283     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30285     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30286 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30287     ac_header_preproc=yes
30288     ;;
30289   no:yes:* )
30290     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30291 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30292     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30293 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30294     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30295 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30296     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30297 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30298     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30300     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30301 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30302     (
30303       cat <<\_ASBOX
30304 ## ------------------------------------------ ##
30305 ## Report this to the AC_PACKAGE_NAME lists.  ##
30306 ## ------------------------------------------ ##
30307 _ASBOX
30308     ) |
30309       sed "s/^/$as_me: WARNING:     /" >&2
30310     ;;
30311 esac
30312 echo "$as_me:$LINENO: checking for $ac_header" >&5
30313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30315   echo $ECHO_N "(cached) $ECHO_C" >&6
30316 else
30317   eval "$as_ac_Header=\$ac_header_preproc"
30318 fi
30319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30321
30322 fi
30323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30324   cat >>confdefs.h <<_ACEOF
30325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30326 _ACEOF
30327
30328 fi
30329
30330 done
30331
30332                 fi
30333
30334
30335                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30336 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30337 if test "${ol_cv_pthread_create+set}" = set; then
30338   echo $ECHO_N "(cached) $ECHO_C" >&6
30339 else
30340
30341                 if test "$cross_compiling" = yes; then
30342   cat >conftest.$ac_ext <<_ACEOF
30343 /* confdefs.h.  */
30344 _ACEOF
30345 cat confdefs.h >>conftest.$ac_ext
30346 cat >>conftest.$ac_ext <<_ACEOF
30347 /* end confdefs.h.  */
30348 /* pthread test headers */
30349 #include <pthread.h>
30350 #if HAVE_PTHREADS < 7
30351 #include <errno.h>
30352 #endif
30353 #ifndef NULL
30354 #define NULL (void*)0
30355 #endif
30356
30357 static void *task(p)
30358         void *p;
30359 {
30360         return (void *) (p == NULL);
30361 }
30362
30363 int
30364 main ()
30365 {
30366
30367         /* pthread test function */
30368 #ifndef PTHREAD_CREATE_DETACHED
30369 #define PTHREAD_CREATE_DETACHED 1
30370 #endif
30371         pthread_t t;
30372         int status;
30373         int detach = PTHREAD_CREATE_DETACHED;
30374
30375 #if HAVE_PTHREADS > 4
30376         /* Final pthreads */
30377         pthread_attr_t attr;
30378
30379         status = pthread_attr_init(&attr);
30380         if( status ) return status;
30381
30382 #if HAVE_PTHREADS < 7
30383         status = pthread_attr_setdetachstate(&attr, &detach);
30384         if( status < 0 ) status = errno;
30385 #else
30386         status = pthread_attr_setdetachstate(&attr, detach);
30387 #endif
30388         if( status ) return status;
30389         status = pthread_create( &t, &attr, task, NULL );
30390 #if HAVE_PTHREADS < 7
30391         if( status < 0 ) status = errno;
30392 #endif
30393         if( status ) return status;
30394 #else
30395         /* Draft 4 pthreads */
30396         status = pthread_create( &t, pthread_attr_default, task, NULL );
30397         if( status ) return errno;
30398
30399         /* give thread a chance to complete */
30400         /* it should remain joinable and hence detachable */
30401         sleep( 1 );
30402
30403         status = pthread_detach( &t );
30404         if( status ) return errno;
30405 #endif
30406
30407 #ifdef HAVE_LINUX_THREADS
30408         pthread_kill_other_threads_np();
30409 #endif
30410
30411         return 0;
30412
30413   ;
30414   return 0;
30415 }
30416 _ACEOF
30417 rm -f conftest.$ac_objext conftest$ac_exeext
30418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30419   (eval $ac_link) 2>conftest.er1
30420   ac_status=$?
30421   grep -v '^ *+' conftest.er1 >conftest.err
30422   rm -f conftest.er1
30423   cat conftest.err >&5
30424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425   (exit $ac_status); } &&
30426          { ac_try='test -z "$ac_c_werror_flag"
30427                          || test ! -s conftest.err'
30428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30429   (eval $ac_try) 2>&5
30430   ac_status=$?
30431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432   (exit $ac_status); }; } &&
30433          { ac_try='test -s conftest$ac_exeext'
30434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30435   (eval $ac_try) 2>&5
30436   ac_status=$?
30437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438   (exit $ac_status); }; }; then
30439   ol_cv_pthread_create=yes
30440 else
30441   echo "$as_me: failed program was:" >&5
30442 sed 's/^/| /' conftest.$ac_ext >&5
30443
30444 ol_cv_pthread_create=no
30445 fi
30446 rm -f conftest.err conftest.$ac_objext \
30447       conftest$ac_exeext conftest.$ac_ext
30448 else
30449   cat >conftest.$ac_ext <<_ACEOF
30450 /* confdefs.h.  */
30451 _ACEOF
30452 cat confdefs.h >>conftest.$ac_ext
30453 cat >>conftest.$ac_ext <<_ACEOF
30454 /* end confdefs.h.  */
30455 /* pthread test headers */
30456 #include <pthread.h>
30457 #if HAVE_PTHREADS < 7
30458 #include <errno.h>
30459 #endif
30460 #ifndef NULL
30461 #define NULL (void*)0
30462 #endif
30463
30464 static void *task(p)
30465         void *p;
30466 {
30467         return (void *) (p == NULL);
30468 }
30469
30470
30471 int main(argc, argv)
30472         int argc;
30473         char **argv;
30474 {
30475
30476         /* pthread test function */
30477 #ifndef PTHREAD_CREATE_DETACHED
30478 #define PTHREAD_CREATE_DETACHED 1
30479 #endif
30480         pthread_t t;
30481         int status;
30482         int detach = PTHREAD_CREATE_DETACHED;
30483
30484 #if HAVE_PTHREADS > 4
30485         /* Final pthreads */
30486         pthread_attr_t attr;
30487
30488         status = pthread_attr_init(&attr);
30489         if( status ) return status;
30490
30491 #if HAVE_PTHREADS < 7
30492         status = pthread_attr_setdetachstate(&attr, &detach);
30493         if( status < 0 ) status = errno;
30494 #else
30495         status = pthread_attr_setdetachstate(&attr, detach);
30496 #endif
30497         if( status ) return status;
30498         status = pthread_create( &t, &attr, task, NULL );
30499 #if HAVE_PTHREADS < 7
30500         if( status < 0 ) status = errno;
30501 #endif
30502         if( status ) return status;
30503 #else
30504         /* Draft 4 pthreads */
30505         status = pthread_create( &t, pthread_attr_default, task, NULL );
30506         if( status ) return errno;
30507
30508         /* give thread a chance to complete */
30509         /* it should remain joinable and hence detachable */
30510         sleep( 1 );
30511
30512         status = pthread_detach( &t );
30513         if( status ) return errno;
30514 #endif
30515
30516 #ifdef HAVE_LINUX_THREADS
30517         pthread_kill_other_threads_np();
30518 #endif
30519
30520         return 0;
30521
30522 }
30523
30524 _ACEOF
30525 rm -f conftest$ac_exeext
30526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30527   (eval $ac_link) 2>&5
30528   ac_status=$?
30529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30532   (eval $ac_try) 2>&5
30533   ac_status=$?
30534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535   (exit $ac_status); }; }; then
30536   ol_cv_pthread_create=yes
30537 else
30538   echo "$as_me: program exited with status $ac_status" >&5
30539 echo "$as_me: failed program was:" >&5
30540 sed 's/^/| /' conftest.$ac_ext >&5
30541
30542 ( exit $ac_status )
30543 ol_cv_pthread_create=no
30544 fi
30545 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30546 fi
30547 fi
30548 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30549 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30550
30551                 if test $ol_cv_pthread_create != no ; then
30552                         ol_link_threads=posix
30553                         ol_link_pthreads=""
30554                 fi
30555
30556                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30557 if test "$ol_link_threads" = no ; then
30558         # try -kthread
30559         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30560 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30561 if test "${ol_cv_pthread_kthread+set}" = set; then
30562   echo $ECHO_N "(cached) $ECHO_C" >&6
30563 else
30564
30565                 # save the flags
30566                 ol_LIBS="$LIBS"
30567                 LIBS="-kthread $LIBS"
30568
30569                 if test "$cross_compiling" = yes; then
30570   cat >conftest.$ac_ext <<_ACEOF
30571 /* confdefs.h.  */
30572 _ACEOF
30573 cat confdefs.h >>conftest.$ac_ext
30574 cat >>conftest.$ac_ext <<_ACEOF
30575 /* end confdefs.h.  */
30576 /* pthread test headers */
30577 #include <pthread.h>
30578 #if HAVE_PTHREADS < 7
30579 #include <errno.h>
30580 #endif
30581 #ifndef NULL
30582 #define NULL (void*)0
30583 #endif
30584
30585 static void *task(p)
30586         void *p;
30587 {
30588         return (void *) (p == NULL);
30589 }
30590
30591 int
30592 main ()
30593 {
30594
30595         /* pthread test function */
30596 #ifndef PTHREAD_CREATE_DETACHED
30597 #define PTHREAD_CREATE_DETACHED 1
30598 #endif
30599         pthread_t t;
30600         int status;
30601         int detach = PTHREAD_CREATE_DETACHED;
30602
30603 #if HAVE_PTHREADS > 4
30604         /* Final pthreads */
30605         pthread_attr_t attr;
30606
30607         status = pthread_attr_init(&attr);
30608         if( status ) return status;
30609
30610 #if HAVE_PTHREADS < 7
30611         status = pthread_attr_setdetachstate(&attr, &detach);
30612         if( status < 0 ) status = errno;
30613 #else
30614         status = pthread_attr_setdetachstate(&attr, detach);
30615 #endif
30616         if( status ) return status;
30617         status = pthread_create( &t, &attr, task, NULL );
30618 #if HAVE_PTHREADS < 7
30619         if( status < 0 ) status = errno;
30620 #endif
30621         if( status ) return status;
30622 #else
30623         /* Draft 4 pthreads */
30624         status = pthread_create( &t, pthread_attr_default, task, NULL );
30625         if( status ) return errno;
30626
30627         /* give thread a chance to complete */
30628         /* it should remain joinable and hence detachable */
30629         sleep( 1 );
30630
30631         status = pthread_detach( &t );
30632         if( status ) return errno;
30633 #endif
30634
30635 #ifdef HAVE_LINUX_THREADS
30636         pthread_kill_other_threads_np();
30637 #endif
30638
30639         return 0;
30640
30641   ;
30642   return 0;
30643 }
30644 _ACEOF
30645 rm -f conftest.$ac_objext conftest$ac_exeext
30646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30647   (eval $ac_link) 2>conftest.er1
30648   ac_status=$?
30649   grep -v '^ *+' conftest.er1 >conftest.err
30650   rm -f conftest.er1
30651   cat conftest.err >&5
30652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653   (exit $ac_status); } &&
30654          { ac_try='test -z "$ac_c_werror_flag"
30655                          || test ! -s conftest.err'
30656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30657   (eval $ac_try) 2>&5
30658   ac_status=$?
30659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660   (exit $ac_status); }; } &&
30661          { ac_try='test -s conftest$ac_exeext'
30662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30663   (eval $ac_try) 2>&5
30664   ac_status=$?
30665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30666   (exit $ac_status); }; }; then
30667   ol_cv_pthread_kthread=yes
30668 else
30669   echo "$as_me: failed program was:" >&5
30670 sed 's/^/| /' conftest.$ac_ext >&5
30671
30672 ol_cv_pthread_kthread=no
30673 fi
30674 rm -f conftest.err conftest.$ac_objext \
30675       conftest$ac_exeext conftest.$ac_ext
30676 else
30677   cat >conftest.$ac_ext <<_ACEOF
30678 /* confdefs.h.  */
30679 _ACEOF
30680 cat confdefs.h >>conftest.$ac_ext
30681 cat >>conftest.$ac_ext <<_ACEOF
30682 /* end confdefs.h.  */
30683 /* pthread test headers */
30684 #include <pthread.h>
30685 #if HAVE_PTHREADS < 7
30686 #include <errno.h>
30687 #endif
30688 #ifndef NULL
30689 #define NULL (void*)0
30690 #endif
30691
30692 static void *task(p)
30693         void *p;
30694 {
30695         return (void *) (p == NULL);
30696 }
30697
30698
30699 int main(argc, argv)
30700         int argc;
30701         char **argv;
30702 {
30703
30704         /* pthread test function */
30705 #ifndef PTHREAD_CREATE_DETACHED
30706 #define PTHREAD_CREATE_DETACHED 1
30707 #endif
30708         pthread_t t;
30709         int status;
30710         int detach = PTHREAD_CREATE_DETACHED;
30711
30712 #if HAVE_PTHREADS > 4
30713         /* Final pthreads */
30714         pthread_attr_t attr;
30715
30716         status = pthread_attr_init(&attr);
30717         if( status ) return status;
30718
30719 #if HAVE_PTHREADS < 7
30720         status = pthread_attr_setdetachstate(&attr, &detach);
30721         if( status < 0 ) status = errno;
30722 #else
30723         status = pthread_attr_setdetachstate(&attr, detach);
30724 #endif
30725         if( status ) return status;
30726         status = pthread_create( &t, &attr, task, NULL );
30727 #if HAVE_PTHREADS < 7
30728         if( status < 0 ) status = errno;
30729 #endif
30730         if( status ) return status;
30731 #else
30732         /* Draft 4 pthreads */
30733         status = pthread_create( &t, pthread_attr_default, task, NULL );
30734         if( status ) return errno;
30735
30736         /* give thread a chance to complete */
30737         /* it should remain joinable and hence detachable */
30738         sleep( 1 );
30739
30740         status = pthread_detach( &t );
30741         if( status ) return errno;
30742 #endif
30743
30744 #ifdef HAVE_LINUX_THREADS
30745         pthread_kill_other_threads_np();
30746 #endif
30747
30748         return 0;
30749
30750 }
30751
30752 _ACEOF
30753 rm -f conftest$ac_exeext
30754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30755   (eval $ac_link) 2>&5
30756   ac_status=$?
30757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30760   (eval $ac_try) 2>&5
30761   ac_status=$?
30762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30763   (exit $ac_status); }; }; then
30764   ol_cv_pthread_kthread=yes
30765 else
30766   echo "$as_me: program exited with status $ac_status" >&5
30767 echo "$as_me: failed program was:" >&5
30768 sed 's/^/| /' conftest.$ac_ext >&5
30769
30770 ( exit $ac_status )
30771 ol_cv_pthread_kthread=no
30772 fi
30773 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30774 fi
30775
30776                 # restore the LIBS
30777                 LIBS="$ol_LIBS"
30778
30779 fi
30780 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
30781 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
30782
30783         if test $ol_cv_pthread_kthread = yes ; then
30784                 ol_link_pthreads="-kthread"
30785                 ol_link_threads=posix
30786         fi
30787 fi
30788
30789                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
30790 if test "$ol_link_threads" = no ; then
30791         # try -pthread
30792         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
30793 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
30794 if test "${ol_cv_pthread_pthread+set}" = set; then
30795   echo $ECHO_N "(cached) $ECHO_C" >&6
30796 else
30797
30798                 # save the flags
30799                 ol_LIBS="$LIBS"
30800                 LIBS="-pthread $LIBS"
30801
30802                 if test "$cross_compiling" = yes; then
30803   cat >conftest.$ac_ext <<_ACEOF
30804 /* confdefs.h.  */
30805 _ACEOF
30806 cat confdefs.h >>conftest.$ac_ext
30807 cat >>conftest.$ac_ext <<_ACEOF
30808 /* end confdefs.h.  */
30809 /* pthread test headers */
30810 #include <pthread.h>
30811 #if HAVE_PTHREADS < 7
30812 #include <errno.h>
30813 #endif
30814 #ifndef NULL
30815 #define NULL (void*)0
30816 #endif
30817
30818 static void *task(p)
30819         void *p;
30820 {
30821         return (void *) (p == NULL);
30822 }
30823
30824 int
30825 main ()
30826 {
30827
30828         /* pthread test function */
30829 #ifndef PTHREAD_CREATE_DETACHED
30830 #define PTHREAD_CREATE_DETACHED 1
30831 #endif
30832         pthread_t t;
30833         int status;
30834         int detach = PTHREAD_CREATE_DETACHED;
30835
30836 #if HAVE_PTHREADS > 4
30837         /* Final pthreads */
30838         pthread_attr_t attr;
30839
30840         status = pthread_attr_init(&attr);
30841         if( status ) return status;
30842
30843 #if HAVE_PTHREADS < 7
30844         status = pthread_attr_setdetachstate(&attr, &detach);
30845         if( status < 0 ) status = errno;
30846 #else
30847         status = pthread_attr_setdetachstate(&attr, detach);
30848 #endif
30849         if( status ) return status;
30850         status = pthread_create( &t, &attr, task, NULL );
30851 #if HAVE_PTHREADS < 7
30852         if( status < 0 ) status = errno;
30853 #endif
30854         if( status ) return status;
30855 #else
30856         /* Draft 4 pthreads */
30857         status = pthread_create( &t, pthread_attr_default, task, NULL );
30858         if( status ) return errno;
30859
30860         /* give thread a chance to complete */
30861         /* it should remain joinable and hence detachable */
30862         sleep( 1 );
30863
30864         status = pthread_detach( &t );
30865         if( status ) return errno;
30866 #endif
30867
30868 #ifdef HAVE_LINUX_THREADS
30869         pthread_kill_other_threads_np();
30870 #endif
30871
30872         return 0;
30873
30874   ;
30875   return 0;
30876 }
30877 _ACEOF
30878 rm -f conftest.$ac_objext conftest$ac_exeext
30879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30880   (eval $ac_link) 2>conftest.er1
30881   ac_status=$?
30882   grep -v '^ *+' conftest.er1 >conftest.err
30883   rm -f conftest.er1
30884   cat conftest.err >&5
30885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886   (exit $ac_status); } &&
30887          { ac_try='test -z "$ac_c_werror_flag"
30888                          || test ! -s conftest.err'
30889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30890   (eval $ac_try) 2>&5
30891   ac_status=$?
30892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893   (exit $ac_status); }; } &&
30894          { ac_try='test -s conftest$ac_exeext'
30895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30896   (eval $ac_try) 2>&5
30897   ac_status=$?
30898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30899   (exit $ac_status); }; }; then
30900   ol_cv_pthread_pthread=yes
30901 else
30902   echo "$as_me: failed program was:" >&5
30903 sed 's/^/| /' conftest.$ac_ext >&5
30904
30905 ol_cv_pthread_pthread=no
30906 fi
30907 rm -f conftest.err conftest.$ac_objext \
30908       conftest$ac_exeext conftest.$ac_ext
30909 else
30910   cat >conftest.$ac_ext <<_ACEOF
30911 /* confdefs.h.  */
30912 _ACEOF
30913 cat confdefs.h >>conftest.$ac_ext
30914 cat >>conftest.$ac_ext <<_ACEOF
30915 /* end confdefs.h.  */
30916 /* pthread test headers */
30917 #include <pthread.h>
30918 #if HAVE_PTHREADS < 7
30919 #include <errno.h>
30920 #endif
30921 #ifndef NULL
30922 #define NULL (void*)0
30923 #endif
30924
30925 static void *task(p)
30926         void *p;
30927 {
30928         return (void *) (p == NULL);
30929 }
30930
30931
30932 int main(argc, argv)
30933         int argc;
30934         char **argv;
30935 {
30936
30937         /* pthread test function */
30938 #ifndef PTHREAD_CREATE_DETACHED
30939 #define PTHREAD_CREATE_DETACHED 1
30940 #endif
30941         pthread_t t;
30942         int status;
30943         int detach = PTHREAD_CREATE_DETACHED;
30944
30945 #if HAVE_PTHREADS > 4
30946         /* Final pthreads */
30947         pthread_attr_t attr;
30948
30949         status = pthread_attr_init(&attr);
30950         if( status ) return status;
30951
30952 #if HAVE_PTHREADS < 7
30953         status = pthread_attr_setdetachstate(&attr, &detach);
30954         if( status < 0 ) status = errno;
30955 #else
30956         status = pthread_attr_setdetachstate(&attr, detach);
30957 #endif
30958         if( status ) return status;
30959         status = pthread_create( &t, &attr, task, NULL );
30960 #if HAVE_PTHREADS < 7
30961         if( status < 0 ) status = errno;
30962 #endif
30963         if( status ) return status;
30964 #else
30965         /* Draft 4 pthreads */
30966         status = pthread_create( &t, pthread_attr_default, task, NULL );
30967         if( status ) return errno;
30968
30969         /* give thread a chance to complete */
30970         /* it should remain joinable and hence detachable */
30971         sleep( 1 );
30972
30973         status = pthread_detach( &t );
30974         if( status ) return errno;
30975 #endif
30976
30977 #ifdef HAVE_LINUX_THREADS
30978         pthread_kill_other_threads_np();
30979 #endif
30980
30981         return 0;
30982
30983 }
30984
30985 _ACEOF
30986 rm -f conftest$ac_exeext
30987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30988   (eval $ac_link) 2>&5
30989   ac_status=$?
30990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30993   (eval $ac_try) 2>&5
30994   ac_status=$?
30995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996   (exit $ac_status); }; }; then
30997   ol_cv_pthread_pthread=yes
30998 else
30999   echo "$as_me: program exited with status $ac_status" >&5
31000 echo "$as_me: failed program was:" >&5
31001 sed 's/^/| /' conftest.$ac_ext >&5
31002
31003 ( exit $ac_status )
31004 ol_cv_pthread_pthread=no
31005 fi
31006 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31007 fi
31008
31009                 # restore the LIBS
31010                 LIBS="$ol_LIBS"
31011
31012 fi
31013 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31014 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31015
31016         if test $ol_cv_pthread_pthread = yes ; then
31017                 ol_link_pthreads="-pthread"
31018                 ol_link_threads=posix
31019         fi
31020 fi
31021
31022                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31023 if test "$ol_link_threads" = no ; then
31024         # try -pthreads
31025         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31026 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31027 if test "${ol_cv_pthread_pthreads+set}" = set; then
31028   echo $ECHO_N "(cached) $ECHO_C" >&6
31029 else
31030
31031                 # save the flags
31032                 ol_LIBS="$LIBS"
31033                 LIBS="-pthreads $LIBS"
31034
31035                 if test "$cross_compiling" = yes; then
31036   cat >conftest.$ac_ext <<_ACEOF
31037 /* confdefs.h.  */
31038 _ACEOF
31039 cat confdefs.h >>conftest.$ac_ext
31040 cat >>conftest.$ac_ext <<_ACEOF
31041 /* end confdefs.h.  */
31042 /* pthread test headers */
31043 #include <pthread.h>
31044 #if HAVE_PTHREADS < 7
31045 #include <errno.h>
31046 #endif
31047 #ifndef NULL
31048 #define NULL (void*)0
31049 #endif
31050
31051 static void *task(p)
31052         void *p;
31053 {
31054         return (void *) (p == NULL);
31055 }
31056
31057 int
31058 main ()
31059 {
31060
31061         /* pthread test function */
31062 #ifndef PTHREAD_CREATE_DETACHED
31063 #define PTHREAD_CREATE_DETACHED 1
31064 #endif
31065         pthread_t t;
31066         int status;
31067         int detach = PTHREAD_CREATE_DETACHED;
31068
31069 #if HAVE_PTHREADS > 4
31070         /* Final pthreads */
31071         pthread_attr_t attr;
31072
31073         status = pthread_attr_init(&attr);
31074         if( status ) return status;
31075
31076 #if HAVE_PTHREADS < 7
31077         status = pthread_attr_setdetachstate(&attr, &detach);
31078         if( status < 0 ) status = errno;
31079 #else
31080         status = pthread_attr_setdetachstate(&attr, detach);
31081 #endif
31082         if( status ) return status;
31083         status = pthread_create( &t, &attr, task, NULL );
31084 #if HAVE_PTHREADS < 7
31085         if( status < 0 ) status = errno;
31086 #endif
31087         if( status ) return status;
31088 #else
31089         /* Draft 4 pthreads */
31090         status = pthread_create( &t, pthread_attr_default, task, NULL );
31091         if( status ) return errno;
31092
31093         /* give thread a chance to complete */
31094         /* it should remain joinable and hence detachable */
31095         sleep( 1 );
31096
31097         status = pthread_detach( &t );
31098         if( status ) return errno;
31099 #endif
31100
31101 #ifdef HAVE_LINUX_THREADS
31102         pthread_kill_other_threads_np();
31103 #endif
31104
31105         return 0;
31106
31107   ;
31108   return 0;
31109 }
31110 _ACEOF
31111 rm -f conftest.$ac_objext conftest$ac_exeext
31112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31113   (eval $ac_link) 2>conftest.er1
31114   ac_status=$?
31115   grep -v '^ *+' conftest.er1 >conftest.err
31116   rm -f conftest.er1
31117   cat conftest.err >&5
31118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31119   (exit $ac_status); } &&
31120          { ac_try='test -z "$ac_c_werror_flag"
31121                          || test ! -s conftest.err'
31122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31123   (eval $ac_try) 2>&5
31124   ac_status=$?
31125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126   (exit $ac_status); }; } &&
31127          { ac_try='test -s conftest$ac_exeext'
31128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31129   (eval $ac_try) 2>&5
31130   ac_status=$?
31131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31132   (exit $ac_status); }; }; then
31133   ol_cv_pthread_pthreads=yes
31134 else
31135   echo "$as_me: failed program was:" >&5
31136 sed 's/^/| /' conftest.$ac_ext >&5
31137
31138 ol_cv_pthread_pthreads=no
31139 fi
31140 rm -f conftest.err conftest.$ac_objext \
31141       conftest$ac_exeext conftest.$ac_ext
31142 else
31143   cat >conftest.$ac_ext <<_ACEOF
31144 /* confdefs.h.  */
31145 _ACEOF
31146 cat confdefs.h >>conftest.$ac_ext
31147 cat >>conftest.$ac_ext <<_ACEOF
31148 /* end confdefs.h.  */
31149 /* pthread test headers */
31150 #include <pthread.h>
31151 #if HAVE_PTHREADS < 7
31152 #include <errno.h>
31153 #endif
31154 #ifndef NULL
31155 #define NULL (void*)0
31156 #endif
31157
31158 static void *task(p)
31159         void *p;
31160 {
31161         return (void *) (p == NULL);
31162 }
31163
31164
31165 int main(argc, argv)
31166         int argc;
31167         char **argv;
31168 {
31169
31170         /* pthread test function */
31171 #ifndef PTHREAD_CREATE_DETACHED
31172 #define PTHREAD_CREATE_DETACHED 1
31173 #endif
31174         pthread_t t;
31175         int status;
31176         int detach = PTHREAD_CREATE_DETACHED;
31177
31178 #if HAVE_PTHREADS > 4
31179         /* Final pthreads */
31180         pthread_attr_t attr;
31181
31182         status = pthread_attr_init(&attr);
31183         if( status ) return status;
31184
31185 #if HAVE_PTHREADS < 7
31186         status = pthread_attr_setdetachstate(&attr, &detach);
31187         if( status < 0 ) status = errno;
31188 #else
31189         status = pthread_attr_setdetachstate(&attr, detach);
31190 #endif
31191         if( status ) return status;
31192         status = pthread_create( &t, &attr, task, NULL );
31193 #if HAVE_PTHREADS < 7
31194         if( status < 0 ) status = errno;
31195 #endif
31196         if( status ) return status;
31197 #else
31198         /* Draft 4 pthreads */
31199         status = pthread_create( &t, pthread_attr_default, task, NULL );
31200         if( status ) return errno;
31201
31202         /* give thread a chance to complete */
31203         /* it should remain joinable and hence detachable */
31204         sleep( 1 );
31205
31206         status = pthread_detach( &t );
31207         if( status ) return errno;
31208 #endif
31209
31210 #ifdef HAVE_LINUX_THREADS
31211         pthread_kill_other_threads_np();
31212 #endif
31213
31214         return 0;
31215
31216 }
31217
31218 _ACEOF
31219 rm -f conftest$ac_exeext
31220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31221   (eval $ac_link) 2>&5
31222   ac_status=$?
31223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31226   (eval $ac_try) 2>&5
31227   ac_status=$?
31228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229   (exit $ac_status); }; }; then
31230   ol_cv_pthread_pthreads=yes
31231 else
31232   echo "$as_me: program exited with status $ac_status" >&5
31233 echo "$as_me: failed program was:" >&5
31234 sed 's/^/| /' conftest.$ac_ext >&5
31235
31236 ( exit $ac_status )
31237 ol_cv_pthread_pthreads=no
31238 fi
31239 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31240 fi
31241
31242                 # restore the LIBS
31243                 LIBS="$ol_LIBS"
31244
31245 fi
31246 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31247 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31248
31249         if test $ol_cv_pthread_pthreads = yes ; then
31250                 ol_link_pthreads="-pthreads"
31251                 ol_link_threads=posix
31252         fi
31253 fi
31254
31255                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31256 if test "$ol_link_threads" = no ; then
31257         # try -mthreads
31258         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31259 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31260 if test "${ol_cv_pthread_mthreads+set}" = set; then
31261   echo $ECHO_N "(cached) $ECHO_C" >&6
31262 else
31263
31264                 # save the flags
31265                 ol_LIBS="$LIBS"
31266                 LIBS="-mthreads $LIBS"
31267
31268                 if test "$cross_compiling" = yes; then
31269   cat >conftest.$ac_ext <<_ACEOF
31270 /* confdefs.h.  */
31271 _ACEOF
31272 cat confdefs.h >>conftest.$ac_ext
31273 cat >>conftest.$ac_ext <<_ACEOF
31274 /* end confdefs.h.  */
31275 /* pthread test headers */
31276 #include <pthread.h>
31277 #if HAVE_PTHREADS < 7
31278 #include <errno.h>
31279 #endif
31280 #ifndef NULL
31281 #define NULL (void*)0
31282 #endif
31283
31284 static void *task(p)
31285         void *p;
31286 {
31287         return (void *) (p == NULL);
31288 }
31289
31290 int
31291 main ()
31292 {
31293
31294         /* pthread test function */
31295 #ifndef PTHREAD_CREATE_DETACHED
31296 #define PTHREAD_CREATE_DETACHED 1
31297 #endif
31298         pthread_t t;
31299         int status;
31300         int detach = PTHREAD_CREATE_DETACHED;
31301
31302 #if HAVE_PTHREADS > 4
31303         /* Final pthreads */
31304         pthread_attr_t attr;
31305
31306         status = pthread_attr_init(&attr);
31307         if( status ) return status;
31308
31309 #if HAVE_PTHREADS < 7
31310         status = pthread_attr_setdetachstate(&attr, &detach);
31311         if( status < 0 ) status = errno;
31312 #else
31313         status = pthread_attr_setdetachstate(&attr, detach);
31314 #endif
31315         if( status ) return status;
31316         status = pthread_create( &t, &attr, task, NULL );
31317 #if HAVE_PTHREADS < 7
31318         if( status < 0 ) status = errno;
31319 #endif
31320         if( status ) return status;
31321 #else
31322         /* Draft 4 pthreads */
31323         status = pthread_create( &t, pthread_attr_default, task, NULL );
31324         if( status ) return errno;
31325
31326         /* give thread a chance to complete */
31327         /* it should remain joinable and hence detachable */
31328         sleep( 1 );
31329
31330         status = pthread_detach( &t );
31331         if( status ) return errno;
31332 #endif
31333
31334 #ifdef HAVE_LINUX_THREADS
31335         pthread_kill_other_threads_np();
31336 #endif
31337
31338         return 0;
31339
31340   ;
31341   return 0;
31342 }
31343 _ACEOF
31344 rm -f conftest.$ac_objext conftest$ac_exeext
31345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31346   (eval $ac_link) 2>conftest.er1
31347   ac_status=$?
31348   grep -v '^ *+' conftest.er1 >conftest.err
31349   rm -f conftest.er1
31350   cat conftest.err >&5
31351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352   (exit $ac_status); } &&
31353          { ac_try='test -z "$ac_c_werror_flag"
31354                          || test ! -s conftest.err'
31355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31356   (eval $ac_try) 2>&5
31357   ac_status=$?
31358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359   (exit $ac_status); }; } &&
31360          { ac_try='test -s conftest$ac_exeext'
31361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31362   (eval $ac_try) 2>&5
31363   ac_status=$?
31364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365   (exit $ac_status); }; }; then
31366   ol_cv_pthread_mthreads=yes
31367 else
31368   echo "$as_me: failed program was:" >&5
31369 sed 's/^/| /' conftest.$ac_ext >&5
31370
31371 ol_cv_pthread_mthreads=no
31372 fi
31373 rm -f conftest.err conftest.$ac_objext \
31374       conftest$ac_exeext conftest.$ac_ext
31375 else
31376   cat >conftest.$ac_ext <<_ACEOF
31377 /* confdefs.h.  */
31378 _ACEOF
31379 cat confdefs.h >>conftest.$ac_ext
31380 cat >>conftest.$ac_ext <<_ACEOF
31381 /* end confdefs.h.  */
31382 /* pthread test headers */
31383 #include <pthread.h>
31384 #if HAVE_PTHREADS < 7
31385 #include <errno.h>
31386 #endif
31387 #ifndef NULL
31388 #define NULL (void*)0
31389 #endif
31390
31391 static void *task(p)
31392         void *p;
31393 {
31394         return (void *) (p == NULL);
31395 }
31396
31397
31398 int main(argc, argv)
31399         int argc;
31400         char **argv;
31401 {
31402
31403         /* pthread test function */
31404 #ifndef PTHREAD_CREATE_DETACHED
31405 #define PTHREAD_CREATE_DETACHED 1
31406 #endif
31407         pthread_t t;
31408         int status;
31409         int detach = PTHREAD_CREATE_DETACHED;
31410
31411 #if HAVE_PTHREADS > 4
31412         /* Final pthreads */
31413         pthread_attr_t attr;
31414
31415         status = pthread_attr_init(&attr);
31416         if( status ) return status;
31417
31418 #if HAVE_PTHREADS < 7
31419         status = pthread_attr_setdetachstate(&attr, &detach);
31420         if( status < 0 ) status = errno;
31421 #else
31422         status = pthread_attr_setdetachstate(&attr, detach);
31423 #endif
31424         if( status ) return status;
31425         status = pthread_create( &t, &attr, task, NULL );
31426 #if HAVE_PTHREADS < 7
31427         if( status < 0 ) status = errno;
31428 #endif
31429         if( status ) return status;
31430 #else
31431         /* Draft 4 pthreads */
31432         status = pthread_create( &t, pthread_attr_default, task, NULL );
31433         if( status ) return errno;
31434
31435         /* give thread a chance to complete */
31436         /* it should remain joinable and hence detachable */
31437         sleep( 1 );
31438
31439         status = pthread_detach( &t );
31440         if( status ) return errno;
31441 #endif
31442
31443 #ifdef HAVE_LINUX_THREADS
31444         pthread_kill_other_threads_np();
31445 #endif
31446
31447         return 0;
31448
31449 }
31450
31451 _ACEOF
31452 rm -f conftest$ac_exeext
31453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31454   (eval $ac_link) 2>&5
31455   ac_status=$?
31456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31459   (eval $ac_try) 2>&5
31460   ac_status=$?
31461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462   (exit $ac_status); }; }; then
31463   ol_cv_pthread_mthreads=yes
31464 else
31465   echo "$as_me: program exited with status $ac_status" >&5
31466 echo "$as_me: failed program was:" >&5
31467 sed 's/^/| /' conftest.$ac_ext >&5
31468
31469 ( exit $ac_status )
31470 ol_cv_pthread_mthreads=no
31471 fi
31472 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31473 fi
31474
31475                 # restore the LIBS
31476                 LIBS="$ol_LIBS"
31477
31478 fi
31479 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31480 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31481
31482         if test $ol_cv_pthread_mthreads = yes ; then
31483                 ol_link_pthreads="-mthreads"
31484                 ol_link_threads=posix
31485         fi
31486 fi
31487
31488                 # Pthread try link: -thread (ol_cv_pthread_thread)
31489 if test "$ol_link_threads" = no ; then
31490         # try -thread
31491         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31492 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31493 if test "${ol_cv_pthread_thread+set}" = set; then
31494   echo $ECHO_N "(cached) $ECHO_C" >&6
31495 else
31496
31497                 # save the flags
31498                 ol_LIBS="$LIBS"
31499                 LIBS="-thread $LIBS"
31500
31501                 if test "$cross_compiling" = yes; then
31502   cat >conftest.$ac_ext <<_ACEOF
31503 /* confdefs.h.  */
31504 _ACEOF
31505 cat confdefs.h >>conftest.$ac_ext
31506 cat >>conftest.$ac_ext <<_ACEOF
31507 /* end confdefs.h.  */
31508 /* pthread test headers */
31509 #include <pthread.h>
31510 #if HAVE_PTHREADS < 7
31511 #include <errno.h>
31512 #endif
31513 #ifndef NULL
31514 #define NULL (void*)0
31515 #endif
31516
31517 static void *task(p)
31518         void *p;
31519 {
31520         return (void *) (p == NULL);
31521 }
31522
31523 int
31524 main ()
31525 {
31526
31527         /* pthread test function */
31528 #ifndef PTHREAD_CREATE_DETACHED
31529 #define PTHREAD_CREATE_DETACHED 1
31530 #endif
31531         pthread_t t;
31532         int status;
31533         int detach = PTHREAD_CREATE_DETACHED;
31534
31535 #if HAVE_PTHREADS > 4
31536         /* Final pthreads */
31537         pthread_attr_t attr;
31538
31539         status = pthread_attr_init(&attr);
31540         if( status ) return status;
31541
31542 #if HAVE_PTHREADS < 7
31543         status = pthread_attr_setdetachstate(&attr, &detach);
31544         if( status < 0 ) status = errno;
31545 #else
31546         status = pthread_attr_setdetachstate(&attr, detach);
31547 #endif
31548         if( status ) return status;
31549         status = pthread_create( &t, &attr, task, NULL );
31550 #if HAVE_PTHREADS < 7
31551         if( status < 0 ) status = errno;
31552 #endif
31553         if( status ) return status;
31554 #else
31555         /* Draft 4 pthreads */
31556         status = pthread_create( &t, pthread_attr_default, task, NULL );
31557         if( status ) return errno;
31558
31559         /* give thread a chance to complete */
31560         /* it should remain joinable and hence detachable */
31561         sleep( 1 );
31562
31563         status = pthread_detach( &t );
31564         if( status ) return errno;
31565 #endif
31566
31567 #ifdef HAVE_LINUX_THREADS
31568         pthread_kill_other_threads_np();
31569 #endif
31570
31571         return 0;
31572
31573   ;
31574   return 0;
31575 }
31576 _ACEOF
31577 rm -f conftest.$ac_objext conftest$ac_exeext
31578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31579   (eval $ac_link) 2>conftest.er1
31580   ac_status=$?
31581   grep -v '^ *+' conftest.er1 >conftest.err
31582   rm -f conftest.er1
31583   cat conftest.err >&5
31584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31585   (exit $ac_status); } &&
31586          { ac_try='test -z "$ac_c_werror_flag"
31587                          || test ! -s conftest.err'
31588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31589   (eval $ac_try) 2>&5
31590   ac_status=$?
31591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592   (exit $ac_status); }; } &&
31593          { ac_try='test -s conftest$ac_exeext'
31594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31595   (eval $ac_try) 2>&5
31596   ac_status=$?
31597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31598   (exit $ac_status); }; }; then
31599   ol_cv_pthread_thread=yes
31600 else
31601   echo "$as_me: failed program was:" >&5
31602 sed 's/^/| /' conftest.$ac_ext >&5
31603
31604 ol_cv_pthread_thread=no
31605 fi
31606 rm -f conftest.err conftest.$ac_objext \
31607       conftest$ac_exeext conftest.$ac_ext
31608 else
31609   cat >conftest.$ac_ext <<_ACEOF
31610 /* confdefs.h.  */
31611 _ACEOF
31612 cat confdefs.h >>conftest.$ac_ext
31613 cat >>conftest.$ac_ext <<_ACEOF
31614 /* end confdefs.h.  */
31615 /* pthread test headers */
31616 #include <pthread.h>
31617 #if HAVE_PTHREADS < 7
31618 #include <errno.h>
31619 #endif
31620 #ifndef NULL
31621 #define NULL (void*)0
31622 #endif
31623
31624 static void *task(p)
31625         void *p;
31626 {
31627         return (void *) (p == NULL);
31628 }
31629
31630
31631 int main(argc, argv)
31632         int argc;
31633         char **argv;
31634 {
31635
31636         /* pthread test function */
31637 #ifndef PTHREAD_CREATE_DETACHED
31638 #define PTHREAD_CREATE_DETACHED 1
31639 #endif
31640         pthread_t t;
31641         int status;
31642         int detach = PTHREAD_CREATE_DETACHED;
31643
31644 #if HAVE_PTHREADS > 4
31645         /* Final pthreads */
31646         pthread_attr_t attr;
31647
31648         status = pthread_attr_init(&attr);
31649         if( status ) return status;
31650
31651 #if HAVE_PTHREADS < 7
31652         status = pthread_attr_setdetachstate(&attr, &detach);
31653         if( status < 0 ) status = errno;
31654 #else
31655         status = pthread_attr_setdetachstate(&attr, detach);
31656 #endif
31657         if( status ) return status;
31658         status = pthread_create( &t, &attr, task, NULL );
31659 #if HAVE_PTHREADS < 7
31660         if( status < 0 ) status = errno;
31661 #endif
31662         if( status ) return status;
31663 #else
31664         /* Draft 4 pthreads */
31665         status = pthread_create( &t, pthread_attr_default, task, NULL );
31666         if( status ) return errno;
31667
31668         /* give thread a chance to complete */
31669         /* it should remain joinable and hence detachable */
31670         sleep( 1 );
31671
31672         status = pthread_detach( &t );
31673         if( status ) return errno;
31674 #endif
31675
31676 #ifdef HAVE_LINUX_THREADS
31677         pthread_kill_other_threads_np();
31678 #endif
31679
31680         return 0;
31681
31682 }
31683
31684 _ACEOF
31685 rm -f conftest$ac_exeext
31686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31687   (eval $ac_link) 2>&5
31688   ac_status=$?
31689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31692   (eval $ac_try) 2>&5
31693   ac_status=$?
31694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695   (exit $ac_status); }; }; then
31696   ol_cv_pthread_thread=yes
31697 else
31698   echo "$as_me: program exited with status $ac_status" >&5
31699 echo "$as_me: failed program was:" >&5
31700 sed 's/^/| /' conftest.$ac_ext >&5
31701
31702 ( exit $ac_status )
31703 ol_cv_pthread_thread=no
31704 fi
31705 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31706 fi
31707
31708                 # restore the LIBS
31709                 LIBS="$ol_LIBS"
31710
31711 fi
31712 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31713 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31714
31715         if test $ol_cv_pthread_thread = yes ; then
31716                 ol_link_pthreads="-thread"
31717                 ol_link_threads=posix
31718         fi
31719 fi
31720
31721
31722                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
31723 if test "$ol_link_threads" = no ; then
31724         # try -lpthread -lmach -lexc -lc_r
31725         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
31726 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
31727 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
31728   echo $ECHO_N "(cached) $ECHO_C" >&6
31729 else
31730
31731                 # save the flags
31732                 ol_LIBS="$LIBS"
31733                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
31734
31735                 if test "$cross_compiling" = yes; then
31736   cat >conftest.$ac_ext <<_ACEOF
31737 /* confdefs.h.  */
31738 _ACEOF
31739 cat confdefs.h >>conftest.$ac_ext
31740 cat >>conftest.$ac_ext <<_ACEOF
31741 /* end confdefs.h.  */
31742 /* pthread test headers */
31743 #include <pthread.h>
31744 #if HAVE_PTHREADS < 7
31745 #include <errno.h>
31746 #endif
31747 #ifndef NULL
31748 #define NULL (void*)0
31749 #endif
31750
31751 static void *task(p)
31752         void *p;
31753 {
31754         return (void *) (p == NULL);
31755 }
31756
31757 int
31758 main ()
31759 {
31760
31761         /* pthread test function */
31762 #ifndef PTHREAD_CREATE_DETACHED
31763 #define PTHREAD_CREATE_DETACHED 1
31764 #endif
31765         pthread_t t;
31766         int status;
31767         int detach = PTHREAD_CREATE_DETACHED;
31768
31769 #if HAVE_PTHREADS > 4
31770         /* Final pthreads */
31771         pthread_attr_t attr;
31772
31773         status = pthread_attr_init(&attr);
31774         if( status ) return status;
31775
31776 #if HAVE_PTHREADS < 7
31777         status = pthread_attr_setdetachstate(&attr, &detach);
31778         if( status < 0 ) status = errno;
31779 #else
31780         status = pthread_attr_setdetachstate(&attr, detach);
31781 #endif
31782         if( status ) return status;
31783         status = pthread_create( &t, &attr, task, NULL );
31784 #if HAVE_PTHREADS < 7
31785         if( status < 0 ) status = errno;
31786 #endif
31787         if( status ) return status;
31788 #else
31789         /* Draft 4 pthreads */
31790         status = pthread_create( &t, pthread_attr_default, task, NULL );
31791         if( status ) return errno;
31792
31793         /* give thread a chance to complete */
31794         /* it should remain joinable and hence detachable */
31795         sleep( 1 );
31796
31797         status = pthread_detach( &t );
31798         if( status ) return errno;
31799 #endif
31800
31801 #ifdef HAVE_LINUX_THREADS
31802         pthread_kill_other_threads_np();
31803 #endif
31804
31805         return 0;
31806
31807   ;
31808   return 0;
31809 }
31810 _ACEOF
31811 rm -f conftest.$ac_objext conftest$ac_exeext
31812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31813   (eval $ac_link) 2>conftest.er1
31814   ac_status=$?
31815   grep -v '^ *+' conftest.er1 >conftest.err
31816   rm -f conftest.er1
31817   cat conftest.err >&5
31818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31819   (exit $ac_status); } &&
31820          { ac_try='test -z "$ac_c_werror_flag"
31821                          || test ! -s conftest.err'
31822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31823   (eval $ac_try) 2>&5
31824   ac_status=$?
31825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31826   (exit $ac_status); }; } &&
31827          { ac_try='test -s conftest$ac_exeext'
31828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31829   (eval $ac_try) 2>&5
31830   ac_status=$?
31831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832   (exit $ac_status); }; }; then
31833   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31834 else
31835   echo "$as_me: failed program was:" >&5
31836 sed 's/^/| /' conftest.$ac_ext >&5
31837
31838 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31839 fi
31840 rm -f conftest.err conftest.$ac_objext \
31841       conftest$ac_exeext conftest.$ac_ext
31842 else
31843   cat >conftest.$ac_ext <<_ACEOF
31844 /* confdefs.h.  */
31845 _ACEOF
31846 cat confdefs.h >>conftest.$ac_ext
31847 cat >>conftest.$ac_ext <<_ACEOF
31848 /* end confdefs.h.  */
31849 /* pthread test headers */
31850 #include <pthread.h>
31851 #if HAVE_PTHREADS < 7
31852 #include <errno.h>
31853 #endif
31854 #ifndef NULL
31855 #define NULL (void*)0
31856 #endif
31857
31858 static void *task(p)
31859         void *p;
31860 {
31861         return (void *) (p == NULL);
31862 }
31863
31864
31865 int main(argc, argv)
31866         int argc;
31867         char **argv;
31868 {
31869
31870         /* pthread test function */
31871 #ifndef PTHREAD_CREATE_DETACHED
31872 #define PTHREAD_CREATE_DETACHED 1
31873 #endif
31874         pthread_t t;
31875         int status;
31876         int detach = PTHREAD_CREATE_DETACHED;
31877
31878 #if HAVE_PTHREADS > 4
31879         /* Final pthreads */
31880         pthread_attr_t attr;
31881
31882         status = pthread_attr_init(&attr);
31883         if( status ) return status;
31884
31885 #if HAVE_PTHREADS < 7
31886         status = pthread_attr_setdetachstate(&attr, &detach);
31887         if( status < 0 ) status = errno;
31888 #else
31889         status = pthread_attr_setdetachstate(&attr, detach);
31890 #endif
31891         if( status ) return status;
31892         status = pthread_create( &t, &attr, task, NULL );
31893 #if HAVE_PTHREADS < 7
31894         if( status < 0 ) status = errno;
31895 #endif
31896         if( status ) return status;
31897 #else
31898         /* Draft 4 pthreads */
31899         status = pthread_create( &t, pthread_attr_default, task, NULL );
31900         if( status ) return errno;
31901
31902         /* give thread a chance to complete */
31903         /* it should remain joinable and hence detachable */
31904         sleep( 1 );
31905
31906         status = pthread_detach( &t );
31907         if( status ) return errno;
31908 #endif
31909
31910 #ifdef HAVE_LINUX_THREADS
31911         pthread_kill_other_threads_np();
31912 #endif
31913
31914         return 0;
31915
31916 }
31917
31918 _ACEOF
31919 rm -f conftest$ac_exeext
31920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31921   (eval $ac_link) 2>&5
31922   ac_status=$?
31923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31926   (eval $ac_try) 2>&5
31927   ac_status=$?
31928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31929   (exit $ac_status); }; }; then
31930   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31931 else
31932   echo "$as_me: program exited with status $ac_status" >&5
31933 echo "$as_me: failed program was:" >&5
31934 sed 's/^/| /' conftest.$ac_ext >&5
31935
31936 ( exit $ac_status )
31937 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31938 fi
31939 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31940 fi
31941
31942                 # restore the LIBS
31943                 LIBS="$ol_LIBS"
31944
31945 fi
31946 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
31947 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
31948
31949         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
31950                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
31951                 ol_link_threads=posix
31952         fi
31953 fi
31954
31955                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
31956 if test "$ol_link_threads" = no ; then
31957         # try -lpthread -lmach -lexc
31958         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
31959 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
31960 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
31961   echo $ECHO_N "(cached) $ECHO_C" >&6
31962 else
31963
31964                 # save the flags
31965                 ol_LIBS="$LIBS"
31966                 LIBS="-lpthread -lmach -lexc $LIBS"
31967
31968                 if test "$cross_compiling" = yes; then
31969   cat >conftest.$ac_ext <<_ACEOF
31970 /* confdefs.h.  */
31971 _ACEOF
31972 cat confdefs.h >>conftest.$ac_ext
31973 cat >>conftest.$ac_ext <<_ACEOF
31974 /* end confdefs.h.  */
31975 /* pthread test headers */
31976 #include <pthread.h>
31977 #if HAVE_PTHREADS < 7
31978 #include <errno.h>
31979 #endif
31980 #ifndef NULL
31981 #define NULL (void*)0
31982 #endif
31983
31984 static void *task(p)
31985         void *p;
31986 {
31987         return (void *) (p == NULL);
31988 }
31989
31990 int
31991 main ()
31992 {
31993
31994         /* pthread test function */
31995 #ifndef PTHREAD_CREATE_DETACHED
31996 #define PTHREAD_CREATE_DETACHED 1
31997 #endif
31998         pthread_t t;
31999         int status;
32000         int detach = PTHREAD_CREATE_DETACHED;
32001
32002 #if HAVE_PTHREADS > 4
32003         /* Final pthreads */
32004         pthread_attr_t attr;
32005
32006         status = pthread_attr_init(&attr);
32007         if( status ) return status;
32008
32009 #if HAVE_PTHREADS < 7
32010         status = pthread_attr_setdetachstate(&attr, &detach);
32011         if( status < 0 ) status = errno;
32012 #else
32013         status = pthread_attr_setdetachstate(&attr, detach);
32014 #endif
32015         if( status ) return status;
32016         status = pthread_create( &t, &attr, task, NULL );
32017 #if HAVE_PTHREADS < 7
32018         if( status < 0 ) status = errno;
32019 #endif
32020         if( status ) return status;
32021 #else
32022         /* Draft 4 pthreads */
32023         status = pthread_create( &t, pthread_attr_default, task, NULL );
32024         if( status ) return errno;
32025
32026         /* give thread a chance to complete */
32027         /* it should remain joinable and hence detachable */
32028         sleep( 1 );
32029
32030         status = pthread_detach( &t );
32031         if( status ) return errno;
32032 #endif
32033
32034 #ifdef HAVE_LINUX_THREADS
32035         pthread_kill_other_threads_np();
32036 #endif
32037
32038         return 0;
32039
32040   ;
32041   return 0;
32042 }
32043 _ACEOF
32044 rm -f conftest.$ac_objext conftest$ac_exeext
32045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32046   (eval $ac_link) 2>conftest.er1
32047   ac_status=$?
32048   grep -v '^ *+' conftest.er1 >conftest.err
32049   rm -f conftest.er1
32050   cat conftest.err >&5
32051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32052   (exit $ac_status); } &&
32053          { ac_try='test -z "$ac_c_werror_flag"
32054                          || test ! -s conftest.err'
32055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32056   (eval $ac_try) 2>&5
32057   ac_status=$?
32058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32059   (exit $ac_status); }; } &&
32060          { ac_try='test -s conftest$ac_exeext'
32061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32062   (eval $ac_try) 2>&5
32063   ac_status=$?
32064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32065   (exit $ac_status); }; }; then
32066   ol_cv_pthread_lpthread_lmach_lexc=yes
32067 else
32068   echo "$as_me: failed program was:" >&5
32069 sed 's/^/| /' conftest.$ac_ext >&5
32070
32071 ol_cv_pthread_lpthread_lmach_lexc=no
32072 fi
32073 rm -f conftest.err conftest.$ac_objext \
32074       conftest$ac_exeext conftest.$ac_ext
32075 else
32076   cat >conftest.$ac_ext <<_ACEOF
32077 /* confdefs.h.  */
32078 _ACEOF
32079 cat confdefs.h >>conftest.$ac_ext
32080 cat >>conftest.$ac_ext <<_ACEOF
32081 /* end confdefs.h.  */
32082 /* pthread test headers */
32083 #include <pthread.h>
32084 #if HAVE_PTHREADS < 7
32085 #include <errno.h>
32086 #endif
32087 #ifndef NULL
32088 #define NULL (void*)0
32089 #endif
32090
32091 static void *task(p)
32092         void *p;
32093 {
32094         return (void *) (p == NULL);
32095 }
32096
32097
32098 int main(argc, argv)
32099         int argc;
32100         char **argv;
32101 {
32102
32103         /* pthread test function */
32104 #ifndef PTHREAD_CREATE_DETACHED
32105 #define PTHREAD_CREATE_DETACHED 1
32106 #endif
32107         pthread_t t;
32108         int status;
32109         int detach = PTHREAD_CREATE_DETACHED;
32110
32111 #if HAVE_PTHREADS > 4
32112         /* Final pthreads */
32113         pthread_attr_t attr;
32114
32115         status = pthread_attr_init(&attr);
32116         if( status ) return status;
32117
32118 #if HAVE_PTHREADS < 7
32119         status = pthread_attr_setdetachstate(&attr, &detach);
32120         if( status < 0 ) status = errno;
32121 #else
32122         status = pthread_attr_setdetachstate(&attr, detach);
32123 #endif
32124         if( status ) return status;
32125         status = pthread_create( &t, &attr, task, NULL );
32126 #if HAVE_PTHREADS < 7
32127         if( status < 0 ) status = errno;
32128 #endif
32129         if( status ) return status;
32130 #else
32131         /* Draft 4 pthreads */
32132         status = pthread_create( &t, pthread_attr_default, task, NULL );
32133         if( status ) return errno;
32134
32135         /* give thread a chance to complete */
32136         /* it should remain joinable and hence detachable */
32137         sleep( 1 );
32138
32139         status = pthread_detach( &t );
32140         if( status ) return errno;
32141 #endif
32142
32143 #ifdef HAVE_LINUX_THREADS
32144         pthread_kill_other_threads_np();
32145 #endif
32146
32147         return 0;
32148
32149 }
32150
32151 _ACEOF
32152 rm -f conftest$ac_exeext
32153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32154   (eval $ac_link) 2>&5
32155   ac_status=$?
32156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32159   (eval $ac_try) 2>&5
32160   ac_status=$?
32161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162   (exit $ac_status); }; }; then
32163   ol_cv_pthread_lpthread_lmach_lexc=yes
32164 else
32165   echo "$as_me: program exited with status $ac_status" >&5
32166 echo "$as_me: failed program was:" >&5
32167 sed 's/^/| /' conftest.$ac_ext >&5
32168
32169 ( exit $ac_status )
32170 ol_cv_pthread_lpthread_lmach_lexc=no
32171 fi
32172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32173 fi
32174
32175                 # restore the LIBS
32176                 LIBS="$ol_LIBS"
32177
32178 fi
32179 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32180 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32181
32182         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32183                 ol_link_pthreads="-lpthread -lmach -lexc"
32184                 ol_link_threads=posix
32185         fi
32186 fi
32187
32188
32189                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32190 if test "$ol_link_threads" = no ; then
32191         # try -lpthread -Wl,-woff,85
32192         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32193 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32194 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32195   echo $ECHO_N "(cached) $ECHO_C" >&6
32196 else
32197
32198                 # save the flags
32199                 ol_LIBS="$LIBS"
32200                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32201
32202                 if test "$cross_compiling" = yes; then
32203   cat >conftest.$ac_ext <<_ACEOF
32204 /* confdefs.h.  */
32205 _ACEOF
32206 cat confdefs.h >>conftest.$ac_ext
32207 cat >>conftest.$ac_ext <<_ACEOF
32208 /* end confdefs.h.  */
32209 /* pthread test headers */
32210 #include <pthread.h>
32211 #if HAVE_PTHREADS < 7
32212 #include <errno.h>
32213 #endif
32214 #ifndef NULL
32215 #define NULL (void*)0
32216 #endif
32217
32218 static void *task(p)
32219         void *p;
32220 {
32221         return (void *) (p == NULL);
32222 }
32223
32224 int
32225 main ()
32226 {
32227
32228         /* pthread test function */
32229 #ifndef PTHREAD_CREATE_DETACHED
32230 #define PTHREAD_CREATE_DETACHED 1
32231 #endif
32232         pthread_t t;
32233         int status;
32234         int detach = PTHREAD_CREATE_DETACHED;
32235
32236 #if HAVE_PTHREADS > 4
32237         /* Final pthreads */
32238         pthread_attr_t attr;
32239
32240         status = pthread_attr_init(&attr);
32241         if( status ) return status;
32242
32243 #if HAVE_PTHREADS < 7
32244         status = pthread_attr_setdetachstate(&attr, &detach);
32245         if( status < 0 ) status = errno;
32246 #else
32247         status = pthread_attr_setdetachstate(&attr, detach);
32248 #endif
32249         if( status ) return status;
32250         status = pthread_create( &t, &attr, task, NULL );
32251 #if HAVE_PTHREADS < 7
32252         if( status < 0 ) status = errno;
32253 #endif
32254         if( status ) return status;
32255 #else
32256         /* Draft 4 pthreads */
32257         status = pthread_create( &t, pthread_attr_default, task, NULL );
32258         if( status ) return errno;
32259
32260         /* give thread a chance to complete */
32261         /* it should remain joinable and hence detachable */
32262         sleep( 1 );
32263
32264         status = pthread_detach( &t );
32265         if( status ) return errno;
32266 #endif
32267
32268 #ifdef HAVE_LINUX_THREADS
32269         pthread_kill_other_threads_np();
32270 #endif
32271
32272         return 0;
32273
32274   ;
32275   return 0;
32276 }
32277 _ACEOF
32278 rm -f conftest.$ac_objext conftest$ac_exeext
32279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32280   (eval $ac_link) 2>conftest.er1
32281   ac_status=$?
32282   grep -v '^ *+' conftest.er1 >conftest.err
32283   rm -f conftest.er1
32284   cat conftest.err >&5
32285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286   (exit $ac_status); } &&
32287          { ac_try='test -z "$ac_c_werror_flag"
32288                          || test ! -s conftest.err'
32289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32290   (eval $ac_try) 2>&5
32291   ac_status=$?
32292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293   (exit $ac_status); }; } &&
32294          { ac_try='test -s conftest$ac_exeext'
32295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32296   (eval $ac_try) 2>&5
32297   ac_status=$?
32298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299   (exit $ac_status); }; }; then
32300   ol_cv_pthread_lib_lpthread_woff=yes
32301 else
32302   echo "$as_me: failed program was:" >&5
32303 sed 's/^/| /' conftest.$ac_ext >&5
32304
32305 ol_cv_pthread_lib_lpthread_woff=no
32306 fi
32307 rm -f conftest.err conftest.$ac_objext \
32308       conftest$ac_exeext conftest.$ac_ext
32309 else
32310   cat >conftest.$ac_ext <<_ACEOF
32311 /* confdefs.h.  */
32312 _ACEOF
32313 cat confdefs.h >>conftest.$ac_ext
32314 cat >>conftest.$ac_ext <<_ACEOF
32315 /* end confdefs.h.  */
32316 /* pthread test headers */
32317 #include <pthread.h>
32318 #if HAVE_PTHREADS < 7
32319 #include <errno.h>
32320 #endif
32321 #ifndef NULL
32322 #define NULL (void*)0
32323 #endif
32324
32325 static void *task(p)
32326         void *p;
32327 {
32328         return (void *) (p == NULL);
32329 }
32330
32331
32332 int main(argc, argv)
32333         int argc;
32334         char **argv;
32335 {
32336
32337         /* pthread test function */
32338 #ifndef PTHREAD_CREATE_DETACHED
32339 #define PTHREAD_CREATE_DETACHED 1
32340 #endif
32341         pthread_t t;
32342         int status;
32343         int detach = PTHREAD_CREATE_DETACHED;
32344
32345 #if HAVE_PTHREADS > 4
32346         /* Final pthreads */
32347         pthread_attr_t attr;
32348
32349         status = pthread_attr_init(&attr);
32350         if( status ) return status;
32351
32352 #if HAVE_PTHREADS < 7
32353         status = pthread_attr_setdetachstate(&attr, &detach);
32354         if( status < 0 ) status = errno;
32355 #else
32356         status = pthread_attr_setdetachstate(&attr, detach);
32357 #endif
32358         if( status ) return status;
32359         status = pthread_create( &t, &attr, task, NULL );
32360 #if HAVE_PTHREADS < 7
32361         if( status < 0 ) status = errno;
32362 #endif
32363         if( status ) return status;
32364 #else
32365         /* Draft 4 pthreads */
32366         status = pthread_create( &t, pthread_attr_default, task, NULL );
32367         if( status ) return errno;
32368
32369         /* give thread a chance to complete */
32370         /* it should remain joinable and hence detachable */
32371         sleep( 1 );
32372
32373         status = pthread_detach( &t );
32374         if( status ) return errno;
32375 #endif
32376
32377 #ifdef HAVE_LINUX_THREADS
32378         pthread_kill_other_threads_np();
32379 #endif
32380
32381         return 0;
32382
32383 }
32384
32385 _ACEOF
32386 rm -f conftest$ac_exeext
32387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32388   (eval $ac_link) 2>&5
32389   ac_status=$?
32390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32393   (eval $ac_try) 2>&5
32394   ac_status=$?
32395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396   (exit $ac_status); }; }; then
32397   ol_cv_pthread_lib_lpthread_woff=yes
32398 else
32399   echo "$as_me: program exited with status $ac_status" >&5
32400 echo "$as_me: failed program was:" >&5
32401 sed 's/^/| /' conftest.$ac_ext >&5
32402
32403 ( exit $ac_status )
32404 ol_cv_pthread_lib_lpthread_woff=no
32405 fi
32406 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32407 fi
32408
32409                 # restore the LIBS
32410                 LIBS="$ol_LIBS"
32411
32412 fi
32413 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32414 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32415
32416         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32417                 ol_link_pthreads="-lpthread -Wl,-woff,85"
32418                 ol_link_threads=posix
32419         fi
32420 fi
32421
32422
32423                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32424 if test "$ol_link_threads" = no ; then
32425         # try -lpthread
32426         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32427 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32428 if test "${ol_cv_pthread_lpthread+set}" = set; then
32429   echo $ECHO_N "(cached) $ECHO_C" >&6
32430 else
32431
32432                 # save the flags
32433                 ol_LIBS="$LIBS"
32434                 LIBS="-lpthread $LIBS"
32435
32436                 if test "$cross_compiling" = yes; then
32437   cat >conftest.$ac_ext <<_ACEOF
32438 /* confdefs.h.  */
32439 _ACEOF
32440 cat confdefs.h >>conftest.$ac_ext
32441 cat >>conftest.$ac_ext <<_ACEOF
32442 /* end confdefs.h.  */
32443 /* pthread test headers */
32444 #include <pthread.h>
32445 #if HAVE_PTHREADS < 7
32446 #include <errno.h>
32447 #endif
32448 #ifndef NULL
32449 #define NULL (void*)0
32450 #endif
32451
32452 static void *task(p)
32453         void *p;
32454 {
32455         return (void *) (p == NULL);
32456 }
32457
32458 int
32459 main ()
32460 {
32461
32462         /* pthread test function */
32463 #ifndef PTHREAD_CREATE_DETACHED
32464 #define PTHREAD_CREATE_DETACHED 1
32465 #endif
32466         pthread_t t;
32467         int status;
32468         int detach = PTHREAD_CREATE_DETACHED;
32469
32470 #if HAVE_PTHREADS > 4
32471         /* Final pthreads */
32472         pthread_attr_t attr;
32473
32474         status = pthread_attr_init(&attr);
32475         if( status ) return status;
32476
32477 #if HAVE_PTHREADS < 7
32478         status = pthread_attr_setdetachstate(&attr, &detach);
32479         if( status < 0 ) status = errno;
32480 #else
32481         status = pthread_attr_setdetachstate(&attr, detach);
32482 #endif
32483         if( status ) return status;
32484         status = pthread_create( &t, &attr, task, NULL );
32485 #if HAVE_PTHREADS < 7
32486         if( status < 0 ) status = errno;
32487 #endif
32488         if( status ) return status;
32489 #else
32490         /* Draft 4 pthreads */
32491         status = pthread_create( &t, pthread_attr_default, task, NULL );
32492         if( status ) return errno;
32493
32494         /* give thread a chance to complete */
32495         /* it should remain joinable and hence detachable */
32496         sleep( 1 );
32497
32498         status = pthread_detach( &t );
32499         if( status ) return errno;
32500 #endif
32501
32502 #ifdef HAVE_LINUX_THREADS
32503         pthread_kill_other_threads_np();
32504 #endif
32505
32506         return 0;
32507
32508   ;
32509   return 0;
32510 }
32511 _ACEOF
32512 rm -f conftest.$ac_objext conftest$ac_exeext
32513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32514   (eval $ac_link) 2>conftest.er1
32515   ac_status=$?
32516   grep -v '^ *+' conftest.er1 >conftest.err
32517   rm -f conftest.er1
32518   cat conftest.err >&5
32519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520   (exit $ac_status); } &&
32521          { ac_try='test -z "$ac_c_werror_flag"
32522                          || test ! -s conftest.err'
32523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32524   (eval $ac_try) 2>&5
32525   ac_status=$?
32526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32527   (exit $ac_status); }; } &&
32528          { ac_try='test -s conftest$ac_exeext'
32529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32530   (eval $ac_try) 2>&5
32531   ac_status=$?
32532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32533   (exit $ac_status); }; }; then
32534   ol_cv_pthread_lpthread=yes
32535 else
32536   echo "$as_me: failed program was:" >&5
32537 sed 's/^/| /' conftest.$ac_ext >&5
32538
32539 ol_cv_pthread_lpthread=no
32540 fi
32541 rm -f conftest.err conftest.$ac_objext \
32542       conftest$ac_exeext conftest.$ac_ext
32543 else
32544   cat >conftest.$ac_ext <<_ACEOF
32545 /* confdefs.h.  */
32546 _ACEOF
32547 cat confdefs.h >>conftest.$ac_ext
32548 cat >>conftest.$ac_ext <<_ACEOF
32549 /* end confdefs.h.  */
32550 /* pthread test headers */
32551 #include <pthread.h>
32552 #if HAVE_PTHREADS < 7
32553 #include <errno.h>
32554 #endif
32555 #ifndef NULL
32556 #define NULL (void*)0
32557 #endif
32558
32559 static void *task(p)
32560         void *p;
32561 {
32562         return (void *) (p == NULL);
32563 }
32564
32565
32566 int main(argc, argv)
32567         int argc;
32568         char **argv;
32569 {
32570
32571         /* pthread test function */
32572 #ifndef PTHREAD_CREATE_DETACHED
32573 #define PTHREAD_CREATE_DETACHED 1
32574 #endif
32575         pthread_t t;
32576         int status;
32577         int detach = PTHREAD_CREATE_DETACHED;
32578
32579 #if HAVE_PTHREADS > 4
32580         /* Final pthreads */
32581         pthread_attr_t attr;
32582
32583         status = pthread_attr_init(&attr);
32584         if( status ) return status;
32585
32586 #if HAVE_PTHREADS < 7
32587         status = pthread_attr_setdetachstate(&attr, &detach);
32588         if( status < 0 ) status = errno;
32589 #else
32590         status = pthread_attr_setdetachstate(&attr, detach);
32591 #endif
32592         if( status ) return status;
32593         status = pthread_create( &t, &attr, task, NULL );
32594 #if HAVE_PTHREADS < 7
32595         if( status < 0 ) status = errno;
32596 #endif
32597         if( status ) return status;
32598 #else
32599         /* Draft 4 pthreads */
32600         status = pthread_create( &t, pthread_attr_default, task, NULL );
32601         if( status ) return errno;
32602
32603         /* give thread a chance to complete */
32604         /* it should remain joinable and hence detachable */
32605         sleep( 1 );
32606
32607         status = pthread_detach( &t );
32608         if( status ) return errno;
32609 #endif
32610
32611 #ifdef HAVE_LINUX_THREADS
32612         pthread_kill_other_threads_np();
32613 #endif
32614
32615         return 0;
32616
32617 }
32618
32619 _ACEOF
32620 rm -f conftest$ac_exeext
32621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32622   (eval $ac_link) 2>&5
32623   ac_status=$?
32624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32627   (eval $ac_try) 2>&5
32628   ac_status=$?
32629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32630   (exit $ac_status); }; }; then
32631   ol_cv_pthread_lpthread=yes
32632 else
32633   echo "$as_me: program exited with status $ac_status" >&5
32634 echo "$as_me: failed program was:" >&5
32635 sed 's/^/| /' conftest.$ac_ext >&5
32636
32637 ( exit $ac_status )
32638 ol_cv_pthread_lpthread=no
32639 fi
32640 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32641 fi
32642
32643                 # restore the LIBS
32644                 LIBS="$ol_LIBS"
32645
32646 fi
32647 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32648 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32649
32650         if test $ol_cv_pthread_lpthread = yes ; then
32651                 ol_link_pthreads="-lpthread"
32652                 ol_link_threads=posix
32653         fi
32654 fi
32655
32656                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32657 if test "$ol_link_threads" = no ; then
32658         # try -lc_r
32659         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32660 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32661 if test "${ol_cv_pthread_lc_r+set}" = set; then
32662   echo $ECHO_N "(cached) $ECHO_C" >&6
32663 else
32664
32665                 # save the flags
32666                 ol_LIBS="$LIBS"
32667                 LIBS="-lc_r $LIBS"
32668
32669                 if test "$cross_compiling" = yes; then
32670   cat >conftest.$ac_ext <<_ACEOF
32671 /* confdefs.h.  */
32672 _ACEOF
32673 cat confdefs.h >>conftest.$ac_ext
32674 cat >>conftest.$ac_ext <<_ACEOF
32675 /* end confdefs.h.  */
32676 /* pthread test headers */
32677 #include <pthread.h>
32678 #if HAVE_PTHREADS < 7
32679 #include <errno.h>
32680 #endif
32681 #ifndef NULL
32682 #define NULL (void*)0
32683 #endif
32684
32685 static void *task(p)
32686         void *p;
32687 {
32688         return (void *) (p == NULL);
32689 }
32690
32691 int
32692 main ()
32693 {
32694
32695         /* pthread test function */
32696 #ifndef PTHREAD_CREATE_DETACHED
32697 #define PTHREAD_CREATE_DETACHED 1
32698 #endif
32699         pthread_t t;
32700         int status;
32701         int detach = PTHREAD_CREATE_DETACHED;
32702
32703 #if HAVE_PTHREADS > 4
32704         /* Final pthreads */
32705         pthread_attr_t attr;
32706
32707         status = pthread_attr_init(&attr);
32708         if( status ) return status;
32709
32710 #if HAVE_PTHREADS < 7
32711         status = pthread_attr_setdetachstate(&attr, &detach);
32712         if( status < 0 ) status = errno;
32713 #else
32714         status = pthread_attr_setdetachstate(&attr, detach);
32715 #endif
32716         if( status ) return status;
32717         status = pthread_create( &t, &attr, task, NULL );
32718 #if HAVE_PTHREADS < 7
32719         if( status < 0 ) status = errno;
32720 #endif
32721         if( status ) return status;
32722 #else
32723         /* Draft 4 pthreads */
32724         status = pthread_create( &t, pthread_attr_default, task, NULL );
32725         if( status ) return errno;
32726
32727         /* give thread a chance to complete */
32728         /* it should remain joinable and hence detachable */
32729         sleep( 1 );
32730
32731         status = pthread_detach( &t );
32732         if( status ) return errno;
32733 #endif
32734
32735 #ifdef HAVE_LINUX_THREADS
32736         pthread_kill_other_threads_np();
32737 #endif
32738
32739         return 0;
32740
32741   ;
32742   return 0;
32743 }
32744 _ACEOF
32745 rm -f conftest.$ac_objext conftest$ac_exeext
32746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32747   (eval $ac_link) 2>conftest.er1
32748   ac_status=$?
32749   grep -v '^ *+' conftest.er1 >conftest.err
32750   rm -f conftest.er1
32751   cat conftest.err >&5
32752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32753   (exit $ac_status); } &&
32754          { ac_try='test -z "$ac_c_werror_flag"
32755                          || test ! -s conftest.err'
32756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32757   (eval $ac_try) 2>&5
32758   ac_status=$?
32759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32760   (exit $ac_status); }; } &&
32761          { ac_try='test -s conftest$ac_exeext'
32762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32763   (eval $ac_try) 2>&5
32764   ac_status=$?
32765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32766   (exit $ac_status); }; }; then
32767   ol_cv_pthread_lc_r=yes
32768 else
32769   echo "$as_me: failed program was:" >&5
32770 sed 's/^/| /' conftest.$ac_ext >&5
32771
32772 ol_cv_pthread_lc_r=no
32773 fi
32774 rm -f conftest.err conftest.$ac_objext \
32775       conftest$ac_exeext conftest.$ac_ext
32776 else
32777   cat >conftest.$ac_ext <<_ACEOF
32778 /* confdefs.h.  */
32779 _ACEOF
32780 cat confdefs.h >>conftest.$ac_ext
32781 cat >>conftest.$ac_ext <<_ACEOF
32782 /* end confdefs.h.  */
32783 /* pthread test headers */
32784 #include <pthread.h>
32785 #if HAVE_PTHREADS < 7
32786 #include <errno.h>
32787 #endif
32788 #ifndef NULL
32789 #define NULL (void*)0
32790 #endif
32791
32792 static void *task(p)
32793         void *p;
32794 {
32795         return (void *) (p == NULL);
32796 }
32797
32798
32799 int main(argc, argv)
32800         int argc;
32801         char **argv;
32802 {
32803
32804         /* pthread test function */
32805 #ifndef PTHREAD_CREATE_DETACHED
32806 #define PTHREAD_CREATE_DETACHED 1
32807 #endif
32808         pthread_t t;
32809         int status;
32810         int detach = PTHREAD_CREATE_DETACHED;
32811
32812 #if HAVE_PTHREADS > 4
32813         /* Final pthreads */
32814         pthread_attr_t attr;
32815
32816         status = pthread_attr_init(&attr);
32817         if( status ) return status;
32818
32819 #if HAVE_PTHREADS < 7
32820         status = pthread_attr_setdetachstate(&attr, &detach);
32821         if( status < 0 ) status = errno;
32822 #else
32823         status = pthread_attr_setdetachstate(&attr, detach);
32824 #endif
32825         if( status ) return status;
32826         status = pthread_create( &t, &attr, task, NULL );
32827 #if HAVE_PTHREADS < 7
32828         if( status < 0 ) status = errno;
32829 #endif
32830         if( status ) return status;
32831 #else
32832         /* Draft 4 pthreads */
32833         status = pthread_create( &t, pthread_attr_default, task, NULL );
32834         if( status ) return errno;
32835
32836         /* give thread a chance to complete */
32837         /* it should remain joinable and hence detachable */
32838         sleep( 1 );
32839
32840         status = pthread_detach( &t );
32841         if( status ) return errno;
32842 #endif
32843
32844 #ifdef HAVE_LINUX_THREADS
32845         pthread_kill_other_threads_np();
32846 #endif
32847
32848         return 0;
32849
32850 }
32851
32852 _ACEOF
32853 rm -f conftest$ac_exeext
32854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32855   (eval $ac_link) 2>&5
32856   ac_status=$?
32857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32860   (eval $ac_try) 2>&5
32861   ac_status=$?
32862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32863   (exit $ac_status); }; }; then
32864   ol_cv_pthread_lc_r=yes
32865 else
32866   echo "$as_me: program exited with status $ac_status" >&5
32867 echo "$as_me: failed program was:" >&5
32868 sed 's/^/| /' conftest.$ac_ext >&5
32869
32870 ( exit $ac_status )
32871 ol_cv_pthread_lc_r=no
32872 fi
32873 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32874 fi
32875
32876                 # restore the LIBS
32877                 LIBS="$ol_LIBS"
32878
32879 fi
32880 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
32881 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
32882
32883         if test $ol_cv_pthread_lc_r = yes ; then
32884                 ol_link_pthreads="-lc_r"
32885                 ol_link_threads=posix
32886         fi
32887 fi
32888
32889
32890                 # Pthread try link: -threads (ol_cv_pthread_threads)
32891 if test "$ol_link_threads" = no ; then
32892         # try -threads
32893         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
32894 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
32895 if test "${ol_cv_pthread_threads+set}" = set; then
32896   echo $ECHO_N "(cached) $ECHO_C" >&6
32897 else
32898
32899                 # save the flags
32900                 ol_LIBS="$LIBS"
32901                 LIBS="-threads $LIBS"
32902
32903                 if test "$cross_compiling" = yes; then
32904   cat >conftest.$ac_ext <<_ACEOF
32905 /* confdefs.h.  */
32906 _ACEOF
32907 cat confdefs.h >>conftest.$ac_ext
32908 cat >>conftest.$ac_ext <<_ACEOF
32909 /* end confdefs.h.  */
32910 /* pthread test headers */
32911 #include <pthread.h>
32912 #if HAVE_PTHREADS < 7
32913 #include <errno.h>
32914 #endif
32915 #ifndef NULL
32916 #define NULL (void*)0
32917 #endif
32918
32919 static void *task(p)
32920         void *p;
32921 {
32922         return (void *) (p == NULL);
32923 }
32924
32925 int
32926 main ()
32927 {
32928
32929         /* pthread test function */
32930 #ifndef PTHREAD_CREATE_DETACHED
32931 #define PTHREAD_CREATE_DETACHED 1
32932 #endif
32933         pthread_t t;
32934         int status;
32935         int detach = PTHREAD_CREATE_DETACHED;
32936
32937 #if HAVE_PTHREADS > 4
32938         /* Final pthreads */
32939         pthread_attr_t attr;
32940
32941         status = pthread_attr_init(&attr);
32942         if( status ) return status;
32943
32944 #if HAVE_PTHREADS < 7
32945         status = pthread_attr_setdetachstate(&attr, &detach);
32946         if( status < 0 ) status = errno;
32947 #else
32948         status = pthread_attr_setdetachstate(&attr, detach);
32949 #endif
32950         if( status ) return status;
32951         status = pthread_create( &t, &attr, task, NULL );
32952 #if HAVE_PTHREADS < 7
32953         if( status < 0 ) status = errno;
32954 #endif
32955         if( status ) return status;
32956 #else
32957         /* Draft 4 pthreads */
32958         status = pthread_create( &t, pthread_attr_default, task, NULL );
32959         if( status ) return errno;
32960
32961         /* give thread a chance to complete */
32962         /* it should remain joinable and hence detachable */
32963         sleep( 1 );
32964
32965         status = pthread_detach( &t );
32966         if( status ) return errno;
32967 #endif
32968
32969 #ifdef HAVE_LINUX_THREADS
32970         pthread_kill_other_threads_np();
32971 #endif
32972
32973         return 0;
32974
32975   ;
32976   return 0;
32977 }
32978 _ACEOF
32979 rm -f conftest.$ac_objext conftest$ac_exeext
32980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32981   (eval $ac_link) 2>conftest.er1
32982   ac_status=$?
32983   grep -v '^ *+' conftest.er1 >conftest.err
32984   rm -f conftest.er1
32985   cat conftest.err >&5
32986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32987   (exit $ac_status); } &&
32988          { ac_try='test -z "$ac_c_werror_flag"
32989                          || test ! -s conftest.err'
32990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32991   (eval $ac_try) 2>&5
32992   ac_status=$?
32993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32994   (exit $ac_status); }; } &&
32995          { ac_try='test -s conftest$ac_exeext'
32996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32997   (eval $ac_try) 2>&5
32998   ac_status=$?
32999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33000   (exit $ac_status); }; }; then
33001   ol_cv_pthread_threads=yes
33002 else
33003   echo "$as_me: failed program was:" >&5
33004 sed 's/^/| /' conftest.$ac_ext >&5
33005
33006 ol_cv_pthread_threads=no
33007 fi
33008 rm -f conftest.err conftest.$ac_objext \
33009       conftest$ac_exeext conftest.$ac_ext
33010 else
33011   cat >conftest.$ac_ext <<_ACEOF
33012 /* confdefs.h.  */
33013 _ACEOF
33014 cat confdefs.h >>conftest.$ac_ext
33015 cat >>conftest.$ac_ext <<_ACEOF
33016 /* end confdefs.h.  */
33017 /* pthread test headers */
33018 #include <pthread.h>
33019 #if HAVE_PTHREADS < 7
33020 #include <errno.h>
33021 #endif
33022 #ifndef NULL
33023 #define NULL (void*)0
33024 #endif
33025
33026 static void *task(p)
33027         void *p;
33028 {
33029         return (void *) (p == NULL);
33030 }
33031
33032
33033 int main(argc, argv)
33034         int argc;
33035         char **argv;
33036 {
33037
33038         /* pthread test function */
33039 #ifndef PTHREAD_CREATE_DETACHED
33040 #define PTHREAD_CREATE_DETACHED 1
33041 #endif
33042         pthread_t t;
33043         int status;
33044         int detach = PTHREAD_CREATE_DETACHED;
33045
33046 #if HAVE_PTHREADS > 4
33047         /* Final pthreads */
33048         pthread_attr_t attr;
33049
33050         status = pthread_attr_init(&attr);
33051         if( status ) return status;
33052
33053 #if HAVE_PTHREADS < 7
33054         status = pthread_attr_setdetachstate(&attr, &detach);
33055         if( status < 0 ) status = errno;
33056 #else
33057         status = pthread_attr_setdetachstate(&attr, detach);
33058 #endif
33059         if( status ) return status;
33060         status = pthread_create( &t, &attr, task, NULL );
33061 #if HAVE_PTHREADS < 7
33062         if( status < 0 ) status = errno;
33063 #endif
33064         if( status ) return status;
33065 #else
33066         /* Draft 4 pthreads */
33067         status = pthread_create( &t, pthread_attr_default, task, NULL );
33068         if( status ) return errno;
33069
33070         /* give thread a chance to complete */
33071         /* it should remain joinable and hence detachable */
33072         sleep( 1 );
33073
33074         status = pthread_detach( &t );
33075         if( status ) return errno;
33076 #endif
33077
33078 #ifdef HAVE_LINUX_THREADS
33079         pthread_kill_other_threads_np();
33080 #endif
33081
33082         return 0;
33083
33084 }
33085
33086 _ACEOF
33087 rm -f conftest$ac_exeext
33088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33089   (eval $ac_link) 2>&5
33090   ac_status=$?
33091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33092   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33094   (eval $ac_try) 2>&5
33095   ac_status=$?
33096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33097   (exit $ac_status); }; }; then
33098   ol_cv_pthread_threads=yes
33099 else
33100   echo "$as_me: program exited with status $ac_status" >&5
33101 echo "$as_me: failed program was:" >&5
33102 sed 's/^/| /' conftest.$ac_ext >&5
33103
33104 ( exit $ac_status )
33105 ol_cv_pthread_threads=no
33106 fi
33107 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33108 fi
33109
33110                 # restore the LIBS
33111                 LIBS="$ol_LIBS"
33112
33113 fi
33114 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33115 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33116
33117         if test $ol_cv_pthread_threads = yes ; then
33118                 ol_link_pthreads="-threads"
33119                 ol_link_threads=posix
33120         fi
33121 fi
33122
33123
33124                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33125 if test "$ol_link_threads" = no ; then
33126         # try -lpthreads -lmach -lexc -lc_r
33127         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33128 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33129 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33130   echo $ECHO_N "(cached) $ECHO_C" >&6
33131 else
33132
33133                 # save the flags
33134                 ol_LIBS="$LIBS"
33135                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33136
33137                 if test "$cross_compiling" = yes; then
33138   cat >conftest.$ac_ext <<_ACEOF
33139 /* confdefs.h.  */
33140 _ACEOF
33141 cat confdefs.h >>conftest.$ac_ext
33142 cat >>conftest.$ac_ext <<_ACEOF
33143 /* end confdefs.h.  */
33144 /* pthread test headers */
33145 #include <pthread.h>
33146 #if HAVE_PTHREADS < 7
33147 #include <errno.h>
33148 #endif
33149 #ifndef NULL
33150 #define NULL (void*)0
33151 #endif
33152
33153 static void *task(p)
33154         void *p;
33155 {
33156         return (void *) (p == NULL);
33157 }
33158
33159 int
33160 main ()
33161 {
33162
33163         /* pthread test function */
33164 #ifndef PTHREAD_CREATE_DETACHED
33165 #define PTHREAD_CREATE_DETACHED 1
33166 #endif
33167         pthread_t t;
33168         int status;
33169         int detach = PTHREAD_CREATE_DETACHED;
33170
33171 #if HAVE_PTHREADS > 4
33172         /* Final pthreads */
33173         pthread_attr_t attr;
33174
33175         status = pthread_attr_init(&attr);
33176         if( status ) return status;
33177
33178 #if HAVE_PTHREADS < 7
33179         status = pthread_attr_setdetachstate(&attr, &detach);
33180         if( status < 0 ) status = errno;
33181 #else
33182         status = pthread_attr_setdetachstate(&attr, detach);
33183 #endif
33184         if( status ) return status;
33185         status = pthread_create( &t, &attr, task, NULL );
33186 #if HAVE_PTHREADS < 7
33187         if( status < 0 ) status = errno;
33188 #endif
33189         if( status ) return status;
33190 #else
33191         /* Draft 4 pthreads */
33192         status = pthread_create( &t, pthread_attr_default, task, NULL );
33193         if( status ) return errno;
33194
33195         /* give thread a chance to complete */
33196         /* it should remain joinable and hence detachable */
33197         sleep( 1 );
33198
33199         status = pthread_detach( &t );
33200         if( status ) return errno;
33201 #endif
33202
33203 #ifdef HAVE_LINUX_THREADS
33204         pthread_kill_other_threads_np();
33205 #endif
33206
33207         return 0;
33208
33209   ;
33210   return 0;
33211 }
33212 _ACEOF
33213 rm -f conftest.$ac_objext conftest$ac_exeext
33214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33215   (eval $ac_link) 2>conftest.er1
33216   ac_status=$?
33217   grep -v '^ *+' conftest.er1 >conftest.err
33218   rm -f conftest.er1
33219   cat conftest.err >&5
33220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221   (exit $ac_status); } &&
33222          { ac_try='test -z "$ac_c_werror_flag"
33223                          || test ! -s conftest.err'
33224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33225   (eval $ac_try) 2>&5
33226   ac_status=$?
33227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228   (exit $ac_status); }; } &&
33229          { ac_try='test -s conftest$ac_exeext'
33230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33231   (eval $ac_try) 2>&5
33232   ac_status=$?
33233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33234   (exit $ac_status); }; }; then
33235   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33236 else
33237   echo "$as_me: failed program was:" >&5
33238 sed 's/^/| /' conftest.$ac_ext >&5
33239
33240 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33241 fi
33242 rm -f conftest.err conftest.$ac_objext \
33243       conftest$ac_exeext conftest.$ac_ext
33244 else
33245   cat >conftest.$ac_ext <<_ACEOF
33246 /* confdefs.h.  */
33247 _ACEOF
33248 cat confdefs.h >>conftest.$ac_ext
33249 cat >>conftest.$ac_ext <<_ACEOF
33250 /* end confdefs.h.  */
33251 /* pthread test headers */
33252 #include <pthread.h>
33253 #if HAVE_PTHREADS < 7
33254 #include <errno.h>
33255 #endif
33256 #ifndef NULL
33257 #define NULL (void*)0
33258 #endif
33259
33260 static void *task(p)
33261         void *p;
33262 {
33263         return (void *) (p == NULL);
33264 }
33265
33266
33267 int main(argc, argv)
33268         int argc;
33269         char **argv;
33270 {
33271
33272         /* pthread test function */
33273 #ifndef PTHREAD_CREATE_DETACHED
33274 #define PTHREAD_CREATE_DETACHED 1
33275 #endif
33276         pthread_t t;
33277         int status;
33278         int detach = PTHREAD_CREATE_DETACHED;
33279
33280 #if HAVE_PTHREADS > 4
33281         /* Final pthreads */
33282         pthread_attr_t attr;
33283
33284         status = pthread_attr_init(&attr);
33285         if( status ) return status;
33286
33287 #if HAVE_PTHREADS < 7
33288         status = pthread_attr_setdetachstate(&attr, &detach);
33289         if( status < 0 ) status = errno;
33290 #else
33291         status = pthread_attr_setdetachstate(&attr, detach);
33292 #endif
33293         if( status ) return status;
33294         status = pthread_create( &t, &attr, task, NULL );
33295 #if HAVE_PTHREADS < 7
33296         if( status < 0 ) status = errno;
33297 #endif
33298         if( status ) return status;
33299 #else
33300         /* Draft 4 pthreads */
33301         status = pthread_create( &t, pthread_attr_default, task, NULL );
33302         if( status ) return errno;
33303
33304         /* give thread a chance to complete */
33305         /* it should remain joinable and hence detachable */
33306         sleep( 1 );
33307
33308         status = pthread_detach( &t );
33309         if( status ) return errno;
33310 #endif
33311
33312 #ifdef HAVE_LINUX_THREADS
33313         pthread_kill_other_threads_np();
33314 #endif
33315
33316         return 0;
33317
33318 }
33319
33320 _ACEOF
33321 rm -f conftest$ac_exeext
33322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33323   (eval $ac_link) 2>&5
33324   ac_status=$?
33325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33328   (eval $ac_try) 2>&5
33329   ac_status=$?
33330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33331   (exit $ac_status); }; }; then
33332   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33333 else
33334   echo "$as_me: program exited with status $ac_status" >&5
33335 echo "$as_me: failed program was:" >&5
33336 sed 's/^/| /' conftest.$ac_ext >&5
33337
33338 ( exit $ac_status )
33339 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33340 fi
33341 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33342 fi
33343
33344                 # restore the LIBS
33345                 LIBS="$ol_LIBS"
33346
33347 fi
33348 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33349 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33350
33351         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33352                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33353                 ol_link_threads=posix
33354         fi
33355 fi
33356
33357                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33358 if test "$ol_link_threads" = no ; then
33359         # try -lpthreads -lmach -lexc
33360         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33361 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33362 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33363   echo $ECHO_N "(cached) $ECHO_C" >&6
33364 else
33365
33366                 # save the flags
33367                 ol_LIBS="$LIBS"
33368                 LIBS="-lpthreads -lmach -lexc $LIBS"
33369
33370                 if test "$cross_compiling" = yes; then
33371   cat >conftest.$ac_ext <<_ACEOF
33372 /* confdefs.h.  */
33373 _ACEOF
33374 cat confdefs.h >>conftest.$ac_ext
33375 cat >>conftest.$ac_ext <<_ACEOF
33376 /* end confdefs.h.  */
33377 /* pthread test headers */
33378 #include <pthread.h>
33379 #if HAVE_PTHREADS < 7
33380 #include <errno.h>
33381 #endif
33382 #ifndef NULL
33383 #define NULL (void*)0
33384 #endif
33385
33386 static void *task(p)
33387         void *p;
33388 {
33389         return (void *) (p == NULL);
33390 }
33391
33392 int
33393 main ()
33394 {
33395
33396         /* pthread test function */
33397 #ifndef PTHREAD_CREATE_DETACHED
33398 #define PTHREAD_CREATE_DETACHED 1
33399 #endif
33400         pthread_t t;
33401         int status;
33402         int detach = PTHREAD_CREATE_DETACHED;
33403
33404 #if HAVE_PTHREADS > 4
33405         /* Final pthreads */
33406         pthread_attr_t attr;
33407
33408         status = pthread_attr_init(&attr);
33409         if( status ) return status;
33410
33411 #if HAVE_PTHREADS < 7
33412         status = pthread_attr_setdetachstate(&attr, &detach);
33413         if( status < 0 ) status = errno;
33414 #else
33415         status = pthread_attr_setdetachstate(&attr, detach);
33416 #endif
33417         if( status ) return status;
33418         status = pthread_create( &t, &attr, task, NULL );
33419 #if HAVE_PTHREADS < 7
33420         if( status < 0 ) status = errno;
33421 #endif
33422         if( status ) return status;
33423 #else
33424         /* Draft 4 pthreads */
33425         status = pthread_create( &t, pthread_attr_default, task, NULL );
33426         if( status ) return errno;
33427
33428         /* give thread a chance to complete */
33429         /* it should remain joinable and hence detachable */
33430         sleep( 1 );
33431
33432         status = pthread_detach( &t );
33433         if( status ) return errno;
33434 #endif
33435
33436 #ifdef HAVE_LINUX_THREADS
33437         pthread_kill_other_threads_np();
33438 #endif
33439
33440         return 0;
33441
33442   ;
33443   return 0;
33444 }
33445 _ACEOF
33446 rm -f conftest.$ac_objext conftest$ac_exeext
33447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33448   (eval $ac_link) 2>conftest.er1
33449   ac_status=$?
33450   grep -v '^ *+' conftest.er1 >conftest.err
33451   rm -f conftest.er1
33452   cat conftest.err >&5
33453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33454   (exit $ac_status); } &&
33455          { ac_try='test -z "$ac_c_werror_flag"
33456                          || test ! -s conftest.err'
33457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33458   (eval $ac_try) 2>&5
33459   ac_status=$?
33460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33461   (exit $ac_status); }; } &&
33462          { ac_try='test -s conftest$ac_exeext'
33463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33464   (eval $ac_try) 2>&5
33465   ac_status=$?
33466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467   (exit $ac_status); }; }; then
33468   ol_cv_pthread_lpthreads_lmach_lexc=yes
33469 else
33470   echo "$as_me: failed program was:" >&5
33471 sed 's/^/| /' conftest.$ac_ext >&5
33472
33473 ol_cv_pthread_lpthreads_lmach_lexc=no
33474 fi
33475 rm -f conftest.err conftest.$ac_objext \
33476       conftest$ac_exeext conftest.$ac_ext
33477 else
33478   cat >conftest.$ac_ext <<_ACEOF
33479 /* confdefs.h.  */
33480 _ACEOF
33481 cat confdefs.h >>conftest.$ac_ext
33482 cat >>conftest.$ac_ext <<_ACEOF
33483 /* end confdefs.h.  */
33484 /* pthread test headers */
33485 #include <pthread.h>
33486 #if HAVE_PTHREADS < 7
33487 #include <errno.h>
33488 #endif
33489 #ifndef NULL
33490 #define NULL (void*)0
33491 #endif
33492
33493 static void *task(p)
33494         void *p;
33495 {
33496         return (void *) (p == NULL);
33497 }
33498
33499
33500 int main(argc, argv)
33501         int argc;
33502         char **argv;
33503 {
33504
33505         /* pthread test function */
33506 #ifndef PTHREAD_CREATE_DETACHED
33507 #define PTHREAD_CREATE_DETACHED 1
33508 #endif
33509         pthread_t t;
33510         int status;
33511         int detach = PTHREAD_CREATE_DETACHED;
33512
33513 #if HAVE_PTHREADS > 4
33514         /* Final pthreads */
33515         pthread_attr_t attr;
33516
33517         status = pthread_attr_init(&attr);
33518         if( status ) return status;
33519
33520 #if HAVE_PTHREADS < 7
33521         status = pthread_attr_setdetachstate(&attr, &detach);
33522         if( status < 0 ) status = errno;
33523 #else
33524         status = pthread_attr_setdetachstate(&attr, detach);
33525 #endif
33526         if( status ) return status;
33527         status = pthread_create( &t, &attr, task, NULL );
33528 #if HAVE_PTHREADS < 7
33529         if( status < 0 ) status = errno;
33530 #endif
33531         if( status ) return status;
33532 #else
33533         /* Draft 4 pthreads */
33534         status = pthread_create( &t, pthread_attr_default, task, NULL );
33535         if( status ) return errno;
33536
33537         /* give thread a chance to complete */
33538         /* it should remain joinable and hence detachable */
33539         sleep( 1 );
33540
33541         status = pthread_detach( &t );
33542         if( status ) return errno;
33543 #endif
33544
33545 #ifdef HAVE_LINUX_THREADS
33546         pthread_kill_other_threads_np();
33547 #endif
33548
33549         return 0;
33550
33551 }
33552
33553 _ACEOF
33554 rm -f conftest$ac_exeext
33555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33556   (eval $ac_link) 2>&5
33557   ac_status=$?
33558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33559   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33561   (eval $ac_try) 2>&5
33562   ac_status=$?
33563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33564   (exit $ac_status); }; }; then
33565   ol_cv_pthread_lpthreads_lmach_lexc=yes
33566 else
33567   echo "$as_me: program exited with status $ac_status" >&5
33568 echo "$as_me: failed program was:" >&5
33569 sed 's/^/| /' conftest.$ac_ext >&5
33570
33571 ( exit $ac_status )
33572 ol_cv_pthread_lpthreads_lmach_lexc=no
33573 fi
33574 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33575 fi
33576
33577                 # restore the LIBS
33578                 LIBS="$ol_LIBS"
33579
33580 fi
33581 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33582 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33583
33584         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33585                 ol_link_pthreads="-lpthreads -lmach -lexc"
33586                 ol_link_threads=posix
33587         fi
33588 fi
33589
33590                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33591 if test "$ol_link_threads" = no ; then
33592         # try -lpthreads -lexc
33593         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33594 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33595 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33596   echo $ECHO_N "(cached) $ECHO_C" >&6
33597 else
33598
33599                 # save the flags
33600                 ol_LIBS="$LIBS"
33601                 LIBS="-lpthreads -lexc $LIBS"
33602
33603                 if test "$cross_compiling" = yes; then
33604   cat >conftest.$ac_ext <<_ACEOF
33605 /* confdefs.h.  */
33606 _ACEOF
33607 cat confdefs.h >>conftest.$ac_ext
33608 cat >>conftest.$ac_ext <<_ACEOF
33609 /* end confdefs.h.  */
33610 /* pthread test headers */
33611 #include <pthread.h>
33612 #if HAVE_PTHREADS < 7
33613 #include <errno.h>
33614 #endif
33615 #ifndef NULL
33616 #define NULL (void*)0
33617 #endif
33618
33619 static void *task(p)
33620         void *p;
33621 {
33622         return (void *) (p == NULL);
33623 }
33624
33625 int
33626 main ()
33627 {
33628
33629         /* pthread test function */
33630 #ifndef PTHREAD_CREATE_DETACHED
33631 #define PTHREAD_CREATE_DETACHED 1
33632 #endif
33633         pthread_t t;
33634         int status;
33635         int detach = PTHREAD_CREATE_DETACHED;
33636
33637 #if HAVE_PTHREADS > 4
33638         /* Final pthreads */
33639         pthread_attr_t attr;
33640
33641         status = pthread_attr_init(&attr);
33642         if( status ) return status;
33643
33644 #if HAVE_PTHREADS < 7
33645         status = pthread_attr_setdetachstate(&attr, &detach);
33646         if( status < 0 ) status = errno;
33647 #else
33648         status = pthread_attr_setdetachstate(&attr, detach);
33649 #endif
33650         if( status ) return status;
33651         status = pthread_create( &t, &attr, task, NULL );
33652 #if HAVE_PTHREADS < 7
33653         if( status < 0 ) status = errno;
33654 #endif
33655         if( status ) return status;
33656 #else
33657         /* Draft 4 pthreads */
33658         status = pthread_create( &t, pthread_attr_default, task, NULL );
33659         if( status ) return errno;
33660
33661         /* give thread a chance to complete */
33662         /* it should remain joinable and hence detachable */
33663         sleep( 1 );
33664
33665         status = pthread_detach( &t );
33666         if( status ) return errno;
33667 #endif
33668
33669 #ifdef HAVE_LINUX_THREADS
33670         pthread_kill_other_threads_np();
33671 #endif
33672
33673         return 0;
33674
33675   ;
33676   return 0;
33677 }
33678 _ACEOF
33679 rm -f conftest.$ac_objext conftest$ac_exeext
33680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33681   (eval $ac_link) 2>conftest.er1
33682   ac_status=$?
33683   grep -v '^ *+' conftest.er1 >conftest.err
33684   rm -f conftest.er1
33685   cat conftest.err >&5
33686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687   (exit $ac_status); } &&
33688          { ac_try='test -z "$ac_c_werror_flag"
33689                          || test ! -s conftest.err'
33690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33691   (eval $ac_try) 2>&5
33692   ac_status=$?
33693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33694   (exit $ac_status); }; } &&
33695          { ac_try='test -s conftest$ac_exeext'
33696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33697   (eval $ac_try) 2>&5
33698   ac_status=$?
33699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33700   (exit $ac_status); }; }; then
33701   ol_cv_pthread_lpthreads_lexc=yes
33702 else
33703   echo "$as_me: failed program was:" >&5
33704 sed 's/^/| /' conftest.$ac_ext >&5
33705
33706 ol_cv_pthread_lpthreads_lexc=no
33707 fi
33708 rm -f conftest.err conftest.$ac_objext \
33709       conftest$ac_exeext conftest.$ac_ext
33710 else
33711   cat >conftest.$ac_ext <<_ACEOF
33712 /* confdefs.h.  */
33713 _ACEOF
33714 cat confdefs.h >>conftest.$ac_ext
33715 cat >>conftest.$ac_ext <<_ACEOF
33716 /* end confdefs.h.  */
33717 /* pthread test headers */
33718 #include <pthread.h>
33719 #if HAVE_PTHREADS < 7
33720 #include <errno.h>
33721 #endif
33722 #ifndef NULL
33723 #define NULL (void*)0
33724 #endif
33725
33726 static void *task(p)
33727         void *p;
33728 {
33729         return (void *) (p == NULL);
33730 }
33731
33732
33733 int main(argc, argv)
33734         int argc;
33735         char **argv;
33736 {
33737
33738         /* pthread test function */
33739 #ifndef PTHREAD_CREATE_DETACHED
33740 #define PTHREAD_CREATE_DETACHED 1
33741 #endif
33742         pthread_t t;
33743         int status;
33744         int detach = PTHREAD_CREATE_DETACHED;
33745
33746 #if HAVE_PTHREADS > 4
33747         /* Final pthreads */
33748         pthread_attr_t attr;
33749
33750         status = pthread_attr_init(&attr);
33751         if( status ) return status;
33752
33753 #if HAVE_PTHREADS < 7
33754         status = pthread_attr_setdetachstate(&attr, &detach);
33755         if( status < 0 ) status = errno;
33756 #else
33757         status = pthread_attr_setdetachstate(&attr, detach);
33758 #endif
33759         if( status ) return status;
33760         status = pthread_create( &t, &attr, task, NULL );
33761 #if HAVE_PTHREADS < 7
33762         if( status < 0 ) status = errno;
33763 #endif
33764         if( status ) return status;
33765 #else
33766         /* Draft 4 pthreads */
33767         status = pthread_create( &t, pthread_attr_default, task, NULL );
33768         if( status ) return errno;
33769
33770         /* give thread a chance to complete */
33771         /* it should remain joinable and hence detachable */
33772         sleep( 1 );
33773
33774         status = pthread_detach( &t );
33775         if( status ) return errno;
33776 #endif
33777
33778 #ifdef HAVE_LINUX_THREADS
33779         pthread_kill_other_threads_np();
33780 #endif
33781
33782         return 0;
33783
33784 }
33785
33786 _ACEOF
33787 rm -f conftest$ac_exeext
33788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33789   (eval $ac_link) 2>&5
33790   ac_status=$?
33791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33794   (eval $ac_try) 2>&5
33795   ac_status=$?
33796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33797   (exit $ac_status); }; }; then
33798   ol_cv_pthread_lpthreads_lexc=yes
33799 else
33800   echo "$as_me: program exited with status $ac_status" >&5
33801 echo "$as_me: failed program was:" >&5
33802 sed 's/^/| /' conftest.$ac_ext >&5
33803
33804 ( exit $ac_status )
33805 ol_cv_pthread_lpthreads_lexc=no
33806 fi
33807 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33808 fi
33809
33810                 # restore the LIBS
33811                 LIBS="$ol_LIBS"
33812
33813 fi
33814 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
33815 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
33816
33817         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
33818                 ol_link_pthreads="-lpthreads -lexc"
33819                 ol_link_threads=posix
33820         fi
33821 fi
33822
33823
33824                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
33825 if test "$ol_link_threads" = no ; then
33826         # try -lpthreads
33827         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
33828 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
33829 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
33830   echo $ECHO_N "(cached) $ECHO_C" >&6
33831 else
33832
33833                 # save the flags
33834                 ol_LIBS="$LIBS"
33835                 LIBS="-lpthreads $LIBS"
33836
33837                 if test "$cross_compiling" = yes; then
33838   cat >conftest.$ac_ext <<_ACEOF
33839 /* confdefs.h.  */
33840 _ACEOF
33841 cat confdefs.h >>conftest.$ac_ext
33842 cat >>conftest.$ac_ext <<_ACEOF
33843 /* end confdefs.h.  */
33844 /* pthread test headers */
33845 #include <pthread.h>
33846 #if HAVE_PTHREADS < 7
33847 #include <errno.h>
33848 #endif
33849 #ifndef NULL
33850 #define NULL (void*)0
33851 #endif
33852
33853 static void *task(p)
33854         void *p;
33855 {
33856         return (void *) (p == NULL);
33857 }
33858
33859 int
33860 main ()
33861 {
33862
33863         /* pthread test function */
33864 #ifndef PTHREAD_CREATE_DETACHED
33865 #define PTHREAD_CREATE_DETACHED 1
33866 #endif
33867         pthread_t t;
33868         int status;
33869         int detach = PTHREAD_CREATE_DETACHED;
33870
33871 #if HAVE_PTHREADS > 4
33872         /* Final pthreads */
33873         pthread_attr_t attr;
33874
33875         status = pthread_attr_init(&attr);
33876         if( status ) return status;
33877
33878 #if HAVE_PTHREADS < 7
33879         status = pthread_attr_setdetachstate(&attr, &detach);
33880         if( status < 0 ) status = errno;
33881 #else
33882         status = pthread_attr_setdetachstate(&attr, detach);
33883 #endif
33884         if( status ) return status;
33885         status = pthread_create( &t, &attr, task, NULL );
33886 #if HAVE_PTHREADS < 7
33887         if( status < 0 ) status = errno;
33888 #endif
33889         if( status ) return status;
33890 #else
33891         /* Draft 4 pthreads */
33892         status = pthread_create( &t, pthread_attr_default, task, NULL );
33893         if( status ) return errno;
33894
33895         /* give thread a chance to complete */
33896         /* it should remain joinable and hence detachable */
33897         sleep( 1 );
33898
33899         status = pthread_detach( &t );
33900         if( status ) return errno;
33901 #endif
33902
33903 #ifdef HAVE_LINUX_THREADS
33904         pthread_kill_other_threads_np();
33905 #endif
33906
33907         return 0;
33908
33909   ;
33910   return 0;
33911 }
33912 _ACEOF
33913 rm -f conftest.$ac_objext conftest$ac_exeext
33914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33915   (eval $ac_link) 2>conftest.er1
33916   ac_status=$?
33917   grep -v '^ *+' conftest.er1 >conftest.err
33918   rm -f conftest.er1
33919   cat conftest.err >&5
33920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33921   (exit $ac_status); } &&
33922          { ac_try='test -z "$ac_c_werror_flag"
33923                          || test ! -s conftest.err'
33924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33925   (eval $ac_try) 2>&5
33926   ac_status=$?
33927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33928   (exit $ac_status); }; } &&
33929          { ac_try='test -s conftest$ac_exeext'
33930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33931   (eval $ac_try) 2>&5
33932   ac_status=$?
33933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33934   (exit $ac_status); }; }; then
33935   ol_cv_pthread_lib_lpthreads=yes
33936 else
33937   echo "$as_me: failed program was:" >&5
33938 sed 's/^/| /' conftest.$ac_ext >&5
33939
33940 ol_cv_pthread_lib_lpthreads=no
33941 fi
33942 rm -f conftest.err conftest.$ac_objext \
33943       conftest$ac_exeext conftest.$ac_ext
33944 else
33945   cat >conftest.$ac_ext <<_ACEOF
33946 /* confdefs.h.  */
33947 _ACEOF
33948 cat confdefs.h >>conftest.$ac_ext
33949 cat >>conftest.$ac_ext <<_ACEOF
33950 /* end confdefs.h.  */
33951 /* pthread test headers */
33952 #include <pthread.h>
33953 #if HAVE_PTHREADS < 7
33954 #include <errno.h>
33955 #endif
33956 #ifndef NULL
33957 #define NULL (void*)0
33958 #endif
33959
33960 static void *task(p)
33961         void *p;
33962 {
33963         return (void *) (p == NULL);
33964 }
33965
33966
33967 int main(argc, argv)
33968         int argc;
33969         char **argv;
33970 {
33971
33972         /* pthread test function */
33973 #ifndef PTHREAD_CREATE_DETACHED
33974 #define PTHREAD_CREATE_DETACHED 1
33975 #endif
33976         pthread_t t;
33977         int status;
33978         int detach = PTHREAD_CREATE_DETACHED;
33979
33980 #if HAVE_PTHREADS > 4
33981         /* Final pthreads */
33982         pthread_attr_t attr;
33983
33984         status = pthread_attr_init(&attr);
33985         if( status ) return status;
33986
33987 #if HAVE_PTHREADS < 7
33988         status = pthread_attr_setdetachstate(&attr, &detach);
33989         if( status < 0 ) status = errno;
33990 #else
33991         status = pthread_attr_setdetachstate(&attr, detach);
33992 #endif
33993         if( status ) return status;
33994         status = pthread_create( &t, &attr, task, NULL );
33995 #if HAVE_PTHREADS < 7
33996         if( status < 0 ) status = errno;
33997 #endif
33998         if( status ) return status;
33999 #else
34000         /* Draft 4 pthreads */
34001         status = pthread_create( &t, pthread_attr_default, task, NULL );
34002         if( status ) return errno;
34003
34004         /* give thread a chance to complete */
34005         /* it should remain joinable and hence detachable */
34006         sleep( 1 );
34007
34008         status = pthread_detach( &t );
34009         if( status ) return errno;
34010 #endif
34011
34012 #ifdef HAVE_LINUX_THREADS
34013         pthread_kill_other_threads_np();
34014 #endif
34015
34016         return 0;
34017
34018 }
34019
34020 _ACEOF
34021 rm -f conftest$ac_exeext
34022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34023   (eval $ac_link) 2>&5
34024   ac_status=$?
34025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34028   (eval $ac_try) 2>&5
34029   ac_status=$?
34030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34031   (exit $ac_status); }; }; then
34032   ol_cv_pthread_lib_lpthreads=yes
34033 else
34034   echo "$as_me: program exited with status $ac_status" >&5
34035 echo "$as_me: failed program was:" >&5
34036 sed 's/^/| /' conftest.$ac_ext >&5
34037
34038 ( exit $ac_status )
34039 ol_cv_pthread_lib_lpthreads=no
34040 fi
34041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34042 fi
34043
34044                 # restore the LIBS
34045                 LIBS="$ol_LIBS"
34046
34047 fi
34048 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34049 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34050
34051         if test $ol_cv_pthread_lib_lpthreads = yes ; then
34052                 ol_link_pthreads="-lpthreads"
34053                 ol_link_threads=posix
34054         fi
34055 fi
34056
34057
34058                 if test $ol_link_threads != no ; then
34059                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34060
34061                                                 save_CPPFLAGS="$CPPFLAGS"
34062                         save_LIBS="$LIBS"
34063                         LIBS="$LTHREAD_LIBS $LIBS"
34064
34065
34066
34067
34068 for ac_func in sched_yield pthread_yield thr_yield
34069 do
34070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34071 echo "$as_me:$LINENO: checking for $ac_func" >&5
34072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34073 if eval "test \"\${$as_ac_var+set}\" = set"; then
34074   echo $ECHO_N "(cached) $ECHO_C" >&6
34075 else
34076   cat >conftest.$ac_ext <<_ACEOF
34077 /* confdefs.h.  */
34078 _ACEOF
34079 cat confdefs.h >>conftest.$ac_ext
34080 cat >>conftest.$ac_ext <<_ACEOF
34081 /* end confdefs.h.  */
34082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34083    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34084 #define $ac_func innocuous_$ac_func
34085
34086 /* System header to define __stub macros and hopefully few prototypes,
34087     which can conflict with char $ac_func (); below.
34088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34089     <limits.h> exists even on freestanding compilers.  */
34090
34091 #ifdef __STDC__
34092 # include <limits.h>
34093 #else
34094 # include <assert.h>
34095 #endif
34096
34097 #undef $ac_func
34098
34099 /* Override any gcc2 internal prototype to avoid an error.  */
34100 #ifdef __cplusplus
34101 extern "C"
34102 {
34103 #endif
34104 /* We use char because int might match the return type of a gcc2
34105    builtin and then its argument prototype would still apply.  */
34106 char $ac_func ();
34107 /* The GNU C library defines this for functions which it implements
34108     to always fail with ENOSYS.  Some functions are actually named
34109     something starting with __ and the normal name is an alias.  */
34110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34111 choke me
34112 #else
34113 char (*f) () = $ac_func;
34114 #endif
34115 #ifdef __cplusplus
34116 }
34117 #endif
34118
34119 int
34120 main ()
34121 {
34122 return f != $ac_func;
34123   ;
34124   return 0;
34125 }
34126 _ACEOF
34127 rm -f conftest.$ac_objext conftest$ac_exeext
34128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34129   (eval $ac_link) 2>conftest.er1
34130   ac_status=$?
34131   grep -v '^ *+' conftest.er1 >conftest.err
34132   rm -f conftest.er1
34133   cat conftest.err >&5
34134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34135   (exit $ac_status); } &&
34136          { ac_try='test -z "$ac_c_werror_flag"
34137                          || test ! -s conftest.err'
34138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34139   (eval $ac_try) 2>&5
34140   ac_status=$?
34141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34142   (exit $ac_status); }; } &&
34143          { ac_try='test -s conftest$ac_exeext'
34144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34145   (eval $ac_try) 2>&5
34146   ac_status=$?
34147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34148   (exit $ac_status); }; }; then
34149   eval "$as_ac_var=yes"
34150 else
34151   echo "$as_me: failed program was:" >&5
34152 sed 's/^/| /' conftest.$ac_ext >&5
34153
34154 eval "$as_ac_var=no"
34155 fi
34156 rm -f conftest.err conftest.$ac_objext \
34157       conftest$ac_exeext conftest.$ac_ext
34158 fi
34159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34161 if test `eval echo '${'$as_ac_var'}'` = yes; then
34162   cat >>confdefs.h <<_ACEOF
34163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34164 _ACEOF
34165
34166 fi
34167 done
34168
34169
34170                         if test $ac_cv_func_sched_yield = no -a \
34171                                 $ac_cv_func_pthread_yield = no -a \
34172                                 $ac_cv_func_thr_yield = no ; then
34173                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34174 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34175 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34176   echo $ECHO_N "(cached) $ECHO_C" >&6
34177 else
34178   ac_check_lib_save_LIBS=$LIBS
34179 LIBS="-lrt  $LIBS"
34180 cat >conftest.$ac_ext <<_ACEOF
34181 /* confdefs.h.  */
34182 _ACEOF
34183 cat confdefs.h >>conftest.$ac_ext
34184 cat >>conftest.$ac_ext <<_ACEOF
34185 /* end confdefs.h.  */
34186
34187 /* Override any gcc2 internal prototype to avoid an error.  */
34188 #ifdef __cplusplus
34189 extern "C"
34190 #endif
34191 /* We use char because int might match the return type of a gcc2
34192    builtin and then its argument prototype would still apply.  */
34193 char sched_yield ();
34194 int
34195 main ()
34196 {
34197 sched_yield ();
34198   ;
34199   return 0;
34200 }
34201 _ACEOF
34202 rm -f conftest.$ac_objext conftest$ac_exeext
34203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34204   (eval $ac_link) 2>conftest.er1
34205   ac_status=$?
34206   grep -v '^ *+' conftest.er1 >conftest.err
34207   rm -f conftest.er1
34208   cat conftest.err >&5
34209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34210   (exit $ac_status); } &&
34211          { ac_try='test -z "$ac_c_werror_flag"
34212                          || test ! -s conftest.err'
34213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34214   (eval $ac_try) 2>&5
34215   ac_status=$?
34216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34217   (exit $ac_status); }; } &&
34218          { ac_try='test -s conftest$ac_exeext'
34219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34220   (eval $ac_try) 2>&5
34221   ac_status=$?
34222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34223   (exit $ac_status); }; }; then
34224   ac_cv_lib_rt_sched_yield=yes
34225 else
34226   echo "$as_me: failed program was:" >&5
34227 sed 's/^/| /' conftest.$ac_ext >&5
34228
34229 ac_cv_lib_rt_sched_yield=no
34230 fi
34231 rm -f conftest.err conftest.$ac_objext \
34232       conftest$ac_exeext conftest.$ac_ext
34233 LIBS=$ac_check_lib_save_LIBS
34234 fi
34235 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34236 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34237 if test $ac_cv_lib_rt_sched_yield = yes; then
34238   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34239
34240 cat >>confdefs.h <<\_ACEOF
34241 #define HAVE_SCHED_YIELD 1
34242 _ACEOF
34243
34244                                         ac_cv_func_sched_yield=yes
34245 else
34246   ac_cv_func_sched_yield=no
34247 fi
34248
34249                         fi
34250                         if test $ac_cv_func_sched_yield = no -a \
34251                                 $ac_cv_func_pthread_yield = no -a \
34252                                 "$ac_cv_func_thr_yield" = no ; then
34253                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34254 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34255                         fi
34256
34257
34258
34259 for ac_func in pthread_kill pthread_rwlock_destroy
34260 do
34261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34262 echo "$as_me:$LINENO: checking for $ac_func" >&5
34263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34264 if eval "test \"\${$as_ac_var+set}\" = set"; then
34265   echo $ECHO_N "(cached) $ECHO_C" >&6
34266 else
34267   cat >conftest.$ac_ext <<_ACEOF
34268 /* confdefs.h.  */
34269 _ACEOF
34270 cat confdefs.h >>conftest.$ac_ext
34271 cat >>conftest.$ac_ext <<_ACEOF
34272 /* end confdefs.h.  */
34273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34274    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34275 #define $ac_func innocuous_$ac_func
34276
34277 /* System header to define __stub macros and hopefully few prototypes,
34278     which can conflict with char $ac_func (); below.
34279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34280     <limits.h> exists even on freestanding compilers.  */
34281
34282 #ifdef __STDC__
34283 # include <limits.h>
34284 #else
34285 # include <assert.h>
34286 #endif
34287
34288 #undef $ac_func
34289
34290 /* Override any gcc2 internal prototype to avoid an error.  */
34291 #ifdef __cplusplus
34292 extern "C"
34293 {
34294 #endif
34295 /* We use char because int might match the return type of a gcc2
34296    builtin and then its argument prototype would still apply.  */
34297 char $ac_func ();
34298 /* The GNU C library defines this for functions which it implements
34299     to always fail with ENOSYS.  Some functions are actually named
34300     something starting with __ and the normal name is an alias.  */
34301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34302 choke me
34303 #else
34304 char (*f) () = $ac_func;
34305 #endif
34306 #ifdef __cplusplus
34307 }
34308 #endif
34309
34310 int
34311 main ()
34312 {
34313 return f != $ac_func;
34314   ;
34315   return 0;
34316 }
34317 _ACEOF
34318 rm -f conftest.$ac_objext conftest$ac_exeext
34319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34320   (eval $ac_link) 2>conftest.er1
34321   ac_status=$?
34322   grep -v '^ *+' conftest.er1 >conftest.err
34323   rm -f conftest.er1
34324   cat conftest.err >&5
34325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34326   (exit $ac_status); } &&
34327          { ac_try='test -z "$ac_c_werror_flag"
34328                          || test ! -s conftest.err'
34329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34330   (eval $ac_try) 2>&5
34331   ac_status=$?
34332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34333   (exit $ac_status); }; } &&
34334          { ac_try='test -s conftest$ac_exeext'
34335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34336   (eval $ac_try) 2>&5
34337   ac_status=$?
34338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34339   (exit $ac_status); }; }; then
34340   eval "$as_ac_var=yes"
34341 else
34342   echo "$as_me: failed program was:" >&5
34343 sed 's/^/| /' conftest.$ac_ext >&5
34344
34345 eval "$as_ac_var=no"
34346 fi
34347 rm -f conftest.err conftest.$ac_objext \
34348       conftest$ac_exeext conftest.$ac_ext
34349 fi
34350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34352 if test `eval echo '${'$as_ac_var'}'` = yes; then
34353   cat >>confdefs.h <<_ACEOF
34354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34355 _ACEOF
34356
34357 fi
34358 done
34359
34360
34361                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34362 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34363 if test "${ol_cv_func_pthread_detach+set}" = set; then
34364   echo $ECHO_N "(cached) $ECHO_C" >&6
34365 else
34366
34367                                                                 cat >conftest.$ac_ext <<_ACEOF
34368 /* confdefs.h.  */
34369 _ACEOF
34370 cat confdefs.h >>conftest.$ac_ext
34371 cat >>conftest.$ac_ext <<_ACEOF
34372 /* end confdefs.h.  */
34373
34374 #include <pthread.h>
34375 #ifndef NULL
34376 #define NULL (void*)0
34377 #endif
34378
34379 int
34380 main ()
34381 {
34382 pthread_detach(NULL);
34383   ;
34384   return 0;
34385 }
34386 _ACEOF
34387 rm -f conftest.$ac_objext conftest$ac_exeext
34388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34389   (eval $ac_link) 2>conftest.er1
34390   ac_status=$?
34391   grep -v '^ *+' conftest.er1 >conftest.err
34392   rm -f conftest.er1
34393   cat conftest.err >&5
34394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34395   (exit $ac_status); } &&
34396          { ac_try='test -z "$ac_c_werror_flag"
34397                          || test ! -s conftest.err'
34398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34399   (eval $ac_try) 2>&5
34400   ac_status=$?
34401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34402   (exit $ac_status); }; } &&
34403          { ac_try='test -s conftest$ac_exeext'
34404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34405   (eval $ac_try) 2>&5
34406   ac_status=$?
34407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34408   (exit $ac_status); }; }; then
34409   ol_cv_func_pthread_detach=yes
34410 else
34411   echo "$as_me: failed program was:" >&5
34412 sed 's/^/| /' conftest.$ac_ext >&5
34413
34414 ol_cv_func_pthread_detach=no
34415 fi
34416 rm -f conftest.err conftest.$ac_objext \
34417       conftest$ac_exeext conftest.$ac_ext
34418
34419 fi
34420 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34421 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34422
34423                         if test $ol_cv_func_pthread_detach = no ; then
34424                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34425 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34426    { (exit 1); exit 1; }; }
34427                         fi
34428
34429
34430 cat >>confdefs.h <<\_ACEOF
34431 #define HAVE_PTHREAD_DETACH 1
34432 _ACEOF
34433
34434
34435
34436
34437
34438
34439 for ac_func in \
34440                                 pthread_setconcurrency \
34441                                 pthread_getconcurrency \
34442                                 thr_setconcurrency \
34443                                 thr_getconcurrency \
34444
34445 do
34446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34447 echo "$as_me:$LINENO: checking for $ac_func" >&5
34448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34449 if eval "test \"\${$as_ac_var+set}\" = set"; then
34450   echo $ECHO_N "(cached) $ECHO_C" >&6
34451 else
34452   cat >conftest.$ac_ext <<_ACEOF
34453 /* confdefs.h.  */
34454 _ACEOF
34455 cat confdefs.h >>conftest.$ac_ext
34456 cat >>conftest.$ac_ext <<_ACEOF
34457 /* end confdefs.h.  */
34458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34460 #define $ac_func innocuous_$ac_func
34461
34462 /* System header to define __stub macros and hopefully few prototypes,
34463     which can conflict with char $ac_func (); below.
34464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34465     <limits.h> exists even on freestanding compilers.  */
34466
34467 #ifdef __STDC__
34468 # include <limits.h>
34469 #else
34470 # include <assert.h>
34471 #endif
34472
34473 #undef $ac_func
34474
34475 /* Override any gcc2 internal prototype to avoid an error.  */
34476 #ifdef __cplusplus
34477 extern "C"
34478 {
34479 #endif
34480 /* We use char because int might match the return type of a gcc2
34481    builtin and then its argument prototype would still apply.  */
34482 char $ac_func ();
34483 /* The GNU C library defines this for functions which it implements
34484     to always fail with ENOSYS.  Some functions are actually named
34485     something starting with __ and the normal name is an alias.  */
34486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34487 choke me
34488 #else
34489 char (*f) () = $ac_func;
34490 #endif
34491 #ifdef __cplusplus
34492 }
34493 #endif
34494
34495 int
34496 main ()
34497 {
34498 return f != $ac_func;
34499   ;
34500   return 0;
34501 }
34502 _ACEOF
34503 rm -f conftest.$ac_objext conftest$ac_exeext
34504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34505   (eval $ac_link) 2>conftest.er1
34506   ac_status=$?
34507   grep -v '^ *+' conftest.er1 >conftest.err
34508   rm -f conftest.er1
34509   cat conftest.err >&5
34510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34511   (exit $ac_status); } &&
34512          { ac_try='test -z "$ac_c_werror_flag"
34513                          || test ! -s conftest.err'
34514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34515   (eval $ac_try) 2>&5
34516   ac_status=$?
34517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34518   (exit $ac_status); }; } &&
34519          { ac_try='test -s conftest$ac_exeext'
34520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34521   (eval $ac_try) 2>&5
34522   ac_status=$?
34523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34524   (exit $ac_status); }; }; then
34525   eval "$as_ac_var=yes"
34526 else
34527   echo "$as_me: failed program was:" >&5
34528 sed 's/^/| /' conftest.$ac_ext >&5
34529
34530 eval "$as_ac_var=no"
34531 fi
34532 rm -f conftest.err conftest.$ac_objext \
34533       conftest$ac_exeext conftest.$ac_ext
34534 fi
34535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34537 if test `eval echo '${'$as_ac_var'}'` = yes; then
34538   cat >>confdefs.h <<_ACEOF
34539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34540 _ACEOF
34541
34542 fi
34543 done
34544
34545
34546
34547
34548 for ac_func in pthread_kill_other_threads_np
34549 do
34550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34551 echo "$as_me:$LINENO: checking for $ac_func" >&5
34552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34553 if eval "test \"\${$as_ac_var+set}\" = set"; then
34554   echo $ECHO_N "(cached) $ECHO_C" >&6
34555 else
34556   cat >conftest.$ac_ext <<_ACEOF
34557 /* confdefs.h.  */
34558 _ACEOF
34559 cat confdefs.h >>conftest.$ac_ext
34560 cat >>conftest.$ac_ext <<_ACEOF
34561 /* end confdefs.h.  */
34562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34563    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34564 #define $ac_func innocuous_$ac_func
34565
34566 /* System header to define __stub macros and hopefully few prototypes,
34567     which can conflict with char $ac_func (); below.
34568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34569     <limits.h> exists even on freestanding compilers.  */
34570
34571 #ifdef __STDC__
34572 # include <limits.h>
34573 #else
34574 # include <assert.h>
34575 #endif
34576
34577 #undef $ac_func
34578
34579 /* Override any gcc2 internal prototype to avoid an error.  */
34580 #ifdef __cplusplus
34581 extern "C"
34582 {
34583 #endif
34584 /* We use char because int might match the return type of a gcc2
34585    builtin and then its argument prototype would still apply.  */
34586 char $ac_func ();
34587 /* The GNU C library defines this for functions which it implements
34588     to always fail with ENOSYS.  Some functions are actually named
34589     something starting with __ and the normal name is an alias.  */
34590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34591 choke me
34592 #else
34593 char (*f) () = $ac_func;
34594 #endif
34595 #ifdef __cplusplus
34596 }
34597 #endif
34598
34599 int
34600 main ()
34601 {
34602 return f != $ac_func;
34603   ;
34604   return 0;
34605 }
34606 _ACEOF
34607 rm -f conftest.$ac_objext conftest$ac_exeext
34608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34609   (eval $ac_link) 2>conftest.er1
34610   ac_status=$?
34611   grep -v '^ *+' conftest.er1 >conftest.err
34612   rm -f conftest.er1
34613   cat conftest.err >&5
34614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34615   (exit $ac_status); } &&
34616          { ac_try='test -z "$ac_c_werror_flag"
34617                          || test ! -s conftest.err'
34618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34619   (eval $ac_try) 2>&5
34620   ac_status=$?
34621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34622   (exit $ac_status); }; } &&
34623          { ac_try='test -s conftest$ac_exeext'
34624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34625   (eval $ac_try) 2>&5
34626   ac_status=$?
34627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34628   (exit $ac_status); }; }; then
34629   eval "$as_ac_var=yes"
34630 else
34631   echo "$as_me: failed program was:" >&5
34632 sed 's/^/| /' conftest.$ac_ext >&5
34633
34634 eval "$as_ac_var=no"
34635 fi
34636 rm -f conftest.err conftest.$ac_objext \
34637       conftest$ac_exeext conftest.$ac_ext
34638 fi
34639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34641 if test `eval echo '${'$as_ac_var'}'` = yes; then
34642   cat >>confdefs.h <<_ACEOF
34643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34644 _ACEOF
34645
34646 fi
34647 done
34648
34649         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34650 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34651 if test "${ol_cv_sys_linux_threads+set}" = set; then
34652   echo $ECHO_N "(cached) $ECHO_C" >&6
34653 else
34654   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34655 fi
34656 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34657 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34658
34659
34660
34661
34662         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34663 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34664 if test "${ol_cv_linux_threads+set}" = set; then
34665   echo $ECHO_N "(cached) $ECHO_C" >&6
34666 else
34667
34668                 if test $ol_cv_header_linux_threads = yes -a \
34669                         $ol_cv_sys_linux_threads = yes; then
34670                         ol_cv_linux_threads=yes
34671                 elif test $ol_cv_header_linux_threads = no -a \
34672                         $ol_cv_sys_linux_threads = no; then
34673                         ol_cv_linux_threads=no
34674                 else
34675                         ol_cv_linux_threads=error
34676                 fi
34677
34678 fi
34679 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34680 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34681
34682
34683                         if test $ol_cv_linux_threads = error; then
34684                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34685 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34686    { (exit 1); exit 1; }; };
34687                         fi
34688
34689                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34690 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34691 if test "${ol_cv_pthread_create_works+set}" = set; then
34692   echo $ECHO_N "(cached) $ECHO_C" >&6
34693 else
34694
34695                         if test "$cross_compiling" = yes; then
34696                                 ol_cv_pthread_create_works=yes
34697 else
34698   cat >conftest.$ac_ext <<_ACEOF
34699 /* confdefs.h.  */
34700 _ACEOF
34701 cat confdefs.h >>conftest.$ac_ext
34702 cat >>conftest.$ac_ext <<_ACEOF
34703 /* end confdefs.h.  */
34704 /* pthread test headers */
34705 #include <pthread.h>
34706 #if HAVE_PTHREADS < 7
34707 #include <errno.h>
34708 #endif
34709 #ifndef NULL
34710 #define NULL (void*)0
34711 #endif
34712
34713 static void *task(p)
34714         void *p;
34715 {
34716         return (void *) (p == NULL);
34717 }
34718
34719
34720 int main(argc, argv)
34721         int argc;
34722         char **argv;
34723 {
34724
34725         /* pthread test function */
34726 #ifndef PTHREAD_CREATE_DETACHED
34727 #define PTHREAD_CREATE_DETACHED 1
34728 #endif
34729         pthread_t t;
34730         int status;
34731         int detach = PTHREAD_CREATE_DETACHED;
34732
34733 #if HAVE_PTHREADS > 4
34734         /* Final pthreads */
34735         pthread_attr_t attr;
34736
34737         status = pthread_attr_init(&attr);
34738         if( status ) return status;
34739
34740 #if HAVE_PTHREADS < 7
34741         status = pthread_attr_setdetachstate(&attr, &detach);
34742         if( status < 0 ) status = errno;
34743 #else
34744         status = pthread_attr_setdetachstate(&attr, detach);
34745 #endif
34746         if( status ) return status;
34747         status = pthread_create( &t, &attr, task, NULL );
34748 #if HAVE_PTHREADS < 7
34749         if( status < 0 ) status = errno;
34750 #endif
34751         if( status ) return status;
34752 #else
34753         /* Draft 4 pthreads */
34754         status = pthread_create( &t, pthread_attr_default, task, NULL );
34755         if( status ) return errno;
34756
34757         /* give thread a chance to complete */
34758         /* it should remain joinable and hence detachable */
34759         sleep( 1 );
34760
34761         status = pthread_detach( &t );
34762         if( status ) return errno;
34763 #endif
34764
34765 #ifdef HAVE_LINUX_THREADS
34766         pthread_kill_other_threads_np();
34767 #endif
34768
34769         return 0;
34770
34771 }
34772
34773 _ACEOF
34774 rm -f conftest$ac_exeext
34775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34776   (eval $ac_link) 2>&5
34777   ac_status=$?
34778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34781   (eval $ac_try) 2>&5
34782   ac_status=$?
34783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34784   (exit $ac_status); }; }; then
34785   ol_cv_pthread_create_works=yes
34786 else
34787   echo "$as_me: program exited with status $ac_status" >&5
34788 echo "$as_me: failed program was:" >&5
34789 sed 's/^/| /' conftest.$ac_ext >&5
34790
34791 ( exit $ac_status )
34792 ol_cv_pthread_create_works=no
34793 fi
34794 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34795 fi
34796 fi
34797 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
34798 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
34799
34800                         if test $ol_cv_pthread_create_works = no ; then
34801                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
34802 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
34803    { (exit 1); exit 1; }; }
34804                         fi
34805
34806                                                 if test $ol_with_yielding_select = auto ; then
34807                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
34808 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
34809 if test "${ol_cv_pthread_select_yields+set}" = set; then
34810   echo $ECHO_N "(cached) $ECHO_C" >&6
34811 else
34812
34813                                 if test "$cross_compiling" = yes; then
34814   ol_cv_pthread_select_yields=cross
34815 else
34816   cat >conftest.$ac_ext <<_ACEOF
34817 /* confdefs.h.  */
34818 _ACEOF
34819 cat confdefs.h >>conftest.$ac_ext
34820 cat >>conftest.$ac_ext <<_ACEOF
34821 /* end confdefs.h.  */
34822
34823 #include <sys/types.h>
34824 #include <sys/time.h>
34825 #include <unistd.h>
34826 #include <pthread.h>
34827 #ifndef NULL
34828 #define NULL (void*) 0
34829 #endif
34830
34831 static int fildes[2];
34832
34833 static void *task(p)
34834         void *p;
34835 {
34836         int i;
34837         struct timeval tv;
34838
34839         fd_set rfds;
34840
34841         tv.tv_sec=10;
34842         tv.tv_usec=0;
34843
34844         FD_ZERO(&rfds);
34845         FD_SET(fildes[0], &rfds);
34846
34847         /* we're not interested in any fds */
34848         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
34849
34850         if(i < 0) {
34851                 perror("select");
34852                 exit(10);
34853         }
34854
34855         exit(0); /* if we exit here, the select blocked the whole process */
34856 }
34857
34858 int main(argc, argv)
34859         int argc;
34860         char **argv;
34861 {
34862         pthread_t t;
34863
34864         /* create a pipe to select */
34865         if(pipe(&fildes[0])) {
34866                 perror("select");
34867                 exit(1);
34868         }
34869
34870 #ifdef HAVE_PTHREAD_SETCONCURRENCY
34871         (void) pthread_setconcurrency(2);
34872 #else
34873 #ifdef HAVE_THR_SETCONCURRENCY
34874         /* Set Solaris LWP concurrency to 2 */
34875         thr_setconcurrency(2);
34876 #endif
34877 #endif
34878
34879 #if HAVE_PTHREADS < 6
34880         pthread_create(&t, pthread_attr_default, task, NULL);
34881 #else
34882         pthread_create(&t, NULL, task, NULL);
34883 #endif
34884
34885         /* make sure task runs first */
34886 #if HAVE_THR_YIELD
34887         thr_yield();
34888 #elif defined( HAVE_SCHED_YIELD )
34889         sched_yield();
34890 #elif defined( HAVE_PTHREAD_YIELD )
34891         pthread_yield();
34892 #endif
34893
34894         exit(2);
34895 }
34896 _ACEOF
34897 rm -f conftest$ac_exeext
34898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34899   (eval $ac_link) 2>&5
34900   ac_status=$?
34901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34902   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34904   (eval $ac_try) 2>&5
34905   ac_status=$?
34906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34907   (exit $ac_status); }; }; then
34908   ol_cv_pthread_select_yields=no
34909 else
34910   echo "$as_me: program exited with status $ac_status" >&5
34911 echo "$as_me: failed program was:" >&5
34912 sed 's/^/| /' conftest.$ac_ext >&5
34913
34914 ( exit $ac_status )
34915 ol_cv_pthread_select_yields=yes
34916 fi
34917 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34918 fi
34919 fi
34920 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
34921 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
34922
34923                                 if test $ol_cv_pthread_select_yields = cross ; then
34924                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
34925 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
34926    { (exit 1); exit 1; }; }
34927                                 fi
34928
34929                                 if test $ol_cv_pthread_select_yields = yes ; then
34930                                         ol_with_yielding_select=yes
34931                                 fi
34932                         fi
34933
34934                                                 CPPFLAGS="$save_CPPFLAGS"
34935                         LIBS="$save_LIBS"
34936                 else
34937                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
34938 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
34939    { (exit 1); exit 1; }; }
34940                 fi
34941         fi
34942
34943         if test $ol_with_threads = posix ; then
34944                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
34945 echo "$as_me: error: could not locate POSIX Threads" >&2;}
34946    { (exit 1); exit 1; }; }
34947         fi
34948 fi
34949
34950 if test $ol_with_threads = auto -o $ol_with_threads = yes \
34951         -o $ol_with_threads = mach ; then
34952
34953
34954
34955 for ac_header in mach/cthreads.h cthreads.h
34956 do
34957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34959   echo "$as_me:$LINENO: checking for $ac_header" >&5
34960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34962   echo $ECHO_N "(cached) $ECHO_C" >&6
34963 fi
34964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34966 else
34967   # Is the header compilable?
34968 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34970 cat >conftest.$ac_ext <<_ACEOF
34971 /* confdefs.h.  */
34972 _ACEOF
34973 cat confdefs.h >>conftest.$ac_ext
34974 cat >>conftest.$ac_ext <<_ACEOF
34975 /* end confdefs.h.  */
34976 $ac_includes_default
34977 #include <$ac_header>
34978 _ACEOF
34979 rm -f conftest.$ac_objext
34980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34981   (eval $ac_compile) 2>conftest.er1
34982   ac_status=$?
34983   grep -v '^ *+' conftest.er1 >conftest.err
34984   rm -f conftest.er1
34985   cat conftest.err >&5
34986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34987   (exit $ac_status); } &&
34988          { ac_try='test -z "$ac_c_werror_flag"
34989                          || test ! -s conftest.err'
34990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34991   (eval $ac_try) 2>&5
34992   ac_status=$?
34993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34994   (exit $ac_status); }; } &&
34995          { ac_try='test -s conftest.$ac_objext'
34996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34997   (eval $ac_try) 2>&5
34998   ac_status=$?
34999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35000   (exit $ac_status); }; }; then
35001   ac_header_compiler=yes
35002 else
35003   echo "$as_me: failed program was:" >&5
35004 sed 's/^/| /' conftest.$ac_ext >&5
35005
35006 ac_header_compiler=no
35007 fi
35008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35010 echo "${ECHO_T}$ac_header_compiler" >&6
35011
35012 # Is the header present?
35013 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35015 cat >conftest.$ac_ext <<_ACEOF
35016 /* confdefs.h.  */
35017 _ACEOF
35018 cat confdefs.h >>conftest.$ac_ext
35019 cat >>conftest.$ac_ext <<_ACEOF
35020 /* end confdefs.h.  */
35021 #include <$ac_header>
35022 _ACEOF
35023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35024   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35025   ac_status=$?
35026   grep -v '^ *+' conftest.er1 >conftest.err
35027   rm -f conftest.er1
35028   cat conftest.err >&5
35029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35030   (exit $ac_status); } >/dev/null; then
35031   if test -s conftest.err; then
35032     ac_cpp_err=$ac_c_preproc_warn_flag
35033     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35034   else
35035     ac_cpp_err=
35036   fi
35037 else
35038   ac_cpp_err=yes
35039 fi
35040 if test -z "$ac_cpp_err"; then
35041   ac_header_preproc=yes
35042 else
35043   echo "$as_me: failed program was:" >&5
35044 sed 's/^/| /' conftest.$ac_ext >&5
35045
35046   ac_header_preproc=no
35047 fi
35048 rm -f conftest.err conftest.$ac_ext
35049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35050 echo "${ECHO_T}$ac_header_preproc" >&6
35051
35052 # So?  What about this header?
35053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35054   yes:no: )
35055     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35057     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35059     ac_header_preproc=yes
35060     ;;
35061   no:yes:* )
35062     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35064     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35065 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35066     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35068     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35069 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35072     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35074     (
35075       cat <<\_ASBOX
35076 ## ------------------------------------------ ##
35077 ## Report this to the AC_PACKAGE_NAME lists.  ##
35078 ## ------------------------------------------ ##
35079 _ASBOX
35080     ) |
35081       sed "s/^/$as_me: WARNING:     /" >&2
35082     ;;
35083 esac
35084 echo "$as_me:$LINENO: checking for $ac_header" >&5
35085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35087   echo $ECHO_N "(cached) $ECHO_C" >&6
35088 else
35089   eval "$as_ac_Header=\$ac_header_preproc"
35090 fi
35091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35093
35094 fi
35095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35096   cat >>confdefs.h <<_ACEOF
35097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35098 _ACEOF
35099
35100 fi
35101
35102 done
35103
35104         if test $ac_cv_header_mach_cthreads_h = yes ; then
35105                 ol_with_threads=found
35106
35107                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35108 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35109 if test "${ac_cv_func_cthread_fork+set}" = set; then
35110   echo $ECHO_N "(cached) $ECHO_C" >&6
35111 else
35112   cat >conftest.$ac_ext <<_ACEOF
35113 /* confdefs.h.  */
35114 _ACEOF
35115 cat confdefs.h >>conftest.$ac_ext
35116 cat >>conftest.$ac_ext <<_ACEOF
35117 /* end confdefs.h.  */
35118 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35120 #define cthread_fork innocuous_cthread_fork
35121
35122 /* System header to define __stub macros and hopefully few prototypes,
35123     which can conflict with char cthread_fork (); below.
35124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35125     <limits.h> exists even on freestanding compilers.  */
35126
35127 #ifdef __STDC__
35128 # include <limits.h>
35129 #else
35130 # include <assert.h>
35131 #endif
35132
35133 #undef cthread_fork
35134
35135 /* Override any gcc2 internal prototype to avoid an error.  */
35136 #ifdef __cplusplus
35137 extern "C"
35138 {
35139 #endif
35140 /* We use char because int might match the return type of a gcc2
35141    builtin and then its argument prototype would still apply.  */
35142 char cthread_fork ();
35143 /* The GNU C library defines this for functions which it implements
35144     to always fail with ENOSYS.  Some functions are actually named
35145     something starting with __ and the normal name is an alias.  */
35146 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35147 choke me
35148 #else
35149 char (*f) () = cthread_fork;
35150 #endif
35151 #ifdef __cplusplus
35152 }
35153 #endif
35154
35155 int
35156 main ()
35157 {
35158 return f != cthread_fork;
35159   ;
35160   return 0;
35161 }
35162 _ACEOF
35163 rm -f conftest.$ac_objext conftest$ac_exeext
35164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35165   (eval $ac_link) 2>conftest.er1
35166   ac_status=$?
35167   grep -v '^ *+' conftest.er1 >conftest.err
35168   rm -f conftest.er1
35169   cat conftest.err >&5
35170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35171   (exit $ac_status); } &&
35172          { ac_try='test -z "$ac_c_werror_flag"
35173                          || test ! -s conftest.err'
35174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35175   (eval $ac_try) 2>&5
35176   ac_status=$?
35177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35178   (exit $ac_status); }; } &&
35179          { ac_try='test -s conftest$ac_exeext'
35180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35181   (eval $ac_try) 2>&5
35182   ac_status=$?
35183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35184   (exit $ac_status); }; }; then
35185   ac_cv_func_cthread_fork=yes
35186 else
35187   echo "$as_me: failed program was:" >&5
35188 sed 's/^/| /' conftest.$ac_ext >&5
35189
35190 ac_cv_func_cthread_fork=no
35191 fi
35192 rm -f conftest.err conftest.$ac_objext \
35193       conftest$ac_exeext conftest.$ac_ext
35194 fi
35195 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35196 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35197 if test $ac_cv_func_cthread_fork = yes; then
35198   ol_link_threads=yes
35199 fi
35200
35201
35202                 if test $ol_link_threads = no ; then
35203                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35204 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35205 if test "${ol_cv_cthread_all_load+set}" = set; then
35206   echo $ECHO_N "(cached) $ECHO_C" >&6
35207 else
35208
35209                                                                 save_LIBS="$LIBS"
35210                                 LIBS="-all_load $LIBS"
35211                                 cat >conftest.$ac_ext <<_ACEOF
35212 /* confdefs.h.  */
35213 _ACEOF
35214 cat confdefs.h >>conftest.$ac_ext
35215 cat >>conftest.$ac_ext <<_ACEOF
35216 /* end confdefs.h.  */
35217 #include <mach/cthreads.h>
35218 int
35219 main ()
35220 {
35221
35222                                         cthread_fork((void *)0, (void *)0);
35223
35224   ;
35225   return 0;
35226 }
35227 _ACEOF
35228 rm -f conftest.$ac_objext conftest$ac_exeext
35229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35230   (eval $ac_link) 2>conftest.er1
35231   ac_status=$?
35232   grep -v '^ *+' conftest.er1 >conftest.err
35233   rm -f conftest.er1
35234   cat conftest.err >&5
35235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35236   (exit $ac_status); } &&
35237          { ac_try='test -z "$ac_c_werror_flag"
35238                          || test ! -s conftest.err'
35239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35240   (eval $ac_try) 2>&5
35241   ac_status=$?
35242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35243   (exit $ac_status); }; } &&
35244          { ac_try='test -s conftest$ac_exeext'
35245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35246   (eval $ac_try) 2>&5
35247   ac_status=$?
35248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35249   (exit $ac_status); }; }; then
35250   ol_cv_cthread_all_load=yes
35251 else
35252   echo "$as_me: failed program was:" >&5
35253 sed 's/^/| /' conftest.$ac_ext >&5
35254
35255 ol_cv_cthread_all_load=no
35256 fi
35257 rm -f conftest.err conftest.$ac_objext \
35258       conftest$ac_exeext conftest.$ac_ext
35259                                                                 LIBS="$save_LIBS"
35260
35261 fi
35262 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35263 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35264
35265                         if test $ol_cv_cthread_all_load = yes ; then
35266                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35267                                 ol_link_threads=mach
35268                                 ol_with_threads=found
35269                         fi
35270                 fi
35271
35272         elif test $ac_cv_header_cthreads_h = yes ; then
35273
35274                 ol_with_threads=found
35275
35276                                 save_LIBS="$LIBS"
35277                 LIBS="$LIBS -lthreads"
35278                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35279 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35280 if test "${ac_cv_func_cthread_fork+set}" = set; then
35281   echo $ECHO_N "(cached) $ECHO_C" >&6
35282 else
35283   cat >conftest.$ac_ext <<_ACEOF
35284 /* confdefs.h.  */
35285 _ACEOF
35286 cat confdefs.h >>conftest.$ac_ext
35287 cat >>conftest.$ac_ext <<_ACEOF
35288 /* end confdefs.h.  */
35289 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35290    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35291 #define cthread_fork innocuous_cthread_fork
35292
35293 /* System header to define __stub macros and hopefully few prototypes,
35294     which can conflict with char cthread_fork (); below.
35295     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35296     <limits.h> exists even on freestanding compilers.  */
35297
35298 #ifdef __STDC__
35299 # include <limits.h>
35300 #else
35301 # include <assert.h>
35302 #endif
35303
35304 #undef cthread_fork
35305
35306 /* Override any gcc2 internal prototype to avoid an error.  */
35307 #ifdef __cplusplus
35308 extern "C"
35309 {
35310 #endif
35311 /* We use char because int might match the return type of a gcc2
35312    builtin and then its argument prototype would still apply.  */
35313 char cthread_fork ();
35314 /* The GNU C library defines this for functions which it implements
35315     to always fail with ENOSYS.  Some functions are actually named
35316     something starting with __ and the normal name is an alias.  */
35317 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35318 choke me
35319 #else
35320 char (*f) () = cthread_fork;
35321 #endif
35322 #ifdef __cplusplus
35323 }
35324 #endif
35325
35326 int
35327 main ()
35328 {
35329 return f != cthread_fork;
35330   ;
35331   return 0;
35332 }
35333 _ACEOF
35334 rm -f conftest.$ac_objext conftest$ac_exeext
35335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35336   (eval $ac_link) 2>conftest.er1
35337   ac_status=$?
35338   grep -v '^ *+' conftest.er1 >conftest.err
35339   rm -f conftest.er1
35340   cat conftest.err >&5
35341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35342   (exit $ac_status); } &&
35343          { ac_try='test -z "$ac_c_werror_flag"
35344                          || test ! -s conftest.err'
35345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35346   (eval $ac_try) 2>&5
35347   ac_status=$?
35348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35349   (exit $ac_status); }; } &&
35350          { ac_try='test -s conftest$ac_exeext'
35351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35352   (eval $ac_try) 2>&5
35353   ac_status=$?
35354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35355   (exit $ac_status); }; }; then
35356   ac_cv_func_cthread_fork=yes
35357 else
35358   echo "$as_me: failed program was:" >&5
35359 sed 's/^/| /' conftest.$ac_ext >&5
35360
35361 ac_cv_func_cthread_fork=no
35362 fi
35363 rm -f conftest.err conftest.$ac_objext \
35364       conftest$ac_exeext conftest.$ac_ext
35365 fi
35366 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35367 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35368 if test $ac_cv_func_cthread_fork = yes; then
35369   ol_link_threads=yes
35370 fi
35371
35372                 LIBS="$save_LIBS"
35373
35374                 if test $ol_link_threads = yes ; then
35375                         LTHREAD_LIBS="-lthreads"
35376                         ol_link_threads=mach
35377                         ol_with_threads=found
35378                 else
35379                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35380 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35381    { (exit 1); exit 1; }; }
35382                 fi
35383
35384         elif test $ol_with_threads = mach ; then
35385                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35386 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35387    { (exit 1); exit 1; }; }
35388         fi
35389
35390         if test $ol_link_threads = mach ; then
35391
35392 cat >>confdefs.h <<\_ACEOF
35393 #define HAVE_MACH_CTHREADS 1
35394 _ACEOF
35395
35396         elif test $ol_with_threads = found ; then
35397                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35398 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35399    { (exit 1); exit 1; }; }
35400         fi
35401 fi
35402
35403 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35404         -o $ol_with_threads = pth ; then
35405
35406
35407 for ac_header in pth.h
35408 do
35409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35411   echo "$as_me:$LINENO: checking for $ac_header" >&5
35412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35414   echo $ECHO_N "(cached) $ECHO_C" >&6
35415 fi
35416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35418 else
35419   # Is the header compilable?
35420 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35422 cat >conftest.$ac_ext <<_ACEOF
35423 /* confdefs.h.  */
35424 _ACEOF
35425 cat confdefs.h >>conftest.$ac_ext
35426 cat >>conftest.$ac_ext <<_ACEOF
35427 /* end confdefs.h.  */
35428 $ac_includes_default
35429 #include <$ac_header>
35430 _ACEOF
35431 rm -f conftest.$ac_objext
35432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35433   (eval $ac_compile) 2>conftest.er1
35434   ac_status=$?
35435   grep -v '^ *+' conftest.er1 >conftest.err
35436   rm -f conftest.er1
35437   cat conftest.err >&5
35438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35439   (exit $ac_status); } &&
35440          { ac_try='test -z "$ac_c_werror_flag"
35441                          || test ! -s conftest.err'
35442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35443   (eval $ac_try) 2>&5
35444   ac_status=$?
35445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35446   (exit $ac_status); }; } &&
35447          { ac_try='test -s conftest.$ac_objext'
35448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35449   (eval $ac_try) 2>&5
35450   ac_status=$?
35451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35452   (exit $ac_status); }; }; then
35453   ac_header_compiler=yes
35454 else
35455   echo "$as_me: failed program was:" >&5
35456 sed 's/^/| /' conftest.$ac_ext >&5
35457
35458 ac_header_compiler=no
35459 fi
35460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35462 echo "${ECHO_T}$ac_header_compiler" >&6
35463
35464 # Is the header present?
35465 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35467 cat >conftest.$ac_ext <<_ACEOF
35468 /* confdefs.h.  */
35469 _ACEOF
35470 cat confdefs.h >>conftest.$ac_ext
35471 cat >>conftest.$ac_ext <<_ACEOF
35472 /* end confdefs.h.  */
35473 #include <$ac_header>
35474 _ACEOF
35475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35476   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35477   ac_status=$?
35478   grep -v '^ *+' conftest.er1 >conftest.err
35479   rm -f conftest.er1
35480   cat conftest.err >&5
35481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35482   (exit $ac_status); } >/dev/null; then
35483   if test -s conftest.err; then
35484     ac_cpp_err=$ac_c_preproc_warn_flag
35485     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35486   else
35487     ac_cpp_err=
35488   fi
35489 else
35490   ac_cpp_err=yes
35491 fi
35492 if test -z "$ac_cpp_err"; then
35493   ac_header_preproc=yes
35494 else
35495   echo "$as_me: failed program was:" >&5
35496 sed 's/^/| /' conftest.$ac_ext >&5
35497
35498   ac_header_preproc=no
35499 fi
35500 rm -f conftest.err conftest.$ac_ext
35501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35502 echo "${ECHO_T}$ac_header_preproc" >&6
35503
35504 # So?  What about this header?
35505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35506   yes:no: )
35507     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35511     ac_header_preproc=yes
35512     ;;
35513   no:yes:* )
35514     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35516     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35517 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35518     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35520     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35521 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35522     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35524     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35526     (
35527       cat <<\_ASBOX
35528 ## ------------------------------------------ ##
35529 ## Report this to the AC_PACKAGE_NAME lists.  ##
35530 ## ------------------------------------------ ##
35531 _ASBOX
35532     ) |
35533       sed "s/^/$as_me: WARNING:     /" >&2
35534     ;;
35535 esac
35536 echo "$as_me:$LINENO: checking for $ac_header" >&5
35537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35539   echo $ECHO_N "(cached) $ECHO_C" >&6
35540 else
35541   eval "$as_ac_Header=\$ac_header_preproc"
35542 fi
35543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35545
35546 fi
35547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35548   cat >>confdefs.h <<_ACEOF
35549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35550 _ACEOF
35551
35552 fi
35553
35554 done
35555
35556
35557         if test $ac_cv_header_pth_h = yes ; then
35558                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35559 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35560 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35561   echo $ECHO_N "(cached) $ECHO_C" >&6
35562 else
35563   ac_check_lib_save_LIBS=$LIBS
35564 LIBS="-lpth  $LIBS"
35565 cat >conftest.$ac_ext <<_ACEOF
35566 /* confdefs.h.  */
35567 _ACEOF
35568 cat confdefs.h >>conftest.$ac_ext
35569 cat >>conftest.$ac_ext <<_ACEOF
35570 /* end confdefs.h.  */
35571
35572 /* Override any gcc2 internal prototype to avoid an error.  */
35573 #ifdef __cplusplus
35574 extern "C"
35575 #endif
35576 /* We use char because int might match the return type of a gcc2
35577    builtin and then its argument prototype would still apply.  */
35578 char pth_version ();
35579 int
35580 main ()
35581 {
35582 pth_version ();
35583   ;
35584   return 0;
35585 }
35586 _ACEOF
35587 rm -f conftest.$ac_objext conftest$ac_exeext
35588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35589   (eval $ac_link) 2>conftest.er1
35590   ac_status=$?
35591   grep -v '^ *+' conftest.er1 >conftest.err
35592   rm -f conftest.er1
35593   cat conftest.err >&5
35594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35595   (exit $ac_status); } &&
35596          { ac_try='test -z "$ac_c_werror_flag"
35597                          || test ! -s conftest.err'
35598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35599   (eval $ac_try) 2>&5
35600   ac_status=$?
35601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35602   (exit $ac_status); }; } &&
35603          { ac_try='test -s conftest$ac_exeext'
35604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35605   (eval $ac_try) 2>&5
35606   ac_status=$?
35607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35608   (exit $ac_status); }; }; then
35609   ac_cv_lib_pth_pth_version=yes
35610 else
35611   echo "$as_me: failed program was:" >&5
35612 sed 's/^/| /' conftest.$ac_ext >&5
35613
35614 ac_cv_lib_pth_pth_version=no
35615 fi
35616 rm -f conftest.err conftest.$ac_objext \
35617       conftest$ac_exeext conftest.$ac_ext
35618 LIBS=$ac_check_lib_save_LIBS
35619 fi
35620 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35621 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35622 if test $ac_cv_lib_pth_pth_version = yes; then
35623   have_pth=yes
35624 else
35625   have_pth=no
35626 fi
35627
35628
35629                 if test $have_pth = yes ; then
35630
35631 cat >>confdefs.h <<\_ACEOF
35632 #define HAVE_GNU_PTH 1
35633 _ACEOF
35634
35635                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35636                         ol_link_threads=pth
35637                         ol_with_threads=found
35638
35639                         if test $ol_with_yielding_select = auto ; then
35640                                 ol_with_yielding_select=yes
35641                         fi
35642                 fi
35643         fi
35644 fi
35645
35646 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35647         -o $ol_with_threads = lwp ; then
35648
35649
35650
35651 for ac_header in thread.h synch.h
35652 do
35653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35655   echo "$as_me:$LINENO: checking for $ac_header" >&5
35656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35658   echo $ECHO_N "(cached) $ECHO_C" >&6
35659 fi
35660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35662 else
35663   # Is the header compilable?
35664 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35666 cat >conftest.$ac_ext <<_ACEOF
35667 /* confdefs.h.  */
35668 _ACEOF
35669 cat confdefs.h >>conftest.$ac_ext
35670 cat >>conftest.$ac_ext <<_ACEOF
35671 /* end confdefs.h.  */
35672 $ac_includes_default
35673 #include <$ac_header>
35674 _ACEOF
35675 rm -f conftest.$ac_objext
35676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35677   (eval $ac_compile) 2>conftest.er1
35678   ac_status=$?
35679   grep -v '^ *+' conftest.er1 >conftest.err
35680   rm -f conftest.er1
35681   cat conftest.err >&5
35682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35683   (exit $ac_status); } &&
35684          { ac_try='test -z "$ac_c_werror_flag"
35685                          || test ! -s conftest.err'
35686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35687   (eval $ac_try) 2>&5
35688   ac_status=$?
35689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35690   (exit $ac_status); }; } &&
35691          { ac_try='test -s conftest.$ac_objext'
35692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35693   (eval $ac_try) 2>&5
35694   ac_status=$?
35695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696   (exit $ac_status); }; }; then
35697   ac_header_compiler=yes
35698 else
35699   echo "$as_me: failed program was:" >&5
35700 sed 's/^/| /' conftest.$ac_ext >&5
35701
35702 ac_header_compiler=no
35703 fi
35704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35706 echo "${ECHO_T}$ac_header_compiler" >&6
35707
35708 # Is the header present?
35709 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35711 cat >conftest.$ac_ext <<_ACEOF
35712 /* confdefs.h.  */
35713 _ACEOF
35714 cat confdefs.h >>conftest.$ac_ext
35715 cat >>conftest.$ac_ext <<_ACEOF
35716 /* end confdefs.h.  */
35717 #include <$ac_header>
35718 _ACEOF
35719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35720   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35721   ac_status=$?
35722   grep -v '^ *+' conftest.er1 >conftest.err
35723   rm -f conftest.er1
35724   cat conftest.err >&5
35725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35726   (exit $ac_status); } >/dev/null; then
35727   if test -s conftest.err; then
35728     ac_cpp_err=$ac_c_preproc_warn_flag
35729     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35730   else
35731     ac_cpp_err=
35732   fi
35733 else
35734   ac_cpp_err=yes
35735 fi
35736 if test -z "$ac_cpp_err"; then
35737   ac_header_preproc=yes
35738 else
35739   echo "$as_me: failed program was:" >&5
35740 sed 's/^/| /' conftest.$ac_ext >&5
35741
35742   ac_header_preproc=no
35743 fi
35744 rm -f conftest.err conftest.$ac_ext
35745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35746 echo "${ECHO_T}$ac_header_preproc" >&6
35747
35748 # So?  What about this header?
35749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35750   yes:no: )
35751     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35753     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35755     ac_header_preproc=yes
35756     ;;
35757   no:yes:* )
35758     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35760     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35761 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35762     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35764     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35765 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35768     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35770     (
35771       cat <<\_ASBOX
35772 ## ------------------------------------------ ##
35773 ## Report this to the AC_PACKAGE_NAME lists.  ##
35774 ## ------------------------------------------ ##
35775 _ASBOX
35776     ) |
35777       sed "s/^/$as_me: WARNING:     /" >&2
35778     ;;
35779 esac
35780 echo "$as_me:$LINENO: checking for $ac_header" >&5
35781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35783   echo $ECHO_N "(cached) $ECHO_C" >&6
35784 else
35785   eval "$as_ac_Header=\$ac_header_preproc"
35786 fi
35787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35789
35790 fi
35791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35792   cat >>confdefs.h <<_ACEOF
35793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35794 _ACEOF
35795
35796 fi
35797
35798 done
35799
35800         if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
35801                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
35802 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
35803 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
35804   echo $ECHO_N "(cached) $ECHO_C" >&6
35805 else
35806   ac_check_lib_save_LIBS=$LIBS
35807 LIBS="-lthread  $LIBS"
35808 cat >conftest.$ac_ext <<_ACEOF
35809 /* confdefs.h.  */
35810 _ACEOF
35811 cat confdefs.h >>conftest.$ac_ext
35812 cat >>conftest.$ac_ext <<_ACEOF
35813 /* end confdefs.h.  */
35814
35815 /* Override any gcc2 internal prototype to avoid an error.  */
35816 #ifdef __cplusplus
35817 extern "C"
35818 #endif
35819 /* We use char because int might match the return type of a gcc2
35820    builtin and then its argument prototype would still apply.  */
35821 char thr_create ();
35822 int
35823 main ()
35824 {
35825 thr_create ();
35826   ;
35827   return 0;
35828 }
35829 _ACEOF
35830 rm -f conftest.$ac_objext conftest$ac_exeext
35831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35832   (eval $ac_link) 2>conftest.er1
35833   ac_status=$?
35834   grep -v '^ *+' conftest.er1 >conftest.err
35835   rm -f conftest.er1
35836   cat conftest.err >&5
35837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35838   (exit $ac_status); } &&
35839          { ac_try='test -z "$ac_c_werror_flag"
35840                          || test ! -s conftest.err'
35841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35842   (eval $ac_try) 2>&5
35843   ac_status=$?
35844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35845   (exit $ac_status); }; } &&
35846          { ac_try='test -s conftest$ac_exeext'
35847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35848   (eval $ac_try) 2>&5
35849   ac_status=$?
35850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35851   (exit $ac_status); }; }; then
35852   ac_cv_lib_thread_thr_create=yes
35853 else
35854   echo "$as_me: failed program was:" >&5
35855 sed 's/^/| /' conftest.$ac_ext >&5
35856
35857 ac_cv_lib_thread_thr_create=no
35858 fi
35859 rm -f conftest.err conftest.$ac_objext \
35860       conftest$ac_exeext conftest.$ac_ext
35861 LIBS=$ac_check_lib_save_LIBS
35862 fi
35863 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
35864 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
35865 if test $ac_cv_lib_thread_thr_create = yes; then
35866   have_thr=yes
35867 else
35868   have_thr=no
35869 fi
35870
35871
35872                 if test $have_thr = yes ; then
35873
35874 cat >>confdefs.h <<\_ACEOF
35875 #define HAVE_THR 1
35876 _ACEOF
35877
35878                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
35879                         ol_link_threads=thr
35880
35881                         if test $ol_with_yielding_select = auto ; then
35882                                 ol_with_yielding_select=yes
35883                         fi
35884
35885
35886
35887 for ac_func in \
35888                                 thr_setconcurrency \
35889                                 thr_getconcurrency \
35890
35891 do
35892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35893 echo "$as_me:$LINENO: checking for $ac_func" >&5
35894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35895 if eval "test \"\${$as_ac_var+set}\" = set"; then
35896   echo $ECHO_N "(cached) $ECHO_C" >&6
35897 else
35898   cat >conftest.$ac_ext <<_ACEOF
35899 /* confdefs.h.  */
35900 _ACEOF
35901 cat confdefs.h >>conftest.$ac_ext
35902 cat >>conftest.$ac_ext <<_ACEOF
35903 /* end confdefs.h.  */
35904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35906 #define $ac_func innocuous_$ac_func
35907
35908 /* System header to define __stub macros and hopefully few prototypes,
35909     which can conflict with char $ac_func (); below.
35910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35911     <limits.h> exists even on freestanding compilers.  */
35912
35913 #ifdef __STDC__
35914 # include <limits.h>
35915 #else
35916 # include <assert.h>
35917 #endif
35918
35919 #undef $ac_func
35920
35921 /* Override any gcc2 internal prototype to avoid an error.  */
35922 #ifdef __cplusplus
35923 extern "C"
35924 {
35925 #endif
35926 /* We use char because int might match the return type of a gcc2
35927    builtin and then its argument prototype would still apply.  */
35928 char $ac_func ();
35929 /* The GNU C library defines this for functions which it implements
35930     to always fail with ENOSYS.  Some functions are actually named
35931     something starting with __ and the normal name is an alias.  */
35932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35933 choke me
35934 #else
35935 char (*f) () = $ac_func;
35936 #endif
35937 #ifdef __cplusplus
35938 }
35939 #endif
35940
35941 int
35942 main ()
35943 {
35944 return f != $ac_func;
35945   ;
35946   return 0;
35947 }
35948 _ACEOF
35949 rm -f conftest.$ac_objext conftest$ac_exeext
35950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35951   (eval $ac_link) 2>conftest.er1
35952   ac_status=$?
35953   grep -v '^ *+' conftest.er1 >conftest.err
35954   rm -f conftest.er1
35955   cat conftest.err >&5
35956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35957   (exit $ac_status); } &&
35958          { ac_try='test -z "$ac_c_werror_flag"
35959                          || test ! -s conftest.err'
35960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35961   (eval $ac_try) 2>&5
35962   ac_status=$?
35963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35964   (exit $ac_status); }; } &&
35965          { ac_try='test -s conftest$ac_exeext'
35966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35967   (eval $ac_try) 2>&5
35968   ac_status=$?
35969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35970   (exit $ac_status); }; }; then
35971   eval "$as_ac_var=yes"
35972 else
35973   echo "$as_me: failed program was:" >&5
35974 sed 's/^/| /' conftest.$ac_ext >&5
35975
35976 eval "$as_ac_var=no"
35977 fi
35978 rm -f conftest.err conftest.$ac_objext \
35979       conftest$ac_exeext conftest.$ac_ext
35980 fi
35981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35983 if test `eval echo '${'$as_ac_var'}'` = yes; then
35984   cat >>confdefs.h <<_ACEOF
35985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35986 _ACEOF
35987
35988 fi
35989 done
35990
35991                 fi
35992         fi
35993
35994
35995 for ac_header in lwp/lwp.h
35996 do
35997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35999   echo "$as_me:$LINENO: checking for $ac_header" >&5
36000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36002   echo $ECHO_N "(cached) $ECHO_C" >&6
36003 fi
36004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36006 else
36007   # Is the header compilable?
36008 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36010 cat >conftest.$ac_ext <<_ACEOF
36011 /* confdefs.h.  */
36012 _ACEOF
36013 cat confdefs.h >>conftest.$ac_ext
36014 cat >>conftest.$ac_ext <<_ACEOF
36015 /* end confdefs.h.  */
36016 $ac_includes_default
36017 #include <$ac_header>
36018 _ACEOF
36019 rm -f conftest.$ac_objext
36020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36021   (eval $ac_compile) 2>conftest.er1
36022   ac_status=$?
36023   grep -v '^ *+' conftest.er1 >conftest.err
36024   rm -f conftest.er1
36025   cat conftest.err >&5
36026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36027   (exit $ac_status); } &&
36028          { ac_try='test -z "$ac_c_werror_flag"
36029                          || test ! -s conftest.err'
36030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36031   (eval $ac_try) 2>&5
36032   ac_status=$?
36033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36034   (exit $ac_status); }; } &&
36035          { ac_try='test -s conftest.$ac_objext'
36036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36037   (eval $ac_try) 2>&5
36038   ac_status=$?
36039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36040   (exit $ac_status); }; }; then
36041   ac_header_compiler=yes
36042 else
36043   echo "$as_me: failed program was:" >&5
36044 sed 's/^/| /' conftest.$ac_ext >&5
36045
36046 ac_header_compiler=no
36047 fi
36048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36050 echo "${ECHO_T}$ac_header_compiler" >&6
36051
36052 # Is the header present?
36053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36055 cat >conftest.$ac_ext <<_ACEOF
36056 /* confdefs.h.  */
36057 _ACEOF
36058 cat confdefs.h >>conftest.$ac_ext
36059 cat >>conftest.$ac_ext <<_ACEOF
36060 /* end confdefs.h.  */
36061 #include <$ac_header>
36062 _ACEOF
36063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36064   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36065   ac_status=$?
36066   grep -v '^ *+' conftest.er1 >conftest.err
36067   rm -f conftest.er1
36068   cat conftest.err >&5
36069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36070   (exit $ac_status); } >/dev/null; then
36071   if test -s conftest.err; then
36072     ac_cpp_err=$ac_c_preproc_warn_flag
36073     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36074   else
36075     ac_cpp_err=
36076   fi
36077 else
36078   ac_cpp_err=yes
36079 fi
36080 if test -z "$ac_cpp_err"; then
36081   ac_header_preproc=yes
36082 else
36083   echo "$as_me: failed program was:" >&5
36084 sed 's/^/| /' conftest.$ac_ext >&5
36085
36086   ac_header_preproc=no
36087 fi
36088 rm -f conftest.err conftest.$ac_ext
36089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36090 echo "${ECHO_T}$ac_header_preproc" >&6
36091
36092 # So?  What about this header?
36093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36094   yes:no: )
36095     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36097     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36099     ac_header_preproc=yes
36100     ;;
36101   no:yes:* )
36102     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36104     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36105 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36106     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36108     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36109 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36112     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36114     (
36115       cat <<\_ASBOX
36116 ## ------------------------------------------ ##
36117 ## Report this to the AC_PACKAGE_NAME lists.  ##
36118 ## ------------------------------------------ ##
36119 _ASBOX
36120     ) |
36121       sed "s/^/$as_me: WARNING:     /" >&2
36122     ;;
36123 esac
36124 echo "$as_me:$LINENO: checking for $ac_header" >&5
36125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36127   echo $ECHO_N "(cached) $ECHO_C" >&6
36128 else
36129   eval "$as_ac_Header=\$ac_header_preproc"
36130 fi
36131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36133
36134 fi
36135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36136   cat >>confdefs.h <<_ACEOF
36137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36138 _ACEOF
36139
36140 fi
36141
36142 done
36143
36144         if test $ac_cv_header_lwp_lwp_h = yes ; then
36145                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36146 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36147 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36148   echo $ECHO_N "(cached) $ECHO_C" >&6
36149 else
36150   ac_check_lib_save_LIBS=$LIBS
36151 LIBS="-llwp  $LIBS"
36152 cat >conftest.$ac_ext <<_ACEOF
36153 /* confdefs.h.  */
36154 _ACEOF
36155 cat confdefs.h >>conftest.$ac_ext
36156 cat >>conftest.$ac_ext <<_ACEOF
36157 /* end confdefs.h.  */
36158
36159 /* Override any gcc2 internal prototype to avoid an error.  */
36160 #ifdef __cplusplus
36161 extern "C"
36162 #endif
36163 /* We use char because int might match the return type of a gcc2
36164    builtin and then its argument prototype would still apply.  */
36165 char lwp_create ();
36166 int
36167 main ()
36168 {
36169 lwp_create ();
36170   ;
36171   return 0;
36172 }
36173 _ACEOF
36174 rm -f conftest.$ac_objext conftest$ac_exeext
36175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36176   (eval $ac_link) 2>conftest.er1
36177   ac_status=$?
36178   grep -v '^ *+' conftest.er1 >conftest.err
36179   rm -f conftest.er1
36180   cat conftest.err >&5
36181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36182   (exit $ac_status); } &&
36183          { ac_try='test -z "$ac_c_werror_flag"
36184                          || test ! -s conftest.err'
36185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36186   (eval $ac_try) 2>&5
36187   ac_status=$?
36188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36189   (exit $ac_status); }; } &&
36190          { ac_try='test -s conftest$ac_exeext'
36191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36192   (eval $ac_try) 2>&5
36193   ac_status=$?
36194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36195   (exit $ac_status); }; }; then
36196   ac_cv_lib_lwp_lwp_create=yes
36197 else
36198   echo "$as_me: failed program was:" >&5
36199 sed 's/^/| /' conftest.$ac_ext >&5
36200
36201 ac_cv_lib_lwp_lwp_create=no
36202 fi
36203 rm -f conftest.err conftest.$ac_objext \
36204       conftest$ac_exeext conftest.$ac_ext
36205 LIBS=$ac_check_lib_save_LIBS
36206 fi
36207 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36208 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36209 if test $ac_cv_lib_lwp_lwp_create = yes; then
36210   have_lwp=yes
36211 else
36212   have_lwp=no
36213 fi
36214
36215
36216                 if test $have_lwp = yes ; then
36217
36218 cat >>confdefs.h <<\_ACEOF
36219 #define HAVE_LWP 1
36220 _ACEOF
36221
36222                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36223                         ol_link_threads=lwp
36224
36225                         if test $ol_with_yielding_select = auto ; then
36226                                 ol_with_yielding_select=no
36227                         fi
36228                 fi
36229         fi
36230 fi
36231
36232 if test $ol_with_yielding_select = yes ; then
36233
36234 cat >>confdefs.h <<\_ACEOF
36235 #define HAVE_YIELDING_SELECT 1
36236 _ACEOF
36237
36238 fi
36239
36240 if test $ol_with_threads = manual ; then
36241                 ol_link_threads=yes
36242
36243         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36244 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36245
36246
36247
36248 for ac_header in pthread.h sched.h
36249 do
36250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36252   echo "$as_me:$LINENO: checking for $ac_header" >&5
36253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36255   echo $ECHO_N "(cached) $ECHO_C" >&6
36256 fi
36257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36259 else
36260   # Is the header compilable?
36261 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36263 cat >conftest.$ac_ext <<_ACEOF
36264 /* confdefs.h.  */
36265 _ACEOF
36266 cat confdefs.h >>conftest.$ac_ext
36267 cat >>conftest.$ac_ext <<_ACEOF
36268 /* end confdefs.h.  */
36269 $ac_includes_default
36270 #include <$ac_header>
36271 _ACEOF
36272 rm -f conftest.$ac_objext
36273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36274   (eval $ac_compile) 2>conftest.er1
36275   ac_status=$?
36276   grep -v '^ *+' conftest.er1 >conftest.err
36277   rm -f conftest.er1
36278   cat conftest.err >&5
36279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36280   (exit $ac_status); } &&
36281          { ac_try='test -z "$ac_c_werror_flag"
36282                          || test ! -s conftest.err'
36283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36284   (eval $ac_try) 2>&5
36285   ac_status=$?
36286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36287   (exit $ac_status); }; } &&
36288          { ac_try='test -s conftest.$ac_objext'
36289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36290   (eval $ac_try) 2>&5
36291   ac_status=$?
36292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36293   (exit $ac_status); }; }; then
36294   ac_header_compiler=yes
36295 else
36296   echo "$as_me: failed program was:" >&5
36297 sed 's/^/| /' conftest.$ac_ext >&5
36298
36299 ac_header_compiler=no
36300 fi
36301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36302 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36303 echo "${ECHO_T}$ac_header_compiler" >&6
36304
36305 # Is the header present?
36306 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36308 cat >conftest.$ac_ext <<_ACEOF
36309 /* confdefs.h.  */
36310 _ACEOF
36311 cat confdefs.h >>conftest.$ac_ext
36312 cat >>conftest.$ac_ext <<_ACEOF
36313 /* end confdefs.h.  */
36314 #include <$ac_header>
36315 _ACEOF
36316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36317   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36318   ac_status=$?
36319   grep -v '^ *+' conftest.er1 >conftest.err
36320   rm -f conftest.er1
36321   cat conftest.err >&5
36322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36323   (exit $ac_status); } >/dev/null; then
36324   if test -s conftest.err; then
36325     ac_cpp_err=$ac_c_preproc_warn_flag
36326     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36327   else
36328     ac_cpp_err=
36329   fi
36330 else
36331   ac_cpp_err=yes
36332 fi
36333 if test -z "$ac_cpp_err"; then
36334   ac_header_preproc=yes
36335 else
36336   echo "$as_me: failed program was:" >&5
36337 sed 's/^/| /' conftest.$ac_ext >&5
36338
36339   ac_header_preproc=no
36340 fi
36341 rm -f conftest.err conftest.$ac_ext
36342 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36343 echo "${ECHO_T}$ac_header_preproc" >&6
36344
36345 # So?  What about this header?
36346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36347   yes:no: )
36348     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36352     ac_header_preproc=yes
36353     ;;
36354   no:yes:* )
36355     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36357     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36358 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36359     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36361     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36362 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36363     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36365     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36367     (
36368       cat <<\_ASBOX
36369 ## ------------------------------------------ ##
36370 ## Report this to the AC_PACKAGE_NAME lists.  ##
36371 ## ------------------------------------------ ##
36372 _ASBOX
36373     ) |
36374       sed "s/^/$as_me: WARNING:     /" >&2
36375     ;;
36376 esac
36377 echo "$as_me:$LINENO: checking for $ac_header" >&5
36378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36380   echo $ECHO_N "(cached) $ECHO_C" >&6
36381 else
36382   eval "$as_ac_Header=\$ac_header_preproc"
36383 fi
36384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36386
36387 fi
36388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36389   cat >>confdefs.h <<_ACEOF
36390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36391 _ACEOF
36392
36393 fi
36394
36395 done
36396
36397
36398
36399 for ac_func in sched_yield pthread_yield
36400 do
36401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36402 echo "$as_me:$LINENO: checking for $ac_func" >&5
36403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36404 if eval "test \"\${$as_ac_var+set}\" = set"; then
36405   echo $ECHO_N "(cached) $ECHO_C" >&6
36406 else
36407   cat >conftest.$ac_ext <<_ACEOF
36408 /* confdefs.h.  */
36409 _ACEOF
36410 cat confdefs.h >>conftest.$ac_ext
36411 cat >>conftest.$ac_ext <<_ACEOF
36412 /* end confdefs.h.  */
36413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36414    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36415 #define $ac_func innocuous_$ac_func
36416
36417 /* System header to define __stub macros and hopefully few prototypes,
36418     which can conflict with char $ac_func (); below.
36419     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36420     <limits.h> exists even on freestanding compilers.  */
36421
36422 #ifdef __STDC__
36423 # include <limits.h>
36424 #else
36425 # include <assert.h>
36426 #endif
36427
36428 #undef $ac_func
36429
36430 /* Override any gcc2 internal prototype to avoid an error.  */
36431 #ifdef __cplusplus
36432 extern "C"
36433 {
36434 #endif
36435 /* We use char because int might match the return type of a gcc2
36436    builtin and then its argument prototype would still apply.  */
36437 char $ac_func ();
36438 /* The GNU C library defines this for functions which it implements
36439     to always fail with ENOSYS.  Some functions are actually named
36440     something starting with __ and the normal name is an alias.  */
36441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36442 choke me
36443 #else
36444 char (*f) () = $ac_func;
36445 #endif
36446 #ifdef __cplusplus
36447 }
36448 #endif
36449
36450 int
36451 main ()
36452 {
36453 return f != $ac_func;
36454   ;
36455   return 0;
36456 }
36457 _ACEOF
36458 rm -f conftest.$ac_objext conftest$ac_exeext
36459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36460   (eval $ac_link) 2>conftest.er1
36461   ac_status=$?
36462   grep -v '^ *+' conftest.er1 >conftest.err
36463   rm -f conftest.er1
36464   cat conftest.err >&5
36465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36466   (exit $ac_status); } &&
36467          { ac_try='test -z "$ac_c_werror_flag"
36468                          || test ! -s conftest.err'
36469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36470   (eval $ac_try) 2>&5
36471   ac_status=$?
36472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36473   (exit $ac_status); }; } &&
36474          { ac_try='test -s conftest$ac_exeext'
36475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36476   (eval $ac_try) 2>&5
36477   ac_status=$?
36478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36479   (exit $ac_status); }; }; then
36480   eval "$as_ac_var=yes"
36481 else
36482   echo "$as_me: failed program was:" >&5
36483 sed 's/^/| /' conftest.$ac_ext >&5
36484
36485 eval "$as_ac_var=no"
36486 fi
36487 rm -f conftest.err conftest.$ac_objext \
36488       conftest$ac_exeext conftest.$ac_ext
36489 fi
36490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36492 if test `eval echo '${'$as_ac_var'}'` = yes; then
36493   cat >>confdefs.h <<_ACEOF
36494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36495 _ACEOF
36496
36497 fi
36498 done
36499
36500
36501         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36502 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36503 if test "${ol_cv_header_linux_threads+set}" = set; then
36504   echo $ECHO_N "(cached) $ECHO_C" >&6
36505 else
36506   cat >conftest.$ac_ext <<_ACEOF
36507 /* confdefs.h.  */
36508 _ACEOF
36509 cat confdefs.h >>conftest.$ac_ext
36510 cat >>conftest.$ac_ext <<_ACEOF
36511 /* end confdefs.h.  */
36512 #include <pthread.h>
36513 _ACEOF
36514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36515   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36516   ol_cv_header_linux_threads=yes
36517 else
36518   ol_cv_header_linux_threads=no
36519 fi
36520 rm -f conftest*
36521
36522
36523 fi
36524 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36525 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36526         if test $ol_cv_header_linux_threads = yes; then
36527
36528 cat >>confdefs.h <<\_ACEOF
36529 #define HAVE_LINUX_THREADS 1
36530 _ACEOF
36531
36532         fi
36533
36534
36535
36536 for ac_header in mach/cthreads.h
36537 do
36538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36540   echo "$as_me:$LINENO: checking for $ac_header" >&5
36541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36543   echo $ECHO_N "(cached) $ECHO_C" >&6
36544 fi
36545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36547 else
36548   # Is the header compilable?
36549 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36551 cat >conftest.$ac_ext <<_ACEOF
36552 /* confdefs.h.  */
36553 _ACEOF
36554 cat confdefs.h >>conftest.$ac_ext
36555 cat >>conftest.$ac_ext <<_ACEOF
36556 /* end confdefs.h.  */
36557 $ac_includes_default
36558 #include <$ac_header>
36559 _ACEOF
36560 rm -f conftest.$ac_objext
36561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36562   (eval $ac_compile) 2>conftest.er1
36563   ac_status=$?
36564   grep -v '^ *+' conftest.er1 >conftest.err
36565   rm -f conftest.er1
36566   cat conftest.err >&5
36567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36568   (exit $ac_status); } &&
36569          { ac_try='test -z "$ac_c_werror_flag"
36570                          || test ! -s conftest.err'
36571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36572   (eval $ac_try) 2>&5
36573   ac_status=$?
36574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36575   (exit $ac_status); }; } &&
36576          { ac_try='test -s conftest.$ac_objext'
36577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36578   (eval $ac_try) 2>&5
36579   ac_status=$?
36580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36581   (exit $ac_status); }; }; then
36582   ac_header_compiler=yes
36583 else
36584   echo "$as_me: failed program was:" >&5
36585 sed 's/^/| /' conftest.$ac_ext >&5
36586
36587 ac_header_compiler=no
36588 fi
36589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36590 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36591 echo "${ECHO_T}$ac_header_compiler" >&6
36592
36593 # Is the header present?
36594 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36596 cat >conftest.$ac_ext <<_ACEOF
36597 /* confdefs.h.  */
36598 _ACEOF
36599 cat confdefs.h >>conftest.$ac_ext
36600 cat >>conftest.$ac_ext <<_ACEOF
36601 /* end confdefs.h.  */
36602 #include <$ac_header>
36603 _ACEOF
36604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36605   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36606   ac_status=$?
36607   grep -v '^ *+' conftest.er1 >conftest.err
36608   rm -f conftest.er1
36609   cat conftest.err >&5
36610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36611   (exit $ac_status); } >/dev/null; then
36612   if test -s conftest.err; then
36613     ac_cpp_err=$ac_c_preproc_warn_flag
36614     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36615   else
36616     ac_cpp_err=
36617   fi
36618 else
36619   ac_cpp_err=yes
36620 fi
36621 if test -z "$ac_cpp_err"; then
36622   ac_header_preproc=yes
36623 else
36624   echo "$as_me: failed program was:" >&5
36625 sed 's/^/| /' conftest.$ac_ext >&5
36626
36627   ac_header_preproc=no
36628 fi
36629 rm -f conftest.err conftest.$ac_ext
36630 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36631 echo "${ECHO_T}$ac_header_preproc" >&6
36632
36633 # So?  What about this header?
36634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36635   yes:no: )
36636     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36638     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36639 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36640     ac_header_preproc=yes
36641     ;;
36642   no:yes:* )
36643     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36645     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36646 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36647     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36648 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36649     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36650 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36651     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36653     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36654 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36655     (
36656       cat <<\_ASBOX
36657 ## ------------------------------------------ ##
36658 ## Report this to the AC_PACKAGE_NAME lists.  ##
36659 ## ------------------------------------------ ##
36660 _ASBOX
36661     ) |
36662       sed "s/^/$as_me: WARNING:     /" >&2
36663     ;;
36664 esac
36665 echo "$as_me:$LINENO: checking for $ac_header" >&5
36666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36668   echo $ECHO_N "(cached) $ECHO_C" >&6
36669 else
36670   eval "$as_ac_Header=\$ac_header_preproc"
36671 fi
36672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36674
36675 fi
36676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36677   cat >>confdefs.h <<_ACEOF
36678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36679 _ACEOF
36680
36681 fi
36682
36683 done
36684
36685
36686 for ac_header in lwp/lwp.h
36687 do
36688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36690   echo "$as_me:$LINENO: checking for $ac_header" >&5
36691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36693   echo $ECHO_N "(cached) $ECHO_C" >&6
36694 fi
36695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36697 else
36698   # Is the header compilable?
36699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36701 cat >conftest.$ac_ext <<_ACEOF
36702 /* confdefs.h.  */
36703 _ACEOF
36704 cat confdefs.h >>conftest.$ac_ext
36705 cat >>conftest.$ac_ext <<_ACEOF
36706 /* end confdefs.h.  */
36707 $ac_includes_default
36708 #include <$ac_header>
36709 _ACEOF
36710 rm -f conftest.$ac_objext
36711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36712   (eval $ac_compile) 2>conftest.er1
36713   ac_status=$?
36714   grep -v '^ *+' conftest.er1 >conftest.err
36715   rm -f conftest.er1
36716   cat conftest.err >&5
36717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36718   (exit $ac_status); } &&
36719          { ac_try='test -z "$ac_c_werror_flag"
36720                          || test ! -s conftest.err'
36721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36722   (eval $ac_try) 2>&5
36723   ac_status=$?
36724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36725   (exit $ac_status); }; } &&
36726          { ac_try='test -s conftest.$ac_objext'
36727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36728   (eval $ac_try) 2>&5
36729   ac_status=$?
36730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36731   (exit $ac_status); }; }; then
36732   ac_header_compiler=yes
36733 else
36734   echo "$as_me: failed program was:" >&5
36735 sed 's/^/| /' conftest.$ac_ext >&5
36736
36737 ac_header_compiler=no
36738 fi
36739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36741 echo "${ECHO_T}$ac_header_compiler" >&6
36742
36743 # Is the header present?
36744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36746 cat >conftest.$ac_ext <<_ACEOF
36747 /* confdefs.h.  */
36748 _ACEOF
36749 cat confdefs.h >>conftest.$ac_ext
36750 cat >>conftest.$ac_ext <<_ACEOF
36751 /* end confdefs.h.  */
36752 #include <$ac_header>
36753 _ACEOF
36754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36755   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36756   ac_status=$?
36757   grep -v '^ *+' conftest.er1 >conftest.err
36758   rm -f conftest.er1
36759   cat conftest.err >&5
36760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36761   (exit $ac_status); } >/dev/null; then
36762   if test -s conftest.err; then
36763     ac_cpp_err=$ac_c_preproc_warn_flag
36764     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36765   else
36766     ac_cpp_err=
36767   fi
36768 else
36769   ac_cpp_err=yes
36770 fi
36771 if test -z "$ac_cpp_err"; then
36772   ac_header_preproc=yes
36773 else
36774   echo "$as_me: failed program was:" >&5
36775 sed 's/^/| /' conftest.$ac_ext >&5
36776
36777   ac_header_preproc=no
36778 fi
36779 rm -f conftest.err conftest.$ac_ext
36780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36781 echo "${ECHO_T}$ac_header_preproc" >&6
36782
36783 # So?  What about this header?
36784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36785   yes:no: )
36786     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36790     ac_header_preproc=yes
36791     ;;
36792   no:yes:* )
36793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36795     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36796 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36797     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36799     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36800 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36803     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36805     (
36806       cat <<\_ASBOX
36807 ## ------------------------------------------ ##
36808 ## Report this to the AC_PACKAGE_NAME lists.  ##
36809 ## ------------------------------------------ ##
36810 _ASBOX
36811     ) |
36812       sed "s/^/$as_me: WARNING:     /" >&2
36813     ;;
36814 esac
36815 echo "$as_me:$LINENO: checking for $ac_header" >&5
36816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36818   echo $ECHO_N "(cached) $ECHO_C" >&6
36819 else
36820   eval "$as_ac_Header=\$ac_header_preproc"
36821 fi
36822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36824
36825 fi
36826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36827   cat >>confdefs.h <<_ACEOF
36828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36829 _ACEOF
36830
36831 fi
36832
36833 done
36834
36835
36836
36837 for ac_header in thread.h synch.h
36838 do
36839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36841   echo "$as_me:$LINENO: checking for $ac_header" >&5
36842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36844   echo $ECHO_N "(cached) $ECHO_C" >&6
36845 fi
36846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36848 else
36849   # Is the header compilable?
36850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36852 cat >conftest.$ac_ext <<_ACEOF
36853 /* confdefs.h.  */
36854 _ACEOF
36855 cat confdefs.h >>conftest.$ac_ext
36856 cat >>conftest.$ac_ext <<_ACEOF
36857 /* end confdefs.h.  */
36858 $ac_includes_default
36859 #include <$ac_header>
36860 _ACEOF
36861 rm -f conftest.$ac_objext
36862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36863   (eval $ac_compile) 2>conftest.er1
36864   ac_status=$?
36865   grep -v '^ *+' conftest.er1 >conftest.err
36866   rm -f conftest.er1
36867   cat conftest.err >&5
36868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36869   (exit $ac_status); } &&
36870          { ac_try='test -z "$ac_c_werror_flag"
36871                          || test ! -s conftest.err'
36872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36873   (eval $ac_try) 2>&5
36874   ac_status=$?
36875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36876   (exit $ac_status); }; } &&
36877          { ac_try='test -s conftest.$ac_objext'
36878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36879   (eval $ac_try) 2>&5
36880   ac_status=$?
36881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36882   (exit $ac_status); }; }; then
36883   ac_header_compiler=yes
36884 else
36885   echo "$as_me: failed program was:" >&5
36886 sed 's/^/| /' conftest.$ac_ext >&5
36887
36888 ac_header_compiler=no
36889 fi
36890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36892 echo "${ECHO_T}$ac_header_compiler" >&6
36893
36894 # Is the header present?
36895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36897 cat >conftest.$ac_ext <<_ACEOF
36898 /* confdefs.h.  */
36899 _ACEOF
36900 cat confdefs.h >>conftest.$ac_ext
36901 cat >>conftest.$ac_ext <<_ACEOF
36902 /* end confdefs.h.  */
36903 #include <$ac_header>
36904 _ACEOF
36905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36907   ac_status=$?
36908   grep -v '^ *+' conftest.er1 >conftest.err
36909   rm -f conftest.er1
36910   cat conftest.err >&5
36911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36912   (exit $ac_status); } >/dev/null; then
36913   if test -s conftest.err; then
36914     ac_cpp_err=$ac_c_preproc_warn_flag
36915     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36916   else
36917     ac_cpp_err=
36918   fi
36919 else
36920   ac_cpp_err=yes
36921 fi
36922 if test -z "$ac_cpp_err"; then
36923   ac_header_preproc=yes
36924 else
36925   echo "$as_me: failed program was:" >&5
36926 sed 's/^/| /' conftest.$ac_ext >&5
36927
36928   ac_header_preproc=no
36929 fi
36930 rm -f conftest.err conftest.$ac_ext
36931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36932 echo "${ECHO_T}$ac_header_preproc" >&6
36933
36934 # So?  What about this header?
36935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36936   yes:no: )
36937     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36941     ac_header_preproc=yes
36942     ;;
36943   no:yes:* )
36944     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36946     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36947 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36948     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36950     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36951 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36954     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36956     (
36957       cat <<\_ASBOX
36958 ## ------------------------------------------ ##
36959 ## Report this to the AC_PACKAGE_NAME lists.  ##
36960 ## ------------------------------------------ ##
36961 _ASBOX
36962     ) |
36963       sed "s/^/$as_me: WARNING:     /" >&2
36964     ;;
36965 esac
36966 echo "$as_me:$LINENO: checking for $ac_header" >&5
36967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36969   echo $ECHO_N "(cached) $ECHO_C" >&6
36970 else
36971   eval "$as_ac_Header=\$ac_header_preproc"
36972 fi
36973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36975
36976 fi
36977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36978   cat >>confdefs.h <<_ACEOF
36979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36980 _ACEOF
36981
36982 fi
36983
36984 done
36985
36986 fi
36987
36988 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
36989                         cat >>confdefs.h <<\_ACEOF
36990 #define REENTRANT 1
36991 _ACEOF
36992
36993         cat >>confdefs.h <<\_ACEOF
36994 #define _REENTRANT 1
36995 _ACEOF
36996
36997         cat >>confdefs.h <<\_ACEOF
36998 #define THREAD_SAFE 1
36999 _ACEOF
37000
37001         cat >>confdefs.h <<\_ACEOF
37002 #define _THREAD_SAFE 1
37003 _ACEOF
37004
37005         cat >>confdefs.h <<\_ACEOF
37006 #define THREADSAFE 1
37007 _ACEOF
37008
37009         cat >>confdefs.h <<\_ACEOF
37010 #define _THREADSAFE 1
37011 _ACEOF
37012
37013         cat >>confdefs.h <<\_ACEOF
37014 #define _SGI_MP_SOURCE 1
37015 _ACEOF
37016
37017
37018                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
37019 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
37020 if test "${ol_cv_errno_thread_specific+set}" = set; then
37021   echo $ECHO_N "(cached) $ECHO_C" >&6
37022 else
37023
37024                 cat >conftest.$ac_ext <<_ACEOF
37025 /* confdefs.h.  */
37026 _ACEOF
37027 cat confdefs.h >>conftest.$ac_ext
37028 cat >>conftest.$ac_ext <<_ACEOF
37029 /* end confdefs.h.  */
37030 #include <errno.h>
37031 int
37032 main ()
37033 {
37034 errno = 0;
37035   ;
37036   return 0;
37037 }
37038 _ACEOF
37039 rm -f conftest.$ac_objext conftest$ac_exeext
37040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37041   (eval $ac_link) 2>conftest.er1
37042   ac_status=$?
37043   grep -v '^ *+' conftest.er1 >conftest.err
37044   rm -f conftest.er1
37045   cat conftest.err >&5
37046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37047   (exit $ac_status); } &&
37048          { ac_try='test -z "$ac_c_werror_flag"
37049                          || test ! -s conftest.err'
37050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37051   (eval $ac_try) 2>&5
37052   ac_status=$?
37053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054   (exit $ac_status); }; } &&
37055          { ac_try='test -s conftest$ac_exeext'
37056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37057   (eval $ac_try) 2>&5
37058   ac_status=$?
37059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37060   (exit $ac_status); }; }; then
37061   ol_cv_errno_thread_specific=yes
37062 else
37063   echo "$as_me: failed program was:" >&5
37064 sed 's/^/| /' conftest.$ac_ext >&5
37065
37066 ol_cv_errno_thread_specific=no
37067 fi
37068 rm -f conftest.err conftest.$ac_objext \
37069       conftest$ac_exeext conftest.$ac_ext
37070
37071 fi
37072 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37073 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37074
37075                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37076 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37077 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37078   echo $ECHO_N "(cached) $ECHO_C" >&6
37079 else
37080
37081                 cat >conftest.$ac_ext <<_ACEOF
37082 /* confdefs.h.  */
37083 _ACEOF
37084 cat confdefs.h >>conftest.$ac_ext
37085 cat >>conftest.$ac_ext <<_ACEOF
37086 /* end confdefs.h.  */
37087 #include <netdb.h>
37088 int
37089 main ()
37090 {
37091 h_errno = 0;
37092   ;
37093   return 0;
37094 }
37095 _ACEOF
37096 rm -f conftest.$ac_objext conftest$ac_exeext
37097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37098   (eval $ac_link) 2>conftest.er1
37099   ac_status=$?
37100   grep -v '^ *+' conftest.er1 >conftest.err
37101   rm -f conftest.er1
37102   cat conftest.err >&5
37103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37104   (exit $ac_status); } &&
37105          { ac_try='test -z "$ac_c_werror_flag"
37106                          || test ! -s conftest.err'
37107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37108   (eval $ac_try) 2>&5
37109   ac_status=$?
37110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37111   (exit $ac_status); }; } &&
37112          { ac_try='test -s conftest$ac_exeext'
37113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37114   (eval $ac_try) 2>&5
37115   ac_status=$?
37116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37117   (exit $ac_status); }; }; then
37118   ol_cv_h_errno_thread_specific=yes
37119 else
37120   echo "$as_me: failed program was:" >&5
37121 sed 's/^/| /' conftest.$ac_ext >&5
37122
37123 ol_cv_h_errno_thread_specific=no
37124 fi
37125 rm -f conftest.err conftest.$ac_objext \
37126       conftest$ac_exeext conftest.$ac_ext
37127
37128 fi
37129 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37130 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37131
37132         if test $ol_cv_errno_thread_specific != yes \
37133                 -o $ol_cv_h_errno_thread_specific != yes ; then
37134                 LIBS="$LTHREAD_LIBS $LIBS"
37135                 LTHREAD_LIBS=""
37136         fi
37137
37138 fi
37139
37140 if test $ol_link_threads = no ; then
37141         if test $ol_with_threads = yes ; then
37142                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37143 echo "$as_me: error: no suitable thread support" >&2;}
37144    { (exit 1); exit 1; }; }
37145         fi
37146
37147         if test $ol_with_threads = auto ; then
37148                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37149 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37150                 ol_with_threads=no
37151         fi
37152
37153
37154 cat >>confdefs.h <<\_ACEOF
37155 #define NO_THREADS 1
37156 _ACEOF
37157
37158         LTHREAD_LIBS=""
37159 fi
37160
37161 if test $ol_link_threads != no ; then
37162         cat >>confdefs.h <<\_ACEOF
37163 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37164 _ACEOF
37165
37166 fi
37167
37168
37169
37170
37171 for ac_func in \
37172         ctime_r                 \
37173         gethostbyname_r gethostbyaddr_r \
37174
37175 do
37176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37177 echo "$as_me:$LINENO: checking for $ac_func" >&5
37178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37179 if eval "test \"\${$as_ac_var+set}\" = set"; then
37180   echo $ECHO_N "(cached) $ECHO_C" >&6
37181 else
37182   cat >conftest.$ac_ext <<_ACEOF
37183 /* confdefs.h.  */
37184 _ACEOF
37185 cat confdefs.h >>conftest.$ac_ext
37186 cat >>conftest.$ac_ext <<_ACEOF
37187 /* end confdefs.h.  */
37188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37190 #define $ac_func innocuous_$ac_func
37191
37192 /* System header to define __stub macros and hopefully few prototypes,
37193     which can conflict with char $ac_func (); below.
37194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37195     <limits.h> exists even on freestanding compilers.  */
37196
37197 #ifdef __STDC__
37198 # include <limits.h>
37199 #else
37200 # include <assert.h>
37201 #endif
37202
37203 #undef $ac_func
37204
37205 /* Override any gcc2 internal prototype to avoid an error.  */
37206 #ifdef __cplusplus
37207 extern "C"
37208 {
37209 #endif
37210 /* We use char because int might match the return type of a gcc2
37211    builtin and then its argument prototype would still apply.  */
37212 char $ac_func ();
37213 /* The GNU C library defines this for functions which it implements
37214     to always fail with ENOSYS.  Some functions are actually named
37215     something starting with __ and the normal name is an alias.  */
37216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37217 choke me
37218 #else
37219 char (*f) () = $ac_func;
37220 #endif
37221 #ifdef __cplusplus
37222 }
37223 #endif
37224
37225 int
37226 main ()
37227 {
37228 return f != $ac_func;
37229   ;
37230   return 0;
37231 }
37232 _ACEOF
37233 rm -f conftest.$ac_objext conftest$ac_exeext
37234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37235   (eval $ac_link) 2>conftest.er1
37236   ac_status=$?
37237   grep -v '^ *+' conftest.er1 >conftest.err
37238   rm -f conftest.er1
37239   cat conftest.err >&5
37240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37241   (exit $ac_status); } &&
37242          { ac_try='test -z "$ac_c_werror_flag"
37243                          || test ! -s conftest.err'
37244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37245   (eval $ac_try) 2>&5
37246   ac_status=$?
37247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37248   (exit $ac_status); }; } &&
37249          { ac_try='test -s conftest$ac_exeext'
37250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37251   (eval $ac_try) 2>&5
37252   ac_status=$?
37253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37254   (exit $ac_status); }; }; then
37255   eval "$as_ac_var=yes"
37256 else
37257   echo "$as_me: failed program was:" >&5
37258 sed 's/^/| /' conftest.$ac_ext >&5
37259
37260 eval "$as_ac_var=no"
37261 fi
37262 rm -f conftest.err conftest.$ac_objext \
37263       conftest$ac_exeext conftest.$ac_ext
37264 fi
37265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37267 if test `eval echo '${'$as_ac_var'}'` = yes; then
37268   cat >>confdefs.h <<_ACEOF
37269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37270 _ACEOF
37271
37272 fi
37273 done
37274
37275
37276 if test "$ac_cv_func_ctime_r" = no ; then
37277         ol_cv_func_ctime_r_nargs=0
37278 else
37279         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37280 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37281 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37282   echo $ECHO_N "(cached) $ECHO_C" >&6
37283 else
37284   cat >conftest.$ac_ext <<_ACEOF
37285 /* confdefs.h.  */
37286 _ACEOF
37287 cat confdefs.h >>conftest.$ac_ext
37288 cat >>conftest.$ac_ext <<_ACEOF
37289 /* end confdefs.h.  */
37290 #include <time.h>
37291 int
37292 main ()
37293 {
37294 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37295   ;
37296   return 0;
37297 }
37298 _ACEOF
37299 rm -f conftest.$ac_objext
37300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37301   (eval $ac_compile) 2>conftest.er1
37302   ac_status=$?
37303   grep -v '^ *+' conftest.er1 >conftest.err
37304   rm -f conftest.er1
37305   cat conftest.err >&5
37306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37307   (exit $ac_status); } &&
37308          { ac_try='test -z "$ac_c_werror_flag"
37309                          || test ! -s conftest.err'
37310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37311   (eval $ac_try) 2>&5
37312   ac_status=$?
37313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37314   (exit $ac_status); }; } &&
37315          { ac_try='test -s conftest.$ac_objext'
37316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37317   (eval $ac_try) 2>&5
37318   ac_status=$?
37319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37320   (exit $ac_status); }; }; then
37321   ol_cv_func_ctime_r_nargs3=yes
37322 else
37323   echo "$as_me: failed program was:" >&5
37324 sed 's/^/| /' conftest.$ac_ext >&5
37325
37326 ol_cv_func_ctime_r_nargs3=no
37327 fi
37328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37329
37330         cat >conftest.$ac_ext <<_ACEOF
37331 /* confdefs.h.  */
37332 _ACEOF
37333 cat confdefs.h >>conftest.$ac_ext
37334 cat >>conftest.$ac_ext <<_ACEOF
37335 /* end confdefs.h.  */
37336 #include <time.h>
37337 int
37338 main ()
37339 {
37340 time_t ti; char *buffer; ctime_r(&ti,buffer);
37341   ;
37342   return 0;
37343 }
37344 _ACEOF
37345 rm -f conftest.$ac_objext
37346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37347   (eval $ac_compile) 2>conftest.er1
37348   ac_status=$?
37349   grep -v '^ *+' conftest.er1 >conftest.err
37350   rm -f conftest.er1
37351   cat conftest.err >&5
37352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353   (exit $ac_status); } &&
37354          { ac_try='test -z "$ac_c_werror_flag"
37355                          || test ! -s conftest.err'
37356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37357   (eval $ac_try) 2>&5
37358   ac_status=$?
37359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37360   (exit $ac_status); }; } &&
37361          { ac_try='test -s conftest.$ac_objext'
37362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37363   (eval $ac_try) 2>&5
37364   ac_status=$?
37365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37366   (exit $ac_status); }; }; then
37367   ol_cv_func_ctime_r_nargs2=yes
37368 else
37369   echo "$as_me: failed program was:" >&5
37370 sed 's/^/| /' conftest.$ac_ext >&5
37371
37372 ol_cv_func_ctime_r_nargs2=no
37373 fi
37374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37375
37376         if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37377                 $ol_cv_func_ctime_r_nargs2 = no ; then
37378
37379                 ol_cv_func_ctime_r_nargs=3
37380
37381         elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37382                 $ol_cv_func_ctime_r_nargs2 = yes ; then
37383
37384                 ol_cv_func_ctime_r_nargs=2
37385
37386         else
37387                 ol_cv_func_ctime_r_nargs=0
37388         fi
37389
37390 fi
37391 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37392 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37393
37394   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37395
37396 cat >>confdefs.h <<_ACEOF
37397 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37398 _ACEOF
37399
37400   fi
37401
37402 fi
37403
37404 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37405         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37406 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37407 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37408   echo $ECHO_N "(cached) $ECHO_C" >&6
37409 else
37410   cat >conftest.$ac_ext <<_ACEOF
37411 /* confdefs.h.  */
37412 _ACEOF
37413 cat confdefs.h >>conftest.$ac_ext
37414 cat >>conftest.$ac_ext <<_ACEOF
37415 /* end confdefs.h.  */
37416 #include <sys/types.h>
37417 #include <sys/socket.h>
37418 #include <netinet/in.h>
37419 #include <netdb.h>
37420 #define BUFSIZE (sizeof(struct hostent)+10)
37421 int
37422 main ()
37423 {
37424 struct hostent hent; char buffer[BUFSIZE];
37425                 int bufsize=BUFSIZE;int h_errno;
37426                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37427                         buffer, bufsize, &h_errno);
37428   ;
37429   return 0;
37430 }
37431 _ACEOF
37432 rm -f conftest.$ac_objext
37433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37434   (eval $ac_compile) 2>conftest.er1
37435   ac_status=$?
37436   grep -v '^ *+' conftest.er1 >conftest.err
37437   rm -f conftest.er1
37438   cat conftest.err >&5
37439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37440   (exit $ac_status); } &&
37441          { ac_try='test -z "$ac_c_werror_flag"
37442                          || test ! -s conftest.err'
37443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37444   (eval $ac_try) 2>&5
37445   ac_status=$?
37446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37447   (exit $ac_status); }; } &&
37448          { ac_try='test -s conftest.$ac_objext'
37449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37450   (eval $ac_try) 2>&5
37451   ac_status=$?
37452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453   (exit $ac_status); }; }; then
37454   ol_cv_func_gethostbyname_r_nargs5=yes
37455 else
37456   echo "$as_me: failed program was:" >&5
37457 sed 's/^/| /' conftest.$ac_ext >&5
37458
37459 ol_cv_func_gethostbyname_r_nargs5=no
37460 fi
37461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37462
37463         cat >conftest.$ac_ext <<_ACEOF
37464 /* confdefs.h.  */
37465 _ACEOF
37466 cat confdefs.h >>conftest.$ac_ext
37467 cat >>conftest.$ac_ext <<_ACEOF
37468 /* end confdefs.h.  */
37469 #include <sys/types.h>
37470 #include <sys/socket.h>
37471 #include <netinet/in.h>
37472 #include <netdb.h>
37473 #define BUFSIZE (sizeof(struct hostent)+10)
37474 int
37475 main ()
37476 {
37477 struct hostent hent;struct hostent *rhent;
37478                 char buffer[BUFSIZE];
37479                 int bufsize=BUFSIZE;int h_errno;
37480                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37481                         &rhent, &h_errno);
37482   ;
37483   return 0;
37484 }
37485 _ACEOF
37486 rm -f conftest.$ac_objext
37487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37488   (eval $ac_compile) 2>conftest.er1
37489   ac_status=$?
37490   grep -v '^ *+' conftest.er1 >conftest.err
37491   rm -f conftest.er1
37492   cat conftest.err >&5
37493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37494   (exit $ac_status); } &&
37495          { ac_try='test -z "$ac_c_werror_flag"
37496                          || test ! -s conftest.err'
37497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37498   (eval $ac_try) 2>&5
37499   ac_status=$?
37500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37501   (exit $ac_status); }; } &&
37502          { ac_try='test -s conftest.$ac_objext'
37503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37504   (eval $ac_try) 2>&5
37505   ac_status=$?
37506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37507   (exit $ac_status); }; }; then
37508   ol_cv_func_gethostbyname_r_nargs6=yes
37509 else
37510   echo "$as_me: failed program was:" >&5
37511 sed 's/^/| /' conftest.$ac_ext >&5
37512
37513 ol_cv_func_gethostbyname_r_nargs6=no
37514 fi
37515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37516
37517         if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37518                 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37519
37520                 ol_cv_func_gethostbyname_r_nargs=5
37521
37522         elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37523                 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37524
37525                 ol_cv_func_gethostbyname_r_nargs=6
37526
37527         else
37528                 ol_cv_func_gethostbyname_r_nargs=0
37529         fi
37530
37531 fi
37532 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37533 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37534   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37535
37536 cat >>confdefs.h <<_ACEOF
37537 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37538 _ACEOF
37539
37540   fi
37541
37542 else
37543         ol_cv_func_gethostbyname_r_nargs=0
37544 fi
37545
37546 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37547         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37548 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37549 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37550   echo $ECHO_N "(cached) $ECHO_C" >&6
37551 else
37552   cat >conftest.$ac_ext <<_ACEOF
37553 /* confdefs.h.  */
37554 _ACEOF
37555 cat confdefs.h >>conftest.$ac_ext
37556 cat >>conftest.$ac_ext <<_ACEOF
37557 /* end confdefs.h.  */
37558 #include <sys/types.h>
37559 #include <sys/socket.h>
37560 #include <netinet/in.h>
37561 #include <netdb.h>
37562 #define BUFSIZE (sizeof(struct hostent)+10)
37563 int
37564 main ()
37565 {
37566 struct hostent hent; char buffer[BUFSIZE];
37567             struct in_addr add;
37568             size_t alen=sizeof(struct in_addr);
37569             int bufsize=BUFSIZE;int h_errno;
37570                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37571                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37572   ;
37573   return 0;
37574 }
37575 _ACEOF
37576 rm -f conftest.$ac_objext
37577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37578   (eval $ac_compile) 2>conftest.er1
37579   ac_status=$?
37580   grep -v '^ *+' conftest.er1 >conftest.err
37581   rm -f conftest.er1
37582   cat conftest.err >&5
37583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37584   (exit $ac_status); } &&
37585          { ac_try='test -z "$ac_c_werror_flag"
37586                          || test ! -s conftest.err'
37587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37588   (eval $ac_try) 2>&5
37589   ac_status=$?
37590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37591   (exit $ac_status); }; } &&
37592          { ac_try='test -s conftest.$ac_objext'
37593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37594   (eval $ac_try) 2>&5
37595   ac_status=$?
37596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37597   (exit $ac_status); }; }; then
37598   ol_cv_func_gethostbyaddr_r_nargs7=yes
37599 else
37600   echo "$as_me: failed program was:" >&5
37601 sed 's/^/| /' conftest.$ac_ext >&5
37602
37603 ol_cv_func_gethostbyaddr_r_nargs7=no
37604 fi
37605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37606
37607         cat >conftest.$ac_ext <<_ACEOF
37608 /* confdefs.h.  */
37609 _ACEOF
37610 cat confdefs.h >>conftest.$ac_ext
37611 cat >>conftest.$ac_ext <<_ACEOF
37612 /* end confdefs.h.  */
37613 #include <sys/types.h>
37614 #include <sys/socket.h>
37615 #include <netinet/in.h>
37616 #include <netdb.h>
37617 #define BUFSIZE (sizeof(struct hostent)+10)
37618 int
37619 main ()
37620 {
37621 struct hostent hent;
37622                 struct hostent *rhent; char buffer[BUFSIZE];
37623                 struct in_addr add;
37624                 size_t alen=sizeof(struct in_addr);
37625                 int bufsize=BUFSIZE;int h_errno;
37626                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37627                         alen, AF_INET, &hent, buffer, bufsize,
37628                         &rhent, &h_errno);
37629   ;
37630   return 0;
37631 }
37632 _ACEOF
37633 rm -f conftest.$ac_objext
37634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37635   (eval $ac_compile) 2>conftest.er1
37636   ac_status=$?
37637   grep -v '^ *+' conftest.er1 >conftest.err
37638   rm -f conftest.er1
37639   cat conftest.err >&5
37640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37641   (exit $ac_status); } &&
37642          { ac_try='test -z "$ac_c_werror_flag"
37643                          || test ! -s conftest.err'
37644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37645   (eval $ac_try) 2>&5
37646   ac_status=$?
37647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37648   (exit $ac_status); }; } &&
37649          { ac_try='test -s conftest.$ac_objext'
37650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37651   (eval $ac_try) 2>&5
37652   ac_status=$?
37653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37654   (exit $ac_status); }; }; then
37655   ol_cv_func_gethostbyaddr_r_nargs8=yes
37656 else
37657   echo "$as_me: failed program was:" >&5
37658 sed 's/^/| /' conftest.$ac_ext >&5
37659
37660 ol_cv_func_gethostbyaddr_r_nargs8=no
37661 fi
37662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37663
37664         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37665                 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37666
37667                 ol_cv_func_gethostbyaddr_r_nargs=7
37668
37669         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37670                 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37671
37672                 ol_cv_func_gethostbyaddr_r_nargs=8
37673
37674         else
37675                 ol_cv_func_gethostbyaddr_r_nargs=0
37676         fi
37677
37678 fi
37679 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37680 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37681   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37682
37683 cat >>confdefs.h <<_ACEOF
37684 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37685 _ACEOF
37686
37687   fi
37688
37689 else
37690         ol_cv_func_gethostbyaddr_r_nargs=0
37691 fi
37692
37693 ol_link_ldbm=no
37694
37695 if test $ol_with_ldbm_api = auto \
37696         -o $ol_with_ldbm_api = berkeley \
37697         -o $ol_with_ldbm_api = bcompat ; then
37698
37699         if test $ol_with_ldbm_api = bcompat; then \
37700
37701
37702 for ac_header in db_185.h db.h
37703 do
37704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37706   echo "$as_me:$LINENO: checking for $ac_header" >&5
37707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37709   echo $ECHO_N "(cached) $ECHO_C" >&6
37710 fi
37711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37713 else
37714   # Is the header compilable?
37715 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37717 cat >conftest.$ac_ext <<_ACEOF
37718 /* confdefs.h.  */
37719 _ACEOF
37720 cat confdefs.h >>conftest.$ac_ext
37721 cat >>conftest.$ac_ext <<_ACEOF
37722 /* end confdefs.h.  */
37723 $ac_includes_default
37724 #include <$ac_header>
37725 _ACEOF
37726 rm -f conftest.$ac_objext
37727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37728   (eval $ac_compile) 2>conftest.er1
37729   ac_status=$?
37730   grep -v '^ *+' conftest.er1 >conftest.err
37731   rm -f conftest.er1
37732   cat conftest.err >&5
37733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37734   (exit $ac_status); } &&
37735          { ac_try='test -z "$ac_c_werror_flag"
37736                          || test ! -s conftest.err'
37737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37738   (eval $ac_try) 2>&5
37739   ac_status=$?
37740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37741   (exit $ac_status); }; } &&
37742          { ac_try='test -s conftest.$ac_objext'
37743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37744   (eval $ac_try) 2>&5
37745   ac_status=$?
37746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37747   (exit $ac_status); }; }; then
37748   ac_header_compiler=yes
37749 else
37750   echo "$as_me: failed program was:" >&5
37751 sed 's/^/| /' conftest.$ac_ext >&5
37752
37753 ac_header_compiler=no
37754 fi
37755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37757 echo "${ECHO_T}$ac_header_compiler" >&6
37758
37759 # Is the header present?
37760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37762 cat >conftest.$ac_ext <<_ACEOF
37763 /* confdefs.h.  */
37764 _ACEOF
37765 cat confdefs.h >>conftest.$ac_ext
37766 cat >>conftest.$ac_ext <<_ACEOF
37767 /* end confdefs.h.  */
37768 #include <$ac_header>
37769 _ACEOF
37770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37771   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37772   ac_status=$?
37773   grep -v '^ *+' conftest.er1 >conftest.err
37774   rm -f conftest.er1
37775   cat conftest.err >&5
37776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37777   (exit $ac_status); } >/dev/null; then
37778   if test -s conftest.err; then
37779     ac_cpp_err=$ac_c_preproc_warn_flag
37780     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37781   else
37782     ac_cpp_err=
37783   fi
37784 else
37785   ac_cpp_err=yes
37786 fi
37787 if test -z "$ac_cpp_err"; then
37788   ac_header_preproc=yes
37789 else
37790   echo "$as_me: failed program was:" >&5
37791 sed 's/^/| /' conftest.$ac_ext >&5
37792
37793   ac_header_preproc=no
37794 fi
37795 rm -f conftest.err conftest.$ac_ext
37796 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37797 echo "${ECHO_T}$ac_header_preproc" >&6
37798
37799 # So?  What about this header?
37800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37801   yes:no: )
37802     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37806     ac_header_preproc=yes
37807     ;;
37808   no:yes:* )
37809     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37811     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37812 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37813     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37815     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37816 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37819     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37821     (
37822       cat <<\_ASBOX
37823 ## ------------------------------------------ ##
37824 ## Report this to the AC_PACKAGE_NAME lists.  ##
37825 ## ------------------------------------------ ##
37826 _ASBOX
37827     ) |
37828       sed "s/^/$as_me: WARNING:     /" >&2
37829     ;;
37830 esac
37831 echo "$as_me:$LINENO: checking for $ac_header" >&5
37832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37834   echo $ECHO_N "(cached) $ECHO_C" >&6
37835 else
37836   eval "$as_ac_Header=\$ac_header_preproc"
37837 fi
37838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37840
37841 fi
37842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37843   cat >>confdefs.h <<_ACEOF
37844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37845 _ACEOF
37846
37847 fi
37848
37849 done
37850
37851 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
37852         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
37853 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
37854 if test "${ol_cv_header_db1+set}" = set; then
37855   echo $ECHO_N "(cached) $ECHO_C" >&6
37856 else
37857
37858                 cat >conftest.$ac_ext <<_ACEOF
37859 /* confdefs.h.  */
37860 _ACEOF
37861 cat confdefs.h >>conftest.$ac_ext
37862 cat >>conftest.$ac_ext <<_ACEOF
37863 /* end confdefs.h.  */
37864
37865 #if HAVE_DB_185_H
37866 #       include <db_185.h>
37867 #else
37868 #       include <db.h>
37869 #endif
37870
37871  /* this check could be improved */
37872 #ifndef DB_VERSION_MAJOR
37873 #       define DB_VERSION_MAJOR 1
37874 #endif
37875
37876 #if DB_VERSION_MAJOR == 1
37877         __db_version_1
37878 #endif
37879
37880 _ACEOF
37881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37882   $EGREP "__db_version_1" >/dev/null 2>&1; then
37883   ol_cv_header_db1=yes
37884 else
37885   ol_cv_header_db1=no
37886 fi
37887 rm -f conftest*
37888
37889 fi
37890 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
37891 echo "${ECHO_T}$ol_cv_header_db1" >&6
37892
37893         if test $ol_cv_header_db1 = yes ; then
37894                 ol_cv_lib_db=no
37895 if test $ol_cv_lib_db = no ; then
37896         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
37897 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
37898 if test "${ol_cv_db_none+set}" = set; then
37899   echo $ECHO_N "(cached) $ECHO_C" >&6
37900 else
37901
37902         ol_DB_LIB=
37903         ol_LIBS=$LIBS
37904         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37905
37906         cat >conftest.$ac_ext <<_ACEOF
37907 /* confdefs.h.  */
37908 _ACEOF
37909 cat confdefs.h >>conftest.$ac_ext
37910 cat >>conftest.$ac_ext <<_ACEOF
37911 /* end confdefs.h.  */
37912
37913 #ifdef HAVE_DB_185_H
37914 # include <db_185.h>
37915 #else
37916 # include <db.h>
37917 #endif
37918
37919 #ifndef DB_VERSION_MAJOR
37920 # define DB_VERSION_MAJOR 1
37921 #endif
37922
37923 #ifndef NULL
37924 #define NULL ((void*)0)
37925 #endif
37926
37927 int
37928 main ()
37929 {
37930
37931 #if DB_VERSION_MAJOR > 1
37932         {
37933                 char *version;
37934                 int major, minor, patch;
37935
37936                 version = db_version( &major, &minor, &patch );
37937
37938                 if( major != DB_VERSION_MAJOR ||
37939                         minor < DB_VERSION_MINOR )
37940                 {
37941                         printf("Berkeley DB version mismatch\n"
37942                                 "\theader: %s\n\tlibrary: %s\n",
37943                                 DB_VERSION_STRING, version);
37944                         return 1;
37945                 }
37946         }
37947 #endif
37948
37949 #if DB_VERSION_MAJOR > 2
37950         db_env_create( NULL, 0 );
37951 #elif DB_VERSION_MAJOR > 1
37952         db_appexit( NULL );
37953 #else
37954         (void) dbopen( NULL, 0, 0, 0, NULL);
37955 #endif
37956
37957   ;
37958   return 0;
37959 }
37960 _ACEOF
37961 rm -f conftest.$ac_objext conftest$ac_exeext
37962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37963   (eval $ac_link) 2>conftest.er1
37964   ac_status=$?
37965   grep -v '^ *+' conftest.er1 >conftest.err
37966   rm -f conftest.er1
37967   cat conftest.err >&5
37968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37969   (exit $ac_status); } &&
37970          { ac_try='test -z "$ac_c_werror_flag"
37971                          || test ! -s conftest.err'
37972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37973   (eval $ac_try) 2>&5
37974   ac_status=$?
37975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976   (exit $ac_status); }; } &&
37977          { ac_try='test -s conftest$ac_exeext'
37978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37979   (eval $ac_try) 2>&5
37980   ac_status=$?
37981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37982   (exit $ac_status); }; }; then
37983   ol_cv_db_none=yes
37984 else
37985   echo "$as_me: failed program was:" >&5
37986 sed 's/^/| /' conftest.$ac_ext >&5
37987
37988 ol_cv_db_none=no
37989 fi
37990 rm -f conftest.err conftest.$ac_objext \
37991       conftest$ac_exeext conftest.$ac_ext
37992
37993         LIBS="$ol_LIBS"
37994
37995 fi
37996 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
37997 echo "${ECHO_T}$ol_cv_db_none" >&6
37998
37999         if test $ol_cv_db_none = yes ; then
38000                 ol_cv_lib_db=yes
38001         fi
38002 fi
38003
38004 if test $ol_cv_lib_db = no ; then
38005         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
38006 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
38007 if test "${ol_cv_db_db43+set}" = set; then
38008   echo $ECHO_N "(cached) $ECHO_C" >&6
38009 else
38010
38011         ol_DB_LIB=-ldb43
38012         ol_LIBS=$LIBS
38013         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38014
38015         cat >conftest.$ac_ext <<_ACEOF
38016 /* confdefs.h.  */
38017 _ACEOF
38018 cat confdefs.h >>conftest.$ac_ext
38019 cat >>conftest.$ac_ext <<_ACEOF
38020 /* end confdefs.h.  */
38021
38022 #ifdef HAVE_DB_185_H
38023 # include <db_185.h>
38024 #else
38025 # include <db.h>
38026 #endif
38027
38028 #ifndef DB_VERSION_MAJOR
38029 # define DB_VERSION_MAJOR 1
38030 #endif
38031
38032 #ifndef NULL
38033 #define NULL ((void*)0)
38034 #endif
38035
38036 int
38037 main ()
38038 {
38039
38040 #if DB_VERSION_MAJOR > 1
38041         {
38042                 char *version;
38043                 int major, minor, patch;
38044
38045                 version = db_version( &major, &minor, &patch );
38046
38047                 if( major != DB_VERSION_MAJOR ||
38048                         minor < DB_VERSION_MINOR )
38049                 {
38050                         printf("Berkeley DB version mismatch\n"
38051                                 "\theader: %s\n\tlibrary: %s\n",
38052                                 DB_VERSION_STRING, version);
38053                         return 1;
38054                 }
38055         }
38056 #endif
38057
38058 #if DB_VERSION_MAJOR > 2
38059         db_env_create( NULL, 0 );
38060 #elif DB_VERSION_MAJOR > 1
38061         db_appexit( NULL );
38062 #else
38063         (void) dbopen( NULL, 0, 0, 0, NULL);
38064 #endif
38065
38066   ;
38067   return 0;
38068 }
38069 _ACEOF
38070 rm -f conftest.$ac_objext conftest$ac_exeext
38071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38072   (eval $ac_link) 2>conftest.er1
38073   ac_status=$?
38074   grep -v '^ *+' conftest.er1 >conftest.err
38075   rm -f conftest.er1
38076   cat conftest.err >&5
38077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38078   (exit $ac_status); } &&
38079          { ac_try='test -z "$ac_c_werror_flag"
38080                          || test ! -s conftest.err'
38081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38082   (eval $ac_try) 2>&5
38083   ac_status=$?
38084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38085   (exit $ac_status); }; } &&
38086          { ac_try='test -s conftest$ac_exeext'
38087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38088   (eval $ac_try) 2>&5
38089   ac_status=$?
38090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38091   (exit $ac_status); }; }; then
38092   ol_cv_db_db43=yes
38093 else
38094   echo "$as_me: failed program was:" >&5
38095 sed 's/^/| /' conftest.$ac_ext >&5
38096
38097 ol_cv_db_db43=no
38098 fi
38099 rm -f conftest.err conftest.$ac_objext \
38100       conftest$ac_exeext conftest.$ac_ext
38101
38102         LIBS="$ol_LIBS"
38103
38104 fi
38105 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38106 echo "${ECHO_T}$ol_cv_db_db43" >&6
38107
38108         if test $ol_cv_db_db43 = yes ; then
38109                 ol_cv_lib_db=-ldb43
38110         fi
38111 fi
38112
38113 if test $ol_cv_lib_db = no ; then
38114         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38115 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38116 if test "${ol_cv_db_db_43+set}" = set; then
38117   echo $ECHO_N "(cached) $ECHO_C" >&6
38118 else
38119
38120         ol_DB_LIB=-ldb-43
38121         ol_LIBS=$LIBS
38122         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38123
38124         cat >conftest.$ac_ext <<_ACEOF
38125 /* confdefs.h.  */
38126 _ACEOF
38127 cat confdefs.h >>conftest.$ac_ext
38128 cat >>conftest.$ac_ext <<_ACEOF
38129 /* end confdefs.h.  */
38130
38131 #ifdef HAVE_DB_185_H
38132 # include <db_185.h>
38133 #else
38134 # include <db.h>
38135 #endif
38136
38137 #ifndef DB_VERSION_MAJOR
38138 # define DB_VERSION_MAJOR 1
38139 #endif
38140
38141 #ifndef NULL
38142 #define NULL ((void*)0)
38143 #endif
38144
38145 int
38146 main ()
38147 {
38148
38149 #if DB_VERSION_MAJOR > 1
38150         {
38151                 char *version;
38152                 int major, minor, patch;
38153
38154                 version = db_version( &major, &minor, &patch );
38155
38156                 if( major != DB_VERSION_MAJOR ||
38157                         minor < DB_VERSION_MINOR )
38158                 {
38159                         printf("Berkeley DB version mismatch\n"
38160                                 "\theader: %s\n\tlibrary: %s\n",
38161                                 DB_VERSION_STRING, version);
38162                         return 1;
38163                 }
38164         }
38165 #endif
38166
38167 #if DB_VERSION_MAJOR > 2
38168         db_env_create( NULL, 0 );
38169 #elif DB_VERSION_MAJOR > 1
38170         db_appexit( NULL );
38171 #else
38172         (void) dbopen( NULL, 0, 0, 0, NULL);
38173 #endif
38174
38175   ;
38176   return 0;
38177 }
38178 _ACEOF
38179 rm -f conftest.$ac_objext conftest$ac_exeext
38180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38181   (eval $ac_link) 2>conftest.er1
38182   ac_status=$?
38183   grep -v '^ *+' conftest.er1 >conftest.err
38184   rm -f conftest.er1
38185   cat conftest.err >&5
38186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38187   (exit $ac_status); } &&
38188          { ac_try='test -z "$ac_c_werror_flag"
38189                          || test ! -s conftest.err'
38190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38191   (eval $ac_try) 2>&5
38192   ac_status=$?
38193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38194   (exit $ac_status); }; } &&
38195          { ac_try='test -s conftest$ac_exeext'
38196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38197   (eval $ac_try) 2>&5
38198   ac_status=$?
38199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38200   (exit $ac_status); }; }; then
38201   ol_cv_db_db_43=yes
38202 else
38203   echo "$as_me: failed program was:" >&5
38204 sed 's/^/| /' conftest.$ac_ext >&5
38205
38206 ol_cv_db_db_43=no
38207 fi
38208 rm -f conftest.err conftest.$ac_objext \
38209       conftest$ac_exeext conftest.$ac_ext
38210
38211         LIBS="$ol_LIBS"
38212
38213 fi
38214 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38215 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38216
38217         if test $ol_cv_db_db_43 = yes ; then
38218                 ol_cv_lib_db=-ldb-43
38219         fi
38220 fi
38221
38222 if test $ol_cv_lib_db = no ; then
38223         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38224 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38225 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38226   echo $ECHO_N "(cached) $ECHO_C" >&6
38227 else
38228
38229         ol_DB_LIB=-ldb-4.3
38230         ol_LIBS=$LIBS
38231         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38232
38233         cat >conftest.$ac_ext <<_ACEOF
38234 /* confdefs.h.  */
38235 _ACEOF
38236 cat confdefs.h >>conftest.$ac_ext
38237 cat >>conftest.$ac_ext <<_ACEOF
38238 /* end confdefs.h.  */
38239
38240 #ifdef HAVE_DB_185_H
38241 # include <db_185.h>
38242 #else
38243 # include <db.h>
38244 #endif
38245
38246 #ifndef DB_VERSION_MAJOR
38247 # define DB_VERSION_MAJOR 1
38248 #endif
38249
38250 #ifndef NULL
38251 #define NULL ((void*)0)
38252 #endif
38253
38254 int
38255 main ()
38256 {
38257
38258 #if DB_VERSION_MAJOR > 1
38259         {
38260                 char *version;
38261                 int major, minor, patch;
38262
38263                 version = db_version( &major, &minor, &patch );
38264
38265                 if( major != DB_VERSION_MAJOR ||
38266                         minor < DB_VERSION_MINOR )
38267                 {
38268                         printf("Berkeley DB version mismatch\n"
38269                                 "\theader: %s\n\tlibrary: %s\n",
38270                                 DB_VERSION_STRING, version);
38271                         return 1;
38272                 }
38273         }
38274 #endif
38275
38276 #if DB_VERSION_MAJOR > 2
38277         db_env_create( NULL, 0 );
38278 #elif DB_VERSION_MAJOR > 1
38279         db_appexit( NULL );
38280 #else
38281         (void) dbopen( NULL, 0, 0, 0, NULL);
38282 #endif
38283
38284   ;
38285   return 0;
38286 }
38287 _ACEOF
38288 rm -f conftest.$ac_objext conftest$ac_exeext
38289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38290   (eval $ac_link) 2>conftest.er1
38291   ac_status=$?
38292   grep -v '^ *+' conftest.er1 >conftest.err
38293   rm -f conftest.er1
38294   cat conftest.err >&5
38295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38296   (exit $ac_status); } &&
38297          { ac_try='test -z "$ac_c_werror_flag"
38298                          || test ! -s conftest.err'
38299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38300   (eval $ac_try) 2>&5
38301   ac_status=$?
38302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38303   (exit $ac_status); }; } &&
38304          { ac_try='test -s conftest$ac_exeext'
38305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38306   (eval $ac_try) 2>&5
38307   ac_status=$?
38308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38309   (exit $ac_status); }; }; then
38310   ol_cv_db_db_4_dot_3=yes
38311 else
38312   echo "$as_me: failed program was:" >&5
38313 sed 's/^/| /' conftest.$ac_ext >&5
38314
38315 ol_cv_db_db_4_dot_3=no
38316 fi
38317 rm -f conftest.err conftest.$ac_objext \
38318       conftest$ac_exeext conftest.$ac_ext
38319
38320         LIBS="$ol_LIBS"
38321
38322 fi
38323 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38324 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38325
38326         if test $ol_cv_db_db_4_dot_3 = yes ; then
38327                 ol_cv_lib_db=-ldb-4.3
38328         fi
38329 fi
38330
38331 if test $ol_cv_lib_db = no ; then
38332         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38333 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38334 if test "${ol_cv_db_db_4_3+set}" = set; then
38335   echo $ECHO_N "(cached) $ECHO_C" >&6
38336 else
38337
38338         ol_DB_LIB=-ldb-4-3
38339         ol_LIBS=$LIBS
38340         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38341
38342         cat >conftest.$ac_ext <<_ACEOF
38343 /* confdefs.h.  */
38344 _ACEOF
38345 cat confdefs.h >>conftest.$ac_ext
38346 cat >>conftest.$ac_ext <<_ACEOF
38347 /* end confdefs.h.  */
38348
38349 #ifdef HAVE_DB_185_H
38350 # include <db_185.h>
38351 #else
38352 # include <db.h>
38353 #endif
38354
38355 #ifndef DB_VERSION_MAJOR
38356 # define DB_VERSION_MAJOR 1
38357 #endif
38358
38359 #ifndef NULL
38360 #define NULL ((void*)0)
38361 #endif
38362
38363 int
38364 main ()
38365 {
38366
38367 #if DB_VERSION_MAJOR > 1
38368         {
38369                 char *version;
38370                 int major, minor, patch;
38371
38372                 version = db_version( &major, &minor, &patch );
38373
38374                 if( major != DB_VERSION_MAJOR ||
38375                         minor < DB_VERSION_MINOR )
38376                 {
38377                         printf("Berkeley DB version mismatch\n"
38378                                 "\theader: %s\n\tlibrary: %s\n",
38379                                 DB_VERSION_STRING, version);
38380                         return 1;
38381                 }
38382         }
38383 #endif
38384
38385 #if DB_VERSION_MAJOR > 2
38386         db_env_create( NULL, 0 );
38387 #elif DB_VERSION_MAJOR > 1
38388         db_appexit( NULL );
38389 #else
38390         (void) dbopen( NULL, 0, 0, 0, NULL);
38391 #endif
38392
38393   ;
38394   return 0;
38395 }
38396 _ACEOF
38397 rm -f conftest.$ac_objext conftest$ac_exeext
38398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38399   (eval $ac_link) 2>conftest.er1
38400   ac_status=$?
38401   grep -v '^ *+' conftest.er1 >conftest.err
38402   rm -f conftest.er1
38403   cat conftest.err >&5
38404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38405   (exit $ac_status); } &&
38406          { ac_try='test -z "$ac_c_werror_flag"
38407                          || test ! -s conftest.err'
38408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38409   (eval $ac_try) 2>&5
38410   ac_status=$?
38411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38412   (exit $ac_status); }; } &&
38413          { ac_try='test -s conftest$ac_exeext'
38414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38415   (eval $ac_try) 2>&5
38416   ac_status=$?
38417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38418   (exit $ac_status); }; }; then
38419   ol_cv_db_db_4_3=yes
38420 else
38421   echo "$as_me: failed program was:" >&5
38422 sed 's/^/| /' conftest.$ac_ext >&5
38423
38424 ol_cv_db_db_4_3=no
38425 fi
38426 rm -f conftest.err conftest.$ac_objext \
38427       conftest$ac_exeext conftest.$ac_ext
38428
38429         LIBS="$ol_LIBS"
38430
38431 fi
38432 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38433 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38434
38435         if test $ol_cv_db_db_4_3 = yes ; then
38436                 ol_cv_lib_db=-ldb-4-3
38437         fi
38438 fi
38439
38440 if test $ol_cv_lib_db = no ; then
38441         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38442 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38443 if test "${ol_cv_db_db42+set}" = set; then
38444   echo $ECHO_N "(cached) $ECHO_C" >&6
38445 else
38446
38447         ol_DB_LIB=-ldb42
38448         ol_LIBS=$LIBS
38449         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38450
38451         cat >conftest.$ac_ext <<_ACEOF
38452 /* confdefs.h.  */
38453 _ACEOF
38454 cat confdefs.h >>conftest.$ac_ext
38455 cat >>conftest.$ac_ext <<_ACEOF
38456 /* end confdefs.h.  */
38457
38458 #ifdef HAVE_DB_185_H
38459 # include <db_185.h>
38460 #else
38461 # include <db.h>
38462 #endif
38463
38464 #ifndef DB_VERSION_MAJOR
38465 # define DB_VERSION_MAJOR 1
38466 #endif
38467
38468 #ifndef NULL
38469 #define NULL ((void*)0)
38470 #endif
38471
38472 int
38473 main ()
38474 {
38475
38476 #if DB_VERSION_MAJOR > 1
38477         {
38478                 char *version;
38479                 int major, minor, patch;
38480
38481                 version = db_version( &major, &minor, &patch );
38482
38483                 if( major != DB_VERSION_MAJOR ||
38484                         minor < DB_VERSION_MINOR )
38485                 {
38486                         printf("Berkeley DB version mismatch\n"
38487                                 "\theader: %s\n\tlibrary: %s\n",
38488                                 DB_VERSION_STRING, version);
38489                         return 1;
38490                 }
38491         }
38492 #endif
38493
38494 #if DB_VERSION_MAJOR > 2
38495         db_env_create( NULL, 0 );
38496 #elif DB_VERSION_MAJOR > 1
38497         db_appexit( NULL );
38498 #else
38499         (void) dbopen( NULL, 0, 0, 0, NULL);
38500 #endif
38501
38502   ;
38503   return 0;
38504 }
38505 _ACEOF
38506 rm -f conftest.$ac_objext conftest$ac_exeext
38507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38508   (eval $ac_link) 2>conftest.er1
38509   ac_status=$?
38510   grep -v '^ *+' conftest.er1 >conftest.err
38511   rm -f conftest.er1
38512   cat conftest.err >&5
38513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38514   (exit $ac_status); } &&
38515          { ac_try='test -z "$ac_c_werror_flag"
38516                          || test ! -s conftest.err'
38517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38518   (eval $ac_try) 2>&5
38519   ac_status=$?
38520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38521   (exit $ac_status); }; } &&
38522          { ac_try='test -s conftest$ac_exeext'
38523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38524   (eval $ac_try) 2>&5
38525   ac_status=$?
38526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38527   (exit $ac_status); }; }; then
38528   ol_cv_db_db42=yes
38529 else
38530   echo "$as_me: failed program was:" >&5
38531 sed 's/^/| /' conftest.$ac_ext >&5
38532
38533 ol_cv_db_db42=no
38534 fi
38535 rm -f conftest.err conftest.$ac_objext \
38536       conftest$ac_exeext conftest.$ac_ext
38537
38538         LIBS="$ol_LIBS"
38539
38540 fi
38541 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38542 echo "${ECHO_T}$ol_cv_db_db42" >&6
38543
38544         if test $ol_cv_db_db42 = yes ; then
38545                 ol_cv_lib_db=-ldb42
38546         fi
38547 fi
38548
38549 if test $ol_cv_lib_db = no ; then
38550         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38551 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38552 if test "${ol_cv_db_db_42+set}" = set; then
38553   echo $ECHO_N "(cached) $ECHO_C" >&6
38554 else
38555
38556         ol_DB_LIB=-ldb-42
38557         ol_LIBS=$LIBS
38558         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38559
38560         cat >conftest.$ac_ext <<_ACEOF
38561 /* confdefs.h.  */
38562 _ACEOF
38563 cat confdefs.h >>conftest.$ac_ext
38564 cat >>conftest.$ac_ext <<_ACEOF
38565 /* end confdefs.h.  */
38566
38567 #ifdef HAVE_DB_185_H
38568 # include <db_185.h>
38569 #else
38570 # include <db.h>
38571 #endif
38572
38573 #ifndef DB_VERSION_MAJOR
38574 # define DB_VERSION_MAJOR 1
38575 #endif
38576
38577 #ifndef NULL
38578 #define NULL ((void*)0)
38579 #endif
38580
38581 int
38582 main ()
38583 {
38584
38585 #if DB_VERSION_MAJOR > 1
38586         {
38587                 char *version;
38588                 int major, minor, patch;
38589
38590                 version = db_version( &major, &minor, &patch );
38591
38592                 if( major != DB_VERSION_MAJOR ||
38593                         minor < DB_VERSION_MINOR )
38594                 {
38595                         printf("Berkeley DB version mismatch\n"
38596                                 "\theader: %s\n\tlibrary: %s\n",
38597                                 DB_VERSION_STRING, version);
38598                         return 1;
38599                 }
38600         }
38601 #endif
38602
38603 #if DB_VERSION_MAJOR > 2
38604         db_env_create( NULL, 0 );
38605 #elif DB_VERSION_MAJOR > 1
38606         db_appexit( NULL );
38607 #else
38608         (void) dbopen( NULL, 0, 0, 0, NULL);
38609 #endif
38610
38611   ;
38612   return 0;
38613 }
38614 _ACEOF
38615 rm -f conftest.$ac_objext conftest$ac_exeext
38616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38617   (eval $ac_link) 2>conftest.er1
38618   ac_status=$?
38619   grep -v '^ *+' conftest.er1 >conftest.err
38620   rm -f conftest.er1
38621   cat conftest.err >&5
38622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38623   (exit $ac_status); } &&
38624          { ac_try='test -z "$ac_c_werror_flag"
38625                          || test ! -s conftest.err'
38626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38627   (eval $ac_try) 2>&5
38628   ac_status=$?
38629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38630   (exit $ac_status); }; } &&
38631          { ac_try='test -s conftest$ac_exeext'
38632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38633   (eval $ac_try) 2>&5
38634   ac_status=$?
38635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38636   (exit $ac_status); }; }; then
38637   ol_cv_db_db_42=yes
38638 else
38639   echo "$as_me: failed program was:" >&5
38640 sed 's/^/| /' conftest.$ac_ext >&5
38641
38642 ol_cv_db_db_42=no
38643 fi
38644 rm -f conftest.err conftest.$ac_objext \
38645       conftest$ac_exeext conftest.$ac_ext
38646
38647         LIBS="$ol_LIBS"
38648
38649 fi
38650 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38651 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38652
38653         if test $ol_cv_db_db_42 = yes ; then
38654                 ol_cv_lib_db=-ldb-42
38655         fi
38656 fi
38657
38658 if test $ol_cv_lib_db = no ; then
38659         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38660 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38661 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38662   echo $ECHO_N "(cached) $ECHO_C" >&6
38663 else
38664
38665         ol_DB_LIB=-ldb-4.2
38666         ol_LIBS=$LIBS
38667         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38668
38669         cat >conftest.$ac_ext <<_ACEOF
38670 /* confdefs.h.  */
38671 _ACEOF
38672 cat confdefs.h >>conftest.$ac_ext
38673 cat >>conftest.$ac_ext <<_ACEOF
38674 /* end confdefs.h.  */
38675
38676 #ifdef HAVE_DB_185_H
38677 # include <db_185.h>
38678 #else
38679 # include <db.h>
38680 #endif
38681
38682 #ifndef DB_VERSION_MAJOR
38683 # define DB_VERSION_MAJOR 1
38684 #endif
38685
38686 #ifndef NULL
38687 #define NULL ((void*)0)
38688 #endif
38689
38690 int
38691 main ()
38692 {
38693
38694 #if DB_VERSION_MAJOR > 1
38695         {
38696                 char *version;
38697                 int major, minor, patch;
38698
38699                 version = db_version( &major, &minor, &patch );
38700
38701                 if( major != DB_VERSION_MAJOR ||
38702                         minor < DB_VERSION_MINOR )
38703                 {
38704                         printf("Berkeley DB version mismatch\n"
38705                                 "\theader: %s\n\tlibrary: %s\n",
38706                                 DB_VERSION_STRING, version);
38707                         return 1;
38708                 }
38709         }
38710 #endif
38711
38712 #if DB_VERSION_MAJOR > 2
38713         db_env_create( NULL, 0 );
38714 #elif DB_VERSION_MAJOR > 1
38715         db_appexit( NULL );
38716 #else
38717         (void) dbopen( NULL, 0, 0, 0, NULL);
38718 #endif
38719
38720   ;
38721   return 0;
38722 }
38723 _ACEOF
38724 rm -f conftest.$ac_objext conftest$ac_exeext
38725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38726   (eval $ac_link) 2>conftest.er1
38727   ac_status=$?
38728   grep -v '^ *+' conftest.er1 >conftest.err
38729   rm -f conftest.er1
38730   cat conftest.err >&5
38731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38732   (exit $ac_status); } &&
38733          { ac_try='test -z "$ac_c_werror_flag"
38734                          || test ! -s conftest.err'
38735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38736   (eval $ac_try) 2>&5
38737   ac_status=$?
38738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38739   (exit $ac_status); }; } &&
38740          { ac_try='test -s conftest$ac_exeext'
38741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38742   (eval $ac_try) 2>&5
38743   ac_status=$?
38744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38745   (exit $ac_status); }; }; then
38746   ol_cv_db_db_4_dot_2=yes
38747 else
38748   echo "$as_me: failed program was:" >&5
38749 sed 's/^/| /' conftest.$ac_ext >&5
38750
38751 ol_cv_db_db_4_dot_2=no
38752 fi
38753 rm -f conftest.err conftest.$ac_objext \
38754       conftest$ac_exeext conftest.$ac_ext
38755
38756         LIBS="$ol_LIBS"
38757
38758 fi
38759 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
38760 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
38761
38762         if test $ol_cv_db_db_4_dot_2 = yes ; then
38763                 ol_cv_lib_db=-ldb-4.2
38764         fi
38765 fi
38766
38767 if test $ol_cv_lib_db = no ; then
38768         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
38769 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
38770 if test "${ol_cv_db_db_4_2+set}" = set; then
38771   echo $ECHO_N "(cached) $ECHO_C" >&6
38772 else
38773
38774         ol_DB_LIB=-ldb-4-2
38775         ol_LIBS=$LIBS
38776         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38777
38778         cat >conftest.$ac_ext <<_ACEOF
38779 /* confdefs.h.  */
38780 _ACEOF
38781 cat confdefs.h >>conftest.$ac_ext
38782 cat >>conftest.$ac_ext <<_ACEOF
38783 /* end confdefs.h.  */
38784
38785 #ifdef HAVE_DB_185_H
38786 # include <db_185.h>
38787 #else
38788 # include <db.h>
38789 #endif
38790
38791 #ifndef DB_VERSION_MAJOR
38792 # define DB_VERSION_MAJOR 1
38793 #endif
38794
38795 #ifndef NULL
38796 #define NULL ((void*)0)
38797 #endif
38798
38799 int
38800 main ()
38801 {
38802
38803 #if DB_VERSION_MAJOR > 1
38804         {
38805                 char *version;
38806                 int major, minor, patch;
38807
38808                 version = db_version( &major, &minor, &patch );
38809
38810                 if( major != DB_VERSION_MAJOR ||
38811                         minor < DB_VERSION_MINOR )
38812                 {
38813                         printf("Berkeley DB version mismatch\n"
38814                                 "\theader: %s\n\tlibrary: %s\n",
38815                                 DB_VERSION_STRING, version);
38816                         return 1;
38817                 }
38818         }
38819 #endif
38820
38821 #if DB_VERSION_MAJOR > 2
38822         db_env_create( NULL, 0 );
38823 #elif DB_VERSION_MAJOR > 1
38824         db_appexit( NULL );
38825 #else
38826         (void) dbopen( NULL, 0, 0, 0, NULL);
38827 #endif
38828
38829   ;
38830   return 0;
38831 }
38832 _ACEOF
38833 rm -f conftest.$ac_objext conftest$ac_exeext
38834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38835   (eval $ac_link) 2>conftest.er1
38836   ac_status=$?
38837   grep -v '^ *+' conftest.er1 >conftest.err
38838   rm -f conftest.er1
38839   cat conftest.err >&5
38840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38841   (exit $ac_status); } &&
38842          { ac_try='test -z "$ac_c_werror_flag"
38843                          || test ! -s conftest.err'
38844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38845   (eval $ac_try) 2>&5
38846   ac_status=$?
38847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38848   (exit $ac_status); }; } &&
38849          { ac_try='test -s conftest$ac_exeext'
38850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38851   (eval $ac_try) 2>&5
38852   ac_status=$?
38853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38854   (exit $ac_status); }; }; then
38855   ol_cv_db_db_4_2=yes
38856 else
38857   echo "$as_me: failed program was:" >&5
38858 sed 's/^/| /' conftest.$ac_ext >&5
38859
38860 ol_cv_db_db_4_2=no
38861 fi
38862 rm -f conftest.err conftest.$ac_objext \
38863       conftest$ac_exeext conftest.$ac_ext
38864
38865         LIBS="$ol_LIBS"
38866
38867 fi
38868 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
38869 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
38870
38871         if test $ol_cv_db_db_4_2 = yes ; then
38872                 ol_cv_lib_db=-ldb-4-2
38873         fi
38874 fi
38875
38876 if test $ol_cv_lib_db = no ; then
38877         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
38878 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
38879 if test "${ol_cv_db_db_4+set}" = set; then
38880   echo $ECHO_N "(cached) $ECHO_C" >&6
38881 else
38882
38883         ol_DB_LIB=-ldb-4
38884         ol_LIBS=$LIBS
38885         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38886
38887         cat >conftest.$ac_ext <<_ACEOF
38888 /* confdefs.h.  */
38889 _ACEOF
38890 cat confdefs.h >>conftest.$ac_ext
38891 cat >>conftest.$ac_ext <<_ACEOF
38892 /* end confdefs.h.  */
38893
38894 #ifdef HAVE_DB_185_H
38895 # include <db_185.h>
38896 #else
38897 # include <db.h>
38898 #endif
38899
38900 #ifndef DB_VERSION_MAJOR
38901 # define DB_VERSION_MAJOR 1
38902 #endif
38903
38904 #ifndef NULL
38905 #define NULL ((void*)0)
38906 #endif
38907
38908 int
38909 main ()
38910 {
38911
38912 #if DB_VERSION_MAJOR > 1
38913         {
38914                 char *version;
38915                 int major, minor, patch;
38916
38917                 version = db_version( &major, &minor, &patch );
38918
38919                 if( major != DB_VERSION_MAJOR ||
38920                         minor < DB_VERSION_MINOR )
38921                 {
38922                         printf("Berkeley DB version mismatch\n"
38923                                 "\theader: %s\n\tlibrary: %s\n",
38924                                 DB_VERSION_STRING, version);
38925                         return 1;
38926                 }
38927         }
38928 #endif
38929
38930 #if DB_VERSION_MAJOR > 2
38931         db_env_create( NULL, 0 );
38932 #elif DB_VERSION_MAJOR > 1
38933         db_appexit( NULL );
38934 #else
38935         (void) dbopen( NULL, 0, 0, 0, NULL);
38936 #endif
38937
38938   ;
38939   return 0;
38940 }
38941 _ACEOF
38942 rm -f conftest.$ac_objext conftest$ac_exeext
38943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38944   (eval $ac_link) 2>conftest.er1
38945   ac_status=$?
38946   grep -v '^ *+' conftest.er1 >conftest.err
38947   rm -f conftest.er1
38948   cat conftest.err >&5
38949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38950   (exit $ac_status); } &&
38951          { ac_try='test -z "$ac_c_werror_flag"
38952                          || test ! -s conftest.err'
38953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38954   (eval $ac_try) 2>&5
38955   ac_status=$?
38956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38957   (exit $ac_status); }; } &&
38958          { ac_try='test -s conftest$ac_exeext'
38959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38960   (eval $ac_try) 2>&5
38961   ac_status=$?
38962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38963   (exit $ac_status); }; }; then
38964   ol_cv_db_db_4=yes
38965 else
38966   echo "$as_me: failed program was:" >&5
38967 sed 's/^/| /' conftest.$ac_ext >&5
38968
38969 ol_cv_db_db_4=no
38970 fi
38971 rm -f conftest.err conftest.$ac_objext \
38972       conftest$ac_exeext conftest.$ac_ext
38973
38974         LIBS="$ol_LIBS"
38975
38976 fi
38977 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
38978 echo "${ECHO_T}$ol_cv_db_db_4" >&6
38979
38980         if test $ol_cv_db_db_4 = yes ; then
38981                 ol_cv_lib_db=-ldb-4
38982         fi
38983 fi
38984
38985 if test $ol_cv_lib_db = no ; then
38986         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
38987 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
38988 if test "${ol_cv_db_db4+set}" = set; then
38989   echo $ECHO_N "(cached) $ECHO_C" >&6
38990 else
38991
38992         ol_DB_LIB=-ldb4
38993         ol_LIBS=$LIBS
38994         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38995
38996         cat >conftest.$ac_ext <<_ACEOF
38997 /* confdefs.h.  */
38998 _ACEOF
38999 cat confdefs.h >>conftest.$ac_ext
39000 cat >>conftest.$ac_ext <<_ACEOF
39001 /* end confdefs.h.  */
39002
39003 #ifdef HAVE_DB_185_H
39004 # include <db_185.h>
39005 #else
39006 # include <db.h>
39007 #endif
39008
39009 #ifndef DB_VERSION_MAJOR
39010 # define DB_VERSION_MAJOR 1
39011 #endif
39012
39013 #ifndef NULL
39014 #define NULL ((void*)0)
39015 #endif
39016
39017 int
39018 main ()
39019 {
39020
39021 #if DB_VERSION_MAJOR > 1
39022         {
39023                 char *version;
39024                 int major, minor, patch;
39025
39026                 version = db_version( &major, &minor, &patch );
39027
39028                 if( major != DB_VERSION_MAJOR ||
39029                         minor < DB_VERSION_MINOR )
39030                 {
39031                         printf("Berkeley DB version mismatch\n"
39032                                 "\theader: %s\n\tlibrary: %s\n",
39033                                 DB_VERSION_STRING, version);
39034                         return 1;
39035                 }
39036         }
39037 #endif
39038
39039 #if DB_VERSION_MAJOR > 2
39040         db_env_create( NULL, 0 );
39041 #elif DB_VERSION_MAJOR > 1
39042         db_appexit( NULL );
39043 #else
39044         (void) dbopen( NULL, 0, 0, 0, NULL);
39045 #endif
39046
39047   ;
39048   return 0;
39049 }
39050 _ACEOF
39051 rm -f conftest.$ac_objext conftest$ac_exeext
39052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39053   (eval $ac_link) 2>conftest.er1
39054   ac_status=$?
39055   grep -v '^ *+' conftest.er1 >conftest.err
39056   rm -f conftest.er1
39057   cat conftest.err >&5
39058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39059   (exit $ac_status); } &&
39060          { ac_try='test -z "$ac_c_werror_flag"
39061                          || test ! -s conftest.err'
39062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39063   (eval $ac_try) 2>&5
39064   ac_status=$?
39065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39066   (exit $ac_status); }; } &&
39067          { ac_try='test -s conftest$ac_exeext'
39068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39069   (eval $ac_try) 2>&5
39070   ac_status=$?
39071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39072   (exit $ac_status); }; }; then
39073   ol_cv_db_db4=yes
39074 else
39075   echo "$as_me: failed program was:" >&5
39076 sed 's/^/| /' conftest.$ac_ext >&5
39077
39078 ol_cv_db_db4=no
39079 fi
39080 rm -f conftest.err conftest.$ac_objext \
39081       conftest$ac_exeext conftest.$ac_ext
39082
39083         LIBS="$ol_LIBS"
39084
39085 fi
39086 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39087 echo "${ECHO_T}$ol_cv_db_db4" >&6
39088
39089         if test $ol_cv_db_db4 = yes ; then
39090                 ol_cv_lib_db=-ldb4
39091         fi
39092 fi
39093
39094 if test $ol_cv_lib_db = no ; then
39095         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39096 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39097 if test "${ol_cv_db_db+set}" = set; then
39098   echo $ECHO_N "(cached) $ECHO_C" >&6
39099 else
39100
39101         ol_DB_LIB=-ldb
39102         ol_LIBS=$LIBS
39103         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39104
39105         cat >conftest.$ac_ext <<_ACEOF
39106 /* confdefs.h.  */
39107 _ACEOF
39108 cat confdefs.h >>conftest.$ac_ext
39109 cat >>conftest.$ac_ext <<_ACEOF
39110 /* end confdefs.h.  */
39111
39112 #ifdef HAVE_DB_185_H
39113 # include <db_185.h>
39114 #else
39115 # include <db.h>
39116 #endif
39117
39118 #ifndef DB_VERSION_MAJOR
39119 # define DB_VERSION_MAJOR 1
39120 #endif
39121
39122 #ifndef NULL
39123 #define NULL ((void*)0)
39124 #endif
39125
39126 int
39127 main ()
39128 {
39129
39130 #if DB_VERSION_MAJOR > 1
39131         {
39132                 char *version;
39133                 int major, minor, patch;
39134
39135                 version = db_version( &major, &minor, &patch );
39136
39137                 if( major != DB_VERSION_MAJOR ||
39138                         minor < DB_VERSION_MINOR )
39139                 {
39140                         printf("Berkeley DB version mismatch\n"
39141                                 "\theader: %s\n\tlibrary: %s\n",
39142                                 DB_VERSION_STRING, version);
39143                         return 1;
39144                 }
39145         }
39146 #endif
39147
39148 #if DB_VERSION_MAJOR > 2
39149         db_env_create( NULL, 0 );
39150 #elif DB_VERSION_MAJOR > 1
39151         db_appexit( NULL );
39152 #else
39153         (void) dbopen( NULL, 0, 0, 0, NULL);
39154 #endif
39155
39156   ;
39157   return 0;
39158 }
39159 _ACEOF
39160 rm -f conftest.$ac_objext conftest$ac_exeext
39161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39162   (eval $ac_link) 2>conftest.er1
39163   ac_status=$?
39164   grep -v '^ *+' conftest.er1 >conftest.err
39165   rm -f conftest.er1
39166   cat conftest.err >&5
39167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39168   (exit $ac_status); } &&
39169          { ac_try='test -z "$ac_c_werror_flag"
39170                          || test ! -s conftest.err'
39171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39172   (eval $ac_try) 2>&5
39173   ac_status=$?
39174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39175   (exit $ac_status); }; } &&
39176          { ac_try='test -s conftest$ac_exeext'
39177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39178   (eval $ac_try) 2>&5
39179   ac_status=$?
39180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39181   (exit $ac_status); }; }; then
39182   ol_cv_db_db=yes
39183 else
39184   echo "$as_me: failed program was:" >&5
39185 sed 's/^/| /' conftest.$ac_ext >&5
39186
39187 ol_cv_db_db=no
39188 fi
39189 rm -f conftest.err conftest.$ac_objext \
39190       conftest$ac_exeext conftest.$ac_ext
39191
39192         LIBS="$ol_LIBS"
39193
39194 fi
39195 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39196 echo "${ECHO_T}$ol_cv_db_db" >&6
39197
39198         if test $ol_cv_db_db = yes ; then
39199                 ol_cv_lib_db=-ldb
39200         fi
39201 fi
39202
39203 if test $ol_cv_lib_db = no ; then
39204         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39205 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39206 if test "${ol_cv_db_db41+set}" = set; then
39207   echo $ECHO_N "(cached) $ECHO_C" >&6
39208 else
39209
39210         ol_DB_LIB=-ldb41
39211         ol_LIBS=$LIBS
39212         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39213
39214         cat >conftest.$ac_ext <<_ACEOF
39215 /* confdefs.h.  */
39216 _ACEOF
39217 cat confdefs.h >>conftest.$ac_ext
39218 cat >>conftest.$ac_ext <<_ACEOF
39219 /* end confdefs.h.  */
39220
39221 #ifdef HAVE_DB_185_H
39222 # include <db_185.h>
39223 #else
39224 # include <db.h>
39225 #endif
39226
39227 #ifndef DB_VERSION_MAJOR
39228 # define DB_VERSION_MAJOR 1
39229 #endif
39230
39231 #ifndef NULL
39232 #define NULL ((void*)0)
39233 #endif
39234
39235 int
39236 main ()
39237 {
39238
39239 #if DB_VERSION_MAJOR > 1
39240         {
39241                 char *version;
39242                 int major, minor, patch;
39243
39244                 version = db_version( &major, &minor, &patch );
39245
39246                 if( major != DB_VERSION_MAJOR ||
39247                         minor < DB_VERSION_MINOR )
39248                 {
39249                         printf("Berkeley DB version mismatch\n"
39250                                 "\theader: %s\n\tlibrary: %s\n",
39251                                 DB_VERSION_STRING, version);
39252                         return 1;
39253                 }
39254         }
39255 #endif
39256
39257 #if DB_VERSION_MAJOR > 2
39258         db_env_create( NULL, 0 );
39259 #elif DB_VERSION_MAJOR > 1
39260         db_appexit( NULL );
39261 #else
39262         (void) dbopen( NULL, 0, 0, 0, NULL);
39263 #endif
39264
39265   ;
39266   return 0;
39267 }
39268 _ACEOF
39269 rm -f conftest.$ac_objext conftest$ac_exeext
39270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39271   (eval $ac_link) 2>conftest.er1
39272   ac_status=$?
39273   grep -v '^ *+' conftest.er1 >conftest.err
39274   rm -f conftest.er1
39275   cat conftest.err >&5
39276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39277   (exit $ac_status); } &&
39278          { ac_try='test -z "$ac_c_werror_flag"
39279                          || test ! -s conftest.err'
39280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39281   (eval $ac_try) 2>&5
39282   ac_status=$?
39283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39284   (exit $ac_status); }; } &&
39285          { ac_try='test -s conftest$ac_exeext'
39286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39287   (eval $ac_try) 2>&5
39288   ac_status=$?
39289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39290   (exit $ac_status); }; }; then
39291   ol_cv_db_db41=yes
39292 else
39293   echo "$as_me: failed program was:" >&5
39294 sed 's/^/| /' conftest.$ac_ext >&5
39295
39296 ol_cv_db_db41=no
39297 fi
39298 rm -f conftest.err conftest.$ac_objext \
39299       conftest$ac_exeext conftest.$ac_ext
39300
39301         LIBS="$ol_LIBS"
39302
39303 fi
39304 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39305 echo "${ECHO_T}$ol_cv_db_db41" >&6
39306
39307         if test $ol_cv_db_db41 = yes ; then
39308                 ol_cv_lib_db=-ldb41
39309         fi
39310 fi
39311
39312 if test $ol_cv_lib_db = no ; then
39313         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39314 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39315 if test "${ol_cv_db_db_41+set}" = set; then
39316   echo $ECHO_N "(cached) $ECHO_C" >&6
39317 else
39318
39319         ol_DB_LIB=-ldb-41
39320         ol_LIBS=$LIBS
39321         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39322
39323         cat >conftest.$ac_ext <<_ACEOF
39324 /* confdefs.h.  */
39325 _ACEOF
39326 cat confdefs.h >>conftest.$ac_ext
39327 cat >>conftest.$ac_ext <<_ACEOF
39328 /* end confdefs.h.  */
39329
39330 #ifdef HAVE_DB_185_H
39331 # include <db_185.h>
39332 #else
39333 # include <db.h>
39334 #endif
39335
39336 #ifndef DB_VERSION_MAJOR
39337 # define DB_VERSION_MAJOR 1
39338 #endif
39339
39340 #ifndef NULL
39341 #define NULL ((void*)0)
39342 #endif
39343
39344 int
39345 main ()
39346 {
39347
39348 #if DB_VERSION_MAJOR > 1
39349         {
39350                 char *version;
39351                 int major, minor, patch;
39352
39353                 version = db_version( &major, &minor, &patch );
39354
39355                 if( major != DB_VERSION_MAJOR ||
39356                         minor < DB_VERSION_MINOR )
39357                 {
39358                         printf("Berkeley DB version mismatch\n"
39359                                 "\theader: %s\n\tlibrary: %s\n",
39360                                 DB_VERSION_STRING, version);
39361                         return 1;
39362                 }
39363         }
39364 #endif
39365
39366 #if DB_VERSION_MAJOR > 2
39367         db_env_create( NULL, 0 );
39368 #elif DB_VERSION_MAJOR > 1
39369         db_appexit( NULL );
39370 #else
39371         (void) dbopen( NULL, 0, 0, 0, NULL);
39372 #endif
39373
39374   ;
39375   return 0;
39376 }
39377 _ACEOF
39378 rm -f conftest.$ac_objext conftest$ac_exeext
39379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39380   (eval $ac_link) 2>conftest.er1
39381   ac_status=$?
39382   grep -v '^ *+' conftest.er1 >conftest.err
39383   rm -f conftest.er1
39384   cat conftest.err >&5
39385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39386   (exit $ac_status); } &&
39387          { ac_try='test -z "$ac_c_werror_flag"
39388                          || test ! -s conftest.err'
39389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39390   (eval $ac_try) 2>&5
39391   ac_status=$?
39392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39393   (exit $ac_status); }; } &&
39394          { ac_try='test -s conftest$ac_exeext'
39395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39396   (eval $ac_try) 2>&5
39397   ac_status=$?
39398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39399   (exit $ac_status); }; }; then
39400   ol_cv_db_db_41=yes
39401 else
39402   echo "$as_me: failed program was:" >&5
39403 sed 's/^/| /' conftest.$ac_ext >&5
39404
39405 ol_cv_db_db_41=no
39406 fi
39407 rm -f conftest.err conftest.$ac_objext \
39408       conftest$ac_exeext conftest.$ac_ext
39409
39410         LIBS="$ol_LIBS"
39411
39412 fi
39413 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39414 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39415
39416         if test $ol_cv_db_db_41 = yes ; then
39417                 ol_cv_lib_db=-ldb-41
39418         fi
39419 fi
39420
39421 if test $ol_cv_lib_db = no ; then
39422         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39423 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39424 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39425   echo $ECHO_N "(cached) $ECHO_C" >&6
39426 else
39427
39428         ol_DB_LIB=-ldb-4.1
39429         ol_LIBS=$LIBS
39430         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39431
39432         cat >conftest.$ac_ext <<_ACEOF
39433 /* confdefs.h.  */
39434 _ACEOF
39435 cat confdefs.h >>conftest.$ac_ext
39436 cat >>conftest.$ac_ext <<_ACEOF
39437 /* end confdefs.h.  */
39438
39439 #ifdef HAVE_DB_185_H
39440 # include <db_185.h>
39441 #else
39442 # include <db.h>
39443 #endif
39444
39445 #ifndef DB_VERSION_MAJOR
39446 # define DB_VERSION_MAJOR 1
39447 #endif
39448
39449 #ifndef NULL
39450 #define NULL ((void*)0)
39451 #endif
39452
39453 int
39454 main ()
39455 {
39456
39457 #if DB_VERSION_MAJOR > 1
39458         {
39459                 char *version;
39460                 int major, minor, patch;
39461
39462                 version = db_version( &major, &minor, &patch );
39463
39464                 if( major != DB_VERSION_MAJOR ||
39465                         minor < DB_VERSION_MINOR )
39466                 {
39467                         printf("Berkeley DB version mismatch\n"
39468                                 "\theader: %s\n\tlibrary: %s\n",
39469                                 DB_VERSION_STRING, version);
39470                         return 1;
39471                 }
39472         }
39473 #endif
39474
39475 #if DB_VERSION_MAJOR > 2
39476         db_env_create( NULL, 0 );
39477 #elif DB_VERSION_MAJOR > 1
39478         db_appexit( NULL );
39479 #else
39480         (void) dbopen( NULL, 0, 0, 0, NULL);
39481 #endif
39482
39483   ;
39484   return 0;
39485 }
39486 _ACEOF
39487 rm -f conftest.$ac_objext conftest$ac_exeext
39488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39489   (eval $ac_link) 2>conftest.er1
39490   ac_status=$?
39491   grep -v '^ *+' conftest.er1 >conftest.err
39492   rm -f conftest.er1
39493   cat conftest.err >&5
39494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39495   (exit $ac_status); } &&
39496          { ac_try='test -z "$ac_c_werror_flag"
39497                          || test ! -s conftest.err'
39498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39499   (eval $ac_try) 2>&5
39500   ac_status=$?
39501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39502   (exit $ac_status); }; } &&
39503          { ac_try='test -s conftest$ac_exeext'
39504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39505   (eval $ac_try) 2>&5
39506   ac_status=$?
39507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39508   (exit $ac_status); }; }; then
39509   ol_cv_db_db_4_dot_1=yes
39510 else
39511   echo "$as_me: failed program was:" >&5
39512 sed 's/^/| /' conftest.$ac_ext >&5
39513
39514 ol_cv_db_db_4_dot_1=no
39515 fi
39516 rm -f conftest.err conftest.$ac_objext \
39517       conftest$ac_exeext conftest.$ac_ext
39518
39519         LIBS="$ol_LIBS"
39520
39521 fi
39522 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39523 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39524
39525         if test $ol_cv_db_db_4_dot_1 = yes ; then
39526                 ol_cv_lib_db=-ldb-4.1
39527         fi
39528 fi
39529
39530 if test $ol_cv_lib_db = no ; then
39531         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39532 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39533 if test "${ol_cv_db_db_4_1+set}" = set; then
39534   echo $ECHO_N "(cached) $ECHO_C" >&6
39535 else
39536
39537         ol_DB_LIB=-ldb-4-1
39538         ol_LIBS=$LIBS
39539         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39540
39541         cat >conftest.$ac_ext <<_ACEOF
39542 /* confdefs.h.  */
39543 _ACEOF
39544 cat confdefs.h >>conftest.$ac_ext
39545 cat >>conftest.$ac_ext <<_ACEOF
39546 /* end confdefs.h.  */
39547
39548 #ifdef HAVE_DB_185_H
39549 # include <db_185.h>
39550 #else
39551 # include <db.h>
39552 #endif
39553
39554 #ifndef DB_VERSION_MAJOR
39555 # define DB_VERSION_MAJOR 1
39556 #endif
39557
39558 #ifndef NULL
39559 #define NULL ((void*)0)
39560 #endif
39561
39562 int
39563 main ()
39564 {
39565
39566 #if DB_VERSION_MAJOR > 1
39567         {
39568                 char *version;
39569                 int major, minor, patch;
39570
39571                 version = db_version( &major, &minor, &patch );
39572
39573                 if( major != DB_VERSION_MAJOR ||
39574                         minor < DB_VERSION_MINOR )
39575                 {
39576                         printf("Berkeley DB version mismatch\n"
39577                                 "\theader: %s\n\tlibrary: %s\n",
39578                                 DB_VERSION_STRING, version);
39579                         return 1;
39580                 }
39581         }
39582 #endif
39583
39584 #if DB_VERSION_MAJOR > 2
39585         db_env_create( NULL, 0 );
39586 #elif DB_VERSION_MAJOR > 1
39587         db_appexit( NULL );
39588 #else
39589         (void) dbopen( NULL, 0, 0, 0, NULL);
39590 #endif
39591
39592   ;
39593   return 0;
39594 }
39595 _ACEOF
39596 rm -f conftest.$ac_objext conftest$ac_exeext
39597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39598   (eval $ac_link) 2>conftest.er1
39599   ac_status=$?
39600   grep -v '^ *+' conftest.er1 >conftest.err
39601   rm -f conftest.er1
39602   cat conftest.err >&5
39603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39604   (exit $ac_status); } &&
39605          { ac_try='test -z "$ac_c_werror_flag"
39606                          || test ! -s conftest.err'
39607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39608   (eval $ac_try) 2>&5
39609   ac_status=$?
39610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39611   (exit $ac_status); }; } &&
39612          { ac_try='test -s conftest$ac_exeext'
39613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39614   (eval $ac_try) 2>&5
39615   ac_status=$?
39616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39617   (exit $ac_status); }; }; then
39618   ol_cv_db_db_4_1=yes
39619 else
39620   echo "$as_me: failed program was:" >&5
39621 sed 's/^/| /' conftest.$ac_ext >&5
39622
39623 ol_cv_db_db_4_1=no
39624 fi
39625 rm -f conftest.err conftest.$ac_objext \
39626       conftest$ac_exeext conftest.$ac_ext
39627
39628         LIBS="$ol_LIBS"
39629
39630 fi
39631 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39632 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39633
39634         if test $ol_cv_db_db_4_1 = yes ; then
39635                 ol_cv_lib_db=-ldb-4-1
39636         fi
39637 fi
39638
39639 if test $ol_cv_lib_db = no ; then
39640         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39641 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39642 if test "${ol_cv_db_db3+set}" = set; then
39643   echo $ECHO_N "(cached) $ECHO_C" >&6
39644 else
39645
39646         ol_DB_LIB=-ldb3
39647         ol_LIBS=$LIBS
39648         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39649
39650         cat >conftest.$ac_ext <<_ACEOF
39651 /* confdefs.h.  */
39652 _ACEOF
39653 cat confdefs.h >>conftest.$ac_ext
39654 cat >>conftest.$ac_ext <<_ACEOF
39655 /* end confdefs.h.  */
39656
39657 #ifdef HAVE_DB_185_H
39658 # include <db_185.h>
39659 #else
39660 # include <db.h>
39661 #endif
39662
39663 #ifndef DB_VERSION_MAJOR
39664 # define DB_VERSION_MAJOR 1
39665 #endif
39666
39667 #ifndef NULL
39668 #define NULL ((void*)0)
39669 #endif
39670
39671 int
39672 main ()
39673 {
39674
39675 #if DB_VERSION_MAJOR > 1
39676         {
39677                 char *version;
39678                 int major, minor, patch;
39679
39680                 version = db_version( &major, &minor, &patch );
39681
39682                 if( major != DB_VERSION_MAJOR ||
39683                         minor < DB_VERSION_MINOR )
39684                 {
39685                         printf("Berkeley DB version mismatch\n"
39686                                 "\theader: %s\n\tlibrary: %s\n",
39687                                 DB_VERSION_STRING, version);
39688                         return 1;
39689                 }
39690         }
39691 #endif
39692
39693 #if DB_VERSION_MAJOR > 2
39694         db_env_create( NULL, 0 );
39695 #elif DB_VERSION_MAJOR > 1
39696         db_appexit( NULL );
39697 #else
39698         (void) dbopen( NULL, 0, 0, 0, NULL);
39699 #endif
39700
39701   ;
39702   return 0;
39703 }
39704 _ACEOF
39705 rm -f conftest.$ac_objext conftest$ac_exeext
39706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39707   (eval $ac_link) 2>conftest.er1
39708   ac_status=$?
39709   grep -v '^ *+' conftest.er1 >conftest.err
39710   rm -f conftest.er1
39711   cat conftest.err >&5
39712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39713   (exit $ac_status); } &&
39714          { ac_try='test -z "$ac_c_werror_flag"
39715                          || test ! -s conftest.err'
39716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39717   (eval $ac_try) 2>&5
39718   ac_status=$?
39719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39720   (exit $ac_status); }; } &&
39721          { ac_try='test -s conftest$ac_exeext'
39722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39723   (eval $ac_try) 2>&5
39724   ac_status=$?
39725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39726   (exit $ac_status); }; }; then
39727   ol_cv_db_db3=yes
39728 else
39729   echo "$as_me: failed program was:" >&5
39730 sed 's/^/| /' conftest.$ac_ext >&5
39731
39732 ol_cv_db_db3=no
39733 fi
39734 rm -f conftest.err conftest.$ac_objext \
39735       conftest$ac_exeext conftest.$ac_ext
39736
39737         LIBS="$ol_LIBS"
39738
39739 fi
39740 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
39741 echo "${ECHO_T}$ol_cv_db_db3" >&6
39742
39743         if test $ol_cv_db_db3 = yes ; then
39744                 ol_cv_lib_db=-ldb3
39745         fi
39746 fi
39747
39748 if test $ol_cv_lib_db = no ; then
39749         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
39750 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
39751 if test "${ol_cv_db_db_3+set}" = set; then
39752   echo $ECHO_N "(cached) $ECHO_C" >&6
39753 else
39754
39755         ol_DB_LIB=-ldb-3
39756         ol_LIBS=$LIBS
39757         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39758
39759         cat >conftest.$ac_ext <<_ACEOF
39760 /* confdefs.h.  */
39761 _ACEOF
39762 cat confdefs.h >>conftest.$ac_ext
39763 cat >>conftest.$ac_ext <<_ACEOF
39764 /* end confdefs.h.  */
39765
39766 #ifdef HAVE_DB_185_H
39767 # include <db_185.h>
39768 #else
39769 # include <db.h>
39770 #endif
39771
39772 #ifndef DB_VERSION_MAJOR
39773 # define DB_VERSION_MAJOR 1
39774 #endif
39775
39776 #ifndef NULL
39777 #define NULL ((void*)0)
39778 #endif
39779
39780 int
39781 main ()
39782 {
39783
39784 #if DB_VERSION_MAJOR > 1
39785         {
39786                 char *version;
39787                 int major, minor, patch;
39788
39789                 version = db_version( &major, &minor, &patch );
39790
39791                 if( major != DB_VERSION_MAJOR ||
39792                         minor < DB_VERSION_MINOR )
39793                 {
39794                         printf("Berkeley DB version mismatch\n"
39795                                 "\theader: %s\n\tlibrary: %s\n",
39796                                 DB_VERSION_STRING, version);
39797                         return 1;
39798                 }
39799         }
39800 #endif
39801
39802 #if DB_VERSION_MAJOR > 2
39803         db_env_create( NULL, 0 );
39804 #elif DB_VERSION_MAJOR > 1
39805         db_appexit( NULL );
39806 #else
39807         (void) dbopen( NULL, 0, 0, 0, NULL);
39808 #endif
39809
39810   ;
39811   return 0;
39812 }
39813 _ACEOF
39814 rm -f conftest.$ac_objext conftest$ac_exeext
39815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39816   (eval $ac_link) 2>conftest.er1
39817   ac_status=$?
39818   grep -v '^ *+' conftest.er1 >conftest.err
39819   rm -f conftest.er1
39820   cat conftest.err >&5
39821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39822   (exit $ac_status); } &&
39823          { ac_try='test -z "$ac_c_werror_flag"
39824                          || test ! -s conftest.err'
39825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39826   (eval $ac_try) 2>&5
39827   ac_status=$?
39828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39829   (exit $ac_status); }; } &&
39830          { ac_try='test -s conftest$ac_exeext'
39831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39832   (eval $ac_try) 2>&5
39833   ac_status=$?
39834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39835   (exit $ac_status); }; }; then
39836   ol_cv_db_db_3=yes
39837 else
39838   echo "$as_me: failed program was:" >&5
39839 sed 's/^/| /' conftest.$ac_ext >&5
39840
39841 ol_cv_db_db_3=no
39842 fi
39843 rm -f conftest.err conftest.$ac_objext \
39844       conftest$ac_exeext conftest.$ac_ext
39845
39846         LIBS="$ol_LIBS"
39847
39848 fi
39849 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
39850 echo "${ECHO_T}$ol_cv_db_db_3" >&6
39851
39852         if test $ol_cv_db_db_3 = yes ; then
39853                 ol_cv_lib_db=-ldb-3
39854         fi
39855 fi
39856
39857 if test $ol_cv_lib_db = no ; then
39858         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
39859 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
39860 if test "${ol_cv_db_db2+set}" = set; then
39861   echo $ECHO_N "(cached) $ECHO_C" >&6
39862 else
39863
39864         ol_DB_LIB=-ldb2
39865         ol_LIBS=$LIBS
39866         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39867
39868         cat >conftest.$ac_ext <<_ACEOF
39869 /* confdefs.h.  */
39870 _ACEOF
39871 cat confdefs.h >>conftest.$ac_ext
39872 cat >>conftest.$ac_ext <<_ACEOF
39873 /* end confdefs.h.  */
39874
39875 #ifdef HAVE_DB_185_H
39876 # include <db_185.h>
39877 #else
39878 # include <db.h>
39879 #endif
39880
39881 #ifndef DB_VERSION_MAJOR
39882 # define DB_VERSION_MAJOR 1
39883 #endif
39884
39885 #ifndef NULL
39886 #define NULL ((void*)0)
39887 #endif
39888
39889 int
39890 main ()
39891 {
39892
39893 #if DB_VERSION_MAJOR > 1
39894         {
39895                 char *version;
39896                 int major, minor, patch;
39897
39898                 version = db_version( &major, &minor, &patch );
39899
39900                 if( major != DB_VERSION_MAJOR ||
39901                         minor < DB_VERSION_MINOR )
39902                 {
39903                         printf("Berkeley DB version mismatch\n"
39904                                 "\theader: %s\n\tlibrary: %s\n",
39905                                 DB_VERSION_STRING, version);
39906                         return 1;
39907                 }
39908         }
39909 #endif
39910
39911 #if DB_VERSION_MAJOR > 2
39912         db_env_create( NULL, 0 );
39913 #elif DB_VERSION_MAJOR > 1
39914         db_appexit( NULL );
39915 #else
39916         (void) dbopen( NULL, 0, 0, 0, NULL);
39917 #endif
39918
39919   ;
39920   return 0;
39921 }
39922 _ACEOF
39923 rm -f conftest.$ac_objext conftest$ac_exeext
39924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39925   (eval $ac_link) 2>conftest.er1
39926   ac_status=$?
39927   grep -v '^ *+' conftest.er1 >conftest.err
39928   rm -f conftest.er1
39929   cat conftest.err >&5
39930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39931   (exit $ac_status); } &&
39932          { ac_try='test -z "$ac_c_werror_flag"
39933                          || test ! -s conftest.err'
39934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39935   (eval $ac_try) 2>&5
39936   ac_status=$?
39937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39938   (exit $ac_status); }; } &&
39939          { ac_try='test -s conftest$ac_exeext'
39940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39941   (eval $ac_try) 2>&5
39942   ac_status=$?
39943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39944   (exit $ac_status); }; }; then
39945   ol_cv_db_db2=yes
39946 else
39947   echo "$as_me: failed program was:" >&5
39948 sed 's/^/| /' conftest.$ac_ext >&5
39949
39950 ol_cv_db_db2=no
39951 fi
39952 rm -f conftest.err conftest.$ac_objext \
39953       conftest$ac_exeext conftest.$ac_ext
39954
39955         LIBS="$ol_LIBS"
39956
39957 fi
39958 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
39959 echo "${ECHO_T}$ol_cv_db_db2" >&6
39960
39961         if test $ol_cv_db_db2 = yes ; then
39962                 ol_cv_lib_db=-ldb2
39963         fi
39964 fi
39965
39966 if test $ol_cv_lib_db = no ; then
39967         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
39968 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
39969 if test "${ol_cv_db_db_2+set}" = set; then
39970   echo $ECHO_N "(cached) $ECHO_C" >&6
39971 else
39972
39973         ol_DB_LIB=-ldb-2
39974         ol_LIBS=$LIBS
39975         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39976
39977         cat >conftest.$ac_ext <<_ACEOF
39978 /* confdefs.h.  */
39979 _ACEOF
39980 cat confdefs.h >>conftest.$ac_ext
39981 cat >>conftest.$ac_ext <<_ACEOF
39982 /* end confdefs.h.  */
39983
39984 #ifdef HAVE_DB_185_H
39985 # include <db_185.h>
39986 #else
39987 # include <db.h>
39988 #endif
39989
39990 #ifndef DB_VERSION_MAJOR
39991 # define DB_VERSION_MAJOR 1
39992 #endif
39993
39994 #ifndef NULL
39995 #define NULL ((void*)0)
39996 #endif
39997
39998 int
39999 main ()
40000 {
40001
40002 #if DB_VERSION_MAJOR > 1
40003         {
40004                 char *version;
40005                 int major, minor, patch;
40006
40007                 version = db_version( &major, &minor, &patch );
40008
40009                 if( major != DB_VERSION_MAJOR ||
40010                         minor < DB_VERSION_MINOR )
40011                 {
40012                         printf("Berkeley DB version mismatch\n"
40013                                 "\theader: %s\n\tlibrary: %s\n",
40014                                 DB_VERSION_STRING, version);
40015                         return 1;
40016                 }
40017         }
40018 #endif
40019
40020 #if DB_VERSION_MAJOR > 2
40021         db_env_create( NULL, 0 );
40022 #elif DB_VERSION_MAJOR > 1
40023         db_appexit( NULL );
40024 #else
40025         (void) dbopen( NULL, 0, 0, 0, NULL);
40026 #endif
40027
40028   ;
40029   return 0;
40030 }
40031 _ACEOF
40032 rm -f conftest.$ac_objext conftest$ac_exeext
40033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40034   (eval $ac_link) 2>conftest.er1
40035   ac_status=$?
40036   grep -v '^ *+' conftest.er1 >conftest.err
40037   rm -f conftest.er1
40038   cat conftest.err >&5
40039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40040   (exit $ac_status); } &&
40041          { ac_try='test -z "$ac_c_werror_flag"
40042                          || test ! -s conftest.err'
40043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40044   (eval $ac_try) 2>&5
40045   ac_status=$?
40046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047   (exit $ac_status); }; } &&
40048          { ac_try='test -s conftest$ac_exeext'
40049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40050   (eval $ac_try) 2>&5
40051   ac_status=$?
40052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40053   (exit $ac_status); }; }; then
40054   ol_cv_db_db_2=yes
40055 else
40056   echo "$as_me: failed program was:" >&5
40057 sed 's/^/| /' conftest.$ac_ext >&5
40058
40059 ol_cv_db_db_2=no
40060 fi
40061 rm -f conftest.err conftest.$ac_objext \
40062       conftest$ac_exeext conftest.$ac_ext
40063
40064         LIBS="$ol_LIBS"
40065
40066 fi
40067 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40068 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40069
40070         if test $ol_cv_db_db_2 = yes ; then
40071                 ol_cv_lib_db=-ldb-2
40072         fi
40073 fi
40074
40075 if test $ol_cv_lib_db = no ; then
40076         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40077 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40078 if test "${ol_cv_db_db1+set}" = set; then
40079   echo $ECHO_N "(cached) $ECHO_C" >&6
40080 else
40081
40082         ol_DB_LIB=-ldb1
40083         ol_LIBS=$LIBS
40084         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40085
40086         cat >conftest.$ac_ext <<_ACEOF
40087 /* confdefs.h.  */
40088 _ACEOF
40089 cat confdefs.h >>conftest.$ac_ext
40090 cat >>conftest.$ac_ext <<_ACEOF
40091 /* end confdefs.h.  */
40092
40093 #ifdef HAVE_DB_185_H
40094 # include <db_185.h>
40095 #else
40096 # include <db.h>
40097 #endif
40098
40099 #ifndef DB_VERSION_MAJOR
40100 # define DB_VERSION_MAJOR 1
40101 #endif
40102
40103 #ifndef NULL
40104 #define NULL ((void*)0)
40105 #endif
40106
40107 int
40108 main ()
40109 {
40110
40111 #if DB_VERSION_MAJOR > 1
40112         {
40113                 char *version;
40114                 int major, minor, patch;
40115
40116                 version = db_version( &major, &minor, &patch );
40117
40118                 if( major != DB_VERSION_MAJOR ||
40119                         minor < DB_VERSION_MINOR )
40120                 {
40121                         printf("Berkeley DB version mismatch\n"
40122                                 "\theader: %s\n\tlibrary: %s\n",
40123                                 DB_VERSION_STRING, version);
40124                         return 1;
40125                 }
40126         }
40127 #endif
40128
40129 #if DB_VERSION_MAJOR > 2
40130         db_env_create( NULL, 0 );
40131 #elif DB_VERSION_MAJOR > 1
40132         db_appexit( NULL );
40133 #else
40134         (void) dbopen( NULL, 0, 0, 0, NULL);
40135 #endif
40136
40137   ;
40138   return 0;
40139 }
40140 _ACEOF
40141 rm -f conftest.$ac_objext conftest$ac_exeext
40142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40143   (eval $ac_link) 2>conftest.er1
40144   ac_status=$?
40145   grep -v '^ *+' conftest.er1 >conftest.err
40146   rm -f conftest.er1
40147   cat conftest.err >&5
40148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40149   (exit $ac_status); } &&
40150          { ac_try='test -z "$ac_c_werror_flag"
40151                          || test ! -s conftest.err'
40152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40153   (eval $ac_try) 2>&5
40154   ac_status=$?
40155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40156   (exit $ac_status); }; } &&
40157          { ac_try='test -s conftest$ac_exeext'
40158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40159   (eval $ac_try) 2>&5
40160   ac_status=$?
40161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40162   (exit $ac_status); }; }; then
40163   ol_cv_db_db1=yes
40164 else
40165   echo "$as_me: failed program was:" >&5
40166 sed 's/^/| /' conftest.$ac_ext >&5
40167
40168 ol_cv_db_db1=no
40169 fi
40170 rm -f conftest.err conftest.$ac_objext \
40171       conftest$ac_exeext conftest.$ac_ext
40172
40173         LIBS="$ol_LIBS"
40174
40175 fi
40176 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40177 echo "${ECHO_T}$ol_cv_db_db1" >&6
40178
40179         if test $ol_cv_db_db1 = yes ; then
40180                 ol_cv_lib_db=-ldb1
40181         fi
40182 fi
40183
40184 if test $ol_cv_lib_db = no ; then
40185         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40186 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40187 if test "${ol_cv_db_db_1+set}" = set; then
40188   echo $ECHO_N "(cached) $ECHO_C" >&6
40189 else
40190
40191         ol_DB_LIB=-ldb-1
40192         ol_LIBS=$LIBS
40193         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40194
40195         cat >conftest.$ac_ext <<_ACEOF
40196 /* confdefs.h.  */
40197 _ACEOF
40198 cat confdefs.h >>conftest.$ac_ext
40199 cat >>conftest.$ac_ext <<_ACEOF
40200 /* end confdefs.h.  */
40201
40202 #ifdef HAVE_DB_185_H
40203 # include <db_185.h>
40204 #else
40205 # include <db.h>
40206 #endif
40207
40208 #ifndef DB_VERSION_MAJOR
40209 # define DB_VERSION_MAJOR 1
40210 #endif
40211
40212 #ifndef NULL
40213 #define NULL ((void*)0)
40214 #endif
40215
40216 int
40217 main ()
40218 {
40219
40220 #if DB_VERSION_MAJOR > 1
40221         {
40222                 char *version;
40223                 int major, minor, patch;
40224
40225                 version = db_version( &major, &minor, &patch );
40226
40227                 if( major != DB_VERSION_MAJOR ||
40228                         minor < DB_VERSION_MINOR )
40229                 {
40230                         printf("Berkeley DB version mismatch\n"
40231                                 "\theader: %s\n\tlibrary: %s\n",
40232                                 DB_VERSION_STRING, version);
40233                         return 1;
40234                 }
40235         }
40236 #endif
40237
40238 #if DB_VERSION_MAJOR > 2
40239         db_env_create( NULL, 0 );
40240 #elif DB_VERSION_MAJOR > 1
40241         db_appexit( NULL );
40242 #else
40243         (void) dbopen( NULL, 0, 0, 0, NULL);
40244 #endif
40245
40246   ;
40247   return 0;
40248 }
40249 _ACEOF
40250 rm -f conftest.$ac_objext conftest$ac_exeext
40251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40252   (eval $ac_link) 2>conftest.er1
40253   ac_status=$?
40254   grep -v '^ *+' conftest.er1 >conftest.err
40255   rm -f conftest.er1
40256   cat conftest.err >&5
40257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40258   (exit $ac_status); } &&
40259          { ac_try='test -z "$ac_c_werror_flag"
40260                          || test ! -s conftest.err'
40261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40262   (eval $ac_try) 2>&5
40263   ac_status=$?
40264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40265   (exit $ac_status); }; } &&
40266          { ac_try='test -s conftest$ac_exeext'
40267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40268   (eval $ac_try) 2>&5
40269   ac_status=$?
40270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40271   (exit $ac_status); }; }; then
40272   ol_cv_db_db_1=yes
40273 else
40274   echo "$as_me: failed program was:" >&5
40275 sed 's/^/| /' conftest.$ac_ext >&5
40276
40277 ol_cv_db_db_1=no
40278 fi
40279 rm -f conftest.err conftest.$ac_objext \
40280       conftest$ac_exeext conftest.$ac_ext
40281
40282         LIBS="$ol_LIBS"
40283
40284 fi
40285 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40286 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40287
40288         if test $ol_cv_db_db_1 = yes ; then
40289                 ol_cv_lib_db=-ldb-1
40290         fi
40291 fi
40292
40293
40294                 if test "$ol_cv_lib_db" != no ; then
40295                         ol_cv_berkeley_db=yes
40296                 fi
40297         fi
40298 fi
40299
40300         else
40301                 ol_cv_berkeley_db=no
40302
40303 for ac_header in db.h
40304 do
40305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40307   echo "$as_me:$LINENO: checking for $ac_header" >&5
40308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40310   echo $ECHO_N "(cached) $ECHO_C" >&6
40311 fi
40312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40314 else
40315   # Is the header compilable?
40316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40318 cat >conftest.$ac_ext <<_ACEOF
40319 /* confdefs.h.  */
40320 _ACEOF
40321 cat confdefs.h >>conftest.$ac_ext
40322 cat >>conftest.$ac_ext <<_ACEOF
40323 /* end confdefs.h.  */
40324 $ac_includes_default
40325 #include <$ac_header>
40326 _ACEOF
40327 rm -f conftest.$ac_objext
40328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40329   (eval $ac_compile) 2>conftest.er1
40330   ac_status=$?
40331   grep -v '^ *+' conftest.er1 >conftest.err
40332   rm -f conftest.er1
40333   cat conftest.err >&5
40334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40335   (exit $ac_status); } &&
40336          { ac_try='test -z "$ac_c_werror_flag"
40337                          || test ! -s conftest.err'
40338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40339   (eval $ac_try) 2>&5
40340   ac_status=$?
40341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40342   (exit $ac_status); }; } &&
40343          { ac_try='test -s conftest.$ac_objext'
40344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40345   (eval $ac_try) 2>&5
40346   ac_status=$?
40347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40348   (exit $ac_status); }; }; then
40349   ac_header_compiler=yes
40350 else
40351   echo "$as_me: failed program was:" >&5
40352 sed 's/^/| /' conftest.$ac_ext >&5
40353
40354 ac_header_compiler=no
40355 fi
40356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40358 echo "${ECHO_T}$ac_header_compiler" >&6
40359
40360 # Is the header present?
40361 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40363 cat >conftest.$ac_ext <<_ACEOF
40364 /* confdefs.h.  */
40365 _ACEOF
40366 cat confdefs.h >>conftest.$ac_ext
40367 cat >>conftest.$ac_ext <<_ACEOF
40368 /* end confdefs.h.  */
40369 #include <$ac_header>
40370 _ACEOF
40371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40372   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40373   ac_status=$?
40374   grep -v '^ *+' conftest.er1 >conftest.err
40375   rm -f conftest.er1
40376   cat conftest.err >&5
40377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40378   (exit $ac_status); } >/dev/null; then
40379   if test -s conftest.err; then
40380     ac_cpp_err=$ac_c_preproc_warn_flag
40381     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40382   else
40383     ac_cpp_err=
40384   fi
40385 else
40386   ac_cpp_err=yes
40387 fi
40388 if test -z "$ac_cpp_err"; then
40389   ac_header_preproc=yes
40390 else
40391   echo "$as_me: failed program was:" >&5
40392 sed 's/^/| /' conftest.$ac_ext >&5
40393
40394   ac_header_preproc=no
40395 fi
40396 rm -f conftest.err conftest.$ac_ext
40397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40398 echo "${ECHO_T}$ac_header_preproc" >&6
40399
40400 # So?  What about this header?
40401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40402   yes:no: )
40403     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40405     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40407     ac_header_preproc=yes
40408     ;;
40409   no:yes:* )
40410     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40412     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40413 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40414     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40416     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40417 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40420     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40422     (
40423       cat <<\_ASBOX
40424 ## ------------------------------------------ ##
40425 ## Report this to the AC_PACKAGE_NAME lists.  ##
40426 ## ------------------------------------------ ##
40427 _ASBOX
40428     ) |
40429       sed "s/^/$as_me: WARNING:     /" >&2
40430     ;;
40431 esac
40432 echo "$as_me:$LINENO: checking for $ac_header" >&5
40433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40435   echo $ECHO_N "(cached) $ECHO_C" >&6
40436 else
40437   eval "$as_ac_Header=\$ac_header_preproc"
40438 fi
40439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40441
40442 fi
40443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40444   cat >>confdefs.h <<_ACEOF
40445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40446 _ACEOF
40447
40448 fi
40449
40450 done
40451
40452 if test $ac_cv_header_db_h = yes; then
40453         ol_cv_lib_db=no
40454 if test $ol_cv_lib_db = no ; then
40455         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40456 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40457 if test "${ol_cv_db_none+set}" = set; then
40458   echo $ECHO_N "(cached) $ECHO_C" >&6
40459 else
40460
40461         ol_DB_LIB=
40462         ol_LIBS=$LIBS
40463         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40464
40465         cat >conftest.$ac_ext <<_ACEOF
40466 /* confdefs.h.  */
40467 _ACEOF
40468 cat confdefs.h >>conftest.$ac_ext
40469 cat >>conftest.$ac_ext <<_ACEOF
40470 /* end confdefs.h.  */
40471
40472 #ifdef HAVE_DB_185_H
40473 # include <db_185.h>
40474 #else
40475 # include <db.h>
40476 #endif
40477
40478 #ifndef DB_VERSION_MAJOR
40479 # define DB_VERSION_MAJOR 1
40480 #endif
40481
40482 #ifndef NULL
40483 #define NULL ((void*)0)
40484 #endif
40485
40486 int
40487 main ()
40488 {
40489
40490 #if DB_VERSION_MAJOR > 1
40491         {
40492                 char *version;
40493                 int major, minor, patch;
40494
40495                 version = db_version( &major, &minor, &patch );
40496
40497                 if( major != DB_VERSION_MAJOR ||
40498                         minor < DB_VERSION_MINOR )
40499                 {
40500                         printf("Berkeley DB version mismatch\n"
40501                                 "\theader: %s\n\tlibrary: %s\n",
40502                                 DB_VERSION_STRING, version);
40503                         return 1;
40504                 }
40505         }
40506 #endif
40507
40508 #if DB_VERSION_MAJOR > 2
40509         db_env_create( NULL, 0 );
40510 #elif DB_VERSION_MAJOR > 1
40511         db_appexit( NULL );
40512 #else
40513         (void) dbopen( NULL, 0, 0, 0, NULL);
40514 #endif
40515
40516   ;
40517   return 0;
40518 }
40519 _ACEOF
40520 rm -f conftest.$ac_objext conftest$ac_exeext
40521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40522   (eval $ac_link) 2>conftest.er1
40523   ac_status=$?
40524   grep -v '^ *+' conftest.er1 >conftest.err
40525   rm -f conftest.er1
40526   cat conftest.err >&5
40527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40528   (exit $ac_status); } &&
40529          { ac_try='test -z "$ac_c_werror_flag"
40530                          || test ! -s conftest.err'
40531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40532   (eval $ac_try) 2>&5
40533   ac_status=$?
40534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40535   (exit $ac_status); }; } &&
40536          { ac_try='test -s conftest$ac_exeext'
40537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40538   (eval $ac_try) 2>&5
40539   ac_status=$?
40540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40541   (exit $ac_status); }; }; then
40542   ol_cv_db_none=yes
40543 else
40544   echo "$as_me: failed program was:" >&5
40545 sed 's/^/| /' conftest.$ac_ext >&5
40546
40547 ol_cv_db_none=no
40548 fi
40549 rm -f conftest.err conftest.$ac_objext \
40550       conftest$ac_exeext conftest.$ac_ext
40551
40552         LIBS="$ol_LIBS"
40553
40554 fi
40555 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40556 echo "${ECHO_T}$ol_cv_db_none" >&6
40557
40558         if test $ol_cv_db_none = yes ; then
40559                 ol_cv_lib_db=yes
40560         fi
40561 fi
40562
40563 if test $ol_cv_lib_db = no ; then
40564         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40565 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40566 if test "${ol_cv_db_db43+set}" = set; then
40567   echo $ECHO_N "(cached) $ECHO_C" >&6
40568 else
40569
40570         ol_DB_LIB=-ldb43
40571         ol_LIBS=$LIBS
40572         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40573
40574         cat >conftest.$ac_ext <<_ACEOF
40575 /* confdefs.h.  */
40576 _ACEOF
40577 cat confdefs.h >>conftest.$ac_ext
40578 cat >>conftest.$ac_ext <<_ACEOF
40579 /* end confdefs.h.  */
40580
40581 #ifdef HAVE_DB_185_H
40582 # include <db_185.h>
40583 #else
40584 # include <db.h>
40585 #endif
40586
40587 #ifndef DB_VERSION_MAJOR
40588 # define DB_VERSION_MAJOR 1
40589 #endif
40590
40591 #ifndef NULL
40592 #define NULL ((void*)0)
40593 #endif
40594
40595 int
40596 main ()
40597 {
40598
40599 #if DB_VERSION_MAJOR > 1
40600         {
40601                 char *version;
40602                 int major, minor, patch;
40603
40604                 version = db_version( &major, &minor, &patch );
40605
40606                 if( major != DB_VERSION_MAJOR ||
40607                         minor < DB_VERSION_MINOR )
40608                 {
40609                         printf("Berkeley DB version mismatch\n"
40610                                 "\theader: %s\n\tlibrary: %s\n",
40611                                 DB_VERSION_STRING, version);
40612                         return 1;
40613                 }
40614         }
40615 #endif
40616
40617 #if DB_VERSION_MAJOR > 2
40618         db_env_create( NULL, 0 );
40619 #elif DB_VERSION_MAJOR > 1
40620         db_appexit( NULL );
40621 #else
40622         (void) dbopen( NULL, 0, 0, 0, NULL);
40623 #endif
40624
40625   ;
40626   return 0;
40627 }
40628 _ACEOF
40629 rm -f conftest.$ac_objext conftest$ac_exeext
40630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40631   (eval $ac_link) 2>conftest.er1
40632   ac_status=$?
40633   grep -v '^ *+' conftest.er1 >conftest.err
40634   rm -f conftest.er1
40635   cat conftest.err >&5
40636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40637   (exit $ac_status); } &&
40638          { ac_try='test -z "$ac_c_werror_flag"
40639                          || test ! -s conftest.err'
40640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40641   (eval $ac_try) 2>&5
40642   ac_status=$?
40643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40644   (exit $ac_status); }; } &&
40645          { ac_try='test -s conftest$ac_exeext'
40646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40647   (eval $ac_try) 2>&5
40648   ac_status=$?
40649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40650   (exit $ac_status); }; }; then
40651   ol_cv_db_db43=yes
40652 else
40653   echo "$as_me: failed program was:" >&5
40654 sed 's/^/| /' conftest.$ac_ext >&5
40655
40656 ol_cv_db_db43=no
40657 fi
40658 rm -f conftest.err conftest.$ac_objext \
40659       conftest$ac_exeext conftest.$ac_ext
40660
40661         LIBS="$ol_LIBS"
40662
40663 fi
40664 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40665 echo "${ECHO_T}$ol_cv_db_db43" >&6
40666
40667         if test $ol_cv_db_db43 = yes ; then
40668                 ol_cv_lib_db=-ldb43
40669         fi
40670 fi
40671
40672 if test $ol_cv_lib_db = no ; then
40673         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40674 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40675 if test "${ol_cv_db_db_43+set}" = set; then
40676   echo $ECHO_N "(cached) $ECHO_C" >&6
40677 else
40678
40679         ol_DB_LIB=-ldb-43
40680         ol_LIBS=$LIBS
40681         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40682
40683         cat >conftest.$ac_ext <<_ACEOF
40684 /* confdefs.h.  */
40685 _ACEOF
40686 cat confdefs.h >>conftest.$ac_ext
40687 cat >>conftest.$ac_ext <<_ACEOF
40688 /* end confdefs.h.  */
40689
40690 #ifdef HAVE_DB_185_H
40691 # include <db_185.h>
40692 #else
40693 # include <db.h>
40694 #endif
40695
40696 #ifndef DB_VERSION_MAJOR
40697 # define DB_VERSION_MAJOR 1
40698 #endif
40699
40700 #ifndef NULL
40701 #define NULL ((void*)0)
40702 #endif
40703
40704 int
40705 main ()
40706 {
40707
40708 #if DB_VERSION_MAJOR > 1
40709         {
40710                 char *version;
40711                 int major, minor, patch;
40712
40713                 version = db_version( &major, &minor, &patch );
40714
40715                 if( major != DB_VERSION_MAJOR ||
40716                         minor < DB_VERSION_MINOR )
40717                 {
40718                         printf("Berkeley DB version mismatch\n"
40719                                 "\theader: %s\n\tlibrary: %s\n",
40720                                 DB_VERSION_STRING, version);
40721                         return 1;
40722                 }
40723         }
40724 #endif
40725
40726 #if DB_VERSION_MAJOR > 2
40727         db_env_create( NULL, 0 );
40728 #elif DB_VERSION_MAJOR > 1
40729         db_appexit( NULL );
40730 #else
40731         (void) dbopen( NULL, 0, 0, 0, NULL);
40732 #endif
40733
40734   ;
40735   return 0;
40736 }
40737 _ACEOF
40738 rm -f conftest.$ac_objext conftest$ac_exeext
40739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40740   (eval $ac_link) 2>conftest.er1
40741   ac_status=$?
40742   grep -v '^ *+' conftest.er1 >conftest.err
40743   rm -f conftest.er1
40744   cat conftest.err >&5
40745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40746   (exit $ac_status); } &&
40747          { ac_try='test -z "$ac_c_werror_flag"
40748                          || test ! -s conftest.err'
40749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40750   (eval $ac_try) 2>&5
40751   ac_status=$?
40752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40753   (exit $ac_status); }; } &&
40754          { ac_try='test -s conftest$ac_exeext'
40755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40756   (eval $ac_try) 2>&5
40757   ac_status=$?
40758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40759   (exit $ac_status); }; }; then
40760   ol_cv_db_db_43=yes
40761 else
40762   echo "$as_me: failed program was:" >&5
40763 sed 's/^/| /' conftest.$ac_ext >&5
40764
40765 ol_cv_db_db_43=no
40766 fi
40767 rm -f conftest.err conftest.$ac_objext \
40768       conftest$ac_exeext conftest.$ac_ext
40769
40770         LIBS="$ol_LIBS"
40771
40772 fi
40773 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
40774 echo "${ECHO_T}$ol_cv_db_db_43" >&6
40775
40776         if test $ol_cv_db_db_43 = yes ; then
40777                 ol_cv_lib_db=-ldb-43
40778         fi
40779 fi
40780
40781 if test $ol_cv_lib_db = no ; then
40782         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
40783 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
40784 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
40785   echo $ECHO_N "(cached) $ECHO_C" >&6
40786 else
40787
40788         ol_DB_LIB=-ldb-4.3
40789         ol_LIBS=$LIBS
40790         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40791
40792         cat >conftest.$ac_ext <<_ACEOF
40793 /* confdefs.h.  */
40794 _ACEOF
40795 cat confdefs.h >>conftest.$ac_ext
40796 cat >>conftest.$ac_ext <<_ACEOF
40797 /* end confdefs.h.  */
40798
40799 #ifdef HAVE_DB_185_H
40800 # include <db_185.h>
40801 #else
40802 # include <db.h>
40803 #endif
40804
40805 #ifndef DB_VERSION_MAJOR
40806 # define DB_VERSION_MAJOR 1
40807 #endif
40808
40809 #ifndef NULL
40810 #define NULL ((void*)0)
40811 #endif
40812
40813 int
40814 main ()
40815 {
40816
40817 #if DB_VERSION_MAJOR > 1
40818         {
40819                 char *version;
40820                 int major, minor, patch;
40821
40822                 version = db_version( &major, &minor, &patch );
40823
40824                 if( major != DB_VERSION_MAJOR ||
40825                         minor < DB_VERSION_MINOR )
40826                 {
40827                         printf("Berkeley DB version mismatch\n"
40828                                 "\theader: %s\n\tlibrary: %s\n",
40829                                 DB_VERSION_STRING, version);
40830                         return 1;
40831                 }
40832         }
40833 #endif
40834
40835 #if DB_VERSION_MAJOR > 2
40836         db_env_create( NULL, 0 );
40837 #elif DB_VERSION_MAJOR > 1
40838         db_appexit( NULL );
40839 #else
40840         (void) dbopen( NULL, 0, 0, 0, NULL);
40841 #endif
40842
40843   ;
40844   return 0;
40845 }
40846 _ACEOF
40847 rm -f conftest.$ac_objext conftest$ac_exeext
40848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40849   (eval $ac_link) 2>conftest.er1
40850   ac_status=$?
40851   grep -v '^ *+' conftest.er1 >conftest.err
40852   rm -f conftest.er1
40853   cat conftest.err >&5
40854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40855   (exit $ac_status); } &&
40856          { ac_try='test -z "$ac_c_werror_flag"
40857                          || test ! -s conftest.err'
40858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40859   (eval $ac_try) 2>&5
40860   ac_status=$?
40861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40862   (exit $ac_status); }; } &&
40863          { ac_try='test -s conftest$ac_exeext'
40864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40865   (eval $ac_try) 2>&5
40866   ac_status=$?
40867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40868   (exit $ac_status); }; }; then
40869   ol_cv_db_db_4_dot_3=yes
40870 else
40871   echo "$as_me: failed program was:" >&5
40872 sed 's/^/| /' conftest.$ac_ext >&5
40873
40874 ol_cv_db_db_4_dot_3=no
40875 fi
40876 rm -f conftest.err conftest.$ac_objext \
40877       conftest$ac_exeext conftest.$ac_ext
40878
40879         LIBS="$ol_LIBS"
40880
40881 fi
40882 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
40883 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
40884
40885         if test $ol_cv_db_db_4_dot_3 = yes ; then
40886                 ol_cv_lib_db=-ldb-4.3
40887         fi
40888 fi
40889
40890 if test $ol_cv_lib_db = no ; then
40891         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
40892 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
40893 if test "${ol_cv_db_db_4_3+set}" = set; then
40894   echo $ECHO_N "(cached) $ECHO_C" >&6
40895 else
40896
40897         ol_DB_LIB=-ldb-4-3
40898         ol_LIBS=$LIBS
40899         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40900
40901         cat >conftest.$ac_ext <<_ACEOF
40902 /* confdefs.h.  */
40903 _ACEOF
40904 cat confdefs.h >>conftest.$ac_ext
40905 cat >>conftest.$ac_ext <<_ACEOF
40906 /* end confdefs.h.  */
40907
40908 #ifdef HAVE_DB_185_H
40909 # include <db_185.h>
40910 #else
40911 # include <db.h>
40912 #endif
40913
40914 #ifndef DB_VERSION_MAJOR
40915 # define DB_VERSION_MAJOR 1
40916 #endif
40917
40918 #ifndef NULL
40919 #define NULL ((void*)0)
40920 #endif
40921
40922 int
40923 main ()
40924 {
40925
40926 #if DB_VERSION_MAJOR > 1
40927         {
40928                 char *version;
40929                 int major, minor, patch;
40930
40931                 version = db_version( &major, &minor, &patch );
40932
40933                 if( major != DB_VERSION_MAJOR ||
40934                         minor < DB_VERSION_MINOR )
40935                 {
40936                         printf("Berkeley DB version mismatch\n"
40937                                 "\theader: %s\n\tlibrary: %s\n",
40938                                 DB_VERSION_STRING, version);
40939                         return 1;
40940                 }
40941         }
40942 #endif
40943
40944 #if DB_VERSION_MAJOR > 2
40945         db_env_create( NULL, 0 );
40946 #elif DB_VERSION_MAJOR > 1
40947         db_appexit( NULL );
40948 #else
40949         (void) dbopen( NULL, 0, 0, 0, NULL);
40950 #endif
40951
40952   ;
40953   return 0;
40954 }
40955 _ACEOF
40956 rm -f conftest.$ac_objext conftest$ac_exeext
40957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40958   (eval $ac_link) 2>conftest.er1
40959   ac_status=$?
40960   grep -v '^ *+' conftest.er1 >conftest.err
40961   rm -f conftest.er1
40962   cat conftest.err >&5
40963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40964   (exit $ac_status); } &&
40965          { ac_try='test -z "$ac_c_werror_flag"
40966                          || test ! -s conftest.err'
40967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40968   (eval $ac_try) 2>&5
40969   ac_status=$?
40970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40971   (exit $ac_status); }; } &&
40972          { ac_try='test -s conftest$ac_exeext'
40973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40974   (eval $ac_try) 2>&5
40975   ac_status=$?
40976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40977   (exit $ac_status); }; }; then
40978   ol_cv_db_db_4_3=yes
40979 else
40980   echo "$as_me: failed program was:" >&5
40981 sed 's/^/| /' conftest.$ac_ext >&5
40982
40983 ol_cv_db_db_4_3=no
40984 fi
40985 rm -f conftest.err conftest.$ac_objext \
40986       conftest$ac_exeext conftest.$ac_ext
40987
40988         LIBS="$ol_LIBS"
40989
40990 fi
40991 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
40992 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
40993
40994         if test $ol_cv_db_db_4_3 = yes ; then
40995                 ol_cv_lib_db=-ldb-4-3
40996         fi
40997 fi
40998
40999 if test $ol_cv_lib_db = no ; then
41000         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
41001 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
41002 if test "${ol_cv_db_db42+set}" = set; then
41003   echo $ECHO_N "(cached) $ECHO_C" >&6
41004 else
41005
41006         ol_DB_LIB=-ldb42
41007         ol_LIBS=$LIBS
41008         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41009
41010         cat >conftest.$ac_ext <<_ACEOF
41011 /* confdefs.h.  */
41012 _ACEOF
41013 cat confdefs.h >>conftest.$ac_ext
41014 cat >>conftest.$ac_ext <<_ACEOF
41015 /* end confdefs.h.  */
41016
41017 #ifdef HAVE_DB_185_H
41018 # include <db_185.h>
41019 #else
41020 # include <db.h>
41021 #endif
41022
41023 #ifndef DB_VERSION_MAJOR
41024 # define DB_VERSION_MAJOR 1
41025 #endif
41026
41027 #ifndef NULL
41028 #define NULL ((void*)0)
41029 #endif
41030
41031 int
41032 main ()
41033 {
41034
41035 #if DB_VERSION_MAJOR > 1
41036         {
41037                 char *version;
41038                 int major, minor, patch;
41039
41040                 version = db_version( &major, &minor, &patch );
41041
41042                 if( major != DB_VERSION_MAJOR ||
41043                         minor < DB_VERSION_MINOR )
41044                 {
41045                         printf("Berkeley DB version mismatch\n"
41046                                 "\theader: %s\n\tlibrary: %s\n",
41047                                 DB_VERSION_STRING, version);
41048                         return 1;
41049                 }
41050         }
41051 #endif
41052
41053 #if DB_VERSION_MAJOR > 2
41054         db_env_create( NULL, 0 );
41055 #elif DB_VERSION_MAJOR > 1
41056         db_appexit( NULL );
41057 #else
41058         (void) dbopen( NULL, 0, 0, 0, NULL);
41059 #endif
41060
41061   ;
41062   return 0;
41063 }
41064 _ACEOF
41065 rm -f conftest.$ac_objext conftest$ac_exeext
41066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41067   (eval $ac_link) 2>conftest.er1
41068   ac_status=$?
41069   grep -v '^ *+' conftest.er1 >conftest.err
41070   rm -f conftest.er1
41071   cat conftest.err >&5
41072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41073   (exit $ac_status); } &&
41074          { ac_try='test -z "$ac_c_werror_flag"
41075                          || test ! -s conftest.err'
41076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41077   (eval $ac_try) 2>&5
41078   ac_status=$?
41079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41080   (exit $ac_status); }; } &&
41081          { ac_try='test -s conftest$ac_exeext'
41082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41083   (eval $ac_try) 2>&5
41084   ac_status=$?
41085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41086   (exit $ac_status); }; }; then
41087   ol_cv_db_db42=yes
41088 else
41089   echo "$as_me: failed program was:" >&5
41090 sed 's/^/| /' conftest.$ac_ext >&5
41091
41092 ol_cv_db_db42=no
41093 fi
41094 rm -f conftest.err conftest.$ac_objext \
41095       conftest$ac_exeext conftest.$ac_ext
41096
41097         LIBS="$ol_LIBS"
41098
41099 fi
41100 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41101 echo "${ECHO_T}$ol_cv_db_db42" >&6
41102
41103         if test $ol_cv_db_db42 = yes ; then
41104                 ol_cv_lib_db=-ldb42
41105         fi
41106 fi
41107
41108 if test $ol_cv_lib_db = no ; then
41109         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41110 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41111 if test "${ol_cv_db_db_42+set}" = set; then
41112   echo $ECHO_N "(cached) $ECHO_C" >&6
41113 else
41114
41115         ol_DB_LIB=-ldb-42
41116         ol_LIBS=$LIBS
41117         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41118
41119         cat >conftest.$ac_ext <<_ACEOF
41120 /* confdefs.h.  */
41121 _ACEOF
41122 cat confdefs.h >>conftest.$ac_ext
41123 cat >>conftest.$ac_ext <<_ACEOF
41124 /* end confdefs.h.  */
41125
41126 #ifdef HAVE_DB_185_H
41127 # include <db_185.h>
41128 #else
41129 # include <db.h>
41130 #endif
41131
41132 #ifndef DB_VERSION_MAJOR
41133 # define DB_VERSION_MAJOR 1
41134 #endif
41135
41136 #ifndef NULL
41137 #define NULL ((void*)0)
41138 #endif
41139
41140 int
41141 main ()
41142 {
41143
41144 #if DB_VERSION_MAJOR > 1
41145         {
41146                 char *version;
41147                 int major, minor, patch;
41148
41149                 version = db_version( &major, &minor, &patch );
41150
41151                 if( major != DB_VERSION_MAJOR ||
41152                         minor < DB_VERSION_MINOR )
41153                 {
41154                         printf("Berkeley DB version mismatch\n"
41155                                 "\theader: %s\n\tlibrary: %s\n",
41156                                 DB_VERSION_STRING, version);
41157                         return 1;
41158                 }
41159         }
41160 #endif
41161
41162 #if DB_VERSION_MAJOR > 2
41163         db_env_create( NULL, 0 );
41164 #elif DB_VERSION_MAJOR > 1
41165         db_appexit( NULL );
41166 #else
41167         (void) dbopen( NULL, 0, 0, 0, NULL);
41168 #endif
41169
41170   ;
41171   return 0;
41172 }
41173 _ACEOF
41174 rm -f conftest.$ac_objext conftest$ac_exeext
41175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41176   (eval $ac_link) 2>conftest.er1
41177   ac_status=$?
41178   grep -v '^ *+' conftest.er1 >conftest.err
41179   rm -f conftest.er1
41180   cat conftest.err >&5
41181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41182   (exit $ac_status); } &&
41183          { ac_try='test -z "$ac_c_werror_flag"
41184                          || test ! -s conftest.err'
41185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41186   (eval $ac_try) 2>&5
41187   ac_status=$?
41188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41189   (exit $ac_status); }; } &&
41190          { ac_try='test -s conftest$ac_exeext'
41191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41192   (eval $ac_try) 2>&5
41193   ac_status=$?
41194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41195   (exit $ac_status); }; }; then
41196   ol_cv_db_db_42=yes
41197 else
41198   echo "$as_me: failed program was:" >&5
41199 sed 's/^/| /' conftest.$ac_ext >&5
41200
41201 ol_cv_db_db_42=no
41202 fi
41203 rm -f conftest.err conftest.$ac_objext \
41204       conftest$ac_exeext conftest.$ac_ext
41205
41206         LIBS="$ol_LIBS"
41207
41208 fi
41209 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41210 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41211
41212         if test $ol_cv_db_db_42 = yes ; then
41213                 ol_cv_lib_db=-ldb-42
41214         fi
41215 fi
41216
41217 if test $ol_cv_lib_db = no ; then
41218         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41219 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41220 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41221   echo $ECHO_N "(cached) $ECHO_C" >&6
41222 else
41223
41224         ol_DB_LIB=-ldb-4.2
41225         ol_LIBS=$LIBS
41226         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41227
41228         cat >conftest.$ac_ext <<_ACEOF
41229 /* confdefs.h.  */
41230 _ACEOF
41231 cat confdefs.h >>conftest.$ac_ext
41232 cat >>conftest.$ac_ext <<_ACEOF
41233 /* end confdefs.h.  */
41234
41235 #ifdef HAVE_DB_185_H
41236 # include <db_185.h>
41237 #else
41238 # include <db.h>
41239 #endif
41240
41241 #ifndef DB_VERSION_MAJOR
41242 # define DB_VERSION_MAJOR 1
41243 #endif
41244
41245 #ifndef NULL
41246 #define NULL ((void*)0)
41247 #endif
41248
41249 int
41250 main ()
41251 {
41252
41253 #if DB_VERSION_MAJOR > 1
41254         {
41255                 char *version;
41256                 int major, minor, patch;
41257
41258                 version = db_version( &major, &minor, &patch );
41259
41260                 if( major != DB_VERSION_MAJOR ||
41261                         minor < DB_VERSION_MINOR )
41262                 {
41263                         printf("Berkeley DB version mismatch\n"
41264                                 "\theader: %s\n\tlibrary: %s\n",
41265                                 DB_VERSION_STRING, version);
41266                         return 1;
41267                 }
41268         }
41269 #endif
41270
41271 #if DB_VERSION_MAJOR > 2
41272         db_env_create( NULL, 0 );
41273 #elif DB_VERSION_MAJOR > 1
41274         db_appexit( NULL );
41275 #else
41276         (void) dbopen( NULL, 0, 0, 0, NULL);
41277 #endif
41278
41279   ;
41280   return 0;
41281 }
41282 _ACEOF
41283 rm -f conftest.$ac_objext conftest$ac_exeext
41284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41285   (eval $ac_link) 2>conftest.er1
41286   ac_status=$?
41287   grep -v '^ *+' conftest.er1 >conftest.err
41288   rm -f conftest.er1
41289   cat conftest.err >&5
41290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41291   (exit $ac_status); } &&
41292          { ac_try='test -z "$ac_c_werror_flag"
41293                          || test ! -s conftest.err'
41294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41295   (eval $ac_try) 2>&5
41296   ac_status=$?
41297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41298   (exit $ac_status); }; } &&
41299          { ac_try='test -s conftest$ac_exeext'
41300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41301   (eval $ac_try) 2>&5
41302   ac_status=$?
41303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41304   (exit $ac_status); }; }; then
41305   ol_cv_db_db_4_dot_2=yes
41306 else
41307   echo "$as_me: failed program was:" >&5
41308 sed 's/^/| /' conftest.$ac_ext >&5
41309
41310 ol_cv_db_db_4_dot_2=no
41311 fi
41312 rm -f conftest.err conftest.$ac_objext \
41313       conftest$ac_exeext conftest.$ac_ext
41314
41315         LIBS="$ol_LIBS"
41316
41317 fi
41318 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41319 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41320
41321         if test $ol_cv_db_db_4_dot_2 = yes ; then
41322                 ol_cv_lib_db=-ldb-4.2
41323         fi
41324 fi
41325
41326 if test $ol_cv_lib_db = no ; then
41327         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41328 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41329 if test "${ol_cv_db_db_4_2+set}" = set; then
41330   echo $ECHO_N "(cached) $ECHO_C" >&6
41331 else
41332
41333         ol_DB_LIB=-ldb-4-2
41334         ol_LIBS=$LIBS
41335         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41336
41337         cat >conftest.$ac_ext <<_ACEOF
41338 /* confdefs.h.  */
41339 _ACEOF
41340 cat confdefs.h >>conftest.$ac_ext
41341 cat >>conftest.$ac_ext <<_ACEOF
41342 /* end confdefs.h.  */
41343
41344 #ifdef HAVE_DB_185_H
41345 # include <db_185.h>
41346 #else
41347 # include <db.h>
41348 #endif
41349
41350 #ifndef DB_VERSION_MAJOR
41351 # define DB_VERSION_MAJOR 1
41352 #endif
41353
41354 #ifndef NULL
41355 #define NULL ((void*)0)
41356 #endif
41357
41358 int
41359 main ()
41360 {
41361
41362 #if DB_VERSION_MAJOR > 1
41363         {
41364                 char *version;
41365                 int major, minor, patch;
41366
41367                 version = db_version( &major, &minor, &patch );
41368
41369                 if( major != DB_VERSION_MAJOR ||
41370                         minor < DB_VERSION_MINOR )
41371                 {
41372                         printf("Berkeley DB version mismatch\n"
41373                                 "\theader: %s\n\tlibrary: %s\n",
41374                                 DB_VERSION_STRING, version);
41375                         return 1;
41376                 }
41377         }
41378 #endif
41379
41380 #if DB_VERSION_MAJOR > 2
41381         db_env_create( NULL, 0 );
41382 #elif DB_VERSION_MAJOR > 1
41383         db_appexit( NULL );
41384 #else
41385         (void) dbopen( NULL, 0, 0, 0, NULL);
41386 #endif
41387
41388   ;
41389   return 0;
41390 }
41391 _ACEOF
41392 rm -f conftest.$ac_objext conftest$ac_exeext
41393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41394   (eval $ac_link) 2>conftest.er1
41395   ac_status=$?
41396   grep -v '^ *+' conftest.er1 >conftest.err
41397   rm -f conftest.er1
41398   cat conftest.err >&5
41399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41400   (exit $ac_status); } &&
41401          { ac_try='test -z "$ac_c_werror_flag"
41402                          || test ! -s conftest.err'
41403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41404   (eval $ac_try) 2>&5
41405   ac_status=$?
41406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41407   (exit $ac_status); }; } &&
41408          { ac_try='test -s conftest$ac_exeext'
41409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41410   (eval $ac_try) 2>&5
41411   ac_status=$?
41412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41413   (exit $ac_status); }; }; then
41414   ol_cv_db_db_4_2=yes
41415 else
41416   echo "$as_me: failed program was:" >&5
41417 sed 's/^/| /' conftest.$ac_ext >&5
41418
41419 ol_cv_db_db_4_2=no
41420 fi
41421 rm -f conftest.err conftest.$ac_objext \
41422       conftest$ac_exeext conftest.$ac_ext
41423
41424         LIBS="$ol_LIBS"
41425
41426 fi
41427 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41428 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41429
41430         if test $ol_cv_db_db_4_2 = yes ; then
41431                 ol_cv_lib_db=-ldb-4-2
41432         fi
41433 fi
41434
41435 if test $ol_cv_lib_db = no ; then
41436         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41437 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41438 if test "${ol_cv_db_db_4+set}" = set; then
41439   echo $ECHO_N "(cached) $ECHO_C" >&6
41440 else
41441
41442         ol_DB_LIB=-ldb-4
41443         ol_LIBS=$LIBS
41444         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41445
41446         cat >conftest.$ac_ext <<_ACEOF
41447 /* confdefs.h.  */
41448 _ACEOF
41449 cat confdefs.h >>conftest.$ac_ext
41450 cat >>conftest.$ac_ext <<_ACEOF
41451 /* end confdefs.h.  */
41452
41453 #ifdef HAVE_DB_185_H
41454 # include <db_185.h>
41455 #else
41456 # include <db.h>
41457 #endif
41458
41459 #ifndef DB_VERSION_MAJOR
41460 # define DB_VERSION_MAJOR 1
41461 #endif
41462
41463 #ifndef NULL
41464 #define NULL ((void*)0)
41465 #endif
41466
41467 int
41468 main ()
41469 {
41470
41471 #if DB_VERSION_MAJOR > 1
41472         {
41473                 char *version;
41474                 int major, minor, patch;
41475
41476                 version = db_version( &major, &minor, &patch );
41477
41478                 if( major != DB_VERSION_MAJOR ||
41479                         minor < DB_VERSION_MINOR )
41480                 {
41481                         printf("Berkeley DB version mismatch\n"
41482                                 "\theader: %s\n\tlibrary: %s\n",
41483                                 DB_VERSION_STRING, version);
41484                         return 1;
41485                 }
41486         }
41487 #endif
41488
41489 #if DB_VERSION_MAJOR > 2
41490         db_env_create( NULL, 0 );
41491 #elif DB_VERSION_MAJOR > 1
41492         db_appexit( NULL );
41493 #else
41494         (void) dbopen( NULL, 0, 0, 0, NULL);
41495 #endif
41496
41497   ;
41498   return 0;
41499 }
41500 _ACEOF
41501 rm -f conftest.$ac_objext conftest$ac_exeext
41502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41503   (eval $ac_link) 2>conftest.er1
41504   ac_status=$?
41505   grep -v '^ *+' conftest.er1 >conftest.err
41506   rm -f conftest.er1
41507   cat conftest.err >&5
41508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41509   (exit $ac_status); } &&
41510          { ac_try='test -z "$ac_c_werror_flag"
41511                          || test ! -s conftest.err'
41512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41513   (eval $ac_try) 2>&5
41514   ac_status=$?
41515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41516   (exit $ac_status); }; } &&
41517          { ac_try='test -s conftest$ac_exeext'
41518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41519   (eval $ac_try) 2>&5
41520   ac_status=$?
41521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41522   (exit $ac_status); }; }; then
41523   ol_cv_db_db_4=yes
41524 else
41525   echo "$as_me: failed program was:" >&5
41526 sed 's/^/| /' conftest.$ac_ext >&5
41527
41528 ol_cv_db_db_4=no
41529 fi
41530 rm -f conftest.err conftest.$ac_objext \
41531       conftest$ac_exeext conftest.$ac_ext
41532
41533         LIBS="$ol_LIBS"
41534
41535 fi
41536 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41537 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41538
41539         if test $ol_cv_db_db_4 = yes ; then
41540                 ol_cv_lib_db=-ldb-4
41541         fi
41542 fi
41543
41544 if test $ol_cv_lib_db = no ; then
41545         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41546 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41547 if test "${ol_cv_db_db4+set}" = set; then
41548   echo $ECHO_N "(cached) $ECHO_C" >&6
41549 else
41550
41551         ol_DB_LIB=-ldb4
41552         ol_LIBS=$LIBS
41553         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41554
41555         cat >conftest.$ac_ext <<_ACEOF
41556 /* confdefs.h.  */
41557 _ACEOF
41558 cat confdefs.h >>conftest.$ac_ext
41559 cat >>conftest.$ac_ext <<_ACEOF
41560 /* end confdefs.h.  */
41561
41562 #ifdef HAVE_DB_185_H
41563 # include <db_185.h>
41564 #else
41565 # include <db.h>
41566 #endif
41567
41568 #ifndef DB_VERSION_MAJOR
41569 # define DB_VERSION_MAJOR 1
41570 #endif
41571
41572 #ifndef NULL
41573 #define NULL ((void*)0)
41574 #endif
41575
41576 int
41577 main ()
41578 {
41579
41580 #if DB_VERSION_MAJOR > 1
41581         {
41582                 char *version;
41583                 int major, minor, patch;
41584
41585                 version = db_version( &major, &minor, &patch );
41586
41587                 if( major != DB_VERSION_MAJOR ||
41588                         minor < DB_VERSION_MINOR )
41589                 {
41590                         printf("Berkeley DB version mismatch\n"
41591                                 "\theader: %s\n\tlibrary: %s\n",
41592                                 DB_VERSION_STRING, version);
41593                         return 1;
41594                 }
41595         }
41596 #endif
41597
41598 #if DB_VERSION_MAJOR > 2
41599         db_env_create( NULL, 0 );
41600 #elif DB_VERSION_MAJOR > 1
41601         db_appexit( NULL );
41602 #else
41603         (void) dbopen( NULL, 0, 0, 0, NULL);
41604 #endif
41605
41606   ;
41607   return 0;
41608 }
41609 _ACEOF
41610 rm -f conftest.$ac_objext conftest$ac_exeext
41611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41612   (eval $ac_link) 2>conftest.er1
41613   ac_status=$?
41614   grep -v '^ *+' conftest.er1 >conftest.err
41615   rm -f conftest.er1
41616   cat conftest.err >&5
41617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41618   (exit $ac_status); } &&
41619          { ac_try='test -z "$ac_c_werror_flag"
41620                          || test ! -s conftest.err'
41621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41622   (eval $ac_try) 2>&5
41623   ac_status=$?
41624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41625   (exit $ac_status); }; } &&
41626          { ac_try='test -s conftest$ac_exeext'
41627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41628   (eval $ac_try) 2>&5
41629   ac_status=$?
41630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41631   (exit $ac_status); }; }; then
41632   ol_cv_db_db4=yes
41633 else
41634   echo "$as_me: failed program was:" >&5
41635 sed 's/^/| /' conftest.$ac_ext >&5
41636
41637 ol_cv_db_db4=no
41638 fi
41639 rm -f conftest.err conftest.$ac_objext \
41640       conftest$ac_exeext conftest.$ac_ext
41641
41642         LIBS="$ol_LIBS"
41643
41644 fi
41645 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41646 echo "${ECHO_T}$ol_cv_db_db4" >&6
41647
41648         if test $ol_cv_db_db4 = yes ; then
41649                 ol_cv_lib_db=-ldb4
41650         fi
41651 fi
41652
41653 if test $ol_cv_lib_db = no ; then
41654         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41655 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41656 if test "${ol_cv_db_db+set}" = set; then
41657   echo $ECHO_N "(cached) $ECHO_C" >&6
41658 else
41659
41660         ol_DB_LIB=-ldb
41661         ol_LIBS=$LIBS
41662         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41663
41664         cat >conftest.$ac_ext <<_ACEOF
41665 /* confdefs.h.  */
41666 _ACEOF
41667 cat confdefs.h >>conftest.$ac_ext
41668 cat >>conftest.$ac_ext <<_ACEOF
41669 /* end confdefs.h.  */
41670
41671 #ifdef HAVE_DB_185_H
41672 # include <db_185.h>
41673 #else
41674 # include <db.h>
41675 #endif
41676
41677 #ifndef DB_VERSION_MAJOR
41678 # define DB_VERSION_MAJOR 1
41679 #endif
41680
41681 #ifndef NULL
41682 #define NULL ((void*)0)
41683 #endif
41684
41685 int
41686 main ()
41687 {
41688
41689 #if DB_VERSION_MAJOR > 1
41690         {
41691                 char *version;
41692                 int major, minor, patch;
41693
41694                 version = db_version( &major, &minor, &patch );
41695
41696                 if( major != DB_VERSION_MAJOR ||
41697                         minor < DB_VERSION_MINOR )
41698                 {
41699                         printf("Berkeley DB version mismatch\n"
41700                                 "\theader: %s\n\tlibrary: %s\n",
41701                                 DB_VERSION_STRING, version);
41702                         return 1;
41703                 }
41704         }
41705 #endif
41706
41707 #if DB_VERSION_MAJOR > 2
41708         db_env_create( NULL, 0 );
41709 #elif DB_VERSION_MAJOR > 1
41710         db_appexit( NULL );
41711 #else
41712         (void) dbopen( NULL, 0, 0, 0, NULL);
41713 #endif
41714
41715   ;
41716   return 0;
41717 }
41718 _ACEOF
41719 rm -f conftest.$ac_objext conftest$ac_exeext
41720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41721   (eval $ac_link) 2>conftest.er1
41722   ac_status=$?
41723   grep -v '^ *+' conftest.er1 >conftest.err
41724   rm -f conftest.er1
41725   cat conftest.err >&5
41726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41727   (exit $ac_status); } &&
41728          { ac_try='test -z "$ac_c_werror_flag"
41729                          || test ! -s conftest.err'
41730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41731   (eval $ac_try) 2>&5
41732   ac_status=$?
41733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41734   (exit $ac_status); }; } &&
41735          { ac_try='test -s conftest$ac_exeext'
41736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41737   (eval $ac_try) 2>&5
41738   ac_status=$?
41739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41740   (exit $ac_status); }; }; then
41741   ol_cv_db_db=yes
41742 else
41743   echo "$as_me: failed program was:" >&5
41744 sed 's/^/| /' conftest.$ac_ext >&5
41745
41746 ol_cv_db_db=no
41747 fi
41748 rm -f conftest.err conftest.$ac_objext \
41749       conftest$ac_exeext conftest.$ac_ext
41750
41751         LIBS="$ol_LIBS"
41752
41753 fi
41754 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
41755 echo "${ECHO_T}$ol_cv_db_db" >&6
41756
41757         if test $ol_cv_db_db = yes ; then
41758                 ol_cv_lib_db=-ldb
41759         fi
41760 fi
41761
41762 if test $ol_cv_lib_db = no ; then
41763         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
41764 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
41765 if test "${ol_cv_db_db41+set}" = set; then
41766   echo $ECHO_N "(cached) $ECHO_C" >&6
41767 else
41768
41769         ol_DB_LIB=-ldb41
41770         ol_LIBS=$LIBS
41771         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41772
41773         cat >conftest.$ac_ext <<_ACEOF
41774 /* confdefs.h.  */
41775 _ACEOF
41776 cat confdefs.h >>conftest.$ac_ext
41777 cat >>conftest.$ac_ext <<_ACEOF
41778 /* end confdefs.h.  */
41779
41780 #ifdef HAVE_DB_185_H
41781 # include <db_185.h>
41782 #else
41783 # include <db.h>
41784 #endif
41785
41786 #ifndef DB_VERSION_MAJOR
41787 # define DB_VERSION_MAJOR 1
41788 #endif
41789
41790 #ifndef NULL
41791 #define NULL ((void*)0)
41792 #endif
41793
41794 int
41795 main ()
41796 {
41797
41798 #if DB_VERSION_MAJOR > 1
41799         {
41800                 char *version;
41801                 int major, minor, patch;
41802
41803                 version = db_version( &major, &minor, &patch );
41804
41805                 if( major != DB_VERSION_MAJOR ||
41806                         minor < DB_VERSION_MINOR )
41807                 {
41808                         printf("Berkeley DB version mismatch\n"
41809                                 "\theader: %s\n\tlibrary: %s\n",
41810                                 DB_VERSION_STRING, version);
41811                         return 1;
41812                 }
41813         }
41814 #endif
41815
41816 #if DB_VERSION_MAJOR > 2
41817         db_env_create( NULL, 0 );
41818 #elif DB_VERSION_MAJOR > 1
41819         db_appexit( NULL );
41820 #else
41821         (void) dbopen( NULL, 0, 0, 0, NULL);
41822 #endif
41823
41824   ;
41825   return 0;
41826 }
41827 _ACEOF
41828 rm -f conftest.$ac_objext conftest$ac_exeext
41829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41830   (eval $ac_link) 2>conftest.er1
41831   ac_status=$?
41832   grep -v '^ *+' conftest.er1 >conftest.err
41833   rm -f conftest.er1
41834   cat conftest.err >&5
41835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41836   (exit $ac_status); } &&
41837          { ac_try='test -z "$ac_c_werror_flag"
41838                          || test ! -s conftest.err'
41839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41840   (eval $ac_try) 2>&5
41841   ac_status=$?
41842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41843   (exit $ac_status); }; } &&
41844          { ac_try='test -s conftest$ac_exeext'
41845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41846   (eval $ac_try) 2>&5
41847   ac_status=$?
41848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41849   (exit $ac_status); }; }; then
41850   ol_cv_db_db41=yes
41851 else
41852   echo "$as_me: failed program was:" >&5
41853 sed 's/^/| /' conftest.$ac_ext >&5
41854
41855 ol_cv_db_db41=no
41856 fi
41857 rm -f conftest.err conftest.$ac_objext \
41858       conftest$ac_exeext conftest.$ac_ext
41859
41860         LIBS="$ol_LIBS"
41861
41862 fi
41863 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
41864 echo "${ECHO_T}$ol_cv_db_db41" >&6
41865
41866         if test $ol_cv_db_db41 = yes ; then
41867                 ol_cv_lib_db=-ldb41
41868         fi
41869 fi
41870
41871 if test $ol_cv_lib_db = no ; then
41872         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
41873 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
41874 if test "${ol_cv_db_db_41+set}" = set; then
41875   echo $ECHO_N "(cached) $ECHO_C" >&6
41876 else
41877
41878         ol_DB_LIB=-ldb-41
41879         ol_LIBS=$LIBS
41880         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41881
41882         cat >conftest.$ac_ext <<_ACEOF
41883 /* confdefs.h.  */
41884 _ACEOF
41885 cat confdefs.h >>conftest.$ac_ext
41886 cat >>conftest.$ac_ext <<_ACEOF
41887 /* end confdefs.h.  */
41888
41889 #ifdef HAVE_DB_185_H
41890 # include <db_185.h>
41891 #else
41892 # include <db.h>
41893 #endif
41894
41895 #ifndef DB_VERSION_MAJOR
41896 # define DB_VERSION_MAJOR 1
41897 #endif
41898
41899 #ifndef NULL
41900 #define NULL ((void*)0)
41901 #endif
41902
41903 int
41904 main ()
41905 {
41906
41907 #if DB_VERSION_MAJOR > 1
41908         {
41909                 char *version;
41910                 int major, minor, patch;
41911
41912                 version = db_version( &major, &minor, &patch );
41913
41914                 if( major != DB_VERSION_MAJOR ||
41915                         minor < DB_VERSION_MINOR )
41916                 {
41917                         printf("Berkeley DB version mismatch\n"
41918                                 "\theader: %s\n\tlibrary: %s\n",
41919                                 DB_VERSION_STRING, version);
41920                         return 1;
41921                 }
41922         }
41923 #endif
41924
41925 #if DB_VERSION_MAJOR > 2
41926         db_env_create( NULL, 0 );
41927 #elif DB_VERSION_MAJOR > 1
41928         db_appexit( NULL );
41929 #else
41930         (void) dbopen( NULL, 0, 0, 0, NULL);
41931 #endif
41932
41933   ;
41934   return 0;
41935 }
41936 _ACEOF
41937 rm -f conftest.$ac_objext conftest$ac_exeext
41938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41939   (eval $ac_link) 2>conftest.er1
41940   ac_status=$?
41941   grep -v '^ *+' conftest.er1 >conftest.err
41942   rm -f conftest.er1
41943   cat conftest.err >&5
41944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41945   (exit $ac_status); } &&
41946          { ac_try='test -z "$ac_c_werror_flag"
41947                          || test ! -s conftest.err'
41948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41949   (eval $ac_try) 2>&5
41950   ac_status=$?
41951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41952   (exit $ac_status); }; } &&
41953          { ac_try='test -s conftest$ac_exeext'
41954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41955   (eval $ac_try) 2>&5
41956   ac_status=$?
41957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41958   (exit $ac_status); }; }; then
41959   ol_cv_db_db_41=yes
41960 else
41961   echo "$as_me: failed program was:" >&5
41962 sed 's/^/| /' conftest.$ac_ext >&5
41963
41964 ol_cv_db_db_41=no
41965 fi
41966 rm -f conftest.err conftest.$ac_objext \
41967       conftest$ac_exeext conftest.$ac_ext
41968
41969         LIBS="$ol_LIBS"
41970
41971 fi
41972 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
41973 echo "${ECHO_T}$ol_cv_db_db_41" >&6
41974
41975         if test $ol_cv_db_db_41 = yes ; then
41976                 ol_cv_lib_db=-ldb-41
41977         fi
41978 fi
41979
41980 if test $ol_cv_lib_db = no ; then
41981         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
41982 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
41983 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
41984   echo $ECHO_N "(cached) $ECHO_C" >&6
41985 else
41986
41987         ol_DB_LIB=-ldb-4.1
41988         ol_LIBS=$LIBS
41989         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41990
41991         cat >conftest.$ac_ext <<_ACEOF
41992 /* confdefs.h.  */
41993 _ACEOF
41994 cat confdefs.h >>conftest.$ac_ext
41995 cat >>conftest.$ac_ext <<_ACEOF
41996 /* end confdefs.h.  */
41997
41998 #ifdef HAVE_DB_185_H
41999 # include <db_185.h>
42000 #else
42001 # include <db.h>
42002 #endif
42003
42004 #ifndef DB_VERSION_MAJOR
42005 # define DB_VERSION_MAJOR 1
42006 #endif
42007
42008 #ifndef NULL
42009 #define NULL ((void*)0)
42010 #endif
42011
42012 int
42013 main ()
42014 {
42015
42016 #if DB_VERSION_MAJOR > 1
42017         {
42018                 char *version;
42019                 int major, minor, patch;
42020
42021                 version = db_version( &major, &minor, &patch );
42022
42023                 if( major != DB_VERSION_MAJOR ||
42024                         minor < DB_VERSION_MINOR )
42025                 {
42026                         printf("Berkeley DB version mismatch\n"
42027                                 "\theader: %s\n\tlibrary: %s\n",
42028                                 DB_VERSION_STRING, version);
42029                         return 1;
42030                 }
42031         }
42032 #endif
42033
42034 #if DB_VERSION_MAJOR > 2
42035         db_env_create( NULL, 0 );
42036 #elif DB_VERSION_MAJOR > 1
42037         db_appexit( NULL );
42038 #else
42039         (void) dbopen( NULL, 0, 0, 0, NULL);
42040 #endif
42041
42042   ;
42043   return 0;
42044 }
42045 _ACEOF
42046 rm -f conftest.$ac_objext conftest$ac_exeext
42047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42048   (eval $ac_link) 2>conftest.er1
42049   ac_status=$?
42050   grep -v '^ *+' conftest.er1 >conftest.err
42051   rm -f conftest.er1
42052   cat conftest.err >&5
42053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42054   (exit $ac_status); } &&
42055          { ac_try='test -z "$ac_c_werror_flag"
42056                          || test ! -s conftest.err'
42057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42058   (eval $ac_try) 2>&5
42059   ac_status=$?
42060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42061   (exit $ac_status); }; } &&
42062          { ac_try='test -s conftest$ac_exeext'
42063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42064   (eval $ac_try) 2>&5
42065   ac_status=$?
42066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42067   (exit $ac_status); }; }; then
42068   ol_cv_db_db_4_dot_1=yes
42069 else
42070   echo "$as_me: failed program was:" >&5
42071 sed 's/^/| /' conftest.$ac_ext >&5
42072
42073 ol_cv_db_db_4_dot_1=no
42074 fi
42075 rm -f conftest.err conftest.$ac_objext \
42076       conftest$ac_exeext conftest.$ac_ext
42077
42078         LIBS="$ol_LIBS"
42079
42080 fi
42081 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42082 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42083
42084         if test $ol_cv_db_db_4_dot_1 = yes ; then
42085                 ol_cv_lib_db=-ldb-4.1
42086         fi
42087 fi
42088
42089 if test $ol_cv_lib_db = no ; then
42090         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42091 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42092 if test "${ol_cv_db_db_4_1+set}" = set; then
42093   echo $ECHO_N "(cached) $ECHO_C" >&6
42094 else
42095
42096         ol_DB_LIB=-ldb-4-1
42097         ol_LIBS=$LIBS
42098         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42099
42100         cat >conftest.$ac_ext <<_ACEOF
42101 /* confdefs.h.  */
42102 _ACEOF
42103 cat confdefs.h >>conftest.$ac_ext
42104 cat >>conftest.$ac_ext <<_ACEOF
42105 /* end confdefs.h.  */
42106
42107 #ifdef HAVE_DB_185_H
42108 # include <db_185.h>
42109 #else
42110 # include <db.h>
42111 #endif
42112
42113 #ifndef DB_VERSION_MAJOR
42114 # define DB_VERSION_MAJOR 1
42115 #endif
42116
42117 #ifndef NULL
42118 #define NULL ((void*)0)
42119 #endif
42120
42121 int
42122 main ()
42123 {
42124
42125 #if DB_VERSION_MAJOR > 1
42126         {
42127                 char *version;
42128                 int major, minor, patch;
42129
42130                 version = db_version( &major, &minor, &patch );
42131
42132                 if( major != DB_VERSION_MAJOR ||
42133                         minor < DB_VERSION_MINOR )
42134                 {
42135                         printf("Berkeley DB version mismatch\n"
42136                                 "\theader: %s\n\tlibrary: %s\n",
42137                                 DB_VERSION_STRING, version);
42138                         return 1;
42139                 }
42140         }
42141 #endif
42142
42143 #if DB_VERSION_MAJOR > 2
42144         db_env_create( NULL, 0 );
42145 #elif DB_VERSION_MAJOR > 1
42146         db_appexit( NULL );
42147 #else
42148         (void) dbopen( NULL, 0, 0, 0, NULL);
42149 #endif
42150
42151   ;
42152   return 0;
42153 }
42154 _ACEOF
42155 rm -f conftest.$ac_objext conftest$ac_exeext
42156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42157   (eval $ac_link) 2>conftest.er1
42158   ac_status=$?
42159   grep -v '^ *+' conftest.er1 >conftest.err
42160   rm -f conftest.er1
42161   cat conftest.err >&5
42162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42163   (exit $ac_status); } &&
42164          { ac_try='test -z "$ac_c_werror_flag"
42165                          || test ! -s conftest.err'
42166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42167   (eval $ac_try) 2>&5
42168   ac_status=$?
42169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42170   (exit $ac_status); }; } &&
42171          { ac_try='test -s conftest$ac_exeext'
42172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42173   (eval $ac_try) 2>&5
42174   ac_status=$?
42175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42176   (exit $ac_status); }; }; then
42177   ol_cv_db_db_4_1=yes
42178 else
42179   echo "$as_me: failed program was:" >&5
42180 sed 's/^/| /' conftest.$ac_ext >&5
42181
42182 ol_cv_db_db_4_1=no
42183 fi
42184 rm -f conftest.err conftest.$ac_objext \
42185       conftest$ac_exeext conftest.$ac_ext
42186
42187         LIBS="$ol_LIBS"
42188
42189 fi
42190 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42191 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42192
42193         if test $ol_cv_db_db_4_1 = yes ; then
42194                 ol_cv_lib_db=-ldb-4-1
42195         fi
42196 fi
42197
42198 if test $ol_cv_lib_db = no ; then
42199         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42200 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42201 if test "${ol_cv_db_db3+set}" = set; then
42202   echo $ECHO_N "(cached) $ECHO_C" >&6
42203 else
42204
42205         ol_DB_LIB=-ldb3
42206         ol_LIBS=$LIBS
42207         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42208
42209         cat >conftest.$ac_ext <<_ACEOF
42210 /* confdefs.h.  */
42211 _ACEOF
42212 cat confdefs.h >>conftest.$ac_ext
42213 cat >>conftest.$ac_ext <<_ACEOF
42214 /* end confdefs.h.  */
42215
42216 #ifdef HAVE_DB_185_H
42217 # include <db_185.h>
42218 #else
42219 # include <db.h>
42220 #endif
42221
42222 #ifndef DB_VERSION_MAJOR
42223 # define DB_VERSION_MAJOR 1
42224 #endif
42225
42226 #ifndef NULL
42227 #define NULL ((void*)0)
42228 #endif
42229
42230 int
42231 main ()
42232 {
42233
42234 #if DB_VERSION_MAJOR > 1
42235         {
42236                 char *version;
42237                 int major, minor, patch;
42238
42239                 version = db_version( &major, &minor, &patch );
42240
42241                 if( major != DB_VERSION_MAJOR ||
42242                         minor < DB_VERSION_MINOR )
42243                 {
42244                         printf("Berkeley DB version mismatch\n"
42245                                 "\theader: %s\n\tlibrary: %s\n",
42246                                 DB_VERSION_STRING, version);
42247                         return 1;
42248                 }
42249         }
42250 #endif
42251
42252 #if DB_VERSION_MAJOR > 2
42253         db_env_create( NULL, 0 );
42254 #elif DB_VERSION_MAJOR > 1
42255         db_appexit( NULL );
42256 #else
42257         (void) dbopen( NULL, 0, 0, 0, NULL);
42258 #endif
42259
42260   ;
42261   return 0;
42262 }
42263 _ACEOF
42264 rm -f conftest.$ac_objext conftest$ac_exeext
42265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42266   (eval $ac_link) 2>conftest.er1
42267   ac_status=$?
42268   grep -v '^ *+' conftest.er1 >conftest.err
42269   rm -f conftest.er1
42270   cat conftest.err >&5
42271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42272   (exit $ac_status); } &&
42273          { ac_try='test -z "$ac_c_werror_flag"
42274                          || test ! -s conftest.err'
42275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42276   (eval $ac_try) 2>&5
42277   ac_status=$?
42278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42279   (exit $ac_status); }; } &&
42280          { ac_try='test -s conftest$ac_exeext'
42281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42282   (eval $ac_try) 2>&5
42283   ac_status=$?
42284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42285   (exit $ac_status); }; }; then
42286   ol_cv_db_db3=yes
42287 else
42288   echo "$as_me: failed program was:" >&5
42289 sed 's/^/| /' conftest.$ac_ext >&5
42290
42291 ol_cv_db_db3=no
42292 fi
42293 rm -f conftest.err conftest.$ac_objext \
42294       conftest$ac_exeext conftest.$ac_ext
42295
42296         LIBS="$ol_LIBS"
42297
42298 fi
42299 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42300 echo "${ECHO_T}$ol_cv_db_db3" >&6
42301
42302         if test $ol_cv_db_db3 = yes ; then
42303                 ol_cv_lib_db=-ldb3
42304         fi
42305 fi
42306
42307 if test $ol_cv_lib_db = no ; then
42308         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42309 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42310 if test "${ol_cv_db_db_3+set}" = set; then
42311   echo $ECHO_N "(cached) $ECHO_C" >&6
42312 else
42313
42314         ol_DB_LIB=-ldb-3
42315         ol_LIBS=$LIBS
42316         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42317
42318         cat >conftest.$ac_ext <<_ACEOF
42319 /* confdefs.h.  */
42320 _ACEOF
42321 cat confdefs.h >>conftest.$ac_ext
42322 cat >>conftest.$ac_ext <<_ACEOF
42323 /* end confdefs.h.  */
42324
42325 #ifdef HAVE_DB_185_H
42326 # include <db_185.h>
42327 #else
42328 # include <db.h>
42329 #endif
42330
42331 #ifndef DB_VERSION_MAJOR
42332 # define DB_VERSION_MAJOR 1
42333 #endif
42334
42335 #ifndef NULL
42336 #define NULL ((void*)0)
42337 #endif
42338
42339 int
42340 main ()
42341 {
42342
42343 #if DB_VERSION_MAJOR > 1
42344         {
42345                 char *version;
42346                 int major, minor, patch;
42347
42348                 version = db_version( &major, &minor, &patch );
42349
42350                 if( major != DB_VERSION_MAJOR ||
42351                         minor < DB_VERSION_MINOR )
42352                 {
42353                         printf("Berkeley DB version mismatch\n"
42354                                 "\theader: %s\n\tlibrary: %s\n",
42355                                 DB_VERSION_STRING, version);
42356                         return 1;
42357                 }
42358         }
42359 #endif
42360
42361 #if DB_VERSION_MAJOR > 2
42362         db_env_create( NULL, 0 );
42363 #elif DB_VERSION_MAJOR > 1
42364         db_appexit( NULL );
42365 #else
42366         (void) dbopen( NULL, 0, 0, 0, NULL);
42367 #endif
42368
42369   ;
42370   return 0;
42371 }
42372 _ACEOF
42373 rm -f conftest.$ac_objext conftest$ac_exeext
42374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42375   (eval $ac_link) 2>conftest.er1
42376   ac_status=$?
42377   grep -v '^ *+' conftest.er1 >conftest.err
42378   rm -f conftest.er1
42379   cat conftest.err >&5
42380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42381   (exit $ac_status); } &&
42382          { ac_try='test -z "$ac_c_werror_flag"
42383                          || test ! -s conftest.err'
42384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42385   (eval $ac_try) 2>&5
42386   ac_status=$?
42387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42388   (exit $ac_status); }; } &&
42389          { ac_try='test -s conftest$ac_exeext'
42390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42391   (eval $ac_try) 2>&5
42392   ac_status=$?
42393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42394   (exit $ac_status); }; }; then
42395   ol_cv_db_db_3=yes
42396 else
42397   echo "$as_me: failed program was:" >&5
42398 sed 's/^/| /' conftest.$ac_ext >&5
42399
42400 ol_cv_db_db_3=no
42401 fi
42402 rm -f conftest.err conftest.$ac_objext \
42403       conftest$ac_exeext conftest.$ac_ext
42404
42405         LIBS="$ol_LIBS"
42406
42407 fi
42408 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42409 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42410
42411         if test $ol_cv_db_db_3 = yes ; then
42412                 ol_cv_lib_db=-ldb-3
42413         fi
42414 fi
42415
42416 if test $ol_cv_lib_db = no ; then
42417         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42418 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42419 if test "${ol_cv_db_db2+set}" = set; then
42420   echo $ECHO_N "(cached) $ECHO_C" >&6
42421 else
42422
42423         ol_DB_LIB=-ldb2
42424         ol_LIBS=$LIBS
42425         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42426
42427         cat >conftest.$ac_ext <<_ACEOF
42428 /* confdefs.h.  */
42429 _ACEOF
42430 cat confdefs.h >>conftest.$ac_ext
42431 cat >>conftest.$ac_ext <<_ACEOF
42432 /* end confdefs.h.  */
42433
42434 #ifdef HAVE_DB_185_H
42435 # include <db_185.h>
42436 #else
42437 # include <db.h>
42438 #endif
42439
42440 #ifndef DB_VERSION_MAJOR
42441 # define DB_VERSION_MAJOR 1
42442 #endif
42443
42444 #ifndef NULL
42445 #define NULL ((void*)0)
42446 #endif
42447
42448 int
42449 main ()
42450 {
42451
42452 #if DB_VERSION_MAJOR > 1
42453         {
42454                 char *version;
42455                 int major, minor, patch;
42456
42457                 version = db_version( &major, &minor, &patch );
42458
42459                 if( major != DB_VERSION_MAJOR ||
42460                         minor < DB_VERSION_MINOR )
42461                 {
42462                         printf("Berkeley DB version mismatch\n"
42463                                 "\theader: %s\n\tlibrary: %s\n",
42464                                 DB_VERSION_STRING, version);
42465                         return 1;
42466                 }
42467         }
42468 #endif
42469
42470 #if DB_VERSION_MAJOR > 2
42471         db_env_create( NULL, 0 );
42472 #elif DB_VERSION_MAJOR > 1
42473         db_appexit( NULL );
42474 #else
42475         (void) dbopen( NULL, 0, 0, 0, NULL);
42476 #endif
42477
42478   ;
42479   return 0;
42480 }
42481 _ACEOF
42482 rm -f conftest.$ac_objext conftest$ac_exeext
42483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42484   (eval $ac_link) 2>conftest.er1
42485   ac_status=$?
42486   grep -v '^ *+' conftest.er1 >conftest.err
42487   rm -f conftest.er1
42488   cat conftest.err >&5
42489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42490   (exit $ac_status); } &&
42491          { ac_try='test -z "$ac_c_werror_flag"
42492                          || test ! -s conftest.err'
42493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42494   (eval $ac_try) 2>&5
42495   ac_status=$?
42496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42497   (exit $ac_status); }; } &&
42498          { ac_try='test -s conftest$ac_exeext'
42499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42500   (eval $ac_try) 2>&5
42501   ac_status=$?
42502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42503   (exit $ac_status); }; }; then
42504   ol_cv_db_db2=yes
42505 else
42506   echo "$as_me: failed program was:" >&5
42507 sed 's/^/| /' conftest.$ac_ext >&5
42508
42509 ol_cv_db_db2=no
42510 fi
42511 rm -f conftest.err conftest.$ac_objext \
42512       conftest$ac_exeext conftest.$ac_ext
42513
42514         LIBS="$ol_LIBS"
42515
42516 fi
42517 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42518 echo "${ECHO_T}$ol_cv_db_db2" >&6
42519
42520         if test $ol_cv_db_db2 = yes ; then
42521                 ol_cv_lib_db=-ldb2
42522         fi
42523 fi
42524
42525 if test $ol_cv_lib_db = no ; then
42526         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42527 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42528 if test "${ol_cv_db_db_2+set}" = set; then
42529   echo $ECHO_N "(cached) $ECHO_C" >&6
42530 else
42531
42532         ol_DB_LIB=-ldb-2
42533         ol_LIBS=$LIBS
42534         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42535
42536         cat >conftest.$ac_ext <<_ACEOF
42537 /* confdefs.h.  */
42538 _ACEOF
42539 cat confdefs.h >>conftest.$ac_ext
42540 cat >>conftest.$ac_ext <<_ACEOF
42541 /* end confdefs.h.  */
42542
42543 #ifdef HAVE_DB_185_H
42544 # include <db_185.h>
42545 #else
42546 # include <db.h>
42547 #endif
42548
42549 #ifndef DB_VERSION_MAJOR
42550 # define DB_VERSION_MAJOR 1
42551 #endif
42552
42553 #ifndef NULL
42554 #define NULL ((void*)0)
42555 #endif
42556
42557 int
42558 main ()
42559 {
42560
42561 #if DB_VERSION_MAJOR > 1
42562         {
42563                 char *version;
42564                 int major, minor, patch;
42565
42566                 version = db_version( &major, &minor, &patch );
42567
42568                 if( major != DB_VERSION_MAJOR ||
42569                         minor < DB_VERSION_MINOR )
42570                 {
42571                         printf("Berkeley DB version mismatch\n"
42572                                 "\theader: %s\n\tlibrary: %s\n",
42573                                 DB_VERSION_STRING, version);
42574                         return 1;
42575                 }
42576         }
42577 #endif
42578
42579 #if DB_VERSION_MAJOR > 2
42580         db_env_create( NULL, 0 );
42581 #elif DB_VERSION_MAJOR > 1
42582         db_appexit( NULL );
42583 #else
42584         (void) dbopen( NULL, 0, 0, 0, NULL);
42585 #endif
42586
42587   ;
42588   return 0;
42589 }
42590 _ACEOF
42591 rm -f conftest.$ac_objext conftest$ac_exeext
42592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42593   (eval $ac_link) 2>conftest.er1
42594   ac_status=$?
42595   grep -v '^ *+' conftest.er1 >conftest.err
42596   rm -f conftest.er1
42597   cat conftest.err >&5
42598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42599   (exit $ac_status); } &&
42600          { ac_try='test -z "$ac_c_werror_flag"
42601                          || test ! -s conftest.err'
42602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42603   (eval $ac_try) 2>&5
42604   ac_status=$?
42605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42606   (exit $ac_status); }; } &&
42607          { ac_try='test -s conftest$ac_exeext'
42608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42609   (eval $ac_try) 2>&5
42610   ac_status=$?
42611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42612   (exit $ac_status); }; }; then
42613   ol_cv_db_db_2=yes
42614 else
42615   echo "$as_me: failed program was:" >&5
42616 sed 's/^/| /' conftest.$ac_ext >&5
42617
42618 ol_cv_db_db_2=no
42619 fi
42620 rm -f conftest.err conftest.$ac_objext \
42621       conftest$ac_exeext conftest.$ac_ext
42622
42623         LIBS="$ol_LIBS"
42624
42625 fi
42626 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42627 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42628
42629         if test $ol_cv_db_db_2 = yes ; then
42630                 ol_cv_lib_db=-ldb-2
42631         fi
42632 fi
42633
42634 if test $ol_cv_lib_db = no ; then
42635         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42636 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42637 if test "${ol_cv_db_db1+set}" = set; then
42638   echo $ECHO_N "(cached) $ECHO_C" >&6
42639 else
42640
42641         ol_DB_LIB=-ldb1
42642         ol_LIBS=$LIBS
42643         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42644
42645         cat >conftest.$ac_ext <<_ACEOF
42646 /* confdefs.h.  */
42647 _ACEOF
42648 cat confdefs.h >>conftest.$ac_ext
42649 cat >>conftest.$ac_ext <<_ACEOF
42650 /* end confdefs.h.  */
42651
42652 #ifdef HAVE_DB_185_H
42653 # include <db_185.h>
42654 #else
42655 # include <db.h>
42656 #endif
42657
42658 #ifndef DB_VERSION_MAJOR
42659 # define DB_VERSION_MAJOR 1
42660 #endif
42661
42662 #ifndef NULL
42663 #define NULL ((void*)0)
42664 #endif
42665
42666 int
42667 main ()
42668 {
42669
42670 #if DB_VERSION_MAJOR > 1
42671         {
42672                 char *version;
42673                 int major, minor, patch;
42674
42675                 version = db_version( &major, &minor, &patch );
42676
42677                 if( major != DB_VERSION_MAJOR ||
42678                         minor < DB_VERSION_MINOR )
42679                 {
42680                         printf("Berkeley DB version mismatch\n"
42681                                 "\theader: %s\n\tlibrary: %s\n",
42682                                 DB_VERSION_STRING, version);
42683                         return 1;
42684                 }
42685         }
42686 #endif
42687
42688 #if DB_VERSION_MAJOR > 2
42689         db_env_create( NULL, 0 );
42690 #elif DB_VERSION_MAJOR > 1
42691         db_appexit( NULL );
42692 #else
42693         (void) dbopen( NULL, 0, 0, 0, NULL);
42694 #endif
42695
42696   ;
42697   return 0;
42698 }
42699 _ACEOF
42700 rm -f conftest.$ac_objext conftest$ac_exeext
42701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42702   (eval $ac_link) 2>conftest.er1
42703   ac_status=$?
42704   grep -v '^ *+' conftest.er1 >conftest.err
42705   rm -f conftest.er1
42706   cat conftest.err >&5
42707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42708   (exit $ac_status); } &&
42709          { ac_try='test -z "$ac_c_werror_flag"
42710                          || test ! -s conftest.err'
42711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42712   (eval $ac_try) 2>&5
42713   ac_status=$?
42714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42715   (exit $ac_status); }; } &&
42716          { ac_try='test -s conftest$ac_exeext'
42717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42718   (eval $ac_try) 2>&5
42719   ac_status=$?
42720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42721   (exit $ac_status); }; }; then
42722   ol_cv_db_db1=yes
42723 else
42724   echo "$as_me: failed program was:" >&5
42725 sed 's/^/| /' conftest.$ac_ext >&5
42726
42727 ol_cv_db_db1=no
42728 fi
42729 rm -f conftest.err conftest.$ac_objext \
42730       conftest$ac_exeext conftest.$ac_ext
42731
42732         LIBS="$ol_LIBS"
42733
42734 fi
42735 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
42736 echo "${ECHO_T}$ol_cv_db_db1" >&6
42737
42738         if test $ol_cv_db_db1 = yes ; then
42739                 ol_cv_lib_db=-ldb1
42740         fi
42741 fi
42742
42743 if test $ol_cv_lib_db = no ; then
42744         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
42745 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
42746 if test "${ol_cv_db_db_1+set}" = set; then
42747   echo $ECHO_N "(cached) $ECHO_C" >&6
42748 else
42749
42750         ol_DB_LIB=-ldb-1
42751         ol_LIBS=$LIBS
42752         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42753
42754         cat >conftest.$ac_ext <<_ACEOF
42755 /* confdefs.h.  */
42756 _ACEOF
42757 cat confdefs.h >>conftest.$ac_ext
42758 cat >>conftest.$ac_ext <<_ACEOF
42759 /* end confdefs.h.  */
42760
42761 #ifdef HAVE_DB_185_H
42762 # include <db_185.h>
42763 #else
42764 # include <db.h>
42765 #endif
42766
42767 #ifndef DB_VERSION_MAJOR
42768 # define DB_VERSION_MAJOR 1
42769 #endif
42770
42771 #ifndef NULL
42772 #define NULL ((void*)0)
42773 #endif
42774
42775 int
42776 main ()
42777 {
42778
42779 #if DB_VERSION_MAJOR > 1
42780         {
42781                 char *version;
42782                 int major, minor, patch;
42783
42784                 version = db_version( &major, &minor, &patch );
42785
42786                 if( major != DB_VERSION_MAJOR ||
42787                         minor < DB_VERSION_MINOR )
42788                 {
42789                         printf("Berkeley DB version mismatch\n"
42790                                 "\theader: %s\n\tlibrary: %s\n",
42791                                 DB_VERSION_STRING, version);
42792                         return 1;
42793                 }
42794         }
42795 #endif
42796
42797 #if DB_VERSION_MAJOR > 2
42798         db_env_create( NULL, 0 );
42799 #elif DB_VERSION_MAJOR > 1
42800         db_appexit( NULL );
42801 #else
42802         (void) dbopen( NULL, 0, 0, 0, NULL);
42803 #endif
42804
42805   ;
42806   return 0;
42807 }
42808 _ACEOF
42809 rm -f conftest.$ac_objext conftest$ac_exeext
42810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42811   (eval $ac_link) 2>conftest.er1
42812   ac_status=$?
42813   grep -v '^ *+' conftest.er1 >conftest.err
42814   rm -f conftest.er1
42815   cat conftest.err >&5
42816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42817   (exit $ac_status); } &&
42818          { ac_try='test -z "$ac_c_werror_flag"
42819                          || test ! -s conftest.err'
42820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42821   (eval $ac_try) 2>&5
42822   ac_status=$?
42823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42824   (exit $ac_status); }; } &&
42825          { ac_try='test -s conftest$ac_exeext'
42826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42827   (eval $ac_try) 2>&5
42828   ac_status=$?
42829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42830   (exit $ac_status); }; }; then
42831   ol_cv_db_db_1=yes
42832 else
42833   echo "$as_me: failed program was:" >&5
42834 sed 's/^/| /' conftest.$ac_ext >&5
42835
42836 ol_cv_db_db_1=no
42837 fi
42838 rm -f conftest.err conftest.$ac_objext \
42839       conftest$ac_exeext conftest.$ac_ext
42840
42841         LIBS="$ol_LIBS"
42842
42843 fi
42844 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
42845 echo "${ECHO_T}$ol_cv_db_db_1" >&6
42846
42847         if test $ol_cv_db_db_1 = yes ; then
42848                 ol_cv_lib_db=-ldb-1
42849         fi
42850 fi
42851
42852
42853         if test "$ol_cv_lib_db" != no ; then
42854                 ol_cv_berkeley_db=yes
42855                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
42856 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
42857 if test "${ol_cv_berkeley_db_version+set}" = set; then
42858   echo $ECHO_N "(cached) $ECHO_C" >&6
42859 else
42860
42861         ol_LIBS="$LIBS"
42862         LIBS="$LTHREAD_LIBS $LIBS"
42863         if test $ol_cv_lib_db != yes ; then
42864                 LIBS="$ol_cv_lib_db $LIBS"
42865         fi
42866
42867         if test "$cross_compiling" = yes; then
42868   ol_cv_berkeley_db_version=cross
42869 else
42870   cat >conftest.$ac_ext <<_ACEOF
42871 /* confdefs.h.  */
42872 _ACEOF
42873 cat confdefs.h >>conftest.$ac_ext
42874 cat >>conftest.$ac_ext <<_ACEOF
42875 /* end confdefs.h.  */
42876
42877 #ifdef HAVE_DB_185_H
42878         choke me;
42879 #else
42880 #include <db.h>
42881 #endif
42882 #ifndef DB_VERSION_MAJOR
42883 # define DB_VERSION_MAJOR 1
42884 #endif
42885 #ifndef NULL
42886 #define NULL ((void *)0)
42887 #endif
42888 main()
42889 {
42890 #if DB_VERSION_MAJOR > 1
42891         char *version;
42892         int major, minor, patch;
42893
42894         version = db_version( &major, &minor, &patch );
42895
42896         if( major != DB_VERSION_MAJOR ||
42897                 minor != DB_VERSION_MINOR ||
42898                 patch != DB_VERSION_PATCH )
42899         {
42900                 printf("Berkeley DB version mismatch\n"
42901                         "\theader: %s\n\tlibrary: %s\n",
42902                         DB_VERSION_STRING, version);
42903                 return 1;
42904         }
42905 #endif
42906
42907         return 0;
42908 }
42909 _ACEOF
42910 rm -f conftest$ac_exeext
42911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42912   (eval $ac_link) 2>&5
42913   ac_status=$?
42914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42915   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42917   (eval $ac_try) 2>&5
42918   ac_status=$?
42919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42920   (exit $ac_status); }; }; then
42921   ol_cv_berkeley_db_version=yes
42922 else
42923   echo "$as_me: program exited with status $ac_status" >&5
42924 echo "$as_me: failed program was:" >&5
42925 sed 's/^/| /' conftest.$ac_ext >&5
42926
42927 ( exit $ac_status )
42928 ol_cv_berkeley_db_version=no
42929 fi
42930 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42931 fi
42932
42933         LIBS="$ol_LIBS"
42934
42935 fi
42936 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
42937 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
42938
42939         if test $ol_cv_berkeley_db_version = no ; then
42940                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
42941 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
42942    { (exit 1); exit 1; }; }
42943         fi
42944
42945                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
42946 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
42947 if test "${ol_cv_berkeley_db_thread+set}" = set; then
42948   echo $ECHO_N "(cached) $ECHO_C" >&6
42949 else
42950
42951         ol_LIBS="$LIBS"
42952         LIBS="$LTHREAD_LIBS $LIBS"
42953         if test $ol_cv_lib_db != yes ; then
42954                 LIBS="$ol_cv_lib_db $LIBS"
42955         fi
42956
42957         if test "$cross_compiling" = yes; then
42958   ol_cv_berkeley_db_thread=cross
42959 else
42960   cat >conftest.$ac_ext <<_ACEOF
42961 /* confdefs.h.  */
42962 _ACEOF
42963 cat confdefs.h >>conftest.$ac_ext
42964 cat >>conftest.$ac_ext <<_ACEOF
42965 /* end confdefs.h.  */
42966
42967 #ifdef HAVE_DB_185_H
42968         choke me;
42969 #else
42970 #include <db.h>
42971 #endif
42972 #ifndef NULL
42973 #define NULL ((void *)0)
42974 #endif
42975 main()
42976 {
42977         int rc;
42978         u_int32_t flags = DB_CREATE |
42979 #ifdef DB_PRIVATE
42980                 DB_PRIVATE |
42981 #endif
42982                 DB_THREAD;
42983
42984 #if DB_VERSION_MAJOR > 2
42985         DB_ENV *env = NULL;
42986
42987         rc = db_env_create( &env, 0 );
42988
42989         flags |= DB_INIT_MPOOL;
42990 #ifdef DB_MPOOL_PRIVATE
42991         flags |= DB_MPOOL_PRIVATE;
42992 #endif
42993
42994         if( rc ) {
42995                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
42996                 return rc;
42997         }
42998
42999 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
43000         rc = env->open( env, NULL, flags, 0 );
43001 #else
43002         rc = env->open( env, NULL, NULL, flags, 0 );
43003 #endif
43004
43005         if ( rc == 0 ) {
43006                 rc = env->close( env, 0 );
43007         }
43008
43009         if( rc ) {
43010                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43011                 return rc;
43012         }
43013
43014 #else
43015         DB_ENV env;
43016         memset( &env, '\0', sizeof(env) );
43017
43018         rc = db_appinit( NULL, NULL, &env, flags );
43019
43020         if( rc == 0 ) {
43021                 db_appexit( &env );
43022         }
43023
43024         unlink("__db_mpool.share");
43025         unlink("__db_lock.share");
43026 #endif
43027
43028         return rc;
43029 }
43030 _ACEOF
43031 rm -f conftest$ac_exeext
43032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43033   (eval $ac_link) 2>&5
43034   ac_status=$?
43035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43036   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43038   (eval $ac_try) 2>&5
43039   ac_status=$?
43040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43041   (exit $ac_status); }; }; then
43042   ol_cv_berkeley_db_thread=yes
43043 else
43044   echo "$as_me: program exited with status $ac_status" >&5
43045 echo "$as_me: failed program was:" >&5
43046 sed 's/^/| /' conftest.$ac_ext >&5
43047
43048 ( exit $ac_status )
43049 ol_cv_berkeley_db_thread=no
43050 fi
43051 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43052 fi
43053
43054         LIBS="$ol_LIBS"
43055
43056 fi
43057 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43058 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43059
43060         if test $ol_cv_berkeley_db_thread != no ; then
43061
43062 cat >>confdefs.h <<\_ACEOF
43063 #define HAVE_BERKELEY_DB_THREAD 1
43064 _ACEOF
43065
43066         fi
43067
43068         fi
43069 fi
43070
43071         fi
43072
43073         if test $ol_cv_berkeley_db != no ; then
43074
43075 cat >>confdefs.h <<\_ACEOF
43076 #define HAVE_BERKELEY_DB 1
43077 _ACEOF
43078
43079
43080                 ol_link_ldbm=berkeley
43081                 ol_with_ldbm_api=berkeley
43082
43083                 if test $ol_with_ldbm_type = hash ; then
43084
43085 cat >>confdefs.h <<\_ACEOF
43086 #define LDBM_USE_DBHASH 1
43087 _ACEOF
43088
43089                 else
43090
43091 cat >>confdefs.h <<\_ACEOF
43092 #define LDBM_USE_DBBTREE 1
43093 _ACEOF
43094
43095                 fi
43096
43097                                                 if test $ol_cv_lib_db != yes ; then
43098                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43099                 fi
43100         fi
43101 fi
43102
43103 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43104         if test $ol_link_ldbm != berkeley ; then
43105                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43106 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43107    { (exit 1); exit 1; }; }
43108         else
43109                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB backend" >&5
43110 echo $ECHO_N "checking Berkeley DB version for BDB backend... $ECHO_C" >&6
43111 if test "${ol_cv_bdb_compat+set}" = set; then
43112   echo $ECHO_N "(cached) $ECHO_C" >&6
43113 else
43114
43115         cat >conftest.$ac_ext <<_ACEOF
43116 /* confdefs.h.  */
43117 _ACEOF
43118 cat confdefs.h >>conftest.$ac_ext
43119 cat >>conftest.$ac_ext <<_ACEOF
43120 /* end confdefs.h.  */
43121
43122 #include <db.h>
43123
43124  /* this check could be improved */
43125 #ifndef DB_VERSION_MAJOR
43126 #       define DB_VERSION_MAJOR 1
43127 #endif
43128 #ifndef DB_VERSION_MINOR
43129 #       define DB_VERSION_MINOR 0
43130 #endif
43131
43132 /* require 4.2 or later */
43133 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43134         __db_version_compat
43135 #endif
43136
43137 _ACEOF
43138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43139   $EGREP "__db_version_compat" >/dev/null 2>&1; then
43140   ol_cv_bdb_compat=yes
43141 else
43142   ol_cv_bdb_compat=no
43143 fi
43144 rm -f conftest*
43145
43146 fi
43147 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43148 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43149
43150
43151                 if test $ol_cv_bdb_compat != yes ; then
43152                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43153 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43154    { (exit 1); exit 1; }; }
43155                 fi
43156         fi
43157 fi
43158
43159 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
43160         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43161 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43162         ol_with_ldbm_api=none
43163 fi
43164
43165 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
43166         echo "$as_me:$LINENO: checking for MDBM library" >&5
43167 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43168 if test "${ol_cv_lib_mdbm+set}" = set; then
43169   echo $ECHO_N "(cached) $ECHO_C" >&6
43170 else
43171         ol_LIBS="$LIBS"
43172         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43173 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43174 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43175   echo $ECHO_N "(cached) $ECHO_C" >&6
43176 else
43177   cat >conftest.$ac_ext <<_ACEOF
43178 /* confdefs.h.  */
43179 _ACEOF
43180 cat confdefs.h >>conftest.$ac_ext
43181 cat >>conftest.$ac_ext <<_ACEOF
43182 /* end confdefs.h.  */
43183 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43185 #define mdbm_set_chain innocuous_mdbm_set_chain
43186
43187 /* System header to define __stub macros and hopefully few prototypes,
43188     which can conflict with char mdbm_set_chain (); below.
43189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43190     <limits.h> exists even on freestanding compilers.  */
43191
43192 #ifdef __STDC__
43193 # include <limits.h>
43194 #else
43195 # include <assert.h>
43196 #endif
43197
43198 #undef mdbm_set_chain
43199
43200 /* Override any gcc2 internal prototype to avoid an error.  */
43201 #ifdef __cplusplus
43202 extern "C"
43203 {
43204 #endif
43205 /* We use char because int might match the return type of a gcc2
43206    builtin and then its argument prototype would still apply.  */
43207 char mdbm_set_chain ();
43208 /* The GNU C library defines this for functions which it implements
43209     to always fail with ENOSYS.  Some functions are actually named
43210     something starting with __ and the normal name is an alias.  */
43211 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43212 choke me
43213 #else
43214 char (*f) () = mdbm_set_chain;
43215 #endif
43216 #ifdef __cplusplus
43217 }
43218 #endif
43219
43220 int
43221 main ()
43222 {
43223 return f != mdbm_set_chain;
43224   ;
43225   return 0;
43226 }
43227 _ACEOF
43228 rm -f conftest.$ac_objext conftest$ac_exeext
43229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43230   (eval $ac_link) 2>conftest.er1
43231   ac_status=$?
43232   grep -v '^ *+' conftest.er1 >conftest.err
43233   rm -f conftest.er1
43234   cat conftest.err >&5
43235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43236   (exit $ac_status); } &&
43237          { ac_try='test -z "$ac_c_werror_flag"
43238                          || test ! -s conftest.err'
43239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43240   (eval $ac_try) 2>&5
43241   ac_status=$?
43242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43243   (exit $ac_status); }; } &&
43244          { ac_try='test -s conftest$ac_exeext'
43245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43246   (eval $ac_try) 2>&5
43247   ac_status=$?
43248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43249   (exit $ac_status); }; }; then
43250   ac_cv_func_mdbm_set_chain=yes
43251 else
43252   echo "$as_me: failed program was:" >&5
43253 sed 's/^/| /' conftest.$ac_ext >&5
43254
43255 ac_cv_func_mdbm_set_chain=no
43256 fi
43257 rm -f conftest.err conftest.$ac_objext \
43258       conftest$ac_exeext conftest.$ac_ext
43259 fi
43260 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43261 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43262 if test $ac_cv_func_mdbm_set_chain = yes; then
43263   ol_cv_lib_mdbm=yes
43264 else
43265
43266                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43267 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43268 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43269   echo $ECHO_N "(cached) $ECHO_C" >&6
43270 else
43271   ac_check_lib_save_LIBS=$LIBS
43272 LIBS="-lmdbm  $LIBS"
43273 cat >conftest.$ac_ext <<_ACEOF
43274 /* confdefs.h.  */
43275 _ACEOF
43276 cat confdefs.h >>conftest.$ac_ext
43277 cat >>conftest.$ac_ext <<_ACEOF
43278 /* end confdefs.h.  */
43279
43280 /* Override any gcc2 internal prototype to avoid an error.  */
43281 #ifdef __cplusplus
43282 extern "C"
43283 #endif
43284 /* We use char because int might match the return type of a gcc2
43285    builtin and then its argument prototype would still apply.  */
43286 char mdbm_set_chain ();
43287 int
43288 main ()
43289 {
43290 mdbm_set_chain ();
43291   ;
43292   return 0;
43293 }
43294 _ACEOF
43295 rm -f conftest.$ac_objext conftest$ac_exeext
43296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43297   (eval $ac_link) 2>conftest.er1
43298   ac_status=$?
43299   grep -v '^ *+' conftest.er1 >conftest.err
43300   rm -f conftest.er1
43301   cat conftest.err >&5
43302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43303   (exit $ac_status); } &&
43304          { ac_try='test -z "$ac_c_werror_flag"
43305                          || test ! -s conftest.err'
43306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43307   (eval $ac_try) 2>&5
43308   ac_status=$?
43309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43310   (exit $ac_status); }; } &&
43311          { ac_try='test -s conftest$ac_exeext'
43312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43313   (eval $ac_try) 2>&5
43314   ac_status=$?
43315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43316   (exit $ac_status); }; }; then
43317   ac_cv_lib_mdbm_mdbm_set_chain=yes
43318 else
43319   echo "$as_me: failed program was:" >&5
43320 sed 's/^/| /' conftest.$ac_ext >&5
43321
43322 ac_cv_lib_mdbm_mdbm_set_chain=no
43323 fi
43324 rm -f conftest.err conftest.$ac_objext \
43325       conftest$ac_exeext conftest.$ac_ext
43326 LIBS=$ac_check_lib_save_LIBS
43327 fi
43328 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43329 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43330 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43331   ol_cv_lib_mdbm=-lmdbm
43332 else
43333   ol_cv_lib_mdbm=no
43334 fi
43335
43336
43337 fi
43338
43339         LIBS="$ol_LIBS"
43340
43341 fi
43342 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43343 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43344
43345
43346
43347 for ac_header in mdbm.h
43348 do
43349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43351   echo "$as_me:$LINENO: checking for $ac_header" >&5
43352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43354   echo $ECHO_N "(cached) $ECHO_C" >&6
43355 fi
43356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43358 else
43359   # Is the header compilable?
43360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43362 cat >conftest.$ac_ext <<_ACEOF
43363 /* confdefs.h.  */
43364 _ACEOF
43365 cat confdefs.h >>conftest.$ac_ext
43366 cat >>conftest.$ac_ext <<_ACEOF
43367 /* end confdefs.h.  */
43368 $ac_includes_default
43369 #include <$ac_header>
43370 _ACEOF
43371 rm -f conftest.$ac_objext
43372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43373   (eval $ac_compile) 2>conftest.er1
43374   ac_status=$?
43375   grep -v '^ *+' conftest.er1 >conftest.err
43376   rm -f conftest.er1
43377   cat conftest.err >&5
43378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43379   (exit $ac_status); } &&
43380          { ac_try='test -z "$ac_c_werror_flag"
43381                          || test ! -s conftest.err'
43382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43383   (eval $ac_try) 2>&5
43384   ac_status=$?
43385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43386   (exit $ac_status); }; } &&
43387          { ac_try='test -s conftest.$ac_objext'
43388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43389   (eval $ac_try) 2>&5
43390   ac_status=$?
43391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43392   (exit $ac_status); }; }; then
43393   ac_header_compiler=yes
43394 else
43395   echo "$as_me: failed program was:" >&5
43396 sed 's/^/| /' conftest.$ac_ext >&5
43397
43398 ac_header_compiler=no
43399 fi
43400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43402 echo "${ECHO_T}$ac_header_compiler" >&6
43403
43404 # Is the header present?
43405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43407 cat >conftest.$ac_ext <<_ACEOF
43408 /* confdefs.h.  */
43409 _ACEOF
43410 cat confdefs.h >>conftest.$ac_ext
43411 cat >>conftest.$ac_ext <<_ACEOF
43412 /* end confdefs.h.  */
43413 #include <$ac_header>
43414 _ACEOF
43415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43416   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43417   ac_status=$?
43418   grep -v '^ *+' conftest.er1 >conftest.err
43419   rm -f conftest.er1
43420   cat conftest.err >&5
43421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43422   (exit $ac_status); } >/dev/null; then
43423   if test -s conftest.err; then
43424     ac_cpp_err=$ac_c_preproc_warn_flag
43425     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43426   else
43427     ac_cpp_err=
43428   fi
43429 else
43430   ac_cpp_err=yes
43431 fi
43432 if test -z "$ac_cpp_err"; then
43433   ac_header_preproc=yes
43434 else
43435   echo "$as_me: failed program was:" >&5
43436 sed 's/^/| /' conftest.$ac_ext >&5
43437
43438   ac_header_preproc=no
43439 fi
43440 rm -f conftest.err conftest.$ac_ext
43441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43442 echo "${ECHO_T}$ac_header_preproc" >&6
43443
43444 # So?  What about this header?
43445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43446   yes:no: )
43447     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43449     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43451     ac_header_preproc=yes
43452     ;;
43453   no:yes:* )
43454     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43456     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43457 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43458     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43460     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43461 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43462     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43464     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43466     (
43467       cat <<\_ASBOX
43468 ## ------------------------------------------ ##
43469 ## Report this to the AC_PACKAGE_NAME lists.  ##
43470 ## ------------------------------------------ ##
43471 _ASBOX
43472     ) |
43473       sed "s/^/$as_me: WARNING:     /" >&2
43474     ;;
43475 esac
43476 echo "$as_me:$LINENO: checking for $ac_header" >&5
43477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43479   echo $ECHO_N "(cached) $ECHO_C" >&6
43480 else
43481   eval "$as_ac_Header=\$ac_header_preproc"
43482 fi
43483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43485
43486 fi
43487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43488   cat >>confdefs.h <<_ACEOF
43489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43490 _ACEOF
43491
43492 fi
43493
43494 done
43495
43496  echo "$as_me:$LINENO: checking for db" >&5
43497 echo $ECHO_N "checking for db... $ECHO_C" >&6
43498 if test "${ol_cv_mdbm+set}" = set; then
43499   echo $ECHO_N "(cached) $ECHO_C" >&6
43500 else
43501
43502         if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43503                 ol_cv_mdbm=no
43504         else
43505                 ol_cv_mdbm=yes
43506         fi
43507
43508 fi
43509 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43510 echo "${ECHO_T}$ol_cv_mdbm" >&6
43511  if test $ol_cv_mdbm = yes ; then
43512
43513 cat >>confdefs.h <<\_ACEOF
43514 #define HAVE_MDBM 1
43515 _ACEOF
43516
43517  fi
43518
43519
43520         if test $ol_cv_mdbm = yes ; then
43521                 ol_link_ldbm=mdbm
43522                 ol_with_ldbm_api=mdbm
43523                 if test $ol_cv_lib_mdbm != yes ; then
43524                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43525                 fi
43526         fi
43527 fi
43528
43529 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
43530         echo "$as_me:$LINENO: checking for GDBM library" >&5
43531 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43532 if test "${ol_cv_lib_gdbm+set}" = set; then
43533   echo $ECHO_N "(cached) $ECHO_C" >&6
43534 else
43535         ol_LIBS="$LIBS"
43536         echo "$as_me:$LINENO: checking for gdbm_open" >&5
43537 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43538 if test "${ac_cv_func_gdbm_open+set}" = set; then
43539   echo $ECHO_N "(cached) $ECHO_C" >&6
43540 else
43541   cat >conftest.$ac_ext <<_ACEOF
43542 /* confdefs.h.  */
43543 _ACEOF
43544 cat confdefs.h >>conftest.$ac_ext
43545 cat >>conftest.$ac_ext <<_ACEOF
43546 /* end confdefs.h.  */
43547 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43549 #define gdbm_open innocuous_gdbm_open
43550
43551 /* System header to define __stub macros and hopefully few prototypes,
43552     which can conflict with char gdbm_open (); below.
43553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43554     <limits.h> exists even on freestanding compilers.  */
43555
43556 #ifdef __STDC__
43557 # include <limits.h>
43558 #else
43559 # include <assert.h>
43560 #endif
43561
43562 #undef gdbm_open
43563
43564 /* Override any gcc2 internal prototype to avoid an error.  */
43565 #ifdef __cplusplus
43566 extern "C"
43567 {
43568 #endif
43569 /* We use char because int might match the return type of a gcc2
43570    builtin and then its argument prototype would still apply.  */
43571 char gdbm_open ();
43572 /* The GNU C library defines this for functions which it implements
43573     to always fail with ENOSYS.  Some functions are actually named
43574     something starting with __ and the normal name is an alias.  */
43575 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43576 choke me
43577 #else
43578 char (*f) () = gdbm_open;
43579 #endif
43580 #ifdef __cplusplus
43581 }
43582 #endif
43583
43584 int
43585 main ()
43586 {
43587 return f != gdbm_open;
43588   ;
43589   return 0;
43590 }
43591 _ACEOF
43592 rm -f conftest.$ac_objext conftest$ac_exeext
43593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43594   (eval $ac_link) 2>conftest.er1
43595   ac_status=$?
43596   grep -v '^ *+' conftest.er1 >conftest.err
43597   rm -f conftest.er1
43598   cat conftest.err >&5
43599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43600   (exit $ac_status); } &&
43601          { ac_try='test -z "$ac_c_werror_flag"
43602                          || test ! -s conftest.err'
43603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43604   (eval $ac_try) 2>&5
43605   ac_status=$?
43606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43607   (exit $ac_status); }; } &&
43608          { ac_try='test -s conftest$ac_exeext'
43609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43610   (eval $ac_try) 2>&5
43611   ac_status=$?
43612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43613   (exit $ac_status); }; }; then
43614   ac_cv_func_gdbm_open=yes
43615 else
43616   echo "$as_me: failed program was:" >&5
43617 sed 's/^/| /' conftest.$ac_ext >&5
43618
43619 ac_cv_func_gdbm_open=no
43620 fi
43621 rm -f conftest.err conftest.$ac_objext \
43622       conftest$ac_exeext conftest.$ac_ext
43623 fi
43624 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43625 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43626 if test $ac_cv_func_gdbm_open = yes; then
43627   ol_cv_lib_gdbm=yes
43628 else
43629
43630                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43631 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43632 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43633   echo $ECHO_N "(cached) $ECHO_C" >&6
43634 else
43635   ac_check_lib_save_LIBS=$LIBS
43636 LIBS="-lgdbm  $LIBS"
43637 cat >conftest.$ac_ext <<_ACEOF
43638 /* confdefs.h.  */
43639 _ACEOF
43640 cat confdefs.h >>conftest.$ac_ext
43641 cat >>conftest.$ac_ext <<_ACEOF
43642 /* end confdefs.h.  */
43643
43644 /* Override any gcc2 internal prototype to avoid an error.  */
43645 #ifdef __cplusplus
43646 extern "C"
43647 #endif
43648 /* We use char because int might match the return type of a gcc2
43649    builtin and then its argument prototype would still apply.  */
43650 char gdbm_open ();
43651 int
43652 main ()
43653 {
43654 gdbm_open ();
43655   ;
43656   return 0;
43657 }
43658 _ACEOF
43659 rm -f conftest.$ac_objext conftest$ac_exeext
43660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43661   (eval $ac_link) 2>conftest.er1
43662   ac_status=$?
43663   grep -v '^ *+' conftest.er1 >conftest.err
43664   rm -f conftest.er1
43665   cat conftest.err >&5
43666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43667   (exit $ac_status); } &&
43668          { ac_try='test -z "$ac_c_werror_flag"
43669                          || test ! -s conftest.err'
43670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43671   (eval $ac_try) 2>&5
43672   ac_status=$?
43673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43674   (exit $ac_status); }; } &&
43675          { ac_try='test -s conftest$ac_exeext'
43676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43677   (eval $ac_try) 2>&5
43678   ac_status=$?
43679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43680   (exit $ac_status); }; }; then
43681   ac_cv_lib_gdbm_gdbm_open=yes
43682 else
43683   echo "$as_me: failed program was:" >&5
43684 sed 's/^/| /' conftest.$ac_ext >&5
43685
43686 ac_cv_lib_gdbm_gdbm_open=no
43687 fi
43688 rm -f conftest.err conftest.$ac_objext \
43689       conftest$ac_exeext conftest.$ac_ext
43690 LIBS=$ac_check_lib_save_LIBS
43691 fi
43692 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43693 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43694 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43695   ol_cv_lib_gdbm=-lgdbm
43696 else
43697   ol_cv_lib_gdbm=no
43698 fi
43699
43700
43701 fi
43702
43703         LIBS="$ol_LIBS"
43704
43705 fi
43706 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
43707 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
43708
43709
43710
43711 for ac_header in gdbm.h
43712 do
43713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43715   echo "$as_me:$LINENO: checking for $ac_header" >&5
43716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43718   echo $ECHO_N "(cached) $ECHO_C" >&6
43719 fi
43720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43722 else
43723   # Is the header compilable?
43724 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43726 cat >conftest.$ac_ext <<_ACEOF
43727 /* confdefs.h.  */
43728 _ACEOF
43729 cat confdefs.h >>conftest.$ac_ext
43730 cat >>conftest.$ac_ext <<_ACEOF
43731 /* end confdefs.h.  */
43732 $ac_includes_default
43733 #include <$ac_header>
43734 _ACEOF
43735 rm -f conftest.$ac_objext
43736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43737   (eval $ac_compile) 2>conftest.er1
43738   ac_status=$?
43739   grep -v '^ *+' conftest.er1 >conftest.err
43740   rm -f conftest.er1
43741   cat conftest.err >&5
43742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43743   (exit $ac_status); } &&
43744          { ac_try='test -z "$ac_c_werror_flag"
43745                          || test ! -s conftest.err'
43746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43747   (eval $ac_try) 2>&5
43748   ac_status=$?
43749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43750   (exit $ac_status); }; } &&
43751          { ac_try='test -s conftest.$ac_objext'
43752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43753   (eval $ac_try) 2>&5
43754   ac_status=$?
43755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43756   (exit $ac_status); }; }; then
43757   ac_header_compiler=yes
43758 else
43759   echo "$as_me: failed program was:" >&5
43760 sed 's/^/| /' conftest.$ac_ext >&5
43761
43762 ac_header_compiler=no
43763 fi
43764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43765 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43766 echo "${ECHO_T}$ac_header_compiler" >&6
43767
43768 # Is the header present?
43769 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43771 cat >conftest.$ac_ext <<_ACEOF
43772 /* confdefs.h.  */
43773 _ACEOF
43774 cat confdefs.h >>conftest.$ac_ext
43775 cat >>conftest.$ac_ext <<_ACEOF
43776 /* end confdefs.h.  */
43777 #include <$ac_header>
43778 _ACEOF
43779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43780   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43781   ac_status=$?
43782   grep -v '^ *+' conftest.er1 >conftest.err
43783   rm -f conftest.er1
43784   cat conftest.err >&5
43785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43786   (exit $ac_status); } >/dev/null; then
43787   if test -s conftest.err; then
43788     ac_cpp_err=$ac_c_preproc_warn_flag
43789     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43790   else
43791     ac_cpp_err=
43792   fi
43793 else
43794   ac_cpp_err=yes
43795 fi
43796 if test -z "$ac_cpp_err"; then
43797   ac_header_preproc=yes
43798 else
43799   echo "$as_me: failed program was:" >&5
43800 sed 's/^/| /' conftest.$ac_ext >&5
43801
43802   ac_header_preproc=no
43803 fi
43804 rm -f conftest.err conftest.$ac_ext
43805 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43806 echo "${ECHO_T}$ac_header_preproc" >&6
43807
43808 # So?  What about this header?
43809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43810   yes:no: )
43811     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43813     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43815     ac_header_preproc=yes
43816     ;;
43817   no:yes:* )
43818     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43820     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43821 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43822     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43824     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43825 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43828     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43830     (
43831       cat <<\_ASBOX
43832 ## ------------------------------------------ ##
43833 ## Report this to the AC_PACKAGE_NAME lists.  ##
43834 ## ------------------------------------------ ##
43835 _ASBOX
43836     ) |
43837       sed "s/^/$as_me: WARNING:     /" >&2
43838     ;;
43839 esac
43840 echo "$as_me:$LINENO: checking for $ac_header" >&5
43841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43843   echo $ECHO_N "(cached) $ECHO_C" >&6
43844 else
43845   eval "$as_ac_Header=\$ac_header_preproc"
43846 fi
43847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43849
43850 fi
43851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43852   cat >>confdefs.h <<_ACEOF
43853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43854 _ACEOF
43855
43856 fi
43857
43858 done
43859
43860  echo "$as_me:$LINENO: checking for db" >&5
43861 echo $ECHO_N "checking for db... $ECHO_C" >&6
43862 if test "${ol_cv_gdbm+set}" = set; then
43863   echo $ECHO_N "(cached) $ECHO_C" >&6
43864 else
43865
43866         if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
43867                 ol_cv_gdbm=no
43868         else
43869                 ol_cv_gdbm=yes
43870         fi
43871
43872 fi
43873 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
43874 echo "${ECHO_T}$ol_cv_gdbm" >&6
43875  if test $ol_cv_gdbm = yes ; then
43876
43877 cat >>confdefs.h <<\_ACEOF
43878 #define HAVE_GDBM 1
43879 _ACEOF
43880
43881  fi
43882
43883
43884         if test $ol_cv_gdbm = yes ; then
43885                 ol_link_ldbm=gdbm
43886                 ol_with_ldbm_api=gdbm
43887
43888                 if test $ol_cv_lib_gdbm != yes ; then
43889                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
43890                 fi
43891         fi
43892 fi
43893
43894 if test $ol_with_ldbm_api = ndbm ; then
43895         echo "$as_me:$LINENO: checking for NDBM library" >&5
43896 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
43897 if test "${ol_cv_lib_ndbm+set}" = set; then
43898   echo $ECHO_N "(cached) $ECHO_C" >&6
43899 else
43900         ol_LIBS="$LIBS"
43901         echo "$as_me:$LINENO: checking for dbm_open" >&5
43902 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
43903 if test "${ac_cv_func_dbm_open+set}" = set; then
43904   echo $ECHO_N "(cached) $ECHO_C" >&6
43905 else
43906   cat >conftest.$ac_ext <<_ACEOF
43907 /* confdefs.h.  */
43908 _ACEOF
43909 cat confdefs.h >>conftest.$ac_ext
43910 cat >>conftest.$ac_ext <<_ACEOF
43911 /* end confdefs.h.  */
43912 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
43913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43914 #define dbm_open innocuous_dbm_open
43915
43916 /* System header to define __stub macros and hopefully few prototypes,
43917     which can conflict with char dbm_open (); below.
43918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43919     <limits.h> exists even on freestanding compilers.  */
43920
43921 #ifdef __STDC__
43922 # include <limits.h>
43923 #else
43924 # include <assert.h>
43925 #endif
43926
43927 #undef dbm_open
43928
43929 /* Override any gcc2 internal prototype to avoid an error.  */
43930 #ifdef __cplusplus
43931 extern "C"
43932 {
43933 #endif
43934 /* We use char because int might match the return type of a gcc2
43935    builtin and then its argument prototype would still apply.  */
43936 char dbm_open ();
43937 /* The GNU C library defines this for functions which it implements
43938     to always fail with ENOSYS.  Some functions are actually named
43939     something starting with __ and the normal name is an alias.  */
43940 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
43941 choke me
43942 #else
43943 char (*f) () = dbm_open;
43944 #endif
43945 #ifdef __cplusplus
43946 }
43947 #endif
43948
43949 int
43950 main ()
43951 {
43952 return f != dbm_open;
43953   ;
43954   return 0;
43955 }
43956 _ACEOF
43957 rm -f conftest.$ac_objext conftest$ac_exeext
43958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43959   (eval $ac_link) 2>conftest.er1
43960   ac_status=$?
43961   grep -v '^ *+' conftest.er1 >conftest.err
43962   rm -f conftest.er1
43963   cat conftest.err >&5
43964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43965   (exit $ac_status); } &&
43966          { ac_try='test -z "$ac_c_werror_flag"
43967                          || test ! -s conftest.err'
43968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43969   (eval $ac_try) 2>&5
43970   ac_status=$?
43971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43972   (exit $ac_status); }; } &&
43973          { ac_try='test -s conftest$ac_exeext'
43974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43975   (eval $ac_try) 2>&5
43976   ac_status=$?
43977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43978   (exit $ac_status); }; }; then
43979   ac_cv_func_dbm_open=yes
43980 else
43981   echo "$as_me: failed program was:" >&5
43982 sed 's/^/| /' conftest.$ac_ext >&5
43983
43984 ac_cv_func_dbm_open=no
43985 fi
43986 rm -f conftest.err conftest.$ac_objext \
43987       conftest$ac_exeext conftest.$ac_ext
43988 fi
43989 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
43990 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
43991 if test $ac_cv_func_dbm_open = yes; then
43992   ol_cv_lib_ndbm=yes
43993 else
43994
43995                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
43996 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
43997 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
43998   echo $ECHO_N "(cached) $ECHO_C" >&6
43999 else
44000   ac_check_lib_save_LIBS=$LIBS
44001 LIBS="-lndbm  $LIBS"
44002 cat >conftest.$ac_ext <<_ACEOF
44003 /* confdefs.h.  */
44004 _ACEOF
44005 cat confdefs.h >>conftest.$ac_ext
44006 cat >>conftest.$ac_ext <<_ACEOF
44007 /* end confdefs.h.  */
44008
44009 /* Override any gcc2 internal prototype to avoid an error.  */
44010 #ifdef __cplusplus
44011 extern "C"
44012 #endif
44013 /* We use char because int might match the return type of a gcc2
44014    builtin and then its argument prototype would still apply.  */
44015 char dbm_open ();
44016 int
44017 main ()
44018 {
44019 dbm_open ();
44020   ;
44021   return 0;
44022 }
44023 _ACEOF
44024 rm -f conftest.$ac_objext conftest$ac_exeext
44025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44026   (eval $ac_link) 2>conftest.er1
44027   ac_status=$?
44028   grep -v '^ *+' conftest.er1 >conftest.err
44029   rm -f conftest.er1
44030   cat conftest.err >&5
44031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44032   (exit $ac_status); } &&
44033          { ac_try='test -z "$ac_c_werror_flag"
44034                          || test ! -s conftest.err'
44035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44036   (eval $ac_try) 2>&5
44037   ac_status=$?
44038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44039   (exit $ac_status); }; } &&
44040          { ac_try='test -s conftest$ac_exeext'
44041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44042   (eval $ac_try) 2>&5
44043   ac_status=$?
44044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44045   (exit $ac_status); }; }; then
44046   ac_cv_lib_ndbm_dbm_open=yes
44047 else
44048   echo "$as_me: failed program was:" >&5
44049 sed 's/^/| /' conftest.$ac_ext >&5
44050
44051 ac_cv_lib_ndbm_dbm_open=no
44052 fi
44053 rm -f conftest.err conftest.$ac_objext \
44054       conftest$ac_exeext conftest.$ac_ext
44055 LIBS=$ac_check_lib_save_LIBS
44056 fi
44057 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44058 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44059 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44060   ol_cv_lib_ndbm=-lndbm
44061 else
44062
44063                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44064 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44065 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44066   echo $ECHO_N "(cached) $ECHO_C" >&6
44067 else
44068   ac_check_lib_save_LIBS=$LIBS
44069 LIBS="-ldbm  $LIBS"
44070 cat >conftest.$ac_ext <<_ACEOF
44071 /* confdefs.h.  */
44072 _ACEOF
44073 cat confdefs.h >>conftest.$ac_ext
44074 cat >>conftest.$ac_ext <<_ACEOF
44075 /* end confdefs.h.  */
44076
44077 /* Override any gcc2 internal prototype to avoid an error.  */
44078 #ifdef __cplusplus
44079 extern "C"
44080 #endif
44081 /* We use char because int might match the return type of a gcc2
44082    builtin and then its argument prototype would still apply.  */
44083 char dbm_open ();
44084 int
44085 main ()
44086 {
44087 dbm_open ();
44088   ;
44089   return 0;
44090 }
44091 _ACEOF
44092 rm -f conftest.$ac_objext conftest$ac_exeext
44093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44094   (eval $ac_link) 2>conftest.er1
44095   ac_status=$?
44096   grep -v '^ *+' conftest.er1 >conftest.err
44097   rm -f conftest.er1
44098   cat conftest.err >&5
44099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44100   (exit $ac_status); } &&
44101          { ac_try='test -z "$ac_c_werror_flag"
44102                          || test ! -s conftest.err'
44103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44104   (eval $ac_try) 2>&5
44105   ac_status=$?
44106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44107   (exit $ac_status); }; } &&
44108          { ac_try='test -s conftest$ac_exeext'
44109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44110   (eval $ac_try) 2>&5
44111   ac_status=$?
44112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44113   (exit $ac_status); }; }; then
44114   ac_cv_lib_dbm_dbm_open=yes
44115 else
44116   echo "$as_me: failed program was:" >&5
44117 sed 's/^/| /' conftest.$ac_ext >&5
44118
44119 ac_cv_lib_dbm_dbm_open=no
44120 fi
44121 rm -f conftest.err conftest.$ac_objext \
44122       conftest$ac_exeext conftest.$ac_ext
44123 LIBS=$ac_check_lib_save_LIBS
44124 fi
44125 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44126 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44127 if test $ac_cv_lib_dbm_dbm_open = yes; then
44128   ol_cv_lib_ndbm=-ldbm
44129 else
44130   ol_cv_lib_ndbm=no
44131 fi
44132
44133 fi
44134
44135
44136 fi
44137
44138         LIBS="$ol_LIBS"
44139
44140 fi
44141 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44142 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44143
44144
44145
44146 for ac_header in ndbm.h
44147 do
44148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44150   echo "$as_me:$LINENO: checking for $ac_header" >&5
44151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44153   echo $ECHO_N "(cached) $ECHO_C" >&6
44154 fi
44155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44157 else
44158   # Is the header compilable?
44159 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44161 cat >conftest.$ac_ext <<_ACEOF
44162 /* confdefs.h.  */
44163 _ACEOF
44164 cat confdefs.h >>conftest.$ac_ext
44165 cat >>conftest.$ac_ext <<_ACEOF
44166 /* end confdefs.h.  */
44167 $ac_includes_default
44168 #include <$ac_header>
44169 _ACEOF
44170 rm -f conftest.$ac_objext
44171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44172   (eval $ac_compile) 2>conftest.er1
44173   ac_status=$?
44174   grep -v '^ *+' conftest.er1 >conftest.err
44175   rm -f conftest.er1
44176   cat conftest.err >&5
44177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44178   (exit $ac_status); } &&
44179          { ac_try='test -z "$ac_c_werror_flag"
44180                          || test ! -s conftest.err'
44181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44182   (eval $ac_try) 2>&5
44183   ac_status=$?
44184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44185   (exit $ac_status); }; } &&
44186          { ac_try='test -s conftest.$ac_objext'
44187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44188   (eval $ac_try) 2>&5
44189   ac_status=$?
44190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44191   (exit $ac_status); }; }; then
44192   ac_header_compiler=yes
44193 else
44194   echo "$as_me: failed program was:" >&5
44195 sed 's/^/| /' conftest.$ac_ext >&5
44196
44197 ac_header_compiler=no
44198 fi
44199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44201 echo "${ECHO_T}$ac_header_compiler" >&6
44202
44203 # Is the header present?
44204 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44206 cat >conftest.$ac_ext <<_ACEOF
44207 /* confdefs.h.  */
44208 _ACEOF
44209 cat confdefs.h >>conftest.$ac_ext
44210 cat >>conftest.$ac_ext <<_ACEOF
44211 /* end confdefs.h.  */
44212 #include <$ac_header>
44213 _ACEOF
44214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44215   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44216   ac_status=$?
44217   grep -v '^ *+' conftest.er1 >conftest.err
44218   rm -f conftest.er1
44219   cat conftest.err >&5
44220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44221   (exit $ac_status); } >/dev/null; then
44222   if test -s conftest.err; then
44223     ac_cpp_err=$ac_c_preproc_warn_flag
44224     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44225   else
44226     ac_cpp_err=
44227   fi
44228 else
44229   ac_cpp_err=yes
44230 fi
44231 if test -z "$ac_cpp_err"; then
44232   ac_header_preproc=yes
44233 else
44234   echo "$as_me: failed program was:" >&5
44235 sed 's/^/| /' conftest.$ac_ext >&5
44236
44237   ac_header_preproc=no
44238 fi
44239 rm -f conftest.err conftest.$ac_ext
44240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44241 echo "${ECHO_T}$ac_header_preproc" >&6
44242
44243 # So?  What about this header?
44244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44245   yes:no: )
44246     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44248     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44250     ac_header_preproc=yes
44251     ;;
44252   no:yes:* )
44253     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44255     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44256 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44257     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44259     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44260 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44261     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44263     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44265     (
44266       cat <<\_ASBOX
44267 ## ------------------------------------------ ##
44268 ## Report this to the AC_PACKAGE_NAME lists.  ##
44269 ## ------------------------------------------ ##
44270 _ASBOX
44271     ) |
44272       sed "s/^/$as_me: WARNING:     /" >&2
44273     ;;
44274 esac
44275 echo "$as_me:$LINENO: checking for $ac_header" >&5
44276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44278   echo $ECHO_N "(cached) $ECHO_C" >&6
44279 else
44280   eval "$as_ac_Header=\$ac_header_preproc"
44281 fi
44282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44284
44285 fi
44286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44287   cat >>confdefs.h <<_ACEOF
44288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44289 _ACEOF
44290
44291 fi
44292
44293 done
44294
44295  echo "$as_me:$LINENO: checking for db" >&5
44296 echo $ECHO_N "checking for db... $ECHO_C" >&6
44297 if test "${ol_cv_ndbm+set}" = set; then
44298   echo $ECHO_N "(cached) $ECHO_C" >&6
44299 else
44300
44301         if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44302                 ol_cv_ndbm=no
44303         else
44304                 ol_cv_ndbm=yes
44305         fi
44306
44307 fi
44308 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44309 echo "${ECHO_T}$ol_cv_ndbm" >&6
44310  if test $ol_cv_ndbm = yes ; then
44311
44312 cat >>confdefs.h <<\_ACEOF
44313 #define HAVE_NDBM 1
44314 _ACEOF
44315
44316  fi
44317
44318
44319         if test $ol_cv_ndbm = yes ; then
44320                 ol_link_ldbm=ndbm
44321                 ol_with_ldbm_api=ndbm
44322
44323                 if test $ol_cv_lib_ndbm != yes ; then
44324                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44325                 fi
44326         fi
44327 fi
44328
44329 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44330         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44331 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44332    { (exit 1); exit 1; }; }
44333 fi
44334
44335 if test $ol_enable_bdb = yes -o \
44336         $ol_enable_hdb = yes -o \
44337         $ol_enable_ldbm = yes ; then
44338         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44339 fi
44340
44341
44342 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44343         BUILD_LIBS_DYNAMIC=shared
44344
44345 cat >>confdefs.h <<\_ACEOF
44346 #define LDAP_LIBS_DYNAMIC 1
44347 _ACEOF
44348
44349         LTSTATIC=""
44350 else
44351         BUILD_LIBS_DYNAMIC=static
44352         LTSTATIC="-static"
44353 fi
44354
44355 if test $ol_enable_wrappers != no ; then
44356
44357 for ac_header in tcpd.h
44358 do
44359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44361   echo "$as_me:$LINENO: checking for $ac_header" >&5
44362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44364   echo $ECHO_N "(cached) $ECHO_C" >&6
44365 fi
44366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44368 else
44369   # Is the header compilable?
44370 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44372 cat >conftest.$ac_ext <<_ACEOF
44373 /* confdefs.h.  */
44374 _ACEOF
44375 cat confdefs.h >>conftest.$ac_ext
44376 cat >>conftest.$ac_ext <<_ACEOF
44377 /* end confdefs.h.  */
44378 $ac_includes_default
44379 #include <$ac_header>
44380 _ACEOF
44381 rm -f conftest.$ac_objext
44382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44383   (eval $ac_compile) 2>conftest.er1
44384   ac_status=$?
44385   grep -v '^ *+' conftest.er1 >conftest.err
44386   rm -f conftest.er1
44387   cat conftest.err >&5
44388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44389   (exit $ac_status); } &&
44390          { ac_try='test -z "$ac_c_werror_flag"
44391                          || test ! -s conftest.err'
44392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44393   (eval $ac_try) 2>&5
44394   ac_status=$?
44395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44396   (exit $ac_status); }; } &&
44397          { ac_try='test -s conftest.$ac_objext'
44398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44399   (eval $ac_try) 2>&5
44400   ac_status=$?
44401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44402   (exit $ac_status); }; }; then
44403   ac_header_compiler=yes
44404 else
44405   echo "$as_me: failed program was:" >&5
44406 sed 's/^/| /' conftest.$ac_ext >&5
44407
44408 ac_header_compiler=no
44409 fi
44410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44411 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44412 echo "${ECHO_T}$ac_header_compiler" >&6
44413
44414 # Is the header present?
44415 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44417 cat >conftest.$ac_ext <<_ACEOF
44418 /* confdefs.h.  */
44419 _ACEOF
44420 cat confdefs.h >>conftest.$ac_ext
44421 cat >>conftest.$ac_ext <<_ACEOF
44422 /* end confdefs.h.  */
44423 #include <$ac_header>
44424 _ACEOF
44425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44426   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44427   ac_status=$?
44428   grep -v '^ *+' conftest.er1 >conftest.err
44429   rm -f conftest.er1
44430   cat conftest.err >&5
44431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44432   (exit $ac_status); } >/dev/null; then
44433   if test -s conftest.err; then
44434     ac_cpp_err=$ac_c_preproc_warn_flag
44435     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44436   else
44437     ac_cpp_err=
44438   fi
44439 else
44440   ac_cpp_err=yes
44441 fi
44442 if test -z "$ac_cpp_err"; then
44443   ac_header_preproc=yes
44444 else
44445   echo "$as_me: failed program was:" >&5
44446 sed 's/^/| /' conftest.$ac_ext >&5
44447
44448   ac_header_preproc=no
44449 fi
44450 rm -f conftest.err conftest.$ac_ext
44451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44452 echo "${ECHO_T}$ac_header_preproc" >&6
44453
44454 # So?  What about this header?
44455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44456   yes:no: )
44457     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44459     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44461     ac_header_preproc=yes
44462     ;;
44463   no:yes:* )
44464     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44466     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44467 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44468     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44470     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44471 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44472     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44474     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44476     (
44477       cat <<\_ASBOX
44478 ## ------------------------------------------ ##
44479 ## Report this to the AC_PACKAGE_NAME lists.  ##
44480 ## ------------------------------------------ ##
44481 _ASBOX
44482     ) |
44483       sed "s/^/$as_me: WARNING:     /" >&2
44484     ;;
44485 esac
44486 echo "$as_me:$LINENO: checking for $ac_header" >&5
44487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44489   echo $ECHO_N "(cached) $ECHO_C" >&6
44490 else
44491   eval "$as_ac_Header=\$ac_header_preproc"
44492 fi
44493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44495
44496 fi
44497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44498   cat >>confdefs.h <<_ACEOF
44499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44500 _ACEOF
44501
44502                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44503 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44504                 save_LIBS="$LIBS"
44505                 LIBS="$LIBS -lwrap"
44506                 cat >conftest.$ac_ext <<_ACEOF
44507 /* confdefs.h.  */
44508 _ACEOF
44509 cat confdefs.h >>conftest.$ac_ext
44510 cat >>conftest.$ac_ext <<_ACEOF
44511 /* end confdefs.h.  */
44512
44513 #include <tcpd.h>
44514 int allow_severity = 0;
44515 int deny_severity  = 0;
44516
44517 struct request_info *req;
44518
44519 int
44520 main ()
44521 {
44522
44523 hosts_access(req)
44524
44525   ;
44526   return 0;
44527 }
44528 _ACEOF
44529 rm -f conftest.$ac_objext conftest$ac_exeext
44530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44531   (eval $ac_link) 2>conftest.er1
44532   ac_status=$?
44533   grep -v '^ *+' conftest.er1 >conftest.err
44534   rm -f conftest.er1
44535   cat conftest.err >&5
44536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44537   (exit $ac_status); } &&
44538          { ac_try='test -z "$ac_c_werror_flag"
44539                          || test ! -s conftest.err'
44540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44541   (eval $ac_try) 2>&5
44542   ac_status=$?
44543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44544   (exit $ac_status); }; } &&
44545          { ac_try='test -s conftest$ac_exeext'
44546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44547   (eval $ac_try) 2>&5
44548   ac_status=$?
44549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44550   (exit $ac_status); }; }; then
44551   echo "$as_me:$LINENO: result: -lwrap" >&5
44552 echo "${ECHO_T}-lwrap" >&6
44553                 have_wrappers=yes
44554                 LIBS="$save_LIBS"
44555 else
44556   echo "$as_me: failed program was:" >&5
44557 sed 's/^/| /' conftest.$ac_ext >&5
44558
44559
44560                                 LIBS="$LIBS -lnsl"
44561                 cat >conftest.$ac_ext <<_ACEOF
44562 /* confdefs.h.  */
44563 _ACEOF
44564 cat confdefs.h >>conftest.$ac_ext
44565 cat >>conftest.$ac_ext <<_ACEOF
44566 /* end confdefs.h.  */
44567
44568 #include <tcpd.h>
44569 int allow_severity = 0;
44570 int deny_severity  = 0;
44571
44572 struct request_info *req;
44573
44574 int
44575 main ()
44576 {
44577
44578 hosts_access(req)
44579
44580   ;
44581   return 0;
44582 }
44583 _ACEOF
44584 rm -f conftest.$ac_objext conftest$ac_exeext
44585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44586   (eval $ac_link) 2>conftest.er1
44587   ac_status=$?
44588   grep -v '^ *+' conftest.er1 >conftest.err
44589   rm -f conftest.er1
44590   cat conftest.err >&5
44591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44592   (exit $ac_status); } &&
44593          { ac_try='test -z "$ac_c_werror_flag"
44594                          || test ! -s conftest.err'
44595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44596   (eval $ac_try) 2>&5
44597   ac_status=$?
44598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44599   (exit $ac_status); }; } &&
44600          { ac_try='test -s conftest$ac_exeext'
44601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44602   (eval $ac_try) 2>&5
44603   ac_status=$?
44604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44605   (exit $ac_status); }; }; then
44606   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44607 echo "${ECHO_T}-lwrap -lnsl" >&6
44608                 have_wrappers=yes
44609                 LIBS="$save_LIBS -lnsl"
44610 else
44611   echo "$as_me: failed program was:" >&5
44612 sed 's/^/| /' conftest.$ac_ext >&5
44613
44614
44615                 echo "$as_me:$LINENO: result: no" >&5
44616 echo "${ECHO_T}no" >&6
44617                 have_wrappers=no
44618                 LIBS=$save_LIBS
44619 fi
44620 rm -f conftest.err conftest.$ac_objext \
44621       conftest$ac_exeext conftest.$ac_ext
44622 fi
44623 rm -f conftest.err conftest.$ac_objext \
44624       conftest$ac_exeext conftest.$ac_ext
44625 else
44626   have_wrappers=no
44627 fi
44628
44629 done
44630
44631
44632         if test $have_wrappers = yes ; then
44633
44634 cat >>confdefs.h <<\_ACEOF
44635 #define HAVE_TCPD 1
44636 _ACEOF
44637
44638                 WRAP_LIBS="-lwrap"
44639         elif test $ol_enable_wrappers = yes ; then
44640                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44641 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44642    { (exit 1); exit 1; }; }
44643         else
44644                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44645 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44646                 WRAP_LIBS=""
44647         fi
44648 fi
44649
44650 if test $ol_enable_syslog != no ; then
44651         echo "$as_me:$LINENO: checking for openlog" >&5
44652 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44653 if test "${ac_cv_func_openlog+set}" = set; then
44654   echo $ECHO_N "(cached) $ECHO_C" >&6
44655 else
44656   cat >conftest.$ac_ext <<_ACEOF
44657 /* confdefs.h.  */
44658 _ACEOF
44659 cat confdefs.h >>conftest.$ac_ext
44660 cat >>conftest.$ac_ext <<_ACEOF
44661 /* end confdefs.h.  */
44662 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44664 #define openlog innocuous_openlog
44665
44666 /* System header to define __stub macros and hopefully few prototypes,
44667     which can conflict with char openlog (); below.
44668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44669     <limits.h> exists even on freestanding compilers.  */
44670
44671 #ifdef __STDC__
44672 # include <limits.h>
44673 #else
44674 # include <assert.h>
44675 #endif
44676
44677 #undef openlog
44678
44679 /* Override any gcc2 internal prototype to avoid an error.  */
44680 #ifdef __cplusplus
44681 extern "C"
44682 {
44683 #endif
44684 /* We use char because int might match the return type of a gcc2
44685    builtin and then its argument prototype would still apply.  */
44686 char openlog ();
44687 /* The GNU C library defines this for functions which it implements
44688     to always fail with ENOSYS.  Some functions are actually named
44689     something starting with __ and the normal name is an alias.  */
44690 #if defined (__stub_openlog) || defined (__stub___openlog)
44691 choke me
44692 #else
44693 char (*f) () = openlog;
44694 #endif
44695 #ifdef __cplusplus
44696 }
44697 #endif
44698
44699 int
44700 main ()
44701 {
44702 return f != openlog;
44703   ;
44704   return 0;
44705 }
44706 _ACEOF
44707 rm -f conftest.$ac_objext conftest$ac_exeext
44708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44709   (eval $ac_link) 2>conftest.er1
44710   ac_status=$?
44711   grep -v '^ *+' conftest.er1 >conftest.err
44712   rm -f conftest.er1
44713   cat conftest.err >&5
44714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44715   (exit $ac_status); } &&
44716          { ac_try='test -z "$ac_c_werror_flag"
44717                          || test ! -s conftest.err'
44718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44719   (eval $ac_try) 2>&5
44720   ac_status=$?
44721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44722   (exit $ac_status); }; } &&
44723          { ac_try='test -s conftest$ac_exeext'
44724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44725   (eval $ac_try) 2>&5
44726   ac_status=$?
44727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44728   (exit $ac_status); }; }; then
44729   ac_cv_func_openlog=yes
44730 else
44731   echo "$as_me: failed program was:" >&5
44732 sed 's/^/| /' conftest.$ac_ext >&5
44733
44734 ac_cv_func_openlog=no
44735 fi
44736 rm -f conftest.err conftest.$ac_objext \
44737       conftest$ac_exeext conftest.$ac_ext
44738 fi
44739 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
44740 echo "${ECHO_T}$ac_cv_func_openlog" >&6
44741
44742         if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
44743                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
44744 echo "$as_me: error: could not find syslog" >&2;}
44745    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
44746         fi
44747         ol_enable_syslog=$ac_cv_func_openlog
44748 fi
44749
44750
44751 ol_link_sql=no
44752 if test $ol_enable_sql != no ; then
44753
44754
44755 for ac_header in sql.h sqlext.h
44756 do
44757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44759   echo "$as_me:$LINENO: checking for $ac_header" >&5
44760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44762   echo $ECHO_N "(cached) $ECHO_C" >&6
44763 fi
44764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44766 else
44767   # Is the header compilable?
44768 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44770 cat >conftest.$ac_ext <<_ACEOF
44771 /* confdefs.h.  */
44772 _ACEOF
44773 cat confdefs.h >>conftest.$ac_ext
44774 cat >>conftest.$ac_ext <<_ACEOF
44775 /* end confdefs.h.  */
44776 $ac_includes_default
44777 #include <$ac_header>
44778 _ACEOF
44779 rm -f conftest.$ac_objext
44780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44781   (eval $ac_compile) 2>conftest.er1
44782   ac_status=$?
44783   grep -v '^ *+' conftest.er1 >conftest.err
44784   rm -f conftest.er1
44785   cat conftest.err >&5
44786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44787   (exit $ac_status); } &&
44788          { ac_try='test -z "$ac_c_werror_flag"
44789                          || test ! -s conftest.err'
44790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44791   (eval $ac_try) 2>&5
44792   ac_status=$?
44793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44794   (exit $ac_status); }; } &&
44795          { ac_try='test -s conftest.$ac_objext'
44796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44797   (eval $ac_try) 2>&5
44798   ac_status=$?
44799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44800   (exit $ac_status); }; }; then
44801   ac_header_compiler=yes
44802 else
44803   echo "$as_me: failed program was:" >&5
44804 sed 's/^/| /' conftest.$ac_ext >&5
44805
44806 ac_header_compiler=no
44807 fi
44808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44809 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44810 echo "${ECHO_T}$ac_header_compiler" >&6
44811
44812 # Is the header present?
44813 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44815 cat >conftest.$ac_ext <<_ACEOF
44816 /* confdefs.h.  */
44817 _ACEOF
44818 cat confdefs.h >>conftest.$ac_ext
44819 cat >>conftest.$ac_ext <<_ACEOF
44820 /* end confdefs.h.  */
44821 #include <$ac_header>
44822 _ACEOF
44823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44824   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44825   ac_status=$?
44826   grep -v '^ *+' conftest.er1 >conftest.err
44827   rm -f conftest.er1
44828   cat conftest.err >&5
44829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44830   (exit $ac_status); } >/dev/null; then
44831   if test -s conftest.err; then
44832     ac_cpp_err=$ac_c_preproc_warn_flag
44833     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44834   else
44835     ac_cpp_err=
44836   fi
44837 else
44838   ac_cpp_err=yes
44839 fi
44840 if test -z "$ac_cpp_err"; then
44841   ac_header_preproc=yes
44842 else
44843   echo "$as_me: failed program was:" >&5
44844 sed 's/^/| /' conftest.$ac_ext >&5
44845
44846   ac_header_preproc=no
44847 fi
44848 rm -f conftest.err conftest.$ac_ext
44849 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44850 echo "${ECHO_T}$ac_header_preproc" >&6
44851
44852 # So?  What about this header?
44853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44854   yes:no: )
44855     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44857     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44859     ac_header_preproc=yes
44860     ;;
44861   no:yes:* )
44862     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44864     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44865 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44866     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44868     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44869 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44870     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44872     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44874     (
44875       cat <<\_ASBOX
44876 ## ------------------------------------------ ##
44877 ## Report this to the AC_PACKAGE_NAME lists.  ##
44878 ## ------------------------------------------ ##
44879 _ASBOX
44880     ) |
44881       sed "s/^/$as_me: WARNING:     /" >&2
44882     ;;
44883 esac
44884 echo "$as_me:$LINENO: checking for $ac_header" >&5
44885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44887   echo $ECHO_N "(cached) $ECHO_C" >&6
44888 else
44889   eval "$as_ac_Header=\$ac_header_preproc"
44890 fi
44891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44893
44894 fi
44895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44896   cat >>confdefs.h <<_ACEOF
44897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44898 _ACEOF
44899
44900 else
44901
44902                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
44903 echo "$as_me: error: could not locate SQL headers" >&2;}
44904    { (exit 1); exit 1; }; }
44905
44906 fi
44907
44908 done
44909
44910
44911         sql_LIBS="$LIBS"
44912         LIBS="$LTHREAD_LIBS"
44913
44914         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
44915 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
44916 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
44917   echo $ECHO_N "(cached) $ECHO_C" >&6
44918 else
44919   ac_check_lib_save_LIBS=$LIBS
44920 LIBS="-liodbc  $LIBS"
44921 cat >conftest.$ac_ext <<_ACEOF
44922 /* confdefs.h.  */
44923 _ACEOF
44924 cat confdefs.h >>conftest.$ac_ext
44925 cat >>conftest.$ac_ext <<_ACEOF
44926 /* end confdefs.h.  */
44927
44928 /* Override any gcc2 internal prototype to avoid an error.  */
44929 #ifdef __cplusplus
44930 extern "C"
44931 #endif
44932 /* We use char because int might match the return type of a gcc2
44933    builtin and then its argument prototype would still apply.  */
44934 char SQLDriverConnect ();
44935 int
44936 main ()
44937 {
44938 SQLDriverConnect ();
44939   ;
44940   return 0;
44941 }
44942 _ACEOF
44943 rm -f conftest.$ac_objext conftest$ac_exeext
44944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44945   (eval $ac_link) 2>conftest.er1
44946   ac_status=$?
44947   grep -v '^ *+' conftest.er1 >conftest.err
44948   rm -f conftest.er1
44949   cat conftest.err >&5
44950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44951   (exit $ac_status); } &&
44952          { ac_try='test -z "$ac_c_werror_flag"
44953                          || test ! -s conftest.err'
44954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44955   (eval $ac_try) 2>&5
44956   ac_status=$?
44957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44958   (exit $ac_status); }; } &&
44959          { ac_try='test -s conftest$ac_exeext'
44960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44961   (eval $ac_try) 2>&5
44962   ac_status=$?
44963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44964   (exit $ac_status); }; }; then
44965   ac_cv_lib_iodbc_SQLDriverConnect=yes
44966 else
44967   echo "$as_me: failed program was:" >&5
44968 sed 's/^/| /' conftest.$ac_ext >&5
44969
44970 ac_cv_lib_iodbc_SQLDriverConnect=no
44971 fi
44972 rm -f conftest.err conftest.$ac_objext \
44973       conftest$ac_exeext conftest.$ac_ext
44974 LIBS=$ac_check_lib_save_LIBS
44975 fi
44976 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
44977 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
44978 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
44979   have_iodbc=yes
44980 else
44981   have_iodbc=no
44982 fi
44983
44984         if test $have_iodbc = yes ; then
44985                 ol_link_sql="-liodbc"
44986         else
44987                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
44988 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
44989 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
44990   echo $ECHO_N "(cached) $ECHO_C" >&6
44991 else
44992   ac_check_lib_save_LIBS=$LIBS
44993 LIBS="-lodbc  $LIBS"
44994 cat >conftest.$ac_ext <<_ACEOF
44995 /* confdefs.h.  */
44996 _ACEOF
44997 cat confdefs.h >>conftest.$ac_ext
44998 cat >>conftest.$ac_ext <<_ACEOF
44999 /* end confdefs.h.  */
45000
45001 /* Override any gcc2 internal prototype to avoid an error.  */
45002 #ifdef __cplusplus
45003 extern "C"
45004 #endif
45005 /* We use char because int might match the return type of a gcc2
45006    builtin and then its argument prototype would still apply.  */
45007 char SQLDriverConnect ();
45008 int
45009 main ()
45010 {
45011 SQLDriverConnect ();
45012   ;
45013   return 0;
45014 }
45015 _ACEOF
45016 rm -f conftest.$ac_objext conftest$ac_exeext
45017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45018   (eval $ac_link) 2>conftest.er1
45019   ac_status=$?
45020   grep -v '^ *+' conftest.er1 >conftest.err
45021   rm -f conftest.er1
45022   cat conftest.err >&5
45023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45024   (exit $ac_status); } &&
45025          { ac_try='test -z "$ac_c_werror_flag"
45026                          || test ! -s conftest.err'
45027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45028   (eval $ac_try) 2>&5
45029   ac_status=$?
45030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45031   (exit $ac_status); }; } &&
45032          { ac_try='test -s conftest$ac_exeext'
45033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45034   (eval $ac_try) 2>&5
45035   ac_status=$?
45036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45037   (exit $ac_status); }; }; then
45038   ac_cv_lib_odbc_SQLDriverConnect=yes
45039 else
45040   echo "$as_me: failed program was:" >&5
45041 sed 's/^/| /' conftest.$ac_ext >&5
45042
45043 ac_cv_lib_odbc_SQLDriverConnect=no
45044 fi
45045 rm -f conftest.err conftest.$ac_objext \
45046       conftest$ac_exeext conftest.$ac_ext
45047 LIBS=$ac_check_lib_save_LIBS
45048 fi
45049 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45050 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45051 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45052   have_odbc=yes
45053 else
45054   have_odbc=no
45055 fi
45056
45057                 if test $have_odbc = yes ; then
45058                         ol_link_sql="-lodbc"
45059                 fi
45060         fi
45061
45062         LIBS="$sql_LIBS"
45063
45064         if test $ol_link_sql != no ; then
45065                 SLAPD_SQL_LIBS="$ol_link_sql"
45066
45067         elif test $ol_enable_sql != auto ; then
45068                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45069 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45070    { (exit 1); exit 1; }; }
45071         fi
45072 fi
45073
45074 WITH_SASL=no
45075 ol_link_sasl=no
45076 ol_link_spasswd=no
45077 if test $ol_with_cyrus_sasl != no ; then
45078
45079
45080 for ac_header in sasl/sasl.h sasl.h
45081 do
45082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45084   echo "$as_me:$LINENO: checking for $ac_header" >&5
45085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45087   echo $ECHO_N "(cached) $ECHO_C" >&6
45088 fi
45089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45091 else
45092   # Is the header compilable?
45093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45095 cat >conftest.$ac_ext <<_ACEOF
45096 /* confdefs.h.  */
45097 _ACEOF
45098 cat confdefs.h >>conftest.$ac_ext
45099 cat >>conftest.$ac_ext <<_ACEOF
45100 /* end confdefs.h.  */
45101 $ac_includes_default
45102 #include <$ac_header>
45103 _ACEOF
45104 rm -f conftest.$ac_objext
45105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45106   (eval $ac_compile) 2>conftest.er1
45107   ac_status=$?
45108   grep -v '^ *+' conftest.er1 >conftest.err
45109   rm -f conftest.er1
45110   cat conftest.err >&5
45111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45112   (exit $ac_status); } &&
45113          { ac_try='test -z "$ac_c_werror_flag"
45114                          || test ! -s conftest.err'
45115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45116   (eval $ac_try) 2>&5
45117   ac_status=$?
45118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45119   (exit $ac_status); }; } &&
45120          { ac_try='test -s conftest.$ac_objext'
45121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45122   (eval $ac_try) 2>&5
45123   ac_status=$?
45124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45125   (exit $ac_status); }; }; then
45126   ac_header_compiler=yes
45127 else
45128   echo "$as_me: failed program was:" >&5
45129 sed 's/^/| /' conftest.$ac_ext >&5
45130
45131 ac_header_compiler=no
45132 fi
45133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45135 echo "${ECHO_T}$ac_header_compiler" >&6
45136
45137 # Is the header present?
45138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45140 cat >conftest.$ac_ext <<_ACEOF
45141 /* confdefs.h.  */
45142 _ACEOF
45143 cat confdefs.h >>conftest.$ac_ext
45144 cat >>conftest.$ac_ext <<_ACEOF
45145 /* end confdefs.h.  */
45146 #include <$ac_header>
45147 _ACEOF
45148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45149   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45150   ac_status=$?
45151   grep -v '^ *+' conftest.er1 >conftest.err
45152   rm -f conftest.er1
45153   cat conftest.err >&5
45154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45155   (exit $ac_status); } >/dev/null; then
45156   if test -s conftest.err; then
45157     ac_cpp_err=$ac_c_preproc_warn_flag
45158     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45159   else
45160     ac_cpp_err=
45161   fi
45162 else
45163   ac_cpp_err=yes
45164 fi
45165 if test -z "$ac_cpp_err"; then
45166   ac_header_preproc=yes
45167 else
45168   echo "$as_me: failed program was:" >&5
45169 sed 's/^/| /' conftest.$ac_ext >&5
45170
45171   ac_header_preproc=no
45172 fi
45173 rm -f conftest.err conftest.$ac_ext
45174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45175 echo "${ECHO_T}$ac_header_preproc" >&6
45176
45177 # So?  What about this header?
45178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45179   yes:no: )
45180     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45184     ac_header_preproc=yes
45185     ;;
45186   no:yes:* )
45187     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45189     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45190 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45191     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45193     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45194 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45197     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45199     (
45200       cat <<\_ASBOX
45201 ## ------------------------------------------ ##
45202 ## Report this to the AC_PACKAGE_NAME lists.  ##
45203 ## ------------------------------------------ ##
45204 _ASBOX
45205     ) |
45206       sed "s/^/$as_me: WARNING:     /" >&2
45207     ;;
45208 esac
45209 echo "$as_me:$LINENO: checking for $ac_header" >&5
45210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45212   echo $ECHO_N "(cached) $ECHO_C" >&6
45213 else
45214   eval "$as_ac_Header=\$ac_header_preproc"
45215 fi
45216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45218
45219 fi
45220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45221   cat >>confdefs.h <<_ACEOF
45222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45223 _ACEOF
45224
45225 fi
45226
45227 done
45228
45229
45230         if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45231                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45232 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45233 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45234   echo $ECHO_N "(cached) $ECHO_C" >&6
45235 else
45236   ac_check_lib_save_LIBS=$LIBS
45237 LIBS="-lsasl2  $LIBS"
45238 cat >conftest.$ac_ext <<_ACEOF
45239 /* confdefs.h.  */
45240 _ACEOF
45241 cat confdefs.h >>conftest.$ac_ext
45242 cat >>conftest.$ac_ext <<_ACEOF
45243 /* end confdefs.h.  */
45244
45245 /* Override any gcc2 internal prototype to avoid an error.  */
45246 #ifdef __cplusplus
45247 extern "C"
45248 #endif
45249 /* We use char because int might match the return type of a gcc2
45250    builtin and then its argument prototype would still apply.  */
45251 char sasl_client_init ();
45252 int
45253 main ()
45254 {
45255 sasl_client_init ();
45256   ;
45257   return 0;
45258 }
45259 _ACEOF
45260 rm -f conftest.$ac_objext conftest$ac_exeext
45261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45262   (eval $ac_link) 2>conftest.er1
45263   ac_status=$?
45264   grep -v '^ *+' conftest.er1 >conftest.err
45265   rm -f conftest.er1
45266   cat conftest.err >&5
45267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45268   (exit $ac_status); } &&
45269          { ac_try='test -z "$ac_c_werror_flag"
45270                          || test ! -s conftest.err'
45271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45272   (eval $ac_try) 2>&5
45273   ac_status=$?
45274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45275   (exit $ac_status); }; } &&
45276          { ac_try='test -s conftest$ac_exeext'
45277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45278   (eval $ac_try) 2>&5
45279   ac_status=$?
45280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45281   (exit $ac_status); }; }; then
45282   ac_cv_lib_sasl2_sasl_client_init=yes
45283 else
45284   echo "$as_me: failed program was:" >&5
45285 sed 's/^/| /' conftest.$ac_ext >&5
45286
45287 ac_cv_lib_sasl2_sasl_client_init=no
45288 fi
45289 rm -f conftest.err conftest.$ac_objext \
45290       conftest$ac_exeext conftest.$ac_ext
45291 LIBS=$ac_check_lib_save_LIBS
45292 fi
45293 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45294 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45295 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45296   ol_link_sasl="-lsasl2"
45297 else
45298   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45299 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45300 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45301   echo $ECHO_N "(cached) $ECHO_C" >&6
45302 else
45303   ac_check_lib_save_LIBS=$LIBS
45304 LIBS="-lsasl  $LIBS"
45305 cat >conftest.$ac_ext <<_ACEOF
45306 /* confdefs.h.  */
45307 _ACEOF
45308 cat confdefs.h >>conftest.$ac_ext
45309 cat >>conftest.$ac_ext <<_ACEOF
45310 /* end confdefs.h.  */
45311
45312 /* Override any gcc2 internal prototype to avoid an error.  */
45313 #ifdef __cplusplus
45314 extern "C"
45315 #endif
45316 /* We use char because int might match the return type of a gcc2
45317    builtin and then its argument prototype would still apply.  */
45318 char sasl_client_init ();
45319 int
45320 main ()
45321 {
45322 sasl_client_init ();
45323   ;
45324   return 0;
45325 }
45326 _ACEOF
45327 rm -f conftest.$ac_objext conftest$ac_exeext
45328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45329   (eval $ac_link) 2>conftest.er1
45330   ac_status=$?
45331   grep -v '^ *+' conftest.er1 >conftest.err
45332   rm -f conftest.er1
45333   cat conftest.err >&5
45334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45335   (exit $ac_status); } &&
45336          { ac_try='test -z "$ac_c_werror_flag"
45337                          || test ! -s conftest.err'
45338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45339   (eval $ac_try) 2>&5
45340   ac_status=$?
45341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45342   (exit $ac_status); }; } &&
45343          { ac_try='test -s conftest$ac_exeext'
45344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45345   (eval $ac_try) 2>&5
45346   ac_status=$?
45347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45348   (exit $ac_status); }; }; then
45349   ac_cv_lib_sasl_sasl_client_init=yes
45350 else
45351   echo "$as_me: failed program was:" >&5
45352 sed 's/^/| /' conftest.$ac_ext >&5
45353
45354 ac_cv_lib_sasl_sasl_client_init=no
45355 fi
45356 rm -f conftest.err conftest.$ac_objext \
45357       conftest$ac_exeext conftest.$ac_ext
45358 LIBS=$ac_check_lib_save_LIBS
45359 fi
45360 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45361 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45362 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45363   ol_link_sasl="-lsasl"
45364 fi
45365
45366 fi
45367
45368         fi
45369
45370         if test $ol_link_sasl = no ; then
45371                 if test $ol_with_cyrus_sasl != auto ; then
45372                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45373 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45374    { (exit 1); exit 1; }; }
45375                 else
45376                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45377 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45378                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45379 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45380                         if test $ol_link_tls = no ; then
45381                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45382 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45383                         fi
45384                 fi
45385         else
45386                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45387 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45388 if test "${ol_cv_sasl_compat+set}" = set; then
45389   echo $ECHO_N "(cached) $ECHO_C" >&6
45390 else
45391
45392         cat >conftest.$ac_ext <<_ACEOF
45393 /* confdefs.h.  */
45394 _ACEOF
45395 cat confdefs.h >>conftest.$ac_ext
45396 cat >>conftest.$ac_ext <<_ACEOF
45397 /* end confdefs.h.  */
45398
45399 #ifdef HAVE_SASL_SASL_H
45400 #include <sasl/sasl.h>
45401 #else
45402 #include <sasl.h>
45403 #endif
45404
45405 /* Require 2.1.15+ */
45406 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
45407         char *__sasl_compat = "2.2+ or better okay (we guess)";
45408 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
45409         && SASL_VERSION_STEP >=15
45410         char *__sasl_compat = "2.1.15+ or better okay";
45411 #endif
45412
45413 _ACEOF
45414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45415   $EGREP "__sasl_compat" >/dev/null 2>&1; then
45416   ol_cv_sasl_compat=yes
45417 else
45418   ol_cv_sasl_compat=no
45419 fi
45420 rm -f conftest*
45421
45422 fi
45423 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45424 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45425
45426                 if test $ol_cv_sasl_compat = no ; then
45427                         ol_link_sasl=no
45428                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45429 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45430    { (exit 1); exit 1; }; }
45431                 fi
45432
45433
45434 cat >>confdefs.h <<\_ACEOF
45435 #define HAVE_CYRUS_SASL 1
45436 _ACEOF
45437
45438                 SASL_LIBS="$ol_link_sasl"
45439                 if test $ol_enable_spasswd != no ; then
45440                         ol_link_spasswd=yes
45441                 fi
45442
45443                 ac_save_LIBS="$LIBS"
45444                 LIBS="$LIBS $ol_link_sasl"
45445                 echo "$as_me:$LINENO: checking for sasl_version" >&5
45446 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45447 if test "${ac_cv_func_sasl_version+set}" = set; then
45448   echo $ECHO_N "(cached) $ECHO_C" >&6
45449 else
45450   cat >conftest.$ac_ext <<_ACEOF
45451 /* confdefs.h.  */
45452 _ACEOF
45453 cat confdefs.h >>conftest.$ac_ext
45454 cat >>conftest.$ac_ext <<_ACEOF
45455 /* end confdefs.h.  */
45456 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45458 #define sasl_version innocuous_sasl_version
45459
45460 /* System header to define __stub macros and hopefully few prototypes,
45461     which can conflict with char sasl_version (); below.
45462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45463     <limits.h> exists even on freestanding compilers.  */
45464
45465 #ifdef __STDC__
45466 # include <limits.h>
45467 #else
45468 # include <assert.h>
45469 #endif
45470
45471 #undef sasl_version
45472
45473 /* Override any gcc2 internal prototype to avoid an error.  */
45474 #ifdef __cplusplus
45475 extern "C"
45476 {
45477 #endif
45478 /* We use char because int might match the return type of a gcc2
45479    builtin and then its argument prototype would still apply.  */
45480 char sasl_version ();
45481 /* The GNU C library defines this for functions which it implements
45482     to always fail with ENOSYS.  Some functions are actually named
45483     something starting with __ and the normal name is an alias.  */
45484 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45485 choke me
45486 #else
45487 char (*f) () = sasl_version;
45488 #endif
45489 #ifdef __cplusplus
45490 }
45491 #endif
45492
45493 int
45494 main ()
45495 {
45496 return f != sasl_version;
45497   ;
45498   return 0;
45499 }
45500 _ACEOF
45501 rm -f conftest.$ac_objext conftest$ac_exeext
45502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45503   (eval $ac_link) 2>conftest.er1
45504   ac_status=$?
45505   grep -v '^ *+' conftest.er1 >conftest.err
45506   rm -f conftest.er1
45507   cat conftest.err >&5
45508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45509   (exit $ac_status); } &&
45510          { ac_try='test -z "$ac_c_werror_flag"
45511                          || test ! -s conftest.err'
45512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45513   (eval $ac_try) 2>&5
45514   ac_status=$?
45515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45516   (exit $ac_status); }; } &&
45517          { ac_try='test -s conftest$ac_exeext'
45518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45519   (eval $ac_try) 2>&5
45520   ac_status=$?
45521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45522   (exit $ac_status); }; }; then
45523   ac_cv_func_sasl_version=yes
45524 else
45525   echo "$as_me: failed program was:" >&5
45526 sed 's/^/| /' conftest.$ac_ext >&5
45527
45528 ac_cv_func_sasl_version=no
45529 fi
45530 rm -f conftest.err conftest.$ac_objext \
45531       conftest$ac_exeext conftest.$ac_ext
45532 fi
45533 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45534 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45535 if test $ac_cv_func_sasl_version = yes; then
45536
45537 cat >>confdefs.h <<\_ACEOF
45538 #define HAVE_SASL_VERSION 1
45539 _ACEOF
45540
45541 fi
45542
45543                 LIBS="$ac_save_LIBS"
45544
45545                 WITH_SASL=yes
45546         fi
45547
45548 else
45549         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45550 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45551         if test $ol_link_tls = no ; then
45552                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45553 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45554         fi
45555 fi
45556
45557 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45558         dev=no
45559         if test -r /dev/urandom ; then
45560                 dev="/dev/urandom";
45561         elif test -r /idev/urandom ; then
45562                 dev="/idev/urandom";
45563         elif test -r /dev/srandom ; then
45564                 dev="/dev/srandom";
45565         elif test -r /dev/random ; then
45566                 dev="/dev/random";
45567         elif test -r /idev/random ; then
45568                 dev="/idev/random";
45569         fi
45570
45571         if test $dev != no ; then
45572
45573 cat >>confdefs.h <<_ACEOF
45574 #define URANDOM_DEVICE "$dev"
45575 _ACEOF
45576
45577         fi
45578 fi
45579
45580 ol_link_fetch=no
45581 if test $ol_with_fetch != no ; then
45582         ol_LIBS=$LIBS
45583 LIBS="-lfetch -lcom_err $LIBS"
45584 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45585 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45586 if test "${ol_cv_lib_fetch+set}" = set; then
45587   echo $ECHO_N "(cached) $ECHO_C" >&6
45588 else
45589
45590         cat >conftest.$ac_ext <<_ACEOF
45591 /* confdefs.h.  */
45592 _ACEOF
45593 cat confdefs.h >>conftest.$ac_ext
45594 cat >>conftest.$ac_ext <<_ACEOF
45595 /* end confdefs.h.  */
45596
45597 #include <sys/param.h>
45598 #include <stdio.h>
45599 #include <fetch.h>
45600 int
45601 main ()
45602 {
45603 struct url *u = fetchParseURL("file:///");
45604   ;
45605   return 0;
45606 }
45607 _ACEOF
45608 rm -f conftest.$ac_objext conftest$ac_exeext
45609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45610   (eval $ac_link) 2>conftest.er1
45611   ac_status=$?
45612   grep -v '^ *+' conftest.er1 >conftest.err
45613   rm -f conftest.er1
45614   cat conftest.err >&5
45615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45616   (exit $ac_status); } &&
45617          { ac_try='test -z "$ac_c_werror_flag"
45618                          || test ! -s conftest.err'
45619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45620   (eval $ac_try) 2>&5
45621   ac_status=$?
45622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45623   (exit $ac_status); }; } &&
45624          { ac_try='test -s conftest$ac_exeext'
45625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45626   (eval $ac_try) 2>&5
45627   ac_status=$?
45628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45629   (exit $ac_status); }; }; then
45630   ol_cv_lib_fetch=yes
45631 else
45632   echo "$as_me: failed program was:" >&5
45633 sed 's/^/| /' conftest.$ac_ext >&5
45634
45635 ol_cv_lib_fetch=no
45636 fi
45637 rm -f conftest.err conftest.$ac_objext \
45638       conftest$ac_exeext conftest.$ac_ext
45639 fi
45640 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45641 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45642 LIBS=$ol_LIBS
45643 if test $ol_cv_lib_fetch != no ; then
45644         ol_link_fetch="-lfetch -lcom_err"
45645
45646 cat >>confdefs.h <<\_ACEOF
45647 #define HAVE_FETCH 1
45648 _ACEOF
45649
45650 fi
45651
45652
45653         if test $ol_cv_lib_fetch != no ; then
45654                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45655                 ol_link_fetch=freebsd
45656
45657         elif test $ol_with_fetch != auto ; then
45658                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45659 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45660    { (exit 1); exit 1; }; }
45661         fi
45662 fi
45663
45664 if test $ol_enable_crypt != no ; then
45665         save_LIBS="$LIBS"
45666         LIBS="$TLS_LIBS $LIBS"
45667
45668         echo "$as_me:$LINENO: checking for crypt" >&5
45669 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45670 if test "${ac_cv_func_crypt+set}" = set; then
45671   echo $ECHO_N "(cached) $ECHO_C" >&6
45672 else
45673   cat >conftest.$ac_ext <<_ACEOF
45674 /* confdefs.h.  */
45675 _ACEOF
45676 cat confdefs.h >>conftest.$ac_ext
45677 cat >>conftest.$ac_ext <<_ACEOF
45678 /* end confdefs.h.  */
45679 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45681 #define crypt innocuous_crypt
45682
45683 /* System header to define __stub macros and hopefully few prototypes,
45684     which can conflict with char crypt (); below.
45685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45686     <limits.h> exists even on freestanding compilers.  */
45687
45688 #ifdef __STDC__
45689 # include <limits.h>
45690 #else
45691 # include <assert.h>
45692 #endif
45693
45694 #undef crypt
45695
45696 /* Override any gcc2 internal prototype to avoid an error.  */
45697 #ifdef __cplusplus
45698 extern "C"
45699 {
45700 #endif
45701 /* We use char because int might match the return type of a gcc2
45702    builtin and then its argument prototype would still apply.  */
45703 char crypt ();
45704 /* The GNU C library defines this for functions which it implements
45705     to always fail with ENOSYS.  Some functions are actually named
45706     something starting with __ and the normal name is an alias.  */
45707 #if defined (__stub_crypt) || defined (__stub___crypt)
45708 choke me
45709 #else
45710 char (*f) () = crypt;
45711 #endif
45712 #ifdef __cplusplus
45713 }
45714 #endif
45715
45716 int
45717 main ()
45718 {
45719 return f != crypt;
45720   ;
45721   return 0;
45722 }
45723 _ACEOF
45724 rm -f conftest.$ac_objext conftest$ac_exeext
45725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45726   (eval $ac_link) 2>conftest.er1
45727   ac_status=$?
45728   grep -v '^ *+' conftest.er1 >conftest.err
45729   rm -f conftest.er1
45730   cat conftest.err >&5
45731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45732   (exit $ac_status); } &&
45733          { ac_try='test -z "$ac_c_werror_flag"
45734                          || test ! -s conftest.err'
45735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45736   (eval $ac_try) 2>&5
45737   ac_status=$?
45738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45739   (exit $ac_status); }; } &&
45740          { ac_try='test -s conftest$ac_exeext'
45741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45742   (eval $ac_try) 2>&5
45743   ac_status=$?
45744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45745   (exit $ac_status); }; }; then
45746   ac_cv_func_crypt=yes
45747 else
45748   echo "$as_me: failed program was:" >&5
45749 sed 's/^/| /' conftest.$ac_ext >&5
45750
45751 ac_cv_func_crypt=no
45752 fi
45753 rm -f conftest.err conftest.$ac_objext \
45754       conftest$ac_exeext conftest.$ac_ext
45755 fi
45756 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
45757 echo "${ECHO_T}$ac_cv_func_crypt" >&6
45758 if test $ac_cv_func_crypt = yes; then
45759   have_crypt=yes
45760 else
45761
45762                 LIBS="$save_LIBS"
45763                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
45764 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
45765 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
45766   echo $ECHO_N "(cached) $ECHO_C" >&6
45767 else
45768   ac_check_lib_save_LIBS=$LIBS
45769 LIBS="-lcrypt  $LIBS"
45770 cat >conftest.$ac_ext <<_ACEOF
45771 /* confdefs.h.  */
45772 _ACEOF
45773 cat confdefs.h >>conftest.$ac_ext
45774 cat >>conftest.$ac_ext <<_ACEOF
45775 /* end confdefs.h.  */
45776
45777 /* Override any gcc2 internal prototype to avoid an error.  */
45778 #ifdef __cplusplus
45779 extern "C"
45780 #endif
45781 /* We use char because int might match the return type of a gcc2
45782    builtin and then its argument prototype would still apply.  */
45783 char crypt ();
45784 int
45785 main ()
45786 {
45787 crypt ();
45788   ;
45789   return 0;
45790 }
45791 _ACEOF
45792 rm -f conftest.$ac_objext conftest$ac_exeext
45793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45794   (eval $ac_link) 2>conftest.er1
45795   ac_status=$?
45796   grep -v '^ *+' conftest.er1 >conftest.err
45797   rm -f conftest.er1
45798   cat conftest.err >&5
45799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45800   (exit $ac_status); } &&
45801          { ac_try='test -z "$ac_c_werror_flag"
45802                          || test ! -s conftest.err'
45803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45804   (eval $ac_try) 2>&5
45805   ac_status=$?
45806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45807   (exit $ac_status); }; } &&
45808          { ac_try='test -s conftest$ac_exeext'
45809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45810   (eval $ac_try) 2>&5
45811   ac_status=$?
45812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45813   (exit $ac_status); }; }; then
45814   ac_cv_lib_crypt_crypt=yes
45815 else
45816   echo "$as_me: failed program was:" >&5
45817 sed 's/^/| /' conftest.$ac_ext >&5
45818
45819 ac_cv_lib_crypt_crypt=no
45820 fi
45821 rm -f conftest.err conftest.$ac_objext \
45822       conftest$ac_exeext conftest.$ac_ext
45823 LIBS=$ac_check_lib_save_LIBS
45824 fi
45825 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
45826 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
45827 if test $ac_cv_lib_crypt_crypt = yes; then
45828   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
45829                         have_crypt=yes
45830 else
45831   have_crypt=no
45832 fi
45833
45834 fi
45835
45836
45837         LIBS="$save_LIBS"
45838
45839         if test $have_crypt = yes ; then
45840
45841 cat >>confdefs.h <<\_ACEOF
45842 #define HAVE_CRYPT 1
45843 _ACEOF
45844
45845         else
45846                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
45847 echo "$as_me: WARNING: could not find crypt" >&2;}
45848                 if test $ol_enable_crypt = yes ; then
45849                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
45850 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
45851    { (exit 1); exit 1; }; }
45852                 fi
45853
45854                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
45855 echo "$as_me: WARNING: disabling crypt support" >&2;}
45856                 ol_enable_crypt=no
45857         fi
45858 fi
45859
45860 if test $ol_enable_proctitle != no ; then
45861         echo "$as_me:$LINENO: checking for setproctitle" >&5
45862 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
45863 if test "${ac_cv_func_setproctitle+set}" = set; then
45864   echo $ECHO_N "(cached) $ECHO_C" >&6
45865 else
45866   cat >conftest.$ac_ext <<_ACEOF
45867 /* confdefs.h.  */
45868 _ACEOF
45869 cat confdefs.h >>conftest.$ac_ext
45870 cat >>conftest.$ac_ext <<_ACEOF
45871 /* end confdefs.h.  */
45872 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
45873    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45874 #define setproctitle innocuous_setproctitle
45875
45876 /* System header to define __stub macros and hopefully few prototypes,
45877     which can conflict with char setproctitle (); below.
45878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45879     <limits.h> exists even on freestanding compilers.  */
45880
45881 #ifdef __STDC__
45882 # include <limits.h>
45883 #else
45884 # include <assert.h>
45885 #endif
45886
45887 #undef setproctitle
45888
45889 /* Override any gcc2 internal prototype to avoid an error.  */
45890 #ifdef __cplusplus
45891 extern "C"
45892 {
45893 #endif
45894 /* We use char because int might match the return type of a gcc2
45895    builtin and then its argument prototype would still apply.  */
45896 char setproctitle ();
45897 /* The GNU C library defines this for functions which it implements
45898     to always fail with ENOSYS.  Some functions are actually named
45899     something starting with __ and the normal name is an alias.  */
45900 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
45901 choke me
45902 #else
45903 char (*f) () = setproctitle;
45904 #endif
45905 #ifdef __cplusplus
45906 }
45907 #endif
45908
45909 int
45910 main ()
45911 {
45912 return f != setproctitle;
45913   ;
45914   return 0;
45915 }
45916 _ACEOF
45917 rm -f conftest.$ac_objext conftest$ac_exeext
45918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45919   (eval $ac_link) 2>conftest.er1
45920   ac_status=$?
45921   grep -v '^ *+' conftest.er1 >conftest.err
45922   rm -f conftest.er1
45923   cat conftest.err >&5
45924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45925   (exit $ac_status); } &&
45926          { ac_try='test -z "$ac_c_werror_flag"
45927                          || test ! -s conftest.err'
45928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45929   (eval $ac_try) 2>&5
45930   ac_status=$?
45931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45932   (exit $ac_status); }; } &&
45933          { ac_try='test -s conftest$ac_exeext'
45934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45935   (eval $ac_try) 2>&5
45936   ac_status=$?
45937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45938   (exit $ac_status); }; }; then
45939   ac_cv_func_setproctitle=yes
45940 else
45941   echo "$as_me: failed program was:" >&5
45942 sed 's/^/| /' conftest.$ac_ext >&5
45943
45944 ac_cv_func_setproctitle=no
45945 fi
45946 rm -f conftest.err conftest.$ac_objext \
45947       conftest$ac_exeext conftest.$ac_ext
45948 fi
45949 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
45950 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
45951 if test $ac_cv_func_setproctitle = yes; then
45952   have_setproctitle=yes
45953 else
45954
45955                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
45956 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
45957 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
45958   echo $ECHO_N "(cached) $ECHO_C" >&6
45959 else
45960   ac_check_lib_save_LIBS=$LIBS
45961 LIBS="-lutil  $LIBS"
45962 cat >conftest.$ac_ext <<_ACEOF
45963 /* confdefs.h.  */
45964 _ACEOF
45965 cat confdefs.h >>conftest.$ac_ext
45966 cat >>conftest.$ac_ext <<_ACEOF
45967 /* end confdefs.h.  */
45968
45969 /* Override any gcc2 internal prototype to avoid an error.  */
45970 #ifdef __cplusplus
45971 extern "C"
45972 #endif
45973 /* We use char because int might match the return type of a gcc2
45974    builtin and then its argument prototype would still apply.  */
45975 char setproctitle ();
45976 int
45977 main ()
45978 {
45979 setproctitle ();
45980   ;
45981   return 0;
45982 }
45983 _ACEOF
45984 rm -f conftest.$ac_objext conftest$ac_exeext
45985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45986   (eval $ac_link) 2>conftest.er1
45987   ac_status=$?
45988   grep -v '^ *+' conftest.er1 >conftest.err
45989   rm -f conftest.er1
45990   cat conftest.err >&5
45991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45992   (exit $ac_status); } &&
45993          { ac_try='test -z "$ac_c_werror_flag"
45994                          || test ! -s conftest.err'
45995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45996   (eval $ac_try) 2>&5
45997   ac_status=$?
45998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45999   (exit $ac_status); }; } &&
46000          { ac_try='test -s conftest$ac_exeext'
46001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46002   (eval $ac_try) 2>&5
46003   ac_status=$?
46004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46005   (exit $ac_status); }; }; then
46006   ac_cv_lib_util_setproctitle=yes
46007 else
46008   echo "$as_me: failed program was:" >&5
46009 sed 's/^/| /' conftest.$ac_ext >&5
46010
46011 ac_cv_lib_util_setproctitle=no
46012 fi
46013 rm -f conftest.err conftest.$ac_objext \
46014       conftest$ac_exeext conftest.$ac_ext
46015 LIBS=$ac_check_lib_save_LIBS
46016 fi
46017 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
46018 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
46019 if test $ac_cv_lib_util_setproctitle = yes; then
46020   have_setproctitle=yes
46021                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
46022 else
46023   have_setproctitle=no
46024                         case $LIBOBJS in
46025     "setproctitle.$ac_objext"   | \
46026   *" setproctitle.$ac_objext"   | \
46027     "setproctitle.$ac_objext "* | \
46028   *" setproctitle.$ac_objext "* ) ;;
46029   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
46030 esac
46031
46032                         LIBSRCS="$LIBSRCS setproctitle.c"
46033 fi
46034
46035 fi
46036
46037
46038         if test $have_setproctitle = yes ; then
46039
46040 cat >>confdefs.h <<\_ACEOF
46041 #define HAVE_SETPROCTITLE 1
46042 _ACEOF
46043
46044         fi
46045 fi
46046
46047 if test $ol_enable_slp != no ; then
46048
46049 for ac_header in slp.h
46050 do
46051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46053   echo "$as_me:$LINENO: checking for $ac_header" >&5
46054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46056   echo $ECHO_N "(cached) $ECHO_C" >&6
46057 fi
46058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46060 else
46061   # Is the header compilable?
46062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46064 cat >conftest.$ac_ext <<_ACEOF
46065 /* confdefs.h.  */
46066 _ACEOF
46067 cat confdefs.h >>conftest.$ac_ext
46068 cat >>conftest.$ac_ext <<_ACEOF
46069 /* end confdefs.h.  */
46070 $ac_includes_default
46071 #include <$ac_header>
46072 _ACEOF
46073 rm -f conftest.$ac_objext
46074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46075   (eval $ac_compile) 2>conftest.er1
46076   ac_status=$?
46077   grep -v '^ *+' conftest.er1 >conftest.err
46078   rm -f conftest.er1
46079   cat conftest.err >&5
46080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46081   (exit $ac_status); } &&
46082          { ac_try='test -z "$ac_c_werror_flag"
46083                          || test ! -s conftest.err'
46084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46085   (eval $ac_try) 2>&5
46086   ac_status=$?
46087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46088   (exit $ac_status); }; } &&
46089          { ac_try='test -s conftest.$ac_objext'
46090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46091   (eval $ac_try) 2>&5
46092   ac_status=$?
46093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46094   (exit $ac_status); }; }; then
46095   ac_header_compiler=yes
46096 else
46097   echo "$as_me: failed program was:" >&5
46098 sed 's/^/| /' conftest.$ac_ext >&5
46099
46100 ac_header_compiler=no
46101 fi
46102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46104 echo "${ECHO_T}$ac_header_compiler" >&6
46105
46106 # Is the header present?
46107 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46109 cat >conftest.$ac_ext <<_ACEOF
46110 /* confdefs.h.  */
46111 _ACEOF
46112 cat confdefs.h >>conftest.$ac_ext
46113 cat >>conftest.$ac_ext <<_ACEOF
46114 /* end confdefs.h.  */
46115 #include <$ac_header>
46116 _ACEOF
46117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46118   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46119   ac_status=$?
46120   grep -v '^ *+' conftest.er1 >conftest.err
46121   rm -f conftest.er1
46122   cat conftest.err >&5
46123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46124   (exit $ac_status); } >/dev/null; then
46125   if test -s conftest.err; then
46126     ac_cpp_err=$ac_c_preproc_warn_flag
46127     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46128   else
46129     ac_cpp_err=
46130   fi
46131 else
46132   ac_cpp_err=yes
46133 fi
46134 if test -z "$ac_cpp_err"; then
46135   ac_header_preproc=yes
46136 else
46137   echo "$as_me: failed program was:" >&5
46138 sed 's/^/| /' conftest.$ac_ext >&5
46139
46140   ac_header_preproc=no
46141 fi
46142 rm -f conftest.err conftest.$ac_ext
46143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46144 echo "${ECHO_T}$ac_header_preproc" >&6
46145
46146 # So?  What about this header?
46147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46148   yes:no: )
46149     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46151     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46153     ac_header_preproc=yes
46154     ;;
46155   no:yes:* )
46156     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46158     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46159 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46160     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46162     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46163 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46164     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46166     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46168     (
46169       cat <<\_ASBOX
46170 ## ------------------------------------------ ##
46171 ## Report this to the AC_PACKAGE_NAME lists.  ##
46172 ## ------------------------------------------ ##
46173 _ASBOX
46174     ) |
46175       sed "s/^/$as_me: WARNING:     /" >&2
46176     ;;
46177 esac
46178 echo "$as_me:$LINENO: checking for $ac_header" >&5
46179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46181   echo $ECHO_N "(cached) $ECHO_C" >&6
46182 else
46183   eval "$as_ac_Header=\$ac_header_preproc"
46184 fi
46185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46187
46188 fi
46189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46190   cat >>confdefs.h <<_ACEOF
46191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46192 _ACEOF
46193
46194 fi
46195
46196 done
46197
46198
46199         if test $ac_cv_header_slp_h = yes ; then
46200                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46201 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46202 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46203   echo $ECHO_N "(cached) $ECHO_C" >&6
46204 else
46205   ac_check_lib_save_LIBS=$LIBS
46206 LIBS="-lslp  $LIBS"
46207 cat >conftest.$ac_ext <<_ACEOF
46208 /* confdefs.h.  */
46209 _ACEOF
46210 cat confdefs.h >>conftest.$ac_ext
46211 cat >>conftest.$ac_ext <<_ACEOF
46212 /* end confdefs.h.  */
46213
46214 /* Override any gcc2 internal prototype to avoid an error.  */
46215 #ifdef __cplusplus
46216 extern "C"
46217 #endif
46218 /* We use char because int might match the return type of a gcc2
46219    builtin and then its argument prototype would still apply.  */
46220 char SLPOpen ();
46221 int
46222 main ()
46223 {
46224 SLPOpen ();
46225   ;
46226   return 0;
46227 }
46228 _ACEOF
46229 rm -f conftest.$ac_objext conftest$ac_exeext
46230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46231   (eval $ac_link) 2>conftest.er1
46232   ac_status=$?
46233   grep -v '^ *+' conftest.er1 >conftest.err
46234   rm -f conftest.er1
46235   cat conftest.err >&5
46236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46237   (exit $ac_status); } &&
46238          { ac_try='test -z "$ac_c_werror_flag"
46239                          || test ! -s conftest.err'
46240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46241   (eval $ac_try) 2>&5
46242   ac_status=$?
46243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46244   (exit $ac_status); }; } &&
46245          { ac_try='test -s conftest$ac_exeext'
46246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46247   (eval $ac_try) 2>&5
46248   ac_status=$?
46249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46250   (exit $ac_status); }; }; then
46251   ac_cv_lib_slp_SLPOpen=yes
46252 else
46253   echo "$as_me: failed program was:" >&5
46254 sed 's/^/| /' conftest.$ac_ext >&5
46255
46256 ac_cv_lib_slp_SLPOpen=no
46257 fi
46258 rm -f conftest.err conftest.$ac_objext \
46259       conftest$ac_exeext conftest.$ac_ext
46260 LIBS=$ac_check_lib_save_LIBS
46261 fi
46262 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46263 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46264 if test $ac_cv_lib_slp_SLPOpen = yes; then
46265   have_slp=yes
46266 else
46267   have_slp=no
46268 fi
46269
46270                 if test $have_slp = yes ; then
46271
46272 cat >>confdefs.h <<\_ACEOF
46273 #define HAVE_SLP 1
46274 _ACEOF
46275
46276                         SLAPD_SLP_LIBS=-lslp
46277                 fi
46278
46279         elif test $ol_enable_slp = yes ; then
46280                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46281 echo "$as_me: error: SLP not found" >&2;}
46282    { (exit 1); exit 1; }; }
46283         fi
46284 fi
46285
46286 if test "$ol_with_multiple_precision" != "no" ; then
46287         ol_have_bignum=no
46288         ol_have_gmp=no
46289
46290
46291
46292 for ac_header in openssl/bn.h bn.h
46293 do
46294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46296   echo "$as_me:$LINENO: checking for $ac_header" >&5
46297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46299   echo $ECHO_N "(cached) $ECHO_C" >&6
46300 fi
46301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46303 else
46304   # Is the header compilable?
46305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46307 cat >conftest.$ac_ext <<_ACEOF
46308 /* confdefs.h.  */
46309 _ACEOF
46310 cat confdefs.h >>conftest.$ac_ext
46311 cat >>conftest.$ac_ext <<_ACEOF
46312 /* end confdefs.h.  */
46313 $ac_includes_default
46314 #include <$ac_header>
46315 _ACEOF
46316 rm -f conftest.$ac_objext
46317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46318   (eval $ac_compile) 2>conftest.er1
46319   ac_status=$?
46320   grep -v '^ *+' conftest.er1 >conftest.err
46321   rm -f conftest.er1
46322   cat conftest.err >&5
46323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46324   (exit $ac_status); } &&
46325          { ac_try='test -z "$ac_c_werror_flag"
46326                          || test ! -s conftest.err'
46327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46328   (eval $ac_try) 2>&5
46329   ac_status=$?
46330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46331   (exit $ac_status); }; } &&
46332          { ac_try='test -s conftest.$ac_objext'
46333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46334   (eval $ac_try) 2>&5
46335   ac_status=$?
46336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46337   (exit $ac_status); }; }; then
46338   ac_header_compiler=yes
46339 else
46340   echo "$as_me: failed program was:" >&5
46341 sed 's/^/| /' conftest.$ac_ext >&5
46342
46343 ac_header_compiler=no
46344 fi
46345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46347 echo "${ECHO_T}$ac_header_compiler" >&6
46348
46349 # Is the header present?
46350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46352 cat >conftest.$ac_ext <<_ACEOF
46353 /* confdefs.h.  */
46354 _ACEOF
46355 cat confdefs.h >>conftest.$ac_ext
46356 cat >>conftest.$ac_ext <<_ACEOF
46357 /* end confdefs.h.  */
46358 #include <$ac_header>
46359 _ACEOF
46360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46361   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46362   ac_status=$?
46363   grep -v '^ *+' conftest.er1 >conftest.err
46364   rm -f conftest.er1
46365   cat conftest.err >&5
46366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46367   (exit $ac_status); } >/dev/null; then
46368   if test -s conftest.err; then
46369     ac_cpp_err=$ac_c_preproc_warn_flag
46370     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46371   else
46372     ac_cpp_err=
46373   fi
46374 else
46375   ac_cpp_err=yes
46376 fi
46377 if test -z "$ac_cpp_err"; then
46378   ac_header_preproc=yes
46379 else
46380   echo "$as_me: failed program was:" >&5
46381 sed 's/^/| /' conftest.$ac_ext >&5
46382
46383   ac_header_preproc=no
46384 fi
46385 rm -f conftest.err conftest.$ac_ext
46386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46387 echo "${ECHO_T}$ac_header_preproc" >&6
46388
46389 # So?  What about this header?
46390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46391   yes:no: )
46392     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46396     ac_header_preproc=yes
46397     ;;
46398   no:yes:* )
46399     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46401     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46402 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46403     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46405     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46406 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46409     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46411     (
46412       cat <<\_ASBOX
46413 ## ------------------------------------------ ##
46414 ## Report this to the AC_PACKAGE_NAME lists.  ##
46415 ## ------------------------------------------ ##
46416 _ASBOX
46417     ) |
46418       sed "s/^/$as_me: WARNING:     /" >&2
46419     ;;
46420 esac
46421 echo "$as_me:$LINENO: checking for $ac_header" >&5
46422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46424   echo $ECHO_N "(cached) $ECHO_C" >&6
46425 else
46426   eval "$as_ac_Header=\$ac_header_preproc"
46427 fi
46428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46430
46431 fi
46432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46433   cat >>confdefs.h <<_ACEOF
46434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46435 _ACEOF
46436
46437 fi
46438
46439 done
46440
46441
46442
46443 for ac_header in openssl/crypto.h crypto.h
46444 do
46445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46447   echo "$as_me:$LINENO: checking for $ac_header" >&5
46448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46450   echo $ECHO_N "(cached) $ECHO_C" >&6
46451 fi
46452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46454 else
46455   # Is the header compilable?
46456 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46458 cat >conftest.$ac_ext <<_ACEOF
46459 /* confdefs.h.  */
46460 _ACEOF
46461 cat confdefs.h >>conftest.$ac_ext
46462 cat >>conftest.$ac_ext <<_ACEOF
46463 /* end confdefs.h.  */
46464 $ac_includes_default
46465 #include <$ac_header>
46466 _ACEOF
46467 rm -f conftest.$ac_objext
46468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46469   (eval $ac_compile) 2>conftest.er1
46470   ac_status=$?
46471   grep -v '^ *+' conftest.er1 >conftest.err
46472   rm -f conftest.er1
46473   cat conftest.err >&5
46474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46475   (exit $ac_status); } &&
46476          { ac_try='test -z "$ac_c_werror_flag"
46477                          || test ! -s conftest.err'
46478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46479   (eval $ac_try) 2>&5
46480   ac_status=$?
46481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46482   (exit $ac_status); }; } &&
46483          { ac_try='test -s conftest.$ac_objext'
46484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46485   (eval $ac_try) 2>&5
46486   ac_status=$?
46487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46488   (exit $ac_status); }; }; then
46489   ac_header_compiler=yes
46490 else
46491   echo "$as_me: failed program was:" >&5
46492 sed 's/^/| /' conftest.$ac_ext >&5
46493
46494 ac_header_compiler=no
46495 fi
46496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46497 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46498 echo "${ECHO_T}$ac_header_compiler" >&6
46499
46500 # Is the header present?
46501 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46503 cat >conftest.$ac_ext <<_ACEOF
46504 /* confdefs.h.  */
46505 _ACEOF
46506 cat confdefs.h >>conftest.$ac_ext
46507 cat >>conftest.$ac_ext <<_ACEOF
46508 /* end confdefs.h.  */
46509 #include <$ac_header>
46510 _ACEOF
46511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46512   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46513   ac_status=$?
46514   grep -v '^ *+' conftest.er1 >conftest.err
46515   rm -f conftest.er1
46516   cat conftest.err >&5
46517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46518   (exit $ac_status); } >/dev/null; then
46519   if test -s conftest.err; then
46520     ac_cpp_err=$ac_c_preproc_warn_flag
46521     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46522   else
46523     ac_cpp_err=
46524   fi
46525 else
46526   ac_cpp_err=yes
46527 fi
46528 if test -z "$ac_cpp_err"; then
46529   ac_header_preproc=yes
46530 else
46531   echo "$as_me: failed program was:" >&5
46532 sed 's/^/| /' conftest.$ac_ext >&5
46533
46534   ac_header_preproc=no
46535 fi
46536 rm -f conftest.err conftest.$ac_ext
46537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46538 echo "${ECHO_T}$ac_header_preproc" >&6
46539
46540 # So?  What about this header?
46541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46542   yes:no: )
46543     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46547     ac_header_preproc=yes
46548     ;;
46549   no:yes:* )
46550     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46552     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46553 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46554     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46556     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46557 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46560     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46562     (
46563       cat <<\_ASBOX
46564 ## ------------------------------------------ ##
46565 ## Report this to the AC_PACKAGE_NAME lists.  ##
46566 ## ------------------------------------------ ##
46567 _ASBOX
46568     ) |
46569       sed "s/^/$as_me: WARNING:     /" >&2
46570     ;;
46571 esac
46572 echo "$as_me:$LINENO: checking for $ac_header" >&5
46573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46575   echo $ECHO_N "(cached) $ECHO_C" >&6
46576 else
46577   eval "$as_ac_Header=\$ac_header_preproc"
46578 fi
46579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46581
46582 fi
46583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46584   cat >>confdefs.h <<_ACEOF
46585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46586 _ACEOF
46587
46588 fi
46589
46590 done
46591
46592
46593 for ac_header in gmp.h
46594 do
46595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46597   echo "$as_me:$LINENO: checking for $ac_header" >&5
46598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46600   echo $ECHO_N "(cached) $ECHO_C" >&6
46601 fi
46602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46604 else
46605   # Is the header compilable?
46606 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46608 cat >conftest.$ac_ext <<_ACEOF
46609 /* confdefs.h.  */
46610 _ACEOF
46611 cat confdefs.h >>conftest.$ac_ext
46612 cat >>conftest.$ac_ext <<_ACEOF
46613 /* end confdefs.h.  */
46614 $ac_includes_default
46615 #include <$ac_header>
46616 _ACEOF
46617 rm -f conftest.$ac_objext
46618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46619   (eval $ac_compile) 2>conftest.er1
46620   ac_status=$?
46621   grep -v '^ *+' conftest.er1 >conftest.err
46622   rm -f conftest.er1
46623   cat conftest.err >&5
46624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46625   (exit $ac_status); } &&
46626          { ac_try='test -z "$ac_c_werror_flag"
46627                          || test ! -s conftest.err'
46628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46629   (eval $ac_try) 2>&5
46630   ac_status=$?
46631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46632   (exit $ac_status); }; } &&
46633          { ac_try='test -s conftest.$ac_objext'
46634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46635   (eval $ac_try) 2>&5
46636   ac_status=$?
46637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46638   (exit $ac_status); }; }; then
46639   ac_header_compiler=yes
46640 else
46641   echo "$as_me: failed program was:" >&5
46642 sed 's/^/| /' conftest.$ac_ext >&5
46643
46644 ac_header_compiler=no
46645 fi
46646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46648 echo "${ECHO_T}$ac_header_compiler" >&6
46649
46650 # Is the header present?
46651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46653 cat >conftest.$ac_ext <<_ACEOF
46654 /* confdefs.h.  */
46655 _ACEOF
46656 cat confdefs.h >>conftest.$ac_ext
46657 cat >>conftest.$ac_ext <<_ACEOF
46658 /* end confdefs.h.  */
46659 #include <$ac_header>
46660 _ACEOF
46661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46662   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46663   ac_status=$?
46664   grep -v '^ *+' conftest.er1 >conftest.err
46665   rm -f conftest.er1
46666   cat conftest.err >&5
46667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46668   (exit $ac_status); } >/dev/null; then
46669   if test -s conftest.err; then
46670     ac_cpp_err=$ac_c_preproc_warn_flag
46671     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46672   else
46673     ac_cpp_err=
46674   fi
46675 else
46676   ac_cpp_err=yes
46677 fi
46678 if test -z "$ac_cpp_err"; then
46679   ac_header_preproc=yes
46680 else
46681   echo "$as_me: failed program was:" >&5
46682 sed 's/^/| /' conftest.$ac_ext >&5
46683
46684   ac_header_preproc=no
46685 fi
46686 rm -f conftest.err conftest.$ac_ext
46687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46688 echo "${ECHO_T}$ac_header_preproc" >&6
46689
46690 # So?  What about this header?
46691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46692   yes:no: )
46693     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46697     ac_header_preproc=yes
46698     ;;
46699   no:yes:* )
46700     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46702     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46703 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46704     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46706     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46707 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46708     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46710     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46712     (
46713       cat <<\_ASBOX
46714 ## ------------------------------------------ ##
46715 ## Report this to the AC_PACKAGE_NAME lists.  ##
46716 ## ------------------------------------------ ##
46717 _ASBOX
46718     ) |
46719       sed "s/^/$as_me: WARNING:     /" >&2
46720     ;;
46721 esac
46722 echo "$as_me:$LINENO: checking for $ac_header" >&5
46723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46725   echo $ECHO_N "(cached) $ECHO_C" >&6
46726 else
46727   eval "$as_ac_Header=\$ac_header_preproc"
46728 fi
46729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46731
46732 fi
46733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46734   cat >>confdefs.h <<_ACEOF
46735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46736 _ACEOF
46737
46738 fi
46739
46740 done
46741
46742
46743         if test "$ol_with_tls" = "found" ; then
46744                 ol_have_bn_h=no
46745                 ol_have_crypto_h=no
46746
46747                 if test "$ac_cv_header_openssl_bn_h" = "yes" \
46748                                 -o "$ac_cv_header_bn_h" = "yes" ; then
46749                         ol_have_bn_h=yes
46750                 fi
46751
46752                 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
46753                                 -o "$ac_cv_header_crypto_h" = "yes" ; then
46754                         ol_have_crypto_h=yes
46755                 fi
46756
46757                 if test "$ol_have_bn_h" = "yes" \
46758                                 -a "$ol_have_crypto_h" = "yes" ; then
46759                         ol_have_bignum=yes
46760                 fi
46761         fi
46762
46763         if test $ac_cv_header_gmp_h = yes ; then
46764                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
46765 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
46766 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
46767   echo $ECHO_N "(cached) $ECHO_C" >&6
46768 else
46769   ac_check_lib_save_LIBS=$LIBS
46770 LIBS="-lgmp  $LIBS"
46771 cat >conftest.$ac_ext <<_ACEOF
46772 /* confdefs.h.  */
46773 _ACEOF
46774 cat confdefs.h >>conftest.$ac_ext
46775 cat >>conftest.$ac_ext <<_ACEOF
46776 /* end confdefs.h.  */
46777
46778 /* Override any gcc2 internal prototype to avoid an error.  */
46779 #ifdef __cplusplus
46780 extern "C"
46781 #endif
46782 /* We use char because int might match the return type of a gcc2
46783    builtin and then its argument prototype would still apply.  */
46784 char __gmpz_add_ui ();
46785 int
46786 main ()
46787 {
46788 __gmpz_add_ui ();
46789   ;
46790   return 0;
46791 }
46792 _ACEOF
46793 rm -f conftest.$ac_objext conftest$ac_exeext
46794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46795   (eval $ac_link) 2>conftest.er1
46796   ac_status=$?
46797   grep -v '^ *+' conftest.er1 >conftest.err
46798   rm -f conftest.er1
46799   cat conftest.err >&5
46800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46801   (exit $ac_status); } &&
46802          { ac_try='test -z "$ac_c_werror_flag"
46803                          || test ! -s conftest.err'
46804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46805   (eval $ac_try) 2>&5
46806   ac_status=$?
46807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46808   (exit $ac_status); }; } &&
46809          { ac_try='test -s conftest$ac_exeext'
46810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46811   (eval $ac_try) 2>&5
46812   ac_status=$?
46813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46814   (exit $ac_status); }; }; then
46815   ac_cv_lib_gmp___gmpz_add_ui=yes
46816 else
46817   echo "$as_me: failed program was:" >&5
46818 sed 's/^/| /' conftest.$ac_ext >&5
46819
46820 ac_cv_lib_gmp___gmpz_add_ui=no
46821 fi
46822 rm -f conftest.err conftest.$ac_objext \
46823       conftest$ac_exeext conftest.$ac_ext
46824 LIBS=$ac_check_lib_save_LIBS
46825 fi
46826 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
46827 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
46828 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
46829   have_gmp=yes
46830 else
46831   have_gmp=no
46832 fi
46833
46834                 if test $have_gmp = yes ; then
46835                         ol_have_gmp=yes
46836                 fi
46837         fi
46838
46839         echo "$as_me:$LINENO: checking for multiple precision support" >&5
46840 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
46841
46842         ol_mp_support="none"
46843         case "$ol_with_multiple_precision" in
46844         auto)
46845                                                                                 if test "$ol_have_bignum" = "yes" ; then
46846                         ol_mp_support="bignum"
46847                 else
46848                         if test "$ol_have_gmp" = "yes" ; then
46849                                 ol_mp_support="gmp"
46850                         fi
46851                 fi
46852                 ;;
46853         bignum)
46854                 if test "$ol_have_bignum" != "yes" ; then
46855                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
46856 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
46857    { (exit 1); exit 1; }; }
46858                 fi
46859                 ol_mp_support="bignum"
46860                 ;;
46861         gmp)
46862                 if test "$ol_have_gmp" != "yes" ; then
46863                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
46864 echo "$as_me: error: GMP not available" >&2;}
46865    { (exit 1); exit 1; }; }
46866                 fi
46867                 ol_mp_support="gmp"
46868                 ;;
46869         yes)
46870                 if test "$ol_have_bignum" = "yes" ; then
46871                         ol_mp_support="bignum"
46872                 elif test "$ol_have_gmp" = "yes" ; then
46873                         ol_mp_support="gmp"
46874                 else
46875                         { { echo "$as_me:$LINENO: error: not available" >&5
46876 echo "$as_me: error: not available" >&2;}
46877    { (exit 1); exit 1; }; }
46878                 fi
46879                 ;;
46880         esac
46881
46882         case "$ol_mp_support" in
46883         bignum)
46884
46885 cat >>confdefs.h <<\_ACEOF
46886 #define HAVE_BIGNUM 1
46887 _ACEOF
46888
46889                 ;;
46890         gmp)
46891
46892 cat >>confdefs.h <<\_ACEOF
46893 #define HAVE_GMP 1
46894 _ACEOF
46895
46896                 SLAPD_GMP_LIBS=-lgmp
46897                 ;;
46898         none)
46899                 ;;
46900         esac
46901
46902         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
46903 echo "${ECHO_T}$ol_mp_support" >&6
46904 fi
46905
46906
46907 echo "$as_me:$LINENO: checking long long" >&5
46908 echo $ECHO_N "checking long long... $ECHO_C" >&6
46909 if test "${ol_cv_type_long_long+set}" = set; then
46910   echo $ECHO_N "(cached) $ECHO_C" >&6
46911 else
46912
46913         cat >conftest.$ac_ext <<_ACEOF
46914 /* confdefs.h.  */
46915 _ACEOF
46916 cat confdefs.h >>conftest.$ac_ext
46917 cat >>conftest.$ac_ext <<_ACEOF
46918 /* end confdefs.h.  */
46919
46920 int
46921 main ()
46922 {
46923 long long x;
46924   ;
46925   return 0;
46926 }
46927 _ACEOF
46928 rm -f conftest.$ac_objext
46929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46930   (eval $ac_compile) 2>conftest.er1
46931   ac_status=$?
46932   grep -v '^ *+' conftest.er1 >conftest.err
46933   rm -f conftest.er1
46934   cat conftest.err >&5
46935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46936   (exit $ac_status); } &&
46937          { ac_try='test -z "$ac_c_werror_flag"
46938                          || test ! -s conftest.err'
46939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46940   (eval $ac_try) 2>&5
46941   ac_status=$?
46942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46943   (exit $ac_status); }; } &&
46944          { ac_try='test -s conftest.$ac_objext'
46945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46946   (eval $ac_try) 2>&5
46947   ac_status=$?
46948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46949   (exit $ac_status); }; }; then
46950   ol_cv_type_long_long=yes
46951 else
46952   echo "$as_me: failed program was:" >&5
46953 sed 's/^/| /' conftest.$ac_ext >&5
46954
46955 ol_cv_type_long_long=no
46956 fi
46957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46958 fi
46959 echo "$as_me:$LINENO: result: $ol_cv_type_long_long" >&5
46960 echo "${ECHO_T}$ol_cv_type_long_long" >&6
46961 if test $ol_cv_type_long_long = yes; then
46962
46963 cat >>confdefs.h <<\_ACEOF
46964 #define HAVE_LONG_LONG 1
46965 _ACEOF
46966
46967 fi
46968
46969 echo "$as_me:$LINENO: checking for mode_t" >&5
46970 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
46971 if test "${ac_cv_type_mode_t+set}" = set; then
46972   echo $ECHO_N "(cached) $ECHO_C" >&6
46973 else
46974   cat >conftest.$ac_ext <<_ACEOF
46975 /* confdefs.h.  */
46976 _ACEOF
46977 cat confdefs.h >>conftest.$ac_ext
46978 cat >>conftest.$ac_ext <<_ACEOF
46979 /* end confdefs.h.  */
46980 $ac_includes_default
46981 int
46982 main ()
46983 {
46984 if ((mode_t *) 0)
46985   return 0;
46986 if (sizeof (mode_t))
46987   return 0;
46988   ;
46989   return 0;
46990 }
46991 _ACEOF
46992 rm -f conftest.$ac_objext
46993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46994   (eval $ac_compile) 2>conftest.er1
46995   ac_status=$?
46996   grep -v '^ *+' conftest.er1 >conftest.err
46997   rm -f conftest.er1
46998   cat conftest.err >&5
46999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47000   (exit $ac_status); } &&
47001          { ac_try='test -z "$ac_c_werror_flag"
47002                          || test ! -s conftest.err'
47003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47004   (eval $ac_try) 2>&5
47005   ac_status=$?
47006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47007   (exit $ac_status); }; } &&
47008          { ac_try='test -s conftest.$ac_objext'
47009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47010   (eval $ac_try) 2>&5
47011   ac_status=$?
47012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47013   (exit $ac_status); }; }; then
47014   ac_cv_type_mode_t=yes
47015 else
47016   echo "$as_me: failed program was:" >&5
47017 sed 's/^/| /' conftest.$ac_ext >&5
47018
47019 ac_cv_type_mode_t=no
47020 fi
47021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47022 fi
47023 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
47024 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
47025 if test $ac_cv_type_mode_t = yes; then
47026   :
47027 else
47028
47029 cat >>confdefs.h <<_ACEOF
47030 #define mode_t int
47031 _ACEOF
47032
47033 fi
47034
47035 echo "$as_me:$LINENO: checking for off_t" >&5
47036 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47037 if test "${ac_cv_type_off_t+set}" = set; then
47038   echo $ECHO_N "(cached) $ECHO_C" >&6
47039 else
47040   cat >conftest.$ac_ext <<_ACEOF
47041 /* confdefs.h.  */
47042 _ACEOF
47043 cat confdefs.h >>conftest.$ac_ext
47044 cat >>conftest.$ac_ext <<_ACEOF
47045 /* end confdefs.h.  */
47046 $ac_includes_default
47047 int
47048 main ()
47049 {
47050 if ((off_t *) 0)
47051   return 0;
47052 if (sizeof (off_t))
47053   return 0;
47054   ;
47055   return 0;
47056 }
47057 _ACEOF
47058 rm -f conftest.$ac_objext
47059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47060   (eval $ac_compile) 2>conftest.er1
47061   ac_status=$?
47062   grep -v '^ *+' conftest.er1 >conftest.err
47063   rm -f conftest.er1
47064   cat conftest.err >&5
47065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47066   (exit $ac_status); } &&
47067          { ac_try='test -z "$ac_c_werror_flag"
47068                          || test ! -s conftest.err'
47069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47070   (eval $ac_try) 2>&5
47071   ac_status=$?
47072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47073   (exit $ac_status); }; } &&
47074          { ac_try='test -s conftest.$ac_objext'
47075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47076   (eval $ac_try) 2>&5
47077   ac_status=$?
47078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47079   (exit $ac_status); }; }; then
47080   ac_cv_type_off_t=yes
47081 else
47082   echo "$as_me: failed program was:" >&5
47083 sed 's/^/| /' conftest.$ac_ext >&5
47084
47085 ac_cv_type_off_t=no
47086 fi
47087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47088 fi
47089 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47090 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47091 if test $ac_cv_type_off_t = yes; then
47092   :
47093 else
47094
47095 cat >>confdefs.h <<_ACEOF
47096 #define off_t long
47097 _ACEOF
47098
47099 fi
47100
47101 echo "$as_me:$LINENO: checking for pid_t" >&5
47102 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47103 if test "${ac_cv_type_pid_t+set}" = set; then
47104   echo $ECHO_N "(cached) $ECHO_C" >&6
47105 else
47106   cat >conftest.$ac_ext <<_ACEOF
47107 /* confdefs.h.  */
47108 _ACEOF
47109 cat confdefs.h >>conftest.$ac_ext
47110 cat >>conftest.$ac_ext <<_ACEOF
47111 /* end confdefs.h.  */
47112 $ac_includes_default
47113 int
47114 main ()
47115 {
47116 if ((pid_t *) 0)
47117   return 0;
47118 if (sizeof (pid_t))
47119   return 0;
47120   ;
47121   return 0;
47122 }
47123 _ACEOF
47124 rm -f conftest.$ac_objext
47125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47126   (eval $ac_compile) 2>conftest.er1
47127   ac_status=$?
47128   grep -v '^ *+' conftest.er1 >conftest.err
47129   rm -f conftest.er1
47130   cat conftest.err >&5
47131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47132   (exit $ac_status); } &&
47133          { ac_try='test -z "$ac_c_werror_flag"
47134                          || test ! -s conftest.err'
47135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47136   (eval $ac_try) 2>&5
47137   ac_status=$?
47138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47139   (exit $ac_status); }; } &&
47140          { ac_try='test -s conftest.$ac_objext'
47141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47142   (eval $ac_try) 2>&5
47143   ac_status=$?
47144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47145   (exit $ac_status); }; }; then
47146   ac_cv_type_pid_t=yes
47147 else
47148   echo "$as_me: failed program was:" >&5
47149 sed 's/^/| /' conftest.$ac_ext >&5
47150
47151 ac_cv_type_pid_t=no
47152 fi
47153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47154 fi
47155 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47156 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47157 if test $ac_cv_type_pid_t = yes; then
47158   :
47159 else
47160
47161 cat >>confdefs.h <<_ACEOF
47162 #define pid_t int
47163 _ACEOF
47164
47165 fi
47166
47167 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47168 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47169 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47170   echo $ECHO_N "(cached) $ECHO_C" >&6
47171 else
47172   cat >conftest.$ac_ext <<_ACEOF
47173 /* confdefs.h.  */
47174 _ACEOF
47175 cat confdefs.h >>conftest.$ac_ext
47176 cat >>conftest.$ac_ext <<_ACEOF
47177 /* end confdefs.h.  */
47178 $ac_includes_default
47179 int
47180 main ()
47181 {
47182 if ((ptrdiff_t *) 0)
47183   return 0;
47184 if (sizeof (ptrdiff_t))
47185   return 0;
47186   ;
47187   return 0;
47188 }
47189 _ACEOF
47190 rm -f conftest.$ac_objext
47191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47192   (eval $ac_compile) 2>conftest.er1
47193   ac_status=$?
47194   grep -v '^ *+' conftest.er1 >conftest.err
47195   rm -f conftest.er1
47196   cat conftest.err >&5
47197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47198   (exit $ac_status); } &&
47199          { ac_try='test -z "$ac_c_werror_flag"
47200                          || test ! -s conftest.err'
47201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47202   (eval $ac_try) 2>&5
47203   ac_status=$?
47204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47205   (exit $ac_status); }; } &&
47206          { ac_try='test -s conftest.$ac_objext'
47207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47208   (eval $ac_try) 2>&5
47209   ac_status=$?
47210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47211   (exit $ac_status); }; }; then
47212   ac_cv_type_ptrdiff_t=yes
47213 else
47214   echo "$as_me: failed program was:" >&5
47215 sed 's/^/| /' conftest.$ac_ext >&5
47216
47217 ac_cv_type_ptrdiff_t=no
47218 fi
47219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47220 fi
47221 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47222 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47223 if test $ac_cv_type_ptrdiff_t = yes; then
47224
47225 cat >>confdefs.h <<_ACEOF
47226 #define HAVE_PTRDIFF_T 1
47227 _ACEOF
47228
47229
47230 fi
47231
47232 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47233 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47234 if test "${ac_cv_type_signal+set}" = set; then
47235   echo $ECHO_N "(cached) $ECHO_C" >&6
47236 else
47237   cat >conftest.$ac_ext <<_ACEOF
47238 /* confdefs.h.  */
47239 _ACEOF
47240 cat confdefs.h >>conftest.$ac_ext
47241 cat >>conftest.$ac_ext <<_ACEOF
47242 /* end confdefs.h.  */
47243 #include <sys/types.h>
47244 #include <signal.h>
47245 #ifdef signal
47246 # undef signal
47247 #endif
47248 #ifdef __cplusplus
47249 extern "C" void (*signal (int, void (*)(int)))(int);
47250 #else
47251 void (*signal ()) ();
47252 #endif
47253
47254 int
47255 main ()
47256 {
47257 int i;
47258   ;
47259   return 0;
47260 }
47261 _ACEOF
47262 rm -f conftest.$ac_objext
47263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47264   (eval $ac_compile) 2>conftest.er1
47265   ac_status=$?
47266   grep -v '^ *+' conftest.er1 >conftest.err
47267   rm -f conftest.er1
47268   cat conftest.err >&5
47269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47270   (exit $ac_status); } &&
47271          { ac_try='test -z "$ac_c_werror_flag"
47272                          || test ! -s conftest.err'
47273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47274   (eval $ac_try) 2>&5
47275   ac_status=$?
47276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47277   (exit $ac_status); }; } &&
47278          { ac_try='test -s conftest.$ac_objext'
47279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47280   (eval $ac_try) 2>&5
47281   ac_status=$?
47282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47283   (exit $ac_status); }; }; then
47284   ac_cv_type_signal=void
47285 else
47286   echo "$as_me: failed program was:" >&5
47287 sed 's/^/| /' conftest.$ac_ext >&5
47288
47289 ac_cv_type_signal=int
47290 fi
47291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47292 fi
47293 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47294 echo "${ECHO_T}$ac_cv_type_signal" >&6
47295
47296 cat >>confdefs.h <<_ACEOF
47297 #define RETSIGTYPE $ac_cv_type_signal
47298 _ACEOF
47299
47300
47301 echo "$as_me:$LINENO: checking for size_t" >&5
47302 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47303 if test "${ac_cv_type_size_t+set}" = set; then
47304   echo $ECHO_N "(cached) $ECHO_C" >&6
47305 else
47306   cat >conftest.$ac_ext <<_ACEOF
47307 /* confdefs.h.  */
47308 _ACEOF
47309 cat confdefs.h >>conftest.$ac_ext
47310 cat >>conftest.$ac_ext <<_ACEOF
47311 /* end confdefs.h.  */
47312 $ac_includes_default
47313 int
47314 main ()
47315 {
47316 if ((size_t *) 0)
47317   return 0;
47318 if (sizeof (size_t))
47319   return 0;
47320   ;
47321   return 0;
47322 }
47323 _ACEOF
47324 rm -f conftest.$ac_objext
47325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47326   (eval $ac_compile) 2>conftest.er1
47327   ac_status=$?
47328   grep -v '^ *+' conftest.er1 >conftest.err
47329   rm -f conftest.er1
47330   cat conftest.err >&5
47331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47332   (exit $ac_status); } &&
47333          { ac_try='test -z "$ac_c_werror_flag"
47334                          || test ! -s conftest.err'
47335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47336   (eval $ac_try) 2>&5
47337   ac_status=$?
47338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47339   (exit $ac_status); }; } &&
47340          { ac_try='test -s conftest.$ac_objext'
47341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47342   (eval $ac_try) 2>&5
47343   ac_status=$?
47344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47345   (exit $ac_status); }; }; then
47346   ac_cv_type_size_t=yes
47347 else
47348   echo "$as_me: failed program was:" >&5
47349 sed 's/^/| /' conftest.$ac_ext >&5
47350
47351 ac_cv_type_size_t=no
47352 fi
47353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47354 fi
47355 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47356 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47357 if test $ac_cv_type_size_t = yes; then
47358   :
47359 else
47360
47361 cat >>confdefs.h <<_ACEOF
47362 #define size_t unsigned
47363 _ACEOF
47364
47365 fi
47366
47367
47368 echo "$as_me:$LINENO: checking for ssize_t" >&5
47369 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47370 if test "${ac_cv_type_ssize_t+set}" = set; then
47371   echo $ECHO_N "(cached) $ECHO_C" >&6
47372 else
47373   cat >conftest.$ac_ext <<_ACEOF
47374 /* confdefs.h.  */
47375 _ACEOF
47376 cat confdefs.h >>conftest.$ac_ext
47377 cat >>conftest.$ac_ext <<_ACEOF
47378 /* end confdefs.h.  */
47379 $ac_includes_default
47380 int
47381 main ()
47382 {
47383 if ((ssize_t *) 0)
47384   return 0;
47385 if (sizeof (ssize_t))
47386   return 0;
47387   ;
47388   return 0;
47389 }
47390 _ACEOF
47391 rm -f conftest.$ac_objext
47392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47393   (eval $ac_compile) 2>conftest.er1
47394   ac_status=$?
47395   grep -v '^ *+' conftest.er1 >conftest.err
47396   rm -f conftest.er1
47397   cat conftest.err >&5
47398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47399   (exit $ac_status); } &&
47400          { ac_try='test -z "$ac_c_werror_flag"
47401                          || test ! -s conftest.err'
47402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47403   (eval $ac_try) 2>&5
47404   ac_status=$?
47405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47406   (exit $ac_status); }; } &&
47407          { ac_try='test -s conftest.$ac_objext'
47408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47409   (eval $ac_try) 2>&5
47410   ac_status=$?
47411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47412   (exit $ac_status); }; }; then
47413   ac_cv_type_ssize_t=yes
47414 else
47415   echo "$as_me: failed program was:" >&5
47416 sed 's/^/| /' conftest.$ac_ext >&5
47417
47418 ac_cv_type_ssize_t=no
47419 fi
47420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47421 fi
47422 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47423 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47424 if test $ac_cv_type_ssize_t = yes; then
47425   :
47426 else
47427
47428 cat >>confdefs.h <<_ACEOF
47429 #define ssize_t signed int
47430 _ACEOF
47431
47432 fi
47433
47434 echo "$as_me:$LINENO: checking for caddr_t" >&5
47435 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47436 if test "${ac_cv_type_caddr_t+set}" = set; then
47437   echo $ECHO_N "(cached) $ECHO_C" >&6
47438 else
47439   cat >conftest.$ac_ext <<_ACEOF
47440 /* confdefs.h.  */
47441 _ACEOF
47442 cat confdefs.h >>conftest.$ac_ext
47443 cat >>conftest.$ac_ext <<_ACEOF
47444 /* end confdefs.h.  */
47445 $ac_includes_default
47446 int
47447 main ()
47448 {
47449 if ((caddr_t *) 0)
47450   return 0;
47451 if (sizeof (caddr_t))
47452   return 0;
47453   ;
47454   return 0;
47455 }
47456 _ACEOF
47457 rm -f conftest.$ac_objext
47458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47459   (eval $ac_compile) 2>conftest.er1
47460   ac_status=$?
47461   grep -v '^ *+' conftest.er1 >conftest.err
47462   rm -f conftest.er1
47463   cat conftest.err >&5
47464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47465   (exit $ac_status); } &&
47466          { ac_try='test -z "$ac_c_werror_flag"
47467                          || test ! -s conftest.err'
47468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47469   (eval $ac_try) 2>&5
47470   ac_status=$?
47471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47472   (exit $ac_status); }; } &&
47473          { ac_try='test -s conftest.$ac_objext'
47474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47475   (eval $ac_try) 2>&5
47476   ac_status=$?
47477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47478   (exit $ac_status); }; }; then
47479   ac_cv_type_caddr_t=yes
47480 else
47481   echo "$as_me: failed program was:" >&5
47482 sed 's/^/| /' conftest.$ac_ext >&5
47483
47484 ac_cv_type_caddr_t=no
47485 fi
47486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47487 fi
47488 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47489 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47490 if test $ac_cv_type_caddr_t = yes; then
47491   :
47492 else
47493
47494 cat >>confdefs.h <<_ACEOF
47495 #define caddr_t char *
47496 _ACEOF
47497
47498 fi
47499
47500
47501 echo "$as_me:$LINENO: checking for socklen_t" >&5
47502 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47503 if test "${ol_cv_type_socklen_t+set}" = set; then
47504   echo $ECHO_N "(cached) $ECHO_C" >&6
47505 else
47506   cat >conftest.$ac_ext <<_ACEOF
47507 /* confdefs.h.  */
47508 _ACEOF
47509 cat confdefs.h >>conftest.$ac_ext
47510 cat >>conftest.$ac_ext <<_ACEOF
47511 /* end confdefs.h.  */
47512
47513 #ifdef HAVE_SYS_TYPES_H
47514 #include <sys/types.h>
47515 #endif
47516 #ifdef HAVE_SYS_SOCKET_H
47517 #include <sys/socket.h>
47518 #endif
47519
47520 int
47521 main ()
47522 {
47523 socklen_t len;
47524   ;
47525   return 0;
47526 }
47527 _ACEOF
47528 rm -f conftest.$ac_objext
47529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47530   (eval $ac_compile) 2>conftest.er1
47531   ac_status=$?
47532   grep -v '^ *+' conftest.er1 >conftest.err
47533   rm -f conftest.er1
47534   cat conftest.err >&5
47535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47536   (exit $ac_status); } &&
47537          { ac_try='test -z "$ac_c_werror_flag"
47538                          || test ! -s conftest.err'
47539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47540   (eval $ac_try) 2>&5
47541   ac_status=$?
47542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47543   (exit $ac_status); }; } &&
47544          { ac_try='test -s conftest.$ac_objext'
47545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47546   (eval $ac_try) 2>&5
47547   ac_status=$?
47548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47549   (exit $ac_status); }; }; then
47550   ol_cv_type_socklen_t=yes
47551 else
47552   echo "$as_me: failed program was:" >&5
47553 sed 's/^/| /' conftest.$ac_ext >&5
47554
47555 ol_cv_type_socklen_t=no
47556 fi
47557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47558 fi
47559 echo "$as_me:$LINENO: result: $ol_cv_type_socklen_t" >&5
47560 echo "${ECHO_T}$ol_cv_type_socklen_t" >&6
47561   if test $ol_cv_type_socklen_t = no; then
47562
47563 cat >>confdefs.h <<\_ACEOF
47564 #define socklen_t int
47565 _ACEOF
47566
47567   fi
47568
47569
47570 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
47571 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
47572 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
47573   echo $ECHO_N "(cached) $ECHO_C" >&6
47574 else
47575   cat >conftest.$ac_ext <<_ACEOF
47576 /* confdefs.h.  */
47577 _ACEOF
47578 cat confdefs.h >>conftest.$ac_ext
47579 cat >>conftest.$ac_ext <<_ACEOF
47580 /* end confdefs.h.  */
47581 $ac_includes_default
47582 int
47583 main ()
47584 {
47585 static struct stat ac_aggr;
47586 if (ac_aggr.st_blksize)
47587 return 0;
47588   ;
47589   return 0;
47590 }
47591 _ACEOF
47592 rm -f conftest.$ac_objext
47593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47594   (eval $ac_compile) 2>conftest.er1
47595   ac_status=$?
47596   grep -v '^ *+' conftest.er1 >conftest.err
47597   rm -f conftest.er1
47598   cat conftest.err >&5
47599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47600   (exit $ac_status); } &&
47601          { ac_try='test -z "$ac_c_werror_flag"
47602                          || test ! -s conftest.err'
47603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47604   (eval $ac_try) 2>&5
47605   ac_status=$?
47606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47607   (exit $ac_status); }; } &&
47608          { ac_try='test -s conftest.$ac_objext'
47609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47610   (eval $ac_try) 2>&5
47611   ac_status=$?
47612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47613   (exit $ac_status); }; }; then
47614   ac_cv_member_struct_stat_st_blksize=yes
47615 else
47616   echo "$as_me: failed program was:" >&5
47617 sed 's/^/| /' conftest.$ac_ext >&5
47618
47619 cat >conftest.$ac_ext <<_ACEOF
47620 /* confdefs.h.  */
47621 _ACEOF
47622 cat confdefs.h >>conftest.$ac_ext
47623 cat >>conftest.$ac_ext <<_ACEOF
47624 /* end confdefs.h.  */
47625 $ac_includes_default
47626 int
47627 main ()
47628 {
47629 static struct stat ac_aggr;
47630 if (sizeof ac_aggr.st_blksize)
47631 return 0;
47632   ;
47633   return 0;
47634 }
47635 _ACEOF
47636 rm -f conftest.$ac_objext
47637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47638   (eval $ac_compile) 2>conftest.er1
47639   ac_status=$?
47640   grep -v '^ *+' conftest.er1 >conftest.err
47641   rm -f conftest.er1
47642   cat conftest.err >&5
47643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47644   (exit $ac_status); } &&
47645          { ac_try='test -z "$ac_c_werror_flag"
47646                          || test ! -s conftest.err'
47647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47648   (eval $ac_try) 2>&5
47649   ac_status=$?
47650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47651   (exit $ac_status); }; } &&
47652          { ac_try='test -s conftest.$ac_objext'
47653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47654   (eval $ac_try) 2>&5
47655   ac_status=$?
47656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47657   (exit $ac_status); }; }; then
47658   ac_cv_member_struct_stat_st_blksize=yes
47659 else
47660   echo "$as_me: failed program was:" >&5
47661 sed 's/^/| /' conftest.$ac_ext >&5
47662
47663 ac_cv_member_struct_stat_st_blksize=no
47664 fi
47665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47666 fi
47667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47668 fi
47669 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
47670 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
47671 if test $ac_cv_member_struct_stat_st_blksize = yes; then
47672
47673 cat >>confdefs.h <<_ACEOF
47674 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
47675 _ACEOF
47676
47677
47678 cat >>confdefs.h <<\_ACEOF
47679 #define HAVE_ST_BLKSIZE 1
47680 _ACEOF
47681
47682 fi
47683
47684
47685 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47686 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47687 if test "${ac_cv_header_time+set}" = set; then
47688   echo $ECHO_N "(cached) $ECHO_C" >&6
47689 else
47690   cat >conftest.$ac_ext <<_ACEOF
47691 /* confdefs.h.  */
47692 _ACEOF
47693 cat confdefs.h >>conftest.$ac_ext
47694 cat >>conftest.$ac_ext <<_ACEOF
47695 /* end confdefs.h.  */
47696 #include <sys/types.h>
47697 #include <sys/time.h>
47698 #include <time.h>
47699
47700 int
47701 main ()
47702 {
47703 if ((struct tm *) 0)
47704 return 0;
47705   ;
47706   return 0;
47707 }
47708 _ACEOF
47709 rm -f conftest.$ac_objext
47710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47711   (eval $ac_compile) 2>conftest.er1
47712   ac_status=$?
47713   grep -v '^ *+' conftest.er1 >conftest.err
47714   rm -f conftest.er1
47715   cat conftest.err >&5
47716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47717   (exit $ac_status); } &&
47718          { ac_try='test -z "$ac_c_werror_flag"
47719                          || test ! -s conftest.err'
47720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47721   (eval $ac_try) 2>&5
47722   ac_status=$?
47723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47724   (exit $ac_status); }; } &&
47725          { ac_try='test -s conftest.$ac_objext'
47726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47727   (eval $ac_try) 2>&5
47728   ac_status=$?
47729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47730   (exit $ac_status); }; }; then
47731   ac_cv_header_time=yes
47732 else
47733   echo "$as_me: failed program was:" >&5
47734 sed 's/^/| /' conftest.$ac_ext >&5
47735
47736 ac_cv_header_time=no
47737 fi
47738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47739 fi
47740 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
47741 echo "${ECHO_T}$ac_cv_header_time" >&6
47742 if test $ac_cv_header_time = yes; then
47743
47744 cat >>confdefs.h <<\_ACEOF
47745 #define TIME_WITH_SYS_TIME 1
47746 _ACEOF
47747
47748 fi
47749
47750 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
47751 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
47752 if test "${ac_cv_struct_tm+set}" = set; then
47753   echo $ECHO_N "(cached) $ECHO_C" >&6
47754 else
47755   cat >conftest.$ac_ext <<_ACEOF
47756 /* confdefs.h.  */
47757 _ACEOF
47758 cat confdefs.h >>conftest.$ac_ext
47759 cat >>conftest.$ac_ext <<_ACEOF
47760 /* end confdefs.h.  */
47761 #include <sys/types.h>
47762 #include <time.h>
47763
47764 int
47765 main ()
47766 {
47767 struct tm *tp; tp->tm_sec;
47768   ;
47769   return 0;
47770 }
47771 _ACEOF
47772 rm -f conftest.$ac_objext
47773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47774   (eval $ac_compile) 2>conftest.er1
47775   ac_status=$?
47776   grep -v '^ *+' conftest.er1 >conftest.err
47777   rm -f conftest.er1
47778   cat conftest.err >&5
47779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47780   (exit $ac_status); } &&
47781          { ac_try='test -z "$ac_c_werror_flag"
47782                          || test ! -s conftest.err'
47783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47784   (eval $ac_try) 2>&5
47785   ac_status=$?
47786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47787   (exit $ac_status); }; } &&
47788          { ac_try='test -s conftest.$ac_objext'
47789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47790   (eval $ac_try) 2>&5
47791   ac_status=$?
47792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47793   (exit $ac_status); }; }; then
47794   ac_cv_struct_tm=time.h
47795 else
47796   echo "$as_me: failed program was:" >&5
47797 sed 's/^/| /' conftest.$ac_ext >&5
47798
47799 ac_cv_struct_tm=sys/time.h
47800 fi
47801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47802 fi
47803 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
47804 echo "${ECHO_T}$ac_cv_struct_tm" >&6
47805 if test $ac_cv_struct_tm = sys/time.h; then
47806
47807 cat >>confdefs.h <<\_ACEOF
47808 #define TM_IN_SYS_TIME 1
47809 _ACEOF
47810
47811 fi
47812
47813 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47814 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47815 if test "${ac_cv_type_uid_t+set}" = set; then
47816   echo $ECHO_N "(cached) $ECHO_C" >&6
47817 else
47818   cat >conftest.$ac_ext <<_ACEOF
47819 /* confdefs.h.  */
47820 _ACEOF
47821 cat confdefs.h >>conftest.$ac_ext
47822 cat >>conftest.$ac_ext <<_ACEOF
47823 /* end confdefs.h.  */
47824 #include <sys/types.h>
47825
47826 _ACEOF
47827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47828   $EGREP "uid_t" >/dev/null 2>&1; then
47829   ac_cv_type_uid_t=yes
47830 else
47831   ac_cv_type_uid_t=no
47832 fi
47833 rm -f conftest*
47834
47835 fi
47836 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47837 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47838 if test $ac_cv_type_uid_t = no; then
47839
47840 cat >>confdefs.h <<\_ACEOF
47841 #define uid_t int
47842 _ACEOF
47843
47844
47845 cat >>confdefs.h <<\_ACEOF
47846 #define gid_t int
47847 _ACEOF
47848
47849 fi
47850
47851 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47852 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47853 if test "${ol_cv_type_sig_atomic_t+set}" = set; then
47854   echo $ECHO_N "(cached) $ECHO_C" >&6
47855 else
47856   cat >conftest.$ac_ext <<_ACEOF
47857 /* confdefs.h.  */
47858 _ACEOF
47859 cat confdefs.h >>conftest.$ac_ext
47860 cat >>conftest.$ac_ext <<_ACEOF
47861 /* end confdefs.h.  */
47862 #include <signal.h>
47863 int
47864 main ()
47865 {
47866 sig_atomic_t atomic;
47867   ;
47868   return 0;
47869 }
47870 _ACEOF
47871 rm -f conftest.$ac_objext
47872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47873   (eval $ac_compile) 2>conftest.er1
47874   ac_status=$?
47875   grep -v '^ *+' conftest.er1 >conftest.err
47876   rm -f conftest.er1
47877   cat conftest.err >&5
47878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47879   (exit $ac_status); } &&
47880          { ac_try='test -z "$ac_c_werror_flag"
47881                          || test ! -s conftest.err'
47882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47883   (eval $ac_try) 2>&5
47884   ac_status=$?
47885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47886   (exit $ac_status); }; } &&
47887          { ac_try='test -s conftest.$ac_objext'
47888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47889   (eval $ac_try) 2>&5
47890   ac_status=$?
47891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47892   (exit $ac_status); }; }; then
47893   ol_cv_type_sig_atomic_t=yes
47894 else
47895   echo "$as_me: failed program was:" >&5
47896 sed 's/^/| /' conftest.$ac_ext >&5
47897
47898 ol_cv_type_sig_atomic_t=no
47899 fi
47900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47901 fi
47902 echo "$as_me:$LINENO: result: $ol_cv_type_sig_atomic_t" >&5
47903 echo "${ECHO_T}$ol_cv_type_sig_atomic_t" >&6
47904   if test $ol_cv_type_sig_atomic_t = no; then
47905
47906 cat >>confdefs.h <<\_ACEOF
47907 #define sig_atomic_t int
47908 _ACEOF
47909
47910   fi
47911
47912
47913
47914 # test for pw_gecos in struct passwd
47915 echo "$as_me:$LINENO: checking struct passwd for pw_gecos" >&5
47916 echo $ECHO_N "checking struct passwd for pw_gecos... $ECHO_C" >&6
47917 if test "${ol_cv_struct_passwd_pw_gecos+set}" = set; then
47918   echo $ECHO_N "(cached) $ECHO_C" >&6
47919 else
47920
47921         cat >conftest.$ac_ext <<_ACEOF
47922 /* confdefs.h.  */
47923 _ACEOF
47924 cat confdefs.h >>conftest.$ac_ext
47925 cat >>conftest.$ac_ext <<_ACEOF
47926 /* end confdefs.h.  */
47927 #include <pwd.h>
47928 int
47929 main ()
47930 {
47931
47932         struct passwd pwd;
47933         pwd.pw_gecos = pwd.pw_name;
47934
47935   ;
47936   return 0;
47937 }
47938 _ACEOF
47939 rm -f conftest.$ac_objext
47940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47941   (eval $ac_compile) 2>conftest.er1
47942   ac_status=$?
47943   grep -v '^ *+' conftest.er1 >conftest.err
47944   rm -f conftest.er1
47945   cat conftest.err >&5
47946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47947   (exit $ac_status); } &&
47948          { ac_try='test -z "$ac_c_werror_flag"
47949                          || test ! -s conftest.err'
47950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47951   (eval $ac_try) 2>&5
47952   ac_status=$?
47953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47954   (exit $ac_status); }; } &&
47955          { ac_try='test -s conftest.$ac_objext'
47956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47957   (eval $ac_try) 2>&5
47958   ac_status=$?
47959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47960   (exit $ac_status); }; }; then
47961   ol_cv_struct_passwd_pw_gecos=yes
47962 else
47963   echo "$as_me: failed program was:" >&5
47964 sed 's/^/| /' conftest.$ac_ext >&5
47965
47966 ol_cv_struct_passwd_pw_gecos=no
47967 fi
47968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47969 fi
47970 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_gecos" >&5
47971 echo "${ECHO_T}$ol_cv_struct_passwd_pw_gecos" >&6
47972 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
47973
47974 cat >>confdefs.h <<\_ACEOF
47975 #define HAVE_PW_GECOS 1
47976 _ACEOF
47977
47978 fi
47979
47980 # test for pw_passwd in struct passwd
47981 echo "$as_me:$LINENO: checking struct passwd for pw_passwd" >&5
47982 echo $ECHO_N "checking struct passwd for pw_passwd... $ECHO_C" >&6
47983 if test "${ol_cv_struct_passwd_pw_passwd+set}" = set; then
47984   echo $ECHO_N "(cached) $ECHO_C" >&6
47985 else
47986
47987         cat >conftest.$ac_ext <<_ACEOF
47988 /* confdefs.h.  */
47989 _ACEOF
47990 cat confdefs.h >>conftest.$ac_ext
47991 cat >>conftest.$ac_ext <<_ACEOF
47992 /* end confdefs.h.  */
47993 #include <pwd.h>
47994 int
47995 main ()
47996 {
47997
47998         struct passwd pwd;
47999         pwd.pw_passwd = pwd.pw_name;
48000
48001   ;
48002   return 0;
48003 }
48004 _ACEOF
48005 rm -f conftest.$ac_objext
48006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48007   (eval $ac_compile) 2>conftest.er1
48008   ac_status=$?
48009   grep -v '^ *+' conftest.er1 >conftest.err
48010   rm -f conftest.er1
48011   cat conftest.err >&5
48012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48013   (exit $ac_status); } &&
48014          { ac_try='test -z "$ac_c_werror_flag"
48015                          || test ! -s conftest.err'
48016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48017   (eval $ac_try) 2>&5
48018   ac_status=$?
48019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48020   (exit $ac_status); }; } &&
48021          { ac_try='test -s conftest.$ac_objext'
48022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48023   (eval $ac_try) 2>&5
48024   ac_status=$?
48025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48026   (exit $ac_status); }; }; then
48027   ol_cv_struct_passwd_pw_passwd=yes
48028 else
48029   echo "$as_me: failed program was:" >&5
48030 sed 's/^/| /' conftest.$ac_ext >&5
48031
48032 ol_cv_struct_passwd_pw_passwd=no
48033 fi
48034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48035 fi
48036 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_passwd" >&5
48037 echo "${ECHO_T}$ol_cv_struct_passwd_pw_passwd" >&6
48038 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
48039
48040 cat >>confdefs.h <<\_ACEOF
48041 #define HAVE_PW_PASSWD 1
48042 _ACEOF
48043
48044 fi
48045
48046
48047 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48048 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48049 if test "${ol_cv_c_upper_lower+set}" = set; then
48050   echo $ECHO_N "(cached) $ECHO_C" >&6
48051 else
48052
48053         if test "$cross_compiling" = yes; then
48054   ol_cv_c_upper_lower=safe
48055 else
48056   cat >conftest.$ac_ext <<_ACEOF
48057 /* confdefs.h.  */
48058 _ACEOF
48059 cat confdefs.h >>conftest.$ac_ext
48060 cat >>conftest.$ac_ext <<_ACEOF
48061 /* end confdefs.h.  */
48062
48063 #include <ctype.h>
48064 main()
48065 {
48066         if ('C' == toupper('C'))
48067                 exit(0);
48068         else
48069                 exit(1);
48070 }
48071 _ACEOF
48072 rm -f conftest$ac_exeext
48073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48074   (eval $ac_link) 2>&5
48075   ac_status=$?
48076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48077   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48079   (eval $ac_try) 2>&5
48080   ac_status=$?
48081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48082   (exit $ac_status); }; }; then
48083   ol_cv_c_upper_lower=no
48084 else
48085   echo "$as_me: program exited with status $ac_status" >&5
48086 echo "$as_me: failed program was:" >&5
48087 sed 's/^/| /' conftest.$ac_ext >&5
48088
48089 ( exit $ac_status )
48090 ol_cv_c_upper_lower=yes
48091 fi
48092 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48093 fi
48094 fi
48095 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48096 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48097 if test $ol_cv_c_upper_lower != no ; then
48098
48099 cat >>confdefs.h <<\_ACEOF
48100 #define C_UPPER_LOWER 1
48101 _ACEOF
48102
48103 fi
48104
48105 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48106 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48107 if test "${ac_cv_c_const+set}" = set; then
48108   echo $ECHO_N "(cached) $ECHO_C" >&6
48109 else
48110   cat >conftest.$ac_ext <<_ACEOF
48111 /* confdefs.h.  */
48112 _ACEOF
48113 cat confdefs.h >>conftest.$ac_ext
48114 cat >>conftest.$ac_ext <<_ACEOF
48115 /* end confdefs.h.  */
48116
48117 int
48118 main ()
48119 {
48120 /* FIXME: Include the comments suggested by Paul. */
48121 #ifndef __cplusplus
48122   /* Ultrix mips cc rejects this.  */
48123   typedef int charset[2];
48124   const charset x;
48125   /* SunOS 4.1.1 cc rejects this.  */
48126   char const *const *ccp;
48127   char **p;
48128   /* NEC SVR4.0.2 mips cc rejects this.  */
48129   struct point {int x, y;};
48130   static struct point const zero = {0,0};
48131   /* AIX XL C 1.02.0.0 rejects this.
48132      It does not let you subtract one const X* pointer from another in
48133      an arm of an if-expression whose if-part is not a constant
48134      expression */
48135   const char *g = "string";
48136   ccp = &g + (g ? g-g : 0);
48137   /* HPUX 7.0 cc rejects these. */
48138   ++ccp;
48139   p = (char**) ccp;
48140   ccp = (char const *const *) p;
48141   { /* SCO 3.2v4 cc rejects this.  */
48142     char *t;
48143     char const *s = 0 ? (char *) 0 : (char const *) 0;
48144
48145     *t++ = 0;
48146   }
48147   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
48148     int x[] = {25, 17};
48149     const int *foo = &x[0];
48150     ++foo;
48151   }
48152   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48153     typedef const int *iptr;
48154     iptr p = 0;
48155     ++p;
48156   }
48157   { /* AIX XL C 1.02.0.0 rejects this saying
48158        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48159     struct s { int j; const int *ap[3]; };
48160     struct s *b; b->j = 5;
48161   }
48162   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48163     const int foo = 10;
48164   }
48165 #endif
48166
48167   ;
48168   return 0;
48169 }
48170 _ACEOF
48171 rm -f conftest.$ac_objext
48172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48173   (eval $ac_compile) 2>conftest.er1
48174   ac_status=$?
48175   grep -v '^ *+' conftest.er1 >conftest.err
48176   rm -f conftest.er1
48177   cat conftest.err >&5
48178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48179   (exit $ac_status); } &&
48180          { ac_try='test -z "$ac_c_werror_flag"
48181                          || test ! -s conftest.err'
48182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48183   (eval $ac_try) 2>&5
48184   ac_status=$?
48185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48186   (exit $ac_status); }; } &&
48187          { ac_try='test -s conftest.$ac_objext'
48188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48189   (eval $ac_try) 2>&5
48190   ac_status=$?
48191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48192   (exit $ac_status); }; }; then
48193   ac_cv_c_const=yes
48194 else
48195   echo "$as_me: failed program was:" >&5
48196 sed 's/^/| /' conftest.$ac_ext >&5
48197
48198 ac_cv_c_const=no
48199 fi
48200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48201 fi
48202 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48203 echo "${ECHO_T}$ac_cv_c_const" >&6
48204 if test $ac_cv_c_const = no; then
48205
48206 cat >>confdefs.h <<\_ACEOF
48207 #define const
48208 _ACEOF
48209
48210 fi
48211
48212 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48213 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48214 if test "${ol_cv_c_volatile+set}" = set; then
48215   echo $ECHO_N "(cached) $ECHO_C" >&6
48216 else
48217   cat >conftest.$ac_ext <<_ACEOF
48218 /* confdefs.h.  */
48219 _ACEOF
48220 cat confdefs.h >>conftest.$ac_ext
48221 cat >>conftest.$ac_ext <<_ACEOF
48222 /* end confdefs.h.  */
48223 int x, y, z;
48224 int
48225 main ()
48226 {
48227 volatile int a; int * volatile b = x ? &y : &z;
48228       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48229       *b = 0;
48230   ;
48231   return 0;
48232 }
48233 _ACEOF
48234 rm -f conftest.$ac_objext
48235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48236   (eval $ac_compile) 2>conftest.er1
48237   ac_status=$?
48238   grep -v '^ *+' conftest.er1 >conftest.err
48239   rm -f conftest.er1
48240   cat conftest.err >&5
48241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48242   (exit $ac_status); } &&
48243          { ac_try='test -z "$ac_c_werror_flag"
48244                          || test ! -s conftest.err'
48245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48246   (eval $ac_try) 2>&5
48247   ac_status=$?
48248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48249   (exit $ac_status); }; } &&
48250          { ac_try='test -s conftest.$ac_objext'
48251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48252   (eval $ac_try) 2>&5
48253   ac_status=$?
48254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48255   (exit $ac_status); }; }; then
48256   ol_cv_c_volatile=yes
48257 else
48258   echo "$as_me: failed program was:" >&5
48259 sed 's/^/| /' conftest.$ac_ext >&5
48260
48261 ol_cv_c_volatile=no
48262 fi
48263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48264 fi
48265 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48266 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48267   if test $ol_cv_c_volatile = yes; then
48268     :
48269   else
48270
48271 cat >>confdefs.h <<\_ACEOF
48272 #define volatile
48273 _ACEOF
48274
48275   fi
48276
48277
48278 if test $cross_compiling = yes ; then
48279         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48280 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48281
48282 cat >>confdefs.h <<\_ACEOF
48283 #define CROSS_COMPILING 1
48284 _ACEOF
48285
48286 else
48287         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48288 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48289 if test "${ac_cv_c_bigendian+set}" = set; then
48290   echo $ECHO_N "(cached) $ECHO_C" >&6
48291 else
48292   # See if sys/param.h defines the BYTE_ORDER macro.
48293 cat >conftest.$ac_ext <<_ACEOF
48294 /* confdefs.h.  */
48295 _ACEOF
48296 cat confdefs.h >>conftest.$ac_ext
48297 cat >>conftest.$ac_ext <<_ACEOF
48298 /* end confdefs.h.  */
48299 #include <sys/types.h>
48300 #include <sys/param.h>
48301
48302 int
48303 main ()
48304 {
48305 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48306  bogus endian macros
48307 #endif
48308
48309   ;
48310   return 0;
48311 }
48312 _ACEOF
48313 rm -f conftest.$ac_objext
48314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48315   (eval $ac_compile) 2>conftest.er1
48316   ac_status=$?
48317   grep -v '^ *+' conftest.er1 >conftest.err
48318   rm -f conftest.er1
48319   cat conftest.err >&5
48320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48321   (exit $ac_status); } &&
48322          { ac_try='test -z "$ac_c_werror_flag"
48323                          || test ! -s conftest.err'
48324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48325   (eval $ac_try) 2>&5
48326   ac_status=$?
48327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48328   (exit $ac_status); }; } &&
48329          { ac_try='test -s conftest.$ac_objext'
48330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48331   (eval $ac_try) 2>&5
48332   ac_status=$?
48333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48334   (exit $ac_status); }; }; then
48335   # It does; now see whether it defined to BIG_ENDIAN or not.
48336 cat >conftest.$ac_ext <<_ACEOF
48337 /* confdefs.h.  */
48338 _ACEOF
48339 cat confdefs.h >>conftest.$ac_ext
48340 cat >>conftest.$ac_ext <<_ACEOF
48341 /* end confdefs.h.  */
48342 #include <sys/types.h>
48343 #include <sys/param.h>
48344
48345 int
48346 main ()
48347 {
48348 #if BYTE_ORDER != BIG_ENDIAN
48349  not big endian
48350 #endif
48351
48352   ;
48353   return 0;
48354 }
48355 _ACEOF
48356 rm -f conftest.$ac_objext
48357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48358   (eval $ac_compile) 2>conftest.er1
48359   ac_status=$?
48360   grep -v '^ *+' conftest.er1 >conftest.err
48361   rm -f conftest.er1
48362   cat conftest.err >&5
48363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48364   (exit $ac_status); } &&
48365          { ac_try='test -z "$ac_c_werror_flag"
48366                          || test ! -s conftest.err'
48367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48368   (eval $ac_try) 2>&5
48369   ac_status=$?
48370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48371   (exit $ac_status); }; } &&
48372          { ac_try='test -s conftest.$ac_objext'
48373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48374   (eval $ac_try) 2>&5
48375   ac_status=$?
48376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48377   (exit $ac_status); }; }; then
48378   ac_cv_c_bigendian=yes
48379 else
48380   echo "$as_me: failed program was:" >&5
48381 sed 's/^/| /' conftest.$ac_ext >&5
48382
48383 ac_cv_c_bigendian=no
48384 fi
48385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48386 else
48387   echo "$as_me: failed program was:" >&5
48388 sed 's/^/| /' conftest.$ac_ext >&5
48389
48390 # It does not; compile a test program.
48391 if test "$cross_compiling" = yes; then
48392   # try to guess the endianness by grepping values into an object file
48393   ac_cv_c_bigendian=unknown
48394   cat >conftest.$ac_ext <<_ACEOF
48395 /* confdefs.h.  */
48396 _ACEOF
48397 cat confdefs.h >>conftest.$ac_ext
48398 cat >>conftest.$ac_ext <<_ACEOF
48399 /* end confdefs.h.  */
48400 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48401 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48402 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48403 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48404 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48405 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48406 int
48407 main ()
48408 {
48409  _ascii (); _ebcdic ();
48410   ;
48411   return 0;
48412 }
48413 _ACEOF
48414 rm -f conftest.$ac_objext
48415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48416   (eval $ac_compile) 2>conftest.er1
48417   ac_status=$?
48418   grep -v '^ *+' conftest.er1 >conftest.err
48419   rm -f conftest.er1
48420   cat conftest.err >&5
48421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48422   (exit $ac_status); } &&
48423          { ac_try='test -z "$ac_c_werror_flag"
48424                          || test ! -s conftest.err'
48425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48426   (eval $ac_try) 2>&5
48427   ac_status=$?
48428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48429   (exit $ac_status); }; } &&
48430          { ac_try='test -s conftest.$ac_objext'
48431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48432   (eval $ac_try) 2>&5
48433   ac_status=$?
48434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48435   (exit $ac_status); }; }; then
48436   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48437   ac_cv_c_bigendian=yes
48438 fi
48439 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48440   if test "$ac_cv_c_bigendian" = unknown; then
48441     ac_cv_c_bigendian=no
48442   else
48443     # finding both strings is unlikely to happen, but who knows?
48444     ac_cv_c_bigendian=unknown
48445   fi
48446 fi
48447 else
48448   echo "$as_me: failed program was:" >&5
48449 sed 's/^/| /' conftest.$ac_ext >&5
48450
48451 fi
48452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48453 else
48454   cat >conftest.$ac_ext <<_ACEOF
48455 /* confdefs.h.  */
48456 _ACEOF
48457 cat confdefs.h >>conftest.$ac_ext
48458 cat >>conftest.$ac_ext <<_ACEOF
48459 /* end confdefs.h.  */
48460 int
48461 main ()
48462 {
48463   /* Are we little or big endian?  From Harbison&Steele.  */
48464   union
48465   {
48466     long l;
48467     char c[sizeof (long)];
48468   } u;
48469   u.l = 1;
48470   exit (u.c[sizeof (long) - 1] == 1);
48471 }
48472 _ACEOF
48473 rm -f conftest$ac_exeext
48474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48475   (eval $ac_link) 2>&5
48476   ac_status=$?
48477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48478   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48480   (eval $ac_try) 2>&5
48481   ac_status=$?
48482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48483   (exit $ac_status); }; }; then
48484   ac_cv_c_bigendian=no
48485 else
48486   echo "$as_me: program exited with status $ac_status" >&5
48487 echo "$as_me: failed program was:" >&5
48488 sed 's/^/| /' conftest.$ac_ext >&5
48489
48490 ( exit $ac_status )
48491 ac_cv_c_bigendian=yes
48492 fi
48493 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48494 fi
48495 fi
48496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48497 fi
48498 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48499 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48500 case $ac_cv_c_bigendian in
48501   yes)
48502
48503 cat >>confdefs.h <<\_ACEOF
48504 #define WORDS_BIGENDIAN 1
48505 _ACEOF
48506  ;;
48507   no)
48508      ;;
48509   *)
48510     { { echo "$as_me:$LINENO: error: unknown endianness
48511 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48512 echo "$as_me: error: unknown endianness
48513 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48514    { (exit 1); exit 1; }; } ;;
48515 esac
48516
48517 fi
48518
48519 echo "$as_me:$LINENO: checking size of short" >&5
48520 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48521 if test "${ac_cv_sizeof_short+set}" = set; then
48522   echo $ECHO_N "(cached) $ECHO_C" >&6
48523 else
48524   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48525   cat >conftest.$ac_ext <<_ACEOF
48526 /* confdefs.h.  */
48527 _ACEOF
48528 cat confdefs.h >>conftest.$ac_ext
48529 cat >>conftest.$ac_ext <<_ACEOF
48530 /* end confdefs.h.  */
48531 #include "confdefs.h"
48532 #include <stdlib.h>
48533 #include <sys/types.h>
48534
48535
48536 int
48537 main ()
48538 {
48539 switch (0) case 0: case (sizeof (short) == $ac_size):;
48540   ;
48541   return 0;
48542 }
48543 _ACEOF
48544 rm -f conftest.$ac_objext
48545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48546   (eval $ac_compile) 2>conftest.er1
48547   ac_status=$?
48548   grep -v '^ *+' conftest.er1 >conftest.err
48549   rm -f conftest.er1
48550   cat conftest.err >&5
48551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48552   (exit $ac_status); } &&
48553          { ac_try='test -z "$ac_c_werror_flag"
48554                          || test ! -s conftest.err'
48555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48556   (eval $ac_try) 2>&5
48557   ac_status=$?
48558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48559   (exit $ac_status); }; } &&
48560          { ac_try='test -s conftest.$ac_objext'
48561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48562   (eval $ac_try) 2>&5
48563   ac_status=$?
48564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48565   (exit $ac_status); }; }; then
48566   ac_cv_sizeof_short=$ac_size
48567 else
48568   echo "$as_me: failed program was:" >&5
48569 sed 's/^/| /' conftest.$ac_ext >&5
48570
48571 fi
48572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48573   if test x$ac_cv_sizeof_short != x ; then break; fi
48574 done
48575
48576 fi
48577
48578 if test x$ac_cv_sizeof_short = x ; then
48579   { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
48580 echo "$as_me: error: cannot determine a size for short" >&2;}
48581    { (exit 1); exit 1; }; }
48582 fi
48583 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
48584 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
48585
48586 cat >>confdefs.h <<_ACEOF
48587 #define SIZEOF_SHORT $ac_cv_sizeof_short
48588 _ACEOF
48589
48590
48591 echo "$as_me:$LINENO: checking size of int" >&5
48592 echo $ECHO_N "checking size of int... $ECHO_C" >&6
48593 if test "${ac_cv_sizeof_int+set}" = set; then
48594   echo $ECHO_N "(cached) $ECHO_C" >&6
48595 else
48596   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48597   cat >conftest.$ac_ext <<_ACEOF
48598 /* confdefs.h.  */
48599 _ACEOF
48600 cat confdefs.h >>conftest.$ac_ext
48601 cat >>conftest.$ac_ext <<_ACEOF
48602 /* end confdefs.h.  */
48603 #include "confdefs.h"
48604 #include <stdlib.h>
48605 #include <sys/types.h>
48606
48607
48608 int
48609 main ()
48610 {
48611 switch (0) case 0: case (sizeof (int) == $ac_size):;
48612   ;
48613   return 0;
48614 }
48615 _ACEOF
48616 rm -f conftest.$ac_objext
48617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48618   (eval $ac_compile) 2>conftest.er1
48619   ac_status=$?
48620   grep -v '^ *+' conftest.er1 >conftest.err
48621   rm -f conftest.er1
48622   cat conftest.err >&5
48623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48624   (exit $ac_status); } &&
48625          { ac_try='test -z "$ac_c_werror_flag"
48626                          || test ! -s conftest.err'
48627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48628   (eval $ac_try) 2>&5
48629   ac_status=$?
48630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48631   (exit $ac_status); }; } &&
48632          { ac_try='test -s conftest.$ac_objext'
48633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48634   (eval $ac_try) 2>&5
48635   ac_status=$?
48636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48637   (exit $ac_status); }; }; then
48638   ac_cv_sizeof_int=$ac_size
48639 else
48640   echo "$as_me: failed program was:" >&5
48641 sed 's/^/| /' conftest.$ac_ext >&5
48642
48643 fi
48644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48645   if test x$ac_cv_sizeof_int != x ; then break; fi
48646 done
48647
48648 fi
48649
48650 if test x$ac_cv_sizeof_int = x ; then
48651   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
48652 echo "$as_me: error: cannot determine a size for int" >&2;}
48653    { (exit 1); exit 1; }; }
48654 fi
48655 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
48656 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
48657
48658 cat >>confdefs.h <<_ACEOF
48659 #define SIZEOF_INT $ac_cv_sizeof_int
48660 _ACEOF
48661
48662
48663 echo "$as_me:$LINENO: checking size of long" >&5
48664 echo $ECHO_N "checking size of long... $ECHO_C" >&6
48665 if test "${ac_cv_sizeof_long+set}" = set; then
48666   echo $ECHO_N "(cached) $ECHO_C" >&6
48667 else
48668   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48669   cat >conftest.$ac_ext <<_ACEOF
48670 /* confdefs.h.  */
48671 _ACEOF
48672 cat confdefs.h >>conftest.$ac_ext
48673 cat >>conftest.$ac_ext <<_ACEOF
48674 /* end confdefs.h.  */
48675 #include "confdefs.h"
48676 #include <stdlib.h>
48677 #include <sys/types.h>
48678
48679
48680 int
48681 main ()
48682 {
48683 switch (0) case 0: case (sizeof (long) == $ac_size):;
48684   ;
48685   return 0;
48686 }
48687 _ACEOF
48688 rm -f conftest.$ac_objext
48689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48690   (eval $ac_compile) 2>conftest.er1
48691   ac_status=$?
48692   grep -v '^ *+' conftest.er1 >conftest.err
48693   rm -f conftest.er1
48694   cat conftest.err >&5
48695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48696   (exit $ac_status); } &&
48697          { ac_try='test -z "$ac_c_werror_flag"
48698                          || test ! -s conftest.err'
48699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48700   (eval $ac_try) 2>&5
48701   ac_status=$?
48702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48703   (exit $ac_status); }; } &&
48704          { ac_try='test -s conftest.$ac_objext'
48705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48706   (eval $ac_try) 2>&5
48707   ac_status=$?
48708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48709   (exit $ac_status); }; }; then
48710   ac_cv_sizeof_long=$ac_size
48711 else
48712   echo "$as_me: failed program was:" >&5
48713 sed 's/^/| /' conftest.$ac_ext >&5
48714
48715 fi
48716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48717   if test x$ac_cv_sizeof_long != x ; then break; fi
48718 done
48719
48720 fi
48721
48722 if test x$ac_cv_sizeof_long = x ; then
48723   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
48724 echo "$as_me: error: cannot determine a size for long" >&2;}
48725    { (exit 1); exit 1; }; }
48726 fi
48727 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
48728 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
48729
48730 cat >>confdefs.h <<_ACEOF
48731 #define SIZEOF_LONG $ac_cv_sizeof_long
48732 _ACEOF
48733
48734
48735 echo "$as_me:$LINENO: checking size of wchar_t" >&5
48736 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
48737 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
48738   echo $ECHO_N "(cached) $ECHO_C" >&6
48739 else
48740   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48741   cat >conftest.$ac_ext <<_ACEOF
48742 /* confdefs.h.  */
48743 _ACEOF
48744 cat confdefs.h >>conftest.$ac_ext
48745 cat >>conftest.$ac_ext <<_ACEOF
48746 /* end confdefs.h.  */
48747 #include "confdefs.h"
48748 #include <stdlib.h>
48749 #include <sys/types.h>
48750
48751
48752 int
48753 main ()
48754 {
48755 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
48756   ;
48757   return 0;
48758 }
48759 _ACEOF
48760 rm -f conftest.$ac_objext
48761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48762   (eval $ac_compile) 2>conftest.er1
48763   ac_status=$?
48764   grep -v '^ *+' conftest.er1 >conftest.err
48765   rm -f conftest.er1
48766   cat conftest.err >&5
48767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48768   (exit $ac_status); } &&
48769          { ac_try='test -z "$ac_c_werror_flag"
48770                          || test ! -s conftest.err'
48771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48772   (eval $ac_try) 2>&5
48773   ac_status=$?
48774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48775   (exit $ac_status); }; } &&
48776          { ac_try='test -s conftest.$ac_objext'
48777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48778   (eval $ac_try) 2>&5
48779   ac_status=$?
48780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48781   (exit $ac_status); }; }; then
48782   ac_cv_sizeof_wchar_t=$ac_size
48783 else
48784   echo "$as_me: failed program was:" >&5
48785 sed 's/^/| /' conftest.$ac_ext >&5
48786
48787 fi
48788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48789   if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
48790 done
48791
48792 fi
48793
48794 if test x$ac_cv_sizeof_wchar_t = x ; then
48795   { { echo "$as_me:$LINENO: error: cannot determine a size for wchar_t" >&5
48796 echo "$as_me: error: cannot determine a size for wchar_t" >&2;}
48797    { (exit 1); exit 1; }; }
48798 fi
48799 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
48800 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
48801
48802 cat >>confdefs.h <<_ACEOF
48803 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
48804 _ACEOF
48805
48806
48807
48808 if test "$ac_cv_sizeof_int" -lt 4 ; then
48809         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
48810 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
48811
48812         cat >>confdefs.h <<\_ACEOF
48813 #define LBER_INT_T long
48814 _ACEOF
48815
48816 else
48817         cat >>confdefs.h <<\_ACEOF
48818 #define LBER_INT_T int
48819 _ACEOF
48820
48821 fi
48822
48823 cat >>confdefs.h <<\_ACEOF
48824 #define LBER_LEN_T long
48825 _ACEOF
48826
48827 cat >>confdefs.h <<\_ACEOF
48828 #define LBER_SOCKET_T int
48829 _ACEOF
48830
48831 cat >>confdefs.h <<\_ACEOF
48832 #define LBER_TAG_T long
48833 _ACEOF
48834
48835
48836 echo "$as_me:$LINENO: checking for working memcmp" >&5
48837 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
48838 if test "${ac_cv_func_memcmp_working+set}" = set; then
48839   echo $ECHO_N "(cached) $ECHO_C" >&6
48840 else
48841   if test "$cross_compiling" = yes; then
48842   ac_cv_func_memcmp_working=no
48843 else
48844   cat >conftest.$ac_ext <<_ACEOF
48845 /* confdefs.h.  */
48846 _ACEOF
48847 cat confdefs.h >>conftest.$ac_ext
48848 cat >>conftest.$ac_ext <<_ACEOF
48849 /* end confdefs.h.  */
48850 $ac_includes_default
48851 int
48852 main ()
48853 {
48854
48855   /* Some versions of memcmp are not 8-bit clean.  */
48856   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
48857   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
48858     exit (1);
48859
48860   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
48861      or more and with at least one buffer not starting on a 4-byte boundary.
48862      William Lewis provided this test program.   */
48863   {
48864     char foo[21];
48865     char bar[21];
48866     int i;
48867     for (i = 0; i < 4; i++)
48868       {
48869         char *a = foo + i;
48870         char *b = bar + i;
48871         strcpy (a, "--------01111111");
48872         strcpy (b, "--------10000000");
48873         if (memcmp (a, b, 16) >= 0)
48874           exit (1);
48875       }
48876     exit (0);
48877   }
48878
48879   ;
48880   return 0;
48881 }
48882 _ACEOF
48883 rm -f conftest$ac_exeext
48884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48885   (eval $ac_link) 2>&5
48886   ac_status=$?
48887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48888   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48890   (eval $ac_try) 2>&5
48891   ac_status=$?
48892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48893   (exit $ac_status); }; }; then
48894   ac_cv_func_memcmp_working=yes
48895 else
48896   echo "$as_me: program exited with status $ac_status" >&5
48897 echo "$as_me: failed program was:" >&5
48898 sed 's/^/| /' conftest.$ac_ext >&5
48899
48900 ( exit $ac_status )
48901 ac_cv_func_memcmp_working=no
48902 fi
48903 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48904 fi
48905 fi
48906 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
48907 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
48908 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
48909     "memcmp.$ac_objext"   | \
48910   *" memcmp.$ac_objext"   | \
48911     "memcmp.$ac_objext "* | \
48912   *" memcmp.$ac_objext "* ) ;;
48913   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
48914 esac
48915
48916
48917
48918 if test $ac_cv_func_memcmp_working = no ; then
48919
48920 cat >>confdefs.h <<\_ACEOF
48921 #define NEED_MEMCMP_REPLACEMENT 1
48922 _ACEOF
48923
48924 fi
48925
48926
48927 for ac_func in strftime
48928 do
48929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48930 echo "$as_me:$LINENO: checking for $ac_func" >&5
48931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48932 if eval "test \"\${$as_ac_var+set}\" = set"; then
48933   echo $ECHO_N "(cached) $ECHO_C" >&6
48934 else
48935   cat >conftest.$ac_ext <<_ACEOF
48936 /* confdefs.h.  */
48937 _ACEOF
48938 cat confdefs.h >>conftest.$ac_ext
48939 cat >>conftest.$ac_ext <<_ACEOF
48940 /* end confdefs.h.  */
48941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48943 #define $ac_func innocuous_$ac_func
48944
48945 /* System header to define __stub macros and hopefully few prototypes,
48946     which can conflict with char $ac_func (); below.
48947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48948     <limits.h> exists even on freestanding compilers.  */
48949
48950 #ifdef __STDC__
48951 # include <limits.h>
48952 #else
48953 # include <assert.h>
48954 #endif
48955
48956 #undef $ac_func
48957
48958 /* Override any gcc2 internal prototype to avoid an error.  */
48959 #ifdef __cplusplus
48960 extern "C"
48961 {
48962 #endif
48963 /* We use char because int might match the return type of a gcc2
48964    builtin and then its argument prototype would still apply.  */
48965 char $ac_func ();
48966 /* The GNU C library defines this for functions which it implements
48967     to always fail with ENOSYS.  Some functions are actually named
48968     something starting with __ and the normal name is an alias.  */
48969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48970 choke me
48971 #else
48972 char (*f) () = $ac_func;
48973 #endif
48974 #ifdef __cplusplus
48975 }
48976 #endif
48977
48978 int
48979 main ()
48980 {
48981 return f != $ac_func;
48982   ;
48983   return 0;
48984 }
48985 _ACEOF
48986 rm -f conftest.$ac_objext conftest$ac_exeext
48987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48988   (eval $ac_link) 2>conftest.er1
48989   ac_status=$?
48990   grep -v '^ *+' conftest.er1 >conftest.err
48991   rm -f conftest.er1
48992   cat conftest.err >&5
48993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48994   (exit $ac_status); } &&
48995          { ac_try='test -z "$ac_c_werror_flag"
48996                          || test ! -s conftest.err'
48997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48998   (eval $ac_try) 2>&5
48999   ac_status=$?
49000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49001   (exit $ac_status); }; } &&
49002          { ac_try='test -s conftest$ac_exeext'
49003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49004   (eval $ac_try) 2>&5
49005   ac_status=$?
49006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49007   (exit $ac_status); }; }; then
49008   eval "$as_ac_var=yes"
49009 else
49010   echo "$as_me: failed program was:" >&5
49011 sed 's/^/| /' conftest.$ac_ext >&5
49012
49013 eval "$as_ac_var=no"
49014 fi
49015 rm -f conftest.err conftest.$ac_objext \
49016       conftest$ac_exeext conftest.$ac_ext
49017 fi
49018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49020 if test `eval echo '${'$as_ac_var'}'` = yes; then
49021   cat >>confdefs.h <<_ACEOF
49022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49023 _ACEOF
49024
49025 else
49026   # strftime is in -lintl on SCO UNIX.
49027 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
49028 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
49029 if test "${ac_cv_lib_intl_strftime+set}" = set; then
49030   echo $ECHO_N "(cached) $ECHO_C" >&6
49031 else
49032   ac_check_lib_save_LIBS=$LIBS
49033 LIBS="-lintl  $LIBS"
49034 cat >conftest.$ac_ext <<_ACEOF
49035 /* confdefs.h.  */
49036 _ACEOF
49037 cat confdefs.h >>conftest.$ac_ext
49038 cat >>conftest.$ac_ext <<_ACEOF
49039 /* end confdefs.h.  */
49040
49041 /* Override any gcc2 internal prototype to avoid an error.  */
49042 #ifdef __cplusplus
49043 extern "C"
49044 #endif
49045 /* We use char because int might match the return type of a gcc2
49046    builtin and then its argument prototype would still apply.  */
49047 char strftime ();
49048 int
49049 main ()
49050 {
49051 strftime ();
49052   ;
49053   return 0;
49054 }
49055 _ACEOF
49056 rm -f conftest.$ac_objext conftest$ac_exeext
49057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49058   (eval $ac_link) 2>conftest.er1
49059   ac_status=$?
49060   grep -v '^ *+' conftest.er1 >conftest.err
49061   rm -f conftest.er1
49062   cat conftest.err >&5
49063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49064   (exit $ac_status); } &&
49065          { ac_try='test -z "$ac_c_werror_flag"
49066                          || test ! -s conftest.err'
49067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49068   (eval $ac_try) 2>&5
49069   ac_status=$?
49070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49071   (exit $ac_status); }; } &&
49072          { ac_try='test -s conftest$ac_exeext'
49073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49074   (eval $ac_try) 2>&5
49075   ac_status=$?
49076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49077   (exit $ac_status); }; }; then
49078   ac_cv_lib_intl_strftime=yes
49079 else
49080   echo "$as_me: failed program was:" >&5
49081 sed 's/^/| /' conftest.$ac_ext >&5
49082
49083 ac_cv_lib_intl_strftime=no
49084 fi
49085 rm -f conftest.err conftest.$ac_objext \
49086       conftest$ac_exeext conftest.$ac_ext
49087 LIBS=$ac_check_lib_save_LIBS
49088 fi
49089 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
49090 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
49091 if test $ac_cv_lib_intl_strftime = yes; then
49092   cat >>confdefs.h <<\_ACEOF
49093 #define HAVE_STRFTIME 1
49094 _ACEOF
49095
49096 LIBS="-lintl $LIBS"
49097 fi
49098
49099 fi
49100 done
49101
49102
49103 echo "$as_me:$LINENO: checking for inet_aton()" >&5
49104 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
49105 if test "${ol_cv_func_inet_aton+set}" = set; then
49106   echo $ECHO_N "(cached) $ECHO_C" >&6
49107 else
49108   cat >conftest.$ac_ext <<_ACEOF
49109 /* confdefs.h.  */
49110 _ACEOF
49111 cat confdefs.h >>conftest.$ac_ext
49112 cat >>conftest.$ac_ext <<_ACEOF
49113 /* end confdefs.h.  */
49114
49115 #ifdef HAVE_SYS_TYPES_H
49116 #       include <sys/types.h>
49117 #endif
49118 #ifdef HAVE_SYS_SOCKET_H
49119 #       include <sys/socket.h>
49120 #       ifdef HAVE_SYS_SELECT_H
49121 #               include <sys/select.h>
49122 #       endif
49123 #       include <netinet/in.h>
49124 #       ifdef HAVE_ARPA_INET_H
49125 #               include <arpa/inet.h>
49126 #       endif
49127 #endif
49128
49129 int
49130 main ()
49131 {
49132 struct in_addr in;
49133 int rc = inet_aton( "255.255.255.255", &in );
49134   ;
49135   return 0;
49136 }
49137 _ACEOF
49138 rm -f conftest.$ac_objext conftest$ac_exeext
49139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49140   (eval $ac_link) 2>conftest.er1
49141   ac_status=$?
49142   grep -v '^ *+' conftest.er1 >conftest.err
49143   rm -f conftest.er1
49144   cat conftest.err >&5
49145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49146   (exit $ac_status); } &&
49147          { ac_try='test -z "$ac_c_werror_flag"
49148                          || test ! -s conftest.err'
49149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49150   (eval $ac_try) 2>&5
49151   ac_status=$?
49152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49153   (exit $ac_status); }; } &&
49154          { ac_try='test -s conftest$ac_exeext'
49155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49156   (eval $ac_try) 2>&5
49157   ac_status=$?
49158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49159   (exit $ac_status); }; }; then
49160   ol_cv_func_inet_aton=yes
49161 else
49162   echo "$as_me: failed program was:" >&5
49163 sed 's/^/| /' conftest.$ac_ext >&5
49164
49165 ol_cv_func_inet_aton=no
49166 fi
49167 rm -f conftest.err conftest.$ac_objext \
49168       conftest$ac_exeext conftest.$ac_ext
49169 fi
49170 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
49171 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
49172   if test $ol_cv_func_inet_aton != no; then
49173
49174 cat >>confdefs.h <<\_ACEOF
49175 #define HAVE_INET_ATON 1
49176 _ACEOF
49177
49178   fi
49179
49180
49181 echo "$as_me:$LINENO: checking for _spawnlp" >&5
49182 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
49183 if test "${ac_cv_func__spawnlp+set}" = set; then
49184   echo $ECHO_N "(cached) $ECHO_C" >&6
49185 else
49186   cat >conftest.$ac_ext <<_ACEOF
49187 /* confdefs.h.  */
49188 _ACEOF
49189 cat confdefs.h >>conftest.$ac_ext
49190 cat >>conftest.$ac_ext <<_ACEOF
49191 /* end confdefs.h.  */
49192 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
49193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49194 #define _spawnlp innocuous__spawnlp
49195
49196 /* System header to define __stub macros and hopefully few prototypes,
49197     which can conflict with char _spawnlp (); below.
49198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49199     <limits.h> exists even on freestanding compilers.  */
49200
49201 #ifdef __STDC__
49202 # include <limits.h>
49203 #else
49204 # include <assert.h>
49205 #endif
49206
49207 #undef _spawnlp
49208
49209 /* Override any gcc2 internal prototype to avoid an error.  */
49210 #ifdef __cplusplus
49211 extern "C"
49212 {
49213 #endif
49214 /* We use char because int might match the return type of a gcc2
49215    builtin and then its argument prototype would still apply.  */
49216 char _spawnlp ();
49217 /* The GNU C library defines this for functions which it implements
49218     to always fail with ENOSYS.  Some functions are actually named
49219     something starting with __ and the normal name is an alias.  */
49220 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
49221 choke me
49222 #else
49223 char (*f) () = _spawnlp;
49224 #endif
49225 #ifdef __cplusplus
49226 }
49227 #endif
49228
49229 int
49230 main ()
49231 {
49232 return f != _spawnlp;
49233   ;
49234   return 0;
49235 }
49236 _ACEOF
49237 rm -f conftest.$ac_objext conftest$ac_exeext
49238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49239   (eval $ac_link) 2>conftest.er1
49240   ac_status=$?
49241   grep -v '^ *+' conftest.er1 >conftest.err
49242   rm -f conftest.er1
49243   cat conftest.err >&5
49244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49245   (exit $ac_status); } &&
49246          { ac_try='test -z "$ac_c_werror_flag"
49247                          || test ! -s conftest.err'
49248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49249   (eval $ac_try) 2>&5
49250   ac_status=$?
49251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49252   (exit $ac_status); }; } &&
49253          { ac_try='test -s conftest$ac_exeext'
49254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49255   (eval $ac_try) 2>&5
49256   ac_status=$?
49257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49258   (exit $ac_status); }; }; then
49259   ac_cv_func__spawnlp=yes
49260 else
49261   echo "$as_me: failed program was:" >&5
49262 sed 's/^/| /' conftest.$ac_ext >&5
49263
49264 ac_cv_func__spawnlp=no
49265 fi
49266 rm -f conftest.err conftest.$ac_objext \
49267       conftest$ac_exeext conftest.$ac_ext
49268 fi
49269 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
49270 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
49271 if test $ac_cv_func__spawnlp = yes; then
49272
49273 cat >>confdefs.h <<\_ACEOF
49274 #define HAVE_SPAWNLP 1
49275 _ACEOF
49276
49277 fi
49278
49279
49280 echo "$as_me:$LINENO: checking for _snprintf" >&5
49281 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
49282 if test "${ac_cv_func__snprintf+set}" = set; then
49283   echo $ECHO_N "(cached) $ECHO_C" >&6
49284 else
49285   cat >conftest.$ac_ext <<_ACEOF
49286 /* confdefs.h.  */
49287 _ACEOF
49288 cat confdefs.h >>conftest.$ac_ext
49289 cat >>conftest.$ac_ext <<_ACEOF
49290 /* end confdefs.h.  */
49291 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
49292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49293 #define _snprintf innocuous__snprintf
49294
49295 /* System header to define __stub macros and hopefully few prototypes,
49296     which can conflict with char _snprintf (); below.
49297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49298     <limits.h> exists even on freestanding compilers.  */
49299
49300 #ifdef __STDC__
49301 # include <limits.h>
49302 #else
49303 # include <assert.h>
49304 #endif
49305
49306 #undef _snprintf
49307
49308 /* Override any gcc2 internal prototype to avoid an error.  */
49309 #ifdef __cplusplus
49310 extern "C"
49311 {
49312 #endif
49313 /* We use char because int might match the return type of a gcc2
49314    builtin and then its argument prototype would still apply.  */
49315 char _snprintf ();
49316 /* The GNU C library defines this for functions which it implements
49317     to always fail with ENOSYS.  Some functions are actually named
49318     something starting with __ and the normal name is an alias.  */
49319 #if defined (__stub__snprintf) || defined (__stub____snprintf)
49320 choke me
49321 #else
49322 char (*f) () = _snprintf;
49323 #endif
49324 #ifdef __cplusplus
49325 }
49326 #endif
49327
49328 int
49329 main ()
49330 {
49331 return f != _snprintf;
49332   ;
49333   return 0;
49334 }
49335 _ACEOF
49336 rm -f conftest.$ac_objext conftest$ac_exeext
49337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49338   (eval $ac_link) 2>conftest.er1
49339   ac_status=$?
49340   grep -v '^ *+' conftest.er1 >conftest.err
49341   rm -f conftest.er1
49342   cat conftest.err >&5
49343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49344   (exit $ac_status); } &&
49345          { ac_try='test -z "$ac_c_werror_flag"
49346                          || test ! -s conftest.err'
49347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49348   (eval $ac_try) 2>&5
49349   ac_status=$?
49350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49351   (exit $ac_status); }; } &&
49352          { ac_try='test -s conftest$ac_exeext'
49353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49354   (eval $ac_try) 2>&5
49355   ac_status=$?
49356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49357   (exit $ac_status); }; }; then
49358   ac_cv_func__snprintf=yes
49359 else
49360   echo "$as_me: failed program was:" >&5
49361 sed 's/^/| /' conftest.$ac_ext >&5
49362
49363 ac_cv_func__snprintf=no
49364 fi
49365 rm -f conftest.err conftest.$ac_objext \
49366       conftest$ac_exeext conftest.$ac_ext
49367 fi
49368 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
49369 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
49370 if test $ac_cv_func__snprintf = yes; then
49371   ac_cv_func_snprintf=yes
49372
49373 cat >>confdefs.h <<\_ACEOF
49374 #define snprintf _snprintf
49375 _ACEOF
49376
49377
49378 fi
49379
49380
49381 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
49382 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
49383 if test "${ac_cv_func__vsnprintf+set}" = set; then
49384   echo $ECHO_N "(cached) $ECHO_C" >&6
49385 else
49386   cat >conftest.$ac_ext <<_ACEOF
49387 /* confdefs.h.  */
49388 _ACEOF
49389 cat confdefs.h >>conftest.$ac_ext
49390 cat >>conftest.$ac_ext <<_ACEOF
49391 /* end confdefs.h.  */
49392 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
49393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49394 #define _vsnprintf innocuous__vsnprintf
49395
49396 /* System header to define __stub macros and hopefully few prototypes,
49397     which can conflict with char _vsnprintf (); below.
49398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49399     <limits.h> exists even on freestanding compilers.  */
49400
49401 #ifdef __STDC__
49402 # include <limits.h>
49403 #else
49404 # include <assert.h>
49405 #endif
49406
49407 #undef _vsnprintf
49408
49409 /* Override any gcc2 internal prototype to avoid an error.  */
49410 #ifdef __cplusplus
49411 extern "C"
49412 {
49413 #endif
49414 /* We use char because int might match the return type of a gcc2
49415    builtin and then its argument prototype would still apply.  */
49416 char _vsnprintf ();
49417 /* The GNU C library defines this for functions which it implements
49418     to always fail with ENOSYS.  Some functions are actually named
49419     something starting with __ and the normal name is an alias.  */
49420 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
49421 choke me
49422 #else
49423 char (*f) () = _vsnprintf;
49424 #endif
49425 #ifdef __cplusplus
49426 }
49427 #endif
49428
49429 int
49430 main ()
49431 {
49432 return f != _vsnprintf;
49433   ;
49434   return 0;
49435 }
49436 _ACEOF
49437 rm -f conftest.$ac_objext conftest$ac_exeext
49438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49439   (eval $ac_link) 2>conftest.er1
49440   ac_status=$?
49441   grep -v '^ *+' conftest.er1 >conftest.err
49442   rm -f conftest.er1
49443   cat conftest.err >&5
49444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49445   (exit $ac_status); } &&
49446          { ac_try='test -z "$ac_c_werror_flag"
49447                          || test ! -s conftest.err'
49448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49449   (eval $ac_try) 2>&5
49450   ac_status=$?
49451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49452   (exit $ac_status); }; } &&
49453          { ac_try='test -s conftest$ac_exeext'
49454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49455   (eval $ac_try) 2>&5
49456   ac_status=$?
49457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49458   (exit $ac_status); }; }; then
49459   ac_cv_func__vsnprintf=yes
49460 else
49461   echo "$as_me: failed program was:" >&5
49462 sed 's/^/| /' conftest.$ac_ext >&5
49463
49464 ac_cv_func__vsnprintf=no
49465 fi
49466 rm -f conftest.err conftest.$ac_objext \
49467       conftest$ac_exeext conftest.$ac_ext
49468 fi
49469 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
49470 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
49471 if test $ac_cv_func__vsnprintf = yes; then
49472   ac_cv_func_vsnprintf=yes
49473
49474 cat >>confdefs.h <<\_ACEOF
49475 #define vsnprintf _vsnprintf
49476 _ACEOF
49477
49478
49479 fi
49480
49481
49482
49483 for ac_func in vprintf
49484 do
49485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49486 echo "$as_me:$LINENO: checking for $ac_func" >&5
49487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49488 if eval "test \"\${$as_ac_var+set}\" = set"; then
49489   echo $ECHO_N "(cached) $ECHO_C" >&6
49490 else
49491   cat >conftest.$ac_ext <<_ACEOF
49492 /* confdefs.h.  */
49493 _ACEOF
49494 cat confdefs.h >>conftest.$ac_ext
49495 cat >>conftest.$ac_ext <<_ACEOF
49496 /* end confdefs.h.  */
49497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49498    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49499 #define $ac_func innocuous_$ac_func
49500
49501 /* System header to define __stub macros and hopefully few prototypes,
49502     which can conflict with char $ac_func (); below.
49503     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49504     <limits.h> exists even on freestanding compilers.  */
49505
49506 #ifdef __STDC__
49507 # include <limits.h>
49508 #else
49509 # include <assert.h>
49510 #endif
49511
49512 #undef $ac_func
49513
49514 /* Override any gcc2 internal prototype to avoid an error.  */
49515 #ifdef __cplusplus
49516 extern "C"
49517 {
49518 #endif
49519 /* We use char because int might match the return type of a gcc2
49520    builtin and then its argument prototype would still apply.  */
49521 char $ac_func ();
49522 /* The GNU C library defines this for functions which it implements
49523     to always fail with ENOSYS.  Some functions are actually named
49524     something starting with __ and the normal name is an alias.  */
49525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49526 choke me
49527 #else
49528 char (*f) () = $ac_func;
49529 #endif
49530 #ifdef __cplusplus
49531 }
49532 #endif
49533
49534 int
49535 main ()
49536 {
49537 return f != $ac_func;
49538   ;
49539   return 0;
49540 }
49541 _ACEOF
49542 rm -f conftest.$ac_objext conftest$ac_exeext
49543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49544   (eval $ac_link) 2>conftest.er1
49545   ac_status=$?
49546   grep -v '^ *+' conftest.er1 >conftest.err
49547   rm -f conftest.er1
49548   cat conftest.err >&5
49549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49550   (exit $ac_status); } &&
49551          { ac_try='test -z "$ac_c_werror_flag"
49552                          || test ! -s conftest.err'
49553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49554   (eval $ac_try) 2>&5
49555   ac_status=$?
49556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49557   (exit $ac_status); }; } &&
49558          { ac_try='test -s conftest$ac_exeext'
49559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49560   (eval $ac_try) 2>&5
49561   ac_status=$?
49562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49563   (exit $ac_status); }; }; then
49564   eval "$as_ac_var=yes"
49565 else
49566   echo "$as_me: failed program was:" >&5
49567 sed 's/^/| /' conftest.$ac_ext >&5
49568
49569 eval "$as_ac_var=no"
49570 fi
49571 rm -f conftest.err conftest.$ac_objext \
49572       conftest$ac_exeext conftest.$ac_ext
49573 fi
49574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49576 if test `eval echo '${'$as_ac_var'}'` = yes; then
49577   cat >>confdefs.h <<_ACEOF
49578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49579 _ACEOF
49580
49581 echo "$as_me:$LINENO: checking for _doprnt" >&5
49582 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
49583 if test "${ac_cv_func__doprnt+set}" = set; then
49584   echo $ECHO_N "(cached) $ECHO_C" >&6
49585 else
49586   cat >conftest.$ac_ext <<_ACEOF
49587 /* confdefs.h.  */
49588 _ACEOF
49589 cat confdefs.h >>conftest.$ac_ext
49590 cat >>conftest.$ac_ext <<_ACEOF
49591 /* end confdefs.h.  */
49592 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
49593    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49594 #define _doprnt innocuous__doprnt
49595
49596 /* System header to define __stub macros and hopefully few prototypes,
49597     which can conflict with char _doprnt (); below.
49598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49599     <limits.h> exists even on freestanding compilers.  */
49600
49601 #ifdef __STDC__
49602 # include <limits.h>
49603 #else
49604 # include <assert.h>
49605 #endif
49606
49607 #undef _doprnt
49608
49609 /* Override any gcc2 internal prototype to avoid an error.  */
49610 #ifdef __cplusplus
49611 extern "C"
49612 {
49613 #endif
49614 /* We use char because int might match the return type of a gcc2
49615    builtin and then its argument prototype would still apply.  */
49616 char _doprnt ();
49617 /* The GNU C library defines this for functions which it implements
49618     to always fail with ENOSYS.  Some functions are actually named
49619     something starting with __ and the normal name is an alias.  */
49620 #if defined (__stub__doprnt) || defined (__stub____doprnt)
49621 choke me
49622 #else
49623 char (*f) () = _doprnt;
49624 #endif
49625 #ifdef __cplusplus
49626 }
49627 #endif
49628
49629 int
49630 main ()
49631 {
49632 return f != _doprnt;
49633   ;
49634   return 0;
49635 }
49636 _ACEOF
49637 rm -f conftest.$ac_objext conftest$ac_exeext
49638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49639   (eval $ac_link) 2>conftest.er1
49640   ac_status=$?
49641   grep -v '^ *+' conftest.er1 >conftest.err
49642   rm -f conftest.er1
49643   cat conftest.err >&5
49644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49645   (exit $ac_status); } &&
49646          { ac_try='test -z "$ac_c_werror_flag"
49647                          || test ! -s conftest.err'
49648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49649   (eval $ac_try) 2>&5
49650   ac_status=$?
49651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49652   (exit $ac_status); }; } &&
49653          { ac_try='test -s conftest$ac_exeext'
49654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49655   (eval $ac_try) 2>&5
49656   ac_status=$?
49657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49658   (exit $ac_status); }; }; then
49659   ac_cv_func__doprnt=yes
49660 else
49661   echo "$as_me: failed program was:" >&5
49662 sed 's/^/| /' conftest.$ac_ext >&5
49663
49664 ac_cv_func__doprnt=no
49665 fi
49666 rm -f conftest.err conftest.$ac_objext \
49667       conftest$ac_exeext conftest.$ac_ext
49668 fi
49669 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
49670 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
49671 if test $ac_cv_func__doprnt = yes; then
49672
49673 cat >>confdefs.h <<\_ACEOF
49674 #define HAVE_DOPRNT 1
49675 _ACEOF
49676
49677 fi
49678
49679 fi
49680 done
49681
49682
49683
49684 if test $ac_cv_func_vprintf = yes ; then
49685
49686
49687 for ac_func in snprintf vsnprintf
49688 do
49689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49690 echo "$as_me:$LINENO: checking for $ac_func" >&5
49691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49692 if eval "test \"\${$as_ac_var+set}\" = set"; then
49693   echo $ECHO_N "(cached) $ECHO_C" >&6
49694 else
49695   cat >conftest.$ac_ext <<_ACEOF
49696 /* confdefs.h.  */
49697 _ACEOF
49698 cat confdefs.h >>conftest.$ac_ext
49699 cat >>conftest.$ac_ext <<_ACEOF
49700 /* end confdefs.h.  */
49701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49703 #define $ac_func innocuous_$ac_func
49704
49705 /* System header to define __stub macros and hopefully few prototypes,
49706     which can conflict with char $ac_func (); below.
49707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49708     <limits.h> exists even on freestanding compilers.  */
49709
49710 #ifdef __STDC__
49711 # include <limits.h>
49712 #else
49713 # include <assert.h>
49714 #endif
49715
49716 #undef $ac_func
49717
49718 /* Override any gcc2 internal prototype to avoid an error.  */
49719 #ifdef __cplusplus
49720 extern "C"
49721 {
49722 #endif
49723 /* We use char because int might match the return type of a gcc2
49724    builtin and then its argument prototype would still apply.  */
49725 char $ac_func ();
49726 /* The GNU C library defines this for functions which it implements
49727     to always fail with ENOSYS.  Some functions are actually named
49728     something starting with __ and the normal name is an alias.  */
49729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49730 choke me
49731 #else
49732 char (*f) () = $ac_func;
49733 #endif
49734 #ifdef __cplusplus
49735 }
49736 #endif
49737
49738 int
49739 main ()
49740 {
49741 return f != $ac_func;
49742   ;
49743   return 0;
49744 }
49745 _ACEOF
49746 rm -f conftest.$ac_objext conftest$ac_exeext
49747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49748   (eval $ac_link) 2>conftest.er1
49749   ac_status=$?
49750   grep -v '^ *+' conftest.er1 >conftest.err
49751   rm -f conftest.er1
49752   cat conftest.err >&5
49753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49754   (exit $ac_status); } &&
49755          { ac_try='test -z "$ac_c_werror_flag"
49756                          || test ! -s conftest.err'
49757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49758   (eval $ac_try) 2>&5
49759   ac_status=$?
49760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49761   (exit $ac_status); }; } &&
49762          { ac_try='test -s conftest$ac_exeext'
49763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49764   (eval $ac_try) 2>&5
49765   ac_status=$?
49766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49767   (exit $ac_status); }; }; then
49768   eval "$as_ac_var=yes"
49769 else
49770   echo "$as_me: failed program was:" >&5
49771 sed 's/^/| /' conftest.$ac_ext >&5
49772
49773 eval "$as_ac_var=no"
49774 fi
49775 rm -f conftest.err conftest.$ac_objext \
49776       conftest$ac_exeext conftest.$ac_ext
49777 fi
49778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49780 if test `eval echo '${'$as_ac_var'}'` = yes; then
49781   cat >>confdefs.h <<_ACEOF
49782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49783 _ACEOF
49784
49785 fi
49786 done
49787
49788 fi
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
49842
49843 for ac_func in \
49844         bcopy                   \
49845         closesocket             \
49846         chroot                  \
49847         endgrent                \
49848         endpwent                \
49849         fcntl                   \
49850         flock                   \
49851         fstat                   \
49852         getdtablesize   \
49853         getgrgid                \
49854         gethostname             \
49855         getpass                 \
49856         getpassphrase   \
49857         getpwuid                \
49858         getpwnam                \
49859         getspnam                \
49860         gettimeofday    \
49861         initgroups              \
49862         lockf                   \
49863         memcpy                  \
49864         memmove                 \
49865         mkstemp                 \
49866         mktemp                  \
49867         pipe                    \
49868         read                    \
49869         recv                    \
49870         recvfrom                \
49871         setpwfile               \
49872         setgid                  \
49873         setegid                 \
49874         setsid                  \
49875         setuid                  \
49876         seteuid                 \
49877         signal                  \
49878         strdup                  \
49879         strpbrk                 \
49880         strrchr                 \
49881         strsep                  \
49882         strstr                  \
49883         strtol                  \
49884         strtoul                 \
49885         strtoq                  \
49886         strtouq                 \
49887         strtoll                 \
49888         strspn                  \
49889         sysconf                 \
49890         usleep                  \
49891         waitpid                 \
49892         wait4                   \
49893         write                   \
49894         send                    \
49895         sendmsg                 \
49896         sendto                  \
49897
49898 do
49899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49900 echo "$as_me:$LINENO: checking for $ac_func" >&5
49901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49902 if eval "test \"\${$as_ac_var+set}\" = set"; then
49903   echo $ECHO_N "(cached) $ECHO_C" >&6
49904 else
49905   cat >conftest.$ac_ext <<_ACEOF
49906 /* confdefs.h.  */
49907 _ACEOF
49908 cat confdefs.h >>conftest.$ac_ext
49909 cat >>conftest.$ac_ext <<_ACEOF
49910 /* end confdefs.h.  */
49911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49913 #define $ac_func innocuous_$ac_func
49914
49915 /* System header to define __stub macros and hopefully few prototypes,
49916     which can conflict with char $ac_func (); below.
49917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49918     <limits.h> exists even on freestanding compilers.  */
49919
49920 #ifdef __STDC__
49921 # include <limits.h>
49922 #else
49923 # include <assert.h>
49924 #endif
49925
49926 #undef $ac_func
49927
49928 /* Override any gcc2 internal prototype to avoid an error.  */
49929 #ifdef __cplusplus
49930 extern "C"
49931 {
49932 #endif
49933 /* We use char because int might match the return type of a gcc2
49934    builtin and then its argument prototype would still apply.  */
49935 char $ac_func ();
49936 /* The GNU C library defines this for functions which it implements
49937     to always fail with ENOSYS.  Some functions are actually named
49938     something starting with __ and the normal name is an alias.  */
49939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49940 choke me
49941 #else
49942 char (*f) () = $ac_func;
49943 #endif
49944 #ifdef __cplusplus
49945 }
49946 #endif
49947
49948 int
49949 main ()
49950 {
49951 return f != $ac_func;
49952   ;
49953   return 0;
49954 }
49955 _ACEOF
49956 rm -f conftest.$ac_objext conftest$ac_exeext
49957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49958   (eval $ac_link) 2>conftest.er1
49959   ac_status=$?
49960   grep -v '^ *+' conftest.er1 >conftest.err
49961   rm -f conftest.er1
49962   cat conftest.err >&5
49963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49964   (exit $ac_status); } &&
49965          { ac_try='test -z "$ac_c_werror_flag"
49966                          || test ! -s conftest.err'
49967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49968   (eval $ac_try) 2>&5
49969   ac_status=$?
49970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49971   (exit $ac_status); }; } &&
49972          { ac_try='test -s conftest$ac_exeext'
49973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49974   (eval $ac_try) 2>&5
49975   ac_status=$?
49976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49977   (exit $ac_status); }; }; then
49978   eval "$as_ac_var=yes"
49979 else
49980   echo "$as_me: failed program was:" >&5
49981 sed 's/^/| /' conftest.$ac_ext >&5
49982
49983 eval "$as_ac_var=no"
49984 fi
49985 rm -f conftest.err conftest.$ac_objext \
49986       conftest$ac_exeext conftest.$ac_ext
49987 fi
49988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49990 if test `eval echo '${'$as_ac_var'}'` = yes; then
49991   cat >>confdefs.h <<_ACEOF
49992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49993 _ACEOF
49994
49995 fi
49996 done
49997
49998
49999
50000
50001 for ac_func in getopt getpeereid
50002 do
50003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50004 echo "$as_me:$LINENO: checking for $ac_func" >&5
50005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50006 if eval "test \"\${$as_ac_var+set}\" = set"; then
50007   echo $ECHO_N "(cached) $ECHO_C" >&6
50008 else
50009   cat >conftest.$ac_ext <<_ACEOF
50010 /* confdefs.h.  */
50011 _ACEOF
50012 cat confdefs.h >>conftest.$ac_ext
50013 cat >>conftest.$ac_ext <<_ACEOF
50014 /* end confdefs.h.  */
50015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50017 #define $ac_func innocuous_$ac_func
50018
50019 /* System header to define __stub macros and hopefully few prototypes,
50020     which can conflict with char $ac_func (); below.
50021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50022     <limits.h> exists even on freestanding compilers.  */
50023
50024 #ifdef __STDC__
50025 # include <limits.h>
50026 #else
50027 # include <assert.h>
50028 #endif
50029
50030 #undef $ac_func
50031
50032 /* Override any gcc2 internal prototype to avoid an error.  */
50033 #ifdef __cplusplus
50034 extern "C"
50035 {
50036 #endif
50037 /* We use char because int might match the return type of a gcc2
50038    builtin and then its argument prototype would still apply.  */
50039 char $ac_func ();
50040 /* The GNU C library defines this for functions which it implements
50041     to always fail with ENOSYS.  Some functions are actually named
50042     something starting with __ and the normal name is an alias.  */
50043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50044 choke me
50045 #else
50046 char (*f) () = $ac_func;
50047 #endif
50048 #ifdef __cplusplus
50049 }
50050 #endif
50051
50052 int
50053 main ()
50054 {
50055 return f != $ac_func;
50056   ;
50057   return 0;
50058 }
50059 _ACEOF
50060 rm -f conftest.$ac_objext conftest$ac_exeext
50061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50062   (eval $ac_link) 2>conftest.er1
50063   ac_status=$?
50064   grep -v '^ *+' conftest.er1 >conftest.err
50065   rm -f conftest.er1
50066   cat conftest.err >&5
50067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50068   (exit $ac_status); } &&
50069          { ac_try='test -z "$ac_c_werror_flag"
50070                          || test ! -s conftest.err'
50071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50072   (eval $ac_try) 2>&5
50073   ac_status=$?
50074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50075   (exit $ac_status); }; } &&
50076          { ac_try='test -s conftest$ac_exeext'
50077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50078   (eval $ac_try) 2>&5
50079   ac_status=$?
50080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50081   (exit $ac_status); }; }; then
50082   eval "$as_ac_var=yes"
50083 else
50084   echo "$as_me: failed program was:" >&5
50085 sed 's/^/| /' conftest.$ac_ext >&5
50086
50087 eval "$as_ac_var=no"
50088 fi
50089 rm -f conftest.err conftest.$ac_objext \
50090       conftest$ac_exeext conftest.$ac_ext
50091 fi
50092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50094 if test `eval echo '${'$as_ac_var'}'` = yes; then
50095   cat >>confdefs.h <<_ACEOF
50096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50097 _ACEOF
50098
50099 else
50100   case $LIBOBJS in
50101     "$ac_func.$ac_objext"   | \
50102   *" $ac_func.$ac_objext"   | \
50103     "$ac_func.$ac_objext "* | \
50104   *" $ac_func.$ac_objext "* ) ;;
50105   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
50106 esac
50107
50108 fi
50109 done
50110
50111
50112
50113 if test "$ac_cv_func_getopt" != yes; then
50114         LIBSRCS="$LIBSRCS getopt.c"
50115 fi
50116 if test "$ac_cv_func_getpeereid" != yes; then
50117         echo "$as_me:$LINENO: checking for msg_accrights in msghdr" >&5
50118 echo $ECHO_N "checking for msg_accrights in msghdr... $ECHO_C" >&6
50119 if test "${ol_cv_msghdr_msg_accrights+set}" = set; then
50120   echo $ECHO_N "(cached) $ECHO_C" >&6
50121 else
50122   cat >conftest.$ac_ext <<_ACEOF
50123 /* confdefs.h.  */
50124 _ACEOF
50125 cat confdefs.h >>conftest.$ac_ext
50126 cat >>conftest.$ac_ext <<_ACEOF
50127 /* end confdefs.h.  */
50128 #include <sys/socket.h>
50129 int
50130 main ()
50131 {
50132 struct msghdr m; m.msg_accrightslen=0
50133   ;
50134   return 0;
50135 }
50136 _ACEOF
50137 rm -f conftest.$ac_objext
50138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50139   (eval $ac_compile) 2>conftest.er1
50140   ac_status=$?
50141   grep -v '^ *+' conftest.er1 >conftest.err
50142   rm -f conftest.er1
50143   cat conftest.err >&5
50144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50145   (exit $ac_status); } &&
50146          { ac_try='test -z "$ac_c_werror_flag"
50147                          || test ! -s conftest.err'
50148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50149   (eval $ac_try) 2>&5
50150   ac_status=$?
50151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50152   (exit $ac_status); }; } &&
50153          { ac_try='test -s conftest.$ac_objext'
50154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50155   (eval $ac_try) 2>&5
50156   ac_status=$?
50157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50158   (exit $ac_status); }; }; then
50159   ol_cv_msghdr_msg_accrights=yes
50160 else
50161   echo "$as_me: failed program was:" >&5
50162 sed 's/^/| /' conftest.$ac_ext >&5
50163
50164 ol_cv_msghdr_msg_accrights=no
50165 fi
50166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50167
50168 fi
50169 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_accrights" >&5
50170 echo "${ECHO_T}$ol_cv_msghdr_msg_accrights" >&6
50171   if test $ol_cv_msghdr_msg_accrights = "yes" ; then
50172
50173 cat >>confdefs.h <<\_ACEOF
50174 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
50175 _ACEOF
50176
50177   fi
50178
50179         if test "$ac_cv_func_getpeereid" != yes; then
50180                 echo "$as_me:$LINENO: checking for msg_control in msghdr" >&5
50181 echo $ECHO_N "checking for msg_control in msghdr... $ECHO_C" >&6
50182 if test "${ol_cv_msghdr_msg_control+set}" = set; then
50183   echo $ECHO_N "(cached) $ECHO_C" >&6
50184 else
50185   cat >conftest.$ac_ext <<_ACEOF
50186 /* confdefs.h.  */
50187 _ACEOF
50188 cat confdefs.h >>conftest.$ac_ext
50189 cat >>conftest.$ac_ext <<_ACEOF
50190 /* end confdefs.h.  */
50191 #include <sys/socket.h>
50192 int
50193 main ()
50194 {
50195 struct msghdr m; m.msg_control=(struct cmsghdr *)0
50196   ;
50197   return 0;
50198 }
50199 _ACEOF
50200 rm -f conftest.$ac_objext
50201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50202   (eval $ac_compile) 2>conftest.er1
50203   ac_status=$?
50204   grep -v '^ *+' conftest.er1 >conftest.err
50205   rm -f conftest.er1
50206   cat conftest.err >&5
50207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50208   (exit $ac_status); } &&
50209          { ac_try='test -z "$ac_c_werror_flag"
50210                          || test ! -s conftest.err'
50211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50212   (eval $ac_try) 2>&5
50213   ac_status=$?
50214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50215   (exit $ac_status); }; } &&
50216          { ac_try='test -s conftest.$ac_objext'
50217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50218   (eval $ac_try) 2>&5
50219   ac_status=$?
50220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50221   (exit $ac_status); }; }; then
50222   ol_cv_msghdr_msg_control=yes
50223 else
50224   echo "$as_me: failed program was:" >&5
50225 sed 's/^/| /' conftest.$ac_ext >&5
50226
50227 ol_cv_msghdr_msg_control=no
50228 fi
50229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50230
50231 fi
50232 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_control" >&5
50233 echo "${ECHO_T}$ol_cv_msghdr_msg_control" >&6
50234   if test $ol_cv_msghdr_msg_control = "yes" ; then
50235
50236 cat >>confdefs.h <<\_ACEOF
50237 #define HAVE_MSGHDR_MSG_CONTROL 1
50238 _ACEOF
50239
50240   fi
50241
50242         fi
50243         LIBSRCS="$LIBSRCS getpeereid.c"
50244 fi
50245 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
50246         if test "$ac_cv_func_snprintf" != yes; then
50247
50248 cat >>confdefs.h <<\_ACEOF
50249 #define snprintf ber_pvt_snprintf
50250 _ACEOF
50251
50252         fi
50253         if test "$ac_cv_func_vsnprintf" != yes; then
50254
50255 cat >>confdefs.h <<\_ACEOF
50256 #define vsnprintf ber_pvt_vsnprintf
50257 _ACEOF
50258
50259         fi
50260 fi
50261
50262
50263 if test "$ol_enable_slapi" != no ; then
50264
50265 for ac_header in ltdl.h
50266 do
50267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50269   echo "$as_me:$LINENO: checking for $ac_header" >&5
50270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50272   echo $ECHO_N "(cached) $ECHO_C" >&6
50273 fi
50274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50276 else
50277   # Is the header compilable?
50278 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50280 cat >conftest.$ac_ext <<_ACEOF
50281 /* confdefs.h.  */
50282 _ACEOF
50283 cat confdefs.h >>conftest.$ac_ext
50284 cat >>conftest.$ac_ext <<_ACEOF
50285 /* end confdefs.h.  */
50286 $ac_includes_default
50287 #include <$ac_header>
50288 _ACEOF
50289 rm -f conftest.$ac_objext
50290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50291   (eval $ac_compile) 2>conftest.er1
50292   ac_status=$?
50293   grep -v '^ *+' conftest.er1 >conftest.err
50294   rm -f conftest.er1
50295   cat conftest.err >&5
50296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50297   (exit $ac_status); } &&
50298          { ac_try='test -z "$ac_c_werror_flag"
50299                          || test ! -s conftest.err'
50300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50301   (eval $ac_try) 2>&5
50302   ac_status=$?
50303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50304   (exit $ac_status); }; } &&
50305          { ac_try='test -s conftest.$ac_objext'
50306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50307   (eval $ac_try) 2>&5
50308   ac_status=$?
50309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50310   (exit $ac_status); }; }; then
50311   ac_header_compiler=yes
50312 else
50313   echo "$as_me: failed program was:" >&5
50314 sed 's/^/| /' conftest.$ac_ext >&5
50315
50316 ac_header_compiler=no
50317 fi
50318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50320 echo "${ECHO_T}$ac_header_compiler" >&6
50321
50322 # Is the header present?
50323 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50325 cat >conftest.$ac_ext <<_ACEOF
50326 /* confdefs.h.  */
50327 _ACEOF
50328 cat confdefs.h >>conftest.$ac_ext
50329 cat >>conftest.$ac_ext <<_ACEOF
50330 /* end confdefs.h.  */
50331 #include <$ac_header>
50332 _ACEOF
50333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50334   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50335   ac_status=$?
50336   grep -v '^ *+' conftest.er1 >conftest.err
50337   rm -f conftest.er1
50338   cat conftest.err >&5
50339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50340   (exit $ac_status); } >/dev/null; then
50341   if test -s conftest.err; then
50342     ac_cpp_err=$ac_c_preproc_warn_flag
50343     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
50344   else
50345     ac_cpp_err=
50346   fi
50347 else
50348   ac_cpp_err=yes
50349 fi
50350 if test -z "$ac_cpp_err"; then
50351   ac_header_preproc=yes
50352 else
50353   echo "$as_me: failed program was:" >&5
50354 sed 's/^/| /' conftest.$ac_ext >&5
50355
50356   ac_header_preproc=no
50357 fi
50358 rm -f conftest.err conftest.$ac_ext
50359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50360 echo "${ECHO_T}$ac_header_preproc" >&6
50361
50362 # So?  What about this header?
50363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50364   yes:no: )
50365     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50367     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50369     ac_header_preproc=yes
50370     ;;
50371   no:yes:* )
50372     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50374     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
50375 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
50376     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50378     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
50379 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
50380     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50382     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50384     (
50385       cat <<\_ASBOX
50386 ## ------------------------------------------ ##
50387 ## Report this to the AC_PACKAGE_NAME lists.  ##
50388 ## ------------------------------------------ ##
50389 _ASBOX
50390     ) |
50391       sed "s/^/$as_me: WARNING:     /" >&2
50392     ;;
50393 esac
50394 echo "$as_me:$LINENO: checking for $ac_header" >&5
50395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50397   echo $ECHO_N "(cached) $ECHO_C" >&6
50398 else
50399   eval "$as_ac_Header=\$ac_header_preproc"
50400 fi
50401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50403
50404 fi
50405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50406   cat >>confdefs.h <<_ACEOF
50407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50408 _ACEOF
50409
50410 fi
50411
50412 done
50413
50414
50415         if test $ac_cv_header_ltdl_h != yes ; then
50416                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
50417 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
50418    { (exit 1); exit 1; }; }
50419         fi
50420         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
50421 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
50422 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
50423   echo $ECHO_N "(cached) $ECHO_C" >&6
50424 else
50425   ac_check_lib_save_LIBS=$LIBS
50426 LIBS="-lltdl  $LIBS"
50427 cat >conftest.$ac_ext <<_ACEOF
50428 /* confdefs.h.  */
50429 _ACEOF
50430 cat confdefs.h >>conftest.$ac_ext
50431 cat >>conftest.$ac_ext <<_ACEOF
50432 /* end confdefs.h.  */
50433
50434 /* Override any gcc2 internal prototype to avoid an error.  */
50435 #ifdef __cplusplus
50436 extern "C"
50437 #endif
50438 /* We use char because int might match the return type of a gcc2
50439    builtin and then its argument prototype would still apply.  */
50440 char lt_dlinit ();
50441 int
50442 main ()
50443 {
50444 lt_dlinit ();
50445   ;
50446   return 0;
50447 }
50448 _ACEOF
50449 rm -f conftest.$ac_objext conftest$ac_exeext
50450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50451   (eval $ac_link) 2>conftest.er1
50452   ac_status=$?
50453   grep -v '^ *+' conftest.er1 >conftest.err
50454   rm -f conftest.er1
50455   cat conftest.err >&5
50456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50457   (exit $ac_status); } &&
50458          { ac_try='test -z "$ac_c_werror_flag"
50459                          || test ! -s conftest.err'
50460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50461   (eval $ac_try) 2>&5
50462   ac_status=$?
50463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50464   (exit $ac_status); }; } &&
50465          { ac_try='test -s conftest$ac_exeext'
50466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50467   (eval $ac_try) 2>&5
50468   ac_status=$?
50469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50470   (exit $ac_status); }; }; then
50471   ac_cv_lib_ltdl_lt_dlinit=yes
50472 else
50473   echo "$as_me: failed program was:" >&5
50474 sed 's/^/| /' conftest.$ac_ext >&5
50475
50476 ac_cv_lib_ltdl_lt_dlinit=no
50477 fi
50478 rm -f conftest.err conftest.$ac_objext \
50479       conftest$ac_exeext conftest.$ac_ext
50480 LIBS=$ac_check_lib_save_LIBS
50481 fi
50482 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
50483 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
50484 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
50485
50486                 SLAPI_LIBS=-lltdl
50487                 LIBSLAPI=libslapi.a
50488                 LIBSLAPITOOLS=../libslapi.a
50489
50490 cat >>confdefs.h <<\_ACEOF
50491 #define HAVE_LIBLTDL 1
50492 _ACEOF
50493
50494
50495 else
50496   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
50497 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
50498    { (exit 1); exit 1; }; }
50499 fi
50500
50501
50502
50503 cat >>confdefs.h <<\_ACEOF
50504 #define LDAP_SLAPI 1
50505 _ACEOF
50506
50507 fi
50508
50509 if test "$ol_enable_debug" != no ; then
50510
50511 cat >>confdefs.h <<\_ACEOF
50512 #define LDAP_DEBUG 1
50513 _ACEOF
50514
50515 fi
50516 if test "$ol_enable_syslog" = yes ; then
50517
50518 cat >>confdefs.h <<\_ACEOF
50519 #define LDAP_SYSLOG 1
50520 _ACEOF
50521
50522 fi
50523 if test "$ol_link_kbind" != no ; then
50524         cat >>confdefs.h <<\_ACEOF
50525 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
50526 _ACEOF
50527
50528 fi
50529 if test "$ol_enable_proctitle" != no ; then
50530
50531 cat >>confdefs.h <<\_ACEOF
50532 #define LDAP_PROCTITLE 1
50533 _ACEOF
50534
50535 fi
50536 if test "$ol_enable_referrals" != no ; then
50537         cat >>confdefs.h <<\_ACEOF
50538 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
50539 _ACEOF
50540
50541 fi
50542 if test "$ol_enable_local" != no; then
50543
50544 cat >>confdefs.h <<\_ACEOF
50545 #define LDAP_PF_LOCAL 1
50546 _ACEOF
50547
50548 fi
50549 if test "$ol_link_ipv6" != no; then
50550
50551 cat >>confdefs.h <<\_ACEOF
50552 #define LDAP_PF_INET6 1
50553 _ACEOF
50554
50555 fi
50556 if test "$ol_enable_cleartext" != no ; then
50557
50558 cat >>confdefs.h <<\_ACEOF
50559 #define SLAPD_CLEARTEXT 1
50560 _ACEOF
50561
50562 fi
50563 if test "$ol_enable_crypt" != no ; then
50564
50565 cat >>confdefs.h <<\_ACEOF
50566 #define SLAPD_CRYPT 1
50567 _ACEOF
50568
50569 fi
50570 if test "$ol_link_spasswd" != no ; then
50571
50572 cat >>confdefs.h <<\_ACEOF
50573 #define SLAPD_SPASSWD 1
50574 _ACEOF
50575
50576 fi
50577 if test "$ol_enable_multimaster" != no ; then
50578
50579 cat >>confdefs.h <<\_ACEOF
50580 #define SLAPD_MULTIMASTER 1
50581 _ACEOF
50582
50583 fi
50584 if test "$ol_enable_rlookups" != no ; then
50585
50586 cat >>confdefs.h <<\_ACEOF
50587 #define SLAPD_RLOOKUPS 1
50588 _ACEOF
50589
50590 fi
50591 if test "$ol_enable_aci" != no ; then
50592
50593 cat >>confdefs.h <<\_ACEOF
50594 #define SLAPD_ACI_ENABLED 1
50595 _ACEOF
50596
50597 fi
50598
50599 if test "$ol_link_modules" != no ; then
50600
50601 cat >>confdefs.h <<\_ACEOF
50602 #define SLAPD_MODULES 1
50603 _ACEOF
50604
50605         BUILD_SLAPD=yes
50606         SLAPD_MODULES_LDFLAGS="-dlopen self"
50607 fi
50608
50609
50610 cat >>confdefs.h <<\_ACEOF
50611 #define SLAPD_MOD_STATIC 1
50612 _ACEOF
50613
50614
50615 cat >>confdefs.h <<\_ACEOF
50616 #define SLAPD_MOD_DYNAMIC 2
50617 _ACEOF
50618
50619
50620 if test "$ol_enable_bdb" != no ; then
50621         BUILD_SLAPD=yes
50622         BUILD_BDB=$ol_enable_bdb
50623         if test "$ol_enable_bdb" = mod ; then
50624                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
50625                 MFLAG=SLAPD_MOD_DYNAMIC
50626         else
50627                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
50628                 MFLAG=SLAPD_MOD_STATIC
50629         fi
50630
50631 cat >>confdefs.h <<_ACEOF
50632 #define SLAPD_BDB $MFLAG
50633 _ACEOF
50634
50635 fi
50636
50637 if test "$ol_enable_dnssrv" != no ; then
50638         BUILD_SLAPD=yes
50639         BUILD_DNSSRV=$ol_enable_dnssrv
50640         if test "$ol_enable_dnssrv" = mod ; then
50641                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
50642                 MFLAG=SLAPD_MOD_DYNAMIC
50643         else
50644                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
50645                 MFLAG=SLAPD_MOD_STATIC
50646         fi
50647
50648 cat >>confdefs.h <<_ACEOF
50649 #define SLAPD_DNSSRV $MFLAG
50650 _ACEOF
50651
50652 fi
50653
50654 if test "$ol_enable_hdb" != no ; then
50655         BUILD_SLAPD=yes
50656         BUILD_HDB=$ol_enable_hdb
50657         if test "$ol_enable_hdb" = mod ; then
50658                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
50659                 MFLAG=SLAPD_MOD_DYNAMIC
50660         else
50661                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
50662                 MFLAG=SLAPD_MOD_STATIC
50663         fi
50664
50665 cat >>confdefs.h <<_ACEOF
50666 #define SLAPD_HDB $MFLAG
50667 _ACEOF
50668
50669 fi
50670
50671 if test "$ol_enable_ldap" != no ; then
50672         BUILD_SLAPD=yes
50673         BUILD_LDAP=$ol_enable_ldap
50674         if test "$ol_enable_ldap" = mod ; then
50675                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
50676                 MFLAG=SLAPD_MOD_DYNAMIC
50677         else
50678                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
50679                 MFLAG=SLAPD_MOD_STATIC
50680         fi
50681
50682 cat >>confdefs.h <<_ACEOF
50683 #define SLAPD_LDAP $MFLAG
50684 _ACEOF
50685
50686 fi
50687
50688 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
50689         BUILD_SLAPD=yes
50690         BUILD_LDBM=$ol_enable_ldbm
50691         if test "$ol_enable_ldbm" = mod ; then
50692                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
50693                 MFLAG=SLAPD_MOD_DYNAMIC
50694         else
50695                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
50696                 MFLAG=SLAPD_MOD_STATIC
50697         fi
50698
50699 cat >>confdefs.h <<_ACEOF
50700 #define SLAPD_LDBM $MFLAG
50701 _ACEOF
50702
50703 fi
50704
50705 if test "$ol_enable_meta" != no ; then
50706         BUILD_SLAPD=yes
50707         BUILD_META=$ol_enable_meta
50708         BUILD_REWRITE=yes
50709         if test "$ol_enable_meta" = mod ; then
50710                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
50711                 MFLAG=SLAPD_MOD_DYNAMIC
50712         else
50713                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
50714                 MFLAG=SLAPD_MOD_STATIC
50715         fi
50716
50717 cat >>confdefs.h <<_ACEOF
50718 #define SLAPD_META $MFLAG
50719 _ACEOF
50720
50721 fi
50722
50723 if test "$ol_enable_monitor" != no ; then
50724         BUILD_SLAPD=yes
50725         BUILD_MONITOR=$ol_enable_monitor
50726         if test "$ol_enable_monitor" = mod ; then
50727                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
50728                 MFLAG=SLAPD_MOD_DYNAMIC
50729         else
50730                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
50731                 MFLAG=SLAPD_MOD_STATIC
50732         fi
50733
50734 cat >>confdefs.h <<_ACEOF
50735 #define SLAPD_MONITOR $MFLAG
50736 _ACEOF
50737
50738 fi
50739
50740 if test "$ol_enable_null" != no ; then
50741         BUILD_SLAPD=yes
50742         BUILD_NULL=$ol_enable_null
50743         if test "$ol_enable_null" = mod ; then
50744                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
50745                 MFLAG=SLAPD_MOD_DYNAMIC
50746         else
50747                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
50748                 MFLAG=SLAPD_MOD_STATIC
50749         fi
50750
50751 cat >>confdefs.h <<_ACEOF
50752 #define SLAPD_NULL $MFLAG
50753 _ACEOF
50754
50755 fi
50756
50757 if test "$ol_enable_passwd" != no ; then
50758         BUILD_SLAPD=yes
50759         BUILD_PASSWD=$ol_enable_passwd
50760         if test "$ol_enable_passwd" = mod ; then
50761                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
50762                 MFLAG=SLAPD_MOD_DYNAMIC
50763         else
50764                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
50765                 MFLAG=SLAPD_MOD_STATIC
50766         fi
50767
50768 cat >>confdefs.h <<_ACEOF
50769 #define SLAPD_PASSWD $MFLAG
50770 _ACEOF
50771
50772 fi
50773
50774 if test "$ol_link_perl" != no ; then
50775         BUILD_SLAPD=yes
50776         BUILD_PERL=$ol_enable_perl
50777         if test "$ol_enable_perl" = mod ; then
50778                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
50779                 MFLAG=SLAPD_MOD_DYNAMIC
50780         else
50781                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
50782                 MFLAG=SLAPD_MOD_STATIC
50783         fi
50784
50785 cat >>confdefs.h <<_ACEOF
50786 #define SLAPD_PERL $MFLAG
50787 _ACEOF
50788
50789 fi
50790
50791 if test "$ol_enable_relay" != no ; then
50792         BUILD_SLAPD=yes
50793         BUILD_RELAY=$ol_enable_relay
50794         if test "$ol_enable_relay" = mod ; then
50795                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
50796                 MFLAG=SLAPD_MOD_DYNAMIC
50797         else
50798                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
50799                 MFLAG=SLAPD_MOD_STATIC
50800         fi
50801
50802 cat >>confdefs.h <<_ACEOF
50803 #define SLAPD_RELAY $MFLAG
50804 _ACEOF
50805
50806 fi
50807
50808 if test "$ol_enable_shell" != no ; then
50809         if test "$ol_link_thread" != no ; then
50810                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
50811 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
50812         fi
50813         BUILD_SLAPD=yes
50814         BUILD_SHELL=$ol_enable_shell
50815         if test "$ol_enable_shell" = mod ; then
50816                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
50817                 MFLAG=SLAPD_MOD_DYNAMIC
50818         else
50819                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
50820                 MFLAG=SLAPD_MOD_STATIC
50821         fi
50822
50823 cat >>confdefs.h <<_ACEOF
50824 #define SLAPD_SHELL $MFLAG
50825 _ACEOF
50826
50827 fi
50828
50829 if test "$ol_link_sql" != no ; then
50830         BUILD_SLAPD=yes
50831         BUILD_SQL=$ol_enable_sql
50832         if test "$ol_enable_sql" = mod; then
50833                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
50834                 MFLAG=SLAPD_MOD_DYNAMIC
50835         else
50836                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
50837                 MFLAG=SLAPD_MOD_STATIC
50838         fi
50839
50840 cat >>confdefs.h <<_ACEOF
50841 #define SLAPD_SQL $MFLAG
50842 _ACEOF
50843
50844 fi
50845
50846 if test "$ol_enable_accesslog" != no ; then
50847         BUILD_ACCESSLOG=$ol_enable_accesslog
50848         if test "$ol_enable_accesslog" = mod ; then
50849                 MFLAG=SLAPD_MOD_DYNAMIC
50850                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
50851         else
50852                 MFLAG=SLAPD_MOD_STATIC
50853                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
50854         fi
50855
50856 cat >>confdefs.h <<_ACEOF
50857 #define SLAPD_OVER_ACCESSLOG $MFLAG
50858 _ACEOF
50859
50860 fi
50861
50862 if test "$ol_enable_denyop" != no ; then
50863         BUILD_DENYOP=$ol_enable_denyop
50864         if test "$ol_enable_denyop" = mod ; then
50865                 MFLAG=SLAPD_MOD_DYNAMIC
50866                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
50867         else
50868                 MFLAG=SLAPD_MOD_STATIC
50869                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
50870         fi
50871
50872 cat >>confdefs.h <<_ACEOF
50873 #define SLAPD_OVER_DENYOP $MFLAG
50874 _ACEOF
50875
50876 fi
50877
50878 if test "$ol_enable_dyngroup" != no ; then
50879         BUILD_DYNGROUP=$ol_enable_dyngroup
50880         if test "$ol_enable_dyngroup" = mod ; then
50881                 MFLAG=SLAPD_MOD_DYNAMIC
50882                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
50883         else
50884                 MFLAG=SLAPD_MOD_STATIC
50885                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
50886         fi
50887
50888 cat >>confdefs.h <<_ACEOF
50889 #define SLAPD_OVER_DYNGROUP $MFLAG
50890 _ACEOF
50891
50892 fi
50893
50894 if test "$ol_enable_dynlist" != no ; then
50895         BUILD_DYNLIST=$ol_enable_dynlist
50896         if test "$ol_enable_dynlist" = mod ; then
50897                 MFLAG=SLAPD_MOD_DYNAMIC
50898                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
50899         else
50900                 MFLAG=SLAPD_MOD_STATIC
50901                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
50902         fi
50903
50904 cat >>confdefs.h <<_ACEOF
50905 #define SLAPD_OVER_DYNLIST $MFLAG
50906 _ACEOF
50907
50908 fi
50909
50910 if test "$ol_enable_glue" != no ; then
50911         BUILD_GLUE=$ol_enable_glue
50912         if test "$ol_enable_glue" = mod ; then
50913                 MFLAG=SLAPD_MOD_DYNAMIC
50914                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
50915         else
50916                 MFLAG=SLAPD_MOD_STATIC
50917                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
50918         fi
50919
50920 cat >>confdefs.h <<_ACEOF
50921 #define SLAPD_OVER_GLUE $MFLAG
50922 _ACEOF
50923
50924 fi
50925
50926 if test "$ol_enable_lastmod" != no ; then
50927         BUILD_LASTMOD=$ol_enable_lastmod
50928         if test "$ol_enable_lastmod" = mod ; then
50929                 MFLAG=SLAPD_MOD_DYNAMIC
50930                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
50931         else
50932                 MFLAG=SLAPD_MOD_STATIC
50933                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
50934         fi
50935
50936 cat >>confdefs.h <<_ACEOF
50937 #define SLAPD_OVER_LASTMOD $MFLAG
50938 _ACEOF
50939
50940 fi
50941
50942 if test "$ol_enable_ppolicy" != no ; then
50943         BUILD_PPOLICY=$ol_enable_ppolicy
50944         if test "$ol_enable_ppolicy" = mod ; then
50945                 MFLAG=SLAPD_MOD_DYNAMIC
50946                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
50947         else
50948                 MFLAG=SLAPD_MOD_STATIC
50949                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
50950         fi
50951
50952 cat >>confdefs.h <<_ACEOF
50953 #define SLAPD_OVER_PPOLICY $MFLAG
50954 _ACEOF
50955
50956 fi
50957
50958 if test "$ol_enable_proxycache" != no ; then
50959         BUILD_PROXYCACHE=$ol_enable_proxycache
50960         if test "$ol_enable_proxycache" = mod ; then
50961                 MFLAG=SLAPD_MOD_DYNAMIC
50962                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
50963         else
50964                 MFLAG=SLAPD_MOD_STATIC
50965                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
50966         fi
50967
50968 cat >>confdefs.h <<_ACEOF
50969 #define SLAPD_OVER_PROXYCACHE $MFLAG
50970 _ACEOF
50971
50972 fi
50973
50974 if test "$ol_enable_refint" != no ; then
50975         BUILD_REFINT=$ol_enable_refint
50976         if test "$ol_enable_refint" = mod ; then
50977                 MFLAG=SLAPD_MOD_DYNAMIC
50978                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
50979         else
50980                 MFLAG=SLAPD_MOD_STATIC
50981                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
50982         fi
50983
50984 cat >>confdefs.h <<_ACEOF
50985 #define SLAPD_OVER_REFINT $MFLAG
50986 _ACEOF
50987
50988 fi
50989
50990 if test "$ol_enable_retcode" != no ; then
50991         BUILD_RETCODE=$ol_enable_retcode
50992         if test "$ol_enable_retcode" = mod ; then
50993                 MFLAG=SLAPD_MOD_DYNAMIC
50994                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
50995         else
50996                 MFLAG=SLAPD_MOD_STATIC
50997                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
50998         fi
50999
51000 cat >>confdefs.h <<_ACEOF
51001 #define SLAPD_OVER_RETCODE $MFLAG
51002 _ACEOF
51003
51004 fi
51005
51006 if test "$ol_enable_rwm" != no ; then
51007         BUILD_REWRITE=yes
51008         BUILD_RWM=$ol_enable_rwm
51009         if test "$ol_enable_rwm" = mod ; then
51010                 MFLAG=SLAPD_MOD_DYNAMIC
51011                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
51012         else
51013                 MFLAG=SLAPD_MOD_STATIC
51014                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
51015         fi
51016
51017 cat >>confdefs.h <<_ACEOF
51018 #define SLAPD_OVER_RWM $MFLAG
51019 _ACEOF
51020
51021 fi
51022
51023 if test "$ol_enable_syncprov" != no ; then
51024         BUILD_SYNCPROV=$ol_enable_syncprov
51025         if test "$ol_enable_syncprov" = mod ; then
51026                 MFLAG=SLAPD_MOD_DYNAMIC
51027                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
51028         else
51029                 MFLAG=SLAPD_MOD_STATIC
51030                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
51031         fi
51032
51033 cat >>confdefs.h <<_ACEOF
51034 #define SLAPD_OVER_SYNCPROV $MFLAG
51035 _ACEOF
51036
51037 fi
51038
51039 if test "$ol_enable_translucent" != no ; then
51040         BUILD_TRANSLUCENT=$ol_enable_translucent
51041         if test "$ol_enable_translucent" = mod ; then
51042                 MFLAG=SLAPD_MOD_DYNAMIC
51043                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
51044         else
51045                 MFLAG=SLAPD_MOD_STATIC
51046                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
51047         fi
51048
51049 cat >>confdefs.h <<_ACEOF
51050 #define SLAPD_OVER_TRANSLUCENT $MFLAG
51051 _ACEOF
51052
51053 fi
51054
51055 if test "$ol_enable_unique" != no ; then
51056         BUILD_UNIQUE=$ol_enable_unique
51057         if test "$ol_enable_unique" = mod ; then
51058                 MFLAG=SLAPD_MOD_DYNAMIC
51059                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
51060         else
51061                 MFLAG=SLAPD_MOD_STATIC
51062                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
51063         fi
51064
51065 cat >>confdefs.h <<_ACEOF
51066 #define SLAPD_OVER_UNIQUE $MFLAG
51067 _ACEOF
51068
51069 fi
51070
51071 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
51072         $BUILD_SLAPD = yes ; then
51073         BUILD_SLURPD=yes
51074 fi
51075
51076 if test "$ol_enable_rewrite" != no ; then
51077
51078 cat >>confdefs.h <<\_ACEOF
51079 #define ENABLE_REWRITE 1
51080 _ACEOF
51081
51082         BUILD_REWRITE=yes
51083 fi
51084
51085 if test "$ol_enable_slapi" != no ; then
51086
51087 cat >>confdefs.h <<\_ACEOF
51088 #define ENABLE_SLAPI 1
51089 _ACEOF
51090
51091         BUILD_SLAPI=yes
51092         SLAPD_SLAPI_DEPEND=libslapi.a
51093 fi
51094
51095
51096
51097 if test "$ac_cv_mingw32" = yes ; then
51098         PLAT=NT
51099         SLAPD_MODULES_LDFLAGS=
51100 else
51101         PLAT=UNIX
51102 fi
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
51181
51182 # Check whether --with-xxinstall or --without-xxinstall was given.
51183 if test "${with_xxinstall+set}" = set; then
51184   withval="$with_xxinstall"
51185
51186 fi;
51187
51188
51189                                                                                                                                                                                                                                                                                                                                                                                                                 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"
51190           ac_config_commands="$ac_config_commands default"
51191
51192
51193 test "x$prefix" = xNONE && prefix=$ac_default_prefix
51194 # Let make expand exec_prefix.
51195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51196
51197 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51198 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51199 # trailing colons and then remove the whole line if VPATH becomes empty
51200 # (actually we leave an empty line to preserve line numbers).
51201 if test "x$srcdir" = x.; then
51202   ac_vpsub='/^[  ]*VPATH[        ]*=/{
51203 s/:*\$(srcdir):*/:/;
51204 s/:*\${srcdir}:*/:/;
51205 s/:*@srcdir@:*/:/;
51206 s/^\([^=]*=[     ]*\):*/\1/;
51207 s/:*$//;
51208 s/^[^=]*=[       ]*$//;
51209 }'
51210 fi
51211
51212 DEFS=-DHAVE_CONFIG_H
51213
51214 ac_libobjs=
51215 ac_ltlibobjs=
51216 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51217   # 1. Remove the extension, and $U if already installed.
51218   ac_i=`echo "$ac_i" |
51219          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
51220   # 2. Add them.
51221   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
51222   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
51223 done
51224 LIBOBJS=$ac_libobjs
51225
51226 LTLIBOBJS=$ac_ltlibobjs
51227
51228
51229 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
51230   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
51231 Usually this means the macro was only invoked conditionally." >&5
51232 echo "$as_me: error: conditional \"AMDEP\" was never defined.
51233 Usually this means the macro was only invoked conditionally." >&2;}
51234    { (exit 1); exit 1; }; }
51235 fi
51236 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51237   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51238 Usually this means the macro was only invoked conditionally." >&5
51239 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51240 Usually this means the macro was only invoked conditionally." >&2;}
51241    { (exit 1); exit 1; }; }
51242 fi
51243 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
51244   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
51245 Usually this means the macro was only invoked conditionally." >&5
51246 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
51247 Usually this means the macro was only invoked conditionally." >&2;}
51248    { (exit 1); exit 1; }; }
51249 fi
51250 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51251   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51252 Usually this means the macro was only invoked conditionally." >&5
51253 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51254 Usually this means the macro was only invoked conditionally." >&2;}
51255    { (exit 1); exit 1; }; }
51256 fi
51257
51258 : ${CONFIG_STATUS=./config.status}
51259 ac_clean_files_save=$ac_clean_files
51260 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51261 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51262 echo "$as_me: creating $CONFIG_STATUS" >&6;}
51263 cat >$CONFIG_STATUS <<_ACEOF
51264 #! $SHELL
51265 # Generated by $as_me.
51266 # Run this file to recreate the current configuration.
51267 # Compiler output produced by configure, useful for debugging
51268 # configure, is in config.log if it exists.
51269
51270 debug=false
51271 ac_cs_recheck=false
51272 ac_cs_silent=false
51273 SHELL=\${CONFIG_SHELL-$SHELL}
51274 _ACEOF
51275
51276 cat >>$CONFIG_STATUS <<\_ACEOF
51277 ## --------------------- ##
51278 ## M4sh Initialization.  ##
51279 ## --------------------- ##
51280
51281 # Be Bourne compatible
51282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51283   emulate sh
51284   NULLCMD=:
51285   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51286   # is contrary to our usage.  Disable this feature.
51287   alias -g '${1+"$@"}'='"$@"'
51288 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
51289   set -o posix
51290 fi
51291 DUALCASE=1; export DUALCASE # for MKS sh
51292
51293 # Support unset when possible.
51294 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51295   as_unset=unset
51296 else
51297   as_unset=false
51298 fi
51299
51300
51301 # Work around bugs in pre-3.0 UWIN ksh.
51302 $as_unset ENV MAIL MAILPATH
51303 PS1='$ '
51304 PS2='> '
51305 PS4='+ '
51306
51307 # NLS nuisances.
51308 for as_var in \
51309   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51310   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51311   LC_TELEPHONE LC_TIME
51312 do
51313   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51314     eval $as_var=C; export $as_var
51315   else
51316     $as_unset $as_var
51317   fi
51318 done
51319
51320 # Required to use basename.
51321 if expr a : '\(a\)' >/dev/null 2>&1; then
51322   as_expr=expr
51323 else
51324   as_expr=false
51325 fi
51326
51327 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
51328   as_basename=basename
51329 else
51330   as_basename=false
51331 fi
51332
51333
51334 # Name of the executable.
51335 as_me=`$as_basename "$0" ||
51336 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51337          X"$0" : 'X\(//\)$' \| \
51338          X"$0" : 'X\(/\)$' \| \
51339          .     : '\(.\)' 2>/dev/null ||
51340 echo X/"$0" |
51341     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
51342           /^X\/\(\/\/\)$/{ s//\1/; q; }
51343           /^X\/\(\/\).*/{ s//\1/; q; }
51344           s/.*/./; q'`
51345
51346
51347 # PATH needs CR, and LINENO needs CR and PATH.
51348 # Avoid depending upon Character Ranges.
51349 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51350 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51351 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51352 as_cr_digits='0123456789'
51353 as_cr_alnum=$as_cr_Letters$as_cr_digits
51354
51355 # The user is always right.
51356 if test "${PATH_SEPARATOR+set}" != set; then
51357   echo "#! /bin/sh" >conf$$.sh
51358   echo  "exit 0"   >>conf$$.sh
51359   chmod +x conf$$.sh
51360   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51361     PATH_SEPARATOR=';'
51362   else
51363     PATH_SEPARATOR=:
51364   fi
51365   rm -f conf$$.sh
51366 fi
51367
51368
51369   as_lineno_1=$LINENO
51370   as_lineno_2=$LINENO
51371   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51372   test "x$as_lineno_1" != "x$as_lineno_2" &&
51373   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
51374   # Find who we are.  Look in the path if we contain no path at all
51375   # relative or not.
51376   case $0 in
51377     *[\\/]* ) as_myself=$0 ;;
51378     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51379 for as_dir in $PATH
51380 do
51381   IFS=$as_save_IFS
51382   test -z "$as_dir" && as_dir=.
51383   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51384 done
51385
51386        ;;
51387   esac
51388   # We did not find ourselves, most probably we were run as `sh COMMAND'
51389   # in which case we are not to be found in the path.
51390   if test "x$as_myself" = x; then
51391     as_myself=$0
51392   fi
51393   if test ! -f "$as_myself"; then
51394     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
51395 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
51396    { (exit 1); exit 1; }; }
51397   fi
51398   case $CONFIG_SHELL in
51399   '')
51400     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51401 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
51402 do
51403   IFS=$as_save_IFS
51404   test -z "$as_dir" && as_dir=.
51405   for as_base in sh bash ksh sh5; do
51406          case $as_dir in
51407          /*)
51408            if ("$as_dir/$as_base" -c '
51409   as_lineno_1=$LINENO
51410   as_lineno_2=$LINENO
51411   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51412   test "x$as_lineno_1" != "x$as_lineno_2" &&
51413   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
51414              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
51415              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
51416              CONFIG_SHELL=$as_dir/$as_base
51417              export CONFIG_SHELL
51418              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
51419            fi;;
51420          esac
51421        done
51422 done
51423 ;;
51424   esac
51425
51426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51427   # uniformly replaced by the line number.  The first 'sed' inserts a
51428   # line-number line before each line; the second 'sed' does the real
51429   # work.  The second script uses 'N' to pair each line-number line
51430   # with the numbered line, and appends trailing '-' during
51431   # substitution so that $LINENO is not a special case at line end.
51432   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51433   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
51434   sed '=' <$as_myself |
51435     sed '
51436       N
51437       s,$,-,
51438       : loop
51439       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
51440       t loop
51441       s,-$,,
51442       s,^['$as_cr_digits']*\n,,
51443     ' >$as_me.lineno &&
51444   chmod +x $as_me.lineno ||
51445     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
51446 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
51447    { (exit 1); exit 1; }; }
51448
51449   # Don't try to exec as it changes $[0], causing all sort of problems
51450   # (the dirname of $[0] is not the place where we might find the
51451   # original and so on.  Autoconf is especially sensible to this).
51452   . ./$as_me.lineno
51453   # Exit status is that of the last command.
51454   exit
51455 }
51456
51457
51458 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
51459   *c*,-n*) ECHO_N= ECHO_C='
51460 ' ECHO_T='      ' ;;
51461   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
51462   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
51463 esac
51464
51465 if expr a : '\(a\)' >/dev/null 2>&1; then
51466   as_expr=expr
51467 else
51468   as_expr=false
51469 fi
51470
51471 rm -f conf$$ conf$$.exe conf$$.file
51472 echo >conf$$.file
51473 if ln -s conf$$.file conf$$ 2>/dev/null; then
51474   # We could just check for DJGPP; but this test a) works b) is more generic
51475   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
51476   if test -f conf$$.exe; then
51477     # Don't use ln at all; we don't have any links
51478     as_ln_s='cp -p'
51479   else
51480     as_ln_s='ln -s'
51481   fi
51482 elif ln conf$$.file conf$$ 2>/dev/null; then
51483   as_ln_s=ln
51484 else
51485   as_ln_s='cp -p'
51486 fi
51487 rm -f conf$$ conf$$.exe conf$$.file
51488
51489 if mkdir -p . 2>/dev/null; then
51490   as_mkdir_p=:
51491 else
51492   test -d ./-p && rmdir ./-p
51493   as_mkdir_p=false
51494 fi
51495
51496 as_executable_p="test -f"
51497
51498 # Sed expression to map a string onto a valid CPP name.
51499 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51500
51501 # Sed expression to map a string onto a valid variable name.
51502 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51503
51504
51505 # IFS
51506 # We need space, tab and new line, in precisely that order.
51507 as_nl='
51508 '
51509 IFS="   $as_nl"
51510
51511 # CDPATH.
51512 $as_unset CDPATH
51513
51514 exec 6>&1
51515
51516 # Open the log real soon, to keep \$[0] and so on meaningful, and to
51517 # report actual input values of CONFIG_FILES etc. instead of their
51518 # values after options handling.  Logging --version etc. is OK.
51519 exec 5>>config.log
51520 {
51521   echo
51522   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51523 ## Running $as_me. ##
51524 _ASBOX
51525 } >&5
51526 cat >&5 <<_CSEOF
51527
51528 This file was extended by $as_me, which was
51529 generated by GNU Autoconf 2.59.  Invocation command line was
51530
51531   CONFIG_FILES    = $CONFIG_FILES
51532   CONFIG_HEADERS  = $CONFIG_HEADERS
51533   CONFIG_LINKS    = $CONFIG_LINKS
51534   CONFIG_COMMANDS = $CONFIG_COMMANDS
51535   $ $0 $@
51536
51537 _CSEOF
51538 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
51539 echo >&5
51540 _ACEOF
51541
51542 # Files that config.status was made for.
51543 if test -n "$ac_config_files"; then
51544   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
51545 fi
51546
51547 if test -n "$ac_config_headers"; then
51548   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
51549 fi
51550
51551 if test -n "$ac_config_links"; then
51552   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
51553 fi
51554
51555 if test -n "$ac_config_commands"; then
51556   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
51557 fi
51558
51559 cat >>$CONFIG_STATUS <<\_ACEOF
51560
51561 ac_cs_usage="\
51562 \`$as_me' instantiates files from templates according to the
51563 current configuration.
51564
51565 Usage: $0 [OPTIONS] [FILE]...
51566
51567   -h, --help       print this help, then exit
51568   -V, --version    print version number, then exit
51569   -q, --quiet      do not print progress messages
51570   -d, --debug      don't remove temporary files
51571       --recheck    update $as_me by reconfiguring in the same conditions
51572   --file=FILE[:TEMPLATE]
51573                    instantiate the configuration file FILE
51574   --header=FILE[:TEMPLATE]
51575                    instantiate the configuration header FILE
51576
51577 Configuration files:
51578 $config_files
51579
51580 Configuration headers:
51581 $config_headers
51582
51583 Configuration commands:
51584 $config_commands
51585
51586 Report bugs to <bug-autoconf@gnu.org>."
51587 _ACEOF
51588
51589 cat >>$CONFIG_STATUS <<_ACEOF
51590 ac_cs_version="\\
51591 config.status
51592 configured by $0, generated by GNU Autoconf 2.59,
51593   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
51594
51595 Copyright (C) 2003 Free Software Foundation, Inc.
51596 This config.status script is free software; the Free Software Foundation
51597 gives unlimited permission to copy, distribute and modify it."
51598 srcdir=$srcdir
51599 INSTALL="$INSTALL"
51600 _ACEOF
51601
51602 cat >>$CONFIG_STATUS <<\_ACEOF
51603 # If no file are specified by the user, then we need to provide default
51604 # value.  By we need to know if files were specified by the user.
51605 ac_need_defaults=:
51606 while test $# != 0
51607 do
51608   case $1 in
51609   --*=*)
51610     ac_option=`expr "x$1" : 'x\([^=]*\)='`
51611     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
51612     ac_shift=:
51613     ;;
51614   -*)
51615     ac_option=$1
51616     ac_optarg=$2
51617     ac_shift=shift
51618     ;;
51619   *) # This is not an option, so the user has probably given explicit
51620      # arguments.
51621      ac_option=$1
51622      ac_need_defaults=false;;
51623   esac
51624
51625   case $ac_option in
51626   # Handling of the options.
51627 _ACEOF
51628 cat >>$CONFIG_STATUS <<\_ACEOF
51629   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51630     ac_cs_recheck=: ;;
51631   --version | --vers* | -V )
51632     echo "$ac_cs_version"; exit 0 ;;
51633   --he | --h)
51634     # Conflict between --help and --header
51635     { { echo "$as_me:$LINENO: error: ambiguous option: $1
51636 Try \`$0 --help' for more information." >&5
51637 echo "$as_me: error: ambiguous option: $1
51638 Try \`$0 --help' for more information." >&2;}
51639    { (exit 1); exit 1; }; };;
51640   --help | --hel | -h )
51641     echo "$ac_cs_usage"; exit 0 ;;
51642   --debug | --d* | -d )
51643     debug=: ;;
51644   --file | --fil | --fi | --f )
51645     $ac_shift
51646     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51647     ac_need_defaults=false;;
51648   --header | --heade | --head | --hea )
51649     $ac_shift
51650     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51651     ac_need_defaults=false;;
51652   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51653   | -silent | --silent | --silen | --sile | --sil | --si | --s)
51654     ac_cs_silent=: ;;
51655
51656   # This is an error.
51657   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
51658 Try \`$0 --help' for more information." >&5
51659 echo "$as_me: error: unrecognized option: $1
51660 Try \`$0 --help' for more information." >&2;}
51661    { (exit 1); exit 1; }; } ;;
51662
51663   *) ac_config_targets="$ac_config_targets $1" ;;
51664
51665   esac
51666   shift
51667 done
51668
51669 ac_configure_extra_args=
51670
51671 if $ac_cs_silent; then
51672   exec 6>/dev/null
51673   ac_configure_extra_args="$ac_configure_extra_args --silent"
51674 fi
51675
51676 _ACEOF
51677 cat >>$CONFIG_STATUS <<_ACEOF
51678 if \$ac_cs_recheck; then
51679   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51680   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51681 fi
51682
51683 _ACEOF
51684
51685 cat >>$CONFIG_STATUS <<_ACEOF
51686 #
51687 # INIT-COMMANDS section.
51688 #
51689
51690 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
51691 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
51692
51693 _ACEOF
51694
51695
51696
51697 cat >>$CONFIG_STATUS <<\_ACEOF
51698 for ac_config_target in $ac_config_targets
51699 do
51700   case "$ac_config_target" in
51701   # Handling of arguments.
51702   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
51703   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
51704   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
51705   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
51706   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
51707   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
51708   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
51709   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
51710   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
51711   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
51712   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
51713   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51714   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51715   "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" ;;
51716   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
51717   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
51718   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51719   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
51720   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
51721   "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" ;;
51722   "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" ;;
51723   "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" ;;
51724   "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" ;;
51725   "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" ;;
51726   "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" ;;
51727   "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" ;;
51728   "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" ;;
51729   "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" ;;
51730   "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" ;;
51731   "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" ;;
51732   "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" ;;
51733   "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" ;;
51734   "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" ;;
51735   "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" ;;
51736   "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" ;;
51737   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
51738   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
51739   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
51740   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
51741   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
51742   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
51743   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
51744   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h" ;;
51745   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h" ;;
51746   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h" ;;
51747   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51748 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51749    { (exit 1); exit 1; }; };;
51750   esac
51751 done
51752
51753 # If the user did not use the arguments to specify the items to instantiate,
51754 # then the envvar interface is used.  Set only those that are not.
51755 # We use the long form for the default assignment because of an extremely
51756 # bizarre bug on SunOS 4.1.3.
51757 if $ac_need_defaults; then
51758   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51759   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51760   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51761 fi
51762
51763 # Have a temporary directory for convenience.  Make it in the build tree
51764 # simply because there is no reason to put it here, and in addition,
51765 # creating and moving files from /tmp can sometimes cause problems.
51766 # Create a temporary directory, and hook for its removal unless debugging.
51767 $debug ||
51768 {
51769   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
51770   trap '{ (exit 1); exit 1; }' 1 2 13 15
51771 }
51772
51773 # Create a (secure) tmp directory for tmp files.
51774
51775 {
51776   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
51777   test -n "$tmp" && test -d "$tmp"
51778 }  ||
51779 {
51780   tmp=./confstat$$-$RANDOM
51781   (umask 077 && mkdir $tmp)
51782 } ||
51783 {
51784    echo "$me: cannot create a temporary directory in ." >&2
51785    { (exit 1); exit 1; }
51786 }
51787
51788 _ACEOF
51789
51790 cat >>$CONFIG_STATUS <<_ACEOF
51791
51792 #
51793 # CONFIG_FILES section.
51794 #
51795
51796 # No need to generate the scripts if there are no CONFIG_FILES.
51797 # This happens for instance when ./config.status config.h
51798 if test -n "\$CONFIG_FILES"; then
51799   # Protect against being on the right side of a sed subst in config.status.
51800   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51801    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51802 s,@SHELL@,$SHELL,;t t
51803 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51804 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51805 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51806 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51807 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51808 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51809 s,@exec_prefix@,$exec_prefix,;t t
51810 s,@prefix@,$prefix,;t t
51811 s,@program_transform_name@,$program_transform_name,;t t
51812 s,@bindir@,$bindir,;t t
51813 s,@sbindir@,$sbindir,;t t
51814 s,@libexecdir@,$libexecdir,;t t
51815 s,@datadir@,$datadir,;t t
51816 s,@sysconfdir@,$sysconfdir,;t t
51817 s,@sharedstatedir@,$sharedstatedir,;t t
51818 s,@localstatedir@,$localstatedir,;t t
51819 s,@libdir@,$libdir,;t t
51820 s,@includedir@,$includedir,;t t
51821 s,@oldincludedir@,$oldincludedir,;t t
51822 s,@infodir@,$infodir,;t t
51823 s,@mandir@,$mandir,;t t
51824 s,@build_alias@,$build_alias,;t t
51825 s,@host_alias@,$host_alias,;t t
51826 s,@target_alias@,$target_alias,;t t
51827 s,@DEFS@,$DEFS,;t t
51828 s,@ECHO_C@,$ECHO_C,;t t
51829 s,@ECHO_N@,$ECHO_N,;t t
51830 s,@ECHO_T@,$ECHO_T,;t t
51831 s,@LIBS@,$LIBS,;t t
51832 s,@build@,$build,;t t
51833 s,@build_cpu@,$build_cpu,;t t
51834 s,@build_vendor@,$build_vendor,;t t
51835 s,@build_os@,$build_os,;t t
51836 s,@host@,$host,;t t
51837 s,@host_cpu@,$host_cpu,;t t
51838 s,@host_vendor@,$host_vendor,;t t
51839 s,@host_os@,$host_os,;t t
51840 s,@target@,$target,;t t
51841 s,@target_cpu@,$target_cpu,;t t
51842 s,@target_vendor@,$target_vendor,;t t
51843 s,@target_os@,$target_os,;t t
51844 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51845 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51846 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51847 s,@CYGPATH_W@,$CYGPATH_W,;t t
51848 s,@PACKAGE@,$PACKAGE,;t t
51849 s,@VERSION@,$VERSION,;t t
51850 s,@ACLOCAL@,$ACLOCAL,;t t
51851 s,@AUTOCONF@,$AUTOCONF,;t t
51852 s,@AUTOMAKE@,$AUTOMAKE,;t t
51853 s,@AUTOHEADER@,$AUTOHEADER,;t t
51854 s,@MAKEINFO@,$MAKEINFO,;t t
51855 s,@install_sh@,$install_sh,;t t
51856 s,@STRIP@,$STRIP,;t t
51857 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
51858 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
51859 s,@mkdir_p@,$mkdir_p,;t t
51860 s,@AWK@,$AWK,;t t
51861 s,@SET_MAKE@,$SET_MAKE,;t t
51862 s,@am__leading_dot@,$am__leading_dot,;t t
51863 s,@AMTAR@,$AMTAR,;t t
51864 s,@am__tar@,$am__tar,;t t
51865 s,@am__untar@,$am__untar,;t t
51866 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
51867 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
51868 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
51869 s,@top_builddir@,$top_builddir,;t t
51870 s,@ldap_subdir@,$ldap_subdir,;t t
51871 s,@CC@,$CC,;t t
51872 s,@AR@,$AR,;t t
51873 s,@CFLAGS@,$CFLAGS,;t t
51874 s,@LDFLAGS@,$LDFLAGS,;t t
51875 s,@CPPFLAGS@,$CPPFLAGS,;t t
51876 s,@ac_ct_CC@,$ac_ct_CC,;t t
51877 s,@EXEEXT@,$EXEEXT,;t t
51878 s,@OBJEXT@,$OBJEXT,;t t
51879 s,@DEPDIR@,$DEPDIR,;t t
51880 s,@am__include@,$am__include,;t t
51881 s,@am__quote@,$am__quote,;t t
51882 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
51883 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
51884 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
51885 s,@CCDEPMODE@,$CCDEPMODE,;t t
51886 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
51887 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
51888 s,@EGREP@,$EGREP,;t t
51889 s,@LN_S@,$LN_S,;t t
51890 s,@ECHO@,$ECHO,;t t
51891 s,@ac_ct_AR@,$ac_ct_AR,;t t
51892 s,@RANLIB@,$RANLIB,;t t
51893 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51894 s,@DLLTOOL@,$DLLTOOL,;t t
51895 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
51896 s,@AS@,$AS,;t t
51897 s,@ac_ct_AS@,$ac_ct_AS,;t t
51898 s,@OBJDUMP@,$OBJDUMP,;t t
51899 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
51900 s,@CPP@,$CPP,;t t
51901 s,@CXX@,$CXX,;t t
51902 s,@CXXFLAGS@,$CXXFLAGS,;t t
51903 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
51904 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
51905 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
51906 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
51907 s,@CXXCPP@,$CXXCPP,;t t
51908 s,@F77@,$F77,;t t
51909 s,@FFLAGS@,$FFLAGS,;t t
51910 s,@ac_ct_F77@,$ac_ct_F77,;t t
51911 s,@LIBTOOL@,$LIBTOOL,;t t
51912 s,@PERLBIN@,$PERLBIN,;t t
51913 s,@OL_MKDEP@,$OL_MKDEP,;t t
51914 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
51915 s,@LTSTATIC@,$LTSTATIC,;t t
51916 s,@LIBOBJS@,$LIBOBJS,;t t
51917 s,@LIBSRCS@,$LIBSRCS,;t t
51918 s,@PLAT@,$PLAT,;t t
51919 s,@WITH_SASL@,$WITH_SASL,;t t
51920 s,@WITH_TLS@,$WITH_TLS,;t t
51921 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
51922 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
51923 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
51924 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
51925 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
51926 s,@BUILD_BDB@,$BUILD_BDB,;t t
51927 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
51928 s,@BUILD_HDB@,$BUILD_HDB,;t t
51929 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
51930 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
51931 s,@BUILD_META@,$BUILD_META,;t t
51932 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
51933 s,@BUILD_NULL@,$BUILD_NULL,;t t
51934 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
51935 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
51936 s,@BUILD_PERL@,$BUILD_PERL,;t t
51937 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
51938 s,@BUILD_SQL@,$BUILD_SQL,;t t
51939 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
51940 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
51941 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
51942 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
51943 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
51944 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
51945 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
51946 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
51947 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
51948 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
51949 s,@BUILD_RWM@,$BUILD_RWM,;t t
51950 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
51951 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
51952 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
51953 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
51954 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
51955 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
51956 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
51957 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
51958 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
51959 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
51960 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
51961 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
51962 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
51963 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
51964 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
51965 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
51966 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
51967 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
51968 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
51969 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
51970 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
51971 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
51972 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
51973 s,@SASL_LIBS@,$SASL_LIBS,;t t
51974 s,@TLS_LIBS@,$TLS_LIBS,;t t
51975 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
51976 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
51977 s,@LIBSLAPI@,$LIBSLAPI,;t t
51978 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
51979 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
51980 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
51981 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
51982 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
51983 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
51984 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
51985 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51986 CEOF
51987
51988 _ACEOF
51989
51990   cat >>$CONFIG_STATUS <<\_ACEOF
51991   # Split the substitutions into bite-sized pieces for seds with
51992   # small command number limits, like on Digital OSF/1 and HP-UX.
51993   ac_max_sed_lines=48
51994   ac_sed_frag=1 # Number of current file.
51995   ac_beg=1 # First line for current file.
51996   ac_end=$ac_max_sed_lines # Line after last line for current file.
51997   ac_more_lines=:
51998   ac_sed_cmds=
51999   while $ac_more_lines; do
52000     if test $ac_beg -gt 1; then
52001       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
52002     else
52003       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
52004     fi
52005     if test ! -s $tmp/subs.frag; then
52006       ac_more_lines=false
52007     else
52008       # The purpose of the label and of the branching condition is to
52009       # speed up the sed processing (if there are no `@' at all, there
52010       # is no need to browse any of the substitutions).
52011       # These are the two extra sed commands mentioned above.
52012       (echo ':t
52013   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
52014       if test -z "$ac_sed_cmds"; then
52015         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
52016       else
52017         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
52018       fi
52019       ac_sed_frag=`expr $ac_sed_frag + 1`
52020       ac_beg=$ac_end
52021       ac_end=`expr $ac_end + $ac_max_sed_lines`
52022     fi
52023   done
52024   if test -z "$ac_sed_cmds"; then
52025     ac_sed_cmds=cat
52026   fi
52027 fi # test -n "$CONFIG_FILES"
52028
52029 _ACEOF
52030 cat >>$CONFIG_STATUS <<\_ACEOF
52031 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
52032   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52033   case $ac_file in
52034   - | *:- | *:-:* ) # input from stdin
52035         cat >$tmp/stdin
52036         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52037         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52038   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52039         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52040   * )   ac_file_in=$ac_file.in ;;
52041   esac
52042
52043   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
52044   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52045 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52046          X"$ac_file" : 'X\(//\)[^/]' \| \
52047          X"$ac_file" : 'X\(//\)$' \| \
52048          X"$ac_file" : 'X\(/\)' \| \
52049          .     : '\(.\)' 2>/dev/null ||
52050 echo X"$ac_file" |
52051     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52052           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52053           /^X\(\/\/\)$/{ s//\1/; q; }
52054           /^X\(\/\).*/{ s//\1/; q; }
52055           s/.*/./; q'`
52056   { if $as_mkdir_p; then
52057     mkdir -p "$ac_dir"
52058   else
52059     as_dir="$ac_dir"
52060     as_dirs=
52061     while test ! -d "$as_dir"; do
52062       as_dirs="$as_dir $as_dirs"
52063       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52064 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52065          X"$as_dir" : 'X\(//\)[^/]' \| \
52066          X"$as_dir" : 'X\(//\)$' \| \
52067          X"$as_dir" : 'X\(/\)' \| \
52068          .     : '\(.\)' 2>/dev/null ||
52069 echo X"$as_dir" |
52070     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52071           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52072           /^X\(\/\/\)$/{ s//\1/; q; }
52073           /^X\(\/\).*/{ s//\1/; q; }
52074           s/.*/./; q'`
52075     done
52076     test ! -n "$as_dirs" || mkdir $as_dirs
52077   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52078 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52079    { (exit 1); exit 1; }; }; }
52080
52081   ac_builddir=.
52082
52083 if test "$ac_dir" != .; then
52084   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52085   # A "../" for each directory in $ac_dir_suffix.
52086   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52087 else
52088   ac_dir_suffix= ac_top_builddir=
52089 fi
52090
52091 case $srcdir in
52092   .)  # No --srcdir option.  We are building in place.
52093     ac_srcdir=.
52094     if test -z "$ac_top_builddir"; then
52095        ac_top_srcdir=.
52096     else
52097        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52098     fi ;;
52099   [\\/]* | ?:[\\/]* )  # Absolute path.
52100     ac_srcdir=$srcdir$ac_dir_suffix;
52101     ac_top_srcdir=$srcdir ;;
52102   *) # Relative path.
52103     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52104     ac_top_srcdir=$ac_top_builddir$srcdir ;;
52105 esac
52106
52107 # Do not use `cd foo && pwd` to compute absolute paths, because
52108 # the directories may not exist.
52109 case `pwd` in
52110 .) ac_abs_builddir="$ac_dir";;
52111 *)
52112   case "$ac_dir" in
52113   .) ac_abs_builddir=`pwd`;;
52114   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52115   *) ac_abs_builddir=`pwd`/"$ac_dir";;
52116   esac;;
52117 esac
52118 case $ac_abs_builddir in
52119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52120 *)
52121   case ${ac_top_builddir}. in
52122   .) ac_abs_top_builddir=$ac_abs_builddir;;
52123   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52124   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52125   esac;;
52126 esac
52127 case $ac_abs_builddir in
52128 .) ac_abs_srcdir=$ac_srcdir;;
52129 *)
52130   case $ac_srcdir in
52131   .) ac_abs_srcdir=$ac_abs_builddir;;
52132   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52133   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52134   esac;;
52135 esac
52136 case $ac_abs_builddir in
52137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52138 *)
52139   case $ac_top_srcdir in
52140   .) ac_abs_top_srcdir=$ac_abs_builddir;;
52141   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52142   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52143   esac;;
52144 esac
52145
52146
52147   case $INSTALL in
52148   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52149   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
52150   esac
52151
52152   if test x"$ac_file" != x-; then
52153     { echo "$as_me:$LINENO: creating $ac_file" >&5
52154 echo "$as_me: creating $ac_file" >&6;}
52155     rm -f "$ac_file"
52156   fi
52157   # Let's still pretend it is `configure' which instantiates (i.e., don't
52158   # use $as_me), people would be surprised to read:
52159   #    /* config.h.  Generated by config.status.  */
52160   if test x"$ac_file" = x-; then
52161     configure_input=
52162   else
52163     configure_input="$ac_file.  "
52164   fi
52165   configure_input=$configure_input"Generated from `echo $ac_file_in |
52166                                      sed 's,.*/,,'` by configure."
52167
52168   # First look for the input files in the build tree, otherwise in the
52169   # src tree.
52170   ac_file_inputs=`IFS=:
52171     for f in $ac_file_in; do
52172       case $f in
52173       -) echo $tmp/stdin ;;
52174       [\\/$]*)
52175          # Absolute (can't be DOS-style, as IFS=:)
52176          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52177 echo "$as_me: error: cannot find input file: $f" >&2;}
52178    { (exit 1); exit 1; }; }
52179          echo "$f";;
52180       *) # Relative
52181          if test -f "$f"; then
52182            # Build tree
52183            echo "$f"
52184          elif test -f "$srcdir/$f"; then
52185            # Source tree
52186            echo "$srcdir/$f"
52187          else
52188            # /dev/null tree
52189            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52190 echo "$as_me: error: cannot find input file: $f" >&2;}
52191    { (exit 1); exit 1; }; }
52192          fi;;
52193       esac
52194     done` || { (exit 1); exit 1; }
52195 _ACEOF
52196 cat >>$CONFIG_STATUS <<_ACEOF
52197   sed "$ac_vpsub
52198 $extrasub
52199 _ACEOF
52200 cat >>$CONFIG_STATUS <<\_ACEOF
52201 :t
52202 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52203 s,@configure_input@,$configure_input,;t t
52204 s,@srcdir@,$ac_srcdir,;t t
52205 s,@abs_srcdir@,$ac_abs_srcdir,;t t
52206 s,@top_srcdir@,$ac_top_srcdir,;t t
52207 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
52208 s,@builddir@,$ac_builddir,;t t
52209 s,@abs_builddir@,$ac_abs_builddir,;t t
52210 s,@top_builddir@,$ac_top_builddir,;t t
52211 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
52212 s,@INSTALL@,$ac_INSTALL,;t t
52213 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
52214   rm -f $tmp/stdin
52215   if test x"$ac_file" != x-; then
52216     mv $tmp/out $ac_file
52217   else
52218     cat $tmp/out
52219     rm -f $tmp/out
52220   fi
52221
52222 done
52223 _ACEOF
52224 cat >>$CONFIG_STATUS <<\_ACEOF
52225
52226 #
52227 # CONFIG_HEADER section.
52228 #
52229
52230 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
52231 # NAME is the cpp macro being defined and VALUE is the value it is being given.
52232 #
52233 # ac_d sets the value in "#define NAME VALUE" lines.
52234 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
52235 ac_dB='[         ].*$,\1#\2'
52236 ac_dC=' '
52237 ac_dD=',;t'
52238 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
52239 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
52240 ac_uB='$,\1#\2define\3'
52241 ac_uC=' '
52242 ac_uD=',;t'
52243
52244 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
52245   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52246   case $ac_file in
52247   - | *:- | *:-:* ) # input from stdin
52248         cat >$tmp/stdin
52249         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52250         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52251   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52252         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52253   * )   ac_file_in=$ac_file.in ;;
52254   esac
52255
52256   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
52257 echo "$as_me: creating $ac_file" >&6;}
52258
52259   # First look for the input files in the build tree, otherwise in the
52260   # src tree.
52261   ac_file_inputs=`IFS=:
52262     for f in $ac_file_in; do
52263       case $f in
52264       -) echo $tmp/stdin ;;
52265       [\\/$]*)
52266          # Absolute (can't be DOS-style, as IFS=:)
52267          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52268 echo "$as_me: error: cannot find input file: $f" >&2;}
52269    { (exit 1); exit 1; }; }
52270          # Do quote $f, to prevent DOS paths from being IFS'd.
52271          echo "$f";;
52272       *) # Relative
52273          if test -f "$f"; then
52274            # Build tree
52275            echo "$f"
52276          elif test -f "$srcdir/$f"; then
52277            # Source tree
52278            echo "$srcdir/$f"
52279          else
52280            # /dev/null tree
52281            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52282 echo "$as_me: error: cannot find input file: $f" >&2;}
52283    { (exit 1); exit 1; }; }
52284          fi;;
52285       esac
52286     done` || { (exit 1); exit 1; }
52287   # Remove the trailing spaces.
52288   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
52289
52290 _ACEOF
52291
52292 # Transform confdefs.h into two sed scripts, `conftest.defines' and
52293 # `conftest.undefs', that substitutes the proper values into
52294 # config.h.in to produce config.h.  The first handles `#define'
52295 # templates, and the second `#undef' templates.
52296 # And first: Protect against being on the right side of a sed subst in
52297 # config.status.  Protect against being in an unquoted here document
52298 # in config.status.
52299 rm -f conftest.defines conftest.undefs
52300 # Using a here document instead of a string reduces the quoting nightmare.
52301 # Putting comments in sed scripts is not portable.
52302 #
52303 # `end' is used to avoid that the second main sed command (meant for
52304 # 0-ary CPP macros) applies to n-ary macro definitions.
52305 # See the Autoconf documentation for `clear'.
52306 cat >confdef2sed.sed <<\_ACEOF
52307 s/[\\&,]/\\&/g
52308 s,[\\$`],\\&,g
52309 t clear
52310 : clear
52311 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
52312 t end
52313 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
52314 : end
52315 _ACEOF
52316 # If some macros were called several times there might be several times
52317 # the same #defines, which is useless.  Nevertheless, we may not want to
52318 # sort them, since we want the *last* AC-DEFINE to be honored.
52319 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
52320 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
52321 rm -f confdef2sed.sed
52322
52323 # This sed command replaces #undef with comments.  This is necessary, for
52324 # example, in the case of _POSIX_SOURCE, which is predefined and required
52325 # on some systems where configure will not decide to define it.
52326 cat >>conftest.undefs <<\_ACEOF
52327 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
52328 _ACEOF
52329
52330 # Break up conftest.defines because some shells have a limit on the size
52331 # of here documents, and old seds have small limits too (100 cmds).
52332 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
52333 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
52334 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
52335 echo '  :' >>$CONFIG_STATUS
52336 rm -f conftest.tail
52337 while grep . conftest.defines >/dev/null
52338 do
52339   # Write a limited-size here document to $tmp/defines.sed.
52340   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
52341   # Speed up: don't consider the non `#define' lines.
52342   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
52343   # Work around the forget-to-reset-the-flag bug.
52344   echo 't clr' >>$CONFIG_STATUS
52345   echo ': clr' >>$CONFIG_STATUS
52346   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
52347   echo 'CEOF
52348   sed -f $tmp/defines.sed $tmp/in >$tmp/out
52349   rm -f $tmp/in
52350   mv $tmp/out $tmp/in
52351 ' >>$CONFIG_STATUS
52352   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
52353   rm -f conftest.defines
52354   mv conftest.tail conftest.defines
52355 done
52356 rm -f conftest.defines
52357 echo '  fi # grep' >>$CONFIG_STATUS
52358 echo >>$CONFIG_STATUS
52359
52360 # Break up conftest.undefs because some shells have a limit on the size
52361 # of here documents, and old seds have small limits too (100 cmds).
52362 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
52363 rm -f conftest.tail
52364 while grep . conftest.undefs >/dev/null
52365 do
52366   # Write a limited-size here document to $tmp/undefs.sed.
52367   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
52368   # Speed up: don't consider the non `#undef'
52369   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
52370   # Work around the forget-to-reset-the-flag bug.
52371   echo 't clr' >>$CONFIG_STATUS
52372   echo ': clr' >>$CONFIG_STATUS
52373   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
52374   echo 'CEOF
52375   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
52376   rm -f $tmp/in
52377   mv $tmp/out $tmp/in
52378 ' >>$CONFIG_STATUS
52379   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
52380   rm -f conftest.undefs
52381   mv conftest.tail conftest.undefs
52382 done
52383 rm -f conftest.undefs
52384
52385 cat >>$CONFIG_STATUS <<\_ACEOF
52386   # Let's still pretend it is `configure' which instantiates (i.e., don't
52387   # use $as_me), people would be surprised to read:
52388   #    /* config.h.  Generated by config.status.  */
52389   if test x"$ac_file" = x-; then
52390     echo "/* Generated by configure.  */" >$tmp/config.h
52391   else
52392     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
52393   fi
52394   cat $tmp/in >>$tmp/config.h
52395   rm -f $tmp/in
52396   if test x"$ac_file" != x-; then
52397     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
52398       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52399 echo "$as_me: $ac_file is unchanged" >&6;}
52400     else
52401       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52402 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52403          X"$ac_file" : 'X\(//\)[^/]' \| \
52404          X"$ac_file" : 'X\(//\)$' \| \
52405          X"$ac_file" : 'X\(/\)' \| \
52406          .     : '\(.\)' 2>/dev/null ||
52407 echo X"$ac_file" |
52408     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52409           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52410           /^X\(\/\/\)$/{ s//\1/; q; }
52411           /^X\(\/\).*/{ s//\1/; q; }
52412           s/.*/./; q'`
52413       { if $as_mkdir_p; then
52414     mkdir -p "$ac_dir"
52415   else
52416     as_dir="$ac_dir"
52417     as_dirs=
52418     while test ! -d "$as_dir"; do
52419       as_dirs="$as_dir $as_dirs"
52420       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52421 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52422          X"$as_dir" : 'X\(//\)[^/]' \| \
52423          X"$as_dir" : 'X\(//\)$' \| \
52424          X"$as_dir" : 'X\(/\)' \| \
52425          .     : '\(.\)' 2>/dev/null ||
52426 echo X"$as_dir" |
52427     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52428           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52429           /^X\(\/\/\)$/{ s//\1/; q; }
52430           /^X\(\/\).*/{ s//\1/; q; }
52431           s/.*/./; q'`
52432     done
52433     test ! -n "$as_dirs" || mkdir $as_dirs
52434   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52435 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52436    { (exit 1); exit 1; }; }; }
52437
52438       rm -f $ac_file
52439       mv $tmp/config.h $ac_file
52440     fi
52441   else
52442     cat $tmp/config.h
52443     rm -f $tmp/config.h
52444   fi
52445 # Compute $ac_file's index in $config_headers.
52446 _am_stamp_count=1
52447 for _am_header in $config_headers :; do
52448   case $_am_header in
52449     $ac_file | $ac_file:* )
52450       break ;;
52451     * )
52452       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
52453   esac
52454 done
52455 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
52456 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52457          X$ac_file : 'X\(//\)[^/]' \| \
52458          X$ac_file : 'X\(//\)$' \| \
52459          X$ac_file : 'X\(/\)' \| \
52460          .     : '\(.\)' 2>/dev/null ||
52461 echo X$ac_file |
52462     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52463           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52464           /^X\(\/\/\)$/{ s//\1/; q; }
52465           /^X\(\/\).*/{ s//\1/; q; }
52466           s/.*/./; q'`/stamp-h$_am_stamp_count
52467 done
52468 _ACEOF
52469 cat >>$CONFIG_STATUS <<\_ACEOF
52470
52471 #
52472 # CONFIG_COMMANDS section.
52473 #
52474 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
52475   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
52476   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
52477   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
52478 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52479          X"$ac_dest" : 'X\(//\)[^/]' \| \
52480          X"$ac_dest" : 'X\(//\)$' \| \
52481          X"$ac_dest" : 'X\(/\)' \| \
52482          .     : '\(.\)' 2>/dev/null ||
52483 echo X"$ac_dest" |
52484     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52485           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52486           /^X\(\/\/\)$/{ s//\1/; q; }
52487           /^X\(\/\).*/{ s//\1/; q; }
52488           s/.*/./; q'`
52489   { if $as_mkdir_p; then
52490     mkdir -p "$ac_dir"
52491   else
52492     as_dir="$ac_dir"
52493     as_dirs=
52494     while test ! -d "$as_dir"; do
52495       as_dirs="$as_dir $as_dirs"
52496       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52498          X"$as_dir" : 'X\(//\)[^/]' \| \
52499          X"$as_dir" : 'X\(//\)$' \| \
52500          X"$as_dir" : 'X\(/\)' \| \
52501          .     : '\(.\)' 2>/dev/null ||
52502 echo X"$as_dir" |
52503     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52504           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52505           /^X\(\/\/\)$/{ s//\1/; q; }
52506           /^X\(\/\).*/{ s//\1/; q; }
52507           s/.*/./; q'`
52508     done
52509     test ! -n "$as_dirs" || mkdir $as_dirs
52510   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52511 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52512    { (exit 1); exit 1; }; }; }
52513
52514   ac_builddir=.
52515
52516 if test "$ac_dir" != .; then
52517   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52518   # A "../" for each directory in $ac_dir_suffix.
52519   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52520 else
52521   ac_dir_suffix= ac_top_builddir=
52522 fi
52523
52524 case $srcdir in
52525   .)  # No --srcdir option.  We are building in place.
52526     ac_srcdir=.
52527     if test -z "$ac_top_builddir"; then
52528        ac_top_srcdir=.
52529     else
52530        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52531     fi ;;
52532   [\\/]* | ?:[\\/]* )  # Absolute path.
52533     ac_srcdir=$srcdir$ac_dir_suffix;
52534     ac_top_srcdir=$srcdir ;;
52535   *) # Relative path.
52536     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52537     ac_top_srcdir=$ac_top_builddir$srcdir ;;
52538 esac
52539
52540 # Do not use `cd foo && pwd` to compute absolute paths, because
52541 # the directories may not exist.
52542 case `pwd` in
52543 .) ac_abs_builddir="$ac_dir";;
52544 *)
52545   case "$ac_dir" in
52546   .) ac_abs_builddir=`pwd`;;
52547   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52548   *) ac_abs_builddir=`pwd`/"$ac_dir";;
52549   esac;;
52550 esac
52551 case $ac_abs_builddir in
52552 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52553 *)
52554   case ${ac_top_builddir}. in
52555   .) ac_abs_top_builddir=$ac_abs_builddir;;
52556   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52557   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52558   esac;;
52559 esac
52560 case $ac_abs_builddir in
52561 .) ac_abs_srcdir=$ac_srcdir;;
52562 *)
52563   case $ac_srcdir in
52564   .) ac_abs_srcdir=$ac_abs_builddir;;
52565   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52566   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52567   esac;;
52568 esac
52569 case $ac_abs_builddir in
52570 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52571 *)
52572   case $ac_top_srcdir in
52573   .) ac_abs_top_srcdir=$ac_abs_builddir;;
52574   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52575   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52576   esac;;
52577 esac
52578
52579
52580   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52581 echo "$as_me: executing $ac_dest commands" >&6;}
52582   case $ac_dest in
52583     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
52584   # Strip MF so we end up with the name of the file.
52585   mf=`echo "$mf" | sed -e 's/:.*$//'`
52586   # Check whether this is an Automake generated Makefile or not.
52587   # We used to match only the files named `Makefile.in', but
52588   # some people rename them; so instead we look at the file content.
52589   # Grep'ing the first line is not enough: some people post-process
52590   # each Makefile.in and add a new line on top of each file to say so.
52591   # So let's grep whole file.
52592   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
52593     dirpart=`(dirname "$mf") 2>/dev/null ||
52594 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52595          X"$mf" : 'X\(//\)[^/]' \| \
52596          X"$mf" : 'X\(//\)$' \| \
52597          X"$mf" : 'X\(/\)' \| \
52598          .     : '\(.\)' 2>/dev/null ||
52599 echo X"$mf" |
52600     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52601           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52602           /^X\(\/\/\)$/{ s//\1/; q; }
52603           /^X\(\/\).*/{ s//\1/; q; }
52604           s/.*/./; q'`
52605   else
52606     continue
52607   fi
52608   # Extract the definition of DEPDIR, am__include, and am__quote
52609   # from the Makefile without running `make'.
52610   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
52611   test -z "$DEPDIR" && continue
52612   am__include=`sed -n 's/^am__include = //p' < "$mf"`
52613   test -z "am__include" && continue
52614   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
52615   # When using ansi2knr, U may be empty or an underscore; expand it
52616   U=`sed -n 's/^U = //p' < "$mf"`
52617   # Find all dependency output files, they are included files with
52618   # $(DEPDIR) in their names.  We invoke sed twice because it is the
52619   # simplest approach to changing $(DEPDIR) to its actual value in the
52620   # expansion.
52621   for file in `sed -n "
52622     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
52623        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
52624     # Make sure the directory exists.
52625     test -f "$dirpart/$file" && continue
52626     fdir=`(dirname "$file") 2>/dev/null ||
52627 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52628          X"$file" : 'X\(//\)[^/]' \| \
52629          X"$file" : 'X\(//\)$' \| \
52630          X"$file" : 'X\(/\)' \| \
52631          .     : '\(.\)' 2>/dev/null ||
52632 echo X"$file" |
52633     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52634           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52635           /^X\(\/\/\)$/{ s//\1/; q; }
52636           /^X\(\/\).*/{ s//\1/; q; }
52637           s/.*/./; q'`
52638     { if $as_mkdir_p; then
52639     mkdir -p $dirpart/$fdir
52640   else
52641     as_dir=$dirpart/$fdir
52642     as_dirs=
52643     while test ! -d "$as_dir"; do
52644       as_dirs="$as_dir $as_dirs"
52645       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52646 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52647          X"$as_dir" : 'X\(//\)[^/]' \| \
52648          X"$as_dir" : 'X\(//\)$' \| \
52649          X"$as_dir" : 'X\(/\)' \| \
52650          .     : '\(.\)' 2>/dev/null ||
52651 echo X"$as_dir" |
52652     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52653           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52654           /^X\(\/\/\)$/{ s//\1/; q; }
52655           /^X\(\/\).*/{ s//\1/; q; }
52656           s/.*/./; q'`
52657     done
52658     test ! -n "$as_dirs" || mkdir $as_dirs
52659   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
52660 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
52661    { (exit 1); exit 1; }; }; }
52662
52663     # echo "creating $dirpart/$file"
52664     echo '# dummy' > "$dirpart/$file"
52665   done
52666 done
52667  ;;
52668     default )
52669 chmod +x tests/run
52670 date > stamp-h
52671 BACKENDSC="servers/slapd/backends.c"
52672 echo "Making $BACKENDSC"
52673 rm -f $BACKENDSC
52674 cat > $BACKENDSC << ENDX
52675 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
52676  *
52677  * Copyright 1998-2005 The OpenLDAP Foundation.
52678  * All rights reserved.
52679  *
52680  * Redistribution and use in source and binary forms, with or without
52681  * modification, are permitted only as authorized by the OpenLDAP
52682  * Public License.
52683  *
52684  * A copy of this license is available in the file LICENSE in the
52685  * top-level directory of the distribution or, alternatively, at
52686  * <http://www.OpenLDAP.org/license.html>.
52687  */
52688 /* This file is automatically generated by configure; please do not edit. */
52689
52690 #include "portable.h"
52691 #include "slap.h"
52692
52693 ENDX
52694 if test "${STATIC_BACKENDS}"; then
52695         for b in config ${STATIC_BACKENDS}; do
52696                 bb=`echo "${b}" | sed -e 's/back-//'`
52697                 cat >> $BACKENDSC << ENDX
52698 extern BI_init ${bb}_back_initialize;
52699 ENDX
52700         done
52701
52702         cat >> $BACKENDSC << ENDX
52703
52704 BackendInfo slap_binfo[] = {
52705 ENDX
52706
52707         for b in config ${STATIC_BACKENDS}; do
52708                 bb=`echo "${b}" | sed -e 's/back-//'`
52709                 echo "    Add ${bb} ..."
52710                 cat >> $BACKENDSC << ENDX
52711         { "${bb}", ${bb}_back_initialize },
52712 ENDX
52713         done
52714
52715         cat >> $BACKENDSC << ENDX
52716         { NULL, NULL },
52717 };
52718
52719 /* end of generated file */
52720 ENDX
52721 fi
52722
52723 echo Please run \"make depend\" to build dependencies
52724  ;;
52725   esac
52726 done
52727 _ACEOF
52728
52729 cat >>$CONFIG_STATUS <<\_ACEOF
52730
52731 { (exit 0); exit 0; }
52732 _ACEOF
52733 chmod +x $CONFIG_STATUS
52734 ac_clean_files=$ac_clean_files_save
52735
52736
52737 # configure is writing to config.log, and then calls config.status.
52738 # config.status does its own redirection, appending to config.log.
52739 # Unfortunately, on DOS this fails, as config.log is still kept open
52740 # by configure, so config.status won't be able to write to it; its
52741 # output is simply discarded.  So we exec the FD to /dev/null,
52742 # effectively closing config.log, so it can be properly (re)opened and
52743 # appended to by config.status.  When coming back to configure, we
52744 # need to make the FD available again.
52745 if test "$no_create" != yes; then
52746   ac_cs_success=:
52747   ac_config_status_args=
52748   test "$silent" = yes &&
52749     ac_config_status_args="$ac_config_status_args --quiet"
52750   exec 5>/dev/null
52751   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52752   exec 5>>config.log
52753   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52754   # would make configure fail if this is the last instruction.
52755   $ac_cs_success || { (exit 1); exit 1; }
52756 fi
52757