]> git.sur5r.net Git - openldap/blob - configure
change TCIOGWIN macro
[openldap] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289        echo_test_string="`eval $cmd`" &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="build/version.sh"
429 ac_default_prefix=/usr/local
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_GLUE BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
909 ac_env_CC_value=$CC
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953   # Omit some internal or obsolete options to make the list less imposing.
954   # This message is too long to be a string in the A/UX 3.1 sh.
955   cat <<_ACEOF
956 \`configure' configures this package to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966   -h, --help              display this help and exit
967       --help=short        display options specific to this package
968       --help=recursive    display the short help of all the included packages
969   -V, --version           display version information and exit
970   -q, --quiet, --silent   do not print \`checking...' messages
971       --cache-file=FILE   cache test results in FILE [disabled]
972   -C, --config-cache      alias for \`--cache-file=config.cache'
973   -n, --no-create         do not create output files
974       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978   cat <<_ACEOF
979 Installation directories:
980   --prefix=PREFIX         install architecture-independent files in PREFIX
981                           [$ac_default_prefix]
982   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                           [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993   --bindir=DIR           user executables [EPREFIX/bin]
994   --sbindir=DIR          system admin executables [EPREFIX/sbin]
995   --libexecdir=DIR       program executables [EPREFIX/libexec]
996   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000   --libdir=DIR           object code libraries [EPREFIX/lib]
1001   --includedir=DIR       C header files [PREFIX/include]
1002   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003   --infodir=DIR          info documentation [PREFIX/info]
1004   --mandir=DIR           man documentation [PREFIX/man]
1005 _ACEOF
1006
1007   cat <<\_ACEOF
1008
1009 Program names:
1010   --program-prefix=PREFIX            prepend PREFIX to installed program names
1011   --program-suffix=SUFFIX            append SUFFIX to installed program names
1012   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1013
1014 System types:
1015   --build=BUILD     configure for building on BUILD [guessed]
1016   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1017   --target=TARGET   configure for building compilers for TARGET [HOST]
1018 _ACEOF
1019 fi
1020
1021 if test -n "$ac_init_help"; then
1022
1023   cat <<\_ACEOF
1024
1025 Optional Features:
1026   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1027   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1028   --enable-debug          enable debugging yes
1029   --enable-dynamic        enable linking built binaries with dynamic libs no
1030   --enable-syslog         enable syslog support auto
1031   --enable-proctitle      enable proctitle support yes
1032   --enable-ipv6           enable IPv6 support auto
1033   --enable-local          enable AF_LOCAL (AF_UNIX) socket support auto
1034   --enable-slapd          enable building slapd yes
1035     --enable-aci          enable per-object ACIs (experimental) no
1036     --enable-cleartext    enable cleartext passwords yes
1037     --enable-crypt        enable crypt(3) passwords no
1038     --enable-lmpasswd     enable LAN Manager passwords no
1039     --enable-spasswd      enable (Cyrus) SASL password verification no
1040     --enable-modules      enable dynamic module support no
1041     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay auto
1042     --enable-rlookups     enable reverse lookups of client hostnames no
1043     --enable-slapi        enable SLAPI support (experimental) no
1044     --enable-slp          enable SLPv2 support no
1045     --enable-wrappers     enable tcp wrapper support no
1046     --enable-backends     enable all available backends no|yes|mod
1047     --enable-bdb          enable Berkeley DB backend no|yes|mod ${ol_dflt_backends-yes}
1048     --enable-dnssrv       enable dnssrv backend no|yes|mod ${ol_dflt_backends-no}
1049     --enable-hdb          enable Hierarchical DB backend no|yes|mod ${ol_dflt_backends-yes}
1050     --enable-ldap         enable ldap backend no|yes|mod ${ol_dflt_backends-no}
1051     --enable-ldbm         enable ldbm backend no|yes|mod ${ol_dflt_backends-no}
1052     --enable-meta         enable metadirectory backend no|yes|mod ${ol_dflt_backends-no}
1053     --enable-monitor      enable monitor backend no|yes|mod ${ol_dflt_backends-yes}
1054     --enable-null         enable null backend no|yes|mod ${ol_dflt_backends-no}
1055     --enable-passwd       enable passwd backend no|yes|mod ${ol_dflt_backends-no}
1056     --enable-perl         enable perl backend no|yes|mod ${ol_dflt_backends-no}
1057     --enable-relay        enable relay backend no|yes|mod ${ol_dflt_backends-yes}
1058     --enable-shell        enable shell backend no|yes|mod ${ol_dflt_backends-no}
1059     --enable-sql          enable sql backend no|yes|mod ${ol_dflt_backends-no}
1060     --enable-overlays     enable all available overlays no|yes|mod
1061     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod ${ol_dflt_overlays-no}
1062     --enable-denyop       Deny Operation overlay no|yes|mod ${ol_dflt_overlays-no}
1063     --enable-dyngroup     Dynamic Group overlay no|yes|mod ${ol_dflt_overlays-no}
1064     --enable-dynlist      Dynamic List overlay no|yes|mod ${ol_dflt_overlays-no}
1065     --enable-glue         Backend Glue overlay no|yes|mod ${ol_dflt_overlays-yes}
1066     --enable-lastmod      Last Modification overlay no|yes|mod ${ol_dflt_overlays-no}
1067     --enable-ppolicy      Password Policy overlay no|yes|mod ${ol_dflt_overlays-no}
1068     --enable-proxycache   Proxy Cache overlay no|yes|mod ${ol_dflt_overlays-no}
1069     --enable-refint       Referential Integrity overlay no|yes|mod ${ol_dflt_overlays-no}
1070     --enable-retcode      Return Code testing overlay no|yes|mod ${ol_dflt_overlays-no}
1071     --enable-rwm          Rewrite/Remap overlay no|yes|mod ${ol_dflt_overlays-no}
1072     --enable-syncprov     Syncrepl Provider overlay no|yes|mod ${ol_dflt_overlays-yes}
1073     --enable-translucent  Translucent Proxy overlay no|yes|mod ${ol_dflt_overlays-no}
1074     --enable-unique       Attribute Uniqueness overlay no|yes|mod ${ol_dflt_overlays-no}
1075   --enable-slurpd         enable building slurpd auto
1076   --enable-static[=PKGS]
1077                           build static libraries [default=yes]
1078   --enable-shared[=PKGS]
1079                           build shared libraries [default=yes]
1080   --enable-fast-install[=PKGS]
1081                           optimize for fast installation [default=yes]
1082   --disable-dependency-tracking  speeds up one-time build
1083   --enable-dependency-tracking   do not reject slow dependency extractors
1084   --disable-libtool-lock  avoid locking (might break parallel builds)
1085
1086 Optional Packages:
1087   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1088   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1089   --with-subdir=DIR       change default subdirectory used for installs
1090   --with-cyrus-sasl       with Cyrus SASL support auto
1091   --with-fetch            with fetch(3) URL support auto
1092   --with-threads          with threads auto
1093   --with-tls              with TLS/SSL support auto
1094   --with-yielding-select  with implicitly yielding select auto
1095   --with-multiple-precision
1096                           multiple precision support for statistics
1097                           auto|bignum|gmp auto
1098
1099 SLAPD (Standalone LDAP Daemon) Options:
1100
1101 SLAPD Backend Options:
1102       --with-ldbm-api     with LDBM API auto|berkeley|bcompat|mdbm|gdbm auto
1103       --with-ldbm-type    use LDBM type auto|btree|hash auto
1104
1105 SLAPD Overlay Options:
1106
1107 SLURPD (Replication Daemon) Options:
1108
1109 Library Generation & Linking Options
1110   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1111   --with-pic              try to use only PIC/non-PIC objects [default=use
1112                           both]
1113   --with-tags[=TAGS]
1114                           include additional configurations [automatic]
1115
1116 See INSTALL file for further details.
1117
1118 Some influential environment variables:
1119   CC          C compiler command
1120   CFLAGS      C compiler flags
1121   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1122               nonstandard directory <lib dir>
1123   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1124               headers in a nonstandard directory <include dir>
1125   CPP         C preprocessor
1126   CXX         C++ compiler command
1127   CXXFLAGS    C++ compiler flags
1128   CXXCPP      C++ preprocessor
1129   F77         Fortran 77 compiler command
1130   FFLAGS      Fortran 77 compiler flags
1131
1132 Use these variables to override the choices made by `configure' or to help
1133 it to find libraries and programs with nonstandard names/locations.
1134
1135 _ACEOF
1136 fi
1137
1138 if test "$ac_init_help" = "recursive"; then
1139   # If there are subdirs, report their specific --help.
1140   ac_popdir=`pwd`
1141   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1142     test -d $ac_dir || continue
1143     ac_builddir=.
1144
1145 if test "$ac_dir" != .; then
1146   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1147   # A "../" for each directory in $ac_dir_suffix.
1148   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1149 else
1150   ac_dir_suffix= ac_top_builddir=
1151 fi
1152
1153 case $srcdir in
1154   .)  # No --srcdir option.  We are building in place.
1155     ac_srcdir=.
1156     if test -z "$ac_top_builddir"; then
1157        ac_top_srcdir=.
1158     else
1159        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1160     fi ;;
1161   [\\/]* | ?:[\\/]* )  # Absolute path.
1162     ac_srcdir=$srcdir$ac_dir_suffix;
1163     ac_top_srcdir=$srcdir ;;
1164   *) # Relative path.
1165     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1166     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1167 esac
1168
1169 # Do not use `cd foo && pwd` to compute absolute paths, because
1170 # the directories may not exist.
1171 case `pwd` in
1172 .) ac_abs_builddir="$ac_dir";;
1173 *)
1174   case "$ac_dir" in
1175   .) ac_abs_builddir=`pwd`;;
1176   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1177   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1178   esac;;
1179 esac
1180 case $ac_abs_builddir in
1181 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1182 *)
1183   case ${ac_top_builddir}. in
1184   .) ac_abs_top_builddir=$ac_abs_builddir;;
1185   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1186   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1187   esac;;
1188 esac
1189 case $ac_abs_builddir in
1190 .) ac_abs_srcdir=$ac_srcdir;;
1191 *)
1192   case $ac_srcdir in
1193   .) ac_abs_srcdir=$ac_abs_builddir;;
1194   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1195   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1196   esac;;
1197 esac
1198 case $ac_abs_builddir in
1199 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1200 *)
1201   case $ac_top_srcdir in
1202   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1203   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1204   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1205   esac;;
1206 esac
1207
1208     cd $ac_dir
1209     # Check for guested configure; otherwise get Cygnus style configure.
1210     if test -f $ac_srcdir/configure.gnu; then
1211       echo
1212       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1213     elif test -f $ac_srcdir/configure; then
1214       echo
1215       $SHELL $ac_srcdir/configure  --help=recursive
1216     elif test -f $ac_srcdir/configure.ac ||
1217            test -f $ac_srcdir/configure.in; then
1218       echo
1219       $ac_configure --help
1220     else
1221       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1222     fi
1223     cd $ac_popdir
1224   done
1225 fi
1226
1227 test -n "$ac_init_help" && exit 0
1228 if $ac_init_version; then
1229   cat <<\_ACEOF
1230
1231 Copyright (C) 2003 Free Software Foundation, Inc.
1232 This configure script is free software; the Free Software Foundation
1233 gives unlimited permission to copy, distribute and modify it.
1234 _ACEOF
1235   exit 0
1236 fi
1237 exec 5>config.log
1238 cat >&5 <<_ACEOF
1239 This file contains any messages produced by compilers while
1240 running configure, to aid debugging if configure makes a mistake.
1241
1242 It was created by $as_me, which was
1243 generated by GNU Autoconf 2.59.  Invocation command line was
1244
1245   $ $0 $@
1246
1247 _ACEOF
1248 {
1249 cat <<_ASUNAME
1250 ## --------- ##
1251 ## Platform. ##
1252 ## --------- ##
1253
1254 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1255 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1256 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1257 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1258 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1259
1260 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1261 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1262
1263 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1264 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1265 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1266 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1267 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1268 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1269 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1270
1271 _ASUNAME
1272
1273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1274 for as_dir in $PATH
1275 do
1276   IFS=$as_save_IFS
1277   test -z "$as_dir" && as_dir=.
1278   echo "PATH: $as_dir"
1279 done
1280
1281 } >&5
1282
1283 cat >&5 <<_ACEOF
1284
1285
1286 ## ----------- ##
1287 ## Core tests. ##
1288 ## ----------- ##
1289
1290 _ACEOF
1291
1292
1293 # Keep a trace of the command line.
1294 # Strip out --no-create and --no-recursion so they do not pile up.
1295 # Strip out --silent because we don't want to record it for future runs.
1296 # Also quote any args containing shell meta-characters.
1297 # Make two passes to allow for proper duplicate-argument suppression.
1298 ac_configure_args=
1299 ac_configure_args0=
1300 ac_configure_args1=
1301 ac_sep=
1302 ac_must_keep_next=false
1303 for ac_pass in 1 2
1304 do
1305   for ac_arg
1306   do
1307     case $ac_arg in
1308     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1309     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1310     | -silent | --silent | --silen | --sile | --sil)
1311       continue ;;
1312     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1314     esac
1315     case $ac_pass in
1316     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1317     2)
1318       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1319       if test $ac_must_keep_next = true; then
1320         ac_must_keep_next=false # Got value, back to normal.
1321       else
1322         case $ac_arg in
1323           *=* | --config-cache | -C | -disable-* | --disable-* \
1324           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1325           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1326           | -with-* | --with-* | -without-* | --without-* | --x)
1327             case "$ac_configure_args0 " in
1328               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1329             esac
1330             ;;
1331           -* ) ac_must_keep_next=true ;;
1332         esac
1333       fi
1334       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1335       # Get rid of the leading space.
1336       ac_sep=" "
1337       ;;
1338     esac
1339   done
1340 done
1341 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1342 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1343
1344 # When interrupted or exit'd, cleanup temporary files, and complete
1345 # config.log.  We remove comments because anyway the quotes in there
1346 # would cause problems or look ugly.
1347 # WARNING: Be sure not to use single quotes in there, as some shells,
1348 # such as our DU 5.0 friend, will then `close' the trap.
1349 trap 'exit_status=$?
1350   # Save into config.log some information that might help in debugging.
1351   {
1352     echo
1353
1354     cat <<\_ASBOX
1355 ## ---------------- ##
1356 ## Cache variables. ##
1357 ## ---------------- ##
1358 _ASBOX
1359     echo
1360     # The following way of writing the cache mishandles newlines in values,
1361 {
1362   (set) 2>&1 |
1363     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1364     *ac_space=\ *)
1365       sed -n \
1366         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1367           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1368       ;;
1369     *)
1370       sed -n \
1371         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1372       ;;
1373     esac;
1374 }
1375     echo
1376
1377     cat <<\_ASBOX
1378 ## ----------------- ##
1379 ## Output variables. ##
1380 ## ----------------- ##
1381 _ASBOX
1382     echo
1383     for ac_var in $ac_subst_vars
1384     do
1385       eval ac_val=$`echo $ac_var`
1386       echo "$ac_var='"'"'$ac_val'"'"'"
1387     done | sort
1388     echo
1389
1390     if test -n "$ac_subst_files"; then
1391       cat <<\_ASBOX
1392 ## ------------- ##
1393 ## Output files. ##
1394 ## ------------- ##
1395 _ASBOX
1396       echo
1397       for ac_var in $ac_subst_files
1398       do
1399         eval ac_val=$`echo $ac_var`
1400         echo "$ac_var='"'"'$ac_val'"'"'"
1401       done | sort
1402       echo
1403     fi
1404
1405     if test -s confdefs.h; then
1406       cat <<\_ASBOX
1407 ## ----------- ##
1408 ## confdefs.h. ##
1409 ## ----------- ##
1410 _ASBOX
1411       echo
1412       sed "/^$/d" confdefs.h | sort
1413       echo
1414     fi
1415     test "$ac_signal" != 0 &&
1416       echo "$as_me: caught signal $ac_signal"
1417     echo "$as_me: exit $exit_status"
1418   } >&5
1419   rm -f core *.core &&
1420   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1421     exit $exit_status
1422      ' 0
1423 for ac_signal in 1 2 13 15; do
1424   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1425 done
1426 ac_signal=0
1427
1428 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1429 rm -rf conftest* confdefs.h
1430 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1431 echo >confdefs.h
1432
1433 # Predefined preprocessor variables.
1434
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_NAME "$PACKAGE_NAME"
1437 _ACEOF
1438
1439
1440 cat >>confdefs.h <<_ACEOF
1441 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1442 _ACEOF
1443
1444
1445 cat >>confdefs.h <<_ACEOF
1446 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1447 _ACEOF
1448
1449
1450 cat >>confdefs.h <<_ACEOF
1451 #define PACKAGE_STRING "$PACKAGE_STRING"
1452 _ACEOF
1453
1454
1455 cat >>confdefs.h <<_ACEOF
1456 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1457 _ACEOF
1458
1459
1460 # Let the site file select an alternate cache file if it wants to.
1461 # Prefer explicitly selected file to automatically selected ones.
1462 if test -z "$CONFIG_SITE"; then
1463   if test "x$prefix" != xNONE; then
1464     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1465   else
1466     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1467   fi
1468 fi
1469 for ac_site_file in $CONFIG_SITE; do
1470   if test -r "$ac_site_file"; then
1471     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1472 echo "$as_me: loading site script $ac_site_file" >&6;}
1473     sed 's/^/| /' "$ac_site_file" >&5
1474     . "$ac_site_file"
1475   fi
1476 done
1477
1478
1479 # Check that the precious variables saved in the cache have kept the same
1480 # value.
1481 ac_cache_corrupted=false
1482 for ac_var in `(set) 2>&1 |
1483                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1484   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1485   eval ac_new_set=\$ac_env_${ac_var}_set
1486   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1487   eval ac_new_val="\$ac_env_${ac_var}_value"
1488   case $ac_old_set,$ac_new_set in
1489     set,)
1490       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1491 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1492       ac_cache_corrupted=: ;;
1493     ,set)
1494       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1495 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1496       ac_cache_corrupted=: ;;
1497     ,);;
1498     *)
1499       if test "x$ac_old_val" != "x$ac_new_val"; then
1500         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1501 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1502         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1503 echo "$as_me:   former value:  $ac_old_val" >&2;}
1504         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1505 echo "$as_me:   current value: $ac_new_val" >&2;}
1506         ac_cache_corrupted=:
1507       fi;;
1508   esac
1509   # Pass precious variables to config.status.
1510   if test "$ac_new_set" = set; then
1511     case $ac_new_val in
1512     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1513       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1514     *) ac_arg=$ac_var=$ac_new_val ;;
1515     esac
1516     case " $ac_configure_args " in
1517       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1518       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1519     esac
1520   fi
1521 done
1522 if $ac_cache_corrupted; then
1523   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1524 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1525   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1526 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1527    { (exit 1); exit 1; }; }
1528 fi
1529
1530 ac_ext=c
1531 ac_cpp='$CPP $CPPFLAGS'
1532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555 # set unset (borrowed from autoconf 2.49c)
1556 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
1557   ol_unset=unset
1558 else
1559   ol_unset=false
1560 fi
1561 # unset CDPATH
1562 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
1563
1564 ac_aux_dir=
1565 for ac_dir in build $srcdir/build; do
1566   if test -f $ac_dir/install-sh; then
1567     ac_aux_dir=$ac_dir
1568     ac_install_sh="$ac_aux_dir/install-sh -c"
1569     break
1570   elif test -f $ac_dir/install.sh; then
1571     ac_aux_dir=$ac_dir
1572     ac_install_sh="$ac_aux_dir/install.sh -c"
1573     break
1574   elif test -f $ac_dir/shtool; then
1575     ac_aux_dir=$ac_dir
1576     ac_install_sh="$ac_aux_dir/shtool install -c"
1577     break
1578   fi
1579 done
1580 if test -z "$ac_aux_dir"; then
1581   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1582 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1583    { (exit 1); exit 1; }; }
1584 fi
1585 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1586 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1587 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1588
1589 eval `$ac_aux_dir/version.sh`
1590 if test -z "$OL_STRING"; then
1591         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1592 echo "$as_me: error: could not determine version" >&2;}
1593    { (exit 1); exit 1; }; }
1594 fi
1595
1596 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
1597         ac_cv_shtool="$ac_aux_dir/shtool"
1598 else
1599         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1600 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1601    { (exit 1); exit 1; }; }
1602 fi
1603
1604 SHTOOL="$ac_cv_shtool"
1605
1606 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1607 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1608
1609 OPENLDAP_CVS=""
1610 if test -d $ac_aux_dir/CVS; then
1611         OPENLDAP_CVS="(from CVS sources) "
1612 fi
1613
1614 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1615
1616 # Make sure we can run config.sub.
1617 $ac_config_sub sun4 >/dev/null 2>&1 ||
1618   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1619 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1620    { (exit 1); exit 1; }; }
1621
1622 echo "$as_me:$LINENO: checking build system type" >&5
1623 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1624 if test "${ac_cv_build+set}" = set; then
1625   echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627   ac_cv_build_alias=$build_alias
1628 test -z "$ac_cv_build_alias" &&
1629   ac_cv_build_alias=`$ac_config_guess`
1630 test -z "$ac_cv_build_alias" &&
1631   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1632 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1633    { (exit 1); exit 1; }; }
1634 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1635   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1637    { (exit 1); exit 1; }; }
1638
1639 fi
1640 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1641 echo "${ECHO_T}$ac_cv_build" >&6
1642 build=$ac_cv_build
1643 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646
1647
1648 echo "$as_me:$LINENO: checking host system type" >&5
1649 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1650 if test "${ac_cv_host+set}" = set; then
1651   echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653   ac_cv_host_alias=$host_alias
1654 test -z "$ac_cv_host_alias" &&
1655   ac_cv_host_alias=$ac_cv_build_alias
1656 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1657   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1658 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1659    { (exit 1); exit 1; }; }
1660
1661 fi
1662 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1663 echo "${ECHO_T}$ac_cv_host" >&6
1664 host=$ac_cv_host
1665 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1668
1669
1670 echo "$as_me:$LINENO: checking target system type" >&5
1671 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1672 if test "${ac_cv_target+set}" = set; then
1673   echo $ECHO_N "(cached) $ECHO_C" >&6
1674 else
1675   ac_cv_target_alias=$target_alias
1676 test "x$ac_cv_target_alias" = "x" &&
1677   ac_cv_target_alias=$ac_cv_host_alias
1678 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1679   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1680 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1681    { (exit 1); exit 1; }; }
1682
1683 fi
1684 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1685 echo "${ECHO_T}$ac_cv_target" >&6
1686 target=$ac_cv_target
1687 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1690
1691
1692 # The aliases save the names the user supplied, while $host etc.
1693 # will get canonicalized.
1694 test -n "$target_alias" &&
1695   test "$program_prefix$program_suffix$program_transform_name" = \
1696     NONENONEs,x,x, &&
1697   program_prefix=${target_alias}-
1698
1699 am__api_version="1.9"
1700 # Find a good install program.  We prefer a C program (faster),
1701 # so one script is as good as another.  But avoid the broken or
1702 # incompatible versions:
1703 # SysV /etc/install, /usr/sbin/install
1704 # SunOS /usr/etc/install
1705 # IRIX /sbin/install
1706 # AIX /bin/install
1707 # AmigaOS /C/install, which installs bootblocks on floppy discs
1708 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1709 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1710 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1711 # OS/2's system install, which has a completely different semantic
1712 # ./install, which can be erroneously created by make from ./install.sh.
1713 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1714 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1715 if test -z "$INSTALL"; then
1716 if test "${ac_cv_path_install+set}" = set; then
1717   echo $ECHO_N "(cached) $ECHO_C" >&6
1718 else
1719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 for as_dir in $PATH
1721 do
1722   IFS=$as_save_IFS
1723   test -z "$as_dir" && as_dir=.
1724   # Account for people who put trailing slashes in PATH elements.
1725 case $as_dir/ in
1726   ./ | .// | /cC/* | \
1727   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1728   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1729   /usr/ucb/* ) ;;
1730   *)
1731     # OSF1 and SCO ODT 3.0 have their own names for install.
1732     # Don't use installbsd from OSF since it installs stuff as root
1733     # by default.
1734     for ac_prog in ginstall scoinst install; do
1735       for ac_exec_ext in '' $ac_executable_extensions; do
1736         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1737           if test $ac_prog = install &&
1738             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1739             # AIX install.  It has an incompatible calling convention.
1740             :
1741           elif test $ac_prog = install &&
1742             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1743             # program-specific install script used by HP pwplus--don't use.
1744             :
1745           else
1746             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1747             break 3
1748           fi
1749         fi
1750       done
1751     done
1752     ;;
1753 esac
1754 done
1755
1756
1757 fi
1758   if test "${ac_cv_path_install+set}" = set; then
1759     INSTALL=$ac_cv_path_install
1760   else
1761     # As a last resort, use the slow shell script.  We don't cache a
1762     # path for INSTALL within a source directory, because that will
1763     # break other packages using the cache if that directory is
1764     # removed, or if the path is relative.
1765     INSTALL=$ac_install_sh
1766   fi
1767 fi
1768 echo "$as_me:$LINENO: result: $INSTALL" >&5
1769 echo "${ECHO_T}$INSTALL" >&6
1770
1771 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1772 # It thinks the first close brace ends the variable substitution.
1773 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1774
1775 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1776
1777 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1778
1779 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1780 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1781 # Just in case
1782 sleep 1
1783 echo timestamp > conftest.file
1784 # Do `set' in a subshell so we don't clobber the current shell's
1785 # arguments.  Must try -L first in case configure is actually a
1786 # symlink; some systems play weird games with the mod time of symlinks
1787 # (eg FreeBSD returns the mod time of the symlink's containing
1788 # directory).
1789 if (
1790    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1791    if test "$*" = "X"; then
1792       # -L didn't work.
1793       set X `ls -t $srcdir/configure conftest.file`
1794    fi
1795    rm -f conftest.file
1796    if test "$*" != "X $srcdir/configure conftest.file" \
1797       && test "$*" != "X conftest.file $srcdir/configure"; then
1798
1799       # If neither matched, then we have a broken ls.  This can happen
1800       # if, for instance, CONFIG_SHELL is bash and it inherits a
1801       # broken ls alias from the environment.  This has actually
1802       # happened.  Such a system could not be considered "sane".
1803       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1804 alias in your environment" >&5
1805 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1806 alias in your environment" >&2;}
1807    { (exit 1); exit 1; }; }
1808    fi
1809
1810    test "$2" = conftest.file
1811    )
1812 then
1813    # Ok.
1814    :
1815 else
1816    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1817 Check your system clock" >&5
1818 echo "$as_me: error: newly created file is older than distributed files!
1819 Check your system clock" >&2;}
1820    { (exit 1); exit 1; }; }
1821 fi
1822 echo "$as_me:$LINENO: result: yes" >&5
1823 echo "${ECHO_T}yes" >&6
1824 test "$program_prefix" != NONE &&
1825   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1826 # Use a double $ so make ignores it.
1827 test "$program_suffix" != NONE &&
1828   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1829 # Double any \ or $.  echo might interpret backslashes.
1830 # By default was `s,x,x', remove it if useless.
1831 cat <<\_ACEOF >conftest.sed
1832 s/[\\$]/&&/g;s/;s,x,x,$//
1833 _ACEOF
1834 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1835 rm conftest.sed
1836
1837 # expand $ac_aux_dir to an absolute path
1838 am_aux_dir=`cd $ac_aux_dir && pwd`
1839
1840 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1841 # Use eval to expand $SHELL
1842 if eval "$MISSING --run true"; then
1843   am_missing_run="$MISSING --run "
1844 else
1845   am_missing_run=
1846   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1847 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1848 fi
1849
1850 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1851   # We used to keeping the `.' as first argument, in order to
1852   # allow $(mkdir_p) to be used without argument.  As in
1853   #   $(mkdir_p) $(somedir)
1854   # where $(somedir) is conditionally defined.  However this is wrong
1855   # for two reasons:
1856   #  1. if the package is installed by a user who cannot write `.'
1857   #     make install will fail,
1858   #  2. the above comment should most certainly read
1859   #     $(mkdir_p) $(DESTDIR)$(somedir)
1860   #     so it does not work when $(somedir) is undefined and
1861   #     $(DESTDIR) is not.
1862   #  To support the latter case, we have to write
1863   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1864   #  so the `.' trick is pointless.
1865   mkdir_p='mkdir -p --'
1866 else
1867   # On NextStep and OpenStep, the `mkdir' command does not
1868   # recognize any option.  It will interpret all options as
1869   # directories to create, and then abort because `.' already
1870   # exists.
1871   for d in ./-p ./--version;
1872   do
1873     test -d $d && rmdir $d
1874   done
1875   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1876   if test -f "$ac_aux_dir/mkinstalldirs"; then
1877     mkdir_p='$(mkinstalldirs)'
1878   else
1879     mkdir_p='$(install_sh) -d'
1880   fi
1881 fi
1882
1883 for ac_prog in gawk mawk nawk awk
1884 do
1885   # Extract the first word of "$ac_prog", so it can be a program name with args.
1886 set dummy $ac_prog; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_AWK+set}" = set; then
1890   echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892   if test -n "$AWK"; then
1893   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1894 else
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 for as_dir in $PATH
1897 do
1898   IFS=$as_save_IFS
1899   test -z "$as_dir" && as_dir=.
1900   for ac_exec_ext in '' $ac_executable_extensions; do
1901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902     ac_cv_prog_AWK="$ac_prog"
1903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904     break 2
1905   fi
1906 done
1907 done
1908
1909 fi
1910 fi
1911 AWK=$ac_cv_prog_AWK
1912 if test -n "$AWK"; then
1913   echo "$as_me:$LINENO: result: $AWK" >&5
1914 echo "${ECHO_T}$AWK" >&6
1915 else
1916   echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1918 fi
1919
1920   test -n "$AWK" && break
1921 done
1922
1923 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1924 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1925 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1926 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1927   echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929   cat >conftest.make <<\_ACEOF
1930 all:
1931         @echo 'ac_maketemp="$(MAKE)"'
1932 _ACEOF
1933 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1934 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1935 if test -n "$ac_maketemp"; then
1936   eval ac_cv_prog_make_${ac_make}_set=yes
1937 else
1938   eval ac_cv_prog_make_${ac_make}_set=no
1939 fi
1940 rm -f conftest.make
1941 fi
1942 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1943   echo "$as_me:$LINENO: result: yes" >&5
1944 echo "${ECHO_T}yes" >&6
1945   SET_MAKE=
1946 else
1947   echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949   SET_MAKE="MAKE=${MAKE-make}"
1950 fi
1951
1952 rm -rf .tst 2>/dev/null
1953 mkdir .tst 2>/dev/null
1954 if test -d .tst; then
1955   am__leading_dot=.
1956 else
1957   am__leading_dot=_
1958 fi
1959 rmdir .tst 2>/dev/null
1960
1961 # test to see if srcdir already configured
1962 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1963    test -f $srcdir/config.status; then
1964   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1965 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1966    { (exit 1); exit 1; }; }
1967 fi
1968
1969 # test whether we have cygpath
1970 if test -z "$CYGPATH_W"; then
1971   if (cygpath --version) >/dev/null 2>/dev/null; then
1972     CYGPATH_W='cygpath -w'
1973   else
1974     CYGPATH_W=echo
1975   fi
1976 fi
1977
1978
1979 # Define the identity of the package.
1980  PACKAGE=$OL_PACKAGE
1981  VERSION=$OL_VERSION
1982
1983
1984 # Some tools Automake needs.
1985
1986 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1987
1988
1989 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1990
1991
1992 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1993
1994
1995 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1996
1997
1998 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1999
2000 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2001
2002 # Installed binaries are usually stripped using `strip' when the user
2003 # run `make install-strip'.  However `strip' might not be the right
2004 # tool to use in cross-compilation environments, therefore Automake
2005 # will honor the `STRIP' environment variable to overrule this program.
2006 if test "$cross_compiling" != no; then
2007   if test -n "$ac_tool_prefix"; then
2008   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2009 set dummy ${ac_tool_prefix}strip; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_STRIP+set}" = set; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   if test -n "$STRIP"; then
2016   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2017 else
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021   IFS=$as_save_IFS
2022   test -z "$as_dir" && as_dir=.
2023   for ac_exec_ext in '' $ac_executable_extensions; do
2024   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027     break 2
2028   fi
2029 done
2030 done
2031
2032 fi
2033 fi
2034 STRIP=$ac_cv_prog_STRIP
2035 if test -n "$STRIP"; then
2036   echo "$as_me:$LINENO: result: $STRIP" >&5
2037 echo "${ECHO_T}$STRIP" >&6
2038 else
2039   echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2041 fi
2042
2043 fi
2044 if test -z "$ac_cv_prog_STRIP"; then
2045   ac_ct_STRIP=$STRIP
2046   # Extract the first word of "strip", so it can be a program name with args.
2047 set dummy strip; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2051   echo $ECHO_N "(cached) $ECHO_C" >&6
2052 else
2053   if test -n "$ac_ct_STRIP"; then
2054   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2055 else
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2058 do
2059   IFS=$as_save_IFS
2060   test -z "$as_dir" && as_dir=.
2061   for ac_exec_ext in '' $ac_executable_extensions; do
2062   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063     ac_cv_prog_ac_ct_STRIP="strip"
2064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065     break 2
2066   fi
2067 done
2068 done
2069
2070   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2071 fi
2072 fi
2073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2074 if test -n "$ac_ct_STRIP"; then
2075   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2076 echo "${ECHO_T}$ac_ct_STRIP" >&6
2077 else
2078   echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2080 fi
2081
2082   STRIP=$ac_ct_STRIP
2083 else
2084   STRIP="$ac_cv_prog_STRIP"
2085 fi
2086
2087 fi
2088 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2089
2090 # We need awk for the "check" target.  The system "awk" is bad on
2091 # some platforms.
2092 # Always define AMTAR for backward compatibility.
2093
2094 AMTAR=${AMTAR-"${am_missing_run}tar"}
2095
2096 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2097
2098
2099
2100
2101
2102 cat >>confdefs.h <<_ACEOF
2103 #define OPENLDAP_PACKAGE "$PACKAGE"
2104 _ACEOF
2105
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define OPENLDAP_VERSION "$VERSION"
2109 _ACEOF
2110
2111
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define LDAP_VENDOR_VERSION $OL_API_INC
2115 _ACEOF
2116
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2120 _ACEOF
2121
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2125 _ACEOF
2126
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2130 _ACEOF
2131
2132
2133 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2134
2135 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2136
2137 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2138
2139
2140                               ac_config_headers="$ac_config_headers include/portable.h include/ldap_features.h include/lber_types.h"
2141
2142 echo "$as_me:$LINENO: checking configure arguments" >&5
2143 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2144
2145
2146 top_builddir=`pwd`
2147
2148 ldap_subdir="/openldap"
2149
2150
2151 # Check whether --with-subdir or --without-subdir was given.
2152 if test "${with_subdir+set}" = set; then
2153   withval="$with_subdir"
2154   case "$withval" in
2155         no) ldap_subdir=""
2156                 ;;
2157         yes)
2158                 ;;
2159         /*|\\*)
2160                 ldap_subdir="$withval"
2161                 ;;
2162         *)
2163                 ldap_subdir="/$withval"
2164                 ;;
2165 esac
2166
2167 fi;
2168
2169 # OpenLDAP --enable-debug
2170         # Check whether --enable-debug or --disable-debug was given.
2171 if test "${enable_debug+set}" = set; then
2172   enableval="$enable_debug"
2173
2174         ol_arg=invalid
2175         for ol_val in auto yes no ; do
2176                 if test "$enableval" = "$ol_val" ; then
2177                         ol_arg="$ol_val"
2178                 fi
2179         done
2180         if test "$ol_arg" = "invalid" ; then
2181                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2182 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2183    { (exit 1); exit 1; }; }
2184         fi
2185         ol_enable_debug="$ol_arg"
2186
2187 else
2188         ol_enable_debug="yes"
2189 fi; # end --enable-debug
2190 # OpenLDAP --enable-dynamic
2191         # Check whether --enable-dynamic or --disable-dynamic was given.
2192 if test "${enable_dynamic+set}" = set; then
2193   enableval="$enable_dynamic"
2194
2195         ol_arg=invalid
2196         for ol_val in auto yes no ; do
2197                 if test "$enableval" = "$ol_val" ; then
2198                         ol_arg="$ol_val"
2199                 fi
2200         done
2201         if test "$ol_arg" = "invalid" ; then
2202                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2203 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2204    { (exit 1); exit 1; }; }
2205         fi
2206         ol_enable_dynamic="$ol_arg"
2207
2208 else
2209         ol_enable_dynamic="no"
2210 fi; # end --enable-dynamic
2211 # OpenLDAP --enable-syslog
2212         # Check whether --enable-syslog or --disable-syslog was given.
2213 if test "${enable_syslog+set}" = set; then
2214   enableval="$enable_syslog"
2215
2216         ol_arg=invalid
2217         for ol_val in auto yes no ; do
2218                 if test "$enableval" = "$ol_val" ; then
2219                         ol_arg="$ol_val"
2220                 fi
2221         done
2222         if test "$ol_arg" = "invalid" ; then
2223                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2224 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2225    { (exit 1); exit 1; }; }
2226         fi
2227         ol_enable_syslog="$ol_arg"
2228
2229 else
2230         ol_enable_syslog="auto"
2231 fi; # end --enable-syslog
2232 # OpenLDAP --enable-proctitle
2233         # Check whether --enable-proctitle or --disable-proctitle was given.
2234 if test "${enable_proctitle+set}" = set; then
2235   enableval="$enable_proctitle"
2236
2237         ol_arg=invalid
2238         for ol_val in auto yes no ; do
2239                 if test "$enableval" = "$ol_val" ; then
2240                         ol_arg="$ol_val"
2241                 fi
2242         done
2243         if test "$ol_arg" = "invalid" ; then
2244                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2245 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2246    { (exit 1); exit 1; }; }
2247         fi
2248         ol_enable_proctitle="$ol_arg"
2249
2250 else
2251         ol_enable_proctitle="yes"
2252 fi; # end --enable-proctitle
2253 ol_enable_referrals=${ol_enable_referrals-no}
2254 ol_enable_kbind=${ol_enable_kbind-no}
2255 # OpenLDAP --enable-ipv6
2256         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2257 if test "${enable_ipv6+set}" = set; then
2258   enableval="$enable_ipv6"
2259
2260         ol_arg=invalid
2261         for ol_val in auto yes no ; do
2262                 if test "$enableval" = "$ol_val" ; then
2263                         ol_arg="$ol_val"
2264                 fi
2265         done
2266         if test "$ol_arg" = "invalid" ; then
2267                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2268 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2269    { (exit 1); exit 1; }; }
2270         fi
2271         ol_enable_ipv6="$ol_arg"
2272
2273 else
2274         ol_enable_ipv6="auto"
2275 fi; # end --enable-ipv6
2276 # OpenLDAP --enable-local
2277         # Check whether --enable-local or --disable-local was given.
2278 if test "${enable_local+set}" = set; then
2279   enableval="$enable_local"
2280
2281         ol_arg=invalid
2282         for ol_val in auto yes no ; do
2283                 if test "$enableval" = "$ol_val" ; then
2284                         ol_arg="$ol_val"
2285                 fi
2286         done
2287         if test "$ol_arg" = "invalid" ; then
2288                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2289 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2290    { (exit 1); exit 1; }; }
2291         fi
2292         ol_enable_local="$ol_arg"
2293
2294 else
2295         ol_enable_local="auto"
2296 fi; # end --enable-local
2297
2298
2299 # OpenLDAP --with-cyrus_sasl
2300
2301 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2302 if test "${with_cyrus_sasl+set}" = set; then
2303   withval="$with_cyrus_sasl"
2304
2305         ol_arg=invalid
2306         for ol_val in auto yes no  ; do
2307                 if test "$withval" = "$ol_val" ; then
2308                         ol_arg="$ol_val"
2309                 fi
2310         done
2311         if test "$ol_arg" = "invalid" ; then
2312                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2313 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2314    { (exit 1); exit 1; }; }
2315         fi
2316         ol_with_cyrus_sasl="$ol_arg"
2317
2318 else
2319         ol_with_cyrus_sasl="auto"
2320 fi; # end --with-cyrus_sasl
2321
2322 # OpenLDAP --with-fetch
2323
2324 # Check whether --with-fetch or --without-fetch was given.
2325 if test "${with_fetch+set}" = set; then
2326   withval="$with_fetch"
2327
2328         ol_arg=invalid
2329         for ol_val in auto yes no  ; do
2330                 if test "$withval" = "$ol_val" ; then
2331                         ol_arg="$ol_val"
2332                 fi
2333         done
2334         if test "$ol_arg" = "invalid" ; then
2335                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2336 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2337    { (exit 1); exit 1; }; }
2338         fi
2339         ol_with_fetch="$ol_arg"
2340
2341 else
2342         ol_with_fetch="auto"
2343 fi; # end --with-fetch
2344
2345 ol_with_kerberos=${ol_with_kerberos-auto}
2346 # OpenLDAP --with-threads
2347
2348 # Check whether --with-threads or --without-threads was given.
2349 if test "${with_threads+set}" = set; then
2350   withval="$with_threads"
2351
2352         ol_arg=invalid
2353         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2354                 if test "$withval" = "$ol_val" ; then
2355                         ol_arg="$ol_val"
2356                 fi
2357         done
2358         if test "$ol_arg" = "invalid" ; then
2359                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2360 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2361    { (exit 1); exit 1; }; }
2362         fi
2363         ol_with_threads="$ol_arg"
2364
2365 else
2366         ol_with_threads="auto"
2367 fi; # end --with-threads
2368
2369 # OpenLDAP --with-tls
2370
2371 # Check whether --with-tls or --without-tls was given.
2372 if test "${with_tls+set}" = set; then
2373   withval="$with_tls"
2374
2375         ol_arg=invalid
2376         for ol_val in auto ssleay openssl yes no  ; do
2377                 if test "$withval" = "$ol_val" ; then
2378                         ol_arg="$ol_val"
2379                 fi
2380         done
2381         if test "$ol_arg" = "invalid" ; then
2382                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2383 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2384    { (exit 1); exit 1; }; }
2385         fi
2386         ol_with_tls="$ol_arg"
2387
2388 else
2389         ol_with_tls="auto"
2390 fi; # end --with-tls
2391
2392 # OpenLDAP --with-yielding_select
2393
2394 # Check whether --with-yielding_select or --without-yielding_select was given.
2395 if test "${with_yielding_select+set}" = set; then
2396   withval="$with_yielding_select"
2397
2398         ol_arg=invalid
2399         for ol_val in auto yes no manual  ; do
2400                 if test "$withval" = "$ol_val" ; then
2401                         ol_arg="$ol_val"
2402                 fi
2403         done
2404         if test "$ol_arg" = "invalid" ; then
2405                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2406 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2407    { (exit 1); exit 1; }; }
2408         fi
2409         ol_with_yielding_select="$ol_arg"
2410
2411 else
2412         ol_with_yielding_select="auto"
2413 fi; # end --with-yielding_select
2414
2415 # OpenLDAP --with-multiple_precision
2416
2417 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2418 if test "${with_multiple_precision+set}" = set; then
2419   withval="$with_multiple_precision"
2420
2421         ol_arg=invalid
2422         for ol_val in auto bignum gmp yes no  ; do
2423                 if test "$withval" = "$ol_val" ; then
2424                         ol_arg="$ol_val"
2425                 fi
2426         done
2427         if test "$ol_arg" = "invalid" ; then
2428                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2429 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2430    { (exit 1); exit 1; }; }
2431         fi
2432         ol_with_multiple_precision="$ol_arg"
2433
2434 else
2435         ol_with_multiple_precision="auto"
2436 fi; # end --with-multiple_precision
2437
2438
2439
2440
2441 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
2442 if test "${with_xxslapdoptions+set}" = set; then
2443   withval="$with_xxslapdoptions"
2444
2445 fi;
2446 # OpenLDAP --enable-slapd
2447         # Check whether --enable-slapd or --disable-slapd was given.
2448 if test "${enable_slapd+set}" = set; then
2449   enableval="$enable_slapd"
2450
2451         ol_arg=invalid
2452         for ol_val in auto yes no ; do
2453                 if test "$enableval" = "$ol_val" ; then
2454                         ol_arg="$ol_val"
2455                 fi
2456         done
2457         if test "$ol_arg" = "invalid" ; then
2458                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2459 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2460    { (exit 1); exit 1; }; }
2461         fi
2462         ol_enable_slapd="$ol_arg"
2463
2464 else
2465         ol_enable_slapd="yes"
2466 fi; # end --enable-slapd
2467 # OpenLDAP --enable-aci
2468         # Check whether --enable-aci or --disable-aci was given.
2469 if test "${enable_aci+set}" = set; then
2470   enableval="$enable_aci"
2471
2472         ol_arg=invalid
2473         for ol_val in auto yes no ; do
2474                 if test "$enableval" = "$ol_val" ; then
2475                         ol_arg="$ol_val"
2476                 fi
2477         done
2478         if test "$ol_arg" = "invalid" ; then
2479                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2480 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2481    { (exit 1); exit 1; }; }
2482         fi
2483         ol_enable_aci="$ol_arg"
2484
2485 else
2486         ol_enable_aci="no"
2487 fi; # end --enable-aci
2488 # OpenLDAP --enable-cleartext
2489         # Check whether --enable-cleartext or --disable-cleartext was given.
2490 if test "${enable_cleartext+set}" = set; then
2491   enableval="$enable_cleartext"
2492
2493         ol_arg=invalid
2494         for ol_val in auto yes no ; do
2495                 if test "$enableval" = "$ol_val" ; then
2496                         ol_arg="$ol_val"
2497                 fi
2498         done
2499         if test "$ol_arg" = "invalid" ; then
2500                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2501 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2502    { (exit 1); exit 1; }; }
2503         fi
2504         ol_enable_cleartext="$ol_arg"
2505
2506 else
2507         ol_enable_cleartext="yes"
2508 fi; # end --enable-cleartext
2509 # OpenLDAP --enable-crypt
2510         # Check whether --enable-crypt or --disable-crypt was given.
2511 if test "${enable_crypt+set}" = set; then
2512   enableval="$enable_crypt"
2513
2514         ol_arg=invalid
2515         for ol_val in auto yes no ; do
2516                 if test "$enableval" = "$ol_val" ; then
2517                         ol_arg="$ol_val"
2518                 fi
2519         done
2520         if test "$ol_arg" = "invalid" ; then
2521                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2522 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2523    { (exit 1); exit 1; }; }
2524         fi
2525         ol_enable_crypt="$ol_arg"
2526
2527 else
2528         ol_enable_crypt="no"
2529 fi; # end --enable-crypt
2530 # OpenLDAP --enable-lmpasswd
2531         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2532 if test "${enable_lmpasswd+set}" = set; then
2533   enableval="$enable_lmpasswd"
2534
2535         ol_arg=invalid
2536         for ol_val in auto yes no ; do
2537                 if test "$enableval" = "$ol_val" ; then
2538                         ol_arg="$ol_val"
2539                 fi
2540         done
2541         if test "$ol_arg" = "invalid" ; then
2542                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2543 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2544    { (exit 1); exit 1; }; }
2545         fi
2546         ol_enable_lmpasswd="$ol_arg"
2547
2548 else
2549         ol_enable_lmpasswd="no"
2550 fi; # end --enable-lmpasswd
2551 # OpenLDAP --enable-spasswd
2552         # Check whether --enable-spasswd or --disable-spasswd was given.
2553 if test "${enable_spasswd+set}" = set; then
2554   enableval="$enable_spasswd"
2555
2556         ol_arg=invalid
2557         for ol_val in auto yes no ; do
2558                 if test "$enableval" = "$ol_val" ; then
2559                         ol_arg="$ol_val"
2560                 fi
2561         done
2562         if test "$ol_arg" = "invalid" ; then
2563                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2564 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2565    { (exit 1); exit 1; }; }
2566         fi
2567         ol_enable_spasswd="$ol_arg"
2568
2569 else
2570         ol_enable_spasswd="no"
2571 fi; # end --enable-spasswd
2572 # OpenLDAP --enable-modules
2573         # Check whether --enable-modules or --disable-modules was given.
2574 if test "${enable_modules+set}" = set; then
2575   enableval="$enable_modules"
2576
2577         ol_arg=invalid
2578         for ol_val in auto yes no ; do
2579                 if test "$enableval" = "$ol_val" ; then
2580                         ol_arg="$ol_val"
2581                 fi
2582         done
2583         if test "$ol_arg" = "invalid" ; then
2584                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2585 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2586    { (exit 1); exit 1; }; }
2587         fi
2588         ol_enable_modules="$ol_arg"
2589
2590 else
2591         ol_enable_modules="no"
2592 fi; # end --enable-modules
2593 ol_enable_multimaster=${ol_enable_multimaster-no}
2594 # OpenLDAP --enable-rewrite
2595         # Check whether --enable-rewrite or --disable-rewrite was given.
2596 if test "${enable_rewrite+set}" = set; then
2597   enableval="$enable_rewrite"
2598
2599         ol_arg=invalid
2600         for ol_val in auto yes no ; do
2601                 if test "$enableval" = "$ol_val" ; then
2602                         ol_arg="$ol_val"
2603                 fi
2604         done
2605         if test "$ol_arg" = "invalid" ; then
2606                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2607 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2608    { (exit 1); exit 1; }; }
2609         fi
2610         ol_enable_rewrite="$ol_arg"
2611
2612 else
2613         ol_enable_rewrite="auto"
2614 fi; # end --enable-rewrite
2615 # OpenLDAP --enable-rlookups
2616         # Check whether --enable-rlookups or --disable-rlookups was given.
2617 if test "${enable_rlookups+set}" = set; then
2618   enableval="$enable_rlookups"
2619
2620         ol_arg=invalid
2621         for ol_val in auto yes no ; do
2622                 if test "$enableval" = "$ol_val" ; then
2623                         ol_arg="$ol_val"
2624                 fi
2625         done
2626         if test "$ol_arg" = "invalid" ; then
2627                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2628 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2629    { (exit 1); exit 1; }; }
2630         fi
2631         ol_enable_rlookups="$ol_arg"
2632
2633 else
2634         ol_enable_rlookups="no"
2635 fi; # end --enable-rlookups
2636 # OpenLDAP --enable-slapi
2637         # Check whether --enable-slapi or --disable-slapi was given.
2638 if test "${enable_slapi+set}" = set; then
2639   enableval="$enable_slapi"
2640
2641         ol_arg=invalid
2642         for ol_val in auto yes no ; do
2643                 if test "$enableval" = "$ol_val" ; then
2644                         ol_arg="$ol_val"
2645                 fi
2646         done
2647         if test "$ol_arg" = "invalid" ; then
2648                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2649 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2650    { (exit 1); exit 1; }; }
2651         fi
2652         ol_enable_slapi="$ol_arg"
2653
2654 else
2655         ol_enable_slapi="no"
2656 fi; # end --enable-slapi
2657 # OpenLDAP --enable-slp
2658         # Check whether --enable-slp or --disable-slp was given.
2659 if test "${enable_slp+set}" = set; then
2660   enableval="$enable_slp"
2661
2662         ol_arg=invalid
2663         for ol_val in auto yes no ; do
2664                 if test "$enableval" = "$ol_val" ; then
2665                         ol_arg="$ol_val"
2666                 fi
2667         done
2668         if test "$ol_arg" = "invalid" ; then
2669                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2670 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2671    { (exit 1); exit 1; }; }
2672         fi
2673         ol_enable_slp="$ol_arg"
2674
2675 else
2676         ol_enable_slp="no"
2677 fi; # end --enable-slp
2678 # OpenLDAP --enable-wrappers
2679         # Check whether --enable-wrappers or --disable-wrappers was given.
2680 if test "${enable_wrappers+set}" = set; then
2681   enableval="$enable_wrappers"
2682
2683         ol_arg=invalid
2684         for ol_val in auto yes no ; do
2685                 if test "$enableval" = "$ol_val" ; then
2686                         ol_arg="$ol_val"
2687                 fi
2688         done
2689         if test "$ol_arg" = "invalid" ; then
2690                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2691 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2692    { (exit 1); exit 1; }; }
2693         fi
2694         ol_enable_wrappers="$ol_arg"
2695
2696 else
2697         ol_enable_wrappers="no"
2698 fi; # end --enable-wrappers
2699
2700 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
2701         passwd perl relay shell sql"
2702
2703
2704 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
2705 if test "${with_xxslapbackends+set}" = set; then
2706   withval="$with_xxslapbackends"
2707
2708 fi;
2709
2710 # OpenLDAP --enable-backends
2711         # Check whether --enable-backends or --disable-backends was given.
2712 if test "${enable_backends+set}" = set; then
2713   enableval="$enable_backends"
2714
2715         ol_arg=invalid
2716         for ol_val in no yes mod ; do
2717                 if test "$enableval" = "$ol_val" ; then
2718                         ol_arg="$ol_val"
2719                 fi
2720         done
2721         if test "$ol_arg" = "invalid" ; then
2722                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2723 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2724    { (exit 1); exit 1; }; }
2725         fi
2726         ol_enable_backends="$ol_arg"
2727
2728 fi; # end --enable-backends
2729 test -n "$ol_enable_backends" && ol_dflt_backends="$ol_enable_backends"
2730 # OpenLDAP --enable-bdb
2731         # Check whether --enable-bdb or --disable-bdb was given.
2732 if test "${enable_bdb+set}" = set; then
2733   enableval="$enable_bdb"
2734
2735         ol_arg=invalid
2736         for ol_val in no yes mod ; do
2737                 if test "$enableval" = "$ol_val" ; then
2738                         ol_arg="$ol_val"
2739                 fi
2740         done
2741         if test "$ol_arg" = "invalid" ; then
2742                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2743 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2744    { (exit 1); exit 1; }; }
2745         fi
2746         ol_enable_bdb="$ol_arg"
2747
2748 else
2749         ol_enable_bdb="${ol_dflt_backends-yes}"
2750 fi; # end --enable-bdb
2751 # OpenLDAP --enable-dnssrv
2752         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2753 if test "${enable_dnssrv+set}" = set; then
2754   enableval="$enable_dnssrv"
2755
2756         ol_arg=invalid
2757         for ol_val in no yes mod ; do
2758                 if test "$enableval" = "$ol_val" ; then
2759                         ol_arg="$ol_val"
2760                 fi
2761         done
2762         if test "$ol_arg" = "invalid" ; then
2763                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2764 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2765    { (exit 1); exit 1; }; }
2766         fi
2767         ol_enable_dnssrv="$ol_arg"
2768
2769 else
2770         ol_enable_dnssrv="${ol_dflt_backends-no}"
2771 fi; # end --enable-dnssrv
2772 # OpenLDAP --enable-hdb
2773         # Check whether --enable-hdb or --disable-hdb was given.
2774 if test "${enable_hdb+set}" = set; then
2775   enableval="$enable_hdb"
2776
2777         ol_arg=invalid
2778         for ol_val in no yes mod ; do
2779                 if test "$enableval" = "$ol_val" ; then
2780                         ol_arg="$ol_val"
2781                 fi
2782         done
2783         if test "$ol_arg" = "invalid" ; then
2784                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2785 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2786    { (exit 1); exit 1; }; }
2787         fi
2788         ol_enable_hdb="$ol_arg"
2789
2790 else
2791         ol_enable_hdb="${ol_dflt_backends-yes}"
2792 fi; # end --enable-hdb
2793 # OpenLDAP --enable-ldap
2794         # Check whether --enable-ldap or --disable-ldap was given.
2795 if test "${enable_ldap+set}" = set; then
2796   enableval="$enable_ldap"
2797
2798         ol_arg=invalid
2799         for ol_val in no yes mod ; do
2800                 if test "$enableval" = "$ol_val" ; then
2801                         ol_arg="$ol_val"
2802                 fi
2803         done
2804         if test "$ol_arg" = "invalid" ; then
2805                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2806 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2807    { (exit 1); exit 1; }; }
2808         fi
2809         ol_enable_ldap="$ol_arg"
2810
2811 else
2812         ol_enable_ldap="${ol_dflt_backends-no}"
2813 fi; # end --enable-ldap
2814 # OpenLDAP --enable-ldbm
2815         # Check whether --enable-ldbm or --disable-ldbm was given.
2816 if test "${enable_ldbm+set}" = set; then
2817   enableval="$enable_ldbm"
2818
2819         ol_arg=invalid
2820         for ol_val in no yes mod ; do
2821                 if test "$enableval" = "$ol_val" ; then
2822                         ol_arg="$ol_val"
2823                 fi
2824         done
2825         if test "$ol_arg" = "invalid" ; then
2826                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2827 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2828    { (exit 1); exit 1; }; }
2829         fi
2830         ol_enable_ldbm="$ol_arg"
2831
2832 else
2833         ol_enable_ldbm="${ol_dflt_backends-no}"
2834 fi; # end --enable-ldbm
2835 # OpenLDAP --with-ldbm_api
2836
2837 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2838 if test "${with_ldbm_api+set}" = set; then
2839   withval="$with_ldbm_api"
2840
2841         ol_arg=invalid
2842         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2843                 if test "$withval" = "$ol_val" ; then
2844                         ol_arg="$ol_val"
2845                 fi
2846         done
2847         if test "$ol_arg" = "invalid" ; then
2848                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_api" >&5
2849 echo "$as_me: error: bad value $withval for --with-ldbm_api" >&2;}
2850    { (exit 1); exit 1; }; }
2851         fi
2852         ol_with_ldbm_api="$ol_arg"
2853
2854 else
2855         ol_with_ldbm_api="auto"
2856 fi; # end --with-ldbm_api
2857
2858 # OpenLDAP --with-ldbm_type
2859
2860 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2861 if test "${with_ldbm_type+set}" = set; then
2862   withval="$with_ldbm_type"
2863
2864         ol_arg=invalid
2865         for ol_val in auto btree hash ; do
2866                 if test "$withval" = "$ol_val" ; then
2867                         ol_arg="$ol_val"
2868                 fi
2869         done
2870         if test "$ol_arg" = "invalid" ; then
2871                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_type" >&5
2872 echo "$as_me: error: bad value $withval for --with-ldbm_type" >&2;}
2873    { (exit 1); exit 1; }; }
2874         fi
2875         ol_with_ldbm_type="$ol_arg"
2876
2877 else
2878         ol_with_ldbm_type="auto"
2879 fi; # end --with-ldbm_type
2880
2881 # OpenLDAP --enable-meta
2882         # Check whether --enable-meta or --disable-meta was given.
2883 if test "${enable_meta+set}" = set; then
2884   enableval="$enable_meta"
2885
2886         ol_arg=invalid
2887         for ol_val in no yes mod ; do
2888                 if test "$enableval" = "$ol_val" ; then
2889                         ol_arg="$ol_val"
2890                 fi
2891         done
2892         if test "$ol_arg" = "invalid" ; then
2893                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2894 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2895    { (exit 1); exit 1; }; }
2896         fi
2897         ol_enable_meta="$ol_arg"
2898
2899 else
2900         ol_enable_meta="${ol_dflt_backends-no}"
2901 fi; # end --enable-meta
2902 # OpenLDAP --enable-monitor
2903         # Check whether --enable-monitor or --disable-monitor was given.
2904 if test "${enable_monitor+set}" = set; then
2905   enableval="$enable_monitor"
2906
2907         ol_arg=invalid
2908         for ol_val in no yes mod ; do
2909                 if test "$enableval" = "$ol_val" ; then
2910                         ol_arg="$ol_val"
2911                 fi
2912         done
2913         if test "$ol_arg" = "invalid" ; then
2914                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2915 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2916    { (exit 1); exit 1; }; }
2917         fi
2918         ol_enable_monitor="$ol_arg"
2919
2920 else
2921         ol_enable_monitor="${ol_dflt_backends-yes}"
2922 fi; # end --enable-monitor
2923 # OpenLDAP --enable-null
2924         # Check whether --enable-null or --disable-null was given.
2925 if test "${enable_null+set}" = set; then
2926   enableval="$enable_null"
2927
2928         ol_arg=invalid
2929         for ol_val in no yes mod ; do
2930                 if test "$enableval" = "$ol_val" ; then
2931                         ol_arg="$ol_val"
2932                 fi
2933         done
2934         if test "$ol_arg" = "invalid" ; then
2935                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2936 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2937    { (exit 1); exit 1; }; }
2938         fi
2939         ol_enable_null="$ol_arg"
2940
2941 else
2942         ol_enable_null="${ol_dflt_backends-no}"
2943 fi; # end --enable-null
2944 # OpenLDAP --enable-passwd
2945         # Check whether --enable-passwd or --disable-passwd was given.
2946 if test "${enable_passwd+set}" = set; then
2947   enableval="$enable_passwd"
2948
2949         ol_arg=invalid
2950         for ol_val in no yes mod ; do
2951                 if test "$enableval" = "$ol_val" ; then
2952                         ol_arg="$ol_val"
2953                 fi
2954         done
2955         if test "$ol_arg" = "invalid" ; then
2956                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2957 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2958    { (exit 1); exit 1; }; }
2959         fi
2960         ol_enable_passwd="$ol_arg"
2961
2962 else
2963         ol_enable_passwd="${ol_dflt_backends-no}"
2964 fi; # end --enable-passwd
2965 # OpenLDAP --enable-perl
2966         # Check whether --enable-perl or --disable-perl was given.
2967 if test "${enable_perl+set}" = set; then
2968   enableval="$enable_perl"
2969
2970         ol_arg=invalid
2971         for ol_val in no yes mod ; do
2972                 if test "$enableval" = "$ol_val" ; then
2973                         ol_arg="$ol_val"
2974                 fi
2975         done
2976         if test "$ol_arg" = "invalid" ; then
2977                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
2978 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
2979    { (exit 1); exit 1; }; }
2980         fi
2981         ol_enable_perl="$ol_arg"
2982
2983 else
2984         ol_enable_perl="${ol_dflt_backends-no}"
2985 fi; # end --enable-perl
2986 # OpenLDAP --enable-relay
2987         # Check whether --enable-relay or --disable-relay was given.
2988 if test "${enable_relay+set}" = set; then
2989   enableval="$enable_relay"
2990
2991         ol_arg=invalid
2992         for ol_val in no yes mod ; do
2993                 if test "$enableval" = "$ol_val" ; then
2994                         ol_arg="$ol_val"
2995                 fi
2996         done
2997         if test "$ol_arg" = "invalid" ; then
2998                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
2999 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3000    { (exit 1); exit 1; }; }
3001         fi
3002         ol_enable_relay="$ol_arg"
3003
3004 else
3005         ol_enable_relay="${ol_dflt_backends-yes}"
3006 fi; # end --enable-relay
3007 # OpenLDAP --enable-shell
3008         # Check whether --enable-shell or --disable-shell was given.
3009 if test "${enable_shell+set}" = set; then
3010   enableval="$enable_shell"
3011
3012         ol_arg=invalid
3013         for ol_val in no yes mod ; do
3014                 if test "$enableval" = "$ol_val" ; then
3015                         ol_arg="$ol_val"
3016                 fi
3017         done
3018         if test "$ol_arg" = "invalid" ; then
3019                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3020 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3021    { (exit 1); exit 1; }; }
3022         fi
3023         ol_enable_shell="$ol_arg"
3024
3025 else
3026         ol_enable_shell="${ol_dflt_backends-no}"
3027 fi; # end --enable-shell
3028 # OpenLDAP --enable-sql
3029         # Check whether --enable-sql or --disable-sql was given.
3030 if test "${enable_sql+set}" = set; then
3031   enableval="$enable_sql"
3032
3033         ol_arg=invalid
3034         for ol_val in no yes mod ; do
3035                 if test "$enableval" = "$ol_val" ; then
3036                         ol_arg="$ol_val"
3037                 fi
3038         done
3039         if test "$ol_arg" = "invalid" ; then
3040                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3041 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3042    { (exit 1); exit 1; }; }
3043         fi
3044         ol_enable_sql="$ol_arg"
3045
3046 else
3047         ol_enable_sql="${ol_dflt_backends-no}"
3048 fi; # end --enable-sql
3049
3050 Overlays="accesslog denyop dyngroup dynlist glue lastmod ppolicy proxycache \
3051         refint retcode rwm syncprov translucent unique"
3052
3053
3054 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
3055 if test "${with_xxslapoverlays+set}" = set; then
3056   withval="$with_xxslapoverlays"
3057
3058 fi;
3059
3060 # OpenLDAP --enable-overlays
3061         # Check whether --enable-overlays or --disable-overlays was given.
3062 if test "${enable_overlays+set}" = set; then
3063   enableval="$enable_overlays"
3064
3065         ol_arg=invalid
3066         for ol_val in no yes mod ; do
3067                 if test "$enableval" = "$ol_val" ; then
3068                         ol_arg="$ol_val"
3069                 fi
3070         done
3071         if test "$ol_arg" = "invalid" ; then
3072                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3073 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3074    { (exit 1); exit 1; }; }
3075         fi
3076         ol_enable_overlays="$ol_arg"
3077
3078 fi; # end --enable-overlays
3079 test -n "$ol_enable_overlays" && ol_dflt_overlays="$ol_enable_overlays"
3080 # OpenLDAP --enable-accesslog
3081         # Check whether --enable-accesslog or --disable-accesslog was given.
3082 if test "${enable_accesslog+set}" = set; then
3083   enableval="$enable_accesslog"
3084
3085         ol_arg=invalid
3086         for ol_val in no yes mod ; do
3087                 if test "$enableval" = "$ol_val" ; then
3088                         ol_arg="$ol_val"
3089                 fi
3090         done
3091         if test "$ol_arg" = "invalid" ; then
3092                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3093 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3094    { (exit 1); exit 1; }; }
3095         fi
3096         ol_enable_accesslog="$ol_arg"
3097
3098 else
3099         ol_enable_accesslog="${ol_dflt_overlays-no}"
3100 fi; # end --enable-accesslog
3101
3102 # OpenLDAP --enable-denyop
3103         # Check whether --enable-denyop or --disable-denyop was given.
3104 if test "${enable_denyop+set}" = set; then
3105   enableval="$enable_denyop"
3106
3107         ol_arg=invalid
3108         for ol_val in no yes mod ; do
3109                 if test "$enableval" = "$ol_val" ; then
3110                         ol_arg="$ol_val"
3111                 fi
3112         done
3113         if test "$ol_arg" = "invalid" ; then
3114                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3115 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3116    { (exit 1); exit 1; }; }
3117         fi
3118         ol_enable_denyop="$ol_arg"
3119
3120 else
3121         ol_enable_denyop="${ol_dflt_overlays-no}"
3122 fi; # end --enable-denyop
3123
3124 # OpenLDAP --enable-dyngroup
3125         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3126 if test "${enable_dyngroup+set}" = set; then
3127   enableval="$enable_dyngroup"
3128
3129         ol_arg=invalid
3130         for ol_val in no yes mod ; do
3131                 if test "$enableval" = "$ol_val" ; then
3132                         ol_arg="$ol_val"
3133                 fi
3134         done
3135         if test "$ol_arg" = "invalid" ; then
3136                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3137 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3138    { (exit 1); exit 1; }; }
3139         fi
3140         ol_enable_dyngroup="$ol_arg"
3141
3142 else
3143         ol_enable_dyngroup="${ol_dflt_overlays-no}"
3144 fi; # end --enable-dyngroup
3145
3146 # OpenLDAP --enable-dynlist
3147         # Check whether --enable-dynlist or --disable-dynlist was given.
3148 if test "${enable_dynlist+set}" = set; then
3149   enableval="$enable_dynlist"
3150
3151         ol_arg=invalid
3152         for ol_val in no yes mod ; do
3153                 if test "$enableval" = "$ol_val" ; then
3154                         ol_arg="$ol_val"
3155                 fi
3156         done
3157         if test "$ol_arg" = "invalid" ; then
3158                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3159 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3160    { (exit 1); exit 1; }; }
3161         fi
3162         ol_enable_dynlist="$ol_arg"
3163
3164 else
3165         ol_enable_dynlist="${ol_dflt_overlays-no}"
3166 fi; # end --enable-dynlist
3167
3168 # OpenLDAP --enable-glue
3169         # Check whether --enable-glue or --disable-glue was given.
3170 if test "${enable_glue+set}" = set; then
3171   enableval="$enable_glue"
3172
3173         ol_arg=invalid
3174         for ol_val in no yes mod ; do
3175                 if test "$enableval" = "$ol_val" ; then
3176                         ol_arg="$ol_val"
3177                 fi
3178         done
3179         if test "$ol_arg" = "invalid" ; then
3180                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3181 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3182    { (exit 1); exit 1; }; }
3183         fi
3184         ol_enable_glue="$ol_arg"
3185
3186 else
3187         ol_enable_glue="${ol_dflt_overlays-yes}"
3188 fi; # end --enable-glue
3189
3190 # OpenLDAP --enable-lastmod
3191         # Check whether --enable-lastmod or --disable-lastmod was given.
3192 if test "${enable_lastmod+set}" = set; then
3193   enableval="$enable_lastmod"
3194
3195         ol_arg=invalid
3196         for ol_val in no yes mod ; do
3197                 if test "$enableval" = "$ol_val" ; then
3198                         ol_arg="$ol_val"
3199                 fi
3200         done
3201         if test "$ol_arg" = "invalid" ; then
3202                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3203 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3204    { (exit 1); exit 1; }; }
3205         fi
3206         ol_enable_lastmod="$ol_arg"
3207
3208 else
3209         ol_enable_lastmod="${ol_dflt_overlays-no}"
3210 fi; # end --enable-lastmod
3211
3212 # OpenLDAP --enable-ppolicy
3213         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3214 if test "${enable_ppolicy+set}" = set; then
3215   enableval="$enable_ppolicy"
3216
3217         ol_arg=invalid
3218         for ol_val in no yes mod ; do
3219                 if test "$enableval" = "$ol_val" ; then
3220                         ol_arg="$ol_val"
3221                 fi
3222         done
3223         if test "$ol_arg" = "invalid" ; then
3224                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3225 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3226    { (exit 1); exit 1; }; }
3227         fi
3228         ol_enable_ppolicy="$ol_arg"
3229
3230 else
3231         ol_enable_ppolicy="${ol_dflt_overlays-no}"
3232 fi; # end --enable-ppolicy
3233
3234 # OpenLDAP --enable-proxycache
3235         # Check whether --enable-proxycache or --disable-proxycache was given.
3236 if test "${enable_proxycache+set}" = set; then
3237   enableval="$enable_proxycache"
3238
3239         ol_arg=invalid
3240         for ol_val in no yes mod ; do
3241                 if test "$enableval" = "$ol_val" ; then
3242                         ol_arg="$ol_val"
3243                 fi
3244         done
3245         if test "$ol_arg" = "invalid" ; then
3246                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3247 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3248    { (exit 1); exit 1; }; }
3249         fi
3250         ol_enable_proxycache="$ol_arg"
3251
3252 else
3253         ol_enable_proxycache="${ol_dflt_overlays-no}"
3254 fi; # end --enable-proxycache
3255
3256 # OpenLDAP --enable-refint
3257         # Check whether --enable-refint or --disable-refint was given.
3258 if test "${enable_refint+set}" = set; then
3259   enableval="$enable_refint"
3260
3261         ol_arg=invalid
3262         for ol_val in no yes mod ; do
3263                 if test "$enableval" = "$ol_val" ; then
3264                         ol_arg="$ol_val"
3265                 fi
3266         done
3267         if test "$ol_arg" = "invalid" ; then
3268                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3269 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3270    { (exit 1); exit 1; }; }
3271         fi
3272         ol_enable_refint="$ol_arg"
3273
3274 else
3275         ol_enable_refint="${ol_dflt_overlays-no}"
3276 fi; # end --enable-refint
3277
3278 # OpenLDAP --enable-retcode
3279         # Check whether --enable-retcode or --disable-retcode was given.
3280 if test "${enable_retcode+set}" = set; then
3281   enableval="$enable_retcode"
3282
3283         ol_arg=invalid
3284         for ol_val in no yes mod ; do
3285                 if test "$enableval" = "$ol_val" ; then
3286                         ol_arg="$ol_val"
3287                 fi
3288         done
3289         if test "$ol_arg" = "invalid" ; then
3290                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3291 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3292    { (exit 1); exit 1; }; }
3293         fi
3294         ol_enable_retcode="$ol_arg"
3295
3296 else
3297         ol_enable_retcode="${ol_dflt_overlays-no}"
3298 fi; # end --enable-retcode
3299
3300 # OpenLDAP --enable-rwm
3301         # Check whether --enable-rwm or --disable-rwm was given.
3302 if test "${enable_rwm+set}" = set; then
3303   enableval="$enable_rwm"
3304
3305         ol_arg=invalid
3306         for ol_val in no yes mod ; do
3307                 if test "$enableval" = "$ol_val" ; then
3308                         ol_arg="$ol_val"
3309                 fi
3310         done
3311         if test "$ol_arg" = "invalid" ; then
3312                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3313 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3314    { (exit 1); exit 1; }; }
3315         fi
3316         ol_enable_rwm="$ol_arg"
3317
3318 else
3319         ol_enable_rwm="${ol_dflt_overlays-no}"
3320 fi; # end --enable-rwm
3321
3322 # OpenLDAP --enable-syncprov
3323         # Check whether --enable-syncprov or --disable-syncprov was given.
3324 if test "${enable_syncprov+set}" = set; then
3325   enableval="$enable_syncprov"
3326
3327         ol_arg=invalid
3328         for ol_val in no yes mod ; do
3329                 if test "$enableval" = "$ol_val" ; then
3330                         ol_arg="$ol_val"
3331                 fi
3332         done
3333         if test "$ol_arg" = "invalid" ; then
3334                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3335 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3336    { (exit 1); exit 1; }; }
3337         fi
3338         ol_enable_syncprov="$ol_arg"
3339
3340 else
3341         ol_enable_syncprov="${ol_dflt_overlays-yes}"
3342 fi; # end --enable-syncprov
3343
3344 # OpenLDAP --enable-translucent
3345         # Check whether --enable-translucent or --disable-translucent was given.
3346 if test "${enable_translucent+set}" = set; then
3347   enableval="$enable_translucent"
3348
3349         ol_arg=invalid
3350         for ol_val in no yes mod ; do
3351                 if test "$enableval" = "$ol_val" ; then
3352                         ol_arg="$ol_val"
3353                 fi
3354         done
3355         if test "$ol_arg" = "invalid" ; then
3356                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3357 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3358    { (exit 1); exit 1; }; }
3359         fi
3360         ol_enable_translucent="$ol_arg"
3361
3362 else
3363         ol_enable_translucent="${ol_dflt_overlays-no}"
3364 fi; # end --enable-translucent
3365
3366 # OpenLDAP --enable-unique
3367         # Check whether --enable-unique or --disable-unique was given.
3368 if test "${enable_unique+set}" = set; then
3369   enableval="$enable_unique"
3370
3371         ol_arg=invalid
3372         for ol_val in no yes mod ; do
3373                 if test "$enableval" = "$ol_val" ; then
3374                         ol_arg="$ol_val"
3375                 fi
3376         done
3377         if test "$ol_arg" = "invalid" ; then
3378                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3379 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3380    { (exit 1); exit 1; }; }
3381         fi
3382         ol_enable_unique="$ol_arg"
3383
3384 else
3385         ol_enable_unique="${ol_dflt_overlays-no}"
3386 fi; # end --enable-unique
3387
3388
3389
3390
3391 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
3392 if test "${with_xxslurpdoptions+set}" = set; then
3393   withval="$with_xxslurpdoptions"
3394
3395 fi;
3396 # OpenLDAP --enable-slurpd
3397         # Check whether --enable-slurpd or --disable-slurpd was given.
3398 if test "${enable_slurpd+set}" = set; then
3399   enableval="$enable_slurpd"
3400
3401         ol_arg=invalid
3402         for ol_val in auto yes no ; do
3403                 if test "$enableval" = "$ol_val" ; then
3404                         ol_arg="$ol_val"
3405                 fi
3406         done
3407         if test "$ol_arg" = "invalid" ; then
3408                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3409 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3410    { (exit 1); exit 1; }; }
3411         fi
3412         ol_enable_slurpd="$ol_arg"
3413
3414 else
3415         ol_enable_slurpd="auto"
3416 fi; # end --enable-slurpd
3417
3418
3419 # Check whether --with-xxliboptions or --without-xxliboptions was given.
3420 if test "${with_xxliboptions+set}" = set; then
3421   withval="$with_xxliboptions"
3422
3423 fi;
3424 # Check whether --enable-static or --disable-static was given.
3425 if test "${enable_static+set}" = set; then
3426   enableval="$enable_static"
3427   p=${PACKAGE-default}
3428     case $enableval in
3429     yes) enable_static=yes ;;
3430     no) enable_static=no ;;
3431     *)
3432      enable_static=no
3433       # Look at the argument we got.  We use all the common list separators.
3434       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3435       for pkg in $enableval; do
3436         IFS="$lt_save_ifs"
3437         if test "X$pkg" = "X$p"; then
3438           enable_static=yes
3439         fi
3440       done
3441       IFS="$lt_save_ifs"
3442       ;;
3443     esac
3444 else
3445   enable_static=yes
3446 fi;
3447
3448 # Check whether --enable-shared or --disable-shared was given.
3449 if test "${enable_shared+set}" = set; then
3450   enableval="$enable_shared"
3451   p=${PACKAGE-default}
3452     case $enableval in
3453     yes) enable_shared=yes ;;
3454     no) enable_shared=no ;;
3455     *)
3456       enable_shared=no
3457       # Look at the argument we got.  We use all the common list separators.
3458       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3459       for pkg in $enableval; do
3460         IFS="$lt_save_ifs"
3461         if test "X$pkg" = "X$p"; then
3462           enable_shared=yes
3463         fi
3464       done
3465       IFS="$lt_save_ifs"
3466       ;;
3467     esac
3468 else
3469   enable_shared=yes
3470 fi;
3471
3472
3473
3474 # validate options
3475 if test $ol_enable_slapd = no ; then
3476                 if test $ol_enable_slapi = yes ; then
3477                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3478 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3479         fi
3480         case "$ol_enable_backends" in yes | mod)
3481                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3482 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3483         esac
3484         for i in $Backends; do
3485                 eval "ol_tmp=\$ol_enable_$i"
3486                 if test $ol_tmp != no ; then
3487                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3488 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3489                         eval "ol_enable_$i=no"
3490                 fi
3491         done
3492         if test $ol_enable_modules = yes ; then
3493                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3494 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3495         fi
3496         if test $ol_enable_multimaster = yes ; then
3497                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3498 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3499         fi
3500         if test $ol_enable_wrappers = yes ; then
3501                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3502 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3503         fi
3504         if test $ol_enable_rlookups = yes ; then
3505                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3506 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3507         fi
3508         if test $ol_enable_aci = yes ; then
3509                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3510 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3511         fi
3512         if test $ol_with_ldbm_api != auto ; then
3513                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&5
3514 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&2;}
3515         fi
3516         if test $ol_with_ldbm_type != auto ; then
3517                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&5
3518 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&2;}
3519         fi
3520         if test $ol_enable_slurpd = yes ; then
3521                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3522 echo "$as_me: error: slurpd requires slapd" >&2;}
3523    { (exit 1); exit 1; }; }
3524         fi
3525         if test $ol_enable_rewrite = yes ; then
3526                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3527 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3528         fi
3529                 case "$ol_enable_overlays" in yes | mod)
3530                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3531 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3532         esac
3533         for i in $Overlays; do
3534                 eval "ol_tmp=\$ol_enable_$i"
3535                 if test $ol_tmp != no ; then
3536                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3537 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3538                         eval "ol_enable_$i=no"
3539                 fi
3540         done
3541
3542         # force settings to no
3543         ol_enable_slapi=no
3544
3545         ol_enable_backends=
3546         ol_enable_overlays=
3547         ol_enable_modules=no
3548         ol_enable_multimaster=no
3549         ol_enable_rlookups=no
3550         ol_enable_aci=no
3551         ol_enable_wrappers=no
3552
3553         ol_with_ldbm_api=no
3554         ol_with_ldbm_type=no
3555
3556         ol_enable_slurpd=no
3557
3558         ol_enable_rewrite=no
3559
3560 elif test $ol_enable_ldbm = no ; then
3561
3562         if test $ol_with_ldbm_api != auto ; then
3563                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&5
3564 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&2;}
3565         fi
3566
3567         if test $ol_with_ldbm_type != auto ; then
3568                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&5
3569 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&2;}
3570         fi
3571
3572         if test $ol_enable_modules != yes -a \
3573                 $ol_enable_bdb = no -a \
3574                 $ol_enable_dnssrv = no -a \
3575                 $ol_enable_hdb = no -a \
3576                 $ol_enable_ldap = no -a \
3577                 $ol_enable_meta = no -a \
3578                 $ol_enable_monitor = no -a \
3579                 $ol_enable_null = no -a \
3580                 $ol_enable_passwd = no -a \
3581                 $ol_enable_perl = no -a \
3582                 $ol_enable_relay = no -a \
3583                 $ol_enable_shell = no -a \
3584                 $ol_enable_sql = no ; then
3585
3586                 if test $ol_enable_slapd = yes ; then
3587                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3588 echo "$as_me: error: slapd requires a backend" >&2;}
3589    { (exit 1); exit 1; }; }
3590                 else
3591                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3592 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3593                         ol_enable_slapd=no
3594                 fi
3595         fi
3596
3597         ol_with_ldbm_api=no
3598         ol_with_ldbm_type=no
3599
3600         if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3601                 ol_with_ldbm_api=berkeley
3602         fi
3603
3604 else
3605                 if test $ol_with_ldbm_api = gdbm -a \
3606                 $ol_with_ldbm_type = btree ; then
3607                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3608 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3609    { (exit 1); exit 1; }; }
3610         fi
3611         if test $ol_with_ldbm_api = mdbm -a \
3612                 $ol_with_ldbm_type = btree ; then
3613                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3614 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3615    { (exit 1); exit 1; }; }
3616         fi
3617         if test $ol_with_ldbm_api = ndbm -a \
3618                 $ol_with_ldbm_type = btree ; then
3619                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3620 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3621    { (exit 1); exit 1; }; }
3622         fi
3623
3624         if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3625                 if test $ol_with_ldbm_api = auto ; then
3626                         ol_with_ldbm_api=berkeley
3627                 elif test $ol_with_ldbm_api != berkeley ; then
3628                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3629 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3630    { (exit 1); exit 1; }; }
3631                 fi
3632         fi
3633 fi
3634
3635 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3636         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3637 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3638    { (exit 1); exit 1; }; }
3639 fi
3640
3641 if test $ol_enable_slurpd = yes ; then
3642                 if test $ol_with_threads = no ; then
3643                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3644 echo "$as_me: error: slurpd requires threads" >&2;}
3645    { (exit 1); exit 1; }; }
3646         fi
3647 fi
3648
3649 if test $ol_enable_lmpasswd = yes ; then
3650         if test $ol_with_tls = no ; then
3651                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3652 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3653    { (exit 1); exit 1; }; }
3654         fi
3655 fi
3656
3657 if test $ol_enable_kbind = yes ; then
3658         if test $ol_with_kerberos = no ; then
3659                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3660 echo "$as_me: error: options require --with-kerberos" >&2;}
3661    { (exit 1); exit 1; }; }
3662         elif test $ol_with_kerberos = auto ; then
3663                 ol_with_kerberos=yes
3664         fi
3665
3666 elif test $ol_enable_kbind = no ; then
3667         if test $ol_with_kerberos = auto ; then
3668                 ol_with_kerberos=no
3669         elif test $ol_with_kerberos != no ; then
3670                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3671 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3672                 ol_with_kerberos=no
3673         fi
3674 fi
3675
3676 if test $ol_enable_spasswd = yes ; then
3677         if test $ol_with_cyrus_sasl = no ; then
3678                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3679 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3680    { (exit 1); exit 1; }; }
3681         fi
3682         ol_with_cyrus_sasl=yes
3683 fi
3684
3685 echo "$as_me:$LINENO: result: done" >&5
3686 echo "${ECHO_T}done" >&6
3687
3688 LDAP_LIBS=
3689 LDBM_LIBS=
3690 LTHREAD_LIBS=
3691 LUTIL_LIBS=
3692
3693 SLAPD_LIBS=
3694 SLURPD_LIBS=
3695
3696 BUILD_SLAPD=no
3697 BUILD_SLURPD=no
3698
3699 BUILD_THREAD=no
3700
3701 BUILD_SLAPI=no
3702 SLAPD_SLAPI_DEPEND=
3703
3704 BUILD_BDB=no
3705 BUILD_DNSSRV=no
3706 BUILD_HDB=no
3707 BUILD_LDAP=no
3708 BUILD_LDBM=no
3709 BUILD_META=no
3710 BUILD_MONITOR=no
3711 BUILD_NULL=no
3712 BUILD_PASSWD=no
3713 BUILD_PERL=no
3714 BUILD_RELAY=no
3715 BUILD_SHELL=no
3716 BUILD_SQL=no
3717
3718 BUILD_ACCESSLOG=no
3719 BUILD_DENYOP=no
3720 BUILD_DYNGROUP=no
3721 BUILD_DYNLIST=no
3722 BUILD_GLUE=no
3723 BUILD_LASTMOD=no
3724 BUILD_PPOLICY=no
3725 BUILD_PROXYCACHE=no
3726 BUILD_REFINT=no
3727 BUILD_RETCODE=no
3728 BUILD_RWM=no
3729 BUILD_SYNCPROV=no
3730 BUILD_TRANSLUCENT=no
3731 BUILD_UNIQUE=no
3732
3733 SLAPD_STATIC_OVERLAYS=
3734 SLAPD_DYNAMIC_OVERLAYS=
3735
3736 SLAPD_MODULES_LDFLAGS=
3737 SLAPD_MODULES_CPPFLAGS=
3738
3739 SLAPD_STATIC_BACKENDS=back-ldif
3740 SLAPD_DYNAMIC_BACKENDS=
3741
3742 SLAPD_PERL_LDFLAGS=
3743 MOD_PERL_LDFLAGS=
3744 PERL_CPPFLAGS=
3745
3746 SLAPD_SQL_LDFLAGS=
3747 SLAPD_SQL_LIBS=
3748 SLAPD_SQL_INCLUDES=
3749
3750 KRB4_LIBS=
3751 KRB5_LIBS=
3752 SASL_LIBS=
3753 TLS_LIBS=
3754 MODULES_LIBS=
3755 SLAPI_LIBS=
3756 LIBSLAPI=
3757 LIBSLAPITOOLS=
3758 AUTH_LIBS=
3759
3760 SLAPD_SLP_LIBS=
3761 SLAPD_GMP_LIBS=
3762
3763
3764
3765 cat >>confdefs.h <<\_ACEOF
3766 #define HAVE_MKVERSION 1
3767 _ACEOF
3768
3769
3770
3771
3772 ol_aix_threads=no
3773 case "$target" in
3774 *-*-aix*)       if test -z "$CC" ; then
3775                 case "$ol_with_threads" in
3776                 auto | yes |  posix) ol_aix_threads=yes ;;
3777                 esac
3778         fi
3779 ;;
3780 esac
3781
3782 if test $ol_aix_threads = yes ; then
3783         if test -z "${CC}" ; then
3784                 for ac_prog in cc_r xlc_r cc
3785 do
3786   # Extract the first word of "$ac_prog", so it can be a program name with args.
3787 set dummy $ac_prog; ac_word=$2
3788 echo "$as_me:$LINENO: checking for $ac_word" >&5
3789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3790 if test "${ac_cv_prog_CC+set}" = set; then
3791   echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793   if test -n "$CC"; then
3794   ac_cv_prog_CC="$CC" # Let the user override the test.
3795 else
3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 for as_dir in $PATH
3798 do
3799   IFS=$as_save_IFS
3800   test -z "$as_dir" && as_dir=.
3801   for ac_exec_ext in '' $ac_executable_extensions; do
3802   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3803     ac_cv_prog_CC="$ac_prog"
3804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3805     break 2
3806   fi
3807 done
3808 done
3809
3810 fi
3811 fi
3812 CC=$ac_cv_prog_CC
3813 if test -n "$CC"; then
3814   echo "$as_me:$LINENO: result: $CC" >&5
3815 echo "${ECHO_T}$CC" >&6
3816 else
3817   echo "$as_me:$LINENO: result: no" >&5
3818 echo "${ECHO_T}no" >&6
3819 fi
3820
3821   test -n "$CC" && break
3822 done
3823
3824
3825                 if test "$CC" = cc ; then
3826                                                 if test $ol_with_threads != auto ; then
3827                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3828 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3829    { (exit 1); exit 1; }; }
3830                         else
3831                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3832 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3833                         fi
3834                         ol_with_threads=no
3835                 fi
3836         fi
3837
3838         if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3839                 ol_with_threads=posix
3840                 ol_cv_pthread_create=yes
3841         fi
3842 fi
3843
3844 if test -z "${CC}"; then
3845         for ac_prog in cc gcc
3846 do
3847   # Extract the first word of "$ac_prog", so it can be a program name with args.
3848 set dummy $ac_prog; ac_word=$2
3849 echo "$as_me:$LINENO: checking for $ac_word" >&5
3850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3851 if test "${ac_cv_prog_CC+set}" = set; then
3852   echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854   if test -n "$CC"; then
3855   ac_cv_prog_CC="$CC" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3859 do
3860   IFS=$as_save_IFS
3861   test -z "$as_dir" && as_dir=.
3862   for ac_exec_ext in '' $ac_executable_extensions; do
3863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864     ac_cv_prog_CC="$ac_prog"
3865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3866     break 2
3867   fi
3868 done
3869 done
3870
3871 fi
3872 fi
3873 CC=$ac_cv_prog_CC
3874 if test -n "$CC"; then
3875   echo "$as_me:$LINENO: result: $CC" >&5
3876 echo "${ECHO_T}$CC" >&6
3877 else
3878   echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3880 fi
3881
3882   test -n "$CC" && break
3883 done
3884 test -n "$CC" || CC="missing"
3885
3886
3887         if test "${CC}" = "missing" ; then
3888                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
3889 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
3890    { (exit 1); exit 1; }; }
3891         fi
3892 fi
3893
3894 if test -z "${AR}"; then
3895         for ac_prog in ar gar
3896 do
3897   # Extract the first word of "$ac_prog", so it can be a program name with args.
3898 set dummy $ac_prog; ac_word=$2
3899 echo "$as_me:$LINENO: checking for $ac_word" >&5
3900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3901 if test "${ac_cv_prog_AR+set}" = set; then
3902   echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904   if test -n "$AR"; then
3905   ac_cv_prog_AR="$AR" # Let the user override the test.
3906 else
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3909 do
3910   IFS=$as_save_IFS
3911   test -z "$as_dir" && as_dir=.
3912   for ac_exec_ext in '' $ac_executable_extensions; do
3913   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3914     ac_cv_prog_AR="$ac_prog"
3915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3916     break 2
3917   fi
3918 done
3919 done
3920
3921 fi
3922 fi
3923 AR=$ac_cv_prog_AR
3924 if test -n "$AR"; then
3925   echo "$as_me:$LINENO: result: $AR" >&5
3926 echo "${ECHO_T}$AR" >&6
3927 else
3928   echo "$as_me:$LINENO: result: no" >&5
3929 echo "${ECHO_T}no" >&6
3930 fi
3931
3932   test -n "$AR" && break
3933 done
3934 test -n "$AR" || AR="missing"
3935
3936
3937         if test "${AR}" = "missing" ; then
3938                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
3939 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
3940    { (exit 1); exit 1; }; }
3941         fi
3942 fi
3943
3944
3945
3946
3947
3948 # Check whether --enable-fast-install or --disable-fast-install was given.
3949 if test "${enable_fast_install+set}" = set; then
3950   enableval="$enable_fast_install"
3951   p=${PACKAGE-default}
3952     case $enableval in
3953     yes) enable_fast_install=yes ;;
3954     no) enable_fast_install=no ;;
3955     *)
3956       enable_fast_install=no
3957       # Look at the argument we got.  We use all the common list separators.
3958       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3959       for pkg in $enableval; do
3960         IFS="$lt_save_ifs"
3961         if test "X$pkg" = "X$p"; then
3962           enable_fast_install=yes
3963         fi
3964       done
3965       IFS="$lt_save_ifs"
3966       ;;
3967     esac
3968 else
3969   enable_fast_install=yes
3970 fi;
3971
3972 DEPDIR="${am__leading_dot}deps"
3973
3974           ac_config_commands="$ac_config_commands depfiles"
3975
3976
3977 am_make=${MAKE-make}
3978 cat > confinc << 'END'
3979 am__doit:
3980         @echo done
3981 .PHONY: am__doit
3982 END
3983 # If we don't find an include directive, just comment out the code.
3984 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3985 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3986 am__include="#"
3987 am__quote=
3988 _am_result=none
3989 # First try GNU make style include.
3990 echo "include confinc" > confmf
3991 # We grep out `Entering directory' and `Leaving directory'
3992 # messages which can occur if `w' ends up in MAKEFLAGS.
3993 # In particular we don't look at `^make:' because GNU make might
3994 # be invoked under some other name (usually "gmake"), in which
3995 # case it prints its new name instead of `make'.
3996 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3997    am__include=include
3998    am__quote=
3999    _am_result=GNU
4000 fi
4001 # Now try BSD make style include.
4002 if test "$am__include" = "#"; then
4003    echo '.include "confinc"' > confmf
4004    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4005       am__include=.include
4006       am__quote="\""
4007       _am_result=BSD
4008    fi
4009 fi
4010
4011
4012 echo "$as_me:$LINENO: result: $_am_result" >&5
4013 echo "${ECHO_T}$_am_result" >&6
4014 rm -f confinc confmf
4015
4016 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4017 if test "${enable_dependency_tracking+set}" = set; then
4018   enableval="$enable_dependency_tracking"
4019
4020 fi;
4021 if test "x$enable_dependency_tracking" != xno; then
4022   am_depcomp="$ac_aux_dir/depcomp"
4023   AMDEPBACKSLASH='\'
4024 fi
4025
4026
4027 if test "x$enable_dependency_tracking" != xno; then
4028   AMDEP_TRUE=
4029   AMDEP_FALSE='#'
4030 else
4031   AMDEP_TRUE='#'
4032   AMDEP_FALSE=
4033 fi
4034
4035
4036
4037 ac_ext=c
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042 if test -n "$ac_tool_prefix"; then
4043   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4044 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4045 echo "$as_me:$LINENO: checking for $ac_word" >&5
4046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4047 if test "${ac_cv_prog_CC+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050   if test -n "$CC"; then
4051   ac_cv_prog_CC="$CC" # Let the user override the test.
4052 else
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4055 do
4056   IFS=$as_save_IFS
4057   test -z "$as_dir" && as_dir=.
4058   for ac_exec_ext in '' $ac_executable_extensions; do
4059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4062     break 2
4063   fi
4064 done
4065 done
4066
4067 fi
4068 fi
4069 CC=$ac_cv_prog_CC
4070 if test -n "$CC"; then
4071   echo "$as_me:$LINENO: result: $CC" >&5
4072 echo "${ECHO_T}$CC" >&6
4073 else
4074   echo "$as_me:$LINENO: result: no" >&5
4075 echo "${ECHO_T}no" >&6
4076 fi
4077
4078 fi
4079 if test -z "$ac_cv_prog_CC"; then
4080   ac_ct_CC=$CC
4081   # Extract the first word of "gcc", so it can be a program name with args.
4082 set dummy gcc; ac_word=$2
4083 echo "$as_me:$LINENO: checking for $ac_word" >&5
4084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4086   echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088   if test -n "$ac_ct_CC"; then
4089   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4090 else
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH
4093 do
4094   IFS=$as_save_IFS
4095   test -z "$as_dir" && as_dir=.
4096   for ac_exec_ext in '' $ac_executable_extensions; do
4097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098     ac_cv_prog_ac_ct_CC="gcc"
4099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4100     break 2
4101   fi
4102 done
4103 done
4104
4105 fi
4106 fi
4107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4108 if test -n "$ac_ct_CC"; then
4109   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4110 echo "${ECHO_T}$ac_ct_CC" >&6
4111 else
4112   echo "$as_me:$LINENO: result: no" >&5
4113 echo "${ECHO_T}no" >&6
4114 fi
4115
4116   CC=$ac_ct_CC
4117 else
4118   CC="$ac_cv_prog_CC"
4119 fi
4120
4121 if test -z "$CC"; then
4122   if test -n "$ac_tool_prefix"; then
4123   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4124 set dummy ${ac_tool_prefix}cc; ac_word=$2
4125 echo "$as_me:$LINENO: checking for $ac_word" >&5
4126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4127 if test "${ac_cv_prog_CC+set}" = set; then
4128   echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130   if test -n "$CC"; then
4131   ac_cv_prog_CC="$CC" # Let the user override the test.
4132 else
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH
4135 do
4136   IFS=$as_save_IFS
4137   test -z "$as_dir" && as_dir=.
4138   for ac_exec_ext in '' $ac_executable_extensions; do
4139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4140     ac_cv_prog_CC="${ac_tool_prefix}cc"
4141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142     break 2
4143   fi
4144 done
4145 done
4146
4147 fi
4148 fi
4149 CC=$ac_cv_prog_CC
4150 if test -n "$CC"; then
4151   echo "$as_me:$LINENO: result: $CC" >&5
4152 echo "${ECHO_T}$CC" >&6
4153 else
4154   echo "$as_me:$LINENO: result: no" >&5
4155 echo "${ECHO_T}no" >&6
4156 fi
4157
4158 fi
4159 if test -z "$ac_cv_prog_CC"; then
4160   ac_ct_CC=$CC
4161   # Extract the first word of "cc", so it can be a program name with args.
4162 set dummy cc; ac_word=$2
4163 echo "$as_me:$LINENO: checking for $ac_word" >&5
4164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4165 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4166   echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168   if test -n "$ac_ct_CC"; then
4169   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4170 else
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH
4173 do
4174   IFS=$as_save_IFS
4175   test -z "$as_dir" && as_dir=.
4176   for ac_exec_ext in '' $ac_executable_extensions; do
4177   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178     ac_cv_prog_ac_ct_CC="cc"
4179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180     break 2
4181   fi
4182 done
4183 done
4184
4185 fi
4186 fi
4187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4188 if test -n "$ac_ct_CC"; then
4189   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4190 echo "${ECHO_T}$ac_ct_CC" >&6
4191 else
4192   echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6
4194 fi
4195
4196   CC=$ac_ct_CC
4197 else
4198   CC="$ac_cv_prog_CC"
4199 fi
4200
4201 fi
4202 if test -z "$CC"; then
4203   # Extract the first word of "cc", so it can be a program name with args.
4204 set dummy cc; ac_word=$2
4205 echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4207 if test "${ac_cv_prog_CC+set}" = set; then
4208   echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210   if test -n "$CC"; then
4211   ac_cv_prog_CC="$CC" # Let the user override the test.
4212 else
4213   ac_prog_rejected=no
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4216 do
4217   IFS=$as_save_IFS
4218   test -z "$as_dir" && as_dir=.
4219   for ac_exec_ext in '' $ac_executable_extensions; do
4220   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4222        ac_prog_rejected=yes
4223        continue
4224      fi
4225     ac_cv_prog_CC="cc"
4226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4227     break 2
4228   fi
4229 done
4230 done
4231
4232 if test $ac_prog_rejected = yes; then
4233   # We found a bogon in the path, so make sure we never use it.
4234   set dummy $ac_cv_prog_CC
4235   shift
4236   if test $# != 0; then
4237     # We chose a different compiler from the bogus one.
4238     # However, it has the same basename, so the bogon will be chosen
4239     # first if we set CC to just the basename; use the full file name.
4240     shift
4241     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4242   fi
4243 fi
4244 fi
4245 fi
4246 CC=$ac_cv_prog_CC
4247 if test -n "$CC"; then
4248   echo "$as_me:$LINENO: result: $CC" >&5
4249 echo "${ECHO_T}$CC" >&6
4250 else
4251   echo "$as_me:$LINENO: result: no" >&5
4252 echo "${ECHO_T}no" >&6
4253 fi
4254
4255 fi
4256 if test -z "$CC"; then
4257   if test -n "$ac_tool_prefix"; then
4258   for ac_prog in cl
4259   do
4260     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4262 echo "$as_me:$LINENO: checking for $ac_word" >&5
4263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4264 if test "${ac_cv_prog_CC+set}" = set; then
4265   echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267   if test -n "$CC"; then
4268   ac_cv_prog_CC="$CC" # Let the user override the test.
4269 else
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH
4272 do
4273   IFS=$as_save_IFS
4274   test -z "$as_dir" && as_dir=.
4275   for ac_exec_ext in '' $ac_executable_extensions; do
4276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279     break 2
4280   fi
4281 done
4282 done
4283
4284 fi
4285 fi
4286 CC=$ac_cv_prog_CC
4287 if test -n "$CC"; then
4288   echo "$as_me:$LINENO: result: $CC" >&5
4289 echo "${ECHO_T}$CC" >&6
4290 else
4291   echo "$as_me:$LINENO: result: no" >&5
4292 echo "${ECHO_T}no" >&6
4293 fi
4294
4295     test -n "$CC" && break
4296   done
4297 fi
4298 if test -z "$CC"; then
4299   ac_ct_CC=$CC
4300   for ac_prog in cl
4301 do
4302   # Extract the first word of "$ac_prog", so it can be a program name with args.
4303 set dummy $ac_prog; ac_word=$2
4304 echo "$as_me:$LINENO: checking for $ac_word" >&5
4305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4306 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4307   echo $ECHO_N "(cached) $ECHO_C" >&6
4308 else
4309   if test -n "$ac_ct_CC"; then
4310   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4311 else
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4314 do
4315   IFS=$as_save_IFS
4316   test -z "$as_dir" && as_dir=.
4317   for ac_exec_ext in '' $ac_executable_extensions; do
4318   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4319     ac_cv_prog_ac_ct_CC="$ac_prog"
4320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4321     break 2
4322   fi
4323 done
4324 done
4325
4326 fi
4327 fi
4328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4329 if test -n "$ac_ct_CC"; then
4330   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4331 echo "${ECHO_T}$ac_ct_CC" >&6
4332 else
4333   echo "$as_me:$LINENO: result: no" >&5
4334 echo "${ECHO_T}no" >&6
4335 fi
4336
4337   test -n "$ac_ct_CC" && break
4338 done
4339
4340   CC=$ac_ct_CC
4341 fi
4342
4343 fi
4344
4345
4346 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4347 See \`config.log' for more details." >&5
4348 echo "$as_me: error: no acceptable C compiler found in \$PATH
4349 See \`config.log' for more details." >&2;}
4350    { (exit 1); exit 1; }; }
4351
4352 # Provide some information about the compiler.
4353 echo "$as_me:$LINENO:" \
4354      "checking for C compiler version" >&5
4355 ac_compiler=`set X $ac_compile; echo $2`
4356 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4357   (eval $ac_compiler --version </dev/null >&5) 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); }
4361 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4362   (eval $ac_compiler -v </dev/null >&5) 2>&5
4363   ac_status=$?
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); }
4366 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4367   (eval $ac_compiler -V </dev/null >&5) 2>&5
4368   ac_status=$?
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); }
4371
4372 cat >conftest.$ac_ext <<_ACEOF
4373 /* confdefs.h.  */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h.  */
4378
4379 int
4380 main ()
4381 {
4382
4383   ;
4384   return 0;
4385 }
4386 _ACEOF
4387 ac_clean_files_save=$ac_clean_files
4388 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4389 # Try to create an executable without -o first, disregard a.out.
4390 # It will help us diagnose broken compilers, and finding out an intuition
4391 # of exeext.
4392 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4393 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4394 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4395 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4396   (eval $ac_link_default) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; then
4400   # Find the output, starting from the most likely.  This scheme is
4401 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4402 # resort.
4403
4404 # Be careful to initialize this variable, since it used to be cached.
4405 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4406 ac_cv_exeext=
4407 # b.out is created by i960 compilers.
4408 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4409 do
4410   test -f "$ac_file" || continue
4411   case $ac_file in
4412     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4413         ;;
4414     conftest.$ac_ext )
4415         # This is the source file.
4416         ;;
4417     [ab].out )
4418         # We found the default executable, but exeext='' is most
4419         # certainly right.
4420         break;;
4421     *.* )
4422         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4423         # FIXME: I believe we export ac_cv_exeext for Libtool,
4424         # but it would be cool to find out if it's true.  Does anybody
4425         # maintain Libtool? --akim.
4426         export ac_cv_exeext
4427         break;;
4428     * )
4429         break;;
4430   esac
4431 done
4432 else
4433   echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4437 See \`config.log' for more details." >&5
4438 echo "$as_me: error: C compiler cannot create executables
4439 See \`config.log' for more details." >&2;}
4440    { (exit 77); exit 77; }; }
4441 fi
4442
4443 ac_exeext=$ac_cv_exeext
4444 echo "$as_me:$LINENO: result: $ac_file" >&5
4445 echo "${ECHO_T}$ac_file" >&6
4446
4447 # Check the compiler produces executables we can run.  If not, either
4448 # the compiler is broken, or we cross compile.
4449 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4450 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4451 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4452 # If not cross compiling, check that we can run a simple program.
4453 if test "$cross_compiling" != yes; then
4454   if { ac_try='./$ac_file'
4455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456   (eval $ac_try) 2>&5
4457   ac_status=$?
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); }; }; then
4460     cross_compiling=no
4461   else
4462     if test "$cross_compiling" = maybe; then
4463         cross_compiling=yes
4464     else
4465         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4466 If you meant to cross compile, use \`--host'.
4467 See \`config.log' for more details." >&5
4468 echo "$as_me: error: cannot run C compiled programs.
4469 If you meant to cross compile, use \`--host'.
4470 See \`config.log' for more details." >&2;}
4471    { (exit 1); exit 1; }; }
4472     fi
4473   fi
4474 fi
4475 echo "$as_me:$LINENO: result: yes" >&5
4476 echo "${ECHO_T}yes" >&6
4477
4478 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4479 ac_clean_files=$ac_clean_files_save
4480 # Check the compiler produces executables we can run.  If not, either
4481 # the compiler is broken, or we cross compile.
4482 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4483 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4484 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4485 echo "${ECHO_T}$cross_compiling" >&6
4486
4487 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4488 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4490   (eval $ac_link) 2>&5
4491   ac_status=$?
4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493   (exit $ac_status); }; then
4494   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4495 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4496 # work properly (i.e., refer to `conftest.exe'), while it won't with
4497 # `rm'.
4498 for ac_file in conftest.exe conftest conftest.*; do
4499   test -f "$ac_file" || continue
4500   case $ac_file in
4501     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4502     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4503           export ac_cv_exeext
4504           break;;
4505     * ) break;;
4506   esac
4507 done
4508 else
4509   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4510 See \`config.log' for more details." >&5
4511 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4512 See \`config.log' for more details." >&2;}
4513    { (exit 1); exit 1; }; }
4514 fi
4515
4516 rm -f conftest$ac_cv_exeext
4517 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4518 echo "${ECHO_T}$ac_cv_exeext" >&6
4519
4520 rm -f conftest.$ac_ext
4521 EXEEXT=$ac_cv_exeext
4522 ac_exeext=$EXEEXT
4523 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4524 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4525 if test "${ac_cv_objext+set}" = set; then
4526   echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528   cat >conftest.$ac_ext <<_ACEOF
4529 /* confdefs.h.  */
4530 _ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h.  */
4534
4535 int
4536 main ()
4537 {
4538
4539   ;
4540   return 0;
4541 }
4542 _ACEOF
4543 rm -f conftest.o conftest.obj
4544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545   (eval $ac_compile) 2>&5
4546   ac_status=$?
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); }; then
4549   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4550   case $ac_file in
4551     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4552     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4553        break;;
4554   esac
4555 done
4556 else
4557   echo "$as_me: failed program was:" >&5
4558 sed 's/^/| /' conftest.$ac_ext >&5
4559
4560 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4561 See \`config.log' for more details." >&5
4562 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4563 See \`config.log' for more details." >&2;}
4564    { (exit 1); exit 1; }; }
4565 fi
4566
4567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4568 fi
4569 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4570 echo "${ECHO_T}$ac_cv_objext" >&6
4571 OBJEXT=$ac_cv_objext
4572 ac_objext=$OBJEXT
4573 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4574 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4575 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578   cat >conftest.$ac_ext <<_ACEOF
4579 /* confdefs.h.  */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h.  */
4584
4585 int
4586 main ()
4587 {
4588 #ifndef __GNUC__
4589        choke me
4590 #endif
4591
4592   ;
4593   return 0;
4594 }
4595 _ACEOF
4596 rm -f conftest.$ac_objext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598   (eval $ac_compile) 2>conftest.er1
4599   ac_status=$?
4600   grep -v '^ *+' conftest.er1 >conftest.err
4601   rm -f conftest.er1
4602   cat conftest.err >&5
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); } &&
4605          { ac_try='test -z "$ac_c_werror_flag"
4606                          || test ! -s conftest.err'
4607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608   (eval $ac_try) 2>&5
4609   ac_status=$?
4610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); }; } &&
4612          { ac_try='test -s conftest.$ac_objext'
4613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614   (eval $ac_try) 2>&5
4615   ac_status=$?
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); }; }; then
4618   ac_compiler_gnu=yes
4619 else
4620   echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4622
4623 ac_compiler_gnu=no
4624 fi
4625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4626 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4627
4628 fi
4629 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4630 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4631 GCC=`test $ac_compiler_gnu = yes && echo yes`
4632 ac_test_CFLAGS=${CFLAGS+set}
4633 ac_save_CFLAGS=$CFLAGS
4634 CFLAGS="-g"
4635 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4636 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4637 if test "${ac_cv_prog_cc_g+set}" = set; then
4638   echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640   cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h.  */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h.  */
4646
4647 int
4648 main ()
4649 {
4650
4651   ;
4652   return 0;
4653 }
4654 _ACEOF
4655 rm -f conftest.$ac_objext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657   (eval $ac_compile) 2>conftest.er1
4658   ac_status=$?
4659   grep -v '^ *+' conftest.er1 >conftest.err
4660   rm -f conftest.er1
4661   cat conftest.err >&5
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); } &&
4664          { ac_try='test -z "$ac_c_werror_flag"
4665                          || test ! -s conftest.err'
4666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667   (eval $ac_try) 2>&5
4668   ac_status=$?
4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); }; } &&
4671          { ac_try='test -s conftest.$ac_objext'
4672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673   (eval $ac_try) 2>&5
4674   ac_status=$?
4675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676   (exit $ac_status); }; }; then
4677   ac_cv_prog_cc_g=yes
4678 else
4679   echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4681
4682 ac_cv_prog_cc_g=no
4683 fi
4684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4685 fi
4686 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4687 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4688 if test "$ac_test_CFLAGS" = set; then
4689   CFLAGS=$ac_save_CFLAGS
4690 elif test $ac_cv_prog_cc_g = yes; then
4691   if test "$GCC" = yes; then
4692     CFLAGS="-g -O2"
4693   else
4694     CFLAGS="-g"
4695   fi
4696 else
4697   if test "$GCC" = yes; then
4698     CFLAGS="-O2"
4699   else
4700     CFLAGS=
4701   fi
4702 fi
4703 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4704 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4705 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4706   echo $ECHO_N "(cached) $ECHO_C" >&6
4707 else
4708   ac_cv_prog_cc_stdc=no
4709 ac_save_CC=$CC
4710 cat >conftest.$ac_ext <<_ACEOF
4711 /* confdefs.h.  */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h.  */
4716 #include <stdarg.h>
4717 #include <stdio.h>
4718 #include <sys/types.h>
4719 #include <sys/stat.h>
4720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4721 struct buf { int x; };
4722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4723 static char *e (p, i)
4724      char **p;
4725      int i;
4726 {
4727   return p[i];
4728 }
4729 static char *f (char * (*g) (char **, int), char **p, ...)
4730 {
4731   char *s;
4732   va_list v;
4733   va_start (v,p);
4734   s = g (p, va_arg (v,int));
4735   va_end (v);
4736   return s;
4737 }
4738
4739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4740    function prototypes and stuff, but not '\xHH' hex character constants.
4741    These don't provoke an error unfortunately, instead are silently treated
4742    as 'x'.  The following induces an error, until -std1 is added to get
4743    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4744    array size at least.  It's necessary to write '\x00'==0 to get something
4745    that's true only with -std1.  */
4746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4747
4748 int test (int i, double x);
4749 struct s1 {int (*f) (int a);};
4750 struct s2 {int (*f) (double a);};
4751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4752 int argc;
4753 char **argv;
4754 int
4755 main ()
4756 {
4757 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4758   ;
4759   return 0;
4760 }
4761 _ACEOF
4762 # Don't try gcc -ansi; that turns off useful extensions and
4763 # breaks some systems' header files.
4764 # AIX                   -qlanglvl=ansi
4765 # Ultrix and OSF/1      -std1
4766 # HP-UX 10.20 and later -Ae
4767 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4768 # SVR4                  -Xc -D__EXTENSIONS__
4769 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4770 do
4771   CC="$ac_save_CC $ac_arg"
4772   rm -f conftest.$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774   (eval $ac_compile) 2>conftest.er1
4775   ac_status=$?
4776   grep -v '^ *+' conftest.er1 >conftest.err
4777   rm -f conftest.er1
4778   cat conftest.err >&5
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); } &&
4781          { ac_try='test -z "$ac_c_werror_flag"
4782                          || test ! -s conftest.err'
4783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784   (eval $ac_try) 2>&5
4785   ac_status=$?
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); }; } &&
4788          { ac_try='test -s conftest.$ac_objext'
4789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790   (eval $ac_try) 2>&5
4791   ac_status=$?
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); }; }; then
4794   ac_cv_prog_cc_stdc=$ac_arg
4795 break
4796 else
4797   echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4799
4800 fi
4801 rm -f conftest.err conftest.$ac_objext
4802 done
4803 rm -f conftest.$ac_ext conftest.$ac_objext
4804 CC=$ac_save_CC
4805
4806 fi
4807
4808 case "x$ac_cv_prog_cc_stdc" in
4809   x|xno)
4810     echo "$as_me:$LINENO: result: none needed" >&5
4811 echo "${ECHO_T}none needed" >&6 ;;
4812   *)
4813     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4814 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4815     CC="$CC $ac_cv_prog_cc_stdc" ;;
4816 esac
4817
4818 # Some people use a C++ compiler to compile C.  Since we use `exit',
4819 # in C++ we need to declare it.  In case someone uses the same compiler
4820 # for both compiling C and C++ we need to have the C++ compiler decide
4821 # the declaration of exit, since it's the most demanding environment.
4822 cat >conftest.$ac_ext <<_ACEOF
4823 #ifndef __cplusplus
4824   choke me
4825 #endif
4826 _ACEOF
4827 rm -f conftest.$ac_objext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829   (eval $ac_compile) 2>conftest.er1
4830   ac_status=$?
4831   grep -v '^ *+' conftest.er1 >conftest.err
4832   rm -f conftest.er1
4833   cat conftest.err >&5
4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); } &&
4836          { ac_try='test -z "$ac_c_werror_flag"
4837                          || test ! -s conftest.err'
4838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839   (eval $ac_try) 2>&5
4840   ac_status=$?
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); }; } &&
4843          { ac_try='test -s conftest.$ac_objext'
4844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845   (eval $ac_try) 2>&5
4846   ac_status=$?
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); }; }; then
4849   for ac_declaration in \
4850    '' \
4851    'extern "C" void std::exit (int) throw (); using std::exit;' \
4852    'extern "C" void std::exit (int); using std::exit;' \
4853    'extern "C" void exit (int) throw ();' \
4854    'extern "C" void exit (int);' \
4855    'void exit (int);'
4856 do
4857   cat >conftest.$ac_ext <<_ACEOF
4858 /* confdefs.h.  */
4859 _ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h.  */
4863 $ac_declaration
4864 #include <stdlib.h>
4865 int
4866 main ()
4867 {
4868 exit (42);
4869   ;
4870   return 0;
4871 }
4872 _ACEOF
4873 rm -f conftest.$ac_objext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4875   (eval $ac_compile) 2>conftest.er1
4876   ac_status=$?
4877   grep -v '^ *+' conftest.er1 >conftest.err
4878   rm -f conftest.er1
4879   cat conftest.err >&5
4880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881   (exit $ac_status); } &&
4882          { ac_try='test -z "$ac_c_werror_flag"
4883                          || test ! -s conftest.err'
4884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885   (eval $ac_try) 2>&5
4886   ac_status=$?
4887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888   (exit $ac_status); }; } &&
4889          { ac_try='test -s conftest.$ac_objext'
4890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891   (eval $ac_try) 2>&5
4892   ac_status=$?
4893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894   (exit $ac_status); }; }; then
4895   :
4896 else
4897   echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4899
4900 continue
4901 fi
4902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4903   cat >conftest.$ac_ext <<_ACEOF
4904 /* confdefs.h.  */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h.  */
4909 $ac_declaration
4910 int
4911 main ()
4912 {
4913 exit (42);
4914   ;
4915   return 0;
4916 }
4917 _ACEOF
4918 rm -f conftest.$ac_objext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920   (eval $ac_compile) 2>conftest.er1
4921   ac_status=$?
4922   grep -v '^ *+' conftest.er1 >conftest.err
4923   rm -f conftest.er1
4924   cat conftest.err >&5
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); } &&
4927          { ac_try='test -z "$ac_c_werror_flag"
4928                          || test ! -s conftest.err'
4929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930   (eval $ac_try) 2>&5
4931   ac_status=$?
4932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); }; } &&
4934          { ac_try='test -s conftest.$ac_objext'
4935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936   (eval $ac_try) 2>&5
4937   ac_status=$?
4938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939   (exit $ac_status); }; }; then
4940   break
4941 else
4942   echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4944
4945 fi
4946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4947 done
4948 rm -f conftest*
4949 if test -n "$ac_declaration"; then
4950   echo '#ifdef __cplusplus' >>confdefs.h
4951   echo $ac_declaration      >>confdefs.h
4952   echo '#endif'             >>confdefs.h
4953 fi
4954
4955 else
4956   echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4958
4959 fi
4960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4961 ac_ext=c
4962 ac_cpp='$CPP $CPPFLAGS'
4963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966
4967 depcc="$CC"   am_compiler_list=
4968
4969 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4970 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4971 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4972   echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4975   # We make a subdir and do the tests there.  Otherwise we can end up
4976   # making bogus files that we don't know about and never remove.  For
4977   # instance it was reported that on HP-UX the gcc test will end up
4978   # making a dummy file named `D' -- because `-MD' means `put the output
4979   # in D'.
4980   mkdir conftest.dir
4981   # Copy depcomp to subdir because otherwise we won't find it if we're
4982   # using a relative directory.
4983   cp "$am_depcomp" conftest.dir
4984   cd conftest.dir
4985   # We will build objects and dependencies in a subdirectory because
4986   # it helps to detect inapplicable dependency modes.  For instance
4987   # both Tru64's cc and ICC support -MD to output dependencies as a
4988   # side effect of compilation, but ICC will put the dependencies in
4989   # the current directory while Tru64 will put them in the object
4990   # directory.
4991   mkdir sub
4992
4993   am_cv_CC_dependencies_compiler_type=none
4994   if test "$am_compiler_list" = ""; then
4995      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4996   fi
4997   for depmode in $am_compiler_list; do
4998     # Setup a source with many dependencies, because some compilers
4999     # like to wrap large dependency lists on column 80 (with \), and
5000     # we should not choose a depcomp mode which is confused by this.
5001     #
5002     # We need to recreate these files for each test, as the compiler may
5003     # overwrite some of them when testing with obscure command lines.
5004     # This happens at least with the AIX C compiler.
5005     : > sub/conftest.c
5006     for i in 1 2 3 4 5 6; do
5007       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5008       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5009       # Solaris 8's {/usr,}/bin/sh.
5010       touch sub/conftst$i.h
5011     done
5012     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5013
5014     case $depmode in
5015     nosideeffect)
5016       # after this tag, mechanisms are not by side-effect, so they'll
5017       # only be used when explicitly requested
5018       if test "x$enable_dependency_tracking" = xyes; then
5019         continue
5020       else
5021         break
5022       fi
5023       ;;
5024     none) break ;;
5025     esac
5026     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5027     # mode.  It turns out that the SunPro C++ compiler does not properly
5028     # handle `-M -o', and we need to detect this.
5029     if depmode=$depmode \
5030        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5031        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5032        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5033          >/dev/null 2>conftest.err &&
5034        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5035        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5036        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5037       # icc doesn't choke on unknown options, it will just issue warnings
5038       # or remarks (even with -Werror).  So we grep stderr for any message
5039       # that says an option was ignored or not supported.
5040       # When given -MP, icc 7.0 and 7.1 complain thusly:
5041       #   icc: Command line warning: ignoring option '-M'; no argument required
5042       # The diagnosis changed in icc 8.0:
5043       #   icc: Command line remark: option '-MP' not supported
5044       if (grep 'ignoring option' conftest.err ||
5045           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5046         am_cv_CC_dependencies_compiler_type=$depmode
5047         break
5048       fi
5049     fi
5050   done
5051
5052   cd ..
5053   rm -rf conftest.dir
5054 else
5055   am_cv_CC_dependencies_compiler_type=none
5056 fi
5057
5058 fi
5059 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5060 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5061 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5062
5063
5064
5065 if
5066   test "x$enable_dependency_tracking" != xno \
5067   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5068   am__fastdepCC_TRUE=
5069   am__fastdepCC_FALSE='#'
5070 else
5071   am__fastdepCC_TRUE='#'
5072   am__fastdepCC_FALSE=
5073 fi
5074
5075
5076 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5077 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5078 if test "${lt_cv_path_SED+set}" = set; then
5079   echo $ECHO_N "(cached) $ECHO_C" >&6
5080 else
5081   # Loop through the user's path and test for sed and gsed.
5082 # Then use that list of sed's as ones to test for truncation.
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH
5085 do
5086   IFS=$as_save_IFS
5087   test -z "$as_dir" && as_dir=.
5088   for lt_ac_prog in sed gsed; do
5089     for ac_exec_ext in '' $ac_executable_extensions; do
5090       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5091         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5092       fi
5093     done
5094   done
5095 done
5096 lt_ac_max=0
5097 lt_ac_count=0
5098 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5099 # along with /bin/sed that truncates output.
5100 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5101   test ! -f $lt_ac_sed && continue
5102   cat /dev/null > conftest.in
5103   lt_ac_count=0
5104   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5105   # Check for GNU sed and select it if it is found.
5106   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5107     lt_cv_path_SED=$lt_ac_sed
5108     break
5109   fi
5110   while true; do
5111     cat conftest.in conftest.in >conftest.tmp
5112     mv conftest.tmp conftest.in
5113     cp conftest.in conftest.nl
5114     echo >>conftest.nl
5115     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5116     cmp -s conftest.out conftest.nl || break
5117     # 10000 chars as input seems more than enough
5118     test $lt_ac_count -gt 10 && break
5119     lt_ac_count=`expr $lt_ac_count + 1`
5120     if test $lt_ac_count -gt $lt_ac_max; then
5121       lt_ac_max=$lt_ac_count
5122       lt_cv_path_SED=$lt_ac_sed
5123     fi
5124   done
5125 done
5126
5127 fi
5128
5129 SED=$lt_cv_path_SED
5130 echo "$as_me:$LINENO: result: $SED" >&5
5131 echo "${ECHO_T}$SED" >&6
5132
5133 echo "$as_me:$LINENO: checking for egrep" >&5
5134 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5135 if test "${ac_cv_prog_egrep+set}" = set; then
5136   echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5139     then ac_cv_prog_egrep='grep -E'
5140     else ac_cv_prog_egrep='egrep'
5141     fi
5142 fi
5143 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5144 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5145  EGREP=$ac_cv_prog_egrep
5146
5147
5148
5149 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5150 if test "${with_gnu_ld+set}" = set; then
5151   withval="$with_gnu_ld"
5152   test "$withval" = no || with_gnu_ld=yes
5153 else
5154   with_gnu_ld=no
5155 fi;
5156 ac_prog=ld
5157 if test "$GCC" = yes; then
5158   # Check if gcc -print-prog-name=ld gives a path.
5159   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5160 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5161   case $host in
5162   *-*-mingw*)
5163     # gcc leaves a trailing carriage return which upsets mingw
5164     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5165   *)
5166     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5167   esac
5168   case $ac_prog in
5169     # Accept absolute paths.
5170     [\\/]* | ?:[\\/]*)
5171       re_direlt='/[^/][^/]*/\.\./'
5172       # Canonicalize the pathname of ld
5173       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5174       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5175         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5176       done
5177       test -z "$LD" && LD="$ac_prog"
5178       ;;
5179   "")
5180     # If it fails, then pretend we aren't using GCC.
5181     ac_prog=ld
5182     ;;
5183   *)
5184     # If it is relative, then search for the first ld in PATH.
5185     with_gnu_ld=unknown
5186     ;;
5187   esac
5188 elif test "$with_gnu_ld" = yes; then
5189   echo "$as_me:$LINENO: checking for GNU ld" >&5
5190 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5191 else
5192   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5193 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5194 fi
5195 if test "${lt_cv_path_LD+set}" = set; then
5196   echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198   if test -z "$LD"; then
5199   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5200   for ac_dir in $PATH; do
5201     IFS="$lt_save_ifs"
5202     test -z "$ac_dir" && ac_dir=.
5203     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5204       lt_cv_path_LD="$ac_dir/$ac_prog"
5205       # Check to see if the program is GNU ld.  I'd rather use --version,
5206       # but apparently some GNU ld's only accept -v.
5207       # Break only if it was the GNU/non-GNU ld that we prefer.
5208       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5209       *GNU* | *'with BFD'*)
5210         test "$with_gnu_ld" != no && break
5211         ;;
5212       *)
5213         test "$with_gnu_ld" != yes && break
5214         ;;
5215       esac
5216     fi
5217   done
5218   IFS="$lt_save_ifs"
5219 else
5220   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5221 fi
5222 fi
5223
5224 LD="$lt_cv_path_LD"
5225 if test -n "$LD"; then
5226   echo "$as_me:$LINENO: result: $LD" >&5
5227 echo "${ECHO_T}$LD" >&6
5228 else
5229   echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6
5231 fi
5232 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5233 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5234    { (exit 1); exit 1; }; }
5235 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5236 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5237 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5238   echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5241 case `$LD -v 2>&1 </dev/null` in
5242 *GNU* | *'with BFD'*)
5243   lt_cv_prog_gnu_ld=yes
5244   ;;
5245 *)
5246   lt_cv_prog_gnu_ld=no
5247   ;;
5248 esac
5249 fi
5250 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5251 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5252 with_gnu_ld=$lt_cv_prog_gnu_ld
5253
5254
5255 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5256 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5257 if test "${lt_cv_ld_reload_flag+set}" = set; then
5258   echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260   lt_cv_ld_reload_flag='-r'
5261 fi
5262 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5263 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5264 reload_flag=$lt_cv_ld_reload_flag
5265 case $reload_flag in
5266 "" | " "*) ;;
5267 *) reload_flag=" $reload_flag" ;;
5268 esac
5269 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5270 case $host_os in
5271   darwin*)
5272     if test "$GCC" = yes; then
5273       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5274     else
5275       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5276     fi
5277     ;;
5278 esac
5279
5280 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5281 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5282 if test "${lt_cv_path_NM+set}" = set; then
5283   echo $ECHO_N "(cached) $ECHO_C" >&6
5284 else
5285   if test -n "$NM"; then
5286   # Let the user override the test.
5287   lt_cv_path_NM="$NM"
5288 else
5289   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5290   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5291     IFS="$lt_save_ifs"
5292     test -z "$ac_dir" && ac_dir=.
5293     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5294     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5295       # Check to see if the nm accepts a BSD-compat flag.
5296       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5297       #   nm: unknown option "B" ignored
5298       # Tru64's nm complains that /dev/null is an invalid object file
5299       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5300       */dev/null* | *'Invalid file or object type'*)
5301         lt_cv_path_NM="$tmp_nm -B"
5302         break
5303         ;;
5304       *)
5305         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5306         */dev/null*)
5307           lt_cv_path_NM="$tmp_nm -p"
5308           break
5309           ;;
5310         *)
5311           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5312           continue # so that we can try to find one that supports BSD flags
5313           ;;
5314         esac
5315       esac
5316     fi
5317   done
5318   IFS="$lt_save_ifs"
5319   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5320 fi
5321 fi
5322 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5323 echo "${ECHO_T}$lt_cv_path_NM" >&6
5324 NM="$lt_cv_path_NM"
5325
5326 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5327 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5328 LN_S=$as_ln_s
5329 if test "$LN_S" = "ln -s"; then
5330   echo "$as_me:$LINENO: result: yes" >&5
5331 echo "${ECHO_T}yes" >&6
5332 else
5333   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5334 echo "${ECHO_T}no, using $LN_S" >&6
5335 fi
5336
5337 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5338 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5339 if test "${lt_cv_deplibs_check_method+set}" = set; then
5340   echo $ECHO_N "(cached) $ECHO_C" >&6
5341 else
5342   lt_cv_file_magic_cmd='$MAGIC_CMD'
5343 lt_cv_file_magic_test_file=
5344 lt_cv_deplibs_check_method='unknown'
5345 # Need to set the preceding variable on all platforms that support
5346 # interlibrary dependencies.
5347 # 'none' -- dependencies not supported.
5348 # `unknown' -- same as none, but documents that we really don't know.
5349 # 'pass_all' -- all dependencies passed with no checks.
5350 # 'test_compile' -- check by making test program.
5351 # 'file_magic [[regex]]' -- check by looking for files in library path
5352 # which responds to the $file_magic_cmd with a given extended regex.
5353 # If you have `file' or equivalent on your system and you're not sure
5354 # whether `pass_all' will *always* work, you probably want this one.
5355
5356 case $host_os in
5357 aix4* | aix5*)
5358   lt_cv_deplibs_check_method=pass_all
5359   ;;
5360
5361 beos*)
5362   lt_cv_deplibs_check_method=pass_all
5363   ;;
5364
5365 bsdi[45]*)
5366   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5367   lt_cv_file_magic_cmd='/usr/bin/file -L'
5368   lt_cv_file_magic_test_file=/shlib/libc.so
5369   ;;
5370
5371 cygwin*)
5372   # func_win32_libid is a shell function defined in ltmain.sh
5373   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5374   lt_cv_file_magic_cmd='func_win32_libid'
5375   ;;
5376
5377 mingw* | pw32*)
5378   # Base MSYS/MinGW do not provide the 'file' command needed by
5379   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5380   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5381   lt_cv_file_magic_cmd='$OBJDUMP -f'
5382   ;;
5383
5384 darwin* | rhapsody*)
5385   lt_cv_deplibs_check_method=pass_all
5386   ;;
5387
5388 freebsd* | kfreebsd*-gnu | dragonfly*)
5389   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5390     case $host_cpu in
5391     i*86 )
5392       # Not sure whether the presence of OpenBSD here was a mistake.
5393       # Let's accept both of them until this is cleared up.
5394       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5395       lt_cv_file_magic_cmd=/usr/bin/file
5396       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5397       ;;
5398     esac
5399   else
5400     lt_cv_deplibs_check_method=pass_all
5401   fi
5402   ;;
5403
5404 gnu*)
5405   lt_cv_deplibs_check_method=pass_all
5406   ;;
5407
5408 hpux10.20* | hpux11*)
5409   lt_cv_file_magic_cmd=/usr/bin/file
5410   case "$host_cpu" in
5411   ia64*)
5412     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5413     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5414     ;;
5415   hppa*64*)
5416     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5417     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5418     ;;
5419   *)
5420     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5421     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5422     ;;
5423   esac
5424   ;;
5425
5426 irix5* | irix6* | nonstopux*)
5427   case $LD in
5428   *-32|*"-32 ") libmagic=32-bit;;
5429   *-n32|*"-n32 ") libmagic=N32;;
5430   *-64|*"-64 ") libmagic=64-bit;;
5431   *) libmagic=never-match;;
5432   esac
5433   lt_cv_deplibs_check_method=pass_all
5434   ;;
5435
5436 # This must be Linux ELF.
5437 linux*)
5438   lt_cv_deplibs_check_method=pass_all
5439   ;;
5440
5441 netbsd*)
5442   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5443     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5444   else
5445     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5446   fi
5447   ;;
5448
5449 newos6*)
5450   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5451   lt_cv_file_magic_cmd=/usr/bin/file
5452   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5453   ;;
5454
5455 nto-qnx*)
5456   lt_cv_deplibs_check_method=unknown
5457   ;;
5458
5459 openbsd*)
5460   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5461     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5462   else
5463     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5464   fi
5465   ;;
5466
5467 osf3* | osf4* | osf5*)
5468   lt_cv_deplibs_check_method=pass_all
5469   ;;
5470
5471 sco3.2v5*)
5472   lt_cv_deplibs_check_method=pass_all
5473   ;;
5474
5475 solaris*)
5476   lt_cv_deplibs_check_method=pass_all
5477   ;;
5478
5479 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5480   case $host_vendor in
5481   motorola)
5482     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5483     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5484     ;;
5485   ncr)
5486     lt_cv_deplibs_check_method=pass_all
5487     ;;
5488   sequent)
5489     lt_cv_file_magic_cmd='/bin/file'
5490     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5491     ;;
5492   sni)
5493     lt_cv_file_magic_cmd='/bin/file'
5494     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5495     lt_cv_file_magic_test_file=/lib/libc.so
5496     ;;
5497   siemens)
5498     lt_cv_deplibs_check_method=pass_all
5499     ;;
5500   esac
5501   ;;
5502
5503 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5504   lt_cv_deplibs_check_method=pass_all
5505   ;;
5506 esac
5507
5508 fi
5509 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5510 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5511 file_magic_cmd=$lt_cv_file_magic_cmd
5512 deplibs_check_method=$lt_cv_deplibs_check_method
5513 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5514
5515
5516
5517
5518 # If no C compiler was specified, use CC.
5519 LTCC=${LTCC-"$CC"}
5520
5521 # Allow CC to be a program name with arguments.
5522 compiler=$CC
5523
5524
5525 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5526 if test "${enable_libtool_lock+set}" = set; then
5527   enableval="$enable_libtool_lock"
5528
5529 fi;
5530 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5531
5532 # Some flags need to be propagated to the compiler or linker for good
5533 # libtool support.
5534 case $host in
5535 ia64-*-hpux*)
5536   # Find out which ABI we are using.
5537   echo 'int i;' > conftest.$ac_ext
5538   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539   (eval $ac_compile) 2>&5
5540   ac_status=$?
5541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542   (exit $ac_status); }; then
5543     case `/usr/bin/file conftest.$ac_objext` in
5544     *ELF-32*)
5545       HPUX_IA64_MODE="32"
5546       ;;
5547     *ELF-64*)
5548       HPUX_IA64_MODE="64"
5549       ;;
5550     esac
5551   fi
5552   rm -rf conftest*
5553   ;;
5554 *-*-irix6*)
5555   # Find out which ABI we are using.
5556   echo '#line 5556 "configure"' > conftest.$ac_ext
5557   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558   (eval $ac_compile) 2>&5
5559   ac_status=$?
5560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561   (exit $ac_status); }; then
5562    if test "$lt_cv_prog_gnu_ld" = yes; then
5563     case `/usr/bin/file conftest.$ac_objext` in
5564     *32-bit*)
5565       LD="${LD-ld} -melf32bsmip"
5566       ;;
5567     *N32*)
5568       LD="${LD-ld} -melf32bmipn32"
5569       ;;
5570     *64-bit*)
5571       LD="${LD-ld} -melf64bmip"
5572       ;;
5573     esac
5574    else
5575     case `/usr/bin/file conftest.$ac_objext` in
5576     *32-bit*)
5577       LD="${LD-ld} -32"
5578       ;;
5579     *N32*)
5580       LD="${LD-ld} -n32"
5581       ;;
5582     *64-bit*)
5583       LD="${LD-ld} -64"
5584       ;;
5585     esac
5586    fi
5587   fi
5588   rm -rf conftest*
5589   ;;
5590
5591 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5592   # Find out which ABI we are using.
5593   echo 'int i;' > conftest.$ac_ext
5594   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5595   (eval $ac_compile) 2>&5
5596   ac_status=$?
5597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598   (exit $ac_status); }; then
5599     case "`/usr/bin/file conftest.o`" in
5600     *32-bit*)
5601       case $host in
5602         x86_64-*linux*)
5603           LD="${LD-ld} -m elf_i386"
5604           ;;
5605         ppc64-*linux*|powerpc64-*linux*)
5606           LD="${LD-ld} -m elf32ppclinux"
5607           ;;
5608         s390x-*linux*)
5609           LD="${LD-ld} -m elf_s390"
5610           ;;
5611         sparc64-*linux*)
5612           LD="${LD-ld} -m elf32_sparc"
5613           ;;
5614       esac
5615       ;;
5616     *64-bit*)
5617       case $host in
5618         x86_64-*linux*)
5619           LD="${LD-ld} -m elf_x86_64"
5620           ;;
5621         ppc*-*linux*|powerpc*-*linux*)
5622           LD="${LD-ld} -m elf64ppc"
5623           ;;
5624         s390*-*linux*)
5625           LD="${LD-ld} -m elf64_s390"
5626           ;;
5627         sparc*-*linux*)
5628           LD="${LD-ld} -m elf64_sparc"
5629           ;;
5630       esac
5631       ;;
5632     esac
5633   fi
5634   rm -rf conftest*
5635   ;;
5636
5637 *-*-sco3.2v5*)
5638   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5639   SAVE_CFLAGS="$CFLAGS"
5640   CFLAGS="$CFLAGS -belf"
5641   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5642 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5643 if test "${lt_cv_cc_needs_belf+set}" = set; then
5644   echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646   ac_ext=c
5647 ac_cpp='$CPP $CPPFLAGS'
5648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5651
5652      cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h.  */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h.  */
5658
5659 int
5660 main ()
5661 {
5662
5663   ;
5664   return 0;
5665 }
5666 _ACEOF
5667 rm -f conftest.$ac_objext conftest$ac_exeext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5669   (eval $ac_link) 2>conftest.er1
5670   ac_status=$?
5671   grep -v '^ *+' conftest.er1 >conftest.err
5672   rm -f conftest.er1
5673   cat conftest.err >&5
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); } &&
5676          { ac_try='test -z "$ac_c_werror_flag"
5677                          || test ! -s conftest.err'
5678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679   (eval $ac_try) 2>&5
5680   ac_status=$?
5681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682   (exit $ac_status); }; } &&
5683          { ac_try='test -s conftest$ac_exeext'
5684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685   (eval $ac_try) 2>&5
5686   ac_status=$?
5687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688   (exit $ac_status); }; }; then
5689   lt_cv_cc_needs_belf=yes
5690 else
5691   echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5693
5694 lt_cv_cc_needs_belf=no
5695 fi
5696 rm -f conftest.err conftest.$ac_objext \
5697       conftest$ac_exeext conftest.$ac_ext
5698      ac_ext=c
5699 ac_cpp='$CPP $CPPFLAGS'
5700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5703
5704 fi
5705 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5706 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5707   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5708     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5709     CFLAGS="$SAVE_CFLAGS"
5710   fi
5711   ;;
5712 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5713   if test -n "$ac_tool_prefix"; then
5714   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5715 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5716 echo "$as_me:$LINENO: checking for $ac_word" >&5
5717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5718 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5719   echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721   if test -n "$DLLTOOL"; then
5722   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5723 else
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5726 do
5727   IFS=$as_save_IFS
5728   test -z "$as_dir" && as_dir=.
5729   for ac_exec_ext in '' $ac_executable_extensions; do
5730   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5733     break 2
5734   fi
5735 done
5736 done
5737
5738 fi
5739 fi
5740 DLLTOOL=$ac_cv_prog_DLLTOOL
5741 if test -n "$DLLTOOL"; then
5742   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5743 echo "${ECHO_T}$DLLTOOL" >&6
5744 else
5745   echo "$as_me:$LINENO: result: no" >&5
5746 echo "${ECHO_T}no" >&6
5747 fi
5748
5749 fi
5750 if test -z "$ac_cv_prog_DLLTOOL"; then
5751   ac_ct_DLLTOOL=$DLLTOOL
5752   # Extract the first word of "dlltool", so it can be a program name with args.
5753 set dummy dlltool; ac_word=$2
5754 echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5756 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5757   echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759   if test -n "$ac_ct_DLLTOOL"; then
5760   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765   IFS=$as_save_IFS
5766   test -z "$as_dir" && as_dir=.
5767   for ac_exec_ext in '' $ac_executable_extensions; do
5768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771     break 2
5772   fi
5773 done
5774 done
5775
5776   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5777 fi
5778 fi
5779 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5780 if test -n "$ac_ct_DLLTOOL"; then
5781   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5782 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5783 else
5784   echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6
5786 fi
5787
5788   DLLTOOL=$ac_ct_DLLTOOL
5789 else
5790   DLLTOOL="$ac_cv_prog_DLLTOOL"
5791 fi
5792
5793   if test -n "$ac_tool_prefix"; then
5794   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5795 set dummy ${ac_tool_prefix}as; ac_word=$2
5796 echo "$as_me:$LINENO: checking for $ac_word" >&5
5797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5798 if test "${ac_cv_prog_AS+set}" = set; then
5799   echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801   if test -n "$AS"; then
5802   ac_cv_prog_AS="$AS" # Let the user override the test.
5803 else
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807   IFS=$as_save_IFS
5808   test -z "$as_dir" && as_dir=.
5809   for ac_exec_ext in '' $ac_executable_extensions; do
5810   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811     ac_cv_prog_AS="${ac_tool_prefix}as"
5812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813     break 2
5814   fi
5815 done
5816 done
5817
5818 fi
5819 fi
5820 AS=$ac_cv_prog_AS
5821 if test -n "$AS"; then
5822   echo "$as_me:$LINENO: result: $AS" >&5
5823 echo "${ECHO_T}$AS" >&6
5824 else
5825   echo "$as_me:$LINENO: result: no" >&5
5826 echo "${ECHO_T}no" >&6
5827 fi
5828
5829 fi
5830 if test -z "$ac_cv_prog_AS"; then
5831   ac_ct_AS=$AS
5832   # Extract the first word of "as", so it can be a program name with args.
5833 set dummy as; ac_word=$2
5834 echo "$as_me:$LINENO: checking for $ac_word" >&5
5835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5836 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5837   echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839   if test -n "$ac_ct_AS"; then
5840   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5841 else
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5844 do
5845   IFS=$as_save_IFS
5846   test -z "$as_dir" && as_dir=.
5847   for ac_exec_ext in '' $ac_executable_extensions; do
5848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849     ac_cv_prog_ac_ct_AS="as"
5850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5851     break 2
5852   fi
5853 done
5854 done
5855
5856   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5857 fi
5858 fi
5859 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5860 if test -n "$ac_ct_AS"; then
5861   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5862 echo "${ECHO_T}$ac_ct_AS" >&6
5863 else
5864   echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6
5866 fi
5867
5868   AS=$ac_ct_AS
5869 else
5870   AS="$ac_cv_prog_AS"
5871 fi
5872
5873   if test -n "$ac_tool_prefix"; then
5874   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5875 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5876 echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5878 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5879   echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881   if test -n "$OBJDUMP"; then
5882   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887   IFS=$as_save_IFS
5888   test -z "$as_dir" && as_dir=.
5889   for ac_exec_ext in '' $ac_executable_extensions; do
5890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893     break 2
5894   fi
5895 done
5896 done
5897
5898 fi
5899 fi
5900 OBJDUMP=$ac_cv_prog_OBJDUMP
5901 if test -n "$OBJDUMP"; then
5902   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5903 echo "${ECHO_T}$OBJDUMP" >&6
5904 else
5905   echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6
5907 fi
5908
5909 fi
5910 if test -z "$ac_cv_prog_OBJDUMP"; then
5911   ac_ct_OBJDUMP=$OBJDUMP
5912   # Extract the first word of "objdump", so it can be a program name with args.
5913 set dummy objdump; ac_word=$2
5914 echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5916 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5917   echo $ECHO_N "(cached) $ECHO_C" >&6
5918 else
5919   if test -n "$ac_ct_OBJDUMP"; then
5920   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925   IFS=$as_save_IFS
5926   test -z "$as_dir" && as_dir=.
5927   for ac_exec_ext in '' $ac_executable_extensions; do
5928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931     break 2
5932   fi
5933 done
5934 done
5935
5936   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5937 fi
5938 fi
5939 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5940 if test -n "$ac_ct_OBJDUMP"; then
5941   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5942 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5943 else
5944   echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5946 fi
5947
5948   OBJDUMP=$ac_ct_OBJDUMP
5949 else
5950   OBJDUMP="$ac_cv_prog_OBJDUMP"
5951 fi
5952
5953   ;;
5954
5955 esac
5956
5957 need_locks="$enable_libtool_lock"
5958
5959
5960 ac_ext=c
5961 ac_cpp='$CPP $CPPFLAGS'
5962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5965 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5966 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5967 # On Suns, sometimes $CPP names a directory.
5968 if test -n "$CPP" && test -d "$CPP"; then
5969   CPP=
5970 fi
5971 if test -z "$CPP"; then
5972   if test "${ac_cv_prog_CPP+set}" = set; then
5973   echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975       # Double quotes because CPP needs to be expanded
5976     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5977     do
5978       ac_preproc_ok=false
5979 for ac_c_preproc_warn_flag in '' yes
5980 do
5981   # Use a header file that comes with gcc, so configuring glibc
5982   # with a fresh cross-compiler works.
5983   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5984   # <limits.h> exists even on freestanding compilers.
5985   # On the NeXT, cc -E runs the code through the compiler's parser,
5986   # not just through cpp. "Syntax error" is here to catch this case.
5987   cat >conftest.$ac_ext <<_ACEOF
5988 /* confdefs.h.  */
5989 _ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h.  */
5993 #ifdef __STDC__
5994 # include <limits.h>
5995 #else
5996 # include <assert.h>
5997 #endif
5998                      Syntax error
5999 _ACEOF
6000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6001   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6002   ac_status=$?
6003   grep -v '^ *+' conftest.er1 >conftest.err
6004   rm -f conftest.er1
6005   cat conftest.err >&5
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); } >/dev/null; then
6008   if test -s conftest.err; then
6009     ac_cpp_err=$ac_c_preproc_warn_flag
6010     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6011   else
6012     ac_cpp_err=
6013   fi
6014 else
6015   ac_cpp_err=yes
6016 fi
6017 if test -z "$ac_cpp_err"; then
6018   :
6019 else
6020   echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6022
6023   # Broken: fails on valid input.
6024 continue
6025 fi
6026 rm -f conftest.err conftest.$ac_ext
6027
6028   # OK, works on sane cases.  Now check whether non-existent headers
6029   # can be detected and how.
6030   cat >conftest.$ac_ext <<_ACEOF
6031 /* confdefs.h.  */
6032 _ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h.  */
6036 #include <ac_nonexistent.h>
6037 _ACEOF
6038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6040   ac_status=$?
6041   grep -v '^ *+' conftest.er1 >conftest.err
6042   rm -f conftest.er1
6043   cat conftest.err >&5
6044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045   (exit $ac_status); } >/dev/null; then
6046   if test -s conftest.err; then
6047     ac_cpp_err=$ac_c_preproc_warn_flag
6048     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6049   else
6050     ac_cpp_err=
6051   fi
6052 else
6053   ac_cpp_err=yes
6054 fi
6055 if test -z "$ac_cpp_err"; then
6056   # Broken: success on invalid input.
6057 continue
6058 else
6059   echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6061
6062   # Passes both tests.
6063 ac_preproc_ok=:
6064 break
6065 fi
6066 rm -f conftest.err conftest.$ac_ext
6067
6068 done
6069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6070 rm -f conftest.err conftest.$ac_ext
6071 if $ac_preproc_ok; then
6072   break
6073 fi
6074
6075     done
6076     ac_cv_prog_CPP=$CPP
6077
6078 fi
6079   CPP=$ac_cv_prog_CPP
6080 else
6081   ac_cv_prog_CPP=$CPP
6082 fi
6083 echo "$as_me:$LINENO: result: $CPP" >&5
6084 echo "${ECHO_T}$CPP" >&6
6085 ac_preproc_ok=false
6086 for ac_c_preproc_warn_flag in '' yes
6087 do
6088   # Use a header file that comes with gcc, so configuring glibc
6089   # with a fresh cross-compiler works.
6090   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6091   # <limits.h> exists even on freestanding compilers.
6092   # On the NeXT, cc -E runs the code through the compiler's parser,
6093   # not just through cpp. "Syntax error" is here to catch this case.
6094   cat >conftest.$ac_ext <<_ACEOF
6095 /* confdefs.h.  */
6096 _ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h.  */
6100 #ifdef __STDC__
6101 # include <limits.h>
6102 #else
6103 # include <assert.h>
6104 #endif
6105                      Syntax error
6106 _ACEOF
6107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6108   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6109   ac_status=$?
6110   grep -v '^ *+' conftest.er1 >conftest.err
6111   rm -f conftest.er1
6112   cat conftest.err >&5
6113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114   (exit $ac_status); } >/dev/null; then
6115   if test -s conftest.err; then
6116     ac_cpp_err=$ac_c_preproc_warn_flag
6117     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6118   else
6119     ac_cpp_err=
6120   fi
6121 else
6122   ac_cpp_err=yes
6123 fi
6124 if test -z "$ac_cpp_err"; then
6125   :
6126 else
6127   echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6129
6130   # Broken: fails on valid input.
6131 continue
6132 fi
6133 rm -f conftest.err conftest.$ac_ext
6134
6135   # OK, works on sane cases.  Now check whether non-existent headers
6136   # can be detected and how.
6137   cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h.  */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h.  */
6143 #include <ac_nonexistent.h>
6144 _ACEOF
6145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6147   ac_status=$?
6148   grep -v '^ *+' conftest.er1 >conftest.err
6149   rm -f conftest.er1
6150   cat conftest.err >&5
6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); } >/dev/null; then
6153   if test -s conftest.err; then
6154     ac_cpp_err=$ac_c_preproc_warn_flag
6155     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6156   else
6157     ac_cpp_err=
6158   fi
6159 else
6160   ac_cpp_err=yes
6161 fi
6162 if test -z "$ac_cpp_err"; then
6163   # Broken: success on invalid input.
6164 continue
6165 else
6166   echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6168
6169   # Passes both tests.
6170 ac_preproc_ok=:
6171 break
6172 fi
6173 rm -f conftest.err conftest.$ac_ext
6174
6175 done
6176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6177 rm -f conftest.err conftest.$ac_ext
6178 if $ac_preproc_ok; then
6179   :
6180 else
6181   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6182 See \`config.log' for more details." >&5
6183 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6184 See \`config.log' for more details." >&2;}
6185    { (exit 1); exit 1; }; }
6186 fi
6187
6188 ac_ext=c
6189 ac_cpp='$CPP $CPPFLAGS'
6190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6193
6194
6195 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6196 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6197 if test "${ac_cv_header_stdc+set}" = set; then
6198   echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200   cat >conftest.$ac_ext <<_ACEOF
6201 /* confdefs.h.  */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h.  */
6206 #include <stdlib.h>
6207 #include <stdarg.h>
6208 #include <string.h>
6209 #include <float.h>
6210
6211 int
6212 main ()
6213 {
6214
6215   ;
6216   return 0;
6217 }
6218 _ACEOF
6219 rm -f conftest.$ac_objext
6220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6221   (eval $ac_compile) 2>conftest.er1
6222   ac_status=$?
6223   grep -v '^ *+' conftest.er1 >conftest.err
6224   rm -f conftest.er1
6225   cat conftest.err >&5
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); } &&
6228          { ac_try='test -z "$ac_c_werror_flag"
6229                          || test ! -s conftest.err'
6230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231   (eval $ac_try) 2>&5
6232   ac_status=$?
6233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234   (exit $ac_status); }; } &&
6235          { ac_try='test -s conftest.$ac_objext'
6236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237   (eval $ac_try) 2>&5
6238   ac_status=$?
6239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240   (exit $ac_status); }; }; then
6241   ac_cv_header_stdc=yes
6242 else
6243   echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6245
6246 ac_cv_header_stdc=no
6247 fi
6248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6249
6250 if test $ac_cv_header_stdc = yes; then
6251   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6252   cat >conftest.$ac_ext <<_ACEOF
6253 /* confdefs.h.  */
6254 _ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h.  */
6258 #include <string.h>
6259
6260 _ACEOF
6261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6262   $EGREP "memchr" >/dev/null 2>&1; then
6263   :
6264 else
6265   ac_cv_header_stdc=no
6266 fi
6267 rm -f conftest*
6268
6269 fi
6270
6271 if test $ac_cv_header_stdc = yes; then
6272   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6273   cat >conftest.$ac_ext <<_ACEOF
6274 /* confdefs.h.  */
6275 _ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h.  */
6279 #include <stdlib.h>
6280
6281 _ACEOF
6282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6283   $EGREP "free" >/dev/null 2>&1; then
6284   :
6285 else
6286   ac_cv_header_stdc=no
6287 fi
6288 rm -f conftest*
6289
6290 fi
6291
6292 if test $ac_cv_header_stdc = yes; then
6293   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6294   if test "$cross_compiling" = yes; then
6295   :
6296 else
6297   cat >conftest.$ac_ext <<_ACEOF
6298 /* confdefs.h.  */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h.  */
6303 #include <ctype.h>
6304 #if ((' ' & 0x0FF) == 0x020)
6305 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6306 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6307 #else
6308 # define ISLOWER(c) \
6309                    (('a' <= (c) && (c) <= 'i') \
6310                      || ('j' <= (c) && (c) <= 'r') \
6311                      || ('s' <= (c) && (c) <= 'z'))
6312 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6313 #endif
6314
6315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6316 int
6317 main ()
6318 {
6319   int i;
6320   for (i = 0; i < 256; i++)
6321     if (XOR (islower (i), ISLOWER (i))
6322         || toupper (i) != TOUPPER (i))
6323       exit(2);
6324   exit (0);
6325 }
6326 _ACEOF
6327 rm -f conftest$ac_exeext
6328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6329   (eval $ac_link) 2>&5
6330   ac_status=$?
6331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334   (eval $ac_try) 2>&5
6335   ac_status=$?
6336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337   (exit $ac_status); }; }; then
6338   :
6339 else
6340   echo "$as_me: program exited with status $ac_status" >&5
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6343
6344 ( exit $ac_status )
6345 ac_cv_header_stdc=no
6346 fi
6347 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6348 fi
6349 fi
6350 fi
6351 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6352 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6353 if test $ac_cv_header_stdc = yes; then
6354
6355 cat >>confdefs.h <<\_ACEOF
6356 #define STDC_HEADERS 1
6357 _ACEOF
6358
6359 fi
6360
6361 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6372                   inttypes.h stdint.h unistd.h
6373 do
6374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6375 echo "$as_me:$LINENO: checking for $ac_header" >&5
6376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6378   echo $ECHO_N "(cached) $ECHO_C" >&6
6379 else
6380   cat >conftest.$ac_ext <<_ACEOF
6381 /* confdefs.h.  */
6382 _ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h.  */
6386 $ac_includes_default
6387
6388 #include <$ac_header>
6389 _ACEOF
6390 rm -f conftest.$ac_objext
6391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6392   (eval $ac_compile) 2>conftest.er1
6393   ac_status=$?
6394   grep -v '^ *+' conftest.er1 >conftest.err
6395   rm -f conftest.er1
6396   cat conftest.err >&5
6397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398   (exit $ac_status); } &&
6399          { ac_try='test -z "$ac_c_werror_flag"
6400                          || test ! -s conftest.err'
6401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402   (eval $ac_try) 2>&5
6403   ac_status=$?
6404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405   (exit $ac_status); }; } &&
6406          { ac_try='test -s conftest.$ac_objext'
6407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408   (eval $ac_try) 2>&5
6409   ac_status=$?
6410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411   (exit $ac_status); }; }; then
6412   eval "$as_ac_Header=yes"
6413 else
6414   echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6416
6417 eval "$as_ac_Header=no"
6418 fi
6419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6420 fi
6421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6424   cat >>confdefs.h <<_ACEOF
6425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6426 _ACEOF
6427
6428 fi
6429
6430 done
6431
6432
6433
6434 for ac_header in dlfcn.h
6435 do
6436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6438   echo "$as_me:$LINENO: checking for $ac_header" >&5
6439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6441   echo $ECHO_N "(cached) $ECHO_C" >&6
6442 fi
6443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6445 else
6446   # Is the header compilable?
6447 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6449 cat >conftest.$ac_ext <<_ACEOF
6450 /* confdefs.h.  */
6451 _ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h.  */
6455 $ac_includes_default
6456 #include <$ac_header>
6457 _ACEOF
6458 rm -f conftest.$ac_objext
6459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6460   (eval $ac_compile) 2>conftest.er1
6461   ac_status=$?
6462   grep -v '^ *+' conftest.er1 >conftest.err
6463   rm -f conftest.er1
6464   cat conftest.err >&5
6465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466   (exit $ac_status); } &&
6467          { ac_try='test -z "$ac_c_werror_flag"
6468                          || test ! -s conftest.err'
6469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470   (eval $ac_try) 2>&5
6471   ac_status=$?
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); }; } &&
6474          { ac_try='test -s conftest.$ac_objext'
6475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476   (eval $ac_try) 2>&5
6477   ac_status=$?
6478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479   (exit $ac_status); }; }; then
6480   ac_header_compiler=yes
6481 else
6482   echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6484
6485 ac_header_compiler=no
6486 fi
6487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6489 echo "${ECHO_T}$ac_header_compiler" >&6
6490
6491 # Is the header present?
6492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6494 cat >conftest.$ac_ext <<_ACEOF
6495 /* confdefs.h.  */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h.  */
6500 #include <$ac_header>
6501 _ACEOF
6502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6503   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6504   ac_status=$?
6505   grep -v '^ *+' conftest.er1 >conftest.err
6506   rm -f conftest.er1
6507   cat conftest.err >&5
6508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509   (exit $ac_status); } >/dev/null; then
6510   if test -s conftest.err; then
6511     ac_cpp_err=$ac_c_preproc_warn_flag
6512     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6513   else
6514     ac_cpp_err=
6515   fi
6516 else
6517   ac_cpp_err=yes
6518 fi
6519 if test -z "$ac_cpp_err"; then
6520   ac_header_preproc=yes
6521 else
6522   echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6524
6525   ac_header_preproc=no
6526 fi
6527 rm -f conftest.err conftest.$ac_ext
6528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6529 echo "${ECHO_T}$ac_header_preproc" >&6
6530
6531 # So?  What about this header?
6532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6533   yes:no: )
6534     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6538     ac_header_preproc=yes
6539     ;;
6540   no:yes:* )
6541     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6543     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6544 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6545     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6547     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6548 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6551     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6553     (
6554       cat <<\_ASBOX
6555 ## ------------------------------------------ ##
6556 ## Report this to the AC_PACKAGE_NAME lists.  ##
6557 ## ------------------------------------------ ##
6558 _ASBOX
6559     ) |
6560       sed "s/^/$as_me: WARNING:     /" >&2
6561     ;;
6562 esac
6563 echo "$as_me:$LINENO: checking for $ac_header" >&5
6564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6566   echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568   eval "$as_ac_Header=\$ac_header_preproc"
6569 fi
6570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6572
6573 fi
6574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6575   cat >>confdefs.h <<_ACEOF
6576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6577 _ACEOF
6578
6579 fi
6580
6581 done
6582
6583 ac_ext=cc
6584 ac_cpp='$CXXCPP $CPPFLAGS'
6585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6588 if test -n "$ac_tool_prefix"; then
6589   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6590   do
6591     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6593 echo "$as_me:$LINENO: checking for $ac_word" >&5
6594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6595 if test "${ac_cv_prog_CXX+set}" = set; then
6596   echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598   if test -n "$CXX"; then
6599   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6600 else
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602 for as_dir in $PATH
6603 do
6604   IFS=$as_save_IFS
6605   test -z "$as_dir" && as_dir=.
6606   for ac_exec_ext in '' $ac_executable_extensions; do
6607   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6608     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6610     break 2
6611   fi
6612 done
6613 done
6614
6615 fi
6616 fi
6617 CXX=$ac_cv_prog_CXX
6618 if test -n "$CXX"; then
6619   echo "$as_me:$LINENO: result: $CXX" >&5
6620 echo "${ECHO_T}$CXX" >&6
6621 else
6622   echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6
6624 fi
6625
6626     test -n "$CXX" && break
6627   done
6628 fi
6629 if test -z "$CXX"; then
6630   ac_ct_CXX=$CXX
6631   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6632 do
6633   # Extract the first word of "$ac_prog", so it can be a program name with args.
6634 set dummy $ac_prog; ac_word=$2
6635 echo "$as_me:$LINENO: checking for $ac_word" >&5
6636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6637 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6638   echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640   if test -n "$ac_ct_CXX"; then
6641   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646   IFS=$as_save_IFS
6647   test -z "$as_dir" && as_dir=.
6648   for ac_exec_ext in '' $ac_executable_extensions; do
6649   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650     ac_cv_prog_ac_ct_CXX="$ac_prog"
6651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652     break 2
6653   fi
6654 done
6655 done
6656
6657 fi
6658 fi
6659 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6660 if test -n "$ac_ct_CXX"; then
6661   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6662 echo "${ECHO_T}$ac_ct_CXX" >&6
6663 else
6664   echo "$as_me:$LINENO: result: no" >&5
6665 echo "${ECHO_T}no" >&6
6666 fi
6667
6668   test -n "$ac_ct_CXX" && break
6669 done
6670 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6671
6672   CXX=$ac_ct_CXX
6673 fi
6674
6675
6676 # Provide some information about the compiler.
6677 echo "$as_me:$LINENO:" \
6678      "checking for C++ compiler version" >&5
6679 ac_compiler=`set X $ac_compile; echo $2`
6680 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6681   (eval $ac_compiler --version </dev/null >&5) 2>&5
6682   ac_status=$?
6683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684   (exit $ac_status); }
6685 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6686   (eval $ac_compiler -v </dev/null >&5) 2>&5
6687   ac_status=$?
6688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689   (exit $ac_status); }
6690 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6691   (eval $ac_compiler -V </dev/null >&5) 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); }
6695
6696 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6697 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6698 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6699   echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701   cat >conftest.$ac_ext <<_ACEOF
6702 /* confdefs.h.  */
6703 _ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h.  */
6707
6708 int
6709 main ()
6710 {
6711 #ifndef __GNUC__
6712        choke me
6713 #endif
6714
6715   ;
6716   return 0;
6717 }
6718 _ACEOF
6719 rm -f conftest.$ac_objext
6720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6721   (eval $ac_compile) 2>conftest.er1
6722   ac_status=$?
6723   grep -v '^ *+' conftest.er1 >conftest.err
6724   rm -f conftest.er1
6725   cat conftest.err >&5
6726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727   (exit $ac_status); } &&
6728          { ac_try='test -z "$ac_cxx_werror_flag"
6729                          || test ! -s conftest.err'
6730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731   (eval $ac_try) 2>&5
6732   ac_status=$?
6733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734   (exit $ac_status); }; } &&
6735          { ac_try='test -s conftest.$ac_objext'
6736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737   (eval $ac_try) 2>&5
6738   ac_status=$?
6739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740   (exit $ac_status); }; }; then
6741   ac_compiler_gnu=yes
6742 else
6743   echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6745
6746 ac_compiler_gnu=no
6747 fi
6748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6749 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6750
6751 fi
6752 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6753 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6754 GXX=`test $ac_compiler_gnu = yes && echo yes`
6755 ac_test_CXXFLAGS=${CXXFLAGS+set}
6756 ac_save_CXXFLAGS=$CXXFLAGS
6757 CXXFLAGS="-g"
6758 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6759 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6760 if test "${ac_cv_prog_cxx_g+set}" = set; then
6761   echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763   cat >conftest.$ac_ext <<_ACEOF
6764 /* confdefs.h.  */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h.  */
6769
6770 int
6771 main ()
6772 {
6773
6774   ;
6775   return 0;
6776 }
6777 _ACEOF
6778 rm -f conftest.$ac_objext
6779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6780   (eval $ac_compile) 2>conftest.er1
6781   ac_status=$?
6782   grep -v '^ *+' conftest.er1 >conftest.err
6783   rm -f conftest.er1
6784   cat conftest.err >&5
6785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786   (exit $ac_status); } &&
6787          { ac_try='test -z "$ac_cxx_werror_flag"
6788                          || test ! -s conftest.err'
6789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790   (eval $ac_try) 2>&5
6791   ac_status=$?
6792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793   (exit $ac_status); }; } &&
6794          { ac_try='test -s conftest.$ac_objext'
6795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796   (eval $ac_try) 2>&5
6797   ac_status=$?
6798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799   (exit $ac_status); }; }; then
6800   ac_cv_prog_cxx_g=yes
6801 else
6802   echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6804
6805 ac_cv_prog_cxx_g=no
6806 fi
6807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6808 fi
6809 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6810 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6811 if test "$ac_test_CXXFLAGS" = set; then
6812   CXXFLAGS=$ac_save_CXXFLAGS
6813 elif test $ac_cv_prog_cxx_g = yes; then
6814   if test "$GXX" = yes; then
6815     CXXFLAGS="-g -O2"
6816   else
6817     CXXFLAGS="-g"
6818   fi
6819 else
6820   if test "$GXX" = yes; then
6821     CXXFLAGS="-O2"
6822   else
6823     CXXFLAGS=
6824   fi
6825 fi
6826 for ac_declaration in \
6827    '' \
6828    'extern "C" void std::exit (int) throw (); using std::exit;' \
6829    'extern "C" void std::exit (int); using std::exit;' \
6830    'extern "C" void exit (int) throw ();' \
6831    'extern "C" void exit (int);' \
6832    'void exit (int);'
6833 do
6834   cat >conftest.$ac_ext <<_ACEOF
6835 /* confdefs.h.  */
6836 _ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h.  */
6840 $ac_declaration
6841 #include <stdlib.h>
6842 int
6843 main ()
6844 {
6845 exit (42);
6846   ;
6847   return 0;
6848 }
6849 _ACEOF
6850 rm -f conftest.$ac_objext
6851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6852   (eval $ac_compile) 2>conftest.er1
6853   ac_status=$?
6854   grep -v '^ *+' conftest.er1 >conftest.err
6855   rm -f conftest.er1
6856   cat conftest.err >&5
6857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858   (exit $ac_status); } &&
6859          { ac_try='test -z "$ac_cxx_werror_flag"
6860                          || test ! -s conftest.err'
6861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862   (eval $ac_try) 2>&5
6863   ac_status=$?
6864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865   (exit $ac_status); }; } &&
6866          { ac_try='test -s conftest.$ac_objext'
6867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868   (eval $ac_try) 2>&5
6869   ac_status=$?
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); }; }; then
6872   :
6873 else
6874   echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6876
6877 continue
6878 fi
6879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6880   cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h.  */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h.  */
6886 $ac_declaration
6887 int
6888 main ()
6889 {
6890 exit (42);
6891   ;
6892   return 0;
6893 }
6894 _ACEOF
6895 rm -f conftest.$ac_objext
6896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6897   (eval $ac_compile) 2>conftest.er1
6898   ac_status=$?
6899   grep -v '^ *+' conftest.er1 >conftest.err
6900   rm -f conftest.er1
6901   cat conftest.err >&5
6902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903   (exit $ac_status); } &&
6904          { ac_try='test -z "$ac_cxx_werror_flag"
6905                          || test ! -s conftest.err'
6906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907   (eval $ac_try) 2>&5
6908   ac_status=$?
6909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910   (exit $ac_status); }; } &&
6911          { ac_try='test -s conftest.$ac_objext'
6912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913   (eval $ac_try) 2>&5
6914   ac_status=$?
6915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916   (exit $ac_status); }; }; then
6917   break
6918 else
6919   echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6921
6922 fi
6923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6924 done
6925 rm -f conftest*
6926 if test -n "$ac_declaration"; then
6927   echo '#ifdef __cplusplus' >>confdefs.h
6928   echo $ac_declaration      >>confdefs.h
6929   echo '#endif'             >>confdefs.h
6930 fi
6931
6932 ac_ext=cc
6933 ac_cpp='$CXXCPP $CPPFLAGS'
6934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6937
6938 depcc="$CXX"  am_compiler_list=
6939
6940 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6941 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6942 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6943   echo $ECHO_N "(cached) $ECHO_C" >&6
6944 else
6945   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6946   # We make a subdir and do the tests there.  Otherwise we can end up
6947   # making bogus files that we don't know about and never remove.  For
6948   # instance it was reported that on HP-UX the gcc test will end up
6949   # making a dummy file named `D' -- because `-MD' means `put the output
6950   # in D'.
6951   mkdir conftest.dir
6952   # Copy depcomp to subdir because otherwise we won't find it if we're
6953   # using a relative directory.
6954   cp "$am_depcomp" conftest.dir
6955   cd conftest.dir
6956   # We will build objects and dependencies in a subdirectory because
6957   # it helps to detect inapplicable dependency modes.  For instance
6958   # both Tru64's cc and ICC support -MD to output dependencies as a
6959   # side effect of compilation, but ICC will put the dependencies in
6960   # the current directory while Tru64 will put them in the object
6961   # directory.
6962   mkdir sub
6963
6964   am_cv_CXX_dependencies_compiler_type=none
6965   if test "$am_compiler_list" = ""; then
6966      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6967   fi
6968   for depmode in $am_compiler_list; do
6969     # Setup a source with many dependencies, because some compilers
6970     # like to wrap large dependency lists on column 80 (with \), and
6971     # we should not choose a depcomp mode which is confused by this.
6972     #
6973     # We need to recreate these files for each test, as the compiler may
6974     # overwrite some of them when testing with obscure command lines.
6975     # This happens at least with the AIX C compiler.
6976     : > sub/conftest.c
6977     for i in 1 2 3 4 5 6; do
6978       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6979       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6980       # Solaris 8's {/usr,}/bin/sh.
6981       touch sub/conftst$i.h
6982     done
6983     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6984
6985     case $depmode in
6986     nosideeffect)
6987       # after this tag, mechanisms are not by side-effect, so they'll
6988       # only be used when explicitly requested
6989       if test "x$enable_dependency_tracking" = xyes; then
6990         continue
6991       else
6992         break
6993       fi
6994       ;;
6995     none) break ;;
6996     esac
6997     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6998     # mode.  It turns out that the SunPro C++ compiler does not properly
6999     # handle `-M -o', and we need to detect this.
7000     if depmode=$depmode \
7001        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7002        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7003        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7004          >/dev/null 2>conftest.err &&
7005        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7006        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7007        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7008       # icc doesn't choke on unknown options, it will just issue warnings
7009       # or remarks (even with -Werror).  So we grep stderr for any message
7010       # that says an option was ignored or not supported.
7011       # When given -MP, icc 7.0 and 7.1 complain thusly:
7012       #   icc: Command line warning: ignoring option '-M'; no argument required
7013       # The diagnosis changed in icc 8.0:
7014       #   icc: Command line remark: option '-MP' not supported
7015       if (grep 'ignoring option' conftest.err ||
7016           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7017         am_cv_CXX_dependencies_compiler_type=$depmode
7018         break
7019       fi
7020     fi
7021   done
7022
7023   cd ..
7024   rm -rf conftest.dir
7025 else
7026   am_cv_CXX_dependencies_compiler_type=none
7027 fi
7028
7029 fi
7030 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7031 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7032 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7033
7034
7035
7036 if
7037   test "x$enable_dependency_tracking" != xno \
7038   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7039   am__fastdepCXX_TRUE=
7040   am__fastdepCXX_FALSE='#'
7041 else
7042   am__fastdepCXX_TRUE='#'
7043   am__fastdepCXX_FALSE=
7044 fi
7045
7046
7047
7048
7049 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7050     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7051     (test "X$CXX" != "Xg++"))) ; then
7052   ac_ext=cc
7053 ac_cpp='$CXXCPP $CPPFLAGS'
7054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7057 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7058 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7059 if test -z "$CXXCPP"; then
7060   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7061   echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063       # Double quotes because CXXCPP needs to be expanded
7064     for CXXCPP in "$CXX -E" "/lib/cpp"
7065     do
7066       ac_preproc_ok=false
7067 for ac_cxx_preproc_warn_flag in '' yes
7068 do
7069   # Use a header file that comes with gcc, so configuring glibc
7070   # with a fresh cross-compiler works.
7071   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7072   # <limits.h> exists even on freestanding compilers.
7073   # On the NeXT, cc -E runs the code through the compiler's parser,
7074   # not just through cpp. "Syntax error" is here to catch this case.
7075   cat >conftest.$ac_ext <<_ACEOF
7076 /* confdefs.h.  */
7077 _ACEOF
7078 cat confdefs.h >>conftest.$ac_ext
7079 cat >>conftest.$ac_ext <<_ACEOF
7080 /* end confdefs.h.  */
7081 #ifdef __STDC__
7082 # include <limits.h>
7083 #else
7084 # include <assert.h>
7085 #endif
7086                      Syntax error
7087 _ACEOF
7088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7089   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7090   ac_status=$?
7091   grep -v '^ *+' conftest.er1 >conftest.err
7092   rm -f conftest.er1
7093   cat conftest.err >&5
7094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095   (exit $ac_status); } >/dev/null; then
7096   if test -s conftest.err; then
7097     ac_cpp_err=$ac_cxx_preproc_warn_flag
7098     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7099   else
7100     ac_cpp_err=
7101   fi
7102 else
7103   ac_cpp_err=yes
7104 fi
7105 if test -z "$ac_cpp_err"; then
7106   :
7107 else
7108   echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7110
7111   # Broken: fails on valid input.
7112 continue
7113 fi
7114 rm -f conftest.err conftest.$ac_ext
7115
7116   # OK, works on sane cases.  Now check whether non-existent headers
7117   # can be detected and how.
7118   cat >conftest.$ac_ext <<_ACEOF
7119 /* confdefs.h.  */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h.  */
7124 #include <ac_nonexistent.h>
7125 _ACEOF
7126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7127   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7128   ac_status=$?
7129   grep -v '^ *+' conftest.er1 >conftest.err
7130   rm -f conftest.er1
7131   cat conftest.err >&5
7132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); } >/dev/null; then
7134   if test -s conftest.err; then
7135     ac_cpp_err=$ac_cxx_preproc_warn_flag
7136     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7137   else
7138     ac_cpp_err=
7139   fi
7140 else
7141   ac_cpp_err=yes
7142 fi
7143 if test -z "$ac_cpp_err"; then
7144   # Broken: success on invalid input.
7145 continue
7146 else
7147   echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7149
7150   # Passes both tests.
7151 ac_preproc_ok=:
7152 break
7153 fi
7154 rm -f conftest.err conftest.$ac_ext
7155
7156 done
7157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7158 rm -f conftest.err conftest.$ac_ext
7159 if $ac_preproc_ok; then
7160   break
7161 fi
7162
7163     done
7164     ac_cv_prog_CXXCPP=$CXXCPP
7165
7166 fi
7167   CXXCPP=$ac_cv_prog_CXXCPP
7168 else
7169   ac_cv_prog_CXXCPP=$CXXCPP
7170 fi
7171 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7172 echo "${ECHO_T}$CXXCPP" >&6
7173 ac_preproc_ok=false
7174 for ac_cxx_preproc_warn_flag in '' yes
7175 do
7176   # Use a header file that comes with gcc, so configuring glibc
7177   # with a fresh cross-compiler works.
7178   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7179   # <limits.h> exists even on freestanding compilers.
7180   # On the NeXT, cc -E runs the code through the compiler's parser,
7181   # not just through cpp. "Syntax error" is here to catch this case.
7182   cat >conftest.$ac_ext <<_ACEOF
7183 /* confdefs.h.  */
7184 _ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h.  */
7188 #ifdef __STDC__
7189 # include <limits.h>
7190 #else
7191 # include <assert.h>
7192 #endif
7193                      Syntax error
7194 _ACEOF
7195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7196   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7197   ac_status=$?
7198   grep -v '^ *+' conftest.er1 >conftest.err
7199   rm -f conftest.er1
7200   cat conftest.err >&5
7201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202   (exit $ac_status); } >/dev/null; then
7203   if test -s conftest.err; then
7204     ac_cpp_err=$ac_cxx_preproc_warn_flag
7205     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7206   else
7207     ac_cpp_err=
7208   fi
7209 else
7210   ac_cpp_err=yes
7211 fi
7212 if test -z "$ac_cpp_err"; then
7213   :
7214 else
7215   echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7217
7218   # Broken: fails on valid input.
7219 continue
7220 fi
7221 rm -f conftest.err conftest.$ac_ext
7222
7223   # OK, works on sane cases.  Now check whether non-existent headers
7224   # can be detected and how.
7225   cat >conftest.$ac_ext <<_ACEOF
7226 /* confdefs.h.  */
7227 _ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h.  */
7231 #include <ac_nonexistent.h>
7232 _ACEOF
7233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7234   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7235   ac_status=$?
7236   grep -v '^ *+' conftest.er1 >conftest.err
7237   rm -f conftest.er1
7238   cat conftest.err >&5
7239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240   (exit $ac_status); } >/dev/null; then
7241   if test -s conftest.err; then
7242     ac_cpp_err=$ac_cxx_preproc_warn_flag
7243     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7244   else
7245     ac_cpp_err=
7246   fi
7247 else
7248   ac_cpp_err=yes
7249 fi
7250 if test -z "$ac_cpp_err"; then
7251   # Broken: success on invalid input.
7252 continue
7253 else
7254   echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7256
7257   # Passes both tests.
7258 ac_preproc_ok=:
7259 break
7260 fi
7261 rm -f conftest.err conftest.$ac_ext
7262
7263 done
7264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7265 rm -f conftest.err conftest.$ac_ext
7266 if $ac_preproc_ok; then
7267   :
7268 else
7269   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7270 See \`config.log' for more details." >&5
7271 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7272 See \`config.log' for more details." >&2;}
7273    { (exit 1); exit 1; }; }
7274 fi
7275
7276 ac_ext=cc
7277 ac_cpp='$CXXCPP $CPPFLAGS'
7278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7281
7282 fi
7283
7284
7285 ac_ext=f
7286 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7287 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7288 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7289 if test -n "$ac_tool_prefix"; then
7290   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7291   do
7292     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7293 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7294 echo "$as_me:$LINENO: checking for $ac_word" >&5
7295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7296 if test "${ac_cv_prog_F77+set}" = set; then
7297   echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299   if test -n "$F77"; then
7300   ac_cv_prog_F77="$F77" # Let the user override the test.
7301 else
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 for as_dir in $PATH
7304 do
7305   IFS=$as_save_IFS
7306   test -z "$as_dir" && as_dir=.
7307   for ac_exec_ext in '' $ac_executable_extensions; do
7308   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7309     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7311     break 2
7312   fi
7313 done
7314 done
7315
7316 fi
7317 fi
7318 F77=$ac_cv_prog_F77
7319 if test -n "$F77"; then
7320   echo "$as_me:$LINENO: result: $F77" >&5
7321 echo "${ECHO_T}$F77" >&6
7322 else
7323   echo "$as_me:$LINENO: result: no" >&5
7324 echo "${ECHO_T}no" >&6
7325 fi
7326
7327     test -n "$F77" && break
7328   done
7329 fi
7330 if test -z "$F77"; then
7331   ac_ct_F77=$F77
7332   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7333 do
7334   # Extract the first word of "$ac_prog", so it can be a program name with args.
7335 set dummy $ac_prog; ac_word=$2
7336 echo "$as_me:$LINENO: checking for $ac_word" >&5
7337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7338 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7339   echo $ECHO_N "(cached) $ECHO_C" >&6
7340 else
7341   if test -n "$ac_ct_F77"; then
7342   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347   IFS=$as_save_IFS
7348   test -z "$as_dir" && as_dir=.
7349   for ac_exec_ext in '' $ac_executable_extensions; do
7350   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351     ac_cv_prog_ac_ct_F77="$ac_prog"
7352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353     break 2
7354   fi
7355 done
7356 done
7357
7358 fi
7359 fi
7360 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7361 if test -n "$ac_ct_F77"; then
7362   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7363 echo "${ECHO_T}$ac_ct_F77" >&6
7364 else
7365   echo "$as_me:$LINENO: result: no" >&5
7366 echo "${ECHO_T}no" >&6
7367 fi
7368
7369   test -n "$ac_ct_F77" && break
7370 done
7371
7372   F77=$ac_ct_F77
7373 fi
7374
7375
7376 # Provide some information about the compiler.
7377 echo "$as_me:7377:" \
7378      "checking for Fortran 77 compiler version" >&5
7379 ac_compiler=`set X $ac_compile; echo $2`
7380 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7381   (eval $ac_compiler --version </dev/null >&5) 2>&5
7382   ac_status=$?
7383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384   (exit $ac_status); }
7385 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7386   (eval $ac_compiler -v </dev/null >&5) 2>&5
7387   ac_status=$?
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); }
7390 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7391   (eval $ac_compiler -V </dev/null >&5) 2>&5
7392   ac_status=$?
7393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394   (exit $ac_status); }
7395 rm -f a.out
7396
7397 # If we don't use `.F' as extension, the preprocessor is not run on the
7398 # input file.  (Note that this only needs to work for GNU compilers.)
7399 ac_save_ext=$ac_ext
7400 ac_ext=F
7401 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7402 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7403 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7404   echo $ECHO_N "(cached) $ECHO_C" >&6
7405 else
7406   cat >conftest.$ac_ext <<_ACEOF
7407       program main
7408 #ifndef __GNUC__
7409        choke me
7410 #endif
7411
7412       end
7413 _ACEOF
7414 rm -f conftest.$ac_objext
7415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416   (eval $ac_compile) 2>conftest.er1
7417   ac_status=$?
7418   grep -v '^ *+' conftest.er1 >conftest.err
7419   rm -f conftest.er1
7420   cat conftest.err >&5
7421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422   (exit $ac_status); } &&
7423          { ac_try='test -z "$ac_f77_werror_flag"
7424                          || test ! -s conftest.err'
7425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426   (eval $ac_try) 2>&5
7427   ac_status=$?
7428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429   (exit $ac_status); }; } &&
7430          { ac_try='test -s conftest.$ac_objext'
7431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432   (eval $ac_try) 2>&5
7433   ac_status=$?
7434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435   (exit $ac_status); }; }; then
7436   ac_compiler_gnu=yes
7437 else
7438   echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7440
7441 ac_compiler_gnu=no
7442 fi
7443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7444 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7445
7446 fi
7447 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7448 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7449 ac_ext=$ac_save_ext
7450 ac_test_FFLAGS=${FFLAGS+set}
7451 ac_save_FFLAGS=$FFLAGS
7452 FFLAGS=
7453 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7454 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7455 if test "${ac_cv_prog_f77_g+set}" = set; then
7456   echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458   FFLAGS=-g
7459 cat >conftest.$ac_ext <<_ACEOF
7460       program main
7461
7462       end
7463 _ACEOF
7464 rm -f conftest.$ac_objext
7465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7466   (eval $ac_compile) 2>conftest.er1
7467   ac_status=$?
7468   grep -v '^ *+' conftest.er1 >conftest.err
7469   rm -f conftest.er1
7470   cat conftest.err >&5
7471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472   (exit $ac_status); } &&
7473          { ac_try='test -z "$ac_f77_werror_flag"
7474                          || test ! -s conftest.err'
7475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476   (eval $ac_try) 2>&5
7477   ac_status=$?
7478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479   (exit $ac_status); }; } &&
7480          { ac_try='test -s conftest.$ac_objext'
7481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482   (eval $ac_try) 2>&5
7483   ac_status=$?
7484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485   (exit $ac_status); }; }; then
7486   ac_cv_prog_f77_g=yes
7487 else
7488   echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7490
7491 ac_cv_prog_f77_g=no
7492 fi
7493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7494
7495 fi
7496 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7497 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7498 if test "$ac_test_FFLAGS" = set; then
7499   FFLAGS=$ac_save_FFLAGS
7500 elif test $ac_cv_prog_f77_g = yes; then
7501   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7502     FFLAGS="-g -O2"
7503   else
7504     FFLAGS="-g"
7505   fi
7506 else
7507   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7508     FFLAGS="-O2"
7509   else
7510     FFLAGS=
7511   fi
7512 fi
7513
7514 G77=`test $ac_compiler_gnu = yes && echo yes`
7515 ac_ext=c
7516 ac_cpp='$CPP $CPPFLAGS'
7517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7520
7521
7522
7523 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7524
7525 # find the maximum length of command line arguments
7526 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7527 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7528 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7529   echo $ECHO_N "(cached) $ECHO_C" >&6
7530 else
7531     i=0
7532   teststring="ABCD"
7533
7534   case $build_os in
7535   msdosdjgpp*)
7536     # On DJGPP, this test can blow up pretty badly due to problems in libc
7537     # (any single argument exceeding 2000 bytes causes a buffer overrun
7538     # during glob expansion).  Even if it were fixed, the result of this
7539     # check would be larger than it should be.
7540     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7541     ;;
7542
7543   gnu*)
7544     # Under GNU Hurd, this test is not required because there is
7545     # no limit to the length of command line arguments.
7546     # Libtool will interpret -1 as no limit whatsoever
7547     lt_cv_sys_max_cmd_len=-1;
7548     ;;
7549
7550   cygwin* | mingw*)
7551     # On Win9x/ME, this test blows up -- it succeeds, but takes
7552     # about 5 minutes as the teststring grows exponentially.
7553     # Worse, since 9x/ME are not pre-emptively multitasking,
7554     # you end up with a "frozen" computer, even though with patience
7555     # the test eventually succeeds (with a max line length of 256k).
7556     # Instead, let's just punt: use the minimum linelength reported by
7557     # all of the supported platforms: 8192 (on NT/2K/XP).
7558     lt_cv_sys_max_cmd_len=8192;
7559     ;;
7560
7561   amigaos*)
7562     # On AmigaOS with pdksh, this test takes hours, literally.
7563     # So we just punt and use a minimum line length of 8192.
7564     lt_cv_sys_max_cmd_len=8192;
7565     ;;
7566
7567   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7568     # This has been around since 386BSD, at least.  Likely further.
7569     if test -x /sbin/sysctl; then
7570       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7571     elif test -x /usr/sbin/sysctl; then
7572       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7573     else
7574       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7575     fi
7576     # And add a safety zone
7577     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7578     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7579     ;;
7580   osf*)
7581     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7582     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7583     # nice to cause kernel panics so lets avoid the loop below.
7584     # First set a reasonable default.
7585     lt_cv_sys_max_cmd_len=16384
7586     #
7587     if test -x /sbin/sysconfig; then
7588       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7589         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7590       esac
7591     fi
7592     ;;
7593   *)
7594     # If test is not a shell built-in, we'll probably end up computing a
7595     # maximum length that is only half of the actual maximum length, but
7596     # we can't tell.
7597     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7598     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7599                = "XX$teststring") >/dev/null 2>&1 &&
7600             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7601             lt_cv_sys_max_cmd_len=$new_result &&
7602             test $i != 17 # 1/2 MB should be enough
7603     do
7604       i=`expr $i + 1`
7605       teststring=$teststring$teststring
7606     done
7607     teststring=
7608     # Add a significant safety factor because C++ compilers can tack on massive
7609     # amounts of additional arguments before passing them to the linker.
7610     # It appears as though 1/2 is a usable value.
7611     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7612     ;;
7613   esac
7614
7615 fi
7616
7617 if test -n $lt_cv_sys_max_cmd_len ; then
7618   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7619 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7620 else
7621   echo "$as_me:$LINENO: result: none" >&5
7622 echo "${ECHO_T}none" >&6
7623 fi
7624
7625
7626
7627
7628 # Check for command to grab the raw symbol name followed by C symbol from nm.
7629 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7630 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7631 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7632   echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634
7635 # These are sane defaults that work on at least a few old systems.
7636 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7637
7638 # Character class describing NM global symbol codes.
7639 symcode='[BCDEGRST]'
7640
7641 # Regexp to match symbols that can be accessed directly from C.
7642 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7643
7644 # Transform an extracted symbol line into a proper C declaration
7645 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7646
7647 # Transform an extracted symbol line into symbol name and symbol address
7648 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7649
7650 # Define system-specific variables.
7651 case $host_os in
7652 aix*)
7653   symcode='[BCDT]'
7654   ;;
7655 cygwin* | mingw* | pw32*)
7656   symcode='[ABCDGISTW]'
7657   ;;
7658 hpux*) # Its linker distinguishes data from code symbols
7659   if test "$host_cpu" = ia64; then
7660     symcode='[ABCDEGRST]'
7661   fi
7662   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7663   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7664   ;;
7665 linux*)
7666   if test "$host_cpu" = ia64; then
7667     symcode='[ABCDGIRSTW]'
7668     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7669     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7670   fi
7671   ;;
7672 irix* | nonstopux*)
7673   symcode='[BCDEGRST]'
7674   ;;
7675 osf*)
7676   symcode='[BCDEGQRST]'
7677   ;;
7678 solaris* | sysv5*)
7679   symcode='[BDRT]'
7680   ;;
7681 sysv4)
7682   symcode='[DFNSTU]'
7683   ;;
7684 esac
7685
7686 # Handle CRLF in mingw tool chain
7687 opt_cr=
7688 case $build_os in
7689 mingw*)
7690   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7691   ;;
7692 esac
7693
7694 # If we're using GNU nm, then use its standard symbol codes.
7695 case `$NM -V 2>&1` in
7696 *GNU* | *'with BFD'*)
7697   symcode='[ABCDGIRSTW]' ;;
7698 esac
7699
7700 # Try without a prefix undercore, then with it.
7701 for ac_symprfx in "" "_"; do
7702
7703   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7704   symxfrm="\\1 $ac_symprfx\\2 \\2"
7705
7706   # Write the raw and C identifiers.
7707   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7708
7709   # Check to see that the pipe works correctly.
7710   pipe_works=no
7711
7712   rm -f conftest*
7713   cat > conftest.$ac_ext <<EOF
7714 #ifdef __cplusplus
7715 extern "C" {
7716 #endif
7717 char nm_test_var;
7718 void nm_test_func(){}
7719 #ifdef __cplusplus
7720 }
7721 #endif
7722 int main(){nm_test_var='a';nm_test_func();return(0);}
7723 EOF
7724
7725   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7726   (eval $ac_compile) 2>&5
7727   ac_status=$?
7728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729   (exit $ac_status); }; then
7730     # Now try to grab the symbols.
7731     nlist=conftest.nm
7732     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7733   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7734   ac_status=$?
7735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736   (exit $ac_status); } && test -s "$nlist"; then
7737       # Try sorting and uniquifying the output.
7738       if sort "$nlist" | uniq > "$nlist"T; then
7739         mv -f "$nlist"T "$nlist"
7740       else
7741         rm -f "$nlist"T
7742       fi
7743
7744       # Make sure that we snagged all the symbols we need.
7745       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7746         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7747           cat <<EOF > conftest.$ac_ext
7748 #ifdef __cplusplus
7749 extern "C" {
7750 #endif
7751
7752 EOF
7753           # Now generate the symbol file.
7754           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7755
7756           cat <<EOF >> conftest.$ac_ext
7757 #if defined (__STDC__) && __STDC__
7758 # define lt_ptr_t void *
7759 #else
7760 # define lt_ptr_t char *
7761 # define const
7762 #endif
7763
7764 /* The mapping between symbol names and symbols. */
7765 const struct {
7766   const char *name;
7767   lt_ptr_t address;
7768 }
7769 lt_preloaded_symbols[] =
7770 {
7771 EOF
7772           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7773           cat <<\EOF >> conftest.$ac_ext
7774   {0, (lt_ptr_t) 0}
7775 };
7776
7777 #ifdef __cplusplus
7778 }
7779 #endif
7780 EOF
7781           # Now try linking the two files.
7782           mv conftest.$ac_objext conftstm.$ac_objext
7783           lt_save_LIBS="$LIBS"
7784           lt_save_CFLAGS="$CFLAGS"
7785           LIBS="conftstm.$ac_objext"
7786           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7787           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7788   (eval $ac_link) 2>&5
7789   ac_status=$?
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7792             pipe_works=yes
7793           fi
7794           LIBS="$lt_save_LIBS"
7795           CFLAGS="$lt_save_CFLAGS"
7796         else
7797           echo "cannot find nm_test_func in $nlist" >&5
7798         fi
7799       else
7800         echo "cannot find nm_test_var in $nlist" >&5
7801       fi
7802     else
7803       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7804     fi
7805   else
7806     echo "$progname: failed program was:" >&5
7807     cat conftest.$ac_ext >&5
7808   fi
7809   rm -f conftest* conftst*
7810
7811   # Do not use the global_symbol_pipe unless it works.
7812   if test "$pipe_works" = yes; then
7813     break
7814   else
7815     lt_cv_sys_global_symbol_pipe=
7816   fi
7817 done
7818
7819 fi
7820
7821 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7822   lt_cv_sys_global_symbol_to_cdecl=
7823 fi
7824 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7825   echo "$as_me:$LINENO: result: failed" >&5
7826 echo "${ECHO_T}failed" >&6
7827 else
7828   echo "$as_me:$LINENO: result: ok" >&5
7829 echo "${ECHO_T}ok" >&6
7830 fi
7831
7832 echo "$as_me:$LINENO: checking for objdir" >&5
7833 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7834 if test "${lt_cv_objdir+set}" = set; then
7835   echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837   rm -f .libs 2>/dev/null
7838 mkdir .libs 2>/dev/null
7839 if test -d .libs; then
7840   lt_cv_objdir=.libs
7841 else
7842   # MS-DOS does not allow filenames that begin with a dot.
7843   lt_cv_objdir=_libs
7844 fi
7845 rmdir .libs 2>/dev/null
7846 fi
7847 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7848 echo "${ECHO_T}$lt_cv_objdir" >&6
7849 objdir=$lt_cv_objdir
7850
7851
7852
7853
7854
7855 case $host_os in
7856 aix3*)
7857   # AIX sometimes has problems with the GCC collect2 program.  For some
7858   # reason, if we set the COLLECT_NAMES environment variable, the problems
7859   # vanish in a puff of smoke.
7860   if test "X${COLLECT_NAMES+set}" != Xset; then
7861     COLLECT_NAMES=
7862     export COLLECT_NAMES
7863   fi
7864   ;;
7865 esac
7866
7867 # Sed substitution that helps us do robust quoting.  It backslashifies
7868 # metacharacters that are still active within double-quoted strings.
7869 Xsed='sed -e 1s/^X//'
7870 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7871
7872 # Same as above, but do not quote variable references.
7873 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7874
7875 # Sed substitution to delay expansion of an escaped shell variable in a
7876 # double_quote_subst'ed string.
7877 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7878
7879 # Sed substitution to avoid accidental globbing in evaled expressions
7880 no_glob_subst='s/\*/\\\*/g'
7881
7882 # Constants:
7883 rm="rm -f"
7884
7885 # Global variables:
7886 default_ofile=libtool
7887 can_build_shared=yes
7888
7889 # All known linkers require a `.a' archive for static linking (except M$VC,
7890 # which needs '.lib').
7891 libext=a
7892 ltmain="$ac_aux_dir/ltmain.sh"
7893 ofile="$default_ofile"
7894 with_gnu_ld="$lt_cv_prog_gnu_ld"
7895
7896 if test -n "$ac_tool_prefix"; then
7897   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7898 set dummy ${ac_tool_prefix}ar; ac_word=$2
7899 echo "$as_me:$LINENO: checking for $ac_word" >&5
7900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7901 if test "${ac_cv_prog_AR+set}" = set; then
7902   echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904   if test -n "$AR"; then
7905   ac_cv_prog_AR="$AR" # Let the user override the test.
7906 else
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7909 do
7910   IFS=$as_save_IFS
7911   test -z "$as_dir" && as_dir=.
7912   for ac_exec_ext in '' $ac_executable_extensions; do
7913   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7914     ac_cv_prog_AR="${ac_tool_prefix}ar"
7915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7916     break 2
7917   fi
7918 done
7919 done
7920
7921 fi
7922 fi
7923 AR=$ac_cv_prog_AR
7924 if test -n "$AR"; then
7925   echo "$as_me:$LINENO: result: $AR" >&5
7926 echo "${ECHO_T}$AR" >&6
7927 else
7928   echo "$as_me:$LINENO: result: no" >&5
7929 echo "${ECHO_T}no" >&6
7930 fi
7931
7932 fi
7933 if test -z "$ac_cv_prog_AR"; then
7934   ac_ct_AR=$AR
7935   # Extract the first word of "ar", so it can be a program name with args.
7936 set dummy ar; ac_word=$2
7937 echo "$as_me:$LINENO: checking for $ac_word" >&5
7938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7939 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7940   echo $ECHO_N "(cached) $ECHO_C" >&6
7941 else
7942   if test -n "$ac_ct_AR"; then
7943   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7944 else
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH
7947 do
7948   IFS=$as_save_IFS
7949   test -z "$as_dir" && as_dir=.
7950   for ac_exec_ext in '' $ac_executable_extensions; do
7951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7952     ac_cv_prog_ac_ct_AR="ar"
7953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7954     break 2
7955   fi
7956 done
7957 done
7958
7959   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7960 fi
7961 fi
7962 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7963 if test -n "$ac_ct_AR"; then
7964   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7965 echo "${ECHO_T}$ac_ct_AR" >&6
7966 else
7967   echo "$as_me:$LINENO: result: no" >&5
7968 echo "${ECHO_T}no" >&6
7969 fi
7970
7971   AR=$ac_ct_AR
7972 else
7973   AR="$ac_cv_prog_AR"
7974 fi
7975
7976 if test -n "$ac_tool_prefix"; then
7977   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7978 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7979 echo "$as_me:$LINENO: checking for $ac_word" >&5
7980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7981 if test "${ac_cv_prog_RANLIB+set}" = set; then
7982   echo $ECHO_N "(cached) $ECHO_C" >&6
7983 else
7984   if test -n "$RANLIB"; then
7985   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7986 else
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 for as_dir in $PATH
7989 do
7990   IFS=$as_save_IFS
7991   test -z "$as_dir" && as_dir=.
7992   for ac_exec_ext in '' $ac_executable_extensions; do
7993   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7994     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7996     break 2
7997   fi
7998 done
7999 done
8000
8001 fi
8002 fi
8003 RANLIB=$ac_cv_prog_RANLIB
8004 if test -n "$RANLIB"; then
8005   echo "$as_me:$LINENO: result: $RANLIB" >&5
8006 echo "${ECHO_T}$RANLIB" >&6
8007 else
8008   echo "$as_me:$LINENO: result: no" >&5
8009 echo "${ECHO_T}no" >&6
8010 fi
8011
8012 fi
8013 if test -z "$ac_cv_prog_RANLIB"; then
8014   ac_ct_RANLIB=$RANLIB
8015   # Extract the first word of "ranlib", so it can be a program name with args.
8016 set dummy ranlib; ac_word=$2
8017 echo "$as_me:$LINENO: checking for $ac_word" >&5
8018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8019 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8020   echo $ECHO_N "(cached) $ECHO_C" >&6
8021 else
8022   if test -n "$ac_ct_RANLIB"; then
8023   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8027 do
8028   IFS=$as_save_IFS
8029   test -z "$as_dir" && as_dir=.
8030   for ac_exec_ext in '' $ac_executable_extensions; do
8031   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032     ac_cv_prog_ac_ct_RANLIB="ranlib"
8033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8034     break 2
8035   fi
8036 done
8037 done
8038
8039   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8040 fi
8041 fi
8042 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8043 if test -n "$ac_ct_RANLIB"; then
8044   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8045 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8046 else
8047   echo "$as_me:$LINENO: result: no" >&5
8048 echo "${ECHO_T}no" >&6
8049 fi
8050
8051   RANLIB=$ac_ct_RANLIB
8052 else
8053   RANLIB="$ac_cv_prog_RANLIB"
8054 fi
8055
8056 if test -n "$ac_tool_prefix"; then
8057   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8058 set dummy ${ac_tool_prefix}strip; ac_word=$2
8059 echo "$as_me:$LINENO: checking for $ac_word" >&5
8060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8061 if test "${ac_cv_prog_STRIP+set}" = set; then
8062   echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064   if test -n "$STRIP"; then
8065   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8066 else
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 for as_dir in $PATH
8069 do
8070   IFS=$as_save_IFS
8071   test -z "$as_dir" && as_dir=.
8072   for ac_exec_ext in '' $ac_executable_extensions; do
8073   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8074     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8076     break 2
8077   fi
8078 done
8079 done
8080
8081 fi
8082 fi
8083 STRIP=$ac_cv_prog_STRIP
8084 if test -n "$STRIP"; then
8085   echo "$as_me:$LINENO: result: $STRIP" >&5
8086 echo "${ECHO_T}$STRIP" >&6
8087 else
8088   echo "$as_me:$LINENO: result: no" >&5
8089 echo "${ECHO_T}no" >&6
8090 fi
8091
8092 fi
8093 if test -z "$ac_cv_prog_STRIP"; then
8094   ac_ct_STRIP=$STRIP
8095   # Extract the first word of "strip", so it can be a program name with args.
8096 set dummy strip; ac_word=$2
8097 echo "$as_me:$LINENO: checking for $ac_word" >&5
8098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8099 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8100   echo $ECHO_N "(cached) $ECHO_C" >&6
8101 else
8102   if test -n "$ac_ct_STRIP"; then
8103   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8104 else
8105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8106 for as_dir in $PATH
8107 do
8108   IFS=$as_save_IFS
8109   test -z "$as_dir" && as_dir=.
8110   for ac_exec_ext in '' $ac_executable_extensions; do
8111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8112     ac_cv_prog_ac_ct_STRIP="strip"
8113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8114     break 2
8115   fi
8116 done
8117 done
8118
8119   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8120 fi
8121 fi
8122 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8123 if test -n "$ac_ct_STRIP"; then
8124   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8125 echo "${ECHO_T}$ac_ct_STRIP" >&6
8126 else
8127   echo "$as_me:$LINENO: result: no" >&5
8128 echo "${ECHO_T}no" >&6
8129 fi
8130
8131   STRIP=$ac_ct_STRIP
8132 else
8133   STRIP="$ac_cv_prog_STRIP"
8134 fi
8135
8136
8137 old_CC="$CC"
8138 old_CFLAGS="$CFLAGS"
8139
8140 # Set sane defaults for various variables
8141 test -z "$AR" && AR=ar
8142 test -z "$AR_FLAGS" && AR_FLAGS=cru
8143 test -z "$AS" && AS=as
8144 test -z "$CC" && CC=cc
8145 test -z "$LTCC" && LTCC=$CC
8146 test -z "$DLLTOOL" && DLLTOOL=dlltool
8147 test -z "$LD" && LD=ld
8148 test -z "$LN_S" && LN_S="ln -s"
8149 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8150 test -z "$NM" && NM=nm
8151 test -z "$SED" && SED=sed
8152 test -z "$OBJDUMP" && OBJDUMP=objdump
8153 test -z "$RANLIB" && RANLIB=:
8154 test -z "$STRIP" && STRIP=:
8155 test -z "$ac_objext" && ac_objext=o
8156
8157 # Determine commands to create old-style static archives.
8158 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8159 old_postinstall_cmds='chmod 644 $oldlib'
8160 old_postuninstall_cmds=
8161
8162 if test -n "$RANLIB"; then
8163   case $host_os in
8164   openbsd*)
8165     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8166     ;;
8167   *)
8168     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8169     ;;
8170   esac
8171   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8172 fi
8173
8174 for cc_temp in $compiler""; do
8175   case $cc_temp in
8176     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8177     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8178     \-*) ;;
8179     *) break;;
8180   esac
8181 done
8182 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8183
8184
8185 # Only perform the check for file, if the check method requires it
8186 case $deplibs_check_method in
8187 file_magic*)
8188   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8189     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8190 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8191 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8192   echo $ECHO_N "(cached) $ECHO_C" >&6
8193 else
8194   case $MAGIC_CMD in
8195 [\\/*] |  ?:[\\/]*)
8196   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8197   ;;
8198 *)
8199   lt_save_MAGIC_CMD="$MAGIC_CMD"
8200   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8201   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8202   for ac_dir in $ac_dummy; do
8203     IFS="$lt_save_ifs"
8204     test -z "$ac_dir" && ac_dir=.
8205     if test -f $ac_dir/${ac_tool_prefix}file; then
8206       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8207       if test -n "$file_magic_test_file"; then
8208         case $deplibs_check_method in
8209         "file_magic "*)
8210           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8211           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8212           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8213             $EGREP "$file_magic_regex" > /dev/null; then
8214             :
8215           else
8216             cat <<EOF 1>&2
8217
8218 *** Warning: the command libtool uses to detect shared libraries,
8219 *** $file_magic_cmd, produces output that libtool cannot recognize.
8220 *** The result is that libtool may fail to recognize shared libraries
8221 *** as such.  This will affect the creation of libtool libraries that
8222 *** depend on shared libraries, but programs linked with such libtool
8223 *** libraries will work regardless of this problem.  Nevertheless, you
8224 *** may want to report the problem to your system manager and/or to
8225 *** bug-libtool@gnu.org
8226
8227 EOF
8228           fi ;;
8229         esac
8230       fi
8231       break
8232     fi
8233   done
8234   IFS="$lt_save_ifs"
8235   MAGIC_CMD="$lt_save_MAGIC_CMD"
8236   ;;
8237 esac
8238 fi
8239
8240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8241 if test -n "$MAGIC_CMD"; then
8242   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8243 echo "${ECHO_T}$MAGIC_CMD" >&6
8244 else
8245   echo "$as_me:$LINENO: result: no" >&5
8246 echo "${ECHO_T}no" >&6
8247 fi
8248
8249 if test -z "$lt_cv_path_MAGIC_CMD"; then
8250   if test -n "$ac_tool_prefix"; then
8251     echo "$as_me:$LINENO: checking for file" >&5
8252 echo $ECHO_N "checking for file... $ECHO_C" >&6
8253 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8254   echo $ECHO_N "(cached) $ECHO_C" >&6
8255 else
8256   case $MAGIC_CMD in
8257 [\\/*] |  ?:[\\/]*)
8258   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8259   ;;
8260 *)
8261   lt_save_MAGIC_CMD="$MAGIC_CMD"
8262   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8263   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8264   for ac_dir in $ac_dummy; do
8265     IFS="$lt_save_ifs"
8266     test -z "$ac_dir" && ac_dir=.
8267     if test -f $ac_dir/file; then
8268       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8269       if test -n "$file_magic_test_file"; then
8270         case $deplibs_check_method in
8271         "file_magic "*)
8272           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8273           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8274           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8275             $EGREP "$file_magic_regex" > /dev/null; then
8276             :
8277           else
8278             cat <<EOF 1>&2
8279
8280 *** Warning: the command libtool uses to detect shared libraries,
8281 *** $file_magic_cmd, produces output that libtool cannot recognize.
8282 *** The result is that libtool may fail to recognize shared libraries
8283 *** as such.  This will affect the creation of libtool libraries that
8284 *** depend on shared libraries, but programs linked with such libtool
8285 *** libraries will work regardless of this problem.  Nevertheless, you
8286 *** may want to report the problem to your system manager and/or to
8287 *** bug-libtool@gnu.org
8288
8289 EOF
8290           fi ;;
8291         esac
8292       fi
8293       break
8294     fi
8295   done
8296   IFS="$lt_save_ifs"
8297   MAGIC_CMD="$lt_save_MAGIC_CMD"
8298   ;;
8299 esac
8300 fi
8301
8302 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8303 if test -n "$MAGIC_CMD"; then
8304   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8305 echo "${ECHO_T}$MAGIC_CMD" >&6
8306 else
8307   echo "$as_me:$LINENO: result: no" >&5
8308 echo "${ECHO_T}no" >&6
8309 fi
8310
8311   else
8312     MAGIC_CMD=:
8313   fi
8314 fi
8315
8316   fi
8317   ;;
8318 esac
8319
8320 enable_dlopen=yes
8321 enable_win32_dll=yes
8322
8323 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8324 if test "${enable_libtool_lock+set}" = set; then
8325   enableval="$enable_libtool_lock"
8326
8327 fi;
8328 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8329
8330
8331 # Check whether --with-pic or --without-pic was given.
8332 if test "${with_pic+set}" = set; then
8333   withval="$with_pic"
8334   pic_mode="$withval"
8335 else
8336   pic_mode=default
8337 fi;
8338 test -z "$pic_mode" && pic_mode=default
8339
8340 # Use C for the default configuration in the libtool script
8341 tagname=
8342 lt_save_CC="$CC"
8343 ac_ext=c
8344 ac_cpp='$CPP $CPPFLAGS'
8345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8348
8349
8350 # Source file extension for C test sources.
8351 ac_ext=c
8352
8353 # Object file extension for compiled C test sources.
8354 objext=o
8355 objext=$objext
8356
8357 # Code to be used in simple compile tests
8358 lt_simple_compile_test_code="int some_variable = 0;\n"
8359
8360 # Code to be used in simple link tests
8361 lt_simple_link_test_code='int main(){return(0);}\n'
8362
8363
8364 # If no C compiler was specified, use CC.
8365 LTCC=${LTCC-"$CC"}
8366
8367 # Allow CC to be a program name with arguments.
8368 compiler=$CC
8369
8370
8371 # save warnings/boilerplate of simple test code
8372 ac_outfile=conftest.$ac_objext
8373 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8374 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8375 _lt_compiler_boilerplate=`cat conftest.err`
8376 $rm conftest*
8377
8378 ac_outfile=conftest.$ac_objext
8379 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8380 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8381 _lt_linker_boilerplate=`cat conftest.err`
8382 $rm conftest*
8383
8384
8385 #
8386 # Check for any special shared library compilation flags.
8387 #
8388 lt_prog_cc_shlib=
8389 if test "$GCC" = no; then
8390   case $host_os in
8391   sco3.2v5*)
8392     lt_prog_cc_shlib='-belf'
8393     ;;
8394   esac
8395 fi
8396 if test -n "$lt_prog_cc_shlib"; then
8397   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8398 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8399   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8400   else
8401     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8402 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8403     lt_cv_prog_cc_can_build_shared=no
8404   fi
8405 fi
8406
8407
8408 #
8409 # Check to make sure the static flag actually works.
8410 #
8411 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8412 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8413 if test "${lt_prog_compiler_static_works+set}" = set; then
8414   echo $ECHO_N "(cached) $ECHO_C" >&6
8415 else
8416   lt_prog_compiler_static_works=no
8417    save_LDFLAGS="$LDFLAGS"
8418    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8419    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8420    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8421      # The compiler can only warn and ignore the option if not recognized
8422      # So say no if there are warnings
8423      if test -s conftest.err; then
8424        # Append any errors to the config.log.
8425        cat conftest.err 1>&5
8426        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8427        $SED '/^$/d' conftest.err >conftest.er2
8428        if diff conftest.exp conftest.er2 >/dev/null; then
8429          lt_prog_compiler_static_works=yes
8430        fi
8431      else
8432        lt_prog_compiler_static_works=yes
8433      fi
8434    fi
8435    $rm conftest*
8436    LDFLAGS="$save_LDFLAGS"
8437
8438 fi
8439 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8440 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8441
8442 if test x"$lt_prog_compiler_static_works" = xyes; then
8443     :
8444 else
8445     lt_prog_compiler_static=
8446 fi
8447
8448
8449
8450
8451 lt_prog_compiler_no_builtin_flag=
8452
8453 if test "$GCC" = yes; then
8454   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8455
8456
8457 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8458 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8459 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8460   echo $ECHO_N "(cached) $ECHO_C" >&6
8461 else
8462   lt_cv_prog_compiler_rtti_exceptions=no
8463   ac_outfile=conftest.$ac_objext
8464    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8465    lt_compiler_flag="-fno-rtti -fno-exceptions"
8466    # Insert the option either (1) after the last *FLAGS variable, or
8467    # (2) before a word containing "conftest.", or (3) at the end.
8468    # Note that $ac_compile itself does not contain backslashes and begins
8469    # with a dollar sign (not a hyphen), so the echo should work correctly.
8470    # The option is referenced via a variable to avoid confusing sed.
8471    lt_compile=`echo "$ac_compile" | $SED \
8472    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8473    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8474    -e 's:$: $lt_compiler_flag:'`
8475    (eval echo "\"\$as_me:8475: $lt_compile\"" >&5)
8476    (eval "$lt_compile" 2>conftest.err)
8477    ac_status=$?
8478    cat conftest.err >&5
8479    echo "$as_me:8479: \$? = $ac_status" >&5
8480    if (exit $ac_status) && test -s "$ac_outfile"; then
8481      # The compiler can only warn and ignore the option if not recognized
8482      # So say no if there are warnings other than the usual output.
8483      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8484      $SED '/^$/d' conftest.err >conftest.er2
8485      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8486        lt_cv_prog_compiler_rtti_exceptions=yes
8487      fi
8488    fi
8489    $rm conftest*
8490
8491 fi
8492 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8493 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8494
8495 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8496     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8497 else
8498     :
8499 fi
8500
8501 fi
8502
8503 lt_prog_compiler_wl=
8504 lt_prog_compiler_pic=
8505 lt_prog_compiler_static=
8506
8507 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8508 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8509
8510   if test "$GCC" = yes; then
8511     lt_prog_compiler_wl='-Wl,'
8512     lt_prog_compiler_static='-static'
8513
8514     case $host_os in
8515       aix*)
8516       # All AIX code is PIC.
8517       if test "$host_cpu" = ia64; then
8518         # AIX 5 now supports IA64 processor
8519         lt_prog_compiler_static='-Bstatic'
8520       fi
8521       ;;
8522
8523     amigaos*)
8524       # FIXME: we need at least 68020 code to build shared libraries, but
8525       # adding the `-m68020' flag to GCC prevents building anything better,
8526       # like `-m68040'.
8527       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8528       ;;
8529
8530     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8531       # PIC is the default for these OSes.
8532       ;;
8533
8534     mingw* | pw32* | os2*)
8535       # This hack is so that the source file can tell whether it is being
8536       # built for inclusion in a dll (and should export symbols for example).
8537       lt_prog_compiler_pic='-DDLL_EXPORT'
8538       ;;
8539
8540     darwin* | rhapsody*)
8541       # PIC is the default on this platform
8542       # Common symbols not allowed in MH_DYLIB files
8543       lt_prog_compiler_pic='-fno-common'
8544       ;;
8545
8546     msdosdjgpp*)
8547       # Just because we use GCC doesn't mean we suddenly get shared libraries
8548       # on systems that don't support them.
8549       lt_prog_compiler_can_build_shared=no
8550       enable_shared=no
8551       ;;
8552
8553     sysv4*MP*)
8554       if test -d /usr/nec; then
8555         lt_prog_compiler_pic=-Kconform_pic
8556       fi
8557       ;;
8558
8559     hpux*)
8560       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8561       # not for PA HP-UX.
8562       case "$host_cpu" in
8563       hppa*64*|ia64*)
8564         # +Z the default
8565         ;;
8566       *)
8567         lt_prog_compiler_pic='-fPIC'
8568         ;;
8569       esac
8570       ;;
8571
8572     *)
8573       lt_prog_compiler_pic='-fPIC'
8574       ;;
8575     esac
8576   else
8577     # PORTME Check for flag to pass linker flags through the system compiler.
8578     case $host_os in
8579     aix*)
8580       lt_prog_compiler_wl='-Wl,'
8581       if test "$host_cpu" = ia64; then
8582         # AIX 5 now supports IA64 processor
8583         lt_prog_compiler_static='-Bstatic'
8584       else
8585         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8586       fi
8587       ;;
8588       darwin*)
8589         # PIC is the default on this platform
8590         # Common symbols not allowed in MH_DYLIB files
8591        case $cc_basename in
8592          xlc*)
8593          lt_prog_compiler_pic='-qnocommon'
8594          lt_prog_compiler_wl='-Wl,'
8595          ;;
8596        esac
8597        ;;
8598
8599     mingw* | pw32* | os2*)
8600       # This hack is so that the source file can tell whether it is being
8601       # built for inclusion in a dll (and should export symbols for example).
8602       lt_prog_compiler_pic='-DDLL_EXPORT'
8603       ;;
8604
8605     hpux9* | hpux10* | hpux11*)
8606       lt_prog_compiler_wl='-Wl,'
8607       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8608       # not for PA HP-UX.
8609       case "$host_cpu" in
8610       hppa*64*|ia64*)
8611         # +Z the default
8612         ;;
8613       *)
8614         lt_prog_compiler_pic='+Z'
8615         ;;
8616       esac
8617       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8618       lt_prog_compiler_static='${wl}-a ${wl}archive'
8619       ;;
8620
8621     irix5* | irix6* | nonstopux*)
8622       lt_prog_compiler_wl='-Wl,'
8623       # PIC (with -KPIC) is the default.
8624       lt_prog_compiler_static='-non_shared'
8625       ;;
8626
8627     newsos6)
8628       lt_prog_compiler_pic='-KPIC'
8629       lt_prog_compiler_static='-Bstatic'
8630       ;;
8631
8632     linux*)
8633       case $cc_basename in
8634       icc* | ecc*)
8635         lt_prog_compiler_wl='-Wl,'
8636         lt_prog_compiler_pic='-KPIC'
8637         lt_prog_compiler_static='-static'
8638         ;;
8639       pgcc* | pgf77* | pgf90*)
8640         # Portland Group compilers (*not* the Pentium gcc compiler,
8641         # which looks to be a dead project)
8642         lt_prog_compiler_wl='-Wl,'
8643         lt_prog_compiler_pic='-fpic'
8644         lt_prog_compiler_static='-static'
8645         ;;
8646       ccc*)
8647         lt_prog_compiler_wl='-Wl,'
8648         # All Alpha code is PIC.
8649         lt_prog_compiler_static='-non_shared'
8650         ;;
8651       esac
8652       ;;
8653
8654     osf3* | osf4* | osf5*)
8655       lt_prog_compiler_wl='-Wl,'
8656       # All OSF/1 code is PIC.
8657       lt_prog_compiler_static='-non_shared'
8658       ;;
8659
8660     sco3.2v5*)
8661       lt_prog_compiler_pic='-Kpic'
8662       lt_prog_compiler_static='-dn'
8663       ;;
8664
8665     solaris*)
8666       lt_prog_compiler_pic='-KPIC'
8667       lt_prog_compiler_static='-Bstatic'
8668       case $cc_basename in
8669       f77* | f90* | f95*)
8670         lt_prog_compiler_wl='-Qoption ld ';;
8671       *)
8672         lt_prog_compiler_wl='-Wl,';;
8673       esac
8674       ;;
8675
8676     sunos4*)
8677       lt_prog_compiler_wl='-Qoption ld '
8678       lt_prog_compiler_pic='-PIC'
8679       lt_prog_compiler_static='-Bstatic'
8680       ;;
8681
8682     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8683       lt_prog_compiler_wl='-Wl,'
8684       lt_prog_compiler_pic='-KPIC'
8685       lt_prog_compiler_static='-Bstatic'
8686       ;;
8687
8688     sysv4*MP*)
8689       if test -d /usr/nec ;then
8690         lt_prog_compiler_pic='-Kconform_pic'
8691         lt_prog_compiler_static='-Bstatic'
8692       fi
8693       ;;
8694
8695     unicos*)
8696       lt_prog_compiler_wl='-Wl,'
8697       lt_prog_compiler_can_build_shared=no
8698       ;;
8699
8700     uts4*)
8701       lt_prog_compiler_pic='-pic'
8702       lt_prog_compiler_static='-Bstatic'
8703       ;;
8704
8705     *)
8706       lt_prog_compiler_can_build_shared=no
8707       ;;
8708     esac
8709   fi
8710
8711 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8712 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8713
8714 #
8715 # Check to make sure the PIC flag actually works.
8716 #
8717 if test -n "$lt_prog_compiler_pic"; then
8718
8719 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8720 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8721 if test "${lt_prog_compiler_pic_works+set}" = set; then
8722   echo $ECHO_N "(cached) $ECHO_C" >&6
8723 else
8724   lt_prog_compiler_pic_works=no
8725   ac_outfile=conftest.$ac_objext
8726    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8727    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8728    # Insert the option either (1) after the last *FLAGS variable, or
8729    # (2) before a word containing "conftest.", or (3) at the end.
8730    # Note that $ac_compile itself does not contain backslashes and begins
8731    # with a dollar sign (not a hyphen), so the echo should work correctly.
8732    # The option is referenced via a variable to avoid confusing sed.
8733    lt_compile=`echo "$ac_compile" | $SED \
8734    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8735    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8736    -e 's:$: $lt_compiler_flag:'`
8737    (eval echo "\"\$as_me:8737: $lt_compile\"" >&5)
8738    (eval "$lt_compile" 2>conftest.err)
8739    ac_status=$?
8740    cat conftest.err >&5
8741    echo "$as_me:8741: \$? = $ac_status" >&5
8742    if (exit $ac_status) && test -s "$ac_outfile"; then
8743      # The compiler can only warn and ignore the option if not recognized
8744      # So say no if there are warnings other than the usual output.
8745      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8746      $SED '/^$/d' conftest.err >conftest.er2
8747      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8748        lt_prog_compiler_pic_works=yes
8749      fi
8750    fi
8751    $rm conftest*
8752
8753 fi
8754 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8755 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8756
8757 if test x"$lt_prog_compiler_pic_works" = xyes; then
8758     case $lt_prog_compiler_pic in
8759      "" | " "*) ;;
8760      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8761      esac
8762 else
8763     lt_prog_compiler_pic=
8764      lt_prog_compiler_can_build_shared=no
8765 fi
8766
8767 fi
8768 case "$host_os" in
8769   # For platforms which do not support PIC, -DPIC is meaningless:
8770   *djgpp*)
8771     lt_prog_compiler_pic=
8772     ;;
8773   *)
8774     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8775     ;;
8776 esac
8777
8778 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8779 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8780 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8781   echo $ECHO_N "(cached) $ECHO_C" >&6
8782 else
8783   lt_cv_prog_compiler_c_o=no
8784    $rm -r conftest 2>/dev/null
8785    mkdir conftest
8786    cd conftest
8787    mkdir out
8788    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8789
8790    lt_compiler_flag="-o out/conftest2.$ac_objext"
8791    # Insert the option either (1) after the last *FLAGS variable, or
8792    # (2) before a word containing "conftest.", or (3) at the end.
8793    # Note that $ac_compile itself does not contain backslashes and begins
8794    # with a dollar sign (not a hyphen), so the echo should work correctly.
8795    lt_compile=`echo "$ac_compile" | $SED \
8796    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8797    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8798    -e 's:$: $lt_compiler_flag:'`
8799    (eval echo "\"\$as_me:8799: $lt_compile\"" >&5)
8800    (eval "$lt_compile" 2>out/conftest.err)
8801    ac_status=$?
8802    cat out/conftest.err >&5
8803    echo "$as_me:8803: \$? = $ac_status" >&5
8804    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8805    then
8806      # The compiler can only warn and ignore the option if not recognized
8807      # So say no if there are warnings
8808      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8809      $SED '/^$/d' out/conftest.err >out/conftest.er2
8810      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8811        lt_cv_prog_compiler_c_o=yes
8812      fi
8813    fi
8814    chmod u+w .
8815    $rm conftest*
8816    # SGI C++ compiler will create directory out/ii_files/ for
8817    # template instantiation
8818    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8819    $rm out/* && rmdir out
8820    cd ..
8821    rmdir conftest
8822    $rm conftest*
8823
8824 fi
8825 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8826 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8827
8828
8829 hard_links="nottested"
8830 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8831   # do not overwrite the value of need_locks provided by the user
8832   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8833 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8834   hard_links=yes
8835   $rm conftest*
8836   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8837   touch conftest.a
8838   ln conftest.a conftest.b 2>&5 || hard_links=no
8839   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8840   echo "$as_me:$LINENO: result: $hard_links" >&5
8841 echo "${ECHO_T}$hard_links" >&6
8842   if test "$hard_links" = no; then
8843     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8844 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8845     need_locks=warn
8846   fi
8847 else
8848   need_locks=no
8849 fi
8850
8851 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8852 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8853
8854   runpath_var=
8855   allow_undefined_flag=
8856   enable_shared_with_static_runtimes=no
8857   archive_cmds=
8858   archive_expsym_cmds=
8859   old_archive_From_new_cmds=
8860   old_archive_from_expsyms_cmds=
8861   export_dynamic_flag_spec=
8862   whole_archive_flag_spec=
8863   thread_safe_flag_spec=
8864   hardcode_libdir_flag_spec=
8865   hardcode_libdir_flag_spec_ld=
8866   hardcode_libdir_separator=
8867   hardcode_direct=no
8868   hardcode_minus_L=no
8869   hardcode_shlibpath_var=unsupported
8870   link_all_deplibs=unknown
8871   hardcode_automatic=no
8872   module_cmds=
8873   module_expsym_cmds=
8874   always_export_symbols=no
8875   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8876   # include_expsyms should be a list of space-separated symbols to be *always*
8877   # included in the symbol list
8878   include_expsyms=
8879   # exclude_expsyms can be an extended regexp of symbols to exclude
8880   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8881   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8882   # as well as any symbol that contains `d'.
8883   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8884   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8885   # platforms (ab)use it in PIC code, but their linkers get confused if
8886   # the symbol is explicitly referenced.  Since portable code cannot
8887   # rely on this symbol name, it's probably fine to never include it in
8888   # preloaded symbol tables.
8889   extract_expsyms_cmds=
8890   # Just being paranoid about ensuring that cc_basename is set.
8891   for cc_temp in $compiler""; do
8892   case $cc_temp in
8893     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8894     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8895     \-*) ;;
8896     *) break;;
8897   esac
8898 done
8899 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8900
8901   case $host_os in
8902   cygwin* | mingw* | pw32*)
8903     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8904     # When not using gcc, we currently assume that we are using
8905     # Microsoft Visual C++.
8906     if test "$GCC" != yes; then
8907       with_gnu_ld=no
8908     fi
8909     ;;
8910   openbsd*)
8911     with_gnu_ld=no
8912     ;;
8913   esac
8914
8915   ld_shlibs=yes
8916   if test "$with_gnu_ld" = yes; then
8917     # If archive_cmds runs LD, not CC, wlarc should be empty
8918     wlarc='${wl}'
8919
8920     # Set some defaults for GNU ld with shared library support. These
8921     # are reset later if shared libraries are not supported. Putting them
8922     # here allows them to be overridden if necessary.
8923     runpath_var=LD_RUN_PATH
8924     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8925     export_dynamic_flag_spec='${wl}--export-dynamic'
8926     # ancient GNU ld didn't support --whole-archive et. al.
8927     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8928         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8929       else
8930         whole_archive_flag_spec=
8931     fi
8932     supports_anon_versioning=no
8933     case `$LD -v 2>/dev/null` in
8934       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8935       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8936       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8937       *\ 2.11.*) ;; # other 2.11 versions
8938       *) supports_anon_versioning=yes ;;
8939     esac
8940
8941     # See if GNU ld supports shared libraries.
8942     case $host_os in
8943     aix3* | aix4* | aix5*)
8944       # On AIX/PPC, the GNU linker is very broken
8945       if test "$host_cpu" != ia64; then
8946         ld_shlibs=no
8947         cat <<EOF 1>&2
8948
8949 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8950 *** to be unable to reliably create shared libraries on AIX.
8951 *** Therefore, libtool is disabling shared libraries support.  If you
8952 *** really care for shared libraries, you may want to modify your PATH
8953 *** so that a non-GNU linker is found, and then restart.
8954
8955 EOF
8956       fi
8957       ;;
8958
8959     amigaos*)
8960       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8961       hardcode_libdir_flag_spec='-L$libdir'
8962       hardcode_minus_L=yes
8963
8964       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8965       # that the semantics of dynamic libraries on AmigaOS, at least up
8966       # to version 4, is to share data among multiple programs linked
8967       # with the same dynamic library.  Since this doesn't match the
8968       # behavior of shared libraries on other platforms, we can't use
8969       # them.
8970       ld_shlibs=no
8971       ;;
8972
8973     beos*)
8974       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8975         allow_undefined_flag=unsupported
8976         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8977         # support --undefined.  This deserves some investigation.  FIXME
8978         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8979       else
8980         ld_shlibs=no
8981       fi
8982       ;;
8983
8984     cygwin* | mingw* | pw32*)
8985       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8986       # as there is no search path for DLLs.
8987       hardcode_libdir_flag_spec='-L$libdir'
8988       allow_undefined_flag=unsupported
8989       always_export_symbols=no
8990       enable_shared_with_static_runtimes=yes
8991       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8992
8993       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8994         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8995         # If the export-symbols file already is a .def file (1st line
8996         # is EXPORTS), use it as is; otherwise, prepend...
8997         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8998           cp $export_symbols $output_objdir/$soname.def;
8999         else
9000           echo EXPORTS > $output_objdir/$soname.def;
9001           cat $export_symbols >> $output_objdir/$soname.def;
9002         fi~
9003         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9004       else
9005         ld_shlibs=no
9006       fi
9007       ;;
9008
9009     linux*)
9010       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9011         tmp_addflag=
9012         case $cc_basename,$host_cpu in
9013         pgcc*)                          # Portland Group C compiler
9014           whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9015           tmp_addflag=' $pic_flag'
9016           ;;
9017         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
9018           whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9019           tmp_addflag=' $pic_flag -Mnomain' ;;
9020         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9021           tmp_addflag=' -i_dynamic' ;;
9022         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9023           tmp_addflag=' -i_dynamic -nofor_main' ;;
9024         ifc* | ifort*)                  # Intel Fortran compiler
9025           tmp_addflag=' -nofor_main' ;;
9026         esac
9027         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9028
9029         if test $supports_anon_versioning = yes; then
9030           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9031   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9032   $echo "local: *; };" >> $output_objdir/$libname.ver~
9033           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9034         fi
9035       else
9036         ld_shlibs=no
9037       fi
9038       ;;
9039
9040     netbsd*)
9041       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9042         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9043         wlarc=
9044       else
9045         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9046         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9047       fi
9048       ;;
9049
9050     solaris* | sysv5*)
9051       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9052         ld_shlibs=no
9053         cat <<EOF 1>&2
9054
9055 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9056 *** create shared libraries on Solaris systems.  Therefore, libtool
9057 *** is disabling shared libraries support.  We urge you to upgrade GNU
9058 *** binutils to release 2.9.1 or newer.  Another option is to modify
9059 *** your PATH or compiler configuration so that the native linker is
9060 *** used, and then restart.
9061
9062 EOF
9063       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9064         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9065         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9066       else
9067         ld_shlibs=no
9068       fi
9069       ;;
9070
9071     sunos4*)
9072       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9073       wlarc=
9074       hardcode_direct=yes
9075       hardcode_shlibpath_var=no
9076       ;;
9077
9078     *)
9079       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9080         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9081         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9082       else
9083         ld_shlibs=no
9084       fi
9085       ;;
9086     esac
9087
9088     if test "$ld_shlibs" = no; then
9089       runpath_var=
9090       hardcode_libdir_flag_spec=
9091       export_dynamic_flag_spec=
9092       whole_archive_flag_spec=
9093     fi
9094   else
9095     # PORTME fill in a description of your system's linker (not GNU ld)
9096     case $host_os in
9097     aix3*)
9098       allow_undefined_flag=unsupported
9099       always_export_symbols=yes
9100       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9101       # Note: this linker hardcodes the directories in LIBPATH if there
9102       # are no directories specified by -L.
9103       hardcode_minus_L=yes
9104       if test "$GCC" = yes && test -z "$link_static_flag"; then
9105         # Neither direct hardcoding nor static linking is supported with a
9106         # broken collect2.
9107         hardcode_direct=unsupported
9108       fi
9109       ;;
9110
9111     aix4* | aix5*)
9112       if test "$host_cpu" = ia64; then
9113         # On IA64, the linker does run time linking by default, so we don't
9114         # have to do anything special.
9115         aix_use_runtimelinking=no
9116         exp_sym_flag='-Bexport'
9117         no_entry_flag=""
9118       else
9119         # If we're using GNU nm, then we don't want the "-C" option.
9120         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9121         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9122           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9123         else
9124           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9125         fi
9126         aix_use_runtimelinking=no
9127
9128         # Test if we are trying to use run time linking or normal
9129         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9130         # need to do runtime linking.
9131         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9132           for ld_flag in $LDFLAGS; do
9133           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9134             aix_use_runtimelinking=yes
9135             break
9136           fi
9137           done
9138         esac
9139
9140         exp_sym_flag='-bexport'
9141         no_entry_flag='-bnoentry'
9142       fi
9143
9144       # When large executables or shared objects are built, AIX ld can
9145       # have problems creating the table of contents.  If linking a library
9146       # or program results in "error TOC overflow" add -mminimal-toc to
9147       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9148       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9149
9150       archive_cmds=''
9151       hardcode_direct=yes
9152       hardcode_libdir_separator=':'
9153       link_all_deplibs=yes
9154
9155       if test "$GCC" = yes; then
9156         case $host_os in aix4.[012]|aix4.[012].*)
9157         # We only want to do this on AIX 4.2 and lower, the check
9158         # below for broken collect2 doesn't work under 4.3+
9159           collect2name=`${CC} -print-prog-name=collect2`
9160           if test -f "$collect2name" && \
9161            strings "$collect2name" | grep resolve_lib_name >/dev/null
9162           then
9163           # We have reworked collect2
9164           hardcode_direct=yes
9165           else
9166           # We have old collect2
9167           hardcode_direct=unsupported
9168           # It fails to find uninstalled libraries when the uninstalled
9169           # path is not listed in the libpath.  Setting hardcode_minus_L
9170           # to unsupported forces relinking
9171           hardcode_minus_L=yes
9172           hardcode_libdir_flag_spec='-L$libdir'
9173           hardcode_libdir_separator=
9174           fi
9175         esac
9176         shared_flag='-shared'
9177         if test "$aix_use_runtimelinking" = yes; then
9178           shared_flag="$shared_flag "'${wl}-G'
9179         fi
9180       else
9181         # not using gcc
9182         if test "$host_cpu" = ia64; then
9183         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9184         # chokes on -Wl,-G. The following line is correct:
9185           shared_flag='-G'
9186         else
9187         if test "$aix_use_runtimelinking" = yes; then
9188             shared_flag='${wl}-G'
9189           else
9190             shared_flag='${wl}-bM:SRE'
9191         fi
9192         fi
9193       fi
9194
9195       # It seems that -bexpall does not export symbols beginning with
9196       # underscore (_), so it is better to generate a list of symbols to export.
9197       always_export_symbols=yes
9198       if test "$aix_use_runtimelinking" = yes; then
9199         # Warning - without using the other runtime loading flags (-brtl),
9200         # -berok will link without error, but may produce a broken library.
9201         allow_undefined_flag='-berok'
9202        # Determine the default libpath from the value encoded in an empty executable.
9203        cat >conftest.$ac_ext <<_ACEOF
9204 /* confdefs.h.  */
9205 _ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h.  */
9209
9210 int
9211 main ()
9212 {
9213
9214   ;
9215   return 0;
9216 }
9217 _ACEOF
9218 rm -f conftest.$ac_objext conftest$ac_exeext
9219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9220   (eval $ac_link) 2>conftest.er1
9221   ac_status=$?
9222   grep -v '^ *+' conftest.er1 >conftest.err
9223   rm -f conftest.er1
9224   cat conftest.err >&5
9225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226   (exit $ac_status); } &&
9227          { ac_try='test -z "$ac_c_werror_flag"
9228                          || test ! -s conftest.err'
9229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230   (eval $ac_try) 2>&5
9231   ac_status=$?
9232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233   (exit $ac_status); }; } &&
9234          { ac_try='test -s conftest$ac_exeext'
9235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236   (eval $ac_try) 2>&5
9237   ac_status=$?
9238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   (exit $ac_status); }; }; then
9240
9241 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9242 }'`
9243 # Check for a 64-bit object if we didn't find anything.
9244 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9245 }'`; fi
9246 else
9247   echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9249
9250 fi
9251 rm -f conftest.err conftest.$ac_objext \
9252       conftest$ac_exeext conftest.$ac_ext
9253 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9254
9255        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9256         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9257        else
9258         if test "$host_cpu" = ia64; then
9259           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9260           allow_undefined_flag="-z nodefs"
9261           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9262         else
9263          # Determine the default libpath from the value encoded in an empty executable.
9264          cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h.  */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h.  */
9270
9271 int
9272 main ()
9273 {
9274
9275   ;
9276   return 0;
9277 }
9278 _ACEOF
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9281   (eval $ac_link) 2>conftest.er1
9282   ac_status=$?
9283   grep -v '^ *+' conftest.er1 >conftest.err
9284   rm -f conftest.er1
9285   cat conftest.err >&5
9286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287   (exit $ac_status); } &&
9288          { ac_try='test -z "$ac_c_werror_flag"
9289                          || test ! -s conftest.err'
9290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291   (eval $ac_try) 2>&5
9292   ac_status=$?
9293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294   (exit $ac_status); }; } &&
9295          { ac_try='test -s conftest$ac_exeext'
9296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297   (eval $ac_try) 2>&5
9298   ac_status=$?
9299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300   (exit $ac_status); }; }; then
9301
9302 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9303 }'`
9304 # Check for a 64-bit object if we didn't find anything.
9305 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9306 }'`; fi
9307 else
9308   echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9310
9311 fi
9312 rm -f conftest.err conftest.$ac_objext \
9313       conftest$ac_exeext conftest.$ac_ext
9314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9315
9316          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9317           # Warning - without using the other run time loading flags,
9318           # -berok will link without error, but may produce a broken library.
9319           no_undefined_flag=' ${wl}-bernotok'
9320           allow_undefined_flag=' ${wl}-berok'
9321           # -bexpall does not export symbols beginning with underscore (_)
9322           always_export_symbols=yes
9323           # Exported symbols can be pulled into shared objects from archives
9324           whole_archive_flag_spec=' '
9325           archive_cmds_need_lc=yes
9326           # This is similar to how AIX traditionally builds it's shared libraries.
9327           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9328         fi
9329       fi
9330       ;;
9331
9332     amigaos*)
9333       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9334       hardcode_libdir_flag_spec='-L$libdir'
9335       hardcode_minus_L=yes
9336       # see comment about different semantics on the GNU ld section
9337       ld_shlibs=no
9338       ;;
9339
9340     bsdi[45]*)
9341       export_dynamic_flag_spec=-rdynamic
9342       ;;
9343
9344     cygwin* | mingw* | pw32*)
9345       # When not using gcc, we currently assume that we are using
9346       # Microsoft Visual C++.
9347       # hardcode_libdir_flag_spec is actually meaningless, as there is
9348       # no search path for DLLs.
9349       hardcode_libdir_flag_spec=' '
9350       allow_undefined_flag=unsupported
9351       # Tell ltmain to make .lib files, not .a files.
9352       libext=lib
9353       # Tell ltmain to make .dll files, not .so files.
9354       shrext_cmds=".dll"
9355       # FIXME: Setting linknames here is a bad hack.
9356       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9357       # The linker will automatically build a .lib file if we build a DLL.
9358       old_archive_From_new_cmds='true'
9359       # FIXME: Should let the user specify the lib program.
9360       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9361       fix_srcfile_path='`cygpath -w "$srcfile"`'
9362       enable_shared_with_static_runtimes=yes
9363       ;;
9364
9365     darwin* | rhapsody*)
9366       case "$host_os" in
9367         rhapsody* | darwin1.[012])
9368          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9369          ;;
9370        *) # Darwin 1.3 on
9371          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9372            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9373          else
9374            case ${MACOSX_DEPLOYMENT_TARGET} in
9375              10.[012])
9376                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9377                ;;
9378              10.*)
9379                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9380                ;;
9381            esac
9382          fi
9383          ;;
9384       esac
9385       archive_cmds_need_lc=no
9386       hardcode_direct=no
9387       hardcode_automatic=yes
9388       hardcode_shlibpath_var=unsupported
9389       whole_archive_flag_spec=''
9390       link_all_deplibs=yes
9391     if test "$GCC" = yes ; then
9392         output_verbose_link_cmd='echo'
9393         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9394       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9395       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9396       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9397       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9398     else
9399       case $cc_basename in
9400         xlc*)
9401          output_verbose_link_cmd='echo'
9402          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9403          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9404           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9405          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9406           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9407           ;;
9408        *)
9409          ld_shlibs=no
9410           ;;
9411       esac
9412     fi
9413       ;;
9414
9415     dgux*)
9416       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417       hardcode_libdir_flag_spec='-L$libdir'
9418       hardcode_shlibpath_var=no
9419       ;;
9420
9421     freebsd1*)
9422       ld_shlibs=no
9423       ;;
9424
9425     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9426     # support.  Future versions do this automatically, but an explicit c++rt0.o
9427     # does not break anything, and helps significantly (at the cost of a little
9428     # extra space).
9429     freebsd2.2*)
9430       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9431       hardcode_libdir_flag_spec='-R$libdir'
9432       hardcode_direct=yes
9433       hardcode_shlibpath_var=no
9434       ;;
9435
9436     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9437     freebsd2*)
9438       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9439       hardcode_direct=yes
9440       hardcode_minus_L=yes
9441       hardcode_shlibpath_var=no
9442       ;;
9443
9444     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9445     freebsd* | kfreebsd*-gnu | dragonfly*)
9446       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9447       hardcode_libdir_flag_spec='-R$libdir'
9448       hardcode_direct=yes
9449       hardcode_shlibpath_var=no
9450       ;;
9451
9452     hpux9*)
9453       if test "$GCC" = yes; then
9454         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9455       else
9456         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9457       fi
9458       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9459       hardcode_libdir_separator=:
9460       hardcode_direct=yes
9461
9462       # hardcode_minus_L: Not really in the search PATH,
9463       # but as the default location of the library.
9464       hardcode_minus_L=yes
9465       export_dynamic_flag_spec='${wl}-E'
9466       ;;
9467
9468     hpux10* | hpux11*)
9469       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9470         case "$host_cpu" in
9471         hppa*64*|ia64*)
9472           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9473           ;;
9474         *)
9475           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9476           ;;
9477         esac
9478       else
9479         case "$host_cpu" in
9480         hppa*64*|ia64*)
9481           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9482           ;;
9483         *)
9484           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9485           ;;
9486         esac
9487       fi
9488       if test "$with_gnu_ld" = no; then
9489         case "$host_cpu" in
9490         hppa*64*)
9491           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9492           hardcode_libdir_flag_spec_ld='+b $libdir'
9493           hardcode_libdir_separator=:
9494           hardcode_direct=no
9495           hardcode_shlibpath_var=no
9496           ;;
9497         ia64*)
9498           hardcode_libdir_flag_spec='-L$libdir'
9499           hardcode_direct=no
9500           hardcode_shlibpath_var=no
9501
9502           # hardcode_minus_L: Not really in the search PATH,
9503           # but as the default location of the library.
9504           hardcode_minus_L=yes
9505           ;;
9506         *)
9507           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9508           hardcode_libdir_separator=:
9509           hardcode_direct=yes
9510           export_dynamic_flag_spec='${wl}-E'
9511
9512           # hardcode_minus_L: Not really in the search PATH,
9513           # but as the default location of the library.
9514           hardcode_minus_L=yes
9515           ;;
9516         esac
9517       fi
9518       ;;
9519
9520     irix5* | irix6* | nonstopux*)
9521       if test "$GCC" = yes; then
9522         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9523       else
9524         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9525         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9526       fi
9527       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9528       hardcode_libdir_separator=:
9529       link_all_deplibs=yes
9530       ;;
9531
9532     netbsd*)
9533       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9534         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9535       else
9536         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9537       fi
9538       hardcode_libdir_flag_spec='-R$libdir'
9539       hardcode_direct=yes
9540       hardcode_shlibpath_var=no
9541       ;;
9542
9543     newsos6)
9544       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9545       hardcode_direct=yes
9546       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9547       hardcode_libdir_separator=:
9548       hardcode_shlibpath_var=no
9549       ;;
9550
9551     openbsd*)
9552       hardcode_direct=yes
9553       hardcode_shlibpath_var=no
9554       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9555         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9556         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9557         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9558         export_dynamic_flag_spec='${wl}-E'
9559       else
9560        case $host_os in
9561          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9562            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9563            hardcode_libdir_flag_spec='-R$libdir'
9564            ;;
9565          *)
9566            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9567            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9568            ;;
9569        esac
9570       fi
9571       ;;
9572
9573     os2*)
9574       hardcode_libdir_flag_spec='-L$libdir'
9575       hardcode_minus_L=yes
9576       allow_undefined_flag=unsupported
9577       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9578       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9579       ;;
9580
9581     osf3*)
9582       if test "$GCC" = yes; then
9583         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9584         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9585       else
9586         allow_undefined_flag=' -expect_unresolved \*'
9587         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9588       fi
9589       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9590       hardcode_libdir_separator=:
9591       ;;
9592
9593     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9594       if test "$GCC" = yes; then
9595         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9596         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9597         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9598       else
9599         allow_undefined_flag=' -expect_unresolved \*'
9600         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9601         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9602         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9603
9604         # Both c and cxx compiler support -rpath directly
9605         hardcode_libdir_flag_spec='-rpath $libdir'
9606       fi
9607       hardcode_libdir_separator=:
9608       ;;
9609
9610     sco3.2v5*)
9611       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9612       hardcode_shlibpath_var=no
9613       export_dynamic_flag_spec='${wl}-Bexport'
9614       runpath_var=LD_RUN_PATH
9615       hardcode_runpath_var=yes
9616       ;;
9617
9618     solaris*)
9619       no_undefined_flag=' -z text'
9620       if test "$GCC" = yes; then
9621         wlarc='${wl}'
9622         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9623         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9624           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9625       else
9626         wlarc=''
9627         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9628         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9629         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9630       fi
9631       hardcode_libdir_flag_spec='-R$libdir'
9632       hardcode_shlibpath_var=no
9633       case $host_os in
9634       solaris2.[0-5] | solaris2.[0-5].*) ;;
9635       *)
9636         # The compiler driver will combine linker options so we
9637         # cannot just pass the convience library names through
9638         # without $wl, iff we do not link with $LD.
9639         # Luckily, gcc supports the same syntax we need for Sun Studio.
9640         # Supported since Solaris 2.6 (maybe 2.5.1?)
9641         case $wlarc in
9642         '')
9643           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9644         *)
9645           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9646         esac ;;
9647       esac
9648       link_all_deplibs=yes
9649       ;;
9650
9651     sunos4*)
9652       if test "x$host_vendor" = xsequent; then
9653         # Use $CC to link under sequent, because it throws in some extra .o
9654         # files that make .init and .fini sections work.
9655         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9656       else
9657         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9658       fi
9659       hardcode_libdir_flag_spec='-L$libdir'
9660       hardcode_direct=yes
9661       hardcode_minus_L=yes
9662       hardcode_shlibpath_var=no
9663       ;;
9664
9665     sysv4)
9666       case $host_vendor in
9667         sni)
9668           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9669           hardcode_direct=yes # is this really true???
9670         ;;
9671         siemens)
9672           ## LD is ld it makes a PLAMLIB
9673           ## CC just makes a GrossModule.
9674           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9675           reload_cmds='$CC -r -o $output$reload_objs'
9676           hardcode_direct=no
9677         ;;
9678         motorola)
9679           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9680           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9681         ;;
9682       esac
9683       runpath_var='LD_RUN_PATH'
9684       hardcode_shlibpath_var=no
9685       ;;
9686
9687     sysv4.3*)
9688       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9689       hardcode_shlibpath_var=no
9690       export_dynamic_flag_spec='-Bexport'
9691       ;;
9692
9693     sysv4*MP*)
9694       if test -d /usr/nec; then
9695         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696         hardcode_shlibpath_var=no
9697         runpath_var=LD_RUN_PATH
9698         hardcode_runpath_var=yes
9699         ld_shlibs=yes
9700       fi
9701       ;;
9702
9703     sysv4.2uw2*)
9704       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9705       hardcode_direct=yes
9706       hardcode_minus_L=no
9707       hardcode_shlibpath_var=no
9708       hardcode_runpath_var=yes
9709       runpath_var=LD_RUN_PATH
9710       ;;
9711
9712    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9713       no_undefined_flag='${wl}-z ${wl}text'
9714       if test "$GCC" = yes; then
9715         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9716       else
9717         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9718       fi
9719       runpath_var='LD_RUN_PATH'
9720       hardcode_shlibpath_var=no
9721       ;;
9722
9723     sysv5*)
9724       no_undefined_flag=' -z text'
9725       # $CC -shared without GNU ld will not create a library from C++
9726       # object files and a static libstdc++, better avoid it by now
9727       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9729                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9730       hardcode_libdir_flag_spec=
9731       hardcode_shlibpath_var=no
9732       runpath_var='LD_RUN_PATH'
9733       ;;
9734
9735     uts4*)
9736       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9737       hardcode_libdir_flag_spec='-L$libdir'
9738       hardcode_shlibpath_var=no
9739       ;;
9740
9741     *)
9742       ld_shlibs=no
9743       ;;
9744     esac
9745   fi
9746
9747 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9748 echo "${ECHO_T}$ld_shlibs" >&6
9749 test "$ld_shlibs" = no && can_build_shared=no
9750
9751 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9752 if test "$GCC" = yes; then
9753   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9754 fi
9755
9756 #
9757 # Do we need to explicitly link libc?
9758 #
9759 case "x$archive_cmds_need_lc" in
9760 x|xyes)
9761   # Assume -lc should be added
9762   archive_cmds_need_lc=yes
9763
9764   if test "$enable_shared" = yes && test "$GCC" = yes; then
9765     case $archive_cmds in
9766     *'~'*)
9767       # FIXME: we may have to deal with multi-command sequences.
9768       ;;
9769     '$CC '*)
9770       # Test whether the compiler implicitly links with -lc since on some
9771       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9772       # to ld, don't add -lc before -lgcc.
9773       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9774 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9775       $rm conftest*
9776       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9777
9778       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9779   (eval $ac_compile) 2>&5
9780   ac_status=$?
9781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782   (exit $ac_status); } 2>conftest.err; then
9783         soname=conftest
9784         lib=conftest
9785         libobjs=conftest.$ac_objext
9786         deplibs=
9787         wl=$lt_prog_compiler_wl
9788         compiler_flags=-v
9789         linker_flags=-v
9790         verstring=
9791         output_objdir=.
9792         libname=conftest
9793         lt_save_allow_undefined_flag=$allow_undefined_flag
9794         allow_undefined_flag=
9795         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9796   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9797   ac_status=$?
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); }
9800         then
9801           archive_cmds_need_lc=no
9802         else
9803           archive_cmds_need_lc=yes
9804         fi
9805         allow_undefined_flag=$lt_save_allow_undefined_flag
9806       else
9807         cat conftest.err 1>&5
9808       fi
9809       $rm conftest*
9810       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9811 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9812       ;;
9813     esac
9814   fi
9815   ;;
9816 esac
9817
9818 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9819 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9820 library_names_spec=
9821 libname_spec='lib$name'
9822 soname_spec=
9823 shrext_cmds=".so"
9824 postinstall_cmds=
9825 postuninstall_cmds=
9826 finish_cmds=
9827 finish_eval=
9828 shlibpath_var=
9829 shlibpath_overrides_runpath=unknown
9830 version_type=none
9831 dynamic_linker="$host_os ld.so"
9832 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9833 if test "$GCC" = yes; then
9834   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9835   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9836     # if the path contains ";" then we assume it to be the separator
9837     # otherwise default to the standard path separator (i.e. ":") - it is
9838     # assumed that no part of a normal pathname contains ";" but that should
9839     # okay in the real world where ";" in dirpaths is itself problematic.
9840     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9841   else
9842     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9843   fi
9844 else
9845   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9846 fi
9847 need_lib_prefix=unknown
9848 hardcode_into_libs=no
9849
9850 # when you set need_version to no, make sure it does not cause -set_version
9851 # flags to be left without arguments
9852 need_version=unknown
9853
9854 case $host_os in
9855 aix3*)
9856   version_type=linux
9857   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9858   shlibpath_var=LIBPATH
9859
9860   # AIX 3 has no versioning support, so we append a major version to the name.
9861   soname_spec='${libname}${release}${shared_ext}$major'
9862   ;;
9863
9864 aix4* | aix5*)
9865   version_type=linux
9866   need_lib_prefix=no
9867   need_version=no
9868   hardcode_into_libs=yes
9869   if test "$host_cpu" = ia64; then
9870     # AIX 5 supports IA64
9871     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9872     shlibpath_var=LD_LIBRARY_PATH
9873   else
9874     # With GCC up to 2.95.x, collect2 would create an import file
9875     # for dependence libraries.  The import file would start with
9876     # the line `#! .'.  This would cause the generated library to
9877     # depend on `.', always an invalid library.  This was fixed in
9878     # development snapshots of GCC prior to 3.0.
9879     case $host_os in
9880       aix4 | aix4.[01] | aix4.[01].*)
9881       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9882            echo ' yes '
9883            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9884         :
9885       else
9886         can_build_shared=no
9887       fi
9888       ;;
9889     esac
9890     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9891     # soname into executable. Probably we can add versioning support to
9892     # collect2, so additional links can be useful in future.
9893     if test "$aix_use_runtimelinking" = yes; then
9894       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9895       # instead of lib<name>.a to let people know that these are not
9896       # typical AIX shared libraries.
9897       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9898     else
9899       # We preserve .a as extension for shared libraries through AIX4.2
9900       # and later when we are not doing run time linking.
9901       library_names_spec='${libname}${release}.a $libname.a'
9902       soname_spec='${libname}${release}${shared_ext}$major'
9903     fi
9904     shlibpath_var=LIBPATH
9905   fi
9906   ;;
9907
9908 amigaos*)
9909   library_names_spec='$libname.ixlibrary $libname.a'
9910   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9911   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9912   ;;
9913
9914 beos*)
9915   library_names_spec='${libname}${shared_ext}'
9916   dynamic_linker="$host_os ld.so"
9917   shlibpath_var=LIBRARY_PATH
9918   ;;
9919
9920 bsdi[45]*)
9921   version_type=linux
9922   need_version=no
9923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924   soname_spec='${libname}${release}${shared_ext}$major'
9925   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9926   shlibpath_var=LD_LIBRARY_PATH
9927   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9928   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9929   # the default ld.so.conf also contains /usr/contrib/lib and
9930   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9931   # libtool to hard-code these into programs
9932   ;;
9933
9934 cygwin* | mingw* | pw32*)
9935   version_type=windows
9936   shrext_cmds=".dll"
9937   need_version=no
9938   need_lib_prefix=no
9939
9940   case $GCC,$host_os in
9941   yes,cygwin* | yes,mingw* | yes,pw32*)
9942     library_names_spec='$libname.dll.a'
9943     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9944     postinstall_cmds='base_file=`basename \${file}`~
9945       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9946       dldir=$destdir/`dirname \$dlpath`~
9947       test -d \$dldir || mkdir -p \$dldir~
9948       $install_prog $dir/$dlname \$dldir/$dlname'
9949     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9950       dlpath=$dir/\$dldll~
9951        $rm \$dlpath'
9952     shlibpath_overrides_runpath=yes
9953
9954     case $host_os in
9955     cygwin*)
9956       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9957       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9958       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9959       ;;
9960     mingw*)
9961       # MinGW DLLs use traditional 'lib' prefix
9962       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9963       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9964       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9965         # It is most probably a Windows format PATH printed by
9966         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9967         # path with ; separators, and with drive letters. We can handle the
9968         # drive letters (cygwin fileutils understands them), so leave them,
9969         # especially as we might pass files found there to a mingw objdump,
9970         # which wouldn't understand a cygwinified path. Ahh.
9971         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9972       else
9973         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9974       fi
9975       ;;
9976     pw32*)
9977       # pw32 DLLs use 'pw' prefix rather than 'lib'
9978       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9979       ;;
9980     esac
9981     ;;
9982
9983   *)
9984     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9985     ;;
9986   esac
9987   dynamic_linker='Win32 ld.exe'
9988   # FIXME: first we should search . and the directory the executable is in
9989   shlibpath_var=PATH
9990   ;;
9991
9992 darwin* | rhapsody*)
9993   dynamic_linker="$host_os dyld"
9994   version_type=darwin
9995   need_lib_prefix=no
9996   need_version=no
9997   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9998   soname_spec='${libname}${release}${major}$shared_ext'
9999   shlibpath_overrides_runpath=yes
10000   shlibpath_var=DYLD_LIBRARY_PATH
10001   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10002   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10003   if test "$GCC" = yes; then
10004     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10005   else
10006     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10007   fi
10008   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10009   ;;
10010
10011 dgux*)
10012   version_type=linux
10013   need_lib_prefix=no
10014   need_version=no
10015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10016   soname_spec='${libname}${release}${shared_ext}$major'
10017   shlibpath_var=LD_LIBRARY_PATH
10018   ;;
10019
10020 freebsd1*)
10021   dynamic_linker=no
10022   ;;
10023
10024 kfreebsd*-gnu)
10025   version_type=linux
10026   need_lib_prefix=no
10027   need_version=no
10028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10029   soname_spec='${libname}${release}${shared_ext}$major'
10030   shlibpath_var=LD_LIBRARY_PATH
10031   shlibpath_overrides_runpath=no
10032   hardcode_into_libs=yes
10033   dynamic_linker='GNU ld.so'
10034   ;;
10035
10036 freebsd* | dragonfly*)
10037   # DragonFly does not have aout.  When/if they implement a new
10038   # versioning mechanism, adjust this.
10039   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10040   version_type=freebsd-$objformat
10041   case $version_type in
10042     freebsd-elf*)
10043       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10044       need_version=no
10045       need_lib_prefix=no
10046       ;;
10047     freebsd-*)
10048       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10049       need_version=yes
10050       ;;
10051   esac
10052   shlibpath_var=LD_LIBRARY_PATH
10053   case $host_os in
10054   freebsd2*)
10055     shlibpath_overrides_runpath=yes
10056     ;;
10057   freebsd3.[01]* | freebsdelf3.[01]*)
10058     shlibpath_overrides_runpath=yes
10059     hardcode_into_libs=yes
10060     ;;
10061   *) # from 3.2 on
10062     shlibpath_overrides_runpath=no
10063     hardcode_into_libs=yes
10064     ;;
10065   esac
10066   ;;
10067
10068 gnu*)
10069   version_type=linux
10070   need_lib_prefix=no
10071   need_version=no
10072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10073   soname_spec='${libname}${release}${shared_ext}$major'
10074   shlibpath_var=LD_LIBRARY_PATH
10075   hardcode_into_libs=yes
10076   ;;
10077
10078 hpux9* | hpux10* | hpux11*)
10079   # Give a soname corresponding to the major version so that dld.sl refuses to
10080   # link against other versions.
10081   version_type=sunos
10082   need_lib_prefix=no
10083   need_version=no
10084   case "$host_cpu" in
10085   ia64*)
10086     shrext_cmds='.so'
10087     hardcode_into_libs=yes
10088     dynamic_linker="$host_os dld.so"
10089     shlibpath_var=LD_LIBRARY_PATH
10090     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10091     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10092     soname_spec='${libname}${release}${shared_ext}$major'
10093     if test "X$HPUX_IA64_MODE" = X32; then
10094       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10095     else
10096       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10097     fi
10098     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10099     ;;
10100    hppa*64*)
10101      shrext_cmds='.sl'
10102      hardcode_into_libs=yes
10103      dynamic_linker="$host_os dld.sl"
10104      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10105      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10106      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107      soname_spec='${libname}${release}${shared_ext}$major'
10108      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10109      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10110      ;;
10111    *)
10112     shrext_cmds='.sl'
10113     dynamic_linker="$host_os dld.sl"
10114     shlibpath_var=SHLIB_PATH
10115     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10116     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117     soname_spec='${libname}${release}${shared_ext}$major'
10118     ;;
10119   esac
10120   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10121   postinstall_cmds='chmod 555 $lib'
10122   ;;
10123
10124 irix5* | irix6* | nonstopux*)
10125   case $host_os in
10126     nonstopux*) version_type=nonstopux ;;
10127     *)
10128         if test "$lt_cv_prog_gnu_ld" = yes; then
10129                 version_type=linux
10130         else
10131                 version_type=irix
10132         fi ;;
10133   esac
10134   need_lib_prefix=no
10135   need_version=no
10136   soname_spec='${libname}${release}${shared_ext}$major'
10137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10138   case $host_os in
10139   irix5* | nonstopux*)
10140     libsuff= shlibsuff=
10141     ;;
10142   *)
10143     case $LD in # libtool.m4 will add one of these switches to LD
10144     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10145       libsuff= shlibsuff= libmagic=32-bit;;
10146     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10147       libsuff=32 shlibsuff=N32 libmagic=N32;;
10148     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10149       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10150     *) libsuff= shlibsuff= libmagic=never-match;;
10151     esac
10152     ;;
10153   esac
10154   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10155   shlibpath_overrides_runpath=no
10156   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10157   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10158   hardcode_into_libs=yes
10159   ;;
10160
10161 # No shared lib support for Linux oldld, aout, or coff.
10162 linux*oldld* | linux*aout* | linux*coff*)
10163   dynamic_linker=no
10164   ;;
10165
10166 # This must be Linux ELF.
10167 linux*)
10168   version_type=linux
10169   need_lib_prefix=no
10170   need_version=no
10171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172   soname_spec='${libname}${release}${shared_ext}$major'
10173   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10174   shlibpath_var=LD_LIBRARY_PATH
10175   shlibpath_overrides_runpath=no
10176   # This implies no fast_install, which is unacceptable.
10177   # Some rework will be needed to allow for fast_install
10178   # before this can be enabled.
10179   hardcode_into_libs=yes
10180
10181   # Append ld.so.conf contents to the search path
10182   if test -f /etc/ld.so.conf; then
10183     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10184     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10185   fi
10186
10187   # We used to test for /lib/ld.so.1 and disable shared libraries on
10188   # powerpc, because MkLinux only supported shared libraries with the
10189   # GNU dynamic linker.  Since this was broken with cross compilers,
10190   # most powerpc-linux boxes support dynamic linking these days and
10191   # people can always --disable-shared, the test was removed, and we
10192   # assume the GNU/Linux dynamic linker is in use.
10193   dynamic_linker='GNU/Linux ld.so'
10194   ;;
10195
10196 knetbsd*-gnu)
10197   version_type=linux
10198   need_lib_prefix=no
10199   need_version=no
10200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10201   soname_spec='${libname}${release}${shared_ext}$major'
10202   shlibpath_var=LD_LIBRARY_PATH
10203   shlibpath_overrides_runpath=no
10204   hardcode_into_libs=yes
10205   dynamic_linker='GNU ld.so'
10206   ;;
10207
10208 netbsd*)
10209   version_type=sunos
10210   need_lib_prefix=no
10211   need_version=no
10212   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10214     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10215     dynamic_linker='NetBSD (a.out) ld.so'
10216   else
10217     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10218     soname_spec='${libname}${release}${shared_ext}$major'
10219     dynamic_linker='NetBSD ld.elf_so'
10220   fi
10221   shlibpath_var=LD_LIBRARY_PATH
10222   shlibpath_overrides_runpath=yes
10223   hardcode_into_libs=yes
10224   ;;
10225
10226 newsos6)
10227   version_type=linux
10228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10229   shlibpath_var=LD_LIBRARY_PATH
10230   shlibpath_overrides_runpath=yes
10231   ;;
10232
10233 nto-qnx*)
10234   version_type=linux
10235   need_lib_prefix=no
10236   need_version=no
10237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238   soname_spec='${libname}${release}${shared_ext}$major'
10239   shlibpath_var=LD_LIBRARY_PATH
10240   shlibpath_overrides_runpath=yes
10241   ;;
10242
10243 openbsd*)
10244   version_type=sunos
10245   need_lib_prefix=no
10246   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10247   case $host_os in
10248     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10249     *)                         need_version=no  ;;
10250   esac
10251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10252   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10253   shlibpath_var=LD_LIBRARY_PATH
10254   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10255     case $host_os in
10256       openbsd2.[89] | openbsd2.[89].*)
10257         shlibpath_overrides_runpath=no
10258         ;;
10259       *)
10260         shlibpath_overrides_runpath=yes
10261         ;;
10262       esac
10263   else
10264     shlibpath_overrides_runpath=yes
10265   fi
10266   ;;
10267
10268 os2*)
10269   libname_spec='$name'
10270   shrext_cmds=".dll"
10271   need_lib_prefix=no
10272   library_names_spec='$libname${shared_ext} $libname.a'
10273   dynamic_linker='OS/2 ld.exe'
10274   shlibpath_var=LIBPATH
10275   ;;
10276
10277 osf3* | osf4* | osf5*)
10278   version_type=osf
10279   need_lib_prefix=no
10280   need_version=no
10281   soname_spec='${libname}${release}${shared_ext}$major'
10282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10283   shlibpath_var=LD_LIBRARY_PATH
10284   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10285   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10286   ;;
10287
10288 sco3.2v5*)
10289   version_type=osf
10290   soname_spec='${libname}${release}${shared_ext}$major'
10291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292   shlibpath_var=LD_LIBRARY_PATH
10293   ;;
10294
10295 solaris*)
10296   version_type=linux
10297   need_lib_prefix=no
10298   need_version=no
10299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300   soname_spec='${libname}${release}${shared_ext}$major'
10301   shlibpath_var=LD_LIBRARY_PATH
10302   shlibpath_overrides_runpath=yes
10303   hardcode_into_libs=yes
10304   # ldd complains unless libraries are executable
10305   postinstall_cmds='chmod +x $lib'
10306   ;;
10307
10308 sunos4*)
10309   version_type=sunos
10310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10311   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10312   shlibpath_var=LD_LIBRARY_PATH
10313   shlibpath_overrides_runpath=yes
10314   if test "$with_gnu_ld" = yes; then
10315     need_lib_prefix=no
10316   fi
10317   need_version=yes
10318   ;;
10319
10320 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10321   version_type=linux
10322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10323   soname_spec='${libname}${release}${shared_ext}$major'
10324   shlibpath_var=LD_LIBRARY_PATH
10325   case $host_vendor in
10326     sni)
10327       shlibpath_overrides_runpath=no
10328       need_lib_prefix=no
10329       export_dynamic_flag_spec='${wl}-Blargedynsym'
10330       runpath_var=LD_RUN_PATH
10331       ;;
10332     siemens)
10333       need_lib_prefix=no
10334       ;;
10335     motorola)
10336       need_lib_prefix=no
10337       need_version=no
10338       shlibpath_overrides_runpath=no
10339       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10340       ;;
10341   esac
10342   ;;
10343
10344 sysv4*MP*)
10345   if test -d /usr/nec ;then
10346     version_type=linux
10347     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10348     soname_spec='$libname${shared_ext}.$major'
10349     shlibpath_var=LD_LIBRARY_PATH
10350   fi
10351   ;;
10352
10353 uts4*)
10354   version_type=linux
10355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356   soname_spec='${libname}${release}${shared_ext}$major'
10357   shlibpath_var=LD_LIBRARY_PATH
10358   ;;
10359
10360 *)
10361   dynamic_linker=no
10362   ;;
10363 esac
10364 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10365 echo "${ECHO_T}$dynamic_linker" >&6
10366 test "$dynamic_linker" = no && can_build_shared=no
10367
10368 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10369 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10370 hardcode_action=
10371 if test -n "$hardcode_libdir_flag_spec" || \
10372    test -n "$runpath_var" || \
10373    test "X$hardcode_automatic" = "Xyes" ; then
10374
10375   # We can hardcode non-existant directories.
10376   if test "$hardcode_direct" != no &&
10377      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10378      # have to relink, otherwise we might link with an installed library
10379      # when we should be linking with a yet-to-be-installed one
10380      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10381      test "$hardcode_minus_L" != no; then
10382     # Linking always hardcodes the temporary library directory.
10383     hardcode_action=relink
10384   else
10385     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10386     hardcode_action=immediate
10387   fi
10388 else
10389   # We cannot hardcode anything, or else we can only hardcode existing
10390   # directories.
10391   hardcode_action=unsupported
10392 fi
10393 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10394 echo "${ECHO_T}$hardcode_action" >&6
10395
10396 if test "$hardcode_action" = relink; then
10397   # Fast installation is not supported
10398   enable_fast_install=no
10399 elif test "$shlibpath_overrides_runpath" = yes ||
10400      test "$enable_shared" = no; then
10401   # Fast installation is not necessary
10402   enable_fast_install=needless
10403 fi
10404
10405 striplib=
10406 old_striplib=
10407 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10408 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10409 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10410   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10411   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10412   echo "$as_me:$LINENO: result: yes" >&5
10413 echo "${ECHO_T}yes" >&6
10414 else
10415 # FIXME - insert some real tests, host_os isn't really good enough
10416   case $host_os in
10417    darwin*)
10418        if test -n "$STRIP" ; then
10419          striplib="$STRIP -x"
10420          echo "$as_me:$LINENO: result: yes" >&5
10421 echo "${ECHO_T}yes" >&6
10422        else
10423   echo "$as_me:$LINENO: result: no" >&5
10424 echo "${ECHO_T}no" >&6
10425 fi
10426        ;;
10427    *)
10428   echo "$as_me:$LINENO: result: no" >&5
10429 echo "${ECHO_T}no" >&6
10430     ;;
10431   esac
10432 fi
10433
10434 if test "x$enable_dlopen" != xyes; then
10435   enable_dlopen=unknown
10436   enable_dlopen_self=unknown
10437   enable_dlopen_self_static=unknown
10438 else
10439   lt_cv_dlopen=no
10440   lt_cv_dlopen_libs=
10441
10442   case $host_os in
10443   beos*)
10444     lt_cv_dlopen="load_add_on"
10445     lt_cv_dlopen_libs=
10446     lt_cv_dlopen_self=yes
10447     ;;
10448
10449   mingw* | pw32*)
10450     lt_cv_dlopen="LoadLibrary"
10451     lt_cv_dlopen_libs=
10452    ;;
10453
10454   cygwin*)
10455     lt_cv_dlopen="dlopen"
10456     lt_cv_dlopen_libs=
10457    ;;
10458
10459   darwin*)
10460   # if libdl is installed we need to link against it
10461     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10462 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10463 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10464   echo $ECHO_N "(cached) $ECHO_C" >&6
10465 else
10466   ac_check_lib_save_LIBS=$LIBS
10467 LIBS="-ldl  $LIBS"
10468 cat >conftest.$ac_ext <<_ACEOF
10469 /* confdefs.h.  */
10470 _ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h.  */
10474
10475 /* Override any gcc2 internal prototype to avoid an error.  */
10476 #ifdef __cplusplus
10477 extern "C"
10478 #endif
10479 /* We use char because int might match the return type of a gcc2
10480    builtin and then its argument prototype would still apply.  */
10481 char dlopen ();
10482 int
10483 main ()
10484 {
10485 dlopen ();
10486   ;
10487   return 0;
10488 }
10489 _ACEOF
10490 rm -f conftest.$ac_objext conftest$ac_exeext
10491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10492   (eval $ac_link) 2>conftest.er1
10493   ac_status=$?
10494   grep -v '^ *+' conftest.er1 >conftest.err
10495   rm -f conftest.er1
10496   cat conftest.err >&5
10497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498   (exit $ac_status); } &&
10499          { ac_try='test -z "$ac_c_werror_flag"
10500                          || test ! -s conftest.err'
10501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502   (eval $ac_try) 2>&5
10503   ac_status=$?
10504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505   (exit $ac_status); }; } &&
10506          { ac_try='test -s conftest$ac_exeext'
10507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508   (eval $ac_try) 2>&5
10509   ac_status=$?
10510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511   (exit $ac_status); }; }; then
10512   ac_cv_lib_dl_dlopen=yes
10513 else
10514   echo "$as_me: failed program was:" >&5
10515 sed 's/^/| /' conftest.$ac_ext >&5
10516
10517 ac_cv_lib_dl_dlopen=no
10518 fi
10519 rm -f conftest.err conftest.$ac_objext \
10520       conftest$ac_exeext conftest.$ac_ext
10521 LIBS=$ac_check_lib_save_LIBS
10522 fi
10523 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10524 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10525 if test $ac_cv_lib_dl_dlopen = yes; then
10526   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10527 else
10528
10529     lt_cv_dlopen="dyld"
10530     lt_cv_dlopen_libs=
10531     lt_cv_dlopen_self=yes
10532
10533 fi
10534
10535    ;;
10536
10537   *)
10538     echo "$as_me:$LINENO: checking for shl_load" >&5
10539 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10540 if test "${ac_cv_func_shl_load+set}" = set; then
10541   echo $ECHO_N "(cached) $ECHO_C" >&6
10542 else
10543   cat >conftest.$ac_ext <<_ACEOF
10544 /* confdefs.h.  */
10545 _ACEOF
10546 cat confdefs.h >>conftest.$ac_ext
10547 cat >>conftest.$ac_ext <<_ACEOF
10548 /* end confdefs.h.  */
10549 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10550    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10551 #define shl_load innocuous_shl_load
10552
10553 /* System header to define __stub macros and hopefully few prototypes,
10554     which can conflict with char shl_load (); below.
10555     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10556     <limits.h> exists even on freestanding compilers.  */
10557
10558 #ifdef __STDC__
10559 # include <limits.h>
10560 #else
10561 # include <assert.h>
10562 #endif
10563
10564 #undef shl_load
10565
10566 /* Override any gcc2 internal prototype to avoid an error.  */
10567 #ifdef __cplusplus
10568 extern "C"
10569 {
10570 #endif
10571 /* We use char because int might match the return type of a gcc2
10572    builtin and then its argument prototype would still apply.  */
10573 char shl_load ();
10574 /* The GNU C library defines this for functions which it implements
10575     to always fail with ENOSYS.  Some functions are actually named
10576     something starting with __ and the normal name is an alias.  */
10577 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10578 choke me
10579 #else
10580 char (*f) () = shl_load;
10581 #endif
10582 #ifdef __cplusplus
10583 }
10584 #endif
10585
10586 int
10587 main ()
10588 {
10589 return f != shl_load;
10590   ;
10591   return 0;
10592 }
10593 _ACEOF
10594 rm -f conftest.$ac_objext conftest$ac_exeext
10595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10596   (eval $ac_link) 2>conftest.er1
10597   ac_status=$?
10598   grep -v '^ *+' conftest.er1 >conftest.err
10599   rm -f conftest.er1
10600   cat conftest.err >&5
10601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602   (exit $ac_status); } &&
10603          { ac_try='test -z "$ac_c_werror_flag"
10604                          || test ! -s conftest.err'
10605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10606   (eval $ac_try) 2>&5
10607   ac_status=$?
10608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609   (exit $ac_status); }; } &&
10610          { ac_try='test -s conftest$ac_exeext'
10611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612   (eval $ac_try) 2>&5
10613   ac_status=$?
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); }; }; then
10616   ac_cv_func_shl_load=yes
10617 else
10618   echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10620
10621 ac_cv_func_shl_load=no
10622 fi
10623 rm -f conftest.err conftest.$ac_objext \
10624       conftest$ac_exeext conftest.$ac_ext
10625 fi
10626 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10627 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10628 if test $ac_cv_func_shl_load = yes; then
10629   lt_cv_dlopen="shl_load"
10630 else
10631   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10632 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10633 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10634   echo $ECHO_N "(cached) $ECHO_C" >&6
10635 else
10636   ac_check_lib_save_LIBS=$LIBS
10637 LIBS="-ldld  $LIBS"
10638 cat >conftest.$ac_ext <<_ACEOF
10639 /* confdefs.h.  */
10640 _ACEOF
10641 cat confdefs.h >>conftest.$ac_ext
10642 cat >>conftest.$ac_ext <<_ACEOF
10643 /* end confdefs.h.  */
10644
10645 /* Override any gcc2 internal prototype to avoid an error.  */
10646 #ifdef __cplusplus
10647 extern "C"
10648 #endif
10649 /* We use char because int might match the return type of a gcc2
10650    builtin and then its argument prototype would still apply.  */
10651 char shl_load ();
10652 int
10653 main ()
10654 {
10655 shl_load ();
10656   ;
10657   return 0;
10658 }
10659 _ACEOF
10660 rm -f conftest.$ac_objext conftest$ac_exeext
10661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10662   (eval $ac_link) 2>conftest.er1
10663   ac_status=$?
10664   grep -v '^ *+' conftest.er1 >conftest.err
10665   rm -f conftest.er1
10666   cat conftest.err >&5
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); } &&
10669          { ac_try='test -z "$ac_c_werror_flag"
10670                          || test ! -s conftest.err'
10671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672   (eval $ac_try) 2>&5
10673   ac_status=$?
10674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675   (exit $ac_status); }; } &&
10676          { ac_try='test -s conftest$ac_exeext'
10677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678   (eval $ac_try) 2>&5
10679   ac_status=$?
10680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681   (exit $ac_status); }; }; then
10682   ac_cv_lib_dld_shl_load=yes
10683 else
10684   echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10686
10687 ac_cv_lib_dld_shl_load=no
10688 fi
10689 rm -f conftest.err conftest.$ac_objext \
10690       conftest$ac_exeext conftest.$ac_ext
10691 LIBS=$ac_check_lib_save_LIBS
10692 fi
10693 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10694 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10695 if test $ac_cv_lib_dld_shl_load = yes; then
10696   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10697 else
10698   echo "$as_me:$LINENO: checking for dlopen" >&5
10699 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10700 if test "${ac_cv_func_dlopen+set}" = set; then
10701   echo $ECHO_N "(cached) $ECHO_C" >&6
10702 else
10703   cat >conftest.$ac_ext <<_ACEOF
10704 /* confdefs.h.  */
10705 _ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h.  */
10709 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10711 #define dlopen innocuous_dlopen
10712
10713 /* System header to define __stub macros and hopefully few prototypes,
10714     which can conflict with char dlopen (); below.
10715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10716     <limits.h> exists even on freestanding compilers.  */
10717
10718 #ifdef __STDC__
10719 # include <limits.h>
10720 #else
10721 # include <assert.h>
10722 #endif
10723
10724 #undef dlopen
10725
10726 /* Override any gcc2 internal prototype to avoid an error.  */
10727 #ifdef __cplusplus
10728 extern "C"
10729 {
10730 #endif
10731 /* We use char because int might match the return type of a gcc2
10732    builtin and then its argument prototype would still apply.  */
10733 char dlopen ();
10734 /* The GNU C library defines this for functions which it implements
10735     to always fail with ENOSYS.  Some functions are actually named
10736     something starting with __ and the normal name is an alias.  */
10737 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10738 choke me
10739 #else
10740 char (*f) () = dlopen;
10741 #endif
10742 #ifdef __cplusplus
10743 }
10744 #endif
10745
10746 int
10747 main ()
10748 {
10749 return f != dlopen;
10750   ;
10751   return 0;
10752 }
10753 _ACEOF
10754 rm -f conftest.$ac_objext conftest$ac_exeext
10755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10756   (eval $ac_link) 2>conftest.er1
10757   ac_status=$?
10758   grep -v '^ *+' conftest.er1 >conftest.err
10759   rm -f conftest.er1
10760   cat conftest.err >&5
10761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762   (exit $ac_status); } &&
10763          { ac_try='test -z "$ac_c_werror_flag"
10764                          || test ! -s conftest.err'
10765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766   (eval $ac_try) 2>&5
10767   ac_status=$?
10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); }; } &&
10770          { ac_try='test -s conftest$ac_exeext'
10771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772   (eval $ac_try) 2>&5
10773   ac_status=$?
10774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775   (exit $ac_status); }; }; then
10776   ac_cv_func_dlopen=yes
10777 else
10778   echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10780
10781 ac_cv_func_dlopen=no
10782 fi
10783 rm -f conftest.err conftest.$ac_objext \
10784       conftest$ac_exeext conftest.$ac_ext
10785 fi
10786 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10787 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10788 if test $ac_cv_func_dlopen = yes; then
10789   lt_cv_dlopen="dlopen"
10790 else
10791   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10792 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10793 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10794   echo $ECHO_N "(cached) $ECHO_C" >&6
10795 else
10796   ac_check_lib_save_LIBS=$LIBS
10797 LIBS="-ldl  $LIBS"
10798 cat >conftest.$ac_ext <<_ACEOF
10799 /* confdefs.h.  */
10800 _ACEOF
10801 cat confdefs.h >>conftest.$ac_ext
10802 cat >>conftest.$ac_ext <<_ACEOF
10803 /* end confdefs.h.  */
10804
10805 /* Override any gcc2 internal prototype to avoid an error.  */
10806 #ifdef __cplusplus
10807 extern "C"
10808 #endif
10809 /* We use char because int might match the return type of a gcc2
10810    builtin and then its argument prototype would still apply.  */
10811 char dlopen ();
10812 int
10813 main ()
10814 {
10815 dlopen ();
10816   ;
10817   return 0;
10818 }
10819 _ACEOF
10820 rm -f conftest.$ac_objext conftest$ac_exeext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10822   (eval $ac_link) 2>conftest.er1
10823   ac_status=$?
10824   grep -v '^ *+' conftest.er1 >conftest.err
10825   rm -f conftest.er1
10826   cat conftest.err >&5
10827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828   (exit $ac_status); } &&
10829          { ac_try='test -z "$ac_c_werror_flag"
10830                          || test ! -s conftest.err'
10831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832   (eval $ac_try) 2>&5
10833   ac_status=$?
10834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835   (exit $ac_status); }; } &&
10836          { ac_try='test -s conftest$ac_exeext'
10837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838   (eval $ac_try) 2>&5
10839   ac_status=$?
10840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841   (exit $ac_status); }; }; then
10842   ac_cv_lib_dl_dlopen=yes
10843 else
10844   echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10846
10847 ac_cv_lib_dl_dlopen=no
10848 fi
10849 rm -f conftest.err conftest.$ac_objext \
10850       conftest$ac_exeext conftest.$ac_ext
10851 LIBS=$ac_check_lib_save_LIBS
10852 fi
10853 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10854 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10855 if test $ac_cv_lib_dl_dlopen = yes; then
10856   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10857 else
10858   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10859 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10860 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10861   echo $ECHO_N "(cached) $ECHO_C" >&6
10862 else
10863   ac_check_lib_save_LIBS=$LIBS
10864 LIBS="-lsvld  $LIBS"
10865 cat >conftest.$ac_ext <<_ACEOF
10866 /* confdefs.h.  */
10867 _ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h.  */
10871
10872 /* Override any gcc2 internal prototype to avoid an error.  */
10873 #ifdef __cplusplus
10874 extern "C"
10875 #endif
10876 /* We use char because int might match the return type of a gcc2
10877    builtin and then its argument prototype would still apply.  */
10878 char dlopen ();
10879 int
10880 main ()
10881 {
10882 dlopen ();
10883   ;
10884   return 0;
10885 }
10886 _ACEOF
10887 rm -f conftest.$ac_objext conftest$ac_exeext
10888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10889   (eval $ac_link) 2>conftest.er1
10890   ac_status=$?
10891   grep -v '^ *+' conftest.er1 >conftest.err
10892   rm -f conftest.er1
10893   cat conftest.err >&5
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); } &&
10896          { ac_try='test -z "$ac_c_werror_flag"
10897                          || test ! -s conftest.err'
10898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899   (eval $ac_try) 2>&5
10900   ac_status=$?
10901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); }; } &&
10903          { ac_try='test -s conftest$ac_exeext'
10904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905   (eval $ac_try) 2>&5
10906   ac_status=$?
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); }; }; then
10909   ac_cv_lib_svld_dlopen=yes
10910 else
10911   echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10913
10914 ac_cv_lib_svld_dlopen=no
10915 fi
10916 rm -f conftest.err conftest.$ac_objext \
10917       conftest$ac_exeext conftest.$ac_ext
10918 LIBS=$ac_check_lib_save_LIBS
10919 fi
10920 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10921 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10922 if test $ac_cv_lib_svld_dlopen = yes; then
10923   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10924 else
10925   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10926 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10927 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10928   echo $ECHO_N "(cached) $ECHO_C" >&6
10929 else
10930   ac_check_lib_save_LIBS=$LIBS
10931 LIBS="-ldld  $LIBS"
10932 cat >conftest.$ac_ext <<_ACEOF
10933 /* confdefs.h.  */
10934 _ACEOF
10935 cat confdefs.h >>conftest.$ac_ext
10936 cat >>conftest.$ac_ext <<_ACEOF
10937 /* end confdefs.h.  */
10938
10939 /* Override any gcc2 internal prototype to avoid an error.  */
10940 #ifdef __cplusplus
10941 extern "C"
10942 #endif
10943 /* We use char because int might match the return type of a gcc2
10944    builtin and then its argument prototype would still apply.  */
10945 char dld_link ();
10946 int
10947 main ()
10948 {
10949 dld_link ();
10950   ;
10951   return 0;
10952 }
10953 _ACEOF
10954 rm -f conftest.$ac_objext conftest$ac_exeext
10955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10956   (eval $ac_link) 2>conftest.er1
10957   ac_status=$?
10958   grep -v '^ *+' conftest.er1 >conftest.err
10959   rm -f conftest.er1
10960   cat conftest.err >&5
10961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962   (exit $ac_status); } &&
10963          { ac_try='test -z "$ac_c_werror_flag"
10964                          || test ! -s conftest.err'
10965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966   (eval $ac_try) 2>&5
10967   ac_status=$?
10968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969   (exit $ac_status); }; } &&
10970          { ac_try='test -s conftest$ac_exeext'
10971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972   (eval $ac_try) 2>&5
10973   ac_status=$?
10974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975   (exit $ac_status); }; }; then
10976   ac_cv_lib_dld_dld_link=yes
10977 else
10978   echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10980
10981 ac_cv_lib_dld_dld_link=no
10982 fi
10983 rm -f conftest.err conftest.$ac_objext \
10984       conftest$ac_exeext conftest.$ac_ext
10985 LIBS=$ac_check_lib_save_LIBS
10986 fi
10987 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10988 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10989 if test $ac_cv_lib_dld_dld_link = yes; then
10990   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10991 fi
10992
10993
10994 fi
10995
10996
10997 fi
10998
10999
11000 fi
11001
11002
11003 fi
11004
11005
11006 fi
11007
11008     ;;
11009   esac
11010
11011   if test "x$lt_cv_dlopen" != xno; then
11012     enable_dlopen=yes
11013   else
11014     enable_dlopen=no
11015   fi
11016
11017   case $lt_cv_dlopen in
11018   dlopen)
11019     save_CPPFLAGS="$CPPFLAGS"
11020     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11021
11022     save_LDFLAGS="$LDFLAGS"
11023     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11024
11025     save_LIBS="$LIBS"
11026     LIBS="$lt_cv_dlopen_libs $LIBS"
11027
11028     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11029 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11030 if test "${lt_cv_dlopen_self+set}" = set; then
11031   echo $ECHO_N "(cached) $ECHO_C" >&6
11032 else
11033           if test "$cross_compiling" = yes; then :
11034   lt_cv_dlopen_self=cross
11035 else
11036   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11037   lt_status=$lt_dlunknown
11038   cat > conftest.$ac_ext <<EOF
11039 #line 11039 "configure"
11040 #include "confdefs.h"
11041
11042 #if HAVE_DLFCN_H
11043 #include <dlfcn.h>
11044 #endif
11045
11046 #include <stdio.h>
11047
11048 #ifdef RTLD_GLOBAL
11049 #  define LT_DLGLOBAL           RTLD_GLOBAL
11050 #else
11051 #  ifdef DL_GLOBAL
11052 #    define LT_DLGLOBAL         DL_GLOBAL
11053 #  else
11054 #    define LT_DLGLOBAL         0
11055 #  endif
11056 #endif
11057
11058 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11059    find out it does not work in some platform. */
11060 #ifndef LT_DLLAZY_OR_NOW
11061 #  ifdef RTLD_LAZY
11062 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11063 #  else
11064 #    ifdef DL_LAZY
11065 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11066 #    else
11067 #      ifdef RTLD_NOW
11068 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11069 #      else
11070 #        ifdef DL_NOW
11071 #          define LT_DLLAZY_OR_NOW      DL_NOW
11072 #        else
11073 #          define LT_DLLAZY_OR_NOW      0
11074 #        endif
11075 #      endif
11076 #    endif
11077 #  endif
11078 #endif
11079
11080 #ifdef __cplusplus
11081 extern "C" void exit (int);
11082 #endif
11083
11084 void fnord() { int i=42;}
11085 int main ()
11086 {
11087   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11088   int status = $lt_dlunknown;
11089
11090   if (self)
11091     {
11092       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11093       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11094       /* dlclose (self); */
11095     }
11096
11097     exit (status);
11098 }
11099 EOF
11100   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11101   (eval $ac_link) 2>&5
11102   ac_status=$?
11103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11105     (./conftest; exit; ) 2>/dev/null
11106     lt_status=$?
11107     case x$lt_status in
11108       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11109       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11110       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11111     esac
11112   else :
11113     # compilation failed
11114     lt_cv_dlopen_self=no
11115   fi
11116 fi
11117 rm -fr conftest*
11118
11119
11120 fi
11121 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11122 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11123
11124     if test "x$lt_cv_dlopen_self" = xyes; then
11125       LDFLAGS="$LDFLAGS $link_static_flag"
11126       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11127 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11128 if test "${lt_cv_dlopen_self_static+set}" = set; then
11129   echo $ECHO_N "(cached) $ECHO_C" >&6
11130 else
11131           if test "$cross_compiling" = yes; then :
11132   lt_cv_dlopen_self_static=cross
11133 else
11134   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11135   lt_status=$lt_dlunknown
11136   cat > conftest.$ac_ext <<EOF
11137 #line 11137 "configure"
11138 #include "confdefs.h"
11139
11140 #if HAVE_DLFCN_H
11141 #include <dlfcn.h>
11142 #endif
11143
11144 #include <stdio.h>
11145
11146 #ifdef RTLD_GLOBAL
11147 #  define LT_DLGLOBAL           RTLD_GLOBAL
11148 #else
11149 #  ifdef DL_GLOBAL
11150 #    define LT_DLGLOBAL         DL_GLOBAL
11151 #  else
11152 #    define LT_DLGLOBAL         0
11153 #  endif
11154 #endif
11155
11156 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11157    find out it does not work in some platform. */
11158 #ifndef LT_DLLAZY_OR_NOW
11159 #  ifdef RTLD_LAZY
11160 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11161 #  else
11162 #    ifdef DL_LAZY
11163 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11164 #    else
11165 #      ifdef RTLD_NOW
11166 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11167 #      else
11168 #        ifdef DL_NOW
11169 #          define LT_DLLAZY_OR_NOW      DL_NOW
11170 #        else
11171 #          define LT_DLLAZY_OR_NOW      0
11172 #        endif
11173 #      endif
11174 #    endif
11175 #  endif
11176 #endif
11177
11178 #ifdef __cplusplus
11179 extern "C" void exit (int);
11180 #endif
11181
11182 void fnord() { int i=42;}
11183 int main ()
11184 {
11185   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11186   int status = $lt_dlunknown;
11187
11188   if (self)
11189     {
11190       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11191       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11192       /* dlclose (self); */
11193     }
11194
11195     exit (status);
11196 }
11197 EOF
11198   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11199   (eval $ac_link) 2>&5
11200   ac_status=$?
11201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11203     (./conftest; exit; ) 2>/dev/null
11204     lt_status=$?
11205     case x$lt_status in
11206       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11207       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11208       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11209     esac
11210   else :
11211     # compilation failed
11212     lt_cv_dlopen_self_static=no
11213   fi
11214 fi
11215 rm -fr conftest*
11216
11217
11218 fi
11219 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11220 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11221     fi
11222
11223     CPPFLAGS="$save_CPPFLAGS"
11224     LDFLAGS="$save_LDFLAGS"
11225     LIBS="$save_LIBS"
11226     ;;
11227   esac
11228
11229   case $lt_cv_dlopen_self in
11230   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11231   *) enable_dlopen_self=unknown ;;
11232   esac
11233
11234   case $lt_cv_dlopen_self_static in
11235   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11236   *) enable_dlopen_self_static=unknown ;;
11237   esac
11238 fi
11239
11240
11241 # Report which librarie types wil actually be built
11242 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11243 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11244 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11245 echo "${ECHO_T}$can_build_shared" >&6
11246
11247 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11248 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11249 test "$can_build_shared" = "no" && enable_shared=no
11250
11251 # On AIX, shared libraries and static libraries use the same namespace, and
11252 # are all built from PIC.
11253 case "$host_os" in
11254 aix3*)
11255   test "$enable_shared" = yes && enable_static=no
11256   if test -n "$RANLIB"; then
11257     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11258     postinstall_cmds='$RANLIB $lib'
11259   fi
11260   ;;
11261
11262 aix4* | aix5*)
11263   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11264     test "$enable_shared" = yes && enable_static=no
11265   fi
11266     ;;
11267 esac
11268 echo "$as_me:$LINENO: result: $enable_shared" >&5
11269 echo "${ECHO_T}$enable_shared" >&6
11270
11271 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11272 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11273 # Make sure either enable_shared or enable_static is yes.
11274 test "$enable_shared" = yes || enable_static=yes
11275 echo "$as_me:$LINENO: result: $enable_static" >&5
11276 echo "${ECHO_T}$enable_static" >&6
11277
11278 # The else clause should only fire when bootstrapping the
11279 # libtool distribution, otherwise you forgot to ship ltmain.sh
11280 # with your package, and you will get complaints that there are
11281 # no rules to generate ltmain.sh.
11282 if test -f "$ltmain"; then
11283   # See if we are running on zsh, and set the options which allow our commands through
11284   # without removal of \ escapes.
11285   if test -n "${ZSH_VERSION+set}" ; then
11286     setopt NO_GLOB_SUBST
11287   fi
11288   # Now quote all the things that may contain metacharacters while being
11289   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11290   # variables and quote the copies for generation of the libtool script.
11291   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11292     SED SHELL STRIP \
11293     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11294     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11295     deplibs_check_method reload_flag reload_cmds need_locks \
11296     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11297     lt_cv_sys_global_symbol_to_c_name_address \
11298     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11299     old_postinstall_cmds old_postuninstall_cmds \
11300     compiler \
11301     CC \
11302     LD \
11303     lt_prog_compiler_wl \
11304     lt_prog_compiler_pic \
11305     lt_prog_compiler_static \
11306     lt_prog_compiler_no_builtin_flag \
11307     export_dynamic_flag_spec \
11308     thread_safe_flag_spec \
11309     whole_archive_flag_spec \
11310     enable_shared_with_static_runtimes \
11311     old_archive_cmds \
11312     old_archive_from_new_cmds \
11313     predep_objects \
11314     postdep_objects \
11315     predeps \
11316     postdeps \
11317     compiler_lib_search_path \
11318     archive_cmds \
11319     archive_expsym_cmds \
11320     postinstall_cmds \
11321     postuninstall_cmds \
11322     old_archive_from_expsyms_cmds \
11323     allow_undefined_flag \
11324     no_undefined_flag \
11325     export_symbols_cmds \
11326     hardcode_libdir_flag_spec \
11327     hardcode_libdir_flag_spec_ld \
11328     hardcode_libdir_separator \
11329     hardcode_automatic \
11330     module_cmds \
11331     module_expsym_cmds \
11332     lt_cv_prog_compiler_c_o \
11333     exclude_expsyms \
11334     include_expsyms; do
11335
11336     case $var in
11337     old_archive_cmds | \
11338     old_archive_from_new_cmds | \
11339     archive_cmds | \
11340     archive_expsym_cmds | \
11341     module_cmds | \
11342     module_expsym_cmds | \
11343     old_archive_from_expsyms_cmds | \
11344     export_symbols_cmds | \
11345     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11346     postinstall_cmds | postuninstall_cmds | \
11347     old_postinstall_cmds | old_postuninstall_cmds | \
11348     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11349       # Double-quote double-evaled strings.
11350       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11351       ;;
11352     *)
11353       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11354       ;;
11355     esac
11356   done
11357
11358   case $lt_echo in
11359   *'\$0 --fallback-echo"')
11360     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11361     ;;
11362   esac
11363
11364 cfgfile="${ofile}T"
11365   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11366   $rm -f "$cfgfile"
11367   { echo "$as_me:$LINENO: creating $ofile" >&5
11368 echo "$as_me: creating $ofile" >&6;}
11369
11370   cat <<__EOF__ >> "$cfgfile"
11371 #! $SHELL
11372
11373 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11374 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11375 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11376 #
11377 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11378 # Free Software Foundation, Inc.
11379 #
11380 # This file is part of GNU Libtool:
11381 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11382 #
11383 # This program is free software; you can redistribute it and/or modify
11384 # it under the terms of the GNU General Public License as published by
11385 # the Free Software Foundation; either version 2 of the License, or
11386 # (at your option) any later version.
11387 #
11388 # This program is distributed in the hope that it will be useful, but
11389 # WITHOUT ANY WARRANTY; without even the implied warranty of
11390 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11391 # General Public License for more details.
11392 #
11393 # You should have received a copy of the GNU General Public License
11394 # along with this program; if not, write to the Free Software
11395 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11396 #
11397 # As a special exception to the GNU General Public License, if you
11398 # distribute this file as part of a program that contains a
11399 # configuration script generated by Autoconf, you may include it under
11400 # the same distribution terms that you use for the rest of that program.
11401
11402 # A sed program that does not truncate output.
11403 SED=$lt_SED
11404
11405 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11406 Xsed="$SED -e 1s/^X//"
11407
11408 # The HP-UX ksh and POSIX shell print the target directory to stdout
11409 # if CDPATH is set.
11410 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11411
11412 # The names of the tagged configurations supported by this script.
11413 available_tags=
11414
11415 # ### BEGIN LIBTOOL CONFIG
11416
11417 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11418
11419 # Shell to use when invoking shell scripts.
11420 SHELL=$lt_SHELL
11421
11422 # Whether or not to build shared libraries.
11423 build_libtool_libs=$enable_shared
11424
11425 # Whether or not to build static libraries.
11426 build_old_libs=$enable_static
11427
11428 # Whether or not to add -lc for building shared libraries.
11429 build_libtool_need_lc=$archive_cmds_need_lc
11430
11431 # Whether or not to disallow shared libs when runtime libs are static
11432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11433
11434 # Whether or not to optimize for fast installation.
11435 fast_install=$enable_fast_install
11436
11437 # The host system.
11438 host_alias=$host_alias
11439 host=$host
11440 host_os=$host_os
11441
11442 # The build system.
11443 build_alias=$build_alias
11444 build=$build
11445 build_os=$build_os
11446
11447 # An echo program that does not interpret backslashes.
11448 echo=$lt_echo
11449
11450 # The archiver.
11451 AR=$lt_AR
11452 AR_FLAGS=$lt_AR_FLAGS
11453
11454 # A C compiler.
11455 LTCC=$lt_LTCC
11456
11457 # A language-specific compiler.
11458 CC=$lt_compiler
11459
11460 # Is the compiler the GNU C compiler?
11461 with_gcc=$GCC
11462
11463 # An ERE matcher.
11464 EGREP=$lt_EGREP
11465
11466 # The linker used to build libraries.
11467 LD=$lt_LD
11468
11469 # Whether we need hard or soft links.
11470 LN_S=$lt_LN_S
11471
11472 # A BSD-compatible nm program.
11473 NM=$lt_NM
11474
11475 # A symbol stripping program
11476 STRIP=$lt_STRIP
11477
11478 # Used to examine libraries when file_magic_cmd begins "file"
11479 MAGIC_CMD=$MAGIC_CMD
11480
11481 # Used on cygwin: DLL creation program.
11482 DLLTOOL="$DLLTOOL"
11483
11484 # Used on cygwin: object dumper.
11485 OBJDUMP="$OBJDUMP"
11486
11487 # Used on cygwin: assembler.
11488 AS="$AS"
11489
11490 # The name of the directory that contains temporary libtool files.
11491 objdir=$objdir
11492
11493 # How to create reloadable object files.
11494 reload_flag=$lt_reload_flag
11495 reload_cmds=$lt_reload_cmds
11496
11497 # How to pass a linker flag through the compiler.
11498 wl=$lt_lt_prog_compiler_wl
11499
11500 # Object file suffix (normally "o").
11501 objext="$ac_objext"
11502
11503 # Old archive suffix (normally "a").
11504 libext="$libext"
11505
11506 # Shared library suffix (normally ".so").
11507 shrext_cmds='$shrext_cmds'
11508
11509 # Executable file suffix (normally "").
11510 exeext="$exeext"
11511
11512 # Additional compiler flags for building library objects.
11513 pic_flag=$lt_lt_prog_compiler_pic
11514 pic_mode=$pic_mode
11515
11516 # What is the maximum length of a command?
11517 max_cmd_len=$lt_cv_sys_max_cmd_len
11518
11519 # Does compiler simultaneously support -c and -o options?
11520 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11521
11522 # Must we lock files when doing compilation?
11523 need_locks=$lt_need_locks
11524
11525 # Do we need the lib prefix for modules?
11526 need_lib_prefix=$need_lib_prefix
11527
11528 # Do we need a version for libraries?
11529 need_version=$need_version
11530
11531 # Whether dlopen is supported.
11532 dlopen_support=$enable_dlopen
11533
11534 # Whether dlopen of programs is supported.
11535 dlopen_self=$enable_dlopen_self
11536
11537 # Whether dlopen of statically linked programs is supported.
11538 dlopen_self_static=$enable_dlopen_self_static
11539
11540 # Compiler flag to prevent dynamic linking.
11541 link_static_flag=$lt_lt_prog_compiler_static
11542
11543 # Compiler flag to turn off builtin functions.
11544 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11545
11546 # Compiler flag to allow reflexive dlopens.
11547 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11548
11549 # Compiler flag to generate shared objects directly from archives.
11550 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11551
11552 # Compiler flag to generate thread-safe objects.
11553 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11554
11555 # Library versioning type.
11556 version_type=$version_type
11557
11558 # Format of library name prefix.
11559 libname_spec=$lt_libname_spec
11560
11561 # List of archive names.  First name is the real one, the rest are links.
11562 # The last name is the one that the linker finds with -lNAME.
11563 library_names_spec=$lt_library_names_spec
11564
11565 # The coded name of the library, if different from the real name.
11566 soname_spec=$lt_soname_spec
11567
11568 # Commands used to build and install an old-style archive.
11569 RANLIB=$lt_RANLIB
11570 old_archive_cmds=$lt_old_archive_cmds
11571 old_postinstall_cmds=$lt_old_postinstall_cmds
11572 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11573
11574 # Create an old-style archive from a shared archive.
11575 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11576
11577 # Create a temporary old-style archive to link instead of a shared archive.
11578 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11579
11580 # Commands used to build and install a shared archive.
11581 archive_cmds=$lt_archive_cmds
11582 archive_expsym_cmds=$lt_archive_expsym_cmds
11583 postinstall_cmds=$lt_postinstall_cmds
11584 postuninstall_cmds=$lt_postuninstall_cmds
11585
11586 # Commands used to build a loadable module (assumed same as above if empty)
11587 module_cmds=$lt_module_cmds
11588 module_expsym_cmds=$lt_module_expsym_cmds
11589
11590 # Commands to strip libraries.
11591 old_striplib=$lt_old_striplib
11592 striplib=$lt_striplib
11593
11594 # Dependencies to place before the objects being linked to create a
11595 # shared library.
11596 predep_objects=$lt_predep_objects
11597
11598 # Dependencies to place after the objects being linked to create a
11599 # shared library.
11600 postdep_objects=$lt_postdep_objects
11601
11602 # Dependencies to place before the objects being linked to create a
11603 # shared library.
11604 predeps=$lt_predeps
11605
11606 # Dependencies to place after the objects being linked to create a
11607 # shared library.
11608 postdeps=$lt_postdeps
11609
11610 # The library search path used internally by the compiler when linking
11611 # a shared library.
11612 compiler_lib_search_path=$lt_compiler_lib_search_path
11613
11614 # Method to check whether dependent libraries are shared objects.
11615 deplibs_check_method=$lt_deplibs_check_method
11616
11617 # Command to use when deplibs_check_method == file_magic.
11618 file_magic_cmd=$lt_file_magic_cmd
11619
11620 # Flag that allows shared libraries with undefined symbols to be built.
11621 allow_undefined_flag=$lt_allow_undefined_flag
11622
11623 # Flag that forces no undefined symbols.
11624 no_undefined_flag=$lt_no_undefined_flag
11625
11626 # Commands used to finish a libtool library installation in a directory.
11627 finish_cmds=$lt_finish_cmds
11628
11629 # Same as above, but a single script fragment to be evaled but not shown.
11630 finish_eval=$lt_finish_eval
11631
11632 # Take the output of nm and produce a listing of raw symbols and C names.
11633 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11634
11635 # Transform the output of nm in a proper C declaration
11636 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11637
11638 # Transform the output of nm in a C name address pair
11639 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11640
11641 # This is the shared library runtime path variable.
11642 runpath_var=$runpath_var
11643
11644 # This is the shared library path variable.
11645 shlibpath_var=$shlibpath_var
11646
11647 # Is shlibpath searched before the hard-coded library search path?
11648 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11649
11650 # How to hardcode a shared library path into an executable.
11651 hardcode_action=$hardcode_action
11652
11653 # Whether we should hardcode library paths into libraries.
11654 hardcode_into_libs=$hardcode_into_libs
11655
11656 # Flag to hardcode \$libdir into a binary during linking.
11657 # This must work even if \$libdir does not exist.
11658 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11659
11660 # If ld is used when linking, flag to hardcode \$libdir into
11661 # a binary during linking. This must work even if \$libdir does
11662 # not exist.
11663 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11664
11665 # Whether we need a single -rpath flag with a separated argument.
11666 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11667
11668 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11669 # resulting binary.
11670 hardcode_direct=$hardcode_direct
11671
11672 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11673 # resulting binary.
11674 hardcode_minus_L=$hardcode_minus_L
11675
11676 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11677 # the resulting binary.
11678 hardcode_shlibpath_var=$hardcode_shlibpath_var
11679
11680 # Set to yes if building a shared library automatically hardcodes DIR into the library
11681 # and all subsequent libraries and executables linked against it.
11682 hardcode_automatic=$hardcode_automatic
11683
11684 # Variables whose values should be saved in libtool wrapper scripts and
11685 # restored at relink time.
11686 variables_saved_for_relink="$variables_saved_for_relink"
11687
11688 # Whether libtool must link a program against all its dependency libraries.
11689 link_all_deplibs=$link_all_deplibs
11690
11691 # Compile-time system search path for libraries
11692 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11693
11694 # Run-time system search path for libraries
11695 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11696
11697 # Fix the shell variable \$srcfile for the compiler.
11698 fix_srcfile_path="$fix_srcfile_path"
11699
11700 # Set to yes if exported symbols are required.
11701 always_export_symbols=$always_export_symbols
11702
11703 # The commands to list exported symbols.
11704 export_symbols_cmds=$lt_export_symbols_cmds
11705
11706 # The commands to extract the exported symbol list from a shared archive.
11707 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11708
11709 # Symbols that should not be listed in the preloaded symbols.
11710 exclude_expsyms=$lt_exclude_expsyms
11711
11712 # Symbols that must always be exported.
11713 include_expsyms=$lt_include_expsyms
11714
11715 # ### END LIBTOOL CONFIG
11716
11717 __EOF__
11718
11719
11720   case $host_os in
11721   aix3*)
11722     cat <<\EOF >> "$cfgfile"
11723
11724 # AIX sometimes has problems with the GCC collect2 program.  For some
11725 # reason, if we set the COLLECT_NAMES environment variable, the problems
11726 # vanish in a puff of smoke.
11727 if test "X${COLLECT_NAMES+set}" != Xset; then
11728   COLLECT_NAMES=
11729   export COLLECT_NAMES
11730 fi
11731 EOF
11732     ;;
11733   esac
11734
11735   # We use sed instead of cat because bash on DJGPP gets confused if
11736   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11737   # text mode, it properly converts lines to CR/LF.  This bash problem
11738   # is reportedly fixed, but why not run on old versions too?
11739   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11740
11741   mv -f "$cfgfile" "$ofile" || \
11742     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11743   chmod +x "$ofile"
11744
11745 else
11746   # If there is no Makefile yet, we rely on a make rule to execute
11747   # `config.status --recheck' to rerun these tests and create the
11748   # libtool script then.
11749   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11750   if test -f "$ltmain_in"; then
11751     test -f Makefile && make "$ltmain"
11752   fi
11753 fi
11754
11755
11756 ac_ext=c
11757 ac_cpp='$CPP $CPPFLAGS'
11758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11761
11762 CC="$lt_save_CC"
11763
11764
11765 # Check whether --with-tags or --without-tags was given.
11766 if test "${with_tags+set}" = set; then
11767   withval="$with_tags"
11768   tagnames="$withval"
11769 fi;
11770
11771 if test -f "$ltmain" && test -n "$tagnames"; then
11772   if test ! -f "${ofile}"; then
11773     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11774 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11775   fi
11776
11777   if test -z "$LTCC"; then
11778     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11779     if test -z "$LTCC"; then
11780       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11781 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11782     else
11783       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11784 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11785     fi
11786   fi
11787
11788   # Extract list of available tagged configurations in $ofile.
11789   # Note that this assumes the entire list is on one line.
11790   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11791
11792   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11793   for tagname in $tagnames; do
11794     IFS="$lt_save_ifs"
11795     # Check whether tagname contains only valid characters
11796     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11797     "") ;;
11798     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11799 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11800    { (exit 1); exit 1; }; }
11801         ;;
11802     esac
11803
11804     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11805     then
11806       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11807 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11808    { (exit 1); exit 1; }; }
11809     fi
11810
11811     # Update the list of available tags.
11812     if test -n "$tagname"; then
11813       echo appending configuration tag \"$tagname\" to $ofile
11814
11815       case $tagname in
11816       CXX)
11817         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11818             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11819             (test "X$CXX" != "Xg++"))) ; then
11820           ac_ext=cc
11821 ac_cpp='$CXXCPP $CPPFLAGS'
11822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11825
11826
11827
11828
11829 archive_cmds_need_lc_CXX=no
11830 allow_undefined_flag_CXX=
11831 always_export_symbols_CXX=no
11832 archive_expsym_cmds_CXX=
11833 export_dynamic_flag_spec_CXX=
11834 hardcode_direct_CXX=no
11835 hardcode_libdir_flag_spec_CXX=
11836 hardcode_libdir_flag_spec_ld_CXX=
11837 hardcode_libdir_separator_CXX=
11838 hardcode_minus_L_CXX=no
11839 hardcode_automatic_CXX=no
11840 module_cmds_CXX=
11841 module_expsym_cmds_CXX=
11842 link_all_deplibs_CXX=unknown
11843 old_archive_cmds_CXX=$old_archive_cmds
11844 no_undefined_flag_CXX=
11845 whole_archive_flag_spec_CXX=
11846 enable_shared_with_static_runtimes_CXX=no
11847
11848 # Dependencies to place before and after the object being linked:
11849 predep_objects_CXX=
11850 postdep_objects_CXX=
11851 predeps_CXX=
11852 postdeps_CXX=
11853 compiler_lib_search_path_CXX=
11854
11855 # Source file extension for C++ test sources.
11856 ac_ext=cc
11857
11858 # Object file extension for compiled C++ test sources.
11859 objext=o
11860 objext_CXX=$objext
11861
11862 # Code to be used in simple compile tests
11863 lt_simple_compile_test_code="int some_variable = 0;\n"
11864
11865 # Code to be used in simple link tests
11866 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11867
11868 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11869
11870 # If no C compiler was specified, use CC.
11871 LTCC=${LTCC-"$CC"}
11872
11873 # Allow CC to be a program name with arguments.
11874 compiler=$CC
11875
11876
11877 # save warnings/boilerplate of simple test code
11878 ac_outfile=conftest.$ac_objext
11879 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11880 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11881 _lt_compiler_boilerplate=`cat conftest.err`
11882 $rm conftest*
11883
11884 ac_outfile=conftest.$ac_objext
11885 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11886 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11887 _lt_linker_boilerplate=`cat conftest.err`
11888 $rm conftest*
11889
11890
11891 # Allow CC to be a program name with arguments.
11892 lt_save_CC=$CC
11893 lt_save_LD=$LD
11894 lt_save_GCC=$GCC
11895 GCC=$GXX
11896 lt_save_with_gnu_ld=$with_gnu_ld
11897 lt_save_path_LD=$lt_cv_path_LD
11898 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11899   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11900 else
11901   unset lt_cv_prog_gnu_ld
11902 fi
11903 if test -n "${lt_cv_path_LDCXX+set}"; then
11904   lt_cv_path_LD=$lt_cv_path_LDCXX
11905 else
11906   unset lt_cv_path_LD
11907 fi
11908 test -z "${LDCXX+set}" || LD=$LDCXX
11909 CC=${CXX-"c++"}
11910 compiler=$CC
11911 compiler_CXX=$CC
11912 for cc_temp in $compiler""; do
11913   case $cc_temp in
11914     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11915     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11916     \-*) ;;
11917     *) break;;
11918   esac
11919 done
11920 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11921
11922
11923 # We don't want -fno-exception wen compiling C++ code, so set the
11924 # no_builtin_flag separately
11925 if test "$GXX" = yes; then
11926   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11927 else
11928   lt_prog_compiler_no_builtin_flag_CXX=
11929 fi
11930
11931 if test "$GXX" = yes; then
11932   # Set up default GNU C++ configuration
11933
11934
11935 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11936 if test "${with_gnu_ld+set}" = set; then
11937   withval="$with_gnu_ld"
11938   test "$withval" = no || with_gnu_ld=yes
11939 else
11940   with_gnu_ld=no
11941 fi;
11942 ac_prog=ld
11943 if test "$GCC" = yes; then
11944   # Check if gcc -print-prog-name=ld gives a path.
11945   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11946 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11947   case $host in
11948   *-*-mingw*)
11949     # gcc leaves a trailing carriage return which upsets mingw
11950     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11951   *)
11952     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11953   esac
11954   case $ac_prog in
11955     # Accept absolute paths.
11956     [\\/]* | ?:[\\/]*)
11957       re_direlt='/[^/][^/]*/\.\./'
11958       # Canonicalize the pathname of ld
11959       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11960       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11961         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11962       done
11963       test -z "$LD" && LD="$ac_prog"
11964       ;;
11965   "")
11966     # If it fails, then pretend we aren't using GCC.
11967     ac_prog=ld
11968     ;;
11969   *)
11970     # If it is relative, then search for the first ld in PATH.
11971     with_gnu_ld=unknown
11972     ;;
11973   esac
11974 elif test "$with_gnu_ld" = yes; then
11975   echo "$as_me:$LINENO: checking for GNU ld" >&5
11976 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11977 else
11978   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11979 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11980 fi
11981 if test "${lt_cv_path_LD+set}" = set; then
11982   echo $ECHO_N "(cached) $ECHO_C" >&6
11983 else
11984   if test -z "$LD"; then
11985   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11986   for ac_dir in $PATH; do
11987     IFS="$lt_save_ifs"
11988     test -z "$ac_dir" && ac_dir=.
11989     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11990       lt_cv_path_LD="$ac_dir/$ac_prog"
11991       # Check to see if the program is GNU ld.  I'd rather use --version,
11992       # but apparently some GNU ld's only accept -v.
11993       # Break only if it was the GNU/non-GNU ld that we prefer.
11994       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11995       *GNU* | *'with BFD'*)
11996         test "$with_gnu_ld" != no && break
11997         ;;
11998       *)
11999         test "$with_gnu_ld" != yes && break
12000         ;;
12001       esac
12002     fi
12003   done
12004   IFS="$lt_save_ifs"
12005 else
12006   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12007 fi
12008 fi
12009
12010 LD="$lt_cv_path_LD"
12011 if test -n "$LD"; then
12012   echo "$as_me:$LINENO: result: $LD" >&5
12013 echo "${ECHO_T}$LD" >&6
12014 else
12015   echo "$as_me:$LINENO: result: no" >&5
12016 echo "${ECHO_T}no" >&6
12017 fi
12018 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12019 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12020    { (exit 1); exit 1; }; }
12021 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12022 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12023 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12024   echo $ECHO_N "(cached) $ECHO_C" >&6
12025 else
12026   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12027 case `$LD -v 2>&1 </dev/null` in
12028 *GNU* | *'with BFD'*)
12029   lt_cv_prog_gnu_ld=yes
12030   ;;
12031 *)
12032   lt_cv_prog_gnu_ld=no
12033   ;;
12034 esac
12035 fi
12036 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12037 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12038 with_gnu_ld=$lt_cv_prog_gnu_ld
12039
12040
12041
12042   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12043   # archiving commands below assume that GNU ld is being used.
12044   if test "$with_gnu_ld" = yes; then
12045     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12046     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12047
12048     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12049     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12050
12051     # If archive_cmds runs LD, not CC, wlarc should be empty
12052     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12053     #     investigate it a little bit more. (MM)
12054     wlarc='${wl}'
12055
12056     # ancient GNU ld didn't support --whole-archive et. al.
12057     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12058         grep 'no-whole-archive' > /dev/null; then
12059       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12060     else
12061       whole_archive_flag_spec_CXX=
12062     fi
12063   else
12064     with_gnu_ld=no
12065     wlarc=
12066
12067     # A generic and very simple default shared library creation
12068     # command for GNU C++ for the case where it uses the native
12069     # linker, instead of GNU ld.  If possible, this setting should
12070     # overridden to take advantage of the native linker features on
12071     # the platform it is being used on.
12072     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12073   fi
12074
12075   # Commands to make compiler produce verbose output that lists
12076   # what "hidden" libraries, object files and flags are used when
12077   # linking a shared library.
12078   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12079
12080 else
12081   GXX=no
12082   with_gnu_ld=no
12083   wlarc=
12084 fi
12085
12086 # PORTME: fill in a description of your system's C++ link characteristics
12087 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12088 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12089 ld_shlibs_CXX=yes
12090 case $host_os in
12091   aix3*)
12092     # FIXME: insert proper C++ library support
12093     ld_shlibs_CXX=no
12094     ;;
12095   aix4* | aix5*)
12096     if test "$host_cpu" = ia64; then
12097       # On IA64, the linker does run time linking by default, so we don't
12098       # have to do anything special.
12099       aix_use_runtimelinking=no
12100       exp_sym_flag='-Bexport'
12101       no_entry_flag=""
12102     else
12103       aix_use_runtimelinking=no
12104
12105       # Test if we are trying to use run time linking or normal
12106       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12107       # need to do runtime linking.
12108       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12109         for ld_flag in $LDFLAGS; do
12110           case $ld_flag in
12111           *-brtl*)
12112             aix_use_runtimelinking=yes
12113             break
12114             ;;
12115           esac
12116         done
12117       esac
12118
12119       exp_sym_flag='-bexport'
12120       no_entry_flag='-bnoentry'
12121     fi
12122
12123     # When large executables or shared objects are built, AIX ld can
12124     # have problems creating the table of contents.  If linking a library
12125     # or program results in "error TOC overflow" add -mminimal-toc to
12126     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12127     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12128
12129     archive_cmds_CXX=''
12130     hardcode_direct_CXX=yes
12131     hardcode_libdir_separator_CXX=':'
12132     link_all_deplibs_CXX=yes
12133
12134     if test "$GXX" = yes; then
12135       case $host_os in aix4.[012]|aix4.[012].*)
12136       # We only want to do this on AIX 4.2 and lower, the check
12137       # below for broken collect2 doesn't work under 4.3+
12138         collect2name=`${CC} -print-prog-name=collect2`
12139         if test -f "$collect2name" && \
12140            strings "$collect2name" | grep resolve_lib_name >/dev/null
12141         then
12142           # We have reworked collect2
12143           hardcode_direct_CXX=yes
12144         else
12145           # We have old collect2
12146           hardcode_direct_CXX=unsupported
12147           # It fails to find uninstalled libraries when the uninstalled
12148           # path is not listed in the libpath.  Setting hardcode_minus_L
12149           # to unsupported forces relinking
12150           hardcode_minus_L_CXX=yes
12151           hardcode_libdir_flag_spec_CXX='-L$libdir'
12152           hardcode_libdir_separator_CXX=
12153         fi
12154       esac
12155       shared_flag='-shared'
12156       if test "$aix_use_runtimelinking" = yes; then
12157         shared_flag="$shared_flag "'${wl}-G'
12158       fi
12159     else
12160       # not using gcc
12161       if test "$host_cpu" = ia64; then
12162         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12163         # chokes on -Wl,-G. The following line is correct:
12164         shared_flag='-G'
12165       else
12166         if test "$aix_use_runtimelinking" = yes; then
12167           shared_flag='${wl}-G'
12168         else
12169           shared_flag='${wl}-bM:SRE'
12170         fi
12171       fi
12172     fi
12173
12174     # It seems that -bexpall does not export symbols beginning with
12175     # underscore (_), so it is better to generate a list of symbols to export.
12176     always_export_symbols_CXX=yes
12177     if test "$aix_use_runtimelinking" = yes; then
12178       # Warning - without using the other runtime loading flags (-brtl),
12179       # -berok will link without error, but may produce a broken library.
12180       allow_undefined_flag_CXX='-berok'
12181       # Determine the default libpath from the value encoded in an empty executable.
12182       cat >conftest.$ac_ext <<_ACEOF
12183 /* confdefs.h.  */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h.  */
12188
12189 int
12190 main ()
12191 {
12192
12193   ;
12194   return 0;
12195 }
12196 _ACEOF
12197 rm -f conftest.$ac_objext conftest$ac_exeext
12198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12199   (eval $ac_link) 2>conftest.er1
12200   ac_status=$?
12201   grep -v '^ *+' conftest.er1 >conftest.err
12202   rm -f conftest.er1
12203   cat conftest.err >&5
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); } &&
12206          { ac_try='test -z "$ac_cxx_werror_flag"
12207                          || test ! -s conftest.err'
12208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209   (eval $ac_try) 2>&5
12210   ac_status=$?
12211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212   (exit $ac_status); }; } &&
12213          { ac_try='test -s conftest$ac_exeext'
12214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215   (eval $ac_try) 2>&5
12216   ac_status=$?
12217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218   (exit $ac_status); }; }; then
12219
12220 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12221 }'`
12222 # Check for a 64-bit object if we didn't find anything.
12223 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12224 }'`; fi
12225 else
12226   echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12228
12229 fi
12230 rm -f conftest.err conftest.$ac_objext \
12231       conftest$ac_exeext conftest.$ac_ext
12232 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12233
12234       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12235
12236       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12237      else
12238       if test "$host_cpu" = ia64; then
12239         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12240         allow_undefined_flag_CXX="-z nodefs"
12241         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12242       else
12243         # Determine the default libpath from the value encoded in an empty executable.
12244         cat >conftest.$ac_ext <<_ACEOF
12245 /* confdefs.h.  */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h.  */
12250
12251 int
12252 main ()
12253 {
12254
12255   ;
12256   return 0;
12257 }
12258 _ACEOF
12259 rm -f conftest.$ac_objext conftest$ac_exeext
12260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12261   (eval $ac_link) 2>conftest.er1
12262   ac_status=$?
12263   grep -v '^ *+' conftest.er1 >conftest.err
12264   rm -f conftest.er1
12265   cat conftest.err >&5
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); } &&
12268          { ac_try='test -z "$ac_cxx_werror_flag"
12269                          || test ! -s conftest.err'
12270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271   (eval $ac_try) 2>&5
12272   ac_status=$?
12273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274   (exit $ac_status); }; } &&
12275          { ac_try='test -s conftest$ac_exeext'
12276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277   (eval $ac_try) 2>&5
12278   ac_status=$?
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); }; }; then
12281
12282 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12283 }'`
12284 # Check for a 64-bit object if we didn't find anything.
12285 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12286 }'`; fi
12287 else
12288   echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12290
12291 fi
12292 rm -f conftest.err conftest.$ac_objext \
12293       conftest$ac_exeext conftest.$ac_ext
12294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12295
12296         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12297         # Warning - without using the other run time loading flags,
12298         # -berok will link without error, but may produce a broken library.
12299         no_undefined_flag_CXX=' ${wl}-bernotok'
12300         allow_undefined_flag_CXX=' ${wl}-berok'
12301         # -bexpall does not export symbols beginning with underscore (_)
12302         always_export_symbols_CXX=yes
12303         # Exported symbols can be pulled into shared objects from archives
12304         whole_archive_flag_spec_CXX=' '
12305         archive_cmds_need_lc_CXX=yes
12306         # This is similar to how AIX traditionally builds it's shared libraries.
12307         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12308       fi
12309     fi
12310     ;;
12311   chorus*)
12312     case $cc_basename in
12313       *)
12314         # FIXME: insert proper C++ library support
12315         ld_shlibs_CXX=no
12316         ;;
12317     esac
12318     ;;
12319
12320
12321   cygwin* | mingw* | pw32*)
12322     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12323     # as there is no search path for DLLs.
12324     hardcode_libdir_flag_spec_CXX='-L$libdir'
12325     allow_undefined_flag_CXX=unsupported
12326     always_export_symbols_CXX=no
12327     enable_shared_with_static_runtimes_CXX=yes
12328
12329     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12330       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12331       # If the export-symbols file already is a .def file (1st line
12332       # is EXPORTS), use it as is; otherwise, prepend...
12333       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12334         cp $export_symbols $output_objdir/$soname.def;
12335       else
12336         echo EXPORTS > $output_objdir/$soname.def;
12337         cat $export_symbols >> $output_objdir/$soname.def;
12338       fi~
12339       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12340     else
12341       ld_shlibs_CXX=no
12342     fi
12343   ;;
12344       darwin* | rhapsody*)
12345         case "$host_os" in
12346         rhapsody* | darwin1.[012])
12347          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12348          ;;
12349        *) # Darwin 1.3 on
12350          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12351            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12352          else
12353            case ${MACOSX_DEPLOYMENT_TARGET} in
12354              10.[012])
12355                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12356                ;;
12357              10.*)
12358                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12359                ;;
12360            esac
12361          fi
12362          ;;
12363         esac
12364       archive_cmds_need_lc_CXX=no
12365       hardcode_direct_CXX=no
12366       hardcode_automatic_CXX=yes
12367       hardcode_shlibpath_var_CXX=unsupported
12368       whole_archive_flag_spec_CXX=''
12369       link_all_deplibs_CXX=yes
12370
12371     if test "$GXX" = yes ; then
12372       lt_int_apple_cc_single_mod=no
12373       output_verbose_link_cmd='echo'
12374       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12375        lt_int_apple_cc_single_mod=yes
12376       fi
12377       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12378        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12379       else
12380           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12381         fi
12382         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12383         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12384           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12385             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12386           else
12387             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12388           fi
12389             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12390       else
12391       case $cc_basename in
12392         xlc*)
12393          output_verbose_link_cmd='echo'
12394           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12395           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12396           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12397           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12398           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12399           ;;
12400        *)
12401          ld_shlibs_CXX=no
12402           ;;
12403       esac
12404       fi
12405         ;;
12406
12407   dgux*)
12408     case $cc_basename in
12409       ec++*)
12410         # FIXME: insert proper C++ library support
12411         ld_shlibs_CXX=no
12412         ;;
12413       ghcx*)
12414         # Green Hills C++ Compiler
12415         # FIXME: insert proper C++ library support
12416         ld_shlibs_CXX=no
12417         ;;
12418       *)
12419         # FIXME: insert proper C++ library support
12420         ld_shlibs_CXX=no
12421         ;;
12422     esac
12423     ;;
12424   freebsd[12]*)
12425     # C++ shared libraries reported to be fairly broken before switch to ELF
12426     ld_shlibs_CXX=no
12427     ;;
12428   freebsd-elf*)
12429     archive_cmds_need_lc_CXX=no
12430     ;;
12431   freebsd* | kfreebsd*-gnu | dragonfly*)
12432     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12433     # conventions
12434     ld_shlibs_CXX=yes
12435     ;;
12436   gnu*)
12437     ;;
12438   hpux9*)
12439     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12440     hardcode_libdir_separator_CXX=:
12441     export_dynamic_flag_spec_CXX='${wl}-E'
12442     hardcode_direct_CXX=yes
12443     hardcode_minus_L_CXX=yes # Not in the search PATH,
12444                                 # but as the default
12445                                 # location of the library.
12446
12447     case $cc_basename in
12448     CC*)
12449       # FIXME: insert proper C++ library support
12450       ld_shlibs_CXX=no
12451       ;;
12452     aCC*)
12453       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12454       # Commands to make compiler produce verbose output that lists
12455       # what "hidden" libraries, object files and flags are used when
12456       # linking a shared library.
12457       #
12458       # There doesn't appear to be a way to prevent this compiler from
12459       # explicitly linking system object files so we need to strip them
12460       # from the output so that they don't get included in the library
12461       # dependencies.
12462       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12463       ;;
12464     *)
12465       if test "$GXX" = yes; then
12466         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12467       else
12468         # FIXME: insert proper C++ library support
12469         ld_shlibs_CXX=no
12470       fi
12471       ;;
12472     esac
12473     ;;
12474   hpux10*|hpux11*)
12475     if test $with_gnu_ld = no; then
12476       case "$host_cpu" in
12477       hppa*64*)
12478         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12479         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12480         hardcode_libdir_separator_CXX=:
12481         ;;
12482       ia64*)
12483         hardcode_libdir_flag_spec_CXX='-L$libdir'
12484         ;;
12485       *)
12486         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12487         hardcode_libdir_separator_CXX=:
12488         export_dynamic_flag_spec_CXX='${wl}-E'
12489         ;;
12490       esac
12491     fi
12492     case "$host_cpu" in
12493     hppa*64*)
12494       hardcode_direct_CXX=no
12495       hardcode_shlibpath_var_CXX=no
12496       ;;
12497     ia64*)
12498       hardcode_direct_CXX=no
12499       hardcode_shlibpath_var_CXX=no
12500       hardcode_minus_L_CXX=yes # Not in the search PATH,
12501                                               # but as the default
12502                                               # location of the library.
12503       ;;
12504     *)
12505       hardcode_direct_CXX=yes
12506       hardcode_minus_L_CXX=yes # Not in the search PATH,
12507                                               # but as the default
12508                                               # location of the library.
12509       ;;
12510     esac
12511
12512     case $cc_basename in
12513       CC*)
12514         # FIXME: insert proper C++ library support
12515         ld_shlibs_CXX=no
12516         ;;
12517       aCC*)
12518         case "$host_cpu" in
12519         hppa*64*|ia64*)
12520           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12521           ;;
12522         *)
12523           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12524           ;;
12525         esac
12526         # Commands to make compiler produce verbose output that lists
12527         # what "hidden" libraries, object files and flags are used when
12528         # linking a shared library.
12529         #
12530         # There doesn't appear to be a way to prevent this compiler from
12531         # explicitly linking system object files so we need to strip them
12532         # from the output so that they don't get included in the library
12533         # dependencies.
12534         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12535         ;;
12536       *)
12537         if test "$GXX" = yes; then
12538           if test $with_gnu_ld = no; then
12539             case "$host_cpu" in
12540             ia64*|hppa*64*)
12541               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12542               ;;
12543             *)
12544               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12545               ;;
12546             esac
12547           fi
12548         else
12549           # FIXME: insert proper C++ library support
12550           ld_shlibs_CXX=no
12551         fi
12552         ;;
12553     esac
12554     ;;
12555   irix5* | irix6*)
12556     case $cc_basename in
12557       CC*)
12558         # SGI C++
12559         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12560
12561         # Archives containing C++ object files must be created using
12562         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12563         # necessary to make sure instantiated templates are included
12564         # in the archive.
12565         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12566         ;;
12567       *)
12568         if test "$GXX" = yes; then
12569           if test "$with_gnu_ld" = no; then
12570             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12571           else
12572             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12573           fi
12574         fi
12575         link_all_deplibs_CXX=yes
12576         ;;
12577     esac
12578     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12579     hardcode_libdir_separator_CXX=:
12580     ;;
12581   linux*)
12582     case $cc_basename in
12583       KCC*)
12584         # Kuck and Associates, Inc. (KAI) C++ Compiler
12585
12586         # KCC will only create a shared library if the output file
12587         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12588         # to its proper name (with version) after linking.
12589         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12590         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12591         # Commands to make compiler produce verbose output that lists
12592         # what "hidden" libraries, object files and flags are used when
12593         # linking a shared library.
12594         #
12595         # There doesn't appear to be a way to prevent this compiler from
12596         # explicitly linking system object files so we need to strip them
12597         # from the output so that they don't get included in the library
12598         # dependencies.
12599         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12600
12601         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12602         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12603
12604         # Archives containing C++ object files must be created using
12605         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12606         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12607         ;;
12608       icpc*)
12609         # Intel C++
12610         with_gnu_ld=yes
12611         # version 8.0 and above of icpc choke on multiply defined symbols
12612         # if we add $predep_objects and $postdep_objects, however 7.1 and
12613         # earlier do not add the objects themselves.
12614         case `$CC -V 2>&1` in
12615         *"Version 7."*)
12616           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12617           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12618           ;;
12619         *)  # Version 8.0 or newer
12620           tmp_idyn=
12621           case $host_cpu in
12622             ia64*) tmp_idyn=' -i_dynamic';;
12623           esac
12624           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12625           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12626           ;;
12627         esac
12628         archive_cmds_need_lc_CXX=no
12629         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12630         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12631         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12632         ;;
12633       pgCC*)
12634         # Portland Group C++ compiler
12635         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12636         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12637
12638         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12639         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12640         whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12641         ;;
12642       cxx*)
12643         # Compaq C++
12644         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12645         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12646
12647         runpath_var=LD_RUN_PATH
12648         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12649         hardcode_libdir_separator_CXX=:
12650
12651         # Commands to make compiler produce verbose output that lists
12652         # what "hidden" libraries, object files and flags are used when
12653         # linking a shared library.
12654         #
12655         # There doesn't appear to be a way to prevent this compiler from
12656         # explicitly linking system object files so we need to strip them
12657         # from the output so that they don't get included in the library
12658         # dependencies.
12659         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12660         ;;
12661     esac
12662     ;;
12663   lynxos*)
12664     # FIXME: insert proper C++ library support
12665     ld_shlibs_CXX=no
12666     ;;
12667   m88k*)
12668     # FIXME: insert proper C++ library support
12669     ld_shlibs_CXX=no
12670     ;;
12671   mvs*)
12672     case $cc_basename in
12673       cxx*)
12674         # FIXME: insert proper C++ library support
12675         ld_shlibs_CXX=no
12676         ;;
12677       *)
12678         # FIXME: insert proper C++ library support
12679         ld_shlibs_CXX=no
12680         ;;
12681     esac
12682     ;;
12683   netbsd*)
12684     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12685       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12686       wlarc=
12687       hardcode_libdir_flag_spec_CXX='-R$libdir'
12688       hardcode_direct_CXX=yes
12689       hardcode_shlibpath_var_CXX=no
12690     fi
12691     # Workaround some broken pre-1.5 toolchains
12692     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12693     ;;
12694   openbsd2*)
12695     # C++ shared libraries are fairly broken
12696     ld_shlibs_CXX=no
12697     ;;
12698   openbsd*)
12699     hardcode_direct_CXX=yes
12700     hardcode_shlibpath_var_CXX=no
12701     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12702     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12703     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12704       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12705       export_dynamic_flag_spec_CXX='${wl}-E'
12706       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12707     fi
12708     output_verbose_link_cmd='echo'
12709     ;;
12710   osf3*)
12711     case $cc_basename in
12712       KCC*)
12713         # Kuck and Associates, Inc. (KAI) C++ Compiler
12714
12715         # KCC will only create a shared library if the output file
12716         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12717         # to its proper name (with version) after linking.
12718         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12719
12720         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12721         hardcode_libdir_separator_CXX=:
12722
12723         # Archives containing C++ object files must be created using
12724         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12725         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12726
12727         ;;
12728       RCC*)
12729         # Rational C++ 2.4.1
12730         # FIXME: insert proper C++ library support
12731         ld_shlibs_CXX=no
12732         ;;
12733       cxx*)
12734         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12735         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12736
12737         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12738         hardcode_libdir_separator_CXX=:
12739
12740         # Commands to make compiler produce verbose output that lists
12741         # what "hidden" libraries, object files and flags are used when
12742         # linking a shared library.
12743         #
12744         # There doesn't appear to be a way to prevent this compiler from
12745         # explicitly linking system object files so we need to strip them
12746         # from the output so that they don't get included in the library
12747         # dependencies.
12748         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12749         ;;
12750       *)
12751         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12752           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12753           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12754
12755           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12756           hardcode_libdir_separator_CXX=:
12757
12758           # Commands to make compiler produce verbose output that lists
12759           # what "hidden" libraries, object files and flags are used when
12760           # linking a shared library.
12761           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12762
12763         else
12764           # FIXME: insert proper C++ library support
12765           ld_shlibs_CXX=no
12766         fi
12767         ;;
12768     esac
12769     ;;
12770   osf4* | osf5*)
12771     case $cc_basename in
12772       KCC*)
12773         # Kuck and Associates, Inc. (KAI) C++ Compiler
12774
12775         # KCC will only create a shared library if the output file
12776         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12777         # to its proper name (with version) after linking.
12778         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12779
12780         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12781         hardcode_libdir_separator_CXX=:
12782
12783         # Archives containing C++ object files must be created using
12784         # the KAI C++ compiler.
12785         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12786         ;;
12787       RCC*)
12788         # Rational C++ 2.4.1
12789         # FIXME: insert proper C++ library support
12790         ld_shlibs_CXX=no
12791         ;;
12792       cxx*)
12793         allow_undefined_flag_CXX=' -expect_unresolved \*'
12794         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12795         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12796           echo "-hidden">> $lib.exp~
12797           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12798           $rm $lib.exp'
12799
12800         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12801         hardcode_libdir_separator_CXX=:
12802
12803         # Commands to make compiler produce verbose output that lists
12804         # what "hidden" libraries, object files and flags are used when
12805         # linking a shared library.
12806         #
12807         # There doesn't appear to be a way to prevent this compiler from
12808         # explicitly linking system object files so we need to strip them
12809         # from the output so that they don't get included in the library
12810         # dependencies.
12811         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12812         ;;
12813       *)
12814         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12815           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12816          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12817
12818           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12819           hardcode_libdir_separator_CXX=:
12820
12821           # Commands to make compiler produce verbose output that lists
12822           # what "hidden" libraries, object files and flags are used when
12823           # linking a shared library.
12824           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12825
12826         else
12827           # FIXME: insert proper C++ library support
12828           ld_shlibs_CXX=no
12829         fi
12830         ;;
12831     esac
12832     ;;
12833   psos*)
12834     # FIXME: insert proper C++ library support
12835     ld_shlibs_CXX=no
12836     ;;
12837   sco*)
12838     archive_cmds_need_lc_CXX=no
12839     case $cc_basename in
12840       CC*)
12841         # FIXME: insert proper C++ library support
12842         ld_shlibs_CXX=no
12843         ;;
12844       *)
12845         # FIXME: insert proper C++ library support
12846         ld_shlibs_CXX=no
12847         ;;
12848     esac
12849     ;;
12850   sunos4*)
12851     case $cc_basename in
12852       CC*)
12853         # Sun C++ 4.x
12854         # FIXME: insert proper C++ library support
12855         ld_shlibs_CXX=no
12856         ;;
12857       lcc*)
12858         # Lucid
12859         # FIXME: insert proper C++ library support
12860         ld_shlibs_CXX=no
12861         ;;
12862       *)
12863         # FIXME: insert proper C++ library support
12864         ld_shlibs_CXX=no
12865         ;;
12866     esac
12867     ;;
12868   solaris*)
12869     case $cc_basename in
12870       CC*)
12871         # Sun C++ 4.2, 5.x and Centerline C++
12872         no_undefined_flag_CXX=' -zdefs'
12873         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12874         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12875         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12876
12877         hardcode_libdir_flag_spec_CXX='-R$libdir'
12878         hardcode_shlibpath_var_CXX=no
12879         case $host_os in
12880           solaris2.[0-5] | solaris2.[0-5].*) ;;
12881           *)
12882             # The C++ compiler is used as linker so we must use $wl
12883             # flag to pass the commands to the underlying system
12884             # linker. We must also pass each convience library through
12885             # to the system linker between allextract/defaultextract.
12886             # The C++ compiler will combine linker options so we
12887             # cannot just pass the convience library names through
12888             # without $wl.
12889             # Supported since Solaris 2.6 (maybe 2.5.1?)
12890             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12891             ;;
12892         esac
12893         link_all_deplibs_CXX=yes
12894
12895         # Commands to make compiler produce verbose output that lists
12896         # what "hidden" libraries, object files and flags are used when
12897         # linking a shared library.
12898         #
12899         # There doesn't appear to be a way to prevent this compiler from
12900         # explicitly linking system object files so we need to strip them
12901         # from the output so that they don't get included in the library
12902         # dependencies.
12903         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12904
12905         # Archives containing C++ object files must be created using
12906         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12907         # necessary to make sure instantiated templates are included
12908         # in the archive.
12909         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12910         ;;
12911       gcx*)
12912         # Green Hills C++ Compiler
12913         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12914
12915         # The C++ compiler must be used to create the archive.
12916         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12917         ;;
12918       *)
12919         # GNU C++ compiler with Solaris linker
12920         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12921           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12922           if $CC --version | grep -v '^2\.7' > /dev/null; then
12923             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12924             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12925                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12926
12927             # Commands to make compiler produce verbose output that lists
12928             # what "hidden" libraries, object files and flags are used when
12929             # linking a shared library.
12930             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12931           else
12932             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12933             # platform.
12934             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12935             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12936                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12937
12938             # Commands to make compiler produce verbose output that lists
12939             # what "hidden" libraries, object files and flags are used when
12940             # linking a shared library.
12941             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12942           fi
12943
12944           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12945         fi
12946         ;;
12947     esac
12948     ;;
12949   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12950     archive_cmds_need_lc_CXX=no
12951     ;;
12952   tandem*)
12953     case $cc_basename in
12954       NCC*)
12955         # NonStop-UX NCC 3.20
12956         # FIXME: insert proper C++ library support
12957         ld_shlibs_CXX=no
12958         ;;
12959       *)
12960         # FIXME: insert proper C++ library support
12961         ld_shlibs_CXX=no
12962         ;;
12963     esac
12964     ;;
12965   vxworks*)
12966     # FIXME: insert proper C++ library support
12967     ld_shlibs_CXX=no
12968     ;;
12969   *)
12970     # FIXME: insert proper C++ library support
12971     ld_shlibs_CXX=no
12972     ;;
12973 esac
12974 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12975 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12976 test "$ld_shlibs_CXX" = no && can_build_shared=no
12977
12978 GCC_CXX="$GXX"
12979 LD_CXX="$LD"
12980
12981
12982 cat > conftest.$ac_ext <<EOF
12983 class Foo
12984 {
12985 public:
12986   Foo (void) { a = 0; }
12987 private:
12988   int a;
12989 };
12990 EOF
12991
12992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12993   (eval $ac_compile) 2>&5
12994   ac_status=$?
12995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996   (exit $ac_status); }; then
12997   # Parse the compiler output and extract the necessary
12998   # objects, libraries and library flags.
12999
13000   # Sentinel used to keep track of whether or not we are before
13001   # the conftest object file.
13002   pre_test_object_deps_done=no
13003
13004   # The `*' in the case matches for architectures that use `case' in
13005   # $output_verbose_cmd can trigger glob expansion during the loop
13006   # eval without this substitution.
13007   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13008
13009   for p in `eval $output_verbose_link_cmd`; do
13010     case $p in
13011
13012     -L* | -R* | -l*)
13013        # Some compilers place space between "-{L,R}" and the path.
13014        # Remove the space.
13015        if test $p = "-L" \
13016           || test $p = "-R"; then
13017          prev=$p
13018          continue
13019        else
13020          prev=
13021        fi
13022
13023        if test "$pre_test_object_deps_done" = no; then
13024          case $p in
13025          -L* | -R*)
13026            # Internal compiler library paths should come after those
13027            # provided the user.  The postdeps already come after the
13028            # user supplied libs so there is no need to process them.
13029            if test -z "$compiler_lib_search_path_CXX"; then
13030              compiler_lib_search_path_CXX="${prev}${p}"
13031            else
13032              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13033            fi
13034            ;;
13035          # The "-l" case would never come before the object being
13036          # linked, so don't bother handling this case.
13037          esac
13038        else
13039          if test -z "$postdeps_CXX"; then
13040            postdeps_CXX="${prev}${p}"
13041          else
13042            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13043          fi
13044        fi
13045        ;;
13046
13047     *.$objext)
13048        # This assumes that the test object file only shows up
13049        # once in the compiler output.
13050        if test "$p" = "conftest.$objext"; then
13051          pre_test_object_deps_done=yes
13052          continue
13053        fi
13054
13055        if test "$pre_test_object_deps_done" = no; then
13056          if test -z "$predep_objects_CXX"; then
13057            predep_objects_CXX="$p"
13058          else
13059            predep_objects_CXX="$predep_objects_CXX $p"
13060          fi
13061        else
13062          if test -z "$postdep_objects_CXX"; then
13063            postdep_objects_CXX="$p"
13064          else
13065            postdep_objects_CXX="$postdep_objects_CXX $p"
13066          fi
13067        fi
13068        ;;
13069
13070     *) ;; # Ignore the rest.
13071
13072     esac
13073   done
13074
13075   # Clean up.
13076   rm -f a.out a.exe
13077 else
13078   echo "libtool.m4: error: problem compiling CXX test program"
13079 fi
13080
13081 $rm -f confest.$objext
13082
13083 case " $postdeps_CXX " in
13084 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13085 esac
13086
13087 lt_prog_compiler_wl_CXX=
13088 lt_prog_compiler_pic_CXX=
13089 lt_prog_compiler_static_CXX=
13090
13091 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13092 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13093
13094   # C++ specific cases for pic, static, wl, etc.
13095   if test "$GXX" = yes; then
13096     lt_prog_compiler_wl_CXX='-Wl,'
13097     lt_prog_compiler_static_CXX='-static'
13098
13099     case $host_os in
13100     aix*)
13101       # All AIX code is PIC.
13102       if test "$host_cpu" = ia64; then
13103         # AIX 5 now supports IA64 processor
13104         lt_prog_compiler_static_CXX='-Bstatic'
13105       fi
13106       ;;
13107     amigaos*)
13108       # FIXME: we need at least 68020 code to build shared libraries, but
13109       # adding the `-m68020' flag to GCC prevents building anything better,
13110       # like `-m68040'.
13111       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13112       ;;
13113     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13114       # PIC is the default for these OSes.
13115       ;;
13116     mingw* | os2* | pw32*)
13117       # This hack is so that the source file can tell whether it is being
13118       # built for inclusion in a dll (and should export symbols for example).
13119       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13120       ;;
13121     darwin* | rhapsody*)
13122       # PIC is the default on this platform
13123       # Common symbols not allowed in MH_DYLIB files
13124       lt_prog_compiler_pic_CXX='-fno-common'
13125       ;;
13126     *djgpp*)
13127       # DJGPP does not support shared libraries at all
13128       lt_prog_compiler_pic_CXX=
13129       ;;
13130     sysv4*MP*)
13131       if test -d /usr/nec; then
13132         lt_prog_compiler_pic_CXX=-Kconform_pic
13133       fi
13134       ;;
13135     hpux*)
13136       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13137       # not for PA HP-UX.
13138       case "$host_cpu" in
13139       hppa*64*|ia64*)
13140         ;;
13141       *)
13142         lt_prog_compiler_pic_CXX='-fPIC'
13143         ;;
13144       esac
13145       ;;
13146     *)
13147       lt_prog_compiler_pic_CXX='-fPIC'
13148       ;;
13149     esac
13150   else
13151     case $host_os in
13152       aix4* | aix5*)
13153         # All AIX code is PIC.
13154         if test "$host_cpu" = ia64; then
13155           # AIX 5 now supports IA64 processor
13156           lt_prog_compiler_static_CXX='-Bstatic'
13157         else
13158           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13159         fi
13160         ;;
13161       chorus*)
13162         case $cc_basename in
13163         cxch68*)
13164           # Green Hills C++ Compiler
13165           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13166           ;;
13167         esac
13168         ;;
13169        darwin*)
13170          # PIC is the default on this platform
13171          # Common symbols not allowed in MH_DYLIB files
13172          case $cc_basename in
13173            xlc*)
13174            lt_prog_compiler_pic_CXX='-qnocommon'
13175            lt_prog_compiler_wl_CXX='-Wl,'
13176            ;;
13177          esac
13178        ;;
13179       dgux*)
13180         case $cc_basename in
13181           ec++*)
13182             lt_prog_compiler_pic_CXX='-KPIC'
13183             ;;
13184           ghcx*)
13185             # Green Hills C++ Compiler
13186             lt_prog_compiler_pic_CXX='-pic'
13187             ;;
13188           *)
13189             ;;
13190         esac
13191         ;;
13192       freebsd* | kfreebsd*-gnu | dragonfly*)
13193         # FreeBSD uses GNU C++
13194         ;;
13195       hpux9* | hpux10* | hpux11*)
13196         case $cc_basename in
13197           CC*)
13198             lt_prog_compiler_wl_CXX='-Wl,'
13199             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13200             if test "$host_cpu" != ia64; then
13201               lt_prog_compiler_pic_CXX='+Z'
13202             fi
13203             ;;
13204           aCC*)
13205             lt_prog_compiler_wl_CXX='-Wl,'
13206             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13207             case "$host_cpu" in
13208             hppa*64*|ia64*)
13209               # +Z the default
13210               ;;
13211             *)
13212               lt_prog_compiler_pic_CXX='+Z'
13213               ;;
13214             esac
13215             ;;
13216           *)
13217             ;;
13218         esac
13219         ;;
13220       irix5* | irix6* | nonstopux*)
13221         case $cc_basename in
13222           CC*)
13223             lt_prog_compiler_wl_CXX='-Wl,'
13224             lt_prog_compiler_static_CXX='-non_shared'
13225             # CC pic flag -KPIC is the default.
13226             ;;
13227           *)
13228             ;;
13229         esac
13230         ;;
13231       linux*)
13232         case $cc_basename in
13233           KCC*)
13234             # KAI C++ Compiler
13235             lt_prog_compiler_wl_CXX='--backend -Wl,'
13236             lt_prog_compiler_pic_CXX='-fPIC'
13237             ;;
13238           icpc* | ecpc*)
13239             # Intel C++
13240             lt_prog_compiler_wl_CXX='-Wl,'
13241             lt_prog_compiler_pic_CXX='-KPIC'
13242             lt_prog_compiler_static_CXX='-static'
13243             ;;
13244           pgCC*)
13245             # Portland Group C++ compiler.
13246             lt_prog_compiler_wl_CXX='-Wl,'
13247             lt_prog_compiler_pic_CXX='-fpic'
13248             lt_prog_compiler_static_CXX='-static'
13249             ;;
13250           cxx*)
13251             # Compaq C++
13252             # Make sure the PIC flag is empty.  It appears that all Alpha
13253             # Linux and Compaq Tru64 Unix objects are PIC.
13254             lt_prog_compiler_pic_CXX=
13255             lt_prog_compiler_static_CXX='-non_shared'
13256             ;;
13257           *)
13258             ;;
13259         esac
13260         ;;
13261       lynxos*)
13262         ;;
13263       m88k*)
13264         ;;
13265       mvs*)
13266         case $cc_basename in
13267           cxx*)
13268             lt_prog_compiler_pic_CXX='-W c,exportall'
13269             ;;
13270           *)
13271             ;;
13272         esac
13273         ;;
13274       netbsd*)
13275         ;;
13276       osf3* | osf4* | osf5*)
13277         case $cc_basename in
13278           KCC*)
13279             lt_prog_compiler_wl_CXX='--backend -Wl,'
13280             ;;
13281           RCC*)
13282             # Rational C++ 2.4.1
13283             lt_prog_compiler_pic_CXX='-pic'
13284             ;;
13285           cxx*)
13286             # Digital/Compaq C++
13287             lt_prog_compiler_wl_CXX='-Wl,'
13288             # Make sure the PIC flag is empty.  It appears that all Alpha
13289             # Linux and Compaq Tru64 Unix objects are PIC.
13290             lt_prog_compiler_pic_CXX=
13291             lt_prog_compiler_static_CXX='-non_shared'
13292             ;;
13293           *)
13294             ;;
13295         esac
13296         ;;
13297       psos*)
13298         ;;
13299       sco*)
13300         case $cc_basename in
13301           CC*)
13302             lt_prog_compiler_pic_CXX='-fPIC'
13303             ;;
13304           *)
13305             ;;
13306         esac
13307         ;;
13308       solaris*)
13309         case $cc_basename in
13310           CC*)
13311             # Sun C++ 4.2, 5.x and Centerline C++
13312             lt_prog_compiler_pic_CXX='-KPIC'
13313             lt_prog_compiler_static_CXX='-Bstatic'
13314             lt_prog_compiler_wl_CXX='-Qoption ld '
13315             ;;
13316           gcx*)
13317             # Green Hills C++ Compiler
13318             lt_prog_compiler_pic_CXX='-PIC'
13319             ;;
13320           *)
13321             ;;
13322         esac
13323         ;;
13324       sunos4*)
13325         case $cc_basename in
13326           CC*)
13327             # Sun C++ 4.x
13328             lt_prog_compiler_pic_CXX='-pic'
13329             lt_prog_compiler_static_CXX='-Bstatic'
13330             ;;
13331           lcc*)
13332             # Lucid
13333             lt_prog_compiler_pic_CXX='-pic'
13334             ;;
13335           *)
13336             ;;
13337         esac
13338         ;;
13339       tandem*)
13340         case $cc_basename in
13341           NCC*)
13342             # NonStop-UX NCC 3.20
13343             lt_prog_compiler_pic_CXX='-KPIC'
13344             ;;
13345           *)
13346             ;;
13347         esac
13348         ;;
13349       unixware*)
13350         ;;
13351       vxworks*)
13352         ;;
13353       *)
13354         lt_prog_compiler_can_build_shared_CXX=no
13355         ;;
13356     esac
13357   fi
13358
13359 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13360 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13361
13362 #
13363 # Check to make sure the PIC flag actually works.
13364 #
13365 if test -n "$lt_prog_compiler_pic_CXX"; then
13366
13367 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13368 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13369 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13370   echo $ECHO_N "(cached) $ECHO_C" >&6
13371 else
13372   lt_prog_compiler_pic_works_CXX=no
13373   ac_outfile=conftest.$ac_objext
13374    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13375    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13376    # Insert the option either (1) after the last *FLAGS variable, or
13377    # (2) before a word containing "conftest.", or (3) at the end.
13378    # Note that $ac_compile itself does not contain backslashes and begins
13379    # with a dollar sign (not a hyphen), so the echo should work correctly.
13380    # The option is referenced via a variable to avoid confusing sed.
13381    lt_compile=`echo "$ac_compile" | $SED \
13382    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13383    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13384    -e 's:$: $lt_compiler_flag:'`
13385    (eval echo "\"\$as_me:13385: $lt_compile\"" >&5)
13386    (eval "$lt_compile" 2>conftest.err)
13387    ac_status=$?
13388    cat conftest.err >&5
13389    echo "$as_me:13389: \$? = $ac_status" >&5
13390    if (exit $ac_status) && test -s "$ac_outfile"; then
13391      # The compiler can only warn and ignore the option if not recognized
13392      # So say no if there are warnings other than the usual output.
13393      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13394      $SED '/^$/d' conftest.err >conftest.er2
13395      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13396        lt_prog_compiler_pic_works_CXX=yes
13397      fi
13398    fi
13399    $rm conftest*
13400
13401 fi
13402 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13403 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13404
13405 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13406     case $lt_prog_compiler_pic_CXX in
13407      "" | " "*) ;;
13408      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13409      esac
13410 else
13411     lt_prog_compiler_pic_CXX=
13412      lt_prog_compiler_can_build_shared_CXX=no
13413 fi
13414
13415 fi
13416 case "$host_os" in
13417   # For platforms which do not support PIC, -DPIC is meaningless:
13418   *djgpp*)
13419     lt_prog_compiler_pic_CXX=
13420     ;;
13421   *)
13422     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13423     ;;
13424 esac
13425
13426 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13427 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13428 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13429   echo $ECHO_N "(cached) $ECHO_C" >&6
13430 else
13431   lt_cv_prog_compiler_c_o_CXX=no
13432    $rm -r conftest 2>/dev/null
13433    mkdir conftest
13434    cd conftest
13435    mkdir out
13436    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13437
13438    lt_compiler_flag="-o out/conftest2.$ac_objext"
13439    # Insert the option either (1) after the last *FLAGS variable, or
13440    # (2) before a word containing "conftest.", or (3) at the end.
13441    # Note that $ac_compile itself does not contain backslashes and begins
13442    # with a dollar sign (not a hyphen), so the echo should work correctly.
13443    lt_compile=`echo "$ac_compile" | $SED \
13444    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13445    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13446    -e 's:$: $lt_compiler_flag:'`
13447    (eval echo "\"\$as_me:13447: $lt_compile\"" >&5)
13448    (eval "$lt_compile" 2>out/conftest.err)
13449    ac_status=$?
13450    cat out/conftest.err >&5
13451    echo "$as_me:13451: \$? = $ac_status" >&5
13452    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13453    then
13454      # The compiler can only warn and ignore the option if not recognized
13455      # So say no if there are warnings
13456      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13457      $SED '/^$/d' out/conftest.err >out/conftest.er2
13458      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13459        lt_cv_prog_compiler_c_o_CXX=yes
13460      fi
13461    fi
13462    chmod u+w .
13463    $rm conftest*
13464    # SGI C++ compiler will create directory out/ii_files/ for
13465    # template instantiation
13466    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13467    $rm out/* && rmdir out
13468    cd ..
13469    rmdir conftest
13470    $rm conftest*
13471
13472 fi
13473 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13474 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13475
13476
13477 hard_links="nottested"
13478 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13479   # do not overwrite the value of need_locks provided by the user
13480   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13481 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13482   hard_links=yes
13483   $rm conftest*
13484   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13485   touch conftest.a
13486   ln conftest.a conftest.b 2>&5 || hard_links=no
13487   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13488   echo "$as_me:$LINENO: result: $hard_links" >&5
13489 echo "${ECHO_T}$hard_links" >&6
13490   if test "$hard_links" = no; then
13491     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13492 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13493     need_locks=warn
13494   fi
13495 else
13496   need_locks=no
13497 fi
13498
13499 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13500 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13501
13502   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13503   case $host_os in
13504   aix4* | aix5*)
13505     # If we're using GNU nm, then we don't want the "-C" option.
13506     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13507     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13508       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13509     else
13510       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13511     fi
13512     ;;
13513   pw32*)
13514     export_symbols_cmds_CXX="$ltdll_cmds"
13515   ;;
13516   cygwin* | mingw*)
13517     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13518   ;;
13519   *)
13520     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13521   ;;
13522   esac
13523
13524 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13525 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13526 test "$ld_shlibs_CXX" = no && can_build_shared=no
13527
13528 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13529 if test "$GCC" = yes; then
13530   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13531 fi
13532
13533 #
13534 # Do we need to explicitly link libc?
13535 #
13536 case "x$archive_cmds_need_lc_CXX" in
13537 x|xyes)
13538   # Assume -lc should be added
13539   archive_cmds_need_lc_CXX=yes
13540
13541   if test "$enable_shared" = yes && test "$GCC" = yes; then
13542     case $archive_cmds_CXX in
13543     *'~'*)
13544       # FIXME: we may have to deal with multi-command sequences.
13545       ;;
13546     '$CC '*)
13547       # Test whether the compiler implicitly links with -lc since on some
13548       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13549       # to ld, don't add -lc before -lgcc.
13550       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13551 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13552       $rm conftest*
13553       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13554
13555       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13556   (eval $ac_compile) 2>&5
13557   ac_status=$?
13558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); } 2>conftest.err; then
13560         soname=conftest
13561         lib=conftest
13562         libobjs=conftest.$ac_objext
13563         deplibs=
13564         wl=$lt_prog_compiler_wl_CXX
13565         compiler_flags=-v
13566         linker_flags=-v
13567         verstring=
13568         output_objdir=.
13569         libname=conftest
13570         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13571         allow_undefined_flag_CXX=
13572         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13573   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13574   ac_status=$?
13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); }
13577         then
13578           archive_cmds_need_lc_CXX=no
13579         else
13580           archive_cmds_need_lc_CXX=yes
13581         fi
13582         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13583       else
13584         cat conftest.err 1>&5
13585       fi
13586       $rm conftest*
13587       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13588 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13589       ;;
13590     esac
13591   fi
13592   ;;
13593 esac
13594
13595 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13596 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13597 library_names_spec=
13598 libname_spec='lib$name'
13599 soname_spec=
13600 shrext_cmds=".so"
13601 postinstall_cmds=
13602 postuninstall_cmds=
13603 finish_cmds=
13604 finish_eval=
13605 shlibpath_var=
13606 shlibpath_overrides_runpath=unknown
13607 version_type=none
13608 dynamic_linker="$host_os ld.so"
13609 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13610 if test "$GCC" = yes; then
13611   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13612   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13613     # if the path contains ";" then we assume it to be the separator
13614     # otherwise default to the standard path separator (i.e. ":") - it is
13615     # assumed that no part of a normal pathname contains ";" but that should
13616     # okay in the real world where ";" in dirpaths is itself problematic.
13617     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13618   else
13619     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13620   fi
13621 else
13622   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13623 fi
13624 need_lib_prefix=unknown
13625 hardcode_into_libs=no
13626
13627 # when you set need_version to no, make sure it does not cause -set_version
13628 # flags to be left without arguments
13629 need_version=unknown
13630
13631 case $host_os in
13632 aix3*)
13633   version_type=linux
13634   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13635   shlibpath_var=LIBPATH
13636
13637   # AIX 3 has no versioning support, so we append a major version to the name.
13638   soname_spec='${libname}${release}${shared_ext}$major'
13639   ;;
13640
13641 aix4* | aix5*)
13642   version_type=linux
13643   need_lib_prefix=no
13644   need_version=no
13645   hardcode_into_libs=yes
13646   if test "$host_cpu" = ia64; then
13647     # AIX 5 supports IA64
13648     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13649     shlibpath_var=LD_LIBRARY_PATH
13650   else
13651     # With GCC up to 2.95.x, collect2 would create an import file
13652     # for dependence libraries.  The import file would start with
13653     # the line `#! .'.  This would cause the generated library to
13654     # depend on `.', always an invalid library.  This was fixed in
13655     # development snapshots of GCC prior to 3.0.
13656     case $host_os in
13657       aix4 | aix4.[01] | aix4.[01].*)
13658       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13659            echo ' yes '
13660            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13661         :
13662       else
13663         can_build_shared=no
13664       fi
13665       ;;
13666     esac
13667     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13668     # soname into executable. Probably we can add versioning support to
13669     # collect2, so additional links can be useful in future.
13670     if test "$aix_use_runtimelinking" = yes; then
13671       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13672       # instead of lib<name>.a to let people know that these are not
13673       # typical AIX shared libraries.
13674       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13675     else
13676       # We preserve .a as extension for shared libraries through AIX4.2
13677       # and later when we are not doing run time linking.
13678       library_names_spec='${libname}${release}.a $libname.a'
13679       soname_spec='${libname}${release}${shared_ext}$major'
13680     fi
13681     shlibpath_var=LIBPATH
13682   fi
13683   ;;
13684
13685 amigaos*)
13686   library_names_spec='$libname.ixlibrary $libname.a'
13687   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13688   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13689   ;;
13690
13691 beos*)
13692   library_names_spec='${libname}${shared_ext}'
13693   dynamic_linker="$host_os ld.so"
13694   shlibpath_var=LIBRARY_PATH
13695   ;;
13696
13697 bsdi[45]*)
13698   version_type=linux
13699   need_version=no
13700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13701   soname_spec='${libname}${release}${shared_ext}$major'
13702   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13703   shlibpath_var=LD_LIBRARY_PATH
13704   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13705   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13706   # the default ld.so.conf also contains /usr/contrib/lib and
13707   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13708   # libtool to hard-code these into programs
13709   ;;
13710
13711 cygwin* | mingw* | pw32*)
13712   version_type=windows
13713   shrext_cmds=".dll"
13714   need_version=no
13715   need_lib_prefix=no
13716
13717   case $GCC,$host_os in
13718   yes,cygwin* | yes,mingw* | yes,pw32*)
13719     library_names_spec='$libname.dll.a'
13720     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13721     postinstall_cmds='base_file=`basename \${file}`~
13722       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13723       dldir=$destdir/`dirname \$dlpath`~
13724       test -d \$dldir || mkdir -p \$dldir~
13725       $install_prog $dir/$dlname \$dldir/$dlname'
13726     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13727       dlpath=$dir/\$dldll~
13728        $rm \$dlpath'
13729     shlibpath_overrides_runpath=yes
13730
13731     case $host_os in
13732     cygwin*)
13733       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13734       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13735       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13736       ;;
13737     mingw*)
13738       # MinGW DLLs use traditional 'lib' prefix
13739       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13740       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13741       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13742         # It is most probably a Windows format PATH printed by
13743         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13744         # path with ; separators, and with drive letters. We can handle the
13745         # drive letters (cygwin fileutils understands them), so leave them,
13746         # especially as we might pass files found there to a mingw objdump,
13747         # which wouldn't understand a cygwinified path. Ahh.
13748         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13749       else
13750         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13751       fi
13752       ;;
13753     pw32*)
13754       # pw32 DLLs use 'pw' prefix rather than 'lib'
13755       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13756       ;;
13757     esac
13758     ;;
13759
13760   *)
13761     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13762     ;;
13763   esac
13764   dynamic_linker='Win32 ld.exe'
13765   # FIXME: first we should search . and the directory the executable is in
13766   shlibpath_var=PATH
13767   ;;
13768
13769 darwin* | rhapsody*)
13770   dynamic_linker="$host_os dyld"
13771   version_type=darwin
13772   need_lib_prefix=no
13773   need_version=no
13774   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13775   soname_spec='${libname}${release}${major}$shared_ext'
13776   shlibpath_overrides_runpath=yes
13777   shlibpath_var=DYLD_LIBRARY_PATH
13778   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13779   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13780   if test "$GCC" = yes; then
13781     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13782   else
13783     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13784   fi
13785   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13786   ;;
13787
13788 dgux*)
13789   version_type=linux
13790   need_lib_prefix=no
13791   need_version=no
13792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13793   soname_spec='${libname}${release}${shared_ext}$major'
13794   shlibpath_var=LD_LIBRARY_PATH
13795   ;;
13796
13797 freebsd1*)
13798   dynamic_linker=no
13799   ;;
13800
13801 kfreebsd*-gnu)
13802   version_type=linux
13803   need_lib_prefix=no
13804   need_version=no
13805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13806   soname_spec='${libname}${release}${shared_ext}$major'
13807   shlibpath_var=LD_LIBRARY_PATH
13808   shlibpath_overrides_runpath=no
13809   hardcode_into_libs=yes
13810   dynamic_linker='GNU ld.so'
13811   ;;
13812
13813 freebsd* | dragonfly*)
13814   # DragonFly does not have aout.  When/if they implement a new
13815   # versioning mechanism, adjust this.
13816   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13817   version_type=freebsd-$objformat
13818   case $version_type in
13819     freebsd-elf*)
13820       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13821       need_version=no
13822       need_lib_prefix=no
13823       ;;
13824     freebsd-*)
13825       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13826       need_version=yes
13827       ;;
13828   esac
13829   shlibpath_var=LD_LIBRARY_PATH
13830   case $host_os in
13831   freebsd2*)
13832     shlibpath_overrides_runpath=yes
13833     ;;
13834   freebsd3.[01]* | freebsdelf3.[01]*)
13835     shlibpath_overrides_runpath=yes
13836     hardcode_into_libs=yes
13837     ;;
13838   *) # from 3.2 on
13839     shlibpath_overrides_runpath=no
13840     hardcode_into_libs=yes
13841     ;;
13842   esac
13843   ;;
13844
13845 gnu*)
13846   version_type=linux
13847   need_lib_prefix=no
13848   need_version=no
13849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13850   soname_spec='${libname}${release}${shared_ext}$major'
13851   shlibpath_var=LD_LIBRARY_PATH
13852   hardcode_into_libs=yes
13853   ;;
13854
13855 hpux9* | hpux10* | hpux11*)
13856   # Give a soname corresponding to the major version so that dld.sl refuses to
13857   # link against other versions.
13858   version_type=sunos
13859   need_lib_prefix=no
13860   need_version=no
13861   case "$host_cpu" in
13862   ia64*)
13863     shrext_cmds='.so'
13864     hardcode_into_libs=yes
13865     dynamic_linker="$host_os dld.so"
13866     shlibpath_var=LD_LIBRARY_PATH
13867     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13868     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13869     soname_spec='${libname}${release}${shared_ext}$major'
13870     if test "X$HPUX_IA64_MODE" = X32; then
13871       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13872     else
13873       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13874     fi
13875     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13876     ;;
13877    hppa*64*)
13878      shrext_cmds='.sl'
13879      hardcode_into_libs=yes
13880      dynamic_linker="$host_os dld.sl"
13881      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13882      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13883      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13884      soname_spec='${libname}${release}${shared_ext}$major'
13885      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13886      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13887      ;;
13888    *)
13889     shrext_cmds='.sl'
13890     dynamic_linker="$host_os dld.sl"
13891     shlibpath_var=SHLIB_PATH
13892     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13893     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13894     soname_spec='${libname}${release}${shared_ext}$major'
13895     ;;
13896   esac
13897   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13898   postinstall_cmds='chmod 555 $lib'
13899   ;;
13900
13901 irix5* | irix6* | nonstopux*)
13902   case $host_os in
13903     nonstopux*) version_type=nonstopux ;;
13904     *)
13905         if test "$lt_cv_prog_gnu_ld" = yes; then
13906                 version_type=linux
13907         else
13908                 version_type=irix
13909         fi ;;
13910   esac
13911   need_lib_prefix=no
13912   need_version=no
13913   soname_spec='${libname}${release}${shared_ext}$major'
13914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13915   case $host_os in
13916   irix5* | nonstopux*)
13917     libsuff= shlibsuff=
13918     ;;
13919   *)
13920     case $LD in # libtool.m4 will add one of these switches to LD
13921     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13922       libsuff= shlibsuff= libmagic=32-bit;;
13923     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13924       libsuff=32 shlibsuff=N32 libmagic=N32;;
13925     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13926       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13927     *) libsuff= shlibsuff= libmagic=never-match;;
13928     esac
13929     ;;
13930   esac
13931   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13932   shlibpath_overrides_runpath=no
13933   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13934   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13935   hardcode_into_libs=yes
13936   ;;
13937
13938 # No shared lib support for Linux oldld, aout, or coff.
13939 linux*oldld* | linux*aout* | linux*coff*)
13940   dynamic_linker=no
13941   ;;
13942
13943 # This must be Linux ELF.
13944 linux*)
13945   version_type=linux
13946   need_lib_prefix=no
13947   need_version=no
13948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13949   soname_spec='${libname}${release}${shared_ext}$major'
13950   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13951   shlibpath_var=LD_LIBRARY_PATH
13952   shlibpath_overrides_runpath=no
13953   # This implies no fast_install, which is unacceptable.
13954   # Some rework will be needed to allow for fast_install
13955   # before this can be enabled.
13956   hardcode_into_libs=yes
13957
13958   # Append ld.so.conf contents to the search path
13959   if test -f /etc/ld.so.conf; then
13960     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13961     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13962   fi
13963
13964   # We used to test for /lib/ld.so.1 and disable shared libraries on
13965   # powerpc, because MkLinux only supported shared libraries with the
13966   # GNU dynamic linker.  Since this was broken with cross compilers,
13967   # most powerpc-linux boxes support dynamic linking these days and
13968   # people can always --disable-shared, the test was removed, and we
13969   # assume the GNU/Linux dynamic linker is in use.
13970   dynamic_linker='GNU/Linux ld.so'
13971   ;;
13972
13973 knetbsd*-gnu)
13974   version_type=linux
13975   need_lib_prefix=no
13976   need_version=no
13977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13978   soname_spec='${libname}${release}${shared_ext}$major'
13979   shlibpath_var=LD_LIBRARY_PATH
13980   shlibpath_overrides_runpath=no
13981   hardcode_into_libs=yes
13982   dynamic_linker='GNU ld.so'
13983   ;;
13984
13985 netbsd*)
13986   version_type=sunos
13987   need_lib_prefix=no
13988   need_version=no
13989   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13990     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13991     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13992     dynamic_linker='NetBSD (a.out) ld.so'
13993   else
13994     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13995     soname_spec='${libname}${release}${shared_ext}$major'
13996     dynamic_linker='NetBSD ld.elf_so'
13997   fi
13998   shlibpath_var=LD_LIBRARY_PATH
13999   shlibpath_overrides_runpath=yes
14000   hardcode_into_libs=yes
14001   ;;
14002
14003 newsos6)
14004   version_type=linux
14005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14006   shlibpath_var=LD_LIBRARY_PATH
14007   shlibpath_overrides_runpath=yes
14008   ;;
14009
14010 nto-qnx*)
14011   version_type=linux
14012   need_lib_prefix=no
14013   need_version=no
14014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14015   soname_spec='${libname}${release}${shared_ext}$major'
14016   shlibpath_var=LD_LIBRARY_PATH
14017   shlibpath_overrides_runpath=yes
14018   ;;
14019
14020 openbsd*)
14021   version_type=sunos
14022   need_lib_prefix=no
14023   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14024   case $host_os in
14025     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14026     *)                         need_version=no  ;;
14027   esac
14028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14029   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14030   shlibpath_var=LD_LIBRARY_PATH
14031   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14032     case $host_os in
14033       openbsd2.[89] | openbsd2.[89].*)
14034         shlibpath_overrides_runpath=no
14035         ;;
14036       *)
14037         shlibpath_overrides_runpath=yes
14038         ;;
14039       esac
14040   else
14041     shlibpath_overrides_runpath=yes
14042   fi
14043   ;;
14044
14045 os2*)
14046   libname_spec='$name'
14047   shrext_cmds=".dll"
14048   need_lib_prefix=no
14049   library_names_spec='$libname${shared_ext} $libname.a'
14050   dynamic_linker='OS/2 ld.exe'
14051   shlibpath_var=LIBPATH
14052   ;;
14053
14054 osf3* | osf4* | osf5*)
14055   version_type=osf
14056   need_lib_prefix=no
14057   need_version=no
14058   soname_spec='${libname}${release}${shared_ext}$major'
14059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14060   shlibpath_var=LD_LIBRARY_PATH
14061   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14062   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14063   ;;
14064
14065 sco3.2v5*)
14066   version_type=osf
14067   soname_spec='${libname}${release}${shared_ext}$major'
14068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14069   shlibpath_var=LD_LIBRARY_PATH
14070   ;;
14071
14072 solaris*)
14073   version_type=linux
14074   need_lib_prefix=no
14075   need_version=no
14076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14077   soname_spec='${libname}${release}${shared_ext}$major'
14078   shlibpath_var=LD_LIBRARY_PATH
14079   shlibpath_overrides_runpath=yes
14080   hardcode_into_libs=yes
14081   # ldd complains unless libraries are executable
14082   postinstall_cmds='chmod +x $lib'
14083   ;;
14084
14085 sunos4*)
14086   version_type=sunos
14087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14088   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14089   shlibpath_var=LD_LIBRARY_PATH
14090   shlibpath_overrides_runpath=yes
14091   if test "$with_gnu_ld" = yes; then
14092     need_lib_prefix=no
14093   fi
14094   need_version=yes
14095   ;;
14096
14097 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14098   version_type=linux
14099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14100   soname_spec='${libname}${release}${shared_ext}$major'
14101   shlibpath_var=LD_LIBRARY_PATH
14102   case $host_vendor in
14103     sni)
14104       shlibpath_overrides_runpath=no
14105       need_lib_prefix=no
14106       export_dynamic_flag_spec='${wl}-Blargedynsym'
14107       runpath_var=LD_RUN_PATH
14108       ;;
14109     siemens)
14110       need_lib_prefix=no
14111       ;;
14112     motorola)
14113       need_lib_prefix=no
14114       need_version=no
14115       shlibpath_overrides_runpath=no
14116       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14117       ;;
14118   esac
14119   ;;
14120
14121 sysv4*MP*)
14122   if test -d /usr/nec ;then
14123     version_type=linux
14124     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14125     soname_spec='$libname${shared_ext}.$major'
14126     shlibpath_var=LD_LIBRARY_PATH
14127   fi
14128   ;;
14129
14130 uts4*)
14131   version_type=linux
14132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14133   soname_spec='${libname}${release}${shared_ext}$major'
14134   shlibpath_var=LD_LIBRARY_PATH
14135   ;;
14136
14137 *)
14138   dynamic_linker=no
14139   ;;
14140 esac
14141 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14142 echo "${ECHO_T}$dynamic_linker" >&6
14143 test "$dynamic_linker" = no && can_build_shared=no
14144
14145 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14146 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14147 hardcode_action_CXX=
14148 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14149    test -n "$runpath_var_CXX" || \
14150    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14151
14152   # We can hardcode non-existant directories.
14153   if test "$hardcode_direct_CXX" != no &&
14154      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14155      # have to relink, otherwise we might link with an installed library
14156      # when we should be linking with a yet-to-be-installed one
14157      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14158      test "$hardcode_minus_L_CXX" != no; then
14159     # Linking always hardcodes the temporary library directory.
14160     hardcode_action_CXX=relink
14161   else
14162     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14163     hardcode_action_CXX=immediate
14164   fi
14165 else
14166   # We cannot hardcode anything, or else we can only hardcode existing
14167   # directories.
14168   hardcode_action_CXX=unsupported
14169 fi
14170 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14171 echo "${ECHO_T}$hardcode_action_CXX" >&6
14172
14173 if test "$hardcode_action_CXX" = relink; then
14174   # Fast installation is not supported
14175   enable_fast_install=no
14176 elif test "$shlibpath_overrides_runpath" = yes ||
14177      test "$enable_shared" = no; then
14178   # Fast installation is not necessary
14179   enable_fast_install=needless
14180 fi
14181
14182 striplib=
14183 old_striplib=
14184 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14185 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14186 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14187   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14188   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14189   echo "$as_me:$LINENO: result: yes" >&5
14190 echo "${ECHO_T}yes" >&6
14191 else
14192 # FIXME - insert some real tests, host_os isn't really good enough
14193   case $host_os in
14194    darwin*)
14195        if test -n "$STRIP" ; then
14196          striplib="$STRIP -x"
14197          echo "$as_me:$LINENO: result: yes" >&5
14198 echo "${ECHO_T}yes" >&6
14199        else
14200   echo "$as_me:$LINENO: result: no" >&5
14201 echo "${ECHO_T}no" >&6
14202 fi
14203        ;;
14204    *)
14205   echo "$as_me:$LINENO: result: no" >&5
14206 echo "${ECHO_T}no" >&6
14207     ;;
14208   esac
14209 fi
14210
14211 if test "x$enable_dlopen" != xyes; then
14212   enable_dlopen=unknown
14213   enable_dlopen_self=unknown
14214   enable_dlopen_self_static=unknown
14215 else
14216   lt_cv_dlopen=no
14217   lt_cv_dlopen_libs=
14218
14219   case $host_os in
14220   beos*)
14221     lt_cv_dlopen="load_add_on"
14222     lt_cv_dlopen_libs=
14223     lt_cv_dlopen_self=yes
14224     ;;
14225
14226   mingw* | pw32*)
14227     lt_cv_dlopen="LoadLibrary"
14228     lt_cv_dlopen_libs=
14229    ;;
14230
14231   cygwin*)
14232     lt_cv_dlopen="dlopen"
14233     lt_cv_dlopen_libs=
14234    ;;
14235
14236   darwin*)
14237   # if libdl is installed we need to link against it
14238     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14239 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14240 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14241   echo $ECHO_N "(cached) $ECHO_C" >&6
14242 else
14243   ac_check_lib_save_LIBS=$LIBS
14244 LIBS="-ldl  $LIBS"
14245 cat >conftest.$ac_ext <<_ACEOF
14246 /* confdefs.h.  */
14247 _ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h.  */
14251
14252 /* Override any gcc2 internal prototype to avoid an error.  */
14253 #ifdef __cplusplus
14254 extern "C"
14255 #endif
14256 /* We use char because int might match the return type of a gcc2
14257    builtin and then its argument prototype would still apply.  */
14258 char dlopen ();
14259 int
14260 main ()
14261 {
14262 dlopen ();
14263   ;
14264   return 0;
14265 }
14266 _ACEOF
14267 rm -f conftest.$ac_objext conftest$ac_exeext
14268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14269   (eval $ac_link) 2>conftest.er1
14270   ac_status=$?
14271   grep -v '^ *+' conftest.er1 >conftest.err
14272   rm -f conftest.er1
14273   cat conftest.err >&5
14274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275   (exit $ac_status); } &&
14276          { ac_try='test -z "$ac_cxx_werror_flag"
14277                          || test ! -s conftest.err'
14278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279   (eval $ac_try) 2>&5
14280   ac_status=$?
14281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282   (exit $ac_status); }; } &&
14283          { ac_try='test -s conftest$ac_exeext'
14284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285   (eval $ac_try) 2>&5
14286   ac_status=$?
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); }; }; then
14289   ac_cv_lib_dl_dlopen=yes
14290 else
14291   echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14293
14294 ac_cv_lib_dl_dlopen=no
14295 fi
14296 rm -f conftest.err conftest.$ac_objext \
14297       conftest$ac_exeext conftest.$ac_ext
14298 LIBS=$ac_check_lib_save_LIBS
14299 fi
14300 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14301 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14302 if test $ac_cv_lib_dl_dlopen = yes; then
14303   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14304 else
14305
14306     lt_cv_dlopen="dyld"
14307     lt_cv_dlopen_libs=
14308     lt_cv_dlopen_self=yes
14309
14310 fi
14311
14312    ;;
14313
14314   *)
14315     echo "$as_me:$LINENO: checking for shl_load" >&5
14316 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14317 if test "${ac_cv_func_shl_load+set}" = set; then
14318   echo $ECHO_N "(cached) $ECHO_C" >&6
14319 else
14320   cat >conftest.$ac_ext <<_ACEOF
14321 /* confdefs.h.  */
14322 _ACEOF
14323 cat confdefs.h >>conftest.$ac_ext
14324 cat >>conftest.$ac_ext <<_ACEOF
14325 /* end confdefs.h.  */
14326 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14327    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14328 #define shl_load innocuous_shl_load
14329
14330 /* System header to define __stub macros and hopefully few prototypes,
14331     which can conflict with char shl_load (); below.
14332     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14333     <limits.h> exists even on freestanding compilers.  */
14334
14335 #ifdef __STDC__
14336 # include <limits.h>
14337 #else
14338 # include <assert.h>
14339 #endif
14340
14341 #undef shl_load
14342
14343 /* Override any gcc2 internal prototype to avoid an error.  */
14344 #ifdef __cplusplus
14345 extern "C"
14346 {
14347 #endif
14348 /* We use char because int might match the return type of a gcc2
14349    builtin and then its argument prototype would still apply.  */
14350 char shl_load ();
14351 /* The GNU C library defines this for functions which it implements
14352     to always fail with ENOSYS.  Some functions are actually named
14353     something starting with __ and the normal name is an alias.  */
14354 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14355 choke me
14356 #else
14357 char (*f) () = shl_load;
14358 #endif
14359 #ifdef __cplusplus
14360 }
14361 #endif
14362
14363 int
14364 main ()
14365 {
14366 return f != shl_load;
14367   ;
14368   return 0;
14369 }
14370 _ACEOF
14371 rm -f conftest.$ac_objext conftest$ac_exeext
14372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14373   (eval $ac_link) 2>conftest.er1
14374   ac_status=$?
14375   grep -v '^ *+' conftest.er1 >conftest.err
14376   rm -f conftest.er1
14377   cat conftest.err >&5
14378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); } &&
14380          { ac_try='test -z "$ac_cxx_werror_flag"
14381                          || test ! -s conftest.err'
14382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383   (eval $ac_try) 2>&5
14384   ac_status=$?
14385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386   (exit $ac_status); }; } &&
14387          { ac_try='test -s conftest$ac_exeext'
14388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389   (eval $ac_try) 2>&5
14390   ac_status=$?
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); }; }; then
14393   ac_cv_func_shl_load=yes
14394 else
14395   echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.$ac_ext >&5
14397
14398 ac_cv_func_shl_load=no
14399 fi
14400 rm -f conftest.err conftest.$ac_objext \
14401       conftest$ac_exeext conftest.$ac_ext
14402 fi
14403 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14404 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14405 if test $ac_cv_func_shl_load = yes; then
14406   lt_cv_dlopen="shl_load"
14407 else
14408   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14409 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14410 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14411   echo $ECHO_N "(cached) $ECHO_C" >&6
14412 else
14413   ac_check_lib_save_LIBS=$LIBS
14414 LIBS="-ldld  $LIBS"
14415 cat >conftest.$ac_ext <<_ACEOF
14416 /* confdefs.h.  */
14417 _ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h.  */
14421
14422 /* Override any gcc2 internal prototype to avoid an error.  */
14423 #ifdef __cplusplus
14424 extern "C"
14425 #endif
14426 /* We use char because int might match the return type of a gcc2
14427    builtin and then its argument prototype would still apply.  */
14428 char shl_load ();
14429 int
14430 main ()
14431 {
14432 shl_load ();
14433   ;
14434   return 0;
14435 }
14436 _ACEOF
14437 rm -f conftest.$ac_objext conftest$ac_exeext
14438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14439   (eval $ac_link) 2>conftest.er1
14440   ac_status=$?
14441   grep -v '^ *+' conftest.er1 >conftest.err
14442   rm -f conftest.er1
14443   cat conftest.err >&5
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); } &&
14446          { ac_try='test -z "$ac_cxx_werror_flag"
14447                          || test ! -s conftest.err'
14448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449   (eval $ac_try) 2>&5
14450   ac_status=$?
14451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452   (exit $ac_status); }; } &&
14453          { ac_try='test -s conftest$ac_exeext'
14454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14455   (eval $ac_try) 2>&5
14456   ac_status=$?
14457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458   (exit $ac_status); }; }; then
14459   ac_cv_lib_dld_shl_load=yes
14460 else
14461   echo "$as_me: failed program was:" >&5
14462 sed 's/^/| /' conftest.$ac_ext >&5
14463
14464 ac_cv_lib_dld_shl_load=no
14465 fi
14466 rm -f conftest.err conftest.$ac_objext \
14467       conftest$ac_exeext conftest.$ac_ext
14468 LIBS=$ac_check_lib_save_LIBS
14469 fi
14470 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14471 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14472 if test $ac_cv_lib_dld_shl_load = yes; then
14473   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14474 else
14475   echo "$as_me:$LINENO: checking for dlopen" >&5
14476 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14477 if test "${ac_cv_func_dlopen+set}" = set; then
14478   echo $ECHO_N "(cached) $ECHO_C" >&6
14479 else
14480   cat >conftest.$ac_ext <<_ACEOF
14481 /* confdefs.h.  */
14482 _ACEOF
14483 cat confdefs.h >>conftest.$ac_ext
14484 cat >>conftest.$ac_ext <<_ACEOF
14485 /* end confdefs.h.  */
14486 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14487    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14488 #define dlopen innocuous_dlopen
14489
14490 /* System header to define __stub macros and hopefully few prototypes,
14491     which can conflict with char dlopen (); below.
14492     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14493     <limits.h> exists even on freestanding compilers.  */
14494
14495 #ifdef __STDC__
14496 # include <limits.h>
14497 #else
14498 # include <assert.h>
14499 #endif
14500
14501 #undef dlopen
14502
14503 /* Override any gcc2 internal prototype to avoid an error.  */
14504 #ifdef __cplusplus
14505 extern "C"
14506 {
14507 #endif
14508 /* We use char because int might match the return type of a gcc2
14509    builtin and then its argument prototype would still apply.  */
14510 char dlopen ();
14511 /* The GNU C library defines this for functions which it implements
14512     to always fail with ENOSYS.  Some functions are actually named
14513     something starting with __ and the normal name is an alias.  */
14514 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14515 choke me
14516 #else
14517 char (*f) () = dlopen;
14518 #endif
14519 #ifdef __cplusplus
14520 }
14521 #endif
14522
14523 int
14524 main ()
14525 {
14526 return f != dlopen;
14527   ;
14528   return 0;
14529 }
14530 _ACEOF
14531 rm -f conftest.$ac_objext conftest$ac_exeext
14532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14533   (eval $ac_link) 2>conftest.er1
14534   ac_status=$?
14535   grep -v '^ *+' conftest.er1 >conftest.err
14536   rm -f conftest.er1
14537   cat conftest.err >&5
14538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539   (exit $ac_status); } &&
14540          { ac_try='test -z "$ac_cxx_werror_flag"
14541                          || test ! -s conftest.err'
14542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543   (eval $ac_try) 2>&5
14544   ac_status=$?
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); }; } &&
14547          { ac_try='test -s conftest$ac_exeext'
14548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549   (eval $ac_try) 2>&5
14550   ac_status=$?
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); }; }; then
14553   ac_cv_func_dlopen=yes
14554 else
14555   echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14557
14558 ac_cv_func_dlopen=no
14559 fi
14560 rm -f conftest.err conftest.$ac_objext \
14561       conftest$ac_exeext conftest.$ac_ext
14562 fi
14563 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14564 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14565 if test $ac_cv_func_dlopen = yes; then
14566   lt_cv_dlopen="dlopen"
14567 else
14568   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14569 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14570 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14571   echo $ECHO_N "(cached) $ECHO_C" >&6
14572 else
14573   ac_check_lib_save_LIBS=$LIBS
14574 LIBS="-ldl  $LIBS"
14575 cat >conftest.$ac_ext <<_ACEOF
14576 /* confdefs.h.  */
14577 _ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h.  */
14581
14582 /* Override any gcc2 internal prototype to avoid an error.  */
14583 #ifdef __cplusplus
14584 extern "C"
14585 #endif
14586 /* We use char because int might match the return type of a gcc2
14587    builtin and then its argument prototype would still apply.  */
14588 char dlopen ();
14589 int
14590 main ()
14591 {
14592 dlopen ();
14593   ;
14594   return 0;
14595 }
14596 _ACEOF
14597 rm -f conftest.$ac_objext conftest$ac_exeext
14598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14599   (eval $ac_link) 2>conftest.er1
14600   ac_status=$?
14601   grep -v '^ *+' conftest.er1 >conftest.err
14602   rm -f conftest.er1
14603   cat conftest.err >&5
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); } &&
14606          { ac_try='test -z "$ac_cxx_werror_flag"
14607                          || test ! -s conftest.err'
14608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609   (eval $ac_try) 2>&5
14610   ac_status=$?
14611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612   (exit $ac_status); }; } &&
14613          { ac_try='test -s conftest$ac_exeext'
14614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615   (eval $ac_try) 2>&5
14616   ac_status=$?
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); }; }; then
14619   ac_cv_lib_dl_dlopen=yes
14620 else
14621   echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14623
14624 ac_cv_lib_dl_dlopen=no
14625 fi
14626 rm -f conftest.err conftest.$ac_objext \
14627       conftest$ac_exeext conftest.$ac_ext
14628 LIBS=$ac_check_lib_save_LIBS
14629 fi
14630 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14631 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14632 if test $ac_cv_lib_dl_dlopen = yes; then
14633   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14634 else
14635   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14636 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14637 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14638   echo $ECHO_N "(cached) $ECHO_C" >&6
14639 else
14640   ac_check_lib_save_LIBS=$LIBS
14641 LIBS="-lsvld  $LIBS"
14642 cat >conftest.$ac_ext <<_ACEOF
14643 /* confdefs.h.  */
14644 _ACEOF
14645 cat confdefs.h >>conftest.$ac_ext
14646 cat >>conftest.$ac_ext <<_ACEOF
14647 /* end confdefs.h.  */
14648
14649 /* Override any gcc2 internal prototype to avoid an error.  */
14650 #ifdef __cplusplus
14651 extern "C"
14652 #endif
14653 /* We use char because int might match the return type of a gcc2
14654    builtin and then its argument prototype would still apply.  */
14655 char dlopen ();
14656 int
14657 main ()
14658 {
14659 dlopen ();
14660   ;
14661   return 0;
14662 }
14663 _ACEOF
14664 rm -f conftest.$ac_objext conftest$ac_exeext
14665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14666   (eval $ac_link) 2>conftest.er1
14667   ac_status=$?
14668   grep -v '^ *+' conftest.er1 >conftest.err
14669   rm -f conftest.er1
14670   cat conftest.err >&5
14671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672   (exit $ac_status); } &&
14673          { ac_try='test -z "$ac_cxx_werror_flag"
14674                          || test ! -s conftest.err'
14675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676   (eval $ac_try) 2>&5
14677   ac_status=$?
14678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   (exit $ac_status); }; } &&
14680          { ac_try='test -s conftest$ac_exeext'
14681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682   (eval $ac_try) 2>&5
14683   ac_status=$?
14684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685   (exit $ac_status); }; }; then
14686   ac_cv_lib_svld_dlopen=yes
14687 else
14688   echo "$as_me: failed program was:" >&5
14689 sed 's/^/| /' conftest.$ac_ext >&5
14690
14691 ac_cv_lib_svld_dlopen=no
14692 fi
14693 rm -f conftest.err conftest.$ac_objext \
14694       conftest$ac_exeext conftest.$ac_ext
14695 LIBS=$ac_check_lib_save_LIBS
14696 fi
14697 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14698 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14699 if test $ac_cv_lib_svld_dlopen = yes; then
14700   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14701 else
14702   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14703 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14704 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14705   echo $ECHO_N "(cached) $ECHO_C" >&6
14706 else
14707   ac_check_lib_save_LIBS=$LIBS
14708 LIBS="-ldld  $LIBS"
14709 cat >conftest.$ac_ext <<_ACEOF
14710 /* confdefs.h.  */
14711 _ACEOF
14712 cat confdefs.h >>conftest.$ac_ext
14713 cat >>conftest.$ac_ext <<_ACEOF
14714 /* end confdefs.h.  */
14715
14716 /* Override any gcc2 internal prototype to avoid an error.  */
14717 #ifdef __cplusplus
14718 extern "C"
14719 #endif
14720 /* We use char because int might match the return type of a gcc2
14721    builtin and then its argument prototype would still apply.  */
14722 char dld_link ();
14723 int
14724 main ()
14725 {
14726 dld_link ();
14727   ;
14728   return 0;
14729 }
14730 _ACEOF
14731 rm -f conftest.$ac_objext conftest$ac_exeext
14732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14733   (eval $ac_link) 2>conftest.er1
14734   ac_status=$?
14735   grep -v '^ *+' conftest.er1 >conftest.err
14736   rm -f conftest.er1
14737   cat conftest.err >&5
14738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); } &&
14740          { ac_try='test -z "$ac_cxx_werror_flag"
14741                          || test ! -s conftest.err'
14742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743   (eval $ac_try) 2>&5
14744   ac_status=$?
14745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746   (exit $ac_status); }; } &&
14747          { ac_try='test -s conftest$ac_exeext'
14748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749   (eval $ac_try) 2>&5
14750   ac_status=$?
14751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752   (exit $ac_status); }; }; then
14753   ac_cv_lib_dld_dld_link=yes
14754 else
14755   echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14757
14758 ac_cv_lib_dld_dld_link=no
14759 fi
14760 rm -f conftest.err conftest.$ac_objext \
14761       conftest$ac_exeext conftest.$ac_ext
14762 LIBS=$ac_check_lib_save_LIBS
14763 fi
14764 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14765 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14766 if test $ac_cv_lib_dld_dld_link = yes; then
14767   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14768 fi
14769
14770
14771 fi
14772
14773
14774 fi
14775
14776
14777 fi
14778
14779
14780 fi
14781
14782
14783 fi
14784
14785     ;;
14786   esac
14787
14788   if test "x$lt_cv_dlopen" != xno; then
14789     enable_dlopen=yes
14790   else
14791     enable_dlopen=no
14792   fi
14793
14794   case $lt_cv_dlopen in
14795   dlopen)
14796     save_CPPFLAGS="$CPPFLAGS"
14797     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14798
14799     save_LDFLAGS="$LDFLAGS"
14800     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14801
14802     save_LIBS="$LIBS"
14803     LIBS="$lt_cv_dlopen_libs $LIBS"
14804
14805     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14806 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14807 if test "${lt_cv_dlopen_self+set}" = set; then
14808   echo $ECHO_N "(cached) $ECHO_C" >&6
14809 else
14810           if test "$cross_compiling" = yes; then :
14811   lt_cv_dlopen_self=cross
14812 else
14813   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14814   lt_status=$lt_dlunknown
14815   cat > conftest.$ac_ext <<EOF
14816 #line 14816 "configure"
14817 #include "confdefs.h"
14818
14819 #if HAVE_DLFCN_H
14820 #include <dlfcn.h>
14821 #endif
14822
14823 #include <stdio.h>
14824
14825 #ifdef RTLD_GLOBAL
14826 #  define LT_DLGLOBAL           RTLD_GLOBAL
14827 #else
14828 #  ifdef DL_GLOBAL
14829 #    define LT_DLGLOBAL         DL_GLOBAL
14830 #  else
14831 #    define LT_DLGLOBAL         0
14832 #  endif
14833 #endif
14834
14835 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14836    find out it does not work in some platform. */
14837 #ifndef LT_DLLAZY_OR_NOW
14838 #  ifdef RTLD_LAZY
14839 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14840 #  else
14841 #    ifdef DL_LAZY
14842 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14843 #    else
14844 #      ifdef RTLD_NOW
14845 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14846 #      else
14847 #        ifdef DL_NOW
14848 #          define LT_DLLAZY_OR_NOW      DL_NOW
14849 #        else
14850 #          define LT_DLLAZY_OR_NOW      0
14851 #        endif
14852 #      endif
14853 #    endif
14854 #  endif
14855 #endif
14856
14857 #ifdef __cplusplus
14858 extern "C" void exit (int);
14859 #endif
14860
14861 void fnord() { int i=42;}
14862 int main ()
14863 {
14864   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14865   int status = $lt_dlunknown;
14866
14867   if (self)
14868     {
14869       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14870       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14871       /* dlclose (self); */
14872     }
14873
14874     exit (status);
14875 }
14876 EOF
14877   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14878   (eval $ac_link) 2>&5
14879   ac_status=$?
14880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14882     (./conftest; exit; ) 2>/dev/null
14883     lt_status=$?
14884     case x$lt_status in
14885       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14886       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14887       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14888     esac
14889   else :
14890     # compilation failed
14891     lt_cv_dlopen_self=no
14892   fi
14893 fi
14894 rm -fr conftest*
14895
14896
14897 fi
14898 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14899 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14900
14901     if test "x$lt_cv_dlopen_self" = xyes; then
14902       LDFLAGS="$LDFLAGS $link_static_flag"
14903       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14904 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14905 if test "${lt_cv_dlopen_self_static+set}" = set; then
14906   echo $ECHO_N "(cached) $ECHO_C" >&6
14907 else
14908           if test "$cross_compiling" = yes; then :
14909   lt_cv_dlopen_self_static=cross
14910 else
14911   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14912   lt_status=$lt_dlunknown
14913   cat > conftest.$ac_ext <<EOF
14914 #line 14914 "configure"
14915 #include "confdefs.h"
14916
14917 #if HAVE_DLFCN_H
14918 #include <dlfcn.h>
14919 #endif
14920
14921 #include <stdio.h>
14922
14923 #ifdef RTLD_GLOBAL
14924 #  define LT_DLGLOBAL           RTLD_GLOBAL
14925 #else
14926 #  ifdef DL_GLOBAL
14927 #    define LT_DLGLOBAL         DL_GLOBAL
14928 #  else
14929 #    define LT_DLGLOBAL         0
14930 #  endif
14931 #endif
14932
14933 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14934    find out it does not work in some platform. */
14935 #ifndef LT_DLLAZY_OR_NOW
14936 #  ifdef RTLD_LAZY
14937 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14938 #  else
14939 #    ifdef DL_LAZY
14940 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14941 #    else
14942 #      ifdef RTLD_NOW
14943 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14944 #      else
14945 #        ifdef DL_NOW
14946 #          define LT_DLLAZY_OR_NOW      DL_NOW
14947 #        else
14948 #          define LT_DLLAZY_OR_NOW      0
14949 #        endif
14950 #      endif
14951 #    endif
14952 #  endif
14953 #endif
14954
14955 #ifdef __cplusplus
14956 extern "C" void exit (int);
14957 #endif
14958
14959 void fnord() { int i=42;}
14960 int main ()
14961 {
14962   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14963   int status = $lt_dlunknown;
14964
14965   if (self)
14966     {
14967       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14968       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14969       /* dlclose (self); */
14970     }
14971
14972     exit (status);
14973 }
14974 EOF
14975   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14976   (eval $ac_link) 2>&5
14977   ac_status=$?
14978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14980     (./conftest; exit; ) 2>/dev/null
14981     lt_status=$?
14982     case x$lt_status in
14983       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14984       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14985       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14986     esac
14987   else :
14988     # compilation failed
14989     lt_cv_dlopen_self_static=no
14990   fi
14991 fi
14992 rm -fr conftest*
14993
14994
14995 fi
14996 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14997 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14998     fi
14999
15000     CPPFLAGS="$save_CPPFLAGS"
15001     LDFLAGS="$save_LDFLAGS"
15002     LIBS="$save_LIBS"
15003     ;;
15004   esac
15005
15006   case $lt_cv_dlopen_self in
15007   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15008   *) enable_dlopen_self=unknown ;;
15009   esac
15010
15011   case $lt_cv_dlopen_self_static in
15012   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15013   *) enable_dlopen_self_static=unknown ;;
15014   esac
15015 fi
15016
15017
15018 # The else clause should only fire when bootstrapping the
15019 # libtool distribution, otherwise you forgot to ship ltmain.sh
15020 # with your package, and you will get complaints that there are
15021 # no rules to generate ltmain.sh.
15022 if test -f "$ltmain"; then
15023   # See if we are running on zsh, and set the options which allow our commands through
15024   # without removal of \ escapes.
15025   if test -n "${ZSH_VERSION+set}" ; then
15026     setopt NO_GLOB_SUBST
15027   fi
15028   # Now quote all the things that may contain metacharacters while being
15029   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15030   # variables and quote the copies for generation of the libtool script.
15031   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15032     SED SHELL STRIP \
15033     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15034     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15035     deplibs_check_method reload_flag reload_cmds need_locks \
15036     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15037     lt_cv_sys_global_symbol_to_c_name_address \
15038     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15039     old_postinstall_cmds old_postuninstall_cmds \
15040     compiler_CXX \
15041     CC_CXX \
15042     LD_CXX \
15043     lt_prog_compiler_wl_CXX \
15044     lt_prog_compiler_pic_CXX \
15045     lt_prog_compiler_static_CXX \
15046     lt_prog_compiler_no_builtin_flag_CXX \
15047     export_dynamic_flag_spec_CXX \
15048     thread_safe_flag_spec_CXX \
15049     whole_archive_flag_spec_CXX \
15050     enable_shared_with_static_runtimes_CXX \
15051     old_archive_cmds_CXX \
15052     old_archive_from_new_cmds_CXX \
15053     predep_objects_CXX \
15054     postdep_objects_CXX \
15055     predeps_CXX \
15056     postdeps_CXX \
15057     compiler_lib_search_path_CXX \
15058     archive_cmds_CXX \
15059     archive_expsym_cmds_CXX \
15060     postinstall_cmds_CXX \
15061     postuninstall_cmds_CXX \
15062     old_archive_from_expsyms_cmds_CXX \
15063     allow_undefined_flag_CXX \
15064     no_undefined_flag_CXX \
15065     export_symbols_cmds_CXX \
15066     hardcode_libdir_flag_spec_CXX \
15067     hardcode_libdir_flag_spec_ld_CXX \
15068     hardcode_libdir_separator_CXX \
15069     hardcode_automatic_CXX \
15070     module_cmds_CXX \
15071     module_expsym_cmds_CXX \
15072     lt_cv_prog_compiler_c_o_CXX \
15073     exclude_expsyms_CXX \
15074     include_expsyms_CXX; do
15075
15076     case $var in
15077     old_archive_cmds_CXX | \
15078     old_archive_from_new_cmds_CXX | \
15079     archive_cmds_CXX | \
15080     archive_expsym_cmds_CXX | \
15081     module_cmds_CXX | \
15082     module_expsym_cmds_CXX | \
15083     old_archive_from_expsyms_cmds_CXX | \
15084     export_symbols_cmds_CXX | \
15085     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15086     postinstall_cmds | postuninstall_cmds | \
15087     old_postinstall_cmds | old_postuninstall_cmds | \
15088     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15089       # Double-quote double-evaled strings.
15090       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15091       ;;
15092     *)
15093       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15094       ;;
15095     esac
15096   done
15097
15098   case $lt_echo in
15099   *'\$0 --fallback-echo"')
15100     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15101     ;;
15102   esac
15103
15104 cfgfile="$ofile"
15105
15106   cat <<__EOF__ >> "$cfgfile"
15107 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15108
15109 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15110
15111 # Shell to use when invoking shell scripts.
15112 SHELL=$lt_SHELL
15113
15114 # Whether or not to build shared libraries.
15115 build_libtool_libs=$enable_shared
15116
15117 # Whether or not to build static libraries.
15118 build_old_libs=$enable_static
15119
15120 # Whether or not to add -lc for building shared libraries.
15121 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15122
15123 # Whether or not to disallow shared libs when runtime libs are static
15124 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15125
15126 # Whether or not to optimize for fast installation.
15127 fast_install=$enable_fast_install
15128
15129 # The host system.
15130 host_alias=$host_alias
15131 host=$host
15132 host_os=$host_os
15133
15134 # The build system.
15135 build_alias=$build_alias
15136 build=$build
15137 build_os=$build_os
15138
15139 # An echo program that does not interpret backslashes.
15140 echo=$lt_echo
15141
15142 # The archiver.
15143 AR=$lt_AR
15144 AR_FLAGS=$lt_AR_FLAGS
15145
15146 # A C compiler.
15147 LTCC=$lt_LTCC
15148
15149 # A language-specific compiler.
15150 CC=$lt_compiler_CXX
15151
15152 # Is the compiler the GNU C compiler?
15153 with_gcc=$GCC_CXX
15154
15155 # An ERE matcher.
15156 EGREP=$lt_EGREP
15157
15158 # The linker used to build libraries.
15159 LD=$lt_LD_CXX
15160
15161 # Whether we need hard or soft links.
15162 LN_S=$lt_LN_S
15163
15164 # A BSD-compatible nm program.
15165 NM=$lt_NM
15166
15167 # A symbol stripping program
15168 STRIP=$lt_STRIP
15169
15170 # Used to examine libraries when file_magic_cmd begins "file"
15171 MAGIC_CMD=$MAGIC_CMD
15172
15173 # Used on cygwin: DLL creation program.
15174 DLLTOOL="$DLLTOOL"
15175
15176 # Used on cygwin: object dumper.
15177 OBJDUMP="$OBJDUMP"
15178
15179 # Used on cygwin: assembler.
15180 AS="$AS"
15181
15182 # The name of the directory that contains temporary libtool files.
15183 objdir=$objdir
15184
15185 # How to create reloadable object files.
15186 reload_flag=$lt_reload_flag
15187 reload_cmds=$lt_reload_cmds
15188
15189 # How to pass a linker flag through the compiler.
15190 wl=$lt_lt_prog_compiler_wl_CXX
15191
15192 # Object file suffix (normally "o").
15193 objext="$ac_objext"
15194
15195 # Old archive suffix (normally "a").
15196 libext="$libext"
15197
15198 # Shared library suffix (normally ".so").
15199 shrext_cmds='$shrext_cmds'
15200
15201 # Executable file suffix (normally "").
15202 exeext="$exeext"
15203
15204 # Additional compiler flags for building library objects.
15205 pic_flag=$lt_lt_prog_compiler_pic_CXX
15206 pic_mode=$pic_mode
15207
15208 # What is the maximum length of a command?
15209 max_cmd_len=$lt_cv_sys_max_cmd_len
15210
15211 # Does compiler simultaneously support -c and -o options?
15212 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15213
15214 # Must we lock files when doing compilation?
15215 need_locks=$lt_need_locks
15216
15217 # Do we need the lib prefix for modules?
15218 need_lib_prefix=$need_lib_prefix
15219
15220 # Do we need a version for libraries?
15221 need_version=$need_version
15222
15223 # Whether dlopen is supported.
15224 dlopen_support=$enable_dlopen
15225
15226 # Whether dlopen of programs is supported.
15227 dlopen_self=$enable_dlopen_self
15228
15229 # Whether dlopen of statically linked programs is supported.
15230 dlopen_self_static=$enable_dlopen_self_static
15231
15232 # Compiler flag to prevent dynamic linking.
15233 link_static_flag=$lt_lt_prog_compiler_static_CXX
15234
15235 # Compiler flag to turn off builtin functions.
15236 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15237
15238 # Compiler flag to allow reflexive dlopens.
15239 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15240
15241 # Compiler flag to generate shared objects directly from archives.
15242 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15243
15244 # Compiler flag to generate thread-safe objects.
15245 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15246
15247 # Library versioning type.
15248 version_type=$version_type
15249
15250 # Format of library name prefix.
15251 libname_spec=$lt_libname_spec
15252
15253 # List of archive names.  First name is the real one, the rest are links.
15254 # The last name is the one that the linker finds with -lNAME.
15255 library_names_spec=$lt_library_names_spec
15256
15257 # The coded name of the library, if different from the real name.
15258 soname_spec=$lt_soname_spec
15259
15260 # Commands used to build and install an old-style archive.
15261 RANLIB=$lt_RANLIB
15262 old_archive_cmds=$lt_old_archive_cmds_CXX
15263 old_postinstall_cmds=$lt_old_postinstall_cmds
15264 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15265
15266 # Create an old-style archive from a shared archive.
15267 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15268
15269 # Create a temporary old-style archive to link instead of a shared archive.
15270 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15271
15272 # Commands used to build and install a shared archive.
15273 archive_cmds=$lt_archive_cmds_CXX
15274 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15275 postinstall_cmds=$lt_postinstall_cmds
15276 postuninstall_cmds=$lt_postuninstall_cmds
15277
15278 # Commands used to build a loadable module (assumed same as above if empty)
15279 module_cmds=$lt_module_cmds_CXX
15280 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15281
15282 # Commands to strip libraries.
15283 old_striplib=$lt_old_striplib
15284 striplib=$lt_striplib
15285
15286 # Dependencies to place before the objects being linked to create a
15287 # shared library.
15288 predep_objects=$lt_predep_objects_CXX
15289
15290 # Dependencies to place after the objects being linked to create a
15291 # shared library.
15292 postdep_objects=$lt_postdep_objects_CXX
15293
15294 # Dependencies to place before the objects being linked to create a
15295 # shared library.
15296 predeps=$lt_predeps_CXX
15297
15298 # Dependencies to place after the objects being linked to create a
15299 # shared library.
15300 postdeps=$lt_postdeps_CXX
15301
15302 # The library search path used internally by the compiler when linking
15303 # a shared library.
15304 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15305
15306 # Method to check whether dependent libraries are shared objects.
15307 deplibs_check_method=$lt_deplibs_check_method
15308
15309 # Command to use when deplibs_check_method == file_magic.
15310 file_magic_cmd=$lt_file_magic_cmd
15311
15312 # Flag that allows shared libraries with undefined symbols to be built.
15313 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15314
15315 # Flag that forces no undefined symbols.
15316 no_undefined_flag=$lt_no_undefined_flag_CXX
15317
15318 # Commands used to finish a libtool library installation in a directory.
15319 finish_cmds=$lt_finish_cmds
15320
15321 # Same as above, but a single script fragment to be evaled but not shown.
15322 finish_eval=$lt_finish_eval
15323
15324 # Take the output of nm and produce a listing of raw symbols and C names.
15325 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15326
15327 # Transform the output of nm in a proper C declaration
15328 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15329
15330 # Transform the output of nm in a C name address pair
15331 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15332
15333 # This is the shared library runtime path variable.
15334 runpath_var=$runpath_var
15335
15336 # This is the shared library path variable.
15337 shlibpath_var=$shlibpath_var
15338
15339 # Is shlibpath searched before the hard-coded library search path?
15340 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15341
15342 # How to hardcode a shared library path into an executable.
15343 hardcode_action=$hardcode_action_CXX
15344
15345 # Whether we should hardcode library paths into libraries.
15346 hardcode_into_libs=$hardcode_into_libs
15347
15348 # Flag to hardcode \$libdir into a binary during linking.
15349 # This must work even if \$libdir does not exist.
15350 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15351
15352 # If ld is used when linking, flag to hardcode \$libdir into
15353 # a binary during linking. This must work even if \$libdir does
15354 # not exist.
15355 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15356
15357 # Whether we need a single -rpath flag with a separated argument.
15358 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15359
15360 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15361 # resulting binary.
15362 hardcode_direct=$hardcode_direct_CXX
15363
15364 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15365 # resulting binary.
15366 hardcode_minus_L=$hardcode_minus_L_CXX
15367
15368 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15369 # the resulting binary.
15370 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15371
15372 # Set to yes if building a shared library automatically hardcodes DIR into the library
15373 # and all subsequent libraries and executables linked against it.
15374 hardcode_automatic=$hardcode_automatic_CXX
15375
15376 # Variables whose values should be saved in libtool wrapper scripts and
15377 # restored at relink time.
15378 variables_saved_for_relink="$variables_saved_for_relink"
15379
15380 # Whether libtool must link a program against all its dependency libraries.
15381 link_all_deplibs=$link_all_deplibs_CXX
15382
15383 # Compile-time system search path for libraries
15384 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15385
15386 # Run-time system search path for libraries
15387 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15388
15389 # Fix the shell variable \$srcfile for the compiler.
15390 fix_srcfile_path="$fix_srcfile_path_CXX"
15391
15392 # Set to yes if exported symbols are required.
15393 always_export_symbols=$always_export_symbols_CXX
15394
15395 # The commands to list exported symbols.
15396 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15397
15398 # The commands to extract the exported symbol list from a shared archive.
15399 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15400
15401 # Symbols that should not be listed in the preloaded symbols.
15402 exclude_expsyms=$lt_exclude_expsyms_CXX
15403
15404 # Symbols that must always be exported.
15405 include_expsyms=$lt_include_expsyms_CXX
15406
15407 # ### END LIBTOOL TAG CONFIG: $tagname
15408
15409 __EOF__
15410
15411
15412 else
15413   # If there is no Makefile yet, we rely on a make rule to execute
15414   # `config.status --recheck' to rerun these tests and create the
15415   # libtool script then.
15416   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15417   if test -f "$ltmain_in"; then
15418     test -f Makefile && make "$ltmain"
15419   fi
15420 fi
15421
15422
15423 ac_ext=c
15424 ac_cpp='$CPP $CPPFLAGS'
15425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15428
15429 CC=$lt_save_CC
15430 LDCXX=$LD
15431 LD=$lt_save_LD
15432 GCC=$lt_save_GCC
15433 with_gnu_ldcxx=$with_gnu_ld
15434 with_gnu_ld=$lt_save_with_gnu_ld
15435 lt_cv_path_LDCXX=$lt_cv_path_LD
15436 lt_cv_path_LD=$lt_save_path_LD
15437 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15438 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15439
15440         else
15441           tagname=""
15442         fi
15443         ;;
15444
15445       F77)
15446         if test -n "$F77" && test "X$F77" != "Xno"; then
15447
15448 ac_ext=f
15449 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15450 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15451 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15452
15453
15454 archive_cmds_need_lc_F77=no
15455 allow_undefined_flag_F77=
15456 always_export_symbols_F77=no
15457 archive_expsym_cmds_F77=
15458 export_dynamic_flag_spec_F77=
15459 hardcode_direct_F77=no
15460 hardcode_libdir_flag_spec_F77=
15461 hardcode_libdir_flag_spec_ld_F77=
15462 hardcode_libdir_separator_F77=
15463 hardcode_minus_L_F77=no
15464 hardcode_automatic_F77=no
15465 module_cmds_F77=
15466 module_expsym_cmds_F77=
15467 link_all_deplibs_F77=unknown
15468 old_archive_cmds_F77=$old_archive_cmds
15469 no_undefined_flag_F77=
15470 whole_archive_flag_spec_F77=
15471 enable_shared_with_static_runtimes_F77=no
15472
15473 # Source file extension for f77 test sources.
15474 ac_ext=f
15475
15476 # Object file extension for compiled f77 test sources.
15477 objext=o
15478 objext_F77=$objext
15479
15480 # Code to be used in simple compile tests
15481 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15482
15483 # Code to be used in simple link tests
15484 lt_simple_link_test_code="      program t\n      end\n"
15485
15486 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15487
15488 # If no C compiler was specified, use CC.
15489 LTCC=${LTCC-"$CC"}
15490
15491 # Allow CC to be a program name with arguments.
15492 compiler=$CC
15493
15494
15495 # save warnings/boilerplate of simple test code
15496 ac_outfile=conftest.$ac_objext
15497 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15498 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15499 _lt_compiler_boilerplate=`cat conftest.err`
15500 $rm conftest*
15501
15502 ac_outfile=conftest.$ac_objext
15503 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15504 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15505 _lt_linker_boilerplate=`cat conftest.err`
15506 $rm conftest*
15507
15508
15509 # Allow CC to be a program name with arguments.
15510 lt_save_CC="$CC"
15511 CC=${F77-"f77"}
15512 compiler=$CC
15513 compiler_F77=$CC
15514 for cc_temp in $compiler""; do
15515   case $cc_temp in
15516     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15517     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15518     \-*) ;;
15519     *) break;;
15520   esac
15521 done
15522 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15523
15524
15525 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15526 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15527 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15528 echo "${ECHO_T}$can_build_shared" >&6
15529
15530 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15531 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15532 test "$can_build_shared" = "no" && enable_shared=no
15533
15534 # On AIX, shared libraries and static libraries use the same namespace, and
15535 # are all built from PIC.
15536 case "$host_os" in
15537 aix3*)
15538   test "$enable_shared" = yes && enable_static=no
15539   if test -n "$RANLIB"; then
15540     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15541     postinstall_cmds='$RANLIB $lib'
15542   fi
15543   ;;
15544 aix4* | aix5*)
15545   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15546     test "$enable_shared" = yes && enable_static=no
15547   fi
15548   ;;
15549 esac
15550 echo "$as_me:$LINENO: result: $enable_shared" >&5
15551 echo "${ECHO_T}$enable_shared" >&6
15552
15553 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15554 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15555 # Make sure either enable_shared or enable_static is yes.
15556 test "$enable_shared" = yes || enable_static=yes
15557 echo "$as_me:$LINENO: result: $enable_static" >&5
15558 echo "${ECHO_T}$enable_static" >&6
15559
15560 test "$ld_shlibs_F77" = no && can_build_shared=no
15561
15562 GCC_F77="$G77"
15563 LD_F77="$LD"
15564
15565 lt_prog_compiler_wl_F77=
15566 lt_prog_compiler_pic_F77=
15567 lt_prog_compiler_static_F77=
15568
15569 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15570 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15571
15572   if test "$GCC" = yes; then
15573     lt_prog_compiler_wl_F77='-Wl,'
15574     lt_prog_compiler_static_F77='-static'
15575
15576     case $host_os in
15577       aix*)
15578       # All AIX code is PIC.
15579       if test "$host_cpu" = ia64; then
15580         # AIX 5 now supports IA64 processor
15581         lt_prog_compiler_static_F77='-Bstatic'
15582       fi
15583       ;;
15584
15585     amigaos*)
15586       # FIXME: we need at least 68020 code to build shared libraries, but
15587       # adding the `-m68020' flag to GCC prevents building anything better,
15588       # like `-m68040'.
15589       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15590       ;;
15591
15592     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15593       # PIC is the default for these OSes.
15594       ;;
15595
15596     mingw* | pw32* | os2*)
15597       # This hack is so that the source file can tell whether it is being
15598       # built for inclusion in a dll (and should export symbols for example).
15599       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15600       ;;
15601
15602     darwin* | rhapsody*)
15603       # PIC is the default on this platform
15604       # Common symbols not allowed in MH_DYLIB files
15605       lt_prog_compiler_pic_F77='-fno-common'
15606       ;;
15607
15608     msdosdjgpp*)
15609       # Just because we use GCC doesn't mean we suddenly get shared libraries
15610       # on systems that don't support them.
15611       lt_prog_compiler_can_build_shared_F77=no
15612       enable_shared=no
15613       ;;
15614
15615     sysv4*MP*)
15616       if test -d /usr/nec; then
15617         lt_prog_compiler_pic_F77=-Kconform_pic
15618       fi
15619       ;;
15620
15621     hpux*)
15622       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15623       # not for PA HP-UX.
15624       case "$host_cpu" in
15625       hppa*64*|ia64*)
15626         # +Z the default
15627         ;;
15628       *)
15629         lt_prog_compiler_pic_F77='-fPIC'
15630         ;;
15631       esac
15632       ;;
15633
15634     *)
15635       lt_prog_compiler_pic_F77='-fPIC'
15636       ;;
15637     esac
15638   else
15639     # PORTME Check for flag to pass linker flags through the system compiler.
15640     case $host_os in
15641     aix*)
15642       lt_prog_compiler_wl_F77='-Wl,'
15643       if test "$host_cpu" = ia64; then
15644         # AIX 5 now supports IA64 processor
15645         lt_prog_compiler_static_F77='-Bstatic'
15646       else
15647         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15648       fi
15649       ;;
15650       darwin*)
15651         # PIC is the default on this platform
15652         # Common symbols not allowed in MH_DYLIB files
15653        case $cc_basename in
15654          xlc*)
15655          lt_prog_compiler_pic_F77='-qnocommon'
15656          lt_prog_compiler_wl_F77='-Wl,'
15657          ;;
15658        esac
15659        ;;
15660
15661     mingw* | pw32* | os2*)
15662       # This hack is so that the source file can tell whether it is being
15663       # built for inclusion in a dll (and should export symbols for example).
15664       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15665       ;;
15666
15667     hpux9* | hpux10* | hpux11*)
15668       lt_prog_compiler_wl_F77='-Wl,'
15669       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15670       # not for PA HP-UX.
15671       case "$host_cpu" in
15672       hppa*64*|ia64*)
15673         # +Z the default
15674         ;;
15675       *)
15676         lt_prog_compiler_pic_F77='+Z'
15677         ;;
15678       esac
15679       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15680       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15681       ;;
15682
15683     irix5* | irix6* | nonstopux*)
15684       lt_prog_compiler_wl_F77='-Wl,'
15685       # PIC (with -KPIC) is the default.
15686       lt_prog_compiler_static_F77='-non_shared'
15687       ;;
15688
15689     newsos6)
15690       lt_prog_compiler_pic_F77='-KPIC'
15691       lt_prog_compiler_static_F77='-Bstatic'
15692       ;;
15693
15694     linux*)
15695       case $cc_basename in
15696       icc* | ecc*)
15697         lt_prog_compiler_wl_F77='-Wl,'
15698         lt_prog_compiler_pic_F77='-KPIC'
15699         lt_prog_compiler_static_F77='-static'
15700         ;;
15701       pgcc* | pgf77* | pgf90*)
15702         # Portland Group compilers (*not* the Pentium gcc compiler,
15703         # which looks to be a dead project)
15704         lt_prog_compiler_wl_F77='-Wl,'
15705         lt_prog_compiler_pic_F77='-fpic'
15706         lt_prog_compiler_static_F77='-static'
15707         ;;
15708       ccc*)
15709         lt_prog_compiler_wl_F77='-Wl,'
15710         # All Alpha code is PIC.
15711         lt_prog_compiler_static_F77='-non_shared'
15712         ;;
15713       esac
15714       ;;
15715
15716     osf3* | osf4* | osf5*)
15717       lt_prog_compiler_wl_F77='-Wl,'
15718       # All OSF/1 code is PIC.
15719       lt_prog_compiler_static_F77='-non_shared'
15720       ;;
15721
15722     sco3.2v5*)
15723       lt_prog_compiler_pic_F77='-Kpic'
15724       lt_prog_compiler_static_F77='-dn'
15725       ;;
15726
15727     solaris*)
15728       lt_prog_compiler_pic_F77='-KPIC'
15729       lt_prog_compiler_static_F77='-Bstatic'
15730       case $cc_basename in
15731       f77* | f90* | f95*)
15732         lt_prog_compiler_wl_F77='-Qoption ld ';;
15733       *)
15734         lt_prog_compiler_wl_F77='-Wl,';;
15735       esac
15736       ;;
15737
15738     sunos4*)
15739       lt_prog_compiler_wl_F77='-Qoption ld '
15740       lt_prog_compiler_pic_F77='-PIC'
15741       lt_prog_compiler_static_F77='-Bstatic'
15742       ;;
15743
15744     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15745       lt_prog_compiler_wl_F77='-Wl,'
15746       lt_prog_compiler_pic_F77='-KPIC'
15747       lt_prog_compiler_static_F77='-Bstatic'
15748       ;;
15749
15750     sysv4*MP*)
15751       if test -d /usr/nec ;then
15752         lt_prog_compiler_pic_F77='-Kconform_pic'
15753         lt_prog_compiler_static_F77='-Bstatic'
15754       fi
15755       ;;
15756
15757     unicos*)
15758       lt_prog_compiler_wl_F77='-Wl,'
15759       lt_prog_compiler_can_build_shared_F77=no
15760       ;;
15761
15762     uts4*)
15763       lt_prog_compiler_pic_F77='-pic'
15764       lt_prog_compiler_static_F77='-Bstatic'
15765       ;;
15766
15767     *)
15768       lt_prog_compiler_can_build_shared_F77=no
15769       ;;
15770     esac
15771   fi
15772
15773 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15774 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15775
15776 #
15777 # Check to make sure the PIC flag actually works.
15778 #
15779 if test -n "$lt_prog_compiler_pic_F77"; then
15780
15781 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15782 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15783 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15784   echo $ECHO_N "(cached) $ECHO_C" >&6
15785 else
15786   lt_prog_compiler_pic_works_F77=no
15787   ac_outfile=conftest.$ac_objext
15788    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15789    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15790    # Insert the option either (1) after the last *FLAGS variable, or
15791    # (2) before a word containing "conftest.", or (3) at the end.
15792    # Note that $ac_compile itself does not contain backslashes and begins
15793    # with a dollar sign (not a hyphen), so the echo should work correctly.
15794    # The option is referenced via a variable to avoid confusing sed.
15795    lt_compile=`echo "$ac_compile" | $SED \
15796    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15797    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15798    -e 's:$: $lt_compiler_flag:'`
15799    (eval echo "\"\$as_me:15799: $lt_compile\"" >&5)
15800    (eval "$lt_compile" 2>conftest.err)
15801    ac_status=$?
15802    cat conftest.err >&5
15803    echo "$as_me:15803: \$? = $ac_status" >&5
15804    if (exit $ac_status) && test -s "$ac_outfile"; then
15805      # The compiler can only warn and ignore the option if not recognized
15806      # So say no if there are warnings other than the usual output.
15807      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15808      $SED '/^$/d' conftest.err >conftest.er2
15809      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15810        lt_prog_compiler_pic_works_F77=yes
15811      fi
15812    fi
15813    $rm conftest*
15814
15815 fi
15816 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15817 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15818
15819 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15820     case $lt_prog_compiler_pic_F77 in
15821      "" | " "*) ;;
15822      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15823      esac
15824 else
15825     lt_prog_compiler_pic_F77=
15826      lt_prog_compiler_can_build_shared_F77=no
15827 fi
15828
15829 fi
15830 case "$host_os" in
15831   # For platforms which do not support PIC, -DPIC is meaningless:
15832   *djgpp*)
15833     lt_prog_compiler_pic_F77=
15834     ;;
15835   *)
15836     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15837     ;;
15838 esac
15839
15840 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15841 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15842 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15843   echo $ECHO_N "(cached) $ECHO_C" >&6
15844 else
15845   lt_cv_prog_compiler_c_o_F77=no
15846    $rm -r conftest 2>/dev/null
15847    mkdir conftest
15848    cd conftest
15849    mkdir out
15850    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15851
15852    lt_compiler_flag="-o out/conftest2.$ac_objext"
15853    # Insert the option either (1) after the last *FLAGS variable, or
15854    # (2) before a word containing "conftest.", or (3) at the end.
15855    # Note that $ac_compile itself does not contain backslashes and begins
15856    # with a dollar sign (not a hyphen), so the echo should work correctly.
15857    lt_compile=`echo "$ac_compile" | $SED \
15858    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15859    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15860    -e 's:$: $lt_compiler_flag:'`
15861    (eval echo "\"\$as_me:15861: $lt_compile\"" >&5)
15862    (eval "$lt_compile" 2>out/conftest.err)
15863    ac_status=$?
15864    cat out/conftest.err >&5
15865    echo "$as_me:15865: \$? = $ac_status" >&5
15866    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15867    then
15868      # The compiler can only warn and ignore the option if not recognized
15869      # So say no if there are warnings
15870      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15871      $SED '/^$/d' out/conftest.err >out/conftest.er2
15872      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15873        lt_cv_prog_compiler_c_o_F77=yes
15874      fi
15875    fi
15876    chmod u+w .
15877    $rm conftest*
15878    # SGI C++ compiler will create directory out/ii_files/ for
15879    # template instantiation
15880    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15881    $rm out/* && rmdir out
15882    cd ..
15883    rmdir conftest
15884    $rm conftest*
15885
15886 fi
15887 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15888 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15889
15890
15891 hard_links="nottested"
15892 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15893   # do not overwrite the value of need_locks provided by the user
15894   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15895 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15896   hard_links=yes
15897   $rm conftest*
15898   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15899   touch conftest.a
15900   ln conftest.a conftest.b 2>&5 || hard_links=no
15901   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15902   echo "$as_me:$LINENO: result: $hard_links" >&5
15903 echo "${ECHO_T}$hard_links" >&6
15904   if test "$hard_links" = no; then
15905     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15906 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15907     need_locks=warn
15908   fi
15909 else
15910   need_locks=no
15911 fi
15912
15913 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15914 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15915
15916   runpath_var=
15917   allow_undefined_flag_F77=
15918   enable_shared_with_static_runtimes_F77=no
15919   archive_cmds_F77=
15920   archive_expsym_cmds_F77=
15921   old_archive_From_new_cmds_F77=
15922   old_archive_from_expsyms_cmds_F77=
15923   export_dynamic_flag_spec_F77=
15924   whole_archive_flag_spec_F77=
15925   thread_safe_flag_spec_F77=
15926   hardcode_libdir_flag_spec_F77=
15927   hardcode_libdir_flag_spec_ld_F77=
15928   hardcode_libdir_separator_F77=
15929   hardcode_direct_F77=no
15930   hardcode_minus_L_F77=no
15931   hardcode_shlibpath_var_F77=unsupported
15932   link_all_deplibs_F77=unknown
15933   hardcode_automatic_F77=no
15934   module_cmds_F77=
15935   module_expsym_cmds_F77=
15936   always_export_symbols_F77=no
15937   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15938   # include_expsyms should be a list of space-separated symbols to be *always*
15939   # included in the symbol list
15940   include_expsyms_F77=
15941   # exclude_expsyms can be an extended regexp of symbols to exclude
15942   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15943   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15944   # as well as any symbol that contains `d'.
15945   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15946   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15947   # platforms (ab)use it in PIC code, but their linkers get confused if
15948   # the symbol is explicitly referenced.  Since portable code cannot
15949   # rely on this symbol name, it's probably fine to never include it in
15950   # preloaded symbol tables.
15951   extract_expsyms_cmds=
15952   # Just being paranoid about ensuring that cc_basename is set.
15953   for cc_temp in $compiler""; do
15954   case $cc_temp in
15955     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15956     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15957     \-*) ;;
15958     *) break;;
15959   esac
15960 done
15961 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15962
15963   case $host_os in
15964   cygwin* | mingw* | pw32*)
15965     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15966     # When not using gcc, we currently assume that we are using
15967     # Microsoft Visual C++.
15968     if test "$GCC" != yes; then
15969       with_gnu_ld=no
15970     fi
15971     ;;
15972   openbsd*)
15973     with_gnu_ld=no
15974     ;;
15975   esac
15976
15977   ld_shlibs_F77=yes
15978   if test "$with_gnu_ld" = yes; then
15979     # If archive_cmds runs LD, not CC, wlarc should be empty
15980     wlarc='${wl}'
15981
15982     # Set some defaults for GNU ld with shared library support. These
15983     # are reset later if shared libraries are not supported. Putting them
15984     # here allows them to be overridden if necessary.
15985     runpath_var=LD_RUN_PATH
15986     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15987     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15988     # ancient GNU ld didn't support --whole-archive et. al.
15989     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15990         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15991       else
15992         whole_archive_flag_spec_F77=
15993     fi
15994     supports_anon_versioning=no
15995     case `$LD -v 2>/dev/null` in
15996       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15997       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15998       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15999       *\ 2.11.*) ;; # other 2.11 versions
16000       *) supports_anon_versioning=yes ;;
16001     esac
16002
16003     # See if GNU ld supports shared libraries.
16004     case $host_os in
16005     aix3* | aix4* | aix5*)
16006       # On AIX/PPC, the GNU linker is very broken
16007       if test "$host_cpu" != ia64; then
16008         ld_shlibs_F77=no
16009         cat <<EOF 1>&2
16010
16011 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16012 *** to be unable to reliably create shared libraries on AIX.
16013 *** Therefore, libtool is disabling shared libraries support.  If you
16014 *** really care for shared libraries, you may want to modify your PATH
16015 *** so that a non-GNU linker is found, and then restart.
16016
16017 EOF
16018       fi
16019       ;;
16020
16021     amigaos*)
16022       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16023       hardcode_libdir_flag_spec_F77='-L$libdir'
16024       hardcode_minus_L_F77=yes
16025
16026       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16027       # that the semantics of dynamic libraries on AmigaOS, at least up
16028       # to version 4, is to share data among multiple programs linked
16029       # with the same dynamic library.  Since this doesn't match the
16030       # behavior of shared libraries on other platforms, we can't use
16031       # them.
16032       ld_shlibs_F77=no
16033       ;;
16034
16035     beos*)
16036       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16037         allow_undefined_flag_F77=unsupported
16038         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16039         # support --undefined.  This deserves some investigation.  FIXME
16040         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16041       else
16042         ld_shlibs_F77=no
16043       fi
16044       ;;
16045
16046     cygwin* | mingw* | pw32*)
16047       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16048       # as there is no search path for DLLs.
16049       hardcode_libdir_flag_spec_F77='-L$libdir'
16050       allow_undefined_flag_F77=unsupported
16051       always_export_symbols_F77=no
16052       enable_shared_with_static_runtimes_F77=yes
16053       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16054
16055       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16056         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16057         # If the export-symbols file already is a .def file (1st line
16058         # is EXPORTS), use it as is; otherwise, prepend...
16059         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16060           cp $export_symbols $output_objdir/$soname.def;
16061         else
16062           echo EXPORTS > $output_objdir/$soname.def;
16063           cat $export_symbols >> $output_objdir/$soname.def;
16064         fi~
16065         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16066       else
16067         ld_shlibs_F77=no
16068       fi
16069       ;;
16070
16071     linux*)
16072       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16073         tmp_addflag=
16074         case $cc_basename,$host_cpu in
16075         pgcc*)                          # Portland Group C compiler
16076           whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16077           tmp_addflag=' $pic_flag'
16078           ;;
16079         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
16080           whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16081           tmp_addflag=' $pic_flag -Mnomain' ;;
16082         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16083           tmp_addflag=' -i_dynamic' ;;
16084         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16085           tmp_addflag=' -i_dynamic -nofor_main' ;;
16086         ifc* | ifort*)                  # Intel Fortran compiler
16087           tmp_addflag=' -nofor_main' ;;
16088         esac
16089         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16090
16091         if test $supports_anon_versioning = yes; then
16092           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16093   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16094   $echo "local: *; };" >> $output_objdir/$libname.ver~
16095           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16096         fi
16097       else
16098         ld_shlibs_F77=no
16099       fi
16100       ;;
16101
16102     netbsd*)
16103       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16104         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16105         wlarc=
16106       else
16107         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16108         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16109       fi
16110       ;;
16111
16112     solaris* | sysv5*)
16113       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16114         ld_shlibs_F77=no
16115         cat <<EOF 1>&2
16116
16117 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16118 *** create shared libraries on Solaris systems.  Therefore, libtool
16119 *** is disabling shared libraries support.  We urge you to upgrade GNU
16120 *** binutils to release 2.9.1 or newer.  Another option is to modify
16121 *** your PATH or compiler configuration so that the native linker is
16122 *** used, and then restart.
16123
16124 EOF
16125       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16126         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16127         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16128       else
16129         ld_shlibs_F77=no
16130       fi
16131       ;;
16132
16133     sunos4*)
16134       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16135       wlarc=
16136       hardcode_direct_F77=yes
16137       hardcode_shlibpath_var_F77=no
16138       ;;
16139
16140     *)
16141       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16142         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16143         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16144       else
16145         ld_shlibs_F77=no
16146       fi
16147       ;;
16148     esac
16149
16150     if test "$ld_shlibs_F77" = no; then
16151       runpath_var=
16152       hardcode_libdir_flag_spec_F77=
16153       export_dynamic_flag_spec_F77=
16154       whole_archive_flag_spec_F77=
16155     fi
16156   else
16157     # PORTME fill in a description of your system's linker (not GNU ld)
16158     case $host_os in
16159     aix3*)
16160       allow_undefined_flag_F77=unsupported
16161       always_export_symbols_F77=yes
16162       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16163       # Note: this linker hardcodes the directories in LIBPATH if there
16164       # are no directories specified by -L.
16165       hardcode_minus_L_F77=yes
16166       if test "$GCC" = yes && test -z "$link_static_flag"; then
16167         # Neither direct hardcoding nor static linking is supported with a
16168         # broken collect2.
16169         hardcode_direct_F77=unsupported
16170       fi
16171       ;;
16172
16173     aix4* | aix5*)
16174       if test "$host_cpu" = ia64; then
16175         # On IA64, the linker does run time linking by default, so we don't
16176         # have to do anything special.
16177         aix_use_runtimelinking=no
16178         exp_sym_flag='-Bexport'
16179         no_entry_flag=""
16180       else
16181         # If we're using GNU nm, then we don't want the "-C" option.
16182         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16183         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16184           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16185         else
16186           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16187         fi
16188         aix_use_runtimelinking=no
16189
16190         # Test if we are trying to use run time linking or normal
16191         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16192         # need to do runtime linking.
16193         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16194           for ld_flag in $LDFLAGS; do
16195           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16196             aix_use_runtimelinking=yes
16197             break
16198           fi
16199           done
16200         esac
16201
16202         exp_sym_flag='-bexport'
16203         no_entry_flag='-bnoentry'
16204       fi
16205
16206       # When large executables or shared objects are built, AIX ld can
16207       # have problems creating the table of contents.  If linking a library
16208       # or program results in "error TOC overflow" add -mminimal-toc to
16209       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16210       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16211
16212       archive_cmds_F77=''
16213       hardcode_direct_F77=yes
16214       hardcode_libdir_separator_F77=':'
16215       link_all_deplibs_F77=yes
16216
16217       if test "$GCC" = yes; then
16218         case $host_os in aix4.[012]|aix4.[012].*)
16219         # We only want to do this on AIX 4.2 and lower, the check
16220         # below for broken collect2 doesn't work under 4.3+
16221           collect2name=`${CC} -print-prog-name=collect2`
16222           if test -f "$collect2name" && \
16223            strings "$collect2name" | grep resolve_lib_name >/dev/null
16224           then
16225           # We have reworked collect2
16226           hardcode_direct_F77=yes
16227           else
16228           # We have old collect2
16229           hardcode_direct_F77=unsupported
16230           # It fails to find uninstalled libraries when the uninstalled
16231           # path is not listed in the libpath.  Setting hardcode_minus_L
16232           # to unsupported forces relinking
16233           hardcode_minus_L_F77=yes
16234           hardcode_libdir_flag_spec_F77='-L$libdir'
16235           hardcode_libdir_separator_F77=
16236           fi
16237         esac
16238         shared_flag='-shared'
16239         if test "$aix_use_runtimelinking" = yes; then
16240           shared_flag="$shared_flag "'${wl}-G'
16241         fi
16242       else
16243         # not using gcc
16244         if test "$host_cpu" = ia64; then
16245         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16246         # chokes on -Wl,-G. The following line is correct:
16247           shared_flag='-G'
16248         else
16249         if test "$aix_use_runtimelinking" = yes; then
16250             shared_flag='${wl}-G'
16251           else
16252             shared_flag='${wl}-bM:SRE'
16253         fi
16254         fi
16255       fi
16256
16257       # It seems that -bexpall does not export symbols beginning with
16258       # underscore (_), so it is better to generate a list of symbols to export.
16259       always_export_symbols_F77=yes
16260       if test "$aix_use_runtimelinking" = yes; then
16261         # Warning - without using the other runtime loading flags (-brtl),
16262         # -berok will link without error, but may produce a broken library.
16263         allow_undefined_flag_F77='-berok'
16264        # Determine the default libpath from the value encoded in an empty executable.
16265        cat >conftest.$ac_ext <<_ACEOF
16266       program main
16267
16268       end
16269 _ACEOF
16270 rm -f conftest.$ac_objext conftest$ac_exeext
16271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16272   (eval $ac_link) 2>conftest.er1
16273   ac_status=$?
16274   grep -v '^ *+' conftest.er1 >conftest.err
16275   rm -f conftest.er1
16276   cat conftest.err >&5
16277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278   (exit $ac_status); } &&
16279          { ac_try='test -z "$ac_f77_werror_flag"
16280                          || test ! -s conftest.err'
16281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16282   (eval $ac_try) 2>&5
16283   ac_status=$?
16284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285   (exit $ac_status); }; } &&
16286          { ac_try='test -s conftest$ac_exeext'
16287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16288   (eval $ac_try) 2>&5
16289   ac_status=$?
16290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291   (exit $ac_status); }; }; then
16292
16293 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16294 }'`
16295 # Check for a 64-bit object if we didn't find anything.
16296 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16297 }'`; fi
16298 else
16299   echo "$as_me: failed program was:" >&5
16300 sed 's/^/| /' conftest.$ac_ext >&5
16301
16302 fi
16303 rm -f conftest.err conftest.$ac_objext \
16304       conftest$ac_exeext conftest.$ac_ext
16305 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16306
16307        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16308         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16309        else
16310         if test "$host_cpu" = ia64; then
16311           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16312           allow_undefined_flag_F77="-z nodefs"
16313           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16314         else
16315          # Determine the default libpath from the value encoded in an empty executable.
16316          cat >conftest.$ac_ext <<_ACEOF
16317       program main
16318
16319       end
16320 _ACEOF
16321 rm -f conftest.$ac_objext conftest$ac_exeext
16322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16323   (eval $ac_link) 2>conftest.er1
16324   ac_status=$?
16325   grep -v '^ *+' conftest.er1 >conftest.err
16326   rm -f conftest.er1
16327   cat conftest.err >&5
16328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329   (exit $ac_status); } &&
16330          { ac_try='test -z "$ac_f77_werror_flag"
16331                          || test ! -s conftest.err'
16332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333   (eval $ac_try) 2>&5
16334   ac_status=$?
16335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336   (exit $ac_status); }; } &&
16337          { ac_try='test -s conftest$ac_exeext'
16338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339   (eval $ac_try) 2>&5
16340   ac_status=$?
16341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342   (exit $ac_status); }; }; then
16343
16344 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16345 }'`
16346 # Check for a 64-bit object if we didn't find anything.
16347 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16348 }'`; fi
16349 else
16350   echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16352
16353 fi
16354 rm -f conftest.err conftest.$ac_objext \
16355       conftest$ac_exeext conftest.$ac_ext
16356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16357
16358          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16359           # Warning - without using the other run time loading flags,
16360           # -berok will link without error, but may produce a broken library.
16361           no_undefined_flag_F77=' ${wl}-bernotok'
16362           allow_undefined_flag_F77=' ${wl}-berok'
16363           # -bexpall does not export symbols beginning with underscore (_)
16364           always_export_symbols_F77=yes
16365           # Exported symbols can be pulled into shared objects from archives
16366           whole_archive_flag_spec_F77=' '
16367           archive_cmds_need_lc_F77=yes
16368           # This is similar to how AIX traditionally builds it's shared libraries.
16369           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16370         fi
16371       fi
16372       ;;
16373
16374     amigaos*)
16375       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16376       hardcode_libdir_flag_spec_F77='-L$libdir'
16377       hardcode_minus_L_F77=yes
16378       # see comment about different semantics on the GNU ld section
16379       ld_shlibs_F77=no
16380       ;;
16381
16382     bsdi[45]*)
16383       export_dynamic_flag_spec_F77=-rdynamic
16384       ;;
16385
16386     cygwin* | mingw* | pw32*)
16387       # When not using gcc, we currently assume that we are using
16388       # Microsoft Visual C++.
16389       # hardcode_libdir_flag_spec is actually meaningless, as there is
16390       # no search path for DLLs.
16391       hardcode_libdir_flag_spec_F77=' '
16392       allow_undefined_flag_F77=unsupported
16393       # Tell ltmain to make .lib files, not .a files.
16394       libext=lib
16395       # Tell ltmain to make .dll files, not .so files.
16396       shrext_cmds=".dll"
16397       # FIXME: Setting linknames here is a bad hack.
16398       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16399       # The linker will automatically build a .lib file if we build a DLL.
16400       old_archive_From_new_cmds_F77='true'
16401       # FIXME: Should let the user specify the lib program.
16402       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16403       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16404       enable_shared_with_static_runtimes_F77=yes
16405       ;;
16406
16407     darwin* | rhapsody*)
16408       case "$host_os" in
16409         rhapsody* | darwin1.[012])
16410          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16411          ;;
16412        *) # Darwin 1.3 on
16413          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16414            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16415          else
16416            case ${MACOSX_DEPLOYMENT_TARGET} in
16417              10.[012])
16418                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16419                ;;
16420              10.*)
16421                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16422                ;;
16423            esac
16424          fi
16425          ;;
16426       esac
16427       archive_cmds_need_lc_F77=no
16428       hardcode_direct_F77=no
16429       hardcode_automatic_F77=yes
16430       hardcode_shlibpath_var_F77=unsupported
16431       whole_archive_flag_spec_F77=''
16432       link_all_deplibs_F77=yes
16433     if test "$GCC" = yes ; then
16434         output_verbose_link_cmd='echo'
16435         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16436       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16437       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16438       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16439       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16440     else
16441       case $cc_basename in
16442         xlc*)
16443          output_verbose_link_cmd='echo'
16444          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16445          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16446           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16447          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16448           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16449           ;;
16450        *)
16451          ld_shlibs_F77=no
16452           ;;
16453       esac
16454     fi
16455       ;;
16456
16457     dgux*)
16458       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16459       hardcode_libdir_flag_spec_F77='-L$libdir'
16460       hardcode_shlibpath_var_F77=no
16461       ;;
16462
16463     freebsd1*)
16464       ld_shlibs_F77=no
16465       ;;
16466
16467     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16468     # support.  Future versions do this automatically, but an explicit c++rt0.o
16469     # does not break anything, and helps significantly (at the cost of a little
16470     # extra space).
16471     freebsd2.2*)
16472       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16473       hardcode_libdir_flag_spec_F77='-R$libdir'
16474       hardcode_direct_F77=yes
16475       hardcode_shlibpath_var_F77=no
16476       ;;
16477
16478     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16479     freebsd2*)
16480       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16481       hardcode_direct_F77=yes
16482       hardcode_minus_L_F77=yes
16483       hardcode_shlibpath_var_F77=no
16484       ;;
16485
16486     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16487     freebsd* | kfreebsd*-gnu | dragonfly*)
16488       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16489       hardcode_libdir_flag_spec_F77='-R$libdir'
16490       hardcode_direct_F77=yes
16491       hardcode_shlibpath_var_F77=no
16492       ;;
16493
16494     hpux9*)
16495       if test "$GCC" = yes; then
16496         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16497       else
16498         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16499       fi
16500       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16501       hardcode_libdir_separator_F77=:
16502       hardcode_direct_F77=yes
16503
16504       # hardcode_minus_L: Not really in the search PATH,
16505       # but as the default location of the library.
16506       hardcode_minus_L_F77=yes
16507       export_dynamic_flag_spec_F77='${wl}-E'
16508       ;;
16509
16510     hpux10* | hpux11*)
16511       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16512         case "$host_cpu" in
16513         hppa*64*|ia64*)
16514           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16515           ;;
16516         *)
16517           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16518           ;;
16519         esac
16520       else
16521         case "$host_cpu" in
16522         hppa*64*|ia64*)
16523           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16524           ;;
16525         *)
16526           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16527           ;;
16528         esac
16529       fi
16530       if test "$with_gnu_ld" = no; then
16531         case "$host_cpu" in
16532         hppa*64*)
16533           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16534           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16535           hardcode_libdir_separator_F77=:
16536           hardcode_direct_F77=no
16537           hardcode_shlibpath_var_F77=no
16538           ;;
16539         ia64*)
16540           hardcode_libdir_flag_spec_F77='-L$libdir'
16541           hardcode_direct_F77=no
16542           hardcode_shlibpath_var_F77=no
16543
16544           # hardcode_minus_L: Not really in the search PATH,
16545           # but as the default location of the library.
16546           hardcode_minus_L_F77=yes
16547           ;;
16548         *)
16549           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16550           hardcode_libdir_separator_F77=:
16551           hardcode_direct_F77=yes
16552           export_dynamic_flag_spec_F77='${wl}-E'
16553
16554           # hardcode_minus_L: Not really in the search PATH,
16555           # but as the default location of the library.
16556           hardcode_minus_L_F77=yes
16557           ;;
16558         esac
16559       fi
16560       ;;
16561
16562     irix5* | irix6* | nonstopux*)
16563       if test "$GCC" = yes; then
16564         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16565       else
16566         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16567         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16568       fi
16569       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16570       hardcode_libdir_separator_F77=:
16571       link_all_deplibs_F77=yes
16572       ;;
16573
16574     netbsd*)
16575       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16576         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16577       else
16578         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16579       fi
16580       hardcode_libdir_flag_spec_F77='-R$libdir'
16581       hardcode_direct_F77=yes
16582       hardcode_shlibpath_var_F77=no
16583       ;;
16584
16585     newsos6)
16586       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16587       hardcode_direct_F77=yes
16588       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16589       hardcode_libdir_separator_F77=:
16590       hardcode_shlibpath_var_F77=no
16591       ;;
16592
16593     openbsd*)
16594       hardcode_direct_F77=yes
16595       hardcode_shlibpath_var_F77=no
16596       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16597         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16598         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16599         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16600         export_dynamic_flag_spec_F77='${wl}-E'
16601       else
16602        case $host_os in
16603          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16604            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16605            hardcode_libdir_flag_spec_F77='-R$libdir'
16606            ;;
16607          *)
16608            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16609            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16610            ;;
16611        esac
16612       fi
16613       ;;
16614
16615     os2*)
16616       hardcode_libdir_flag_spec_F77='-L$libdir'
16617       hardcode_minus_L_F77=yes
16618       allow_undefined_flag_F77=unsupported
16619       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16620       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16621       ;;
16622
16623     osf3*)
16624       if test "$GCC" = yes; then
16625         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16626         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16627       else
16628         allow_undefined_flag_F77=' -expect_unresolved \*'
16629         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16630       fi
16631       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16632       hardcode_libdir_separator_F77=:
16633       ;;
16634
16635     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16636       if test "$GCC" = yes; then
16637         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16638         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16639         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16640       else
16641         allow_undefined_flag_F77=' -expect_unresolved \*'
16642         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16643         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16644         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16645
16646         # Both c and cxx compiler support -rpath directly
16647         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16648       fi
16649       hardcode_libdir_separator_F77=:
16650       ;;
16651
16652     sco3.2v5*)
16653       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16654       hardcode_shlibpath_var_F77=no
16655       export_dynamic_flag_spec_F77='${wl}-Bexport'
16656       runpath_var=LD_RUN_PATH
16657       hardcode_runpath_var=yes
16658       ;;
16659
16660     solaris*)
16661       no_undefined_flag_F77=' -z text'
16662       if test "$GCC" = yes; then
16663         wlarc='${wl}'
16664         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16665         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16666           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16667       else
16668         wlarc=''
16669         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16670         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16671         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16672       fi
16673       hardcode_libdir_flag_spec_F77='-R$libdir'
16674       hardcode_shlibpath_var_F77=no
16675       case $host_os in
16676       solaris2.[0-5] | solaris2.[0-5].*) ;;
16677       *)
16678         # The compiler driver will combine linker options so we
16679         # cannot just pass the convience library names through
16680         # without $wl, iff we do not link with $LD.
16681         # Luckily, gcc supports the same syntax we need for Sun Studio.
16682         # Supported since Solaris 2.6 (maybe 2.5.1?)
16683         case $wlarc in
16684         '')
16685           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16686         *)
16687           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16688         esac ;;
16689       esac
16690       link_all_deplibs_F77=yes
16691       ;;
16692
16693     sunos4*)
16694       if test "x$host_vendor" = xsequent; then
16695         # Use $CC to link under sequent, because it throws in some extra .o
16696         # files that make .init and .fini sections work.
16697         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16698       else
16699         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16700       fi
16701       hardcode_libdir_flag_spec_F77='-L$libdir'
16702       hardcode_direct_F77=yes
16703       hardcode_minus_L_F77=yes
16704       hardcode_shlibpath_var_F77=no
16705       ;;
16706
16707     sysv4)
16708       case $host_vendor in
16709         sni)
16710           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16711           hardcode_direct_F77=yes # is this really true???
16712         ;;
16713         siemens)
16714           ## LD is ld it makes a PLAMLIB
16715           ## CC just makes a GrossModule.
16716           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16717           reload_cmds_F77='$CC -r -o $output$reload_objs'
16718           hardcode_direct_F77=no
16719         ;;
16720         motorola)
16721           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16722           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16723         ;;
16724       esac
16725       runpath_var='LD_RUN_PATH'
16726       hardcode_shlibpath_var_F77=no
16727       ;;
16728
16729     sysv4.3*)
16730       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16731       hardcode_shlibpath_var_F77=no
16732       export_dynamic_flag_spec_F77='-Bexport'
16733       ;;
16734
16735     sysv4*MP*)
16736       if test -d /usr/nec; then
16737         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16738         hardcode_shlibpath_var_F77=no
16739         runpath_var=LD_RUN_PATH
16740         hardcode_runpath_var=yes
16741         ld_shlibs_F77=yes
16742       fi
16743       ;;
16744
16745     sysv4.2uw2*)
16746       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16747       hardcode_direct_F77=yes
16748       hardcode_minus_L_F77=no
16749       hardcode_shlibpath_var_F77=no
16750       hardcode_runpath_var=yes
16751       runpath_var=LD_RUN_PATH
16752       ;;
16753
16754    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16755       no_undefined_flag_F77='${wl}-z ${wl}text'
16756       if test "$GCC" = yes; then
16757         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16758       else
16759         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16760       fi
16761       runpath_var='LD_RUN_PATH'
16762       hardcode_shlibpath_var_F77=no
16763       ;;
16764
16765     sysv5*)
16766       no_undefined_flag_F77=' -z text'
16767       # $CC -shared without GNU ld will not create a library from C++
16768       # object files and a static libstdc++, better avoid it by now
16769       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16770       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16771                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16772       hardcode_libdir_flag_spec_F77=
16773       hardcode_shlibpath_var_F77=no
16774       runpath_var='LD_RUN_PATH'
16775       ;;
16776
16777     uts4*)
16778       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16779       hardcode_libdir_flag_spec_F77='-L$libdir'
16780       hardcode_shlibpath_var_F77=no
16781       ;;
16782
16783     *)
16784       ld_shlibs_F77=no
16785       ;;
16786     esac
16787   fi
16788
16789 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16790 echo "${ECHO_T}$ld_shlibs_F77" >&6
16791 test "$ld_shlibs_F77" = no && can_build_shared=no
16792
16793 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16794 if test "$GCC" = yes; then
16795   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16796 fi
16797
16798 #
16799 # Do we need to explicitly link libc?
16800 #
16801 case "x$archive_cmds_need_lc_F77" in
16802 x|xyes)
16803   # Assume -lc should be added
16804   archive_cmds_need_lc_F77=yes
16805
16806   if test "$enable_shared" = yes && test "$GCC" = yes; then
16807     case $archive_cmds_F77 in
16808     *'~'*)
16809       # FIXME: we may have to deal with multi-command sequences.
16810       ;;
16811     '$CC '*)
16812       # Test whether the compiler implicitly links with -lc since on some
16813       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16814       # to ld, don't add -lc before -lgcc.
16815       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16816 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16817       $rm conftest*
16818       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16819
16820       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16821   (eval $ac_compile) 2>&5
16822   ac_status=$?
16823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824   (exit $ac_status); } 2>conftest.err; then
16825         soname=conftest
16826         lib=conftest
16827         libobjs=conftest.$ac_objext
16828         deplibs=
16829         wl=$lt_prog_compiler_wl_F77
16830         compiler_flags=-v
16831         linker_flags=-v
16832         verstring=
16833         output_objdir=.
16834         libname=conftest
16835         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16836         allow_undefined_flag_F77=
16837         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16838   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16839   ac_status=$?
16840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841   (exit $ac_status); }
16842         then
16843           archive_cmds_need_lc_F77=no
16844         else
16845           archive_cmds_need_lc_F77=yes
16846         fi
16847         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16848       else
16849         cat conftest.err 1>&5
16850       fi
16851       $rm conftest*
16852       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16853 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16854       ;;
16855     esac
16856   fi
16857   ;;
16858 esac
16859
16860 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16861 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16862 library_names_spec=
16863 libname_spec='lib$name'
16864 soname_spec=
16865 shrext_cmds=".so"
16866 postinstall_cmds=
16867 postuninstall_cmds=
16868 finish_cmds=
16869 finish_eval=
16870 shlibpath_var=
16871 shlibpath_overrides_runpath=unknown
16872 version_type=none
16873 dynamic_linker="$host_os ld.so"
16874 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16875 if test "$GCC" = yes; then
16876   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16877   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16878     # if the path contains ";" then we assume it to be the separator
16879     # otherwise default to the standard path separator (i.e. ":") - it is
16880     # assumed that no part of a normal pathname contains ";" but that should
16881     # okay in the real world where ";" in dirpaths is itself problematic.
16882     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16883   else
16884     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16885   fi
16886 else
16887   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16888 fi
16889 need_lib_prefix=unknown
16890 hardcode_into_libs=no
16891
16892 # when you set need_version to no, make sure it does not cause -set_version
16893 # flags to be left without arguments
16894 need_version=unknown
16895
16896 case $host_os in
16897 aix3*)
16898   version_type=linux
16899   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16900   shlibpath_var=LIBPATH
16901
16902   # AIX 3 has no versioning support, so we append a major version to the name.
16903   soname_spec='${libname}${release}${shared_ext}$major'
16904   ;;
16905
16906 aix4* | aix5*)
16907   version_type=linux
16908   need_lib_prefix=no
16909   need_version=no
16910   hardcode_into_libs=yes
16911   if test "$host_cpu" = ia64; then
16912     # AIX 5 supports IA64
16913     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16914     shlibpath_var=LD_LIBRARY_PATH
16915   else
16916     # With GCC up to 2.95.x, collect2 would create an import file
16917     # for dependence libraries.  The import file would start with
16918     # the line `#! .'.  This would cause the generated library to
16919     # depend on `.', always an invalid library.  This was fixed in
16920     # development snapshots of GCC prior to 3.0.
16921     case $host_os in
16922       aix4 | aix4.[01] | aix4.[01].*)
16923       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16924            echo ' yes '
16925            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16926         :
16927       else
16928         can_build_shared=no
16929       fi
16930       ;;
16931     esac
16932     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16933     # soname into executable. Probably we can add versioning support to
16934     # collect2, so additional links can be useful in future.
16935     if test "$aix_use_runtimelinking" = yes; then
16936       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16937       # instead of lib<name>.a to let people know that these are not
16938       # typical AIX shared libraries.
16939       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16940     else
16941       # We preserve .a as extension for shared libraries through AIX4.2
16942       # and later when we are not doing run time linking.
16943       library_names_spec='${libname}${release}.a $libname.a'
16944       soname_spec='${libname}${release}${shared_ext}$major'
16945     fi
16946     shlibpath_var=LIBPATH
16947   fi
16948   ;;
16949
16950 amigaos*)
16951   library_names_spec='$libname.ixlibrary $libname.a'
16952   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16953   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16954   ;;
16955
16956 beos*)
16957   library_names_spec='${libname}${shared_ext}'
16958   dynamic_linker="$host_os ld.so"
16959   shlibpath_var=LIBRARY_PATH
16960   ;;
16961
16962 bsdi[45]*)
16963   version_type=linux
16964   need_version=no
16965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16966   soname_spec='${libname}${release}${shared_ext}$major'
16967   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16968   shlibpath_var=LD_LIBRARY_PATH
16969   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16970   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16971   # the default ld.so.conf also contains /usr/contrib/lib and
16972   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16973   # libtool to hard-code these into programs
16974   ;;
16975
16976 cygwin* | mingw* | pw32*)
16977   version_type=windows
16978   shrext_cmds=".dll"
16979   need_version=no
16980   need_lib_prefix=no
16981
16982   case $GCC,$host_os in
16983   yes,cygwin* | yes,mingw* | yes,pw32*)
16984     library_names_spec='$libname.dll.a'
16985     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16986     postinstall_cmds='base_file=`basename \${file}`~
16987       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16988       dldir=$destdir/`dirname \$dlpath`~
16989       test -d \$dldir || mkdir -p \$dldir~
16990       $install_prog $dir/$dlname \$dldir/$dlname'
16991     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16992       dlpath=$dir/\$dldll~
16993        $rm \$dlpath'
16994     shlibpath_overrides_runpath=yes
16995
16996     case $host_os in
16997     cygwin*)
16998       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16999       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17000       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17001       ;;
17002     mingw*)
17003       # MinGW DLLs use traditional 'lib' prefix
17004       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17005       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17006       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17007         # It is most probably a Windows format PATH printed by
17008         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17009         # path with ; separators, and with drive letters. We can handle the
17010         # drive letters (cygwin fileutils understands them), so leave them,
17011         # especially as we might pass files found there to a mingw objdump,
17012         # which wouldn't understand a cygwinified path. Ahh.
17013         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17014       else
17015         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17016       fi
17017       ;;
17018     pw32*)
17019       # pw32 DLLs use 'pw' prefix rather than 'lib'
17020       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17021       ;;
17022     esac
17023     ;;
17024
17025   *)
17026     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17027     ;;
17028   esac
17029   dynamic_linker='Win32 ld.exe'
17030   # FIXME: first we should search . and the directory the executable is in
17031   shlibpath_var=PATH
17032   ;;
17033
17034 darwin* | rhapsody*)
17035   dynamic_linker="$host_os dyld"
17036   version_type=darwin
17037   need_lib_prefix=no
17038   need_version=no
17039   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17040   soname_spec='${libname}${release}${major}$shared_ext'
17041   shlibpath_overrides_runpath=yes
17042   shlibpath_var=DYLD_LIBRARY_PATH
17043   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17044   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17045   if test "$GCC" = yes; then
17046     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17047   else
17048     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17049   fi
17050   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17051   ;;
17052
17053 dgux*)
17054   version_type=linux
17055   need_lib_prefix=no
17056   need_version=no
17057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17058   soname_spec='${libname}${release}${shared_ext}$major'
17059   shlibpath_var=LD_LIBRARY_PATH
17060   ;;
17061
17062 freebsd1*)
17063   dynamic_linker=no
17064   ;;
17065
17066 kfreebsd*-gnu)
17067   version_type=linux
17068   need_lib_prefix=no
17069   need_version=no
17070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17071   soname_spec='${libname}${release}${shared_ext}$major'
17072   shlibpath_var=LD_LIBRARY_PATH
17073   shlibpath_overrides_runpath=no
17074   hardcode_into_libs=yes
17075   dynamic_linker='GNU ld.so'
17076   ;;
17077
17078 freebsd* | dragonfly*)
17079   # DragonFly does not have aout.  When/if they implement a new
17080   # versioning mechanism, adjust this.
17081   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17082   version_type=freebsd-$objformat
17083   case $version_type in
17084     freebsd-elf*)
17085       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17086       need_version=no
17087       need_lib_prefix=no
17088       ;;
17089     freebsd-*)
17090       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17091       need_version=yes
17092       ;;
17093   esac
17094   shlibpath_var=LD_LIBRARY_PATH
17095   case $host_os in
17096   freebsd2*)
17097     shlibpath_overrides_runpath=yes
17098     ;;
17099   freebsd3.[01]* | freebsdelf3.[01]*)
17100     shlibpath_overrides_runpath=yes
17101     hardcode_into_libs=yes
17102     ;;
17103   *) # from 3.2 on
17104     shlibpath_overrides_runpath=no
17105     hardcode_into_libs=yes
17106     ;;
17107   esac
17108   ;;
17109
17110 gnu*)
17111   version_type=linux
17112   need_lib_prefix=no
17113   need_version=no
17114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17115   soname_spec='${libname}${release}${shared_ext}$major'
17116   shlibpath_var=LD_LIBRARY_PATH
17117   hardcode_into_libs=yes
17118   ;;
17119
17120 hpux9* | hpux10* | hpux11*)
17121   # Give a soname corresponding to the major version so that dld.sl refuses to
17122   # link against other versions.
17123   version_type=sunos
17124   need_lib_prefix=no
17125   need_version=no
17126   case "$host_cpu" in
17127   ia64*)
17128     shrext_cmds='.so'
17129     hardcode_into_libs=yes
17130     dynamic_linker="$host_os dld.so"
17131     shlibpath_var=LD_LIBRARY_PATH
17132     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17133     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17134     soname_spec='${libname}${release}${shared_ext}$major'
17135     if test "X$HPUX_IA64_MODE" = X32; then
17136       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17137     else
17138       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17139     fi
17140     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17141     ;;
17142    hppa*64*)
17143      shrext_cmds='.sl'
17144      hardcode_into_libs=yes
17145      dynamic_linker="$host_os dld.sl"
17146      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17147      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17148      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149      soname_spec='${libname}${release}${shared_ext}$major'
17150      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17151      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17152      ;;
17153    *)
17154     shrext_cmds='.sl'
17155     dynamic_linker="$host_os dld.sl"
17156     shlibpath_var=SHLIB_PATH
17157     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17158     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17159     soname_spec='${libname}${release}${shared_ext}$major'
17160     ;;
17161   esac
17162   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17163   postinstall_cmds='chmod 555 $lib'
17164   ;;
17165
17166 irix5* | irix6* | nonstopux*)
17167   case $host_os in
17168     nonstopux*) version_type=nonstopux ;;
17169     *)
17170         if test "$lt_cv_prog_gnu_ld" = yes; then
17171                 version_type=linux
17172         else
17173                 version_type=irix
17174         fi ;;
17175   esac
17176   need_lib_prefix=no
17177   need_version=no
17178   soname_spec='${libname}${release}${shared_ext}$major'
17179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17180   case $host_os in
17181   irix5* | nonstopux*)
17182     libsuff= shlibsuff=
17183     ;;
17184   *)
17185     case $LD in # libtool.m4 will add one of these switches to LD
17186     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17187       libsuff= shlibsuff= libmagic=32-bit;;
17188     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17189       libsuff=32 shlibsuff=N32 libmagic=N32;;
17190     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17191       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17192     *) libsuff= shlibsuff= libmagic=never-match;;
17193     esac
17194     ;;
17195   esac
17196   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17197   shlibpath_overrides_runpath=no
17198   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17199   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17200   hardcode_into_libs=yes
17201   ;;
17202
17203 # No shared lib support for Linux oldld, aout, or coff.
17204 linux*oldld* | linux*aout* | linux*coff*)
17205   dynamic_linker=no
17206   ;;
17207
17208 # This must be Linux ELF.
17209 linux*)
17210   version_type=linux
17211   need_lib_prefix=no
17212   need_version=no
17213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17214   soname_spec='${libname}${release}${shared_ext}$major'
17215   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17216   shlibpath_var=LD_LIBRARY_PATH
17217   shlibpath_overrides_runpath=no
17218   # This implies no fast_install, which is unacceptable.
17219   # Some rework will be needed to allow for fast_install
17220   # before this can be enabled.
17221   hardcode_into_libs=yes
17222
17223   # Append ld.so.conf contents to the search path
17224   if test -f /etc/ld.so.conf; then
17225     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17226     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17227   fi
17228
17229   # We used to test for /lib/ld.so.1 and disable shared libraries on
17230   # powerpc, because MkLinux only supported shared libraries with the
17231   # GNU dynamic linker.  Since this was broken with cross compilers,
17232   # most powerpc-linux boxes support dynamic linking these days and
17233   # people can always --disable-shared, the test was removed, and we
17234   # assume the GNU/Linux dynamic linker is in use.
17235   dynamic_linker='GNU/Linux ld.so'
17236   ;;
17237
17238 knetbsd*-gnu)
17239   version_type=linux
17240   need_lib_prefix=no
17241   need_version=no
17242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17243   soname_spec='${libname}${release}${shared_ext}$major'
17244   shlibpath_var=LD_LIBRARY_PATH
17245   shlibpath_overrides_runpath=no
17246   hardcode_into_libs=yes
17247   dynamic_linker='GNU ld.so'
17248   ;;
17249
17250 netbsd*)
17251   version_type=sunos
17252   need_lib_prefix=no
17253   need_version=no
17254   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17255     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17256     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17257     dynamic_linker='NetBSD (a.out) ld.so'
17258   else
17259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17260     soname_spec='${libname}${release}${shared_ext}$major'
17261     dynamic_linker='NetBSD ld.elf_so'
17262   fi
17263   shlibpath_var=LD_LIBRARY_PATH
17264   shlibpath_overrides_runpath=yes
17265   hardcode_into_libs=yes
17266   ;;
17267
17268 newsos6)
17269   version_type=linux
17270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17271   shlibpath_var=LD_LIBRARY_PATH
17272   shlibpath_overrides_runpath=yes
17273   ;;
17274
17275 nto-qnx*)
17276   version_type=linux
17277   need_lib_prefix=no
17278   need_version=no
17279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17280   soname_spec='${libname}${release}${shared_ext}$major'
17281   shlibpath_var=LD_LIBRARY_PATH
17282   shlibpath_overrides_runpath=yes
17283   ;;
17284
17285 openbsd*)
17286   version_type=sunos
17287   need_lib_prefix=no
17288   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17289   case $host_os in
17290     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17291     *)                         need_version=no  ;;
17292   esac
17293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17294   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17295   shlibpath_var=LD_LIBRARY_PATH
17296   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17297     case $host_os in
17298       openbsd2.[89] | openbsd2.[89].*)
17299         shlibpath_overrides_runpath=no
17300         ;;
17301       *)
17302         shlibpath_overrides_runpath=yes
17303         ;;
17304       esac
17305   else
17306     shlibpath_overrides_runpath=yes
17307   fi
17308   ;;
17309
17310 os2*)
17311   libname_spec='$name'
17312   shrext_cmds=".dll"
17313   need_lib_prefix=no
17314   library_names_spec='$libname${shared_ext} $libname.a'
17315   dynamic_linker='OS/2 ld.exe'
17316   shlibpath_var=LIBPATH
17317   ;;
17318
17319 osf3* | osf4* | osf5*)
17320   version_type=osf
17321   need_lib_prefix=no
17322   need_version=no
17323   soname_spec='${libname}${release}${shared_ext}$major'
17324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17325   shlibpath_var=LD_LIBRARY_PATH
17326   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17327   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17328   ;;
17329
17330 sco3.2v5*)
17331   version_type=osf
17332   soname_spec='${libname}${release}${shared_ext}$major'
17333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17334   shlibpath_var=LD_LIBRARY_PATH
17335   ;;
17336
17337 solaris*)
17338   version_type=linux
17339   need_lib_prefix=no
17340   need_version=no
17341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17342   soname_spec='${libname}${release}${shared_ext}$major'
17343   shlibpath_var=LD_LIBRARY_PATH
17344   shlibpath_overrides_runpath=yes
17345   hardcode_into_libs=yes
17346   # ldd complains unless libraries are executable
17347   postinstall_cmds='chmod +x $lib'
17348   ;;
17349
17350 sunos4*)
17351   version_type=sunos
17352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17353   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17354   shlibpath_var=LD_LIBRARY_PATH
17355   shlibpath_overrides_runpath=yes
17356   if test "$with_gnu_ld" = yes; then
17357     need_lib_prefix=no
17358   fi
17359   need_version=yes
17360   ;;
17361
17362 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17363   version_type=linux
17364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17365   soname_spec='${libname}${release}${shared_ext}$major'
17366   shlibpath_var=LD_LIBRARY_PATH
17367   case $host_vendor in
17368     sni)
17369       shlibpath_overrides_runpath=no
17370       need_lib_prefix=no
17371       export_dynamic_flag_spec='${wl}-Blargedynsym'
17372       runpath_var=LD_RUN_PATH
17373       ;;
17374     siemens)
17375       need_lib_prefix=no
17376       ;;
17377     motorola)
17378       need_lib_prefix=no
17379       need_version=no
17380       shlibpath_overrides_runpath=no
17381       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17382       ;;
17383   esac
17384   ;;
17385
17386 sysv4*MP*)
17387   if test -d /usr/nec ;then
17388     version_type=linux
17389     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17390     soname_spec='$libname${shared_ext}.$major'
17391     shlibpath_var=LD_LIBRARY_PATH
17392   fi
17393   ;;
17394
17395 uts4*)
17396   version_type=linux
17397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17398   soname_spec='${libname}${release}${shared_ext}$major'
17399   shlibpath_var=LD_LIBRARY_PATH
17400   ;;
17401
17402 *)
17403   dynamic_linker=no
17404   ;;
17405 esac
17406 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17407 echo "${ECHO_T}$dynamic_linker" >&6
17408 test "$dynamic_linker" = no && can_build_shared=no
17409
17410 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17411 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17412 hardcode_action_F77=
17413 if test -n "$hardcode_libdir_flag_spec_F77" || \
17414    test -n "$runpath_var_F77" || \
17415    test "X$hardcode_automatic_F77" = "Xyes" ; then
17416
17417   # We can hardcode non-existant directories.
17418   if test "$hardcode_direct_F77" != no &&
17419      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17420      # have to relink, otherwise we might link with an installed library
17421      # when we should be linking with a yet-to-be-installed one
17422      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17423      test "$hardcode_minus_L_F77" != no; then
17424     # Linking always hardcodes the temporary library directory.
17425     hardcode_action_F77=relink
17426   else
17427     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17428     hardcode_action_F77=immediate
17429   fi
17430 else
17431   # We cannot hardcode anything, or else we can only hardcode existing
17432   # directories.
17433   hardcode_action_F77=unsupported
17434 fi
17435 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17436 echo "${ECHO_T}$hardcode_action_F77" >&6
17437
17438 if test "$hardcode_action_F77" = relink; then
17439   # Fast installation is not supported
17440   enable_fast_install=no
17441 elif test "$shlibpath_overrides_runpath" = yes ||
17442      test "$enable_shared" = no; then
17443   # Fast installation is not necessary
17444   enable_fast_install=needless
17445 fi
17446
17447 striplib=
17448 old_striplib=
17449 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17450 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17451 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17452   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17453   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17454   echo "$as_me:$LINENO: result: yes" >&5
17455 echo "${ECHO_T}yes" >&6
17456 else
17457 # FIXME - insert some real tests, host_os isn't really good enough
17458   case $host_os in
17459    darwin*)
17460        if test -n "$STRIP" ; then
17461          striplib="$STRIP -x"
17462          echo "$as_me:$LINENO: result: yes" >&5
17463 echo "${ECHO_T}yes" >&6
17464        else
17465   echo "$as_me:$LINENO: result: no" >&5
17466 echo "${ECHO_T}no" >&6
17467 fi
17468        ;;
17469    *)
17470   echo "$as_me:$LINENO: result: no" >&5
17471 echo "${ECHO_T}no" >&6
17472     ;;
17473   esac
17474 fi
17475
17476
17477
17478 # The else clause should only fire when bootstrapping the
17479 # libtool distribution, otherwise you forgot to ship ltmain.sh
17480 # with your package, and you will get complaints that there are
17481 # no rules to generate ltmain.sh.
17482 if test -f "$ltmain"; then
17483   # See if we are running on zsh, and set the options which allow our commands through
17484   # without removal of \ escapes.
17485   if test -n "${ZSH_VERSION+set}" ; then
17486     setopt NO_GLOB_SUBST
17487   fi
17488   # Now quote all the things that may contain metacharacters while being
17489   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17490   # variables and quote the copies for generation of the libtool script.
17491   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17492     SED SHELL STRIP \
17493     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17494     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17495     deplibs_check_method reload_flag reload_cmds need_locks \
17496     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17497     lt_cv_sys_global_symbol_to_c_name_address \
17498     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17499     old_postinstall_cmds old_postuninstall_cmds \
17500     compiler_F77 \
17501     CC_F77 \
17502     LD_F77 \
17503     lt_prog_compiler_wl_F77 \
17504     lt_prog_compiler_pic_F77 \
17505     lt_prog_compiler_static_F77 \
17506     lt_prog_compiler_no_builtin_flag_F77 \
17507     export_dynamic_flag_spec_F77 \
17508     thread_safe_flag_spec_F77 \
17509     whole_archive_flag_spec_F77 \
17510     enable_shared_with_static_runtimes_F77 \
17511     old_archive_cmds_F77 \
17512     old_archive_from_new_cmds_F77 \
17513     predep_objects_F77 \
17514     postdep_objects_F77 \
17515     predeps_F77 \
17516     postdeps_F77 \
17517     compiler_lib_search_path_F77 \
17518     archive_cmds_F77 \
17519     archive_expsym_cmds_F77 \
17520     postinstall_cmds_F77 \
17521     postuninstall_cmds_F77 \
17522     old_archive_from_expsyms_cmds_F77 \
17523     allow_undefined_flag_F77 \
17524     no_undefined_flag_F77 \
17525     export_symbols_cmds_F77 \
17526     hardcode_libdir_flag_spec_F77 \
17527     hardcode_libdir_flag_spec_ld_F77 \
17528     hardcode_libdir_separator_F77 \
17529     hardcode_automatic_F77 \
17530     module_cmds_F77 \
17531     module_expsym_cmds_F77 \
17532     lt_cv_prog_compiler_c_o_F77 \
17533     exclude_expsyms_F77 \
17534     include_expsyms_F77; do
17535
17536     case $var in
17537     old_archive_cmds_F77 | \
17538     old_archive_from_new_cmds_F77 | \
17539     archive_cmds_F77 | \
17540     archive_expsym_cmds_F77 | \
17541     module_cmds_F77 | \
17542     module_expsym_cmds_F77 | \
17543     old_archive_from_expsyms_cmds_F77 | \
17544     export_symbols_cmds_F77 | \
17545     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17546     postinstall_cmds | postuninstall_cmds | \
17547     old_postinstall_cmds | old_postuninstall_cmds | \
17548     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17549       # Double-quote double-evaled strings.
17550       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17551       ;;
17552     *)
17553       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17554       ;;
17555     esac
17556   done
17557
17558   case $lt_echo in
17559   *'\$0 --fallback-echo"')
17560     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17561     ;;
17562   esac
17563
17564 cfgfile="$ofile"
17565
17566   cat <<__EOF__ >> "$cfgfile"
17567 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17568
17569 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17570
17571 # Shell to use when invoking shell scripts.
17572 SHELL=$lt_SHELL
17573
17574 # Whether or not to build shared libraries.
17575 build_libtool_libs=$enable_shared
17576
17577 # Whether or not to build static libraries.
17578 build_old_libs=$enable_static
17579
17580 # Whether or not to add -lc for building shared libraries.
17581 build_libtool_need_lc=$archive_cmds_need_lc_F77
17582
17583 # Whether or not to disallow shared libs when runtime libs are static
17584 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17585
17586 # Whether or not to optimize for fast installation.
17587 fast_install=$enable_fast_install
17588
17589 # The host system.
17590 host_alias=$host_alias
17591 host=$host
17592 host_os=$host_os
17593
17594 # The build system.
17595 build_alias=$build_alias
17596 build=$build
17597 build_os=$build_os
17598
17599 # An echo program that does not interpret backslashes.
17600 echo=$lt_echo
17601
17602 # The archiver.
17603 AR=$lt_AR
17604 AR_FLAGS=$lt_AR_FLAGS
17605
17606 # A C compiler.
17607 LTCC=$lt_LTCC
17608
17609 # A language-specific compiler.
17610 CC=$lt_compiler_F77
17611
17612 # Is the compiler the GNU C compiler?
17613 with_gcc=$GCC_F77
17614
17615 # An ERE matcher.
17616 EGREP=$lt_EGREP
17617
17618 # The linker used to build libraries.
17619 LD=$lt_LD_F77
17620
17621 # Whether we need hard or soft links.
17622 LN_S=$lt_LN_S
17623
17624 # A BSD-compatible nm program.
17625 NM=$lt_NM
17626
17627 # A symbol stripping program
17628 STRIP=$lt_STRIP
17629
17630 # Used to examine libraries when file_magic_cmd begins "file"
17631 MAGIC_CMD=$MAGIC_CMD
17632
17633 # Used on cygwin: DLL creation program.
17634 DLLTOOL="$DLLTOOL"
17635
17636 # Used on cygwin: object dumper.
17637 OBJDUMP="$OBJDUMP"
17638
17639 # Used on cygwin: assembler.
17640 AS="$AS"
17641
17642 # The name of the directory that contains temporary libtool files.
17643 objdir=$objdir
17644
17645 # How to create reloadable object files.
17646 reload_flag=$lt_reload_flag
17647 reload_cmds=$lt_reload_cmds
17648
17649 # How to pass a linker flag through the compiler.
17650 wl=$lt_lt_prog_compiler_wl_F77
17651
17652 # Object file suffix (normally "o").
17653 objext="$ac_objext"
17654
17655 # Old archive suffix (normally "a").
17656 libext="$libext"
17657
17658 # Shared library suffix (normally ".so").
17659 shrext_cmds='$shrext_cmds'
17660
17661 # Executable file suffix (normally "").
17662 exeext="$exeext"
17663
17664 # Additional compiler flags for building library objects.
17665 pic_flag=$lt_lt_prog_compiler_pic_F77
17666 pic_mode=$pic_mode
17667
17668 # What is the maximum length of a command?
17669 max_cmd_len=$lt_cv_sys_max_cmd_len
17670
17671 # Does compiler simultaneously support -c and -o options?
17672 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17673
17674 # Must we lock files when doing compilation?
17675 need_locks=$lt_need_locks
17676
17677 # Do we need the lib prefix for modules?
17678 need_lib_prefix=$need_lib_prefix
17679
17680 # Do we need a version for libraries?
17681 need_version=$need_version
17682
17683 # Whether dlopen is supported.
17684 dlopen_support=$enable_dlopen
17685
17686 # Whether dlopen of programs is supported.
17687 dlopen_self=$enable_dlopen_self
17688
17689 # Whether dlopen of statically linked programs is supported.
17690 dlopen_self_static=$enable_dlopen_self_static
17691
17692 # Compiler flag to prevent dynamic linking.
17693 link_static_flag=$lt_lt_prog_compiler_static_F77
17694
17695 # Compiler flag to turn off builtin functions.
17696 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17697
17698 # Compiler flag to allow reflexive dlopens.
17699 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17700
17701 # Compiler flag to generate shared objects directly from archives.
17702 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17703
17704 # Compiler flag to generate thread-safe objects.
17705 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17706
17707 # Library versioning type.
17708 version_type=$version_type
17709
17710 # Format of library name prefix.
17711 libname_spec=$lt_libname_spec
17712
17713 # List of archive names.  First name is the real one, the rest are links.
17714 # The last name is the one that the linker finds with -lNAME.
17715 library_names_spec=$lt_library_names_spec
17716
17717 # The coded name of the library, if different from the real name.
17718 soname_spec=$lt_soname_spec
17719
17720 # Commands used to build and install an old-style archive.
17721 RANLIB=$lt_RANLIB
17722 old_archive_cmds=$lt_old_archive_cmds_F77
17723 old_postinstall_cmds=$lt_old_postinstall_cmds
17724 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17725
17726 # Create an old-style archive from a shared archive.
17727 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17728
17729 # Create a temporary old-style archive to link instead of a shared archive.
17730 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17731
17732 # Commands used to build and install a shared archive.
17733 archive_cmds=$lt_archive_cmds_F77
17734 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17735 postinstall_cmds=$lt_postinstall_cmds
17736 postuninstall_cmds=$lt_postuninstall_cmds
17737
17738 # Commands used to build a loadable module (assumed same as above if empty)
17739 module_cmds=$lt_module_cmds_F77
17740 module_expsym_cmds=$lt_module_expsym_cmds_F77
17741
17742 # Commands to strip libraries.
17743 old_striplib=$lt_old_striplib
17744 striplib=$lt_striplib
17745
17746 # Dependencies to place before the objects being linked to create a
17747 # shared library.
17748 predep_objects=$lt_predep_objects_F77
17749
17750 # Dependencies to place after the objects being linked to create a
17751 # shared library.
17752 postdep_objects=$lt_postdep_objects_F77
17753
17754 # Dependencies to place before the objects being linked to create a
17755 # shared library.
17756 predeps=$lt_predeps_F77
17757
17758 # Dependencies to place after the objects being linked to create a
17759 # shared library.
17760 postdeps=$lt_postdeps_F77
17761
17762 # The library search path used internally by the compiler when linking
17763 # a shared library.
17764 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17765
17766 # Method to check whether dependent libraries are shared objects.
17767 deplibs_check_method=$lt_deplibs_check_method
17768
17769 # Command to use when deplibs_check_method == file_magic.
17770 file_magic_cmd=$lt_file_magic_cmd
17771
17772 # Flag that allows shared libraries with undefined symbols to be built.
17773 allow_undefined_flag=$lt_allow_undefined_flag_F77
17774
17775 # Flag that forces no undefined symbols.
17776 no_undefined_flag=$lt_no_undefined_flag_F77
17777
17778 # Commands used to finish a libtool library installation in a directory.
17779 finish_cmds=$lt_finish_cmds
17780
17781 # Same as above, but a single script fragment to be evaled but not shown.
17782 finish_eval=$lt_finish_eval
17783
17784 # Take the output of nm and produce a listing of raw symbols and C names.
17785 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17786
17787 # Transform the output of nm in a proper C declaration
17788 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17789
17790 # Transform the output of nm in a C name address pair
17791 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17792
17793 # This is the shared library runtime path variable.
17794 runpath_var=$runpath_var
17795
17796 # This is the shared library path variable.
17797 shlibpath_var=$shlibpath_var
17798
17799 # Is shlibpath searched before the hard-coded library search path?
17800 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17801
17802 # How to hardcode a shared library path into an executable.
17803 hardcode_action=$hardcode_action_F77
17804
17805 # Whether we should hardcode library paths into libraries.
17806 hardcode_into_libs=$hardcode_into_libs
17807
17808 # Flag to hardcode \$libdir into a binary during linking.
17809 # This must work even if \$libdir does not exist.
17810 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17811
17812 # If ld is used when linking, flag to hardcode \$libdir into
17813 # a binary during linking. This must work even if \$libdir does
17814 # not exist.
17815 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17816
17817 # Whether we need a single -rpath flag with a separated argument.
17818 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17819
17820 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17821 # resulting binary.
17822 hardcode_direct=$hardcode_direct_F77
17823
17824 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17825 # resulting binary.
17826 hardcode_minus_L=$hardcode_minus_L_F77
17827
17828 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17829 # the resulting binary.
17830 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17831
17832 # Set to yes if building a shared library automatically hardcodes DIR into the library
17833 # and all subsequent libraries and executables linked against it.
17834 hardcode_automatic=$hardcode_automatic_F77
17835
17836 # Variables whose values should be saved in libtool wrapper scripts and
17837 # restored at relink time.
17838 variables_saved_for_relink="$variables_saved_for_relink"
17839
17840 # Whether libtool must link a program against all its dependency libraries.
17841 link_all_deplibs=$link_all_deplibs_F77
17842
17843 # Compile-time system search path for libraries
17844 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17845
17846 # Run-time system search path for libraries
17847 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17848
17849 # Fix the shell variable \$srcfile for the compiler.
17850 fix_srcfile_path="$fix_srcfile_path_F77"
17851
17852 # Set to yes if exported symbols are required.
17853 always_export_symbols=$always_export_symbols_F77
17854
17855 # The commands to list exported symbols.
17856 export_symbols_cmds=$lt_export_symbols_cmds_F77
17857
17858 # The commands to extract the exported symbol list from a shared archive.
17859 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17860
17861 # Symbols that should not be listed in the preloaded symbols.
17862 exclude_expsyms=$lt_exclude_expsyms_F77
17863
17864 # Symbols that must always be exported.
17865 include_expsyms=$lt_include_expsyms_F77
17866
17867 # ### END LIBTOOL TAG CONFIG: $tagname
17868
17869 __EOF__
17870
17871
17872 else
17873   # If there is no Makefile yet, we rely on a make rule to execute
17874   # `config.status --recheck' to rerun these tests and create the
17875   # libtool script then.
17876   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17877   if test -f "$ltmain_in"; then
17878     test -f Makefile && make "$ltmain"
17879   fi
17880 fi
17881
17882
17883 ac_ext=c
17884 ac_cpp='$CPP $CPPFLAGS'
17885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17888
17889 CC="$lt_save_CC"
17890
17891         else
17892           tagname=""
17893         fi
17894         ;;
17895
17896       GCJ)
17897         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17898
17899
17900
17901 # Source file extension for Java test sources.
17902 ac_ext=java
17903
17904 # Object file extension for compiled Java test sources.
17905 objext=o
17906 objext_GCJ=$objext
17907
17908 # Code to be used in simple compile tests
17909 lt_simple_compile_test_code="class foo {}\n"
17910
17911 # Code to be used in simple link tests
17912 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17913
17914 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17915
17916 # If no C compiler was specified, use CC.
17917 LTCC=${LTCC-"$CC"}
17918
17919 # Allow CC to be a program name with arguments.
17920 compiler=$CC
17921
17922
17923 # save warnings/boilerplate of simple test code
17924 ac_outfile=conftest.$ac_objext
17925 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17926 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17927 _lt_compiler_boilerplate=`cat conftest.err`
17928 $rm conftest*
17929
17930 ac_outfile=conftest.$ac_objext
17931 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17932 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17933 _lt_linker_boilerplate=`cat conftest.err`
17934 $rm conftest*
17935
17936
17937 # Allow CC to be a program name with arguments.
17938 lt_save_CC="$CC"
17939 CC=${GCJ-"gcj"}
17940 compiler=$CC
17941 compiler_GCJ=$CC
17942 for cc_temp in $compiler""; do
17943   case $cc_temp in
17944     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17945     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17946     \-*) ;;
17947     *) break;;
17948   esac
17949 done
17950 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17951
17952
17953 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17954 archive_cmds_need_lc_GCJ=no
17955
17956 old_archive_cmds_GCJ=$old_archive_cmds
17957
17958
17959 lt_prog_compiler_no_builtin_flag_GCJ=
17960
17961 if test "$GCC" = yes; then
17962   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17963
17964
17965 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17966 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17967 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17968   echo $ECHO_N "(cached) $ECHO_C" >&6
17969 else
17970   lt_cv_prog_compiler_rtti_exceptions=no
17971   ac_outfile=conftest.$ac_objext
17972    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17973    lt_compiler_flag="-fno-rtti -fno-exceptions"
17974    # Insert the option either (1) after the last *FLAGS variable, or
17975    # (2) before a word containing "conftest.", or (3) at the end.
17976    # Note that $ac_compile itself does not contain backslashes and begins
17977    # with a dollar sign (not a hyphen), so the echo should work correctly.
17978    # The option is referenced via a variable to avoid confusing sed.
17979    lt_compile=`echo "$ac_compile" | $SED \
17980    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17981    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17982    -e 's:$: $lt_compiler_flag:'`
17983    (eval echo "\"\$as_me:17983: $lt_compile\"" >&5)
17984    (eval "$lt_compile" 2>conftest.err)
17985    ac_status=$?
17986    cat conftest.err >&5
17987    echo "$as_me:17987: \$? = $ac_status" >&5
17988    if (exit $ac_status) && test -s "$ac_outfile"; then
17989      # The compiler can only warn and ignore the option if not recognized
17990      # So say no if there are warnings other than the usual output.
17991      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17992      $SED '/^$/d' conftest.err >conftest.er2
17993      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17994        lt_cv_prog_compiler_rtti_exceptions=yes
17995      fi
17996    fi
17997    $rm conftest*
17998
17999 fi
18000 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18001 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18002
18003 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18004     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18005 else
18006     :
18007 fi
18008
18009 fi
18010
18011 lt_prog_compiler_wl_GCJ=
18012 lt_prog_compiler_pic_GCJ=
18013 lt_prog_compiler_static_GCJ=
18014
18015 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18016 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18017
18018   if test "$GCC" = yes; then
18019     lt_prog_compiler_wl_GCJ='-Wl,'
18020     lt_prog_compiler_static_GCJ='-static'
18021
18022     case $host_os in
18023       aix*)
18024       # All AIX code is PIC.
18025       if test "$host_cpu" = ia64; then
18026         # AIX 5 now supports IA64 processor
18027         lt_prog_compiler_static_GCJ='-Bstatic'
18028       fi
18029       ;;
18030
18031     amigaos*)
18032       # FIXME: we need at least 68020 code to build shared libraries, but
18033       # adding the `-m68020' flag to GCC prevents building anything better,
18034       # like `-m68040'.
18035       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18036       ;;
18037
18038     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18039       # PIC is the default for these OSes.
18040       ;;
18041
18042     mingw* | pw32* | os2*)
18043       # This hack is so that the source file can tell whether it is being
18044       # built for inclusion in a dll (and should export symbols for example).
18045       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18046       ;;
18047
18048     darwin* | rhapsody*)
18049       # PIC is the default on this platform
18050       # Common symbols not allowed in MH_DYLIB files
18051       lt_prog_compiler_pic_GCJ='-fno-common'
18052       ;;
18053
18054     msdosdjgpp*)
18055       # Just because we use GCC doesn't mean we suddenly get shared libraries
18056       # on systems that don't support them.
18057       lt_prog_compiler_can_build_shared_GCJ=no
18058       enable_shared=no
18059       ;;
18060
18061     sysv4*MP*)
18062       if test -d /usr/nec; then
18063         lt_prog_compiler_pic_GCJ=-Kconform_pic
18064       fi
18065       ;;
18066
18067     hpux*)
18068       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18069       # not for PA HP-UX.
18070       case "$host_cpu" in
18071       hppa*64*|ia64*)
18072         # +Z the default
18073         ;;
18074       *)
18075         lt_prog_compiler_pic_GCJ='-fPIC'
18076         ;;
18077       esac
18078       ;;
18079
18080     *)
18081       lt_prog_compiler_pic_GCJ='-fPIC'
18082       ;;
18083     esac
18084   else
18085     # PORTME Check for flag to pass linker flags through the system compiler.
18086     case $host_os in
18087     aix*)
18088       lt_prog_compiler_wl_GCJ='-Wl,'
18089       if test "$host_cpu" = ia64; then
18090         # AIX 5 now supports IA64 processor
18091         lt_prog_compiler_static_GCJ='-Bstatic'
18092       else
18093         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18094       fi
18095       ;;
18096       darwin*)
18097         # PIC is the default on this platform
18098         # Common symbols not allowed in MH_DYLIB files
18099        case $cc_basename in
18100          xlc*)
18101          lt_prog_compiler_pic_GCJ='-qnocommon'
18102          lt_prog_compiler_wl_GCJ='-Wl,'
18103          ;;
18104        esac
18105        ;;
18106
18107     mingw* | pw32* | os2*)
18108       # This hack is so that the source file can tell whether it is being
18109       # built for inclusion in a dll (and should export symbols for example).
18110       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18111       ;;
18112
18113     hpux9* | hpux10* | hpux11*)
18114       lt_prog_compiler_wl_GCJ='-Wl,'
18115       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18116       # not for PA HP-UX.
18117       case "$host_cpu" in
18118       hppa*64*|ia64*)
18119         # +Z the default
18120         ;;
18121       *)
18122         lt_prog_compiler_pic_GCJ='+Z'
18123         ;;
18124       esac
18125       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18126       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18127       ;;
18128
18129     irix5* | irix6* | nonstopux*)
18130       lt_prog_compiler_wl_GCJ='-Wl,'
18131       # PIC (with -KPIC) is the default.
18132       lt_prog_compiler_static_GCJ='-non_shared'
18133       ;;
18134
18135     newsos6)
18136       lt_prog_compiler_pic_GCJ='-KPIC'
18137       lt_prog_compiler_static_GCJ='-Bstatic'
18138       ;;
18139
18140     linux*)
18141       case $cc_basename in
18142       icc* | ecc*)
18143         lt_prog_compiler_wl_GCJ='-Wl,'
18144         lt_prog_compiler_pic_GCJ='-KPIC'
18145         lt_prog_compiler_static_GCJ='-static'
18146         ;;
18147       pgcc* | pgf77* | pgf90*)
18148         # Portland Group compilers (*not* the Pentium gcc compiler,
18149         # which looks to be a dead project)
18150         lt_prog_compiler_wl_GCJ='-Wl,'
18151         lt_prog_compiler_pic_GCJ='-fpic'
18152         lt_prog_compiler_static_GCJ='-static'
18153         ;;
18154       ccc*)
18155         lt_prog_compiler_wl_GCJ='-Wl,'
18156         # All Alpha code is PIC.
18157         lt_prog_compiler_static_GCJ='-non_shared'
18158         ;;
18159       esac
18160       ;;
18161
18162     osf3* | osf4* | osf5*)
18163       lt_prog_compiler_wl_GCJ='-Wl,'
18164       # All OSF/1 code is PIC.
18165       lt_prog_compiler_static_GCJ='-non_shared'
18166       ;;
18167
18168     sco3.2v5*)
18169       lt_prog_compiler_pic_GCJ='-Kpic'
18170       lt_prog_compiler_static_GCJ='-dn'
18171       ;;
18172
18173     solaris*)
18174       lt_prog_compiler_pic_GCJ='-KPIC'
18175       lt_prog_compiler_static_GCJ='-Bstatic'
18176       case $cc_basename in
18177       f77* | f90* | f95*)
18178         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18179       *)
18180         lt_prog_compiler_wl_GCJ='-Wl,';;
18181       esac
18182       ;;
18183
18184     sunos4*)
18185       lt_prog_compiler_wl_GCJ='-Qoption ld '
18186       lt_prog_compiler_pic_GCJ='-PIC'
18187       lt_prog_compiler_static_GCJ='-Bstatic'
18188       ;;
18189
18190     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18191       lt_prog_compiler_wl_GCJ='-Wl,'
18192       lt_prog_compiler_pic_GCJ='-KPIC'
18193       lt_prog_compiler_static_GCJ='-Bstatic'
18194       ;;
18195
18196     sysv4*MP*)
18197       if test -d /usr/nec ;then
18198         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18199         lt_prog_compiler_static_GCJ='-Bstatic'
18200       fi
18201       ;;
18202
18203     unicos*)
18204       lt_prog_compiler_wl_GCJ='-Wl,'
18205       lt_prog_compiler_can_build_shared_GCJ=no
18206       ;;
18207
18208     uts4*)
18209       lt_prog_compiler_pic_GCJ='-pic'
18210       lt_prog_compiler_static_GCJ='-Bstatic'
18211       ;;
18212
18213     *)
18214       lt_prog_compiler_can_build_shared_GCJ=no
18215       ;;
18216     esac
18217   fi
18218
18219 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18220 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18221
18222 #
18223 # Check to make sure the PIC flag actually works.
18224 #
18225 if test -n "$lt_prog_compiler_pic_GCJ"; then
18226
18227 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18228 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18229 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18230   echo $ECHO_N "(cached) $ECHO_C" >&6
18231 else
18232   lt_prog_compiler_pic_works_GCJ=no
18233   ac_outfile=conftest.$ac_objext
18234    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18235    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18236    # Insert the option either (1) after the last *FLAGS variable, or
18237    # (2) before a word containing "conftest.", or (3) at the end.
18238    # Note that $ac_compile itself does not contain backslashes and begins
18239    # with a dollar sign (not a hyphen), so the echo should work correctly.
18240    # The option is referenced via a variable to avoid confusing sed.
18241    lt_compile=`echo "$ac_compile" | $SED \
18242    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18243    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18244    -e 's:$: $lt_compiler_flag:'`
18245    (eval echo "\"\$as_me:18245: $lt_compile\"" >&5)
18246    (eval "$lt_compile" 2>conftest.err)
18247    ac_status=$?
18248    cat conftest.err >&5
18249    echo "$as_me:18249: \$? = $ac_status" >&5
18250    if (exit $ac_status) && test -s "$ac_outfile"; then
18251      # The compiler can only warn and ignore the option if not recognized
18252      # So say no if there are warnings other than the usual output.
18253      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18254      $SED '/^$/d' conftest.err >conftest.er2
18255      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18256        lt_prog_compiler_pic_works_GCJ=yes
18257      fi
18258    fi
18259    $rm conftest*
18260
18261 fi
18262 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18263 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18264
18265 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18266     case $lt_prog_compiler_pic_GCJ in
18267      "" | " "*) ;;
18268      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18269      esac
18270 else
18271     lt_prog_compiler_pic_GCJ=
18272      lt_prog_compiler_can_build_shared_GCJ=no
18273 fi
18274
18275 fi
18276 case "$host_os" in
18277   # For platforms which do not support PIC, -DPIC is meaningless:
18278   *djgpp*)
18279     lt_prog_compiler_pic_GCJ=
18280     ;;
18281   *)
18282     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18283     ;;
18284 esac
18285
18286 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18287 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18288 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18289   echo $ECHO_N "(cached) $ECHO_C" >&6
18290 else
18291   lt_cv_prog_compiler_c_o_GCJ=no
18292    $rm -r conftest 2>/dev/null
18293    mkdir conftest
18294    cd conftest
18295    mkdir out
18296    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18297
18298    lt_compiler_flag="-o out/conftest2.$ac_objext"
18299    # Insert the option either (1) after the last *FLAGS variable, or
18300    # (2) before a word containing "conftest.", or (3) at the end.
18301    # Note that $ac_compile itself does not contain backslashes and begins
18302    # with a dollar sign (not a hyphen), so the echo should work correctly.
18303    lt_compile=`echo "$ac_compile" | $SED \
18304    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18305    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18306    -e 's:$: $lt_compiler_flag:'`
18307    (eval echo "\"\$as_me:18307: $lt_compile\"" >&5)
18308    (eval "$lt_compile" 2>out/conftest.err)
18309    ac_status=$?
18310    cat out/conftest.err >&5
18311    echo "$as_me:18311: \$? = $ac_status" >&5
18312    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18313    then
18314      # The compiler can only warn and ignore the option if not recognized
18315      # So say no if there are warnings
18316      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18317      $SED '/^$/d' out/conftest.err >out/conftest.er2
18318      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18319        lt_cv_prog_compiler_c_o_GCJ=yes
18320      fi
18321    fi
18322    chmod u+w .
18323    $rm conftest*
18324    # SGI C++ compiler will create directory out/ii_files/ for
18325    # template instantiation
18326    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18327    $rm out/* && rmdir out
18328    cd ..
18329    rmdir conftest
18330    $rm conftest*
18331
18332 fi
18333 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18334 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18335
18336
18337 hard_links="nottested"
18338 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18339   # do not overwrite the value of need_locks provided by the user
18340   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18341 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18342   hard_links=yes
18343   $rm conftest*
18344   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18345   touch conftest.a
18346   ln conftest.a conftest.b 2>&5 || hard_links=no
18347   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18348   echo "$as_me:$LINENO: result: $hard_links" >&5
18349 echo "${ECHO_T}$hard_links" >&6
18350   if test "$hard_links" = no; then
18351     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18352 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18353     need_locks=warn
18354   fi
18355 else
18356   need_locks=no
18357 fi
18358
18359 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18360 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18361
18362   runpath_var=
18363   allow_undefined_flag_GCJ=
18364   enable_shared_with_static_runtimes_GCJ=no
18365   archive_cmds_GCJ=
18366   archive_expsym_cmds_GCJ=
18367   old_archive_From_new_cmds_GCJ=
18368   old_archive_from_expsyms_cmds_GCJ=
18369   export_dynamic_flag_spec_GCJ=
18370   whole_archive_flag_spec_GCJ=
18371   thread_safe_flag_spec_GCJ=
18372   hardcode_libdir_flag_spec_GCJ=
18373   hardcode_libdir_flag_spec_ld_GCJ=
18374   hardcode_libdir_separator_GCJ=
18375   hardcode_direct_GCJ=no
18376   hardcode_minus_L_GCJ=no
18377   hardcode_shlibpath_var_GCJ=unsupported
18378   link_all_deplibs_GCJ=unknown
18379   hardcode_automatic_GCJ=no
18380   module_cmds_GCJ=
18381   module_expsym_cmds_GCJ=
18382   always_export_symbols_GCJ=no
18383   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18384   # include_expsyms should be a list of space-separated symbols to be *always*
18385   # included in the symbol list
18386   include_expsyms_GCJ=
18387   # exclude_expsyms can be an extended regexp of symbols to exclude
18388   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18389   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18390   # as well as any symbol that contains `d'.
18391   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18392   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18393   # platforms (ab)use it in PIC code, but their linkers get confused if
18394   # the symbol is explicitly referenced.  Since portable code cannot
18395   # rely on this symbol name, it's probably fine to never include it in
18396   # preloaded symbol tables.
18397   extract_expsyms_cmds=
18398   # Just being paranoid about ensuring that cc_basename is set.
18399   for cc_temp in $compiler""; do
18400   case $cc_temp in
18401     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18402     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18403     \-*) ;;
18404     *) break;;
18405   esac
18406 done
18407 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18408
18409   case $host_os in
18410   cygwin* | mingw* | pw32*)
18411     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18412     # When not using gcc, we currently assume that we are using
18413     # Microsoft Visual C++.
18414     if test "$GCC" != yes; then
18415       with_gnu_ld=no
18416     fi
18417     ;;
18418   openbsd*)
18419     with_gnu_ld=no
18420     ;;
18421   esac
18422
18423   ld_shlibs_GCJ=yes
18424   if test "$with_gnu_ld" = yes; then
18425     # If archive_cmds runs LD, not CC, wlarc should be empty
18426     wlarc='${wl}'
18427
18428     # Set some defaults for GNU ld with shared library support. These
18429     # are reset later if shared libraries are not supported. Putting them
18430     # here allows them to be overridden if necessary.
18431     runpath_var=LD_RUN_PATH
18432     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18433     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18434     # ancient GNU ld didn't support --whole-archive et. al.
18435     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18436         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18437       else
18438         whole_archive_flag_spec_GCJ=
18439     fi
18440     supports_anon_versioning=no
18441     case `$LD -v 2>/dev/null` in
18442       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18443       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18444       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18445       *\ 2.11.*) ;; # other 2.11 versions
18446       *) supports_anon_versioning=yes ;;
18447     esac
18448
18449     # See if GNU ld supports shared libraries.
18450     case $host_os in
18451     aix3* | aix4* | aix5*)
18452       # On AIX/PPC, the GNU linker is very broken
18453       if test "$host_cpu" != ia64; then
18454         ld_shlibs_GCJ=no
18455         cat <<EOF 1>&2
18456
18457 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18458 *** to be unable to reliably create shared libraries on AIX.
18459 *** Therefore, libtool is disabling shared libraries support.  If you
18460 *** really care for shared libraries, you may want to modify your PATH
18461 *** so that a non-GNU linker is found, and then restart.
18462
18463 EOF
18464       fi
18465       ;;
18466
18467     amigaos*)
18468       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18469       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18470       hardcode_minus_L_GCJ=yes
18471
18472       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18473       # that the semantics of dynamic libraries on AmigaOS, at least up
18474       # to version 4, is to share data among multiple programs linked
18475       # with the same dynamic library.  Since this doesn't match the
18476       # behavior of shared libraries on other platforms, we can't use
18477       # them.
18478       ld_shlibs_GCJ=no
18479       ;;
18480
18481     beos*)
18482       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18483         allow_undefined_flag_GCJ=unsupported
18484         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18485         # support --undefined.  This deserves some investigation.  FIXME
18486         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18487       else
18488         ld_shlibs_GCJ=no
18489       fi
18490       ;;
18491
18492     cygwin* | mingw* | pw32*)
18493       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18494       # as there is no search path for DLLs.
18495       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18496       allow_undefined_flag_GCJ=unsupported
18497       always_export_symbols_GCJ=no
18498       enable_shared_with_static_runtimes_GCJ=yes
18499       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18500
18501       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18502         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18503         # If the export-symbols file already is a .def file (1st line
18504         # is EXPORTS), use it as is; otherwise, prepend...
18505         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18506           cp $export_symbols $output_objdir/$soname.def;
18507         else
18508           echo EXPORTS > $output_objdir/$soname.def;
18509           cat $export_symbols >> $output_objdir/$soname.def;
18510         fi~
18511         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
18512       else
18513         ld_shlibs_GCJ=no
18514       fi
18515       ;;
18516
18517     linux*)
18518       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18519         tmp_addflag=
18520         case $cc_basename,$host_cpu in
18521         pgcc*)                          # Portland Group C compiler
18522           whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18523           tmp_addflag=' $pic_flag'
18524           ;;
18525         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
18526           whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18527           tmp_addflag=' $pic_flag -Mnomain' ;;
18528         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18529           tmp_addflag=' -i_dynamic' ;;
18530         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18531           tmp_addflag=' -i_dynamic -nofor_main' ;;
18532         ifc* | ifort*)                  # Intel Fortran compiler
18533           tmp_addflag=' -nofor_main' ;;
18534         esac
18535         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18536
18537         if test $supports_anon_versioning = yes; then
18538           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18539   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18540   $echo "local: *; };" >> $output_objdir/$libname.ver~
18541           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18542         fi
18543       else
18544         ld_shlibs_GCJ=no
18545       fi
18546       ;;
18547
18548     netbsd*)
18549       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18550         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18551         wlarc=
18552       else
18553         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18554         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18555       fi
18556       ;;
18557
18558     solaris* | sysv5*)
18559       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18560         ld_shlibs_GCJ=no
18561         cat <<EOF 1>&2
18562
18563 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18564 *** create shared libraries on Solaris systems.  Therefore, libtool
18565 *** is disabling shared libraries support.  We urge you to upgrade GNU
18566 *** binutils to release 2.9.1 or newer.  Another option is to modify
18567 *** your PATH or compiler configuration so that the native linker is
18568 *** used, and then restart.
18569
18570 EOF
18571       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18572         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18573         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18574       else
18575         ld_shlibs_GCJ=no
18576       fi
18577       ;;
18578
18579     sunos4*)
18580       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18581       wlarc=
18582       hardcode_direct_GCJ=yes
18583       hardcode_shlibpath_var_GCJ=no
18584       ;;
18585
18586     *)
18587       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18588         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18589         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18590       else
18591         ld_shlibs_GCJ=no
18592       fi
18593       ;;
18594     esac
18595
18596     if test "$ld_shlibs_GCJ" = no; then
18597       runpath_var=
18598       hardcode_libdir_flag_spec_GCJ=
18599       export_dynamic_flag_spec_GCJ=
18600       whole_archive_flag_spec_GCJ=
18601     fi
18602   else
18603     # PORTME fill in a description of your system's linker (not GNU ld)
18604     case $host_os in
18605     aix3*)
18606       allow_undefined_flag_GCJ=unsupported
18607       always_export_symbols_GCJ=yes
18608       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18609       # Note: this linker hardcodes the directories in LIBPATH if there
18610       # are no directories specified by -L.
18611       hardcode_minus_L_GCJ=yes
18612       if test "$GCC" = yes && test -z "$link_static_flag"; then
18613         # Neither direct hardcoding nor static linking is supported with a
18614         # broken collect2.
18615         hardcode_direct_GCJ=unsupported
18616       fi
18617       ;;
18618
18619     aix4* | aix5*)
18620       if test "$host_cpu" = ia64; then
18621         # On IA64, the linker does run time linking by default, so we don't
18622         # have to do anything special.
18623         aix_use_runtimelinking=no
18624         exp_sym_flag='-Bexport'
18625         no_entry_flag=""
18626       else
18627         # If we're using GNU nm, then we don't want the "-C" option.
18628         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18629         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18630           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18631         else
18632           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18633         fi
18634         aix_use_runtimelinking=no
18635
18636         # Test if we are trying to use run time linking or normal
18637         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18638         # need to do runtime linking.
18639         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18640           for ld_flag in $LDFLAGS; do
18641           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18642             aix_use_runtimelinking=yes
18643             break
18644           fi
18645           done
18646         esac
18647
18648         exp_sym_flag='-bexport'
18649         no_entry_flag='-bnoentry'
18650       fi
18651
18652       # When large executables or shared objects are built, AIX ld can
18653       # have problems creating the table of contents.  If linking a library
18654       # or program results in "error TOC overflow" add -mminimal-toc to
18655       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18656       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18657
18658       archive_cmds_GCJ=''
18659       hardcode_direct_GCJ=yes
18660       hardcode_libdir_separator_GCJ=':'
18661       link_all_deplibs_GCJ=yes
18662
18663       if test "$GCC" = yes; then
18664         case $host_os in aix4.[012]|aix4.[012].*)
18665         # We only want to do this on AIX 4.2 and lower, the check
18666         # below for broken collect2 doesn't work under 4.3+
18667           collect2name=`${CC} -print-prog-name=collect2`
18668           if test -f "$collect2name" && \
18669            strings "$collect2name" | grep resolve_lib_name >/dev/null
18670           then
18671           # We have reworked collect2
18672           hardcode_direct_GCJ=yes
18673           else
18674           # We have old collect2
18675           hardcode_direct_GCJ=unsupported
18676           # It fails to find uninstalled libraries when the uninstalled
18677           # path is not listed in the libpath.  Setting hardcode_minus_L
18678           # to unsupported forces relinking
18679           hardcode_minus_L_GCJ=yes
18680           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18681           hardcode_libdir_separator_GCJ=
18682           fi
18683         esac
18684         shared_flag='-shared'
18685         if test "$aix_use_runtimelinking" = yes; then
18686           shared_flag="$shared_flag "'${wl}-G'
18687         fi
18688       else
18689         # not using gcc
18690         if test "$host_cpu" = ia64; then
18691         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18692         # chokes on -Wl,-G. The following line is correct:
18693           shared_flag='-G'
18694         else
18695         if test "$aix_use_runtimelinking" = yes; then
18696             shared_flag='${wl}-G'
18697           else
18698             shared_flag='${wl}-bM:SRE'
18699         fi
18700         fi
18701       fi
18702
18703       # It seems that -bexpall does not export symbols beginning with
18704       # underscore (_), so it is better to generate a list of symbols to export.
18705       always_export_symbols_GCJ=yes
18706       if test "$aix_use_runtimelinking" = yes; then
18707         # Warning - without using the other runtime loading flags (-brtl),
18708         # -berok will link without error, but may produce a broken library.
18709         allow_undefined_flag_GCJ='-berok'
18710        # Determine the default libpath from the value encoded in an empty executable.
18711        cat >conftest.$ac_ext <<_ACEOF
18712 /* confdefs.h.  */
18713 _ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h.  */
18717
18718 int
18719 main ()
18720 {
18721
18722   ;
18723   return 0;
18724 }
18725 _ACEOF
18726 rm -f conftest.$ac_objext conftest$ac_exeext
18727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18728   (eval $ac_link) 2>conftest.er1
18729   ac_status=$?
18730   grep -v '^ *+' conftest.er1 >conftest.err
18731   rm -f conftest.er1
18732   cat conftest.err >&5
18733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734   (exit $ac_status); } &&
18735          { ac_try='test -z "$ac_c_werror_flag"
18736                          || test ! -s conftest.err'
18737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738   (eval $ac_try) 2>&5
18739   ac_status=$?
18740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741   (exit $ac_status); }; } &&
18742          { ac_try='test -s conftest$ac_exeext'
18743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18744   (eval $ac_try) 2>&5
18745   ac_status=$?
18746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747   (exit $ac_status); }; }; then
18748
18749 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18750 }'`
18751 # Check for a 64-bit object if we didn't find anything.
18752 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18753 }'`; fi
18754 else
18755   echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18757
18758 fi
18759 rm -f conftest.err conftest.$ac_objext \
18760       conftest$ac_exeext conftest.$ac_ext
18761 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18762
18763        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18764         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18765        else
18766         if test "$host_cpu" = ia64; then
18767           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18768           allow_undefined_flag_GCJ="-z nodefs"
18769           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
18770         else
18771          # Determine the default libpath from the value encoded in an empty executable.
18772          cat >conftest.$ac_ext <<_ACEOF
18773 /* confdefs.h.  */
18774 _ACEOF
18775 cat confdefs.h >>conftest.$ac_ext
18776 cat >>conftest.$ac_ext <<_ACEOF
18777 /* end confdefs.h.  */
18778
18779 int
18780 main ()
18781 {
18782
18783   ;
18784   return 0;
18785 }
18786 _ACEOF
18787 rm -f conftest.$ac_objext conftest$ac_exeext
18788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18789   (eval $ac_link) 2>conftest.er1
18790   ac_status=$?
18791   grep -v '^ *+' conftest.er1 >conftest.err
18792   rm -f conftest.er1
18793   cat conftest.err >&5
18794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795   (exit $ac_status); } &&
18796          { ac_try='test -z "$ac_c_werror_flag"
18797                          || test ! -s conftest.err'
18798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799   (eval $ac_try) 2>&5
18800   ac_status=$?
18801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802   (exit $ac_status); }; } &&
18803          { ac_try='test -s conftest$ac_exeext'
18804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805   (eval $ac_try) 2>&5
18806   ac_status=$?
18807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808   (exit $ac_status); }; }; then
18809
18810 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18811 }'`
18812 # Check for a 64-bit object if we didn't find anything.
18813 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18814 }'`; fi
18815 else
18816   echo "$as_me: failed program was:" >&5
18817 sed 's/^/| /' conftest.$ac_ext >&5
18818
18819 fi
18820 rm -f conftest.err conftest.$ac_objext \
18821       conftest$ac_exeext conftest.$ac_ext
18822 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18823
18824          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18825           # Warning - without using the other run time loading flags,
18826           # -berok will link without error, but may produce a broken library.
18827           no_undefined_flag_GCJ=' ${wl}-bernotok'
18828           allow_undefined_flag_GCJ=' ${wl}-berok'
18829           # -bexpall does not export symbols beginning with underscore (_)
18830           always_export_symbols_GCJ=yes
18831           # Exported symbols can be pulled into shared objects from archives
18832           whole_archive_flag_spec_GCJ=' '
18833           archive_cmds_need_lc_GCJ=yes
18834           # This is similar to how AIX traditionally builds it's shared libraries.
18835           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18836         fi
18837       fi
18838       ;;
18839
18840     amigaos*)
18841       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18842       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18843       hardcode_minus_L_GCJ=yes
18844       # see comment about different semantics on the GNU ld section
18845       ld_shlibs_GCJ=no
18846       ;;
18847
18848     bsdi[45]*)
18849       export_dynamic_flag_spec_GCJ=-rdynamic
18850       ;;
18851
18852     cygwin* | mingw* | pw32*)
18853       # When not using gcc, we currently assume that we are using
18854       # Microsoft Visual C++.
18855       # hardcode_libdir_flag_spec is actually meaningless, as there is
18856       # no search path for DLLs.
18857       hardcode_libdir_flag_spec_GCJ=' '
18858       allow_undefined_flag_GCJ=unsupported
18859       # Tell ltmain to make .lib files, not .a files.
18860       libext=lib
18861       # Tell ltmain to make .dll files, not .so files.
18862       shrext_cmds=".dll"
18863       # FIXME: Setting linknames here is a bad hack.
18864       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18865       # The linker will automatically build a .lib file if we build a DLL.
18866       old_archive_From_new_cmds_GCJ='true'
18867       # FIXME: Should let the user specify the lib program.
18868       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18869       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18870       enable_shared_with_static_runtimes_GCJ=yes
18871       ;;
18872
18873     darwin* | rhapsody*)
18874       case "$host_os" in
18875         rhapsody* | darwin1.[012])
18876          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18877          ;;
18878        *) # Darwin 1.3 on
18879          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18880            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18881          else
18882            case ${MACOSX_DEPLOYMENT_TARGET} in
18883              10.[012])
18884                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18885                ;;
18886              10.*)
18887                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18888                ;;
18889            esac
18890          fi
18891          ;;
18892       esac
18893       archive_cmds_need_lc_GCJ=no
18894       hardcode_direct_GCJ=no
18895       hardcode_automatic_GCJ=yes
18896       hardcode_shlibpath_var_GCJ=unsupported
18897       whole_archive_flag_spec_GCJ=''
18898       link_all_deplibs_GCJ=yes
18899     if test "$GCC" = yes ; then
18900         output_verbose_link_cmd='echo'
18901         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18902       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18903       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18904       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18905       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18906     else
18907       case $cc_basename in
18908         xlc*)
18909          output_verbose_link_cmd='echo'
18910          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18911          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18912           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18913          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18914           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18915           ;;
18916        *)
18917          ld_shlibs_GCJ=no
18918           ;;
18919       esac
18920     fi
18921       ;;
18922
18923     dgux*)
18924       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18925       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18926       hardcode_shlibpath_var_GCJ=no
18927       ;;
18928
18929     freebsd1*)
18930       ld_shlibs_GCJ=no
18931       ;;
18932
18933     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18934     # support.  Future versions do this automatically, but an explicit c++rt0.o
18935     # does not break anything, and helps significantly (at the cost of a little
18936     # extra space).
18937     freebsd2.2*)
18938       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18939       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18940       hardcode_direct_GCJ=yes
18941       hardcode_shlibpath_var_GCJ=no
18942       ;;
18943
18944     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18945     freebsd2*)
18946       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18947       hardcode_direct_GCJ=yes
18948       hardcode_minus_L_GCJ=yes
18949       hardcode_shlibpath_var_GCJ=no
18950       ;;
18951
18952     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18953     freebsd* | kfreebsd*-gnu | dragonfly*)
18954       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18955       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18956       hardcode_direct_GCJ=yes
18957       hardcode_shlibpath_var_GCJ=no
18958       ;;
18959
18960     hpux9*)
18961       if test "$GCC" = yes; then
18962         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18963       else
18964         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18965       fi
18966       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18967       hardcode_libdir_separator_GCJ=:
18968       hardcode_direct_GCJ=yes
18969
18970       # hardcode_minus_L: Not really in the search PATH,
18971       # but as the default location of the library.
18972       hardcode_minus_L_GCJ=yes
18973       export_dynamic_flag_spec_GCJ='${wl}-E'
18974       ;;
18975
18976     hpux10* | hpux11*)
18977       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18978         case "$host_cpu" in
18979         hppa*64*|ia64*)
18980           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18981           ;;
18982         *)
18983           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18984           ;;
18985         esac
18986       else
18987         case "$host_cpu" in
18988         hppa*64*|ia64*)
18989           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18990           ;;
18991         *)
18992           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18993           ;;
18994         esac
18995       fi
18996       if test "$with_gnu_ld" = no; then
18997         case "$host_cpu" in
18998         hppa*64*)
18999           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19000           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19001           hardcode_libdir_separator_GCJ=:
19002           hardcode_direct_GCJ=no
19003           hardcode_shlibpath_var_GCJ=no
19004           ;;
19005         ia64*)
19006           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19007           hardcode_direct_GCJ=no
19008           hardcode_shlibpath_var_GCJ=no
19009
19010           # hardcode_minus_L: Not really in the search PATH,
19011           # but as the default location of the library.
19012           hardcode_minus_L_GCJ=yes
19013           ;;
19014         *)
19015           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19016           hardcode_libdir_separator_GCJ=:
19017           hardcode_direct_GCJ=yes
19018           export_dynamic_flag_spec_GCJ='${wl}-E'
19019
19020           # hardcode_minus_L: Not really in the search PATH,
19021           # but as the default location of the library.
19022           hardcode_minus_L_GCJ=yes
19023           ;;
19024         esac
19025       fi
19026       ;;
19027
19028     irix5* | irix6* | nonstopux*)
19029       if test "$GCC" = yes; then
19030         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19031       else
19032         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19033         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19034       fi
19035       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19036       hardcode_libdir_separator_GCJ=:
19037       link_all_deplibs_GCJ=yes
19038       ;;
19039
19040     netbsd*)
19041       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19042         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19043       else
19044         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19045       fi
19046       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19047       hardcode_direct_GCJ=yes
19048       hardcode_shlibpath_var_GCJ=no
19049       ;;
19050
19051     newsos6)
19052       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19053       hardcode_direct_GCJ=yes
19054       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19055       hardcode_libdir_separator_GCJ=:
19056       hardcode_shlibpath_var_GCJ=no
19057       ;;
19058
19059     openbsd*)
19060       hardcode_direct_GCJ=yes
19061       hardcode_shlibpath_var_GCJ=no
19062       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19063         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19064         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19065         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19066         export_dynamic_flag_spec_GCJ='${wl}-E'
19067       else
19068        case $host_os in
19069          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19070            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19071            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19072            ;;
19073          *)
19074            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19075            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19076            ;;
19077        esac
19078       fi
19079       ;;
19080
19081     os2*)
19082       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19083       hardcode_minus_L_GCJ=yes
19084       allow_undefined_flag_GCJ=unsupported
19085       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
19086       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19087       ;;
19088
19089     osf3*)
19090       if test "$GCC" = yes; then
19091         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19092         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19093       else
19094         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19095         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19096       fi
19097       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19098       hardcode_libdir_separator_GCJ=:
19099       ;;
19100
19101     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19102       if test "$GCC" = yes; then
19103         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19104         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19105         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19106       else
19107         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19108         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19109         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19110         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
19111
19112         # Both c and cxx compiler support -rpath directly
19113         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19114       fi
19115       hardcode_libdir_separator_GCJ=:
19116       ;;
19117
19118     sco3.2v5*)
19119       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19120       hardcode_shlibpath_var_GCJ=no
19121       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19122       runpath_var=LD_RUN_PATH
19123       hardcode_runpath_var=yes
19124       ;;
19125
19126     solaris*)
19127       no_undefined_flag_GCJ=' -z text'
19128       if test "$GCC" = yes; then
19129         wlarc='${wl}'
19130         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19131         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19132           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19133       else
19134         wlarc=''
19135         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19136         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19137         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19138       fi
19139       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19140       hardcode_shlibpath_var_GCJ=no
19141       case $host_os in
19142       solaris2.[0-5] | solaris2.[0-5].*) ;;
19143       *)
19144         # The compiler driver will combine linker options so we
19145         # cannot just pass the convience library names through
19146         # without $wl, iff we do not link with $LD.
19147         # Luckily, gcc supports the same syntax we need for Sun Studio.
19148         # Supported since Solaris 2.6 (maybe 2.5.1?)
19149         case $wlarc in
19150         '')
19151           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19152         *)
19153           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19154         esac ;;
19155       esac
19156       link_all_deplibs_GCJ=yes
19157       ;;
19158
19159     sunos4*)
19160       if test "x$host_vendor" = xsequent; then
19161         # Use $CC to link under sequent, because it throws in some extra .o
19162         # files that make .init and .fini sections work.
19163         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19164       else
19165         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19166       fi
19167       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19168       hardcode_direct_GCJ=yes
19169       hardcode_minus_L_GCJ=yes
19170       hardcode_shlibpath_var_GCJ=no
19171       ;;
19172
19173     sysv4)
19174       case $host_vendor in
19175         sni)
19176           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19177           hardcode_direct_GCJ=yes # is this really true???
19178         ;;
19179         siemens)
19180           ## LD is ld it makes a PLAMLIB
19181           ## CC just makes a GrossModule.
19182           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19183           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19184           hardcode_direct_GCJ=no
19185         ;;
19186         motorola)
19187           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19188           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19189         ;;
19190       esac
19191       runpath_var='LD_RUN_PATH'
19192       hardcode_shlibpath_var_GCJ=no
19193       ;;
19194
19195     sysv4.3*)
19196       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19197       hardcode_shlibpath_var_GCJ=no
19198       export_dynamic_flag_spec_GCJ='-Bexport'
19199       ;;
19200
19201     sysv4*MP*)
19202       if test -d /usr/nec; then
19203         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19204         hardcode_shlibpath_var_GCJ=no
19205         runpath_var=LD_RUN_PATH
19206         hardcode_runpath_var=yes
19207         ld_shlibs_GCJ=yes
19208       fi
19209       ;;
19210
19211     sysv4.2uw2*)
19212       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19213       hardcode_direct_GCJ=yes
19214       hardcode_minus_L_GCJ=no
19215       hardcode_shlibpath_var_GCJ=no
19216       hardcode_runpath_var=yes
19217       runpath_var=LD_RUN_PATH
19218       ;;
19219
19220    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19221       no_undefined_flag_GCJ='${wl}-z ${wl}text'
19222       if test "$GCC" = yes; then
19223         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19224       else
19225         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19226       fi
19227       runpath_var='LD_RUN_PATH'
19228       hardcode_shlibpath_var_GCJ=no
19229       ;;
19230
19231     sysv5*)
19232       no_undefined_flag_GCJ=' -z text'
19233       # $CC -shared without GNU ld will not create a library from C++
19234       # object files and a static libstdc++, better avoid it by now
19235       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19236       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19237                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19238       hardcode_libdir_flag_spec_GCJ=
19239       hardcode_shlibpath_var_GCJ=no
19240       runpath_var='LD_RUN_PATH'
19241       ;;
19242
19243     uts4*)
19244       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19245       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19246       hardcode_shlibpath_var_GCJ=no
19247       ;;
19248
19249     *)
19250       ld_shlibs_GCJ=no
19251       ;;
19252     esac
19253   fi
19254
19255 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19256 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19257 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19258
19259 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19260 if test "$GCC" = yes; then
19261   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19262 fi
19263
19264 #
19265 # Do we need to explicitly link libc?
19266 #
19267 case "x$archive_cmds_need_lc_GCJ" in
19268 x|xyes)
19269   # Assume -lc should be added
19270   archive_cmds_need_lc_GCJ=yes
19271
19272   if test "$enable_shared" = yes && test "$GCC" = yes; then
19273     case $archive_cmds_GCJ in
19274     *'~'*)
19275       # FIXME: we may have to deal with multi-command sequences.
19276       ;;
19277     '$CC '*)
19278       # Test whether the compiler implicitly links with -lc since on some
19279       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19280       # to ld, don't add -lc before -lgcc.
19281       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19282 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19283       $rm conftest*
19284       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19285
19286       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19287   (eval $ac_compile) 2>&5
19288   ac_status=$?
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); } 2>conftest.err; then
19291         soname=conftest
19292         lib=conftest
19293         libobjs=conftest.$ac_objext
19294         deplibs=
19295         wl=$lt_prog_compiler_wl_GCJ
19296         compiler_flags=-v
19297         linker_flags=-v
19298         verstring=
19299         output_objdir=.
19300         libname=conftest
19301         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19302         allow_undefined_flag_GCJ=
19303         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19304   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19305   ac_status=$?
19306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307   (exit $ac_status); }
19308         then
19309           archive_cmds_need_lc_GCJ=no
19310         else
19311           archive_cmds_need_lc_GCJ=yes
19312         fi
19313         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19314       else
19315         cat conftest.err 1>&5
19316       fi
19317       $rm conftest*
19318       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19319 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19320       ;;
19321     esac
19322   fi
19323   ;;
19324 esac
19325
19326 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19327 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19328 library_names_spec=
19329 libname_spec='lib$name'
19330 soname_spec=
19331 shrext_cmds=".so"
19332 postinstall_cmds=
19333 postuninstall_cmds=
19334 finish_cmds=
19335 finish_eval=
19336 shlibpath_var=
19337 shlibpath_overrides_runpath=unknown
19338 version_type=none
19339 dynamic_linker="$host_os ld.so"
19340 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19341 if test "$GCC" = yes; then
19342   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19343   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19344     # if the path contains ";" then we assume it to be the separator
19345     # otherwise default to the standard path separator (i.e. ":") - it is
19346     # assumed that no part of a normal pathname contains ";" but that should
19347     # okay in the real world where ";" in dirpaths is itself problematic.
19348     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19349   else
19350     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19351   fi
19352 else
19353   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19354 fi
19355 need_lib_prefix=unknown
19356 hardcode_into_libs=no
19357
19358 # when you set need_version to no, make sure it does not cause -set_version
19359 # flags to be left without arguments
19360 need_version=unknown
19361
19362 case $host_os in
19363 aix3*)
19364   version_type=linux
19365   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19366   shlibpath_var=LIBPATH
19367
19368   # AIX 3 has no versioning support, so we append a major version to the name.
19369   soname_spec='${libname}${release}${shared_ext}$major'
19370   ;;
19371
19372 aix4* | aix5*)
19373   version_type=linux
19374   need_lib_prefix=no
19375   need_version=no
19376   hardcode_into_libs=yes
19377   if test "$host_cpu" = ia64; then
19378     # AIX 5 supports IA64
19379     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19380     shlibpath_var=LD_LIBRARY_PATH
19381   else
19382     # With GCC up to 2.95.x, collect2 would create an import file
19383     # for dependence libraries.  The import file would start with
19384     # the line `#! .'.  This would cause the generated library to
19385     # depend on `.', always an invalid library.  This was fixed in
19386     # development snapshots of GCC prior to 3.0.
19387     case $host_os in
19388       aix4 | aix4.[01] | aix4.[01].*)
19389       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19390            echo ' yes '
19391            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19392         :
19393       else
19394         can_build_shared=no
19395       fi
19396       ;;
19397     esac
19398     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19399     # soname into executable. Probably we can add versioning support to
19400     # collect2, so additional links can be useful in future.
19401     if test "$aix_use_runtimelinking" = yes; then
19402       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19403       # instead of lib<name>.a to let people know that these are not
19404       # typical AIX shared libraries.
19405       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19406     else
19407       # We preserve .a as extension for shared libraries through AIX4.2
19408       # and later when we are not doing run time linking.
19409       library_names_spec='${libname}${release}.a $libname.a'
19410       soname_spec='${libname}${release}${shared_ext}$major'
19411     fi
19412     shlibpath_var=LIBPATH
19413   fi
19414   ;;
19415
19416 amigaos*)
19417   library_names_spec='$libname.ixlibrary $libname.a'
19418   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19419   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
19420   ;;
19421
19422 beos*)
19423   library_names_spec='${libname}${shared_ext}'
19424   dynamic_linker="$host_os ld.so"
19425   shlibpath_var=LIBRARY_PATH
19426   ;;
19427
19428 bsdi[45]*)
19429   version_type=linux
19430   need_version=no
19431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19432   soname_spec='${libname}${release}${shared_ext}$major'
19433   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19434   shlibpath_var=LD_LIBRARY_PATH
19435   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19436   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19437   # the default ld.so.conf also contains /usr/contrib/lib and
19438   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19439   # libtool to hard-code these into programs
19440   ;;
19441
19442 cygwin* | mingw* | pw32*)
19443   version_type=windows
19444   shrext_cmds=".dll"
19445   need_version=no
19446   need_lib_prefix=no
19447
19448   case $GCC,$host_os in
19449   yes,cygwin* | yes,mingw* | yes,pw32*)
19450     library_names_spec='$libname.dll.a'
19451     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19452     postinstall_cmds='base_file=`basename \${file}`~
19453       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19454       dldir=$destdir/`dirname \$dlpath`~
19455       test -d \$dldir || mkdir -p \$dldir~
19456       $install_prog $dir/$dlname \$dldir/$dlname'
19457     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19458       dlpath=$dir/\$dldll~
19459        $rm \$dlpath'
19460     shlibpath_overrides_runpath=yes
19461
19462     case $host_os in
19463     cygwin*)
19464       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19465       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19466       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19467       ;;
19468     mingw*)
19469       # MinGW DLLs use traditional 'lib' prefix
19470       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19471       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19472       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19473         # It is most probably a Windows format PATH printed by
19474         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19475         # path with ; separators, and with drive letters. We can handle the
19476         # drive letters (cygwin fileutils understands them), so leave them,
19477         # especially as we might pass files found there to a mingw objdump,
19478         # which wouldn't understand a cygwinified path. Ahh.
19479         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19480       else
19481         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19482       fi
19483       ;;
19484     pw32*)
19485       # pw32 DLLs use 'pw' prefix rather than 'lib'
19486       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19487       ;;
19488     esac
19489     ;;
19490
19491   *)
19492     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19493     ;;
19494   esac
19495   dynamic_linker='Win32 ld.exe'
19496   # FIXME: first we should search . and the directory the executable is in
19497   shlibpath_var=PATH
19498   ;;
19499
19500 darwin* | rhapsody*)
19501   dynamic_linker="$host_os dyld"
19502   version_type=darwin
19503   need_lib_prefix=no
19504   need_version=no
19505   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19506   soname_spec='${libname}${release}${major}$shared_ext'
19507   shlibpath_overrides_runpath=yes
19508   shlibpath_var=DYLD_LIBRARY_PATH
19509   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19510   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19511   if test "$GCC" = yes; then
19512     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19513   else
19514     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19515   fi
19516   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19517   ;;
19518
19519 dgux*)
19520   version_type=linux
19521   need_lib_prefix=no
19522   need_version=no
19523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19524   soname_spec='${libname}${release}${shared_ext}$major'
19525   shlibpath_var=LD_LIBRARY_PATH
19526   ;;
19527
19528 freebsd1*)
19529   dynamic_linker=no
19530   ;;
19531
19532 kfreebsd*-gnu)
19533   version_type=linux
19534   need_lib_prefix=no
19535   need_version=no
19536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19537   soname_spec='${libname}${release}${shared_ext}$major'
19538   shlibpath_var=LD_LIBRARY_PATH
19539   shlibpath_overrides_runpath=no
19540   hardcode_into_libs=yes
19541   dynamic_linker='GNU ld.so'
19542   ;;
19543
19544 freebsd* | dragonfly*)
19545   # DragonFly does not have aout.  When/if they implement a new
19546   # versioning mechanism, adjust this.
19547   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19548   version_type=freebsd-$objformat
19549   case $version_type in
19550     freebsd-elf*)
19551       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19552       need_version=no
19553       need_lib_prefix=no
19554       ;;
19555     freebsd-*)
19556       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19557       need_version=yes
19558       ;;
19559   esac
19560   shlibpath_var=LD_LIBRARY_PATH
19561   case $host_os in
19562   freebsd2*)
19563     shlibpath_overrides_runpath=yes
19564     ;;
19565   freebsd3.[01]* | freebsdelf3.[01]*)
19566     shlibpath_overrides_runpath=yes
19567     hardcode_into_libs=yes
19568     ;;
19569   *) # from 3.2 on
19570     shlibpath_overrides_runpath=no
19571     hardcode_into_libs=yes
19572     ;;
19573   esac
19574   ;;
19575
19576 gnu*)
19577   version_type=linux
19578   need_lib_prefix=no
19579   need_version=no
19580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19581   soname_spec='${libname}${release}${shared_ext}$major'
19582   shlibpath_var=LD_LIBRARY_PATH
19583   hardcode_into_libs=yes
19584   ;;
19585
19586 hpux9* | hpux10* | hpux11*)
19587   # Give a soname corresponding to the major version so that dld.sl refuses to
19588   # link against other versions.
19589   version_type=sunos
19590   need_lib_prefix=no
19591   need_version=no
19592   case "$host_cpu" in
19593   ia64*)
19594     shrext_cmds='.so'
19595     hardcode_into_libs=yes
19596     dynamic_linker="$host_os dld.so"
19597     shlibpath_var=LD_LIBRARY_PATH
19598     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19599     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19600     soname_spec='${libname}${release}${shared_ext}$major'
19601     if test "X$HPUX_IA64_MODE" = X32; then
19602       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19603     else
19604       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19605     fi
19606     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19607     ;;
19608    hppa*64*)
19609      shrext_cmds='.sl'
19610      hardcode_into_libs=yes
19611      dynamic_linker="$host_os dld.sl"
19612      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19613      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19614      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19615      soname_spec='${libname}${release}${shared_ext}$major'
19616      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19617      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19618      ;;
19619    *)
19620     shrext_cmds='.sl'
19621     dynamic_linker="$host_os dld.sl"
19622     shlibpath_var=SHLIB_PATH
19623     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19624     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19625     soname_spec='${libname}${release}${shared_ext}$major'
19626     ;;
19627   esac
19628   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19629   postinstall_cmds='chmod 555 $lib'
19630   ;;
19631
19632 irix5* | irix6* | nonstopux*)
19633   case $host_os in
19634     nonstopux*) version_type=nonstopux ;;
19635     *)
19636         if test "$lt_cv_prog_gnu_ld" = yes; then
19637                 version_type=linux
19638         else
19639                 version_type=irix
19640         fi ;;
19641   esac
19642   need_lib_prefix=no
19643   need_version=no
19644   soname_spec='${libname}${release}${shared_ext}$major'
19645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19646   case $host_os in
19647   irix5* | nonstopux*)
19648     libsuff= shlibsuff=
19649     ;;
19650   *)
19651     case $LD in # libtool.m4 will add one of these switches to LD
19652     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19653       libsuff= shlibsuff= libmagic=32-bit;;
19654     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19655       libsuff=32 shlibsuff=N32 libmagic=N32;;
19656     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19657       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19658     *) libsuff= shlibsuff= libmagic=never-match;;
19659     esac
19660     ;;
19661   esac
19662   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19663   shlibpath_overrides_runpath=no
19664   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19665   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19666   hardcode_into_libs=yes
19667   ;;
19668
19669 # No shared lib support for Linux oldld, aout, or coff.
19670 linux*oldld* | linux*aout* | linux*coff*)
19671   dynamic_linker=no
19672   ;;
19673
19674 # This must be Linux ELF.
19675 linux*)
19676   version_type=linux
19677   need_lib_prefix=no
19678   need_version=no
19679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19680   soname_spec='${libname}${release}${shared_ext}$major'
19681   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19682   shlibpath_var=LD_LIBRARY_PATH
19683   shlibpath_overrides_runpath=no
19684   # This implies no fast_install, which is unacceptable.
19685   # Some rework will be needed to allow for fast_install
19686   # before this can be enabled.
19687   hardcode_into_libs=yes
19688
19689   # Append ld.so.conf contents to the search path
19690   if test -f /etc/ld.so.conf; then
19691     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19692     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19693   fi
19694
19695   # We used to test for /lib/ld.so.1 and disable shared libraries on
19696   # powerpc, because MkLinux only supported shared libraries with the
19697   # GNU dynamic linker.  Since this was broken with cross compilers,
19698   # most powerpc-linux boxes support dynamic linking these days and
19699   # people can always --disable-shared, the test was removed, and we
19700   # assume the GNU/Linux dynamic linker is in use.
19701   dynamic_linker='GNU/Linux ld.so'
19702   ;;
19703
19704 knetbsd*-gnu)
19705   version_type=linux
19706   need_lib_prefix=no
19707   need_version=no
19708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19709   soname_spec='${libname}${release}${shared_ext}$major'
19710   shlibpath_var=LD_LIBRARY_PATH
19711   shlibpath_overrides_runpath=no
19712   hardcode_into_libs=yes
19713   dynamic_linker='GNU ld.so'
19714   ;;
19715
19716 netbsd*)
19717   version_type=sunos
19718   need_lib_prefix=no
19719   need_version=no
19720   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19721     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19722     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19723     dynamic_linker='NetBSD (a.out) ld.so'
19724   else
19725     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19726     soname_spec='${libname}${release}${shared_ext}$major'
19727     dynamic_linker='NetBSD ld.elf_so'
19728   fi
19729   shlibpath_var=LD_LIBRARY_PATH
19730   shlibpath_overrides_runpath=yes
19731   hardcode_into_libs=yes
19732   ;;
19733
19734 newsos6)
19735   version_type=linux
19736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19737   shlibpath_var=LD_LIBRARY_PATH
19738   shlibpath_overrides_runpath=yes
19739   ;;
19740
19741 nto-qnx*)
19742   version_type=linux
19743   need_lib_prefix=no
19744   need_version=no
19745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19746   soname_spec='${libname}${release}${shared_ext}$major'
19747   shlibpath_var=LD_LIBRARY_PATH
19748   shlibpath_overrides_runpath=yes
19749   ;;
19750
19751 openbsd*)
19752   version_type=sunos
19753   need_lib_prefix=no
19754   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19755   case $host_os in
19756     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19757     *)                         need_version=no  ;;
19758   esac
19759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19760   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19761   shlibpath_var=LD_LIBRARY_PATH
19762   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19763     case $host_os in
19764       openbsd2.[89] | openbsd2.[89].*)
19765         shlibpath_overrides_runpath=no
19766         ;;
19767       *)
19768         shlibpath_overrides_runpath=yes
19769         ;;
19770       esac
19771   else
19772     shlibpath_overrides_runpath=yes
19773   fi
19774   ;;
19775
19776 os2*)
19777   libname_spec='$name'
19778   shrext_cmds=".dll"
19779   need_lib_prefix=no
19780   library_names_spec='$libname${shared_ext} $libname.a'
19781   dynamic_linker='OS/2 ld.exe'
19782   shlibpath_var=LIBPATH
19783   ;;
19784
19785 osf3* | osf4* | osf5*)
19786   version_type=osf
19787   need_lib_prefix=no
19788   need_version=no
19789   soname_spec='${libname}${release}${shared_ext}$major'
19790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19791   shlibpath_var=LD_LIBRARY_PATH
19792   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19793   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19794   ;;
19795
19796 sco3.2v5*)
19797   version_type=osf
19798   soname_spec='${libname}${release}${shared_ext}$major'
19799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19800   shlibpath_var=LD_LIBRARY_PATH
19801   ;;
19802
19803 solaris*)
19804   version_type=linux
19805   need_lib_prefix=no
19806   need_version=no
19807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19808   soname_spec='${libname}${release}${shared_ext}$major'
19809   shlibpath_var=LD_LIBRARY_PATH
19810   shlibpath_overrides_runpath=yes
19811   hardcode_into_libs=yes
19812   # ldd complains unless libraries are executable
19813   postinstall_cmds='chmod +x $lib'
19814   ;;
19815
19816 sunos4*)
19817   version_type=sunos
19818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19819   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19820   shlibpath_var=LD_LIBRARY_PATH
19821   shlibpath_overrides_runpath=yes
19822   if test "$with_gnu_ld" = yes; then
19823     need_lib_prefix=no
19824   fi
19825   need_version=yes
19826   ;;
19827
19828 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19829   version_type=linux
19830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19831   soname_spec='${libname}${release}${shared_ext}$major'
19832   shlibpath_var=LD_LIBRARY_PATH
19833   case $host_vendor in
19834     sni)
19835       shlibpath_overrides_runpath=no
19836       need_lib_prefix=no
19837       export_dynamic_flag_spec='${wl}-Blargedynsym'
19838       runpath_var=LD_RUN_PATH
19839       ;;
19840     siemens)
19841       need_lib_prefix=no
19842       ;;
19843     motorola)
19844       need_lib_prefix=no
19845       need_version=no
19846       shlibpath_overrides_runpath=no
19847       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19848       ;;
19849   esac
19850   ;;
19851
19852 sysv4*MP*)
19853   if test -d /usr/nec ;then
19854     version_type=linux
19855     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19856     soname_spec='$libname${shared_ext}.$major'
19857     shlibpath_var=LD_LIBRARY_PATH
19858   fi
19859   ;;
19860
19861 uts4*)
19862   version_type=linux
19863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19864   soname_spec='${libname}${release}${shared_ext}$major'
19865   shlibpath_var=LD_LIBRARY_PATH
19866   ;;
19867
19868 *)
19869   dynamic_linker=no
19870   ;;
19871 esac
19872 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19873 echo "${ECHO_T}$dynamic_linker" >&6
19874 test "$dynamic_linker" = no && can_build_shared=no
19875
19876 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19877 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19878 hardcode_action_GCJ=
19879 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19880    test -n "$runpath_var_GCJ" || \
19881    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19882
19883   # We can hardcode non-existant directories.
19884   if test "$hardcode_direct_GCJ" != no &&
19885      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19886      # have to relink, otherwise we might link with an installed library
19887      # when we should be linking with a yet-to-be-installed one
19888      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19889      test "$hardcode_minus_L_GCJ" != no; then
19890     # Linking always hardcodes the temporary library directory.
19891     hardcode_action_GCJ=relink
19892   else
19893     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19894     hardcode_action_GCJ=immediate
19895   fi
19896 else
19897   # We cannot hardcode anything, or else we can only hardcode existing
19898   # directories.
19899   hardcode_action_GCJ=unsupported
19900 fi
19901 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19902 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19903
19904 if test "$hardcode_action_GCJ" = relink; then
19905   # Fast installation is not supported
19906   enable_fast_install=no
19907 elif test "$shlibpath_overrides_runpath" = yes ||
19908      test "$enable_shared" = no; then
19909   # Fast installation is not necessary
19910   enable_fast_install=needless
19911 fi
19912
19913 striplib=
19914 old_striplib=
19915 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19916 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19917 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19918   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19919   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19920   echo "$as_me:$LINENO: result: yes" >&5
19921 echo "${ECHO_T}yes" >&6
19922 else
19923 # FIXME - insert some real tests, host_os isn't really good enough
19924   case $host_os in
19925    darwin*)
19926        if test -n "$STRIP" ; then
19927          striplib="$STRIP -x"
19928          echo "$as_me:$LINENO: result: yes" >&5
19929 echo "${ECHO_T}yes" >&6
19930        else
19931   echo "$as_me:$LINENO: result: no" >&5
19932 echo "${ECHO_T}no" >&6
19933 fi
19934        ;;
19935    *)
19936   echo "$as_me:$LINENO: result: no" >&5
19937 echo "${ECHO_T}no" >&6
19938     ;;
19939   esac
19940 fi
19941
19942 if test "x$enable_dlopen" != xyes; then
19943   enable_dlopen=unknown
19944   enable_dlopen_self=unknown
19945   enable_dlopen_self_static=unknown
19946 else
19947   lt_cv_dlopen=no
19948   lt_cv_dlopen_libs=
19949
19950   case $host_os in
19951   beos*)
19952     lt_cv_dlopen="load_add_on"
19953     lt_cv_dlopen_libs=
19954     lt_cv_dlopen_self=yes
19955     ;;
19956
19957   mingw* | pw32*)
19958     lt_cv_dlopen="LoadLibrary"
19959     lt_cv_dlopen_libs=
19960    ;;
19961
19962   cygwin*)
19963     lt_cv_dlopen="dlopen"
19964     lt_cv_dlopen_libs=
19965    ;;
19966
19967   darwin*)
19968   # if libdl is installed we need to link against it
19969     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19970 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19971 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19972   echo $ECHO_N "(cached) $ECHO_C" >&6
19973 else
19974   ac_check_lib_save_LIBS=$LIBS
19975 LIBS="-ldl  $LIBS"
19976 cat >conftest.$ac_ext <<_ACEOF
19977 /* confdefs.h.  */
19978 _ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h.  */
19982
19983 /* Override any gcc2 internal prototype to avoid an error.  */
19984 #ifdef __cplusplus
19985 extern "C"
19986 #endif
19987 /* We use char because int might match the return type of a gcc2
19988    builtin and then its argument prototype would still apply.  */
19989 char dlopen ();
19990 int
19991 main ()
19992 {
19993 dlopen ();
19994   ;
19995   return 0;
19996 }
19997 _ACEOF
19998 rm -f conftest.$ac_objext conftest$ac_exeext
19999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20000   (eval $ac_link) 2>conftest.er1
20001   ac_status=$?
20002   grep -v '^ *+' conftest.er1 >conftest.err
20003   rm -f conftest.er1
20004   cat conftest.err >&5
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); } &&
20007          { ac_try='test -z "$ac_c_werror_flag"
20008                          || test ! -s conftest.err'
20009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010   (eval $ac_try) 2>&5
20011   ac_status=$?
20012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013   (exit $ac_status); }; } &&
20014          { ac_try='test -s conftest$ac_exeext'
20015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016   (eval $ac_try) 2>&5
20017   ac_status=$?
20018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019   (exit $ac_status); }; }; then
20020   ac_cv_lib_dl_dlopen=yes
20021 else
20022   echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20024
20025 ac_cv_lib_dl_dlopen=no
20026 fi
20027 rm -f conftest.err conftest.$ac_objext \
20028       conftest$ac_exeext conftest.$ac_ext
20029 LIBS=$ac_check_lib_save_LIBS
20030 fi
20031 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20032 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20033 if test $ac_cv_lib_dl_dlopen = yes; then
20034   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20035 else
20036
20037     lt_cv_dlopen="dyld"
20038     lt_cv_dlopen_libs=
20039     lt_cv_dlopen_self=yes
20040
20041 fi
20042
20043    ;;
20044
20045   *)
20046     echo "$as_me:$LINENO: checking for shl_load" >&5
20047 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20048 if test "${ac_cv_func_shl_load+set}" = set; then
20049   echo $ECHO_N "(cached) $ECHO_C" >&6
20050 else
20051   cat >conftest.$ac_ext <<_ACEOF
20052 /* confdefs.h.  */
20053 _ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h.  */
20057 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20059 #define shl_load innocuous_shl_load
20060
20061 /* System header to define __stub macros and hopefully few prototypes,
20062     which can conflict with char shl_load (); below.
20063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20064     <limits.h> exists even on freestanding compilers.  */
20065
20066 #ifdef __STDC__
20067 # include <limits.h>
20068 #else
20069 # include <assert.h>
20070 #endif
20071
20072 #undef shl_load
20073
20074 /* Override any gcc2 internal prototype to avoid an error.  */
20075 #ifdef __cplusplus
20076 extern "C"
20077 {
20078 #endif
20079 /* We use char because int might match the return type of a gcc2
20080    builtin and then its argument prototype would still apply.  */
20081 char shl_load ();
20082 /* The GNU C library defines this for functions which it implements
20083     to always fail with ENOSYS.  Some functions are actually named
20084     something starting with __ and the normal name is an alias.  */
20085 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20086 choke me
20087 #else
20088 char (*f) () = shl_load;
20089 #endif
20090 #ifdef __cplusplus
20091 }
20092 #endif
20093
20094 int
20095 main ()
20096 {
20097 return f != shl_load;
20098   ;
20099   return 0;
20100 }
20101 _ACEOF
20102 rm -f conftest.$ac_objext conftest$ac_exeext
20103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20104   (eval $ac_link) 2>conftest.er1
20105   ac_status=$?
20106   grep -v '^ *+' conftest.er1 >conftest.err
20107   rm -f conftest.er1
20108   cat conftest.err >&5
20109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); } &&
20111          { ac_try='test -z "$ac_c_werror_flag"
20112                          || test ! -s conftest.err'
20113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114   (eval $ac_try) 2>&5
20115   ac_status=$?
20116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117   (exit $ac_status); }; } &&
20118          { ac_try='test -s conftest$ac_exeext'
20119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120   (eval $ac_try) 2>&5
20121   ac_status=$?
20122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123   (exit $ac_status); }; }; then
20124   ac_cv_func_shl_load=yes
20125 else
20126   echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20128
20129 ac_cv_func_shl_load=no
20130 fi
20131 rm -f conftest.err conftest.$ac_objext \
20132       conftest$ac_exeext conftest.$ac_ext
20133 fi
20134 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20135 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20136 if test $ac_cv_func_shl_load = yes; then
20137   lt_cv_dlopen="shl_load"
20138 else
20139   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20140 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20141 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20142   echo $ECHO_N "(cached) $ECHO_C" >&6
20143 else
20144   ac_check_lib_save_LIBS=$LIBS
20145 LIBS="-ldld  $LIBS"
20146 cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h.  */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h.  */
20152
20153 /* Override any gcc2 internal prototype to avoid an error.  */
20154 #ifdef __cplusplus
20155 extern "C"
20156 #endif
20157 /* We use char because int might match the return type of a gcc2
20158    builtin and then its argument prototype would still apply.  */
20159 char shl_load ();
20160 int
20161 main ()
20162 {
20163 shl_load ();
20164   ;
20165   return 0;
20166 }
20167 _ACEOF
20168 rm -f conftest.$ac_objext conftest$ac_exeext
20169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20170   (eval $ac_link) 2>conftest.er1
20171   ac_status=$?
20172   grep -v '^ *+' conftest.er1 >conftest.err
20173   rm -f conftest.er1
20174   cat conftest.err >&5
20175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176   (exit $ac_status); } &&
20177          { ac_try='test -z "$ac_c_werror_flag"
20178                          || test ! -s conftest.err'
20179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180   (eval $ac_try) 2>&5
20181   ac_status=$?
20182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183   (exit $ac_status); }; } &&
20184          { ac_try='test -s conftest$ac_exeext'
20185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186   (eval $ac_try) 2>&5
20187   ac_status=$?
20188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189   (exit $ac_status); }; }; then
20190   ac_cv_lib_dld_shl_load=yes
20191 else
20192   echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20194
20195 ac_cv_lib_dld_shl_load=no
20196 fi
20197 rm -f conftest.err conftest.$ac_objext \
20198       conftest$ac_exeext conftest.$ac_ext
20199 LIBS=$ac_check_lib_save_LIBS
20200 fi
20201 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20202 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20203 if test $ac_cv_lib_dld_shl_load = yes; then
20204   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20205 else
20206   echo "$as_me:$LINENO: checking for dlopen" >&5
20207 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20208 if test "${ac_cv_func_dlopen+set}" = set; then
20209   echo $ECHO_N "(cached) $ECHO_C" >&6
20210 else
20211   cat >conftest.$ac_ext <<_ACEOF
20212 /* confdefs.h.  */
20213 _ACEOF
20214 cat confdefs.h >>conftest.$ac_ext
20215 cat >>conftest.$ac_ext <<_ACEOF
20216 /* end confdefs.h.  */
20217 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20218    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20219 #define dlopen innocuous_dlopen
20220
20221 /* System header to define __stub macros and hopefully few prototypes,
20222     which can conflict with char dlopen (); below.
20223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20224     <limits.h> exists even on freestanding compilers.  */
20225
20226 #ifdef __STDC__
20227 # include <limits.h>
20228 #else
20229 # include <assert.h>
20230 #endif
20231
20232 #undef dlopen
20233
20234 /* Override any gcc2 internal prototype to avoid an error.  */
20235 #ifdef __cplusplus
20236 extern "C"
20237 {
20238 #endif
20239 /* We use char because int might match the return type of a gcc2
20240    builtin and then its argument prototype would still apply.  */
20241 char dlopen ();
20242 /* The GNU C library defines this for functions which it implements
20243     to always fail with ENOSYS.  Some functions are actually named
20244     something starting with __ and the normal name is an alias.  */
20245 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20246 choke me
20247 #else
20248 char (*f) () = dlopen;
20249 #endif
20250 #ifdef __cplusplus
20251 }
20252 #endif
20253
20254 int
20255 main ()
20256 {
20257 return f != dlopen;
20258   ;
20259   return 0;
20260 }
20261 _ACEOF
20262 rm -f conftest.$ac_objext conftest$ac_exeext
20263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20264   (eval $ac_link) 2>conftest.er1
20265   ac_status=$?
20266   grep -v '^ *+' conftest.er1 >conftest.err
20267   rm -f conftest.er1
20268   cat conftest.err >&5
20269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270   (exit $ac_status); } &&
20271          { ac_try='test -z "$ac_c_werror_flag"
20272                          || test ! -s conftest.err'
20273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274   (eval $ac_try) 2>&5
20275   ac_status=$?
20276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277   (exit $ac_status); }; } &&
20278          { ac_try='test -s conftest$ac_exeext'
20279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280   (eval $ac_try) 2>&5
20281   ac_status=$?
20282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283   (exit $ac_status); }; }; then
20284   ac_cv_func_dlopen=yes
20285 else
20286   echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20288
20289 ac_cv_func_dlopen=no
20290 fi
20291 rm -f conftest.err conftest.$ac_objext \
20292       conftest$ac_exeext conftest.$ac_ext
20293 fi
20294 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20295 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20296 if test $ac_cv_func_dlopen = yes; then
20297   lt_cv_dlopen="dlopen"
20298 else
20299   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20300 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20301 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20302   echo $ECHO_N "(cached) $ECHO_C" >&6
20303 else
20304   ac_check_lib_save_LIBS=$LIBS
20305 LIBS="-ldl  $LIBS"
20306 cat >conftest.$ac_ext <<_ACEOF
20307 /* confdefs.h.  */
20308 _ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h.  */
20312
20313 /* Override any gcc2 internal prototype to avoid an error.  */
20314 #ifdef __cplusplus
20315 extern "C"
20316 #endif
20317 /* We use char because int might match the return type of a gcc2
20318    builtin and then its argument prototype would still apply.  */
20319 char dlopen ();
20320 int
20321 main ()
20322 {
20323 dlopen ();
20324   ;
20325   return 0;
20326 }
20327 _ACEOF
20328 rm -f conftest.$ac_objext conftest$ac_exeext
20329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20330   (eval $ac_link) 2>conftest.er1
20331   ac_status=$?
20332   grep -v '^ *+' conftest.er1 >conftest.err
20333   rm -f conftest.er1
20334   cat conftest.err >&5
20335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336   (exit $ac_status); } &&
20337          { ac_try='test -z "$ac_c_werror_flag"
20338                          || test ! -s conftest.err'
20339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340   (eval $ac_try) 2>&5
20341   ac_status=$?
20342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343   (exit $ac_status); }; } &&
20344          { ac_try='test -s conftest$ac_exeext'
20345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346   (eval $ac_try) 2>&5
20347   ac_status=$?
20348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349   (exit $ac_status); }; }; then
20350   ac_cv_lib_dl_dlopen=yes
20351 else
20352   echo "$as_me: failed program was:" >&5
20353 sed 's/^/| /' conftest.$ac_ext >&5
20354
20355 ac_cv_lib_dl_dlopen=no
20356 fi
20357 rm -f conftest.err conftest.$ac_objext \
20358       conftest$ac_exeext conftest.$ac_ext
20359 LIBS=$ac_check_lib_save_LIBS
20360 fi
20361 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20362 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20363 if test $ac_cv_lib_dl_dlopen = yes; then
20364   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20365 else
20366   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20367 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20368 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20369   echo $ECHO_N "(cached) $ECHO_C" >&6
20370 else
20371   ac_check_lib_save_LIBS=$LIBS
20372 LIBS="-lsvld  $LIBS"
20373 cat >conftest.$ac_ext <<_ACEOF
20374 /* confdefs.h.  */
20375 _ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h.  */
20379
20380 /* Override any gcc2 internal prototype to avoid an error.  */
20381 #ifdef __cplusplus
20382 extern "C"
20383 #endif
20384 /* We use char because int might match the return type of a gcc2
20385    builtin and then its argument prototype would still apply.  */
20386 char dlopen ();
20387 int
20388 main ()
20389 {
20390 dlopen ();
20391   ;
20392   return 0;
20393 }
20394 _ACEOF
20395 rm -f conftest.$ac_objext conftest$ac_exeext
20396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20397   (eval $ac_link) 2>conftest.er1
20398   ac_status=$?
20399   grep -v '^ *+' conftest.er1 >conftest.err
20400   rm -f conftest.er1
20401   cat conftest.err >&5
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); } &&
20404          { ac_try='test -z "$ac_c_werror_flag"
20405                          || test ! -s conftest.err'
20406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407   (eval $ac_try) 2>&5
20408   ac_status=$?
20409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410   (exit $ac_status); }; } &&
20411          { ac_try='test -s conftest$ac_exeext'
20412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413   (eval $ac_try) 2>&5
20414   ac_status=$?
20415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416   (exit $ac_status); }; }; then
20417   ac_cv_lib_svld_dlopen=yes
20418 else
20419   echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20421
20422 ac_cv_lib_svld_dlopen=no
20423 fi
20424 rm -f conftest.err conftest.$ac_objext \
20425       conftest$ac_exeext conftest.$ac_ext
20426 LIBS=$ac_check_lib_save_LIBS
20427 fi
20428 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20429 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20430 if test $ac_cv_lib_svld_dlopen = yes; then
20431   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20432 else
20433   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20434 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20435 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20436   echo $ECHO_N "(cached) $ECHO_C" >&6
20437 else
20438   ac_check_lib_save_LIBS=$LIBS
20439 LIBS="-ldld  $LIBS"
20440 cat >conftest.$ac_ext <<_ACEOF
20441 /* confdefs.h.  */
20442 _ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h.  */
20446
20447 /* Override any gcc2 internal prototype to avoid an error.  */
20448 #ifdef __cplusplus
20449 extern "C"
20450 #endif
20451 /* We use char because int might match the return type of a gcc2
20452    builtin and then its argument prototype would still apply.  */
20453 char dld_link ();
20454 int
20455 main ()
20456 {
20457 dld_link ();
20458   ;
20459   return 0;
20460 }
20461 _ACEOF
20462 rm -f conftest.$ac_objext conftest$ac_exeext
20463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20464   (eval $ac_link) 2>conftest.er1
20465   ac_status=$?
20466   grep -v '^ *+' conftest.er1 >conftest.err
20467   rm -f conftest.er1
20468   cat conftest.err >&5
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); } &&
20471          { ac_try='test -z "$ac_c_werror_flag"
20472                          || test ! -s conftest.err'
20473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474   (eval $ac_try) 2>&5
20475   ac_status=$?
20476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477   (exit $ac_status); }; } &&
20478          { ac_try='test -s conftest$ac_exeext'
20479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20480   (eval $ac_try) 2>&5
20481   ac_status=$?
20482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483   (exit $ac_status); }; }; then
20484   ac_cv_lib_dld_dld_link=yes
20485 else
20486   echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20488
20489 ac_cv_lib_dld_dld_link=no
20490 fi
20491 rm -f conftest.err conftest.$ac_objext \
20492       conftest$ac_exeext conftest.$ac_ext
20493 LIBS=$ac_check_lib_save_LIBS
20494 fi
20495 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20496 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20497 if test $ac_cv_lib_dld_dld_link = yes; then
20498   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20499 fi
20500
20501
20502 fi
20503
20504
20505 fi
20506
20507
20508 fi
20509
20510
20511 fi
20512
20513
20514 fi
20515
20516     ;;
20517   esac
20518
20519   if test "x$lt_cv_dlopen" != xno; then
20520     enable_dlopen=yes
20521   else
20522     enable_dlopen=no
20523   fi
20524
20525   case $lt_cv_dlopen in
20526   dlopen)
20527     save_CPPFLAGS="$CPPFLAGS"
20528     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20529
20530     save_LDFLAGS="$LDFLAGS"
20531     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20532
20533     save_LIBS="$LIBS"
20534     LIBS="$lt_cv_dlopen_libs $LIBS"
20535
20536     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20537 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20538 if test "${lt_cv_dlopen_self+set}" = set; then
20539   echo $ECHO_N "(cached) $ECHO_C" >&6
20540 else
20541           if test "$cross_compiling" = yes; then :
20542   lt_cv_dlopen_self=cross
20543 else
20544   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20545   lt_status=$lt_dlunknown
20546   cat > conftest.$ac_ext <<EOF
20547 #line 20547 "configure"
20548 #include "confdefs.h"
20549
20550 #if HAVE_DLFCN_H
20551 #include <dlfcn.h>
20552 #endif
20553
20554 #include <stdio.h>
20555
20556 #ifdef RTLD_GLOBAL
20557 #  define LT_DLGLOBAL           RTLD_GLOBAL
20558 #else
20559 #  ifdef DL_GLOBAL
20560 #    define LT_DLGLOBAL         DL_GLOBAL
20561 #  else
20562 #    define LT_DLGLOBAL         0
20563 #  endif
20564 #endif
20565
20566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20567    find out it does not work in some platform. */
20568 #ifndef LT_DLLAZY_OR_NOW
20569 #  ifdef RTLD_LAZY
20570 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20571 #  else
20572 #    ifdef DL_LAZY
20573 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20574 #    else
20575 #      ifdef RTLD_NOW
20576 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20577 #      else
20578 #        ifdef DL_NOW
20579 #          define LT_DLLAZY_OR_NOW      DL_NOW
20580 #        else
20581 #          define LT_DLLAZY_OR_NOW      0
20582 #        endif
20583 #      endif
20584 #    endif
20585 #  endif
20586 #endif
20587
20588 #ifdef __cplusplus
20589 extern "C" void exit (int);
20590 #endif
20591
20592 void fnord() { int i=42;}
20593 int main ()
20594 {
20595   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20596   int status = $lt_dlunknown;
20597
20598   if (self)
20599     {
20600       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20601       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20602       /* dlclose (self); */
20603     }
20604
20605     exit (status);
20606 }
20607 EOF
20608   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20609   (eval $ac_link) 2>&5
20610   ac_status=$?
20611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20613     (./conftest; exit; ) 2>/dev/null
20614     lt_status=$?
20615     case x$lt_status in
20616       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20617       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20618       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20619     esac
20620   else :
20621     # compilation failed
20622     lt_cv_dlopen_self=no
20623   fi
20624 fi
20625 rm -fr conftest*
20626
20627
20628 fi
20629 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20630 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20631
20632     if test "x$lt_cv_dlopen_self" = xyes; then
20633       LDFLAGS="$LDFLAGS $link_static_flag"
20634       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20635 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20636 if test "${lt_cv_dlopen_self_static+set}" = set; then
20637   echo $ECHO_N "(cached) $ECHO_C" >&6
20638 else
20639           if test "$cross_compiling" = yes; then :
20640   lt_cv_dlopen_self_static=cross
20641 else
20642   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20643   lt_status=$lt_dlunknown
20644   cat > conftest.$ac_ext <<EOF
20645 #line 20645 "configure"
20646 #include "confdefs.h"
20647
20648 #if HAVE_DLFCN_H
20649 #include <dlfcn.h>
20650 #endif
20651
20652 #include <stdio.h>
20653
20654 #ifdef RTLD_GLOBAL
20655 #  define LT_DLGLOBAL           RTLD_GLOBAL
20656 #else
20657 #  ifdef DL_GLOBAL
20658 #    define LT_DLGLOBAL         DL_GLOBAL
20659 #  else
20660 #    define LT_DLGLOBAL         0
20661 #  endif
20662 #endif
20663
20664 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20665    find out it does not work in some platform. */
20666 #ifndef LT_DLLAZY_OR_NOW
20667 #  ifdef RTLD_LAZY
20668 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20669 #  else
20670 #    ifdef DL_LAZY
20671 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20672 #    else
20673 #      ifdef RTLD_NOW
20674 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20675 #      else
20676 #        ifdef DL_NOW
20677 #          define LT_DLLAZY_OR_NOW      DL_NOW
20678 #        else
20679 #          define LT_DLLAZY_OR_NOW      0
20680 #        endif
20681 #      endif
20682 #    endif
20683 #  endif
20684 #endif
20685
20686 #ifdef __cplusplus
20687 extern "C" void exit (int);
20688 #endif
20689
20690 void fnord() { int i=42;}
20691 int main ()
20692 {
20693   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20694   int status = $lt_dlunknown;
20695
20696   if (self)
20697     {
20698       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20699       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20700       /* dlclose (self); */
20701     }
20702
20703     exit (status);
20704 }
20705 EOF
20706   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20707   (eval $ac_link) 2>&5
20708   ac_status=$?
20709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20711     (./conftest; exit; ) 2>/dev/null
20712     lt_status=$?
20713     case x$lt_status in
20714       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20715       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20716       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20717     esac
20718   else :
20719     # compilation failed
20720     lt_cv_dlopen_self_static=no
20721   fi
20722 fi
20723 rm -fr conftest*
20724
20725
20726 fi
20727 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20728 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20729     fi
20730
20731     CPPFLAGS="$save_CPPFLAGS"
20732     LDFLAGS="$save_LDFLAGS"
20733     LIBS="$save_LIBS"
20734     ;;
20735   esac
20736
20737   case $lt_cv_dlopen_self in
20738   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20739   *) enable_dlopen_self=unknown ;;
20740   esac
20741
20742   case $lt_cv_dlopen_self_static in
20743   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20744   *) enable_dlopen_self_static=unknown ;;
20745   esac
20746 fi
20747
20748
20749 # The else clause should only fire when bootstrapping the
20750 # libtool distribution, otherwise you forgot to ship ltmain.sh
20751 # with your package, and you will get complaints that there are
20752 # no rules to generate ltmain.sh.
20753 if test -f "$ltmain"; then
20754   # See if we are running on zsh, and set the options which allow our commands through
20755   # without removal of \ escapes.
20756   if test -n "${ZSH_VERSION+set}" ; then
20757     setopt NO_GLOB_SUBST
20758   fi
20759   # Now quote all the things that may contain metacharacters while being
20760   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20761   # variables and quote the copies for generation of the libtool script.
20762   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20763     SED SHELL STRIP \
20764     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20765     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20766     deplibs_check_method reload_flag reload_cmds need_locks \
20767     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20768     lt_cv_sys_global_symbol_to_c_name_address \
20769     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20770     old_postinstall_cmds old_postuninstall_cmds \
20771     compiler_GCJ \
20772     CC_GCJ \
20773     LD_GCJ \
20774     lt_prog_compiler_wl_GCJ \
20775     lt_prog_compiler_pic_GCJ \
20776     lt_prog_compiler_static_GCJ \
20777     lt_prog_compiler_no_builtin_flag_GCJ \
20778     export_dynamic_flag_spec_GCJ \
20779     thread_safe_flag_spec_GCJ \
20780     whole_archive_flag_spec_GCJ \
20781     enable_shared_with_static_runtimes_GCJ \
20782     old_archive_cmds_GCJ \
20783     old_archive_from_new_cmds_GCJ \
20784     predep_objects_GCJ \
20785     postdep_objects_GCJ \
20786     predeps_GCJ \
20787     postdeps_GCJ \
20788     compiler_lib_search_path_GCJ \
20789     archive_cmds_GCJ \
20790     archive_expsym_cmds_GCJ \
20791     postinstall_cmds_GCJ \
20792     postuninstall_cmds_GCJ \
20793     old_archive_from_expsyms_cmds_GCJ \
20794     allow_undefined_flag_GCJ \
20795     no_undefined_flag_GCJ \
20796     export_symbols_cmds_GCJ \
20797     hardcode_libdir_flag_spec_GCJ \
20798     hardcode_libdir_flag_spec_ld_GCJ \
20799     hardcode_libdir_separator_GCJ \
20800     hardcode_automatic_GCJ \
20801     module_cmds_GCJ \
20802     module_expsym_cmds_GCJ \
20803     lt_cv_prog_compiler_c_o_GCJ \
20804     exclude_expsyms_GCJ \
20805     include_expsyms_GCJ; do
20806
20807     case $var in
20808     old_archive_cmds_GCJ | \
20809     old_archive_from_new_cmds_GCJ | \
20810     archive_cmds_GCJ | \
20811     archive_expsym_cmds_GCJ | \
20812     module_cmds_GCJ | \
20813     module_expsym_cmds_GCJ | \
20814     old_archive_from_expsyms_cmds_GCJ | \
20815     export_symbols_cmds_GCJ | \
20816     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20817     postinstall_cmds | postuninstall_cmds | \
20818     old_postinstall_cmds | old_postuninstall_cmds | \
20819     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20820       # Double-quote double-evaled strings.
20821       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20822       ;;
20823     *)
20824       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20825       ;;
20826     esac
20827   done
20828
20829   case $lt_echo in
20830   *'\$0 --fallback-echo"')
20831     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20832     ;;
20833   esac
20834
20835 cfgfile="$ofile"
20836
20837   cat <<__EOF__ >> "$cfgfile"
20838 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20839
20840 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20841
20842 # Shell to use when invoking shell scripts.
20843 SHELL=$lt_SHELL
20844
20845 # Whether or not to build shared libraries.
20846 build_libtool_libs=$enable_shared
20847
20848 # Whether or not to build static libraries.
20849 build_old_libs=$enable_static
20850
20851 # Whether or not to add -lc for building shared libraries.
20852 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20853
20854 # Whether or not to disallow shared libs when runtime libs are static
20855 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20856
20857 # Whether or not to optimize for fast installation.
20858 fast_install=$enable_fast_install
20859
20860 # The host system.
20861 host_alias=$host_alias
20862 host=$host
20863 host_os=$host_os
20864
20865 # The build system.
20866 build_alias=$build_alias
20867 build=$build
20868 build_os=$build_os
20869
20870 # An echo program that does not interpret backslashes.
20871 echo=$lt_echo
20872
20873 # The archiver.
20874 AR=$lt_AR
20875 AR_FLAGS=$lt_AR_FLAGS
20876
20877 # A C compiler.
20878 LTCC=$lt_LTCC
20879
20880 # A language-specific compiler.
20881 CC=$lt_compiler_GCJ
20882
20883 # Is the compiler the GNU C compiler?
20884 with_gcc=$GCC_GCJ
20885
20886 # An ERE matcher.
20887 EGREP=$lt_EGREP
20888
20889 # The linker used to build libraries.
20890 LD=$lt_LD_GCJ
20891
20892 # Whether we need hard or soft links.
20893 LN_S=$lt_LN_S
20894
20895 # A BSD-compatible nm program.
20896 NM=$lt_NM
20897
20898 # A symbol stripping program
20899 STRIP=$lt_STRIP
20900
20901 # Used to examine libraries when file_magic_cmd begins "file"
20902 MAGIC_CMD=$MAGIC_CMD
20903
20904 # Used on cygwin: DLL creation program.
20905 DLLTOOL="$DLLTOOL"
20906
20907 # Used on cygwin: object dumper.
20908 OBJDUMP="$OBJDUMP"
20909
20910 # Used on cygwin: assembler.
20911 AS="$AS"
20912
20913 # The name of the directory that contains temporary libtool files.
20914 objdir=$objdir
20915
20916 # How to create reloadable object files.
20917 reload_flag=$lt_reload_flag
20918 reload_cmds=$lt_reload_cmds
20919
20920 # How to pass a linker flag through the compiler.
20921 wl=$lt_lt_prog_compiler_wl_GCJ
20922
20923 # Object file suffix (normally "o").
20924 objext="$ac_objext"
20925
20926 # Old archive suffix (normally "a").
20927 libext="$libext"
20928
20929 # Shared library suffix (normally ".so").
20930 shrext_cmds='$shrext_cmds'
20931
20932 # Executable file suffix (normally "").
20933 exeext="$exeext"
20934
20935 # Additional compiler flags for building library objects.
20936 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20937 pic_mode=$pic_mode
20938
20939 # What is the maximum length of a command?
20940 max_cmd_len=$lt_cv_sys_max_cmd_len
20941
20942 # Does compiler simultaneously support -c and -o options?
20943 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20944
20945 # Must we lock files when doing compilation?
20946 need_locks=$lt_need_locks
20947
20948 # Do we need the lib prefix for modules?
20949 need_lib_prefix=$need_lib_prefix
20950
20951 # Do we need a version for libraries?
20952 need_version=$need_version
20953
20954 # Whether dlopen is supported.
20955 dlopen_support=$enable_dlopen
20956
20957 # Whether dlopen of programs is supported.
20958 dlopen_self=$enable_dlopen_self
20959
20960 # Whether dlopen of statically linked programs is supported.
20961 dlopen_self_static=$enable_dlopen_self_static
20962
20963 # Compiler flag to prevent dynamic linking.
20964 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20965
20966 # Compiler flag to turn off builtin functions.
20967 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20968
20969 # Compiler flag to allow reflexive dlopens.
20970 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20971
20972 # Compiler flag to generate shared objects directly from archives.
20973 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20974
20975 # Compiler flag to generate thread-safe objects.
20976 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20977
20978 # Library versioning type.
20979 version_type=$version_type
20980
20981 # Format of library name prefix.
20982 libname_spec=$lt_libname_spec
20983
20984 # List of archive names.  First name is the real one, the rest are links.
20985 # The last name is the one that the linker finds with -lNAME.
20986 library_names_spec=$lt_library_names_spec
20987
20988 # The coded name of the library, if different from the real name.
20989 soname_spec=$lt_soname_spec
20990
20991 # Commands used to build and install an old-style archive.
20992 RANLIB=$lt_RANLIB
20993 old_archive_cmds=$lt_old_archive_cmds_GCJ
20994 old_postinstall_cmds=$lt_old_postinstall_cmds
20995 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20996
20997 # Create an old-style archive from a shared archive.
20998 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20999
21000 # Create a temporary old-style archive to link instead of a shared archive.
21001 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21002
21003 # Commands used to build and install a shared archive.
21004 archive_cmds=$lt_archive_cmds_GCJ
21005 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21006 postinstall_cmds=$lt_postinstall_cmds
21007 postuninstall_cmds=$lt_postuninstall_cmds
21008
21009 # Commands used to build a loadable module (assumed same as above if empty)
21010 module_cmds=$lt_module_cmds_GCJ
21011 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21012
21013 # Commands to strip libraries.
21014 old_striplib=$lt_old_striplib
21015 striplib=$lt_striplib
21016
21017 # Dependencies to place before the objects being linked to create a
21018 # shared library.
21019 predep_objects=$lt_predep_objects_GCJ
21020
21021 # Dependencies to place after the objects being linked to create a
21022 # shared library.
21023 postdep_objects=$lt_postdep_objects_GCJ
21024
21025 # Dependencies to place before the objects being linked to create a
21026 # shared library.
21027 predeps=$lt_predeps_GCJ
21028
21029 # Dependencies to place after the objects being linked to create a
21030 # shared library.
21031 postdeps=$lt_postdeps_GCJ
21032
21033 # The library search path used internally by the compiler when linking
21034 # a shared library.
21035 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21036
21037 # Method to check whether dependent libraries are shared objects.
21038 deplibs_check_method=$lt_deplibs_check_method
21039
21040 # Command to use when deplibs_check_method == file_magic.
21041 file_magic_cmd=$lt_file_magic_cmd
21042
21043 # Flag that allows shared libraries with undefined symbols to be built.
21044 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21045
21046 # Flag that forces no undefined symbols.
21047 no_undefined_flag=$lt_no_undefined_flag_GCJ
21048
21049 # Commands used to finish a libtool library installation in a directory.
21050 finish_cmds=$lt_finish_cmds
21051
21052 # Same as above, but a single script fragment to be evaled but not shown.
21053 finish_eval=$lt_finish_eval
21054
21055 # Take the output of nm and produce a listing of raw symbols and C names.
21056 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21057
21058 # Transform the output of nm in a proper C declaration
21059 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21060
21061 # Transform the output of nm in a C name address pair
21062 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21063
21064 # This is the shared library runtime path variable.
21065 runpath_var=$runpath_var
21066
21067 # This is the shared library path variable.
21068 shlibpath_var=$shlibpath_var
21069
21070 # Is shlibpath searched before the hard-coded library search path?
21071 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21072
21073 # How to hardcode a shared library path into an executable.
21074 hardcode_action=$hardcode_action_GCJ
21075
21076 # Whether we should hardcode library paths into libraries.
21077 hardcode_into_libs=$hardcode_into_libs
21078
21079 # Flag to hardcode \$libdir into a binary during linking.
21080 # This must work even if \$libdir does not exist.
21081 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21082
21083 # If ld is used when linking, flag to hardcode \$libdir into
21084 # a binary during linking. This must work even if \$libdir does
21085 # not exist.
21086 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21087
21088 # Whether we need a single -rpath flag with a separated argument.
21089 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21090
21091 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21092 # resulting binary.
21093 hardcode_direct=$hardcode_direct_GCJ
21094
21095 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21096 # resulting binary.
21097 hardcode_minus_L=$hardcode_minus_L_GCJ
21098
21099 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21100 # the resulting binary.
21101 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21102
21103 # Set to yes if building a shared library automatically hardcodes DIR into the library
21104 # and all subsequent libraries and executables linked against it.
21105 hardcode_automatic=$hardcode_automatic_GCJ
21106
21107 # Variables whose values should be saved in libtool wrapper scripts and
21108 # restored at relink time.
21109 variables_saved_for_relink="$variables_saved_for_relink"
21110
21111 # Whether libtool must link a program against all its dependency libraries.
21112 link_all_deplibs=$link_all_deplibs_GCJ
21113
21114 # Compile-time system search path for libraries
21115 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21116
21117 # Run-time system search path for libraries
21118 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21119
21120 # Fix the shell variable \$srcfile for the compiler.
21121 fix_srcfile_path="$fix_srcfile_path_GCJ"
21122
21123 # Set to yes if exported symbols are required.
21124 always_export_symbols=$always_export_symbols_GCJ
21125
21126 # The commands to list exported symbols.
21127 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21128
21129 # The commands to extract the exported symbol list from a shared archive.
21130 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21131
21132 # Symbols that should not be listed in the preloaded symbols.
21133 exclude_expsyms=$lt_exclude_expsyms_GCJ
21134
21135 # Symbols that must always be exported.
21136 include_expsyms=$lt_include_expsyms_GCJ
21137
21138 # ### END LIBTOOL TAG CONFIG: $tagname
21139
21140 __EOF__
21141
21142
21143 else
21144   # If there is no Makefile yet, we rely on a make rule to execute
21145   # `config.status --recheck' to rerun these tests and create the
21146   # libtool script then.
21147   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21148   if test -f "$ltmain_in"; then
21149     test -f Makefile && make "$ltmain"
21150   fi
21151 fi
21152
21153
21154 ac_ext=c
21155 ac_cpp='$CPP $CPPFLAGS'
21156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21159
21160 CC="$lt_save_CC"
21161
21162         else
21163           tagname=""
21164         fi
21165         ;;
21166
21167       RC)
21168
21169
21170
21171 # Source file extension for RC test sources.
21172 ac_ext=rc
21173
21174 # Object file extension for compiled RC test sources.
21175 objext=o
21176 objext_RC=$objext
21177
21178 # Code to be used in simple compile tests
21179 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21180
21181 # Code to be used in simple link tests
21182 lt_simple_link_test_code="$lt_simple_compile_test_code"
21183
21184 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21185
21186 # If no C compiler was specified, use CC.
21187 LTCC=${LTCC-"$CC"}
21188
21189 # Allow CC to be a program name with arguments.
21190 compiler=$CC
21191
21192
21193 # save warnings/boilerplate of simple test code
21194 ac_outfile=conftest.$ac_objext
21195 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21196 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21197 _lt_compiler_boilerplate=`cat conftest.err`
21198 $rm conftest*
21199
21200 ac_outfile=conftest.$ac_objext
21201 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21202 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21203 _lt_linker_boilerplate=`cat conftest.err`
21204 $rm conftest*
21205
21206
21207 # Allow CC to be a program name with arguments.
21208 lt_save_CC="$CC"
21209 CC=${RC-"windres"}
21210 compiler=$CC
21211 compiler_RC=$CC
21212 for cc_temp in $compiler""; do
21213   case $cc_temp in
21214     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21215     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21216     \-*) ;;
21217     *) break;;
21218   esac
21219 done
21220 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21221
21222 lt_cv_prog_compiler_c_o_RC=yes
21223
21224 # The else clause should only fire when bootstrapping the
21225 # libtool distribution, otherwise you forgot to ship ltmain.sh
21226 # with your package, and you will get complaints that there are
21227 # no rules to generate ltmain.sh.
21228 if test -f "$ltmain"; then
21229   # See if we are running on zsh, and set the options which allow our commands through
21230   # without removal of \ escapes.
21231   if test -n "${ZSH_VERSION+set}" ; then
21232     setopt NO_GLOB_SUBST
21233   fi
21234   # Now quote all the things that may contain metacharacters while being
21235   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21236   # variables and quote the copies for generation of the libtool script.
21237   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21238     SED SHELL STRIP \
21239     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21240     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21241     deplibs_check_method reload_flag reload_cmds need_locks \
21242     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21243     lt_cv_sys_global_symbol_to_c_name_address \
21244     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21245     old_postinstall_cmds old_postuninstall_cmds \
21246     compiler_RC \
21247     CC_RC \
21248     LD_RC \
21249     lt_prog_compiler_wl_RC \
21250     lt_prog_compiler_pic_RC \
21251     lt_prog_compiler_static_RC \
21252     lt_prog_compiler_no_builtin_flag_RC \
21253     export_dynamic_flag_spec_RC \
21254     thread_safe_flag_spec_RC \
21255     whole_archive_flag_spec_RC \
21256     enable_shared_with_static_runtimes_RC \
21257     old_archive_cmds_RC \
21258     old_archive_from_new_cmds_RC \
21259     predep_objects_RC \
21260     postdep_objects_RC \
21261     predeps_RC \
21262     postdeps_RC \
21263     compiler_lib_search_path_RC \
21264     archive_cmds_RC \
21265     archive_expsym_cmds_RC \
21266     postinstall_cmds_RC \
21267     postuninstall_cmds_RC \
21268     old_archive_from_expsyms_cmds_RC \
21269     allow_undefined_flag_RC \
21270     no_undefined_flag_RC \
21271     export_symbols_cmds_RC \
21272     hardcode_libdir_flag_spec_RC \
21273     hardcode_libdir_flag_spec_ld_RC \
21274     hardcode_libdir_separator_RC \
21275     hardcode_automatic_RC \
21276     module_cmds_RC \
21277     module_expsym_cmds_RC \
21278     lt_cv_prog_compiler_c_o_RC \
21279     exclude_expsyms_RC \
21280     include_expsyms_RC; do
21281
21282     case $var in
21283     old_archive_cmds_RC | \
21284     old_archive_from_new_cmds_RC | \
21285     archive_cmds_RC | \
21286     archive_expsym_cmds_RC | \
21287     module_cmds_RC | \
21288     module_expsym_cmds_RC | \
21289     old_archive_from_expsyms_cmds_RC | \
21290     export_symbols_cmds_RC | \
21291     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21292     postinstall_cmds | postuninstall_cmds | \
21293     old_postinstall_cmds | old_postuninstall_cmds | \
21294     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21295       # Double-quote double-evaled strings.
21296       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21297       ;;
21298     *)
21299       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21300       ;;
21301     esac
21302   done
21303
21304   case $lt_echo in
21305   *'\$0 --fallback-echo"')
21306     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21307     ;;
21308   esac
21309
21310 cfgfile="$ofile"
21311
21312   cat <<__EOF__ >> "$cfgfile"
21313 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21314
21315 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21316
21317 # Shell to use when invoking shell scripts.
21318 SHELL=$lt_SHELL
21319
21320 # Whether or not to build shared libraries.
21321 build_libtool_libs=$enable_shared
21322
21323 # Whether or not to build static libraries.
21324 build_old_libs=$enable_static
21325
21326 # Whether or not to add -lc for building shared libraries.
21327 build_libtool_need_lc=$archive_cmds_need_lc_RC
21328
21329 # Whether or not to disallow shared libs when runtime libs are static
21330 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21331
21332 # Whether or not to optimize for fast installation.
21333 fast_install=$enable_fast_install
21334
21335 # The host system.
21336 host_alias=$host_alias
21337 host=$host
21338 host_os=$host_os
21339
21340 # The build system.
21341 build_alias=$build_alias
21342 build=$build
21343 build_os=$build_os
21344
21345 # An echo program that does not interpret backslashes.
21346 echo=$lt_echo
21347
21348 # The archiver.
21349 AR=$lt_AR
21350 AR_FLAGS=$lt_AR_FLAGS
21351
21352 # A C compiler.
21353 LTCC=$lt_LTCC
21354
21355 # A language-specific compiler.
21356 CC=$lt_compiler_RC
21357
21358 # Is the compiler the GNU C compiler?
21359 with_gcc=$GCC_RC
21360
21361 # An ERE matcher.
21362 EGREP=$lt_EGREP
21363
21364 # The linker used to build libraries.
21365 LD=$lt_LD_RC
21366
21367 # Whether we need hard or soft links.
21368 LN_S=$lt_LN_S
21369
21370 # A BSD-compatible nm program.
21371 NM=$lt_NM
21372
21373 # A symbol stripping program
21374 STRIP=$lt_STRIP
21375
21376 # Used to examine libraries when file_magic_cmd begins "file"
21377 MAGIC_CMD=$MAGIC_CMD
21378
21379 # Used on cygwin: DLL creation program.
21380 DLLTOOL="$DLLTOOL"
21381
21382 # Used on cygwin: object dumper.
21383 OBJDUMP="$OBJDUMP"
21384
21385 # Used on cygwin: assembler.
21386 AS="$AS"
21387
21388 # The name of the directory that contains temporary libtool files.
21389 objdir=$objdir
21390
21391 # How to create reloadable object files.
21392 reload_flag=$lt_reload_flag
21393 reload_cmds=$lt_reload_cmds
21394
21395 # How to pass a linker flag through the compiler.
21396 wl=$lt_lt_prog_compiler_wl_RC
21397
21398 # Object file suffix (normally "o").
21399 objext="$ac_objext"
21400
21401 # Old archive suffix (normally "a").
21402 libext="$libext"
21403
21404 # Shared library suffix (normally ".so").
21405 shrext_cmds='$shrext_cmds'
21406
21407 # Executable file suffix (normally "").
21408 exeext="$exeext"
21409
21410 # Additional compiler flags for building library objects.
21411 pic_flag=$lt_lt_prog_compiler_pic_RC
21412 pic_mode=$pic_mode
21413
21414 # What is the maximum length of a command?
21415 max_cmd_len=$lt_cv_sys_max_cmd_len
21416
21417 # Does compiler simultaneously support -c and -o options?
21418 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21419
21420 # Must we lock files when doing compilation?
21421 need_locks=$lt_need_locks
21422
21423 # Do we need the lib prefix for modules?
21424 need_lib_prefix=$need_lib_prefix
21425
21426 # Do we need a version for libraries?
21427 need_version=$need_version
21428
21429 # Whether dlopen is supported.
21430 dlopen_support=$enable_dlopen
21431
21432 # Whether dlopen of programs is supported.
21433 dlopen_self=$enable_dlopen_self
21434
21435 # Whether dlopen of statically linked programs is supported.
21436 dlopen_self_static=$enable_dlopen_self_static
21437
21438 # Compiler flag to prevent dynamic linking.
21439 link_static_flag=$lt_lt_prog_compiler_static_RC
21440
21441 # Compiler flag to turn off builtin functions.
21442 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21443
21444 # Compiler flag to allow reflexive dlopens.
21445 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21446
21447 # Compiler flag to generate shared objects directly from archives.
21448 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21449
21450 # Compiler flag to generate thread-safe objects.
21451 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21452
21453 # Library versioning type.
21454 version_type=$version_type
21455
21456 # Format of library name prefix.
21457 libname_spec=$lt_libname_spec
21458
21459 # List of archive names.  First name is the real one, the rest are links.
21460 # The last name is the one that the linker finds with -lNAME.
21461 library_names_spec=$lt_library_names_spec
21462
21463 # The coded name of the library, if different from the real name.
21464 soname_spec=$lt_soname_spec
21465
21466 # Commands used to build and install an old-style archive.
21467 RANLIB=$lt_RANLIB
21468 old_archive_cmds=$lt_old_archive_cmds_RC
21469 old_postinstall_cmds=$lt_old_postinstall_cmds
21470 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21471
21472 # Create an old-style archive from a shared archive.
21473 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21474
21475 # Create a temporary old-style archive to link instead of a shared archive.
21476 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21477
21478 # Commands used to build and install a shared archive.
21479 archive_cmds=$lt_archive_cmds_RC
21480 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21481 postinstall_cmds=$lt_postinstall_cmds
21482 postuninstall_cmds=$lt_postuninstall_cmds
21483
21484 # Commands used to build a loadable module (assumed same as above if empty)
21485 module_cmds=$lt_module_cmds_RC
21486 module_expsym_cmds=$lt_module_expsym_cmds_RC
21487
21488 # Commands to strip libraries.
21489 old_striplib=$lt_old_striplib
21490 striplib=$lt_striplib
21491
21492 # Dependencies to place before the objects being linked to create a
21493 # shared library.
21494 predep_objects=$lt_predep_objects_RC
21495
21496 # Dependencies to place after the objects being linked to create a
21497 # shared library.
21498 postdep_objects=$lt_postdep_objects_RC
21499
21500 # Dependencies to place before the objects being linked to create a
21501 # shared library.
21502 predeps=$lt_predeps_RC
21503
21504 # Dependencies to place after the objects being linked to create a
21505 # shared library.
21506 postdeps=$lt_postdeps_RC
21507
21508 # The library search path used internally by the compiler when linking
21509 # a shared library.
21510 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21511
21512 # Method to check whether dependent libraries are shared objects.
21513 deplibs_check_method=$lt_deplibs_check_method
21514
21515 # Command to use when deplibs_check_method == file_magic.
21516 file_magic_cmd=$lt_file_magic_cmd
21517
21518 # Flag that allows shared libraries with undefined symbols to be built.
21519 allow_undefined_flag=$lt_allow_undefined_flag_RC
21520
21521 # Flag that forces no undefined symbols.
21522 no_undefined_flag=$lt_no_undefined_flag_RC
21523
21524 # Commands used to finish a libtool library installation in a directory.
21525 finish_cmds=$lt_finish_cmds
21526
21527 # Same as above, but a single script fragment to be evaled but not shown.
21528 finish_eval=$lt_finish_eval
21529
21530 # Take the output of nm and produce a listing of raw symbols and C names.
21531 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21532
21533 # Transform the output of nm in a proper C declaration
21534 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21535
21536 # Transform the output of nm in a C name address pair
21537 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21538
21539 # This is the shared library runtime path variable.
21540 runpath_var=$runpath_var
21541
21542 # This is the shared library path variable.
21543 shlibpath_var=$shlibpath_var
21544
21545 # Is shlibpath searched before the hard-coded library search path?
21546 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21547
21548 # How to hardcode a shared library path into an executable.
21549 hardcode_action=$hardcode_action_RC
21550
21551 # Whether we should hardcode library paths into libraries.
21552 hardcode_into_libs=$hardcode_into_libs
21553
21554 # Flag to hardcode \$libdir into a binary during linking.
21555 # This must work even if \$libdir does not exist.
21556 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21557
21558 # If ld is used when linking, flag to hardcode \$libdir into
21559 # a binary during linking. This must work even if \$libdir does
21560 # not exist.
21561 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21562
21563 # Whether we need a single -rpath flag with a separated argument.
21564 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21565
21566 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21567 # resulting binary.
21568 hardcode_direct=$hardcode_direct_RC
21569
21570 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21571 # resulting binary.
21572 hardcode_minus_L=$hardcode_minus_L_RC
21573
21574 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21575 # the resulting binary.
21576 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21577
21578 # Set to yes if building a shared library automatically hardcodes DIR into the library
21579 # and all subsequent libraries and executables linked against it.
21580 hardcode_automatic=$hardcode_automatic_RC
21581
21582 # Variables whose values should be saved in libtool wrapper scripts and
21583 # restored at relink time.
21584 variables_saved_for_relink="$variables_saved_for_relink"
21585
21586 # Whether libtool must link a program against all its dependency libraries.
21587 link_all_deplibs=$link_all_deplibs_RC
21588
21589 # Compile-time system search path for libraries
21590 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21591
21592 # Run-time system search path for libraries
21593 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21594
21595 # Fix the shell variable \$srcfile for the compiler.
21596 fix_srcfile_path="$fix_srcfile_path_RC"
21597
21598 # Set to yes if exported symbols are required.
21599 always_export_symbols=$always_export_symbols_RC
21600
21601 # The commands to list exported symbols.
21602 export_symbols_cmds=$lt_export_symbols_cmds_RC
21603
21604 # The commands to extract the exported symbol list from a shared archive.
21605 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21606
21607 # Symbols that should not be listed in the preloaded symbols.
21608 exclude_expsyms=$lt_exclude_expsyms_RC
21609
21610 # Symbols that must always be exported.
21611 include_expsyms=$lt_include_expsyms_RC
21612
21613 # ### END LIBTOOL TAG CONFIG: $tagname
21614
21615 __EOF__
21616
21617
21618 else
21619   # If there is no Makefile yet, we rely on a make rule to execute
21620   # `config.status --recheck' to rerun these tests and create the
21621   # libtool script then.
21622   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21623   if test -f "$ltmain_in"; then
21624     test -f Makefile && make "$ltmain"
21625   fi
21626 fi
21627
21628
21629 ac_ext=c
21630 ac_cpp='$CPP $CPPFLAGS'
21631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21634
21635 CC="$lt_save_CC"
21636
21637         ;;
21638
21639       *)
21640         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21641 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21642    { (exit 1); exit 1; }; }
21643         ;;
21644       esac
21645
21646       # Append the new tag name to the list of available tags.
21647       if test -n "$tagname" ; then
21648       available_tags="$available_tags $tagname"
21649     fi
21650     fi
21651   done
21652   IFS="$lt_save_ifs"
21653
21654   # Now substitute the updated list of available tags.
21655   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21656     mv "${ofile}T" "$ofile"
21657     chmod +x "$ofile"
21658   else
21659     rm -f "${ofile}T"
21660     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21661 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21662    { (exit 1); exit 1; }; }
21663   fi
21664 fi
21665
21666
21667
21668 # This can be used to rebuild libtool when needed
21669 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21670
21671 # Always use our own libtool.
21672 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21673
21674 # Prevent multiple expansion
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696 ol_link_perl=no
21697 if test $ol_enable_perl != no ; then
21698         # Extract the first word of "perl", so it can be a program name with args.
21699 set dummy perl; ac_word=$2
21700 echo "$as_me:$LINENO: checking for $ac_word" >&5
21701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21702 if test "${ac_cv_path_PERLBIN+set}" = set; then
21703   echo $ECHO_N "(cached) $ECHO_C" >&6
21704 else
21705   case $PERLBIN in
21706   [\\/]* | ?:[\\/]*)
21707   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21708   ;;
21709   *)
21710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21711 for as_dir in $PATH
21712 do
21713   IFS=$as_save_IFS
21714   test -z "$as_dir" && as_dir=.
21715   for ac_exec_ext in '' $ac_executable_extensions; do
21716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21717     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21719     break 2
21720   fi
21721 done
21722 done
21723
21724   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21725   ;;
21726 esac
21727 fi
21728 PERLBIN=$ac_cv_path_PERLBIN
21729
21730 if test -n "$PERLBIN"; then
21731   echo "$as_me:$LINENO: result: $PERLBIN" >&5
21732 echo "${ECHO_T}$PERLBIN" >&6
21733 else
21734   echo "$as_me:$LINENO: result: no" >&5
21735 echo "${ECHO_T}no" >&6
21736 fi
21737
21738
21739         if test "no$PERLBIN" = "no" ; then
21740                 if test $ol_enable_perl = yes ; then
21741                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21742 echo "$as_me: error: could not locate perl" >&2;}
21743    { (exit 1); exit 1; }; }
21744                 fi
21745
21746         else
21747                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21748                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21749
21750                 if test x"$ol_enable_perl" = "xyes" ; then
21751                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21752                 else
21753                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21754                 fi
21755                                 ol_link_perl=yes
21756         fi
21757 fi
21758
21759 ac_ext=c
21760 ac_cpp='$CPP $CPPFLAGS'
21761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21764 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21765 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21766 # On Suns, sometimes $CPP names a directory.
21767 if test -n "$CPP" && test -d "$CPP"; then
21768   CPP=
21769 fi
21770 if test -z "$CPP"; then
21771   if test "${ac_cv_prog_CPP+set}" = set; then
21772   echo $ECHO_N "(cached) $ECHO_C" >&6
21773 else
21774       # Double quotes because CPP needs to be expanded
21775     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21776     do
21777       ac_preproc_ok=false
21778 for ac_c_preproc_warn_flag in '' yes
21779 do
21780   # Use a header file that comes with gcc, so configuring glibc
21781   # with a fresh cross-compiler works.
21782   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21783   # <limits.h> exists even on freestanding compilers.
21784   # On the NeXT, cc -E runs the code through the compiler's parser,
21785   # not just through cpp. "Syntax error" is here to catch this case.
21786   cat >conftest.$ac_ext <<_ACEOF
21787 /* confdefs.h.  */
21788 _ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h.  */
21792 #ifdef __STDC__
21793 # include <limits.h>
21794 #else
21795 # include <assert.h>
21796 #endif
21797                      Syntax error
21798 _ACEOF
21799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21800   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21801   ac_status=$?
21802   grep -v '^ *+' conftest.er1 >conftest.err
21803   rm -f conftest.er1
21804   cat conftest.err >&5
21805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806   (exit $ac_status); } >/dev/null; then
21807   if test -s conftest.err; then
21808     ac_cpp_err=$ac_c_preproc_warn_flag
21809     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21810   else
21811     ac_cpp_err=
21812   fi
21813 else
21814   ac_cpp_err=yes
21815 fi
21816 if test -z "$ac_cpp_err"; then
21817   :
21818 else
21819   echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21821
21822   # Broken: fails on valid input.
21823 continue
21824 fi
21825 rm -f conftest.err conftest.$ac_ext
21826
21827   # OK, works on sane cases.  Now check whether non-existent headers
21828   # can be detected and how.
21829   cat >conftest.$ac_ext <<_ACEOF
21830 /* confdefs.h.  */
21831 _ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h.  */
21835 #include <ac_nonexistent.h>
21836 _ACEOF
21837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21838   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21839   ac_status=$?
21840   grep -v '^ *+' conftest.er1 >conftest.err
21841   rm -f conftest.er1
21842   cat conftest.err >&5
21843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844   (exit $ac_status); } >/dev/null; then
21845   if test -s conftest.err; then
21846     ac_cpp_err=$ac_c_preproc_warn_flag
21847     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21848   else
21849     ac_cpp_err=
21850   fi
21851 else
21852   ac_cpp_err=yes
21853 fi
21854 if test -z "$ac_cpp_err"; then
21855   # Broken: success on invalid input.
21856 continue
21857 else
21858   echo "$as_me: failed program was:" >&5
21859 sed 's/^/| /' conftest.$ac_ext >&5
21860
21861   # Passes both tests.
21862 ac_preproc_ok=:
21863 break
21864 fi
21865 rm -f conftest.err conftest.$ac_ext
21866
21867 done
21868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21869 rm -f conftest.err conftest.$ac_ext
21870 if $ac_preproc_ok; then
21871   break
21872 fi
21873
21874     done
21875     ac_cv_prog_CPP=$CPP
21876
21877 fi
21878   CPP=$ac_cv_prog_CPP
21879 else
21880   ac_cv_prog_CPP=$CPP
21881 fi
21882 echo "$as_me:$LINENO: result: $CPP" >&5
21883 echo "${ECHO_T}$CPP" >&6
21884 ac_preproc_ok=false
21885 for ac_c_preproc_warn_flag in '' yes
21886 do
21887   # Use a header file that comes with gcc, so configuring glibc
21888   # with a fresh cross-compiler works.
21889   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21890   # <limits.h> exists even on freestanding compilers.
21891   # On the NeXT, cc -E runs the code through the compiler's parser,
21892   # not just through cpp. "Syntax error" is here to catch this case.
21893   cat >conftest.$ac_ext <<_ACEOF
21894 /* confdefs.h.  */
21895 _ACEOF
21896 cat confdefs.h >>conftest.$ac_ext
21897 cat >>conftest.$ac_ext <<_ACEOF
21898 /* end confdefs.h.  */
21899 #ifdef __STDC__
21900 # include <limits.h>
21901 #else
21902 # include <assert.h>
21903 #endif
21904                      Syntax error
21905 _ACEOF
21906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21907   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21908   ac_status=$?
21909   grep -v '^ *+' conftest.er1 >conftest.err
21910   rm -f conftest.er1
21911   cat conftest.err >&5
21912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913   (exit $ac_status); } >/dev/null; then
21914   if test -s conftest.err; then
21915     ac_cpp_err=$ac_c_preproc_warn_flag
21916     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21917   else
21918     ac_cpp_err=
21919   fi
21920 else
21921   ac_cpp_err=yes
21922 fi
21923 if test -z "$ac_cpp_err"; then
21924   :
21925 else
21926   echo "$as_me: failed program was:" >&5
21927 sed 's/^/| /' conftest.$ac_ext >&5
21928
21929   # Broken: fails on valid input.
21930 continue
21931 fi
21932 rm -f conftest.err conftest.$ac_ext
21933
21934   # OK, works on sane cases.  Now check whether non-existent headers
21935   # can be detected and how.
21936   cat >conftest.$ac_ext <<_ACEOF
21937 /* confdefs.h.  */
21938 _ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h.  */
21942 #include <ac_nonexistent.h>
21943 _ACEOF
21944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21945   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21946   ac_status=$?
21947   grep -v '^ *+' conftest.er1 >conftest.err
21948   rm -f conftest.er1
21949   cat conftest.err >&5
21950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951   (exit $ac_status); } >/dev/null; then
21952   if test -s conftest.err; then
21953     ac_cpp_err=$ac_c_preproc_warn_flag
21954     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21955   else
21956     ac_cpp_err=
21957   fi
21958 else
21959   ac_cpp_err=yes
21960 fi
21961 if test -z "$ac_cpp_err"; then
21962   # Broken: success on invalid input.
21963 continue
21964 else
21965   echo "$as_me: failed program was:" >&5
21966 sed 's/^/| /' conftest.$ac_ext >&5
21967
21968   # Passes both tests.
21969 ac_preproc_ok=:
21970 break
21971 fi
21972 rm -f conftest.err conftest.$ac_ext
21973
21974 done
21975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21976 rm -f conftest.err conftest.$ac_ext
21977 if $ac_preproc_ok; then
21978   :
21979 else
21980   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
21981 See \`config.log' for more details." >&5
21982 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
21983 See \`config.log' for more details." >&2;}
21984    { (exit 1); exit 1; }; }
21985 fi
21986
21987 ac_ext=c
21988 ac_cpp='$CPP $CPPFLAGS'
21989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21992
21993
21994
21995
21996 case $host_os in
21997   *cygwin* ) CYGWIN=yes;;
21998          * ) CYGWIN=no;;
21999 esac
22000
22001
22002 case $host_os in
22003   *mingw32* ) MINGW32=yes;;
22004           * ) MINGW32=no;;
22005 esac
22006
22007
22008
22009
22010
22011 cat >>confdefs.h <<_ACEOF
22012 #define EXEEXT "${EXEEXT}"
22013 _ACEOF
22014
22015
22016 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22017 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22018 if test "${ac_cv_lib_be_be_app+set}" = set; then
22019   echo $ECHO_N "(cached) $ECHO_C" >&6
22020 else
22021   ac_check_lib_save_LIBS=$LIBS
22022 LIBS="-lbe -lroot -lnet $LIBS"
22023 cat >conftest.$ac_ext <<_ACEOF
22024 /* confdefs.h.  */
22025 _ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h.  */
22029
22030 /* Override any gcc2 internal prototype to avoid an error.  */
22031 #ifdef __cplusplus
22032 extern "C"
22033 #endif
22034 /* We use char because int might match the return type of a gcc2
22035    builtin and then its argument prototype would still apply.  */
22036 char be_app ();
22037 int
22038 main ()
22039 {
22040 be_app ();
22041   ;
22042   return 0;
22043 }
22044 _ACEOF
22045 rm -f conftest.$ac_objext conftest$ac_exeext
22046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22047   (eval $ac_link) 2>conftest.er1
22048   ac_status=$?
22049   grep -v '^ *+' conftest.er1 >conftest.err
22050   rm -f conftest.er1
22051   cat conftest.err >&5
22052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053   (exit $ac_status); } &&
22054          { ac_try='test -z "$ac_c_werror_flag"
22055                          || test ! -s conftest.err'
22056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22057   (eval $ac_try) 2>&5
22058   ac_status=$?
22059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060   (exit $ac_status); }; } &&
22061          { ac_try='test -s conftest$ac_exeext'
22062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22063   (eval $ac_try) 2>&5
22064   ac_status=$?
22065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066   (exit $ac_status); }; }; then
22067   ac_cv_lib_be_be_app=yes
22068 else
22069   echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22071
22072 ac_cv_lib_be_be_app=no
22073 fi
22074 rm -f conftest.err conftest.$ac_objext \
22075       conftest$ac_exeext conftest.$ac_ext
22076 LIBS=$ac_check_lib_save_LIBS
22077 fi
22078 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22079 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22080 if test $ac_cv_lib_be_be_app = yes; then
22081   LIBS="$LIBS -lbe -lroot -lnet"
22082 else
22083   :
22084 fi
22085
22086
22087 ac_ext=c
22088 ac_cpp='$CPP $CPPFLAGS'
22089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22092 if test -n "$ac_tool_prefix"; then
22093   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22094 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22095 echo "$as_me:$LINENO: checking for $ac_word" >&5
22096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22097 if test "${ac_cv_prog_CC+set}" = set; then
22098   echo $ECHO_N "(cached) $ECHO_C" >&6
22099 else
22100   if test -n "$CC"; then
22101   ac_cv_prog_CC="$CC" # Let the user override the test.
22102 else
22103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22104 for as_dir in $PATH
22105 do
22106   IFS=$as_save_IFS
22107   test -z "$as_dir" && as_dir=.
22108   for ac_exec_ext in '' $ac_executable_extensions; do
22109   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22110     ac_cv_prog_CC="${ac_tool_prefix}gcc"
22111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22112     break 2
22113   fi
22114 done
22115 done
22116
22117 fi
22118 fi
22119 CC=$ac_cv_prog_CC
22120 if test -n "$CC"; then
22121   echo "$as_me:$LINENO: result: $CC" >&5
22122 echo "${ECHO_T}$CC" >&6
22123 else
22124   echo "$as_me:$LINENO: result: no" >&5
22125 echo "${ECHO_T}no" >&6
22126 fi
22127
22128 fi
22129 if test -z "$ac_cv_prog_CC"; then
22130   ac_ct_CC=$CC
22131   # Extract the first word of "gcc", so it can be a program name with args.
22132 set dummy gcc; ac_word=$2
22133 echo "$as_me:$LINENO: checking for $ac_word" >&5
22134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22136   echo $ECHO_N "(cached) $ECHO_C" >&6
22137 else
22138   if test -n "$ac_ct_CC"; then
22139   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22140 else
22141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22142 for as_dir in $PATH
22143 do
22144   IFS=$as_save_IFS
22145   test -z "$as_dir" && as_dir=.
22146   for ac_exec_ext in '' $ac_executable_extensions; do
22147   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22148     ac_cv_prog_ac_ct_CC="gcc"
22149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22150     break 2
22151   fi
22152 done
22153 done
22154
22155 fi
22156 fi
22157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22158 if test -n "$ac_ct_CC"; then
22159   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22160 echo "${ECHO_T}$ac_ct_CC" >&6
22161 else
22162   echo "$as_me:$LINENO: result: no" >&5
22163 echo "${ECHO_T}no" >&6
22164 fi
22165
22166   CC=$ac_ct_CC
22167 else
22168   CC="$ac_cv_prog_CC"
22169 fi
22170
22171 if test -z "$CC"; then
22172   if test -n "$ac_tool_prefix"; then
22173   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22174 set dummy ${ac_tool_prefix}cc; ac_word=$2
22175 echo "$as_me:$LINENO: checking for $ac_word" >&5
22176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22177 if test "${ac_cv_prog_CC+set}" = set; then
22178   echo $ECHO_N "(cached) $ECHO_C" >&6
22179 else
22180   if test -n "$CC"; then
22181   ac_cv_prog_CC="$CC" # Let the user override the test.
22182 else
22183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22184 for as_dir in $PATH
22185 do
22186   IFS=$as_save_IFS
22187   test -z "$as_dir" && as_dir=.
22188   for ac_exec_ext in '' $ac_executable_extensions; do
22189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22190     ac_cv_prog_CC="${ac_tool_prefix}cc"
22191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22192     break 2
22193   fi
22194 done
22195 done
22196
22197 fi
22198 fi
22199 CC=$ac_cv_prog_CC
22200 if test -n "$CC"; then
22201   echo "$as_me:$LINENO: result: $CC" >&5
22202 echo "${ECHO_T}$CC" >&6
22203 else
22204   echo "$as_me:$LINENO: result: no" >&5
22205 echo "${ECHO_T}no" >&6
22206 fi
22207
22208 fi
22209 if test -z "$ac_cv_prog_CC"; then
22210   ac_ct_CC=$CC
22211   # Extract the first word of "cc", so it can be a program name with args.
22212 set dummy cc; ac_word=$2
22213 echo "$as_me:$LINENO: checking for $ac_word" >&5
22214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22216   echo $ECHO_N "(cached) $ECHO_C" >&6
22217 else
22218   if test -n "$ac_ct_CC"; then
22219   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22220 else
22221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22222 for as_dir in $PATH
22223 do
22224   IFS=$as_save_IFS
22225   test -z "$as_dir" && as_dir=.
22226   for ac_exec_ext in '' $ac_executable_extensions; do
22227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22228     ac_cv_prog_ac_ct_CC="cc"
22229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22230     break 2
22231   fi
22232 done
22233 done
22234
22235 fi
22236 fi
22237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22238 if test -n "$ac_ct_CC"; then
22239   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22240 echo "${ECHO_T}$ac_ct_CC" >&6
22241 else
22242   echo "$as_me:$LINENO: result: no" >&5
22243 echo "${ECHO_T}no" >&6
22244 fi
22245
22246   CC=$ac_ct_CC
22247 else
22248   CC="$ac_cv_prog_CC"
22249 fi
22250
22251 fi
22252 if test -z "$CC"; then
22253   # Extract the first word of "cc", so it can be a program name with args.
22254 set dummy cc; ac_word=$2
22255 echo "$as_me:$LINENO: checking for $ac_word" >&5
22256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22257 if test "${ac_cv_prog_CC+set}" = set; then
22258   echo $ECHO_N "(cached) $ECHO_C" >&6
22259 else
22260   if test -n "$CC"; then
22261   ac_cv_prog_CC="$CC" # Let the user override the test.
22262 else
22263   ac_prog_rejected=no
22264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22265 for as_dir in $PATH
22266 do
22267   IFS=$as_save_IFS
22268   test -z "$as_dir" && as_dir=.
22269   for ac_exec_ext in '' $ac_executable_extensions; do
22270   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22271     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22272        ac_prog_rejected=yes
22273        continue
22274      fi
22275     ac_cv_prog_CC="cc"
22276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22277     break 2
22278   fi
22279 done
22280 done
22281
22282 if test $ac_prog_rejected = yes; then
22283   # We found a bogon in the path, so make sure we never use it.
22284   set dummy $ac_cv_prog_CC
22285   shift
22286   if test $# != 0; then
22287     # We chose a different compiler from the bogus one.
22288     # However, it has the same basename, so the bogon will be chosen
22289     # first if we set CC to just the basename; use the full file name.
22290     shift
22291     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22292   fi
22293 fi
22294 fi
22295 fi
22296 CC=$ac_cv_prog_CC
22297 if test -n "$CC"; then
22298   echo "$as_me:$LINENO: result: $CC" >&5
22299 echo "${ECHO_T}$CC" >&6
22300 else
22301   echo "$as_me:$LINENO: result: no" >&5
22302 echo "${ECHO_T}no" >&6
22303 fi
22304
22305 fi
22306 if test -z "$CC"; then
22307   if test -n "$ac_tool_prefix"; then
22308   for ac_prog in cl
22309   do
22310     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22312 echo "$as_me:$LINENO: checking for $ac_word" >&5
22313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22314 if test "${ac_cv_prog_CC+set}" = set; then
22315   echo $ECHO_N "(cached) $ECHO_C" >&6
22316 else
22317   if test -n "$CC"; then
22318   ac_cv_prog_CC="$CC" # Let the user override the test.
22319 else
22320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22321 for as_dir in $PATH
22322 do
22323   IFS=$as_save_IFS
22324   test -z "$as_dir" && as_dir=.
22325   for ac_exec_ext in '' $ac_executable_extensions; do
22326   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22327     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22329     break 2
22330   fi
22331 done
22332 done
22333
22334 fi
22335 fi
22336 CC=$ac_cv_prog_CC
22337 if test -n "$CC"; then
22338   echo "$as_me:$LINENO: result: $CC" >&5
22339 echo "${ECHO_T}$CC" >&6
22340 else
22341   echo "$as_me:$LINENO: result: no" >&5
22342 echo "${ECHO_T}no" >&6
22343 fi
22344
22345     test -n "$CC" && break
22346   done
22347 fi
22348 if test -z "$CC"; then
22349   ac_ct_CC=$CC
22350   for ac_prog in cl
22351 do
22352   # Extract the first word of "$ac_prog", so it can be a program name with args.
22353 set dummy $ac_prog; ac_word=$2
22354 echo "$as_me:$LINENO: checking for $ac_word" >&5
22355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22356 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22357   echo $ECHO_N "(cached) $ECHO_C" >&6
22358 else
22359   if test -n "$ac_ct_CC"; then
22360   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22361 else
22362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22363 for as_dir in $PATH
22364 do
22365   IFS=$as_save_IFS
22366   test -z "$as_dir" && as_dir=.
22367   for ac_exec_ext in '' $ac_executable_extensions; do
22368   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22369     ac_cv_prog_ac_ct_CC="$ac_prog"
22370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22371     break 2
22372   fi
22373 done
22374 done
22375
22376 fi
22377 fi
22378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22379 if test -n "$ac_ct_CC"; then
22380   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22381 echo "${ECHO_T}$ac_ct_CC" >&6
22382 else
22383   echo "$as_me:$LINENO: result: no" >&5
22384 echo "${ECHO_T}no" >&6
22385 fi
22386
22387   test -n "$ac_ct_CC" && break
22388 done
22389
22390   CC=$ac_ct_CC
22391 fi
22392
22393 fi
22394
22395
22396 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22397 See \`config.log' for more details." >&5
22398 echo "$as_me: error: no acceptable C compiler found in \$PATH
22399 See \`config.log' for more details." >&2;}
22400    { (exit 1); exit 1; }; }
22401
22402 # Provide some information about the compiler.
22403 echo "$as_me:$LINENO:" \
22404      "checking for C compiler version" >&5
22405 ac_compiler=`set X $ac_compile; echo $2`
22406 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22407   (eval $ac_compiler --version </dev/null >&5) 2>&5
22408   ac_status=$?
22409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410   (exit $ac_status); }
22411 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22412   (eval $ac_compiler -v </dev/null >&5) 2>&5
22413   ac_status=$?
22414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415   (exit $ac_status); }
22416 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22417   (eval $ac_compiler -V </dev/null >&5) 2>&5
22418   ac_status=$?
22419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420   (exit $ac_status); }
22421
22422 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22423 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22424 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22425   echo $ECHO_N "(cached) $ECHO_C" >&6
22426 else
22427   cat >conftest.$ac_ext <<_ACEOF
22428 /* confdefs.h.  */
22429 _ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h.  */
22433
22434 int
22435 main ()
22436 {
22437 #ifndef __GNUC__
22438        choke me
22439 #endif
22440
22441   ;
22442   return 0;
22443 }
22444 _ACEOF
22445 rm -f conftest.$ac_objext
22446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22447   (eval $ac_compile) 2>conftest.er1
22448   ac_status=$?
22449   grep -v '^ *+' conftest.er1 >conftest.err
22450   rm -f conftest.er1
22451   cat conftest.err >&5
22452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453   (exit $ac_status); } &&
22454          { ac_try='test -z "$ac_c_werror_flag"
22455                          || test ! -s conftest.err'
22456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22457   (eval $ac_try) 2>&5
22458   ac_status=$?
22459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460   (exit $ac_status); }; } &&
22461          { ac_try='test -s conftest.$ac_objext'
22462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22463   (eval $ac_try) 2>&5
22464   ac_status=$?
22465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466   (exit $ac_status); }; }; then
22467   ac_compiler_gnu=yes
22468 else
22469   echo "$as_me: failed program was:" >&5
22470 sed 's/^/| /' conftest.$ac_ext >&5
22471
22472 ac_compiler_gnu=no
22473 fi
22474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22475 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22476
22477 fi
22478 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22479 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22480 GCC=`test $ac_compiler_gnu = yes && echo yes`
22481 ac_test_CFLAGS=${CFLAGS+set}
22482 ac_save_CFLAGS=$CFLAGS
22483 CFLAGS="-g"
22484 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22485 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22486 if test "${ac_cv_prog_cc_g+set}" = set; then
22487   echo $ECHO_N "(cached) $ECHO_C" >&6
22488 else
22489   cat >conftest.$ac_ext <<_ACEOF
22490 /* confdefs.h.  */
22491 _ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h.  */
22495
22496 int
22497 main ()
22498 {
22499
22500   ;
22501   return 0;
22502 }
22503 _ACEOF
22504 rm -f conftest.$ac_objext
22505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22506   (eval $ac_compile) 2>conftest.er1
22507   ac_status=$?
22508   grep -v '^ *+' conftest.er1 >conftest.err
22509   rm -f conftest.er1
22510   cat conftest.err >&5
22511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512   (exit $ac_status); } &&
22513          { ac_try='test -z "$ac_c_werror_flag"
22514                          || test ! -s conftest.err'
22515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22516   (eval $ac_try) 2>&5
22517   ac_status=$?
22518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519   (exit $ac_status); }; } &&
22520          { ac_try='test -s conftest.$ac_objext'
22521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22522   (eval $ac_try) 2>&5
22523   ac_status=$?
22524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525   (exit $ac_status); }; }; then
22526   ac_cv_prog_cc_g=yes
22527 else
22528   echo "$as_me: failed program was:" >&5
22529 sed 's/^/| /' conftest.$ac_ext >&5
22530
22531 ac_cv_prog_cc_g=no
22532 fi
22533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22534 fi
22535 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22536 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22537 if test "$ac_test_CFLAGS" = set; then
22538   CFLAGS=$ac_save_CFLAGS
22539 elif test $ac_cv_prog_cc_g = yes; then
22540   if test "$GCC" = yes; then
22541     CFLAGS="-g -O2"
22542   else
22543     CFLAGS="-g"
22544   fi
22545 else
22546   if test "$GCC" = yes; then
22547     CFLAGS="-O2"
22548   else
22549     CFLAGS=
22550   fi
22551 fi
22552 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22553 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22554 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22555   echo $ECHO_N "(cached) $ECHO_C" >&6
22556 else
22557   ac_cv_prog_cc_stdc=no
22558 ac_save_CC=$CC
22559 cat >conftest.$ac_ext <<_ACEOF
22560 /* confdefs.h.  */
22561 _ACEOF
22562 cat confdefs.h >>conftest.$ac_ext
22563 cat >>conftest.$ac_ext <<_ACEOF
22564 /* end confdefs.h.  */
22565 #include <stdarg.h>
22566 #include <stdio.h>
22567 #include <sys/types.h>
22568 #include <sys/stat.h>
22569 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
22570 struct buf { int x; };
22571 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22572 static char *e (p, i)
22573      char **p;
22574      int i;
22575 {
22576   return p[i];
22577 }
22578 static char *f (char * (*g) (char **, int), char **p, ...)
22579 {
22580   char *s;
22581   va_list v;
22582   va_start (v,p);
22583   s = g (p, va_arg (v,int));
22584   va_end (v);
22585   return s;
22586 }
22587
22588 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
22589    function prototypes and stuff, but not '\xHH' hex character constants.
22590    These don't provoke an error unfortunately, instead are silently treated
22591    as 'x'.  The following induces an error, until -std1 is added to get
22592    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
22593    array size at least.  It's necessary to write '\x00'==0 to get something
22594    that's true only with -std1.  */
22595 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22596
22597 int test (int i, double x);
22598 struct s1 {int (*f) (int a);};
22599 struct s2 {int (*f) (double a);};
22600 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22601 int argc;
22602 char **argv;
22603 int
22604 main ()
22605 {
22606 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
22607   ;
22608   return 0;
22609 }
22610 _ACEOF
22611 # Don't try gcc -ansi; that turns off useful extensions and
22612 # breaks some systems' header files.
22613 # AIX                   -qlanglvl=ansi
22614 # Ultrix and OSF/1      -std1
22615 # HP-UX 10.20 and later -Ae
22616 # HP-UX older versions  -Aa -D_HPUX_SOURCE
22617 # SVR4                  -Xc -D__EXTENSIONS__
22618 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22619 do
22620   CC="$ac_save_CC $ac_arg"
22621   rm -f conftest.$ac_objext
22622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22623   (eval $ac_compile) 2>conftest.er1
22624   ac_status=$?
22625   grep -v '^ *+' conftest.er1 >conftest.err
22626   rm -f conftest.er1
22627   cat conftest.err >&5
22628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629   (exit $ac_status); } &&
22630          { ac_try='test -z "$ac_c_werror_flag"
22631                          || test ! -s conftest.err'
22632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22633   (eval $ac_try) 2>&5
22634   ac_status=$?
22635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636   (exit $ac_status); }; } &&
22637          { ac_try='test -s conftest.$ac_objext'
22638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639   (eval $ac_try) 2>&5
22640   ac_status=$?
22641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642   (exit $ac_status); }; }; then
22643   ac_cv_prog_cc_stdc=$ac_arg
22644 break
22645 else
22646   echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22648
22649 fi
22650 rm -f conftest.err conftest.$ac_objext
22651 done
22652 rm -f conftest.$ac_ext conftest.$ac_objext
22653 CC=$ac_save_CC
22654
22655 fi
22656
22657 case "x$ac_cv_prog_cc_stdc" in
22658   x|xno)
22659     echo "$as_me:$LINENO: result: none needed" >&5
22660 echo "${ECHO_T}none needed" >&6 ;;
22661   *)
22662     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22663 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22664     CC="$CC $ac_cv_prog_cc_stdc" ;;
22665 esac
22666
22667 # Some people use a C++ compiler to compile C.  Since we use `exit',
22668 # in C++ we need to declare it.  In case someone uses the same compiler
22669 # for both compiling C and C++ we need to have the C++ compiler decide
22670 # the declaration of exit, since it's the most demanding environment.
22671 cat >conftest.$ac_ext <<_ACEOF
22672 #ifndef __cplusplus
22673   choke me
22674 #endif
22675 _ACEOF
22676 rm -f conftest.$ac_objext
22677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22678   (eval $ac_compile) 2>conftest.er1
22679   ac_status=$?
22680   grep -v '^ *+' conftest.er1 >conftest.err
22681   rm -f conftest.er1
22682   cat conftest.err >&5
22683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684   (exit $ac_status); } &&
22685          { ac_try='test -z "$ac_c_werror_flag"
22686                          || test ! -s conftest.err'
22687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22688   (eval $ac_try) 2>&5
22689   ac_status=$?
22690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691   (exit $ac_status); }; } &&
22692          { ac_try='test -s conftest.$ac_objext'
22693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22694   (eval $ac_try) 2>&5
22695   ac_status=$?
22696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697   (exit $ac_status); }; }; then
22698   for ac_declaration in \
22699    '' \
22700    'extern "C" void std::exit (int) throw (); using std::exit;' \
22701    'extern "C" void std::exit (int); using std::exit;' \
22702    'extern "C" void exit (int) throw ();' \
22703    'extern "C" void exit (int);' \
22704    'void exit (int);'
22705 do
22706   cat >conftest.$ac_ext <<_ACEOF
22707 /* confdefs.h.  */
22708 _ACEOF
22709 cat confdefs.h >>conftest.$ac_ext
22710 cat >>conftest.$ac_ext <<_ACEOF
22711 /* end confdefs.h.  */
22712 $ac_declaration
22713 #include <stdlib.h>
22714 int
22715 main ()
22716 {
22717 exit (42);
22718   ;
22719   return 0;
22720 }
22721 _ACEOF
22722 rm -f conftest.$ac_objext
22723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22724   (eval $ac_compile) 2>conftest.er1
22725   ac_status=$?
22726   grep -v '^ *+' conftest.er1 >conftest.err
22727   rm -f conftest.er1
22728   cat conftest.err >&5
22729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730   (exit $ac_status); } &&
22731          { ac_try='test -z "$ac_c_werror_flag"
22732                          || test ! -s conftest.err'
22733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734   (eval $ac_try) 2>&5
22735   ac_status=$?
22736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737   (exit $ac_status); }; } &&
22738          { ac_try='test -s conftest.$ac_objext'
22739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740   (eval $ac_try) 2>&5
22741   ac_status=$?
22742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743   (exit $ac_status); }; }; then
22744   :
22745 else
22746   echo "$as_me: failed program was:" >&5
22747 sed 's/^/| /' conftest.$ac_ext >&5
22748
22749 continue
22750 fi
22751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22752   cat >conftest.$ac_ext <<_ACEOF
22753 /* confdefs.h.  */
22754 _ACEOF
22755 cat confdefs.h >>conftest.$ac_ext
22756 cat >>conftest.$ac_ext <<_ACEOF
22757 /* end confdefs.h.  */
22758 $ac_declaration
22759 int
22760 main ()
22761 {
22762 exit (42);
22763   ;
22764   return 0;
22765 }
22766 _ACEOF
22767 rm -f conftest.$ac_objext
22768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22769   (eval $ac_compile) 2>conftest.er1
22770   ac_status=$?
22771   grep -v '^ *+' conftest.er1 >conftest.err
22772   rm -f conftest.er1
22773   cat conftest.err >&5
22774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775   (exit $ac_status); } &&
22776          { ac_try='test -z "$ac_c_werror_flag"
22777                          || test ! -s conftest.err'
22778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779   (eval $ac_try) 2>&5
22780   ac_status=$?
22781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782   (exit $ac_status); }; } &&
22783          { ac_try='test -s conftest.$ac_objext'
22784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22785   (eval $ac_try) 2>&5
22786   ac_status=$?
22787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788   (exit $ac_status); }; }; then
22789   break
22790 else
22791   echo "$as_me: failed program was:" >&5
22792 sed 's/^/| /' conftest.$ac_ext >&5
22793
22794 fi
22795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22796 done
22797 rm -f conftest*
22798 if test -n "$ac_declaration"; then
22799   echo '#ifdef __cplusplus' >>confdefs.h
22800   echo $ac_declaration      >>confdefs.h
22801   echo '#endif'             >>confdefs.h
22802 fi
22803
22804 else
22805   echo "$as_me: failed program was:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22807
22808 fi
22809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22810 ac_ext=c
22811 ac_cpp='$CPP $CPPFLAGS'
22812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22815
22816 depcc="$CC"   am_compiler_list=
22817
22818 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22819 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22820 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22821   echo $ECHO_N "(cached) $ECHO_C" >&6
22822 else
22823   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22824   # We make a subdir and do the tests there.  Otherwise we can end up
22825   # making bogus files that we don't know about and never remove.  For
22826   # instance it was reported that on HP-UX the gcc test will end up
22827   # making a dummy file named `D' -- because `-MD' means `put the output
22828   # in D'.
22829   mkdir conftest.dir
22830   # Copy depcomp to subdir because otherwise we won't find it if we're
22831   # using a relative directory.
22832   cp "$am_depcomp" conftest.dir
22833   cd conftest.dir
22834   # We will build objects and dependencies in a subdirectory because
22835   # it helps to detect inapplicable dependency modes.  For instance
22836   # both Tru64's cc and ICC support -MD to output dependencies as a
22837   # side effect of compilation, but ICC will put the dependencies in
22838   # the current directory while Tru64 will put them in the object
22839   # directory.
22840   mkdir sub
22841
22842   am_cv_CC_dependencies_compiler_type=none
22843   if test "$am_compiler_list" = ""; then
22844      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22845   fi
22846   for depmode in $am_compiler_list; do
22847     # Setup a source with many dependencies, because some compilers
22848     # like to wrap large dependency lists on column 80 (with \), and
22849     # we should not choose a depcomp mode which is confused by this.
22850     #
22851     # We need to recreate these files for each test, as the compiler may
22852     # overwrite some of them when testing with obscure command lines.
22853     # This happens at least with the AIX C compiler.
22854     : > sub/conftest.c
22855     for i in 1 2 3 4 5 6; do
22856       echo '#include "conftst'$i'.h"' >> sub/conftest.c
22857       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22858       # Solaris 8's {/usr,}/bin/sh.
22859       touch sub/conftst$i.h
22860     done
22861     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22862
22863     case $depmode in
22864     nosideeffect)
22865       # after this tag, mechanisms are not by side-effect, so they'll
22866       # only be used when explicitly requested
22867       if test "x$enable_dependency_tracking" = xyes; then
22868         continue
22869       else
22870         break
22871       fi
22872       ;;
22873     none) break ;;
22874     esac
22875     # We check with `-c' and `-o' for the sake of the "dashmstdout"
22876     # mode.  It turns out that the SunPro C++ compiler does not properly
22877     # handle `-M -o', and we need to detect this.
22878     if depmode=$depmode \
22879        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22880        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22881        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22882          >/dev/null 2>conftest.err &&
22883        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22884        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22885        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22886       # icc doesn't choke on unknown options, it will just issue warnings
22887       # or remarks (even with -Werror).  So we grep stderr for any message
22888       # that says an option was ignored or not supported.
22889       # When given -MP, icc 7.0 and 7.1 complain thusly:
22890       #   icc: Command line warning: ignoring option '-M'; no argument required
22891       # The diagnosis changed in icc 8.0:
22892       #   icc: Command line remark: option '-MP' not supported
22893       if (grep 'ignoring option' conftest.err ||
22894           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22895         am_cv_CC_dependencies_compiler_type=$depmode
22896         break
22897       fi
22898     fi
22899   done
22900
22901   cd ..
22902   rm -rf conftest.dir
22903 else
22904   am_cv_CC_dependencies_compiler_type=none
22905 fi
22906
22907 fi
22908 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
22909 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
22910 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
22911
22912
22913
22914 if
22915   test "x$enable_dependency_tracking" != xno \
22916   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
22917   am__fastdepCC_TRUE=
22918   am__fastdepCC_FALSE='#'
22919 else
22920   am__fastdepCC_TRUE='#'
22921   am__fastdepCC_FALSE=
22922 fi
22923
22924
22925
22926 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
22927
22928 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
22929         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
22930 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
22931    { (exit 1); exit 1; }; }
22932 fi
22933
22934 # test for make depend flag
22935 OL_MKDEP=
22936 OL_MKDEP_FLAGS=
22937 if test -z "${MKDEP}"; then
22938         OL_MKDEP="${CC-cc}"
22939         if test -z "${MKDEP_FLAGS}"; then
22940                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
22941 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
22942 if test "${ol_cv_mkdep+set}" = set; then
22943   echo $ECHO_N "(cached) $ECHO_C" >&6
22944 else
22945
22946                         ol_cv_mkdep=no
22947                         for flag in "-M" "-xM"; do
22948                                 cat > conftest.c <<EOF
22949  noCode;
22950 EOF
22951                                 if { ac_try='$OL_MKDEP $flag conftest.c'
22952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953   (eval $ac_try) 2>&5
22954   ac_status=$?
22955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956   (exit $ac_status); }; } \
22957                                         | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
22958                                 then
22959                                         if test ! -f conftest."${ac_object}" ; then
22960                                                 ol_cv_mkdep=$flag
22961                                                 OL_MKDEP_FLAGS="$flag"
22962                                                 break
22963                                         fi
22964                                 fi
22965                         done
22966                         rm -f conftest*
22967
22968 fi
22969 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
22970 echo "${ECHO_T}$ol_cv_mkdep" >&6
22971         else
22972                 cc_cv_mkdep=yes
22973                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22974         fi
22975 else
22976         cc_cv_mkdep=yes
22977         OL_MKDEP="${MKDEP}"
22978         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22979 fi
22980
22981
22982
22983 if test "${ol_cv_mkdep}" = no ; then
22984         # this will soon become an error
22985         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
22986 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
22987 fi
22988
22989 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
22990 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
22991 if test "${ac_cv_lib_s_afopen+set}" = set; then
22992   echo $ECHO_N "(cached) $ECHO_C" >&6
22993 else
22994   ac_check_lib_save_LIBS=$LIBS
22995 LIBS="-ls  $LIBS"
22996 cat >conftest.$ac_ext <<_ACEOF
22997 /* confdefs.h.  */
22998 _ACEOF
22999 cat confdefs.h >>conftest.$ac_ext
23000 cat >>conftest.$ac_ext <<_ACEOF
23001 /* end confdefs.h.  */
23002
23003 /* Override any gcc2 internal prototype to avoid an error.  */
23004 #ifdef __cplusplus
23005 extern "C"
23006 #endif
23007 /* We use char because int might match the return type of a gcc2
23008    builtin and then its argument prototype would still apply.  */
23009 char afopen ();
23010 int
23011 main ()
23012 {
23013 afopen ();
23014   ;
23015   return 0;
23016 }
23017 _ACEOF
23018 rm -f conftest.$ac_objext conftest$ac_exeext
23019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23020   (eval $ac_link) 2>conftest.er1
23021   ac_status=$?
23022   grep -v '^ *+' conftest.er1 >conftest.err
23023   rm -f conftest.er1
23024   cat conftest.err >&5
23025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026   (exit $ac_status); } &&
23027          { ac_try='test -z "$ac_c_werror_flag"
23028                          || test ! -s conftest.err'
23029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23030   (eval $ac_try) 2>&5
23031   ac_status=$?
23032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033   (exit $ac_status); }; } &&
23034          { ac_try='test -s conftest$ac_exeext'
23035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23036   (eval $ac_try) 2>&5
23037   ac_status=$?
23038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039   (exit $ac_status); }; }; then
23040   ac_cv_lib_s_afopen=yes
23041 else
23042   echo "$as_me: failed program was:" >&5
23043 sed 's/^/| /' conftest.$ac_ext >&5
23044
23045 ac_cv_lib_s_afopen=no
23046 fi
23047 rm -f conftest.err conftest.$ac_objext \
23048       conftest$ac_exeext conftest.$ac_ext
23049 LIBS=$ac_check_lib_save_LIBS
23050 fi
23051 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23052 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23053 if test $ac_cv_lib_s_afopen = yes; then
23054
23055         AUTH_LIBS=-ls
23056
23057 cat >>confdefs.h <<\_ACEOF
23058 #define HAVE_AIX_SECURITY 1
23059 _ACEOF
23060
23061
23062 fi
23063
23064
23065 case "$target" in
23066 *-ibm-openedition)
23067         ac_cv_func_getopt=no
23068
23069 cat >>confdefs.h <<\_ACEOF
23070 #define BOTH_STRINGS_H 1
23071 _ACEOF
23072
23073         ;;
23074 esac
23075
23076 ol_link_modules=no
23077 WITH_MODULES_ENABLED=no
23078 if test $ol_enable_modules != no ; then
23079
23080 for ac_header in ltdl.h
23081 do
23082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23084   echo "$as_me:$LINENO: checking for $ac_header" >&5
23085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23087   echo $ECHO_N "(cached) $ECHO_C" >&6
23088 fi
23089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23091 else
23092   # Is the header compilable?
23093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23095 cat >conftest.$ac_ext <<_ACEOF
23096 /* confdefs.h.  */
23097 _ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h.  */
23101 $ac_includes_default
23102 #include <$ac_header>
23103 _ACEOF
23104 rm -f conftest.$ac_objext
23105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23106   (eval $ac_compile) 2>conftest.er1
23107   ac_status=$?
23108   grep -v '^ *+' conftest.er1 >conftest.err
23109   rm -f conftest.er1
23110   cat conftest.err >&5
23111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112   (exit $ac_status); } &&
23113          { ac_try='test -z "$ac_c_werror_flag"
23114                          || test ! -s conftest.err'
23115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23116   (eval $ac_try) 2>&5
23117   ac_status=$?
23118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119   (exit $ac_status); }; } &&
23120          { ac_try='test -s conftest.$ac_objext'
23121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23122   (eval $ac_try) 2>&5
23123   ac_status=$?
23124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125   (exit $ac_status); }; }; then
23126   ac_header_compiler=yes
23127 else
23128   echo "$as_me: failed program was:" >&5
23129 sed 's/^/| /' conftest.$ac_ext >&5
23130
23131 ac_header_compiler=no
23132 fi
23133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23135 echo "${ECHO_T}$ac_header_compiler" >&6
23136
23137 # Is the header present?
23138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23140 cat >conftest.$ac_ext <<_ACEOF
23141 /* confdefs.h.  */
23142 _ACEOF
23143 cat confdefs.h >>conftest.$ac_ext
23144 cat >>conftest.$ac_ext <<_ACEOF
23145 /* end confdefs.h.  */
23146 #include <$ac_header>
23147 _ACEOF
23148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23149   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23150   ac_status=$?
23151   grep -v '^ *+' conftest.er1 >conftest.err
23152   rm -f conftest.er1
23153   cat conftest.err >&5
23154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155   (exit $ac_status); } >/dev/null; then
23156   if test -s conftest.err; then
23157     ac_cpp_err=$ac_c_preproc_warn_flag
23158     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23159   else
23160     ac_cpp_err=
23161   fi
23162 else
23163   ac_cpp_err=yes
23164 fi
23165 if test -z "$ac_cpp_err"; then
23166   ac_header_preproc=yes
23167 else
23168   echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23170
23171   ac_header_preproc=no
23172 fi
23173 rm -f conftest.err conftest.$ac_ext
23174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23175 echo "${ECHO_T}$ac_header_preproc" >&6
23176
23177 # So?  What about this header?
23178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23179   yes:no: )
23180     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23184     ac_header_preproc=yes
23185     ;;
23186   no:yes:* )
23187     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23189     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23190 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23191     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23193     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23194 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23197     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23199     (
23200       cat <<\_ASBOX
23201 ## ------------------------------------------ ##
23202 ## Report this to the AC_PACKAGE_NAME lists.  ##
23203 ## ------------------------------------------ ##
23204 _ASBOX
23205     ) |
23206       sed "s/^/$as_me: WARNING:     /" >&2
23207     ;;
23208 esac
23209 echo "$as_me:$LINENO: checking for $ac_header" >&5
23210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23212   echo $ECHO_N "(cached) $ECHO_C" >&6
23213 else
23214   eval "$as_ac_Header=\$ac_header_preproc"
23215 fi
23216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23218
23219 fi
23220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23221   cat >>confdefs.h <<_ACEOF
23222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23223 _ACEOF
23224
23225 fi
23226
23227 done
23228
23229
23230         if test $ac_cv_header_ltdl_h = no ; then
23231                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23232 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23233    { (exit 1); exit 1; }; }
23234         fi
23235
23236         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23237 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23238 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23239   echo $ECHO_N "(cached) $ECHO_C" >&6
23240 else
23241   ac_check_lib_save_LIBS=$LIBS
23242 LIBS="-lltdl  $LIBS"
23243 cat >conftest.$ac_ext <<_ACEOF
23244 /* confdefs.h.  */
23245 _ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h.  */
23249
23250 /* Override any gcc2 internal prototype to avoid an error.  */
23251 #ifdef __cplusplus
23252 extern "C"
23253 #endif
23254 /* We use char because int might match the return type of a gcc2
23255    builtin and then its argument prototype would still apply.  */
23256 char lt_dlinit ();
23257 int
23258 main ()
23259 {
23260 lt_dlinit ();
23261   ;
23262   return 0;
23263 }
23264 _ACEOF
23265 rm -f conftest.$ac_objext conftest$ac_exeext
23266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23267   (eval $ac_link) 2>conftest.er1
23268   ac_status=$?
23269   grep -v '^ *+' conftest.er1 >conftest.err
23270   rm -f conftest.er1
23271   cat conftest.err >&5
23272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273   (exit $ac_status); } &&
23274          { ac_try='test -z "$ac_c_werror_flag"
23275                          || test ! -s conftest.err'
23276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277   (eval $ac_try) 2>&5
23278   ac_status=$?
23279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280   (exit $ac_status); }; } &&
23281          { ac_try='test -s conftest$ac_exeext'
23282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23283   (eval $ac_try) 2>&5
23284   ac_status=$?
23285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286   (exit $ac_status); }; }; then
23287   ac_cv_lib_ltdl_lt_dlinit=yes
23288 else
23289   echo "$as_me: failed program was:" >&5
23290 sed 's/^/| /' conftest.$ac_ext >&5
23291
23292 ac_cv_lib_ltdl_lt_dlinit=no
23293 fi
23294 rm -f conftest.err conftest.$ac_objext \
23295       conftest$ac_exeext conftest.$ac_ext
23296 LIBS=$ac_check_lib_save_LIBS
23297 fi
23298 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23299 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23300 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23301
23302                 MODULES_LIBS=-lltdl
23303
23304 cat >>confdefs.h <<\_ACEOF
23305 #define HAVE_LIBLTDL 1
23306 _ACEOF
23307
23308
23309 fi
23310
23311
23312         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23313                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23314 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23315    { (exit 1); exit 1; }; }
23316         fi
23317         ol_link_modules=yes
23318         WITH_MODULES_ENABLED=yes
23319
23320 else
23321         for i in $Backends; do
23322                 eval "ol_tmp=\$ol_enable_$i"
23323                 if test $ol_tmp = mod ; then
23324                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23325 echo "$as_me: WARNING: building static $i backend" >&2;}
23326                         eval "ol_enable_$i=yes"
23327                 fi
23328         done
23329         for i in $Overlays; do
23330                 eval "ol_tmp=\$ol_enable_$i"
23331                 if test $ol_tmp = mod ; then
23332                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23333 echo "$as_me: WARNING: building static $i overlay" >&2;}
23334                         eval "ol_enable_$i=yes"
23335                 fi
23336         done
23337 fi
23338
23339 # test for EBCDIC
23340 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23341 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23342 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23343   echo $ECHO_N "(cached) $ECHO_C" >&6
23344 else
23345
23346         cat >conftest.$ac_ext <<_ACEOF
23347 /* confdefs.h.  */
23348 _ACEOF
23349 cat confdefs.h >>conftest.$ac_ext
23350 cat >>conftest.$ac_ext <<_ACEOF
23351 /* end confdefs.h.  */
23352
23353 #if !('M' == 0xd4)
23354 #include <__ASCII__/generate_error.h>
23355 #endif
23356
23357 _ACEOF
23358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23360   ac_status=$?
23361   grep -v '^ *+' conftest.er1 >conftest.err
23362   rm -f conftest.er1
23363   cat conftest.err >&5
23364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365   (exit $ac_status); } >/dev/null; then
23366   if test -s conftest.err; then
23367     ac_cpp_err=$ac_c_preproc_warn_flag
23368     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23369   else
23370     ac_cpp_err=
23371   fi
23372 else
23373   ac_cpp_err=yes
23374 fi
23375 if test -z "$ac_cpp_err"; then
23376   ol_cv_cpp_ebcdic=yes
23377 else
23378   echo "$as_me: failed program was:" >&5
23379 sed 's/^/| /' conftest.$ac_ext >&5
23380
23381   ol_cv_cpp_ebcdic=no
23382 fi
23383 rm -f conftest.err conftest.$ac_ext
23384 fi
23385 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23386 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23387 if test $ol_cv_cpp_ebcdic = yes ; then
23388
23389 cat >>confdefs.h <<\_ACEOF
23390 #define HAVE_EBCDIC 1
23391 _ACEOF
23392
23393 fi
23394
23395 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23396 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23397 if test "${ol_cv_header_stdc+set}" = set; then
23398   echo $ECHO_N "(cached) $ECHO_C" >&6
23399 else
23400   cat >conftest.$ac_ext <<_ACEOF
23401 /* confdefs.h.  */
23402 _ACEOF
23403 cat confdefs.h >>conftest.$ac_ext
23404 cat >>conftest.$ac_ext <<_ACEOF
23405 /* end confdefs.h.  */
23406 #include <stdlib.h>
23407 #include <stdarg.h>
23408 #include <string.h>
23409 #include <float.h>
23410 _ACEOF
23411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23412   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23413   ac_status=$?
23414   grep -v '^ *+' conftest.er1 >conftest.err
23415   rm -f conftest.er1
23416   cat conftest.err >&5
23417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418   (exit $ac_status); } >/dev/null; then
23419   if test -s conftest.err; then
23420     ac_cpp_err=$ac_c_preproc_warn_flag
23421     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23422   else
23423     ac_cpp_err=
23424   fi
23425 else
23426   ac_cpp_err=yes
23427 fi
23428 if test -z "$ac_cpp_err"; then
23429   ol_cv_header_stdc=yes
23430 else
23431   echo "$as_me: failed program was:" >&5
23432 sed 's/^/| /' conftest.$ac_ext >&5
23433
23434   ol_cv_header_stdc=no
23435 fi
23436 rm -f conftest.err conftest.$ac_ext
23437
23438 if test $ol_cv_header_stdc = yes; then
23439   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23440 cat >conftest.$ac_ext <<_ACEOF
23441 /* confdefs.h.  */
23442 _ACEOF
23443 cat confdefs.h >>conftest.$ac_ext
23444 cat >>conftest.$ac_ext <<_ACEOF
23445 /* end confdefs.h.  */
23446 #include <string.h>
23447
23448 _ACEOF
23449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23450   $EGREP "memchr" >/dev/null 2>&1; then
23451   :
23452 else
23453   ol_cv_header_stdc=no
23454 fi
23455 rm -f conftest*
23456
23457 fi
23458
23459 if test $ol_cv_header_stdc = yes; then
23460   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23461 cat >conftest.$ac_ext <<_ACEOF
23462 /* confdefs.h.  */
23463 _ACEOF
23464 cat confdefs.h >>conftest.$ac_ext
23465 cat >>conftest.$ac_ext <<_ACEOF
23466 /* end confdefs.h.  */
23467 #include <stdlib.h>
23468
23469 _ACEOF
23470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23471   $EGREP "free" >/dev/null 2>&1; then
23472   :
23473 else
23474   ol_cv_header_stdc=no
23475 fi
23476 rm -f conftest*
23477
23478 fi
23479
23480 if test $ol_cv_header_stdc = yes; then
23481   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23482 if test "$cross_compiling" = yes; then
23483   :
23484 else
23485   cat >conftest.$ac_ext <<_ACEOF
23486 /* confdefs.h.  */
23487 _ACEOF
23488 cat confdefs.h >>conftest.$ac_ext
23489 cat >>conftest.$ac_ext <<_ACEOF
23490 /* end confdefs.h.  */
23491 #include <ctype.h>
23492 #ifndef HAVE_EBCDIC
23493 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23494 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23495 #else
23496 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23497                 || ('j' <= (c) && (c) <= 'r') \
23498                 || ('s' <= (c) && (c) <= 'z'))
23499 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
23500 #endif
23501 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23502 int main () { int i; for (i = 0; i < 256; i++)
23503 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23504 exit (0); }
23505
23506 _ACEOF
23507 rm -f conftest$ac_exeext
23508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23509   (eval $ac_link) 2>&5
23510   ac_status=$?
23511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23514   (eval $ac_try) 2>&5
23515   ac_status=$?
23516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517   (exit $ac_status); }; }; then
23518   :
23519 else
23520   echo "$as_me: program exited with status $ac_status" >&5
23521 echo "$as_me: failed program was:" >&5
23522 sed 's/^/| /' conftest.$ac_ext >&5
23523
23524 ( exit $ac_status )
23525 ol_cv_header_stdc=no
23526 fi
23527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23528 fi
23529 fi
23530 fi
23531 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23532 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23533 if test $ol_cv_header_stdc = yes; then
23534   cat >>confdefs.h <<\_ACEOF
23535 #define STDC_HEADERS 1
23536 _ACEOF
23537
23538 fi
23539 ac_cv_header_stdc=disable
23540
23541
23542 if test $ol_cv_header_stdc != yes; then
23543         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23544 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23545 fi
23546
23547
23548
23549
23550
23551
23552 ac_header_dirent=no
23553 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23554   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23555 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23556 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23558   echo $ECHO_N "(cached) $ECHO_C" >&6
23559 else
23560   cat >conftest.$ac_ext <<_ACEOF
23561 /* confdefs.h.  */
23562 _ACEOF
23563 cat confdefs.h >>conftest.$ac_ext
23564 cat >>conftest.$ac_ext <<_ACEOF
23565 /* end confdefs.h.  */
23566 #include <sys/types.h>
23567 #include <$ac_hdr>
23568
23569 int
23570 main ()
23571 {
23572 if ((DIR *) 0)
23573 return 0;
23574   ;
23575   return 0;
23576 }
23577 _ACEOF
23578 rm -f conftest.$ac_objext
23579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23580   (eval $ac_compile) 2>conftest.er1
23581   ac_status=$?
23582   grep -v '^ *+' conftest.er1 >conftest.err
23583   rm -f conftest.er1
23584   cat conftest.err >&5
23585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586   (exit $ac_status); } &&
23587          { ac_try='test -z "$ac_c_werror_flag"
23588                          || test ! -s conftest.err'
23589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23590   (eval $ac_try) 2>&5
23591   ac_status=$?
23592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593   (exit $ac_status); }; } &&
23594          { ac_try='test -s conftest.$ac_objext'
23595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23596   (eval $ac_try) 2>&5
23597   ac_status=$?
23598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599   (exit $ac_status); }; }; then
23600   eval "$as_ac_Header=yes"
23601 else
23602   echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23604
23605 eval "$as_ac_Header=no"
23606 fi
23607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23608 fi
23609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23612   cat >>confdefs.h <<_ACEOF
23613 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23614 _ACEOF
23615
23616 ac_header_dirent=$ac_hdr; break
23617 fi
23618
23619 done
23620 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23621 if test $ac_header_dirent = dirent.h; then
23622   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23623 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23624 if test "${ac_cv_search_opendir+set}" = set; then
23625   echo $ECHO_N "(cached) $ECHO_C" >&6
23626 else
23627   ac_func_search_save_LIBS=$LIBS
23628 ac_cv_search_opendir=no
23629 cat >conftest.$ac_ext <<_ACEOF
23630 /* confdefs.h.  */
23631 _ACEOF
23632 cat confdefs.h >>conftest.$ac_ext
23633 cat >>conftest.$ac_ext <<_ACEOF
23634 /* end confdefs.h.  */
23635
23636 /* Override any gcc2 internal prototype to avoid an error.  */
23637 #ifdef __cplusplus
23638 extern "C"
23639 #endif
23640 /* We use char because int might match the return type of a gcc2
23641    builtin and then its argument prototype would still apply.  */
23642 char opendir ();
23643 int
23644 main ()
23645 {
23646 opendir ();
23647   ;
23648   return 0;
23649 }
23650 _ACEOF
23651 rm -f conftest.$ac_objext conftest$ac_exeext
23652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23653   (eval $ac_link) 2>conftest.er1
23654   ac_status=$?
23655   grep -v '^ *+' conftest.er1 >conftest.err
23656   rm -f conftest.er1
23657   cat conftest.err >&5
23658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659   (exit $ac_status); } &&
23660          { ac_try='test -z "$ac_c_werror_flag"
23661                          || test ! -s conftest.err'
23662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23663   (eval $ac_try) 2>&5
23664   ac_status=$?
23665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666   (exit $ac_status); }; } &&
23667          { ac_try='test -s conftest$ac_exeext'
23668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23669   (eval $ac_try) 2>&5
23670   ac_status=$?
23671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672   (exit $ac_status); }; }; then
23673   ac_cv_search_opendir="none required"
23674 else
23675   echo "$as_me: failed program was:" >&5
23676 sed 's/^/| /' conftest.$ac_ext >&5
23677
23678 fi
23679 rm -f conftest.err conftest.$ac_objext \
23680       conftest$ac_exeext conftest.$ac_ext
23681 if test "$ac_cv_search_opendir" = no; then
23682   for ac_lib in dir; do
23683     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23684     cat >conftest.$ac_ext <<_ACEOF
23685 /* confdefs.h.  */
23686 _ACEOF
23687 cat confdefs.h >>conftest.$ac_ext
23688 cat >>conftest.$ac_ext <<_ACEOF
23689 /* end confdefs.h.  */
23690
23691 /* Override any gcc2 internal prototype to avoid an error.  */
23692 #ifdef __cplusplus
23693 extern "C"
23694 #endif
23695 /* We use char because int might match the return type of a gcc2
23696    builtin and then its argument prototype would still apply.  */
23697 char opendir ();
23698 int
23699 main ()
23700 {
23701 opendir ();
23702   ;
23703   return 0;
23704 }
23705 _ACEOF
23706 rm -f conftest.$ac_objext conftest$ac_exeext
23707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23708   (eval $ac_link) 2>conftest.er1
23709   ac_status=$?
23710   grep -v '^ *+' conftest.er1 >conftest.err
23711   rm -f conftest.er1
23712   cat conftest.err >&5
23713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714   (exit $ac_status); } &&
23715          { ac_try='test -z "$ac_c_werror_flag"
23716                          || test ! -s conftest.err'
23717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23718   (eval $ac_try) 2>&5
23719   ac_status=$?
23720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721   (exit $ac_status); }; } &&
23722          { ac_try='test -s conftest$ac_exeext'
23723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23724   (eval $ac_try) 2>&5
23725   ac_status=$?
23726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727   (exit $ac_status); }; }; then
23728   ac_cv_search_opendir="-l$ac_lib"
23729 break
23730 else
23731   echo "$as_me: failed program was:" >&5
23732 sed 's/^/| /' conftest.$ac_ext >&5
23733
23734 fi
23735 rm -f conftest.err conftest.$ac_objext \
23736       conftest$ac_exeext conftest.$ac_ext
23737   done
23738 fi
23739 LIBS=$ac_func_search_save_LIBS
23740 fi
23741 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23742 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23743 if test "$ac_cv_search_opendir" != no; then
23744   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23745
23746 fi
23747
23748 else
23749   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23750 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23751 if test "${ac_cv_search_opendir+set}" = set; then
23752   echo $ECHO_N "(cached) $ECHO_C" >&6
23753 else
23754   ac_func_search_save_LIBS=$LIBS
23755 ac_cv_search_opendir=no
23756 cat >conftest.$ac_ext <<_ACEOF
23757 /* confdefs.h.  */
23758 _ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h.  */
23762
23763 /* Override any gcc2 internal prototype to avoid an error.  */
23764 #ifdef __cplusplus
23765 extern "C"
23766 #endif
23767 /* We use char because int might match the return type of a gcc2
23768    builtin and then its argument prototype would still apply.  */
23769 char opendir ();
23770 int
23771 main ()
23772 {
23773 opendir ();
23774   ;
23775   return 0;
23776 }
23777 _ACEOF
23778 rm -f conftest.$ac_objext conftest$ac_exeext
23779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23780   (eval $ac_link) 2>conftest.er1
23781   ac_status=$?
23782   grep -v '^ *+' conftest.er1 >conftest.err
23783   rm -f conftest.er1
23784   cat conftest.err >&5
23785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786   (exit $ac_status); } &&
23787          { ac_try='test -z "$ac_c_werror_flag"
23788                          || test ! -s conftest.err'
23789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23790   (eval $ac_try) 2>&5
23791   ac_status=$?
23792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793   (exit $ac_status); }; } &&
23794          { ac_try='test -s conftest$ac_exeext'
23795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23796   (eval $ac_try) 2>&5
23797   ac_status=$?
23798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799   (exit $ac_status); }; }; then
23800   ac_cv_search_opendir="none required"
23801 else
23802   echo "$as_me: failed program was:" >&5
23803 sed 's/^/| /' conftest.$ac_ext >&5
23804
23805 fi
23806 rm -f conftest.err conftest.$ac_objext \
23807       conftest$ac_exeext conftest.$ac_ext
23808 if test "$ac_cv_search_opendir" = no; then
23809   for ac_lib in x; do
23810     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23811     cat >conftest.$ac_ext <<_ACEOF
23812 /* confdefs.h.  */
23813 _ACEOF
23814 cat confdefs.h >>conftest.$ac_ext
23815 cat >>conftest.$ac_ext <<_ACEOF
23816 /* end confdefs.h.  */
23817
23818 /* Override any gcc2 internal prototype to avoid an error.  */
23819 #ifdef __cplusplus
23820 extern "C"
23821 #endif
23822 /* We use char because int might match the return type of a gcc2
23823    builtin and then its argument prototype would still apply.  */
23824 char opendir ();
23825 int
23826 main ()
23827 {
23828 opendir ();
23829   ;
23830   return 0;
23831 }
23832 _ACEOF
23833 rm -f conftest.$ac_objext conftest$ac_exeext
23834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23835   (eval $ac_link) 2>conftest.er1
23836   ac_status=$?
23837   grep -v '^ *+' conftest.er1 >conftest.err
23838   rm -f conftest.er1
23839   cat conftest.err >&5
23840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841   (exit $ac_status); } &&
23842          { ac_try='test -z "$ac_c_werror_flag"
23843                          || test ! -s conftest.err'
23844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23845   (eval $ac_try) 2>&5
23846   ac_status=$?
23847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848   (exit $ac_status); }; } &&
23849          { ac_try='test -s conftest$ac_exeext'
23850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23851   (eval $ac_try) 2>&5
23852   ac_status=$?
23853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854   (exit $ac_status); }; }; then
23855   ac_cv_search_opendir="-l$ac_lib"
23856 break
23857 else
23858   echo "$as_me: failed program was:" >&5
23859 sed 's/^/| /' conftest.$ac_ext >&5
23860
23861 fi
23862 rm -f conftest.err conftest.$ac_objext \
23863       conftest$ac_exeext conftest.$ac_ext
23864   done
23865 fi
23866 LIBS=$ac_func_search_save_LIBS
23867 fi
23868 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23869 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23870 if test "$ac_cv_search_opendir" != no; then
23871   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23872
23873 fi
23874
23875 fi
23876
23877 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23878 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
23879 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23880   echo $ECHO_N "(cached) $ECHO_C" >&6
23881 else
23882   cat >conftest.$ac_ext <<_ACEOF
23883 /* confdefs.h.  */
23884 _ACEOF
23885 cat confdefs.h >>conftest.$ac_ext
23886 cat >>conftest.$ac_ext <<_ACEOF
23887 /* end confdefs.h.  */
23888 #include <sys/types.h>
23889 #include <sys/wait.h>
23890 #ifndef WEXITSTATUS
23891 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
23892 #endif
23893 #ifndef WIFEXITED
23894 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23895 #endif
23896
23897 int
23898 main ()
23899 {
23900   int s;
23901   wait (&s);
23902   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23903   ;
23904   return 0;
23905 }
23906 _ACEOF
23907 rm -f conftest.$ac_objext
23908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23909   (eval $ac_compile) 2>conftest.er1
23910   ac_status=$?
23911   grep -v '^ *+' conftest.er1 >conftest.err
23912   rm -f conftest.er1
23913   cat conftest.err >&5
23914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915   (exit $ac_status); } &&
23916          { ac_try='test -z "$ac_c_werror_flag"
23917                          || test ! -s conftest.err'
23918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23919   (eval $ac_try) 2>&5
23920   ac_status=$?
23921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922   (exit $ac_status); }; } &&
23923          { ac_try='test -s conftest.$ac_objext'
23924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23925   (eval $ac_try) 2>&5
23926   ac_status=$?
23927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928   (exit $ac_status); }; }; then
23929   ac_cv_header_sys_wait_h=yes
23930 else
23931   echo "$as_me: failed program was:" >&5
23932 sed 's/^/| /' conftest.$ac_ext >&5
23933
23934 ac_cv_header_sys_wait_h=no
23935 fi
23936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23937 fi
23938 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23939 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
23940 if test $ac_cv_header_sys_wait_h = yes; then
23941
23942 cat >>confdefs.h <<\_ACEOF
23943 #define HAVE_SYS_WAIT_H 1
23944 _ACEOF
23945
23946 fi
23947
23948 AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL
23949 if test $am_cv_sys_posix_termios = yes ; then
23950
23951 cat >>confdefs.h <<\_ACEOF
23952 #define HAVE_POSIX_TERMIOS 1
23953 _ACEOF
23954
23955 fi
23956
23957
23958
23959
23960
23961
23962
23963
23964
23965
23966
23967
23968
23969
23970
23971
23972
23973
23974
23975
23976
23977
23978
23979
23980
23981
23982
23983
23984
23985
23986
23987
23988
23989
23990
23991
23992
23993
23994
23995
23996
23997
23998
23999
24000
24001
24002
24003
24004
24005
24006 for ac_header in \
24007         arpa/inet.h             \
24008         arpa/nameser.h          \
24009         assert.h                \
24010         bits/types.h            \
24011         conio.h                 \
24012         crypt.h                 \
24013         direct.h                \
24014         errno.h                 \
24015         fcntl.h                 \
24016         filio.h                 \
24017         getopt.h                \
24018         grp.h                   \
24019         io.h                    \
24020         libutil.h               \
24021         limits.h                \
24022         locale.h                \
24023         netinet/tcp.h           \
24024         malloc.h                \
24025         memory.h                \
24026         psap.h                  \
24027         pwd.h                   \
24028         process.h               \
24029         resolv.h                \
24030         sgtty.h                 \
24031         shadow.h                \
24032         stddef.h                \
24033         string.h                \
24034         strings.h               \
24035         sysexits.h              \
24036         sys/file.h              \
24037         sys/filio.h             \
24038         sys/errno.h             \
24039         sys/ioctl.h             \
24040         sys/param.h             \
24041         sys/resource.h          \
24042         sys/select.h            \
24043         sys/socket.h            \
24044         sys/stat.h              \
24045         sys/syslog.h            \
24046         sys/time.h              \
24047         sys/types.h             \
24048         sys/ucred.h             \
24049         sys/uio.h               \
24050         syslog.h                \
24051         termios.h               \
24052         unistd.h                \
24053         utime.h                 \
24054         winsock.h               \
24055         winsock2.h              \
24056
24057 do
24058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24060   echo "$as_me:$LINENO: checking for $ac_header" >&5
24061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24063   echo $ECHO_N "(cached) $ECHO_C" >&6
24064 fi
24065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24067 else
24068   # Is the header compilable?
24069 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24071 cat >conftest.$ac_ext <<_ACEOF
24072 /* confdefs.h.  */
24073 _ACEOF
24074 cat confdefs.h >>conftest.$ac_ext
24075 cat >>conftest.$ac_ext <<_ACEOF
24076 /* end confdefs.h.  */
24077 $ac_includes_default
24078 #include <$ac_header>
24079 _ACEOF
24080 rm -f conftest.$ac_objext
24081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24082   (eval $ac_compile) 2>conftest.er1
24083   ac_status=$?
24084   grep -v '^ *+' conftest.er1 >conftest.err
24085   rm -f conftest.er1
24086   cat conftest.err >&5
24087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088   (exit $ac_status); } &&
24089          { ac_try='test -z "$ac_c_werror_flag"
24090                          || test ! -s conftest.err'
24091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24092   (eval $ac_try) 2>&5
24093   ac_status=$?
24094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24095   (exit $ac_status); }; } &&
24096          { ac_try='test -s conftest.$ac_objext'
24097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24098   (eval $ac_try) 2>&5
24099   ac_status=$?
24100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101   (exit $ac_status); }; }; then
24102   ac_header_compiler=yes
24103 else
24104   echo "$as_me: failed program was:" >&5
24105 sed 's/^/| /' conftest.$ac_ext >&5
24106
24107 ac_header_compiler=no
24108 fi
24109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24111 echo "${ECHO_T}$ac_header_compiler" >&6
24112
24113 # Is the header present?
24114 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24116 cat >conftest.$ac_ext <<_ACEOF
24117 /* confdefs.h.  */
24118 _ACEOF
24119 cat confdefs.h >>conftest.$ac_ext
24120 cat >>conftest.$ac_ext <<_ACEOF
24121 /* end confdefs.h.  */
24122 #include <$ac_header>
24123 _ACEOF
24124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24125   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24126   ac_status=$?
24127   grep -v '^ *+' conftest.er1 >conftest.err
24128   rm -f conftest.er1
24129   cat conftest.err >&5
24130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131   (exit $ac_status); } >/dev/null; then
24132   if test -s conftest.err; then
24133     ac_cpp_err=$ac_c_preproc_warn_flag
24134     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24135   else
24136     ac_cpp_err=
24137   fi
24138 else
24139   ac_cpp_err=yes
24140 fi
24141 if test -z "$ac_cpp_err"; then
24142   ac_header_preproc=yes
24143 else
24144   echo "$as_me: failed program was:" >&5
24145 sed 's/^/| /' conftest.$ac_ext >&5
24146
24147   ac_header_preproc=no
24148 fi
24149 rm -f conftest.err conftest.$ac_ext
24150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24151 echo "${ECHO_T}$ac_header_preproc" >&6
24152
24153 # So?  What about this header?
24154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24155   yes:no: )
24156     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24158     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24160     ac_header_preproc=yes
24161     ;;
24162   no:yes:* )
24163     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24165     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24166 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24167     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24169     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24170 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24173     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24175     (
24176       cat <<\_ASBOX
24177 ## ------------------------------------------ ##
24178 ## Report this to the AC_PACKAGE_NAME lists.  ##
24179 ## ------------------------------------------ ##
24180 _ASBOX
24181     ) |
24182       sed "s/^/$as_me: WARNING:     /" >&2
24183     ;;
24184 esac
24185 echo "$as_me:$LINENO: checking for $ac_header" >&5
24186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24188   echo $ECHO_N "(cached) $ECHO_C" >&6
24189 else
24190   eval "$as_ac_Header=\$ac_header_preproc"
24191 fi
24192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24194
24195 fi
24196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24197   cat >>confdefs.h <<_ACEOF
24198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24199 _ACEOF
24200
24201 fi
24202
24203 done
24204
24205
24206
24207
24208
24209 for ac_func in sigaction sigset
24210 do
24211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24212 echo "$as_me:$LINENO: checking for $ac_func" >&5
24213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24214 if eval "test \"\${$as_ac_var+set}\" = set"; then
24215   echo $ECHO_N "(cached) $ECHO_C" >&6
24216 else
24217   cat >conftest.$ac_ext <<_ACEOF
24218 /* confdefs.h.  */
24219 _ACEOF
24220 cat confdefs.h >>conftest.$ac_ext
24221 cat >>conftest.$ac_ext <<_ACEOF
24222 /* end confdefs.h.  */
24223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24224    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24225 #define $ac_func innocuous_$ac_func
24226
24227 /* System header to define __stub macros and hopefully few prototypes,
24228     which can conflict with char $ac_func (); below.
24229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24230     <limits.h> exists even on freestanding compilers.  */
24231
24232 #ifdef __STDC__
24233 # include <limits.h>
24234 #else
24235 # include <assert.h>
24236 #endif
24237
24238 #undef $ac_func
24239
24240 /* Override any gcc2 internal prototype to avoid an error.  */
24241 #ifdef __cplusplus
24242 extern "C"
24243 {
24244 #endif
24245 /* We use char because int might match the return type of a gcc2
24246    builtin and then its argument prototype would still apply.  */
24247 char $ac_func ();
24248 /* The GNU C library defines this for functions which it implements
24249     to always fail with ENOSYS.  Some functions are actually named
24250     something starting with __ and the normal name is an alias.  */
24251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24252 choke me
24253 #else
24254 char (*f) () = $ac_func;
24255 #endif
24256 #ifdef __cplusplus
24257 }
24258 #endif
24259
24260 int
24261 main ()
24262 {
24263 return f != $ac_func;
24264   ;
24265   return 0;
24266 }
24267 _ACEOF
24268 rm -f conftest.$ac_objext conftest$ac_exeext
24269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24270   (eval $ac_link) 2>conftest.er1
24271   ac_status=$?
24272   grep -v '^ *+' conftest.er1 >conftest.err
24273   rm -f conftest.er1
24274   cat conftest.err >&5
24275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276   (exit $ac_status); } &&
24277          { ac_try='test -z "$ac_c_werror_flag"
24278                          || test ! -s conftest.err'
24279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24280   (eval $ac_try) 2>&5
24281   ac_status=$?
24282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283   (exit $ac_status); }; } &&
24284          { ac_try='test -s conftest$ac_exeext'
24285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24286   (eval $ac_try) 2>&5
24287   ac_status=$?
24288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289   (exit $ac_status); }; }; then
24290   eval "$as_ac_var=yes"
24291 else
24292   echo "$as_me: failed program was:" >&5
24293 sed 's/^/| /' conftest.$ac_ext >&5
24294
24295 eval "$as_ac_var=no"
24296 fi
24297 rm -f conftest.err conftest.$ac_objext \
24298       conftest$ac_exeext conftest.$ac_ext
24299 fi
24300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24302 if test `eval echo '${'$as_ac_var'}'` = yes; then
24303   cat >>confdefs.h <<_ACEOF
24304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24305 _ACEOF
24306
24307 fi
24308 done
24309
24310
24311 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24312
24313 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24314 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24315 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24316   echo $ECHO_N "(cached) $ECHO_C" >&6
24317 else
24318   ac_check_lib_save_LIBS=$LIBS
24319 LIBS="-lV3  $LIBS"
24320 cat >conftest.$ac_ext <<_ACEOF
24321 /* confdefs.h.  */
24322 _ACEOF
24323 cat confdefs.h >>conftest.$ac_ext
24324 cat >>conftest.$ac_ext <<_ACEOF
24325 /* end confdefs.h.  */
24326
24327 /* Override any gcc2 internal prototype to avoid an error.  */
24328 #ifdef __cplusplus
24329 extern "C"
24330 #endif
24331 /* We use char because int might match the return type of a gcc2
24332    builtin and then its argument prototype would still apply.  */
24333 char sigset ();
24334 int
24335 main ()
24336 {
24337 sigset ();
24338   ;
24339   return 0;
24340 }
24341 _ACEOF
24342 rm -f conftest.$ac_objext conftest$ac_exeext
24343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24344   (eval $ac_link) 2>conftest.er1
24345   ac_status=$?
24346   grep -v '^ *+' conftest.er1 >conftest.err
24347   rm -f conftest.er1
24348   cat conftest.err >&5
24349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350   (exit $ac_status); } &&
24351          { ac_try='test -z "$ac_c_werror_flag"
24352                          || test ! -s conftest.err'
24353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24354   (eval $ac_try) 2>&5
24355   ac_status=$?
24356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357   (exit $ac_status); }; } &&
24358          { ac_try='test -s conftest$ac_exeext'
24359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24360   (eval $ac_try) 2>&5
24361   ac_status=$?
24362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363   (exit $ac_status); }; }; then
24364   ac_cv_lib_V3_sigset=yes
24365 else
24366   echo "$as_me: failed program was:" >&5
24367 sed 's/^/| /' conftest.$ac_ext >&5
24368
24369 ac_cv_lib_V3_sigset=no
24370 fi
24371 rm -f conftest.err conftest.$ac_objext \
24372       conftest$ac_exeext conftest.$ac_ext
24373 LIBS=$ac_check_lib_save_LIBS
24374 fi
24375 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24376 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24377 if test $ac_cv_lib_V3_sigset = yes; then
24378   cat >>confdefs.h <<_ACEOF
24379 #define HAVE_LIBV3 1
24380 _ACEOF
24381
24382   LIBS="-lV3 $LIBS"
24383
24384 fi
24385
24386 fi
24387
24388 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24389 echo "$as_me:$LINENO: checking for winsock" >&5
24390 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24391 if test "${ol_cv_winsock+set}" = set; then
24392   echo $ECHO_N "(cached) $ECHO_C" >&6
24393 else
24394   save_LIBS="$LIBS"
24395 for curlib in ws2_32 wsock32; do
24396         LIBS="$LIBS -l$curlib"
24397         cat >conftest.$ac_ext <<_ACEOF
24398 /* confdefs.h.  */
24399 _ACEOF
24400 cat confdefs.h >>conftest.$ac_ext
24401 cat >>conftest.$ac_ext <<_ACEOF
24402 /* end confdefs.h.  */
24403 #include <winsock.h>
24404
24405 int
24406 main ()
24407 {
24408
24409                         socket(0,0,0);
24410                         select(0,NULL,NULL,NULL,NULL);
24411                         closesocket(0);
24412                         gethostname(NULL,0);
24413
24414   ;
24415   return 0;
24416 }
24417 _ACEOF
24418 rm -f conftest.$ac_objext conftest$ac_exeext
24419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24420   (eval $ac_link) 2>conftest.er1
24421   ac_status=$?
24422   grep -v '^ *+' conftest.er1 >conftest.err
24423   rm -f conftest.er1
24424   cat conftest.err >&5
24425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426   (exit $ac_status); } &&
24427          { ac_try='test -z "$ac_c_werror_flag"
24428                          || test ! -s conftest.err'
24429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24430   (eval $ac_try) 2>&5
24431   ac_status=$?
24432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433   (exit $ac_status); }; } &&
24434          { ac_try='test -s conftest$ac_exeext'
24435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24436   (eval $ac_try) 2>&5
24437   ac_status=$?
24438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439   (exit $ac_status); }; }; then
24440   ol_cv_winsock=yes
24441 else
24442   echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24444
24445 ol_cv_winsock=no
24446 fi
24447 rm -f conftest.err conftest.$ac_objext \
24448       conftest$ac_exeext conftest.$ac_ext
24449
24450         if test $ol_cv_winsock = yes; then
24451
24452 cat >>confdefs.h <<\_ACEOF
24453 #define HAVE_WINSOCK 1
24454 _ACEOF
24455
24456                 ac_cv_func_socket=yes
24457                 ac_cv_func_select=yes
24458                 ac_cv_func_closesocket=yes
24459                 ac_cv_func_gethostname=yes
24460                 if test $curlib = ws2_32; then
24461                         ol_cv_winsock=winsock2
24462
24463 cat >>confdefs.h <<\_ACEOF
24464 #define HAVE_WINSOCK2 1
24465 _ACEOF
24466
24467                 fi
24468                 break
24469         fi
24470         LIBS="$save_LIBS"
24471 done
24472 fi
24473 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24474 echo "${ECHO_T}$ol_cv_winsock" >&6
24475 fi
24476
24477
24478 echo "$as_me:$LINENO: checking for socket" >&5
24479 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24480 if test "${ac_cv_func_socket+set}" = set; then
24481   echo $ECHO_N "(cached) $ECHO_C" >&6
24482 else
24483   cat >conftest.$ac_ext <<_ACEOF
24484 /* confdefs.h.  */
24485 _ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h.  */
24489 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24491 #define socket innocuous_socket
24492
24493 /* System header to define __stub macros and hopefully few prototypes,
24494     which can conflict with char socket (); below.
24495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24496     <limits.h> exists even on freestanding compilers.  */
24497
24498 #ifdef __STDC__
24499 # include <limits.h>
24500 #else
24501 # include <assert.h>
24502 #endif
24503
24504 #undef socket
24505
24506 /* Override any gcc2 internal prototype to avoid an error.  */
24507 #ifdef __cplusplus
24508 extern "C"
24509 {
24510 #endif
24511 /* We use char because int might match the return type of a gcc2
24512    builtin and then its argument prototype would still apply.  */
24513 char socket ();
24514 /* The GNU C library defines this for functions which it implements
24515     to always fail with ENOSYS.  Some functions are actually named
24516     something starting with __ and the normal name is an alias.  */
24517 #if defined (__stub_socket) || defined (__stub___socket)
24518 choke me
24519 #else
24520 char (*f) () = socket;
24521 #endif
24522 #ifdef __cplusplus
24523 }
24524 #endif
24525
24526 int
24527 main ()
24528 {
24529 return f != socket;
24530   ;
24531   return 0;
24532 }
24533 _ACEOF
24534 rm -f conftest.$ac_objext conftest$ac_exeext
24535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24536   (eval $ac_link) 2>conftest.er1
24537   ac_status=$?
24538   grep -v '^ *+' conftest.er1 >conftest.err
24539   rm -f conftest.er1
24540   cat conftest.err >&5
24541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542   (exit $ac_status); } &&
24543          { ac_try='test -z "$ac_c_werror_flag"
24544                          || test ! -s conftest.err'
24545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24546   (eval $ac_try) 2>&5
24547   ac_status=$?
24548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549   (exit $ac_status); }; } &&
24550          { ac_try='test -s conftest$ac_exeext'
24551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24552   (eval $ac_try) 2>&5
24553   ac_status=$?
24554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555   (exit $ac_status); }; }; then
24556   ac_cv_func_socket=yes
24557 else
24558   echo "$as_me: failed program was:" >&5
24559 sed 's/^/| /' conftest.$ac_ext >&5
24560
24561 ac_cv_func_socket=no
24562 fi
24563 rm -f conftest.err conftest.$ac_objext \
24564       conftest$ac_exeext conftest.$ac_ext
24565 fi
24566 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24567 echo "${ECHO_T}$ac_cv_func_socket" >&6
24568 if test $ac_cv_func_socket = yes; then
24569   :
24570 else
24571
24572
24573 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24574 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24575 if test "${ac_cv_lib_socket_main+set}" = set; then
24576   echo $ECHO_N "(cached) $ECHO_C" >&6
24577 else
24578   ac_check_lib_save_LIBS=$LIBS
24579 LIBS="-lsocket  $LIBS"
24580 cat >conftest.$ac_ext <<_ACEOF
24581 /* confdefs.h.  */
24582 _ACEOF
24583 cat confdefs.h >>conftest.$ac_ext
24584 cat >>conftest.$ac_ext <<_ACEOF
24585 /* end confdefs.h.  */
24586
24587
24588 int
24589 main ()
24590 {
24591 main ();
24592   ;
24593   return 0;
24594 }
24595 _ACEOF
24596 rm -f conftest.$ac_objext conftest$ac_exeext
24597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24598   (eval $ac_link) 2>conftest.er1
24599   ac_status=$?
24600   grep -v '^ *+' conftest.er1 >conftest.err
24601   rm -f conftest.er1
24602   cat conftest.err >&5
24603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604   (exit $ac_status); } &&
24605          { ac_try='test -z "$ac_c_werror_flag"
24606                          || test ! -s conftest.err'
24607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24608   (eval $ac_try) 2>&5
24609   ac_status=$?
24610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611   (exit $ac_status); }; } &&
24612          { ac_try='test -s conftest$ac_exeext'
24613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24614   (eval $ac_try) 2>&5
24615   ac_status=$?
24616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617   (exit $ac_status); }; }; then
24618   ac_cv_lib_socket_main=yes
24619 else
24620   echo "$as_me: failed program was:" >&5
24621 sed 's/^/| /' conftest.$ac_ext >&5
24622
24623 ac_cv_lib_socket_main=no
24624 fi
24625 rm -f conftest.err conftest.$ac_objext \
24626       conftest$ac_exeext conftest.$ac_ext
24627 LIBS=$ac_check_lib_save_LIBS
24628 fi
24629 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24630 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24631 if test $ac_cv_lib_socket_main = yes; then
24632   cat >>confdefs.h <<_ACEOF
24633 #define HAVE_LIBSOCKET 1
24634 _ACEOF
24635
24636   LIBS="-lsocket $LIBS"
24637
24638 fi
24639
24640
24641 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24642 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24643 if test "${ac_cv_lib_net_main+set}" = set; then
24644   echo $ECHO_N "(cached) $ECHO_C" >&6
24645 else
24646   ac_check_lib_save_LIBS=$LIBS
24647 LIBS="-lnet  $LIBS"
24648 cat >conftest.$ac_ext <<_ACEOF
24649 /* confdefs.h.  */
24650 _ACEOF
24651 cat confdefs.h >>conftest.$ac_ext
24652 cat >>conftest.$ac_ext <<_ACEOF
24653 /* end confdefs.h.  */
24654
24655
24656 int
24657 main ()
24658 {
24659 main ();
24660   ;
24661   return 0;
24662 }
24663 _ACEOF
24664 rm -f conftest.$ac_objext conftest$ac_exeext
24665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24666   (eval $ac_link) 2>conftest.er1
24667   ac_status=$?
24668   grep -v '^ *+' conftest.er1 >conftest.err
24669   rm -f conftest.er1
24670   cat conftest.err >&5
24671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672   (exit $ac_status); } &&
24673          { ac_try='test -z "$ac_c_werror_flag"
24674                          || test ! -s conftest.err'
24675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24676   (eval $ac_try) 2>&5
24677   ac_status=$?
24678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679   (exit $ac_status); }; } &&
24680          { ac_try='test -s conftest$ac_exeext'
24681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24682   (eval $ac_try) 2>&5
24683   ac_status=$?
24684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685   (exit $ac_status); }; }; then
24686   ac_cv_lib_net_main=yes
24687 else
24688   echo "$as_me: failed program was:" >&5
24689 sed 's/^/| /' conftest.$ac_ext >&5
24690
24691 ac_cv_lib_net_main=no
24692 fi
24693 rm -f conftest.err conftest.$ac_objext \
24694       conftest$ac_exeext conftest.$ac_ext
24695 LIBS=$ac_check_lib_save_LIBS
24696 fi
24697 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
24698 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
24699 if test $ac_cv_lib_net_main = yes; then
24700   cat >>confdefs.h <<_ACEOF
24701 #define HAVE_LIBNET 1
24702 _ACEOF
24703
24704   LIBS="-lnet $LIBS"
24705
24706 fi
24707
24708
24709 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
24710 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
24711 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
24712   echo $ECHO_N "(cached) $ECHO_C" >&6
24713 else
24714   ac_check_lib_save_LIBS=$LIBS
24715 LIBS="-lnsl_s  $LIBS"
24716 cat >conftest.$ac_ext <<_ACEOF
24717 /* confdefs.h.  */
24718 _ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h.  */
24722
24723
24724 int
24725 main ()
24726 {
24727 main ();
24728   ;
24729   return 0;
24730 }
24731 _ACEOF
24732 rm -f conftest.$ac_objext conftest$ac_exeext
24733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24734   (eval $ac_link) 2>conftest.er1
24735   ac_status=$?
24736   grep -v '^ *+' conftest.er1 >conftest.err
24737   rm -f conftest.er1
24738   cat conftest.err >&5
24739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740   (exit $ac_status); } &&
24741          { ac_try='test -z "$ac_c_werror_flag"
24742                          || test ! -s conftest.err'
24743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24744   (eval $ac_try) 2>&5
24745   ac_status=$?
24746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747   (exit $ac_status); }; } &&
24748          { ac_try='test -s conftest$ac_exeext'
24749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24750   (eval $ac_try) 2>&5
24751   ac_status=$?
24752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753   (exit $ac_status); }; }; then
24754   ac_cv_lib_nsl_s_main=yes
24755 else
24756   echo "$as_me: failed program was:" >&5
24757 sed 's/^/| /' conftest.$ac_ext >&5
24758
24759 ac_cv_lib_nsl_s_main=no
24760 fi
24761 rm -f conftest.err conftest.$ac_objext \
24762       conftest$ac_exeext conftest.$ac_ext
24763 LIBS=$ac_check_lib_save_LIBS
24764 fi
24765 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
24766 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
24767 if test $ac_cv_lib_nsl_s_main = yes; then
24768   cat >>confdefs.h <<_ACEOF
24769 #define HAVE_LIBNSL_S 1
24770 _ACEOF
24771
24772   LIBS="-lnsl_s $LIBS"
24773
24774 fi
24775
24776
24777 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24778 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24779 if test "${ac_cv_lib_nsl_main+set}" = set; then
24780   echo $ECHO_N "(cached) $ECHO_C" >&6
24781 else
24782   ac_check_lib_save_LIBS=$LIBS
24783 LIBS="-lnsl  $LIBS"
24784 cat >conftest.$ac_ext <<_ACEOF
24785 /* confdefs.h.  */
24786 _ACEOF
24787 cat confdefs.h >>conftest.$ac_ext
24788 cat >>conftest.$ac_ext <<_ACEOF
24789 /* end confdefs.h.  */
24790
24791
24792 int
24793 main ()
24794 {
24795 main ();
24796   ;
24797   return 0;
24798 }
24799 _ACEOF
24800 rm -f conftest.$ac_objext conftest$ac_exeext
24801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24802   (eval $ac_link) 2>conftest.er1
24803   ac_status=$?
24804   grep -v '^ *+' conftest.er1 >conftest.err
24805   rm -f conftest.er1
24806   cat conftest.err >&5
24807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808   (exit $ac_status); } &&
24809          { ac_try='test -z "$ac_c_werror_flag"
24810                          || test ! -s conftest.err'
24811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24812   (eval $ac_try) 2>&5
24813   ac_status=$?
24814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815   (exit $ac_status); }; } &&
24816          { ac_try='test -s conftest$ac_exeext'
24817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24818   (eval $ac_try) 2>&5
24819   ac_status=$?
24820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821   (exit $ac_status); }; }; then
24822   ac_cv_lib_nsl_main=yes
24823 else
24824   echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24826
24827 ac_cv_lib_nsl_main=no
24828 fi
24829 rm -f conftest.err conftest.$ac_objext \
24830       conftest$ac_exeext conftest.$ac_ext
24831 LIBS=$ac_check_lib_save_LIBS
24832 fi
24833 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24834 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24835 if test $ac_cv_lib_nsl_main = yes; then
24836   cat >>confdefs.h <<_ACEOF
24837 #define HAVE_LIBNSL 1
24838 _ACEOF
24839
24840   LIBS="-lnsl $LIBS"
24841
24842 fi
24843
24844
24845 echo "$as_me:$LINENO: checking for socket in -linet" >&5
24846 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
24847 if test "${ac_cv_lib_inet_socket+set}" = set; then
24848   echo $ECHO_N "(cached) $ECHO_C" >&6
24849 else
24850   ac_check_lib_save_LIBS=$LIBS
24851 LIBS="-linet  $LIBS"
24852 cat >conftest.$ac_ext <<_ACEOF
24853 /* confdefs.h.  */
24854 _ACEOF
24855 cat confdefs.h >>conftest.$ac_ext
24856 cat >>conftest.$ac_ext <<_ACEOF
24857 /* end confdefs.h.  */
24858
24859 /* Override any gcc2 internal prototype to avoid an error.  */
24860 #ifdef __cplusplus
24861 extern "C"
24862 #endif
24863 /* We use char because int might match the return type of a gcc2
24864    builtin and then its argument prototype would still apply.  */
24865 char socket ();
24866 int
24867 main ()
24868 {
24869 socket ();
24870   ;
24871   return 0;
24872 }
24873 _ACEOF
24874 rm -f conftest.$ac_objext conftest$ac_exeext
24875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24876   (eval $ac_link) 2>conftest.er1
24877   ac_status=$?
24878   grep -v '^ *+' conftest.er1 >conftest.err
24879   rm -f conftest.er1
24880   cat conftest.err >&5
24881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882   (exit $ac_status); } &&
24883          { ac_try='test -z "$ac_c_werror_flag"
24884                          || test ! -s conftest.err'
24885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24886   (eval $ac_try) 2>&5
24887   ac_status=$?
24888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889   (exit $ac_status); }; } &&
24890          { ac_try='test -s conftest$ac_exeext'
24891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24892   (eval $ac_try) 2>&5
24893   ac_status=$?
24894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895   (exit $ac_status); }; }; then
24896   ac_cv_lib_inet_socket=yes
24897 else
24898   echo "$as_me: failed program was:" >&5
24899 sed 's/^/| /' conftest.$ac_ext >&5
24900
24901 ac_cv_lib_inet_socket=no
24902 fi
24903 rm -f conftest.err conftest.$ac_objext \
24904       conftest$ac_exeext conftest.$ac_ext
24905 LIBS=$ac_check_lib_save_LIBS
24906 fi
24907 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
24908 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
24909 if test $ac_cv_lib_inet_socket = yes; then
24910   cat >>confdefs.h <<_ACEOF
24911 #define HAVE_LIBINET 1
24912 _ACEOF
24913
24914   LIBS="-linet $LIBS"
24915
24916 fi
24917
24918
24919 echo "$as_me:$LINENO: checking for main in -lgen" >&5
24920 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
24921 if test "${ac_cv_lib_gen_main+set}" = set; then
24922   echo $ECHO_N "(cached) $ECHO_C" >&6
24923 else
24924   ac_check_lib_save_LIBS=$LIBS
24925 LIBS="-lgen  $LIBS"
24926 cat >conftest.$ac_ext <<_ACEOF
24927 /* confdefs.h.  */
24928 _ACEOF
24929 cat confdefs.h >>conftest.$ac_ext
24930 cat >>conftest.$ac_ext <<_ACEOF
24931 /* end confdefs.h.  */
24932
24933
24934 int
24935 main ()
24936 {
24937 main ();
24938   ;
24939   return 0;
24940 }
24941 _ACEOF
24942 rm -f conftest.$ac_objext conftest$ac_exeext
24943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24944   (eval $ac_link) 2>conftest.er1
24945   ac_status=$?
24946   grep -v '^ *+' conftest.er1 >conftest.err
24947   rm -f conftest.er1
24948   cat conftest.err >&5
24949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950   (exit $ac_status); } &&
24951          { ac_try='test -z "$ac_c_werror_flag"
24952                          || test ! -s conftest.err'
24953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24954   (eval $ac_try) 2>&5
24955   ac_status=$?
24956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957   (exit $ac_status); }; } &&
24958          { ac_try='test -s conftest$ac_exeext'
24959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24960   (eval $ac_try) 2>&5
24961   ac_status=$?
24962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963   (exit $ac_status); }; }; then
24964   ac_cv_lib_gen_main=yes
24965 else
24966   echo "$as_me: failed program was:" >&5
24967 sed 's/^/| /' conftest.$ac_ext >&5
24968
24969 ac_cv_lib_gen_main=no
24970 fi
24971 rm -f conftest.err conftest.$ac_objext \
24972       conftest$ac_exeext conftest.$ac_ext
24973 LIBS=$ac_check_lib_save_LIBS
24974 fi
24975 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
24976 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
24977 if test $ac_cv_lib_gen_main = yes; then
24978   cat >>confdefs.h <<_ACEOF
24979 #define HAVE_LIBGEN 1
24980 _ACEOF
24981
24982   LIBS="-lgen $LIBS"
24983
24984 fi
24985
24986
24987 fi
24988
24989
24990 echo "$as_me:$LINENO: checking for select" >&5
24991 echo $ECHO_N "checking for select... $ECHO_C" >&6
24992 if test "${ac_cv_func_select+set}" = set; then
24993   echo $ECHO_N "(cached) $ECHO_C" >&6
24994 else
24995   cat >conftest.$ac_ext <<_ACEOF
24996 /* confdefs.h.  */
24997 _ACEOF
24998 cat confdefs.h >>conftest.$ac_ext
24999 cat >>conftest.$ac_ext <<_ACEOF
25000 /* end confdefs.h.  */
25001 /* Define select to an innocuous variant, in case <limits.h> declares select.
25002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25003 #define select innocuous_select
25004
25005 /* System header to define __stub macros and hopefully few prototypes,
25006     which can conflict with char select (); below.
25007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25008     <limits.h> exists even on freestanding compilers.  */
25009
25010 #ifdef __STDC__
25011 # include <limits.h>
25012 #else
25013 # include <assert.h>
25014 #endif
25015
25016 #undef select
25017
25018 /* Override any gcc2 internal prototype to avoid an error.  */
25019 #ifdef __cplusplus
25020 extern "C"
25021 {
25022 #endif
25023 /* We use char because int might match the return type of a gcc2
25024    builtin and then its argument prototype would still apply.  */
25025 char select ();
25026 /* The GNU C library defines this for functions which it implements
25027     to always fail with ENOSYS.  Some functions are actually named
25028     something starting with __ and the normal name is an alias.  */
25029 #if defined (__stub_select) || defined (__stub___select)
25030 choke me
25031 #else
25032 char (*f) () = select;
25033 #endif
25034 #ifdef __cplusplus
25035 }
25036 #endif
25037
25038 int
25039 main ()
25040 {
25041 return f != select;
25042   ;
25043   return 0;
25044 }
25045 _ACEOF
25046 rm -f conftest.$ac_objext conftest$ac_exeext
25047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25048   (eval $ac_link) 2>conftest.er1
25049   ac_status=$?
25050   grep -v '^ *+' conftest.er1 >conftest.err
25051   rm -f conftest.er1
25052   cat conftest.err >&5
25053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054   (exit $ac_status); } &&
25055          { ac_try='test -z "$ac_c_werror_flag"
25056                          || test ! -s conftest.err'
25057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25058   (eval $ac_try) 2>&5
25059   ac_status=$?
25060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061   (exit $ac_status); }; } &&
25062          { ac_try='test -s conftest$ac_exeext'
25063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25064   (eval $ac_try) 2>&5
25065   ac_status=$?
25066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067   (exit $ac_status); }; }; then
25068   ac_cv_func_select=yes
25069 else
25070   echo "$as_me: failed program was:" >&5
25071 sed 's/^/| /' conftest.$ac_ext >&5
25072
25073 ac_cv_func_select=no
25074 fi
25075 rm -f conftest.err conftest.$ac_objext \
25076       conftest$ac_exeext conftest.$ac_ext
25077 fi
25078 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25079 echo "${ECHO_T}$ac_cv_func_select" >&6
25080 if test $ac_cv_func_select = yes; then
25081   :
25082 else
25083   { { echo "$as_me:$LINENO: error: select() required." >&5
25084 echo "$as_me: error: select() required." >&2;}
25085    { (exit 1); exit 1; }; }
25086 fi
25087
25088
25089 if test "${ac_cv_header_winsock_h}" != yes; then
25090
25091
25092 for ac_header in sys/select.h sys/socket.h
25093 do
25094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25096   echo "$as_me:$LINENO: checking for $ac_header" >&5
25097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25099   echo $ECHO_N "(cached) $ECHO_C" >&6
25100 fi
25101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25103 else
25104   # Is the header compilable?
25105 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25107 cat >conftest.$ac_ext <<_ACEOF
25108 /* confdefs.h.  */
25109 _ACEOF
25110 cat confdefs.h >>conftest.$ac_ext
25111 cat >>conftest.$ac_ext <<_ACEOF
25112 /* end confdefs.h.  */
25113 $ac_includes_default
25114 #include <$ac_header>
25115 _ACEOF
25116 rm -f conftest.$ac_objext
25117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25118   (eval $ac_compile) 2>conftest.er1
25119   ac_status=$?
25120   grep -v '^ *+' conftest.er1 >conftest.err
25121   rm -f conftest.er1
25122   cat conftest.err >&5
25123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124   (exit $ac_status); } &&
25125          { ac_try='test -z "$ac_c_werror_flag"
25126                          || test ! -s conftest.err'
25127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25128   (eval $ac_try) 2>&5
25129   ac_status=$?
25130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131   (exit $ac_status); }; } &&
25132          { ac_try='test -s conftest.$ac_objext'
25133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25134   (eval $ac_try) 2>&5
25135   ac_status=$?
25136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137   (exit $ac_status); }; }; then
25138   ac_header_compiler=yes
25139 else
25140   echo "$as_me: failed program was:" >&5
25141 sed 's/^/| /' conftest.$ac_ext >&5
25142
25143 ac_header_compiler=no
25144 fi
25145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25147 echo "${ECHO_T}$ac_header_compiler" >&6
25148
25149 # Is the header present?
25150 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25152 cat >conftest.$ac_ext <<_ACEOF
25153 /* confdefs.h.  */
25154 _ACEOF
25155 cat confdefs.h >>conftest.$ac_ext
25156 cat >>conftest.$ac_ext <<_ACEOF
25157 /* end confdefs.h.  */
25158 #include <$ac_header>
25159 _ACEOF
25160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25161   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25162   ac_status=$?
25163   grep -v '^ *+' conftest.er1 >conftest.err
25164   rm -f conftest.er1
25165   cat conftest.err >&5
25166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167   (exit $ac_status); } >/dev/null; then
25168   if test -s conftest.err; then
25169     ac_cpp_err=$ac_c_preproc_warn_flag
25170     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25171   else
25172     ac_cpp_err=
25173   fi
25174 else
25175   ac_cpp_err=yes
25176 fi
25177 if test -z "$ac_cpp_err"; then
25178   ac_header_preproc=yes
25179 else
25180   echo "$as_me: failed program was:" >&5
25181 sed 's/^/| /' conftest.$ac_ext >&5
25182
25183   ac_header_preproc=no
25184 fi
25185 rm -f conftest.err conftest.$ac_ext
25186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25187 echo "${ECHO_T}$ac_header_preproc" >&6
25188
25189 # So?  What about this header?
25190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25191   yes:no: )
25192     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25196     ac_header_preproc=yes
25197     ;;
25198   no:yes:* )
25199     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25201     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25202 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25203     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25205     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25206 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25207     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25209     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25211     (
25212       cat <<\_ASBOX
25213 ## ------------------------------------------ ##
25214 ## Report this to the AC_PACKAGE_NAME lists.  ##
25215 ## ------------------------------------------ ##
25216 _ASBOX
25217     ) |
25218       sed "s/^/$as_me: WARNING:     /" >&2
25219     ;;
25220 esac
25221 echo "$as_me:$LINENO: checking for $ac_header" >&5
25222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25224   echo $ECHO_N "(cached) $ECHO_C" >&6
25225 else
25226   eval "$as_ac_Header=\$ac_header_preproc"
25227 fi
25228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25230
25231 fi
25232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25233   cat >>confdefs.h <<_ACEOF
25234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25235 _ACEOF
25236
25237 fi
25238
25239 done
25240
25241 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25242 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25243 if test "${ac_cv_func_select_args+set}" = set; then
25244   echo $ECHO_N "(cached) $ECHO_C" >&6
25245 else
25246   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25247  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25248   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25249    cat >conftest.$ac_ext <<_ACEOF
25250 /* confdefs.h.  */
25251 _ACEOF
25252 cat confdefs.h >>conftest.$ac_ext
25253 cat >>conftest.$ac_ext <<_ACEOF
25254 /* end confdefs.h.  */
25255 $ac_includes_default
25256 #if HAVE_SYS_SELECT_H
25257 # include <sys/select.h>
25258 #endif
25259 #if HAVE_SYS_SOCKET_H
25260 # include <sys/socket.h>
25261 #endif
25262
25263 int
25264 main ()
25265 {
25266 extern int select ($ac_arg1,
25267                                             $ac_arg234, $ac_arg234, $ac_arg234,
25268                                             $ac_arg5);
25269   ;
25270   return 0;
25271 }
25272 _ACEOF
25273 rm -f conftest.$ac_objext
25274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25275   (eval $ac_compile) 2>conftest.er1
25276   ac_status=$?
25277   grep -v '^ *+' conftest.er1 >conftest.err
25278   rm -f conftest.er1
25279   cat conftest.err >&5
25280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281   (exit $ac_status); } &&
25282          { ac_try='test -z "$ac_c_werror_flag"
25283                          || test ! -s conftest.err'
25284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25285   (eval $ac_try) 2>&5
25286   ac_status=$?
25287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288   (exit $ac_status); }; } &&
25289          { ac_try='test -s conftest.$ac_objext'
25290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25291   (eval $ac_try) 2>&5
25292   ac_status=$?
25293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294   (exit $ac_status); }; }; then
25295   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25296 else
25297   echo "$as_me: failed program was:" >&5
25298 sed 's/^/| /' conftest.$ac_ext >&5
25299
25300 fi
25301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25302   done
25303  done
25304 done
25305 # Provide a safe default value.
25306 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25307
25308 fi
25309 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25310 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25311 ac_save_IFS=$IFS; IFS=','
25312 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25313 IFS=$ac_save_IFS
25314 shift
25315
25316 cat >>confdefs.h <<_ACEOF
25317 #define SELECT_TYPE_ARG1 $1
25318 _ACEOF
25319
25320
25321 cat >>confdefs.h <<_ACEOF
25322 #define SELECT_TYPE_ARG234 ($2)
25323 _ACEOF
25324
25325
25326 cat >>confdefs.h <<_ACEOF
25327 #define SELECT_TYPE_ARG5 ($3)
25328 _ACEOF
25329
25330 rm -f conftest*
25331
25332 fi
25333
25334
25335
25336 for ac_func in poll
25337 do
25338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25339 echo "$as_me:$LINENO: checking for $ac_func" >&5
25340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25341 if eval "test \"\${$as_ac_var+set}\" = set"; then
25342   echo $ECHO_N "(cached) $ECHO_C" >&6
25343 else
25344   cat >conftest.$ac_ext <<_ACEOF
25345 /* confdefs.h.  */
25346 _ACEOF
25347 cat confdefs.h >>conftest.$ac_ext
25348 cat >>conftest.$ac_ext <<_ACEOF
25349 /* end confdefs.h.  */
25350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25352 #define $ac_func innocuous_$ac_func
25353
25354 /* System header to define __stub macros and hopefully few prototypes,
25355     which can conflict with char $ac_func (); below.
25356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25357     <limits.h> exists even on freestanding compilers.  */
25358
25359 #ifdef __STDC__
25360 # include <limits.h>
25361 #else
25362 # include <assert.h>
25363 #endif
25364
25365 #undef $ac_func
25366
25367 /* Override any gcc2 internal prototype to avoid an error.  */
25368 #ifdef __cplusplus
25369 extern "C"
25370 {
25371 #endif
25372 /* We use char because int might match the return type of a gcc2
25373    builtin and then its argument prototype would still apply.  */
25374 char $ac_func ();
25375 /* The GNU C library defines this for functions which it implements
25376     to always fail with ENOSYS.  Some functions are actually named
25377     something starting with __ and the normal name is an alias.  */
25378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25379 choke me
25380 #else
25381 char (*f) () = $ac_func;
25382 #endif
25383 #ifdef __cplusplus
25384 }
25385 #endif
25386
25387 int
25388 main ()
25389 {
25390 return f != $ac_func;
25391   ;
25392   return 0;
25393 }
25394 _ACEOF
25395 rm -f conftest.$ac_objext conftest$ac_exeext
25396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25397   (eval $ac_link) 2>conftest.er1
25398   ac_status=$?
25399   grep -v '^ *+' conftest.er1 >conftest.err
25400   rm -f conftest.er1
25401   cat conftest.err >&5
25402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403   (exit $ac_status); } &&
25404          { ac_try='test -z "$ac_c_werror_flag"
25405                          || test ! -s conftest.err'
25406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25407   (eval $ac_try) 2>&5
25408   ac_status=$?
25409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25410   (exit $ac_status); }; } &&
25411          { ac_try='test -s conftest$ac_exeext'
25412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25413   (eval $ac_try) 2>&5
25414   ac_status=$?
25415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416   (exit $ac_status); }; }; then
25417   eval "$as_ac_var=yes"
25418 else
25419   echo "$as_me: failed program was:" >&5
25420 sed 's/^/| /' conftest.$ac_ext >&5
25421
25422 eval "$as_ac_var=no"
25423 fi
25424 rm -f conftest.err conftest.$ac_objext \
25425       conftest$ac_exeext conftest.$ac_ext
25426 fi
25427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25429 if test `eval echo '${'$as_ac_var'}'` = yes; then
25430   cat >>confdefs.h <<_ACEOF
25431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25432 _ACEOF
25433
25434 fi
25435 done
25436
25437
25438 for ac_header in poll.h
25439 do
25440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25442   echo "$as_me:$LINENO: checking for $ac_header" >&5
25443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25445   echo $ECHO_N "(cached) $ECHO_C" >&6
25446 fi
25447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25449 else
25450   # Is the header compilable?
25451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25453 cat >conftest.$ac_ext <<_ACEOF
25454 /* confdefs.h.  */
25455 _ACEOF
25456 cat confdefs.h >>conftest.$ac_ext
25457 cat >>conftest.$ac_ext <<_ACEOF
25458 /* end confdefs.h.  */
25459 $ac_includes_default
25460 #include <$ac_header>
25461 _ACEOF
25462 rm -f conftest.$ac_objext
25463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25464   (eval $ac_compile) 2>conftest.er1
25465   ac_status=$?
25466   grep -v '^ *+' conftest.er1 >conftest.err
25467   rm -f conftest.er1
25468   cat conftest.err >&5
25469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25470   (exit $ac_status); } &&
25471          { ac_try='test -z "$ac_c_werror_flag"
25472                          || test ! -s conftest.err'
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); }; } &&
25478          { ac_try='test -s conftest.$ac_objext'
25479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480   (eval $ac_try) 2>&5
25481   ac_status=$?
25482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483   (exit $ac_status); }; }; then
25484   ac_header_compiler=yes
25485 else
25486   echo "$as_me: failed program was:" >&5
25487 sed 's/^/| /' conftest.$ac_ext >&5
25488
25489 ac_header_compiler=no
25490 fi
25491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25493 echo "${ECHO_T}$ac_header_compiler" >&6
25494
25495 # Is the header present?
25496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25498 cat >conftest.$ac_ext <<_ACEOF
25499 /* confdefs.h.  */
25500 _ACEOF
25501 cat confdefs.h >>conftest.$ac_ext
25502 cat >>conftest.$ac_ext <<_ACEOF
25503 /* end confdefs.h.  */
25504 #include <$ac_header>
25505 _ACEOF
25506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25507   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25508   ac_status=$?
25509   grep -v '^ *+' conftest.er1 >conftest.err
25510   rm -f conftest.er1
25511   cat conftest.err >&5
25512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513   (exit $ac_status); } >/dev/null; then
25514   if test -s conftest.err; then
25515     ac_cpp_err=$ac_c_preproc_warn_flag
25516     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25517   else
25518     ac_cpp_err=
25519   fi
25520 else
25521   ac_cpp_err=yes
25522 fi
25523 if test -z "$ac_cpp_err"; then
25524   ac_header_preproc=yes
25525 else
25526   echo "$as_me: failed program was:" >&5
25527 sed 's/^/| /' conftest.$ac_ext >&5
25528
25529   ac_header_preproc=no
25530 fi
25531 rm -f conftest.err conftest.$ac_ext
25532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25533 echo "${ECHO_T}$ac_header_preproc" >&6
25534
25535 # So?  What about this header?
25536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25537   yes:no: )
25538     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25542     ac_header_preproc=yes
25543     ;;
25544   no:yes:* )
25545     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25547     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25548 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25549     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25551     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25552 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25555     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25557     (
25558       cat <<\_ASBOX
25559 ## ------------------------------------------ ##
25560 ## Report this to the AC_PACKAGE_NAME lists.  ##
25561 ## ------------------------------------------ ##
25562 _ASBOX
25563     ) |
25564       sed "s/^/$as_me: WARNING:     /" >&2
25565     ;;
25566 esac
25567 echo "$as_me:$LINENO: checking for $ac_header" >&5
25568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25570   echo $ECHO_N "(cached) $ECHO_C" >&6
25571 else
25572   eval "$as_ac_Header=\$ac_header_preproc"
25573 fi
25574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25576
25577 fi
25578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25579   cat >>confdefs.h <<_ACEOF
25580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25581 _ACEOF
25582
25583 fi
25584
25585 done
25586
25587
25588
25589 for ac_header in sys/epoll.h
25590 do
25591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25593   echo "$as_me:$LINENO: checking for $ac_header" >&5
25594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25596   echo $ECHO_N "(cached) $ECHO_C" >&6
25597 fi
25598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25600 else
25601   # Is the header compilable?
25602 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25604 cat >conftest.$ac_ext <<_ACEOF
25605 /* confdefs.h.  */
25606 _ACEOF
25607 cat confdefs.h >>conftest.$ac_ext
25608 cat >>conftest.$ac_ext <<_ACEOF
25609 /* end confdefs.h.  */
25610 $ac_includes_default
25611 #include <$ac_header>
25612 _ACEOF
25613 rm -f conftest.$ac_objext
25614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25615   (eval $ac_compile) 2>conftest.er1
25616   ac_status=$?
25617   grep -v '^ *+' conftest.er1 >conftest.err
25618   rm -f conftest.er1
25619   cat conftest.err >&5
25620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621   (exit $ac_status); } &&
25622          { ac_try='test -z "$ac_c_werror_flag"
25623                          || test ! -s conftest.err'
25624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25625   (eval $ac_try) 2>&5
25626   ac_status=$?
25627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628   (exit $ac_status); }; } &&
25629          { ac_try='test -s conftest.$ac_objext'
25630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25631   (eval $ac_try) 2>&5
25632   ac_status=$?
25633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634   (exit $ac_status); }; }; then
25635   ac_header_compiler=yes
25636 else
25637   echo "$as_me: failed program was:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25639
25640 ac_header_compiler=no
25641 fi
25642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25643 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25644 echo "${ECHO_T}$ac_header_compiler" >&6
25645
25646 # Is the header present?
25647 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25649 cat >conftest.$ac_ext <<_ACEOF
25650 /* confdefs.h.  */
25651 _ACEOF
25652 cat confdefs.h >>conftest.$ac_ext
25653 cat >>conftest.$ac_ext <<_ACEOF
25654 /* end confdefs.h.  */
25655 #include <$ac_header>
25656 _ACEOF
25657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25658   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25659   ac_status=$?
25660   grep -v '^ *+' conftest.er1 >conftest.err
25661   rm -f conftest.er1
25662   cat conftest.err >&5
25663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664   (exit $ac_status); } >/dev/null; then
25665   if test -s conftest.err; then
25666     ac_cpp_err=$ac_c_preproc_warn_flag
25667     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25668   else
25669     ac_cpp_err=
25670   fi
25671 else
25672   ac_cpp_err=yes
25673 fi
25674 if test -z "$ac_cpp_err"; then
25675   ac_header_preproc=yes
25676 else
25677   echo "$as_me: failed program was:" >&5
25678 sed 's/^/| /' conftest.$ac_ext >&5
25679
25680   ac_header_preproc=no
25681 fi
25682 rm -f conftest.err conftest.$ac_ext
25683 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25684 echo "${ECHO_T}$ac_header_preproc" >&6
25685
25686 # So?  What about this header?
25687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25688   yes:no: )
25689     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25691     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25693     ac_header_preproc=yes
25694     ;;
25695   no:yes:* )
25696     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25698     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25699 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25700     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25702     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25703 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25704     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25706     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25708     (
25709       cat <<\_ASBOX
25710 ## ------------------------------------------ ##
25711 ## Report this to the AC_PACKAGE_NAME lists.  ##
25712 ## ------------------------------------------ ##
25713 _ASBOX
25714     ) |
25715       sed "s/^/$as_me: WARNING:     /" >&2
25716     ;;
25717 esac
25718 echo "$as_me:$LINENO: checking for $ac_header" >&5
25719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25721   echo $ECHO_N "(cached) $ECHO_C" >&6
25722 else
25723   eval "$as_ac_Header=\$ac_header_preproc"
25724 fi
25725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25727
25728 fi
25729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25730   cat >>confdefs.h <<_ACEOF
25731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25732 _ACEOF
25733
25734 fi
25735
25736 done
25737
25738 if test "${ac_cv_header_sys_epoll_h}" = yes; then
25739 echo "$as_me:$LINENO: checking for epoll system call" >&5
25740 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
25741 if test "$cross_compiling" = yes; then
25742   echo "$as_me:$LINENO: result: no" >&5
25743 echo "${ECHO_T}no" >&6
25744 else
25745   cat >conftest.$ac_ext <<_ACEOF
25746 /* confdefs.h.  */
25747 _ACEOF
25748 cat confdefs.h >>conftest.$ac_ext
25749 cat >>conftest.$ac_ext <<_ACEOF
25750 /* end confdefs.h.  */
25751 int main(int argc, char *argv)
25752 {
25753         int epfd = epoll_create(256);
25754         exit (epfd == -1 ? 1 : 0);
25755 }
25756 _ACEOF
25757 rm -f conftest$ac_exeext
25758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25759   (eval $ac_link) 2>&5
25760   ac_status=$?
25761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764   (eval $ac_try) 2>&5
25765   ac_status=$?
25766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767   (exit $ac_status); }; }; then
25768   echo "$as_me:$LINENO: result: yes" >&5
25769 echo "${ECHO_T}yes" >&6
25770
25771 cat >>confdefs.h <<\_ACEOF
25772 #define HAVE_EPOLL 1
25773 _ACEOF
25774
25775 else
25776   echo "$as_me: program exited with status $ac_status" >&5
25777 echo "$as_me: failed program was:" >&5
25778 sed 's/^/| /' conftest.$ac_ext >&5
25779
25780 ( exit $ac_status )
25781 echo "$as_me:$LINENO: result: no" >&5
25782 echo "${ECHO_T}no" >&6
25783 fi
25784 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25785 fi
25786 fi
25787
25788 # strerror checks
25789 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
25790 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
25791 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
25792   echo $ECHO_N "(cached) $ECHO_C" >&6
25793 else
25794
25795         cat >conftest.$ac_ext <<_ACEOF
25796 /* confdefs.h.  */
25797 _ACEOF
25798 cat confdefs.h >>conftest.$ac_ext
25799 cat >>conftest.$ac_ext <<_ACEOF
25800 /* end confdefs.h.  */
25801
25802 #include <stdio.h>
25803 #include <sys/types.h>
25804 #include <errno.h>
25805 #ifdef WINNT
25806 #include <stdlib.h>
25807 #endif
25808 int
25809 main ()
25810 {
25811 char *c = (char *) *sys_errlist
25812   ;
25813   return 0;
25814 }
25815 _ACEOF
25816 rm -f conftest.$ac_objext
25817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25818   (eval $ac_compile) 2>conftest.er1
25819   ac_status=$?
25820   grep -v '^ *+' conftest.er1 >conftest.err
25821   rm -f conftest.er1
25822   cat conftest.err >&5
25823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25824   (exit $ac_status); } &&
25825          { ac_try='test -z "$ac_c_werror_flag"
25826                          || test ! -s conftest.err'
25827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25828   (eval $ac_try) 2>&5
25829   ac_status=$?
25830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831   (exit $ac_status); }; } &&
25832          { ac_try='test -s conftest.$ac_objext'
25833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834   (eval $ac_try) 2>&5
25835   ac_status=$?
25836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837   (exit $ac_status); }; }; then
25838   ol_cv_dcl_sys_errlist=yes
25839         ol_cv_have_sys_errlist=yes
25840 else
25841   echo "$as_me: failed program was:" >&5
25842 sed 's/^/| /' conftest.$ac_ext >&5
25843
25844 ol_cv_dcl_sys_errlist=no
25845 fi
25846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25847 fi
25848 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
25849 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
25850 #
25851 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
25852 if test $ol_cv_dcl_sys_errlist = no ; then
25853
25854 cat >>confdefs.h <<\_ACEOF
25855 #define DECL_SYS_ERRLIST 1
25856 _ACEOF
25857
25858
25859         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
25860 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
25861 if test "${ol_cv_have_sys_errlist+set}" = set; then
25862   echo $ECHO_N "(cached) $ECHO_C" >&6
25863 else
25864
25865                 cat >conftest.$ac_ext <<_ACEOF
25866 /* confdefs.h.  */
25867 _ACEOF
25868 cat confdefs.h >>conftest.$ac_ext
25869 cat >>conftest.$ac_ext <<_ACEOF
25870 /* end confdefs.h.  */
25871 #include <errno.h>
25872 int
25873 main ()
25874 {
25875 char *c = (char *) *sys_errlist
25876   ;
25877   return 0;
25878 }
25879 _ACEOF
25880 rm -f conftest.$ac_objext conftest$ac_exeext
25881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25882   (eval $ac_link) 2>conftest.er1
25883   ac_status=$?
25884   grep -v '^ *+' conftest.er1 >conftest.err
25885   rm -f conftest.er1
25886   cat conftest.err >&5
25887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888   (exit $ac_status); } &&
25889          { ac_try='test -z "$ac_c_werror_flag"
25890                          || test ! -s conftest.err'
25891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25892   (eval $ac_try) 2>&5
25893   ac_status=$?
25894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895   (exit $ac_status); }; } &&
25896          { ac_try='test -s conftest$ac_exeext'
25897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25898   (eval $ac_try) 2>&5
25899   ac_status=$?
25900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901   (exit $ac_status); }; }; then
25902   ol_cv_have_sys_errlist=yes
25903 else
25904   echo "$as_me: failed program was:" >&5
25905 sed 's/^/| /' conftest.$ac_ext >&5
25906
25907 ol_cv_have_sys_errlist=no
25908 fi
25909 rm -f conftest.err conftest.$ac_objext \
25910       conftest$ac_exeext conftest.$ac_ext
25911 fi
25912 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
25913 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
25914 fi
25915 if test $ol_cv_have_sys_errlist = yes ; then
25916
25917 cat >>confdefs.h <<\_ACEOF
25918 #define HAVE_SYS_ERRLIST 1
25919 _ACEOF
25920
25921 fi
25922
25923
25924 for ac_func in strerror strerror_r
25925 do
25926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25927 echo "$as_me:$LINENO: checking for $ac_func" >&5
25928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25929 if eval "test \"\${$as_ac_var+set}\" = set"; then
25930   echo $ECHO_N "(cached) $ECHO_C" >&6
25931 else
25932   cat >conftest.$ac_ext <<_ACEOF
25933 /* confdefs.h.  */
25934 _ACEOF
25935 cat confdefs.h >>conftest.$ac_ext
25936 cat >>conftest.$ac_ext <<_ACEOF
25937 /* end confdefs.h.  */
25938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25940 #define $ac_func innocuous_$ac_func
25941
25942 /* System header to define __stub macros and hopefully few prototypes,
25943     which can conflict with char $ac_func (); below.
25944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25945     <limits.h> exists even on freestanding compilers.  */
25946
25947 #ifdef __STDC__
25948 # include <limits.h>
25949 #else
25950 # include <assert.h>
25951 #endif
25952
25953 #undef $ac_func
25954
25955 /* Override any gcc2 internal prototype to avoid an error.  */
25956 #ifdef __cplusplus
25957 extern "C"
25958 {
25959 #endif
25960 /* We use char because int might match the return type of a gcc2
25961    builtin and then its argument prototype would still apply.  */
25962 char $ac_func ();
25963 /* The GNU C library defines this for functions which it implements
25964     to always fail with ENOSYS.  Some functions are actually named
25965     something starting with __ and the normal name is an alias.  */
25966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25967 choke me
25968 #else
25969 char (*f) () = $ac_func;
25970 #endif
25971 #ifdef __cplusplus
25972 }
25973 #endif
25974
25975 int
25976 main ()
25977 {
25978 return f != $ac_func;
25979   ;
25980   return 0;
25981 }
25982 _ACEOF
25983 rm -f conftest.$ac_objext conftest$ac_exeext
25984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25985   (eval $ac_link) 2>conftest.er1
25986   ac_status=$?
25987   grep -v '^ *+' conftest.er1 >conftest.err
25988   rm -f conftest.er1
25989   cat conftest.err >&5
25990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25991   (exit $ac_status); } &&
25992          { ac_try='test -z "$ac_c_werror_flag"
25993                          || test ! -s conftest.err'
25994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25995   (eval $ac_try) 2>&5
25996   ac_status=$?
25997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998   (exit $ac_status); }; } &&
25999          { ac_try='test -s conftest$ac_exeext'
26000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26001   (eval $ac_try) 2>&5
26002   ac_status=$?
26003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26004   (exit $ac_status); }; }; then
26005   eval "$as_ac_var=yes"
26006 else
26007   echo "$as_me: failed program was:" >&5
26008 sed 's/^/| /' conftest.$ac_ext >&5
26009
26010 eval "$as_ac_var=no"
26011 fi
26012 rm -f conftest.err conftest.$ac_objext \
26013       conftest$ac_exeext conftest.$ac_ext
26014 fi
26015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26017 if test `eval echo '${'$as_ac_var'}'` = yes; then
26018   cat >>confdefs.h <<_ACEOF
26019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26020 _ACEOF
26021
26022 fi
26023 done
26024
26025 ol_cv_func_strerror_r=no
26026 if test "${ac_cv_func_strerror_r}" = yes ; then
26027         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26028 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26029 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26030   echo $ECHO_N "(cached) $ECHO_C" >&6
26031 else
26032
26033         cat >conftest.$ac_ext <<_ACEOF
26034 /* confdefs.h.  */
26035 _ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h.  */
26039 #include <string.h>
26040 _ACEOF
26041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26042   $EGREP "strerror_r" >/dev/null 2>&1; then
26043   ol_decl_strerror_r=yes
26044 else
26045   ol_decl_strerror_r=no
26046 fi
26047 rm -f conftest*
26048
26049         if test $ol_decl_strerror_r = yes ; then
26050                 cat >conftest.$ac_ext <<_ACEOF
26051 /* confdefs.h.  */
26052 _ACEOF
26053 cat confdefs.h >>conftest.$ac_ext
26054 cat >>conftest.$ac_ext <<_ACEOF
26055 /* end confdefs.h.  */
26056 #include <string.h>
26057 int
26058 main ()
26059 {
26060    /* from autoconf 2.59 */
26061                                 char buf[100];
26062                                 char x = *strerror_r (0, buf, sizeof buf);
26063                                 char *p = strerror_r (0, buf, sizeof buf);
26064
26065   ;
26066   return 0;
26067 }
26068 _ACEOF
26069 rm -f conftest.$ac_objext
26070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26071   (eval $ac_compile) 2>conftest.er1
26072   ac_status=$?
26073   grep -v '^ *+' conftest.er1 >conftest.err
26074   rm -f conftest.er1
26075   cat conftest.err >&5
26076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077   (exit $ac_status); } &&
26078          { ac_try='test -z "$ac_c_werror_flag"
26079                          || test ! -s conftest.err'
26080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26081   (eval $ac_try) 2>&5
26082   ac_status=$?
26083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26084   (exit $ac_status); }; } &&
26085          { ac_try='test -s conftest.$ac_objext'
26086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26087   (eval $ac_try) 2>&5
26088   ac_status=$?
26089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090   (exit $ac_status); }; }; then
26091   ol_cv_nonposix_strerror_r=yes
26092 else
26093   echo "$as_me: failed program was:" >&5
26094 sed 's/^/| /' conftest.$ac_ext >&5
26095
26096 ol_cv_nonposix_strerror_r=no
26097 fi
26098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26099         else
26100                 if test "$cross_compiling" = yes; then
26101   ol_cv_nonposix_strerror=no
26102 else
26103   cat >conftest.$ac_ext <<_ACEOF
26104 /* confdefs.h.  */
26105 _ACEOF
26106 cat confdefs.h >>conftest.$ac_ext
26107 cat >>conftest.$ac_ext <<_ACEOF
26108 /* end confdefs.h.  */
26109
26110                         main() {
26111                                 char buf[100];
26112                                 buf[0] = 0;
26113                                 strerror_r( 1, buf, sizeof buf );
26114                                 exit( buf[0] == 0 );
26115                         }
26116
26117 _ACEOF
26118 rm -f conftest$ac_exeext
26119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26120   (eval $ac_link) 2>&5
26121   ac_status=$?
26122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26125   (eval $ac_try) 2>&5
26126   ac_status=$?
26127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128   (exit $ac_status); }; }; then
26129   ol_cv_nonposix_strerror_r=yes
26130 else
26131   echo "$as_me: program exited with status $ac_status" >&5
26132 echo "$as_me: failed program was:" >&5
26133 sed 's/^/| /' conftest.$ac_ext >&5
26134
26135 ( exit $ac_status )
26136 ol_cv_nonposix_strerror=no
26137 fi
26138 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26139 fi
26140         fi
26141
26142 fi
26143 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26144 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26145 if test $ol_cv_nonposix_strerror_r = yes ; then
26146
26147 cat >>confdefs.h <<\_ACEOF
26148 #define HAVE_NONPOSIX_STRERROR_R 1
26149 _ACEOF
26150
26151 fi
26152
26153 elif test "${ac_cv_func_strerror}" = no ; then
26154         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26155 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26156 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26157   echo $ECHO_N "(cached) $ECHO_C" >&6
26158 else
26159
26160         cat >conftest.$ac_ext <<_ACEOF
26161 /* confdefs.h.  */
26162 _ACEOF
26163 cat confdefs.h >>conftest.$ac_ext
26164 cat >>conftest.$ac_ext <<_ACEOF
26165 /* end confdefs.h.  */
26166
26167 #include <stdio.h>
26168 #include <sys/types.h>
26169 #include <errno.h>
26170 #ifdef WINNT
26171 #include <stdlib.h>
26172 #endif
26173 int
26174 main ()
26175 {
26176 char *c = (char *) *sys_errlist
26177   ;
26178   return 0;
26179 }
26180 _ACEOF
26181 rm -f conftest.$ac_objext
26182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26183   (eval $ac_compile) 2>conftest.er1
26184   ac_status=$?
26185   grep -v '^ *+' conftest.er1 >conftest.err
26186   rm -f conftest.er1
26187   cat conftest.err >&5
26188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189   (exit $ac_status); } &&
26190          { ac_try='test -z "$ac_c_werror_flag"
26191                          || test ! -s conftest.err'
26192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26193   (eval $ac_try) 2>&5
26194   ac_status=$?
26195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196   (exit $ac_status); }; } &&
26197          { ac_try='test -s conftest.$ac_objext'
26198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26199   (eval $ac_try) 2>&5
26200   ac_status=$?
26201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202   (exit $ac_status); }; }; then
26203   ol_cv_dcl_sys_errlist=yes
26204         ol_cv_have_sys_errlist=yes
26205 else
26206   echo "$as_me: failed program was:" >&5
26207 sed 's/^/| /' conftest.$ac_ext >&5
26208
26209 ol_cv_dcl_sys_errlist=no
26210 fi
26211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26212 fi
26213 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26214 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26215 #
26216 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26217 if test $ol_cv_dcl_sys_errlist = no ; then
26218
26219 cat >>confdefs.h <<\_ACEOF
26220 #define DECL_SYS_ERRLIST 1
26221 _ACEOF
26222
26223
26224         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26225 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26226 if test "${ol_cv_have_sys_errlist+set}" = set; then
26227   echo $ECHO_N "(cached) $ECHO_C" >&6
26228 else
26229
26230                 cat >conftest.$ac_ext <<_ACEOF
26231 /* confdefs.h.  */
26232 _ACEOF
26233 cat confdefs.h >>conftest.$ac_ext
26234 cat >>conftest.$ac_ext <<_ACEOF
26235 /* end confdefs.h.  */
26236 #include <errno.h>
26237 int
26238 main ()
26239 {
26240 char *c = (char *) *sys_errlist
26241   ;
26242   return 0;
26243 }
26244 _ACEOF
26245 rm -f conftest.$ac_objext conftest$ac_exeext
26246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26247   (eval $ac_link) 2>conftest.er1
26248   ac_status=$?
26249   grep -v '^ *+' conftest.er1 >conftest.err
26250   rm -f conftest.er1
26251   cat conftest.err >&5
26252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253   (exit $ac_status); } &&
26254          { ac_try='test -z "$ac_c_werror_flag"
26255                          || test ! -s conftest.err'
26256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26257   (eval $ac_try) 2>&5
26258   ac_status=$?
26259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260   (exit $ac_status); }; } &&
26261          { ac_try='test -s conftest$ac_exeext'
26262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26263   (eval $ac_try) 2>&5
26264   ac_status=$?
26265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266   (exit $ac_status); }; }; then
26267   ol_cv_have_sys_errlist=yes
26268 else
26269   echo "$as_me: failed program was:" >&5
26270 sed 's/^/| /' conftest.$ac_ext >&5
26271
26272 ol_cv_have_sys_errlist=no
26273 fi
26274 rm -f conftest.err conftest.$ac_objext \
26275       conftest$ac_exeext conftest.$ac_ext
26276 fi
26277 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26278 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26279 fi
26280 if test $ol_cv_have_sys_errlist = yes ; then
26281
26282 cat >>confdefs.h <<\_ACEOF
26283 #define HAVE_SYS_ERRLIST 1
26284 _ACEOF
26285
26286 fi
26287
26288 fi
26289
26290
26291
26292 for ac_header in regex.h
26293 do
26294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26296   echo "$as_me:$LINENO: checking for $ac_header" >&5
26297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26299   echo $ECHO_N "(cached) $ECHO_C" >&6
26300 fi
26301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26303 else
26304   # Is the header compilable?
26305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26307 cat >conftest.$ac_ext <<_ACEOF
26308 /* confdefs.h.  */
26309 _ACEOF
26310 cat confdefs.h >>conftest.$ac_ext
26311 cat >>conftest.$ac_ext <<_ACEOF
26312 /* end confdefs.h.  */
26313 $ac_includes_default
26314 #include <$ac_header>
26315 _ACEOF
26316 rm -f conftest.$ac_objext
26317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26318   (eval $ac_compile) 2>conftest.er1
26319   ac_status=$?
26320   grep -v '^ *+' conftest.er1 >conftest.err
26321   rm -f conftest.er1
26322   cat conftest.err >&5
26323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324   (exit $ac_status); } &&
26325          { ac_try='test -z "$ac_c_werror_flag"
26326                          || test ! -s conftest.err'
26327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26328   (eval $ac_try) 2>&5
26329   ac_status=$?
26330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331   (exit $ac_status); }; } &&
26332          { ac_try='test -s conftest.$ac_objext'
26333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26334   (eval $ac_try) 2>&5
26335   ac_status=$?
26336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337   (exit $ac_status); }; }; then
26338   ac_header_compiler=yes
26339 else
26340   echo "$as_me: failed program was:" >&5
26341 sed 's/^/| /' conftest.$ac_ext >&5
26342
26343 ac_header_compiler=no
26344 fi
26345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26347 echo "${ECHO_T}$ac_header_compiler" >&6
26348
26349 # Is the header present?
26350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26352 cat >conftest.$ac_ext <<_ACEOF
26353 /* confdefs.h.  */
26354 _ACEOF
26355 cat confdefs.h >>conftest.$ac_ext
26356 cat >>conftest.$ac_ext <<_ACEOF
26357 /* end confdefs.h.  */
26358 #include <$ac_header>
26359 _ACEOF
26360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26361   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26362   ac_status=$?
26363   grep -v '^ *+' conftest.er1 >conftest.err
26364   rm -f conftest.er1
26365   cat conftest.err >&5
26366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367   (exit $ac_status); } >/dev/null; then
26368   if test -s conftest.err; then
26369     ac_cpp_err=$ac_c_preproc_warn_flag
26370     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26371   else
26372     ac_cpp_err=
26373   fi
26374 else
26375   ac_cpp_err=yes
26376 fi
26377 if test -z "$ac_cpp_err"; then
26378   ac_header_preproc=yes
26379 else
26380   echo "$as_me: failed program was:" >&5
26381 sed 's/^/| /' conftest.$ac_ext >&5
26382
26383   ac_header_preproc=no
26384 fi
26385 rm -f conftest.err conftest.$ac_ext
26386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26387 echo "${ECHO_T}$ac_header_preproc" >&6
26388
26389 # So?  What about this header?
26390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26391   yes:no: )
26392     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26396     ac_header_preproc=yes
26397     ;;
26398   no:yes:* )
26399     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26401     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26402 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26403     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26405     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26406 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26409     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26411     (
26412       cat <<\_ASBOX
26413 ## ------------------------------------------ ##
26414 ## Report this to the AC_PACKAGE_NAME lists.  ##
26415 ## ------------------------------------------ ##
26416 _ASBOX
26417     ) |
26418       sed "s/^/$as_me: WARNING:     /" >&2
26419     ;;
26420 esac
26421 echo "$as_me:$LINENO: checking for $ac_header" >&5
26422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26424   echo $ECHO_N "(cached) $ECHO_C" >&6
26425 else
26426   eval "$as_ac_Header=\$ac_header_preproc"
26427 fi
26428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26430
26431 fi
26432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26433   cat >>confdefs.h <<_ACEOF
26434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26435 _ACEOF
26436
26437 fi
26438
26439 done
26440
26441 if test "$ac_cv_header_regex_h" != yes ; then
26442         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26443 echo "$as_me: error: POSIX regex.h required." >&2;}
26444    { (exit 1); exit 1; }; }
26445 fi
26446 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26447 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26448 if test "${ac_cv_search_regfree+set}" = set; then
26449   echo $ECHO_N "(cached) $ECHO_C" >&6
26450 else
26451   ac_func_search_save_LIBS=$LIBS
26452 ac_cv_search_regfree=no
26453 cat >conftest.$ac_ext <<_ACEOF
26454 /* confdefs.h.  */
26455 _ACEOF
26456 cat confdefs.h >>conftest.$ac_ext
26457 cat >>conftest.$ac_ext <<_ACEOF
26458 /* end confdefs.h.  */
26459
26460 /* Override any gcc2 internal prototype to avoid an error.  */
26461 #ifdef __cplusplus
26462 extern "C"
26463 #endif
26464 /* We use char because int might match the return type of a gcc2
26465    builtin and then its argument prototype would still apply.  */
26466 char regfree ();
26467 int
26468 main ()
26469 {
26470 regfree ();
26471   ;
26472   return 0;
26473 }
26474 _ACEOF
26475 rm -f conftest.$ac_objext conftest$ac_exeext
26476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26477   (eval $ac_link) 2>conftest.er1
26478   ac_status=$?
26479   grep -v '^ *+' conftest.er1 >conftest.err
26480   rm -f conftest.er1
26481   cat conftest.err >&5
26482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483   (exit $ac_status); } &&
26484          { ac_try='test -z "$ac_c_werror_flag"
26485                          || test ! -s conftest.err'
26486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26487   (eval $ac_try) 2>&5
26488   ac_status=$?
26489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490   (exit $ac_status); }; } &&
26491          { ac_try='test -s conftest$ac_exeext'
26492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26493   (eval $ac_try) 2>&5
26494   ac_status=$?
26495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26496   (exit $ac_status); }; }; then
26497   ac_cv_search_regfree="none required"
26498 else
26499   echo "$as_me: failed program was:" >&5
26500 sed 's/^/| /' conftest.$ac_ext >&5
26501
26502 fi
26503 rm -f conftest.err conftest.$ac_objext \
26504       conftest$ac_exeext conftest.$ac_ext
26505 if test "$ac_cv_search_regfree" = no; then
26506   for ac_lib in regex gnuregex; do
26507     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26508     cat >conftest.$ac_ext <<_ACEOF
26509 /* confdefs.h.  */
26510 _ACEOF
26511 cat confdefs.h >>conftest.$ac_ext
26512 cat >>conftest.$ac_ext <<_ACEOF
26513 /* end confdefs.h.  */
26514
26515 /* Override any gcc2 internal prototype to avoid an error.  */
26516 #ifdef __cplusplus
26517 extern "C"
26518 #endif
26519 /* We use char because int might match the return type of a gcc2
26520    builtin and then its argument prototype would still apply.  */
26521 char regfree ();
26522 int
26523 main ()
26524 {
26525 regfree ();
26526   ;
26527   return 0;
26528 }
26529 _ACEOF
26530 rm -f conftest.$ac_objext conftest$ac_exeext
26531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26532   (eval $ac_link) 2>conftest.er1
26533   ac_status=$?
26534   grep -v '^ *+' conftest.er1 >conftest.err
26535   rm -f conftest.er1
26536   cat conftest.err >&5
26537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538   (exit $ac_status); } &&
26539          { ac_try='test -z "$ac_c_werror_flag"
26540                          || test ! -s conftest.err'
26541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26542   (eval $ac_try) 2>&5
26543   ac_status=$?
26544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545   (exit $ac_status); }; } &&
26546          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
26552   ac_cv_search_regfree="-l$ac_lib"
26553 break
26554 else
26555   echo "$as_me: failed program was:" >&5
26556 sed 's/^/| /' conftest.$ac_ext >&5
26557
26558 fi
26559 rm -f conftest.err conftest.$ac_objext \
26560       conftest$ac_exeext conftest.$ac_ext
26561   done
26562 fi
26563 LIBS=$ac_func_search_save_LIBS
26564 fi
26565 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26566 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26567 if test "$ac_cv_search_regfree" != no; then
26568   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26569   :
26570 else
26571   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26572 echo "$as_me: error: POSIX regex required." >&2;}
26573    { (exit 1); exit 1; }; }
26574 fi
26575
26576
26577
26578 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26579 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26580 if test "${ol_cv_c_posix_regex+set}" = set; then
26581   echo $ECHO_N "(cached) $ECHO_C" >&6
26582 else
26583
26584         if test "$cross_compiling" = yes; then
26585   ol_cv_c_posix_regex=cross
26586 else
26587   cat >conftest.$ac_ext <<_ACEOF
26588 /* confdefs.h.  */
26589 _ACEOF
26590 cat confdefs.h >>conftest.$ac_ext
26591 cat >>conftest.$ac_ext <<_ACEOF
26592 /* end confdefs.h.  */
26593
26594 #include <sys/types.h>
26595 #include <regex.h>
26596 static char *pattern, *string;
26597 main()
26598 {
26599         int rc;
26600         regex_t re;
26601
26602         pattern = "^A";
26603
26604         if(regcomp(&re, pattern, 0)) {
26605                 return -1;
26606         }
26607
26608         string = "ALL MATCH";
26609
26610         rc = regexec(&re, string, 0, (void*)0, 0);
26611
26612         regfree(&re);
26613
26614         return rc;
26615 }
26616 _ACEOF
26617 rm -f conftest$ac_exeext
26618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26619   (eval $ac_link) 2>&5
26620   ac_status=$?
26621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26622   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26624   (eval $ac_try) 2>&5
26625   ac_status=$?
26626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627   (exit $ac_status); }; }; then
26628   ol_cv_c_posix_regex=yes
26629 else
26630   echo "$as_me: program exited with status $ac_status" >&5
26631 echo "$as_me: failed program was:" >&5
26632 sed 's/^/| /' conftest.$ac_ext >&5
26633
26634 ( exit $ac_status )
26635 ol_cv_c_posix_regex=no
26636 fi
26637 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26638 fi
26639 fi
26640 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26641 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26642
26643 if test "$ol_cv_c_posix_regex" = no ; then
26644         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26645 echo "$as_me: error: broken POSIX regex!" >&2;}
26646    { (exit 1); exit 1; }; }
26647 fi
26648
26649
26650 have_uuid=no
26651
26652 for ac_header in sys/uuid.h
26653 do
26654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26656   echo "$as_me:$LINENO: checking for $ac_header" >&5
26657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26659   echo $ECHO_N "(cached) $ECHO_C" >&6
26660 fi
26661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26663 else
26664   # Is the header compilable?
26665 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26667 cat >conftest.$ac_ext <<_ACEOF
26668 /* confdefs.h.  */
26669 _ACEOF
26670 cat confdefs.h >>conftest.$ac_ext
26671 cat >>conftest.$ac_ext <<_ACEOF
26672 /* end confdefs.h.  */
26673 $ac_includes_default
26674 #include <$ac_header>
26675 _ACEOF
26676 rm -f conftest.$ac_objext
26677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26678   (eval $ac_compile) 2>conftest.er1
26679   ac_status=$?
26680   grep -v '^ *+' conftest.er1 >conftest.err
26681   rm -f conftest.er1
26682   cat conftest.err >&5
26683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26684   (exit $ac_status); } &&
26685          { ac_try='test -z "$ac_c_werror_flag"
26686                          || test ! -s conftest.err'
26687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26688   (eval $ac_try) 2>&5
26689   ac_status=$?
26690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691   (exit $ac_status); }; } &&
26692          { ac_try='test -s conftest.$ac_objext'
26693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26694   (eval $ac_try) 2>&5
26695   ac_status=$?
26696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697   (exit $ac_status); }; }; then
26698   ac_header_compiler=yes
26699 else
26700   echo "$as_me: failed program was:" >&5
26701 sed 's/^/| /' conftest.$ac_ext >&5
26702
26703 ac_header_compiler=no
26704 fi
26705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26707 echo "${ECHO_T}$ac_header_compiler" >&6
26708
26709 # Is the header present?
26710 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26712 cat >conftest.$ac_ext <<_ACEOF
26713 /* confdefs.h.  */
26714 _ACEOF
26715 cat confdefs.h >>conftest.$ac_ext
26716 cat >>conftest.$ac_ext <<_ACEOF
26717 /* end confdefs.h.  */
26718 #include <$ac_header>
26719 _ACEOF
26720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26721   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26722   ac_status=$?
26723   grep -v '^ *+' conftest.er1 >conftest.err
26724   rm -f conftest.er1
26725   cat conftest.err >&5
26726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727   (exit $ac_status); } >/dev/null; then
26728   if test -s conftest.err; then
26729     ac_cpp_err=$ac_c_preproc_warn_flag
26730     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26731   else
26732     ac_cpp_err=
26733   fi
26734 else
26735   ac_cpp_err=yes
26736 fi
26737 if test -z "$ac_cpp_err"; then
26738   ac_header_preproc=yes
26739 else
26740   echo "$as_me: failed program was:" >&5
26741 sed 's/^/| /' conftest.$ac_ext >&5
26742
26743   ac_header_preproc=no
26744 fi
26745 rm -f conftest.err conftest.$ac_ext
26746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26747 echo "${ECHO_T}$ac_header_preproc" >&6
26748
26749 # So?  What about this header?
26750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26751   yes:no: )
26752     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26754     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26755 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26756     ac_header_preproc=yes
26757     ;;
26758   no:yes:* )
26759     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26761     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26762 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26763     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26764 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26765     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26766 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26767     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26769     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26770 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26771     (
26772       cat <<\_ASBOX
26773 ## ------------------------------------------ ##
26774 ## Report this to the AC_PACKAGE_NAME lists.  ##
26775 ## ------------------------------------------ ##
26776 _ASBOX
26777     ) |
26778       sed "s/^/$as_me: WARNING:     /" >&2
26779     ;;
26780 esac
26781 echo "$as_me:$LINENO: checking for $ac_header" >&5
26782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26784   echo $ECHO_N "(cached) $ECHO_C" >&6
26785 else
26786   eval "$as_ac_Header=\$ac_header_preproc"
26787 fi
26788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26790
26791 fi
26792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26793   cat >>confdefs.h <<_ACEOF
26794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26795 _ACEOF
26796
26797 fi
26798
26799 done
26800
26801 if test $ac_cv_header_sys_uuid_h = yes ; then
26802         save_LIBS="$LIBS"
26803         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
26804 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
26805 if test "${ac_cv_search_uuid_to_str+set}" = set; then
26806   echo $ECHO_N "(cached) $ECHO_C" >&6
26807 else
26808   ac_func_search_save_LIBS=$LIBS
26809 ac_cv_search_uuid_to_str=no
26810 cat >conftest.$ac_ext <<_ACEOF
26811 /* confdefs.h.  */
26812 _ACEOF
26813 cat confdefs.h >>conftest.$ac_ext
26814 cat >>conftest.$ac_ext <<_ACEOF
26815 /* end confdefs.h.  */
26816
26817 /* Override any gcc2 internal prototype to avoid an error.  */
26818 #ifdef __cplusplus
26819 extern "C"
26820 #endif
26821 /* We use char because int might match the return type of a gcc2
26822    builtin and then its argument prototype would still apply.  */
26823 char uuid_to_str ();
26824 int
26825 main ()
26826 {
26827 uuid_to_str ();
26828   ;
26829   return 0;
26830 }
26831 _ACEOF
26832 rm -f conftest.$ac_objext conftest$ac_exeext
26833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26834   (eval $ac_link) 2>conftest.er1
26835   ac_status=$?
26836   grep -v '^ *+' conftest.er1 >conftest.err
26837   rm -f conftest.er1
26838   cat conftest.err >&5
26839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26840   (exit $ac_status); } &&
26841          { ac_try='test -z "$ac_c_werror_flag"
26842                          || test ! -s conftest.err'
26843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26844   (eval $ac_try) 2>&5
26845   ac_status=$?
26846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847   (exit $ac_status); }; } &&
26848          { ac_try='test -s conftest$ac_exeext'
26849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26850   (eval $ac_try) 2>&5
26851   ac_status=$?
26852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853   (exit $ac_status); }; }; then
26854   ac_cv_search_uuid_to_str="none required"
26855 else
26856   echo "$as_me: failed program was:" >&5
26857 sed 's/^/| /' conftest.$ac_ext >&5
26858
26859 fi
26860 rm -f conftest.err conftest.$ac_objext \
26861       conftest$ac_exeext conftest.$ac_ext
26862 if test "$ac_cv_search_uuid_to_str" = no; then
26863   for ac_lib in uuid; do
26864     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26865     cat >conftest.$ac_ext <<_ACEOF
26866 /* confdefs.h.  */
26867 _ACEOF
26868 cat confdefs.h >>conftest.$ac_ext
26869 cat >>conftest.$ac_ext <<_ACEOF
26870 /* end confdefs.h.  */
26871
26872 /* Override any gcc2 internal prototype to avoid an error.  */
26873 #ifdef __cplusplus
26874 extern "C"
26875 #endif
26876 /* We use char because int might match the return type of a gcc2
26877    builtin and then its argument prototype would still apply.  */
26878 char uuid_to_str ();
26879 int
26880 main ()
26881 {
26882 uuid_to_str ();
26883   ;
26884   return 0;
26885 }
26886 _ACEOF
26887 rm -f conftest.$ac_objext conftest$ac_exeext
26888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26889   (eval $ac_link) 2>conftest.er1
26890   ac_status=$?
26891   grep -v '^ *+' conftest.er1 >conftest.err
26892   rm -f conftest.er1
26893   cat conftest.err >&5
26894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895   (exit $ac_status); } &&
26896          { ac_try='test -z "$ac_c_werror_flag"
26897                          || test ! -s conftest.err'
26898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26899   (eval $ac_try) 2>&5
26900   ac_status=$?
26901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902   (exit $ac_status); }; } &&
26903          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
26909   ac_cv_search_uuid_to_str="-l$ac_lib"
26910 break
26911 else
26912   echo "$as_me: failed program was:" >&5
26913 sed 's/^/| /' conftest.$ac_ext >&5
26914
26915 fi
26916 rm -f conftest.err conftest.$ac_objext \
26917       conftest$ac_exeext conftest.$ac_ext
26918   done
26919 fi
26920 LIBS=$ac_func_search_save_LIBS
26921 fi
26922 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
26923 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
26924 if test "$ac_cv_search_uuid_to_str" != no; then
26925   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
26926   have_uuid=yes
26927 else
26928   :
26929 fi
26930
26931         LIBS="$save_LIBS"
26932
26933         if test have_uuid = yes ; then
26934
26935 cat >>confdefs.h <<\_ACEOF
26936 #define HAVE_UUID_TO_STR 1
26937 _ACEOF
26938
26939
26940                 test "$ac_cv_search_uuid_to_str" = "none required" || \
26941                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
26942         fi
26943 fi
26944
26945 if test $have_uuid = no ; then
26946         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
26947 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
26948         save_LIBS="$LIBS"
26949         LIBS="$LIBS -lrpcrt4"
26950         cat >conftest.$ac_ext <<_ACEOF
26951 /* confdefs.h.  */
26952 _ACEOF
26953 cat confdefs.h >>conftest.$ac_ext
26954 cat >>conftest.$ac_ext <<_ACEOF
26955 /* end confdefs.h.  */
26956
26957                 int __stdcall UuidCreate(void *);
26958                 int __stdcall UuidToStringA(void *,void **);
26959
26960 int
26961 main ()
26962 {
26963
26964                 UuidCreate(0);
26965                 UuidToStringA(0,0);
26966
26967   ;
26968   return 0;
26969 }
26970 _ACEOF
26971 rm -f conftest.$ac_objext conftest$ac_exeext
26972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26973   (eval $ac_link) 2>conftest.er1
26974   ac_status=$?
26975   grep -v '^ *+' conftest.er1 >conftest.err
26976   rm -f conftest.er1
26977   cat conftest.err >&5
26978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979   (exit $ac_status); } &&
26980          { ac_try='test -z "$ac_c_werror_flag"
26981                          || test ! -s conftest.err'
26982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26983   (eval $ac_try) 2>&5
26984   ac_status=$?
26985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986   (exit $ac_status); }; } &&
26987          { ac_try='test -s conftest$ac_exeext'
26988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26989   (eval $ac_try) 2>&5
26990   ac_status=$?
26991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992   (exit $ac_status); }; }; then
26993   need_rpcrt=yes
26994 else
26995   echo "$as_me: failed program was:" >&5
26996 sed 's/^/| /' conftest.$ac_ext >&5
26997
26998 need_rpcrt=no
26999 fi
27000 rm -f conftest.err conftest.$ac_objext \
27001       conftest$ac_exeext conftest.$ac_ext
27002         if test $need_rpcrt = yes; then
27003                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27004         fi
27005         LIBS="$save_LIBS"
27006         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27007 echo "${ECHO_T}$need_rpcrt" >&6
27008 fi
27009
27010 ol_cv_lib_resolver=no
27011 if test $ol_cv_lib_resolver = no ; then
27012         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27013 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27014 if test "${ol_cv_resolver_none+set}" = set; then
27015   echo $ECHO_N "(cached) $ECHO_C" >&6
27016 else
27017
27018         ol_RESOLVER_LIB=
27019         ol_LIBS=$LIBS
27020         LIBS="$ol_RESOLVER_LIB $LIBS"
27021
27022         cat >conftest.$ac_ext <<_ACEOF
27023 /* confdefs.h.  */
27024 _ACEOF
27025 cat confdefs.h >>conftest.$ac_ext
27026 cat >>conftest.$ac_ext <<_ACEOF
27027 /* end confdefs.h.  */
27028
27029 #ifdef HAVE_SYS_TYPES_H
27030 #       include <sys/types.h>
27031 #endif
27032 #include <netinet/in.h>
27033 #ifdef HAVE_ARPA_NAMESER_H
27034 #       include <arpa/nameser.h>
27035 #endif
27036 #ifdef HAVE_RESOLV_H
27037 #       include <resolv.h>
27038 #endif
27039
27040 int
27041 main ()
27042 {
27043 {
27044         int len, status;
27045         char *request = NULL;
27046         unsigned char reply[64*1024];
27047         unsigned char host[64*1024];
27048         unsigned char *p;
27049
27050 #ifdef NS_HFIXEDSZ
27051         /* Bind 8/9 interface */
27052         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27053 #else
27054         /* Bind 4 interface */
27055 # ifndef T_SRV
27056 #  define T_SRV 33
27057 # endif
27058         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27059 #endif
27060         p = reply;
27061 #ifdef NS_HFIXEDSZ
27062         /* Bind 8/9 interface */
27063         p += NS_HFIXEDSZ;
27064 #elif defined(HFIXEDSZ)
27065         /* Bind 4 interface w/ HFIXEDSZ */
27066         p += HFIXEDSZ;
27067 #else
27068         /* Bind 4 interface w/o HFIXEDSZ */
27069         p += sizeof(HEADER);
27070 #endif
27071         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27072 }
27073   ;
27074   return 0;
27075 }
27076 _ACEOF
27077 rm -f conftest.$ac_objext conftest$ac_exeext
27078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27079   (eval $ac_link) 2>conftest.er1
27080   ac_status=$?
27081   grep -v '^ *+' conftest.er1 >conftest.err
27082   rm -f conftest.er1
27083   cat conftest.err >&5
27084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085   (exit $ac_status); } &&
27086          { ac_try='test -z "$ac_c_werror_flag"
27087                          || test ! -s conftest.err'
27088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27089   (eval $ac_try) 2>&5
27090   ac_status=$?
27091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092   (exit $ac_status); }; } &&
27093          { ac_try='test -s conftest$ac_exeext'
27094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27095   (eval $ac_try) 2>&5
27096   ac_status=$?
27097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27098   (exit $ac_status); }; }; then
27099   ol_cv_resolver_none=yes
27100 else
27101   echo "$as_me: failed program was:" >&5
27102 sed 's/^/| /' conftest.$ac_ext >&5
27103
27104 ol_cv_resolver_none=no
27105 fi
27106 rm -f conftest.err conftest.$ac_objext \
27107       conftest$ac_exeext conftest.$ac_ext
27108
27109         LIBS="$ol_LIBS"
27110
27111 fi
27112 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27113 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27114
27115         if test $ol_cv_resolver_none = yes ; then
27116                 ol_cv_lib_resolver=yes
27117         fi
27118 fi
27119
27120 if test $ol_cv_lib_resolver = no ; then
27121         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27122 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27123 if test "${ol_cv_resolver_resolv+set}" = set; then
27124   echo $ECHO_N "(cached) $ECHO_C" >&6
27125 else
27126
27127         ol_RESOLVER_LIB=-lresolv
27128         ol_LIBS=$LIBS
27129         LIBS="$ol_RESOLVER_LIB $LIBS"
27130
27131         cat >conftest.$ac_ext <<_ACEOF
27132 /* confdefs.h.  */
27133 _ACEOF
27134 cat confdefs.h >>conftest.$ac_ext
27135 cat >>conftest.$ac_ext <<_ACEOF
27136 /* end confdefs.h.  */
27137
27138 #ifdef HAVE_SYS_TYPES_H
27139 #       include <sys/types.h>
27140 #endif
27141 #include <netinet/in.h>
27142 #ifdef HAVE_ARPA_NAMESER_H
27143 #       include <arpa/nameser.h>
27144 #endif
27145 #ifdef HAVE_RESOLV_H
27146 #       include <resolv.h>
27147 #endif
27148
27149 int
27150 main ()
27151 {
27152 {
27153         int len, status;
27154         char *request = NULL;
27155         unsigned char reply[64*1024];
27156         unsigned char host[64*1024];
27157         unsigned char *p;
27158
27159 #ifdef NS_HFIXEDSZ
27160         /* Bind 8/9 interface */
27161         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27162 #else
27163         /* Bind 4 interface */
27164 # ifndef T_SRV
27165 #  define T_SRV 33
27166 # endif
27167         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27168 #endif
27169         p = reply;
27170 #ifdef NS_HFIXEDSZ
27171         /* Bind 8/9 interface */
27172         p += NS_HFIXEDSZ;
27173 #elif defined(HFIXEDSZ)
27174         /* Bind 4 interface w/ HFIXEDSZ */
27175         p += HFIXEDSZ;
27176 #else
27177         /* Bind 4 interface w/o HFIXEDSZ */
27178         p += sizeof(HEADER);
27179 #endif
27180         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27181 }
27182   ;
27183   return 0;
27184 }
27185 _ACEOF
27186 rm -f conftest.$ac_objext conftest$ac_exeext
27187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27188   (eval $ac_link) 2>conftest.er1
27189   ac_status=$?
27190   grep -v '^ *+' conftest.er1 >conftest.err
27191   rm -f conftest.er1
27192   cat conftest.err >&5
27193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194   (exit $ac_status); } &&
27195          { ac_try='test -z "$ac_c_werror_flag"
27196                          || test ! -s conftest.err'
27197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27198   (eval $ac_try) 2>&5
27199   ac_status=$?
27200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201   (exit $ac_status); }; } &&
27202          { ac_try='test -s conftest$ac_exeext'
27203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27204   (eval $ac_try) 2>&5
27205   ac_status=$?
27206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207   (exit $ac_status); }; }; then
27208   ol_cv_resolver_resolv=yes
27209 else
27210   echo "$as_me: failed program was:" >&5
27211 sed 's/^/| /' conftest.$ac_ext >&5
27212
27213 ol_cv_resolver_resolv=no
27214 fi
27215 rm -f conftest.err conftest.$ac_objext \
27216       conftest$ac_exeext conftest.$ac_ext
27217
27218         LIBS="$ol_LIBS"
27219
27220 fi
27221 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27222 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27223
27224         if test $ol_cv_resolver_resolv = yes ; then
27225                 ol_cv_lib_resolver=-lresolv
27226         fi
27227 fi
27228
27229 if test $ol_cv_lib_resolver = no ; then
27230         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27231 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27232 if test "${ol_cv_resolver_bind+set}" = set; then
27233   echo $ECHO_N "(cached) $ECHO_C" >&6
27234 else
27235
27236         ol_RESOLVER_LIB=-lbind
27237         ol_LIBS=$LIBS
27238         LIBS="$ol_RESOLVER_LIB $LIBS"
27239
27240         cat >conftest.$ac_ext <<_ACEOF
27241 /* confdefs.h.  */
27242 _ACEOF
27243 cat confdefs.h >>conftest.$ac_ext
27244 cat >>conftest.$ac_ext <<_ACEOF
27245 /* end confdefs.h.  */
27246
27247 #ifdef HAVE_SYS_TYPES_H
27248 #       include <sys/types.h>
27249 #endif
27250 #include <netinet/in.h>
27251 #ifdef HAVE_ARPA_NAMESER_H
27252 #       include <arpa/nameser.h>
27253 #endif
27254 #ifdef HAVE_RESOLV_H
27255 #       include <resolv.h>
27256 #endif
27257
27258 int
27259 main ()
27260 {
27261 {
27262         int len, status;
27263         char *request = NULL;
27264         unsigned char reply[64*1024];
27265         unsigned char host[64*1024];
27266         unsigned char *p;
27267
27268 #ifdef NS_HFIXEDSZ
27269         /* Bind 8/9 interface */
27270         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27271 #else
27272         /* Bind 4 interface */
27273 # ifndef T_SRV
27274 #  define T_SRV 33
27275 # endif
27276         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27277 #endif
27278         p = reply;
27279 #ifdef NS_HFIXEDSZ
27280         /* Bind 8/9 interface */
27281         p += NS_HFIXEDSZ;
27282 #elif defined(HFIXEDSZ)
27283         /* Bind 4 interface w/ HFIXEDSZ */
27284         p += HFIXEDSZ;
27285 #else
27286         /* Bind 4 interface w/o HFIXEDSZ */
27287         p += sizeof(HEADER);
27288 #endif
27289         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27290 }
27291   ;
27292   return 0;
27293 }
27294 _ACEOF
27295 rm -f conftest.$ac_objext conftest$ac_exeext
27296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27297   (eval $ac_link) 2>conftest.er1
27298   ac_status=$?
27299   grep -v '^ *+' conftest.er1 >conftest.err
27300   rm -f conftest.er1
27301   cat conftest.err >&5
27302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303   (exit $ac_status); } &&
27304          { ac_try='test -z "$ac_c_werror_flag"
27305                          || test ! -s conftest.err'
27306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27307   (eval $ac_try) 2>&5
27308   ac_status=$?
27309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310   (exit $ac_status); }; } &&
27311          { ac_try='test -s conftest$ac_exeext'
27312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27313   (eval $ac_try) 2>&5
27314   ac_status=$?
27315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316   (exit $ac_status); }; }; then
27317   ol_cv_resolver_bind=yes
27318 else
27319   echo "$as_me: failed program was:" >&5
27320 sed 's/^/| /' conftest.$ac_ext >&5
27321
27322 ol_cv_resolver_bind=no
27323 fi
27324 rm -f conftest.err conftest.$ac_objext \
27325       conftest$ac_exeext conftest.$ac_ext
27326
27327         LIBS="$ol_LIBS"
27328
27329 fi
27330 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27331 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27332
27333         if test $ol_cv_resolver_bind = yes ; then
27334                 ol_cv_lib_resolver=-lbind
27335         fi
27336 fi
27337
27338
27339
27340 ol_link_dnssrv=no
27341 if test "$ol_cv_lib_resolver" != no ; then
27342
27343 cat >>confdefs.h <<\_ACEOF
27344 #define HAVE_RES_QUERY 1
27345 _ACEOF
27346
27347
27348         if test "$ol_enable_dnssrv" != no ; then
27349                 ol_link_dnssrv=yes
27350         fi
27351
27352         if test "$ol_cv_lib_resolver" != yes ; then
27353                 LIBS="$ol_cv_lib_resolver $LIBS"
27354         fi
27355 fi
27356
27357 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27358         if test "$ol_link_dnssrv" = no ; then
27359                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27360 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27361    { (exit 1); exit 1; }; }
27362         fi
27363 else
27364         ol_enable_dnssrv=no
27365 fi
27366
27367
27368 for ac_func in hstrerror
27369 do
27370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27371 echo "$as_me:$LINENO: checking for $ac_func" >&5
27372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27373 if eval "test \"\${$as_ac_var+set}\" = set"; then
27374   echo $ECHO_N "(cached) $ECHO_C" >&6
27375 else
27376   cat >conftest.$ac_ext <<_ACEOF
27377 /* confdefs.h.  */
27378 _ACEOF
27379 cat confdefs.h >>conftest.$ac_ext
27380 cat >>conftest.$ac_ext <<_ACEOF
27381 /* end confdefs.h.  */
27382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27384 #define $ac_func innocuous_$ac_func
27385
27386 /* System header to define __stub macros and hopefully few prototypes,
27387     which can conflict with char $ac_func (); below.
27388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27389     <limits.h> exists even on freestanding compilers.  */
27390
27391 #ifdef __STDC__
27392 # include <limits.h>
27393 #else
27394 # include <assert.h>
27395 #endif
27396
27397 #undef $ac_func
27398
27399 /* Override any gcc2 internal prototype to avoid an error.  */
27400 #ifdef __cplusplus
27401 extern "C"
27402 {
27403 #endif
27404 /* We use char because int might match the return type of a gcc2
27405    builtin and then its argument prototype would still apply.  */
27406 char $ac_func ();
27407 /* The GNU C library defines this for functions which it implements
27408     to always fail with ENOSYS.  Some functions are actually named
27409     something starting with __ and the normal name is an alias.  */
27410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27411 choke me
27412 #else
27413 char (*f) () = $ac_func;
27414 #endif
27415 #ifdef __cplusplus
27416 }
27417 #endif
27418
27419 int
27420 main ()
27421 {
27422 return f != $ac_func;
27423   ;
27424   return 0;
27425 }
27426 _ACEOF
27427 rm -f conftest.$ac_objext conftest$ac_exeext
27428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27429   (eval $ac_link) 2>conftest.er1
27430   ac_status=$?
27431   grep -v '^ *+' conftest.er1 >conftest.err
27432   rm -f conftest.er1
27433   cat conftest.err >&5
27434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27435   (exit $ac_status); } &&
27436          { ac_try='test -z "$ac_c_werror_flag"
27437                          || test ! -s conftest.err'
27438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27439   (eval $ac_try) 2>&5
27440   ac_status=$?
27441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442   (exit $ac_status); }; } &&
27443          { ac_try='test -s conftest$ac_exeext'
27444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27445   (eval $ac_try) 2>&5
27446   ac_status=$?
27447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448   (exit $ac_status); }; }; then
27449   eval "$as_ac_var=yes"
27450 else
27451   echo "$as_me: failed program was:" >&5
27452 sed 's/^/| /' conftest.$ac_ext >&5
27453
27454 eval "$as_ac_var=no"
27455 fi
27456 rm -f conftest.err conftest.$ac_objext \
27457       conftest$ac_exeext conftest.$ac_ext
27458 fi
27459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27461 if test `eval echo '${'$as_ac_var'}'` = yes; then
27462   cat >>confdefs.h <<_ACEOF
27463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27464 _ACEOF
27465
27466 fi
27467 done
27468
27469
27470
27471
27472
27473
27474 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27475 do
27476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27477 echo "$as_me:$LINENO: checking for $ac_func" >&5
27478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27479 if eval "test \"\${$as_ac_var+set}\" = set"; then
27480   echo $ECHO_N "(cached) $ECHO_C" >&6
27481 else
27482   cat >conftest.$ac_ext <<_ACEOF
27483 /* confdefs.h.  */
27484 _ACEOF
27485 cat confdefs.h >>conftest.$ac_ext
27486 cat >>conftest.$ac_ext <<_ACEOF
27487 /* end confdefs.h.  */
27488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27490 #define $ac_func innocuous_$ac_func
27491
27492 /* System header to define __stub macros and hopefully few prototypes,
27493     which can conflict with char $ac_func (); below.
27494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27495     <limits.h> exists even on freestanding compilers.  */
27496
27497 #ifdef __STDC__
27498 # include <limits.h>
27499 #else
27500 # include <assert.h>
27501 #endif
27502
27503 #undef $ac_func
27504
27505 /* Override any gcc2 internal prototype to avoid an error.  */
27506 #ifdef __cplusplus
27507 extern "C"
27508 {
27509 #endif
27510 /* We use char because int might match the return type of a gcc2
27511    builtin and then its argument prototype would still apply.  */
27512 char $ac_func ();
27513 /* The GNU C library defines this for functions which it implements
27514     to always fail with ENOSYS.  Some functions are actually named
27515     something starting with __ and the normal name is an alias.  */
27516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27517 choke me
27518 #else
27519 char (*f) () = $ac_func;
27520 #endif
27521 #ifdef __cplusplus
27522 }
27523 #endif
27524
27525 int
27526 main ()
27527 {
27528 return f != $ac_func;
27529   ;
27530   return 0;
27531 }
27532 _ACEOF
27533 rm -f conftest.$ac_objext conftest$ac_exeext
27534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27535   (eval $ac_link) 2>conftest.er1
27536   ac_status=$?
27537   grep -v '^ *+' conftest.er1 >conftest.err
27538   rm -f conftest.er1
27539   cat conftest.err >&5
27540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541   (exit $ac_status); } &&
27542          { ac_try='test -z "$ac_c_werror_flag"
27543                          || test ! -s conftest.err'
27544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27545   (eval $ac_try) 2>&5
27546   ac_status=$?
27547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27548   (exit $ac_status); }; } &&
27549          { ac_try='test -s conftest$ac_exeext'
27550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27551   (eval $ac_try) 2>&5
27552   ac_status=$?
27553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554   (exit $ac_status); }; }; then
27555   eval "$as_ac_var=yes"
27556 else
27557   echo "$as_me: failed program was:" >&5
27558 sed 's/^/| /' conftest.$ac_ext >&5
27559
27560 eval "$as_ac_var=no"
27561 fi
27562 rm -f conftest.err conftest.$ac_objext \
27563       conftest$ac_exeext conftest.$ac_ext
27564 fi
27565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27567 if test `eval echo '${'$as_ac_var'}'` = yes; then
27568   cat >>confdefs.h <<_ACEOF
27569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27570 _ACEOF
27571
27572 fi
27573 done
27574
27575
27576 ol_link_ipv6=no
27577 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27578         if test $ol_enable_ipv6 = yes ; then
27579                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27580 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27581    { (exit 1); exit 1; }; }
27582         fi
27583 elif test $ol_enable_ipv6 != no ; then
27584         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27585 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27586 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27587   echo $ECHO_N "(cached) $ECHO_C" >&6
27588 else
27589
27590                 cat >conftest.$ac_ext <<_ACEOF
27591 /* confdefs.h.  */
27592 _ACEOF
27593 cat confdefs.h >>conftest.$ac_ext
27594 cat >>conftest.$ac_ext <<_ACEOF
27595 /* end confdefs.h.  */
27596
27597 #                       include <netinet/in.h>
27598 #                       ifdef INET6_ADDRSTRLEN
27599                                 __has_inet6_addrstrlen__;
27600 #                       endif
27601
27602 _ACEOF
27603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27604   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27605   ol_cv_inet6_addrstrlen=yes
27606 else
27607   ol_cv_inet6_addrstrlen=no
27608 fi
27609 rm -f conftest*
27610
27611 fi
27612 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27613 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27614
27615
27616         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27617 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27618 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27619   echo $ECHO_N "(cached) $ECHO_C" >&6
27620 else
27621
27622                 cat >conftest.$ac_ext <<_ACEOF
27623 /* confdefs.h.  */
27624 _ACEOF
27625 cat confdefs.h >>conftest.$ac_ext
27626 cat >>conftest.$ac_ext <<_ACEOF
27627 /* end confdefs.h.  */
27628
27629 #include <sys/types.h>
27630 #include <sys/socket.h>
27631
27632 int
27633 main ()
27634 {
27635
27636                         struct sockaddr_storage ss;
27637
27638   ;
27639   return 0;
27640 }
27641 _ACEOF
27642 rm -f conftest.$ac_objext
27643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27644   (eval $ac_compile) 2>conftest.er1
27645   ac_status=$?
27646   grep -v '^ *+' conftest.er1 >conftest.err
27647   rm -f conftest.er1
27648   cat conftest.err >&5
27649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650   (exit $ac_status); } &&
27651          { ac_try='test -z "$ac_c_werror_flag"
27652                          || test ! -s conftest.err'
27653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27654   (eval $ac_try) 2>&5
27655   ac_status=$?
27656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657   (exit $ac_status); }; } &&
27658          { ac_try='test -s conftest.$ac_objext'
27659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27660   (eval $ac_try) 2>&5
27661   ac_status=$?
27662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663   (exit $ac_status); }; }; then
27664   ol_cv_struct_sockaddr_storage=yes
27665 else
27666   echo "$as_me: failed program was:" >&5
27667 sed 's/^/| /' conftest.$ac_ext >&5
27668
27669 ol_cv_struct_sockaddr_storage=no
27670 fi
27671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27672 fi
27673 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
27674 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
27675
27676         if test $ol_cv_inet6_addrstrlen = yes \
27677                 -a $ol_cv_struct_sockaddr_storage = yes ; then
27678                 ol_link_ipv6=yes
27679         elif test $ol_enable_ipv6 = yes \
27680                         -a $ol_cv_inet6_addrstrlen = no ; then
27681                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
27682 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
27683    { (exit 1); exit 1; }; }
27684         elif test $ol_enable_ipv6 = yes \
27685                         -a $ol_cv_struct_sockaddr_storage = no ; then
27686                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
27687 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
27688    { (exit 1); exit 1; }; }
27689         fi
27690 fi
27691
27692 if test $ol_enable_local != no ; then
27693
27694 for ac_header in sys/un.h
27695 do
27696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27698   echo "$as_me:$LINENO: checking for $ac_header" >&5
27699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27701   echo $ECHO_N "(cached) $ECHO_C" >&6
27702 fi
27703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27705 else
27706   # Is the header compilable?
27707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27709 cat >conftest.$ac_ext <<_ACEOF
27710 /* confdefs.h.  */
27711 _ACEOF
27712 cat confdefs.h >>conftest.$ac_ext
27713 cat >>conftest.$ac_ext <<_ACEOF
27714 /* end confdefs.h.  */
27715 $ac_includes_default
27716 #include <$ac_header>
27717 _ACEOF
27718 rm -f conftest.$ac_objext
27719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27720   (eval $ac_compile) 2>conftest.er1
27721   ac_status=$?
27722   grep -v '^ *+' conftest.er1 >conftest.err
27723   rm -f conftest.er1
27724   cat conftest.err >&5
27725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27726   (exit $ac_status); } &&
27727          { ac_try='test -z "$ac_c_werror_flag"
27728                          || test ! -s conftest.err'
27729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27730   (eval $ac_try) 2>&5
27731   ac_status=$?
27732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733   (exit $ac_status); }; } &&
27734          { ac_try='test -s conftest.$ac_objext'
27735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27736   (eval $ac_try) 2>&5
27737   ac_status=$?
27738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27739   (exit $ac_status); }; }; then
27740   ac_header_compiler=yes
27741 else
27742   echo "$as_me: failed program was:" >&5
27743 sed 's/^/| /' conftest.$ac_ext >&5
27744
27745 ac_header_compiler=no
27746 fi
27747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27749 echo "${ECHO_T}$ac_header_compiler" >&6
27750
27751 # Is the header present?
27752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27754 cat >conftest.$ac_ext <<_ACEOF
27755 /* confdefs.h.  */
27756 _ACEOF
27757 cat confdefs.h >>conftest.$ac_ext
27758 cat >>conftest.$ac_ext <<_ACEOF
27759 /* end confdefs.h.  */
27760 #include <$ac_header>
27761 _ACEOF
27762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27763   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27764   ac_status=$?
27765   grep -v '^ *+' conftest.er1 >conftest.err
27766   rm -f conftest.er1
27767   cat conftest.err >&5
27768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769   (exit $ac_status); } >/dev/null; then
27770   if test -s conftest.err; then
27771     ac_cpp_err=$ac_c_preproc_warn_flag
27772     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27773   else
27774     ac_cpp_err=
27775   fi
27776 else
27777   ac_cpp_err=yes
27778 fi
27779 if test -z "$ac_cpp_err"; then
27780   ac_header_preproc=yes
27781 else
27782   echo "$as_me: failed program was:" >&5
27783 sed 's/^/| /' conftest.$ac_ext >&5
27784
27785   ac_header_preproc=no
27786 fi
27787 rm -f conftest.err conftest.$ac_ext
27788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27789 echo "${ECHO_T}$ac_header_preproc" >&6
27790
27791 # So?  What about this header?
27792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27793   yes:no: )
27794     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27798     ac_header_preproc=yes
27799     ;;
27800   no:yes:* )
27801     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27803     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27804 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27805     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27807     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27808 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27811     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27813     (
27814       cat <<\_ASBOX
27815 ## ------------------------------------------ ##
27816 ## Report this to the AC_PACKAGE_NAME lists.  ##
27817 ## ------------------------------------------ ##
27818 _ASBOX
27819     ) |
27820       sed "s/^/$as_me: WARNING:     /" >&2
27821     ;;
27822 esac
27823 echo "$as_me:$LINENO: checking for $ac_header" >&5
27824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27826   echo $ECHO_N "(cached) $ECHO_C" >&6
27827 else
27828   eval "$as_ac_Header=\$ac_header_preproc"
27829 fi
27830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27832
27833 fi
27834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27835   cat >>confdefs.h <<_ACEOF
27836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27837 _ACEOF
27838
27839 fi
27840
27841 done
27842
27843
27844         if test $ol_enable_local = auto ; then
27845                 ol_enable_local=$ac_cv_header_sys_un_h
27846         elif test $ac_cv_header_sys_un_h = no ; then
27847                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
27848 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
27849    { (exit 1); exit 1; }; }
27850         fi
27851 fi
27852
27853 ol_link_kbind=no
27854 ol_link_krb5=no
27855 ol_link_krb4=no
27856
27857 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
27858         -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
27859         -o $ol_with_kerberos = k425 ; then
27860
27861
27862 for ac_header in krb5.h
27863 do
27864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27866   echo "$as_me:$LINENO: checking for $ac_header" >&5
27867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27869   echo $ECHO_N "(cached) $ECHO_C" >&6
27870 fi
27871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27873 else
27874   # Is the header compilable?
27875 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27877 cat >conftest.$ac_ext <<_ACEOF
27878 /* confdefs.h.  */
27879 _ACEOF
27880 cat confdefs.h >>conftest.$ac_ext
27881 cat >>conftest.$ac_ext <<_ACEOF
27882 /* end confdefs.h.  */
27883 $ac_includes_default
27884 #include <$ac_header>
27885 _ACEOF
27886 rm -f conftest.$ac_objext
27887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27888   (eval $ac_compile) 2>conftest.er1
27889   ac_status=$?
27890   grep -v '^ *+' conftest.er1 >conftest.err
27891   rm -f conftest.er1
27892   cat conftest.err >&5
27893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894   (exit $ac_status); } &&
27895          { ac_try='test -z "$ac_c_werror_flag"
27896                          || test ! -s conftest.err'
27897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27898   (eval $ac_try) 2>&5
27899   ac_status=$?
27900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901   (exit $ac_status); }; } &&
27902          { ac_try='test -s conftest.$ac_objext'
27903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27904   (eval $ac_try) 2>&5
27905   ac_status=$?
27906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27907   (exit $ac_status); }; }; then
27908   ac_header_compiler=yes
27909 else
27910   echo "$as_me: failed program was:" >&5
27911 sed 's/^/| /' conftest.$ac_ext >&5
27912
27913 ac_header_compiler=no
27914 fi
27915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27916 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27917 echo "${ECHO_T}$ac_header_compiler" >&6
27918
27919 # Is the header present?
27920 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27922 cat >conftest.$ac_ext <<_ACEOF
27923 /* confdefs.h.  */
27924 _ACEOF
27925 cat confdefs.h >>conftest.$ac_ext
27926 cat >>conftest.$ac_ext <<_ACEOF
27927 /* end confdefs.h.  */
27928 #include <$ac_header>
27929 _ACEOF
27930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27931   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27932   ac_status=$?
27933   grep -v '^ *+' conftest.er1 >conftest.err
27934   rm -f conftest.er1
27935   cat conftest.err >&5
27936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937   (exit $ac_status); } >/dev/null; then
27938   if test -s conftest.err; then
27939     ac_cpp_err=$ac_c_preproc_warn_flag
27940     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27941   else
27942     ac_cpp_err=
27943   fi
27944 else
27945   ac_cpp_err=yes
27946 fi
27947 if test -z "$ac_cpp_err"; then
27948   ac_header_preproc=yes
27949 else
27950   echo "$as_me: failed program was:" >&5
27951 sed 's/^/| /' conftest.$ac_ext >&5
27952
27953   ac_header_preproc=no
27954 fi
27955 rm -f conftest.err conftest.$ac_ext
27956 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27957 echo "${ECHO_T}$ac_header_preproc" >&6
27958
27959 # So?  What about this header?
27960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27961   yes:no: )
27962     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27964     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27966     ac_header_preproc=yes
27967     ;;
27968   no:yes:* )
27969     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27971     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27972 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27973     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27975     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27976 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27979     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27981     (
27982       cat <<\_ASBOX
27983 ## ------------------------------------------ ##
27984 ## Report this to the AC_PACKAGE_NAME lists.  ##
27985 ## ------------------------------------------ ##
27986 _ASBOX
27987     ) |
27988       sed "s/^/$as_me: WARNING:     /" >&2
27989     ;;
27990 esac
27991 echo "$as_me:$LINENO: checking for $ac_header" >&5
27992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27994   echo $ECHO_N "(cached) $ECHO_C" >&6
27995 else
27996   eval "$as_ac_Header=\$ac_header_preproc"
27997 fi
27998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28000
28001 fi
28002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28003   cat >>confdefs.h <<_ACEOF
28004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28005 _ACEOF
28006
28007 fi
28008
28009 done
28010
28011
28012         if test $ac_cv_header_krb5_h = yes ; then
28013
28014 for ac_header in heim_err.h
28015 do
28016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28018   echo "$as_me:$LINENO: checking for $ac_header" >&5
28019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28021   echo $ECHO_N "(cached) $ECHO_C" >&6
28022 fi
28023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28025 else
28026   # Is the header compilable?
28027 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28029 cat >conftest.$ac_ext <<_ACEOF
28030 /* confdefs.h.  */
28031 _ACEOF
28032 cat confdefs.h >>conftest.$ac_ext
28033 cat >>conftest.$ac_ext <<_ACEOF
28034 /* end confdefs.h.  */
28035 $ac_includes_default
28036 #include <$ac_header>
28037 _ACEOF
28038 rm -f conftest.$ac_objext
28039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28040   (eval $ac_compile) 2>conftest.er1
28041   ac_status=$?
28042   grep -v '^ *+' conftest.er1 >conftest.err
28043   rm -f conftest.er1
28044   cat conftest.err >&5
28045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046   (exit $ac_status); } &&
28047          { ac_try='test -z "$ac_c_werror_flag"
28048                          || test ! -s conftest.err'
28049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28050   (eval $ac_try) 2>&5
28051   ac_status=$?
28052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053   (exit $ac_status); }; } &&
28054          { ac_try='test -s conftest.$ac_objext'
28055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28056   (eval $ac_try) 2>&5
28057   ac_status=$?
28058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059   (exit $ac_status); }; }; then
28060   ac_header_compiler=yes
28061 else
28062   echo "$as_me: failed program was:" >&5
28063 sed 's/^/| /' conftest.$ac_ext >&5
28064
28065 ac_header_compiler=no
28066 fi
28067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28069 echo "${ECHO_T}$ac_header_compiler" >&6
28070
28071 # Is the header present?
28072 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28074 cat >conftest.$ac_ext <<_ACEOF
28075 /* confdefs.h.  */
28076 _ACEOF
28077 cat confdefs.h >>conftest.$ac_ext
28078 cat >>conftest.$ac_ext <<_ACEOF
28079 /* end confdefs.h.  */
28080 #include <$ac_header>
28081 _ACEOF
28082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28083   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28084   ac_status=$?
28085   grep -v '^ *+' conftest.er1 >conftest.err
28086   rm -f conftest.er1
28087   cat conftest.err >&5
28088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28089   (exit $ac_status); } >/dev/null; then
28090   if test -s conftest.err; then
28091     ac_cpp_err=$ac_c_preproc_warn_flag
28092     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28093   else
28094     ac_cpp_err=
28095   fi
28096 else
28097   ac_cpp_err=yes
28098 fi
28099 if test -z "$ac_cpp_err"; then
28100   ac_header_preproc=yes
28101 else
28102   echo "$as_me: failed program was:" >&5
28103 sed 's/^/| /' conftest.$ac_ext >&5
28104
28105   ac_header_preproc=no
28106 fi
28107 rm -f conftest.err conftest.$ac_ext
28108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28109 echo "${ECHO_T}$ac_header_preproc" >&6
28110
28111 # So?  What about this header?
28112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28113   yes:no: )
28114     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28116     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28117 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28118     ac_header_preproc=yes
28119     ;;
28120   no:yes:* )
28121     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28122 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28123     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28124 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28125     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28126 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28127     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28128 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28129     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28131     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28132 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28133     (
28134       cat <<\_ASBOX
28135 ## ------------------------------------------ ##
28136 ## Report this to the AC_PACKAGE_NAME lists.  ##
28137 ## ------------------------------------------ ##
28138 _ASBOX
28139     ) |
28140       sed "s/^/$as_me: WARNING:     /" >&2
28141     ;;
28142 esac
28143 echo "$as_me:$LINENO: checking for $ac_header" >&5
28144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28146   echo $ECHO_N "(cached) $ECHO_C" >&6
28147 else
28148   eval "$as_ac_Header=\$ac_header_preproc"
28149 fi
28150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28152
28153 fi
28154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28155   cat >>confdefs.h <<_ACEOF
28156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28157 _ACEOF
28158
28159 fi
28160
28161 done
28162
28163                 if test $ac_cv_header_heim_err_h = yes ; then
28164                         krb5_impl=heimdal
28165                 else
28166                         krb5_impl=mit
28167                 fi
28168
28169                 if test $krb5_impl = mit; then
28170                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28171 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28172 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28173   echo $ECHO_N "(cached) $ECHO_C" >&6
28174 else
28175   ac_check_lib_save_LIBS=$LIBS
28176 LIBS="-lk5crypto  $LIBS"
28177 cat >conftest.$ac_ext <<_ACEOF
28178 /* confdefs.h.  */
28179 _ACEOF
28180 cat confdefs.h >>conftest.$ac_ext
28181 cat >>conftest.$ac_ext <<_ACEOF
28182 /* end confdefs.h.  */
28183
28184
28185 int
28186 main ()
28187 {
28188 main ();
28189   ;
28190   return 0;
28191 }
28192 _ACEOF
28193 rm -f conftest.$ac_objext conftest$ac_exeext
28194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28195   (eval $ac_link) 2>conftest.er1
28196   ac_status=$?
28197   grep -v '^ *+' conftest.er1 >conftest.err
28198   rm -f conftest.er1
28199   cat conftest.err >&5
28200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201   (exit $ac_status); } &&
28202          { ac_try='test -z "$ac_c_werror_flag"
28203                          || test ! -s conftest.err'
28204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28205   (eval $ac_try) 2>&5
28206   ac_status=$?
28207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208   (exit $ac_status); }; } &&
28209          { ac_try='test -s conftest$ac_exeext'
28210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28211   (eval $ac_try) 2>&5
28212   ac_status=$?
28213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214   (exit $ac_status); }; }; then
28215   ac_cv_lib_k5crypto_main=yes
28216 else
28217   echo "$as_me: failed program was:" >&5
28218 sed 's/^/| /' conftest.$ac_ext >&5
28219
28220 ac_cv_lib_k5crypto_main=no
28221 fi
28222 rm -f conftest.err conftest.$ac_objext \
28223       conftest$ac_exeext conftest.$ac_ext
28224 LIBS=$ac_check_lib_save_LIBS
28225 fi
28226 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28227 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28228 if test $ac_cv_lib_k5crypto_main = yes; then
28229   krb5crypto=k5crypto
28230 else
28231   krb5crypto=crypto
28232 fi
28233
28234
28235                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28236 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28237 if test "${ac_cv_lib_krb5_main+set}" = set; then
28238   echo $ECHO_N "(cached) $ECHO_C" >&6
28239 else
28240   ac_check_lib_save_LIBS=$LIBS
28241 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28242 cat >conftest.$ac_ext <<_ACEOF
28243 /* confdefs.h.  */
28244 _ACEOF
28245 cat confdefs.h >>conftest.$ac_ext
28246 cat >>conftest.$ac_ext <<_ACEOF
28247 /* end confdefs.h.  */
28248
28249
28250 int
28251 main ()
28252 {
28253 main ();
28254   ;
28255   return 0;
28256 }
28257 _ACEOF
28258 rm -f conftest.$ac_objext conftest$ac_exeext
28259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28260   (eval $ac_link) 2>conftest.er1
28261   ac_status=$?
28262   grep -v '^ *+' conftest.er1 >conftest.err
28263   rm -f conftest.er1
28264   cat conftest.err >&5
28265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266   (exit $ac_status); } &&
28267          { ac_try='test -z "$ac_c_werror_flag"
28268                          || test ! -s conftest.err'
28269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28270   (eval $ac_try) 2>&5
28271   ac_status=$?
28272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273   (exit $ac_status); }; } &&
28274          { ac_try='test -s conftest$ac_exeext'
28275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28276   (eval $ac_try) 2>&5
28277   ac_status=$?
28278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279   (exit $ac_status); }; }; then
28280   ac_cv_lib_krb5_main=yes
28281 else
28282   echo "$as_me: failed program was:" >&5
28283 sed 's/^/| /' conftest.$ac_ext >&5
28284
28285 ac_cv_lib_krb5_main=no
28286 fi
28287 rm -f conftest.err conftest.$ac_objext \
28288       conftest$ac_exeext conftest.$ac_ext
28289 LIBS=$ac_check_lib_save_LIBS
28290 fi
28291 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28292 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28293 if test $ac_cv_lib_krb5_main = yes; then
28294   have_krb5=yes
28295                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28296 else
28297   have_krb5=no
28298 fi
28299
28300
28301                 elif test $krb5_impl = heimdal; then
28302                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
28303 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28304 if test "${ac_cv_lib_des_main+set}" = set; then
28305   echo $ECHO_N "(cached) $ECHO_C" >&6
28306 else
28307   ac_check_lib_save_LIBS=$LIBS
28308 LIBS="-ldes  $LIBS"
28309 cat >conftest.$ac_ext <<_ACEOF
28310 /* confdefs.h.  */
28311 _ACEOF
28312 cat confdefs.h >>conftest.$ac_ext
28313 cat >>conftest.$ac_ext <<_ACEOF
28314 /* end confdefs.h.  */
28315
28316
28317 int
28318 main ()
28319 {
28320 main ();
28321   ;
28322   return 0;
28323 }
28324 _ACEOF
28325 rm -f conftest.$ac_objext conftest$ac_exeext
28326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28327   (eval $ac_link) 2>conftest.er1
28328   ac_status=$?
28329   grep -v '^ *+' conftest.er1 >conftest.err
28330   rm -f conftest.er1
28331   cat conftest.err >&5
28332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28333   (exit $ac_status); } &&
28334          { ac_try='test -z "$ac_c_werror_flag"
28335                          || test ! -s conftest.err'
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); }; } &&
28341          { ac_try='test -s conftest$ac_exeext'
28342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28343   (eval $ac_try) 2>&5
28344   ac_status=$?
28345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346   (exit $ac_status); }; }; then
28347   ac_cv_lib_des_main=yes
28348 else
28349   echo "$as_me: failed program was:" >&5
28350 sed 's/^/| /' conftest.$ac_ext >&5
28351
28352 ac_cv_lib_des_main=no
28353 fi
28354 rm -f conftest.err conftest.$ac_objext \
28355       conftest$ac_exeext conftest.$ac_ext
28356 LIBS=$ac_check_lib_save_LIBS
28357 fi
28358 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28359 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28360 if test $ac_cv_lib_des_main = yes; then
28361   krb5crypto=des
28362 else
28363   krb5crypto=crypto
28364 fi
28365
28366
28367                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28368 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28369 if test "${ac_cv_lib_krb5_main+set}" = set; then
28370   echo $ECHO_N "(cached) $ECHO_C" >&6
28371 else
28372   ac_check_lib_save_LIBS=$LIBS
28373 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28374 cat >conftest.$ac_ext <<_ACEOF
28375 /* confdefs.h.  */
28376 _ACEOF
28377 cat confdefs.h >>conftest.$ac_ext
28378 cat >>conftest.$ac_ext <<_ACEOF
28379 /* end confdefs.h.  */
28380
28381
28382 int
28383 main ()
28384 {
28385 main ();
28386   ;
28387   return 0;
28388 }
28389 _ACEOF
28390 rm -f conftest.$ac_objext conftest$ac_exeext
28391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28392   (eval $ac_link) 2>conftest.er1
28393   ac_status=$?
28394   grep -v '^ *+' conftest.er1 >conftest.err
28395   rm -f conftest.er1
28396   cat conftest.err >&5
28397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398   (exit $ac_status); } &&
28399          { ac_try='test -z "$ac_c_werror_flag"
28400                          || test ! -s conftest.err'
28401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28402   (eval $ac_try) 2>&5
28403   ac_status=$?
28404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405   (exit $ac_status); }; } &&
28406          { ac_try='test -s conftest$ac_exeext'
28407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28408   (eval $ac_try) 2>&5
28409   ac_status=$?
28410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411   (exit $ac_status); }; }; then
28412   ac_cv_lib_krb5_main=yes
28413 else
28414   echo "$as_me: failed program was:" >&5
28415 sed 's/^/| /' conftest.$ac_ext >&5
28416
28417 ac_cv_lib_krb5_main=no
28418 fi
28419 rm -f conftest.err conftest.$ac_objext \
28420       conftest$ac_exeext conftest.$ac_ext
28421 LIBS=$ac_check_lib_save_LIBS
28422 fi
28423 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28424 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28425 if test $ac_cv_lib_krb5_main = yes; then
28426   have_krb5=yes
28427                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28428 else
28429   have_krb5=no
28430 fi
28431
28432
28433
28434 cat >>confdefs.h <<\_ACEOF
28435 #define HAVE_HEIMDAL_KERBEROS 1
28436 _ACEOF
28437
28438
28439                 else
28440                         have_krb5=no
28441                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28442 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28443                 fi
28444
28445                 if test $have_krb5 = yes ; then
28446                         ol_link_krb5=yes
28447
28448
28449 cat >>confdefs.h <<\_ACEOF
28450 #define HAVE_KRB5 1
28451 _ACEOF
28452
28453
28454                         if test $ol_with_kerberos = k5only ; then
28455                                 ol_with_kerberos=found
28456                         fi
28457
28458                 elif test $ol_with_kerberos != auto ; then
28459                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28460 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28461    { (exit 1); exit 1; }; }
28462                 fi
28463
28464         fi
28465 fi
28466
28467 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28468         $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28469
28470
28471
28472 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28473 do
28474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28476   echo "$as_me:$LINENO: checking for $ac_header" >&5
28477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28479   echo $ECHO_N "(cached) $ECHO_C" >&6
28480 fi
28481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28483 else
28484   # Is the header compilable?
28485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28487 cat >conftest.$ac_ext <<_ACEOF
28488 /* confdefs.h.  */
28489 _ACEOF
28490 cat confdefs.h >>conftest.$ac_ext
28491 cat >>conftest.$ac_ext <<_ACEOF
28492 /* end confdefs.h.  */
28493 $ac_includes_default
28494 #include <$ac_header>
28495 _ACEOF
28496 rm -f conftest.$ac_objext
28497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28498   (eval $ac_compile) 2>conftest.er1
28499   ac_status=$?
28500   grep -v '^ *+' conftest.er1 >conftest.err
28501   rm -f conftest.er1
28502   cat conftest.err >&5
28503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504   (exit $ac_status); } &&
28505          { ac_try='test -z "$ac_c_werror_flag"
28506                          || test ! -s conftest.err'
28507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28508   (eval $ac_try) 2>&5
28509   ac_status=$?
28510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511   (exit $ac_status); }; } &&
28512          { ac_try='test -s conftest.$ac_objext'
28513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28514   (eval $ac_try) 2>&5
28515   ac_status=$?
28516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517   (exit $ac_status); }; }; then
28518   ac_header_compiler=yes
28519 else
28520   echo "$as_me: failed program was:" >&5
28521 sed 's/^/| /' conftest.$ac_ext >&5
28522
28523 ac_header_compiler=no
28524 fi
28525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28527 echo "${ECHO_T}$ac_header_compiler" >&6
28528
28529 # Is the header present?
28530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28532 cat >conftest.$ac_ext <<_ACEOF
28533 /* confdefs.h.  */
28534 _ACEOF
28535 cat confdefs.h >>conftest.$ac_ext
28536 cat >>conftest.$ac_ext <<_ACEOF
28537 /* end confdefs.h.  */
28538 #include <$ac_header>
28539 _ACEOF
28540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28541   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28542   ac_status=$?
28543   grep -v '^ *+' conftest.er1 >conftest.err
28544   rm -f conftest.er1
28545   cat conftest.err >&5
28546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547   (exit $ac_status); } >/dev/null; then
28548   if test -s conftest.err; then
28549     ac_cpp_err=$ac_c_preproc_warn_flag
28550     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28551   else
28552     ac_cpp_err=
28553   fi
28554 else
28555   ac_cpp_err=yes
28556 fi
28557 if test -z "$ac_cpp_err"; then
28558   ac_header_preproc=yes
28559 else
28560   echo "$as_me: failed program was:" >&5
28561 sed 's/^/| /' conftest.$ac_ext >&5
28562
28563   ac_header_preproc=no
28564 fi
28565 rm -f conftest.err conftest.$ac_ext
28566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28567 echo "${ECHO_T}$ac_header_preproc" >&6
28568
28569 # So?  What about this header?
28570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28571   yes:no: )
28572     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28576     ac_header_preproc=yes
28577     ;;
28578   no:yes:* )
28579     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28581     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28582 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28583     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28585     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28586 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28589     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28591     (
28592       cat <<\_ASBOX
28593 ## ------------------------------------------ ##
28594 ## Report this to the AC_PACKAGE_NAME lists.  ##
28595 ## ------------------------------------------ ##
28596 _ASBOX
28597     ) |
28598       sed "s/^/$as_me: WARNING:     /" >&2
28599     ;;
28600 esac
28601 echo "$as_me:$LINENO: checking for $ac_header" >&5
28602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28604   echo $ECHO_N "(cached) $ECHO_C" >&6
28605 else
28606   eval "$as_ac_Header=\$ac_header_preproc"
28607 fi
28608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28610
28611 fi
28612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28613   cat >>confdefs.h <<_ACEOF
28614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28615 _ACEOF
28616
28617 fi
28618
28619 done
28620
28621
28622         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28623                 if test $krb5_impl = mit; then
28624                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28625 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28626 if test "${ac_cv_lib_krb4_main+set}" = set; then
28627   echo $ECHO_N "(cached) $ECHO_C" >&6
28628 else
28629   ac_check_lib_save_LIBS=$LIBS
28630 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28631 cat >conftest.$ac_ext <<_ACEOF
28632 /* confdefs.h.  */
28633 _ACEOF
28634 cat confdefs.h >>conftest.$ac_ext
28635 cat >>conftest.$ac_ext <<_ACEOF
28636 /* end confdefs.h.  */
28637
28638
28639 int
28640 main ()
28641 {
28642 main ();
28643   ;
28644   return 0;
28645 }
28646 _ACEOF
28647 rm -f conftest.$ac_objext conftest$ac_exeext
28648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28649   (eval $ac_link) 2>conftest.er1
28650   ac_status=$?
28651   grep -v '^ *+' conftest.er1 >conftest.err
28652   rm -f conftest.er1
28653   cat conftest.err >&5
28654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28655   (exit $ac_status); } &&
28656          { ac_try='test -z "$ac_c_werror_flag"
28657                          || test ! -s conftest.err'
28658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28659   (eval $ac_try) 2>&5
28660   ac_status=$?
28661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662   (exit $ac_status); }; } &&
28663          { ac_try='test -s conftest$ac_exeext'
28664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28665   (eval $ac_try) 2>&5
28666   ac_status=$?
28667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668   (exit $ac_status); }; }; then
28669   ac_cv_lib_krb4_main=yes
28670 else
28671   echo "$as_me: failed program was:" >&5
28672 sed 's/^/| /' conftest.$ac_ext >&5
28673
28674 ac_cv_lib_krb4_main=no
28675 fi
28676 rm -f conftest.err conftest.$ac_objext \
28677       conftest$ac_exeext conftest.$ac_ext
28678 LIBS=$ac_check_lib_save_LIBS
28679 fi
28680 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28681 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28682 if test $ac_cv_lib_krb4_main = yes; then
28683   have_k425=yes
28684                                 KRB4_LIBS="-lkrb4 -ldes425"
28685 else
28686   have_k425=no
28687 fi
28688
28689
28690                 elif test $krb5_impl = heimdal; then
28691                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28692 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28693 if test "${ac_cv_lib_krb4_main+set}" = set; then
28694   echo $ECHO_N "(cached) $ECHO_C" >&6
28695 else
28696   ac_check_lib_save_LIBS=$LIBS
28697 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28698 cat >conftest.$ac_ext <<_ACEOF
28699 /* confdefs.h.  */
28700 _ACEOF
28701 cat confdefs.h >>conftest.$ac_ext
28702 cat >>conftest.$ac_ext <<_ACEOF
28703 /* end confdefs.h.  */
28704
28705
28706 int
28707 main ()
28708 {
28709 main ();
28710   ;
28711   return 0;
28712 }
28713 _ACEOF
28714 rm -f conftest.$ac_objext conftest$ac_exeext
28715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28716   (eval $ac_link) 2>conftest.er1
28717   ac_status=$?
28718   grep -v '^ *+' conftest.er1 >conftest.err
28719   rm -f conftest.er1
28720   cat conftest.err >&5
28721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722   (exit $ac_status); } &&
28723          { ac_try='test -z "$ac_c_werror_flag"
28724                          || test ! -s conftest.err'
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); }; } &&
28730          { ac_try='test -s conftest$ac_exeext'
28731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28732   (eval $ac_try) 2>&5
28733   ac_status=$?
28734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735   (exit $ac_status); }; }; then
28736   ac_cv_lib_krb4_main=yes
28737 else
28738   echo "$as_me: failed program was:" >&5
28739 sed 's/^/| /' conftest.$ac_ext >&5
28740
28741 ac_cv_lib_krb4_main=no
28742 fi
28743 rm -f conftest.err conftest.$ac_objext \
28744       conftest$ac_exeext conftest.$ac_ext
28745 LIBS=$ac_check_lib_save_LIBS
28746 fi
28747 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28748 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28749 if test $ac_cv_lib_krb4_main = yes; then
28750   have_k425=yes
28751                                 KRB4_LIBS="-lkrb4"
28752 else
28753   have_k425=no
28754 fi
28755
28756
28757                 else
28758                         have_425=no
28759                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
28760 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
28761                 fi
28762
28763                 if test $have_k425 = yes ; then
28764                         ol_with_kerberos=found
28765                         ol_link_krb4=yes
28766
28767
28768 cat >>confdefs.h <<\_ACEOF
28769 #define HAVE_KRB425 1
28770 _ACEOF
28771
28772
28773 cat >>confdefs.h <<\_ACEOF
28774 #define HAVE_KRB4 1
28775 _ACEOF
28776
28777
28778                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
28779 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
28780 if test "${ol_cv_var_des_debug+set}" = set; then
28781   echo $ECHO_N "(cached) $ECHO_C" >&6
28782 else
28783
28784                                                                 save_LIBS="$LIBS"
28785                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
28786                                 cat >conftest.$ac_ext <<_ACEOF
28787 /* confdefs.h.  */
28788 _ACEOF
28789 cat confdefs.h >>conftest.$ac_ext
28790 cat >>conftest.$ac_ext <<_ACEOF
28791 /* end confdefs.h.  */
28792
28793 #include <kerberosIV/krb.h>
28794 #include <kerberosIV/des.h>
28795 extern int des_debug;
28796
28797 int
28798 main ()
28799 {
28800
28801 des_debug = 1;
28802
28803   ;
28804   return 0;
28805 }
28806 _ACEOF
28807 rm -f conftest.$ac_objext conftest$ac_exeext
28808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28809   (eval $ac_link) 2>conftest.er1
28810   ac_status=$?
28811   grep -v '^ *+' conftest.er1 >conftest.err
28812   rm -f conftest.er1
28813   cat conftest.err >&5
28814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815   (exit $ac_status); } &&
28816          { ac_try='test -z "$ac_c_werror_flag"
28817                          || test ! -s conftest.err'
28818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28819   (eval $ac_try) 2>&5
28820   ac_status=$?
28821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822   (exit $ac_status); }; } &&
28823          { ac_try='test -s conftest$ac_exeext'
28824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28825   (eval $ac_try) 2>&5
28826   ac_status=$?
28827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828   (exit $ac_status); }; }; then
28829   ol_cv_var_des_debug=yes
28830 else
28831   echo "$as_me: failed program was:" >&5
28832 sed 's/^/| /' conftest.$ac_ext >&5
28833
28834 ol_cv_var_des_debug=no
28835 fi
28836 rm -f conftest.err conftest.$ac_objext \
28837       conftest$ac_exeext conftest.$ac_ext
28838                                                                 LIBS="$save_LIBS"
28839
28840 fi
28841 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
28842 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
28843
28844                         if test $ol_cv_var_des_debug = yes ; then
28845
28846 cat >>confdefs.h <<\_ACEOF
28847 #define HAVE_DES_DEBUG 1
28848 _ACEOF
28849
28850                         fi
28851
28852                         LIBS="$save_LIBS"
28853                 fi
28854         fi
28855 fi
28856
28857 if test $ol_link_krb5 = yes ; then
28858         ol_with_kerberos=found
28859 fi
28860
28861 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28862         -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
28863
28864
28865
28866
28867 for ac_header in krb.h des.h krb-archaeology.h
28868 do
28869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28871   echo "$as_me:$LINENO: checking for $ac_header" >&5
28872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28874   echo $ECHO_N "(cached) $ECHO_C" >&6
28875 fi
28876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28878 else
28879   # Is the header compilable?
28880 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28882 cat >conftest.$ac_ext <<_ACEOF
28883 /* confdefs.h.  */
28884 _ACEOF
28885 cat confdefs.h >>conftest.$ac_ext
28886 cat >>conftest.$ac_ext <<_ACEOF
28887 /* end confdefs.h.  */
28888 $ac_includes_default
28889 #include <$ac_header>
28890 _ACEOF
28891 rm -f conftest.$ac_objext
28892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28893   (eval $ac_compile) 2>conftest.er1
28894   ac_status=$?
28895   grep -v '^ *+' conftest.er1 >conftest.err
28896   rm -f conftest.er1
28897   cat conftest.err >&5
28898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899   (exit $ac_status); } &&
28900          { ac_try='test -z "$ac_c_werror_flag"
28901                          || test ! -s conftest.err'
28902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28903   (eval $ac_try) 2>&5
28904   ac_status=$?
28905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28906   (exit $ac_status); }; } &&
28907          { ac_try='test -s conftest.$ac_objext'
28908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28909   (eval $ac_try) 2>&5
28910   ac_status=$?
28911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912   (exit $ac_status); }; }; then
28913   ac_header_compiler=yes
28914 else
28915   echo "$as_me: failed program was:" >&5
28916 sed 's/^/| /' conftest.$ac_ext >&5
28917
28918 ac_header_compiler=no
28919 fi
28920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28922 echo "${ECHO_T}$ac_header_compiler" >&6
28923
28924 # Is the header present?
28925 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28926 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28927 cat >conftest.$ac_ext <<_ACEOF
28928 /* confdefs.h.  */
28929 _ACEOF
28930 cat confdefs.h >>conftest.$ac_ext
28931 cat >>conftest.$ac_ext <<_ACEOF
28932 /* end confdefs.h.  */
28933 #include <$ac_header>
28934 _ACEOF
28935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28936   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28937   ac_status=$?
28938   grep -v '^ *+' conftest.er1 >conftest.err
28939   rm -f conftest.er1
28940   cat conftest.err >&5
28941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942   (exit $ac_status); } >/dev/null; then
28943   if test -s conftest.err; then
28944     ac_cpp_err=$ac_c_preproc_warn_flag
28945     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28946   else
28947     ac_cpp_err=
28948   fi
28949 else
28950   ac_cpp_err=yes
28951 fi
28952 if test -z "$ac_cpp_err"; then
28953   ac_header_preproc=yes
28954 else
28955   echo "$as_me: failed program was:" >&5
28956 sed 's/^/| /' conftest.$ac_ext >&5
28957
28958   ac_header_preproc=no
28959 fi
28960 rm -f conftest.err conftest.$ac_ext
28961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28962 echo "${ECHO_T}$ac_header_preproc" >&6
28963
28964 # So?  What about this header?
28965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28966   yes:no: )
28967     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28969     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28970 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28971     ac_header_preproc=yes
28972     ;;
28973   no:yes:* )
28974     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28976     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28977 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28978     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28979 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28980     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28981 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28984     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28985 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28986     (
28987       cat <<\_ASBOX
28988 ## ------------------------------------------ ##
28989 ## Report this to the AC_PACKAGE_NAME lists.  ##
28990 ## ------------------------------------------ ##
28991 _ASBOX
28992     ) |
28993       sed "s/^/$as_me: WARNING:     /" >&2
28994     ;;
28995 esac
28996 echo "$as_me:$LINENO: checking for $ac_header" >&5
28997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28999   echo $ECHO_N "(cached) $ECHO_C" >&6
29000 else
29001   eval "$as_ac_Header=\$ac_header_preproc"
29002 fi
29003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29005
29006 fi
29007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29008   cat >>confdefs.h <<_ACEOF
29009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29010 _ACEOF
29011
29012 fi
29013
29014 done
29015
29016
29017         if test $ac_cv_header_krb_h = yes ; then
29018                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29019 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29020 if test "${ac_cv_lib_krb_main+set}" = set; then
29021   echo $ECHO_N "(cached) $ECHO_C" >&6
29022 else
29023   ac_check_lib_save_LIBS=$LIBS
29024 LIBS="-lkrb -ldes $LIBS"
29025 cat >conftest.$ac_ext <<_ACEOF
29026 /* confdefs.h.  */
29027 _ACEOF
29028 cat confdefs.h >>conftest.$ac_ext
29029 cat >>conftest.$ac_ext <<_ACEOF
29030 /* end confdefs.h.  */
29031
29032
29033 int
29034 main ()
29035 {
29036 main ();
29037   ;
29038   return 0;
29039 }
29040 _ACEOF
29041 rm -f conftest.$ac_objext conftest$ac_exeext
29042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29043   (eval $ac_link) 2>conftest.er1
29044   ac_status=$?
29045   grep -v '^ *+' conftest.er1 >conftest.err
29046   rm -f conftest.er1
29047   cat conftest.err >&5
29048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29049   (exit $ac_status); } &&
29050          { ac_try='test -z "$ac_c_werror_flag"
29051                          || test ! -s conftest.err'
29052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29053   (eval $ac_try) 2>&5
29054   ac_status=$?
29055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056   (exit $ac_status); }; } &&
29057          { ac_try='test -s conftest$ac_exeext'
29058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29059   (eval $ac_try) 2>&5
29060   ac_status=$?
29061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062   (exit $ac_status); }; }; then
29063   ac_cv_lib_krb_main=yes
29064 else
29065   echo "$as_me: failed program was:" >&5
29066 sed 's/^/| /' conftest.$ac_ext >&5
29067
29068 ac_cv_lib_krb_main=no
29069 fi
29070 rm -f conftest.err conftest.$ac_objext \
29071       conftest$ac_exeext conftest.$ac_ext
29072 LIBS=$ac_check_lib_save_LIBS
29073 fi
29074 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29075 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29076 if test $ac_cv_lib_krb_main = yes; then
29077   have_k4=yes
29078 else
29079   have_k4=no
29080 fi
29081
29082
29083                 if test $have_k4 = yes ; then
29084                         ol_with_kerberos=found
29085                         ol_link_krb4=yes
29086
29087
29088 cat >>confdefs.h <<\_ACEOF
29089 #define HAVE_KRB4 1
29090 _ACEOF
29091
29092
29093                         KRB4_LIBS="-lkrb -ldes"
29094
29095                         if test $ac_cv_header_krb_archaeology_h = yes ; then
29096
29097 cat >>confdefs.h <<\_ACEOF
29098 #define HAVE_KTH_KERBEROS 1
29099 _ACEOF
29100
29101                         fi
29102                 fi
29103         fi
29104 fi
29105
29106 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29107         ol_link_kbind=yes
29108
29109 elif test $ol_enable_kbind = yes ; then
29110         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29111 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29112    { (exit 1); exit 1; }; }
29113 fi
29114
29115 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29116
29117 cat >>confdefs.h <<\_ACEOF
29118 #define HAVE_KERBEROS 1
29119 _ACEOF
29120
29121
29122 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29123         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29124 echo "$as_me: error: Kerberos detection failed" >&2;}
29125    { (exit 1); exit 1; }; }
29126 fi
29127
29128
29129 ol_link_tls=no
29130 if test $ol_with_tls != no ; then
29131
29132
29133 for ac_header in openssl/ssl.h ssl.h
29134 do
29135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29137   echo "$as_me:$LINENO: checking for $ac_header" >&5
29138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29140   echo $ECHO_N "(cached) $ECHO_C" >&6
29141 fi
29142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29144 else
29145   # Is the header compilable?
29146 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29148 cat >conftest.$ac_ext <<_ACEOF
29149 /* confdefs.h.  */
29150 _ACEOF
29151 cat confdefs.h >>conftest.$ac_ext
29152 cat >>conftest.$ac_ext <<_ACEOF
29153 /* end confdefs.h.  */
29154 $ac_includes_default
29155 #include <$ac_header>
29156 _ACEOF
29157 rm -f conftest.$ac_objext
29158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29159   (eval $ac_compile) 2>conftest.er1
29160   ac_status=$?
29161   grep -v '^ *+' conftest.er1 >conftest.err
29162   rm -f conftest.er1
29163   cat conftest.err >&5
29164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29165   (exit $ac_status); } &&
29166          { ac_try='test -z "$ac_c_werror_flag"
29167                          || test ! -s conftest.err'
29168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29169   (eval $ac_try) 2>&5
29170   ac_status=$?
29171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29172   (exit $ac_status); }; } &&
29173          { ac_try='test -s conftest.$ac_objext'
29174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29175   (eval $ac_try) 2>&5
29176   ac_status=$?
29177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178   (exit $ac_status); }; }; then
29179   ac_header_compiler=yes
29180 else
29181   echo "$as_me: failed program was:" >&5
29182 sed 's/^/| /' conftest.$ac_ext >&5
29183
29184 ac_header_compiler=no
29185 fi
29186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29187 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29188 echo "${ECHO_T}$ac_header_compiler" >&6
29189
29190 # Is the header present?
29191 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29192 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29193 cat >conftest.$ac_ext <<_ACEOF
29194 /* confdefs.h.  */
29195 _ACEOF
29196 cat confdefs.h >>conftest.$ac_ext
29197 cat >>conftest.$ac_ext <<_ACEOF
29198 /* end confdefs.h.  */
29199 #include <$ac_header>
29200 _ACEOF
29201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29202   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29203   ac_status=$?
29204   grep -v '^ *+' conftest.er1 >conftest.err
29205   rm -f conftest.er1
29206   cat conftest.err >&5
29207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208   (exit $ac_status); } >/dev/null; then
29209   if test -s conftest.err; then
29210     ac_cpp_err=$ac_c_preproc_warn_flag
29211     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29212   else
29213     ac_cpp_err=
29214   fi
29215 else
29216   ac_cpp_err=yes
29217 fi
29218 if test -z "$ac_cpp_err"; then
29219   ac_header_preproc=yes
29220 else
29221   echo "$as_me: failed program was:" >&5
29222 sed 's/^/| /' conftest.$ac_ext >&5
29223
29224   ac_header_preproc=no
29225 fi
29226 rm -f conftest.err conftest.$ac_ext
29227 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29228 echo "${ECHO_T}$ac_header_preproc" >&6
29229
29230 # So?  What about this header?
29231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29232   yes:no: )
29233     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29235     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29236 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29237     ac_header_preproc=yes
29238     ;;
29239   no:yes:* )
29240     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29241 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29242     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29243 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29244     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29245 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29246     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29247 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29248     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29250     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29251 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29252     (
29253       cat <<\_ASBOX
29254 ## ------------------------------------------ ##
29255 ## Report this to the AC_PACKAGE_NAME lists.  ##
29256 ## ------------------------------------------ ##
29257 _ASBOX
29258     ) |
29259       sed "s/^/$as_me: WARNING:     /" >&2
29260     ;;
29261 esac
29262 echo "$as_me:$LINENO: checking for $ac_header" >&5
29263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29265   echo $ECHO_N "(cached) $ECHO_C" >&6
29266 else
29267   eval "$as_ac_Header=\$ac_header_preproc"
29268 fi
29269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29271
29272 fi
29273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29274   cat >>confdefs.h <<_ACEOF
29275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29276 _ACEOF
29277
29278 fi
29279
29280 done
29281
29282
29283         if test $ac_cv_header_openssl_ssl_h = yes \
29284                 -o $ac_cv_header_ssl_h = yes ; then
29285                 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29286 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29287 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29288   echo $ECHO_N "(cached) $ECHO_C" >&6
29289 else
29290   ac_check_lib_save_LIBS=$LIBS
29291 LIBS="-lssl -lcrypto $LIBS"
29292 cat >conftest.$ac_ext <<_ACEOF
29293 /* confdefs.h.  */
29294 _ACEOF
29295 cat confdefs.h >>conftest.$ac_ext
29296 cat >>conftest.$ac_ext <<_ACEOF
29297 /* end confdefs.h.  */
29298
29299 /* Override any gcc2 internal prototype to avoid an error.  */
29300 #ifdef __cplusplus
29301 extern "C"
29302 #endif
29303 /* We use char because int might match the return type of a gcc2
29304    builtin and then its argument prototype would still apply.  */
29305 char SSLeay_add_ssl_algorithms ();
29306 int
29307 main ()
29308 {
29309 SSLeay_add_ssl_algorithms ();
29310   ;
29311   return 0;
29312 }
29313 _ACEOF
29314 rm -f conftest.$ac_objext conftest$ac_exeext
29315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29316   (eval $ac_link) 2>conftest.er1
29317   ac_status=$?
29318   grep -v '^ *+' conftest.er1 >conftest.err
29319   rm -f conftest.er1
29320   cat conftest.err >&5
29321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29322   (exit $ac_status); } &&
29323          { ac_try='test -z "$ac_c_werror_flag"
29324                          || test ! -s conftest.err'
29325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29326   (eval $ac_try) 2>&5
29327   ac_status=$?
29328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329   (exit $ac_status); }; } &&
29330          { ac_try='test -s conftest$ac_exeext'
29331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29332   (eval $ac_try) 2>&5
29333   ac_status=$?
29334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335   (exit $ac_status); }; }; then
29336   ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29337 else
29338   echo "$as_me: failed program was:" >&5
29339 sed 's/^/| /' conftest.$ac_ext >&5
29340
29341 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29342 fi
29343 rm -f conftest.err conftest.$ac_objext \
29344       conftest$ac_exeext conftest.$ac_ext
29345 LIBS=$ac_check_lib_save_LIBS
29346 fi
29347 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29348 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29349 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29350   have_ssleay=yes
29351                         need_rsaref=no
29352 else
29353   have_ssleay=no
29354 fi
29355
29356
29357                 if test $have_ssleay = no ; then
29358                         echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29359 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29360 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29361   echo $ECHO_N "(cached) $ECHO_C" >&6
29362 else
29363   ac_check_lib_save_LIBS=$LIBS
29364 LIBS="-lssl -lcrypto $LIBS"
29365 cat >conftest.$ac_ext <<_ACEOF
29366 /* confdefs.h.  */
29367 _ACEOF
29368 cat confdefs.h >>conftest.$ac_ext
29369 cat >>conftest.$ac_ext <<_ACEOF
29370 /* end confdefs.h.  */
29371
29372 /* Override any gcc2 internal prototype to avoid an error.  */
29373 #ifdef __cplusplus
29374 extern "C"
29375 #endif
29376 /* We use char because int might match the return type of a gcc2
29377    builtin and then its argument prototype would still apply.  */
29378 char SSL_library_init ();
29379 int
29380 main ()
29381 {
29382 SSL_library_init ();
29383   ;
29384   return 0;
29385 }
29386 _ACEOF
29387 rm -f conftest.$ac_objext conftest$ac_exeext
29388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29389   (eval $ac_link) 2>conftest.er1
29390   ac_status=$?
29391   grep -v '^ *+' conftest.er1 >conftest.err
29392   rm -f conftest.er1
29393   cat conftest.err >&5
29394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395   (exit $ac_status); } &&
29396          { ac_try='test -z "$ac_c_werror_flag"
29397                          || test ! -s conftest.err'
29398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29399   (eval $ac_try) 2>&5
29400   ac_status=$?
29401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29402   (exit $ac_status); }; } &&
29403          { ac_try='test -s conftest$ac_exeext'
29404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405   (eval $ac_try) 2>&5
29406   ac_status=$?
29407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408   (exit $ac_status); }; }; then
29409   ac_cv_lib_ssl_SSL_library_init=yes
29410 else
29411   echo "$as_me: failed program was:" >&5
29412 sed 's/^/| /' conftest.$ac_ext >&5
29413
29414 ac_cv_lib_ssl_SSL_library_init=no
29415 fi
29416 rm -f conftest.err conftest.$ac_objext \
29417       conftest$ac_exeext conftest.$ac_ext
29418 LIBS=$ac_check_lib_save_LIBS
29419 fi
29420 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29421 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29422 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29423   have_ssleay=yes
29424                                 need_rsaref=no
29425 else
29426   have_ssleay=no
29427 fi
29428
29429                 fi
29430
29431                 if test $have_ssleay = no ; then
29432                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29433 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29434 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29435   echo $ECHO_N "(cached) $ECHO_C" >&6
29436 else
29437   ac_check_lib_save_LIBS=$LIBS
29438 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29439 cat >conftest.$ac_ext <<_ACEOF
29440 /* confdefs.h.  */
29441 _ACEOF
29442 cat confdefs.h >>conftest.$ac_ext
29443 cat >>conftest.$ac_ext <<_ACEOF
29444 /* end confdefs.h.  */
29445
29446 /* Override any gcc2 internal prototype to avoid an error.  */
29447 #ifdef __cplusplus
29448 extern "C"
29449 #endif
29450 /* We use char because int might match the return type of a gcc2
29451    builtin and then its argument prototype would still apply.  */
29452 char ssl3_accept ();
29453 int
29454 main ()
29455 {
29456 ssl3_accept ();
29457   ;
29458   return 0;
29459 }
29460 _ACEOF
29461 rm -f conftest.$ac_objext conftest$ac_exeext
29462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29463   (eval $ac_link) 2>conftest.er1
29464   ac_status=$?
29465   grep -v '^ *+' conftest.er1 >conftest.err
29466   rm -f conftest.er1
29467   cat conftest.err >&5
29468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29469   (exit $ac_status); } &&
29470          { ac_try='test -z "$ac_c_werror_flag"
29471                          || test ! -s conftest.err'
29472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29473   (eval $ac_try) 2>&5
29474   ac_status=$?
29475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476   (exit $ac_status); }; } &&
29477          { ac_try='test -s conftest$ac_exeext'
29478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29479   (eval $ac_try) 2>&5
29480   ac_status=$?
29481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29482   (exit $ac_status); }; }; then
29483   ac_cv_lib_ssl_ssl3_accept=yes
29484 else
29485   echo "$as_me: failed program was:" >&5
29486 sed 's/^/| /' conftest.$ac_ext >&5
29487
29488 ac_cv_lib_ssl_ssl3_accept=no
29489 fi
29490 rm -f conftest.err conftest.$ac_objext \
29491       conftest$ac_exeext conftest.$ac_ext
29492 LIBS=$ac_check_lib_save_LIBS
29493 fi
29494 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29495 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29496 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29497   have_ssleay=yes
29498                                 need_rsaref=yes
29499 else
29500   have_ssleay=no
29501 fi
29502
29503                 fi
29504
29505                 if test $have_ssleay = yes ; then
29506                         ol_with_tls=found
29507                         ol_link_tls=yes
29508
29509
29510 cat >>confdefs.h <<\_ACEOF
29511 #define HAVE_SSLEAY 1
29512 _ACEOF
29513
29514
29515                         if test $need_rsaref = yes; then
29516
29517 cat >>confdefs.h <<\_ACEOF
29518 #define HAVE_RSAREF 1
29519 _ACEOF
29520
29521
29522                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29523                         else
29524                                 TLS_LIBS="-lssl -lcrypto"
29525                         fi
29526                 fi
29527                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29528 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29529 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29530   echo $ECHO_N "(cached) $ECHO_C" >&6
29531 else
29532
29533         cat >conftest.$ac_ext <<_ACEOF
29534 /* confdefs.h.  */
29535 _ACEOF
29536 cat confdefs.h >>conftest.$ac_ext
29537 cat >>conftest.$ac_ext <<_ACEOF
29538 /* end confdefs.h.  */
29539
29540 #ifdef HAVE_OPENSSL_SSL_H
29541 #include <openssl/ssl.h>
29542 #else
29543 #include <ssl.h>
29544 #endif
29545
29546 /* Require 0.9.7d+ */
29547 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29548         char *__ssl_compat = "0.9.7d";
29549 #endif
29550
29551 _ACEOF
29552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29553   $EGREP "__ssl_compat" >/dev/null 2>&1; then
29554   ol_cv_ssl_crl_compat=yes
29555 else
29556   ol_cv_ssl_crl_compat=no
29557 fi
29558 rm -f conftest*
29559
29560 fi
29561 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29562 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29563
29564                 if test $ol_cv_ssl_crl_compat = no ; then
29565                         ol_link_ssl=no
29566                 else
29567
29568 cat >>confdefs.h <<\_ACEOF
29569 #define HAVE_OPENSSL_CRL 1
29570 _ACEOF
29571
29572                 fi
29573         fi
29574
29575 else
29576         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29577 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29578 fi
29579
29580 WITH_TLS=no
29581 if test $ol_link_tls = yes ; then
29582
29583 cat >>confdefs.h <<\_ACEOF
29584 #define HAVE_TLS 1
29585 _ACEOF
29586
29587         WITH_TLS=yes
29588
29589 elif test $ol_with_tls = auto ; then
29590         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29591 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29592         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29593 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29594
29595 elif test $ol_with_tls != no ; then
29596         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29597 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29598    { (exit 1); exit 1; }; }
29599 fi
29600
29601 if test $ol_enable_lmpasswd != no; then
29602         if test $ol_link_tls != yes ; then
29603                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29604 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29605    { (exit 1); exit 1; }; }
29606         fi
29607
29608
29609 cat >>confdefs.h <<\_ACEOF
29610 #define SLAPD_LMHASH 1
29611 _ACEOF
29612
29613 fi
29614
29615 ol_link_threads=no
29616
29617 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29618         -o $ol_with_threads = nt ; then
29619
29620
29621         echo "$as_me:$LINENO: checking for _beginthread" >&5
29622 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29623 if test "${ac_cv_func__beginthread+set}" = set; then
29624   echo $ECHO_N "(cached) $ECHO_C" >&6
29625 else
29626   cat >conftest.$ac_ext <<_ACEOF
29627 /* confdefs.h.  */
29628 _ACEOF
29629 cat confdefs.h >>conftest.$ac_ext
29630 cat >>conftest.$ac_ext <<_ACEOF
29631 /* end confdefs.h.  */
29632 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29634 #define _beginthread innocuous__beginthread
29635
29636 /* System header to define __stub macros and hopefully few prototypes,
29637     which can conflict with char _beginthread (); below.
29638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29639     <limits.h> exists even on freestanding compilers.  */
29640
29641 #ifdef __STDC__
29642 # include <limits.h>
29643 #else
29644 # include <assert.h>
29645 #endif
29646
29647 #undef _beginthread
29648
29649 /* Override any gcc2 internal prototype to avoid an error.  */
29650 #ifdef __cplusplus
29651 extern "C"
29652 {
29653 #endif
29654 /* We use char because int might match the return type of a gcc2
29655    builtin and then its argument prototype would still apply.  */
29656 char _beginthread ();
29657 /* The GNU C library defines this for functions which it implements
29658     to always fail with ENOSYS.  Some functions are actually named
29659     something starting with __ and the normal name is an alias.  */
29660 #if defined (__stub__beginthread) || defined (__stub____beginthread)
29661 choke me
29662 #else
29663 char (*f) () = _beginthread;
29664 #endif
29665 #ifdef __cplusplus
29666 }
29667 #endif
29668
29669 int
29670 main ()
29671 {
29672 return f != _beginthread;
29673   ;
29674   return 0;
29675 }
29676 _ACEOF
29677 rm -f conftest.$ac_objext conftest$ac_exeext
29678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29679   (eval $ac_link) 2>conftest.er1
29680   ac_status=$?
29681   grep -v '^ *+' conftest.er1 >conftest.err
29682   rm -f conftest.er1
29683   cat conftest.err >&5
29684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685   (exit $ac_status); } &&
29686          { ac_try='test -z "$ac_c_werror_flag"
29687                          || test ! -s conftest.err'
29688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29689   (eval $ac_try) 2>&5
29690   ac_status=$?
29691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692   (exit $ac_status); }; } &&
29693          { ac_try='test -s conftest$ac_exeext'
29694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29695   (eval $ac_try) 2>&5
29696   ac_status=$?
29697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698   (exit $ac_status); }; }; then
29699   ac_cv_func__beginthread=yes
29700 else
29701   echo "$as_me: failed program was:" >&5
29702 sed 's/^/| /' conftest.$ac_ext >&5
29703
29704 ac_cv_func__beginthread=no
29705 fi
29706 rm -f conftest.err conftest.$ac_objext \
29707       conftest$ac_exeext conftest.$ac_ext
29708 fi
29709 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
29710 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
29711
29712
29713         if test $ac_cv_func__beginthread = yes ; then
29714
29715 cat >>confdefs.h <<\_ACEOF
29716 #define HAVE_NT_THREADS 1
29717 _ACEOF
29718
29719                 ol_cv_nt_threads=yes
29720         fi
29721
29722
29723         if test "$ol_cv_nt_threads" = yes ; then
29724                 ol_link_threads=nt
29725                 ol_with_threads=found
29726                 ol_with_yielding_select=yes
29727
29728
29729 cat >>confdefs.h <<\_ACEOF
29730 #define HAVE_NT_SERVICE_MANAGER 1
29731 _ACEOF
29732
29733
29734 cat >>confdefs.h <<\_ACEOF
29735 #define HAVE_NT_EVENT_LOG 1
29736 _ACEOF
29737
29738         fi
29739
29740         if test $ol_with_threads = nt ; then
29741                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
29742 echo "$as_me: error: could not locate NT Threads" >&2;}
29743    { (exit 1); exit 1; }; }
29744         fi
29745 fi
29746
29747 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29748         -o $ol_with_threads = posix ; then
29749
29750
29751 for ac_header in pthread.h
29752 do
29753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29755   echo "$as_me:$LINENO: checking for $ac_header" >&5
29756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29758   echo $ECHO_N "(cached) $ECHO_C" >&6
29759 fi
29760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29762 else
29763   # Is the header compilable?
29764 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29766 cat >conftest.$ac_ext <<_ACEOF
29767 /* confdefs.h.  */
29768 _ACEOF
29769 cat confdefs.h >>conftest.$ac_ext
29770 cat >>conftest.$ac_ext <<_ACEOF
29771 /* end confdefs.h.  */
29772 $ac_includes_default
29773 #include <$ac_header>
29774 _ACEOF
29775 rm -f conftest.$ac_objext
29776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29777   (eval $ac_compile) 2>conftest.er1
29778   ac_status=$?
29779   grep -v '^ *+' conftest.er1 >conftest.err
29780   rm -f conftest.er1
29781   cat conftest.err >&5
29782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783   (exit $ac_status); } &&
29784          { ac_try='test -z "$ac_c_werror_flag"
29785                          || test ! -s conftest.err'
29786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29787   (eval $ac_try) 2>&5
29788   ac_status=$?
29789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790   (exit $ac_status); }; } &&
29791          { ac_try='test -s conftest.$ac_objext'
29792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29793   (eval $ac_try) 2>&5
29794   ac_status=$?
29795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29796   (exit $ac_status); }; }; then
29797   ac_header_compiler=yes
29798 else
29799   echo "$as_me: failed program was:" >&5
29800 sed 's/^/| /' conftest.$ac_ext >&5
29801
29802 ac_header_compiler=no
29803 fi
29804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29806 echo "${ECHO_T}$ac_header_compiler" >&6
29807
29808 # Is the header present?
29809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29811 cat >conftest.$ac_ext <<_ACEOF
29812 /* confdefs.h.  */
29813 _ACEOF
29814 cat confdefs.h >>conftest.$ac_ext
29815 cat >>conftest.$ac_ext <<_ACEOF
29816 /* end confdefs.h.  */
29817 #include <$ac_header>
29818 _ACEOF
29819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29820   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29821   ac_status=$?
29822   grep -v '^ *+' conftest.er1 >conftest.err
29823   rm -f conftest.er1
29824   cat conftest.err >&5
29825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826   (exit $ac_status); } >/dev/null; then
29827   if test -s conftest.err; then
29828     ac_cpp_err=$ac_c_preproc_warn_flag
29829     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29830   else
29831     ac_cpp_err=
29832   fi
29833 else
29834   ac_cpp_err=yes
29835 fi
29836 if test -z "$ac_cpp_err"; then
29837   ac_header_preproc=yes
29838 else
29839   echo "$as_me: failed program was:" >&5
29840 sed 's/^/| /' conftest.$ac_ext >&5
29841
29842   ac_header_preproc=no
29843 fi
29844 rm -f conftest.err conftest.$ac_ext
29845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29846 echo "${ECHO_T}$ac_header_preproc" >&6
29847
29848 # So?  What about this header?
29849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29850   yes:no: )
29851     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29855     ac_header_preproc=yes
29856     ;;
29857   no:yes:* )
29858     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29860     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29861 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29862     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29864     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29865 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29868     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29870     (
29871       cat <<\_ASBOX
29872 ## ------------------------------------------ ##
29873 ## Report this to the AC_PACKAGE_NAME lists.  ##
29874 ## ------------------------------------------ ##
29875 _ASBOX
29876     ) |
29877       sed "s/^/$as_me: WARNING:     /" >&2
29878     ;;
29879 esac
29880 echo "$as_me:$LINENO: checking for $ac_header" >&5
29881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29883   echo $ECHO_N "(cached) $ECHO_C" >&6
29884 else
29885   eval "$as_ac_Header=\$ac_header_preproc"
29886 fi
29887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29889
29890 fi
29891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29892   cat >>confdefs.h <<_ACEOF
29893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29894 _ACEOF
29895
29896 fi
29897
29898 done
29899
29900
29901         if test $ac_cv_header_pthread_h = yes ; then
29902                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
29903 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
29904 if test "${ol_cv_pthread_version+set}" = set; then
29905   echo $ECHO_N "(cached) $ECHO_C" >&6
29906 else
29907
29908         cat >conftest.$ac_ext <<_ACEOF
29909 /* confdefs.h.  */
29910 _ACEOF
29911 cat confdefs.h >>conftest.$ac_ext
29912 cat >>conftest.$ac_ext <<_ACEOF
29913 /* end confdefs.h.  */
29914
29915 #               include <pthread.h>
29916
29917 int
29918 main ()
29919 {
29920
29921                 int i = PTHREAD_CREATE_JOINABLE;
29922
29923   ;
29924   return 0;
29925 }
29926 _ACEOF
29927 rm -f conftest.$ac_objext
29928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29929   (eval $ac_compile) 2>conftest.er1
29930   ac_status=$?
29931   grep -v '^ *+' conftest.er1 >conftest.err
29932   rm -f conftest.er1
29933   cat conftest.err >&5
29934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935   (exit $ac_status); } &&
29936          { ac_try='test -z "$ac_c_werror_flag"
29937                          || test ! -s conftest.err'
29938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29939   (eval $ac_try) 2>&5
29940   ac_status=$?
29941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942   (exit $ac_status); }; } &&
29943          { ac_try='test -s conftest.$ac_objext'
29944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29945   (eval $ac_try) 2>&5
29946   ac_status=$?
29947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948   (exit $ac_status); }; }; then
29949
29950         cat >conftest.$ac_ext <<_ACEOF
29951 /* confdefs.h.  */
29952 _ACEOF
29953 cat confdefs.h >>conftest.$ac_ext
29954 cat >>conftest.$ac_ext <<_ACEOF
29955 /* end confdefs.h.  */
29956 #include <pthread.h>
29957
29958 _ACEOF
29959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29960   $EGREP "pthread_detach" >/dev/null 2>&1; then
29961   ol_cv_pthread_version=10
29962 else
29963   ol_cv_pthread_version=8
29964 fi
29965 rm -f conftest*
29966
29967 else
29968   echo "$as_me: failed program was:" >&5
29969 sed 's/^/| /' conftest.$ac_ext >&5
29970
29971
29972         cat >conftest.$ac_ext <<_ACEOF
29973 /* confdefs.h.  */
29974 _ACEOF
29975 cat confdefs.h >>conftest.$ac_ext
29976 cat >>conftest.$ac_ext <<_ACEOF
29977 /* end confdefs.h.  */
29978
29979 #               include <pthread.h>
29980 #               ifdef PTHREAD_CREATE_UNDETACHED
29981                 draft7
29982 #               endif
29983
29984 _ACEOF
29985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29986   $EGREP "draft7" >/dev/null 2>&1; then
29987   ol_cv_pthread_version=7
29988 else
29989
29990         cat >conftest.$ac_ext <<_ACEOF
29991 /* confdefs.h.  */
29992 _ACEOF
29993 cat confdefs.h >>conftest.$ac_ext
29994 cat >>conftest.$ac_ext <<_ACEOF
29995 /* end confdefs.h.  */
29996 #include <pthread.h>
29997
29998 _ACEOF
29999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30000   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30001   ol_cv_pthread_version=6
30002 else
30003
30004         cat >conftest.$ac_ext <<_ACEOF
30005 /* confdefs.h.  */
30006 _ACEOF
30007 cat confdefs.h >>conftest.$ac_ext
30008 cat >>conftest.$ac_ext <<_ACEOF
30009 /* end confdefs.h.  */
30010
30011 #               include <pthread.h>
30012 #ifdef          PTHREAD_MUTEX_INITIALIZER
30013                 draft5
30014 #endif
30015
30016 _ACEOF
30017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30018   $EGREP "draft5" >/dev/null 2>&1; then
30019   ol_cv_pthread_version=5
30020 else
30021   ol_cv_pthread_version=4
30022 fi
30023 rm -f conftest*
30024
30025 fi
30026 rm -f conftest*
30027
30028 fi
30029 rm -f conftest*
30030
30031 fi
30032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30033
30034 fi
30035 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30036 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30037
30038
30039                 if test $ol_cv_pthread_version != 0 ; then
30040
30041 cat >>confdefs.h <<_ACEOF
30042 #define HAVE_PTHREADS $ol_cv_pthread_version
30043 _ACEOF
30044
30045                 else
30046                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30047 echo "$as_me: error: unknown pthread version" >&2;}
30048    { (exit 1); exit 1; }; }
30049                 fi
30050
30051                 # consider threads found
30052                 ol_with_threads=found
30053
30054
30055         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30056 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30057 if test "${ol_cv_header_linux_threads+set}" = set; then
30058   echo $ECHO_N "(cached) $ECHO_C" >&6
30059 else
30060   cat >conftest.$ac_ext <<_ACEOF
30061 /* confdefs.h.  */
30062 _ACEOF
30063 cat confdefs.h >>conftest.$ac_ext
30064 cat >>conftest.$ac_ext <<_ACEOF
30065 /* end confdefs.h.  */
30066 #include <pthread.h>
30067 _ACEOF
30068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30069   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30070   ol_cv_header_linux_threads=yes
30071 else
30072   ol_cv_header_linux_threads=no
30073 fi
30074 rm -f conftest*
30075
30076
30077 fi
30078 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30079 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30080         if test $ol_cv_header_linux_threads = yes; then
30081
30082 cat >>confdefs.h <<\_ACEOF
30083 #define HAVE_LINUX_THREADS 1
30084 _ACEOF
30085
30086         fi
30087
30088
30089         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30090 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30091 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30092   echo $ECHO_N "(cached) $ECHO_C" >&6
30093 else
30094   cat >conftest.$ac_ext <<_ACEOF
30095 /* confdefs.h.  */
30096 _ACEOF
30097 cat confdefs.h >>conftest.$ac_ext
30098 cat >>conftest.$ac_ext <<_ACEOF
30099 /* end confdefs.h.  */
30100 #include <pthread.h>
30101 #ifdef _POSIX_THREAD_IS_GNU_PTH
30102         __gnu_pth__;
30103 #endif
30104
30105 _ACEOF
30106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30107   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30108   ol_cv_header_gnu_pth_pthread_h=yes
30109 else
30110   ol_cv_header_gnu_pth_pthread_h=no
30111 fi
30112 rm -f conftest*
30113
30114
30115 fi
30116 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30117 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30118
30119
30120                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30121
30122 for ac_header in sched.h
30123 do
30124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30126   echo "$as_me:$LINENO: checking for $ac_header" >&5
30127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30129   echo $ECHO_N "(cached) $ECHO_C" >&6
30130 fi
30131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30133 else
30134   # Is the header compilable?
30135 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30137 cat >conftest.$ac_ext <<_ACEOF
30138 /* confdefs.h.  */
30139 _ACEOF
30140 cat confdefs.h >>conftest.$ac_ext
30141 cat >>conftest.$ac_ext <<_ACEOF
30142 /* end confdefs.h.  */
30143 $ac_includes_default
30144 #include <$ac_header>
30145 _ACEOF
30146 rm -f conftest.$ac_objext
30147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30148   (eval $ac_compile) 2>conftest.er1
30149   ac_status=$?
30150   grep -v '^ *+' conftest.er1 >conftest.err
30151   rm -f conftest.er1
30152   cat conftest.err >&5
30153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30154   (exit $ac_status); } &&
30155          { ac_try='test -z "$ac_c_werror_flag"
30156                          || test ! -s conftest.err'
30157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30158   (eval $ac_try) 2>&5
30159   ac_status=$?
30160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161   (exit $ac_status); }; } &&
30162          { ac_try='test -s conftest.$ac_objext'
30163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30164   (eval $ac_try) 2>&5
30165   ac_status=$?
30166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167   (exit $ac_status); }; }; then
30168   ac_header_compiler=yes
30169 else
30170   echo "$as_me: failed program was:" >&5
30171 sed 's/^/| /' conftest.$ac_ext >&5
30172
30173 ac_header_compiler=no
30174 fi
30175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30177 echo "${ECHO_T}$ac_header_compiler" >&6
30178
30179 # Is the header present?
30180 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30182 cat >conftest.$ac_ext <<_ACEOF
30183 /* confdefs.h.  */
30184 _ACEOF
30185 cat confdefs.h >>conftest.$ac_ext
30186 cat >>conftest.$ac_ext <<_ACEOF
30187 /* end confdefs.h.  */
30188 #include <$ac_header>
30189 _ACEOF
30190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30191   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30192   ac_status=$?
30193   grep -v '^ *+' conftest.er1 >conftest.err
30194   rm -f conftest.er1
30195   cat conftest.err >&5
30196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197   (exit $ac_status); } >/dev/null; then
30198   if test -s conftest.err; then
30199     ac_cpp_err=$ac_c_preproc_warn_flag
30200     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30201   else
30202     ac_cpp_err=
30203   fi
30204 else
30205   ac_cpp_err=yes
30206 fi
30207 if test -z "$ac_cpp_err"; then
30208   ac_header_preproc=yes
30209 else
30210   echo "$as_me: failed program was:" >&5
30211 sed 's/^/| /' conftest.$ac_ext >&5
30212
30213   ac_header_preproc=no
30214 fi
30215 rm -f conftest.err conftest.$ac_ext
30216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30217 echo "${ECHO_T}$ac_header_preproc" >&6
30218
30219 # So?  What about this header?
30220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30221   yes:no: )
30222     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30224     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30226     ac_header_preproc=yes
30227     ;;
30228   no:yes:* )
30229     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30231     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30232 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30233     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30235     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30236 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30237     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30239     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30241     (
30242       cat <<\_ASBOX
30243 ## ------------------------------------------ ##
30244 ## Report this to the AC_PACKAGE_NAME lists.  ##
30245 ## ------------------------------------------ ##
30246 _ASBOX
30247     ) |
30248       sed "s/^/$as_me: WARNING:     /" >&2
30249     ;;
30250 esac
30251 echo "$as_me:$LINENO: checking for $ac_header" >&5
30252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30254   echo $ECHO_N "(cached) $ECHO_C" >&6
30255 else
30256   eval "$as_ac_Header=\$ac_header_preproc"
30257 fi
30258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30260
30261 fi
30262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30263   cat >>confdefs.h <<_ACEOF
30264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30265 _ACEOF
30266
30267 fi
30268
30269 done
30270
30271                 fi
30272
30273
30274                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30275 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30276 if test "${ol_cv_pthread_create+set}" = set; then
30277   echo $ECHO_N "(cached) $ECHO_C" >&6
30278 else
30279
30280                 if test "$cross_compiling" = yes; then
30281   _au_changequote(,)cat >conftest.$ac_ext <<_ACEOF
30282 /* confdefs.h.  */
30283 _ACEOF
30284 cat confdefs.h >>conftest.$ac_ext
30285 cat >>conftest.$ac_ext <<_ACEOF
30286 /* end confdefs.h.  */
30287 /* pthread test headers */
30288 #include <pthread.h>
30289 #if HAVE_PTHREADS < 7
30290 #include <errno.h>
30291 #endif
30292 #ifndef NULL
30293 #define NULL (void*)0
30294 #endif
30295
30296 static void *task(p)
30297         void *p;
30298 {
30299         return (void *) (p == NULL);
30300 }
30301
30302 int
30303 main ()
30304 {
30305
30306         /* pthread test function */
30307 #ifndef PTHREAD_CREATE_DETACHED
30308 #define PTHREAD_CREATE_DETACHED 1
30309 #endif
30310         pthread_t t;
30311         int status;
30312         int detach = PTHREAD_CREATE_DETACHED;
30313
30314 #if HAVE_PTHREADS > 4
30315         /* Final pthreads */
30316         pthread_attr_t attr;
30317
30318         status = pthread_attr_init(&attr);
30319         if( status ) return status;
30320
30321 #if HAVE_PTHREADS < 7
30322         status = pthread_attr_setdetachstate(&attr, &detach);
30323         if( status < 0 ) status = errno;
30324 #else
30325         status = pthread_attr_setdetachstate(&attr, detach);
30326 #endif
30327         if( status ) return status;
30328         status = pthread_create( &t, &attr, task, NULL );
30329 #if HAVE_PTHREADS < 7
30330         if( status < 0 ) status = errno;
30331 #endif
30332         if( status ) return status;
30333 #else
30334         /* Draft 4 pthreads */
30335         status = pthread_create( &t, pthread_attr_default, task, NULL );
30336         if( status ) return errno;
30337
30338         /* give thread a chance to complete */
30339         /* it should remain joinable and hence detachable */
30340         sleep( 1 );
30341
30342         status = pthread_detach( &t );
30343         if( status ) return errno;
30344 #endif
30345
30346 #ifdef HAVE_LINUX_THREADS
30347         pthread_kill_other_threads_np();
30348 #endif
30349
30350         return 0;
30351
30352   ;
30353   return 0;
30354 }
30355 _ACEOF
30356 rm -f conftest.$ac_objext conftest$ac_exeext
30357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30358   (eval $ac_link) 2>conftest.er1
30359   ac_status=$?
30360   grep -v '^ *+' conftest.er1 >conftest.err
30361   rm -f conftest.er1
30362   cat conftest.err >&5
30363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364   (exit $ac_status); } &&
30365          { ac_try='test -z "$ac_c_werror_flag"
30366                          || test ! -s conftest.err'
30367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30368   (eval $ac_try) 2>&5
30369   ac_status=$?
30370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371   (exit $ac_status); }; } &&
30372          { ac_try='test -s conftest$ac_exeext'
30373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30374   (eval $ac_try) 2>&5
30375   ac_status=$?
30376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377   (exit $ac_status); }; }; then
30378   ol_cv_pthread_create=yes
30379 else
30380   echo "$as_me: failed program was:" >&5
30381 sed 's/^/| /' conftest.$ac_ext >&5
30382
30383 ol_cv_pthread_create=no
30384 fi
30385 rm -f conftest.err conftest.$ac_objext \
30386       conftest$ac_exeext conftest.$ac_ext
30387 else
30388   cat >conftest.$ac_ext <<_ACEOF
30389 /* confdefs.h.  */
30390 _ACEOF
30391 cat confdefs.h >>conftest.$ac_ext
30392 cat >>conftest.$ac_ext <<_ACEOF
30393 /* end confdefs.h.  */
30394 OL_PTHREAD_TEST_PROGRAM
30395 _ACEOF
30396 rm -f conftest$ac_exeext
30397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30398   (eval $ac_link) 2>&5
30399   ac_status=$?
30400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30403   (eval $ac_try) 2>&5
30404   ac_status=$?
30405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30406   (exit $ac_status); }; }; then
30407   ol_cv_pthread_create=yes
30408 else
30409   echo "$as_me: program exited with status $ac_status" >&5
30410 echo "$as_me: failed program was:" >&5
30411 sed 's/^/| /' conftest.$ac_ext >&5
30412
30413 ( exit $ac_status )
30414 ol_cv_pthread_create=no
30415 fi
30416 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30417 fi
30418 fi
30419 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30420 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30421
30422                 if test $ol_cv_pthread_create != no ; then
30423                         ol_link_threads=posix
30424                         ol_link_pthreads=""
30425                 fi
30426
30427                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30428 if test "$ol_link_threads" = no ; then
30429         # try -kthread
30430         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30431 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30432 if test "${ol_cv_pthread_kthread+set}" = set; then
30433   echo $ECHO_N "(cached) $ECHO_C" >&6
30434 else
30435
30436                 # save the flags
30437                 ol_LIBS="$LIBS"
30438                 LIBS="-kthread $LIBS"
30439
30440                 if test "$cross_compiling" = yes; then
30441   cat >conftest.$ac_ext <<_ACEOF
30442 /* confdefs.h.  */
30443 _ACEOF
30444 cat confdefs.h >>conftest.$ac_ext
30445 cat >>conftest.$ac_ext <<_ACEOF
30446 /* end confdefs.h.  */
30447 /* pthread test headers */
30448 #include <pthread.h>
30449 #if HAVE_PTHREADS < 7
30450 #include <errno.h>
30451 #endif
30452 #ifndef NULL
30453 #define NULL (void*)0
30454 #endif
30455
30456 static void *task(p)
30457         void *p;
30458 {
30459         return (void *) (p == NULL);
30460 }
30461
30462 int
30463 main ()
30464 {
30465
30466         /* pthread test function */
30467 #ifndef PTHREAD_CREATE_DETACHED
30468 #define PTHREAD_CREATE_DETACHED 1
30469 #endif
30470         pthread_t t;
30471         int status;
30472         int detach = PTHREAD_CREATE_DETACHED;
30473
30474 #if HAVE_PTHREADS > 4
30475         /* Final pthreads */
30476         pthread_attr_t attr;
30477
30478         status = pthread_attr_init(&attr);
30479         if( status ) return status;
30480
30481 #if HAVE_PTHREADS < 7
30482         status = pthread_attr_setdetachstate(&attr, &detach);
30483         if( status < 0 ) status = errno;
30484 #else
30485         status = pthread_attr_setdetachstate(&attr, detach);
30486 #endif
30487         if( status ) return status;
30488         status = pthread_create( &t, &attr, task, NULL );
30489 #if HAVE_PTHREADS < 7
30490         if( status < 0 ) status = errno;
30491 #endif
30492         if( status ) return status;
30493 #else
30494         /* Draft 4 pthreads */
30495         status = pthread_create( &t, pthread_attr_default, task, NULL );
30496         if( status ) return errno;
30497
30498         /* give thread a chance to complete */
30499         /* it should remain joinable and hence detachable */
30500         sleep( 1 );
30501
30502         status = pthread_detach( &t );
30503         if( status ) return errno;
30504 #endif
30505
30506 #ifdef HAVE_LINUX_THREADS
30507         pthread_kill_other_threads_np();
30508 #endif
30509
30510         return 0;
30511
30512   ;
30513   return 0;
30514 }
30515 _ACEOF
30516 rm -f conftest.$ac_objext conftest$ac_exeext
30517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30518   (eval $ac_link) 2>conftest.er1
30519   ac_status=$?
30520   grep -v '^ *+' conftest.er1 >conftest.err
30521   rm -f conftest.er1
30522   cat conftest.err >&5
30523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524   (exit $ac_status); } &&
30525          { ac_try='test -z "$ac_c_werror_flag"
30526                          || test ! -s conftest.err'
30527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30528   (eval $ac_try) 2>&5
30529   ac_status=$?
30530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531   (exit $ac_status); }; } &&
30532          { ac_try='test -s conftest$ac_exeext'
30533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30534   (eval $ac_try) 2>&5
30535   ac_status=$?
30536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537   (exit $ac_status); }; }; then
30538   ol_cv_pthread_kthread=yes
30539 else
30540   echo "$as_me: failed program was:" >&5
30541 sed 's/^/| /' conftest.$ac_ext >&5
30542
30543 ol_cv_pthread_kthread=no
30544 fi
30545 rm -f conftest.err conftest.$ac_objext \
30546       conftest$ac_exeext conftest.$ac_ext
30547 else
30548   cat >conftest.$ac_ext <<_ACEOF
30549 /* confdefs.h.  */
30550 _ACEOF
30551 cat confdefs.h >>conftest.$ac_ext
30552 cat >>conftest.$ac_ext <<_ACEOF
30553 /* end confdefs.h.  */
30554 /* pthread test headers */
30555 #include <pthread.h>
30556 #if HAVE_PTHREADS < 7
30557 #include <errno.h>
30558 #endif
30559 #ifndef NULL
30560 #define NULL (void*)0
30561 #endif
30562
30563 static void *task(p)
30564         void *p;
30565 {
30566         return (void *) (p == NULL);
30567 }
30568
30569
30570 int main(argc, argv)
30571         int argc;
30572         char **argv;
30573 {
30574
30575         /* pthread test function */
30576 #ifndef PTHREAD_CREATE_DETACHED
30577 #define PTHREAD_CREATE_DETACHED 1
30578 #endif
30579         pthread_t t;
30580         int status;
30581         int detach = PTHREAD_CREATE_DETACHED;
30582
30583 #if HAVE_PTHREADS > 4
30584         /* Final pthreads */
30585         pthread_attr_t attr;
30586
30587         status = pthread_attr_init(&attr);
30588         if( status ) return status;
30589
30590 #if HAVE_PTHREADS < 7
30591         status = pthread_attr_setdetachstate(&attr, &detach);
30592         if( status < 0 ) status = errno;
30593 #else
30594         status = pthread_attr_setdetachstate(&attr, detach);
30595 #endif
30596         if( status ) return status;
30597         status = pthread_create( &t, &attr, task, NULL );
30598 #if HAVE_PTHREADS < 7
30599         if( status < 0 ) status = errno;
30600 #endif
30601         if( status ) return status;
30602 #else
30603         /* Draft 4 pthreads */
30604         status = pthread_create( &t, pthread_attr_default, task, NULL );
30605         if( status ) return errno;
30606
30607         /* give thread a chance to complete */
30608         /* it should remain joinable and hence detachable */
30609         sleep( 1 );
30610
30611         status = pthread_detach( &t );
30612         if( status ) return errno;
30613 #endif
30614
30615 #ifdef HAVE_LINUX_THREADS
30616         pthread_kill_other_threads_np();
30617 #endif
30618
30619         return 0;
30620
30621 }
30622
30623 _ACEOF
30624 rm -f conftest$ac_exeext
30625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30626   (eval $ac_link) 2>&5
30627   ac_status=$?
30628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30631   (eval $ac_try) 2>&5
30632   ac_status=$?
30633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30634   (exit $ac_status); }; }; then
30635   ol_cv_pthread_kthread=yes
30636 else
30637   echo "$as_me: program exited with status $ac_status" >&5
30638 echo "$as_me: failed program was:" >&5
30639 sed 's/^/| /' conftest.$ac_ext >&5
30640
30641 ( exit $ac_status )
30642 ol_cv_pthread_kthread=no
30643 fi
30644 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30645 fi
30646
30647                 # restore the LIBS
30648                 LIBS="$ol_LIBS"
30649
30650 fi
30651 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
30652 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
30653
30654         if test $ol_cv_pthread_kthread = yes ; then
30655                 ol_link_pthreads="-kthread"
30656                 ol_link_threads=posix
30657         fi
30658 fi
30659
30660                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
30661 if test "$ol_link_threads" = no ; then
30662         # try -pthread
30663         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
30664 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
30665 if test "${ol_cv_pthread_pthread+set}" = set; then
30666   echo $ECHO_N "(cached) $ECHO_C" >&6
30667 else
30668
30669                 # save the flags
30670                 ol_LIBS="$LIBS"
30671                 LIBS="-pthread $LIBS"
30672
30673                 if test "$cross_compiling" = yes; then
30674   cat >conftest.$ac_ext <<_ACEOF
30675 /* confdefs.h.  */
30676 _ACEOF
30677 cat confdefs.h >>conftest.$ac_ext
30678 cat >>conftest.$ac_ext <<_ACEOF
30679 /* end confdefs.h.  */
30680 /* pthread test headers */
30681 #include <pthread.h>
30682 #if HAVE_PTHREADS < 7
30683 #include <errno.h>
30684 #endif
30685 #ifndef NULL
30686 #define NULL (void*)0
30687 #endif
30688
30689 static void *task(p)
30690         void *p;
30691 {
30692         return (void *) (p == NULL);
30693 }
30694
30695 int
30696 main ()
30697 {
30698
30699         /* pthread test function */
30700 #ifndef PTHREAD_CREATE_DETACHED
30701 #define PTHREAD_CREATE_DETACHED 1
30702 #endif
30703         pthread_t t;
30704         int status;
30705         int detach = PTHREAD_CREATE_DETACHED;
30706
30707 #if HAVE_PTHREADS > 4
30708         /* Final pthreads */
30709         pthread_attr_t attr;
30710
30711         status = pthread_attr_init(&attr);
30712         if( status ) return status;
30713
30714 #if HAVE_PTHREADS < 7
30715         status = pthread_attr_setdetachstate(&attr, &detach);
30716         if( status < 0 ) status = errno;
30717 #else
30718         status = pthread_attr_setdetachstate(&attr, detach);
30719 #endif
30720         if( status ) return status;
30721         status = pthread_create( &t, &attr, task, NULL );
30722 #if HAVE_PTHREADS < 7
30723         if( status < 0 ) status = errno;
30724 #endif
30725         if( status ) return status;
30726 #else
30727         /* Draft 4 pthreads */
30728         status = pthread_create( &t, pthread_attr_default, task, NULL );
30729         if( status ) return errno;
30730
30731         /* give thread a chance to complete */
30732         /* it should remain joinable and hence detachable */
30733         sleep( 1 );
30734
30735         status = pthread_detach( &t );
30736         if( status ) return errno;
30737 #endif
30738
30739 #ifdef HAVE_LINUX_THREADS
30740         pthread_kill_other_threads_np();
30741 #endif
30742
30743         return 0;
30744
30745   ;
30746   return 0;
30747 }
30748 _ACEOF
30749 rm -f conftest.$ac_objext conftest$ac_exeext
30750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30751   (eval $ac_link) 2>conftest.er1
30752   ac_status=$?
30753   grep -v '^ *+' conftest.er1 >conftest.err
30754   rm -f conftest.er1
30755   cat conftest.err >&5
30756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757   (exit $ac_status); } &&
30758          { ac_try='test -z "$ac_c_werror_flag"
30759                          || test ! -s conftest.err'
30760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30761   (eval $ac_try) 2>&5
30762   ac_status=$?
30763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764   (exit $ac_status); }; } &&
30765          { ac_try='test -s conftest$ac_exeext'
30766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30767   (eval $ac_try) 2>&5
30768   ac_status=$?
30769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30770   (exit $ac_status); }; }; then
30771   ol_cv_pthread_pthread=yes
30772 else
30773   echo "$as_me: failed program was:" >&5
30774 sed 's/^/| /' conftest.$ac_ext >&5
30775
30776 ol_cv_pthread_pthread=no
30777 fi
30778 rm -f conftest.err conftest.$ac_objext \
30779       conftest$ac_exeext conftest.$ac_ext
30780 else
30781   cat >conftest.$ac_ext <<_ACEOF
30782 /* confdefs.h.  */
30783 _ACEOF
30784 cat confdefs.h >>conftest.$ac_ext
30785 cat >>conftest.$ac_ext <<_ACEOF
30786 /* end confdefs.h.  */
30787 /* pthread test headers */
30788 #include <pthread.h>
30789 #if HAVE_PTHREADS < 7
30790 #include <errno.h>
30791 #endif
30792 #ifndef NULL
30793 #define NULL (void*)0
30794 #endif
30795
30796 static void *task(p)
30797         void *p;
30798 {
30799         return (void *) (p == NULL);
30800 }
30801
30802
30803 int main(argc, argv)
30804         int argc;
30805         char **argv;
30806 {
30807
30808         /* pthread test function */
30809 #ifndef PTHREAD_CREATE_DETACHED
30810 #define PTHREAD_CREATE_DETACHED 1
30811 #endif
30812         pthread_t t;
30813         int status;
30814         int detach = PTHREAD_CREATE_DETACHED;
30815
30816 #if HAVE_PTHREADS > 4
30817         /* Final pthreads */
30818         pthread_attr_t attr;
30819
30820         status = pthread_attr_init(&attr);
30821         if( status ) return status;
30822
30823 #if HAVE_PTHREADS < 7
30824         status = pthread_attr_setdetachstate(&attr, &detach);
30825         if( status < 0 ) status = errno;
30826 #else
30827         status = pthread_attr_setdetachstate(&attr, detach);
30828 #endif
30829         if( status ) return status;
30830         status = pthread_create( &t, &attr, task, NULL );
30831 #if HAVE_PTHREADS < 7
30832         if( status < 0 ) status = errno;
30833 #endif
30834         if( status ) return status;
30835 #else
30836         /* Draft 4 pthreads */
30837         status = pthread_create( &t, pthread_attr_default, task, NULL );
30838         if( status ) return errno;
30839
30840         /* give thread a chance to complete */
30841         /* it should remain joinable and hence detachable */
30842         sleep( 1 );
30843
30844         status = pthread_detach( &t );
30845         if( status ) return errno;
30846 #endif
30847
30848 #ifdef HAVE_LINUX_THREADS
30849         pthread_kill_other_threads_np();
30850 #endif
30851
30852         return 0;
30853
30854 }
30855
30856 _ACEOF
30857 rm -f conftest$ac_exeext
30858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30859   (eval $ac_link) 2>&5
30860   ac_status=$?
30861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30862   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30864   (eval $ac_try) 2>&5
30865   ac_status=$?
30866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30867   (exit $ac_status); }; }; then
30868   ol_cv_pthread_pthread=yes
30869 else
30870   echo "$as_me: program exited with status $ac_status" >&5
30871 echo "$as_me: failed program was:" >&5
30872 sed 's/^/| /' conftest.$ac_ext >&5
30873
30874 ( exit $ac_status )
30875 ol_cv_pthread_pthread=no
30876 fi
30877 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30878 fi
30879
30880                 # restore the LIBS
30881                 LIBS="$ol_LIBS"
30882
30883 fi
30884 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
30885 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
30886
30887         if test $ol_cv_pthread_pthread = yes ; then
30888                 ol_link_pthreads="-pthread"
30889                 ol_link_threads=posix
30890         fi
30891 fi
30892
30893                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
30894 if test "$ol_link_threads" = no ; then
30895         # try -pthreads
30896         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
30897 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
30898 if test "${ol_cv_pthread_pthreads+set}" = set; then
30899   echo $ECHO_N "(cached) $ECHO_C" >&6
30900 else
30901
30902                 # save the flags
30903                 ol_LIBS="$LIBS"
30904                 LIBS="-pthreads $LIBS"
30905
30906                 if test "$cross_compiling" = yes; then
30907   cat >conftest.$ac_ext <<_ACEOF
30908 /* confdefs.h.  */
30909 _ACEOF
30910 cat confdefs.h >>conftest.$ac_ext
30911 cat >>conftest.$ac_ext <<_ACEOF
30912 /* end confdefs.h.  */
30913 /* pthread test headers */
30914 #include <pthread.h>
30915 #if HAVE_PTHREADS < 7
30916 #include <errno.h>
30917 #endif
30918 #ifndef NULL
30919 #define NULL (void*)0
30920 #endif
30921
30922 static void *task(p)
30923         void *p;
30924 {
30925         return (void *) (p == NULL);
30926 }
30927
30928 int
30929 main ()
30930 {
30931
30932         /* pthread test function */
30933 #ifndef PTHREAD_CREATE_DETACHED
30934 #define PTHREAD_CREATE_DETACHED 1
30935 #endif
30936         pthread_t t;
30937         int status;
30938         int detach = PTHREAD_CREATE_DETACHED;
30939
30940 #if HAVE_PTHREADS > 4
30941         /* Final pthreads */
30942         pthread_attr_t attr;
30943
30944         status = pthread_attr_init(&attr);
30945         if( status ) return status;
30946
30947 #if HAVE_PTHREADS < 7
30948         status = pthread_attr_setdetachstate(&attr, &detach);
30949         if( status < 0 ) status = errno;
30950 #else
30951         status = pthread_attr_setdetachstate(&attr, detach);
30952 #endif
30953         if( status ) return status;
30954         status = pthread_create( &t, &attr, task, NULL );
30955 #if HAVE_PTHREADS < 7
30956         if( status < 0 ) status = errno;
30957 #endif
30958         if( status ) return status;
30959 #else
30960         /* Draft 4 pthreads */
30961         status = pthread_create( &t, pthread_attr_default, task, NULL );
30962         if( status ) return errno;
30963
30964         /* give thread a chance to complete */
30965         /* it should remain joinable and hence detachable */
30966         sleep( 1 );
30967
30968         status = pthread_detach( &t );
30969         if( status ) return errno;
30970 #endif
30971
30972 #ifdef HAVE_LINUX_THREADS
30973         pthread_kill_other_threads_np();
30974 #endif
30975
30976         return 0;
30977
30978   ;
30979   return 0;
30980 }
30981 _ACEOF
30982 rm -f conftest.$ac_objext conftest$ac_exeext
30983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30984   (eval $ac_link) 2>conftest.er1
30985   ac_status=$?
30986   grep -v '^ *+' conftest.er1 >conftest.err
30987   rm -f conftest.er1
30988   cat conftest.err >&5
30989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990   (exit $ac_status); } &&
30991          { ac_try='test -z "$ac_c_werror_flag"
30992                          || test ! -s conftest.err'
30993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30994   (eval $ac_try) 2>&5
30995   ac_status=$?
30996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30997   (exit $ac_status); }; } &&
30998          { ac_try='test -s conftest$ac_exeext'
30999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31000   (eval $ac_try) 2>&5
31001   ac_status=$?
31002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003   (exit $ac_status); }; }; then
31004   ol_cv_pthread_pthreads=yes
31005 else
31006   echo "$as_me: failed program was:" >&5
31007 sed 's/^/| /' conftest.$ac_ext >&5
31008
31009 ol_cv_pthread_pthreads=no
31010 fi
31011 rm -f conftest.err conftest.$ac_objext \
31012       conftest$ac_exeext conftest.$ac_ext
31013 else
31014   cat >conftest.$ac_ext <<_ACEOF
31015 /* confdefs.h.  */
31016 _ACEOF
31017 cat confdefs.h >>conftest.$ac_ext
31018 cat >>conftest.$ac_ext <<_ACEOF
31019 /* end confdefs.h.  */
31020 /* pthread test headers */
31021 #include <pthread.h>
31022 #if HAVE_PTHREADS < 7
31023 #include <errno.h>
31024 #endif
31025 #ifndef NULL
31026 #define NULL (void*)0
31027 #endif
31028
31029 static void *task(p)
31030         void *p;
31031 {
31032         return (void *) (p == NULL);
31033 }
31034
31035
31036 int main(argc, argv)
31037         int argc;
31038         char **argv;
31039 {
31040
31041         /* pthread test function */
31042 #ifndef PTHREAD_CREATE_DETACHED
31043 #define PTHREAD_CREATE_DETACHED 1
31044 #endif
31045         pthread_t t;
31046         int status;
31047         int detach = PTHREAD_CREATE_DETACHED;
31048
31049 #if HAVE_PTHREADS > 4
31050         /* Final pthreads */
31051         pthread_attr_t attr;
31052
31053         status = pthread_attr_init(&attr);
31054         if( status ) return status;
31055
31056 #if HAVE_PTHREADS < 7
31057         status = pthread_attr_setdetachstate(&attr, &detach);
31058         if( status < 0 ) status = errno;
31059 #else
31060         status = pthread_attr_setdetachstate(&attr, detach);
31061 #endif
31062         if( status ) return status;
31063         status = pthread_create( &t, &attr, task, NULL );
31064 #if HAVE_PTHREADS < 7
31065         if( status < 0 ) status = errno;
31066 #endif
31067         if( status ) return status;
31068 #else
31069         /* Draft 4 pthreads */
31070         status = pthread_create( &t, pthread_attr_default, task, NULL );
31071         if( status ) return errno;
31072
31073         /* give thread a chance to complete */
31074         /* it should remain joinable and hence detachable */
31075         sleep( 1 );
31076
31077         status = pthread_detach( &t );
31078         if( status ) return errno;
31079 #endif
31080
31081 #ifdef HAVE_LINUX_THREADS
31082         pthread_kill_other_threads_np();
31083 #endif
31084
31085         return 0;
31086
31087 }
31088
31089 _ACEOF
31090 rm -f conftest$ac_exeext
31091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31092   (eval $ac_link) 2>&5
31093   ac_status=$?
31094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31097   (eval $ac_try) 2>&5
31098   ac_status=$?
31099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31100   (exit $ac_status); }; }; then
31101   ol_cv_pthread_pthreads=yes
31102 else
31103   echo "$as_me: program exited with status $ac_status" >&5
31104 echo "$as_me: failed program was:" >&5
31105 sed 's/^/| /' conftest.$ac_ext >&5
31106
31107 ( exit $ac_status )
31108 ol_cv_pthread_pthreads=no
31109 fi
31110 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31111 fi
31112
31113                 # restore the LIBS
31114                 LIBS="$ol_LIBS"
31115
31116 fi
31117 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31118 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31119
31120         if test $ol_cv_pthread_pthreads = yes ; then
31121                 ol_link_pthreads="-pthreads"
31122                 ol_link_threads=posix
31123         fi
31124 fi
31125
31126                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31127 if test "$ol_link_threads" = no ; then
31128         # try -mthreads
31129         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31130 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31131 if test "${ol_cv_pthread_mthreads+set}" = set; then
31132   echo $ECHO_N "(cached) $ECHO_C" >&6
31133 else
31134
31135                 # save the flags
31136                 ol_LIBS="$LIBS"
31137                 LIBS="-mthreads $LIBS"
31138
31139                 if test "$cross_compiling" = yes; then
31140   cat >conftest.$ac_ext <<_ACEOF
31141 /* confdefs.h.  */
31142 _ACEOF
31143 cat confdefs.h >>conftest.$ac_ext
31144 cat >>conftest.$ac_ext <<_ACEOF
31145 /* end confdefs.h.  */
31146 /* pthread test headers */
31147 #include <pthread.h>
31148 #if HAVE_PTHREADS < 7
31149 #include <errno.h>
31150 #endif
31151 #ifndef NULL
31152 #define NULL (void*)0
31153 #endif
31154
31155 static void *task(p)
31156         void *p;
31157 {
31158         return (void *) (p == NULL);
31159 }
31160
31161 int
31162 main ()
31163 {
31164
31165         /* pthread test function */
31166 #ifndef PTHREAD_CREATE_DETACHED
31167 #define PTHREAD_CREATE_DETACHED 1
31168 #endif
31169         pthread_t t;
31170         int status;
31171         int detach = PTHREAD_CREATE_DETACHED;
31172
31173 #if HAVE_PTHREADS > 4
31174         /* Final pthreads */
31175         pthread_attr_t attr;
31176
31177         status = pthread_attr_init(&attr);
31178         if( status ) return status;
31179
31180 #if HAVE_PTHREADS < 7
31181         status = pthread_attr_setdetachstate(&attr, &detach);
31182         if( status < 0 ) status = errno;
31183 #else
31184         status = pthread_attr_setdetachstate(&attr, detach);
31185 #endif
31186         if( status ) return status;
31187         status = pthread_create( &t, &attr, task, NULL );
31188 #if HAVE_PTHREADS < 7
31189         if( status < 0 ) status = errno;
31190 #endif
31191         if( status ) return status;
31192 #else
31193         /* Draft 4 pthreads */
31194         status = pthread_create( &t, pthread_attr_default, task, NULL );
31195         if( status ) return errno;
31196
31197         /* give thread a chance to complete */
31198         /* it should remain joinable and hence detachable */
31199         sleep( 1 );
31200
31201         status = pthread_detach( &t );
31202         if( status ) return errno;
31203 #endif
31204
31205 #ifdef HAVE_LINUX_THREADS
31206         pthread_kill_other_threads_np();
31207 #endif
31208
31209         return 0;
31210
31211   ;
31212   return 0;
31213 }
31214 _ACEOF
31215 rm -f conftest.$ac_objext conftest$ac_exeext
31216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31217   (eval $ac_link) 2>conftest.er1
31218   ac_status=$?
31219   grep -v '^ *+' conftest.er1 >conftest.err
31220   rm -f conftest.er1
31221   cat conftest.err >&5
31222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223   (exit $ac_status); } &&
31224          { ac_try='test -z "$ac_c_werror_flag"
31225                          || test ! -s conftest.err'
31226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31227   (eval $ac_try) 2>&5
31228   ac_status=$?
31229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230   (exit $ac_status); }; } &&
31231          { ac_try='test -s conftest$ac_exeext'
31232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31233   (eval $ac_try) 2>&5
31234   ac_status=$?
31235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236   (exit $ac_status); }; }; then
31237   ol_cv_pthread_mthreads=yes
31238 else
31239   echo "$as_me: failed program was:" >&5
31240 sed 's/^/| /' conftest.$ac_ext >&5
31241
31242 ol_cv_pthread_mthreads=no
31243 fi
31244 rm -f conftest.err conftest.$ac_objext \
31245       conftest$ac_exeext conftest.$ac_ext
31246 else
31247   cat >conftest.$ac_ext <<_ACEOF
31248 /* confdefs.h.  */
31249 _ACEOF
31250 cat confdefs.h >>conftest.$ac_ext
31251 cat >>conftest.$ac_ext <<_ACEOF
31252 /* end confdefs.h.  */
31253 /* pthread test headers */
31254 #include <pthread.h>
31255 #if HAVE_PTHREADS < 7
31256 #include <errno.h>
31257 #endif
31258 #ifndef NULL
31259 #define NULL (void*)0
31260 #endif
31261
31262 static void *task(p)
31263         void *p;
31264 {
31265         return (void *) (p == NULL);
31266 }
31267
31268
31269 int main(argc, argv)
31270         int argc;
31271         char **argv;
31272 {
31273
31274         /* pthread test function */
31275 #ifndef PTHREAD_CREATE_DETACHED
31276 #define PTHREAD_CREATE_DETACHED 1
31277 #endif
31278         pthread_t t;
31279         int status;
31280         int detach = PTHREAD_CREATE_DETACHED;
31281
31282 #if HAVE_PTHREADS > 4
31283         /* Final pthreads */
31284         pthread_attr_t attr;
31285
31286         status = pthread_attr_init(&attr);
31287         if( status ) return status;
31288
31289 #if HAVE_PTHREADS < 7
31290         status = pthread_attr_setdetachstate(&attr, &detach);
31291         if( status < 0 ) status = errno;
31292 #else
31293         status = pthread_attr_setdetachstate(&attr, detach);
31294 #endif
31295         if( status ) return status;
31296         status = pthread_create( &t, &attr, task, NULL );
31297 #if HAVE_PTHREADS < 7
31298         if( status < 0 ) status = errno;
31299 #endif
31300         if( status ) return status;
31301 #else
31302         /* Draft 4 pthreads */
31303         status = pthread_create( &t, pthread_attr_default, task, NULL );
31304         if( status ) return errno;
31305
31306         /* give thread a chance to complete */
31307         /* it should remain joinable and hence detachable */
31308         sleep( 1 );
31309
31310         status = pthread_detach( &t );
31311         if( status ) return errno;
31312 #endif
31313
31314 #ifdef HAVE_LINUX_THREADS
31315         pthread_kill_other_threads_np();
31316 #endif
31317
31318         return 0;
31319
31320 }
31321
31322 _ACEOF
31323 rm -f conftest$ac_exeext
31324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31325   (eval $ac_link) 2>&5
31326   ac_status=$?
31327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31330   (eval $ac_try) 2>&5
31331   ac_status=$?
31332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333   (exit $ac_status); }; }; then
31334   ol_cv_pthread_mthreads=yes
31335 else
31336   echo "$as_me: program exited with status $ac_status" >&5
31337 echo "$as_me: failed program was:" >&5
31338 sed 's/^/| /' conftest.$ac_ext >&5
31339
31340 ( exit $ac_status )
31341 ol_cv_pthread_mthreads=no
31342 fi
31343 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31344 fi
31345
31346                 # restore the LIBS
31347                 LIBS="$ol_LIBS"
31348
31349 fi
31350 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31351 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31352
31353         if test $ol_cv_pthread_mthreads = yes ; then
31354                 ol_link_pthreads="-mthreads"
31355                 ol_link_threads=posix
31356         fi
31357 fi
31358
31359                 # Pthread try link: -thread (ol_cv_pthread_thread)
31360 if test "$ol_link_threads" = no ; then
31361         # try -thread
31362         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31363 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31364 if test "${ol_cv_pthread_thread+set}" = set; then
31365   echo $ECHO_N "(cached) $ECHO_C" >&6
31366 else
31367
31368                 # save the flags
31369                 ol_LIBS="$LIBS"
31370                 LIBS="-thread $LIBS"
31371
31372                 if test "$cross_compiling" = yes; then
31373   cat >conftest.$ac_ext <<_ACEOF
31374 /* confdefs.h.  */
31375 _ACEOF
31376 cat confdefs.h >>conftest.$ac_ext
31377 cat >>conftest.$ac_ext <<_ACEOF
31378 /* end confdefs.h.  */
31379 /* pthread test headers */
31380 #include <pthread.h>
31381 #if HAVE_PTHREADS < 7
31382 #include <errno.h>
31383 #endif
31384 #ifndef NULL
31385 #define NULL (void*)0
31386 #endif
31387
31388 static void *task(p)
31389         void *p;
31390 {
31391         return (void *) (p == NULL);
31392 }
31393
31394 int
31395 main ()
31396 {
31397
31398         /* pthread test function */
31399 #ifndef PTHREAD_CREATE_DETACHED
31400 #define PTHREAD_CREATE_DETACHED 1
31401 #endif
31402         pthread_t t;
31403         int status;
31404         int detach = PTHREAD_CREATE_DETACHED;
31405
31406 #if HAVE_PTHREADS > 4
31407         /* Final pthreads */
31408         pthread_attr_t attr;
31409
31410         status = pthread_attr_init(&attr);
31411         if( status ) return status;
31412
31413 #if HAVE_PTHREADS < 7
31414         status = pthread_attr_setdetachstate(&attr, &detach);
31415         if( status < 0 ) status = errno;
31416 #else
31417         status = pthread_attr_setdetachstate(&attr, detach);
31418 #endif
31419         if( status ) return status;
31420         status = pthread_create( &t, &attr, task, NULL );
31421 #if HAVE_PTHREADS < 7
31422         if( status < 0 ) status = errno;
31423 #endif
31424         if( status ) return status;
31425 #else
31426         /* Draft 4 pthreads */
31427         status = pthread_create( &t, pthread_attr_default, task, NULL );
31428         if( status ) return errno;
31429
31430         /* give thread a chance to complete */
31431         /* it should remain joinable and hence detachable */
31432         sleep( 1 );
31433
31434         status = pthread_detach( &t );
31435         if( status ) return errno;
31436 #endif
31437
31438 #ifdef HAVE_LINUX_THREADS
31439         pthread_kill_other_threads_np();
31440 #endif
31441
31442         return 0;
31443
31444   ;
31445   return 0;
31446 }
31447 _ACEOF
31448 rm -f conftest.$ac_objext conftest$ac_exeext
31449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31450   (eval $ac_link) 2>conftest.er1
31451   ac_status=$?
31452   grep -v '^ *+' conftest.er1 >conftest.err
31453   rm -f conftest.er1
31454   cat conftest.err >&5
31455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456   (exit $ac_status); } &&
31457          { ac_try='test -z "$ac_c_werror_flag"
31458                          || test ! -s conftest.err'
31459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31460   (eval $ac_try) 2>&5
31461   ac_status=$?
31462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463   (exit $ac_status); }; } &&
31464          { ac_try='test -s conftest$ac_exeext'
31465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31466   (eval $ac_try) 2>&5
31467   ac_status=$?
31468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31469   (exit $ac_status); }; }; then
31470   ol_cv_pthread_thread=yes
31471 else
31472   echo "$as_me: failed program was:" >&5
31473 sed 's/^/| /' conftest.$ac_ext >&5
31474
31475 ol_cv_pthread_thread=no
31476 fi
31477 rm -f conftest.err conftest.$ac_objext \
31478       conftest$ac_exeext conftest.$ac_ext
31479 else
31480   cat >conftest.$ac_ext <<_ACEOF
31481 /* confdefs.h.  */
31482 _ACEOF
31483 cat confdefs.h >>conftest.$ac_ext
31484 cat >>conftest.$ac_ext <<_ACEOF
31485 /* end confdefs.h.  */
31486 /* pthread test headers */
31487 #include <pthread.h>
31488 #if HAVE_PTHREADS < 7
31489 #include <errno.h>
31490 #endif
31491 #ifndef NULL
31492 #define NULL (void*)0
31493 #endif
31494
31495 static void *task(p)
31496         void *p;
31497 {
31498         return (void *) (p == NULL);
31499 }
31500
31501
31502 int main(argc, argv)
31503         int argc;
31504         char **argv;
31505 {
31506
31507         /* pthread test function */
31508 #ifndef PTHREAD_CREATE_DETACHED
31509 #define PTHREAD_CREATE_DETACHED 1
31510 #endif
31511         pthread_t t;
31512         int status;
31513         int detach = PTHREAD_CREATE_DETACHED;
31514
31515 #if HAVE_PTHREADS > 4
31516         /* Final pthreads */
31517         pthread_attr_t attr;
31518
31519         status = pthread_attr_init(&attr);
31520         if( status ) return status;
31521
31522 #if HAVE_PTHREADS < 7
31523         status = pthread_attr_setdetachstate(&attr, &detach);
31524         if( status < 0 ) status = errno;
31525 #else
31526         status = pthread_attr_setdetachstate(&attr, detach);
31527 #endif
31528         if( status ) return status;
31529         status = pthread_create( &t, &attr, task, NULL );
31530 #if HAVE_PTHREADS < 7
31531         if( status < 0 ) status = errno;
31532 #endif
31533         if( status ) return status;
31534 #else
31535         /* Draft 4 pthreads */
31536         status = pthread_create( &t, pthread_attr_default, task, NULL );
31537         if( status ) return errno;
31538
31539         /* give thread a chance to complete */
31540         /* it should remain joinable and hence detachable */
31541         sleep( 1 );
31542
31543         status = pthread_detach( &t );
31544         if( status ) return errno;
31545 #endif
31546
31547 #ifdef HAVE_LINUX_THREADS
31548         pthread_kill_other_threads_np();
31549 #endif
31550
31551         return 0;
31552
31553 }
31554
31555 _ACEOF
31556 rm -f conftest$ac_exeext
31557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31558   (eval $ac_link) 2>&5
31559   ac_status=$?
31560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31561   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31563   (eval $ac_try) 2>&5
31564   ac_status=$?
31565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31566   (exit $ac_status); }; }; then
31567   ol_cv_pthread_thread=yes
31568 else
31569   echo "$as_me: program exited with status $ac_status" >&5
31570 echo "$as_me: failed program was:" >&5
31571 sed 's/^/| /' conftest.$ac_ext >&5
31572
31573 ( exit $ac_status )
31574 ol_cv_pthread_thread=no
31575 fi
31576 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31577 fi
31578
31579                 # restore the LIBS
31580                 LIBS="$ol_LIBS"
31581
31582 fi
31583 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31584 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31585
31586         if test $ol_cv_pthread_thread = yes ; then
31587                 ol_link_pthreads="-thread"
31588                 ol_link_threads=posix
31589         fi
31590 fi
31591
31592
31593                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
31594 if test "$ol_link_threads" = no ; then
31595         # try -lpthread -lmach -lexc -lc_r
31596         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
31597 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
31598 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
31599   echo $ECHO_N "(cached) $ECHO_C" >&6
31600 else
31601
31602                 # save the flags
31603                 ol_LIBS="$LIBS"
31604                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
31605
31606                 if test "$cross_compiling" = yes; then
31607   cat >conftest.$ac_ext <<_ACEOF
31608 /* confdefs.h.  */
31609 _ACEOF
31610 cat confdefs.h >>conftest.$ac_ext
31611 cat >>conftest.$ac_ext <<_ACEOF
31612 /* end confdefs.h.  */
31613 /* pthread test headers */
31614 #include <pthread.h>
31615 #if HAVE_PTHREADS < 7
31616 #include <errno.h>
31617 #endif
31618 #ifndef NULL
31619 #define NULL (void*)0
31620 #endif
31621
31622 static void *task(p)
31623         void *p;
31624 {
31625         return (void *) (p == NULL);
31626 }
31627
31628 int
31629 main ()
31630 {
31631
31632         /* pthread test function */
31633 #ifndef PTHREAD_CREATE_DETACHED
31634 #define PTHREAD_CREATE_DETACHED 1
31635 #endif
31636         pthread_t t;
31637         int status;
31638         int detach = PTHREAD_CREATE_DETACHED;
31639
31640 #if HAVE_PTHREADS > 4
31641         /* Final pthreads */
31642         pthread_attr_t attr;
31643
31644         status = pthread_attr_init(&attr);
31645         if( status ) return status;
31646
31647 #if HAVE_PTHREADS < 7
31648         status = pthread_attr_setdetachstate(&attr, &detach);
31649         if( status < 0 ) status = errno;
31650 #else
31651         status = pthread_attr_setdetachstate(&attr, detach);
31652 #endif
31653         if( status ) return status;
31654         status = pthread_create( &t, &attr, task, NULL );
31655 #if HAVE_PTHREADS < 7
31656         if( status < 0 ) status = errno;
31657 #endif
31658         if( status ) return status;
31659 #else
31660         /* Draft 4 pthreads */
31661         status = pthread_create( &t, pthread_attr_default, task, NULL );
31662         if( status ) return errno;
31663
31664         /* give thread a chance to complete */
31665         /* it should remain joinable and hence detachable */
31666         sleep( 1 );
31667
31668         status = pthread_detach( &t );
31669         if( status ) return errno;
31670 #endif
31671
31672 #ifdef HAVE_LINUX_THREADS
31673         pthread_kill_other_threads_np();
31674 #endif
31675
31676         return 0;
31677
31678   ;
31679   return 0;
31680 }
31681 _ACEOF
31682 rm -f conftest.$ac_objext conftest$ac_exeext
31683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31684   (eval $ac_link) 2>conftest.er1
31685   ac_status=$?
31686   grep -v '^ *+' conftest.er1 >conftest.err
31687   rm -f conftest.er1
31688   cat conftest.err >&5
31689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690   (exit $ac_status); } &&
31691          { ac_try='test -z "$ac_c_werror_flag"
31692                          || test ! -s conftest.err'
31693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31694   (eval $ac_try) 2>&5
31695   ac_status=$?
31696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31697   (exit $ac_status); }; } &&
31698          { ac_try='test -s conftest$ac_exeext'
31699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31700   (eval $ac_try) 2>&5
31701   ac_status=$?
31702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31703   (exit $ac_status); }; }; then
31704   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31705 else
31706   echo "$as_me: failed program was:" >&5
31707 sed 's/^/| /' conftest.$ac_ext >&5
31708
31709 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31710 fi
31711 rm -f conftest.err conftest.$ac_objext \
31712       conftest$ac_exeext conftest.$ac_ext
31713 else
31714   cat >conftest.$ac_ext <<_ACEOF
31715 /* confdefs.h.  */
31716 _ACEOF
31717 cat confdefs.h >>conftest.$ac_ext
31718 cat >>conftest.$ac_ext <<_ACEOF
31719 /* end confdefs.h.  */
31720 /* pthread test headers */
31721 #include <pthread.h>
31722 #if HAVE_PTHREADS < 7
31723 #include <errno.h>
31724 #endif
31725 #ifndef NULL
31726 #define NULL (void*)0
31727 #endif
31728
31729 static void *task(p)
31730         void *p;
31731 {
31732         return (void *) (p == NULL);
31733 }
31734
31735
31736 int main(argc, argv)
31737         int argc;
31738         char **argv;
31739 {
31740
31741         /* pthread test function */
31742 #ifndef PTHREAD_CREATE_DETACHED
31743 #define PTHREAD_CREATE_DETACHED 1
31744 #endif
31745         pthread_t t;
31746         int status;
31747         int detach = PTHREAD_CREATE_DETACHED;
31748
31749 #if HAVE_PTHREADS > 4
31750         /* Final pthreads */
31751         pthread_attr_t attr;
31752
31753         status = pthread_attr_init(&attr);
31754         if( status ) return status;
31755
31756 #if HAVE_PTHREADS < 7
31757         status = pthread_attr_setdetachstate(&attr, &detach);
31758         if( status < 0 ) status = errno;
31759 #else
31760         status = pthread_attr_setdetachstate(&attr, detach);
31761 #endif
31762         if( status ) return status;
31763         status = pthread_create( &t, &attr, task, NULL );
31764 #if HAVE_PTHREADS < 7
31765         if( status < 0 ) status = errno;
31766 #endif
31767         if( status ) return status;
31768 #else
31769         /* Draft 4 pthreads */
31770         status = pthread_create( &t, pthread_attr_default, task, NULL );
31771         if( status ) return errno;
31772
31773         /* give thread a chance to complete */
31774         /* it should remain joinable and hence detachable */
31775         sleep( 1 );
31776
31777         status = pthread_detach( &t );
31778         if( status ) return errno;
31779 #endif
31780
31781 #ifdef HAVE_LINUX_THREADS
31782         pthread_kill_other_threads_np();
31783 #endif
31784
31785         return 0;
31786
31787 }
31788
31789 _ACEOF
31790 rm -f conftest$ac_exeext
31791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31792   (eval $ac_link) 2>&5
31793   ac_status=$?
31794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31797   (eval $ac_try) 2>&5
31798   ac_status=$?
31799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31800   (exit $ac_status); }; }; then
31801   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31802 else
31803   echo "$as_me: program exited with status $ac_status" >&5
31804 echo "$as_me: failed program was:" >&5
31805 sed 's/^/| /' conftest.$ac_ext >&5
31806
31807 ( exit $ac_status )
31808 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31809 fi
31810 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31811 fi
31812
31813                 # restore the LIBS
31814                 LIBS="$ol_LIBS"
31815
31816 fi
31817 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
31818 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
31819
31820         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
31821                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
31822                 ol_link_threads=posix
31823         fi
31824 fi
31825
31826                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
31827 if test "$ol_link_threads" = no ; then
31828         # try -lpthread -lmach -lexc
31829         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
31830 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
31831 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
31832   echo $ECHO_N "(cached) $ECHO_C" >&6
31833 else
31834
31835                 # save the flags
31836                 ol_LIBS="$LIBS"
31837                 LIBS="-lpthread -lmach -lexc $LIBS"
31838
31839                 if test "$cross_compiling" = yes; then
31840   cat >conftest.$ac_ext <<_ACEOF
31841 /* confdefs.h.  */
31842 _ACEOF
31843 cat confdefs.h >>conftest.$ac_ext
31844 cat >>conftest.$ac_ext <<_ACEOF
31845 /* end confdefs.h.  */
31846 /* pthread test headers */
31847 #include <pthread.h>
31848 #if HAVE_PTHREADS < 7
31849 #include <errno.h>
31850 #endif
31851 #ifndef NULL
31852 #define NULL (void*)0
31853 #endif
31854
31855 static void *task(p)
31856         void *p;
31857 {
31858         return (void *) (p == NULL);
31859 }
31860
31861 int
31862 main ()
31863 {
31864
31865         /* pthread test function */
31866 #ifndef PTHREAD_CREATE_DETACHED
31867 #define PTHREAD_CREATE_DETACHED 1
31868 #endif
31869         pthread_t t;
31870         int status;
31871         int detach = PTHREAD_CREATE_DETACHED;
31872
31873 #if HAVE_PTHREADS > 4
31874         /* Final pthreads */
31875         pthread_attr_t attr;
31876
31877         status = pthread_attr_init(&attr);
31878         if( status ) return status;
31879
31880 #if HAVE_PTHREADS < 7
31881         status = pthread_attr_setdetachstate(&attr, &detach);
31882         if( status < 0 ) status = errno;
31883 #else
31884         status = pthread_attr_setdetachstate(&attr, detach);
31885 #endif
31886         if( status ) return status;
31887         status = pthread_create( &t, &attr, task, NULL );
31888 #if HAVE_PTHREADS < 7
31889         if( status < 0 ) status = errno;
31890 #endif
31891         if( status ) return status;
31892 #else
31893         /* Draft 4 pthreads */
31894         status = pthread_create( &t, pthread_attr_default, task, NULL );
31895         if( status ) return errno;
31896
31897         /* give thread a chance to complete */
31898         /* it should remain joinable and hence detachable */
31899         sleep( 1 );
31900
31901         status = pthread_detach( &t );
31902         if( status ) return errno;
31903 #endif
31904
31905 #ifdef HAVE_LINUX_THREADS
31906         pthread_kill_other_threads_np();
31907 #endif
31908
31909         return 0;
31910
31911   ;
31912   return 0;
31913 }
31914 _ACEOF
31915 rm -f conftest.$ac_objext conftest$ac_exeext
31916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31917   (eval $ac_link) 2>conftest.er1
31918   ac_status=$?
31919   grep -v '^ *+' conftest.er1 >conftest.err
31920   rm -f conftest.er1
31921   cat conftest.err >&5
31922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31923   (exit $ac_status); } &&
31924          { ac_try='test -z "$ac_c_werror_flag"
31925                          || test ! -s conftest.err'
31926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31927   (eval $ac_try) 2>&5
31928   ac_status=$?
31929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930   (exit $ac_status); }; } &&
31931          { ac_try='test -s conftest$ac_exeext'
31932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31933   (eval $ac_try) 2>&5
31934   ac_status=$?
31935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936   (exit $ac_status); }; }; then
31937   ol_cv_pthread_lpthread_lmach_lexc=yes
31938 else
31939   echo "$as_me: failed program was:" >&5
31940 sed 's/^/| /' conftest.$ac_ext >&5
31941
31942 ol_cv_pthread_lpthread_lmach_lexc=no
31943 fi
31944 rm -f conftest.err conftest.$ac_objext \
31945       conftest$ac_exeext conftest.$ac_ext
31946 else
31947   cat >conftest.$ac_ext <<_ACEOF
31948 /* confdefs.h.  */
31949 _ACEOF
31950 cat confdefs.h >>conftest.$ac_ext
31951 cat >>conftest.$ac_ext <<_ACEOF
31952 /* end confdefs.h.  */
31953 /* pthread test headers */
31954 #include <pthread.h>
31955 #if HAVE_PTHREADS < 7
31956 #include <errno.h>
31957 #endif
31958 #ifndef NULL
31959 #define NULL (void*)0
31960 #endif
31961
31962 static void *task(p)
31963         void *p;
31964 {
31965         return (void *) (p == NULL);
31966 }
31967
31968
31969 int main(argc, argv)
31970         int argc;
31971         char **argv;
31972 {
31973
31974         /* pthread test function */
31975 #ifndef PTHREAD_CREATE_DETACHED
31976 #define PTHREAD_CREATE_DETACHED 1
31977 #endif
31978         pthread_t t;
31979         int status;
31980         int detach = PTHREAD_CREATE_DETACHED;
31981
31982 #if HAVE_PTHREADS > 4
31983         /* Final pthreads */
31984         pthread_attr_t attr;
31985
31986         status = pthread_attr_init(&attr);
31987         if( status ) return status;
31988
31989 #if HAVE_PTHREADS < 7
31990         status = pthread_attr_setdetachstate(&attr, &detach);
31991         if( status < 0 ) status = errno;
31992 #else
31993         status = pthread_attr_setdetachstate(&attr, detach);
31994 #endif
31995         if( status ) return status;
31996         status = pthread_create( &t, &attr, task, NULL );
31997 #if HAVE_PTHREADS < 7
31998         if( status < 0 ) status = errno;
31999 #endif
32000         if( status ) return status;
32001 #else
32002         /* Draft 4 pthreads */
32003         status = pthread_create( &t, pthread_attr_default, task, NULL );
32004         if( status ) return errno;
32005
32006         /* give thread a chance to complete */
32007         /* it should remain joinable and hence detachable */
32008         sleep( 1 );
32009
32010         status = pthread_detach( &t );
32011         if( status ) return errno;
32012 #endif
32013
32014 #ifdef HAVE_LINUX_THREADS
32015         pthread_kill_other_threads_np();
32016 #endif
32017
32018         return 0;
32019
32020 }
32021
32022 _ACEOF
32023 rm -f conftest$ac_exeext
32024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32025   (eval $ac_link) 2>&5
32026   ac_status=$?
32027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32030   (eval $ac_try) 2>&5
32031   ac_status=$?
32032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033   (exit $ac_status); }; }; then
32034   ol_cv_pthread_lpthread_lmach_lexc=yes
32035 else
32036   echo "$as_me: program exited with status $ac_status" >&5
32037 echo "$as_me: failed program was:" >&5
32038 sed 's/^/| /' conftest.$ac_ext >&5
32039
32040 ( exit $ac_status )
32041 ol_cv_pthread_lpthread_lmach_lexc=no
32042 fi
32043 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32044 fi
32045
32046                 # restore the LIBS
32047                 LIBS="$ol_LIBS"
32048
32049 fi
32050 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32051 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32052
32053         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32054                 ol_link_pthreads="-lpthread -lmach -lexc"
32055                 ol_link_threads=posix
32056         fi
32057 fi
32058
32059
32060                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32061 if test "$ol_link_threads" = no ; then
32062         # try -lpthread -Wl,-woff,85
32063         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32064 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32065 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32066   echo $ECHO_N "(cached) $ECHO_C" >&6
32067 else
32068
32069                 # save the flags
32070                 ol_LIBS="$LIBS"
32071                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32072
32073                 if test "$cross_compiling" = yes; then
32074   cat >conftest.$ac_ext <<_ACEOF
32075 /* confdefs.h.  */
32076 _ACEOF
32077 cat confdefs.h >>conftest.$ac_ext
32078 cat >>conftest.$ac_ext <<_ACEOF
32079 /* end confdefs.h.  */
32080 /* pthread test headers */
32081 #include <pthread.h>
32082 #if HAVE_PTHREADS < 7
32083 #include <errno.h>
32084 #endif
32085 #ifndef NULL
32086 #define NULL (void*)0
32087 #endif
32088
32089 static void *task(p)
32090         void *p;
32091 {
32092         return (void *) (p == NULL);
32093 }
32094
32095 int
32096 main ()
32097 {
32098
32099         /* pthread test function */
32100 #ifndef PTHREAD_CREATE_DETACHED
32101 #define PTHREAD_CREATE_DETACHED 1
32102 #endif
32103         pthread_t t;
32104         int status;
32105         int detach = PTHREAD_CREATE_DETACHED;
32106
32107 #if HAVE_PTHREADS > 4
32108         /* Final pthreads */
32109         pthread_attr_t attr;
32110
32111         status = pthread_attr_init(&attr);
32112         if( status ) return status;
32113
32114 #if HAVE_PTHREADS < 7
32115         status = pthread_attr_setdetachstate(&attr, &detach);
32116         if( status < 0 ) status = errno;
32117 #else
32118         status = pthread_attr_setdetachstate(&attr, detach);
32119 #endif
32120         if( status ) return status;
32121         status = pthread_create( &t, &attr, task, NULL );
32122 #if HAVE_PTHREADS < 7
32123         if( status < 0 ) status = errno;
32124 #endif
32125         if( status ) return status;
32126 #else
32127         /* Draft 4 pthreads */
32128         status = pthread_create( &t, pthread_attr_default, task, NULL );
32129         if( status ) return errno;
32130
32131         /* give thread a chance to complete */
32132         /* it should remain joinable and hence detachable */
32133         sleep( 1 );
32134
32135         status = pthread_detach( &t );
32136         if( status ) return errno;
32137 #endif
32138
32139 #ifdef HAVE_LINUX_THREADS
32140         pthread_kill_other_threads_np();
32141 #endif
32142
32143         return 0;
32144
32145   ;
32146   return 0;
32147 }
32148 _ACEOF
32149 rm -f conftest.$ac_objext conftest$ac_exeext
32150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32151   (eval $ac_link) 2>conftest.er1
32152   ac_status=$?
32153   grep -v '^ *+' conftest.er1 >conftest.err
32154   rm -f conftest.er1
32155   cat conftest.err >&5
32156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157   (exit $ac_status); } &&
32158          { ac_try='test -z "$ac_c_werror_flag"
32159                          || test ! -s conftest.err'
32160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32161   (eval $ac_try) 2>&5
32162   ac_status=$?
32163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32164   (exit $ac_status); }; } &&
32165          { ac_try='test -s conftest$ac_exeext'
32166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32167   (eval $ac_try) 2>&5
32168   ac_status=$?
32169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170   (exit $ac_status); }; }; then
32171   ol_cv_pthread_lib_lpthread_woff=yes
32172 else
32173   echo "$as_me: failed program was:" >&5
32174 sed 's/^/| /' conftest.$ac_ext >&5
32175
32176 ol_cv_pthread_lib_lpthread_woff=no
32177 fi
32178 rm -f conftest.err conftest.$ac_objext \
32179       conftest$ac_exeext conftest.$ac_ext
32180 else
32181   cat >conftest.$ac_ext <<_ACEOF
32182 /* confdefs.h.  */
32183 _ACEOF
32184 cat confdefs.h >>conftest.$ac_ext
32185 cat >>conftest.$ac_ext <<_ACEOF
32186 /* end confdefs.h.  */
32187 /* pthread test headers */
32188 #include <pthread.h>
32189 #if HAVE_PTHREADS < 7
32190 #include <errno.h>
32191 #endif
32192 #ifndef NULL
32193 #define NULL (void*)0
32194 #endif
32195
32196 static void *task(p)
32197         void *p;
32198 {
32199         return (void *) (p == NULL);
32200 }
32201
32202
32203 int main(argc, argv)
32204         int argc;
32205         char **argv;
32206 {
32207
32208         /* pthread test function */
32209 #ifndef PTHREAD_CREATE_DETACHED
32210 #define PTHREAD_CREATE_DETACHED 1
32211 #endif
32212         pthread_t t;
32213         int status;
32214         int detach = PTHREAD_CREATE_DETACHED;
32215
32216 #if HAVE_PTHREADS > 4
32217         /* Final pthreads */
32218         pthread_attr_t attr;
32219
32220         status = pthread_attr_init(&attr);
32221         if( status ) return status;
32222
32223 #if HAVE_PTHREADS < 7
32224         status = pthread_attr_setdetachstate(&attr, &detach);
32225         if( status < 0 ) status = errno;
32226 #else
32227         status = pthread_attr_setdetachstate(&attr, detach);
32228 #endif
32229         if( status ) return status;
32230         status = pthread_create( &t, &attr, task, NULL );
32231 #if HAVE_PTHREADS < 7
32232         if( status < 0 ) status = errno;
32233 #endif
32234         if( status ) return status;
32235 #else
32236         /* Draft 4 pthreads */
32237         status = pthread_create( &t, pthread_attr_default, task, NULL );
32238         if( status ) return errno;
32239
32240         /* give thread a chance to complete */
32241         /* it should remain joinable and hence detachable */
32242         sleep( 1 );
32243
32244         status = pthread_detach( &t );
32245         if( status ) return errno;
32246 #endif
32247
32248 #ifdef HAVE_LINUX_THREADS
32249         pthread_kill_other_threads_np();
32250 #endif
32251
32252         return 0;
32253
32254 }
32255
32256 _ACEOF
32257 rm -f conftest$ac_exeext
32258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32259   (eval $ac_link) 2>&5
32260   ac_status=$?
32261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32262   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32264   (eval $ac_try) 2>&5
32265   ac_status=$?
32266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267   (exit $ac_status); }; }; then
32268   ol_cv_pthread_lib_lpthread_woff=yes
32269 else
32270   echo "$as_me: program exited with status $ac_status" >&5
32271 echo "$as_me: failed program was:" >&5
32272 sed 's/^/| /' conftest.$ac_ext >&5
32273
32274 ( exit $ac_status )
32275 ol_cv_pthread_lib_lpthread_woff=no
32276 fi
32277 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32278 fi
32279
32280                 # restore the LIBS
32281                 LIBS="$ol_LIBS"
32282
32283 fi
32284 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32285 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32286
32287         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32288                 ol_link_pthreads="-lpthread -Wl,-woff,85"
32289                 ol_link_threads=posix
32290         fi
32291 fi
32292
32293
32294                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32295 if test "$ol_link_threads" = no ; then
32296         # try -lpthread
32297         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32298 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32299 if test "${ol_cv_pthread_lpthread+set}" = set; then
32300   echo $ECHO_N "(cached) $ECHO_C" >&6
32301 else
32302
32303                 # save the flags
32304                 ol_LIBS="$LIBS"
32305                 LIBS="-lpthread $LIBS"
32306
32307                 if test "$cross_compiling" = yes; then
32308   cat >conftest.$ac_ext <<_ACEOF
32309 /* confdefs.h.  */
32310 _ACEOF
32311 cat confdefs.h >>conftest.$ac_ext
32312 cat >>conftest.$ac_ext <<_ACEOF
32313 /* end confdefs.h.  */
32314 /* pthread test headers */
32315 #include <pthread.h>
32316 #if HAVE_PTHREADS < 7
32317 #include <errno.h>
32318 #endif
32319 #ifndef NULL
32320 #define NULL (void*)0
32321 #endif
32322
32323 static void *task(p)
32324         void *p;
32325 {
32326         return (void *) (p == NULL);
32327 }
32328
32329 int
32330 main ()
32331 {
32332
32333         /* pthread test function */
32334 #ifndef PTHREAD_CREATE_DETACHED
32335 #define PTHREAD_CREATE_DETACHED 1
32336 #endif
32337         pthread_t t;
32338         int status;
32339         int detach = PTHREAD_CREATE_DETACHED;
32340
32341 #if HAVE_PTHREADS > 4
32342         /* Final pthreads */
32343         pthread_attr_t attr;
32344
32345         status = pthread_attr_init(&attr);
32346         if( status ) return status;
32347
32348 #if HAVE_PTHREADS < 7
32349         status = pthread_attr_setdetachstate(&attr, &detach);
32350         if( status < 0 ) status = errno;
32351 #else
32352         status = pthread_attr_setdetachstate(&attr, detach);
32353 #endif
32354         if( status ) return status;
32355         status = pthread_create( &t, &attr, task, NULL );
32356 #if HAVE_PTHREADS < 7
32357         if( status < 0 ) status = errno;
32358 #endif
32359         if( status ) return status;
32360 #else
32361         /* Draft 4 pthreads */
32362         status = pthread_create( &t, pthread_attr_default, task, NULL );
32363         if( status ) return errno;
32364
32365         /* give thread a chance to complete */
32366         /* it should remain joinable and hence detachable */
32367         sleep( 1 );
32368
32369         status = pthread_detach( &t );
32370         if( status ) return errno;
32371 #endif
32372
32373 #ifdef HAVE_LINUX_THREADS
32374         pthread_kill_other_threads_np();
32375 #endif
32376
32377         return 0;
32378
32379   ;
32380   return 0;
32381 }
32382 _ACEOF
32383 rm -f conftest.$ac_objext conftest$ac_exeext
32384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32385   (eval $ac_link) 2>conftest.er1
32386   ac_status=$?
32387   grep -v '^ *+' conftest.er1 >conftest.err
32388   rm -f conftest.er1
32389   cat conftest.err >&5
32390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391   (exit $ac_status); } &&
32392          { ac_try='test -z "$ac_c_werror_flag"
32393                          || test ! -s conftest.err'
32394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32395   (eval $ac_try) 2>&5
32396   ac_status=$?
32397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32398   (exit $ac_status); }; } &&
32399          { ac_try='test -s conftest$ac_exeext'
32400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32401   (eval $ac_try) 2>&5
32402   ac_status=$?
32403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32404   (exit $ac_status); }; }; then
32405   ol_cv_pthread_lpthread=yes
32406 else
32407   echo "$as_me: failed program was:" >&5
32408 sed 's/^/| /' conftest.$ac_ext >&5
32409
32410 ol_cv_pthread_lpthread=no
32411 fi
32412 rm -f conftest.err conftest.$ac_objext \
32413       conftest$ac_exeext conftest.$ac_ext
32414 else
32415   cat >conftest.$ac_ext <<_ACEOF
32416 /* confdefs.h.  */
32417 _ACEOF
32418 cat confdefs.h >>conftest.$ac_ext
32419 cat >>conftest.$ac_ext <<_ACEOF
32420 /* end confdefs.h.  */
32421 /* pthread test headers */
32422 #include <pthread.h>
32423 #if HAVE_PTHREADS < 7
32424 #include <errno.h>
32425 #endif
32426 #ifndef NULL
32427 #define NULL (void*)0
32428 #endif
32429
32430 static void *task(p)
32431         void *p;
32432 {
32433         return (void *) (p == NULL);
32434 }
32435
32436
32437 int main(argc, argv)
32438         int argc;
32439         char **argv;
32440 {
32441
32442         /* pthread test function */
32443 #ifndef PTHREAD_CREATE_DETACHED
32444 #define PTHREAD_CREATE_DETACHED 1
32445 #endif
32446         pthread_t t;
32447         int status;
32448         int detach = PTHREAD_CREATE_DETACHED;
32449
32450 #if HAVE_PTHREADS > 4
32451         /* Final pthreads */
32452         pthread_attr_t attr;
32453
32454         status = pthread_attr_init(&attr);
32455         if( status ) return status;
32456
32457 #if HAVE_PTHREADS < 7
32458         status = pthread_attr_setdetachstate(&attr, &detach);
32459         if( status < 0 ) status = errno;
32460 #else
32461         status = pthread_attr_setdetachstate(&attr, detach);
32462 #endif
32463         if( status ) return status;
32464         status = pthread_create( &t, &attr, task, NULL );
32465 #if HAVE_PTHREADS < 7
32466         if( status < 0 ) status = errno;
32467 #endif
32468         if( status ) return status;
32469 #else
32470         /* Draft 4 pthreads */
32471         status = pthread_create( &t, pthread_attr_default, task, NULL );
32472         if( status ) return errno;
32473
32474         /* give thread a chance to complete */
32475         /* it should remain joinable and hence detachable */
32476         sleep( 1 );
32477
32478         status = pthread_detach( &t );
32479         if( status ) return errno;
32480 #endif
32481
32482 #ifdef HAVE_LINUX_THREADS
32483         pthread_kill_other_threads_np();
32484 #endif
32485
32486         return 0;
32487
32488 }
32489
32490 _ACEOF
32491 rm -f conftest$ac_exeext
32492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32493   (eval $ac_link) 2>&5
32494   ac_status=$?
32495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32496   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32498   (eval $ac_try) 2>&5
32499   ac_status=$?
32500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32501   (exit $ac_status); }; }; then
32502   ol_cv_pthread_lpthread=yes
32503 else
32504   echo "$as_me: program exited with status $ac_status" >&5
32505 echo "$as_me: failed program was:" >&5
32506 sed 's/^/| /' conftest.$ac_ext >&5
32507
32508 ( exit $ac_status )
32509 ol_cv_pthread_lpthread=no
32510 fi
32511 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32512 fi
32513
32514                 # restore the LIBS
32515                 LIBS="$ol_LIBS"
32516
32517 fi
32518 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32519 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32520
32521         if test $ol_cv_pthread_lpthread = yes ; then
32522                 ol_link_pthreads="-lpthread"
32523                 ol_link_threads=posix
32524         fi
32525 fi
32526
32527                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32528 if test "$ol_link_threads" = no ; then
32529         # try -lc_r
32530         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32531 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32532 if test "${ol_cv_pthread_lc_r+set}" = set; then
32533   echo $ECHO_N "(cached) $ECHO_C" >&6
32534 else
32535
32536                 # save the flags
32537                 ol_LIBS="$LIBS"
32538                 LIBS="-lc_r $LIBS"
32539
32540                 if test "$cross_compiling" = yes; then
32541   cat >conftest.$ac_ext <<_ACEOF
32542 /* confdefs.h.  */
32543 _ACEOF
32544 cat confdefs.h >>conftest.$ac_ext
32545 cat >>conftest.$ac_ext <<_ACEOF
32546 /* end confdefs.h.  */
32547 /* pthread test headers */
32548 #include <pthread.h>
32549 #if HAVE_PTHREADS < 7
32550 #include <errno.h>
32551 #endif
32552 #ifndef NULL
32553 #define NULL (void*)0
32554 #endif
32555
32556 static void *task(p)
32557         void *p;
32558 {
32559         return (void *) (p == NULL);
32560 }
32561
32562 int
32563 main ()
32564 {
32565
32566         /* pthread test function */
32567 #ifndef PTHREAD_CREATE_DETACHED
32568 #define PTHREAD_CREATE_DETACHED 1
32569 #endif
32570         pthread_t t;
32571         int status;
32572         int detach = PTHREAD_CREATE_DETACHED;
32573
32574 #if HAVE_PTHREADS > 4
32575         /* Final pthreads */
32576         pthread_attr_t attr;
32577
32578         status = pthread_attr_init(&attr);
32579         if( status ) return status;
32580
32581 #if HAVE_PTHREADS < 7
32582         status = pthread_attr_setdetachstate(&attr, &detach);
32583         if( status < 0 ) status = errno;
32584 #else
32585         status = pthread_attr_setdetachstate(&attr, detach);
32586 #endif
32587         if( status ) return status;
32588         status = pthread_create( &t, &attr, task, NULL );
32589 #if HAVE_PTHREADS < 7
32590         if( status < 0 ) status = errno;
32591 #endif
32592         if( status ) return status;
32593 #else
32594         /* Draft 4 pthreads */
32595         status = pthread_create( &t, pthread_attr_default, task, NULL );
32596         if( status ) return errno;
32597
32598         /* give thread a chance to complete */
32599         /* it should remain joinable and hence detachable */
32600         sleep( 1 );
32601
32602         status = pthread_detach( &t );
32603         if( status ) return errno;
32604 #endif
32605
32606 #ifdef HAVE_LINUX_THREADS
32607         pthread_kill_other_threads_np();
32608 #endif
32609
32610         return 0;
32611
32612   ;
32613   return 0;
32614 }
32615 _ACEOF
32616 rm -f conftest.$ac_objext conftest$ac_exeext
32617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32618   (eval $ac_link) 2>conftest.er1
32619   ac_status=$?
32620   grep -v '^ *+' conftest.er1 >conftest.err
32621   rm -f conftest.er1
32622   cat conftest.err >&5
32623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624   (exit $ac_status); } &&
32625          { ac_try='test -z "$ac_c_werror_flag"
32626                          || test ! -s conftest.err'
32627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32628   (eval $ac_try) 2>&5
32629   ac_status=$?
32630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32631   (exit $ac_status); }; } &&
32632          { ac_try='test -s conftest$ac_exeext'
32633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32634   (eval $ac_try) 2>&5
32635   ac_status=$?
32636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32637   (exit $ac_status); }; }; then
32638   ol_cv_pthread_lc_r=yes
32639 else
32640   echo "$as_me: failed program was:" >&5
32641 sed 's/^/| /' conftest.$ac_ext >&5
32642
32643 ol_cv_pthread_lc_r=no
32644 fi
32645 rm -f conftest.err conftest.$ac_objext \
32646       conftest$ac_exeext conftest.$ac_ext
32647 else
32648   cat >conftest.$ac_ext <<_ACEOF
32649 /* confdefs.h.  */
32650 _ACEOF
32651 cat confdefs.h >>conftest.$ac_ext
32652 cat >>conftest.$ac_ext <<_ACEOF
32653 /* end confdefs.h.  */
32654 /* pthread test headers */
32655 #include <pthread.h>
32656 #if HAVE_PTHREADS < 7
32657 #include <errno.h>
32658 #endif
32659 #ifndef NULL
32660 #define NULL (void*)0
32661 #endif
32662
32663 static void *task(p)
32664         void *p;
32665 {
32666         return (void *) (p == NULL);
32667 }
32668
32669
32670 int main(argc, argv)
32671         int argc;
32672         char **argv;
32673 {
32674
32675         /* pthread test function */
32676 #ifndef PTHREAD_CREATE_DETACHED
32677 #define PTHREAD_CREATE_DETACHED 1
32678 #endif
32679         pthread_t t;
32680         int status;
32681         int detach = PTHREAD_CREATE_DETACHED;
32682
32683 #if HAVE_PTHREADS > 4
32684         /* Final pthreads */
32685         pthread_attr_t attr;
32686
32687         status = pthread_attr_init(&attr);
32688         if( status ) return status;
32689
32690 #if HAVE_PTHREADS < 7
32691         status = pthread_attr_setdetachstate(&attr, &detach);
32692         if( status < 0 ) status = errno;
32693 #else
32694         status = pthread_attr_setdetachstate(&attr, detach);
32695 #endif
32696         if( status ) return status;
32697         status = pthread_create( &t, &attr, task, NULL );
32698 #if HAVE_PTHREADS < 7
32699         if( status < 0 ) status = errno;
32700 #endif
32701         if( status ) return status;
32702 #else
32703         /* Draft 4 pthreads */
32704         status = pthread_create( &t, pthread_attr_default, task, NULL );
32705         if( status ) return errno;
32706
32707         /* give thread a chance to complete */
32708         /* it should remain joinable and hence detachable */
32709         sleep( 1 );
32710
32711         status = pthread_detach( &t );
32712         if( status ) return errno;
32713 #endif
32714
32715 #ifdef HAVE_LINUX_THREADS
32716         pthread_kill_other_threads_np();
32717 #endif
32718
32719         return 0;
32720
32721 }
32722
32723 _ACEOF
32724 rm -f conftest$ac_exeext
32725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32726   (eval $ac_link) 2>&5
32727   ac_status=$?
32728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32731   (eval $ac_try) 2>&5
32732   ac_status=$?
32733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32734   (exit $ac_status); }; }; then
32735   ol_cv_pthread_lc_r=yes
32736 else
32737   echo "$as_me: program exited with status $ac_status" >&5
32738 echo "$as_me: failed program was:" >&5
32739 sed 's/^/| /' conftest.$ac_ext >&5
32740
32741 ( exit $ac_status )
32742 ol_cv_pthread_lc_r=no
32743 fi
32744 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32745 fi
32746
32747                 # restore the LIBS
32748                 LIBS="$ol_LIBS"
32749
32750 fi
32751 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
32752 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
32753
32754         if test $ol_cv_pthread_lc_r = yes ; then
32755                 ol_link_pthreads="-lc_r"
32756                 ol_link_threads=posix
32757         fi
32758 fi
32759
32760
32761                 # Pthread try link: -threads (ol_cv_pthread_threads)
32762 if test "$ol_link_threads" = no ; then
32763         # try -threads
32764         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
32765 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
32766 if test "${ol_cv_pthread_threads+set}" = set; then
32767   echo $ECHO_N "(cached) $ECHO_C" >&6
32768 else
32769
32770                 # save the flags
32771                 ol_LIBS="$LIBS"
32772                 LIBS="-threads $LIBS"
32773
32774                 if test "$cross_compiling" = yes; then
32775   cat >conftest.$ac_ext <<_ACEOF
32776 /* confdefs.h.  */
32777 _ACEOF
32778 cat confdefs.h >>conftest.$ac_ext
32779 cat >>conftest.$ac_ext <<_ACEOF
32780 /* end confdefs.h.  */
32781 /* pthread test headers */
32782 #include <pthread.h>
32783 #if HAVE_PTHREADS < 7
32784 #include <errno.h>
32785 #endif
32786 #ifndef NULL
32787 #define NULL (void*)0
32788 #endif
32789
32790 static void *task(p)
32791         void *p;
32792 {
32793         return (void *) (p == NULL);
32794 }
32795
32796 int
32797 main ()
32798 {
32799
32800         /* pthread test function */
32801 #ifndef PTHREAD_CREATE_DETACHED
32802 #define PTHREAD_CREATE_DETACHED 1
32803 #endif
32804         pthread_t t;
32805         int status;
32806         int detach = PTHREAD_CREATE_DETACHED;
32807
32808 #if HAVE_PTHREADS > 4
32809         /* Final pthreads */
32810         pthread_attr_t attr;
32811
32812         status = pthread_attr_init(&attr);
32813         if( status ) return status;
32814
32815 #if HAVE_PTHREADS < 7
32816         status = pthread_attr_setdetachstate(&attr, &detach);
32817         if( status < 0 ) status = errno;
32818 #else
32819         status = pthread_attr_setdetachstate(&attr, detach);
32820 #endif
32821         if( status ) return status;
32822         status = pthread_create( &t, &attr, task, NULL );
32823 #if HAVE_PTHREADS < 7
32824         if( status < 0 ) status = errno;
32825 #endif
32826         if( status ) return status;
32827 #else
32828         /* Draft 4 pthreads */
32829         status = pthread_create( &t, pthread_attr_default, task, NULL );
32830         if( status ) return errno;
32831
32832         /* give thread a chance to complete */
32833         /* it should remain joinable and hence detachable */
32834         sleep( 1 );
32835
32836         status = pthread_detach( &t );
32837         if( status ) return errno;
32838 #endif
32839
32840 #ifdef HAVE_LINUX_THREADS
32841         pthread_kill_other_threads_np();
32842 #endif
32843
32844         return 0;
32845
32846   ;
32847   return 0;
32848 }
32849 _ACEOF
32850 rm -f conftest.$ac_objext conftest$ac_exeext
32851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32852   (eval $ac_link) 2>conftest.er1
32853   ac_status=$?
32854   grep -v '^ *+' conftest.er1 >conftest.err
32855   rm -f conftest.er1
32856   cat conftest.err >&5
32857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858   (exit $ac_status); } &&
32859          { ac_try='test -z "$ac_c_werror_flag"
32860                          || test ! -s conftest.err'
32861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32862   (eval $ac_try) 2>&5
32863   ac_status=$?
32864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32865   (exit $ac_status); }; } &&
32866          { ac_try='test -s conftest$ac_exeext'
32867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32868   (eval $ac_try) 2>&5
32869   ac_status=$?
32870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32871   (exit $ac_status); }; }; then
32872   ol_cv_pthread_threads=yes
32873 else
32874   echo "$as_me: failed program was:" >&5
32875 sed 's/^/| /' conftest.$ac_ext >&5
32876
32877 ol_cv_pthread_threads=no
32878 fi
32879 rm -f conftest.err conftest.$ac_objext \
32880       conftest$ac_exeext conftest.$ac_ext
32881 else
32882   cat >conftest.$ac_ext <<_ACEOF
32883 /* confdefs.h.  */
32884 _ACEOF
32885 cat confdefs.h >>conftest.$ac_ext
32886 cat >>conftest.$ac_ext <<_ACEOF
32887 /* end confdefs.h.  */
32888 /* pthread test headers */
32889 #include <pthread.h>
32890 #if HAVE_PTHREADS < 7
32891 #include <errno.h>
32892 #endif
32893 #ifndef NULL
32894 #define NULL (void*)0
32895 #endif
32896
32897 static void *task(p)
32898         void *p;
32899 {
32900         return (void *) (p == NULL);
32901 }
32902
32903
32904 int main(argc, argv)
32905         int argc;
32906         char **argv;
32907 {
32908
32909         /* pthread test function */
32910 #ifndef PTHREAD_CREATE_DETACHED
32911 #define PTHREAD_CREATE_DETACHED 1
32912 #endif
32913         pthread_t t;
32914         int status;
32915         int detach = PTHREAD_CREATE_DETACHED;
32916
32917 #if HAVE_PTHREADS > 4
32918         /* Final pthreads */
32919         pthread_attr_t attr;
32920
32921         status = pthread_attr_init(&attr);
32922         if( status ) return status;
32923
32924 #if HAVE_PTHREADS < 7
32925         status = pthread_attr_setdetachstate(&attr, &detach);
32926         if( status < 0 ) status = errno;
32927 #else
32928         status = pthread_attr_setdetachstate(&attr, detach);
32929 #endif
32930         if( status ) return status;
32931         status = pthread_create( &t, &attr, task, NULL );
32932 #if HAVE_PTHREADS < 7
32933         if( status < 0 ) status = errno;
32934 #endif
32935         if( status ) return status;
32936 #else
32937         /* Draft 4 pthreads */
32938         status = pthread_create( &t, pthread_attr_default, task, NULL );
32939         if( status ) return errno;
32940
32941         /* give thread a chance to complete */
32942         /* it should remain joinable and hence detachable */
32943         sleep( 1 );
32944
32945         status = pthread_detach( &t );
32946         if( status ) return errno;
32947 #endif
32948
32949 #ifdef HAVE_LINUX_THREADS
32950         pthread_kill_other_threads_np();
32951 #endif
32952
32953         return 0;
32954
32955 }
32956
32957 _ACEOF
32958 rm -f conftest$ac_exeext
32959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32960   (eval $ac_link) 2>&5
32961   ac_status=$?
32962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32965   (eval $ac_try) 2>&5
32966   ac_status=$?
32967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32968   (exit $ac_status); }; }; then
32969   ol_cv_pthread_threads=yes
32970 else
32971   echo "$as_me: program exited with status $ac_status" >&5
32972 echo "$as_me: failed program was:" >&5
32973 sed 's/^/| /' conftest.$ac_ext >&5
32974
32975 ( exit $ac_status )
32976 ol_cv_pthread_threads=no
32977 fi
32978 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32979 fi
32980
32981                 # restore the LIBS
32982                 LIBS="$ol_LIBS"
32983
32984 fi
32985 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
32986 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
32987
32988         if test $ol_cv_pthread_threads = yes ; then
32989                 ol_link_pthreads="-threads"
32990                 ol_link_threads=posix
32991         fi
32992 fi
32993
32994
32995                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
32996 if test "$ol_link_threads" = no ; then
32997         # try -lpthreads -lmach -lexc -lc_r
32998         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
32999 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33000 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33001   echo $ECHO_N "(cached) $ECHO_C" >&6
33002 else
33003
33004                 # save the flags
33005                 ol_LIBS="$LIBS"
33006                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33007
33008                 if test "$cross_compiling" = yes; then
33009   cat >conftest.$ac_ext <<_ACEOF
33010 /* confdefs.h.  */
33011 _ACEOF
33012 cat confdefs.h >>conftest.$ac_ext
33013 cat >>conftest.$ac_ext <<_ACEOF
33014 /* end confdefs.h.  */
33015 /* pthread test headers */
33016 #include <pthread.h>
33017 #if HAVE_PTHREADS < 7
33018 #include <errno.h>
33019 #endif
33020 #ifndef NULL
33021 #define NULL (void*)0
33022 #endif
33023
33024 static void *task(p)
33025         void *p;
33026 {
33027         return (void *) (p == NULL);
33028 }
33029
33030 int
33031 main ()
33032 {
33033
33034         /* pthread test function */
33035 #ifndef PTHREAD_CREATE_DETACHED
33036 #define PTHREAD_CREATE_DETACHED 1
33037 #endif
33038         pthread_t t;
33039         int status;
33040         int detach = PTHREAD_CREATE_DETACHED;
33041
33042 #if HAVE_PTHREADS > 4
33043         /* Final pthreads */
33044         pthread_attr_t attr;
33045
33046         status = pthread_attr_init(&attr);
33047         if( status ) return status;
33048
33049 #if HAVE_PTHREADS < 7
33050         status = pthread_attr_setdetachstate(&attr, &detach);
33051         if( status < 0 ) status = errno;
33052 #else
33053         status = pthread_attr_setdetachstate(&attr, detach);
33054 #endif
33055         if( status ) return status;
33056         status = pthread_create( &t, &attr, task, NULL );
33057 #if HAVE_PTHREADS < 7
33058         if( status < 0 ) status = errno;
33059 #endif
33060         if( status ) return status;
33061 #else
33062         /* Draft 4 pthreads */
33063         status = pthread_create( &t, pthread_attr_default, task, NULL );
33064         if( status ) return errno;
33065
33066         /* give thread a chance to complete */
33067         /* it should remain joinable and hence detachable */
33068         sleep( 1 );
33069
33070         status = pthread_detach( &t );
33071         if( status ) return errno;
33072 #endif
33073
33074 #ifdef HAVE_LINUX_THREADS
33075         pthread_kill_other_threads_np();
33076 #endif
33077
33078         return 0;
33079
33080   ;
33081   return 0;
33082 }
33083 _ACEOF
33084 rm -f conftest.$ac_objext conftest$ac_exeext
33085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33086   (eval $ac_link) 2>conftest.er1
33087   ac_status=$?
33088   grep -v '^ *+' conftest.er1 >conftest.err
33089   rm -f conftest.er1
33090   cat conftest.err >&5
33091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33092   (exit $ac_status); } &&
33093          { ac_try='test -z "$ac_c_werror_flag"
33094                          || test ! -s conftest.err'
33095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33096   (eval $ac_try) 2>&5
33097   ac_status=$?
33098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33099   (exit $ac_status); }; } &&
33100          { ac_try='test -s conftest$ac_exeext'
33101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33102   (eval $ac_try) 2>&5
33103   ac_status=$?
33104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105   (exit $ac_status); }; }; then
33106   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33107 else
33108   echo "$as_me: failed program was:" >&5
33109 sed 's/^/| /' conftest.$ac_ext >&5
33110
33111 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33112 fi
33113 rm -f conftest.err conftest.$ac_objext \
33114       conftest$ac_exeext conftest.$ac_ext
33115 else
33116   cat >conftest.$ac_ext <<_ACEOF
33117 /* confdefs.h.  */
33118 _ACEOF
33119 cat confdefs.h >>conftest.$ac_ext
33120 cat >>conftest.$ac_ext <<_ACEOF
33121 /* end confdefs.h.  */
33122 /* pthread test headers */
33123 #include <pthread.h>
33124 #if HAVE_PTHREADS < 7
33125 #include <errno.h>
33126 #endif
33127 #ifndef NULL
33128 #define NULL (void*)0
33129 #endif
33130
33131 static void *task(p)
33132         void *p;
33133 {
33134         return (void *) (p == NULL);
33135 }
33136
33137
33138 int main(argc, argv)
33139         int argc;
33140         char **argv;
33141 {
33142
33143         /* pthread test function */
33144 #ifndef PTHREAD_CREATE_DETACHED
33145 #define PTHREAD_CREATE_DETACHED 1
33146 #endif
33147         pthread_t t;
33148         int status;
33149         int detach = PTHREAD_CREATE_DETACHED;
33150
33151 #if HAVE_PTHREADS > 4
33152         /* Final pthreads */
33153         pthread_attr_t attr;
33154
33155         status = pthread_attr_init(&attr);
33156         if( status ) return status;
33157
33158 #if HAVE_PTHREADS < 7
33159         status = pthread_attr_setdetachstate(&attr, &detach);
33160         if( status < 0 ) status = errno;
33161 #else
33162         status = pthread_attr_setdetachstate(&attr, detach);
33163 #endif
33164         if( status ) return status;
33165         status = pthread_create( &t, &attr, task, NULL );
33166 #if HAVE_PTHREADS < 7
33167         if( status < 0 ) status = errno;
33168 #endif
33169         if( status ) return status;
33170 #else
33171         /* Draft 4 pthreads */
33172         status = pthread_create( &t, pthread_attr_default, task, NULL );
33173         if( status ) return errno;
33174
33175         /* give thread a chance to complete */
33176         /* it should remain joinable and hence detachable */
33177         sleep( 1 );
33178
33179         status = pthread_detach( &t );
33180         if( status ) return errno;
33181 #endif
33182
33183 #ifdef HAVE_LINUX_THREADS
33184         pthread_kill_other_threads_np();
33185 #endif
33186
33187         return 0;
33188
33189 }
33190
33191 _ACEOF
33192 rm -f conftest$ac_exeext
33193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33194   (eval $ac_link) 2>&5
33195   ac_status=$?
33196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33199   (eval $ac_try) 2>&5
33200   ac_status=$?
33201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33202   (exit $ac_status); }; }; then
33203   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33204 else
33205   echo "$as_me: program exited with status $ac_status" >&5
33206 echo "$as_me: failed program was:" >&5
33207 sed 's/^/| /' conftest.$ac_ext >&5
33208
33209 ( exit $ac_status )
33210 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33211 fi
33212 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33213 fi
33214
33215                 # restore the LIBS
33216                 LIBS="$ol_LIBS"
33217
33218 fi
33219 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33220 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33221
33222         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33223                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33224                 ol_link_threads=posix
33225         fi
33226 fi
33227
33228                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33229 if test "$ol_link_threads" = no ; then
33230         # try -lpthreads -lmach -lexc
33231         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33232 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33233 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33234   echo $ECHO_N "(cached) $ECHO_C" >&6
33235 else
33236
33237                 # save the flags
33238                 ol_LIBS="$LIBS"
33239                 LIBS="-lpthreads -lmach -lexc $LIBS"
33240
33241                 if test "$cross_compiling" = yes; then
33242   cat >conftest.$ac_ext <<_ACEOF
33243 /* confdefs.h.  */
33244 _ACEOF
33245 cat confdefs.h >>conftest.$ac_ext
33246 cat >>conftest.$ac_ext <<_ACEOF
33247 /* end confdefs.h.  */
33248 /* pthread test headers */
33249 #include <pthread.h>
33250 #if HAVE_PTHREADS < 7
33251 #include <errno.h>
33252 #endif
33253 #ifndef NULL
33254 #define NULL (void*)0
33255 #endif
33256
33257 static void *task(p)
33258         void *p;
33259 {
33260         return (void *) (p == NULL);
33261 }
33262
33263 int
33264 main ()
33265 {
33266
33267         /* pthread test function */
33268 #ifndef PTHREAD_CREATE_DETACHED
33269 #define PTHREAD_CREATE_DETACHED 1
33270 #endif
33271         pthread_t t;
33272         int status;
33273         int detach = PTHREAD_CREATE_DETACHED;
33274
33275 #if HAVE_PTHREADS > 4
33276         /* Final pthreads */
33277         pthread_attr_t attr;
33278
33279         status = pthread_attr_init(&attr);
33280         if( status ) return status;
33281
33282 #if HAVE_PTHREADS < 7
33283         status = pthread_attr_setdetachstate(&attr, &detach);
33284         if( status < 0 ) status = errno;
33285 #else
33286         status = pthread_attr_setdetachstate(&attr, detach);
33287 #endif
33288         if( status ) return status;
33289         status = pthread_create( &t, &attr, task, NULL );
33290 #if HAVE_PTHREADS < 7
33291         if( status < 0 ) status = errno;
33292 #endif
33293         if( status ) return status;
33294 #else
33295         /* Draft 4 pthreads */
33296         status = pthread_create( &t, pthread_attr_default, task, NULL );
33297         if( status ) return errno;
33298
33299         /* give thread a chance to complete */
33300         /* it should remain joinable and hence detachable */
33301         sleep( 1 );
33302
33303         status = pthread_detach( &t );
33304         if( status ) return errno;
33305 #endif
33306
33307 #ifdef HAVE_LINUX_THREADS
33308         pthread_kill_other_threads_np();
33309 #endif
33310
33311         return 0;
33312
33313   ;
33314   return 0;
33315 }
33316 _ACEOF
33317 rm -f conftest.$ac_objext conftest$ac_exeext
33318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33319   (eval $ac_link) 2>conftest.er1
33320   ac_status=$?
33321   grep -v '^ *+' conftest.er1 >conftest.err
33322   rm -f conftest.er1
33323   cat conftest.err >&5
33324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33325   (exit $ac_status); } &&
33326          { ac_try='test -z "$ac_c_werror_flag"
33327                          || test ! -s conftest.err'
33328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33329   (eval $ac_try) 2>&5
33330   ac_status=$?
33331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332   (exit $ac_status); }; } &&
33333          { ac_try='test -s conftest$ac_exeext'
33334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33335   (eval $ac_try) 2>&5
33336   ac_status=$?
33337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33338   (exit $ac_status); }; }; then
33339   ol_cv_pthread_lpthreads_lmach_lexc=yes
33340 else
33341   echo "$as_me: failed program was:" >&5
33342 sed 's/^/| /' conftest.$ac_ext >&5
33343
33344 ol_cv_pthread_lpthreads_lmach_lexc=no
33345 fi
33346 rm -f conftest.err conftest.$ac_objext \
33347       conftest$ac_exeext conftest.$ac_ext
33348 else
33349   cat >conftest.$ac_ext <<_ACEOF
33350 /* confdefs.h.  */
33351 _ACEOF
33352 cat confdefs.h >>conftest.$ac_ext
33353 cat >>conftest.$ac_ext <<_ACEOF
33354 /* end confdefs.h.  */
33355 /* pthread test headers */
33356 #include <pthread.h>
33357 #if HAVE_PTHREADS < 7
33358 #include <errno.h>
33359 #endif
33360 #ifndef NULL
33361 #define NULL (void*)0
33362 #endif
33363
33364 static void *task(p)
33365         void *p;
33366 {
33367         return (void *) (p == NULL);
33368 }
33369
33370
33371 int main(argc, argv)
33372         int argc;
33373         char **argv;
33374 {
33375
33376         /* pthread test function */
33377 #ifndef PTHREAD_CREATE_DETACHED
33378 #define PTHREAD_CREATE_DETACHED 1
33379 #endif
33380         pthread_t t;
33381         int status;
33382         int detach = PTHREAD_CREATE_DETACHED;
33383
33384 #if HAVE_PTHREADS > 4
33385         /* Final pthreads */
33386         pthread_attr_t attr;
33387
33388         status = pthread_attr_init(&attr);
33389         if( status ) return status;
33390
33391 #if HAVE_PTHREADS < 7
33392         status = pthread_attr_setdetachstate(&attr, &detach);
33393         if( status < 0 ) status = errno;
33394 #else
33395         status = pthread_attr_setdetachstate(&attr, detach);
33396 #endif
33397         if( status ) return status;
33398         status = pthread_create( &t, &attr, task, NULL );
33399 #if HAVE_PTHREADS < 7
33400         if( status < 0 ) status = errno;
33401 #endif
33402         if( status ) return status;
33403 #else
33404         /* Draft 4 pthreads */
33405         status = pthread_create( &t, pthread_attr_default, task, NULL );
33406         if( status ) return errno;
33407
33408         /* give thread a chance to complete */
33409         /* it should remain joinable and hence detachable */
33410         sleep( 1 );
33411
33412         status = pthread_detach( &t );
33413         if( status ) return errno;
33414 #endif
33415
33416 #ifdef HAVE_LINUX_THREADS
33417         pthread_kill_other_threads_np();
33418 #endif
33419
33420         return 0;
33421
33422 }
33423
33424 _ACEOF
33425 rm -f conftest$ac_exeext
33426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33427   (eval $ac_link) 2>&5
33428   ac_status=$?
33429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33432   (eval $ac_try) 2>&5
33433   ac_status=$?
33434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33435   (exit $ac_status); }; }; then
33436   ol_cv_pthread_lpthreads_lmach_lexc=yes
33437 else
33438   echo "$as_me: program exited with status $ac_status" >&5
33439 echo "$as_me: failed program was:" >&5
33440 sed 's/^/| /' conftest.$ac_ext >&5
33441
33442 ( exit $ac_status )
33443 ol_cv_pthread_lpthreads_lmach_lexc=no
33444 fi
33445 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33446 fi
33447
33448                 # restore the LIBS
33449                 LIBS="$ol_LIBS"
33450
33451 fi
33452 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33453 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33454
33455         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33456                 ol_link_pthreads="-lpthreads -lmach -lexc"
33457                 ol_link_threads=posix
33458         fi
33459 fi
33460
33461                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33462 if test "$ol_link_threads" = no ; then
33463         # try -lpthreads -lexc
33464         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33465 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33466 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33467   echo $ECHO_N "(cached) $ECHO_C" >&6
33468 else
33469
33470                 # save the flags
33471                 ol_LIBS="$LIBS"
33472                 LIBS="-lpthreads -lexc $LIBS"
33473
33474                 if test "$cross_compiling" = yes; then
33475   cat >conftest.$ac_ext <<_ACEOF
33476 /* confdefs.h.  */
33477 _ACEOF
33478 cat confdefs.h >>conftest.$ac_ext
33479 cat >>conftest.$ac_ext <<_ACEOF
33480 /* end confdefs.h.  */
33481 /* pthread test headers */
33482 #include <pthread.h>
33483 #if HAVE_PTHREADS < 7
33484 #include <errno.h>
33485 #endif
33486 #ifndef NULL
33487 #define NULL (void*)0
33488 #endif
33489
33490 static void *task(p)
33491         void *p;
33492 {
33493         return (void *) (p == NULL);
33494 }
33495
33496 int
33497 main ()
33498 {
33499
33500         /* pthread test function */
33501 #ifndef PTHREAD_CREATE_DETACHED
33502 #define PTHREAD_CREATE_DETACHED 1
33503 #endif
33504         pthread_t t;
33505         int status;
33506         int detach = PTHREAD_CREATE_DETACHED;
33507
33508 #if HAVE_PTHREADS > 4
33509         /* Final pthreads */
33510         pthread_attr_t attr;
33511
33512         status = pthread_attr_init(&attr);
33513         if( status ) return status;
33514
33515 #if HAVE_PTHREADS < 7
33516         status = pthread_attr_setdetachstate(&attr, &detach);
33517         if( status < 0 ) status = errno;
33518 #else
33519         status = pthread_attr_setdetachstate(&attr, detach);
33520 #endif
33521         if( status ) return status;
33522         status = pthread_create( &t, &attr, task, NULL );
33523 #if HAVE_PTHREADS < 7
33524         if( status < 0 ) status = errno;
33525 #endif
33526         if( status ) return status;
33527 #else
33528         /* Draft 4 pthreads */
33529         status = pthread_create( &t, pthread_attr_default, task, NULL );
33530         if( status ) return errno;
33531
33532         /* give thread a chance to complete */
33533         /* it should remain joinable and hence detachable */
33534         sleep( 1 );
33535
33536         status = pthread_detach( &t );
33537         if( status ) return errno;
33538 #endif
33539
33540 #ifdef HAVE_LINUX_THREADS
33541         pthread_kill_other_threads_np();
33542 #endif
33543
33544         return 0;
33545
33546   ;
33547   return 0;
33548 }
33549 _ACEOF
33550 rm -f conftest.$ac_objext conftest$ac_exeext
33551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33552   (eval $ac_link) 2>conftest.er1
33553   ac_status=$?
33554   grep -v '^ *+' conftest.er1 >conftest.err
33555   rm -f conftest.er1
33556   cat conftest.err >&5
33557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33558   (exit $ac_status); } &&
33559          { ac_try='test -z "$ac_c_werror_flag"
33560                          || test ! -s conftest.err'
33561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33562   (eval $ac_try) 2>&5
33563   ac_status=$?
33564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565   (exit $ac_status); }; } &&
33566          { ac_try='test -s conftest$ac_exeext'
33567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33568   (eval $ac_try) 2>&5
33569   ac_status=$?
33570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571   (exit $ac_status); }; }; then
33572   ol_cv_pthread_lpthreads_lexc=yes
33573 else
33574   echo "$as_me: failed program was:" >&5
33575 sed 's/^/| /' conftest.$ac_ext >&5
33576
33577 ol_cv_pthread_lpthreads_lexc=no
33578 fi
33579 rm -f conftest.err conftest.$ac_objext \
33580       conftest$ac_exeext conftest.$ac_ext
33581 else
33582   cat >conftest.$ac_ext <<_ACEOF
33583 /* confdefs.h.  */
33584 _ACEOF
33585 cat confdefs.h >>conftest.$ac_ext
33586 cat >>conftest.$ac_ext <<_ACEOF
33587 /* end confdefs.h.  */
33588 /* pthread test headers */
33589 #include <pthread.h>
33590 #if HAVE_PTHREADS < 7
33591 #include <errno.h>
33592 #endif
33593 #ifndef NULL
33594 #define NULL (void*)0
33595 #endif
33596
33597 static void *task(p)
33598         void *p;
33599 {
33600         return (void *) (p == NULL);
33601 }
33602
33603
33604 int main(argc, argv)
33605         int argc;
33606         char **argv;
33607 {
33608
33609         /* pthread test function */
33610 #ifndef PTHREAD_CREATE_DETACHED
33611 #define PTHREAD_CREATE_DETACHED 1
33612 #endif
33613         pthread_t t;
33614         int status;
33615         int detach = PTHREAD_CREATE_DETACHED;
33616
33617 #if HAVE_PTHREADS > 4
33618         /* Final pthreads */
33619         pthread_attr_t attr;
33620
33621         status = pthread_attr_init(&attr);
33622         if( status ) return status;
33623
33624 #if HAVE_PTHREADS < 7
33625         status = pthread_attr_setdetachstate(&attr, &detach);
33626         if( status < 0 ) status = errno;
33627 #else
33628         status = pthread_attr_setdetachstate(&attr, detach);
33629 #endif
33630         if( status ) return status;
33631         status = pthread_create( &t, &attr, task, NULL );
33632 #if HAVE_PTHREADS < 7
33633         if( status < 0 ) status = errno;
33634 #endif
33635         if( status ) return status;
33636 #else
33637         /* Draft 4 pthreads */
33638         status = pthread_create( &t, pthread_attr_default, task, NULL );
33639         if( status ) return errno;
33640
33641         /* give thread a chance to complete */
33642         /* it should remain joinable and hence detachable */
33643         sleep( 1 );
33644
33645         status = pthread_detach( &t );
33646         if( status ) return errno;
33647 #endif
33648
33649 #ifdef HAVE_LINUX_THREADS
33650         pthread_kill_other_threads_np();
33651 #endif
33652
33653         return 0;
33654
33655 }
33656
33657 _ACEOF
33658 rm -f conftest$ac_exeext
33659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33660   (eval $ac_link) 2>&5
33661   ac_status=$?
33662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33663   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33665   (eval $ac_try) 2>&5
33666   ac_status=$?
33667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33668   (exit $ac_status); }; }; then
33669   ol_cv_pthread_lpthreads_lexc=yes
33670 else
33671   echo "$as_me: program exited with status $ac_status" >&5
33672 echo "$as_me: failed program was:" >&5
33673 sed 's/^/| /' conftest.$ac_ext >&5
33674
33675 ( exit $ac_status )
33676 ol_cv_pthread_lpthreads_lexc=no
33677 fi
33678 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33679 fi
33680
33681                 # restore the LIBS
33682                 LIBS="$ol_LIBS"
33683
33684 fi
33685 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
33686 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
33687
33688         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
33689                 ol_link_pthreads="-lpthreads -lexc"
33690                 ol_link_threads=posix
33691         fi
33692 fi
33693
33694
33695                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
33696 if test "$ol_link_threads" = no ; then
33697         # try -lpthreads
33698         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
33699 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
33700 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
33701   echo $ECHO_N "(cached) $ECHO_C" >&6
33702 else
33703
33704                 # save the flags
33705                 ol_LIBS="$LIBS"
33706                 LIBS="-lpthreads $LIBS"
33707
33708                 if test "$cross_compiling" = yes; then
33709   cat >conftest.$ac_ext <<_ACEOF
33710 /* confdefs.h.  */
33711 _ACEOF
33712 cat confdefs.h >>conftest.$ac_ext
33713 cat >>conftest.$ac_ext <<_ACEOF
33714 /* end confdefs.h.  */
33715 /* pthread test headers */
33716 #include <pthread.h>
33717 #if HAVE_PTHREADS < 7
33718 #include <errno.h>
33719 #endif
33720 #ifndef NULL
33721 #define NULL (void*)0
33722 #endif
33723
33724 static void *task(p)
33725         void *p;
33726 {
33727         return (void *) (p == NULL);
33728 }
33729
33730 int
33731 main ()
33732 {
33733
33734         /* pthread test function */
33735 #ifndef PTHREAD_CREATE_DETACHED
33736 #define PTHREAD_CREATE_DETACHED 1
33737 #endif
33738         pthread_t t;
33739         int status;
33740         int detach = PTHREAD_CREATE_DETACHED;
33741
33742 #if HAVE_PTHREADS > 4
33743         /* Final pthreads */
33744         pthread_attr_t attr;
33745
33746         status = pthread_attr_init(&attr);
33747         if( status ) return status;
33748
33749 #if HAVE_PTHREADS < 7
33750         status = pthread_attr_setdetachstate(&attr, &detach);
33751         if( status < 0 ) status = errno;
33752 #else
33753         status = pthread_attr_setdetachstate(&attr, detach);
33754 #endif
33755         if( status ) return status;
33756         status = pthread_create( &t, &attr, task, NULL );
33757 #if HAVE_PTHREADS < 7
33758         if( status < 0 ) status = errno;
33759 #endif
33760         if( status ) return status;
33761 #else
33762         /* Draft 4 pthreads */
33763         status = pthread_create( &t, pthread_attr_default, task, NULL );
33764         if( status ) return errno;
33765
33766         /* give thread a chance to complete */
33767         /* it should remain joinable and hence detachable */
33768         sleep( 1 );
33769
33770         status = pthread_detach( &t );
33771         if( status ) return errno;
33772 #endif
33773
33774 #ifdef HAVE_LINUX_THREADS
33775         pthread_kill_other_threads_np();
33776 #endif
33777
33778         return 0;
33779
33780   ;
33781   return 0;
33782 }
33783 _ACEOF
33784 rm -f conftest.$ac_objext conftest$ac_exeext
33785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33786   (eval $ac_link) 2>conftest.er1
33787   ac_status=$?
33788   grep -v '^ *+' conftest.er1 >conftest.err
33789   rm -f conftest.er1
33790   cat conftest.err >&5
33791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792   (exit $ac_status); } &&
33793          { ac_try='test -z "$ac_c_werror_flag"
33794                          || test ! -s conftest.err'
33795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33796   (eval $ac_try) 2>&5
33797   ac_status=$?
33798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799   (exit $ac_status); }; } &&
33800          { ac_try='test -s conftest$ac_exeext'
33801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33802   (eval $ac_try) 2>&5
33803   ac_status=$?
33804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805   (exit $ac_status); }; }; then
33806   ol_cv_pthread_lib_lpthreads=yes
33807 else
33808   echo "$as_me: failed program was:" >&5
33809 sed 's/^/| /' conftest.$ac_ext >&5
33810
33811 ol_cv_pthread_lib_lpthreads=no
33812 fi
33813 rm -f conftest.err conftest.$ac_objext \
33814       conftest$ac_exeext conftest.$ac_ext
33815 else
33816   cat >conftest.$ac_ext <<_ACEOF
33817 /* confdefs.h.  */
33818 _ACEOF
33819 cat confdefs.h >>conftest.$ac_ext
33820 cat >>conftest.$ac_ext <<_ACEOF
33821 /* end confdefs.h.  */
33822 /* pthread test headers */
33823 #include <pthread.h>
33824 #if HAVE_PTHREADS < 7
33825 #include <errno.h>
33826 #endif
33827 #ifndef NULL
33828 #define NULL (void*)0
33829 #endif
33830
33831 static void *task(p)
33832         void *p;
33833 {
33834         return (void *) (p == NULL);
33835 }
33836
33837
33838 int main(argc, argv)
33839         int argc;
33840         char **argv;
33841 {
33842
33843         /* pthread test function */
33844 #ifndef PTHREAD_CREATE_DETACHED
33845 #define PTHREAD_CREATE_DETACHED 1
33846 #endif
33847         pthread_t t;
33848         int status;
33849         int detach = PTHREAD_CREATE_DETACHED;
33850
33851 #if HAVE_PTHREADS > 4
33852         /* Final pthreads */
33853         pthread_attr_t attr;
33854
33855         status = pthread_attr_init(&attr);
33856         if( status ) return status;
33857
33858 #if HAVE_PTHREADS < 7
33859         status = pthread_attr_setdetachstate(&attr, &detach);
33860         if( status < 0 ) status = errno;
33861 #else
33862         status = pthread_attr_setdetachstate(&attr, detach);
33863 #endif
33864         if( status ) return status;
33865         status = pthread_create( &t, &attr, task, NULL );
33866 #if HAVE_PTHREADS < 7
33867         if( status < 0 ) status = errno;
33868 #endif
33869         if( status ) return status;
33870 #else
33871         /* Draft 4 pthreads */
33872         status = pthread_create( &t, pthread_attr_default, task, NULL );
33873         if( status ) return errno;
33874
33875         /* give thread a chance to complete */
33876         /* it should remain joinable and hence detachable */
33877         sleep( 1 );
33878
33879         status = pthread_detach( &t );
33880         if( status ) return errno;
33881 #endif
33882
33883 #ifdef HAVE_LINUX_THREADS
33884         pthread_kill_other_threads_np();
33885 #endif
33886
33887         return 0;
33888
33889 }
33890
33891 _ACEOF
33892 rm -f conftest$ac_exeext
33893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33894   (eval $ac_link) 2>&5
33895   ac_status=$?
33896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33897   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33899   (eval $ac_try) 2>&5
33900   ac_status=$?
33901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902   (exit $ac_status); }; }; then
33903   ol_cv_pthread_lib_lpthreads=yes
33904 else
33905   echo "$as_me: program exited with status $ac_status" >&5
33906 echo "$as_me: failed program was:" >&5
33907 sed 's/^/| /' conftest.$ac_ext >&5
33908
33909 ( exit $ac_status )
33910 ol_cv_pthread_lib_lpthreads=no
33911 fi
33912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33913 fi
33914
33915                 # restore the LIBS
33916                 LIBS="$ol_LIBS"
33917
33918 fi
33919 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
33920 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
33921
33922         if test $ol_cv_pthread_lib_lpthreads = yes ; then
33923                 ol_link_pthreads="-lpthreads"
33924                 ol_link_threads=posix
33925         fi
33926 fi
33927
33928
33929                 if test $ol_link_threads != no ; then
33930                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
33931
33932                                                 save_CPPFLAGS="$CPPFLAGS"
33933                         save_LIBS="$LIBS"
33934                         LIBS="$LTHREAD_LIBS $LIBS"
33935
33936
33937
33938
33939 for ac_func in sched_yield pthread_yield thr_yield
33940 do
33941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33942 echo "$as_me:$LINENO: checking for $ac_func" >&5
33943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33944 if eval "test \"\${$as_ac_var+set}\" = set"; then
33945   echo $ECHO_N "(cached) $ECHO_C" >&6
33946 else
33947   cat >conftest.$ac_ext <<_ACEOF
33948 /* confdefs.h.  */
33949 _ACEOF
33950 cat confdefs.h >>conftest.$ac_ext
33951 cat >>conftest.$ac_ext <<_ACEOF
33952 /* end confdefs.h.  */
33953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33955 #define $ac_func innocuous_$ac_func
33956
33957 /* System header to define __stub macros and hopefully few prototypes,
33958     which can conflict with char $ac_func (); below.
33959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33960     <limits.h> exists even on freestanding compilers.  */
33961
33962 #ifdef __STDC__
33963 # include <limits.h>
33964 #else
33965 # include <assert.h>
33966 #endif
33967
33968 #undef $ac_func
33969
33970 /* Override any gcc2 internal prototype to avoid an error.  */
33971 #ifdef __cplusplus
33972 extern "C"
33973 {
33974 #endif
33975 /* We use char because int might match the return type of a gcc2
33976    builtin and then its argument prototype would still apply.  */
33977 char $ac_func ();
33978 /* The GNU C library defines this for functions which it implements
33979     to always fail with ENOSYS.  Some functions are actually named
33980     something starting with __ and the normal name is an alias.  */
33981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33982 choke me
33983 #else
33984 char (*f) () = $ac_func;
33985 #endif
33986 #ifdef __cplusplus
33987 }
33988 #endif
33989
33990 int
33991 main ()
33992 {
33993 return f != $ac_func;
33994   ;
33995   return 0;
33996 }
33997 _ACEOF
33998 rm -f conftest.$ac_objext conftest$ac_exeext
33999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34000   (eval $ac_link) 2>conftest.er1
34001   ac_status=$?
34002   grep -v '^ *+' conftest.er1 >conftest.err
34003   rm -f conftest.er1
34004   cat conftest.err >&5
34005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34006   (exit $ac_status); } &&
34007          { ac_try='test -z "$ac_c_werror_flag"
34008                          || test ! -s conftest.err'
34009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34010   (eval $ac_try) 2>&5
34011   ac_status=$?
34012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34013   (exit $ac_status); }; } &&
34014          { ac_try='test -s conftest$ac_exeext'
34015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34016   (eval $ac_try) 2>&5
34017   ac_status=$?
34018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019   (exit $ac_status); }; }; then
34020   eval "$as_ac_var=yes"
34021 else
34022   echo "$as_me: failed program was:" >&5
34023 sed 's/^/| /' conftest.$ac_ext >&5
34024
34025 eval "$as_ac_var=no"
34026 fi
34027 rm -f conftest.err conftest.$ac_objext \
34028       conftest$ac_exeext conftest.$ac_ext
34029 fi
34030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34031 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34032 if test `eval echo '${'$as_ac_var'}'` = yes; then
34033   cat >>confdefs.h <<_ACEOF
34034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34035 _ACEOF
34036
34037 fi
34038 done
34039
34040
34041                         if test $ac_cv_func_sched_yield = no -a \
34042                                 $ac_cv_func_pthread_yield = no -a \
34043                                 $ac_cv_func_thr_yield = no ; then
34044                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34045 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34046 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34047   echo $ECHO_N "(cached) $ECHO_C" >&6
34048 else
34049   ac_check_lib_save_LIBS=$LIBS
34050 LIBS="-lrt  $LIBS"
34051 cat >conftest.$ac_ext <<_ACEOF
34052 /* confdefs.h.  */
34053 _ACEOF
34054 cat confdefs.h >>conftest.$ac_ext
34055 cat >>conftest.$ac_ext <<_ACEOF
34056 /* end confdefs.h.  */
34057
34058 /* Override any gcc2 internal prototype to avoid an error.  */
34059 #ifdef __cplusplus
34060 extern "C"
34061 #endif
34062 /* We use char because int might match the return type of a gcc2
34063    builtin and then its argument prototype would still apply.  */
34064 char sched_yield ();
34065 int
34066 main ()
34067 {
34068 sched_yield ();
34069   ;
34070   return 0;
34071 }
34072 _ACEOF
34073 rm -f conftest.$ac_objext conftest$ac_exeext
34074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34075   (eval $ac_link) 2>conftest.er1
34076   ac_status=$?
34077   grep -v '^ *+' conftest.er1 >conftest.err
34078   rm -f conftest.er1
34079   cat conftest.err >&5
34080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34081   (exit $ac_status); } &&
34082          { ac_try='test -z "$ac_c_werror_flag"
34083                          || test ! -s conftest.err'
34084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34085   (eval $ac_try) 2>&5
34086   ac_status=$?
34087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34088   (exit $ac_status); }; } &&
34089          { ac_try='test -s conftest$ac_exeext'
34090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34091   (eval $ac_try) 2>&5
34092   ac_status=$?
34093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34094   (exit $ac_status); }; }; then
34095   ac_cv_lib_rt_sched_yield=yes
34096 else
34097   echo "$as_me: failed program was:" >&5
34098 sed 's/^/| /' conftest.$ac_ext >&5
34099
34100 ac_cv_lib_rt_sched_yield=no
34101 fi
34102 rm -f conftest.err conftest.$ac_objext \
34103       conftest$ac_exeext conftest.$ac_ext
34104 LIBS=$ac_check_lib_save_LIBS
34105 fi
34106 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34107 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34108 if test $ac_cv_lib_rt_sched_yield = yes; then
34109   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34110
34111 cat >>confdefs.h <<\_ACEOF
34112 #define HAVE_SCHED_YIELD 1
34113 _ACEOF
34114
34115                                         ac_cv_func_sched_yield=yes
34116 else
34117   ac_cv_func_sched_yield=no
34118 fi
34119
34120                         fi
34121                         if test $ac_cv_func_sched_yield = no -a \
34122                                 $ac_cv_func_pthread_yield = no -a \
34123                                 "$ac_cv_func_thr_yield" = no ; then
34124                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34125 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34126                         fi
34127
34128
34129
34130 for ac_func in pthread_kill pthread_rwlock_destroy
34131 do
34132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34133 echo "$as_me:$LINENO: checking for $ac_func" >&5
34134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34135 if eval "test \"\${$as_ac_var+set}\" = set"; then
34136   echo $ECHO_N "(cached) $ECHO_C" >&6
34137 else
34138   cat >conftest.$ac_ext <<_ACEOF
34139 /* confdefs.h.  */
34140 _ACEOF
34141 cat confdefs.h >>conftest.$ac_ext
34142 cat >>conftest.$ac_ext <<_ACEOF
34143 /* end confdefs.h.  */
34144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34146 #define $ac_func innocuous_$ac_func
34147
34148 /* System header to define __stub macros and hopefully few prototypes,
34149     which can conflict with char $ac_func (); below.
34150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34151     <limits.h> exists even on freestanding compilers.  */
34152
34153 #ifdef __STDC__
34154 # include <limits.h>
34155 #else
34156 # include <assert.h>
34157 #endif
34158
34159 #undef $ac_func
34160
34161 /* Override any gcc2 internal prototype to avoid an error.  */
34162 #ifdef __cplusplus
34163 extern "C"
34164 {
34165 #endif
34166 /* We use char because int might match the return type of a gcc2
34167    builtin and then its argument prototype would still apply.  */
34168 char $ac_func ();
34169 /* The GNU C library defines this for functions which it implements
34170     to always fail with ENOSYS.  Some functions are actually named
34171     something starting with __ and the normal name is an alias.  */
34172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34173 choke me
34174 #else
34175 char (*f) () = $ac_func;
34176 #endif
34177 #ifdef __cplusplus
34178 }
34179 #endif
34180
34181 int
34182 main ()
34183 {
34184 return f != $ac_func;
34185   ;
34186   return 0;
34187 }
34188 _ACEOF
34189 rm -f conftest.$ac_objext conftest$ac_exeext
34190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34191   (eval $ac_link) 2>conftest.er1
34192   ac_status=$?
34193   grep -v '^ *+' conftest.er1 >conftest.err
34194   rm -f conftest.er1
34195   cat conftest.err >&5
34196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34197   (exit $ac_status); } &&
34198          { ac_try='test -z "$ac_c_werror_flag"
34199                          || test ! -s conftest.err'
34200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34201   (eval $ac_try) 2>&5
34202   ac_status=$?
34203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204   (exit $ac_status); }; } &&
34205          { ac_try='test -s conftest$ac_exeext'
34206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34207   (eval $ac_try) 2>&5
34208   ac_status=$?
34209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34210   (exit $ac_status); }; }; then
34211   eval "$as_ac_var=yes"
34212 else
34213   echo "$as_me: failed program was:" >&5
34214 sed 's/^/| /' conftest.$ac_ext >&5
34215
34216 eval "$as_ac_var=no"
34217 fi
34218 rm -f conftest.err conftest.$ac_objext \
34219       conftest$ac_exeext conftest.$ac_ext
34220 fi
34221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34223 if test `eval echo '${'$as_ac_var'}'` = yes; then
34224   cat >>confdefs.h <<_ACEOF
34225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34226 _ACEOF
34227
34228 fi
34229 done
34230
34231
34232                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34233 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34234 if test "${ol_cv_func_pthread_detach+set}" = set; then
34235   echo $ECHO_N "(cached) $ECHO_C" >&6
34236 else
34237
34238                                                                 cat >conftest.$ac_ext <<_ACEOF
34239 /* confdefs.h.  */
34240 _ACEOF
34241 cat confdefs.h >>conftest.$ac_ext
34242 cat >>conftest.$ac_ext <<_ACEOF
34243 /* end confdefs.h.  */
34244
34245 #include <pthread.h>
34246 #ifndef NULL
34247 #define NULL (void*)0
34248 #endif
34249
34250 int
34251 main ()
34252 {
34253 pthread_detach(NULL);
34254   ;
34255   return 0;
34256 }
34257 _ACEOF
34258 rm -f conftest.$ac_objext conftest$ac_exeext
34259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34260   (eval $ac_link) 2>conftest.er1
34261   ac_status=$?
34262   grep -v '^ *+' conftest.er1 >conftest.err
34263   rm -f conftest.er1
34264   cat conftest.err >&5
34265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34266   (exit $ac_status); } &&
34267          { ac_try='test -z "$ac_c_werror_flag"
34268                          || test ! -s conftest.err'
34269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34270   (eval $ac_try) 2>&5
34271   ac_status=$?
34272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34273   (exit $ac_status); }; } &&
34274          { ac_try='test -s conftest$ac_exeext'
34275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34276   (eval $ac_try) 2>&5
34277   ac_status=$?
34278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34279   (exit $ac_status); }; }; then
34280   ol_cv_func_pthread_detach=yes
34281 else
34282   echo "$as_me: failed program was:" >&5
34283 sed 's/^/| /' conftest.$ac_ext >&5
34284
34285 ol_cv_func_pthread_detach=no
34286 fi
34287 rm -f conftest.err conftest.$ac_objext \
34288       conftest$ac_exeext conftest.$ac_ext
34289
34290 fi
34291 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34292 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34293
34294                         if test $ol_cv_func_pthread_detach = no ; then
34295                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34296 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34297    { (exit 1); exit 1; }; }
34298                         fi
34299
34300
34301 cat >>confdefs.h <<\_ACEOF
34302 #define HAVE_PTHREAD_DETACH 1
34303 _ACEOF
34304
34305
34306
34307
34308
34309
34310 for ac_func in \
34311                                 pthread_setconcurrency \
34312                                 pthread_getconcurrency \
34313                                 thr_setconcurrency \
34314                                 thr_getconcurrency \
34315
34316 do
34317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34318 echo "$as_me:$LINENO: checking for $ac_func" >&5
34319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34320 if eval "test \"\${$as_ac_var+set}\" = set"; then
34321   echo $ECHO_N "(cached) $ECHO_C" >&6
34322 else
34323   cat >conftest.$ac_ext <<_ACEOF
34324 /* confdefs.h.  */
34325 _ACEOF
34326 cat confdefs.h >>conftest.$ac_ext
34327 cat >>conftest.$ac_ext <<_ACEOF
34328 /* end confdefs.h.  */
34329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34331 #define $ac_func innocuous_$ac_func
34332
34333 /* System header to define __stub macros and hopefully few prototypes,
34334     which can conflict with char $ac_func (); below.
34335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34336     <limits.h> exists even on freestanding compilers.  */
34337
34338 #ifdef __STDC__
34339 # include <limits.h>
34340 #else
34341 # include <assert.h>
34342 #endif
34343
34344 #undef $ac_func
34345
34346 /* Override any gcc2 internal prototype to avoid an error.  */
34347 #ifdef __cplusplus
34348 extern "C"
34349 {
34350 #endif
34351 /* We use char because int might match the return type of a gcc2
34352    builtin and then its argument prototype would still apply.  */
34353 char $ac_func ();
34354 /* The GNU C library defines this for functions which it implements
34355     to always fail with ENOSYS.  Some functions are actually named
34356     something starting with __ and the normal name is an alias.  */
34357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34358 choke me
34359 #else
34360 char (*f) () = $ac_func;
34361 #endif
34362 #ifdef __cplusplus
34363 }
34364 #endif
34365
34366 int
34367 main ()
34368 {
34369 return f != $ac_func;
34370   ;
34371   return 0;
34372 }
34373 _ACEOF
34374 rm -f conftest.$ac_objext conftest$ac_exeext
34375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34376   (eval $ac_link) 2>conftest.er1
34377   ac_status=$?
34378   grep -v '^ *+' conftest.er1 >conftest.err
34379   rm -f conftest.er1
34380   cat conftest.err >&5
34381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34382   (exit $ac_status); } &&
34383          { ac_try='test -z "$ac_c_werror_flag"
34384                          || test ! -s conftest.err'
34385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34386   (eval $ac_try) 2>&5
34387   ac_status=$?
34388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34389   (exit $ac_status); }; } &&
34390          { ac_try='test -s conftest$ac_exeext'
34391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34392   (eval $ac_try) 2>&5
34393   ac_status=$?
34394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34395   (exit $ac_status); }; }; then
34396   eval "$as_ac_var=yes"
34397 else
34398   echo "$as_me: failed program was:" >&5
34399 sed 's/^/| /' conftest.$ac_ext >&5
34400
34401 eval "$as_ac_var=no"
34402 fi
34403 rm -f conftest.err conftest.$ac_objext \
34404       conftest$ac_exeext conftest.$ac_ext
34405 fi
34406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34408 if test `eval echo '${'$as_ac_var'}'` = yes; then
34409   cat >>confdefs.h <<_ACEOF
34410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34411 _ACEOF
34412
34413 fi
34414 done
34415
34416
34417
34418
34419 for ac_func in pthread_kill_other_threads_np
34420 do
34421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34422 echo "$as_me:$LINENO: checking for $ac_func" >&5
34423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34424 if eval "test \"\${$as_ac_var+set}\" = set"; then
34425   echo $ECHO_N "(cached) $ECHO_C" >&6
34426 else
34427   cat >conftest.$ac_ext <<_ACEOF
34428 /* confdefs.h.  */
34429 _ACEOF
34430 cat confdefs.h >>conftest.$ac_ext
34431 cat >>conftest.$ac_ext <<_ACEOF
34432 /* end confdefs.h.  */
34433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34435 #define $ac_func innocuous_$ac_func
34436
34437 /* System header to define __stub macros and hopefully few prototypes,
34438     which can conflict with char $ac_func (); below.
34439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34440     <limits.h> exists even on freestanding compilers.  */
34441
34442 #ifdef __STDC__
34443 # include <limits.h>
34444 #else
34445 # include <assert.h>
34446 #endif
34447
34448 #undef $ac_func
34449
34450 /* Override any gcc2 internal prototype to avoid an error.  */
34451 #ifdef __cplusplus
34452 extern "C"
34453 {
34454 #endif
34455 /* We use char because int might match the return type of a gcc2
34456    builtin and then its argument prototype would still apply.  */
34457 char $ac_func ();
34458 /* The GNU C library defines this for functions which it implements
34459     to always fail with ENOSYS.  Some functions are actually named
34460     something starting with __ and the normal name is an alias.  */
34461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34462 choke me
34463 #else
34464 char (*f) () = $ac_func;
34465 #endif
34466 #ifdef __cplusplus
34467 }
34468 #endif
34469
34470 int
34471 main ()
34472 {
34473 return f != $ac_func;
34474   ;
34475   return 0;
34476 }
34477 _ACEOF
34478 rm -f conftest.$ac_objext conftest$ac_exeext
34479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34480   (eval $ac_link) 2>conftest.er1
34481   ac_status=$?
34482   grep -v '^ *+' conftest.er1 >conftest.err
34483   rm -f conftest.er1
34484   cat conftest.err >&5
34485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34486   (exit $ac_status); } &&
34487          { ac_try='test -z "$ac_c_werror_flag"
34488                          || test ! -s conftest.err'
34489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34490   (eval $ac_try) 2>&5
34491   ac_status=$?
34492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34493   (exit $ac_status); }; } &&
34494          { ac_try='test -s conftest$ac_exeext'
34495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34496   (eval $ac_try) 2>&5
34497   ac_status=$?
34498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34499   (exit $ac_status); }; }; then
34500   eval "$as_ac_var=yes"
34501 else
34502   echo "$as_me: failed program was:" >&5
34503 sed 's/^/| /' conftest.$ac_ext >&5
34504
34505 eval "$as_ac_var=no"
34506 fi
34507 rm -f conftest.err conftest.$ac_objext \
34508       conftest$ac_exeext conftest.$ac_ext
34509 fi
34510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34512 if test `eval echo '${'$as_ac_var'}'` = yes; then
34513   cat >>confdefs.h <<_ACEOF
34514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34515 _ACEOF
34516
34517 fi
34518 done
34519
34520         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34521 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34522 if test "${ol_cv_sys_linux_threads+set}" = set; then
34523   echo $ECHO_N "(cached) $ECHO_C" >&6
34524 else
34525   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34526 fi
34527 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34528 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34529
34530
34531
34532
34533         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34534 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34535 if test "${ol_cv_linux_threads+set}" = set; then
34536   echo $ECHO_N "(cached) $ECHO_C" >&6
34537 else
34538
34539                 if test $ol_cv_header_linux_threads = yes -a \
34540                         $ol_cv_sys_linux_threads = yes; then
34541                         ol_cv_linux_threads=yes
34542                 elif test $ol_cv_header_linux_threads = no -a \
34543                         $ol_cv_sys_linux_threads = no; then
34544                         ol_cv_linux_threads=no
34545                 else
34546                         ol_cv_linux_threads=error
34547                 fi
34548
34549 fi
34550 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34551 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34552
34553
34554                         if test $ol_cv_linux_threads = error; then
34555                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34556 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34557    { (exit 1); exit 1; }; };
34558                         fi
34559
34560                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34561 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34562 if test "${ol_cv_pthread_create_works+set}" = set; then
34563   echo $ECHO_N "(cached) $ECHO_C" >&6
34564 else
34565
34566                         if test "$cross_compiling" = yes; then
34567                                 ol_cv_pthread_create_works=yes
34568 else
34569   cat >conftest.$ac_ext <<_ACEOF
34570 /* confdefs.h.  */
34571 _ACEOF
34572 cat confdefs.h >>conftest.$ac_ext
34573 cat >>conftest.$ac_ext <<_ACEOF
34574 /* end confdefs.h.  */
34575 OL_PTHREAD_TEST_PROGRAM
34576 _ACEOF
34577 rm -f conftest$ac_exeext
34578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34579   (eval $ac_link) 2>&5
34580   ac_status=$?
34581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34582   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34584   (eval $ac_try) 2>&5
34585   ac_status=$?
34586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34587   (exit $ac_status); }; }; then
34588   ol_cv_pthread_create_works=yes
34589 else
34590   echo "$as_me: program exited with status $ac_status" >&5
34591 echo "$as_me: failed program was:" >&5
34592 sed 's/^/| /' conftest.$ac_ext >&5
34593
34594 ( exit $ac_status )
34595 ol_cv_pthread_create_works=no
34596 fi
34597 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34598 fi
34599 fi
34600 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
34601 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
34602
34603                         if test $ol_cv_pthread_create_works = no ; then
34604                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
34605 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
34606    { (exit 1); exit 1; }; }
34607                         fi
34608
34609                                                 if test $ol_with_yielding_select = auto ; then
34610                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
34611 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
34612 if test "${ol_cv_pthread_select_yields+set}" = set; then
34613   echo $ECHO_N "(cached) $ECHO_C" >&6
34614 else
34615
34616                                 if test "$cross_compiling" = yes; then
34617   ol_cv_pthread_select_yields=cross
34618 else
34619   cat >conftest.$ac_ext <<_ACEOF
34620 /* confdefs.h.  */
34621 _ACEOF
34622 cat confdefs.h >>conftest.$ac_ext
34623 cat >>conftest.$ac_ext <<_ACEOF
34624 /* end confdefs.h.  */
34625
34626 #include <sys/types.h>
34627 #include <sys/time.h>
34628 #include <unistd.h>
34629 #include <pthread.h>
34630 #ifndef NULL
34631 #define NULL (void*) 0
34632 #endif
34633
34634 static int fildes[2];
34635
34636 static void *task(p)
34637         void *p;
34638 {
34639         int i;
34640         struct timeval tv;
34641
34642         fd_set rfds;
34643
34644         tv.tv_sec=10;
34645         tv.tv_usec=0;
34646
34647         FD_ZERO(&rfds);
34648         FD_SET(fildes[0], &rfds);
34649
34650         /* we're not interested in any fds */
34651         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
34652
34653         if(i < 0) {
34654                 perror("select");
34655                 exit(10);
34656         }
34657
34658         exit(0); /* if we exit here, the select blocked the whole process */
34659 }
34660
34661 int main(argc, argv)
34662         int argc;
34663         char **argv;
34664 {
34665         pthread_t t;
34666
34667         /* create a pipe to select */
34668         if(pipe(&fildes[0])) {
34669                 perror("select");
34670                 exit(1);
34671         }
34672
34673 #ifdef HAVE_PTHREAD_SETCONCURRENCY
34674         (void) pthread_setconcurrency(2);
34675 #else
34676 #ifdef HAVE_THR_SETCONCURRENCY
34677         /* Set Solaris LWP concurrency to 2 */
34678         thr_setconcurrency(2);
34679 #endif
34680 #endif
34681
34682 #if HAVE_PTHREADS < 6
34683         pthread_create(&t, pthread_attr_default, task, NULL);
34684 #else
34685         pthread_create(&t, NULL, task, NULL);
34686 #endif
34687
34688         /* make sure task runs first */
34689 #if HAVE_THR_YIELD
34690         thr_yield();
34691 #elif defined( HAVE_SCHED_YIELD )
34692         sched_yield();
34693 #elif defined( HAVE_PTHREAD_YIELD )
34694         pthread_yield();
34695 #endif
34696
34697         exit(2);
34698 }
34699 _ACEOF
34700 rm -f conftest$ac_exeext
34701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34702   (eval $ac_link) 2>&5
34703   ac_status=$?
34704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34705   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34707   (eval $ac_try) 2>&5
34708   ac_status=$?
34709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34710   (exit $ac_status); }; }; then
34711   ol_cv_pthread_select_yields=no
34712 else
34713   echo "$as_me: program exited with status $ac_status" >&5
34714 echo "$as_me: failed program was:" >&5
34715 sed 's/^/| /' conftest.$ac_ext >&5
34716
34717 ( exit $ac_status )
34718 ol_cv_pthread_select_yields=yes
34719 fi
34720 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34721 fi
34722 fi
34723 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
34724 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
34725
34726                                 if test $ol_cv_pthread_select_yields = cross ; then
34727                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
34728 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
34729    { (exit 1); exit 1; }; }
34730                                 fi
34731
34732                                 if test $ol_cv_pthread_select_yields = yes ; then
34733                                         ol_with_yielding_select=yes
34734                                 fi
34735                         fi
34736
34737                                                 CPPFLAGS="$save_CPPFLAGS"
34738                         LIBS="$save_LIBS"
34739                 else
34740                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
34741 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
34742    { (exit 1); exit 1; }; }
34743                 fi
34744         fi
34745
34746         if test $ol_with_threads = posix ; then
34747                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
34748 echo "$as_me: error: could not locate POSIX Threads" >&2;}
34749    { (exit 1); exit 1; }; }
34750         fi
34751 fi
34752
34753 if test $ol_with_threads = auto -o $ol_with_threads = yes \
34754         -o $ol_with_threads = mach ; then
34755
34756
34757
34758 for ac_header in mach/cthreads.h cthreads.h
34759 do
34760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34762   echo "$as_me:$LINENO: checking for $ac_header" >&5
34763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34765   echo $ECHO_N "(cached) $ECHO_C" >&6
34766 fi
34767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34769 else
34770   # Is the header compilable?
34771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34773 cat >conftest.$ac_ext <<_ACEOF
34774 /* confdefs.h.  */
34775 _ACEOF
34776 cat confdefs.h >>conftest.$ac_ext
34777 cat >>conftest.$ac_ext <<_ACEOF
34778 /* end confdefs.h.  */
34779 $ac_includes_default
34780 #include <$ac_header>
34781 _ACEOF
34782 rm -f conftest.$ac_objext
34783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34784   (eval $ac_compile) 2>conftest.er1
34785   ac_status=$?
34786   grep -v '^ *+' conftest.er1 >conftest.err
34787   rm -f conftest.er1
34788   cat conftest.err >&5
34789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34790   (exit $ac_status); } &&
34791          { ac_try='test -z "$ac_c_werror_flag"
34792                          || test ! -s conftest.err'
34793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34794   (eval $ac_try) 2>&5
34795   ac_status=$?
34796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34797   (exit $ac_status); }; } &&
34798          { ac_try='test -s conftest.$ac_objext'
34799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34800   (eval $ac_try) 2>&5
34801   ac_status=$?
34802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34803   (exit $ac_status); }; }; then
34804   ac_header_compiler=yes
34805 else
34806   echo "$as_me: failed program was:" >&5
34807 sed 's/^/| /' conftest.$ac_ext >&5
34808
34809 ac_header_compiler=no
34810 fi
34811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34813 echo "${ECHO_T}$ac_header_compiler" >&6
34814
34815 # Is the header present?
34816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34818 cat >conftest.$ac_ext <<_ACEOF
34819 /* confdefs.h.  */
34820 _ACEOF
34821 cat confdefs.h >>conftest.$ac_ext
34822 cat >>conftest.$ac_ext <<_ACEOF
34823 /* end confdefs.h.  */
34824 #include <$ac_header>
34825 _ACEOF
34826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34827   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34828   ac_status=$?
34829   grep -v '^ *+' conftest.er1 >conftest.err
34830   rm -f conftest.er1
34831   cat conftest.err >&5
34832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34833   (exit $ac_status); } >/dev/null; then
34834   if test -s conftest.err; then
34835     ac_cpp_err=$ac_c_preproc_warn_flag
34836     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34837   else
34838     ac_cpp_err=
34839   fi
34840 else
34841   ac_cpp_err=yes
34842 fi
34843 if test -z "$ac_cpp_err"; then
34844   ac_header_preproc=yes
34845 else
34846   echo "$as_me: failed program was:" >&5
34847 sed 's/^/| /' conftest.$ac_ext >&5
34848
34849   ac_header_preproc=no
34850 fi
34851 rm -f conftest.err conftest.$ac_ext
34852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34853 echo "${ECHO_T}$ac_header_preproc" >&6
34854
34855 # So?  What about this header?
34856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34857   yes:no: )
34858     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34860     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34862     ac_header_preproc=yes
34863     ;;
34864   no:yes:* )
34865     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34867     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34868 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34869     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34871     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34872 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34873     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34875     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34877     (
34878       cat <<\_ASBOX
34879 ## ------------------------------------------ ##
34880 ## Report this to the AC_PACKAGE_NAME lists.  ##
34881 ## ------------------------------------------ ##
34882 _ASBOX
34883     ) |
34884       sed "s/^/$as_me: WARNING:     /" >&2
34885     ;;
34886 esac
34887 echo "$as_me:$LINENO: checking for $ac_header" >&5
34888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34890   echo $ECHO_N "(cached) $ECHO_C" >&6
34891 else
34892   eval "$as_ac_Header=\$ac_header_preproc"
34893 fi
34894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34896
34897 fi
34898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34899   cat >>confdefs.h <<_ACEOF
34900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34901 _ACEOF
34902
34903 fi
34904
34905 done
34906
34907         if test $ac_cv_header_mach_cthreads_h = yes ; then
34908                 ol_with_threads=found
34909
34910                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
34911 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
34912 if test "${ac_cv_func_cthread_fork+set}" = set; then
34913   echo $ECHO_N "(cached) $ECHO_C" >&6
34914 else
34915   cat >conftest.$ac_ext <<_ACEOF
34916 /* confdefs.h.  */
34917 _ACEOF
34918 cat confdefs.h >>conftest.$ac_ext
34919 cat >>conftest.$ac_ext <<_ACEOF
34920 /* end confdefs.h.  */
34921 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
34922    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34923 #define cthread_fork innocuous_cthread_fork
34924
34925 /* System header to define __stub macros and hopefully few prototypes,
34926     which can conflict with char cthread_fork (); below.
34927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34928     <limits.h> exists even on freestanding compilers.  */
34929
34930 #ifdef __STDC__
34931 # include <limits.h>
34932 #else
34933 # include <assert.h>
34934 #endif
34935
34936 #undef cthread_fork
34937
34938 /* Override any gcc2 internal prototype to avoid an error.  */
34939 #ifdef __cplusplus
34940 extern "C"
34941 {
34942 #endif
34943 /* We use char because int might match the return type of a gcc2
34944    builtin and then its argument prototype would still apply.  */
34945 char cthread_fork ();
34946 /* The GNU C library defines this for functions which it implements
34947     to always fail with ENOSYS.  Some functions are actually named
34948     something starting with __ and the normal name is an alias.  */
34949 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
34950 choke me
34951 #else
34952 char (*f) () = cthread_fork;
34953 #endif
34954 #ifdef __cplusplus
34955 }
34956 #endif
34957
34958 int
34959 main ()
34960 {
34961 return f != cthread_fork;
34962   ;
34963   return 0;
34964 }
34965 _ACEOF
34966 rm -f conftest.$ac_objext conftest$ac_exeext
34967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34968   (eval $ac_link) 2>conftest.er1
34969   ac_status=$?
34970   grep -v '^ *+' conftest.er1 >conftest.err
34971   rm -f conftest.er1
34972   cat conftest.err >&5
34973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34974   (exit $ac_status); } &&
34975          { ac_try='test -z "$ac_c_werror_flag"
34976                          || test ! -s conftest.err'
34977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34978   (eval $ac_try) 2>&5
34979   ac_status=$?
34980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34981   (exit $ac_status); }; } &&
34982          { ac_try='test -s conftest$ac_exeext'
34983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34984   (eval $ac_try) 2>&5
34985   ac_status=$?
34986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34987   (exit $ac_status); }; }; then
34988   ac_cv_func_cthread_fork=yes
34989 else
34990   echo "$as_me: failed program was:" >&5
34991 sed 's/^/| /' conftest.$ac_ext >&5
34992
34993 ac_cv_func_cthread_fork=no
34994 fi
34995 rm -f conftest.err conftest.$ac_objext \
34996       conftest$ac_exeext conftest.$ac_ext
34997 fi
34998 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
34999 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35000 if test $ac_cv_func_cthread_fork = yes; then
35001   ol_link_threads=yes
35002 fi
35003
35004
35005                 if test $ol_link_threads = no ; then
35006                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35007 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35008 if test "${ol_cv_cthread_all_load+set}" = set; then
35009   echo $ECHO_N "(cached) $ECHO_C" >&6
35010 else
35011
35012                                                                 save_LIBS="$LIBS"
35013                                 LIBS="-all_load $LIBS"
35014                                 cat >conftest.$ac_ext <<_ACEOF
35015 /* confdefs.h.  */
35016 _ACEOF
35017 cat confdefs.h >>conftest.$ac_ext
35018 cat >>conftest.$ac_ext <<_ACEOF
35019 /* end confdefs.h.  */
35020 #include <mach/cthreads.h>
35021 int
35022 main ()
35023 {
35024
35025                                         cthread_fork((void *)0, (void *)0);
35026
35027   ;
35028   return 0;
35029 }
35030 _ACEOF
35031 rm -f conftest.$ac_objext conftest$ac_exeext
35032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35033   (eval $ac_link) 2>conftest.er1
35034   ac_status=$?
35035   grep -v '^ *+' conftest.er1 >conftest.err
35036   rm -f conftest.er1
35037   cat conftest.err >&5
35038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35039   (exit $ac_status); } &&
35040          { ac_try='test -z "$ac_c_werror_flag"
35041                          || test ! -s conftest.err'
35042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35043   (eval $ac_try) 2>&5
35044   ac_status=$?
35045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35046   (exit $ac_status); }; } &&
35047          { ac_try='test -s conftest$ac_exeext'
35048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35049   (eval $ac_try) 2>&5
35050   ac_status=$?
35051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35052   (exit $ac_status); }; }; then
35053   ol_cv_cthread_all_load=yes
35054 else
35055   echo "$as_me: failed program was:" >&5
35056 sed 's/^/| /' conftest.$ac_ext >&5
35057
35058 ol_cv_cthread_all_load=no
35059 fi
35060 rm -f conftest.err conftest.$ac_objext \
35061       conftest$ac_exeext conftest.$ac_ext
35062                                                                 LIBS="$save_LIBS"
35063
35064 fi
35065 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35066 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35067
35068                         if test $ol_cv_cthread_all_load = yes ; then
35069                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35070                                 ol_link_threads=mach
35071                                 ol_with_threads=found
35072                         fi
35073                 fi
35074
35075         elif test $ac_cv_header_cthreads_h = yes ; then
35076
35077                 ol_with_threads=found
35078
35079                                 save_LIBS="$LIBS"
35080                 LIBS="$LIBS -lthreads"
35081                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35082 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35083 if test "${ac_cv_func_cthread_fork+set}" = set; then
35084   echo $ECHO_N "(cached) $ECHO_C" >&6
35085 else
35086   cat >conftest.$ac_ext <<_ACEOF
35087 /* confdefs.h.  */
35088 _ACEOF
35089 cat confdefs.h >>conftest.$ac_ext
35090 cat >>conftest.$ac_ext <<_ACEOF
35091 /* end confdefs.h.  */
35092 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35094 #define cthread_fork innocuous_cthread_fork
35095
35096 /* System header to define __stub macros and hopefully few prototypes,
35097     which can conflict with char cthread_fork (); below.
35098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35099     <limits.h> exists even on freestanding compilers.  */
35100
35101 #ifdef __STDC__
35102 # include <limits.h>
35103 #else
35104 # include <assert.h>
35105 #endif
35106
35107 #undef cthread_fork
35108
35109 /* Override any gcc2 internal prototype to avoid an error.  */
35110 #ifdef __cplusplus
35111 extern "C"
35112 {
35113 #endif
35114 /* We use char because int might match the return type of a gcc2
35115    builtin and then its argument prototype would still apply.  */
35116 char cthread_fork ();
35117 /* The GNU C library defines this for functions which it implements
35118     to always fail with ENOSYS.  Some functions are actually named
35119     something starting with __ and the normal name is an alias.  */
35120 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35121 choke me
35122 #else
35123 char (*f) () = cthread_fork;
35124 #endif
35125 #ifdef __cplusplus
35126 }
35127 #endif
35128
35129 int
35130 main ()
35131 {
35132 return f != cthread_fork;
35133   ;
35134   return 0;
35135 }
35136 _ACEOF
35137 rm -f conftest.$ac_objext conftest$ac_exeext
35138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35139   (eval $ac_link) 2>conftest.er1
35140   ac_status=$?
35141   grep -v '^ *+' conftest.er1 >conftest.err
35142   rm -f conftest.er1
35143   cat conftest.err >&5
35144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35145   (exit $ac_status); } &&
35146          { ac_try='test -z "$ac_c_werror_flag"
35147                          || test ! -s conftest.err'
35148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35149   (eval $ac_try) 2>&5
35150   ac_status=$?
35151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35152   (exit $ac_status); }; } &&
35153          { ac_try='test -s conftest$ac_exeext'
35154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35155   (eval $ac_try) 2>&5
35156   ac_status=$?
35157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35158   (exit $ac_status); }; }; then
35159   ac_cv_func_cthread_fork=yes
35160 else
35161   echo "$as_me: failed program was:" >&5
35162 sed 's/^/| /' conftest.$ac_ext >&5
35163
35164 ac_cv_func_cthread_fork=no
35165 fi
35166 rm -f conftest.err conftest.$ac_objext \
35167       conftest$ac_exeext conftest.$ac_ext
35168 fi
35169 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35170 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35171 if test $ac_cv_func_cthread_fork = yes; then
35172   ol_link_threads=yes
35173 fi
35174
35175                 LIBS="$save_LIBS"
35176
35177                 if test $ol_link_threads = yes ; then
35178                         LTHREAD_LIBS="-lthreads"
35179                         ol_link_threads=mach
35180                         ol_with_threads=found
35181                 else
35182                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35183 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35184    { (exit 1); exit 1; }; }
35185                 fi
35186
35187         elif test $ol_with_threads = mach ; then
35188                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35189 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35190    { (exit 1); exit 1; }; }
35191         fi
35192
35193         if test $ol_link_threads = mach ; then
35194
35195 cat >>confdefs.h <<\_ACEOF
35196 #define HAVE_MACH_CTHREADS 1
35197 _ACEOF
35198
35199         elif test $ol_with_threads = found ; then
35200                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35201 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35202    { (exit 1); exit 1; }; }
35203         fi
35204 fi
35205
35206 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35207         -o $ol_with_threads = pth ; then
35208
35209
35210 for ac_header in pth.h
35211 do
35212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35214   echo "$as_me:$LINENO: checking for $ac_header" >&5
35215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35217   echo $ECHO_N "(cached) $ECHO_C" >&6
35218 fi
35219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35221 else
35222   # Is the header compilable?
35223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35225 cat >conftest.$ac_ext <<_ACEOF
35226 /* confdefs.h.  */
35227 _ACEOF
35228 cat confdefs.h >>conftest.$ac_ext
35229 cat >>conftest.$ac_ext <<_ACEOF
35230 /* end confdefs.h.  */
35231 $ac_includes_default
35232 #include <$ac_header>
35233 _ACEOF
35234 rm -f conftest.$ac_objext
35235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35236   (eval $ac_compile) 2>conftest.er1
35237   ac_status=$?
35238   grep -v '^ *+' conftest.er1 >conftest.err
35239   rm -f conftest.er1
35240   cat conftest.err >&5
35241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35242   (exit $ac_status); } &&
35243          { ac_try='test -z "$ac_c_werror_flag"
35244                          || test ! -s conftest.err'
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); }; } &&
35250          { ac_try='test -s conftest.$ac_objext'
35251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35252   (eval $ac_try) 2>&5
35253   ac_status=$?
35254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35255   (exit $ac_status); }; }; then
35256   ac_header_compiler=yes
35257 else
35258   echo "$as_me: failed program was:" >&5
35259 sed 's/^/| /' conftest.$ac_ext >&5
35260
35261 ac_header_compiler=no
35262 fi
35263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35265 echo "${ECHO_T}$ac_header_compiler" >&6
35266
35267 # Is the header present?
35268 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35270 cat >conftest.$ac_ext <<_ACEOF
35271 /* confdefs.h.  */
35272 _ACEOF
35273 cat confdefs.h >>conftest.$ac_ext
35274 cat >>conftest.$ac_ext <<_ACEOF
35275 /* end confdefs.h.  */
35276 #include <$ac_header>
35277 _ACEOF
35278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35279   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35280   ac_status=$?
35281   grep -v '^ *+' conftest.er1 >conftest.err
35282   rm -f conftest.er1
35283   cat conftest.err >&5
35284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35285   (exit $ac_status); } >/dev/null; then
35286   if test -s conftest.err; then
35287     ac_cpp_err=$ac_c_preproc_warn_flag
35288     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35289   else
35290     ac_cpp_err=
35291   fi
35292 else
35293   ac_cpp_err=yes
35294 fi
35295 if test -z "$ac_cpp_err"; then
35296   ac_header_preproc=yes
35297 else
35298   echo "$as_me: failed program was:" >&5
35299 sed 's/^/| /' conftest.$ac_ext >&5
35300
35301   ac_header_preproc=no
35302 fi
35303 rm -f conftest.err conftest.$ac_ext
35304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35305 echo "${ECHO_T}$ac_header_preproc" >&6
35306
35307 # So?  What about this header?
35308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35309   yes:no: )
35310     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35314     ac_header_preproc=yes
35315     ;;
35316   no:yes:* )
35317     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35319     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35320 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35321     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35323     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35324 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35327     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35329     (
35330       cat <<\_ASBOX
35331 ## ------------------------------------------ ##
35332 ## Report this to the AC_PACKAGE_NAME lists.  ##
35333 ## ------------------------------------------ ##
35334 _ASBOX
35335     ) |
35336       sed "s/^/$as_me: WARNING:     /" >&2
35337     ;;
35338 esac
35339 echo "$as_me:$LINENO: checking for $ac_header" >&5
35340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35342   echo $ECHO_N "(cached) $ECHO_C" >&6
35343 else
35344   eval "$as_ac_Header=\$ac_header_preproc"
35345 fi
35346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35348
35349 fi
35350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35351   cat >>confdefs.h <<_ACEOF
35352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35353 _ACEOF
35354
35355 fi
35356
35357 done
35358
35359
35360         if test $ac_cv_header_pth_h = yes ; then
35361                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35362 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35363 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35364   echo $ECHO_N "(cached) $ECHO_C" >&6
35365 else
35366   ac_check_lib_save_LIBS=$LIBS
35367 LIBS="-lpth  $LIBS"
35368 cat >conftest.$ac_ext <<_ACEOF
35369 /* confdefs.h.  */
35370 _ACEOF
35371 cat confdefs.h >>conftest.$ac_ext
35372 cat >>conftest.$ac_ext <<_ACEOF
35373 /* end confdefs.h.  */
35374
35375 /* Override any gcc2 internal prototype to avoid an error.  */
35376 #ifdef __cplusplus
35377 extern "C"
35378 #endif
35379 /* We use char because int might match the return type of a gcc2
35380    builtin and then its argument prototype would still apply.  */
35381 char pth_version ();
35382 int
35383 main ()
35384 {
35385 pth_version ();
35386   ;
35387   return 0;
35388 }
35389 _ACEOF
35390 rm -f conftest.$ac_objext conftest$ac_exeext
35391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35392   (eval $ac_link) 2>conftest.er1
35393   ac_status=$?
35394   grep -v '^ *+' conftest.er1 >conftest.err
35395   rm -f conftest.er1
35396   cat conftest.err >&5
35397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35398   (exit $ac_status); } &&
35399          { ac_try='test -z "$ac_c_werror_flag"
35400                          || test ! -s conftest.err'
35401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35402   (eval $ac_try) 2>&5
35403   ac_status=$?
35404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35405   (exit $ac_status); }; } &&
35406          { ac_try='test -s conftest$ac_exeext'
35407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35408   (eval $ac_try) 2>&5
35409   ac_status=$?
35410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35411   (exit $ac_status); }; }; then
35412   ac_cv_lib_pth_pth_version=yes
35413 else
35414   echo "$as_me: failed program was:" >&5
35415 sed 's/^/| /' conftest.$ac_ext >&5
35416
35417 ac_cv_lib_pth_pth_version=no
35418 fi
35419 rm -f conftest.err conftest.$ac_objext \
35420       conftest$ac_exeext conftest.$ac_ext
35421 LIBS=$ac_check_lib_save_LIBS
35422 fi
35423 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35424 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35425 if test $ac_cv_lib_pth_pth_version = yes; then
35426   have_pth=yes
35427 else
35428   have_pth=no
35429 fi
35430
35431
35432                 if test $have_pth = yes ; then
35433
35434 cat >>confdefs.h <<\_ACEOF
35435 #define HAVE_GNU_PTH 1
35436 _ACEOF
35437
35438                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35439                         ol_link_threads=pth
35440                         ol_with_threads=found
35441
35442                         if test $ol_with_yielding_select = auto ; then
35443                                 ol_with_yielding_select=yes
35444                         fi
35445                 fi
35446         fi
35447 fi
35448
35449 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35450         -o $ol_with_threads = lwp ; then
35451
35452
35453
35454 for ac_header in thread.h synch.h
35455 do
35456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35458   echo "$as_me:$LINENO: checking for $ac_header" >&5
35459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35461   echo $ECHO_N "(cached) $ECHO_C" >&6
35462 fi
35463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35465 else
35466   # Is the header compilable?
35467 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35469 cat >conftest.$ac_ext <<_ACEOF
35470 /* confdefs.h.  */
35471 _ACEOF
35472 cat confdefs.h >>conftest.$ac_ext
35473 cat >>conftest.$ac_ext <<_ACEOF
35474 /* end confdefs.h.  */
35475 $ac_includes_default
35476 #include <$ac_header>
35477 _ACEOF
35478 rm -f conftest.$ac_objext
35479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35480   (eval $ac_compile) 2>conftest.er1
35481   ac_status=$?
35482   grep -v '^ *+' conftest.er1 >conftest.err
35483   rm -f conftest.er1
35484   cat conftest.err >&5
35485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486   (exit $ac_status); } &&
35487          { ac_try='test -z "$ac_c_werror_flag"
35488                          || test ! -s conftest.err'
35489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35490   (eval $ac_try) 2>&5
35491   ac_status=$?
35492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35493   (exit $ac_status); }; } &&
35494          { ac_try='test -s conftest.$ac_objext'
35495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35496   (eval $ac_try) 2>&5
35497   ac_status=$?
35498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35499   (exit $ac_status); }; }; then
35500   ac_header_compiler=yes
35501 else
35502   echo "$as_me: failed program was:" >&5
35503 sed 's/^/| /' conftest.$ac_ext >&5
35504
35505 ac_header_compiler=no
35506 fi
35507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35508 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35509 echo "${ECHO_T}$ac_header_compiler" >&6
35510
35511 # Is the header present?
35512 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35514 cat >conftest.$ac_ext <<_ACEOF
35515 /* confdefs.h.  */
35516 _ACEOF
35517 cat confdefs.h >>conftest.$ac_ext
35518 cat >>conftest.$ac_ext <<_ACEOF
35519 /* end confdefs.h.  */
35520 #include <$ac_header>
35521 _ACEOF
35522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35523   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35524   ac_status=$?
35525   grep -v '^ *+' conftest.er1 >conftest.err
35526   rm -f conftest.er1
35527   cat conftest.err >&5
35528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35529   (exit $ac_status); } >/dev/null; then
35530   if test -s conftest.err; then
35531     ac_cpp_err=$ac_c_preproc_warn_flag
35532     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35533   else
35534     ac_cpp_err=
35535   fi
35536 else
35537   ac_cpp_err=yes
35538 fi
35539 if test -z "$ac_cpp_err"; then
35540   ac_header_preproc=yes
35541 else
35542   echo "$as_me: failed program was:" >&5
35543 sed 's/^/| /' conftest.$ac_ext >&5
35544
35545   ac_header_preproc=no
35546 fi
35547 rm -f conftest.err conftest.$ac_ext
35548 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35549 echo "${ECHO_T}$ac_header_preproc" >&6
35550
35551 # So?  What about this header?
35552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35553   yes:no: )
35554     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35556     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35558     ac_header_preproc=yes
35559     ;;
35560   no:yes:* )
35561     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35563     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35564 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35565     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35567     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35568 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35571     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35573     (
35574       cat <<\_ASBOX
35575 ## ------------------------------------------ ##
35576 ## Report this to the AC_PACKAGE_NAME lists.  ##
35577 ## ------------------------------------------ ##
35578 _ASBOX
35579     ) |
35580       sed "s/^/$as_me: WARNING:     /" >&2
35581     ;;
35582 esac
35583 echo "$as_me:$LINENO: checking for $ac_header" >&5
35584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35586   echo $ECHO_N "(cached) $ECHO_C" >&6
35587 else
35588   eval "$as_ac_Header=\$ac_header_preproc"
35589 fi
35590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35592
35593 fi
35594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35595   cat >>confdefs.h <<_ACEOF
35596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35597 _ACEOF
35598
35599 fi
35600
35601 done
35602
35603         if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
35604                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
35605 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
35606 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
35607   echo $ECHO_N "(cached) $ECHO_C" >&6
35608 else
35609   ac_check_lib_save_LIBS=$LIBS
35610 LIBS="-lthread  $LIBS"
35611 cat >conftest.$ac_ext <<_ACEOF
35612 /* confdefs.h.  */
35613 _ACEOF
35614 cat confdefs.h >>conftest.$ac_ext
35615 cat >>conftest.$ac_ext <<_ACEOF
35616 /* end confdefs.h.  */
35617
35618 /* Override any gcc2 internal prototype to avoid an error.  */
35619 #ifdef __cplusplus
35620 extern "C"
35621 #endif
35622 /* We use char because int might match the return type of a gcc2
35623    builtin and then its argument prototype would still apply.  */
35624 char thr_create ();
35625 int
35626 main ()
35627 {
35628 thr_create ();
35629   ;
35630   return 0;
35631 }
35632 _ACEOF
35633 rm -f conftest.$ac_objext conftest$ac_exeext
35634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35635   (eval $ac_link) 2>conftest.er1
35636   ac_status=$?
35637   grep -v '^ *+' conftest.er1 >conftest.err
35638   rm -f conftest.er1
35639   cat conftest.err >&5
35640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35641   (exit $ac_status); } &&
35642          { ac_try='test -z "$ac_c_werror_flag"
35643                          || test ! -s conftest.err'
35644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35645   (eval $ac_try) 2>&5
35646   ac_status=$?
35647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35648   (exit $ac_status); }; } &&
35649          { ac_try='test -s conftest$ac_exeext'
35650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35651   (eval $ac_try) 2>&5
35652   ac_status=$?
35653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35654   (exit $ac_status); }; }; then
35655   ac_cv_lib_thread_thr_create=yes
35656 else
35657   echo "$as_me: failed program was:" >&5
35658 sed 's/^/| /' conftest.$ac_ext >&5
35659
35660 ac_cv_lib_thread_thr_create=no
35661 fi
35662 rm -f conftest.err conftest.$ac_objext \
35663       conftest$ac_exeext conftest.$ac_ext
35664 LIBS=$ac_check_lib_save_LIBS
35665 fi
35666 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
35667 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
35668 if test $ac_cv_lib_thread_thr_create = yes; then
35669   have_thr=yes
35670 else
35671   have_thr=no
35672 fi
35673
35674
35675                 if test $have_thr = yes ; then
35676
35677 cat >>confdefs.h <<\_ACEOF
35678 #define HAVE_THR 1
35679 _ACEOF
35680
35681                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
35682                         ol_link_threads=thr
35683
35684                         if test $ol_with_yielding_select = auto ; then
35685                                 ol_with_yielding_select=yes
35686                         fi
35687
35688
35689
35690 for ac_func in \
35691                                 thr_setconcurrency \
35692                                 thr_getconcurrency \
35693
35694 do
35695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35696 echo "$as_me:$LINENO: checking for $ac_func" >&5
35697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35698 if eval "test \"\${$as_ac_var+set}\" = set"; then
35699   echo $ECHO_N "(cached) $ECHO_C" >&6
35700 else
35701   cat >conftest.$ac_ext <<_ACEOF
35702 /* confdefs.h.  */
35703 _ACEOF
35704 cat confdefs.h >>conftest.$ac_ext
35705 cat >>conftest.$ac_ext <<_ACEOF
35706 /* end confdefs.h.  */
35707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35708    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35709 #define $ac_func innocuous_$ac_func
35710
35711 /* System header to define __stub macros and hopefully few prototypes,
35712     which can conflict with char $ac_func (); below.
35713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35714     <limits.h> exists even on freestanding compilers.  */
35715
35716 #ifdef __STDC__
35717 # include <limits.h>
35718 #else
35719 # include <assert.h>
35720 #endif
35721
35722 #undef $ac_func
35723
35724 /* Override any gcc2 internal prototype to avoid an error.  */
35725 #ifdef __cplusplus
35726 extern "C"
35727 {
35728 #endif
35729 /* We use char because int might match the return type of a gcc2
35730    builtin and then its argument prototype would still apply.  */
35731 char $ac_func ();
35732 /* The GNU C library defines this for functions which it implements
35733     to always fail with ENOSYS.  Some functions are actually named
35734     something starting with __ and the normal name is an alias.  */
35735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35736 choke me
35737 #else
35738 char (*f) () = $ac_func;
35739 #endif
35740 #ifdef __cplusplus
35741 }
35742 #endif
35743
35744 int
35745 main ()
35746 {
35747 return f != $ac_func;
35748   ;
35749   return 0;
35750 }
35751 _ACEOF
35752 rm -f conftest.$ac_objext conftest$ac_exeext
35753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35754   (eval $ac_link) 2>conftest.er1
35755   ac_status=$?
35756   grep -v '^ *+' conftest.er1 >conftest.err
35757   rm -f conftest.er1
35758   cat conftest.err >&5
35759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35760   (exit $ac_status); } &&
35761          { ac_try='test -z "$ac_c_werror_flag"
35762                          || test ! -s conftest.err'
35763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35764   (eval $ac_try) 2>&5
35765   ac_status=$?
35766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35767   (exit $ac_status); }; } &&
35768          { ac_try='test -s conftest$ac_exeext'
35769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35770   (eval $ac_try) 2>&5
35771   ac_status=$?
35772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35773   (exit $ac_status); }; }; then
35774   eval "$as_ac_var=yes"
35775 else
35776   echo "$as_me: failed program was:" >&5
35777 sed 's/^/| /' conftest.$ac_ext >&5
35778
35779 eval "$as_ac_var=no"
35780 fi
35781 rm -f conftest.err conftest.$ac_objext \
35782       conftest$ac_exeext conftest.$ac_ext
35783 fi
35784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35786 if test `eval echo '${'$as_ac_var'}'` = yes; then
35787   cat >>confdefs.h <<_ACEOF
35788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35789 _ACEOF
35790
35791 fi
35792 done
35793
35794                 fi
35795         fi
35796
35797
35798 for ac_header in lwp/lwp.h
35799 do
35800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35802   echo "$as_me:$LINENO: checking for $ac_header" >&5
35803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35805   echo $ECHO_N "(cached) $ECHO_C" >&6
35806 fi
35807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35809 else
35810   # Is the header compilable?
35811 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35813 cat >conftest.$ac_ext <<_ACEOF
35814 /* confdefs.h.  */
35815 _ACEOF
35816 cat confdefs.h >>conftest.$ac_ext
35817 cat >>conftest.$ac_ext <<_ACEOF
35818 /* end confdefs.h.  */
35819 $ac_includes_default
35820 #include <$ac_header>
35821 _ACEOF
35822 rm -f conftest.$ac_objext
35823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35824   (eval $ac_compile) 2>conftest.er1
35825   ac_status=$?
35826   grep -v '^ *+' conftest.er1 >conftest.err
35827   rm -f conftest.er1
35828   cat conftest.err >&5
35829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35830   (exit $ac_status); } &&
35831          { ac_try='test -z "$ac_c_werror_flag"
35832                          || test ! -s conftest.err'
35833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35834   (eval $ac_try) 2>&5
35835   ac_status=$?
35836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35837   (exit $ac_status); }; } &&
35838          { ac_try='test -s conftest.$ac_objext'
35839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35840   (eval $ac_try) 2>&5
35841   ac_status=$?
35842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35843   (exit $ac_status); }; }; then
35844   ac_header_compiler=yes
35845 else
35846   echo "$as_me: failed program was:" >&5
35847 sed 's/^/| /' conftest.$ac_ext >&5
35848
35849 ac_header_compiler=no
35850 fi
35851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35853 echo "${ECHO_T}$ac_header_compiler" >&6
35854
35855 # Is the header present?
35856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35858 cat >conftest.$ac_ext <<_ACEOF
35859 /* confdefs.h.  */
35860 _ACEOF
35861 cat confdefs.h >>conftest.$ac_ext
35862 cat >>conftest.$ac_ext <<_ACEOF
35863 /* end confdefs.h.  */
35864 #include <$ac_header>
35865 _ACEOF
35866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35867   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35868   ac_status=$?
35869   grep -v '^ *+' conftest.er1 >conftest.err
35870   rm -f conftest.er1
35871   cat conftest.err >&5
35872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873   (exit $ac_status); } >/dev/null; then
35874   if test -s conftest.err; then
35875     ac_cpp_err=$ac_c_preproc_warn_flag
35876     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35877   else
35878     ac_cpp_err=
35879   fi
35880 else
35881   ac_cpp_err=yes
35882 fi
35883 if test -z "$ac_cpp_err"; then
35884   ac_header_preproc=yes
35885 else
35886   echo "$as_me: failed program was:" >&5
35887 sed 's/^/| /' conftest.$ac_ext >&5
35888
35889   ac_header_preproc=no
35890 fi
35891 rm -f conftest.err conftest.$ac_ext
35892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35893 echo "${ECHO_T}$ac_header_preproc" >&6
35894
35895 # So?  What about this header?
35896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35897   yes:no: )
35898     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35900     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35902     ac_header_preproc=yes
35903     ;;
35904   no:yes:* )
35905     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35907     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35908 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35909     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35911     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35912 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35915     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35917     (
35918       cat <<\_ASBOX
35919 ## ------------------------------------------ ##
35920 ## Report this to the AC_PACKAGE_NAME lists.  ##
35921 ## ------------------------------------------ ##
35922 _ASBOX
35923     ) |
35924       sed "s/^/$as_me: WARNING:     /" >&2
35925     ;;
35926 esac
35927 echo "$as_me:$LINENO: checking for $ac_header" >&5
35928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35930   echo $ECHO_N "(cached) $ECHO_C" >&6
35931 else
35932   eval "$as_ac_Header=\$ac_header_preproc"
35933 fi
35934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35936
35937 fi
35938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35939   cat >>confdefs.h <<_ACEOF
35940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35941 _ACEOF
35942
35943 fi
35944
35945 done
35946
35947         if test $ac_cv_header_lwp_lwp_h = yes ; then
35948                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
35949 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
35950 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
35951   echo $ECHO_N "(cached) $ECHO_C" >&6
35952 else
35953   ac_check_lib_save_LIBS=$LIBS
35954 LIBS="-llwp  $LIBS"
35955 cat >conftest.$ac_ext <<_ACEOF
35956 /* confdefs.h.  */
35957 _ACEOF
35958 cat confdefs.h >>conftest.$ac_ext
35959 cat >>conftest.$ac_ext <<_ACEOF
35960 /* end confdefs.h.  */
35961
35962 /* Override any gcc2 internal prototype to avoid an error.  */
35963 #ifdef __cplusplus
35964 extern "C"
35965 #endif
35966 /* We use char because int might match the return type of a gcc2
35967    builtin and then its argument prototype would still apply.  */
35968 char lwp_create ();
35969 int
35970 main ()
35971 {
35972 lwp_create ();
35973   ;
35974   return 0;
35975 }
35976 _ACEOF
35977 rm -f conftest.$ac_objext conftest$ac_exeext
35978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35979   (eval $ac_link) 2>conftest.er1
35980   ac_status=$?
35981   grep -v '^ *+' conftest.er1 >conftest.err
35982   rm -f conftest.er1
35983   cat conftest.err >&5
35984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35985   (exit $ac_status); } &&
35986          { ac_try='test -z "$ac_c_werror_flag"
35987                          || test ! -s conftest.err'
35988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35989   (eval $ac_try) 2>&5
35990   ac_status=$?
35991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35992   (exit $ac_status); }; } &&
35993          { ac_try='test -s conftest$ac_exeext'
35994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35995   (eval $ac_try) 2>&5
35996   ac_status=$?
35997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35998   (exit $ac_status); }; }; then
35999   ac_cv_lib_lwp_lwp_create=yes
36000 else
36001   echo "$as_me: failed program was:" >&5
36002 sed 's/^/| /' conftest.$ac_ext >&5
36003
36004 ac_cv_lib_lwp_lwp_create=no
36005 fi
36006 rm -f conftest.err conftest.$ac_objext \
36007       conftest$ac_exeext conftest.$ac_ext
36008 LIBS=$ac_check_lib_save_LIBS
36009 fi
36010 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36011 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36012 if test $ac_cv_lib_lwp_lwp_create = yes; then
36013   have_lwp=yes
36014 else
36015   have_lwp=no
36016 fi
36017
36018
36019                 if test $have_lwp = yes ; then
36020
36021 cat >>confdefs.h <<\_ACEOF
36022 #define HAVE_LWP 1
36023 _ACEOF
36024
36025                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36026                         ol_link_threads=lwp
36027
36028                         if test $ol_with_yielding_select = auto ; then
36029                                 ol_with_yielding_select=no
36030                         fi
36031                 fi
36032         fi
36033 fi
36034
36035 if test $ol_with_yielding_select = yes ; then
36036
36037 cat >>confdefs.h <<\_ACEOF
36038 #define HAVE_YIELDING_SELECT 1
36039 _ACEOF
36040
36041 fi
36042
36043 if test $ol_with_threads = manual ; then
36044                 ol_link_threads=yes
36045
36046         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36047 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36048
36049
36050
36051 for ac_header in pthread.h sched.h
36052 do
36053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36055   echo "$as_me:$LINENO: checking for $ac_header" >&5
36056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36058   echo $ECHO_N "(cached) $ECHO_C" >&6
36059 fi
36060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36062 else
36063   # Is the header compilable?
36064 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36066 cat >conftest.$ac_ext <<_ACEOF
36067 /* confdefs.h.  */
36068 _ACEOF
36069 cat confdefs.h >>conftest.$ac_ext
36070 cat >>conftest.$ac_ext <<_ACEOF
36071 /* end confdefs.h.  */
36072 $ac_includes_default
36073 #include <$ac_header>
36074 _ACEOF
36075 rm -f conftest.$ac_objext
36076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36077   (eval $ac_compile) 2>conftest.er1
36078   ac_status=$?
36079   grep -v '^ *+' conftest.er1 >conftest.err
36080   rm -f conftest.er1
36081   cat conftest.err >&5
36082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36083   (exit $ac_status); } &&
36084          { ac_try='test -z "$ac_c_werror_flag"
36085                          || test ! -s conftest.err'
36086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36087   (eval $ac_try) 2>&5
36088   ac_status=$?
36089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36090   (exit $ac_status); }; } &&
36091          { ac_try='test -s conftest.$ac_objext'
36092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36093   (eval $ac_try) 2>&5
36094   ac_status=$?
36095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36096   (exit $ac_status); }; }; then
36097   ac_header_compiler=yes
36098 else
36099   echo "$as_me: failed program was:" >&5
36100 sed 's/^/| /' conftest.$ac_ext >&5
36101
36102 ac_header_compiler=no
36103 fi
36104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36106 echo "${ECHO_T}$ac_header_compiler" >&6
36107
36108 # Is the header present?
36109 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36111 cat >conftest.$ac_ext <<_ACEOF
36112 /* confdefs.h.  */
36113 _ACEOF
36114 cat confdefs.h >>conftest.$ac_ext
36115 cat >>conftest.$ac_ext <<_ACEOF
36116 /* end confdefs.h.  */
36117 #include <$ac_header>
36118 _ACEOF
36119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36120   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36121   ac_status=$?
36122   grep -v '^ *+' conftest.er1 >conftest.err
36123   rm -f conftest.er1
36124   cat conftest.err >&5
36125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36126   (exit $ac_status); } >/dev/null; then
36127   if test -s conftest.err; then
36128     ac_cpp_err=$ac_c_preproc_warn_flag
36129     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36130   else
36131     ac_cpp_err=
36132   fi
36133 else
36134   ac_cpp_err=yes
36135 fi
36136 if test -z "$ac_cpp_err"; then
36137   ac_header_preproc=yes
36138 else
36139   echo "$as_me: failed program was:" >&5
36140 sed 's/^/| /' conftest.$ac_ext >&5
36141
36142   ac_header_preproc=no
36143 fi
36144 rm -f conftest.err conftest.$ac_ext
36145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36146 echo "${ECHO_T}$ac_header_preproc" >&6
36147
36148 # So?  What about this header?
36149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36150   yes:no: )
36151     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36153     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36155     ac_header_preproc=yes
36156     ;;
36157   no:yes:* )
36158     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36160     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36161 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36162     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36164     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36165 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36168     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36170     (
36171       cat <<\_ASBOX
36172 ## ------------------------------------------ ##
36173 ## Report this to the AC_PACKAGE_NAME lists.  ##
36174 ## ------------------------------------------ ##
36175 _ASBOX
36176     ) |
36177       sed "s/^/$as_me: WARNING:     /" >&2
36178     ;;
36179 esac
36180 echo "$as_me:$LINENO: checking for $ac_header" >&5
36181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36183   echo $ECHO_N "(cached) $ECHO_C" >&6
36184 else
36185   eval "$as_ac_Header=\$ac_header_preproc"
36186 fi
36187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36189
36190 fi
36191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36192   cat >>confdefs.h <<_ACEOF
36193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36194 _ACEOF
36195
36196 fi
36197
36198 done
36199
36200
36201
36202 for ac_func in sched_yield pthread_yield
36203 do
36204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36205 echo "$as_me:$LINENO: checking for $ac_func" >&5
36206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36207 if eval "test \"\${$as_ac_var+set}\" = set"; then
36208   echo $ECHO_N "(cached) $ECHO_C" >&6
36209 else
36210   cat >conftest.$ac_ext <<_ACEOF
36211 /* confdefs.h.  */
36212 _ACEOF
36213 cat confdefs.h >>conftest.$ac_ext
36214 cat >>conftest.$ac_ext <<_ACEOF
36215 /* end confdefs.h.  */
36216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36218 #define $ac_func innocuous_$ac_func
36219
36220 /* System header to define __stub macros and hopefully few prototypes,
36221     which can conflict with char $ac_func (); below.
36222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36223     <limits.h> exists even on freestanding compilers.  */
36224
36225 #ifdef __STDC__
36226 # include <limits.h>
36227 #else
36228 # include <assert.h>
36229 #endif
36230
36231 #undef $ac_func
36232
36233 /* Override any gcc2 internal prototype to avoid an error.  */
36234 #ifdef __cplusplus
36235 extern "C"
36236 {
36237 #endif
36238 /* We use char because int might match the return type of a gcc2
36239    builtin and then its argument prototype would still apply.  */
36240 char $ac_func ();
36241 /* The GNU C library defines this for functions which it implements
36242     to always fail with ENOSYS.  Some functions are actually named
36243     something starting with __ and the normal name is an alias.  */
36244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36245 choke me
36246 #else
36247 char (*f) () = $ac_func;
36248 #endif
36249 #ifdef __cplusplus
36250 }
36251 #endif
36252
36253 int
36254 main ()
36255 {
36256 return f != $ac_func;
36257   ;
36258   return 0;
36259 }
36260 _ACEOF
36261 rm -f conftest.$ac_objext conftest$ac_exeext
36262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36263   (eval $ac_link) 2>conftest.er1
36264   ac_status=$?
36265   grep -v '^ *+' conftest.er1 >conftest.err
36266   rm -f conftest.er1
36267   cat conftest.err >&5
36268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36269   (exit $ac_status); } &&
36270          { ac_try='test -z "$ac_c_werror_flag"
36271                          || test ! -s conftest.err'
36272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36273   (eval $ac_try) 2>&5
36274   ac_status=$?
36275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276   (exit $ac_status); }; } &&
36277          { ac_try='test -s conftest$ac_exeext'
36278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36279   (eval $ac_try) 2>&5
36280   ac_status=$?
36281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36282   (exit $ac_status); }; }; then
36283   eval "$as_ac_var=yes"
36284 else
36285   echo "$as_me: failed program was:" >&5
36286 sed 's/^/| /' conftest.$ac_ext >&5
36287
36288 eval "$as_ac_var=no"
36289 fi
36290 rm -f conftest.err conftest.$ac_objext \
36291       conftest$ac_exeext conftest.$ac_ext
36292 fi
36293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36295 if test `eval echo '${'$as_ac_var'}'` = yes; then
36296   cat >>confdefs.h <<_ACEOF
36297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36298 _ACEOF
36299
36300 fi
36301 done
36302
36303
36304         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36305 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36306 if test "${ol_cv_header_linux_threads+set}" = set; then
36307   echo $ECHO_N "(cached) $ECHO_C" >&6
36308 else
36309   cat >conftest.$ac_ext <<_ACEOF
36310 /* confdefs.h.  */
36311 _ACEOF
36312 cat confdefs.h >>conftest.$ac_ext
36313 cat >>conftest.$ac_ext <<_ACEOF
36314 /* end confdefs.h.  */
36315 #include <pthread.h>
36316 _ACEOF
36317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36318   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36319   ol_cv_header_linux_threads=yes
36320 else
36321   ol_cv_header_linux_threads=no
36322 fi
36323 rm -f conftest*
36324
36325
36326 fi
36327 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36328 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36329         if test $ol_cv_header_linux_threads = yes; then
36330
36331 cat >>confdefs.h <<\_ACEOF
36332 #define HAVE_LINUX_THREADS 1
36333 _ACEOF
36334
36335         fi
36336
36337
36338
36339 for ac_header in mach/cthreads.h
36340 do
36341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36343   echo "$as_me:$LINENO: checking for $ac_header" >&5
36344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36346   echo $ECHO_N "(cached) $ECHO_C" >&6
36347 fi
36348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36350 else
36351   # Is the header compilable?
36352 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36354 cat >conftest.$ac_ext <<_ACEOF
36355 /* confdefs.h.  */
36356 _ACEOF
36357 cat confdefs.h >>conftest.$ac_ext
36358 cat >>conftest.$ac_ext <<_ACEOF
36359 /* end confdefs.h.  */
36360 $ac_includes_default
36361 #include <$ac_header>
36362 _ACEOF
36363 rm -f conftest.$ac_objext
36364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36365   (eval $ac_compile) 2>conftest.er1
36366   ac_status=$?
36367   grep -v '^ *+' conftest.er1 >conftest.err
36368   rm -f conftest.er1
36369   cat conftest.err >&5
36370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36371   (exit $ac_status); } &&
36372          { ac_try='test -z "$ac_c_werror_flag"
36373                          || test ! -s conftest.err'
36374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36375   (eval $ac_try) 2>&5
36376   ac_status=$?
36377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36378   (exit $ac_status); }; } &&
36379          { ac_try='test -s conftest.$ac_objext'
36380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36381   (eval $ac_try) 2>&5
36382   ac_status=$?
36383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36384   (exit $ac_status); }; }; then
36385   ac_header_compiler=yes
36386 else
36387   echo "$as_me: failed program was:" >&5
36388 sed 's/^/| /' conftest.$ac_ext >&5
36389
36390 ac_header_compiler=no
36391 fi
36392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36393 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36394 echo "${ECHO_T}$ac_header_compiler" >&6
36395
36396 # Is the header present?
36397 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36399 cat >conftest.$ac_ext <<_ACEOF
36400 /* confdefs.h.  */
36401 _ACEOF
36402 cat confdefs.h >>conftest.$ac_ext
36403 cat >>conftest.$ac_ext <<_ACEOF
36404 /* end confdefs.h.  */
36405 #include <$ac_header>
36406 _ACEOF
36407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36408   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36409   ac_status=$?
36410   grep -v '^ *+' conftest.er1 >conftest.err
36411   rm -f conftest.er1
36412   cat conftest.err >&5
36413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36414   (exit $ac_status); } >/dev/null; then
36415   if test -s conftest.err; then
36416     ac_cpp_err=$ac_c_preproc_warn_flag
36417     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36418   else
36419     ac_cpp_err=
36420   fi
36421 else
36422   ac_cpp_err=yes
36423 fi
36424 if test -z "$ac_cpp_err"; then
36425   ac_header_preproc=yes
36426 else
36427   echo "$as_me: failed program was:" >&5
36428 sed 's/^/| /' conftest.$ac_ext >&5
36429
36430   ac_header_preproc=no
36431 fi
36432 rm -f conftest.err conftest.$ac_ext
36433 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36434 echo "${ECHO_T}$ac_header_preproc" >&6
36435
36436 # So?  What about this header?
36437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36438   yes:no: )
36439     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36443     ac_header_preproc=yes
36444     ;;
36445   no:yes:* )
36446     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36448     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36449 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36450     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36452     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36453 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36456     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36458     (
36459       cat <<\_ASBOX
36460 ## ------------------------------------------ ##
36461 ## Report this to the AC_PACKAGE_NAME lists.  ##
36462 ## ------------------------------------------ ##
36463 _ASBOX
36464     ) |
36465       sed "s/^/$as_me: WARNING:     /" >&2
36466     ;;
36467 esac
36468 echo "$as_me:$LINENO: checking for $ac_header" >&5
36469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36471   echo $ECHO_N "(cached) $ECHO_C" >&6
36472 else
36473   eval "$as_ac_Header=\$ac_header_preproc"
36474 fi
36475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36477
36478 fi
36479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36480   cat >>confdefs.h <<_ACEOF
36481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36482 _ACEOF
36483
36484 fi
36485
36486 done
36487
36488
36489 for ac_header in lwp/lwp.h
36490 do
36491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36493   echo "$as_me:$LINENO: checking for $ac_header" >&5
36494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36496   echo $ECHO_N "(cached) $ECHO_C" >&6
36497 fi
36498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36500 else
36501   # Is the header compilable?
36502 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36504 cat >conftest.$ac_ext <<_ACEOF
36505 /* confdefs.h.  */
36506 _ACEOF
36507 cat confdefs.h >>conftest.$ac_ext
36508 cat >>conftest.$ac_ext <<_ACEOF
36509 /* end confdefs.h.  */
36510 $ac_includes_default
36511 #include <$ac_header>
36512 _ACEOF
36513 rm -f conftest.$ac_objext
36514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36515   (eval $ac_compile) 2>conftest.er1
36516   ac_status=$?
36517   grep -v '^ *+' conftest.er1 >conftest.err
36518   rm -f conftest.er1
36519   cat conftest.err >&5
36520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36521   (exit $ac_status); } &&
36522          { ac_try='test -z "$ac_c_werror_flag"
36523                          || test ! -s conftest.err'
36524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36525   (eval $ac_try) 2>&5
36526   ac_status=$?
36527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36528   (exit $ac_status); }; } &&
36529          { ac_try='test -s conftest.$ac_objext'
36530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36531   (eval $ac_try) 2>&5
36532   ac_status=$?
36533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36534   (exit $ac_status); }; }; then
36535   ac_header_compiler=yes
36536 else
36537   echo "$as_me: failed program was:" >&5
36538 sed 's/^/| /' conftest.$ac_ext >&5
36539
36540 ac_header_compiler=no
36541 fi
36542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36544 echo "${ECHO_T}$ac_header_compiler" >&6
36545
36546 # Is the header present?
36547 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36549 cat >conftest.$ac_ext <<_ACEOF
36550 /* confdefs.h.  */
36551 _ACEOF
36552 cat confdefs.h >>conftest.$ac_ext
36553 cat >>conftest.$ac_ext <<_ACEOF
36554 /* end confdefs.h.  */
36555 #include <$ac_header>
36556 _ACEOF
36557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36558   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36559   ac_status=$?
36560   grep -v '^ *+' conftest.er1 >conftest.err
36561   rm -f conftest.er1
36562   cat conftest.err >&5
36563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36564   (exit $ac_status); } >/dev/null; then
36565   if test -s conftest.err; then
36566     ac_cpp_err=$ac_c_preproc_warn_flag
36567     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36568   else
36569     ac_cpp_err=
36570   fi
36571 else
36572   ac_cpp_err=yes
36573 fi
36574 if test -z "$ac_cpp_err"; then
36575   ac_header_preproc=yes
36576 else
36577   echo "$as_me: failed program was:" >&5
36578 sed 's/^/| /' conftest.$ac_ext >&5
36579
36580   ac_header_preproc=no
36581 fi
36582 rm -f conftest.err conftest.$ac_ext
36583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36584 echo "${ECHO_T}$ac_header_preproc" >&6
36585
36586 # So?  What about this header?
36587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36588   yes:no: )
36589     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36593     ac_header_preproc=yes
36594     ;;
36595   no:yes:* )
36596     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36598     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36599 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36600     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36602     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36603 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36604     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36606     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36608     (
36609       cat <<\_ASBOX
36610 ## ------------------------------------------ ##
36611 ## Report this to the AC_PACKAGE_NAME lists.  ##
36612 ## ------------------------------------------ ##
36613 _ASBOX
36614     ) |
36615       sed "s/^/$as_me: WARNING:     /" >&2
36616     ;;
36617 esac
36618 echo "$as_me:$LINENO: checking for $ac_header" >&5
36619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36621   echo $ECHO_N "(cached) $ECHO_C" >&6
36622 else
36623   eval "$as_ac_Header=\$ac_header_preproc"
36624 fi
36625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36627
36628 fi
36629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36630   cat >>confdefs.h <<_ACEOF
36631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36632 _ACEOF
36633
36634 fi
36635
36636 done
36637
36638
36639
36640 for ac_header in thread.h synch.h
36641 do
36642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36644   echo "$as_me:$LINENO: checking for $ac_header" >&5
36645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36647   echo $ECHO_N "(cached) $ECHO_C" >&6
36648 fi
36649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36651 else
36652   # Is the header compilable?
36653 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36655 cat >conftest.$ac_ext <<_ACEOF
36656 /* confdefs.h.  */
36657 _ACEOF
36658 cat confdefs.h >>conftest.$ac_ext
36659 cat >>conftest.$ac_ext <<_ACEOF
36660 /* end confdefs.h.  */
36661 $ac_includes_default
36662 #include <$ac_header>
36663 _ACEOF
36664 rm -f conftest.$ac_objext
36665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36666   (eval $ac_compile) 2>conftest.er1
36667   ac_status=$?
36668   grep -v '^ *+' conftest.er1 >conftest.err
36669   rm -f conftest.er1
36670   cat conftest.err >&5
36671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36672   (exit $ac_status); } &&
36673          { ac_try='test -z "$ac_c_werror_flag"
36674                          || test ! -s conftest.err'
36675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36676   (eval $ac_try) 2>&5
36677   ac_status=$?
36678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36679   (exit $ac_status); }; } &&
36680          { ac_try='test -s conftest.$ac_objext'
36681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36682   (eval $ac_try) 2>&5
36683   ac_status=$?
36684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36685   (exit $ac_status); }; }; then
36686   ac_header_compiler=yes
36687 else
36688   echo "$as_me: failed program was:" >&5
36689 sed 's/^/| /' conftest.$ac_ext >&5
36690
36691 ac_header_compiler=no
36692 fi
36693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36695 echo "${ECHO_T}$ac_header_compiler" >&6
36696
36697 # Is the header present?
36698 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36700 cat >conftest.$ac_ext <<_ACEOF
36701 /* confdefs.h.  */
36702 _ACEOF
36703 cat confdefs.h >>conftest.$ac_ext
36704 cat >>conftest.$ac_ext <<_ACEOF
36705 /* end confdefs.h.  */
36706 #include <$ac_header>
36707 _ACEOF
36708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36709   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36710   ac_status=$?
36711   grep -v '^ *+' conftest.er1 >conftest.err
36712   rm -f conftest.er1
36713   cat conftest.err >&5
36714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36715   (exit $ac_status); } >/dev/null; then
36716   if test -s conftest.err; then
36717     ac_cpp_err=$ac_c_preproc_warn_flag
36718     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36719   else
36720     ac_cpp_err=
36721   fi
36722 else
36723   ac_cpp_err=yes
36724 fi
36725 if test -z "$ac_cpp_err"; then
36726   ac_header_preproc=yes
36727 else
36728   echo "$as_me: failed program was:" >&5
36729 sed 's/^/| /' conftest.$ac_ext >&5
36730
36731   ac_header_preproc=no
36732 fi
36733 rm -f conftest.err conftest.$ac_ext
36734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36735 echo "${ECHO_T}$ac_header_preproc" >&6
36736
36737 # So?  What about this header?
36738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36739   yes:no: )
36740     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36744     ac_header_preproc=yes
36745     ;;
36746   no:yes:* )
36747     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36749     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36750 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36751     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36753     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36754 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36757     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36759     (
36760       cat <<\_ASBOX
36761 ## ------------------------------------------ ##
36762 ## Report this to the AC_PACKAGE_NAME lists.  ##
36763 ## ------------------------------------------ ##
36764 _ASBOX
36765     ) |
36766       sed "s/^/$as_me: WARNING:     /" >&2
36767     ;;
36768 esac
36769 echo "$as_me:$LINENO: checking for $ac_header" >&5
36770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36772   echo $ECHO_N "(cached) $ECHO_C" >&6
36773 else
36774   eval "$as_ac_Header=\$ac_header_preproc"
36775 fi
36776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36778
36779 fi
36780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36781   cat >>confdefs.h <<_ACEOF
36782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36783 _ACEOF
36784
36785 fi
36786
36787 done
36788
36789 fi
36790
36791 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
36792                         cat >>confdefs.h <<\_ACEOF
36793 #define REENTRANT 1
36794 _ACEOF
36795
36796         cat >>confdefs.h <<\_ACEOF
36797 #define _REENTRANT 1
36798 _ACEOF
36799
36800         cat >>confdefs.h <<\_ACEOF
36801 #define THREAD_SAFE 1
36802 _ACEOF
36803
36804         cat >>confdefs.h <<\_ACEOF
36805 #define _THREAD_SAFE 1
36806 _ACEOF
36807
36808         cat >>confdefs.h <<\_ACEOF
36809 #define THREADSAFE 1
36810 _ACEOF
36811
36812         cat >>confdefs.h <<\_ACEOF
36813 #define _THREADSAFE 1
36814 _ACEOF
36815
36816         cat >>confdefs.h <<\_ACEOF
36817 #define _SGI_MP_SOURCE 1
36818 _ACEOF
36819
36820
36821                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
36822 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
36823 if test "${ol_cv_errno_thread_specific+set}" = set; then
36824   echo $ECHO_N "(cached) $ECHO_C" >&6
36825 else
36826
36827                 cat >conftest.$ac_ext <<_ACEOF
36828 /* confdefs.h.  */
36829 _ACEOF
36830 cat confdefs.h >>conftest.$ac_ext
36831 cat >>conftest.$ac_ext <<_ACEOF
36832 /* end confdefs.h.  */
36833 #include <errno.h>
36834 int
36835 main ()
36836 {
36837 errno = 0;
36838   ;
36839   return 0;
36840 }
36841 _ACEOF
36842 rm -f conftest.$ac_objext conftest$ac_exeext
36843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36844   (eval $ac_link) 2>conftest.er1
36845   ac_status=$?
36846   grep -v '^ *+' conftest.er1 >conftest.err
36847   rm -f conftest.er1
36848   cat conftest.err >&5
36849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36850   (exit $ac_status); } &&
36851          { ac_try='test -z "$ac_c_werror_flag"
36852                          || test ! -s conftest.err'
36853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36854   (eval $ac_try) 2>&5
36855   ac_status=$?
36856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36857   (exit $ac_status); }; } &&
36858          { ac_try='test -s conftest$ac_exeext'
36859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36860   (eval $ac_try) 2>&5
36861   ac_status=$?
36862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36863   (exit $ac_status); }; }; then
36864   ol_cv_errno_thread_specific=yes
36865 else
36866   echo "$as_me: failed program was:" >&5
36867 sed 's/^/| /' conftest.$ac_ext >&5
36868
36869 ol_cv_errno_thread_specific=no
36870 fi
36871 rm -f conftest.err conftest.$ac_objext \
36872       conftest$ac_exeext conftest.$ac_ext
36873
36874 fi
36875 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
36876 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
36877
36878                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
36879 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
36880 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
36881   echo $ECHO_N "(cached) $ECHO_C" >&6
36882 else
36883
36884                 cat >conftest.$ac_ext <<_ACEOF
36885 /* confdefs.h.  */
36886 _ACEOF
36887 cat confdefs.h >>conftest.$ac_ext
36888 cat >>conftest.$ac_ext <<_ACEOF
36889 /* end confdefs.h.  */
36890 #include <netdb.h>
36891 int
36892 main ()
36893 {
36894 h_errno = 0;
36895   ;
36896   return 0;
36897 }
36898 _ACEOF
36899 rm -f conftest.$ac_objext conftest$ac_exeext
36900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36901   (eval $ac_link) 2>conftest.er1
36902   ac_status=$?
36903   grep -v '^ *+' conftest.er1 >conftest.err
36904   rm -f conftest.er1
36905   cat conftest.err >&5
36906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36907   (exit $ac_status); } &&
36908          { ac_try='test -z "$ac_c_werror_flag"
36909                          || test ! -s conftest.err'
36910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36911   (eval $ac_try) 2>&5
36912   ac_status=$?
36913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36914   (exit $ac_status); }; } &&
36915          { ac_try='test -s conftest$ac_exeext'
36916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36917   (eval $ac_try) 2>&5
36918   ac_status=$?
36919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36920   (exit $ac_status); }; }; then
36921   ol_cv_h_errno_thread_specific=yes
36922 else
36923   echo "$as_me: failed program was:" >&5
36924 sed 's/^/| /' conftest.$ac_ext >&5
36925
36926 ol_cv_h_errno_thread_specific=no
36927 fi
36928 rm -f conftest.err conftest.$ac_objext \
36929       conftest$ac_exeext conftest.$ac_ext
36930
36931 fi
36932 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
36933 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
36934
36935         if test $ol_cv_errno_thread_specific != yes \
36936                 -o $ol_cv_h_errno_thread_specific != yes ; then
36937                 LIBS="$LTHREAD_LIBS $LIBS"
36938                 LTHREAD_LIBS=""
36939         fi
36940
36941 fi
36942
36943 if test $ol_link_threads = no ; then
36944         if test $ol_with_threads = yes ; then
36945                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
36946 echo "$as_me: error: no suitable thread support" >&2;}
36947    { (exit 1); exit 1; }; }
36948         fi
36949
36950         if test $ol_with_threads = auto ; then
36951                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
36952 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
36953                 ol_with_threads=no
36954         fi
36955
36956
36957 cat >>confdefs.h <<\_ACEOF
36958 #define NO_THREADS 1
36959 _ACEOF
36960
36961         LTHREAD_LIBS=""
36962 fi
36963
36964 if test $ol_link_threads != no ; then
36965         cat >>confdefs.h <<\_ACEOF
36966 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
36967 _ACEOF
36968
36969 fi
36970
36971
36972
36973
36974 for ac_func in \
36975         ctime_r                 \
36976         gethostbyname_r gethostbyaddr_r \
36977
36978 do
36979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36980 echo "$as_me:$LINENO: checking for $ac_func" >&5
36981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36982 if eval "test \"\${$as_ac_var+set}\" = set"; then
36983   echo $ECHO_N "(cached) $ECHO_C" >&6
36984 else
36985   cat >conftest.$ac_ext <<_ACEOF
36986 /* confdefs.h.  */
36987 _ACEOF
36988 cat confdefs.h >>conftest.$ac_ext
36989 cat >>conftest.$ac_ext <<_ACEOF
36990 /* end confdefs.h.  */
36991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36993 #define $ac_func innocuous_$ac_func
36994
36995 /* System header to define __stub macros and hopefully few prototypes,
36996     which can conflict with char $ac_func (); below.
36997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36998     <limits.h> exists even on freestanding compilers.  */
36999
37000 #ifdef __STDC__
37001 # include <limits.h>
37002 #else
37003 # include <assert.h>
37004 #endif
37005
37006 #undef $ac_func
37007
37008 /* Override any gcc2 internal prototype to avoid an error.  */
37009 #ifdef __cplusplus
37010 extern "C"
37011 {
37012 #endif
37013 /* We use char because int might match the return type of a gcc2
37014    builtin and then its argument prototype would still apply.  */
37015 char $ac_func ();
37016 /* The GNU C library defines this for functions which it implements
37017     to always fail with ENOSYS.  Some functions are actually named
37018     something starting with __ and the normal name is an alias.  */
37019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37020 choke me
37021 #else
37022 char (*f) () = $ac_func;
37023 #endif
37024 #ifdef __cplusplus
37025 }
37026 #endif
37027
37028 int
37029 main ()
37030 {
37031 return f != $ac_func;
37032   ;
37033   return 0;
37034 }
37035 _ACEOF
37036 rm -f conftest.$ac_objext conftest$ac_exeext
37037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37038   (eval $ac_link) 2>conftest.er1
37039   ac_status=$?
37040   grep -v '^ *+' conftest.er1 >conftest.err
37041   rm -f conftest.er1
37042   cat conftest.err >&5
37043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37044   (exit $ac_status); } &&
37045          { ac_try='test -z "$ac_c_werror_flag"
37046                          || test ! -s conftest.err'
37047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37048   (eval $ac_try) 2>&5
37049   ac_status=$?
37050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37051   (exit $ac_status); }; } &&
37052          { ac_try='test -s conftest$ac_exeext'
37053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37054   (eval $ac_try) 2>&5
37055   ac_status=$?
37056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37057   (exit $ac_status); }; }; then
37058   eval "$as_ac_var=yes"
37059 else
37060   echo "$as_me: failed program was:" >&5
37061 sed 's/^/| /' conftest.$ac_ext >&5
37062
37063 eval "$as_ac_var=no"
37064 fi
37065 rm -f conftest.err conftest.$ac_objext \
37066       conftest$ac_exeext conftest.$ac_ext
37067 fi
37068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37070 if test `eval echo '${'$as_ac_var'}'` = yes; then
37071   cat >>confdefs.h <<_ACEOF
37072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37073 _ACEOF
37074
37075 fi
37076 done
37077
37078
37079 if test "$ac_cv_func_ctime_r" = no ; then
37080         ol_cv_func_ctime_r_nargs=0
37081 else
37082         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37083 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37084 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37085   echo $ECHO_N "(cached) $ECHO_C" >&6
37086 else
37087   cat >conftest.$ac_ext <<_ACEOF
37088 /* confdefs.h.  */
37089 _ACEOF
37090 cat confdefs.h >>conftest.$ac_ext
37091 cat >>conftest.$ac_ext <<_ACEOF
37092 /* end confdefs.h.  */
37093 #include <time.h>
37094 int
37095 main ()
37096 {
37097 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37098   ;
37099   return 0;
37100 }
37101 _ACEOF
37102 rm -f conftest.$ac_objext
37103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37104   (eval $ac_compile) 2>conftest.er1
37105   ac_status=$?
37106   grep -v '^ *+' conftest.er1 >conftest.err
37107   rm -f conftest.er1
37108   cat conftest.err >&5
37109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37110   (exit $ac_status); } &&
37111          { ac_try='test -z "$ac_c_werror_flag"
37112                          || test ! -s conftest.err'
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); }; } &&
37118          { ac_try='test -s conftest.$ac_objext'
37119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37120   (eval $ac_try) 2>&5
37121   ac_status=$?
37122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37123   (exit $ac_status); }; }; then
37124   ol_cv_func_ctime_r_nargs3=yes
37125 else
37126   echo "$as_me: failed program was:" >&5
37127 sed 's/^/| /' conftest.$ac_ext >&5
37128
37129 ol_cv_func_ctime_r_nargs3=no
37130 fi
37131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37132
37133         cat >conftest.$ac_ext <<_ACEOF
37134 /* confdefs.h.  */
37135 _ACEOF
37136 cat confdefs.h >>conftest.$ac_ext
37137 cat >>conftest.$ac_ext <<_ACEOF
37138 /* end confdefs.h.  */
37139 #include <time.h>
37140 int
37141 main ()
37142 {
37143 time_t ti; char *buffer; ctime_r(&ti,buffer);
37144   ;
37145   return 0;
37146 }
37147 _ACEOF
37148 rm -f conftest.$ac_objext
37149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37150   (eval $ac_compile) 2>conftest.er1
37151   ac_status=$?
37152   grep -v '^ *+' conftest.er1 >conftest.err
37153   rm -f conftest.er1
37154   cat conftest.err >&5
37155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37156   (exit $ac_status); } &&
37157          { ac_try='test -z "$ac_c_werror_flag"
37158                          || test ! -s conftest.err'
37159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37160   (eval $ac_try) 2>&5
37161   ac_status=$?
37162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37163   (exit $ac_status); }; } &&
37164          { ac_try='test -s conftest.$ac_objext'
37165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37166   (eval $ac_try) 2>&5
37167   ac_status=$?
37168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37169   (exit $ac_status); }; }; then
37170   ol_cv_func_ctime_r_nargs2=yes
37171 else
37172   echo "$as_me: failed program was:" >&5
37173 sed 's/^/| /' conftest.$ac_ext >&5
37174
37175 ol_cv_func_ctime_r_nargs2=no
37176 fi
37177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37178
37179         if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37180                 $ol_cv_func_ctime_r_nargs2 = no ; then
37181
37182                 ol_cv_func_ctime_r_nargs=3
37183
37184         elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37185                 $ol_cv_func_ctime_r_nargs2 = yes ; then
37186
37187                 ol_cv_func_ctime_r_nargs=2
37188
37189         else
37190                 ol_cv_func_ctime_r_nargs=0
37191         fi
37192
37193 fi
37194 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37195 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37196
37197   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37198
37199 cat >>confdefs.h <<_ACEOF
37200 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37201 _ACEOF
37202
37203   fi
37204
37205 fi
37206
37207 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37208         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37209 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37210 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37211   echo $ECHO_N "(cached) $ECHO_C" >&6
37212 else
37213   cat >conftest.$ac_ext <<_ACEOF
37214 /* confdefs.h.  */
37215 _ACEOF
37216 cat confdefs.h >>conftest.$ac_ext
37217 cat >>conftest.$ac_ext <<_ACEOF
37218 /* end confdefs.h.  */
37219 #include <sys/types.h>
37220 #include <sys/socket.h>
37221 #include <netinet/in.h>
37222 #include <netdb.h>
37223 #define BUFSIZE (sizeof(struct hostent)+10)
37224 int
37225 main ()
37226 {
37227 struct hostent hent; char buffer[BUFSIZE];
37228                 int bufsize=BUFSIZE;int h_errno;
37229                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37230                         buffer, bufsize, &h_errno);
37231   ;
37232   return 0;
37233 }
37234 _ACEOF
37235 rm -f conftest.$ac_objext
37236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37237   (eval $ac_compile) 2>conftest.er1
37238   ac_status=$?
37239   grep -v '^ *+' conftest.er1 >conftest.err
37240   rm -f conftest.er1
37241   cat conftest.err >&5
37242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37243   (exit $ac_status); } &&
37244          { ac_try='test -z "$ac_c_werror_flag"
37245                          || test ! -s conftest.err'
37246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37247   (eval $ac_try) 2>&5
37248   ac_status=$?
37249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37250   (exit $ac_status); }; } &&
37251          { ac_try='test -s conftest.$ac_objext'
37252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37253   (eval $ac_try) 2>&5
37254   ac_status=$?
37255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37256   (exit $ac_status); }; }; then
37257   ol_cv_func_gethostbyname_r_nargs5=yes
37258 else
37259   echo "$as_me: failed program was:" >&5
37260 sed 's/^/| /' conftest.$ac_ext >&5
37261
37262 ol_cv_func_gethostbyname_r_nargs5=no
37263 fi
37264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37265
37266         cat >conftest.$ac_ext <<_ACEOF
37267 /* confdefs.h.  */
37268 _ACEOF
37269 cat confdefs.h >>conftest.$ac_ext
37270 cat >>conftest.$ac_ext <<_ACEOF
37271 /* end confdefs.h.  */
37272 #include <sys/types.h>
37273 #include <sys/socket.h>
37274 #include <netinet/in.h>
37275 #include <netdb.h>
37276 #define BUFSIZE (sizeof(struct hostent)+10)
37277 int
37278 main ()
37279 {
37280 struct hostent hent;struct hostent *rhent;
37281                 char buffer[BUFSIZE];
37282                 int bufsize=BUFSIZE;int h_errno;
37283                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37284                         &rhent, &h_errno);
37285   ;
37286   return 0;
37287 }
37288 _ACEOF
37289 rm -f conftest.$ac_objext
37290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37291   (eval $ac_compile) 2>conftest.er1
37292   ac_status=$?
37293   grep -v '^ *+' conftest.er1 >conftest.err
37294   rm -f conftest.er1
37295   cat conftest.err >&5
37296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37297   (exit $ac_status); } &&
37298          { ac_try='test -z "$ac_c_werror_flag"
37299                          || test ! -s conftest.err'
37300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37301   (eval $ac_try) 2>&5
37302   ac_status=$?
37303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37304   (exit $ac_status); }; } &&
37305          { ac_try='test -s conftest.$ac_objext'
37306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37307   (eval $ac_try) 2>&5
37308   ac_status=$?
37309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37310   (exit $ac_status); }; }; then
37311   ol_cv_func_gethostbyname_r_nargs6=yes
37312 else
37313   echo "$as_me: failed program was:" >&5
37314 sed 's/^/| /' conftest.$ac_ext >&5
37315
37316 ol_cv_func_gethostbyname_r_nargs6=no
37317 fi
37318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37319
37320         if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37321                 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37322
37323                 ol_cv_func_gethostbyname_r_nargs=5
37324
37325         elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37326                 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37327
37328                 ol_cv_func_gethostbyname_r_nargs=6
37329
37330         else
37331                 ol_cv_func_gethostbyname_r_nargs=0
37332         fi
37333
37334 fi
37335 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37336 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37337   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37338
37339 cat >>confdefs.h <<_ACEOF
37340 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37341 _ACEOF
37342
37343   fi
37344
37345 else
37346         ol_cv_func_gethostbyname_r_nargs=0
37347 fi
37348
37349 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37350         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37351 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37352 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37353   echo $ECHO_N "(cached) $ECHO_C" >&6
37354 else
37355   cat >conftest.$ac_ext <<_ACEOF
37356 /* confdefs.h.  */
37357 _ACEOF
37358 cat confdefs.h >>conftest.$ac_ext
37359 cat >>conftest.$ac_ext <<_ACEOF
37360 /* end confdefs.h.  */
37361 #include <sys/types.h>
37362 #include <sys/socket.h>
37363 #include <netinet/in.h>
37364 #include <netdb.h>
37365 #define BUFSIZE (sizeof(struct hostent)+10)
37366 int
37367 main ()
37368 {
37369 struct hostent hent; char buffer[BUFSIZE];
37370             struct in_addr add;
37371             size_t alen=sizeof(struct in_addr);
37372             int bufsize=BUFSIZE;int h_errno;
37373                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37374                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37375   ;
37376   return 0;
37377 }
37378 _ACEOF
37379 rm -f conftest.$ac_objext
37380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37381   (eval $ac_compile) 2>conftest.er1
37382   ac_status=$?
37383   grep -v '^ *+' conftest.er1 >conftest.err
37384   rm -f conftest.er1
37385   cat conftest.err >&5
37386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37387   (exit $ac_status); } &&
37388          { ac_try='test -z "$ac_c_werror_flag"
37389                          || test ! -s conftest.err'
37390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37391   (eval $ac_try) 2>&5
37392   ac_status=$?
37393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37394   (exit $ac_status); }; } &&
37395          { ac_try='test -s conftest.$ac_objext'
37396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37397   (eval $ac_try) 2>&5
37398   ac_status=$?
37399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37400   (exit $ac_status); }; }; then
37401   ol_cv_func_gethostbyaddr_r_nargs7=yes
37402 else
37403   echo "$as_me: failed program was:" >&5
37404 sed 's/^/| /' conftest.$ac_ext >&5
37405
37406 ol_cv_func_gethostbyaddr_r_nargs7=no
37407 fi
37408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37409
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;
37425                 struct hostent *rhent; char buffer[BUFSIZE];
37426                 struct in_addr add;
37427                 size_t alen=sizeof(struct in_addr);
37428                 int bufsize=BUFSIZE;int h_errno;
37429                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37430                         alen, AF_INET, &hent, buffer, bufsize,
37431                         &rhent, &h_errno);
37432   ;
37433   return 0;
37434 }
37435 _ACEOF
37436 rm -f conftest.$ac_objext
37437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37438   (eval $ac_compile) 2>conftest.er1
37439   ac_status=$?
37440   grep -v '^ *+' conftest.er1 >conftest.err
37441   rm -f conftest.er1
37442   cat conftest.err >&5
37443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37444   (exit $ac_status); } &&
37445          { ac_try='test -z "$ac_c_werror_flag"
37446                          || test ! -s conftest.err'
37447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37448   (eval $ac_try) 2>&5
37449   ac_status=$?
37450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37451   (exit $ac_status); }; } &&
37452          { ac_try='test -s conftest.$ac_objext'
37453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37454   (eval $ac_try) 2>&5
37455   ac_status=$?
37456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37457   (exit $ac_status); }; }; then
37458   ol_cv_func_gethostbyaddr_r_nargs8=yes
37459 else
37460   echo "$as_me: failed program was:" >&5
37461 sed 's/^/| /' conftest.$ac_ext >&5
37462
37463 ol_cv_func_gethostbyaddr_r_nargs8=no
37464 fi
37465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37466
37467         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37468                 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37469
37470                 ol_cv_func_gethostbyaddr_r_nargs=7
37471
37472         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37473                 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37474
37475                 ol_cv_func_gethostbyaddr_r_nargs=8
37476
37477         else
37478                 ol_cv_func_gethostbyaddr_r_nargs=0
37479         fi
37480
37481 fi
37482 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37483 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37484   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37485
37486 cat >>confdefs.h <<_ACEOF
37487 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37488 _ACEOF
37489
37490   fi
37491
37492 else
37493         ol_cv_func_gethostbyaddr_r_nargs=0
37494 fi
37495
37496 ol_link_ldbm=no
37497
37498 if test $ol_with_ldbm_api = auto \
37499         -o $ol_with_ldbm_api = berkeley \
37500         -o $ol_with_ldbm_api = bcompat ; then
37501
37502         if test $ol_with_ldbm_api = bcompat; then \
37503
37504
37505 for ac_header in db_185.h db.h
37506 do
37507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37509   echo "$as_me:$LINENO: checking for $ac_header" >&5
37510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37512   echo $ECHO_N "(cached) $ECHO_C" >&6
37513 fi
37514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37516 else
37517   # Is the header compilable?
37518 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37520 cat >conftest.$ac_ext <<_ACEOF
37521 /* confdefs.h.  */
37522 _ACEOF
37523 cat confdefs.h >>conftest.$ac_ext
37524 cat >>conftest.$ac_ext <<_ACEOF
37525 /* end confdefs.h.  */
37526 $ac_includes_default
37527 #include <$ac_header>
37528 _ACEOF
37529 rm -f conftest.$ac_objext
37530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37531   (eval $ac_compile) 2>conftest.er1
37532   ac_status=$?
37533   grep -v '^ *+' conftest.er1 >conftest.err
37534   rm -f conftest.er1
37535   cat conftest.err >&5
37536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37537   (exit $ac_status); } &&
37538          { ac_try='test -z "$ac_c_werror_flag"
37539                          || test ! -s conftest.err'
37540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37541   (eval $ac_try) 2>&5
37542   ac_status=$?
37543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37544   (exit $ac_status); }; } &&
37545          { ac_try='test -s conftest.$ac_objext'
37546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37547   (eval $ac_try) 2>&5
37548   ac_status=$?
37549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37550   (exit $ac_status); }; }; then
37551   ac_header_compiler=yes
37552 else
37553   echo "$as_me: failed program was:" >&5
37554 sed 's/^/| /' conftest.$ac_ext >&5
37555
37556 ac_header_compiler=no
37557 fi
37558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37560 echo "${ECHO_T}$ac_header_compiler" >&6
37561
37562 # Is the header present?
37563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37565 cat >conftest.$ac_ext <<_ACEOF
37566 /* confdefs.h.  */
37567 _ACEOF
37568 cat confdefs.h >>conftest.$ac_ext
37569 cat >>conftest.$ac_ext <<_ACEOF
37570 /* end confdefs.h.  */
37571 #include <$ac_header>
37572 _ACEOF
37573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37574   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37575   ac_status=$?
37576   grep -v '^ *+' conftest.er1 >conftest.err
37577   rm -f conftest.er1
37578   cat conftest.err >&5
37579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37580   (exit $ac_status); } >/dev/null; then
37581   if test -s conftest.err; then
37582     ac_cpp_err=$ac_c_preproc_warn_flag
37583     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37584   else
37585     ac_cpp_err=
37586   fi
37587 else
37588   ac_cpp_err=yes
37589 fi
37590 if test -z "$ac_cpp_err"; then
37591   ac_header_preproc=yes
37592 else
37593   echo "$as_me: failed program was:" >&5
37594 sed 's/^/| /' conftest.$ac_ext >&5
37595
37596   ac_header_preproc=no
37597 fi
37598 rm -f conftest.err conftest.$ac_ext
37599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37600 echo "${ECHO_T}$ac_header_preproc" >&6
37601
37602 # So?  What about this header?
37603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37604   yes:no: )
37605     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37609     ac_header_preproc=yes
37610     ;;
37611   no:yes:* )
37612     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37614     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37615 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37616     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37618     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37619 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37620     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37622     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37624     (
37625       cat <<\_ASBOX
37626 ## ------------------------------------------ ##
37627 ## Report this to the AC_PACKAGE_NAME lists.  ##
37628 ## ------------------------------------------ ##
37629 _ASBOX
37630     ) |
37631       sed "s/^/$as_me: WARNING:     /" >&2
37632     ;;
37633 esac
37634 echo "$as_me:$LINENO: checking for $ac_header" >&5
37635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37637   echo $ECHO_N "(cached) $ECHO_C" >&6
37638 else
37639   eval "$as_ac_Header=\$ac_header_preproc"
37640 fi
37641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37643
37644 fi
37645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37646   cat >>confdefs.h <<_ACEOF
37647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37648 _ACEOF
37649
37650 fi
37651
37652 done
37653
37654 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
37655         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
37656 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
37657 if test "${ol_cv_header_db1+set}" = set; then
37658   echo $ECHO_N "(cached) $ECHO_C" >&6
37659 else
37660
37661                 cat >conftest.$ac_ext <<_ACEOF
37662 /* confdefs.h.  */
37663 _ACEOF
37664 cat confdefs.h >>conftest.$ac_ext
37665 cat >>conftest.$ac_ext <<_ACEOF
37666 /* end confdefs.h.  */
37667
37668 #if HAVE_DB_185_H
37669 #       include <db_185.h>
37670 #else
37671 #       include <db.h>
37672 #endif
37673
37674  /* this check could be improved */
37675 #ifndef DB_VERSION_MAJOR
37676 #       define DB_VERSION_MAJOR 1
37677 #endif
37678
37679 #if DB_VERSION_MAJOR == 1
37680         __db_version_1
37681 #endif
37682
37683 _ACEOF
37684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37685   $EGREP "__db_version_1" >/dev/null 2>&1; then
37686   ol_cv_header_db1=yes
37687 else
37688   ol_cv_header_db1=no
37689 fi
37690 rm -f conftest*
37691
37692 fi
37693 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
37694 echo "${ECHO_T}$ol_cv_header_db1" >&6
37695
37696         if test $ol_cv_header_db1 = yes ; then
37697                 ol_cv_lib_db=no
37698 if test $ol_cv_lib_db = no ; then
37699         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
37700 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
37701 if test "${ol_cv_db_none+set}" = set; then
37702   echo $ECHO_N "(cached) $ECHO_C" >&6
37703 else
37704
37705         ol_DB_LIB=
37706         ol_LIBS=$LIBS
37707         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37708
37709         cat >conftest.$ac_ext <<_ACEOF
37710 /* confdefs.h.  */
37711 _ACEOF
37712 cat confdefs.h >>conftest.$ac_ext
37713 cat >>conftest.$ac_ext <<_ACEOF
37714 /* end confdefs.h.  */
37715
37716 #ifdef HAVE_DB_185_H
37717 # include <db_185.h>
37718 #else
37719 # include <db.h>
37720 #endif
37721
37722 #ifndef DB_VERSION_MAJOR
37723 # define DB_VERSION_MAJOR 1
37724 #endif
37725
37726 #ifndef NULL
37727 #define NULL ((void*)0)
37728 #endif
37729
37730 int
37731 main ()
37732 {
37733
37734 #if DB_VERSION_MAJOR > 1
37735         {
37736                 char *version;
37737                 int major, minor, patch;
37738
37739                 version = db_version( &major, &minor, &patch );
37740
37741                 if( major != DB_VERSION_MAJOR ||
37742                         minor < DB_VERSION_MINOR )
37743                 {
37744                         printf("Berkeley DB version mismatch\n"
37745                                 "\theader: %s\n\tlibrary: %s\n",
37746                                 DB_VERSION_STRING, version);
37747                         return 1;
37748                 }
37749         }
37750 #endif
37751
37752 #if DB_VERSION_MAJOR > 2
37753         db_env_create( NULL, 0 );
37754 #elif DB_VERSION_MAJOR > 1
37755         db_appexit( NULL );
37756 #else
37757         (void) dbopen( NULL, 0, 0, 0, NULL);
37758 #endif
37759
37760   ;
37761   return 0;
37762 }
37763 _ACEOF
37764 rm -f conftest.$ac_objext conftest$ac_exeext
37765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37766   (eval $ac_link) 2>conftest.er1
37767   ac_status=$?
37768   grep -v '^ *+' conftest.er1 >conftest.err
37769   rm -f conftest.er1
37770   cat conftest.err >&5
37771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37772   (exit $ac_status); } &&
37773          { ac_try='test -z "$ac_c_werror_flag"
37774                          || test ! -s conftest.err'
37775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37776   (eval $ac_try) 2>&5
37777   ac_status=$?
37778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37779   (exit $ac_status); }; } &&
37780          { ac_try='test -s conftest$ac_exeext'
37781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37782   (eval $ac_try) 2>&5
37783   ac_status=$?
37784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37785   (exit $ac_status); }; }; then
37786   ol_cv_db_none=yes
37787 else
37788   echo "$as_me: failed program was:" >&5
37789 sed 's/^/| /' conftest.$ac_ext >&5
37790
37791 ol_cv_db_none=no
37792 fi
37793 rm -f conftest.err conftest.$ac_objext \
37794       conftest$ac_exeext conftest.$ac_ext
37795
37796         LIBS="$ol_LIBS"
37797
37798 fi
37799 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
37800 echo "${ECHO_T}$ol_cv_db_none" >&6
37801
37802         if test $ol_cv_db_none = yes ; then
37803                 ol_cv_lib_db=yes
37804         fi
37805 fi
37806
37807 if test $ol_cv_lib_db = no ; then
37808         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
37809 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
37810 if test "${ol_cv_db_db43+set}" = set; then
37811   echo $ECHO_N "(cached) $ECHO_C" >&6
37812 else
37813
37814         ol_DB_LIB=-ldb43
37815         ol_LIBS=$LIBS
37816         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37817
37818         cat >conftest.$ac_ext <<_ACEOF
37819 /* confdefs.h.  */
37820 _ACEOF
37821 cat confdefs.h >>conftest.$ac_ext
37822 cat >>conftest.$ac_ext <<_ACEOF
37823 /* end confdefs.h.  */
37824
37825 #ifdef HAVE_DB_185_H
37826 # include <db_185.h>
37827 #else
37828 # include <db.h>
37829 #endif
37830
37831 #ifndef DB_VERSION_MAJOR
37832 # define DB_VERSION_MAJOR 1
37833 #endif
37834
37835 #ifndef NULL
37836 #define NULL ((void*)0)
37837 #endif
37838
37839 int
37840 main ()
37841 {
37842
37843 #if DB_VERSION_MAJOR > 1
37844         {
37845                 char *version;
37846                 int major, minor, patch;
37847
37848                 version = db_version( &major, &minor, &patch );
37849
37850                 if( major != DB_VERSION_MAJOR ||
37851                         minor < DB_VERSION_MINOR )
37852                 {
37853                         printf("Berkeley DB version mismatch\n"
37854                                 "\theader: %s\n\tlibrary: %s\n",
37855                                 DB_VERSION_STRING, version);
37856                         return 1;
37857                 }
37858         }
37859 #endif
37860
37861 #if DB_VERSION_MAJOR > 2
37862         db_env_create( NULL, 0 );
37863 #elif DB_VERSION_MAJOR > 1
37864         db_appexit( NULL );
37865 #else
37866         (void) dbopen( NULL, 0, 0, 0, NULL);
37867 #endif
37868
37869   ;
37870   return 0;
37871 }
37872 _ACEOF
37873 rm -f conftest.$ac_objext conftest$ac_exeext
37874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37875   (eval $ac_link) 2>conftest.er1
37876   ac_status=$?
37877   grep -v '^ *+' conftest.er1 >conftest.err
37878   rm -f conftest.er1
37879   cat conftest.err >&5
37880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37881   (exit $ac_status); } &&
37882          { ac_try='test -z "$ac_c_werror_flag"
37883                          || test ! -s conftest.err'
37884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37885   (eval $ac_try) 2>&5
37886   ac_status=$?
37887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37888   (exit $ac_status); }; } &&
37889          { ac_try='test -s conftest$ac_exeext'
37890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37891   (eval $ac_try) 2>&5
37892   ac_status=$?
37893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37894   (exit $ac_status); }; }; then
37895   ol_cv_db_db43=yes
37896 else
37897   echo "$as_me: failed program was:" >&5
37898 sed 's/^/| /' conftest.$ac_ext >&5
37899
37900 ol_cv_db_db43=no
37901 fi
37902 rm -f conftest.err conftest.$ac_objext \
37903       conftest$ac_exeext conftest.$ac_ext
37904
37905         LIBS="$ol_LIBS"
37906
37907 fi
37908 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
37909 echo "${ECHO_T}$ol_cv_db_db43" >&6
37910
37911         if test $ol_cv_db_db43 = yes ; then
37912                 ol_cv_lib_db=-ldb43
37913         fi
37914 fi
37915
37916 if test $ol_cv_lib_db = no ; then
37917         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
37918 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
37919 if test "${ol_cv_db_db_43+set}" = set; then
37920   echo $ECHO_N "(cached) $ECHO_C" >&6
37921 else
37922
37923         ol_DB_LIB=-ldb-43
37924         ol_LIBS=$LIBS
37925         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37926
37927         cat >conftest.$ac_ext <<_ACEOF
37928 /* confdefs.h.  */
37929 _ACEOF
37930 cat confdefs.h >>conftest.$ac_ext
37931 cat >>conftest.$ac_ext <<_ACEOF
37932 /* end confdefs.h.  */
37933
37934 #ifdef HAVE_DB_185_H
37935 # include <db_185.h>
37936 #else
37937 # include <db.h>
37938 #endif
37939
37940 #ifndef DB_VERSION_MAJOR
37941 # define DB_VERSION_MAJOR 1
37942 #endif
37943
37944 #ifndef NULL
37945 #define NULL ((void*)0)
37946 #endif
37947
37948 int
37949 main ()
37950 {
37951
37952 #if DB_VERSION_MAJOR > 1
37953         {
37954                 char *version;
37955                 int major, minor, patch;
37956
37957                 version = db_version( &major, &minor, &patch );
37958
37959                 if( major != DB_VERSION_MAJOR ||
37960                         minor < DB_VERSION_MINOR )
37961                 {
37962                         printf("Berkeley DB version mismatch\n"
37963                                 "\theader: %s\n\tlibrary: %s\n",
37964                                 DB_VERSION_STRING, version);
37965                         return 1;
37966                 }
37967         }
37968 #endif
37969
37970 #if DB_VERSION_MAJOR > 2
37971         db_env_create( NULL, 0 );
37972 #elif DB_VERSION_MAJOR > 1
37973         db_appexit( NULL );
37974 #else
37975         (void) dbopen( NULL, 0, 0, 0, NULL);
37976 #endif
37977
37978   ;
37979   return 0;
37980 }
37981 _ACEOF
37982 rm -f conftest.$ac_objext conftest$ac_exeext
37983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37984   (eval $ac_link) 2>conftest.er1
37985   ac_status=$?
37986   grep -v '^ *+' conftest.er1 >conftest.err
37987   rm -f conftest.er1
37988   cat conftest.err >&5
37989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37990   (exit $ac_status); } &&
37991          { ac_try='test -z "$ac_c_werror_flag"
37992                          || test ! -s conftest.err'
37993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37994   (eval $ac_try) 2>&5
37995   ac_status=$?
37996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37997   (exit $ac_status); }; } &&
37998          { ac_try='test -s conftest$ac_exeext'
37999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38000   (eval $ac_try) 2>&5
38001   ac_status=$?
38002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38003   (exit $ac_status); }; }; then
38004   ol_cv_db_db_43=yes
38005 else
38006   echo "$as_me: failed program was:" >&5
38007 sed 's/^/| /' conftest.$ac_ext >&5
38008
38009 ol_cv_db_db_43=no
38010 fi
38011 rm -f conftest.err conftest.$ac_objext \
38012       conftest$ac_exeext conftest.$ac_ext
38013
38014         LIBS="$ol_LIBS"
38015
38016 fi
38017 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38018 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38019
38020         if test $ol_cv_db_db_43 = yes ; then
38021                 ol_cv_lib_db=-ldb-43
38022         fi
38023 fi
38024
38025 if test $ol_cv_lib_db = no ; then
38026         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38027 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38028 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38029   echo $ECHO_N "(cached) $ECHO_C" >&6
38030 else
38031
38032         ol_DB_LIB=-ldb-4.3
38033         ol_LIBS=$LIBS
38034         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38035
38036         cat >conftest.$ac_ext <<_ACEOF
38037 /* confdefs.h.  */
38038 _ACEOF
38039 cat confdefs.h >>conftest.$ac_ext
38040 cat >>conftest.$ac_ext <<_ACEOF
38041 /* end confdefs.h.  */
38042
38043 #ifdef HAVE_DB_185_H
38044 # include <db_185.h>
38045 #else
38046 # include <db.h>
38047 #endif
38048
38049 #ifndef DB_VERSION_MAJOR
38050 # define DB_VERSION_MAJOR 1
38051 #endif
38052
38053 #ifndef NULL
38054 #define NULL ((void*)0)
38055 #endif
38056
38057 int
38058 main ()
38059 {
38060
38061 #if DB_VERSION_MAJOR > 1
38062         {
38063                 char *version;
38064                 int major, minor, patch;
38065
38066                 version = db_version( &major, &minor, &patch );
38067
38068                 if( major != DB_VERSION_MAJOR ||
38069                         minor < DB_VERSION_MINOR )
38070                 {
38071                         printf("Berkeley DB version mismatch\n"
38072                                 "\theader: %s\n\tlibrary: %s\n",
38073                                 DB_VERSION_STRING, version);
38074                         return 1;
38075                 }
38076         }
38077 #endif
38078
38079 #if DB_VERSION_MAJOR > 2
38080         db_env_create( NULL, 0 );
38081 #elif DB_VERSION_MAJOR > 1
38082         db_appexit( NULL );
38083 #else
38084         (void) dbopen( NULL, 0, 0, 0, NULL);
38085 #endif
38086
38087   ;
38088   return 0;
38089 }
38090 _ACEOF
38091 rm -f conftest.$ac_objext conftest$ac_exeext
38092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38093   (eval $ac_link) 2>conftest.er1
38094   ac_status=$?
38095   grep -v '^ *+' conftest.er1 >conftest.err
38096   rm -f conftest.er1
38097   cat conftest.err >&5
38098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38099   (exit $ac_status); } &&
38100          { ac_try='test -z "$ac_c_werror_flag"
38101                          || test ! -s conftest.err'
38102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38103   (eval $ac_try) 2>&5
38104   ac_status=$?
38105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38106   (exit $ac_status); }; } &&
38107          { ac_try='test -s conftest$ac_exeext'
38108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38109   (eval $ac_try) 2>&5
38110   ac_status=$?
38111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38112   (exit $ac_status); }; }; then
38113   ol_cv_db_db_4_dot_3=yes
38114 else
38115   echo "$as_me: failed program was:" >&5
38116 sed 's/^/| /' conftest.$ac_ext >&5
38117
38118 ol_cv_db_db_4_dot_3=no
38119 fi
38120 rm -f conftest.err conftest.$ac_objext \
38121       conftest$ac_exeext conftest.$ac_ext
38122
38123         LIBS="$ol_LIBS"
38124
38125 fi
38126 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38127 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38128
38129         if test $ol_cv_db_db_4_dot_3 = yes ; then
38130                 ol_cv_lib_db=-ldb-4.3
38131         fi
38132 fi
38133
38134 if test $ol_cv_lib_db = no ; then
38135         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38136 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38137 if test "${ol_cv_db_db_4_3+set}" = set; then
38138   echo $ECHO_N "(cached) $ECHO_C" >&6
38139 else
38140
38141         ol_DB_LIB=-ldb-4-3
38142         ol_LIBS=$LIBS
38143         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38144
38145         cat >conftest.$ac_ext <<_ACEOF
38146 /* confdefs.h.  */
38147 _ACEOF
38148 cat confdefs.h >>conftest.$ac_ext
38149 cat >>conftest.$ac_ext <<_ACEOF
38150 /* end confdefs.h.  */
38151
38152 #ifdef HAVE_DB_185_H
38153 # include <db_185.h>
38154 #else
38155 # include <db.h>
38156 #endif
38157
38158 #ifndef DB_VERSION_MAJOR
38159 # define DB_VERSION_MAJOR 1
38160 #endif
38161
38162 #ifndef NULL
38163 #define NULL ((void*)0)
38164 #endif
38165
38166 int
38167 main ()
38168 {
38169
38170 #if DB_VERSION_MAJOR > 1
38171         {
38172                 char *version;
38173                 int major, minor, patch;
38174
38175                 version = db_version( &major, &minor, &patch );
38176
38177                 if( major != DB_VERSION_MAJOR ||
38178                         minor < DB_VERSION_MINOR )
38179                 {
38180                         printf("Berkeley DB version mismatch\n"
38181                                 "\theader: %s\n\tlibrary: %s\n",
38182                                 DB_VERSION_STRING, version);
38183                         return 1;
38184                 }
38185         }
38186 #endif
38187
38188 #if DB_VERSION_MAJOR > 2
38189         db_env_create( NULL, 0 );
38190 #elif DB_VERSION_MAJOR > 1
38191         db_appexit( NULL );
38192 #else
38193         (void) dbopen( NULL, 0, 0, 0, NULL);
38194 #endif
38195
38196   ;
38197   return 0;
38198 }
38199 _ACEOF
38200 rm -f conftest.$ac_objext conftest$ac_exeext
38201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38202   (eval $ac_link) 2>conftest.er1
38203   ac_status=$?
38204   grep -v '^ *+' conftest.er1 >conftest.err
38205   rm -f conftest.er1
38206   cat conftest.err >&5
38207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38208   (exit $ac_status); } &&
38209          { ac_try='test -z "$ac_c_werror_flag"
38210                          || test ! -s conftest.err'
38211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38212   (eval $ac_try) 2>&5
38213   ac_status=$?
38214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38215   (exit $ac_status); }; } &&
38216          { ac_try='test -s conftest$ac_exeext'
38217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38218   (eval $ac_try) 2>&5
38219   ac_status=$?
38220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38221   (exit $ac_status); }; }; then
38222   ol_cv_db_db_4_3=yes
38223 else
38224   echo "$as_me: failed program was:" >&5
38225 sed 's/^/| /' conftest.$ac_ext >&5
38226
38227 ol_cv_db_db_4_3=no
38228 fi
38229 rm -f conftest.err conftest.$ac_objext \
38230       conftest$ac_exeext conftest.$ac_ext
38231
38232         LIBS="$ol_LIBS"
38233
38234 fi
38235 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38236 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38237
38238         if test $ol_cv_db_db_4_3 = yes ; then
38239                 ol_cv_lib_db=-ldb-4-3
38240         fi
38241 fi
38242
38243 if test $ol_cv_lib_db = no ; then
38244         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38245 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38246 if test "${ol_cv_db_db42+set}" = set; then
38247   echo $ECHO_N "(cached) $ECHO_C" >&6
38248 else
38249
38250         ol_DB_LIB=-ldb42
38251         ol_LIBS=$LIBS
38252         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38253
38254         cat >conftest.$ac_ext <<_ACEOF
38255 /* confdefs.h.  */
38256 _ACEOF
38257 cat confdefs.h >>conftest.$ac_ext
38258 cat >>conftest.$ac_ext <<_ACEOF
38259 /* end confdefs.h.  */
38260
38261 #ifdef HAVE_DB_185_H
38262 # include <db_185.h>
38263 #else
38264 # include <db.h>
38265 #endif
38266
38267 #ifndef DB_VERSION_MAJOR
38268 # define DB_VERSION_MAJOR 1
38269 #endif
38270
38271 #ifndef NULL
38272 #define NULL ((void*)0)
38273 #endif
38274
38275 int
38276 main ()
38277 {
38278
38279 #if DB_VERSION_MAJOR > 1
38280         {
38281                 char *version;
38282                 int major, minor, patch;
38283
38284                 version = db_version( &major, &minor, &patch );
38285
38286                 if( major != DB_VERSION_MAJOR ||
38287                         minor < DB_VERSION_MINOR )
38288                 {
38289                         printf("Berkeley DB version mismatch\n"
38290                                 "\theader: %s\n\tlibrary: %s\n",
38291                                 DB_VERSION_STRING, version);
38292                         return 1;
38293                 }
38294         }
38295 #endif
38296
38297 #if DB_VERSION_MAJOR > 2
38298         db_env_create( NULL, 0 );
38299 #elif DB_VERSION_MAJOR > 1
38300         db_appexit( NULL );
38301 #else
38302         (void) dbopen( NULL, 0, 0, 0, NULL);
38303 #endif
38304
38305   ;
38306   return 0;
38307 }
38308 _ACEOF
38309 rm -f conftest.$ac_objext conftest$ac_exeext
38310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38311   (eval $ac_link) 2>conftest.er1
38312   ac_status=$?
38313   grep -v '^ *+' conftest.er1 >conftest.err
38314   rm -f conftest.er1
38315   cat conftest.err >&5
38316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38317   (exit $ac_status); } &&
38318          { ac_try='test -z "$ac_c_werror_flag"
38319                          || test ! -s conftest.err'
38320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38321   (eval $ac_try) 2>&5
38322   ac_status=$?
38323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38324   (exit $ac_status); }; } &&
38325          { ac_try='test -s conftest$ac_exeext'
38326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38327   (eval $ac_try) 2>&5
38328   ac_status=$?
38329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38330   (exit $ac_status); }; }; then
38331   ol_cv_db_db42=yes
38332 else
38333   echo "$as_me: failed program was:" >&5
38334 sed 's/^/| /' conftest.$ac_ext >&5
38335
38336 ol_cv_db_db42=no
38337 fi
38338 rm -f conftest.err conftest.$ac_objext \
38339       conftest$ac_exeext conftest.$ac_ext
38340
38341         LIBS="$ol_LIBS"
38342
38343 fi
38344 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38345 echo "${ECHO_T}$ol_cv_db_db42" >&6
38346
38347         if test $ol_cv_db_db42 = yes ; then
38348                 ol_cv_lib_db=-ldb42
38349         fi
38350 fi
38351
38352 if test $ol_cv_lib_db = no ; then
38353         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38354 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38355 if test "${ol_cv_db_db_42+set}" = set; then
38356   echo $ECHO_N "(cached) $ECHO_C" >&6
38357 else
38358
38359         ol_DB_LIB=-ldb-42
38360         ol_LIBS=$LIBS
38361         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38362
38363         cat >conftest.$ac_ext <<_ACEOF
38364 /* confdefs.h.  */
38365 _ACEOF
38366 cat confdefs.h >>conftest.$ac_ext
38367 cat >>conftest.$ac_ext <<_ACEOF
38368 /* end confdefs.h.  */
38369
38370 #ifdef HAVE_DB_185_H
38371 # include <db_185.h>
38372 #else
38373 # include <db.h>
38374 #endif
38375
38376 #ifndef DB_VERSION_MAJOR
38377 # define DB_VERSION_MAJOR 1
38378 #endif
38379
38380 #ifndef NULL
38381 #define NULL ((void*)0)
38382 #endif
38383
38384 int
38385 main ()
38386 {
38387
38388 #if DB_VERSION_MAJOR > 1
38389         {
38390                 char *version;
38391                 int major, minor, patch;
38392
38393                 version = db_version( &major, &minor, &patch );
38394
38395                 if( major != DB_VERSION_MAJOR ||
38396                         minor < DB_VERSION_MINOR )
38397                 {
38398                         printf("Berkeley DB version mismatch\n"
38399                                 "\theader: %s\n\tlibrary: %s\n",
38400                                 DB_VERSION_STRING, version);
38401                         return 1;
38402                 }
38403         }
38404 #endif
38405
38406 #if DB_VERSION_MAJOR > 2
38407         db_env_create( NULL, 0 );
38408 #elif DB_VERSION_MAJOR > 1
38409         db_appexit( NULL );
38410 #else
38411         (void) dbopen( NULL, 0, 0, 0, NULL);
38412 #endif
38413
38414   ;
38415   return 0;
38416 }
38417 _ACEOF
38418 rm -f conftest.$ac_objext conftest$ac_exeext
38419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38420   (eval $ac_link) 2>conftest.er1
38421   ac_status=$?
38422   grep -v '^ *+' conftest.er1 >conftest.err
38423   rm -f conftest.er1
38424   cat conftest.err >&5
38425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38426   (exit $ac_status); } &&
38427          { ac_try='test -z "$ac_c_werror_flag"
38428                          || test ! -s conftest.err'
38429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38430   (eval $ac_try) 2>&5
38431   ac_status=$?
38432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38433   (exit $ac_status); }; } &&
38434          { ac_try='test -s conftest$ac_exeext'
38435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38436   (eval $ac_try) 2>&5
38437   ac_status=$?
38438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38439   (exit $ac_status); }; }; then
38440   ol_cv_db_db_42=yes
38441 else
38442   echo "$as_me: failed program was:" >&5
38443 sed 's/^/| /' conftest.$ac_ext >&5
38444
38445 ol_cv_db_db_42=no
38446 fi
38447 rm -f conftest.err conftest.$ac_objext \
38448       conftest$ac_exeext conftest.$ac_ext
38449
38450         LIBS="$ol_LIBS"
38451
38452 fi
38453 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38454 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38455
38456         if test $ol_cv_db_db_42 = yes ; then
38457                 ol_cv_lib_db=-ldb-42
38458         fi
38459 fi
38460
38461 if test $ol_cv_lib_db = no ; then
38462         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38463 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38464 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38465   echo $ECHO_N "(cached) $ECHO_C" >&6
38466 else
38467
38468         ol_DB_LIB=-ldb-4.2
38469         ol_LIBS=$LIBS
38470         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38471
38472         cat >conftest.$ac_ext <<_ACEOF
38473 /* confdefs.h.  */
38474 _ACEOF
38475 cat confdefs.h >>conftest.$ac_ext
38476 cat >>conftest.$ac_ext <<_ACEOF
38477 /* end confdefs.h.  */
38478
38479 #ifdef HAVE_DB_185_H
38480 # include <db_185.h>
38481 #else
38482 # include <db.h>
38483 #endif
38484
38485 #ifndef DB_VERSION_MAJOR
38486 # define DB_VERSION_MAJOR 1
38487 #endif
38488
38489 #ifndef NULL
38490 #define NULL ((void*)0)
38491 #endif
38492
38493 int
38494 main ()
38495 {
38496
38497 #if DB_VERSION_MAJOR > 1
38498         {
38499                 char *version;
38500                 int major, minor, patch;
38501
38502                 version = db_version( &major, &minor, &patch );
38503
38504                 if( major != DB_VERSION_MAJOR ||
38505                         minor < DB_VERSION_MINOR )
38506                 {
38507                         printf("Berkeley DB version mismatch\n"
38508                                 "\theader: %s\n\tlibrary: %s\n",
38509                                 DB_VERSION_STRING, version);
38510                         return 1;
38511                 }
38512         }
38513 #endif
38514
38515 #if DB_VERSION_MAJOR > 2
38516         db_env_create( NULL, 0 );
38517 #elif DB_VERSION_MAJOR > 1
38518         db_appexit( NULL );
38519 #else
38520         (void) dbopen( NULL, 0, 0, 0, NULL);
38521 #endif
38522
38523   ;
38524   return 0;
38525 }
38526 _ACEOF
38527 rm -f conftest.$ac_objext conftest$ac_exeext
38528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38529   (eval $ac_link) 2>conftest.er1
38530   ac_status=$?
38531   grep -v '^ *+' conftest.er1 >conftest.err
38532   rm -f conftest.er1
38533   cat conftest.err >&5
38534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38535   (exit $ac_status); } &&
38536          { ac_try='test -z "$ac_c_werror_flag"
38537                          || test ! -s conftest.err'
38538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38539   (eval $ac_try) 2>&5
38540   ac_status=$?
38541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38542   (exit $ac_status); }; } &&
38543          { ac_try='test -s conftest$ac_exeext'
38544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38545   (eval $ac_try) 2>&5
38546   ac_status=$?
38547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38548   (exit $ac_status); }; }; then
38549   ol_cv_db_db_4_dot_2=yes
38550 else
38551   echo "$as_me: failed program was:" >&5
38552 sed 's/^/| /' conftest.$ac_ext >&5
38553
38554 ol_cv_db_db_4_dot_2=no
38555 fi
38556 rm -f conftest.err conftest.$ac_objext \
38557       conftest$ac_exeext conftest.$ac_ext
38558
38559         LIBS="$ol_LIBS"
38560
38561 fi
38562 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
38563 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
38564
38565         if test $ol_cv_db_db_4_dot_2 = yes ; then
38566                 ol_cv_lib_db=-ldb-4.2
38567         fi
38568 fi
38569
38570 if test $ol_cv_lib_db = no ; then
38571         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
38572 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
38573 if test "${ol_cv_db_db_4_2+set}" = set; then
38574   echo $ECHO_N "(cached) $ECHO_C" >&6
38575 else
38576
38577         ol_DB_LIB=-ldb-4-2
38578         ol_LIBS=$LIBS
38579         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38580
38581         cat >conftest.$ac_ext <<_ACEOF
38582 /* confdefs.h.  */
38583 _ACEOF
38584 cat confdefs.h >>conftest.$ac_ext
38585 cat >>conftest.$ac_ext <<_ACEOF
38586 /* end confdefs.h.  */
38587
38588 #ifdef HAVE_DB_185_H
38589 # include <db_185.h>
38590 #else
38591 # include <db.h>
38592 #endif
38593
38594 #ifndef DB_VERSION_MAJOR
38595 # define DB_VERSION_MAJOR 1
38596 #endif
38597
38598 #ifndef NULL
38599 #define NULL ((void*)0)
38600 #endif
38601
38602 int
38603 main ()
38604 {
38605
38606 #if DB_VERSION_MAJOR > 1
38607         {
38608                 char *version;
38609                 int major, minor, patch;
38610
38611                 version = db_version( &major, &minor, &patch );
38612
38613                 if( major != DB_VERSION_MAJOR ||
38614                         minor < DB_VERSION_MINOR )
38615                 {
38616                         printf("Berkeley DB version mismatch\n"
38617                                 "\theader: %s\n\tlibrary: %s\n",
38618                                 DB_VERSION_STRING, version);
38619                         return 1;
38620                 }
38621         }
38622 #endif
38623
38624 #if DB_VERSION_MAJOR > 2
38625         db_env_create( NULL, 0 );
38626 #elif DB_VERSION_MAJOR > 1
38627         db_appexit( NULL );
38628 #else
38629         (void) dbopen( NULL, 0, 0, 0, NULL);
38630 #endif
38631
38632   ;
38633   return 0;
38634 }
38635 _ACEOF
38636 rm -f conftest.$ac_objext conftest$ac_exeext
38637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38638   (eval $ac_link) 2>conftest.er1
38639   ac_status=$?
38640   grep -v '^ *+' conftest.er1 >conftest.err
38641   rm -f conftest.er1
38642   cat conftest.err >&5
38643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38644   (exit $ac_status); } &&
38645          { ac_try='test -z "$ac_c_werror_flag"
38646                          || test ! -s conftest.err'
38647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38648   (eval $ac_try) 2>&5
38649   ac_status=$?
38650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38651   (exit $ac_status); }; } &&
38652          { ac_try='test -s conftest$ac_exeext'
38653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38654   (eval $ac_try) 2>&5
38655   ac_status=$?
38656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38657   (exit $ac_status); }; }; then
38658   ol_cv_db_db_4_2=yes
38659 else
38660   echo "$as_me: failed program was:" >&5
38661 sed 's/^/| /' conftest.$ac_ext >&5
38662
38663 ol_cv_db_db_4_2=no
38664 fi
38665 rm -f conftest.err conftest.$ac_objext \
38666       conftest$ac_exeext conftest.$ac_ext
38667
38668         LIBS="$ol_LIBS"
38669
38670 fi
38671 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
38672 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
38673
38674         if test $ol_cv_db_db_4_2 = yes ; then
38675                 ol_cv_lib_db=-ldb-4-2
38676         fi
38677 fi
38678
38679 if test $ol_cv_lib_db = no ; then
38680         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
38681 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
38682 if test "${ol_cv_db_db_4+set}" = set; then
38683   echo $ECHO_N "(cached) $ECHO_C" >&6
38684 else
38685
38686         ol_DB_LIB=-ldb-4
38687         ol_LIBS=$LIBS
38688         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38689
38690         cat >conftest.$ac_ext <<_ACEOF
38691 /* confdefs.h.  */
38692 _ACEOF
38693 cat confdefs.h >>conftest.$ac_ext
38694 cat >>conftest.$ac_ext <<_ACEOF
38695 /* end confdefs.h.  */
38696
38697 #ifdef HAVE_DB_185_H
38698 # include <db_185.h>
38699 #else
38700 # include <db.h>
38701 #endif
38702
38703 #ifndef DB_VERSION_MAJOR
38704 # define DB_VERSION_MAJOR 1
38705 #endif
38706
38707 #ifndef NULL
38708 #define NULL ((void*)0)
38709 #endif
38710
38711 int
38712 main ()
38713 {
38714
38715 #if DB_VERSION_MAJOR > 1
38716         {
38717                 char *version;
38718                 int major, minor, patch;
38719
38720                 version = db_version( &major, &minor, &patch );
38721
38722                 if( major != DB_VERSION_MAJOR ||
38723                         minor < DB_VERSION_MINOR )
38724                 {
38725                         printf("Berkeley DB version mismatch\n"
38726                                 "\theader: %s\n\tlibrary: %s\n",
38727                                 DB_VERSION_STRING, version);
38728                         return 1;
38729                 }
38730         }
38731 #endif
38732
38733 #if DB_VERSION_MAJOR > 2
38734         db_env_create( NULL, 0 );
38735 #elif DB_VERSION_MAJOR > 1
38736         db_appexit( NULL );
38737 #else
38738         (void) dbopen( NULL, 0, 0, 0, NULL);
38739 #endif
38740
38741   ;
38742   return 0;
38743 }
38744 _ACEOF
38745 rm -f conftest.$ac_objext conftest$ac_exeext
38746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38747   (eval $ac_link) 2>conftest.er1
38748   ac_status=$?
38749   grep -v '^ *+' conftest.er1 >conftest.err
38750   rm -f conftest.er1
38751   cat conftest.err >&5
38752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38753   (exit $ac_status); } &&
38754          { ac_try='test -z "$ac_c_werror_flag"
38755                          || test ! -s conftest.err'
38756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38757   (eval $ac_try) 2>&5
38758   ac_status=$?
38759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38760   (exit $ac_status); }; } &&
38761          { ac_try='test -s conftest$ac_exeext'
38762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38763   (eval $ac_try) 2>&5
38764   ac_status=$?
38765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38766   (exit $ac_status); }; }; then
38767   ol_cv_db_db_4=yes
38768 else
38769   echo "$as_me: failed program was:" >&5
38770 sed 's/^/| /' conftest.$ac_ext >&5
38771
38772 ol_cv_db_db_4=no
38773 fi
38774 rm -f conftest.err conftest.$ac_objext \
38775       conftest$ac_exeext conftest.$ac_ext
38776
38777         LIBS="$ol_LIBS"
38778
38779 fi
38780 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
38781 echo "${ECHO_T}$ol_cv_db_db_4" >&6
38782
38783         if test $ol_cv_db_db_4 = yes ; then
38784                 ol_cv_lib_db=-ldb-4
38785         fi
38786 fi
38787
38788 if test $ol_cv_lib_db = no ; then
38789         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
38790 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
38791 if test "${ol_cv_db_db4+set}" = set; then
38792   echo $ECHO_N "(cached) $ECHO_C" >&6
38793 else
38794
38795         ol_DB_LIB=-ldb4
38796         ol_LIBS=$LIBS
38797         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38798
38799         cat >conftest.$ac_ext <<_ACEOF
38800 /* confdefs.h.  */
38801 _ACEOF
38802 cat confdefs.h >>conftest.$ac_ext
38803 cat >>conftest.$ac_ext <<_ACEOF
38804 /* end confdefs.h.  */
38805
38806 #ifdef HAVE_DB_185_H
38807 # include <db_185.h>
38808 #else
38809 # include <db.h>
38810 #endif
38811
38812 #ifndef DB_VERSION_MAJOR
38813 # define DB_VERSION_MAJOR 1
38814 #endif
38815
38816 #ifndef NULL
38817 #define NULL ((void*)0)
38818 #endif
38819
38820 int
38821 main ()
38822 {
38823
38824 #if DB_VERSION_MAJOR > 1
38825         {
38826                 char *version;
38827                 int major, minor, patch;
38828
38829                 version = db_version( &major, &minor, &patch );
38830
38831                 if( major != DB_VERSION_MAJOR ||
38832                         minor < DB_VERSION_MINOR )
38833                 {
38834                         printf("Berkeley DB version mismatch\n"
38835                                 "\theader: %s\n\tlibrary: %s\n",
38836                                 DB_VERSION_STRING, version);
38837                         return 1;
38838                 }
38839         }
38840 #endif
38841
38842 #if DB_VERSION_MAJOR > 2
38843         db_env_create( NULL, 0 );
38844 #elif DB_VERSION_MAJOR > 1
38845         db_appexit( NULL );
38846 #else
38847         (void) dbopen( NULL, 0, 0, 0, NULL);
38848 #endif
38849
38850   ;
38851   return 0;
38852 }
38853 _ACEOF
38854 rm -f conftest.$ac_objext conftest$ac_exeext
38855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38856   (eval $ac_link) 2>conftest.er1
38857   ac_status=$?
38858   grep -v '^ *+' conftest.er1 >conftest.err
38859   rm -f conftest.er1
38860   cat conftest.err >&5
38861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38862   (exit $ac_status); } &&
38863          { ac_try='test -z "$ac_c_werror_flag"
38864                          || test ! -s conftest.err'
38865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38866   (eval $ac_try) 2>&5
38867   ac_status=$?
38868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38869   (exit $ac_status); }; } &&
38870          { ac_try='test -s conftest$ac_exeext'
38871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38872   (eval $ac_try) 2>&5
38873   ac_status=$?
38874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38875   (exit $ac_status); }; }; then
38876   ol_cv_db_db4=yes
38877 else
38878   echo "$as_me: failed program was:" >&5
38879 sed 's/^/| /' conftest.$ac_ext >&5
38880
38881 ol_cv_db_db4=no
38882 fi
38883 rm -f conftest.err conftest.$ac_objext \
38884       conftest$ac_exeext conftest.$ac_ext
38885
38886         LIBS="$ol_LIBS"
38887
38888 fi
38889 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
38890 echo "${ECHO_T}$ol_cv_db_db4" >&6
38891
38892         if test $ol_cv_db_db4 = yes ; then
38893                 ol_cv_lib_db=-ldb4
38894         fi
38895 fi
38896
38897 if test $ol_cv_lib_db = no ; then
38898         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
38899 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
38900 if test "${ol_cv_db_db+set}" = set; then
38901   echo $ECHO_N "(cached) $ECHO_C" >&6
38902 else
38903
38904         ol_DB_LIB=-ldb
38905         ol_LIBS=$LIBS
38906         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38907
38908         cat >conftest.$ac_ext <<_ACEOF
38909 /* confdefs.h.  */
38910 _ACEOF
38911 cat confdefs.h >>conftest.$ac_ext
38912 cat >>conftest.$ac_ext <<_ACEOF
38913 /* end confdefs.h.  */
38914
38915 #ifdef HAVE_DB_185_H
38916 # include <db_185.h>
38917 #else
38918 # include <db.h>
38919 #endif
38920
38921 #ifndef DB_VERSION_MAJOR
38922 # define DB_VERSION_MAJOR 1
38923 #endif
38924
38925 #ifndef NULL
38926 #define NULL ((void*)0)
38927 #endif
38928
38929 int
38930 main ()
38931 {
38932
38933 #if DB_VERSION_MAJOR > 1
38934         {
38935                 char *version;
38936                 int major, minor, patch;
38937
38938                 version = db_version( &major, &minor, &patch );
38939
38940                 if( major != DB_VERSION_MAJOR ||
38941                         minor < DB_VERSION_MINOR )
38942                 {
38943                         printf("Berkeley DB version mismatch\n"
38944                                 "\theader: %s\n\tlibrary: %s\n",
38945                                 DB_VERSION_STRING, version);
38946                         return 1;
38947                 }
38948         }
38949 #endif
38950
38951 #if DB_VERSION_MAJOR > 2
38952         db_env_create( NULL, 0 );
38953 #elif DB_VERSION_MAJOR > 1
38954         db_appexit( NULL );
38955 #else
38956         (void) dbopen( NULL, 0, 0, 0, NULL);
38957 #endif
38958
38959   ;
38960   return 0;
38961 }
38962 _ACEOF
38963 rm -f conftest.$ac_objext conftest$ac_exeext
38964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38965   (eval $ac_link) 2>conftest.er1
38966   ac_status=$?
38967   grep -v '^ *+' conftest.er1 >conftest.err
38968   rm -f conftest.er1
38969   cat conftest.err >&5
38970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38971   (exit $ac_status); } &&
38972          { ac_try='test -z "$ac_c_werror_flag"
38973                          || test ! -s conftest.err'
38974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38975   (eval $ac_try) 2>&5
38976   ac_status=$?
38977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38978   (exit $ac_status); }; } &&
38979          { ac_try='test -s conftest$ac_exeext'
38980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38981   (eval $ac_try) 2>&5
38982   ac_status=$?
38983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38984   (exit $ac_status); }; }; then
38985   ol_cv_db_db=yes
38986 else
38987   echo "$as_me: failed program was:" >&5
38988 sed 's/^/| /' conftest.$ac_ext >&5
38989
38990 ol_cv_db_db=no
38991 fi
38992 rm -f conftest.err conftest.$ac_objext \
38993       conftest$ac_exeext conftest.$ac_ext
38994
38995         LIBS="$ol_LIBS"
38996
38997 fi
38998 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
38999 echo "${ECHO_T}$ol_cv_db_db" >&6
39000
39001         if test $ol_cv_db_db = yes ; then
39002                 ol_cv_lib_db=-ldb
39003         fi
39004 fi
39005
39006 if test $ol_cv_lib_db = no ; then
39007         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39008 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39009 if test "${ol_cv_db_db41+set}" = set; then
39010   echo $ECHO_N "(cached) $ECHO_C" >&6
39011 else
39012
39013         ol_DB_LIB=-ldb41
39014         ol_LIBS=$LIBS
39015         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39016
39017         cat >conftest.$ac_ext <<_ACEOF
39018 /* confdefs.h.  */
39019 _ACEOF
39020 cat confdefs.h >>conftest.$ac_ext
39021 cat >>conftest.$ac_ext <<_ACEOF
39022 /* end confdefs.h.  */
39023
39024 #ifdef HAVE_DB_185_H
39025 # include <db_185.h>
39026 #else
39027 # include <db.h>
39028 #endif
39029
39030 #ifndef DB_VERSION_MAJOR
39031 # define DB_VERSION_MAJOR 1
39032 #endif
39033
39034 #ifndef NULL
39035 #define NULL ((void*)0)
39036 #endif
39037
39038 int
39039 main ()
39040 {
39041
39042 #if DB_VERSION_MAJOR > 1
39043         {
39044                 char *version;
39045                 int major, minor, patch;
39046
39047                 version = db_version( &major, &minor, &patch );
39048
39049                 if( major != DB_VERSION_MAJOR ||
39050                         minor < DB_VERSION_MINOR )
39051                 {
39052                         printf("Berkeley DB version mismatch\n"
39053                                 "\theader: %s\n\tlibrary: %s\n",
39054                                 DB_VERSION_STRING, version);
39055                         return 1;
39056                 }
39057         }
39058 #endif
39059
39060 #if DB_VERSION_MAJOR > 2
39061         db_env_create( NULL, 0 );
39062 #elif DB_VERSION_MAJOR > 1
39063         db_appexit( NULL );
39064 #else
39065         (void) dbopen( NULL, 0, 0, 0, NULL);
39066 #endif
39067
39068   ;
39069   return 0;
39070 }
39071 _ACEOF
39072 rm -f conftest.$ac_objext conftest$ac_exeext
39073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39074   (eval $ac_link) 2>conftest.er1
39075   ac_status=$?
39076   grep -v '^ *+' conftest.er1 >conftest.err
39077   rm -f conftest.er1
39078   cat conftest.err >&5
39079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39080   (exit $ac_status); } &&
39081          { ac_try='test -z "$ac_c_werror_flag"
39082                          || test ! -s conftest.err'
39083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39084   (eval $ac_try) 2>&5
39085   ac_status=$?
39086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39087   (exit $ac_status); }; } &&
39088          { ac_try='test -s conftest$ac_exeext'
39089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39090   (eval $ac_try) 2>&5
39091   ac_status=$?
39092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39093   (exit $ac_status); }; }; then
39094   ol_cv_db_db41=yes
39095 else
39096   echo "$as_me: failed program was:" >&5
39097 sed 's/^/| /' conftest.$ac_ext >&5
39098
39099 ol_cv_db_db41=no
39100 fi
39101 rm -f conftest.err conftest.$ac_objext \
39102       conftest$ac_exeext conftest.$ac_ext
39103
39104         LIBS="$ol_LIBS"
39105
39106 fi
39107 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39108 echo "${ECHO_T}$ol_cv_db_db41" >&6
39109
39110         if test $ol_cv_db_db41 = yes ; then
39111                 ol_cv_lib_db=-ldb41
39112         fi
39113 fi
39114
39115 if test $ol_cv_lib_db = no ; then
39116         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39117 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39118 if test "${ol_cv_db_db_41+set}" = set; then
39119   echo $ECHO_N "(cached) $ECHO_C" >&6
39120 else
39121
39122         ol_DB_LIB=-ldb-41
39123         ol_LIBS=$LIBS
39124         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39125
39126         cat >conftest.$ac_ext <<_ACEOF
39127 /* confdefs.h.  */
39128 _ACEOF
39129 cat confdefs.h >>conftest.$ac_ext
39130 cat >>conftest.$ac_ext <<_ACEOF
39131 /* end confdefs.h.  */
39132
39133 #ifdef HAVE_DB_185_H
39134 # include <db_185.h>
39135 #else
39136 # include <db.h>
39137 #endif
39138
39139 #ifndef DB_VERSION_MAJOR
39140 # define DB_VERSION_MAJOR 1
39141 #endif
39142
39143 #ifndef NULL
39144 #define NULL ((void*)0)
39145 #endif
39146
39147 int
39148 main ()
39149 {
39150
39151 #if DB_VERSION_MAJOR > 1
39152         {
39153                 char *version;
39154                 int major, minor, patch;
39155
39156                 version = db_version( &major, &minor, &patch );
39157
39158                 if( major != DB_VERSION_MAJOR ||
39159                         minor < DB_VERSION_MINOR )
39160                 {
39161                         printf("Berkeley DB version mismatch\n"
39162                                 "\theader: %s\n\tlibrary: %s\n",
39163                                 DB_VERSION_STRING, version);
39164                         return 1;
39165                 }
39166         }
39167 #endif
39168
39169 #if DB_VERSION_MAJOR > 2
39170         db_env_create( NULL, 0 );
39171 #elif DB_VERSION_MAJOR > 1
39172         db_appexit( NULL );
39173 #else
39174         (void) dbopen( NULL, 0, 0, 0, NULL);
39175 #endif
39176
39177   ;
39178   return 0;
39179 }
39180 _ACEOF
39181 rm -f conftest.$ac_objext conftest$ac_exeext
39182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39183   (eval $ac_link) 2>conftest.er1
39184   ac_status=$?
39185   grep -v '^ *+' conftest.er1 >conftest.err
39186   rm -f conftest.er1
39187   cat conftest.err >&5
39188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39189   (exit $ac_status); } &&
39190          { ac_try='test -z "$ac_c_werror_flag"
39191                          || test ! -s conftest.err'
39192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39193   (eval $ac_try) 2>&5
39194   ac_status=$?
39195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39196   (exit $ac_status); }; } &&
39197          { ac_try='test -s conftest$ac_exeext'
39198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39199   (eval $ac_try) 2>&5
39200   ac_status=$?
39201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39202   (exit $ac_status); }; }; then
39203   ol_cv_db_db_41=yes
39204 else
39205   echo "$as_me: failed program was:" >&5
39206 sed 's/^/| /' conftest.$ac_ext >&5
39207
39208 ol_cv_db_db_41=no
39209 fi
39210 rm -f conftest.err conftest.$ac_objext \
39211       conftest$ac_exeext conftest.$ac_ext
39212
39213         LIBS="$ol_LIBS"
39214
39215 fi
39216 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39217 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39218
39219         if test $ol_cv_db_db_41 = yes ; then
39220                 ol_cv_lib_db=-ldb-41
39221         fi
39222 fi
39223
39224 if test $ol_cv_lib_db = no ; then
39225         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39226 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39227 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39228   echo $ECHO_N "(cached) $ECHO_C" >&6
39229 else
39230
39231         ol_DB_LIB=-ldb-4.1
39232         ol_LIBS=$LIBS
39233         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39234
39235         cat >conftest.$ac_ext <<_ACEOF
39236 /* confdefs.h.  */
39237 _ACEOF
39238 cat confdefs.h >>conftest.$ac_ext
39239 cat >>conftest.$ac_ext <<_ACEOF
39240 /* end confdefs.h.  */
39241
39242 #ifdef HAVE_DB_185_H
39243 # include <db_185.h>
39244 #else
39245 # include <db.h>
39246 #endif
39247
39248 #ifndef DB_VERSION_MAJOR
39249 # define DB_VERSION_MAJOR 1
39250 #endif
39251
39252 #ifndef NULL
39253 #define NULL ((void*)0)
39254 #endif
39255
39256 int
39257 main ()
39258 {
39259
39260 #if DB_VERSION_MAJOR > 1
39261         {
39262                 char *version;
39263                 int major, minor, patch;
39264
39265                 version = db_version( &major, &minor, &patch );
39266
39267                 if( major != DB_VERSION_MAJOR ||
39268                         minor < DB_VERSION_MINOR )
39269                 {
39270                         printf("Berkeley DB version mismatch\n"
39271                                 "\theader: %s\n\tlibrary: %s\n",
39272                                 DB_VERSION_STRING, version);
39273                         return 1;
39274                 }
39275         }
39276 #endif
39277
39278 #if DB_VERSION_MAJOR > 2
39279         db_env_create( NULL, 0 );
39280 #elif DB_VERSION_MAJOR > 1
39281         db_appexit( NULL );
39282 #else
39283         (void) dbopen( NULL, 0, 0, 0, NULL);
39284 #endif
39285
39286   ;
39287   return 0;
39288 }
39289 _ACEOF
39290 rm -f conftest.$ac_objext conftest$ac_exeext
39291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39292   (eval $ac_link) 2>conftest.er1
39293   ac_status=$?
39294   grep -v '^ *+' conftest.er1 >conftest.err
39295   rm -f conftest.er1
39296   cat conftest.err >&5
39297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39298   (exit $ac_status); } &&
39299          { ac_try='test -z "$ac_c_werror_flag"
39300                          || test ! -s conftest.err'
39301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39302   (eval $ac_try) 2>&5
39303   ac_status=$?
39304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39305   (exit $ac_status); }; } &&
39306          { ac_try='test -s conftest$ac_exeext'
39307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39308   (eval $ac_try) 2>&5
39309   ac_status=$?
39310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39311   (exit $ac_status); }; }; then
39312   ol_cv_db_db_4_dot_1=yes
39313 else
39314   echo "$as_me: failed program was:" >&5
39315 sed 's/^/| /' conftest.$ac_ext >&5
39316
39317 ol_cv_db_db_4_dot_1=no
39318 fi
39319 rm -f conftest.err conftest.$ac_objext \
39320       conftest$ac_exeext conftest.$ac_ext
39321
39322         LIBS="$ol_LIBS"
39323
39324 fi
39325 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39326 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39327
39328         if test $ol_cv_db_db_4_dot_1 = yes ; then
39329                 ol_cv_lib_db=-ldb-4.1
39330         fi
39331 fi
39332
39333 if test $ol_cv_lib_db = no ; then
39334         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39335 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39336 if test "${ol_cv_db_db_4_1+set}" = set; then
39337   echo $ECHO_N "(cached) $ECHO_C" >&6
39338 else
39339
39340         ol_DB_LIB=-ldb-4-1
39341         ol_LIBS=$LIBS
39342         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39343
39344         cat >conftest.$ac_ext <<_ACEOF
39345 /* confdefs.h.  */
39346 _ACEOF
39347 cat confdefs.h >>conftest.$ac_ext
39348 cat >>conftest.$ac_ext <<_ACEOF
39349 /* end confdefs.h.  */
39350
39351 #ifdef HAVE_DB_185_H
39352 # include <db_185.h>
39353 #else
39354 # include <db.h>
39355 #endif
39356
39357 #ifndef DB_VERSION_MAJOR
39358 # define DB_VERSION_MAJOR 1
39359 #endif
39360
39361 #ifndef NULL
39362 #define NULL ((void*)0)
39363 #endif
39364
39365 int
39366 main ()
39367 {
39368
39369 #if DB_VERSION_MAJOR > 1
39370         {
39371                 char *version;
39372                 int major, minor, patch;
39373
39374                 version = db_version( &major, &minor, &patch );
39375
39376                 if( major != DB_VERSION_MAJOR ||
39377                         minor < DB_VERSION_MINOR )
39378                 {
39379                         printf("Berkeley DB version mismatch\n"
39380                                 "\theader: %s\n\tlibrary: %s\n",
39381                                 DB_VERSION_STRING, version);
39382                         return 1;
39383                 }
39384         }
39385 #endif
39386
39387 #if DB_VERSION_MAJOR > 2
39388         db_env_create( NULL, 0 );
39389 #elif DB_VERSION_MAJOR > 1
39390         db_appexit( NULL );
39391 #else
39392         (void) dbopen( NULL, 0, 0, 0, NULL);
39393 #endif
39394
39395   ;
39396   return 0;
39397 }
39398 _ACEOF
39399 rm -f conftest.$ac_objext conftest$ac_exeext
39400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39401   (eval $ac_link) 2>conftest.er1
39402   ac_status=$?
39403   grep -v '^ *+' conftest.er1 >conftest.err
39404   rm -f conftest.er1
39405   cat conftest.err >&5
39406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39407   (exit $ac_status); } &&
39408          { ac_try='test -z "$ac_c_werror_flag"
39409                          || test ! -s conftest.err'
39410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39411   (eval $ac_try) 2>&5
39412   ac_status=$?
39413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39414   (exit $ac_status); }; } &&
39415          { ac_try='test -s conftest$ac_exeext'
39416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39417   (eval $ac_try) 2>&5
39418   ac_status=$?
39419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39420   (exit $ac_status); }; }; then
39421   ol_cv_db_db_4_1=yes
39422 else
39423   echo "$as_me: failed program was:" >&5
39424 sed 's/^/| /' conftest.$ac_ext >&5
39425
39426 ol_cv_db_db_4_1=no
39427 fi
39428 rm -f conftest.err conftest.$ac_objext \
39429       conftest$ac_exeext conftest.$ac_ext
39430
39431         LIBS="$ol_LIBS"
39432
39433 fi
39434 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39435 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39436
39437         if test $ol_cv_db_db_4_1 = yes ; then
39438                 ol_cv_lib_db=-ldb-4-1
39439         fi
39440 fi
39441
39442 if test $ol_cv_lib_db = no ; then
39443         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39444 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39445 if test "${ol_cv_db_db3+set}" = set; then
39446   echo $ECHO_N "(cached) $ECHO_C" >&6
39447 else
39448
39449         ol_DB_LIB=-ldb3
39450         ol_LIBS=$LIBS
39451         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39452
39453         cat >conftest.$ac_ext <<_ACEOF
39454 /* confdefs.h.  */
39455 _ACEOF
39456 cat confdefs.h >>conftest.$ac_ext
39457 cat >>conftest.$ac_ext <<_ACEOF
39458 /* end confdefs.h.  */
39459
39460 #ifdef HAVE_DB_185_H
39461 # include <db_185.h>
39462 #else
39463 # include <db.h>
39464 #endif
39465
39466 #ifndef DB_VERSION_MAJOR
39467 # define DB_VERSION_MAJOR 1
39468 #endif
39469
39470 #ifndef NULL
39471 #define NULL ((void*)0)
39472 #endif
39473
39474 int
39475 main ()
39476 {
39477
39478 #if DB_VERSION_MAJOR > 1
39479         {
39480                 char *version;
39481                 int major, minor, patch;
39482
39483                 version = db_version( &major, &minor, &patch );
39484
39485                 if( major != DB_VERSION_MAJOR ||
39486                         minor < DB_VERSION_MINOR )
39487                 {
39488                         printf("Berkeley DB version mismatch\n"
39489                                 "\theader: %s\n\tlibrary: %s\n",
39490                                 DB_VERSION_STRING, version);
39491                         return 1;
39492                 }
39493         }
39494 #endif
39495
39496 #if DB_VERSION_MAJOR > 2
39497         db_env_create( NULL, 0 );
39498 #elif DB_VERSION_MAJOR > 1
39499         db_appexit( NULL );
39500 #else
39501         (void) dbopen( NULL, 0, 0, 0, NULL);
39502 #endif
39503
39504   ;
39505   return 0;
39506 }
39507 _ACEOF
39508 rm -f conftest.$ac_objext conftest$ac_exeext
39509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39510   (eval $ac_link) 2>conftest.er1
39511   ac_status=$?
39512   grep -v '^ *+' conftest.er1 >conftest.err
39513   rm -f conftest.er1
39514   cat conftest.err >&5
39515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39516   (exit $ac_status); } &&
39517          { ac_try='test -z "$ac_c_werror_flag"
39518                          || test ! -s conftest.err'
39519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39520   (eval $ac_try) 2>&5
39521   ac_status=$?
39522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39523   (exit $ac_status); }; } &&
39524          { ac_try='test -s conftest$ac_exeext'
39525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39526   (eval $ac_try) 2>&5
39527   ac_status=$?
39528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39529   (exit $ac_status); }; }; then
39530   ol_cv_db_db3=yes
39531 else
39532   echo "$as_me: failed program was:" >&5
39533 sed 's/^/| /' conftest.$ac_ext >&5
39534
39535 ol_cv_db_db3=no
39536 fi
39537 rm -f conftest.err conftest.$ac_objext \
39538       conftest$ac_exeext conftest.$ac_ext
39539
39540         LIBS="$ol_LIBS"
39541
39542 fi
39543 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
39544 echo "${ECHO_T}$ol_cv_db_db3" >&6
39545
39546         if test $ol_cv_db_db3 = yes ; then
39547                 ol_cv_lib_db=-ldb3
39548         fi
39549 fi
39550
39551 if test $ol_cv_lib_db = no ; then
39552         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
39553 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
39554 if test "${ol_cv_db_db_3+set}" = set; then
39555   echo $ECHO_N "(cached) $ECHO_C" >&6
39556 else
39557
39558         ol_DB_LIB=-ldb-3
39559         ol_LIBS=$LIBS
39560         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39561
39562         cat >conftest.$ac_ext <<_ACEOF
39563 /* confdefs.h.  */
39564 _ACEOF
39565 cat confdefs.h >>conftest.$ac_ext
39566 cat >>conftest.$ac_ext <<_ACEOF
39567 /* end confdefs.h.  */
39568
39569 #ifdef HAVE_DB_185_H
39570 # include <db_185.h>
39571 #else
39572 # include <db.h>
39573 #endif
39574
39575 #ifndef DB_VERSION_MAJOR
39576 # define DB_VERSION_MAJOR 1
39577 #endif
39578
39579 #ifndef NULL
39580 #define NULL ((void*)0)
39581 #endif
39582
39583 int
39584 main ()
39585 {
39586
39587 #if DB_VERSION_MAJOR > 1
39588         {
39589                 char *version;
39590                 int major, minor, patch;
39591
39592                 version = db_version( &major, &minor, &patch );
39593
39594                 if( major != DB_VERSION_MAJOR ||
39595                         minor < DB_VERSION_MINOR )
39596                 {
39597                         printf("Berkeley DB version mismatch\n"
39598                                 "\theader: %s\n\tlibrary: %s\n",
39599                                 DB_VERSION_STRING, version);
39600                         return 1;
39601                 }
39602         }
39603 #endif
39604
39605 #if DB_VERSION_MAJOR > 2
39606         db_env_create( NULL, 0 );
39607 #elif DB_VERSION_MAJOR > 1
39608         db_appexit( NULL );
39609 #else
39610         (void) dbopen( NULL, 0, 0, 0, NULL);
39611 #endif
39612
39613   ;
39614   return 0;
39615 }
39616 _ACEOF
39617 rm -f conftest.$ac_objext conftest$ac_exeext
39618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39619   (eval $ac_link) 2>conftest.er1
39620   ac_status=$?
39621   grep -v '^ *+' conftest.er1 >conftest.err
39622   rm -f conftest.er1
39623   cat conftest.err >&5
39624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39625   (exit $ac_status); } &&
39626          { ac_try='test -z "$ac_c_werror_flag"
39627                          || test ! -s conftest.err'
39628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39629   (eval $ac_try) 2>&5
39630   ac_status=$?
39631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39632   (exit $ac_status); }; } &&
39633          { ac_try='test -s conftest$ac_exeext'
39634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39635   (eval $ac_try) 2>&5
39636   ac_status=$?
39637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39638   (exit $ac_status); }; }; then
39639   ol_cv_db_db_3=yes
39640 else
39641   echo "$as_me: failed program was:" >&5
39642 sed 's/^/| /' conftest.$ac_ext >&5
39643
39644 ol_cv_db_db_3=no
39645 fi
39646 rm -f conftest.err conftest.$ac_objext \
39647       conftest$ac_exeext conftest.$ac_ext
39648
39649         LIBS="$ol_LIBS"
39650
39651 fi
39652 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
39653 echo "${ECHO_T}$ol_cv_db_db_3" >&6
39654
39655         if test $ol_cv_db_db_3 = yes ; then
39656                 ol_cv_lib_db=-ldb-3
39657         fi
39658 fi
39659
39660 if test $ol_cv_lib_db = no ; then
39661         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
39662 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
39663 if test "${ol_cv_db_db2+set}" = set; then
39664   echo $ECHO_N "(cached) $ECHO_C" >&6
39665 else
39666
39667         ol_DB_LIB=-ldb2
39668         ol_LIBS=$LIBS
39669         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39670
39671         cat >conftest.$ac_ext <<_ACEOF
39672 /* confdefs.h.  */
39673 _ACEOF
39674 cat confdefs.h >>conftest.$ac_ext
39675 cat >>conftest.$ac_ext <<_ACEOF
39676 /* end confdefs.h.  */
39677
39678 #ifdef HAVE_DB_185_H
39679 # include <db_185.h>
39680 #else
39681 # include <db.h>
39682 #endif
39683
39684 #ifndef DB_VERSION_MAJOR
39685 # define DB_VERSION_MAJOR 1
39686 #endif
39687
39688 #ifndef NULL
39689 #define NULL ((void*)0)
39690 #endif
39691
39692 int
39693 main ()
39694 {
39695
39696 #if DB_VERSION_MAJOR > 1
39697         {
39698                 char *version;
39699                 int major, minor, patch;
39700
39701                 version = db_version( &major, &minor, &patch );
39702
39703                 if( major != DB_VERSION_MAJOR ||
39704                         minor < DB_VERSION_MINOR )
39705                 {
39706                         printf("Berkeley DB version mismatch\n"
39707                                 "\theader: %s\n\tlibrary: %s\n",
39708                                 DB_VERSION_STRING, version);
39709                         return 1;
39710                 }
39711         }
39712 #endif
39713
39714 #if DB_VERSION_MAJOR > 2
39715         db_env_create( NULL, 0 );
39716 #elif DB_VERSION_MAJOR > 1
39717         db_appexit( NULL );
39718 #else
39719         (void) dbopen( NULL, 0, 0, 0, NULL);
39720 #endif
39721
39722   ;
39723   return 0;
39724 }
39725 _ACEOF
39726 rm -f conftest.$ac_objext conftest$ac_exeext
39727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39728   (eval $ac_link) 2>conftest.er1
39729   ac_status=$?
39730   grep -v '^ *+' conftest.er1 >conftest.err
39731   rm -f conftest.er1
39732   cat conftest.err >&5
39733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39734   (exit $ac_status); } &&
39735          { ac_try='test -z "$ac_c_werror_flag"
39736                          || test ! -s conftest.err'
39737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39738   (eval $ac_try) 2>&5
39739   ac_status=$?
39740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39741   (exit $ac_status); }; } &&
39742          { ac_try='test -s conftest$ac_exeext'
39743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39744   (eval $ac_try) 2>&5
39745   ac_status=$?
39746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39747   (exit $ac_status); }; }; then
39748   ol_cv_db_db2=yes
39749 else
39750   echo "$as_me: failed program was:" >&5
39751 sed 's/^/| /' conftest.$ac_ext >&5
39752
39753 ol_cv_db_db2=no
39754 fi
39755 rm -f conftest.err conftest.$ac_objext \
39756       conftest$ac_exeext conftest.$ac_ext
39757
39758         LIBS="$ol_LIBS"
39759
39760 fi
39761 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
39762 echo "${ECHO_T}$ol_cv_db_db2" >&6
39763
39764         if test $ol_cv_db_db2 = yes ; then
39765                 ol_cv_lib_db=-ldb2
39766         fi
39767 fi
39768
39769 if test $ol_cv_lib_db = no ; then
39770         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
39771 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
39772 if test "${ol_cv_db_db_2+set}" = set; then
39773   echo $ECHO_N "(cached) $ECHO_C" >&6
39774 else
39775
39776         ol_DB_LIB=-ldb-2
39777         ol_LIBS=$LIBS
39778         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39779
39780         cat >conftest.$ac_ext <<_ACEOF
39781 /* confdefs.h.  */
39782 _ACEOF
39783 cat confdefs.h >>conftest.$ac_ext
39784 cat >>conftest.$ac_ext <<_ACEOF
39785 /* end confdefs.h.  */
39786
39787 #ifdef HAVE_DB_185_H
39788 # include <db_185.h>
39789 #else
39790 # include <db.h>
39791 #endif
39792
39793 #ifndef DB_VERSION_MAJOR
39794 # define DB_VERSION_MAJOR 1
39795 #endif
39796
39797 #ifndef NULL
39798 #define NULL ((void*)0)
39799 #endif
39800
39801 int
39802 main ()
39803 {
39804
39805 #if DB_VERSION_MAJOR > 1
39806         {
39807                 char *version;
39808                 int major, minor, patch;
39809
39810                 version = db_version( &major, &minor, &patch );
39811
39812                 if( major != DB_VERSION_MAJOR ||
39813                         minor < DB_VERSION_MINOR )
39814                 {
39815                         printf("Berkeley DB version mismatch\n"
39816                                 "\theader: %s\n\tlibrary: %s\n",
39817                                 DB_VERSION_STRING, version);
39818                         return 1;
39819                 }
39820         }
39821 #endif
39822
39823 #if DB_VERSION_MAJOR > 2
39824         db_env_create( NULL, 0 );
39825 #elif DB_VERSION_MAJOR > 1
39826         db_appexit( NULL );
39827 #else
39828         (void) dbopen( NULL, 0, 0, 0, NULL);
39829 #endif
39830
39831   ;
39832   return 0;
39833 }
39834 _ACEOF
39835 rm -f conftest.$ac_objext conftest$ac_exeext
39836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39837   (eval $ac_link) 2>conftest.er1
39838   ac_status=$?
39839   grep -v '^ *+' conftest.er1 >conftest.err
39840   rm -f conftest.er1
39841   cat conftest.err >&5
39842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39843   (exit $ac_status); } &&
39844          { ac_try='test -z "$ac_c_werror_flag"
39845                          || test ! -s conftest.err'
39846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39847   (eval $ac_try) 2>&5
39848   ac_status=$?
39849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39850   (exit $ac_status); }; } &&
39851          { ac_try='test -s conftest$ac_exeext'
39852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39853   (eval $ac_try) 2>&5
39854   ac_status=$?
39855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39856   (exit $ac_status); }; }; then
39857   ol_cv_db_db_2=yes
39858 else
39859   echo "$as_me: failed program was:" >&5
39860 sed 's/^/| /' conftest.$ac_ext >&5
39861
39862 ol_cv_db_db_2=no
39863 fi
39864 rm -f conftest.err conftest.$ac_objext \
39865       conftest$ac_exeext conftest.$ac_ext
39866
39867         LIBS="$ol_LIBS"
39868
39869 fi
39870 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
39871 echo "${ECHO_T}$ol_cv_db_db_2" >&6
39872
39873         if test $ol_cv_db_db_2 = yes ; then
39874                 ol_cv_lib_db=-ldb-2
39875         fi
39876 fi
39877
39878 if test $ol_cv_lib_db = no ; then
39879         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
39880 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
39881 if test "${ol_cv_db_db1+set}" = set; then
39882   echo $ECHO_N "(cached) $ECHO_C" >&6
39883 else
39884
39885         ol_DB_LIB=-ldb1
39886         ol_LIBS=$LIBS
39887         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39888
39889         cat >conftest.$ac_ext <<_ACEOF
39890 /* confdefs.h.  */
39891 _ACEOF
39892 cat confdefs.h >>conftest.$ac_ext
39893 cat >>conftest.$ac_ext <<_ACEOF
39894 /* end confdefs.h.  */
39895
39896 #ifdef HAVE_DB_185_H
39897 # include <db_185.h>
39898 #else
39899 # include <db.h>
39900 #endif
39901
39902 #ifndef DB_VERSION_MAJOR
39903 # define DB_VERSION_MAJOR 1
39904 #endif
39905
39906 #ifndef NULL
39907 #define NULL ((void*)0)
39908 #endif
39909
39910 int
39911 main ()
39912 {
39913
39914 #if DB_VERSION_MAJOR > 1
39915         {
39916                 char *version;
39917                 int major, minor, patch;
39918
39919                 version = db_version( &major, &minor, &patch );
39920
39921                 if( major != DB_VERSION_MAJOR ||
39922                         minor < DB_VERSION_MINOR )
39923                 {
39924                         printf("Berkeley DB version mismatch\n"
39925                                 "\theader: %s\n\tlibrary: %s\n",
39926                                 DB_VERSION_STRING, version);
39927                         return 1;
39928                 }
39929         }
39930 #endif
39931
39932 #if DB_VERSION_MAJOR > 2
39933         db_env_create( NULL, 0 );
39934 #elif DB_VERSION_MAJOR > 1
39935         db_appexit( NULL );
39936 #else
39937         (void) dbopen( NULL, 0, 0, 0, NULL);
39938 #endif
39939
39940   ;
39941   return 0;
39942 }
39943 _ACEOF
39944 rm -f conftest.$ac_objext conftest$ac_exeext
39945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39946   (eval $ac_link) 2>conftest.er1
39947   ac_status=$?
39948   grep -v '^ *+' conftest.er1 >conftest.err
39949   rm -f conftest.er1
39950   cat conftest.err >&5
39951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39952   (exit $ac_status); } &&
39953          { ac_try='test -z "$ac_c_werror_flag"
39954                          || test ! -s conftest.err'
39955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39956   (eval $ac_try) 2>&5
39957   ac_status=$?
39958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39959   (exit $ac_status); }; } &&
39960          { ac_try='test -s conftest$ac_exeext'
39961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39962   (eval $ac_try) 2>&5
39963   ac_status=$?
39964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39965   (exit $ac_status); }; }; then
39966   ol_cv_db_db1=yes
39967 else
39968   echo "$as_me: failed program was:" >&5
39969 sed 's/^/| /' conftest.$ac_ext >&5
39970
39971 ol_cv_db_db1=no
39972 fi
39973 rm -f conftest.err conftest.$ac_objext \
39974       conftest$ac_exeext conftest.$ac_ext
39975
39976         LIBS="$ol_LIBS"
39977
39978 fi
39979 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
39980 echo "${ECHO_T}$ol_cv_db_db1" >&6
39981
39982         if test $ol_cv_db_db1 = yes ; then
39983                 ol_cv_lib_db=-ldb1
39984         fi
39985 fi
39986
39987 if test $ol_cv_lib_db = no ; then
39988         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
39989 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
39990 if test "${ol_cv_db_db_1+set}" = set; then
39991   echo $ECHO_N "(cached) $ECHO_C" >&6
39992 else
39993
39994         ol_DB_LIB=-ldb-1
39995         ol_LIBS=$LIBS
39996         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39997
39998         cat >conftest.$ac_ext <<_ACEOF
39999 /* confdefs.h.  */
40000 _ACEOF
40001 cat confdefs.h >>conftest.$ac_ext
40002 cat >>conftest.$ac_ext <<_ACEOF
40003 /* end confdefs.h.  */
40004
40005 #ifdef HAVE_DB_185_H
40006 # include <db_185.h>
40007 #else
40008 # include <db.h>
40009 #endif
40010
40011 #ifndef DB_VERSION_MAJOR
40012 # define DB_VERSION_MAJOR 1
40013 #endif
40014
40015 #ifndef NULL
40016 #define NULL ((void*)0)
40017 #endif
40018
40019 int
40020 main ()
40021 {
40022
40023 #if DB_VERSION_MAJOR > 1
40024         {
40025                 char *version;
40026                 int major, minor, patch;
40027
40028                 version = db_version( &major, &minor, &patch );
40029
40030                 if( major != DB_VERSION_MAJOR ||
40031                         minor < DB_VERSION_MINOR )
40032                 {
40033                         printf("Berkeley DB version mismatch\n"
40034                                 "\theader: %s\n\tlibrary: %s\n",
40035                                 DB_VERSION_STRING, version);
40036                         return 1;
40037                 }
40038         }
40039 #endif
40040
40041 #if DB_VERSION_MAJOR > 2
40042         db_env_create( NULL, 0 );
40043 #elif DB_VERSION_MAJOR > 1
40044         db_appexit( NULL );
40045 #else
40046         (void) dbopen( NULL, 0, 0, 0, NULL);
40047 #endif
40048
40049   ;
40050   return 0;
40051 }
40052 _ACEOF
40053 rm -f conftest.$ac_objext conftest$ac_exeext
40054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40055   (eval $ac_link) 2>conftest.er1
40056   ac_status=$?
40057   grep -v '^ *+' conftest.er1 >conftest.err
40058   rm -f conftest.er1
40059   cat conftest.err >&5
40060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40061   (exit $ac_status); } &&
40062          { ac_try='test -z "$ac_c_werror_flag"
40063                          || test ! -s conftest.err'
40064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40065   (eval $ac_try) 2>&5
40066   ac_status=$?
40067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40068   (exit $ac_status); }; } &&
40069          { ac_try='test -s conftest$ac_exeext'
40070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40071   (eval $ac_try) 2>&5
40072   ac_status=$?
40073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40074   (exit $ac_status); }; }; then
40075   ol_cv_db_db_1=yes
40076 else
40077   echo "$as_me: failed program was:" >&5
40078 sed 's/^/| /' conftest.$ac_ext >&5
40079
40080 ol_cv_db_db_1=no
40081 fi
40082 rm -f conftest.err conftest.$ac_objext \
40083       conftest$ac_exeext conftest.$ac_ext
40084
40085         LIBS="$ol_LIBS"
40086
40087 fi
40088 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40089 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40090
40091         if test $ol_cv_db_db_1 = yes ; then
40092                 ol_cv_lib_db=-ldb-1
40093         fi
40094 fi
40095
40096
40097                 if test "$ol_cv_lib_db" != no ; then
40098                         ol_cv_berkeley_db=yes
40099                 fi
40100         fi
40101 fi
40102
40103         else
40104                 ol_cv_berkeley_db=no
40105
40106 for ac_header in db.h
40107 do
40108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40110   echo "$as_me:$LINENO: checking for $ac_header" >&5
40111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40113   echo $ECHO_N "(cached) $ECHO_C" >&6
40114 fi
40115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40117 else
40118   # Is the header compilable?
40119 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40121 cat >conftest.$ac_ext <<_ACEOF
40122 /* confdefs.h.  */
40123 _ACEOF
40124 cat confdefs.h >>conftest.$ac_ext
40125 cat >>conftest.$ac_ext <<_ACEOF
40126 /* end confdefs.h.  */
40127 $ac_includes_default
40128 #include <$ac_header>
40129 _ACEOF
40130 rm -f conftest.$ac_objext
40131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40132   (eval $ac_compile) 2>conftest.er1
40133   ac_status=$?
40134   grep -v '^ *+' conftest.er1 >conftest.err
40135   rm -f conftest.er1
40136   cat conftest.err >&5
40137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40138   (exit $ac_status); } &&
40139          { ac_try='test -z "$ac_c_werror_flag"
40140                          || test ! -s conftest.err'
40141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40142   (eval $ac_try) 2>&5
40143   ac_status=$?
40144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40145   (exit $ac_status); }; } &&
40146          { ac_try='test -s conftest.$ac_objext'
40147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40148   (eval $ac_try) 2>&5
40149   ac_status=$?
40150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40151   (exit $ac_status); }; }; then
40152   ac_header_compiler=yes
40153 else
40154   echo "$as_me: failed program was:" >&5
40155 sed 's/^/| /' conftest.$ac_ext >&5
40156
40157 ac_header_compiler=no
40158 fi
40159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40161 echo "${ECHO_T}$ac_header_compiler" >&6
40162
40163 # Is the header present?
40164 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40166 cat >conftest.$ac_ext <<_ACEOF
40167 /* confdefs.h.  */
40168 _ACEOF
40169 cat confdefs.h >>conftest.$ac_ext
40170 cat >>conftest.$ac_ext <<_ACEOF
40171 /* end confdefs.h.  */
40172 #include <$ac_header>
40173 _ACEOF
40174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40175   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40176   ac_status=$?
40177   grep -v '^ *+' conftest.er1 >conftest.err
40178   rm -f conftest.er1
40179   cat conftest.err >&5
40180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40181   (exit $ac_status); } >/dev/null; then
40182   if test -s conftest.err; then
40183     ac_cpp_err=$ac_c_preproc_warn_flag
40184     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40185   else
40186     ac_cpp_err=
40187   fi
40188 else
40189   ac_cpp_err=yes
40190 fi
40191 if test -z "$ac_cpp_err"; then
40192   ac_header_preproc=yes
40193 else
40194   echo "$as_me: failed program was:" >&5
40195 sed 's/^/| /' conftest.$ac_ext >&5
40196
40197   ac_header_preproc=no
40198 fi
40199 rm -f conftest.err conftest.$ac_ext
40200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40201 echo "${ECHO_T}$ac_header_preproc" >&6
40202
40203 # So?  What about this header?
40204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40205   yes:no: )
40206     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40210     ac_header_preproc=yes
40211     ;;
40212   no:yes:* )
40213     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40215     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40216 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40217     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40219     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40220 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40221     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40223     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40225     (
40226       cat <<\_ASBOX
40227 ## ------------------------------------------ ##
40228 ## Report this to the AC_PACKAGE_NAME lists.  ##
40229 ## ------------------------------------------ ##
40230 _ASBOX
40231     ) |
40232       sed "s/^/$as_me: WARNING:     /" >&2
40233     ;;
40234 esac
40235 echo "$as_me:$LINENO: checking for $ac_header" >&5
40236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40238   echo $ECHO_N "(cached) $ECHO_C" >&6
40239 else
40240   eval "$as_ac_Header=\$ac_header_preproc"
40241 fi
40242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40244
40245 fi
40246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40247   cat >>confdefs.h <<_ACEOF
40248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40249 _ACEOF
40250
40251 fi
40252
40253 done
40254
40255 if test $ac_cv_header_db_h = yes; then
40256         ol_cv_lib_db=no
40257 if test $ol_cv_lib_db = no ; then
40258         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40259 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40260 if test "${ol_cv_db_none+set}" = set; then
40261   echo $ECHO_N "(cached) $ECHO_C" >&6
40262 else
40263
40264         ol_DB_LIB=
40265         ol_LIBS=$LIBS
40266         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40267
40268         cat >conftest.$ac_ext <<_ACEOF
40269 /* confdefs.h.  */
40270 _ACEOF
40271 cat confdefs.h >>conftest.$ac_ext
40272 cat >>conftest.$ac_ext <<_ACEOF
40273 /* end confdefs.h.  */
40274
40275 #ifdef HAVE_DB_185_H
40276 # include <db_185.h>
40277 #else
40278 # include <db.h>
40279 #endif
40280
40281 #ifndef DB_VERSION_MAJOR
40282 # define DB_VERSION_MAJOR 1
40283 #endif
40284
40285 #ifndef NULL
40286 #define NULL ((void*)0)
40287 #endif
40288
40289 int
40290 main ()
40291 {
40292
40293 #if DB_VERSION_MAJOR > 1
40294         {
40295                 char *version;
40296                 int major, minor, patch;
40297
40298                 version = db_version( &major, &minor, &patch );
40299
40300                 if( major != DB_VERSION_MAJOR ||
40301                         minor < DB_VERSION_MINOR )
40302                 {
40303                         printf("Berkeley DB version mismatch\n"
40304                                 "\theader: %s\n\tlibrary: %s\n",
40305                                 DB_VERSION_STRING, version);
40306                         return 1;
40307                 }
40308         }
40309 #endif
40310
40311 #if DB_VERSION_MAJOR > 2
40312         db_env_create( NULL, 0 );
40313 #elif DB_VERSION_MAJOR > 1
40314         db_appexit( NULL );
40315 #else
40316         (void) dbopen( NULL, 0, 0, 0, NULL);
40317 #endif
40318
40319   ;
40320   return 0;
40321 }
40322 _ACEOF
40323 rm -f conftest.$ac_objext conftest$ac_exeext
40324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40325   (eval $ac_link) 2>conftest.er1
40326   ac_status=$?
40327   grep -v '^ *+' conftest.er1 >conftest.err
40328   rm -f conftest.er1
40329   cat conftest.err >&5
40330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40331   (exit $ac_status); } &&
40332          { ac_try='test -z "$ac_c_werror_flag"
40333                          || test ! -s conftest.err'
40334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40335   (eval $ac_try) 2>&5
40336   ac_status=$?
40337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40338   (exit $ac_status); }; } &&
40339          { ac_try='test -s conftest$ac_exeext'
40340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40341   (eval $ac_try) 2>&5
40342   ac_status=$?
40343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40344   (exit $ac_status); }; }; then
40345   ol_cv_db_none=yes
40346 else
40347   echo "$as_me: failed program was:" >&5
40348 sed 's/^/| /' conftest.$ac_ext >&5
40349
40350 ol_cv_db_none=no
40351 fi
40352 rm -f conftest.err conftest.$ac_objext \
40353       conftest$ac_exeext conftest.$ac_ext
40354
40355         LIBS="$ol_LIBS"
40356
40357 fi
40358 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40359 echo "${ECHO_T}$ol_cv_db_none" >&6
40360
40361         if test $ol_cv_db_none = yes ; then
40362                 ol_cv_lib_db=yes
40363         fi
40364 fi
40365
40366 if test $ol_cv_lib_db = no ; then
40367         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40368 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40369 if test "${ol_cv_db_db43+set}" = set; then
40370   echo $ECHO_N "(cached) $ECHO_C" >&6
40371 else
40372
40373         ol_DB_LIB=-ldb43
40374         ol_LIBS=$LIBS
40375         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40376
40377         cat >conftest.$ac_ext <<_ACEOF
40378 /* confdefs.h.  */
40379 _ACEOF
40380 cat confdefs.h >>conftest.$ac_ext
40381 cat >>conftest.$ac_ext <<_ACEOF
40382 /* end confdefs.h.  */
40383
40384 #ifdef HAVE_DB_185_H
40385 # include <db_185.h>
40386 #else
40387 # include <db.h>
40388 #endif
40389
40390 #ifndef DB_VERSION_MAJOR
40391 # define DB_VERSION_MAJOR 1
40392 #endif
40393
40394 #ifndef NULL
40395 #define NULL ((void*)0)
40396 #endif
40397
40398 int
40399 main ()
40400 {
40401
40402 #if DB_VERSION_MAJOR > 1
40403         {
40404                 char *version;
40405                 int major, minor, patch;
40406
40407                 version = db_version( &major, &minor, &patch );
40408
40409                 if( major != DB_VERSION_MAJOR ||
40410                         minor < DB_VERSION_MINOR )
40411                 {
40412                         printf("Berkeley DB version mismatch\n"
40413                                 "\theader: %s\n\tlibrary: %s\n",
40414                                 DB_VERSION_STRING, version);
40415                         return 1;
40416                 }
40417         }
40418 #endif
40419
40420 #if DB_VERSION_MAJOR > 2
40421         db_env_create( NULL, 0 );
40422 #elif DB_VERSION_MAJOR > 1
40423         db_appexit( NULL );
40424 #else
40425         (void) dbopen( NULL, 0, 0, 0, NULL);
40426 #endif
40427
40428   ;
40429   return 0;
40430 }
40431 _ACEOF
40432 rm -f conftest.$ac_objext conftest$ac_exeext
40433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40434   (eval $ac_link) 2>conftest.er1
40435   ac_status=$?
40436   grep -v '^ *+' conftest.er1 >conftest.err
40437   rm -f conftest.er1
40438   cat conftest.err >&5
40439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40440   (exit $ac_status); } &&
40441          { ac_try='test -z "$ac_c_werror_flag"
40442                          || test ! -s conftest.err'
40443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40444   (eval $ac_try) 2>&5
40445   ac_status=$?
40446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40447   (exit $ac_status); }; } &&
40448          { ac_try='test -s conftest$ac_exeext'
40449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40450   (eval $ac_try) 2>&5
40451   ac_status=$?
40452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40453   (exit $ac_status); }; }; then
40454   ol_cv_db_db43=yes
40455 else
40456   echo "$as_me: failed program was:" >&5
40457 sed 's/^/| /' conftest.$ac_ext >&5
40458
40459 ol_cv_db_db43=no
40460 fi
40461 rm -f conftest.err conftest.$ac_objext \
40462       conftest$ac_exeext conftest.$ac_ext
40463
40464         LIBS="$ol_LIBS"
40465
40466 fi
40467 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40468 echo "${ECHO_T}$ol_cv_db_db43" >&6
40469
40470         if test $ol_cv_db_db43 = yes ; then
40471                 ol_cv_lib_db=-ldb43
40472         fi
40473 fi
40474
40475 if test $ol_cv_lib_db = no ; then
40476         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40477 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40478 if test "${ol_cv_db_db_43+set}" = set; then
40479   echo $ECHO_N "(cached) $ECHO_C" >&6
40480 else
40481
40482         ol_DB_LIB=-ldb-43
40483         ol_LIBS=$LIBS
40484         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40485
40486         cat >conftest.$ac_ext <<_ACEOF
40487 /* confdefs.h.  */
40488 _ACEOF
40489 cat confdefs.h >>conftest.$ac_ext
40490 cat >>conftest.$ac_ext <<_ACEOF
40491 /* end confdefs.h.  */
40492
40493 #ifdef HAVE_DB_185_H
40494 # include <db_185.h>
40495 #else
40496 # include <db.h>
40497 #endif
40498
40499 #ifndef DB_VERSION_MAJOR
40500 # define DB_VERSION_MAJOR 1
40501 #endif
40502
40503 #ifndef NULL
40504 #define NULL ((void*)0)
40505 #endif
40506
40507 int
40508 main ()
40509 {
40510
40511 #if DB_VERSION_MAJOR > 1
40512         {
40513                 char *version;
40514                 int major, minor, patch;
40515
40516                 version = db_version( &major, &minor, &patch );
40517
40518                 if( major != DB_VERSION_MAJOR ||
40519                         minor < DB_VERSION_MINOR )
40520                 {
40521                         printf("Berkeley DB version mismatch\n"
40522                                 "\theader: %s\n\tlibrary: %s\n",
40523                                 DB_VERSION_STRING, version);
40524                         return 1;
40525                 }
40526         }
40527 #endif
40528
40529 #if DB_VERSION_MAJOR > 2
40530         db_env_create( NULL, 0 );
40531 #elif DB_VERSION_MAJOR > 1
40532         db_appexit( NULL );
40533 #else
40534         (void) dbopen( NULL, 0, 0, 0, NULL);
40535 #endif
40536
40537   ;
40538   return 0;
40539 }
40540 _ACEOF
40541 rm -f conftest.$ac_objext conftest$ac_exeext
40542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40543   (eval $ac_link) 2>conftest.er1
40544   ac_status=$?
40545   grep -v '^ *+' conftest.er1 >conftest.err
40546   rm -f conftest.er1
40547   cat conftest.err >&5
40548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40549   (exit $ac_status); } &&
40550          { ac_try='test -z "$ac_c_werror_flag"
40551                          || test ! -s conftest.err'
40552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40553   (eval $ac_try) 2>&5
40554   ac_status=$?
40555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40556   (exit $ac_status); }; } &&
40557          { ac_try='test -s conftest$ac_exeext'
40558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40559   (eval $ac_try) 2>&5
40560   ac_status=$?
40561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40562   (exit $ac_status); }; }; then
40563   ol_cv_db_db_43=yes
40564 else
40565   echo "$as_me: failed program was:" >&5
40566 sed 's/^/| /' conftest.$ac_ext >&5
40567
40568 ol_cv_db_db_43=no
40569 fi
40570 rm -f conftest.err conftest.$ac_objext \
40571       conftest$ac_exeext conftest.$ac_ext
40572
40573         LIBS="$ol_LIBS"
40574
40575 fi
40576 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
40577 echo "${ECHO_T}$ol_cv_db_db_43" >&6
40578
40579         if test $ol_cv_db_db_43 = yes ; then
40580                 ol_cv_lib_db=-ldb-43
40581         fi
40582 fi
40583
40584 if test $ol_cv_lib_db = no ; then
40585         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
40586 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
40587 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
40588   echo $ECHO_N "(cached) $ECHO_C" >&6
40589 else
40590
40591         ol_DB_LIB=-ldb-4.3
40592         ol_LIBS=$LIBS
40593         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40594
40595         cat >conftest.$ac_ext <<_ACEOF
40596 /* confdefs.h.  */
40597 _ACEOF
40598 cat confdefs.h >>conftest.$ac_ext
40599 cat >>conftest.$ac_ext <<_ACEOF
40600 /* end confdefs.h.  */
40601
40602 #ifdef HAVE_DB_185_H
40603 # include <db_185.h>
40604 #else
40605 # include <db.h>
40606 #endif
40607
40608 #ifndef DB_VERSION_MAJOR
40609 # define DB_VERSION_MAJOR 1
40610 #endif
40611
40612 #ifndef NULL
40613 #define NULL ((void*)0)
40614 #endif
40615
40616 int
40617 main ()
40618 {
40619
40620 #if DB_VERSION_MAJOR > 1
40621         {
40622                 char *version;
40623                 int major, minor, patch;
40624
40625                 version = db_version( &major, &minor, &patch );
40626
40627                 if( major != DB_VERSION_MAJOR ||
40628                         minor < DB_VERSION_MINOR )
40629                 {
40630                         printf("Berkeley DB version mismatch\n"
40631                                 "\theader: %s\n\tlibrary: %s\n",
40632                                 DB_VERSION_STRING, version);
40633                         return 1;
40634                 }
40635         }
40636 #endif
40637
40638 #if DB_VERSION_MAJOR > 2
40639         db_env_create( NULL, 0 );
40640 #elif DB_VERSION_MAJOR > 1
40641         db_appexit( NULL );
40642 #else
40643         (void) dbopen( NULL, 0, 0, 0, NULL);
40644 #endif
40645
40646   ;
40647   return 0;
40648 }
40649 _ACEOF
40650 rm -f conftest.$ac_objext conftest$ac_exeext
40651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40652   (eval $ac_link) 2>conftest.er1
40653   ac_status=$?
40654   grep -v '^ *+' conftest.er1 >conftest.err
40655   rm -f conftest.er1
40656   cat conftest.err >&5
40657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40658   (exit $ac_status); } &&
40659          { ac_try='test -z "$ac_c_werror_flag"
40660                          || test ! -s conftest.err'
40661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40662   (eval $ac_try) 2>&5
40663   ac_status=$?
40664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40665   (exit $ac_status); }; } &&
40666          { ac_try='test -s conftest$ac_exeext'
40667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40668   (eval $ac_try) 2>&5
40669   ac_status=$?
40670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40671   (exit $ac_status); }; }; then
40672   ol_cv_db_db_4_dot_3=yes
40673 else
40674   echo "$as_me: failed program was:" >&5
40675 sed 's/^/| /' conftest.$ac_ext >&5
40676
40677 ol_cv_db_db_4_dot_3=no
40678 fi
40679 rm -f conftest.err conftest.$ac_objext \
40680       conftest$ac_exeext conftest.$ac_ext
40681
40682         LIBS="$ol_LIBS"
40683
40684 fi
40685 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
40686 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
40687
40688         if test $ol_cv_db_db_4_dot_3 = yes ; then
40689                 ol_cv_lib_db=-ldb-4.3
40690         fi
40691 fi
40692
40693 if test $ol_cv_lib_db = no ; then
40694         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
40695 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
40696 if test "${ol_cv_db_db_4_3+set}" = set; then
40697   echo $ECHO_N "(cached) $ECHO_C" >&6
40698 else
40699
40700         ol_DB_LIB=-ldb-4-3
40701         ol_LIBS=$LIBS
40702         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40703
40704         cat >conftest.$ac_ext <<_ACEOF
40705 /* confdefs.h.  */
40706 _ACEOF
40707 cat confdefs.h >>conftest.$ac_ext
40708 cat >>conftest.$ac_ext <<_ACEOF
40709 /* end confdefs.h.  */
40710
40711 #ifdef HAVE_DB_185_H
40712 # include <db_185.h>
40713 #else
40714 # include <db.h>
40715 #endif
40716
40717 #ifndef DB_VERSION_MAJOR
40718 # define DB_VERSION_MAJOR 1
40719 #endif
40720
40721 #ifndef NULL
40722 #define NULL ((void*)0)
40723 #endif
40724
40725 int
40726 main ()
40727 {
40728
40729 #if DB_VERSION_MAJOR > 1
40730         {
40731                 char *version;
40732                 int major, minor, patch;
40733
40734                 version = db_version( &major, &minor, &patch );
40735
40736                 if( major != DB_VERSION_MAJOR ||
40737                         minor < DB_VERSION_MINOR )
40738                 {
40739                         printf("Berkeley DB version mismatch\n"
40740                                 "\theader: %s\n\tlibrary: %s\n",
40741                                 DB_VERSION_STRING, version);
40742                         return 1;
40743                 }
40744         }
40745 #endif
40746
40747 #if DB_VERSION_MAJOR > 2
40748         db_env_create( NULL, 0 );
40749 #elif DB_VERSION_MAJOR > 1
40750         db_appexit( NULL );
40751 #else
40752         (void) dbopen( NULL, 0, 0, 0, NULL);
40753 #endif
40754
40755   ;
40756   return 0;
40757 }
40758 _ACEOF
40759 rm -f conftest.$ac_objext conftest$ac_exeext
40760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40761   (eval $ac_link) 2>conftest.er1
40762   ac_status=$?
40763   grep -v '^ *+' conftest.er1 >conftest.err
40764   rm -f conftest.er1
40765   cat conftest.err >&5
40766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40767   (exit $ac_status); } &&
40768          { ac_try='test -z "$ac_c_werror_flag"
40769                          || test ! -s conftest.err'
40770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40771   (eval $ac_try) 2>&5
40772   ac_status=$?
40773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40774   (exit $ac_status); }; } &&
40775          { ac_try='test -s conftest$ac_exeext'
40776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40777   (eval $ac_try) 2>&5
40778   ac_status=$?
40779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40780   (exit $ac_status); }; }; then
40781   ol_cv_db_db_4_3=yes
40782 else
40783   echo "$as_me: failed program was:" >&5
40784 sed 's/^/| /' conftest.$ac_ext >&5
40785
40786 ol_cv_db_db_4_3=no
40787 fi
40788 rm -f conftest.err conftest.$ac_objext \
40789       conftest$ac_exeext conftest.$ac_ext
40790
40791         LIBS="$ol_LIBS"
40792
40793 fi
40794 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
40795 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
40796
40797         if test $ol_cv_db_db_4_3 = yes ; then
40798                 ol_cv_lib_db=-ldb-4-3
40799         fi
40800 fi
40801
40802 if test $ol_cv_lib_db = no ; then
40803         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
40804 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
40805 if test "${ol_cv_db_db42+set}" = set; then
40806   echo $ECHO_N "(cached) $ECHO_C" >&6
40807 else
40808
40809         ol_DB_LIB=-ldb42
40810         ol_LIBS=$LIBS
40811         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40812
40813         cat >conftest.$ac_ext <<_ACEOF
40814 /* confdefs.h.  */
40815 _ACEOF
40816 cat confdefs.h >>conftest.$ac_ext
40817 cat >>conftest.$ac_ext <<_ACEOF
40818 /* end confdefs.h.  */
40819
40820 #ifdef HAVE_DB_185_H
40821 # include <db_185.h>
40822 #else
40823 # include <db.h>
40824 #endif
40825
40826 #ifndef DB_VERSION_MAJOR
40827 # define DB_VERSION_MAJOR 1
40828 #endif
40829
40830 #ifndef NULL
40831 #define NULL ((void*)0)
40832 #endif
40833
40834 int
40835 main ()
40836 {
40837
40838 #if DB_VERSION_MAJOR > 1
40839         {
40840                 char *version;
40841                 int major, minor, patch;
40842
40843                 version = db_version( &major, &minor, &patch );
40844
40845                 if( major != DB_VERSION_MAJOR ||
40846                         minor < DB_VERSION_MINOR )
40847                 {
40848                         printf("Berkeley DB version mismatch\n"
40849                                 "\theader: %s\n\tlibrary: %s\n",
40850                                 DB_VERSION_STRING, version);
40851                         return 1;
40852                 }
40853         }
40854 #endif
40855
40856 #if DB_VERSION_MAJOR > 2
40857         db_env_create( NULL, 0 );
40858 #elif DB_VERSION_MAJOR > 1
40859         db_appexit( NULL );
40860 #else
40861         (void) dbopen( NULL, 0, 0, 0, NULL);
40862 #endif
40863
40864   ;
40865   return 0;
40866 }
40867 _ACEOF
40868 rm -f conftest.$ac_objext conftest$ac_exeext
40869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40870   (eval $ac_link) 2>conftest.er1
40871   ac_status=$?
40872   grep -v '^ *+' conftest.er1 >conftest.err
40873   rm -f conftest.er1
40874   cat conftest.err >&5
40875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40876   (exit $ac_status); } &&
40877          { ac_try='test -z "$ac_c_werror_flag"
40878                          || test ! -s conftest.err'
40879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40880   (eval $ac_try) 2>&5
40881   ac_status=$?
40882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40883   (exit $ac_status); }; } &&
40884          { ac_try='test -s conftest$ac_exeext'
40885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40886   (eval $ac_try) 2>&5
40887   ac_status=$?
40888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40889   (exit $ac_status); }; }; then
40890   ol_cv_db_db42=yes
40891 else
40892   echo "$as_me: failed program was:" >&5
40893 sed 's/^/| /' conftest.$ac_ext >&5
40894
40895 ol_cv_db_db42=no
40896 fi
40897 rm -f conftest.err conftest.$ac_objext \
40898       conftest$ac_exeext conftest.$ac_ext
40899
40900         LIBS="$ol_LIBS"
40901
40902 fi
40903 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
40904 echo "${ECHO_T}$ol_cv_db_db42" >&6
40905
40906         if test $ol_cv_db_db42 = yes ; then
40907                 ol_cv_lib_db=-ldb42
40908         fi
40909 fi
40910
40911 if test $ol_cv_lib_db = no ; then
40912         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
40913 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
40914 if test "${ol_cv_db_db_42+set}" = set; then
40915   echo $ECHO_N "(cached) $ECHO_C" >&6
40916 else
40917
40918         ol_DB_LIB=-ldb-42
40919         ol_LIBS=$LIBS
40920         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40921
40922         cat >conftest.$ac_ext <<_ACEOF
40923 /* confdefs.h.  */
40924 _ACEOF
40925 cat confdefs.h >>conftest.$ac_ext
40926 cat >>conftest.$ac_ext <<_ACEOF
40927 /* end confdefs.h.  */
40928
40929 #ifdef HAVE_DB_185_H
40930 # include <db_185.h>
40931 #else
40932 # include <db.h>
40933 #endif
40934
40935 #ifndef DB_VERSION_MAJOR
40936 # define DB_VERSION_MAJOR 1
40937 #endif
40938
40939 #ifndef NULL
40940 #define NULL ((void*)0)
40941 #endif
40942
40943 int
40944 main ()
40945 {
40946
40947 #if DB_VERSION_MAJOR > 1
40948         {
40949                 char *version;
40950                 int major, minor, patch;
40951
40952                 version = db_version( &major, &minor, &patch );
40953
40954                 if( major != DB_VERSION_MAJOR ||
40955                         minor < DB_VERSION_MINOR )
40956                 {
40957                         printf("Berkeley DB version mismatch\n"
40958                                 "\theader: %s\n\tlibrary: %s\n",
40959                                 DB_VERSION_STRING, version);
40960                         return 1;
40961                 }
40962         }
40963 #endif
40964
40965 #if DB_VERSION_MAJOR > 2
40966         db_env_create( NULL, 0 );
40967 #elif DB_VERSION_MAJOR > 1
40968         db_appexit( NULL );
40969 #else
40970         (void) dbopen( NULL, 0, 0, 0, NULL);
40971 #endif
40972
40973   ;
40974   return 0;
40975 }
40976 _ACEOF
40977 rm -f conftest.$ac_objext conftest$ac_exeext
40978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40979   (eval $ac_link) 2>conftest.er1
40980   ac_status=$?
40981   grep -v '^ *+' conftest.er1 >conftest.err
40982   rm -f conftest.er1
40983   cat conftest.err >&5
40984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40985   (exit $ac_status); } &&
40986          { ac_try='test -z "$ac_c_werror_flag"
40987                          || test ! -s conftest.err'
40988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40989   (eval $ac_try) 2>&5
40990   ac_status=$?
40991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40992   (exit $ac_status); }; } &&
40993          { ac_try='test -s conftest$ac_exeext'
40994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40995   (eval $ac_try) 2>&5
40996   ac_status=$?
40997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40998   (exit $ac_status); }; }; then
40999   ol_cv_db_db_42=yes
41000 else
41001   echo "$as_me: failed program was:" >&5
41002 sed 's/^/| /' conftest.$ac_ext >&5
41003
41004 ol_cv_db_db_42=no
41005 fi
41006 rm -f conftest.err conftest.$ac_objext \
41007       conftest$ac_exeext conftest.$ac_ext
41008
41009         LIBS="$ol_LIBS"
41010
41011 fi
41012 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41013 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41014
41015         if test $ol_cv_db_db_42 = yes ; then
41016                 ol_cv_lib_db=-ldb-42
41017         fi
41018 fi
41019
41020 if test $ol_cv_lib_db = no ; then
41021         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41022 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41023 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41024   echo $ECHO_N "(cached) $ECHO_C" >&6
41025 else
41026
41027         ol_DB_LIB=-ldb-4.2
41028         ol_LIBS=$LIBS
41029         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41030
41031         cat >conftest.$ac_ext <<_ACEOF
41032 /* confdefs.h.  */
41033 _ACEOF
41034 cat confdefs.h >>conftest.$ac_ext
41035 cat >>conftest.$ac_ext <<_ACEOF
41036 /* end confdefs.h.  */
41037
41038 #ifdef HAVE_DB_185_H
41039 # include <db_185.h>
41040 #else
41041 # include <db.h>
41042 #endif
41043
41044 #ifndef DB_VERSION_MAJOR
41045 # define DB_VERSION_MAJOR 1
41046 #endif
41047
41048 #ifndef NULL
41049 #define NULL ((void*)0)
41050 #endif
41051
41052 int
41053 main ()
41054 {
41055
41056 #if DB_VERSION_MAJOR > 1
41057         {
41058                 char *version;
41059                 int major, minor, patch;
41060
41061                 version = db_version( &major, &minor, &patch );
41062
41063                 if( major != DB_VERSION_MAJOR ||
41064                         minor < DB_VERSION_MINOR )
41065                 {
41066                         printf("Berkeley DB version mismatch\n"
41067                                 "\theader: %s\n\tlibrary: %s\n",
41068                                 DB_VERSION_STRING, version);
41069                         return 1;
41070                 }
41071         }
41072 #endif
41073
41074 #if DB_VERSION_MAJOR > 2
41075         db_env_create( NULL, 0 );
41076 #elif DB_VERSION_MAJOR > 1
41077         db_appexit( NULL );
41078 #else
41079         (void) dbopen( NULL, 0, 0, 0, NULL);
41080 #endif
41081
41082   ;
41083   return 0;
41084 }
41085 _ACEOF
41086 rm -f conftest.$ac_objext conftest$ac_exeext
41087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41088   (eval $ac_link) 2>conftest.er1
41089   ac_status=$?
41090   grep -v '^ *+' conftest.er1 >conftest.err
41091   rm -f conftest.er1
41092   cat conftest.err >&5
41093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41094   (exit $ac_status); } &&
41095          { ac_try='test -z "$ac_c_werror_flag"
41096                          || test ! -s conftest.err'
41097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41098   (eval $ac_try) 2>&5
41099   ac_status=$?
41100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41101   (exit $ac_status); }; } &&
41102          { ac_try='test -s conftest$ac_exeext'
41103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41104   (eval $ac_try) 2>&5
41105   ac_status=$?
41106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41107   (exit $ac_status); }; }; then
41108   ol_cv_db_db_4_dot_2=yes
41109 else
41110   echo "$as_me: failed program was:" >&5
41111 sed 's/^/| /' conftest.$ac_ext >&5
41112
41113 ol_cv_db_db_4_dot_2=no
41114 fi
41115 rm -f conftest.err conftest.$ac_objext \
41116       conftest$ac_exeext conftest.$ac_ext
41117
41118         LIBS="$ol_LIBS"
41119
41120 fi
41121 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41122 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41123
41124         if test $ol_cv_db_db_4_dot_2 = yes ; then
41125                 ol_cv_lib_db=-ldb-4.2
41126         fi
41127 fi
41128
41129 if test $ol_cv_lib_db = no ; then
41130         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41131 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41132 if test "${ol_cv_db_db_4_2+set}" = set; then
41133   echo $ECHO_N "(cached) $ECHO_C" >&6
41134 else
41135
41136         ol_DB_LIB=-ldb-4-2
41137         ol_LIBS=$LIBS
41138         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41139
41140         cat >conftest.$ac_ext <<_ACEOF
41141 /* confdefs.h.  */
41142 _ACEOF
41143 cat confdefs.h >>conftest.$ac_ext
41144 cat >>conftest.$ac_ext <<_ACEOF
41145 /* end confdefs.h.  */
41146
41147 #ifdef HAVE_DB_185_H
41148 # include <db_185.h>
41149 #else
41150 # include <db.h>
41151 #endif
41152
41153 #ifndef DB_VERSION_MAJOR
41154 # define DB_VERSION_MAJOR 1
41155 #endif
41156
41157 #ifndef NULL
41158 #define NULL ((void*)0)
41159 #endif
41160
41161 int
41162 main ()
41163 {
41164
41165 #if DB_VERSION_MAJOR > 1
41166         {
41167                 char *version;
41168                 int major, minor, patch;
41169
41170                 version = db_version( &major, &minor, &patch );
41171
41172                 if( major != DB_VERSION_MAJOR ||
41173                         minor < DB_VERSION_MINOR )
41174                 {
41175                         printf("Berkeley DB version mismatch\n"
41176                                 "\theader: %s\n\tlibrary: %s\n",
41177                                 DB_VERSION_STRING, version);
41178                         return 1;
41179                 }
41180         }
41181 #endif
41182
41183 #if DB_VERSION_MAJOR > 2
41184         db_env_create( NULL, 0 );
41185 #elif DB_VERSION_MAJOR > 1
41186         db_appexit( NULL );
41187 #else
41188         (void) dbopen( NULL, 0, 0, 0, NULL);
41189 #endif
41190
41191   ;
41192   return 0;
41193 }
41194 _ACEOF
41195 rm -f conftest.$ac_objext conftest$ac_exeext
41196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41197   (eval $ac_link) 2>conftest.er1
41198   ac_status=$?
41199   grep -v '^ *+' conftest.er1 >conftest.err
41200   rm -f conftest.er1
41201   cat conftest.err >&5
41202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41203   (exit $ac_status); } &&
41204          { ac_try='test -z "$ac_c_werror_flag"
41205                          || test ! -s conftest.err'
41206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41207   (eval $ac_try) 2>&5
41208   ac_status=$?
41209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41210   (exit $ac_status); }; } &&
41211          { ac_try='test -s conftest$ac_exeext'
41212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41213   (eval $ac_try) 2>&5
41214   ac_status=$?
41215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41216   (exit $ac_status); }; }; then
41217   ol_cv_db_db_4_2=yes
41218 else
41219   echo "$as_me: failed program was:" >&5
41220 sed 's/^/| /' conftest.$ac_ext >&5
41221
41222 ol_cv_db_db_4_2=no
41223 fi
41224 rm -f conftest.err conftest.$ac_objext \
41225       conftest$ac_exeext conftest.$ac_ext
41226
41227         LIBS="$ol_LIBS"
41228
41229 fi
41230 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41231 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41232
41233         if test $ol_cv_db_db_4_2 = yes ; then
41234                 ol_cv_lib_db=-ldb-4-2
41235         fi
41236 fi
41237
41238 if test $ol_cv_lib_db = no ; then
41239         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41240 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41241 if test "${ol_cv_db_db_4+set}" = set; then
41242   echo $ECHO_N "(cached) $ECHO_C" >&6
41243 else
41244
41245         ol_DB_LIB=-ldb-4
41246         ol_LIBS=$LIBS
41247         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41248
41249         cat >conftest.$ac_ext <<_ACEOF
41250 /* confdefs.h.  */
41251 _ACEOF
41252 cat confdefs.h >>conftest.$ac_ext
41253 cat >>conftest.$ac_ext <<_ACEOF
41254 /* end confdefs.h.  */
41255
41256 #ifdef HAVE_DB_185_H
41257 # include <db_185.h>
41258 #else
41259 # include <db.h>
41260 #endif
41261
41262 #ifndef DB_VERSION_MAJOR
41263 # define DB_VERSION_MAJOR 1
41264 #endif
41265
41266 #ifndef NULL
41267 #define NULL ((void*)0)
41268 #endif
41269
41270 int
41271 main ()
41272 {
41273
41274 #if DB_VERSION_MAJOR > 1
41275         {
41276                 char *version;
41277                 int major, minor, patch;
41278
41279                 version = db_version( &major, &minor, &patch );
41280
41281                 if( major != DB_VERSION_MAJOR ||
41282                         minor < DB_VERSION_MINOR )
41283                 {
41284                         printf("Berkeley DB version mismatch\n"
41285                                 "\theader: %s\n\tlibrary: %s\n",
41286                                 DB_VERSION_STRING, version);
41287                         return 1;
41288                 }
41289         }
41290 #endif
41291
41292 #if DB_VERSION_MAJOR > 2
41293         db_env_create( NULL, 0 );
41294 #elif DB_VERSION_MAJOR > 1
41295         db_appexit( NULL );
41296 #else
41297         (void) dbopen( NULL, 0, 0, 0, NULL);
41298 #endif
41299
41300   ;
41301   return 0;
41302 }
41303 _ACEOF
41304 rm -f conftest.$ac_objext conftest$ac_exeext
41305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41306   (eval $ac_link) 2>conftest.er1
41307   ac_status=$?
41308   grep -v '^ *+' conftest.er1 >conftest.err
41309   rm -f conftest.er1
41310   cat conftest.err >&5
41311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41312   (exit $ac_status); } &&
41313          { ac_try='test -z "$ac_c_werror_flag"
41314                          || test ! -s conftest.err'
41315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41316   (eval $ac_try) 2>&5
41317   ac_status=$?
41318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41319   (exit $ac_status); }; } &&
41320          { ac_try='test -s conftest$ac_exeext'
41321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41322   (eval $ac_try) 2>&5
41323   ac_status=$?
41324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41325   (exit $ac_status); }; }; then
41326   ol_cv_db_db_4=yes
41327 else
41328   echo "$as_me: failed program was:" >&5
41329 sed 's/^/| /' conftest.$ac_ext >&5
41330
41331 ol_cv_db_db_4=no
41332 fi
41333 rm -f conftest.err conftest.$ac_objext \
41334       conftest$ac_exeext conftest.$ac_ext
41335
41336         LIBS="$ol_LIBS"
41337
41338 fi
41339 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41340 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41341
41342         if test $ol_cv_db_db_4 = yes ; then
41343                 ol_cv_lib_db=-ldb-4
41344         fi
41345 fi
41346
41347 if test $ol_cv_lib_db = no ; then
41348         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41349 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41350 if test "${ol_cv_db_db4+set}" = set; then
41351   echo $ECHO_N "(cached) $ECHO_C" >&6
41352 else
41353
41354         ol_DB_LIB=-ldb4
41355         ol_LIBS=$LIBS
41356         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41357
41358         cat >conftest.$ac_ext <<_ACEOF
41359 /* confdefs.h.  */
41360 _ACEOF
41361 cat confdefs.h >>conftest.$ac_ext
41362 cat >>conftest.$ac_ext <<_ACEOF
41363 /* end confdefs.h.  */
41364
41365 #ifdef HAVE_DB_185_H
41366 # include <db_185.h>
41367 #else
41368 # include <db.h>
41369 #endif
41370
41371 #ifndef DB_VERSION_MAJOR
41372 # define DB_VERSION_MAJOR 1
41373 #endif
41374
41375 #ifndef NULL
41376 #define NULL ((void*)0)
41377 #endif
41378
41379 int
41380 main ()
41381 {
41382
41383 #if DB_VERSION_MAJOR > 1
41384         {
41385                 char *version;
41386                 int major, minor, patch;
41387
41388                 version = db_version( &major, &minor, &patch );
41389
41390                 if( major != DB_VERSION_MAJOR ||
41391                         minor < DB_VERSION_MINOR )
41392                 {
41393                         printf("Berkeley DB version mismatch\n"
41394                                 "\theader: %s\n\tlibrary: %s\n",
41395                                 DB_VERSION_STRING, version);
41396                         return 1;
41397                 }
41398         }
41399 #endif
41400
41401 #if DB_VERSION_MAJOR > 2
41402         db_env_create( NULL, 0 );
41403 #elif DB_VERSION_MAJOR > 1
41404         db_appexit( NULL );
41405 #else
41406         (void) dbopen( NULL, 0, 0, 0, NULL);
41407 #endif
41408
41409   ;
41410   return 0;
41411 }
41412 _ACEOF
41413 rm -f conftest.$ac_objext conftest$ac_exeext
41414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41415   (eval $ac_link) 2>conftest.er1
41416   ac_status=$?
41417   grep -v '^ *+' conftest.er1 >conftest.err
41418   rm -f conftest.er1
41419   cat conftest.err >&5
41420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41421   (exit $ac_status); } &&
41422          { ac_try='test -z "$ac_c_werror_flag"
41423                          || test ! -s conftest.err'
41424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41425   (eval $ac_try) 2>&5
41426   ac_status=$?
41427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41428   (exit $ac_status); }; } &&
41429          { ac_try='test -s conftest$ac_exeext'
41430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41431   (eval $ac_try) 2>&5
41432   ac_status=$?
41433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41434   (exit $ac_status); }; }; then
41435   ol_cv_db_db4=yes
41436 else
41437   echo "$as_me: failed program was:" >&5
41438 sed 's/^/| /' conftest.$ac_ext >&5
41439
41440 ol_cv_db_db4=no
41441 fi
41442 rm -f conftest.err conftest.$ac_objext \
41443       conftest$ac_exeext conftest.$ac_ext
41444
41445         LIBS="$ol_LIBS"
41446
41447 fi
41448 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41449 echo "${ECHO_T}$ol_cv_db_db4" >&6
41450
41451         if test $ol_cv_db_db4 = yes ; then
41452                 ol_cv_lib_db=-ldb4
41453         fi
41454 fi
41455
41456 if test $ol_cv_lib_db = no ; then
41457         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41458 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41459 if test "${ol_cv_db_db+set}" = set; then
41460   echo $ECHO_N "(cached) $ECHO_C" >&6
41461 else
41462
41463         ol_DB_LIB=-ldb
41464         ol_LIBS=$LIBS
41465         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41466
41467         cat >conftest.$ac_ext <<_ACEOF
41468 /* confdefs.h.  */
41469 _ACEOF
41470 cat confdefs.h >>conftest.$ac_ext
41471 cat >>conftest.$ac_ext <<_ACEOF
41472 /* end confdefs.h.  */
41473
41474 #ifdef HAVE_DB_185_H
41475 # include <db_185.h>
41476 #else
41477 # include <db.h>
41478 #endif
41479
41480 #ifndef DB_VERSION_MAJOR
41481 # define DB_VERSION_MAJOR 1
41482 #endif
41483
41484 #ifndef NULL
41485 #define NULL ((void*)0)
41486 #endif
41487
41488 int
41489 main ()
41490 {
41491
41492 #if DB_VERSION_MAJOR > 1
41493         {
41494                 char *version;
41495                 int major, minor, patch;
41496
41497                 version = db_version( &major, &minor, &patch );
41498
41499                 if( major != DB_VERSION_MAJOR ||
41500                         minor < DB_VERSION_MINOR )
41501                 {
41502                         printf("Berkeley DB version mismatch\n"
41503                                 "\theader: %s\n\tlibrary: %s\n",
41504                                 DB_VERSION_STRING, version);
41505                         return 1;
41506                 }
41507         }
41508 #endif
41509
41510 #if DB_VERSION_MAJOR > 2
41511         db_env_create( NULL, 0 );
41512 #elif DB_VERSION_MAJOR > 1
41513         db_appexit( NULL );
41514 #else
41515         (void) dbopen( NULL, 0, 0, 0, NULL);
41516 #endif
41517
41518   ;
41519   return 0;
41520 }
41521 _ACEOF
41522 rm -f conftest.$ac_objext conftest$ac_exeext
41523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41524   (eval $ac_link) 2>conftest.er1
41525   ac_status=$?
41526   grep -v '^ *+' conftest.er1 >conftest.err
41527   rm -f conftest.er1
41528   cat conftest.err >&5
41529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41530   (exit $ac_status); } &&
41531          { ac_try='test -z "$ac_c_werror_flag"
41532                          || test ! -s conftest.err'
41533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41534   (eval $ac_try) 2>&5
41535   ac_status=$?
41536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41537   (exit $ac_status); }; } &&
41538          { ac_try='test -s conftest$ac_exeext'
41539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41540   (eval $ac_try) 2>&5
41541   ac_status=$?
41542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41543   (exit $ac_status); }; }; then
41544   ol_cv_db_db=yes
41545 else
41546   echo "$as_me: failed program was:" >&5
41547 sed 's/^/| /' conftest.$ac_ext >&5
41548
41549 ol_cv_db_db=no
41550 fi
41551 rm -f conftest.err conftest.$ac_objext \
41552       conftest$ac_exeext conftest.$ac_ext
41553
41554         LIBS="$ol_LIBS"
41555
41556 fi
41557 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
41558 echo "${ECHO_T}$ol_cv_db_db" >&6
41559
41560         if test $ol_cv_db_db = yes ; then
41561                 ol_cv_lib_db=-ldb
41562         fi
41563 fi
41564
41565 if test $ol_cv_lib_db = no ; then
41566         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
41567 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
41568 if test "${ol_cv_db_db41+set}" = set; then
41569   echo $ECHO_N "(cached) $ECHO_C" >&6
41570 else
41571
41572         ol_DB_LIB=-ldb41
41573         ol_LIBS=$LIBS
41574         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41575
41576         cat >conftest.$ac_ext <<_ACEOF
41577 /* confdefs.h.  */
41578 _ACEOF
41579 cat confdefs.h >>conftest.$ac_ext
41580 cat >>conftest.$ac_ext <<_ACEOF
41581 /* end confdefs.h.  */
41582
41583 #ifdef HAVE_DB_185_H
41584 # include <db_185.h>
41585 #else
41586 # include <db.h>
41587 #endif
41588
41589 #ifndef DB_VERSION_MAJOR
41590 # define DB_VERSION_MAJOR 1
41591 #endif
41592
41593 #ifndef NULL
41594 #define NULL ((void*)0)
41595 #endif
41596
41597 int
41598 main ()
41599 {
41600
41601 #if DB_VERSION_MAJOR > 1
41602         {
41603                 char *version;
41604                 int major, minor, patch;
41605
41606                 version = db_version( &major, &minor, &patch );
41607
41608                 if( major != DB_VERSION_MAJOR ||
41609                         minor < DB_VERSION_MINOR )
41610                 {
41611                         printf("Berkeley DB version mismatch\n"
41612                                 "\theader: %s\n\tlibrary: %s\n",
41613                                 DB_VERSION_STRING, version);
41614                         return 1;
41615                 }
41616         }
41617 #endif
41618
41619 #if DB_VERSION_MAJOR > 2
41620         db_env_create( NULL, 0 );
41621 #elif DB_VERSION_MAJOR > 1
41622         db_appexit( NULL );
41623 #else
41624         (void) dbopen( NULL, 0, 0, 0, NULL);
41625 #endif
41626
41627   ;
41628   return 0;
41629 }
41630 _ACEOF
41631 rm -f conftest.$ac_objext conftest$ac_exeext
41632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41633   (eval $ac_link) 2>conftest.er1
41634   ac_status=$?
41635   grep -v '^ *+' conftest.er1 >conftest.err
41636   rm -f conftest.er1
41637   cat conftest.err >&5
41638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41639   (exit $ac_status); } &&
41640          { ac_try='test -z "$ac_c_werror_flag"
41641                          || test ! -s conftest.err'
41642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41643   (eval $ac_try) 2>&5
41644   ac_status=$?
41645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41646   (exit $ac_status); }; } &&
41647          { ac_try='test -s conftest$ac_exeext'
41648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41649   (eval $ac_try) 2>&5
41650   ac_status=$?
41651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41652   (exit $ac_status); }; }; then
41653   ol_cv_db_db41=yes
41654 else
41655   echo "$as_me: failed program was:" >&5
41656 sed 's/^/| /' conftest.$ac_ext >&5
41657
41658 ol_cv_db_db41=no
41659 fi
41660 rm -f conftest.err conftest.$ac_objext \
41661       conftest$ac_exeext conftest.$ac_ext
41662
41663         LIBS="$ol_LIBS"
41664
41665 fi
41666 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
41667 echo "${ECHO_T}$ol_cv_db_db41" >&6
41668
41669         if test $ol_cv_db_db41 = yes ; then
41670                 ol_cv_lib_db=-ldb41
41671         fi
41672 fi
41673
41674 if test $ol_cv_lib_db = no ; then
41675         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
41676 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
41677 if test "${ol_cv_db_db_41+set}" = set; then
41678   echo $ECHO_N "(cached) $ECHO_C" >&6
41679 else
41680
41681         ol_DB_LIB=-ldb-41
41682         ol_LIBS=$LIBS
41683         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41684
41685         cat >conftest.$ac_ext <<_ACEOF
41686 /* confdefs.h.  */
41687 _ACEOF
41688 cat confdefs.h >>conftest.$ac_ext
41689 cat >>conftest.$ac_ext <<_ACEOF
41690 /* end confdefs.h.  */
41691
41692 #ifdef HAVE_DB_185_H
41693 # include <db_185.h>
41694 #else
41695 # include <db.h>
41696 #endif
41697
41698 #ifndef DB_VERSION_MAJOR
41699 # define DB_VERSION_MAJOR 1
41700 #endif
41701
41702 #ifndef NULL
41703 #define NULL ((void*)0)
41704 #endif
41705
41706 int
41707 main ()
41708 {
41709
41710 #if DB_VERSION_MAJOR > 1
41711         {
41712                 char *version;
41713                 int major, minor, patch;
41714
41715                 version = db_version( &major, &minor, &patch );
41716
41717                 if( major != DB_VERSION_MAJOR ||
41718                         minor < DB_VERSION_MINOR )
41719                 {
41720                         printf("Berkeley DB version mismatch\n"
41721                                 "\theader: %s\n\tlibrary: %s\n",
41722                                 DB_VERSION_STRING, version);
41723                         return 1;
41724                 }
41725         }
41726 #endif
41727
41728 #if DB_VERSION_MAJOR > 2
41729         db_env_create( NULL, 0 );
41730 #elif DB_VERSION_MAJOR > 1
41731         db_appexit( NULL );
41732 #else
41733         (void) dbopen( NULL, 0, 0, 0, NULL);
41734 #endif
41735
41736   ;
41737   return 0;
41738 }
41739 _ACEOF
41740 rm -f conftest.$ac_objext conftest$ac_exeext
41741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41742   (eval $ac_link) 2>conftest.er1
41743   ac_status=$?
41744   grep -v '^ *+' conftest.er1 >conftest.err
41745   rm -f conftest.er1
41746   cat conftest.err >&5
41747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41748   (exit $ac_status); } &&
41749          { ac_try='test -z "$ac_c_werror_flag"
41750                          || test ! -s conftest.err'
41751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41752   (eval $ac_try) 2>&5
41753   ac_status=$?
41754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41755   (exit $ac_status); }; } &&
41756          { ac_try='test -s conftest$ac_exeext'
41757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41758   (eval $ac_try) 2>&5
41759   ac_status=$?
41760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41761   (exit $ac_status); }; }; then
41762   ol_cv_db_db_41=yes
41763 else
41764   echo "$as_me: failed program was:" >&5
41765 sed 's/^/| /' conftest.$ac_ext >&5
41766
41767 ol_cv_db_db_41=no
41768 fi
41769 rm -f conftest.err conftest.$ac_objext \
41770       conftest$ac_exeext conftest.$ac_ext
41771
41772         LIBS="$ol_LIBS"
41773
41774 fi
41775 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
41776 echo "${ECHO_T}$ol_cv_db_db_41" >&6
41777
41778         if test $ol_cv_db_db_41 = yes ; then
41779                 ol_cv_lib_db=-ldb-41
41780         fi
41781 fi
41782
41783 if test $ol_cv_lib_db = no ; then
41784         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
41785 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
41786 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
41787   echo $ECHO_N "(cached) $ECHO_C" >&6
41788 else
41789
41790         ol_DB_LIB=-ldb-4.1
41791         ol_LIBS=$LIBS
41792         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41793
41794         cat >conftest.$ac_ext <<_ACEOF
41795 /* confdefs.h.  */
41796 _ACEOF
41797 cat confdefs.h >>conftest.$ac_ext
41798 cat >>conftest.$ac_ext <<_ACEOF
41799 /* end confdefs.h.  */
41800
41801 #ifdef HAVE_DB_185_H
41802 # include <db_185.h>
41803 #else
41804 # include <db.h>
41805 #endif
41806
41807 #ifndef DB_VERSION_MAJOR
41808 # define DB_VERSION_MAJOR 1
41809 #endif
41810
41811 #ifndef NULL
41812 #define NULL ((void*)0)
41813 #endif
41814
41815 int
41816 main ()
41817 {
41818
41819 #if DB_VERSION_MAJOR > 1
41820         {
41821                 char *version;
41822                 int major, minor, patch;
41823
41824                 version = db_version( &major, &minor, &patch );
41825
41826                 if( major != DB_VERSION_MAJOR ||
41827                         minor < DB_VERSION_MINOR )
41828                 {
41829                         printf("Berkeley DB version mismatch\n"
41830                                 "\theader: %s\n\tlibrary: %s\n",
41831                                 DB_VERSION_STRING, version);
41832                         return 1;
41833                 }
41834         }
41835 #endif
41836
41837 #if DB_VERSION_MAJOR > 2
41838         db_env_create( NULL, 0 );
41839 #elif DB_VERSION_MAJOR > 1
41840         db_appexit( NULL );
41841 #else
41842         (void) dbopen( NULL, 0, 0, 0, NULL);
41843 #endif
41844
41845   ;
41846   return 0;
41847 }
41848 _ACEOF
41849 rm -f conftest.$ac_objext conftest$ac_exeext
41850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41851   (eval $ac_link) 2>conftest.er1
41852   ac_status=$?
41853   grep -v '^ *+' conftest.er1 >conftest.err
41854   rm -f conftest.er1
41855   cat conftest.err >&5
41856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41857   (exit $ac_status); } &&
41858          { ac_try='test -z "$ac_c_werror_flag"
41859                          || test ! -s conftest.err'
41860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41861   (eval $ac_try) 2>&5
41862   ac_status=$?
41863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41864   (exit $ac_status); }; } &&
41865          { ac_try='test -s conftest$ac_exeext'
41866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41867   (eval $ac_try) 2>&5
41868   ac_status=$?
41869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41870   (exit $ac_status); }; }; then
41871   ol_cv_db_db_4_dot_1=yes
41872 else
41873   echo "$as_me: failed program was:" >&5
41874 sed 's/^/| /' conftest.$ac_ext >&5
41875
41876 ol_cv_db_db_4_dot_1=no
41877 fi
41878 rm -f conftest.err conftest.$ac_objext \
41879       conftest$ac_exeext conftest.$ac_ext
41880
41881         LIBS="$ol_LIBS"
41882
41883 fi
41884 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
41885 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
41886
41887         if test $ol_cv_db_db_4_dot_1 = yes ; then
41888                 ol_cv_lib_db=-ldb-4.1
41889         fi
41890 fi
41891
41892 if test $ol_cv_lib_db = no ; then
41893         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
41894 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
41895 if test "${ol_cv_db_db_4_1+set}" = set; then
41896   echo $ECHO_N "(cached) $ECHO_C" >&6
41897 else
41898
41899         ol_DB_LIB=-ldb-4-1
41900         ol_LIBS=$LIBS
41901         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41902
41903         cat >conftest.$ac_ext <<_ACEOF
41904 /* confdefs.h.  */
41905 _ACEOF
41906 cat confdefs.h >>conftest.$ac_ext
41907 cat >>conftest.$ac_ext <<_ACEOF
41908 /* end confdefs.h.  */
41909
41910 #ifdef HAVE_DB_185_H
41911 # include <db_185.h>
41912 #else
41913 # include <db.h>
41914 #endif
41915
41916 #ifndef DB_VERSION_MAJOR
41917 # define DB_VERSION_MAJOR 1
41918 #endif
41919
41920 #ifndef NULL
41921 #define NULL ((void*)0)
41922 #endif
41923
41924 int
41925 main ()
41926 {
41927
41928 #if DB_VERSION_MAJOR > 1
41929         {
41930                 char *version;
41931                 int major, minor, patch;
41932
41933                 version = db_version( &major, &minor, &patch );
41934
41935                 if( major != DB_VERSION_MAJOR ||
41936                         minor < DB_VERSION_MINOR )
41937                 {
41938                         printf("Berkeley DB version mismatch\n"
41939                                 "\theader: %s\n\tlibrary: %s\n",
41940                                 DB_VERSION_STRING, version);
41941                         return 1;
41942                 }
41943         }
41944 #endif
41945
41946 #if DB_VERSION_MAJOR > 2
41947         db_env_create( NULL, 0 );
41948 #elif DB_VERSION_MAJOR > 1
41949         db_appexit( NULL );
41950 #else
41951         (void) dbopen( NULL, 0, 0, 0, NULL);
41952 #endif
41953
41954   ;
41955   return 0;
41956 }
41957 _ACEOF
41958 rm -f conftest.$ac_objext conftest$ac_exeext
41959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41960   (eval $ac_link) 2>conftest.er1
41961   ac_status=$?
41962   grep -v '^ *+' conftest.er1 >conftest.err
41963   rm -f conftest.er1
41964   cat conftest.err >&5
41965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41966   (exit $ac_status); } &&
41967          { ac_try='test -z "$ac_c_werror_flag"
41968                          || test ! -s conftest.err'
41969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41970   (eval $ac_try) 2>&5
41971   ac_status=$?
41972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41973   (exit $ac_status); }; } &&
41974          { ac_try='test -s conftest$ac_exeext'
41975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41976   (eval $ac_try) 2>&5
41977   ac_status=$?
41978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41979   (exit $ac_status); }; }; then
41980   ol_cv_db_db_4_1=yes
41981 else
41982   echo "$as_me: failed program was:" >&5
41983 sed 's/^/| /' conftest.$ac_ext >&5
41984
41985 ol_cv_db_db_4_1=no
41986 fi
41987 rm -f conftest.err conftest.$ac_objext \
41988       conftest$ac_exeext conftest.$ac_ext
41989
41990         LIBS="$ol_LIBS"
41991
41992 fi
41993 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
41994 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
41995
41996         if test $ol_cv_db_db_4_1 = yes ; then
41997                 ol_cv_lib_db=-ldb-4-1
41998         fi
41999 fi
42000
42001 if test $ol_cv_lib_db = no ; then
42002         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42003 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42004 if test "${ol_cv_db_db3+set}" = set; then
42005   echo $ECHO_N "(cached) $ECHO_C" >&6
42006 else
42007
42008         ol_DB_LIB=-ldb3
42009         ol_LIBS=$LIBS
42010         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42011
42012         cat >conftest.$ac_ext <<_ACEOF
42013 /* confdefs.h.  */
42014 _ACEOF
42015 cat confdefs.h >>conftest.$ac_ext
42016 cat >>conftest.$ac_ext <<_ACEOF
42017 /* end confdefs.h.  */
42018
42019 #ifdef HAVE_DB_185_H
42020 # include <db_185.h>
42021 #else
42022 # include <db.h>
42023 #endif
42024
42025 #ifndef DB_VERSION_MAJOR
42026 # define DB_VERSION_MAJOR 1
42027 #endif
42028
42029 #ifndef NULL
42030 #define NULL ((void*)0)
42031 #endif
42032
42033 int
42034 main ()
42035 {
42036
42037 #if DB_VERSION_MAJOR > 1
42038         {
42039                 char *version;
42040                 int major, minor, patch;
42041
42042                 version = db_version( &major, &minor, &patch );
42043
42044                 if( major != DB_VERSION_MAJOR ||
42045                         minor < DB_VERSION_MINOR )
42046                 {
42047                         printf("Berkeley DB version mismatch\n"
42048                                 "\theader: %s\n\tlibrary: %s\n",
42049                                 DB_VERSION_STRING, version);
42050                         return 1;
42051                 }
42052         }
42053 #endif
42054
42055 #if DB_VERSION_MAJOR > 2
42056         db_env_create( NULL, 0 );
42057 #elif DB_VERSION_MAJOR > 1
42058         db_appexit( NULL );
42059 #else
42060         (void) dbopen( NULL, 0, 0, 0, NULL);
42061 #endif
42062
42063   ;
42064   return 0;
42065 }
42066 _ACEOF
42067 rm -f conftest.$ac_objext conftest$ac_exeext
42068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42069   (eval $ac_link) 2>conftest.er1
42070   ac_status=$?
42071   grep -v '^ *+' conftest.er1 >conftest.err
42072   rm -f conftest.er1
42073   cat conftest.err >&5
42074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42075   (exit $ac_status); } &&
42076          { ac_try='test -z "$ac_c_werror_flag"
42077                          || test ! -s conftest.err'
42078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42079   (eval $ac_try) 2>&5
42080   ac_status=$?
42081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42082   (exit $ac_status); }; } &&
42083          { ac_try='test -s conftest$ac_exeext'
42084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42085   (eval $ac_try) 2>&5
42086   ac_status=$?
42087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42088   (exit $ac_status); }; }; then
42089   ol_cv_db_db3=yes
42090 else
42091   echo "$as_me: failed program was:" >&5
42092 sed 's/^/| /' conftest.$ac_ext >&5
42093
42094 ol_cv_db_db3=no
42095 fi
42096 rm -f conftest.err conftest.$ac_objext \
42097       conftest$ac_exeext conftest.$ac_ext
42098
42099         LIBS="$ol_LIBS"
42100
42101 fi
42102 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42103 echo "${ECHO_T}$ol_cv_db_db3" >&6
42104
42105         if test $ol_cv_db_db3 = yes ; then
42106                 ol_cv_lib_db=-ldb3
42107         fi
42108 fi
42109
42110 if test $ol_cv_lib_db = no ; then
42111         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42112 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42113 if test "${ol_cv_db_db_3+set}" = set; then
42114   echo $ECHO_N "(cached) $ECHO_C" >&6
42115 else
42116
42117         ol_DB_LIB=-ldb-3
42118         ol_LIBS=$LIBS
42119         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42120
42121         cat >conftest.$ac_ext <<_ACEOF
42122 /* confdefs.h.  */
42123 _ACEOF
42124 cat confdefs.h >>conftest.$ac_ext
42125 cat >>conftest.$ac_ext <<_ACEOF
42126 /* end confdefs.h.  */
42127
42128 #ifdef HAVE_DB_185_H
42129 # include <db_185.h>
42130 #else
42131 # include <db.h>
42132 #endif
42133
42134 #ifndef DB_VERSION_MAJOR
42135 # define DB_VERSION_MAJOR 1
42136 #endif
42137
42138 #ifndef NULL
42139 #define NULL ((void*)0)
42140 #endif
42141
42142 int
42143 main ()
42144 {
42145
42146 #if DB_VERSION_MAJOR > 1
42147         {
42148                 char *version;
42149                 int major, minor, patch;
42150
42151                 version = db_version( &major, &minor, &patch );
42152
42153                 if( major != DB_VERSION_MAJOR ||
42154                         minor < DB_VERSION_MINOR )
42155                 {
42156                         printf("Berkeley DB version mismatch\n"
42157                                 "\theader: %s\n\tlibrary: %s\n",
42158                                 DB_VERSION_STRING, version);
42159                         return 1;
42160                 }
42161         }
42162 #endif
42163
42164 #if DB_VERSION_MAJOR > 2
42165         db_env_create( NULL, 0 );
42166 #elif DB_VERSION_MAJOR > 1
42167         db_appexit( NULL );
42168 #else
42169         (void) dbopen( NULL, 0, 0, 0, NULL);
42170 #endif
42171
42172   ;
42173   return 0;
42174 }
42175 _ACEOF
42176 rm -f conftest.$ac_objext conftest$ac_exeext
42177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42178   (eval $ac_link) 2>conftest.er1
42179   ac_status=$?
42180   grep -v '^ *+' conftest.er1 >conftest.err
42181   rm -f conftest.er1
42182   cat conftest.err >&5
42183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42184   (exit $ac_status); } &&
42185          { ac_try='test -z "$ac_c_werror_flag"
42186                          || test ! -s conftest.err'
42187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42188   (eval $ac_try) 2>&5
42189   ac_status=$?
42190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42191   (exit $ac_status); }; } &&
42192          { ac_try='test -s conftest$ac_exeext'
42193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42194   (eval $ac_try) 2>&5
42195   ac_status=$?
42196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42197   (exit $ac_status); }; }; then
42198   ol_cv_db_db_3=yes
42199 else
42200   echo "$as_me: failed program was:" >&5
42201 sed 's/^/| /' conftest.$ac_ext >&5
42202
42203 ol_cv_db_db_3=no
42204 fi
42205 rm -f conftest.err conftest.$ac_objext \
42206       conftest$ac_exeext conftest.$ac_ext
42207
42208         LIBS="$ol_LIBS"
42209
42210 fi
42211 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42212 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42213
42214         if test $ol_cv_db_db_3 = yes ; then
42215                 ol_cv_lib_db=-ldb-3
42216         fi
42217 fi
42218
42219 if test $ol_cv_lib_db = no ; then
42220         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42221 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42222 if test "${ol_cv_db_db2+set}" = set; then
42223   echo $ECHO_N "(cached) $ECHO_C" >&6
42224 else
42225
42226         ol_DB_LIB=-ldb2
42227         ol_LIBS=$LIBS
42228         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42229
42230         cat >conftest.$ac_ext <<_ACEOF
42231 /* confdefs.h.  */
42232 _ACEOF
42233 cat confdefs.h >>conftest.$ac_ext
42234 cat >>conftest.$ac_ext <<_ACEOF
42235 /* end confdefs.h.  */
42236
42237 #ifdef HAVE_DB_185_H
42238 # include <db_185.h>
42239 #else
42240 # include <db.h>
42241 #endif
42242
42243 #ifndef DB_VERSION_MAJOR
42244 # define DB_VERSION_MAJOR 1
42245 #endif
42246
42247 #ifndef NULL
42248 #define NULL ((void*)0)
42249 #endif
42250
42251 int
42252 main ()
42253 {
42254
42255 #if DB_VERSION_MAJOR > 1
42256         {
42257                 char *version;
42258                 int major, minor, patch;
42259
42260                 version = db_version( &major, &minor, &patch );
42261
42262                 if( major != DB_VERSION_MAJOR ||
42263                         minor < DB_VERSION_MINOR )
42264                 {
42265                         printf("Berkeley DB version mismatch\n"
42266                                 "\theader: %s\n\tlibrary: %s\n",
42267                                 DB_VERSION_STRING, version);
42268                         return 1;
42269                 }
42270         }
42271 #endif
42272
42273 #if DB_VERSION_MAJOR > 2
42274         db_env_create( NULL, 0 );
42275 #elif DB_VERSION_MAJOR > 1
42276         db_appexit( NULL );
42277 #else
42278         (void) dbopen( NULL, 0, 0, 0, NULL);
42279 #endif
42280
42281   ;
42282   return 0;
42283 }
42284 _ACEOF
42285 rm -f conftest.$ac_objext conftest$ac_exeext
42286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42287   (eval $ac_link) 2>conftest.er1
42288   ac_status=$?
42289   grep -v '^ *+' conftest.er1 >conftest.err
42290   rm -f conftest.er1
42291   cat conftest.err >&5
42292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42293   (exit $ac_status); } &&
42294          { ac_try='test -z "$ac_c_werror_flag"
42295                          || test ! -s conftest.err'
42296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42297   (eval $ac_try) 2>&5
42298   ac_status=$?
42299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42300   (exit $ac_status); }; } &&
42301          { ac_try='test -s conftest$ac_exeext'
42302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42303   (eval $ac_try) 2>&5
42304   ac_status=$?
42305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42306   (exit $ac_status); }; }; then
42307   ol_cv_db_db2=yes
42308 else
42309   echo "$as_me: failed program was:" >&5
42310 sed 's/^/| /' conftest.$ac_ext >&5
42311
42312 ol_cv_db_db2=no
42313 fi
42314 rm -f conftest.err conftest.$ac_objext \
42315       conftest$ac_exeext conftest.$ac_ext
42316
42317         LIBS="$ol_LIBS"
42318
42319 fi
42320 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42321 echo "${ECHO_T}$ol_cv_db_db2" >&6
42322
42323         if test $ol_cv_db_db2 = yes ; then
42324                 ol_cv_lib_db=-ldb2
42325         fi
42326 fi
42327
42328 if test $ol_cv_lib_db = no ; then
42329         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42330 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42331 if test "${ol_cv_db_db_2+set}" = set; then
42332   echo $ECHO_N "(cached) $ECHO_C" >&6
42333 else
42334
42335         ol_DB_LIB=-ldb-2
42336         ol_LIBS=$LIBS
42337         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42338
42339         cat >conftest.$ac_ext <<_ACEOF
42340 /* confdefs.h.  */
42341 _ACEOF
42342 cat confdefs.h >>conftest.$ac_ext
42343 cat >>conftest.$ac_ext <<_ACEOF
42344 /* end confdefs.h.  */
42345
42346 #ifdef HAVE_DB_185_H
42347 # include <db_185.h>
42348 #else
42349 # include <db.h>
42350 #endif
42351
42352 #ifndef DB_VERSION_MAJOR
42353 # define DB_VERSION_MAJOR 1
42354 #endif
42355
42356 #ifndef NULL
42357 #define NULL ((void*)0)
42358 #endif
42359
42360 int
42361 main ()
42362 {
42363
42364 #if DB_VERSION_MAJOR > 1
42365         {
42366                 char *version;
42367                 int major, minor, patch;
42368
42369                 version = db_version( &major, &minor, &patch );
42370
42371                 if( major != DB_VERSION_MAJOR ||
42372                         minor < DB_VERSION_MINOR )
42373                 {
42374                         printf("Berkeley DB version mismatch\n"
42375                                 "\theader: %s\n\tlibrary: %s\n",
42376                                 DB_VERSION_STRING, version);
42377                         return 1;
42378                 }
42379         }
42380 #endif
42381
42382 #if DB_VERSION_MAJOR > 2
42383         db_env_create( NULL, 0 );
42384 #elif DB_VERSION_MAJOR > 1
42385         db_appexit( NULL );
42386 #else
42387         (void) dbopen( NULL, 0, 0, 0, NULL);
42388 #endif
42389
42390   ;
42391   return 0;
42392 }
42393 _ACEOF
42394 rm -f conftest.$ac_objext conftest$ac_exeext
42395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42396   (eval $ac_link) 2>conftest.er1
42397   ac_status=$?
42398   grep -v '^ *+' conftest.er1 >conftest.err
42399   rm -f conftest.er1
42400   cat conftest.err >&5
42401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42402   (exit $ac_status); } &&
42403          { ac_try='test -z "$ac_c_werror_flag"
42404                          || test ! -s conftest.err'
42405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42406   (eval $ac_try) 2>&5
42407   ac_status=$?
42408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42409   (exit $ac_status); }; } &&
42410          { ac_try='test -s conftest$ac_exeext'
42411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42412   (eval $ac_try) 2>&5
42413   ac_status=$?
42414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42415   (exit $ac_status); }; }; then
42416   ol_cv_db_db_2=yes
42417 else
42418   echo "$as_me: failed program was:" >&5
42419 sed 's/^/| /' conftest.$ac_ext >&5
42420
42421 ol_cv_db_db_2=no
42422 fi
42423 rm -f conftest.err conftest.$ac_objext \
42424       conftest$ac_exeext conftest.$ac_ext
42425
42426         LIBS="$ol_LIBS"
42427
42428 fi
42429 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42430 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42431
42432         if test $ol_cv_db_db_2 = yes ; then
42433                 ol_cv_lib_db=-ldb-2
42434         fi
42435 fi
42436
42437 if test $ol_cv_lib_db = no ; then
42438         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42439 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42440 if test "${ol_cv_db_db1+set}" = set; then
42441   echo $ECHO_N "(cached) $ECHO_C" >&6
42442 else
42443
42444         ol_DB_LIB=-ldb1
42445         ol_LIBS=$LIBS
42446         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42447
42448         cat >conftest.$ac_ext <<_ACEOF
42449 /* confdefs.h.  */
42450 _ACEOF
42451 cat confdefs.h >>conftest.$ac_ext
42452 cat >>conftest.$ac_ext <<_ACEOF
42453 /* end confdefs.h.  */
42454
42455 #ifdef HAVE_DB_185_H
42456 # include <db_185.h>
42457 #else
42458 # include <db.h>
42459 #endif
42460
42461 #ifndef DB_VERSION_MAJOR
42462 # define DB_VERSION_MAJOR 1
42463 #endif
42464
42465 #ifndef NULL
42466 #define NULL ((void*)0)
42467 #endif
42468
42469 int
42470 main ()
42471 {
42472
42473 #if DB_VERSION_MAJOR > 1
42474         {
42475                 char *version;
42476                 int major, minor, patch;
42477
42478                 version = db_version( &major, &minor, &patch );
42479
42480                 if( major != DB_VERSION_MAJOR ||
42481                         minor < DB_VERSION_MINOR )
42482                 {
42483                         printf("Berkeley DB version mismatch\n"
42484                                 "\theader: %s\n\tlibrary: %s\n",
42485                                 DB_VERSION_STRING, version);
42486                         return 1;
42487                 }
42488         }
42489 #endif
42490
42491 #if DB_VERSION_MAJOR > 2
42492         db_env_create( NULL, 0 );
42493 #elif DB_VERSION_MAJOR > 1
42494         db_appexit( NULL );
42495 #else
42496         (void) dbopen( NULL, 0, 0, 0, NULL);
42497 #endif
42498
42499   ;
42500   return 0;
42501 }
42502 _ACEOF
42503 rm -f conftest.$ac_objext conftest$ac_exeext
42504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42505   (eval $ac_link) 2>conftest.er1
42506   ac_status=$?
42507   grep -v '^ *+' conftest.er1 >conftest.err
42508   rm -f conftest.er1
42509   cat conftest.err >&5
42510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42511   (exit $ac_status); } &&
42512          { ac_try='test -z "$ac_c_werror_flag"
42513                          || test ! -s conftest.err'
42514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42515   (eval $ac_try) 2>&5
42516   ac_status=$?
42517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42518   (exit $ac_status); }; } &&
42519          { ac_try='test -s conftest$ac_exeext'
42520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42521   (eval $ac_try) 2>&5
42522   ac_status=$?
42523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42524   (exit $ac_status); }; }; then
42525   ol_cv_db_db1=yes
42526 else
42527   echo "$as_me: failed program was:" >&5
42528 sed 's/^/| /' conftest.$ac_ext >&5
42529
42530 ol_cv_db_db1=no
42531 fi
42532 rm -f conftest.err conftest.$ac_objext \
42533       conftest$ac_exeext conftest.$ac_ext
42534
42535         LIBS="$ol_LIBS"
42536
42537 fi
42538 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
42539 echo "${ECHO_T}$ol_cv_db_db1" >&6
42540
42541         if test $ol_cv_db_db1 = yes ; then
42542                 ol_cv_lib_db=-ldb1
42543         fi
42544 fi
42545
42546 if test $ol_cv_lib_db = no ; then
42547         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
42548 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
42549 if test "${ol_cv_db_db_1+set}" = set; then
42550   echo $ECHO_N "(cached) $ECHO_C" >&6
42551 else
42552
42553         ol_DB_LIB=-ldb-1
42554         ol_LIBS=$LIBS
42555         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42556
42557         cat >conftest.$ac_ext <<_ACEOF
42558 /* confdefs.h.  */
42559 _ACEOF
42560 cat confdefs.h >>conftest.$ac_ext
42561 cat >>conftest.$ac_ext <<_ACEOF
42562 /* end confdefs.h.  */
42563
42564 #ifdef HAVE_DB_185_H
42565 # include <db_185.h>
42566 #else
42567 # include <db.h>
42568 #endif
42569
42570 #ifndef DB_VERSION_MAJOR
42571 # define DB_VERSION_MAJOR 1
42572 #endif
42573
42574 #ifndef NULL
42575 #define NULL ((void*)0)
42576 #endif
42577
42578 int
42579 main ()
42580 {
42581
42582 #if DB_VERSION_MAJOR > 1
42583         {
42584                 char *version;
42585                 int major, minor, patch;
42586
42587                 version = db_version( &major, &minor, &patch );
42588
42589                 if( major != DB_VERSION_MAJOR ||
42590                         minor < DB_VERSION_MINOR )
42591                 {
42592                         printf("Berkeley DB version mismatch\n"
42593                                 "\theader: %s\n\tlibrary: %s\n",
42594                                 DB_VERSION_STRING, version);
42595                         return 1;
42596                 }
42597         }
42598 #endif
42599
42600 #if DB_VERSION_MAJOR > 2
42601         db_env_create( NULL, 0 );
42602 #elif DB_VERSION_MAJOR > 1
42603         db_appexit( NULL );
42604 #else
42605         (void) dbopen( NULL, 0, 0, 0, NULL);
42606 #endif
42607
42608   ;
42609   return 0;
42610 }
42611 _ACEOF
42612 rm -f conftest.$ac_objext conftest$ac_exeext
42613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42614   (eval $ac_link) 2>conftest.er1
42615   ac_status=$?
42616   grep -v '^ *+' conftest.er1 >conftest.err
42617   rm -f conftest.er1
42618   cat conftest.err >&5
42619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42620   (exit $ac_status); } &&
42621          { ac_try='test -z "$ac_c_werror_flag"
42622                          || test ! -s conftest.err'
42623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42624   (eval $ac_try) 2>&5
42625   ac_status=$?
42626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42627   (exit $ac_status); }; } &&
42628          { ac_try='test -s conftest$ac_exeext'
42629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42630   (eval $ac_try) 2>&5
42631   ac_status=$?
42632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42633   (exit $ac_status); }; }; then
42634   ol_cv_db_db_1=yes
42635 else
42636   echo "$as_me: failed program was:" >&5
42637 sed 's/^/| /' conftest.$ac_ext >&5
42638
42639 ol_cv_db_db_1=no
42640 fi
42641 rm -f conftest.err conftest.$ac_objext \
42642       conftest$ac_exeext conftest.$ac_ext
42643
42644         LIBS="$ol_LIBS"
42645
42646 fi
42647 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
42648 echo "${ECHO_T}$ol_cv_db_db_1" >&6
42649
42650         if test $ol_cv_db_db_1 = yes ; then
42651                 ol_cv_lib_db=-ldb-1
42652         fi
42653 fi
42654
42655
42656         if test "$ol_cv_lib_db" != no ; then
42657                 ol_cv_berkeley_db=yes
42658                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
42659 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
42660 if test "${ol_cv_berkeley_db_version+set}" = set; then
42661   echo $ECHO_N "(cached) $ECHO_C" >&6
42662 else
42663
42664         ol_LIBS="$LIBS"
42665         LIBS="$LTHREAD_LIBS $LIBS"
42666         if test $ol_cv_lib_db != yes ; then
42667                 LIBS="$ol_cv_lib_db $LIBS"
42668         fi
42669
42670         if test "$cross_compiling" = yes; then
42671   ol_cv_berkeley_db_version=cross
42672 else
42673   cat >conftest.$ac_ext <<_ACEOF
42674 /* confdefs.h.  */
42675 _ACEOF
42676 cat confdefs.h >>conftest.$ac_ext
42677 cat >>conftest.$ac_ext <<_ACEOF
42678 /* end confdefs.h.  */
42679
42680 #ifdef HAVE_DB_185_H
42681         choke me;
42682 #else
42683 #include <db.h>
42684 #endif
42685 #ifndef DB_VERSION_MAJOR
42686 # define DB_VERSION_MAJOR 1
42687 #endif
42688 #ifndef NULL
42689 #define NULL ((void *)0)
42690 #endif
42691 main()
42692 {
42693 #if DB_VERSION_MAJOR > 1
42694         char *version;
42695         int major, minor, patch;
42696
42697         version = db_version( &major, &minor, &patch );
42698
42699         if( major != DB_VERSION_MAJOR ||
42700                 minor != DB_VERSION_MINOR ||
42701                 patch != DB_VERSION_PATCH )
42702         {
42703                 printf("Berkeley DB version mismatch\n"
42704                         "\theader: %s\n\tlibrary: %s\n",
42705                         DB_VERSION_STRING, version);
42706                 return 1;
42707         }
42708 #endif
42709
42710         return 0;
42711 }
42712 _ACEOF
42713 rm -f conftest$ac_exeext
42714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42715   (eval $ac_link) 2>&5
42716   ac_status=$?
42717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42718   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42720   (eval $ac_try) 2>&5
42721   ac_status=$?
42722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42723   (exit $ac_status); }; }; then
42724   ol_cv_berkeley_db_version=yes
42725 else
42726   echo "$as_me: program exited with status $ac_status" >&5
42727 echo "$as_me: failed program was:" >&5
42728 sed 's/^/| /' conftest.$ac_ext >&5
42729
42730 ( exit $ac_status )
42731 ol_cv_berkeley_db_version=no
42732 fi
42733 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42734 fi
42735
42736         LIBS="$ol_LIBS"
42737
42738 fi
42739 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
42740 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
42741
42742         if test $ol_cv_berkeley_db_version = no ; then
42743                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
42744 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
42745    { (exit 1); exit 1; }; }
42746         fi
42747
42748                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
42749 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
42750 if test "${ol_cv_berkeley_db_thread+set}" = set; then
42751   echo $ECHO_N "(cached) $ECHO_C" >&6
42752 else
42753
42754         ol_LIBS="$LIBS"
42755         LIBS="$LTHREAD_LIBS $LIBS"
42756         if test $ol_cv_lib_db != yes ; then
42757                 LIBS="$ol_cv_lib_db $LIBS"
42758         fi
42759
42760         if test "$cross_compiling" = yes; then
42761   ol_cv_berkeley_db_thread=cross
42762 else
42763   cat >conftest.$ac_ext <<_ACEOF
42764 /* confdefs.h.  */
42765 _ACEOF
42766 cat confdefs.h >>conftest.$ac_ext
42767 cat >>conftest.$ac_ext <<_ACEOF
42768 /* end confdefs.h.  */
42769
42770 #ifdef HAVE_DB_185_H
42771         choke me;
42772 #else
42773 #include <db.h>
42774 #endif
42775 #ifndef NULL
42776 #define NULL ((void *)0)
42777 #endif
42778 main()
42779 {
42780         int rc;
42781         u_int32_t flags = DB_CREATE |
42782 #ifdef DB_PRIVATE
42783                 DB_PRIVATE |
42784 #endif
42785                 DB_THREAD;
42786
42787 #if DB_VERSION_MAJOR > 2
42788         DB_ENV *env = NULL;
42789
42790         rc = db_env_create( &env, 0 );
42791
42792         flags |= DB_INIT_MPOOL;
42793 #ifdef DB_MPOOL_PRIVATE
42794         flags |= DB_MPOOL_PRIVATE;
42795 #endif
42796
42797         if( rc ) {
42798                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
42799                 return rc;
42800         }
42801
42802 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
42803         rc = env->open( env, NULL, flags, 0 );
42804 #else
42805         rc = env->open( env, NULL, NULL, flags, 0 );
42806 #endif
42807
42808         if ( rc == 0 ) {
42809                 rc = env->close( env, 0 );
42810         }
42811
42812         if( rc ) {
42813                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
42814                 return rc;
42815         }
42816
42817 #else
42818         DB_ENV env;
42819         memset( &env, '\0', sizeof(env) );
42820
42821         rc = db_appinit( NULL, NULL, &env, flags );
42822
42823         if( rc == 0 ) {
42824                 db_appexit( &env );
42825         }
42826
42827         unlink("__db_mpool.share");
42828         unlink("__db_lock.share");
42829 #endif
42830
42831         return rc;
42832 }
42833 _ACEOF
42834 rm -f conftest$ac_exeext
42835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42836   (eval $ac_link) 2>&5
42837   ac_status=$?
42838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42839   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42841   (eval $ac_try) 2>&5
42842   ac_status=$?
42843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42844   (exit $ac_status); }; }; then
42845   ol_cv_berkeley_db_thread=yes
42846 else
42847   echo "$as_me: program exited with status $ac_status" >&5
42848 echo "$as_me: failed program was:" >&5
42849 sed 's/^/| /' conftest.$ac_ext >&5
42850
42851 ( exit $ac_status )
42852 ol_cv_berkeley_db_thread=no
42853 fi
42854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42855 fi
42856
42857         LIBS="$ol_LIBS"
42858
42859 fi
42860 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
42861 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
42862
42863         if test $ol_cv_berkeley_db_thread != no ; then
42864
42865 cat >>confdefs.h <<\_ACEOF
42866 #define HAVE_BERKELEY_DB_THREAD 1
42867 _ACEOF
42868
42869         fi
42870
42871         fi
42872 fi
42873
42874         fi
42875
42876         if test $ol_cv_berkeley_db != no ; then
42877
42878 cat >>confdefs.h <<\_ACEOF
42879 #define HAVE_BERKELEY_DB 1
42880 _ACEOF
42881
42882
42883                 ol_link_ldbm=berkeley
42884                 ol_with_ldbm_api=berkeley
42885
42886                 if test $ol_with_ldbm_type = hash ; then
42887
42888 cat >>confdefs.h <<\_ACEOF
42889 #define LDBM_USE_DBHASH 1
42890 _ACEOF
42891
42892                 else
42893
42894 cat >>confdefs.h <<\_ACEOF
42895 #define LDBM_USE_DBBTREE 1
42896 _ACEOF
42897
42898                 fi
42899
42900                                                 if test $ol_cv_lib_db != yes ; then
42901                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
42902                 fi
42903         fi
42904 fi
42905
42906 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
42907         if test $ol_link_ldbm != berkeley ; then
42908                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
42909 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
42910    { (exit 1); exit 1; }; }
42911         else
42912                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB backend" >&5
42913 echo $ECHO_N "checking Berkeley DB version for BDB backend... $ECHO_C" >&6
42914 if test "${ol_cv_bdb_compat+set}" = set; then
42915   echo $ECHO_N "(cached) $ECHO_C" >&6
42916 else
42917
42918         cat >conftest.$ac_ext <<_ACEOF
42919 /* confdefs.h.  */
42920 _ACEOF
42921 cat confdefs.h >>conftest.$ac_ext
42922 cat >>conftest.$ac_ext <<_ACEOF
42923 /* end confdefs.h.  */
42924
42925 #include <db.h>
42926
42927  /* this check could be improved */
42928 #ifndef DB_VERSION_MAJOR
42929 #       define DB_VERSION_MAJOR 1
42930 #endif
42931 #ifndef DB_VERSION_MINOR
42932 #       define DB_VERSION_MINOR 0
42933 #endif
42934
42935 /* require 4.2 or later */
42936 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
42937         __db_version_compat
42938 #endif
42939
42940 _ACEOF
42941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42942   $EGREP "__db_version_compat" >/dev/null 2>&1; then
42943   ol_cv_bdb_compat=yes
42944 else
42945   ol_cv_bdb_compat=no
42946 fi
42947 rm -f conftest*
42948
42949 fi
42950 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
42951 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
42952
42953
42954                 if test $ol_cv_bdb_compat != yes ; then
42955                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
42956 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
42957    { (exit 1); exit 1; }; }
42958                 fi
42959         fi
42960 fi
42961
42962 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
42963         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
42964 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
42965         ol_with_ldbm_api=none
42966 fi
42967
42968 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
42969         echo "$as_me:$LINENO: checking for MDBM library" >&5
42970 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
42971 if test "${ol_cv_lib_mdbm+set}" = set; then
42972   echo $ECHO_N "(cached) $ECHO_C" >&6
42973 else
42974         ol_LIBS="$LIBS"
42975         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
42976 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
42977 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
42978   echo $ECHO_N "(cached) $ECHO_C" >&6
42979 else
42980   cat >conftest.$ac_ext <<_ACEOF
42981 /* confdefs.h.  */
42982 _ACEOF
42983 cat confdefs.h >>conftest.$ac_ext
42984 cat >>conftest.$ac_ext <<_ACEOF
42985 /* end confdefs.h.  */
42986 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
42987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42988 #define mdbm_set_chain innocuous_mdbm_set_chain
42989
42990 /* System header to define __stub macros and hopefully few prototypes,
42991     which can conflict with char mdbm_set_chain (); below.
42992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42993     <limits.h> exists even on freestanding compilers.  */
42994
42995 #ifdef __STDC__
42996 # include <limits.h>
42997 #else
42998 # include <assert.h>
42999 #endif
43000
43001 #undef mdbm_set_chain
43002
43003 /* Override any gcc2 internal prototype to avoid an error.  */
43004 #ifdef __cplusplus
43005 extern "C"
43006 {
43007 #endif
43008 /* We use char because int might match the return type of a gcc2
43009    builtin and then its argument prototype would still apply.  */
43010 char mdbm_set_chain ();
43011 /* The GNU C library defines this for functions which it implements
43012     to always fail with ENOSYS.  Some functions are actually named
43013     something starting with __ and the normal name is an alias.  */
43014 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43015 choke me
43016 #else
43017 char (*f) () = mdbm_set_chain;
43018 #endif
43019 #ifdef __cplusplus
43020 }
43021 #endif
43022
43023 int
43024 main ()
43025 {
43026 return f != mdbm_set_chain;
43027   ;
43028   return 0;
43029 }
43030 _ACEOF
43031 rm -f conftest.$ac_objext conftest$ac_exeext
43032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43033   (eval $ac_link) 2>conftest.er1
43034   ac_status=$?
43035   grep -v '^ *+' conftest.er1 >conftest.err
43036   rm -f conftest.er1
43037   cat conftest.err >&5
43038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43039   (exit $ac_status); } &&
43040          { ac_try='test -z "$ac_c_werror_flag"
43041                          || test ! -s conftest.err'
43042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43043   (eval $ac_try) 2>&5
43044   ac_status=$?
43045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43046   (exit $ac_status); }; } &&
43047          { ac_try='test -s conftest$ac_exeext'
43048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43049   (eval $ac_try) 2>&5
43050   ac_status=$?
43051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43052   (exit $ac_status); }; }; then
43053   ac_cv_func_mdbm_set_chain=yes
43054 else
43055   echo "$as_me: failed program was:" >&5
43056 sed 's/^/| /' conftest.$ac_ext >&5
43057
43058 ac_cv_func_mdbm_set_chain=no
43059 fi
43060 rm -f conftest.err conftest.$ac_objext \
43061       conftest$ac_exeext conftest.$ac_ext
43062 fi
43063 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43064 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43065 if test $ac_cv_func_mdbm_set_chain = yes; then
43066   ol_cv_lib_mdbm=yes
43067 else
43068
43069                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43070 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43071 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43072   echo $ECHO_N "(cached) $ECHO_C" >&6
43073 else
43074   ac_check_lib_save_LIBS=$LIBS
43075 LIBS="-lmdbm  $LIBS"
43076 cat >conftest.$ac_ext <<_ACEOF
43077 /* confdefs.h.  */
43078 _ACEOF
43079 cat confdefs.h >>conftest.$ac_ext
43080 cat >>conftest.$ac_ext <<_ACEOF
43081 /* end confdefs.h.  */
43082
43083 /* Override any gcc2 internal prototype to avoid an error.  */
43084 #ifdef __cplusplus
43085 extern "C"
43086 #endif
43087 /* We use char because int might match the return type of a gcc2
43088    builtin and then its argument prototype would still apply.  */
43089 char mdbm_set_chain ();
43090 int
43091 main ()
43092 {
43093 mdbm_set_chain ();
43094   ;
43095   return 0;
43096 }
43097 _ACEOF
43098 rm -f conftest.$ac_objext conftest$ac_exeext
43099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43100   (eval $ac_link) 2>conftest.er1
43101   ac_status=$?
43102   grep -v '^ *+' conftest.er1 >conftest.err
43103   rm -f conftest.er1
43104   cat conftest.err >&5
43105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43106   (exit $ac_status); } &&
43107          { ac_try='test -z "$ac_c_werror_flag"
43108                          || test ! -s conftest.err'
43109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43110   (eval $ac_try) 2>&5
43111   ac_status=$?
43112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43113   (exit $ac_status); }; } &&
43114          { ac_try='test -s conftest$ac_exeext'
43115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43116   (eval $ac_try) 2>&5
43117   ac_status=$?
43118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43119   (exit $ac_status); }; }; then
43120   ac_cv_lib_mdbm_mdbm_set_chain=yes
43121 else
43122   echo "$as_me: failed program was:" >&5
43123 sed 's/^/| /' conftest.$ac_ext >&5
43124
43125 ac_cv_lib_mdbm_mdbm_set_chain=no
43126 fi
43127 rm -f conftest.err conftest.$ac_objext \
43128       conftest$ac_exeext conftest.$ac_ext
43129 LIBS=$ac_check_lib_save_LIBS
43130 fi
43131 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43132 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43133 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43134   ol_cv_lib_mdbm=-lmdbm
43135 else
43136   ol_cv_lib_mdbm=no
43137 fi
43138
43139
43140 fi
43141
43142         LIBS="$ol_LIBS"
43143
43144 fi
43145 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43146 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43147
43148
43149
43150 for ac_header in mdbm.h
43151 do
43152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43154   echo "$as_me:$LINENO: checking for $ac_header" >&5
43155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43157   echo $ECHO_N "(cached) $ECHO_C" >&6
43158 fi
43159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43161 else
43162   # Is the header compilable?
43163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43165 cat >conftest.$ac_ext <<_ACEOF
43166 /* confdefs.h.  */
43167 _ACEOF
43168 cat confdefs.h >>conftest.$ac_ext
43169 cat >>conftest.$ac_ext <<_ACEOF
43170 /* end confdefs.h.  */
43171 $ac_includes_default
43172 #include <$ac_header>
43173 _ACEOF
43174 rm -f conftest.$ac_objext
43175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43176   (eval $ac_compile) 2>conftest.er1
43177   ac_status=$?
43178   grep -v '^ *+' conftest.er1 >conftest.err
43179   rm -f conftest.er1
43180   cat conftest.err >&5
43181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43182   (exit $ac_status); } &&
43183          { ac_try='test -z "$ac_c_werror_flag"
43184                          || test ! -s conftest.err'
43185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43186   (eval $ac_try) 2>&5
43187   ac_status=$?
43188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43189   (exit $ac_status); }; } &&
43190          { ac_try='test -s conftest.$ac_objext'
43191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43192   (eval $ac_try) 2>&5
43193   ac_status=$?
43194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43195   (exit $ac_status); }; }; then
43196   ac_header_compiler=yes
43197 else
43198   echo "$as_me: failed program was:" >&5
43199 sed 's/^/| /' conftest.$ac_ext >&5
43200
43201 ac_header_compiler=no
43202 fi
43203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43205 echo "${ECHO_T}$ac_header_compiler" >&6
43206
43207 # Is the header present?
43208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43210 cat >conftest.$ac_ext <<_ACEOF
43211 /* confdefs.h.  */
43212 _ACEOF
43213 cat confdefs.h >>conftest.$ac_ext
43214 cat >>conftest.$ac_ext <<_ACEOF
43215 /* end confdefs.h.  */
43216 #include <$ac_header>
43217 _ACEOF
43218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43219   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43220   ac_status=$?
43221   grep -v '^ *+' conftest.er1 >conftest.err
43222   rm -f conftest.er1
43223   cat conftest.err >&5
43224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43225   (exit $ac_status); } >/dev/null; then
43226   if test -s conftest.err; then
43227     ac_cpp_err=$ac_c_preproc_warn_flag
43228     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43229   else
43230     ac_cpp_err=
43231   fi
43232 else
43233   ac_cpp_err=yes
43234 fi
43235 if test -z "$ac_cpp_err"; then
43236   ac_header_preproc=yes
43237 else
43238   echo "$as_me: failed program was:" >&5
43239 sed 's/^/| /' conftest.$ac_ext >&5
43240
43241   ac_header_preproc=no
43242 fi
43243 rm -f conftest.err conftest.$ac_ext
43244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43245 echo "${ECHO_T}$ac_header_preproc" >&6
43246
43247 # So?  What about this header?
43248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43249   yes:no: )
43250     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43254     ac_header_preproc=yes
43255     ;;
43256   no:yes:* )
43257     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43259     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43260 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43261     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43263     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43264 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43267     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43269     (
43270       cat <<\_ASBOX
43271 ## ------------------------------------------ ##
43272 ## Report this to the AC_PACKAGE_NAME lists.  ##
43273 ## ------------------------------------------ ##
43274 _ASBOX
43275     ) |
43276       sed "s/^/$as_me: WARNING:     /" >&2
43277     ;;
43278 esac
43279 echo "$as_me:$LINENO: checking for $ac_header" >&5
43280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43282   echo $ECHO_N "(cached) $ECHO_C" >&6
43283 else
43284   eval "$as_ac_Header=\$ac_header_preproc"
43285 fi
43286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43288
43289 fi
43290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43291   cat >>confdefs.h <<_ACEOF
43292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43293 _ACEOF
43294
43295 fi
43296
43297 done
43298
43299  echo "$as_me:$LINENO: checking for db" >&5
43300 echo $ECHO_N "checking for db... $ECHO_C" >&6
43301 if test "${ol_cv_mdbm+set}" = set; then
43302   echo $ECHO_N "(cached) $ECHO_C" >&6
43303 else
43304
43305         if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43306                 ol_cv_mdbm=no
43307         else
43308                 ol_cv_mdbm=yes
43309         fi
43310
43311 fi
43312 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43313 echo "${ECHO_T}$ol_cv_mdbm" >&6
43314  if test $ol_cv_mdbm = yes ; then
43315
43316 cat >>confdefs.h <<\_ACEOF
43317 #define HAVE_MDBM 1
43318 _ACEOF
43319
43320  fi
43321
43322
43323         if test $ol_cv_mdbm = yes ; then
43324                 ol_link_ldbm=mdbm
43325                 ol_with_ldbm_api=mdbm
43326                 if test $ol_cv_lib_mdbm != yes ; then
43327                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43328                 fi
43329         fi
43330 fi
43331
43332 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
43333         echo "$as_me:$LINENO: checking for GDBM library" >&5
43334 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43335 if test "${ol_cv_lib_gdbm+set}" = set; then
43336   echo $ECHO_N "(cached) $ECHO_C" >&6
43337 else
43338         ol_LIBS="$LIBS"
43339         echo "$as_me:$LINENO: checking for gdbm_open" >&5
43340 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43341 if test "${ac_cv_func_gdbm_open+set}" = set; then
43342   echo $ECHO_N "(cached) $ECHO_C" >&6
43343 else
43344   cat >conftest.$ac_ext <<_ACEOF
43345 /* confdefs.h.  */
43346 _ACEOF
43347 cat confdefs.h >>conftest.$ac_ext
43348 cat >>conftest.$ac_ext <<_ACEOF
43349 /* end confdefs.h.  */
43350 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43352 #define gdbm_open innocuous_gdbm_open
43353
43354 /* System header to define __stub macros and hopefully few prototypes,
43355     which can conflict with char gdbm_open (); below.
43356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43357     <limits.h> exists even on freestanding compilers.  */
43358
43359 #ifdef __STDC__
43360 # include <limits.h>
43361 #else
43362 # include <assert.h>
43363 #endif
43364
43365 #undef gdbm_open
43366
43367 /* Override any gcc2 internal prototype to avoid an error.  */
43368 #ifdef __cplusplus
43369 extern "C"
43370 {
43371 #endif
43372 /* We use char because int might match the return type of a gcc2
43373    builtin and then its argument prototype would still apply.  */
43374 char gdbm_open ();
43375 /* The GNU C library defines this for functions which it implements
43376     to always fail with ENOSYS.  Some functions are actually named
43377     something starting with __ and the normal name is an alias.  */
43378 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43379 choke me
43380 #else
43381 char (*f) () = gdbm_open;
43382 #endif
43383 #ifdef __cplusplus
43384 }
43385 #endif
43386
43387 int
43388 main ()
43389 {
43390 return f != gdbm_open;
43391   ;
43392   return 0;
43393 }
43394 _ACEOF
43395 rm -f conftest.$ac_objext conftest$ac_exeext
43396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43397   (eval $ac_link) 2>conftest.er1
43398   ac_status=$?
43399   grep -v '^ *+' conftest.er1 >conftest.err
43400   rm -f conftest.er1
43401   cat conftest.err >&5
43402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43403   (exit $ac_status); } &&
43404          { ac_try='test -z "$ac_c_werror_flag"
43405                          || test ! -s conftest.err'
43406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43407   (eval $ac_try) 2>&5
43408   ac_status=$?
43409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43410   (exit $ac_status); }; } &&
43411          { ac_try='test -s conftest$ac_exeext'
43412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43413   (eval $ac_try) 2>&5
43414   ac_status=$?
43415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43416   (exit $ac_status); }; }; then
43417   ac_cv_func_gdbm_open=yes
43418 else
43419   echo "$as_me: failed program was:" >&5
43420 sed 's/^/| /' conftest.$ac_ext >&5
43421
43422 ac_cv_func_gdbm_open=no
43423 fi
43424 rm -f conftest.err conftest.$ac_objext \
43425       conftest$ac_exeext conftest.$ac_ext
43426 fi
43427 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43428 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43429 if test $ac_cv_func_gdbm_open = yes; then
43430   ol_cv_lib_gdbm=yes
43431 else
43432
43433                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43434 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43435 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43436   echo $ECHO_N "(cached) $ECHO_C" >&6
43437 else
43438   ac_check_lib_save_LIBS=$LIBS
43439 LIBS="-lgdbm  $LIBS"
43440 cat >conftest.$ac_ext <<_ACEOF
43441 /* confdefs.h.  */
43442 _ACEOF
43443 cat confdefs.h >>conftest.$ac_ext
43444 cat >>conftest.$ac_ext <<_ACEOF
43445 /* end confdefs.h.  */
43446
43447 /* Override any gcc2 internal prototype to avoid an error.  */
43448 #ifdef __cplusplus
43449 extern "C"
43450 #endif
43451 /* We use char because int might match the return type of a gcc2
43452    builtin and then its argument prototype would still apply.  */
43453 char gdbm_open ();
43454 int
43455 main ()
43456 {
43457 gdbm_open ();
43458   ;
43459   return 0;
43460 }
43461 _ACEOF
43462 rm -f conftest.$ac_objext conftest$ac_exeext
43463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43464   (eval $ac_link) 2>conftest.er1
43465   ac_status=$?
43466   grep -v '^ *+' conftest.er1 >conftest.err
43467   rm -f conftest.er1
43468   cat conftest.err >&5
43469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43470   (exit $ac_status); } &&
43471          { ac_try='test -z "$ac_c_werror_flag"
43472                          || test ! -s conftest.err'
43473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43474   (eval $ac_try) 2>&5
43475   ac_status=$?
43476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43477   (exit $ac_status); }; } &&
43478          { ac_try='test -s conftest$ac_exeext'
43479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43480   (eval $ac_try) 2>&5
43481   ac_status=$?
43482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43483   (exit $ac_status); }; }; then
43484   ac_cv_lib_gdbm_gdbm_open=yes
43485 else
43486   echo "$as_me: failed program was:" >&5
43487 sed 's/^/| /' conftest.$ac_ext >&5
43488
43489 ac_cv_lib_gdbm_gdbm_open=no
43490 fi
43491 rm -f conftest.err conftest.$ac_objext \
43492       conftest$ac_exeext conftest.$ac_ext
43493 LIBS=$ac_check_lib_save_LIBS
43494 fi
43495 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43496 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43497 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43498   ol_cv_lib_gdbm=-lgdbm
43499 else
43500   ol_cv_lib_gdbm=no
43501 fi
43502
43503
43504 fi
43505
43506         LIBS="$ol_LIBS"
43507
43508 fi
43509 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
43510 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
43511
43512
43513
43514 for ac_header in gdbm.h
43515 do
43516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43518   echo "$as_me:$LINENO: checking for $ac_header" >&5
43519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43521   echo $ECHO_N "(cached) $ECHO_C" >&6
43522 fi
43523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43525 else
43526   # Is the header compilable?
43527 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43529 cat >conftest.$ac_ext <<_ACEOF
43530 /* confdefs.h.  */
43531 _ACEOF
43532 cat confdefs.h >>conftest.$ac_ext
43533 cat >>conftest.$ac_ext <<_ACEOF
43534 /* end confdefs.h.  */
43535 $ac_includes_default
43536 #include <$ac_header>
43537 _ACEOF
43538 rm -f conftest.$ac_objext
43539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43540   (eval $ac_compile) 2>conftest.er1
43541   ac_status=$?
43542   grep -v '^ *+' conftest.er1 >conftest.err
43543   rm -f conftest.er1
43544   cat conftest.err >&5
43545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43546   (exit $ac_status); } &&
43547          { ac_try='test -z "$ac_c_werror_flag"
43548                          || test ! -s conftest.err'
43549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43550   (eval $ac_try) 2>&5
43551   ac_status=$?
43552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43553   (exit $ac_status); }; } &&
43554          { ac_try='test -s conftest.$ac_objext'
43555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43556   (eval $ac_try) 2>&5
43557   ac_status=$?
43558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43559   (exit $ac_status); }; }; then
43560   ac_header_compiler=yes
43561 else
43562   echo "$as_me: failed program was:" >&5
43563 sed 's/^/| /' conftest.$ac_ext >&5
43564
43565 ac_header_compiler=no
43566 fi
43567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43569 echo "${ECHO_T}$ac_header_compiler" >&6
43570
43571 # Is the header present?
43572 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43574 cat >conftest.$ac_ext <<_ACEOF
43575 /* confdefs.h.  */
43576 _ACEOF
43577 cat confdefs.h >>conftest.$ac_ext
43578 cat >>conftest.$ac_ext <<_ACEOF
43579 /* end confdefs.h.  */
43580 #include <$ac_header>
43581 _ACEOF
43582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43583   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43584   ac_status=$?
43585   grep -v '^ *+' conftest.er1 >conftest.err
43586   rm -f conftest.er1
43587   cat conftest.err >&5
43588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43589   (exit $ac_status); } >/dev/null; then
43590   if test -s conftest.err; then
43591     ac_cpp_err=$ac_c_preproc_warn_flag
43592     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43593   else
43594     ac_cpp_err=
43595   fi
43596 else
43597   ac_cpp_err=yes
43598 fi
43599 if test -z "$ac_cpp_err"; then
43600   ac_header_preproc=yes
43601 else
43602   echo "$as_me: failed program was:" >&5
43603 sed 's/^/| /' conftest.$ac_ext >&5
43604
43605   ac_header_preproc=no
43606 fi
43607 rm -f conftest.err conftest.$ac_ext
43608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43609 echo "${ECHO_T}$ac_header_preproc" >&6
43610
43611 # So?  What about this header?
43612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43613   yes:no: )
43614     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43616     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43618     ac_header_preproc=yes
43619     ;;
43620   no:yes:* )
43621     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43623     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43624 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43625     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43627     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43628 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43629     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43631     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43633     (
43634       cat <<\_ASBOX
43635 ## ------------------------------------------ ##
43636 ## Report this to the AC_PACKAGE_NAME lists.  ##
43637 ## ------------------------------------------ ##
43638 _ASBOX
43639     ) |
43640       sed "s/^/$as_me: WARNING:     /" >&2
43641     ;;
43642 esac
43643 echo "$as_me:$LINENO: checking for $ac_header" >&5
43644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43646   echo $ECHO_N "(cached) $ECHO_C" >&6
43647 else
43648   eval "$as_ac_Header=\$ac_header_preproc"
43649 fi
43650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43652
43653 fi
43654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43655   cat >>confdefs.h <<_ACEOF
43656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43657 _ACEOF
43658
43659 fi
43660
43661 done
43662
43663  echo "$as_me:$LINENO: checking for db" >&5
43664 echo $ECHO_N "checking for db... $ECHO_C" >&6
43665 if test "${ol_cv_gdbm+set}" = set; then
43666   echo $ECHO_N "(cached) $ECHO_C" >&6
43667 else
43668
43669         if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
43670                 ol_cv_gdbm=no
43671         else
43672                 ol_cv_gdbm=yes
43673         fi
43674
43675 fi
43676 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
43677 echo "${ECHO_T}$ol_cv_gdbm" >&6
43678  if test $ol_cv_gdbm = yes ; then
43679
43680 cat >>confdefs.h <<\_ACEOF
43681 #define HAVE_GDBM 1
43682 _ACEOF
43683
43684  fi
43685
43686
43687         if test $ol_cv_gdbm = yes ; then
43688                 ol_link_ldbm=gdbm
43689                 ol_with_ldbm_api=gdbm
43690
43691                 if test $ol_cv_lib_gdbm != yes ; then
43692                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
43693                 fi
43694         fi
43695 fi
43696
43697 if test $ol_with_ldbm_api = ndbm ; then
43698         echo "$as_me:$LINENO: checking for NDBM library" >&5
43699 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
43700 if test "${ol_cv_lib_ndbm+set}" = set; then
43701   echo $ECHO_N "(cached) $ECHO_C" >&6
43702 else
43703         ol_LIBS="$LIBS"
43704         echo "$as_me:$LINENO: checking for dbm_open" >&5
43705 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
43706 if test "${ac_cv_func_dbm_open+set}" = set; then
43707   echo $ECHO_N "(cached) $ECHO_C" >&6
43708 else
43709   cat >conftest.$ac_ext <<_ACEOF
43710 /* confdefs.h.  */
43711 _ACEOF
43712 cat confdefs.h >>conftest.$ac_ext
43713 cat >>conftest.$ac_ext <<_ACEOF
43714 /* end confdefs.h.  */
43715 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
43716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43717 #define dbm_open innocuous_dbm_open
43718
43719 /* System header to define __stub macros and hopefully few prototypes,
43720     which can conflict with char dbm_open (); below.
43721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43722     <limits.h> exists even on freestanding compilers.  */
43723
43724 #ifdef __STDC__
43725 # include <limits.h>
43726 #else
43727 # include <assert.h>
43728 #endif
43729
43730 #undef dbm_open
43731
43732 /* Override any gcc2 internal prototype to avoid an error.  */
43733 #ifdef __cplusplus
43734 extern "C"
43735 {
43736 #endif
43737 /* We use char because int might match the return type of a gcc2
43738    builtin and then its argument prototype would still apply.  */
43739 char dbm_open ();
43740 /* The GNU C library defines this for functions which it implements
43741     to always fail with ENOSYS.  Some functions are actually named
43742     something starting with __ and the normal name is an alias.  */
43743 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
43744 choke me
43745 #else
43746 char (*f) () = dbm_open;
43747 #endif
43748 #ifdef __cplusplus
43749 }
43750 #endif
43751
43752 int
43753 main ()
43754 {
43755 return f != dbm_open;
43756   ;
43757   return 0;
43758 }
43759 _ACEOF
43760 rm -f conftest.$ac_objext conftest$ac_exeext
43761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43762   (eval $ac_link) 2>conftest.er1
43763   ac_status=$?
43764   grep -v '^ *+' conftest.er1 >conftest.err
43765   rm -f conftest.er1
43766   cat conftest.err >&5
43767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43768   (exit $ac_status); } &&
43769          { ac_try='test -z "$ac_c_werror_flag"
43770                          || test ! -s conftest.err'
43771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43772   (eval $ac_try) 2>&5
43773   ac_status=$?
43774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43775   (exit $ac_status); }; } &&
43776          { ac_try='test -s conftest$ac_exeext'
43777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43778   (eval $ac_try) 2>&5
43779   ac_status=$?
43780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43781   (exit $ac_status); }; }; then
43782   ac_cv_func_dbm_open=yes
43783 else
43784   echo "$as_me: failed program was:" >&5
43785 sed 's/^/| /' conftest.$ac_ext >&5
43786
43787 ac_cv_func_dbm_open=no
43788 fi
43789 rm -f conftest.err conftest.$ac_objext \
43790       conftest$ac_exeext conftest.$ac_ext
43791 fi
43792 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
43793 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
43794 if test $ac_cv_func_dbm_open = yes; then
43795   ol_cv_lib_ndbm=yes
43796 else
43797
43798                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
43799 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
43800 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
43801   echo $ECHO_N "(cached) $ECHO_C" >&6
43802 else
43803   ac_check_lib_save_LIBS=$LIBS
43804 LIBS="-lndbm  $LIBS"
43805 cat >conftest.$ac_ext <<_ACEOF
43806 /* confdefs.h.  */
43807 _ACEOF
43808 cat confdefs.h >>conftest.$ac_ext
43809 cat >>conftest.$ac_ext <<_ACEOF
43810 /* end confdefs.h.  */
43811
43812 /* Override any gcc2 internal prototype to avoid an error.  */
43813 #ifdef __cplusplus
43814 extern "C"
43815 #endif
43816 /* We use char because int might match the return type of a gcc2
43817    builtin and then its argument prototype would still apply.  */
43818 char dbm_open ();
43819 int
43820 main ()
43821 {
43822 dbm_open ();
43823   ;
43824   return 0;
43825 }
43826 _ACEOF
43827 rm -f conftest.$ac_objext conftest$ac_exeext
43828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43829   (eval $ac_link) 2>conftest.er1
43830   ac_status=$?
43831   grep -v '^ *+' conftest.er1 >conftest.err
43832   rm -f conftest.er1
43833   cat conftest.err >&5
43834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43835   (exit $ac_status); } &&
43836          { ac_try='test -z "$ac_c_werror_flag"
43837                          || test ! -s conftest.err'
43838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43839   (eval $ac_try) 2>&5
43840   ac_status=$?
43841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43842   (exit $ac_status); }; } &&
43843          { ac_try='test -s conftest$ac_exeext'
43844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43845   (eval $ac_try) 2>&5
43846   ac_status=$?
43847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43848   (exit $ac_status); }; }; then
43849   ac_cv_lib_ndbm_dbm_open=yes
43850 else
43851   echo "$as_me: failed program was:" >&5
43852 sed 's/^/| /' conftest.$ac_ext >&5
43853
43854 ac_cv_lib_ndbm_dbm_open=no
43855 fi
43856 rm -f conftest.err conftest.$ac_objext \
43857       conftest$ac_exeext conftest.$ac_ext
43858 LIBS=$ac_check_lib_save_LIBS
43859 fi
43860 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
43861 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
43862 if test $ac_cv_lib_ndbm_dbm_open = yes; then
43863   ol_cv_lib_ndbm=-lndbm
43864 else
43865
43866                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
43867 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
43868 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
43869   echo $ECHO_N "(cached) $ECHO_C" >&6
43870 else
43871   ac_check_lib_save_LIBS=$LIBS
43872 LIBS="-ldbm  $LIBS"
43873 cat >conftest.$ac_ext <<_ACEOF
43874 /* confdefs.h.  */
43875 _ACEOF
43876 cat confdefs.h >>conftest.$ac_ext
43877 cat >>conftest.$ac_ext <<_ACEOF
43878 /* end confdefs.h.  */
43879
43880 /* Override any gcc2 internal prototype to avoid an error.  */
43881 #ifdef __cplusplus
43882 extern "C"
43883 #endif
43884 /* We use char because int might match the return type of a gcc2
43885    builtin and then its argument prototype would still apply.  */
43886 char dbm_open ();
43887 int
43888 main ()
43889 {
43890 dbm_open ();
43891   ;
43892   return 0;
43893 }
43894 _ACEOF
43895 rm -f conftest.$ac_objext conftest$ac_exeext
43896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43897   (eval $ac_link) 2>conftest.er1
43898   ac_status=$?
43899   grep -v '^ *+' conftest.er1 >conftest.err
43900   rm -f conftest.er1
43901   cat conftest.err >&5
43902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43903   (exit $ac_status); } &&
43904          { ac_try='test -z "$ac_c_werror_flag"
43905                          || test ! -s conftest.err'
43906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43907   (eval $ac_try) 2>&5
43908   ac_status=$?
43909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43910   (exit $ac_status); }; } &&
43911          { ac_try='test -s conftest$ac_exeext'
43912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43913   (eval $ac_try) 2>&5
43914   ac_status=$?
43915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43916   (exit $ac_status); }; }; then
43917   ac_cv_lib_dbm_dbm_open=yes
43918 else
43919   echo "$as_me: failed program was:" >&5
43920 sed 's/^/| /' conftest.$ac_ext >&5
43921
43922 ac_cv_lib_dbm_dbm_open=no
43923 fi
43924 rm -f conftest.err conftest.$ac_objext \
43925       conftest$ac_exeext conftest.$ac_ext
43926 LIBS=$ac_check_lib_save_LIBS
43927 fi
43928 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
43929 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
43930 if test $ac_cv_lib_dbm_dbm_open = yes; then
43931   ol_cv_lib_ndbm=-ldbm
43932 else
43933   ol_cv_lib_ndbm=no
43934 fi
43935
43936 fi
43937
43938
43939 fi
43940
43941         LIBS="$ol_LIBS"
43942
43943 fi
43944 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
43945 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
43946
43947
43948
43949 for ac_header in ndbm.h
43950 do
43951 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43953   echo "$as_me:$LINENO: checking for $ac_header" >&5
43954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43956   echo $ECHO_N "(cached) $ECHO_C" >&6
43957 fi
43958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43960 else
43961   # Is the header compilable?
43962 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43964 cat >conftest.$ac_ext <<_ACEOF
43965 /* confdefs.h.  */
43966 _ACEOF
43967 cat confdefs.h >>conftest.$ac_ext
43968 cat >>conftest.$ac_ext <<_ACEOF
43969 /* end confdefs.h.  */
43970 $ac_includes_default
43971 #include <$ac_header>
43972 _ACEOF
43973 rm -f conftest.$ac_objext
43974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43975   (eval $ac_compile) 2>conftest.er1
43976   ac_status=$?
43977   grep -v '^ *+' conftest.er1 >conftest.err
43978   rm -f conftest.er1
43979   cat conftest.err >&5
43980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43981   (exit $ac_status); } &&
43982          { ac_try='test -z "$ac_c_werror_flag"
43983                          || test ! -s conftest.err'
43984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43985   (eval $ac_try) 2>&5
43986   ac_status=$?
43987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43988   (exit $ac_status); }; } &&
43989          { ac_try='test -s conftest.$ac_objext'
43990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43991   (eval $ac_try) 2>&5
43992   ac_status=$?
43993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43994   (exit $ac_status); }; }; then
43995   ac_header_compiler=yes
43996 else
43997   echo "$as_me: failed program was:" >&5
43998 sed 's/^/| /' conftest.$ac_ext >&5
43999
44000 ac_header_compiler=no
44001 fi
44002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44004 echo "${ECHO_T}$ac_header_compiler" >&6
44005
44006 # Is the header present?
44007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44009 cat >conftest.$ac_ext <<_ACEOF
44010 /* confdefs.h.  */
44011 _ACEOF
44012 cat confdefs.h >>conftest.$ac_ext
44013 cat >>conftest.$ac_ext <<_ACEOF
44014 /* end confdefs.h.  */
44015 #include <$ac_header>
44016 _ACEOF
44017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44018   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44019   ac_status=$?
44020   grep -v '^ *+' conftest.er1 >conftest.err
44021   rm -f conftest.er1
44022   cat conftest.err >&5
44023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44024   (exit $ac_status); } >/dev/null; then
44025   if test -s conftest.err; then
44026     ac_cpp_err=$ac_c_preproc_warn_flag
44027     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44028   else
44029     ac_cpp_err=
44030   fi
44031 else
44032   ac_cpp_err=yes
44033 fi
44034 if test -z "$ac_cpp_err"; then
44035   ac_header_preproc=yes
44036 else
44037   echo "$as_me: failed program was:" >&5
44038 sed 's/^/| /' conftest.$ac_ext >&5
44039
44040   ac_header_preproc=no
44041 fi
44042 rm -f conftest.err conftest.$ac_ext
44043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44044 echo "${ECHO_T}$ac_header_preproc" >&6
44045
44046 # So?  What about this header?
44047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44048   yes:no: )
44049     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44053     ac_header_preproc=yes
44054     ;;
44055   no:yes:* )
44056     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44058     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44059 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44060     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44062     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44063 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44064     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44066     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44068     (
44069       cat <<\_ASBOX
44070 ## ------------------------------------------ ##
44071 ## Report this to the AC_PACKAGE_NAME lists.  ##
44072 ## ------------------------------------------ ##
44073 _ASBOX
44074     ) |
44075       sed "s/^/$as_me: WARNING:     /" >&2
44076     ;;
44077 esac
44078 echo "$as_me:$LINENO: checking for $ac_header" >&5
44079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44081   echo $ECHO_N "(cached) $ECHO_C" >&6
44082 else
44083   eval "$as_ac_Header=\$ac_header_preproc"
44084 fi
44085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44087
44088 fi
44089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44090   cat >>confdefs.h <<_ACEOF
44091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44092 _ACEOF
44093
44094 fi
44095
44096 done
44097
44098  echo "$as_me:$LINENO: checking for db" >&5
44099 echo $ECHO_N "checking for db... $ECHO_C" >&6
44100 if test "${ol_cv_ndbm+set}" = set; then
44101   echo $ECHO_N "(cached) $ECHO_C" >&6
44102 else
44103
44104         if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44105                 ol_cv_ndbm=no
44106         else
44107                 ol_cv_ndbm=yes
44108         fi
44109
44110 fi
44111 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44112 echo "${ECHO_T}$ol_cv_ndbm" >&6
44113  if test $ol_cv_ndbm = yes ; then
44114
44115 cat >>confdefs.h <<\_ACEOF
44116 #define HAVE_NDBM 1
44117 _ACEOF
44118
44119  fi
44120
44121
44122         if test $ol_cv_ndbm = yes ; then
44123                 ol_link_ldbm=ndbm
44124                 ol_with_ldbm_api=ndbm
44125
44126                 if test $ol_cv_lib_ndbm != yes ; then
44127                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44128                 fi
44129         fi
44130 fi
44131
44132 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44133         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44134 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44135    { (exit 1); exit 1; }; }
44136 fi
44137
44138 if test $ol_enable_bdb = yes -o \
44139         $ol_enable_hdb = yes -o \
44140         $ol_enable_ldbm = yes ; then
44141         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44142 fi
44143
44144
44145 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44146         BUILD_LIBS_DYNAMIC=shared
44147
44148 cat >>confdefs.h <<\_ACEOF
44149 #define LDAP_LIBS_DYNAMIC 1
44150 _ACEOF
44151
44152         LTSTATIC=""
44153 else
44154         BUILD_LIBS_DYNAMIC=static
44155         LTSTATIC="-static"
44156 fi
44157
44158 if test $ol_enable_wrappers != no ; then
44159
44160 for ac_header in tcpd.h
44161 do
44162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44164   echo "$as_me:$LINENO: checking for $ac_header" >&5
44165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44167   echo $ECHO_N "(cached) $ECHO_C" >&6
44168 fi
44169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44171 else
44172   # Is the header compilable?
44173 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44175 cat >conftest.$ac_ext <<_ACEOF
44176 /* confdefs.h.  */
44177 _ACEOF
44178 cat confdefs.h >>conftest.$ac_ext
44179 cat >>conftest.$ac_ext <<_ACEOF
44180 /* end confdefs.h.  */
44181 $ac_includes_default
44182 #include <$ac_header>
44183 _ACEOF
44184 rm -f conftest.$ac_objext
44185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44186   (eval $ac_compile) 2>conftest.er1
44187   ac_status=$?
44188   grep -v '^ *+' conftest.er1 >conftest.err
44189   rm -f conftest.er1
44190   cat conftest.err >&5
44191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44192   (exit $ac_status); } &&
44193          { ac_try='test -z "$ac_c_werror_flag"
44194                          || test ! -s conftest.err'
44195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44196   (eval $ac_try) 2>&5
44197   ac_status=$?
44198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44199   (exit $ac_status); }; } &&
44200          { ac_try='test -s conftest.$ac_objext'
44201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44202   (eval $ac_try) 2>&5
44203   ac_status=$?
44204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44205   (exit $ac_status); }; }; then
44206   ac_header_compiler=yes
44207 else
44208   echo "$as_me: failed program was:" >&5
44209 sed 's/^/| /' conftest.$ac_ext >&5
44210
44211 ac_header_compiler=no
44212 fi
44213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44215 echo "${ECHO_T}$ac_header_compiler" >&6
44216
44217 # Is the header present?
44218 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44220 cat >conftest.$ac_ext <<_ACEOF
44221 /* confdefs.h.  */
44222 _ACEOF
44223 cat confdefs.h >>conftest.$ac_ext
44224 cat >>conftest.$ac_ext <<_ACEOF
44225 /* end confdefs.h.  */
44226 #include <$ac_header>
44227 _ACEOF
44228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44229   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44230   ac_status=$?
44231   grep -v '^ *+' conftest.er1 >conftest.err
44232   rm -f conftest.er1
44233   cat conftest.err >&5
44234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44235   (exit $ac_status); } >/dev/null; then
44236   if test -s conftest.err; then
44237     ac_cpp_err=$ac_c_preproc_warn_flag
44238     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44239   else
44240     ac_cpp_err=
44241   fi
44242 else
44243   ac_cpp_err=yes
44244 fi
44245 if test -z "$ac_cpp_err"; then
44246   ac_header_preproc=yes
44247 else
44248   echo "$as_me: failed program was:" >&5
44249 sed 's/^/| /' conftest.$ac_ext >&5
44250
44251   ac_header_preproc=no
44252 fi
44253 rm -f conftest.err conftest.$ac_ext
44254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44255 echo "${ECHO_T}$ac_header_preproc" >&6
44256
44257 # So?  What about this header?
44258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44259   yes:no: )
44260     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44262     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44264     ac_header_preproc=yes
44265     ;;
44266   no:yes:* )
44267     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44269     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44270 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44271     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44272 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44273     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44274 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44277     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44278 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44279     (
44280       cat <<\_ASBOX
44281 ## ------------------------------------------ ##
44282 ## Report this to the AC_PACKAGE_NAME lists.  ##
44283 ## ------------------------------------------ ##
44284 _ASBOX
44285     ) |
44286       sed "s/^/$as_me: WARNING:     /" >&2
44287     ;;
44288 esac
44289 echo "$as_me:$LINENO: checking for $ac_header" >&5
44290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44292   echo $ECHO_N "(cached) $ECHO_C" >&6
44293 else
44294   eval "$as_ac_Header=\$ac_header_preproc"
44295 fi
44296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44298
44299 fi
44300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44301   cat >>confdefs.h <<_ACEOF
44302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44303 _ACEOF
44304
44305                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44306 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44307                 save_LIBS="$LIBS"
44308                 LIBS="$LIBS -lwrap"
44309                 cat >conftest.$ac_ext <<_ACEOF
44310 /* confdefs.h.  */
44311 _ACEOF
44312 cat confdefs.h >>conftest.$ac_ext
44313 cat >>conftest.$ac_ext <<_ACEOF
44314 /* end confdefs.h.  */
44315
44316 #include <tcpd.h>
44317 int allow_severity = 0;
44318 int deny_severity  = 0;
44319
44320 struct request_info *req;
44321
44322 int
44323 main ()
44324 {
44325
44326 hosts_access(req)
44327
44328   ;
44329   return 0;
44330 }
44331 _ACEOF
44332 rm -f conftest.$ac_objext conftest$ac_exeext
44333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44334   (eval $ac_link) 2>conftest.er1
44335   ac_status=$?
44336   grep -v '^ *+' conftest.er1 >conftest.err
44337   rm -f conftest.er1
44338   cat conftest.err >&5
44339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44340   (exit $ac_status); } &&
44341          { ac_try='test -z "$ac_c_werror_flag"
44342                          || test ! -s conftest.err'
44343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44344   (eval $ac_try) 2>&5
44345   ac_status=$?
44346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44347   (exit $ac_status); }; } &&
44348          { ac_try='test -s conftest$ac_exeext'
44349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44350   (eval $ac_try) 2>&5
44351   ac_status=$?
44352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44353   (exit $ac_status); }; }; then
44354   echo "$as_me:$LINENO: result: -lwrap" >&5
44355 echo "${ECHO_T}-lwrap" >&6
44356                 have_wrappers=yes
44357                 LIBS="$save_LIBS"
44358 else
44359   echo "$as_me: failed program was:" >&5
44360 sed 's/^/| /' conftest.$ac_ext >&5
44361
44362
44363                                 LIBS="$LIBS -lnsl"
44364                 _au_changequote(,)cat >conftest.$ac_ext <<_ACEOF
44365 /* confdefs.h.  */
44366 _ACEOF
44367 cat confdefs.h >>conftest.$ac_ext
44368 cat >>conftest.$ac_ext <<_ACEOF
44369 /* end confdefs.h.  */
44370
44371 #include <tcpd.h>
44372 int allow_severity = 0;
44373 int deny_severity  = 0;
44374
44375 struct request_info *req;
44376
44377 int
44378 main ()
44379 {
44380
44381 hosts_access(req)
44382
44383   ;
44384   return 0;
44385 }
44386 _ACEOF
44387 rm -f conftest.$ac_objext conftest$ac_exeext
44388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44389   (eval $ac_link) 2>conftest.er1
44390   ac_status=$?
44391   grep -v '^ *+' conftest.er1 >conftest.err
44392   rm -f conftest.er1
44393   cat conftest.err >&5
44394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44395   (exit $ac_status); } &&
44396          { ac_try='test -z "$ac_c_werror_flag"
44397                          || test ! -s conftest.err'
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); }; } &&
44403          { ac_try='test -s conftest$ac_exeext'
44404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44405   (eval $ac_try) 2>&5
44406   ac_status=$?
44407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44408   (exit $ac_status); }; }; then
44409   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44410 echo "${ECHO_T}-lwrap -lnsl" >&6
44411                 have_wrappers=yes
44412                 LIBS="$save_LIBS -lnsl"
44413 else
44414   echo "$as_me: failed program was:" >&5
44415 sed 's/^/| /' conftest.$ac_ext >&5
44416
44417
44418                 echo "$as_me:$LINENO: result: no" >&5
44419 echo "${ECHO_T}no" >&6
44420                 have_wrappers=no
44421                 LIBS=$save_LIBS
44422 fi
44423 rm -f conftest.err conftest.$ac_objext \
44424       conftest$ac_exeext conftest.$ac_ext
44425 fi
44426 rm -f conftest.err conftest.$ac_objext \
44427       conftest$ac_exeext conftest.$ac_ext
44428 else
44429   have_wrappers=no
44430 fi
44431
44432 done
44433
44434
44435         if test $have_wrappers = yes ; then
44436
44437 cat >>confdefs.h <<\_ACEOF
44438 #define HAVE_TCPD 1
44439 _ACEOF
44440
44441                 WRAP_LIBS="-lwrap"
44442         elif test $ol_enable_wrappers = yes ; then
44443                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44444 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44445    { (exit 1); exit 1; }; }
44446         else
44447                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44448 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44449                 WRAP_LIBS=""
44450         fi
44451 fi
44452
44453 if test $ol_enable_syslog != no ; then
44454         echo "$as_me:$LINENO: checking for openlog" >&5
44455 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44456 if test "${ac_cv_func_openlog+set}" = set; then
44457   echo $ECHO_N "(cached) $ECHO_C" >&6
44458 else
44459   cat >conftest.$ac_ext <<_ACEOF
44460 /* confdefs.h.  */
44461 _ACEOF
44462 cat confdefs.h >>conftest.$ac_ext
44463 cat >>conftest.$ac_ext <<_ACEOF
44464 /* end confdefs.h.  */
44465 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44466    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44467 #define openlog innocuous_openlog
44468
44469 /* System header to define __stub macros and hopefully few prototypes,
44470     which can conflict with char openlog (); below.
44471     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44472     <limits.h> exists even on freestanding compilers.  */
44473
44474 #ifdef __STDC__
44475 # include <limits.h>
44476 #else
44477 # include <assert.h>
44478 #endif
44479
44480 #undef openlog
44481
44482 /* Override any gcc2 internal prototype to avoid an error.  */
44483 #ifdef __cplusplus
44484 extern "C"
44485 {
44486 #endif
44487 /* We use char because int might match the return type of a gcc2
44488    builtin and then its argument prototype would still apply.  */
44489 char openlog ();
44490 /* The GNU C library defines this for functions which it implements
44491     to always fail with ENOSYS.  Some functions are actually named
44492     something starting with __ and the normal name is an alias.  */
44493 #if defined (__stub_openlog) || defined (__stub___openlog)
44494 choke me
44495 #else
44496 char (*f) () = openlog;
44497 #endif
44498 #ifdef __cplusplus
44499 }
44500 #endif
44501
44502 int
44503 main ()
44504 {
44505 return f != openlog;
44506   ;
44507   return 0;
44508 }
44509 _ACEOF
44510 rm -f conftest.$ac_objext conftest$ac_exeext
44511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44512   (eval $ac_link) 2>conftest.er1
44513   ac_status=$?
44514   grep -v '^ *+' conftest.er1 >conftest.err
44515   rm -f conftest.er1
44516   cat conftest.err >&5
44517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44518   (exit $ac_status); } &&
44519          { ac_try='test -z "$ac_c_werror_flag"
44520                          || test ! -s conftest.err'
44521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44522   (eval $ac_try) 2>&5
44523   ac_status=$?
44524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44525   (exit $ac_status); }; } &&
44526          { ac_try='test -s conftest$ac_exeext'
44527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44528   (eval $ac_try) 2>&5
44529   ac_status=$?
44530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44531   (exit $ac_status); }; }; then
44532   ac_cv_func_openlog=yes
44533 else
44534   echo "$as_me: failed program was:" >&5
44535 sed 's/^/| /' conftest.$ac_ext >&5
44536
44537 ac_cv_func_openlog=no
44538 fi
44539 rm -f conftest.err conftest.$ac_objext \
44540       conftest$ac_exeext conftest.$ac_ext
44541 fi
44542 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
44543 echo "${ECHO_T}$ac_cv_func_openlog" >&6
44544
44545         if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
44546                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
44547 echo "$as_me: error: could not find syslog" >&2;}
44548    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
44549         fi
44550         ol_enable_syslog=$ac_cv_func_openlog
44551 fi
44552
44553
44554 ol_link_sql=no
44555 if test $ol_enable_sql != no ; then
44556
44557
44558 for ac_header in sql.h sqlext.h
44559 do
44560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44562   echo "$as_me:$LINENO: checking for $ac_header" >&5
44563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44565   echo $ECHO_N "(cached) $ECHO_C" >&6
44566 fi
44567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44569 else
44570   # Is the header compilable?
44571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44573 cat >conftest.$ac_ext <<_ACEOF
44574 /* confdefs.h.  */
44575 _ACEOF
44576 cat confdefs.h >>conftest.$ac_ext
44577 cat >>conftest.$ac_ext <<_ACEOF
44578 /* end confdefs.h.  */
44579 $ac_includes_default
44580 #include <$ac_header>
44581 _ACEOF
44582 rm -f conftest.$ac_objext
44583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44584   (eval $ac_compile) 2>conftest.er1
44585   ac_status=$?
44586   grep -v '^ *+' conftest.er1 >conftest.err
44587   rm -f conftest.er1
44588   cat conftest.err >&5
44589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44590   (exit $ac_status); } &&
44591          { ac_try='test -z "$ac_c_werror_flag"
44592                          || test ! -s conftest.err'
44593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44594   (eval $ac_try) 2>&5
44595   ac_status=$?
44596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44597   (exit $ac_status); }; } &&
44598          { ac_try='test -s conftest.$ac_objext'
44599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44600   (eval $ac_try) 2>&5
44601   ac_status=$?
44602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44603   (exit $ac_status); }; }; then
44604   ac_header_compiler=yes
44605 else
44606   echo "$as_me: failed program was:" >&5
44607 sed 's/^/| /' conftest.$ac_ext >&5
44608
44609 ac_header_compiler=no
44610 fi
44611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44613 echo "${ECHO_T}$ac_header_compiler" >&6
44614
44615 # Is the header present?
44616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44618 cat >conftest.$ac_ext <<_ACEOF
44619 /* confdefs.h.  */
44620 _ACEOF
44621 cat confdefs.h >>conftest.$ac_ext
44622 cat >>conftest.$ac_ext <<_ACEOF
44623 /* end confdefs.h.  */
44624 #include <$ac_header>
44625 _ACEOF
44626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44627   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44628   ac_status=$?
44629   grep -v '^ *+' conftest.er1 >conftest.err
44630   rm -f conftest.er1
44631   cat conftest.err >&5
44632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44633   (exit $ac_status); } >/dev/null; then
44634   if test -s conftest.err; then
44635     ac_cpp_err=$ac_c_preproc_warn_flag
44636     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44637   else
44638     ac_cpp_err=
44639   fi
44640 else
44641   ac_cpp_err=yes
44642 fi
44643 if test -z "$ac_cpp_err"; then
44644   ac_header_preproc=yes
44645 else
44646   echo "$as_me: failed program was:" >&5
44647 sed 's/^/| /' conftest.$ac_ext >&5
44648
44649   ac_header_preproc=no
44650 fi
44651 rm -f conftest.err conftest.$ac_ext
44652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44653 echo "${ECHO_T}$ac_header_preproc" >&6
44654
44655 # So?  What about this header?
44656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44657   yes:no: )
44658     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44662     ac_header_preproc=yes
44663     ;;
44664   no:yes:* )
44665     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44667     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44668 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44669     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44671     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44672 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44675     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44677     (
44678       cat <<\_ASBOX
44679 ## ------------------------------------------ ##
44680 ## Report this to the AC_PACKAGE_NAME lists.  ##
44681 ## ------------------------------------------ ##
44682 _ASBOX
44683     ) |
44684       sed "s/^/$as_me: WARNING:     /" >&2
44685     ;;
44686 esac
44687 echo "$as_me:$LINENO: checking for $ac_header" >&5
44688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44690   echo $ECHO_N "(cached) $ECHO_C" >&6
44691 else
44692   eval "$as_ac_Header=\$ac_header_preproc"
44693 fi
44694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44696
44697 fi
44698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44699   cat >>confdefs.h <<_ACEOF
44700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44701 _ACEOF
44702
44703 else
44704
44705                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
44706 echo "$as_me: error: could not locate SQL headers" >&2;}
44707    { (exit 1); exit 1; }; }
44708
44709 fi
44710
44711 done
44712
44713
44714         sql_LIBS="$LIBS"
44715         LIBS="$LTHREAD_LIBS"
44716
44717         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
44718 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
44719 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
44720   echo $ECHO_N "(cached) $ECHO_C" >&6
44721 else
44722   ac_check_lib_save_LIBS=$LIBS
44723 LIBS="-liodbc  $LIBS"
44724 cat >conftest.$ac_ext <<_ACEOF
44725 /* confdefs.h.  */
44726 _ACEOF
44727 cat confdefs.h >>conftest.$ac_ext
44728 cat >>conftest.$ac_ext <<_ACEOF
44729 /* end confdefs.h.  */
44730
44731 /* Override any gcc2 internal prototype to avoid an error.  */
44732 #ifdef __cplusplus
44733 extern "C"
44734 #endif
44735 /* We use char because int might match the return type of a gcc2
44736    builtin and then its argument prototype would still apply.  */
44737 char SQLDriverConnect ();
44738 int
44739 main ()
44740 {
44741 SQLDriverConnect ();
44742   ;
44743   return 0;
44744 }
44745 _ACEOF
44746 rm -f conftest.$ac_objext conftest$ac_exeext
44747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44748   (eval $ac_link) 2>conftest.er1
44749   ac_status=$?
44750   grep -v '^ *+' conftest.er1 >conftest.err
44751   rm -f conftest.er1
44752   cat conftest.err >&5
44753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44754   (exit $ac_status); } &&
44755          { ac_try='test -z "$ac_c_werror_flag"
44756                          || test ! -s conftest.err'
44757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44758   (eval $ac_try) 2>&5
44759   ac_status=$?
44760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44761   (exit $ac_status); }; } &&
44762          { ac_try='test -s conftest$ac_exeext'
44763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44764   (eval $ac_try) 2>&5
44765   ac_status=$?
44766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44767   (exit $ac_status); }; }; then
44768   ac_cv_lib_iodbc_SQLDriverConnect=yes
44769 else
44770   echo "$as_me: failed program was:" >&5
44771 sed 's/^/| /' conftest.$ac_ext >&5
44772
44773 ac_cv_lib_iodbc_SQLDriverConnect=no
44774 fi
44775 rm -f conftest.err conftest.$ac_objext \
44776       conftest$ac_exeext conftest.$ac_ext
44777 LIBS=$ac_check_lib_save_LIBS
44778 fi
44779 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
44780 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
44781 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
44782   have_iodbc=yes
44783 else
44784   have_iodbc=no
44785 fi
44786
44787         if test $have_iodbc = yes ; then
44788                 ol_link_sql="-liodbc"
44789         else
44790                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
44791 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
44792 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
44793   echo $ECHO_N "(cached) $ECHO_C" >&6
44794 else
44795   ac_check_lib_save_LIBS=$LIBS
44796 LIBS="-lodbc  $LIBS"
44797 cat >conftest.$ac_ext <<_ACEOF
44798 /* confdefs.h.  */
44799 _ACEOF
44800 cat confdefs.h >>conftest.$ac_ext
44801 cat >>conftest.$ac_ext <<_ACEOF
44802 /* end confdefs.h.  */
44803
44804 /* Override any gcc2 internal prototype to avoid an error.  */
44805 #ifdef __cplusplus
44806 extern "C"
44807 #endif
44808 /* We use char because int might match the return type of a gcc2
44809    builtin and then its argument prototype would still apply.  */
44810 char SQLDriverConnect ();
44811 int
44812 main ()
44813 {
44814 SQLDriverConnect ();
44815   ;
44816   return 0;
44817 }
44818 _ACEOF
44819 rm -f conftest.$ac_objext conftest$ac_exeext
44820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44821   (eval $ac_link) 2>conftest.er1
44822   ac_status=$?
44823   grep -v '^ *+' conftest.er1 >conftest.err
44824   rm -f conftest.er1
44825   cat conftest.err >&5
44826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44827   (exit $ac_status); } &&
44828          { ac_try='test -z "$ac_c_werror_flag"
44829                          || test ! -s conftest.err'
44830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44831   (eval $ac_try) 2>&5
44832   ac_status=$?
44833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44834   (exit $ac_status); }; } &&
44835          { ac_try='test -s conftest$ac_exeext'
44836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44837   (eval $ac_try) 2>&5
44838   ac_status=$?
44839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44840   (exit $ac_status); }; }; then
44841   ac_cv_lib_odbc_SQLDriverConnect=yes
44842 else
44843   echo "$as_me: failed program was:" >&5
44844 sed 's/^/| /' conftest.$ac_ext >&5
44845
44846 ac_cv_lib_odbc_SQLDriverConnect=no
44847 fi
44848 rm -f conftest.err conftest.$ac_objext \
44849       conftest$ac_exeext conftest.$ac_ext
44850 LIBS=$ac_check_lib_save_LIBS
44851 fi
44852 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
44853 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
44854 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
44855   have_odbc=yes
44856 else
44857   have_odbc=no
44858 fi
44859
44860                 if test $have_odbc = yes ; then
44861                         ol_link_sql="-lodbc"
44862                 fi
44863         fi
44864
44865         LIBS="$sql_LIBS"
44866
44867         if test $ol_link_sql != no ; then
44868                 SLAPD_SQL_LIBS="$ol_link_sql"
44869
44870         elif test $ol_enable_sql != auto ; then
44871                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
44872 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
44873    { (exit 1); exit 1; }; }
44874         fi
44875 fi
44876
44877 WITH_SASL=no
44878 ol_link_sasl=no
44879 ol_link_spasswd=no
44880 if test $ol_with_cyrus_sasl != no ; then
44881
44882
44883 for ac_header in sasl/sasl.h sasl.h
44884 do
44885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44887   echo "$as_me:$LINENO: checking for $ac_header" >&5
44888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44890   echo $ECHO_N "(cached) $ECHO_C" >&6
44891 fi
44892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44894 else
44895   # Is the header compilable?
44896 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44898 cat >conftest.$ac_ext <<_ACEOF
44899 /* confdefs.h.  */
44900 _ACEOF
44901 cat confdefs.h >>conftest.$ac_ext
44902 cat >>conftest.$ac_ext <<_ACEOF
44903 /* end confdefs.h.  */
44904 $ac_includes_default
44905 #include <$ac_header>
44906 _ACEOF
44907 rm -f conftest.$ac_objext
44908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44909   (eval $ac_compile) 2>conftest.er1
44910   ac_status=$?
44911   grep -v '^ *+' conftest.er1 >conftest.err
44912   rm -f conftest.er1
44913   cat conftest.err >&5
44914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44915   (exit $ac_status); } &&
44916          { ac_try='test -z "$ac_c_werror_flag"
44917                          || test ! -s conftest.err'
44918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44919   (eval $ac_try) 2>&5
44920   ac_status=$?
44921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44922   (exit $ac_status); }; } &&
44923          { ac_try='test -s conftest.$ac_objext'
44924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44925   (eval $ac_try) 2>&5
44926   ac_status=$?
44927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44928   (exit $ac_status); }; }; then
44929   ac_header_compiler=yes
44930 else
44931   echo "$as_me: failed program was:" >&5
44932 sed 's/^/| /' conftest.$ac_ext >&5
44933
44934 ac_header_compiler=no
44935 fi
44936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44938 echo "${ECHO_T}$ac_header_compiler" >&6
44939
44940 # Is the header present?
44941 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44943 cat >conftest.$ac_ext <<_ACEOF
44944 /* confdefs.h.  */
44945 _ACEOF
44946 cat confdefs.h >>conftest.$ac_ext
44947 cat >>conftest.$ac_ext <<_ACEOF
44948 /* end confdefs.h.  */
44949 #include <$ac_header>
44950 _ACEOF
44951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44952   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44953   ac_status=$?
44954   grep -v '^ *+' conftest.er1 >conftest.err
44955   rm -f conftest.er1
44956   cat conftest.err >&5
44957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44958   (exit $ac_status); } >/dev/null; then
44959   if test -s conftest.err; then
44960     ac_cpp_err=$ac_c_preproc_warn_flag
44961     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44962   else
44963     ac_cpp_err=
44964   fi
44965 else
44966   ac_cpp_err=yes
44967 fi
44968 if test -z "$ac_cpp_err"; then
44969   ac_header_preproc=yes
44970 else
44971   echo "$as_me: failed program was:" >&5
44972 sed 's/^/| /' conftest.$ac_ext >&5
44973
44974   ac_header_preproc=no
44975 fi
44976 rm -f conftest.err conftest.$ac_ext
44977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44978 echo "${ECHO_T}$ac_header_preproc" >&6
44979
44980 # So?  What about this header?
44981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44982   yes:no: )
44983     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44987     ac_header_preproc=yes
44988     ;;
44989   no:yes:* )
44990     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44992     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44993 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44994     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44996     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44997 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45000     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45002     (
45003       cat <<\_ASBOX
45004 ## ------------------------------------------ ##
45005 ## Report this to the AC_PACKAGE_NAME lists.  ##
45006 ## ------------------------------------------ ##
45007 _ASBOX
45008     ) |
45009       sed "s/^/$as_me: WARNING:     /" >&2
45010     ;;
45011 esac
45012 echo "$as_me:$LINENO: checking for $ac_header" >&5
45013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45015   echo $ECHO_N "(cached) $ECHO_C" >&6
45016 else
45017   eval "$as_ac_Header=\$ac_header_preproc"
45018 fi
45019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45021
45022 fi
45023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45024   cat >>confdefs.h <<_ACEOF
45025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45026 _ACEOF
45027
45028 fi
45029
45030 done
45031
45032
45033         if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45034                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45035 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45036 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45037   echo $ECHO_N "(cached) $ECHO_C" >&6
45038 else
45039   ac_check_lib_save_LIBS=$LIBS
45040 LIBS="-lsasl2  $LIBS"
45041 cat >conftest.$ac_ext <<_ACEOF
45042 /* confdefs.h.  */
45043 _ACEOF
45044 cat confdefs.h >>conftest.$ac_ext
45045 cat >>conftest.$ac_ext <<_ACEOF
45046 /* end confdefs.h.  */
45047
45048 /* Override any gcc2 internal prototype to avoid an error.  */
45049 #ifdef __cplusplus
45050 extern "C"
45051 #endif
45052 /* We use char because int might match the return type of a gcc2
45053    builtin and then its argument prototype would still apply.  */
45054 char sasl_client_init ();
45055 int
45056 main ()
45057 {
45058 sasl_client_init ();
45059   ;
45060   return 0;
45061 }
45062 _ACEOF
45063 rm -f conftest.$ac_objext conftest$ac_exeext
45064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45065   (eval $ac_link) 2>conftest.er1
45066   ac_status=$?
45067   grep -v '^ *+' conftest.er1 >conftest.err
45068   rm -f conftest.er1
45069   cat conftest.err >&5
45070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45071   (exit $ac_status); } &&
45072          { ac_try='test -z "$ac_c_werror_flag"
45073                          || test ! -s conftest.err'
45074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45075   (eval $ac_try) 2>&5
45076   ac_status=$?
45077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45078   (exit $ac_status); }; } &&
45079          { ac_try='test -s conftest$ac_exeext'
45080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45081   (eval $ac_try) 2>&5
45082   ac_status=$?
45083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45084   (exit $ac_status); }; }; then
45085   ac_cv_lib_sasl2_sasl_client_init=yes
45086 else
45087   echo "$as_me: failed program was:" >&5
45088 sed 's/^/| /' conftest.$ac_ext >&5
45089
45090 ac_cv_lib_sasl2_sasl_client_init=no
45091 fi
45092 rm -f conftest.err conftest.$ac_objext \
45093       conftest$ac_exeext conftest.$ac_ext
45094 LIBS=$ac_check_lib_save_LIBS
45095 fi
45096 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45097 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45098 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45099   ol_link_sasl="-lsasl2"
45100 else
45101   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45102 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45103 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45104   echo $ECHO_N "(cached) $ECHO_C" >&6
45105 else
45106   ac_check_lib_save_LIBS=$LIBS
45107 LIBS="-lsasl  $LIBS"
45108 cat >conftest.$ac_ext <<_ACEOF
45109 /* confdefs.h.  */
45110 _ACEOF
45111 cat confdefs.h >>conftest.$ac_ext
45112 cat >>conftest.$ac_ext <<_ACEOF
45113 /* end confdefs.h.  */
45114
45115 /* Override any gcc2 internal prototype to avoid an error.  */
45116 #ifdef __cplusplus
45117 extern "C"
45118 #endif
45119 /* We use char because int might match the return type of a gcc2
45120    builtin and then its argument prototype would still apply.  */
45121 char sasl_client_init ();
45122 int
45123 main ()
45124 {
45125 sasl_client_init ();
45126   ;
45127   return 0;
45128 }
45129 _ACEOF
45130 rm -f conftest.$ac_objext conftest$ac_exeext
45131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45132   (eval $ac_link) 2>conftest.er1
45133   ac_status=$?
45134   grep -v '^ *+' conftest.er1 >conftest.err
45135   rm -f conftest.er1
45136   cat conftest.err >&5
45137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45138   (exit $ac_status); } &&
45139          { ac_try='test -z "$ac_c_werror_flag"
45140                          || test ! -s conftest.err'
45141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45142   (eval $ac_try) 2>&5
45143   ac_status=$?
45144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45145   (exit $ac_status); }; } &&
45146          { ac_try='test -s conftest$ac_exeext'
45147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45148   (eval $ac_try) 2>&5
45149   ac_status=$?
45150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45151   (exit $ac_status); }; }; then
45152   ac_cv_lib_sasl_sasl_client_init=yes
45153 else
45154   echo "$as_me: failed program was:" >&5
45155 sed 's/^/| /' conftest.$ac_ext >&5
45156
45157 ac_cv_lib_sasl_sasl_client_init=no
45158 fi
45159 rm -f conftest.err conftest.$ac_objext \
45160       conftest$ac_exeext conftest.$ac_ext
45161 LIBS=$ac_check_lib_save_LIBS
45162 fi
45163 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45164 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45165 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45166   ol_link_sasl="-lsasl"
45167 fi
45168
45169 fi
45170
45171         fi
45172
45173         if test $ol_link_sasl = no ; then
45174                 if test $ol_with_cyrus_sasl != auto ; then
45175                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45176 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45177    { (exit 1); exit 1; }; }
45178                 else
45179                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45180 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45181                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45182 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45183                         if test $ol_link_tls = no ; then
45184                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45185 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45186                         fi
45187                 fi
45188         else
45189                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45190 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45191 if test "${ol_cv_sasl_compat+set}" = set; then
45192   echo $ECHO_N "(cached) $ECHO_C" >&6
45193 else
45194
45195         cat >conftest.$ac_ext <<_ACEOF
45196 /* confdefs.h.  */
45197 _ACEOF
45198 cat confdefs.h >>conftest.$ac_ext
45199 cat >>conftest.$ac_ext <<_ACEOF
45200 /* end confdefs.h.  */
45201
45202 #ifdef HAVE_SASL_SASL_H
45203 #include <sasl/sasl.h>
45204 #else
45205 #include <sasl.h>
45206 #endif
45207
45208 /* Require 2.1.15+ */
45209 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
45210         char *__sasl_compat = "2.2+ or better okay (we guess)";
45211 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
45212         && SASL_VERSION_STEP >=15
45213         char *__sasl_compat = "2.1.15+ or better okay";
45214 #endif
45215
45216 _ACEOF
45217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45218   $EGREP "__sasl_compat" >/dev/null 2>&1; then
45219   ol_cv_sasl_compat=yes
45220 else
45221   ol_cv_sasl_compat=no
45222 fi
45223 rm -f conftest*
45224
45225 fi
45226 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45227 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45228
45229                 if test $ol_cv_sasl_compat = no ; then
45230                         ol_link_sasl=no
45231                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45232 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45233    { (exit 1); exit 1; }; }
45234                 fi
45235
45236
45237 cat >>confdefs.h <<\_ACEOF
45238 #define HAVE_CYRUS_SASL 1
45239 _ACEOF
45240
45241                 SASL_LIBS="$ol_link_sasl"
45242                 if test $ol_enable_spasswd != no ; then
45243                         ol_link_spasswd=yes
45244                 fi
45245
45246                 ac_save_LIBS="$LIBS"
45247                 LIBS="$LIBS $ol_link_sasl"
45248                 echo "$as_me:$LINENO: checking for sasl_version" >&5
45249 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45250 if test "${ac_cv_func_sasl_version+set}" = set; then
45251   echo $ECHO_N "(cached) $ECHO_C" >&6
45252 else
45253   cat >conftest.$ac_ext <<_ACEOF
45254 /* confdefs.h.  */
45255 _ACEOF
45256 cat confdefs.h >>conftest.$ac_ext
45257 cat >>conftest.$ac_ext <<_ACEOF
45258 /* end confdefs.h.  */
45259 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45261 #define sasl_version innocuous_sasl_version
45262
45263 /* System header to define __stub macros and hopefully few prototypes,
45264     which can conflict with char sasl_version (); below.
45265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45266     <limits.h> exists even on freestanding compilers.  */
45267
45268 #ifdef __STDC__
45269 # include <limits.h>
45270 #else
45271 # include <assert.h>
45272 #endif
45273
45274 #undef sasl_version
45275
45276 /* Override any gcc2 internal prototype to avoid an error.  */
45277 #ifdef __cplusplus
45278 extern "C"
45279 {
45280 #endif
45281 /* We use char because int might match the return type of a gcc2
45282    builtin and then its argument prototype would still apply.  */
45283 char sasl_version ();
45284 /* The GNU C library defines this for functions which it implements
45285     to always fail with ENOSYS.  Some functions are actually named
45286     something starting with __ and the normal name is an alias.  */
45287 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45288 choke me
45289 #else
45290 char (*f) () = sasl_version;
45291 #endif
45292 #ifdef __cplusplus
45293 }
45294 #endif
45295
45296 int
45297 main ()
45298 {
45299 return f != sasl_version;
45300   ;
45301   return 0;
45302 }
45303 _ACEOF
45304 rm -f conftest.$ac_objext conftest$ac_exeext
45305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45306   (eval $ac_link) 2>conftest.er1
45307   ac_status=$?
45308   grep -v '^ *+' conftest.er1 >conftest.err
45309   rm -f conftest.er1
45310   cat conftest.err >&5
45311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45312   (exit $ac_status); } &&
45313          { ac_try='test -z "$ac_c_werror_flag"
45314                          || test ! -s conftest.err'
45315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45316   (eval $ac_try) 2>&5
45317   ac_status=$?
45318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45319   (exit $ac_status); }; } &&
45320          { ac_try='test -s conftest$ac_exeext'
45321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45322   (eval $ac_try) 2>&5
45323   ac_status=$?
45324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45325   (exit $ac_status); }; }; then
45326   ac_cv_func_sasl_version=yes
45327 else
45328   echo "$as_me: failed program was:" >&5
45329 sed 's/^/| /' conftest.$ac_ext >&5
45330
45331 ac_cv_func_sasl_version=no
45332 fi
45333 rm -f conftest.err conftest.$ac_objext \
45334       conftest$ac_exeext conftest.$ac_ext
45335 fi
45336 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45337 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45338 if test $ac_cv_func_sasl_version = yes; then
45339
45340 cat >>confdefs.h <<\_ACEOF
45341 #define HAVE_SASL_VERSION 1
45342 _ACEOF
45343
45344 fi
45345
45346                 LIBS="$ac_save_LIBS"
45347
45348                 WITH_SASL=yes
45349         fi
45350
45351 else
45352         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45353 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45354         if test $ol_link_tls = no ; then
45355                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45356 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45357         fi
45358 fi
45359
45360 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45361         dev=no
45362         if test -r /dev/urandom ; then
45363                 dev="/dev/urandom";
45364         elif test -r /idev/urandom ; then
45365                 dev="/idev/urandom";
45366         elif test -r /dev/srandom ; then
45367                 dev="/dev/srandom";
45368         elif test -r /dev/random ; then
45369                 dev="/dev/random";
45370         elif test -r /idev/random ; then
45371                 dev="/idev/random";
45372         fi
45373
45374         if test $dev != no ; then
45375
45376 cat >>confdefs.h <<_ACEOF
45377 #define URANDOM_DEVICE "$dev"
45378 _ACEOF
45379
45380         fi
45381 fi
45382
45383 ol_link_fetch=no
45384 if test $ol_with_fetch != no ; then
45385         ol_LIBS=$LIBS
45386 LIBS="-lfetch -lcom_err $LIBS"
45387 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45388 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45389 if test "${ol_cv_lib_fetch+set}" = set; then
45390   echo $ECHO_N "(cached) $ECHO_C" >&6
45391 else
45392
45393         cat >conftest.$ac_ext <<_ACEOF
45394 /* confdefs.h.  */
45395 _ACEOF
45396 cat confdefs.h >>conftest.$ac_ext
45397 cat >>conftest.$ac_ext <<_ACEOF
45398 /* end confdefs.h.  */
45399
45400 #include <sys/param.h>
45401 #include <stdio.h>
45402 #include <fetch.h>
45403 int
45404 main ()
45405 {
45406 struct url *u = fetchParseURL("file:///");
45407   ;
45408   return 0;
45409 }
45410 _ACEOF
45411 rm -f conftest.$ac_objext conftest$ac_exeext
45412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45413   (eval $ac_link) 2>conftest.er1
45414   ac_status=$?
45415   grep -v '^ *+' conftest.er1 >conftest.err
45416   rm -f conftest.er1
45417   cat conftest.err >&5
45418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45419   (exit $ac_status); } &&
45420          { ac_try='test -z "$ac_c_werror_flag"
45421                          || test ! -s conftest.err'
45422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45423   (eval $ac_try) 2>&5
45424   ac_status=$?
45425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45426   (exit $ac_status); }; } &&
45427          { ac_try='test -s conftest$ac_exeext'
45428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45429   (eval $ac_try) 2>&5
45430   ac_status=$?
45431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45432   (exit $ac_status); }; }; then
45433   ol_cv_lib_fetch=yes
45434 else
45435   echo "$as_me: failed program was:" >&5
45436 sed 's/^/| /' conftest.$ac_ext >&5
45437
45438 ol_cv_lib_fetch=no
45439 fi
45440 rm -f conftest.err conftest.$ac_objext \
45441       conftest$ac_exeext conftest.$ac_ext
45442 fi
45443 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45444 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45445 LIBS=$ol_LIBS
45446 if test $ol_cv_lib_fetch != no ; then
45447         ol_link_fetch="-lfetch -lcom_err"
45448
45449 cat >>confdefs.h <<\_ACEOF
45450 #define HAVE_FETCH 1
45451 _ACEOF
45452
45453 fi
45454
45455
45456         if test $ol_cv_lib_fetch != no ; then
45457                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45458                 ol_link_fetch=freebsd
45459
45460         elif test $ol_with_fetch != auto ; then
45461                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45462 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45463    { (exit 1); exit 1; }; }
45464         fi
45465 fi
45466
45467 if test $ol_enable_crypt != no ; then
45468         save_LIBS="$LIBS"
45469         LIBS="$TLS_LIBS $LIBS"
45470
45471         echo "$as_me:$LINENO: checking for crypt" >&5
45472 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45473 if test "${ac_cv_func_crypt+set}" = set; then
45474   echo $ECHO_N "(cached) $ECHO_C" >&6
45475 else
45476   cat >conftest.$ac_ext <<_ACEOF
45477 /* confdefs.h.  */
45478 _ACEOF
45479 cat confdefs.h >>conftest.$ac_ext
45480 cat >>conftest.$ac_ext <<_ACEOF
45481 /* end confdefs.h.  */
45482 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45484 #define crypt innocuous_crypt
45485
45486 /* System header to define __stub macros and hopefully few prototypes,
45487     which can conflict with char crypt (); below.
45488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45489     <limits.h> exists even on freestanding compilers.  */
45490
45491 #ifdef __STDC__
45492 # include <limits.h>
45493 #else
45494 # include <assert.h>
45495 #endif
45496
45497 #undef crypt
45498
45499 /* Override any gcc2 internal prototype to avoid an error.  */
45500 #ifdef __cplusplus
45501 extern "C"
45502 {
45503 #endif
45504 /* We use char because int might match the return type of a gcc2
45505    builtin and then its argument prototype would still apply.  */
45506 char crypt ();
45507 /* The GNU C library defines this for functions which it implements
45508     to always fail with ENOSYS.  Some functions are actually named
45509     something starting with __ and the normal name is an alias.  */
45510 #if defined (__stub_crypt) || defined (__stub___crypt)
45511 choke me
45512 #else
45513 char (*f) () = crypt;
45514 #endif
45515 #ifdef __cplusplus
45516 }
45517 #endif
45518
45519 int
45520 main ()
45521 {
45522 return f != crypt;
45523   ;
45524   return 0;
45525 }
45526 _ACEOF
45527 rm -f conftest.$ac_objext conftest$ac_exeext
45528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45529   (eval $ac_link) 2>conftest.er1
45530   ac_status=$?
45531   grep -v '^ *+' conftest.er1 >conftest.err
45532   rm -f conftest.er1
45533   cat conftest.err >&5
45534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45535   (exit $ac_status); } &&
45536          { ac_try='test -z "$ac_c_werror_flag"
45537                          || test ! -s conftest.err'
45538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45539   (eval $ac_try) 2>&5
45540   ac_status=$?
45541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45542   (exit $ac_status); }; } &&
45543          { ac_try='test -s conftest$ac_exeext'
45544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45545   (eval $ac_try) 2>&5
45546   ac_status=$?
45547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45548   (exit $ac_status); }; }; then
45549   ac_cv_func_crypt=yes
45550 else
45551   echo "$as_me: failed program was:" >&5
45552 sed 's/^/| /' conftest.$ac_ext >&5
45553
45554 ac_cv_func_crypt=no
45555 fi
45556 rm -f conftest.err conftest.$ac_objext \
45557       conftest$ac_exeext conftest.$ac_ext
45558 fi
45559 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
45560 echo "${ECHO_T}$ac_cv_func_crypt" >&6
45561 if test $ac_cv_func_crypt = yes; then
45562   have_crypt=yes
45563 else
45564
45565                 LIBS="$save_LIBS"
45566                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
45567 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
45568 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
45569   echo $ECHO_N "(cached) $ECHO_C" >&6
45570 else
45571   ac_check_lib_save_LIBS=$LIBS
45572 LIBS="-lcrypt  $LIBS"
45573 cat >conftest.$ac_ext <<_ACEOF
45574 /* confdefs.h.  */
45575 _ACEOF
45576 cat confdefs.h >>conftest.$ac_ext
45577 cat >>conftest.$ac_ext <<_ACEOF
45578 /* end confdefs.h.  */
45579
45580 /* Override any gcc2 internal prototype to avoid an error.  */
45581 #ifdef __cplusplus
45582 extern "C"
45583 #endif
45584 /* We use char because int might match the return type of a gcc2
45585    builtin and then its argument prototype would still apply.  */
45586 char crypt ();
45587 int
45588 main ()
45589 {
45590 crypt ();
45591   ;
45592   return 0;
45593 }
45594 _ACEOF
45595 rm -f conftest.$ac_objext conftest$ac_exeext
45596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45597   (eval $ac_link) 2>conftest.er1
45598   ac_status=$?
45599   grep -v '^ *+' conftest.er1 >conftest.err
45600   rm -f conftest.er1
45601   cat conftest.err >&5
45602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45603   (exit $ac_status); } &&
45604          { ac_try='test -z "$ac_c_werror_flag"
45605                          || test ! -s conftest.err'
45606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45607   (eval $ac_try) 2>&5
45608   ac_status=$?
45609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45610   (exit $ac_status); }; } &&
45611          { ac_try='test -s conftest$ac_exeext'
45612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45613   (eval $ac_try) 2>&5
45614   ac_status=$?
45615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45616   (exit $ac_status); }; }; then
45617   ac_cv_lib_crypt_crypt=yes
45618 else
45619   echo "$as_me: failed program was:" >&5
45620 sed 's/^/| /' conftest.$ac_ext >&5
45621
45622 ac_cv_lib_crypt_crypt=no
45623 fi
45624 rm -f conftest.err conftest.$ac_objext \
45625       conftest$ac_exeext conftest.$ac_ext
45626 LIBS=$ac_check_lib_save_LIBS
45627 fi
45628 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
45629 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
45630 if test $ac_cv_lib_crypt_crypt = yes; then
45631   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
45632                         have_crypt=yes
45633 else
45634   have_crypt=no
45635 fi
45636
45637 fi
45638
45639
45640         LIBS="$save_LIBS"
45641
45642         if test $have_crypt = yes ; then
45643
45644 cat >>confdefs.h <<\_ACEOF
45645 #define HAVE_CRYPT 1
45646 _ACEOF
45647
45648         else
45649                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
45650 echo "$as_me: WARNING: could not find crypt" >&2;}
45651                 if test $ol_enable_crypt = yes ; then
45652                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
45653 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
45654    { (exit 1); exit 1; }; }
45655                 fi
45656
45657                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
45658 echo "$as_me: WARNING: disabling crypt support" >&2;}
45659                 ol_enable_crypt=no
45660         fi
45661 fi
45662
45663 if test $ol_enable_proctitle != no ; then
45664         echo "$as_me:$LINENO: checking for setproctitle" >&5
45665 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
45666 if test "${ac_cv_func_setproctitle+set}" = set; then
45667   echo $ECHO_N "(cached) $ECHO_C" >&6
45668 else
45669   cat >conftest.$ac_ext <<_ACEOF
45670 /* confdefs.h.  */
45671 _ACEOF
45672 cat confdefs.h >>conftest.$ac_ext
45673 cat >>conftest.$ac_ext <<_ACEOF
45674 /* end confdefs.h.  */
45675 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
45676    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45677 #define setproctitle innocuous_setproctitle
45678
45679 /* System header to define __stub macros and hopefully few prototypes,
45680     which can conflict with char setproctitle (); below.
45681     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45682     <limits.h> exists even on freestanding compilers.  */
45683
45684 #ifdef __STDC__
45685 # include <limits.h>
45686 #else
45687 # include <assert.h>
45688 #endif
45689
45690 #undef setproctitle
45691
45692 /* Override any gcc2 internal prototype to avoid an error.  */
45693 #ifdef __cplusplus
45694 extern "C"
45695 {
45696 #endif
45697 /* We use char because int might match the return type of a gcc2
45698    builtin and then its argument prototype would still apply.  */
45699 char setproctitle ();
45700 /* The GNU C library defines this for functions which it implements
45701     to always fail with ENOSYS.  Some functions are actually named
45702     something starting with __ and the normal name is an alias.  */
45703 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
45704 choke me
45705 #else
45706 char (*f) () = setproctitle;
45707 #endif
45708 #ifdef __cplusplus
45709 }
45710 #endif
45711
45712 int
45713 main ()
45714 {
45715 return f != setproctitle;
45716   ;
45717   return 0;
45718 }
45719 _ACEOF
45720 rm -f conftest.$ac_objext conftest$ac_exeext
45721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45722   (eval $ac_link) 2>conftest.er1
45723   ac_status=$?
45724   grep -v '^ *+' conftest.er1 >conftest.err
45725   rm -f conftest.er1
45726   cat conftest.err >&5
45727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45728   (exit $ac_status); } &&
45729          { ac_try='test -z "$ac_c_werror_flag"
45730                          || test ! -s conftest.err'
45731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45732   (eval $ac_try) 2>&5
45733   ac_status=$?
45734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45735   (exit $ac_status); }; } &&
45736          { ac_try='test -s conftest$ac_exeext'
45737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45738   (eval $ac_try) 2>&5
45739   ac_status=$?
45740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45741   (exit $ac_status); }; }; then
45742   ac_cv_func_setproctitle=yes
45743 else
45744   echo "$as_me: failed program was:" >&5
45745 sed 's/^/| /' conftest.$ac_ext >&5
45746
45747 ac_cv_func_setproctitle=no
45748 fi
45749 rm -f conftest.err conftest.$ac_objext \
45750       conftest$ac_exeext conftest.$ac_ext
45751 fi
45752 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
45753 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
45754 if test $ac_cv_func_setproctitle = yes; then
45755   have_setproctitle=yes
45756 else
45757
45758                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
45759 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
45760 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
45761   echo $ECHO_N "(cached) $ECHO_C" >&6
45762 else
45763   ac_check_lib_save_LIBS=$LIBS
45764 LIBS="-lutil  $LIBS"
45765 cat >conftest.$ac_ext <<_ACEOF
45766 /* confdefs.h.  */
45767 _ACEOF
45768 cat confdefs.h >>conftest.$ac_ext
45769 cat >>conftest.$ac_ext <<_ACEOF
45770 /* end confdefs.h.  */
45771
45772 /* Override any gcc2 internal prototype to avoid an error.  */
45773 #ifdef __cplusplus
45774 extern "C"
45775 #endif
45776 /* We use char because int might match the return type of a gcc2
45777    builtin and then its argument prototype would still apply.  */
45778 char setproctitle ();
45779 int
45780 main ()
45781 {
45782 setproctitle ();
45783   ;
45784   return 0;
45785 }
45786 _ACEOF
45787 rm -f conftest.$ac_objext conftest$ac_exeext
45788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45789   (eval $ac_link) 2>conftest.er1
45790   ac_status=$?
45791   grep -v '^ *+' conftest.er1 >conftest.err
45792   rm -f conftest.er1
45793   cat conftest.err >&5
45794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45795   (exit $ac_status); } &&
45796          { ac_try='test -z "$ac_c_werror_flag"
45797                          || test ! -s conftest.err'
45798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45799   (eval $ac_try) 2>&5
45800   ac_status=$?
45801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45802   (exit $ac_status); }; } &&
45803          { ac_try='test -s conftest$ac_exeext'
45804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45805   (eval $ac_try) 2>&5
45806   ac_status=$?
45807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45808   (exit $ac_status); }; }; then
45809   ac_cv_lib_util_setproctitle=yes
45810 else
45811   echo "$as_me: failed program was:" >&5
45812 sed 's/^/| /' conftest.$ac_ext >&5
45813
45814 ac_cv_lib_util_setproctitle=no
45815 fi
45816 rm -f conftest.err conftest.$ac_objext \
45817       conftest$ac_exeext conftest.$ac_ext
45818 LIBS=$ac_check_lib_save_LIBS
45819 fi
45820 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
45821 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
45822 if test $ac_cv_lib_util_setproctitle = yes; then
45823   have_setproctitle=yes
45824                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
45825 else
45826   have_setproctitle=no
45827                         case $LIBOBJS in
45828     "setproctitle.$ac_objext"   | \
45829   *" setproctitle.$ac_objext"   | \
45830     "setproctitle.$ac_objext "* | \
45831   *" setproctitle.$ac_objext "* ) ;;
45832   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
45833 esac
45834
45835                         LIBSRCS="$LIBSRCS setproctitle.c"
45836 fi
45837
45838 fi
45839
45840
45841         if test $have_setproctitle = yes ; then
45842
45843 cat >>confdefs.h <<\_ACEOF
45844 #define HAVE_SETPROCTITLE 1
45845 _ACEOF
45846
45847         fi
45848 fi
45849
45850 if test $ol_enable_slp != no ; then
45851
45852 for ac_header in slp.h
45853 do
45854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45856   echo "$as_me:$LINENO: checking for $ac_header" >&5
45857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45859   echo $ECHO_N "(cached) $ECHO_C" >&6
45860 fi
45861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45863 else
45864   # Is the header compilable?
45865 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45867 cat >conftest.$ac_ext <<_ACEOF
45868 /* confdefs.h.  */
45869 _ACEOF
45870 cat confdefs.h >>conftest.$ac_ext
45871 cat >>conftest.$ac_ext <<_ACEOF
45872 /* end confdefs.h.  */
45873 $ac_includes_default
45874 #include <$ac_header>
45875 _ACEOF
45876 rm -f conftest.$ac_objext
45877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45878   (eval $ac_compile) 2>conftest.er1
45879   ac_status=$?
45880   grep -v '^ *+' conftest.er1 >conftest.err
45881   rm -f conftest.er1
45882   cat conftest.err >&5
45883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45884   (exit $ac_status); } &&
45885          { ac_try='test -z "$ac_c_werror_flag"
45886                          || test ! -s conftest.err'
45887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45888   (eval $ac_try) 2>&5
45889   ac_status=$?
45890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45891   (exit $ac_status); }; } &&
45892          { ac_try='test -s conftest.$ac_objext'
45893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45894   (eval $ac_try) 2>&5
45895   ac_status=$?
45896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45897   (exit $ac_status); }; }; then
45898   ac_header_compiler=yes
45899 else
45900   echo "$as_me: failed program was:" >&5
45901 sed 's/^/| /' conftest.$ac_ext >&5
45902
45903 ac_header_compiler=no
45904 fi
45905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45906 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45907 echo "${ECHO_T}$ac_header_compiler" >&6
45908
45909 # Is the header present?
45910 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45912 cat >conftest.$ac_ext <<_ACEOF
45913 /* confdefs.h.  */
45914 _ACEOF
45915 cat confdefs.h >>conftest.$ac_ext
45916 cat >>conftest.$ac_ext <<_ACEOF
45917 /* end confdefs.h.  */
45918 #include <$ac_header>
45919 _ACEOF
45920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45921   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45922   ac_status=$?
45923   grep -v '^ *+' conftest.er1 >conftest.err
45924   rm -f conftest.er1
45925   cat conftest.err >&5
45926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45927   (exit $ac_status); } >/dev/null; then
45928   if test -s conftest.err; then
45929     ac_cpp_err=$ac_c_preproc_warn_flag
45930     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45931   else
45932     ac_cpp_err=
45933   fi
45934 else
45935   ac_cpp_err=yes
45936 fi
45937 if test -z "$ac_cpp_err"; then
45938   ac_header_preproc=yes
45939 else
45940   echo "$as_me: failed program was:" >&5
45941 sed 's/^/| /' conftest.$ac_ext >&5
45942
45943   ac_header_preproc=no
45944 fi
45945 rm -f conftest.err conftest.$ac_ext
45946 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45947 echo "${ECHO_T}$ac_header_preproc" >&6
45948
45949 # So?  What about this header?
45950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45951   yes:no: )
45952     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45955 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45956     ac_header_preproc=yes
45957     ;;
45958   no:yes:* )
45959     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45961     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45962 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45963     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45964 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45965     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45966 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45967     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45969     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45970 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45971     (
45972       cat <<\_ASBOX
45973 ## ------------------------------------------ ##
45974 ## Report this to the AC_PACKAGE_NAME lists.  ##
45975 ## ------------------------------------------ ##
45976 _ASBOX
45977     ) |
45978       sed "s/^/$as_me: WARNING:     /" >&2
45979     ;;
45980 esac
45981 echo "$as_me:$LINENO: checking for $ac_header" >&5
45982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45984   echo $ECHO_N "(cached) $ECHO_C" >&6
45985 else
45986   eval "$as_ac_Header=\$ac_header_preproc"
45987 fi
45988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45990
45991 fi
45992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45993   cat >>confdefs.h <<_ACEOF
45994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45995 _ACEOF
45996
45997 fi
45998
45999 done
46000
46001
46002         if test $ac_cv_header_slp_h = yes ; then
46003                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46004 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46005 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46006   echo $ECHO_N "(cached) $ECHO_C" >&6
46007 else
46008   ac_check_lib_save_LIBS=$LIBS
46009 LIBS="-lslp  $LIBS"
46010 cat >conftest.$ac_ext <<_ACEOF
46011 /* confdefs.h.  */
46012 _ACEOF
46013 cat confdefs.h >>conftest.$ac_ext
46014 cat >>conftest.$ac_ext <<_ACEOF
46015 /* end confdefs.h.  */
46016
46017 /* Override any gcc2 internal prototype to avoid an error.  */
46018 #ifdef __cplusplus
46019 extern "C"
46020 #endif
46021 /* We use char because int might match the return type of a gcc2
46022    builtin and then its argument prototype would still apply.  */
46023 char SLPOpen ();
46024 int
46025 main ()
46026 {
46027 SLPOpen ();
46028   ;
46029   return 0;
46030 }
46031 _ACEOF
46032 rm -f conftest.$ac_objext conftest$ac_exeext
46033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46034   (eval $ac_link) 2>conftest.er1
46035   ac_status=$?
46036   grep -v '^ *+' conftest.er1 >conftest.err
46037   rm -f conftest.er1
46038   cat conftest.err >&5
46039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46040   (exit $ac_status); } &&
46041          { ac_try='test -z "$ac_c_werror_flag"
46042                          || test ! -s conftest.err'
46043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46044   (eval $ac_try) 2>&5
46045   ac_status=$?
46046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46047   (exit $ac_status); }; } &&
46048          { ac_try='test -s conftest$ac_exeext'
46049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46050   (eval $ac_try) 2>&5
46051   ac_status=$?
46052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46053   (exit $ac_status); }; }; then
46054   ac_cv_lib_slp_SLPOpen=yes
46055 else
46056   echo "$as_me: failed program was:" >&5
46057 sed 's/^/| /' conftest.$ac_ext >&5
46058
46059 ac_cv_lib_slp_SLPOpen=no
46060 fi
46061 rm -f conftest.err conftest.$ac_objext \
46062       conftest$ac_exeext conftest.$ac_ext
46063 LIBS=$ac_check_lib_save_LIBS
46064 fi
46065 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46066 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46067 if test $ac_cv_lib_slp_SLPOpen = yes; then
46068   have_slp=yes
46069 else
46070   have_slp=no
46071 fi
46072
46073                 if test $have_slp = yes ; then
46074
46075 cat >>confdefs.h <<\_ACEOF
46076 #define HAVE_SLP 1
46077 _ACEOF
46078
46079                         SLAPD_SLP_LIBS=-lslp
46080                 fi
46081
46082         elif test $ol_enable_slp = yes ; then
46083                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46084 echo "$as_me: error: SLP not found" >&2;}
46085    { (exit 1); exit 1; }; }
46086         fi
46087 fi
46088
46089 if test "$ol_with_multiple_precision" != "no" ; then
46090         ol_have_bignum=no
46091         ol_have_gmp=no
46092
46093
46094
46095 for ac_header in openssl/bn.h bn.h
46096 do
46097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46099   echo "$as_me:$LINENO: checking for $ac_header" >&5
46100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46102   echo $ECHO_N "(cached) $ECHO_C" >&6
46103 fi
46104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46106 else
46107   # Is the header compilable?
46108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46110 cat >conftest.$ac_ext <<_ACEOF
46111 /* confdefs.h.  */
46112 _ACEOF
46113 cat confdefs.h >>conftest.$ac_ext
46114 cat >>conftest.$ac_ext <<_ACEOF
46115 /* end confdefs.h.  */
46116 $ac_includes_default
46117 #include <$ac_header>
46118 _ACEOF
46119 rm -f conftest.$ac_objext
46120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46121   (eval $ac_compile) 2>conftest.er1
46122   ac_status=$?
46123   grep -v '^ *+' conftest.er1 >conftest.err
46124   rm -f conftest.er1
46125   cat conftest.err >&5
46126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46127   (exit $ac_status); } &&
46128          { ac_try='test -z "$ac_c_werror_flag"
46129                          || test ! -s conftest.err'
46130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46131   (eval $ac_try) 2>&5
46132   ac_status=$?
46133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46134   (exit $ac_status); }; } &&
46135          { ac_try='test -s conftest.$ac_objext'
46136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46137   (eval $ac_try) 2>&5
46138   ac_status=$?
46139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46140   (exit $ac_status); }; }; then
46141   ac_header_compiler=yes
46142 else
46143   echo "$as_me: failed program was:" >&5
46144 sed 's/^/| /' conftest.$ac_ext >&5
46145
46146 ac_header_compiler=no
46147 fi
46148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46150 echo "${ECHO_T}$ac_header_compiler" >&6
46151
46152 # Is the header present?
46153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46155 cat >conftest.$ac_ext <<_ACEOF
46156 /* confdefs.h.  */
46157 _ACEOF
46158 cat confdefs.h >>conftest.$ac_ext
46159 cat >>conftest.$ac_ext <<_ACEOF
46160 /* end confdefs.h.  */
46161 #include <$ac_header>
46162 _ACEOF
46163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46164   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46165   ac_status=$?
46166   grep -v '^ *+' conftest.er1 >conftest.err
46167   rm -f conftest.er1
46168   cat conftest.err >&5
46169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46170   (exit $ac_status); } >/dev/null; then
46171   if test -s conftest.err; then
46172     ac_cpp_err=$ac_c_preproc_warn_flag
46173     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46174   else
46175     ac_cpp_err=
46176   fi
46177 else
46178   ac_cpp_err=yes
46179 fi
46180 if test -z "$ac_cpp_err"; then
46181   ac_header_preproc=yes
46182 else
46183   echo "$as_me: failed program was:" >&5
46184 sed 's/^/| /' conftest.$ac_ext >&5
46185
46186   ac_header_preproc=no
46187 fi
46188 rm -f conftest.err conftest.$ac_ext
46189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46190 echo "${ECHO_T}$ac_header_preproc" >&6
46191
46192 # So?  What about this header?
46193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46194   yes:no: )
46195     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46197     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46199     ac_header_preproc=yes
46200     ;;
46201   no:yes:* )
46202     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46204     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46205 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46206     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46208     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46209 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46212     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46214     (
46215       cat <<\_ASBOX
46216 ## ------------------------------------------ ##
46217 ## Report this to the AC_PACKAGE_NAME lists.  ##
46218 ## ------------------------------------------ ##
46219 _ASBOX
46220     ) |
46221       sed "s/^/$as_me: WARNING:     /" >&2
46222     ;;
46223 esac
46224 echo "$as_me:$LINENO: checking for $ac_header" >&5
46225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46227   echo $ECHO_N "(cached) $ECHO_C" >&6
46228 else
46229   eval "$as_ac_Header=\$ac_header_preproc"
46230 fi
46231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46233
46234 fi
46235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46236   cat >>confdefs.h <<_ACEOF
46237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46238 _ACEOF
46239
46240 fi
46241
46242 done
46243
46244
46245
46246 for ac_header in openssl/crypto.h crypto.h
46247 do
46248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46250   echo "$as_me:$LINENO: checking for $ac_header" >&5
46251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46253   echo $ECHO_N "(cached) $ECHO_C" >&6
46254 fi
46255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46257 else
46258   # Is the header compilable?
46259 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46261 cat >conftest.$ac_ext <<_ACEOF
46262 /* confdefs.h.  */
46263 _ACEOF
46264 cat confdefs.h >>conftest.$ac_ext
46265 cat >>conftest.$ac_ext <<_ACEOF
46266 /* end confdefs.h.  */
46267 $ac_includes_default
46268 #include <$ac_header>
46269 _ACEOF
46270 rm -f conftest.$ac_objext
46271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46272   (eval $ac_compile) 2>conftest.er1
46273   ac_status=$?
46274   grep -v '^ *+' conftest.er1 >conftest.err
46275   rm -f conftest.er1
46276   cat conftest.err >&5
46277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46278   (exit $ac_status); } &&
46279          { ac_try='test -z "$ac_c_werror_flag"
46280                          || test ! -s conftest.err'
46281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46282   (eval $ac_try) 2>&5
46283   ac_status=$?
46284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46285   (exit $ac_status); }; } &&
46286          { ac_try='test -s conftest.$ac_objext'
46287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46288   (eval $ac_try) 2>&5
46289   ac_status=$?
46290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46291   (exit $ac_status); }; }; then
46292   ac_header_compiler=yes
46293 else
46294   echo "$as_me: failed program was:" >&5
46295 sed 's/^/| /' conftest.$ac_ext >&5
46296
46297 ac_header_compiler=no
46298 fi
46299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46301 echo "${ECHO_T}$ac_header_compiler" >&6
46302
46303 # Is the header present?
46304 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46306 cat >conftest.$ac_ext <<_ACEOF
46307 /* confdefs.h.  */
46308 _ACEOF
46309 cat confdefs.h >>conftest.$ac_ext
46310 cat >>conftest.$ac_ext <<_ACEOF
46311 /* end confdefs.h.  */
46312 #include <$ac_header>
46313 _ACEOF
46314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46315   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46316   ac_status=$?
46317   grep -v '^ *+' conftest.er1 >conftest.err
46318   rm -f conftest.er1
46319   cat conftest.err >&5
46320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46321   (exit $ac_status); } >/dev/null; then
46322   if test -s conftest.err; then
46323     ac_cpp_err=$ac_c_preproc_warn_flag
46324     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46325   else
46326     ac_cpp_err=
46327   fi
46328 else
46329   ac_cpp_err=yes
46330 fi
46331 if test -z "$ac_cpp_err"; then
46332   ac_header_preproc=yes
46333 else
46334   echo "$as_me: failed program was:" >&5
46335 sed 's/^/| /' conftest.$ac_ext >&5
46336
46337   ac_header_preproc=no
46338 fi
46339 rm -f conftest.err conftest.$ac_ext
46340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46341 echo "${ECHO_T}$ac_header_preproc" >&6
46342
46343 # So?  What about this header?
46344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46345   yes:no: )
46346     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46348     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46350     ac_header_preproc=yes
46351     ;;
46352   no:yes:* )
46353     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46355     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46356 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46357     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46359     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46360 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46361     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46363     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46365     (
46366       cat <<\_ASBOX
46367 ## ------------------------------------------ ##
46368 ## Report this to the AC_PACKAGE_NAME lists.  ##
46369 ## ------------------------------------------ ##
46370 _ASBOX
46371     ) |
46372       sed "s/^/$as_me: WARNING:     /" >&2
46373     ;;
46374 esac
46375 echo "$as_me:$LINENO: checking for $ac_header" >&5
46376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46378   echo $ECHO_N "(cached) $ECHO_C" >&6
46379 else
46380   eval "$as_ac_Header=\$ac_header_preproc"
46381 fi
46382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46384
46385 fi
46386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46387   cat >>confdefs.h <<_ACEOF
46388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46389 _ACEOF
46390
46391 fi
46392
46393 done
46394
46395
46396 for ac_header in gmp.h
46397 do
46398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46400   echo "$as_me:$LINENO: checking for $ac_header" >&5
46401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46403   echo $ECHO_N "(cached) $ECHO_C" >&6
46404 fi
46405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46407 else
46408   # Is the header compilable?
46409 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46411 cat >conftest.$ac_ext <<_ACEOF
46412 /* confdefs.h.  */
46413 _ACEOF
46414 cat confdefs.h >>conftest.$ac_ext
46415 cat >>conftest.$ac_ext <<_ACEOF
46416 /* end confdefs.h.  */
46417 $ac_includes_default
46418 #include <$ac_header>
46419 _ACEOF
46420 rm -f conftest.$ac_objext
46421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46422   (eval $ac_compile) 2>conftest.er1
46423   ac_status=$?
46424   grep -v '^ *+' conftest.er1 >conftest.err
46425   rm -f conftest.er1
46426   cat conftest.err >&5
46427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46428   (exit $ac_status); } &&
46429          { ac_try='test -z "$ac_c_werror_flag"
46430                          || test ! -s conftest.err'
46431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46432   (eval $ac_try) 2>&5
46433   ac_status=$?
46434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46435   (exit $ac_status); }; } &&
46436          { ac_try='test -s conftest.$ac_objext'
46437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46438   (eval $ac_try) 2>&5
46439   ac_status=$?
46440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46441   (exit $ac_status); }; }; then
46442   ac_header_compiler=yes
46443 else
46444   echo "$as_me: failed program was:" >&5
46445 sed 's/^/| /' conftest.$ac_ext >&5
46446
46447 ac_header_compiler=no
46448 fi
46449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46450 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46451 echo "${ECHO_T}$ac_header_compiler" >&6
46452
46453 # Is the header present?
46454 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46455 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46456 cat >conftest.$ac_ext <<_ACEOF
46457 /* confdefs.h.  */
46458 _ACEOF
46459 cat confdefs.h >>conftest.$ac_ext
46460 cat >>conftest.$ac_ext <<_ACEOF
46461 /* end confdefs.h.  */
46462 #include <$ac_header>
46463 _ACEOF
46464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46465   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46466   ac_status=$?
46467   grep -v '^ *+' conftest.er1 >conftest.err
46468   rm -f conftest.er1
46469   cat conftest.err >&5
46470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46471   (exit $ac_status); } >/dev/null; then
46472   if test -s conftest.err; then
46473     ac_cpp_err=$ac_c_preproc_warn_flag
46474     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46475   else
46476     ac_cpp_err=
46477   fi
46478 else
46479   ac_cpp_err=yes
46480 fi
46481 if test -z "$ac_cpp_err"; then
46482   ac_header_preproc=yes
46483 else
46484   echo "$as_me: failed program was:" >&5
46485 sed 's/^/| /' conftest.$ac_ext >&5
46486
46487   ac_header_preproc=no
46488 fi
46489 rm -f conftest.err conftest.$ac_ext
46490 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46491 echo "${ECHO_T}$ac_header_preproc" >&6
46492
46493 # So?  What about this header?
46494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46495   yes:no: )
46496     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46500     ac_header_preproc=yes
46501     ;;
46502   no:yes:* )
46503     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46505     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46506 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46507     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46509     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46510 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46513     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46515     (
46516       cat <<\_ASBOX
46517 ## ------------------------------------------ ##
46518 ## Report this to the AC_PACKAGE_NAME lists.  ##
46519 ## ------------------------------------------ ##
46520 _ASBOX
46521     ) |
46522       sed "s/^/$as_me: WARNING:     /" >&2
46523     ;;
46524 esac
46525 echo "$as_me:$LINENO: checking for $ac_header" >&5
46526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46528   echo $ECHO_N "(cached) $ECHO_C" >&6
46529 else
46530   eval "$as_ac_Header=\$ac_header_preproc"
46531 fi
46532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46534
46535 fi
46536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46537   cat >>confdefs.h <<_ACEOF
46538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46539 _ACEOF
46540
46541 fi
46542
46543 done
46544
46545
46546         if test "$ol_with_tls" = "found" ; then
46547                 ol_have_bn_h=no
46548                 ol_have_crypto_h=no
46549
46550                 if test "$ac_cv_header_openssl_bn_h" = "yes" \
46551                                 -o "$ac_cv_header_bn_h" = "yes" ; then
46552                         ol_have_bn_h=yes
46553                 fi
46554
46555                 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
46556                                 -o "$ac_cv_header_crypto_h" = "yes" ; then
46557                         ol_have_crypto_h=yes
46558                 fi
46559
46560                 if test "$ol_have_bn_h" = "yes" \
46561                                 -a "$ol_have_crypto_h" = "yes" ; then
46562                         ol_have_bignum=yes
46563                 fi
46564         fi
46565
46566         if test $ac_cv_header_gmp_h = yes ; then
46567                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
46568 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
46569 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
46570   echo $ECHO_N "(cached) $ECHO_C" >&6
46571 else
46572   ac_check_lib_save_LIBS=$LIBS
46573 LIBS="-lgmp  $LIBS"
46574 cat >conftest.$ac_ext <<_ACEOF
46575 /* confdefs.h.  */
46576 _ACEOF
46577 cat confdefs.h >>conftest.$ac_ext
46578 cat >>conftest.$ac_ext <<_ACEOF
46579 /* end confdefs.h.  */
46580
46581 /* Override any gcc2 internal prototype to avoid an error.  */
46582 #ifdef __cplusplus
46583 extern "C"
46584 #endif
46585 /* We use char because int might match the return type of a gcc2
46586    builtin and then its argument prototype would still apply.  */
46587 char __gmpz_add_ui ();
46588 int
46589 main ()
46590 {
46591 __gmpz_add_ui ();
46592   ;
46593   return 0;
46594 }
46595 _ACEOF
46596 rm -f conftest.$ac_objext conftest$ac_exeext
46597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46598   (eval $ac_link) 2>conftest.er1
46599   ac_status=$?
46600   grep -v '^ *+' conftest.er1 >conftest.err
46601   rm -f conftest.er1
46602   cat conftest.err >&5
46603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46604   (exit $ac_status); } &&
46605          { ac_try='test -z "$ac_c_werror_flag"
46606                          || test ! -s conftest.err'
46607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46608   (eval $ac_try) 2>&5
46609   ac_status=$?
46610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46611   (exit $ac_status); }; } &&
46612          { ac_try='test -s conftest$ac_exeext'
46613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46614   (eval $ac_try) 2>&5
46615   ac_status=$?
46616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46617   (exit $ac_status); }; }; then
46618   ac_cv_lib_gmp___gmpz_add_ui=yes
46619 else
46620   echo "$as_me: failed program was:" >&5
46621 sed 's/^/| /' conftest.$ac_ext >&5
46622
46623 ac_cv_lib_gmp___gmpz_add_ui=no
46624 fi
46625 rm -f conftest.err conftest.$ac_objext \
46626       conftest$ac_exeext conftest.$ac_ext
46627 LIBS=$ac_check_lib_save_LIBS
46628 fi
46629 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
46630 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
46631 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
46632   have_gmp=yes
46633 else
46634   have_gmp=no
46635 fi
46636
46637                 if test $have_gmp = yes ; then
46638                         ol_have_gmp=yes
46639                 fi
46640         fi
46641
46642         echo "$as_me:$LINENO: checking for multiple precision support" >&5
46643 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
46644
46645         ol_mp_support="none"
46646         case "$ol_with_multiple_precision" in
46647         auto)
46648                                                                                 if test "$ol_have_bignum" = "yes" ; then
46649                         ol_mp_support="bignum"
46650                 else
46651                         if test "$ol_have_gmp" = "yes" ; then
46652                                 ol_mp_support="gmp"
46653                         fi
46654                 fi
46655                 ;;
46656         bignum)
46657                 if test "$ol_have_bignum" != "yes" ; then
46658                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
46659 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
46660    { (exit 1); exit 1; }; }
46661                 fi
46662                 ol_mp_support="bignum"
46663                 ;;
46664         gmp)
46665                 if test "$ol_have_gmp" != "yes" ; then
46666                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
46667 echo "$as_me: error: GMP not available" >&2;}
46668    { (exit 1); exit 1; }; }
46669                 fi
46670                 ol_mp_support="gmp"
46671                 ;;
46672         yes)
46673                 if test "$ol_have_bignum" = "yes" ; then
46674                         ol_mp_support="bignum"
46675                 elif test "$ol_have_gmp" = "yes" ; then
46676                         ol_mp_support="gmp"
46677                 else
46678                         { { echo "$as_me:$LINENO: error: not available" >&5
46679 echo "$as_me: error: not available" >&2;}
46680    { (exit 1); exit 1; }; }
46681                 fi
46682                 ;;
46683         esac
46684
46685         case "$ol_mp_support" in
46686         bignum)
46687
46688 cat >>confdefs.h <<\_ACEOF
46689 #define HAVE_BIGNUM 1
46690 _ACEOF
46691
46692                 ;;
46693         gmp)
46694
46695 cat >>confdefs.h <<\_ACEOF
46696 #define HAVE_GMP 1
46697 _ACEOF
46698
46699                 SLAPD_GMP_LIBS=-lgmp
46700                 ;;
46701         none)
46702                 ;;
46703         esac
46704
46705         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
46706 echo "${ECHO_T}$ol_mp_support" >&6
46707 fi
46708
46709
46710 echo "$as_me:$LINENO: checking long long" >&5
46711 echo $ECHO_N "checking long long... $ECHO_C" >&6
46712 if test "${ol_cv_type_long_long+set}" = set; then
46713   echo $ECHO_N "(cached) $ECHO_C" >&6
46714 else
46715
46716         cat >conftest.$ac_ext <<_ACEOF
46717 /* confdefs.h.  */
46718 _ACEOF
46719 cat confdefs.h >>conftest.$ac_ext
46720 cat >>conftest.$ac_ext <<_ACEOF
46721 /* end confdefs.h.  */
46722
46723 int
46724 main ()
46725 {
46726 long long x;
46727   ;
46728   return 0;
46729 }
46730 _ACEOF
46731 rm -f conftest.$ac_objext
46732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46733   (eval $ac_compile) 2>conftest.er1
46734   ac_status=$?
46735   grep -v '^ *+' conftest.er1 >conftest.err
46736   rm -f conftest.er1
46737   cat conftest.err >&5
46738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46739   (exit $ac_status); } &&
46740          { ac_try='test -z "$ac_c_werror_flag"
46741                          || test ! -s conftest.err'
46742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46743   (eval $ac_try) 2>&5
46744   ac_status=$?
46745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46746   (exit $ac_status); }; } &&
46747          { ac_try='test -s conftest.$ac_objext'
46748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46749   (eval $ac_try) 2>&5
46750   ac_status=$?
46751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46752   (exit $ac_status); }; }; then
46753   ol_cv_type_long_long=yes
46754 else
46755   echo "$as_me: failed program was:" >&5
46756 sed 's/^/| /' conftest.$ac_ext >&5
46757
46758 ol_cv_type_long_long=no
46759 fi
46760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46761 fi
46762 echo "$as_me:$LINENO: result: $ol_cv_type_long_long" >&5
46763 echo "${ECHO_T}$ol_cv_type_long_long" >&6
46764 if test $ol_cv_type_long_long = yes; then
46765
46766 cat >>confdefs.h <<\_ACEOF
46767 #define HAVE_LONG_LONG 1
46768 _ACEOF
46769
46770 fi
46771
46772 echo "$as_me:$LINENO: checking for mode_t" >&5
46773 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
46774 if test "${ac_cv_type_mode_t+set}" = set; then
46775   echo $ECHO_N "(cached) $ECHO_C" >&6
46776 else
46777   cat >conftest.$ac_ext <<_ACEOF
46778 /* confdefs.h.  */
46779 _ACEOF
46780 cat confdefs.h >>conftest.$ac_ext
46781 cat >>conftest.$ac_ext <<_ACEOF
46782 /* end confdefs.h.  */
46783 $ac_includes_default
46784 int
46785 main ()
46786 {
46787 if ((mode_t *) 0)
46788   return 0;
46789 if (sizeof (mode_t))
46790   return 0;
46791   ;
46792   return 0;
46793 }
46794 _ACEOF
46795 rm -f conftest.$ac_objext
46796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46797   (eval $ac_compile) 2>conftest.er1
46798   ac_status=$?
46799   grep -v '^ *+' conftest.er1 >conftest.err
46800   rm -f conftest.er1
46801   cat conftest.err >&5
46802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46803   (exit $ac_status); } &&
46804          { ac_try='test -z "$ac_c_werror_flag"
46805                          || test ! -s conftest.err'
46806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46807   (eval $ac_try) 2>&5
46808   ac_status=$?
46809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46810   (exit $ac_status); }; } &&
46811          { ac_try='test -s conftest.$ac_objext'
46812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46813   (eval $ac_try) 2>&5
46814   ac_status=$?
46815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46816   (exit $ac_status); }; }; then
46817   ac_cv_type_mode_t=yes
46818 else
46819   echo "$as_me: failed program was:" >&5
46820 sed 's/^/| /' conftest.$ac_ext >&5
46821
46822 ac_cv_type_mode_t=no
46823 fi
46824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46825 fi
46826 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
46827 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
46828 if test $ac_cv_type_mode_t = yes; then
46829   :
46830 else
46831
46832 cat >>confdefs.h <<_ACEOF
46833 #define mode_t int
46834 _ACEOF
46835
46836 fi
46837
46838 echo "$as_me:$LINENO: checking for off_t" >&5
46839 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
46840 if test "${ac_cv_type_off_t+set}" = set; then
46841   echo $ECHO_N "(cached) $ECHO_C" >&6
46842 else
46843   cat >conftest.$ac_ext <<_ACEOF
46844 /* confdefs.h.  */
46845 _ACEOF
46846 cat confdefs.h >>conftest.$ac_ext
46847 cat >>conftest.$ac_ext <<_ACEOF
46848 /* end confdefs.h.  */
46849 $ac_includes_default
46850 int
46851 main ()
46852 {
46853 if ((off_t *) 0)
46854   return 0;
46855 if (sizeof (off_t))
46856   return 0;
46857   ;
46858   return 0;
46859 }
46860 _ACEOF
46861 rm -f conftest.$ac_objext
46862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46863   (eval $ac_compile) 2>conftest.er1
46864   ac_status=$?
46865   grep -v '^ *+' conftest.er1 >conftest.err
46866   rm -f conftest.er1
46867   cat conftest.err >&5
46868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46869   (exit $ac_status); } &&
46870          { ac_try='test -z "$ac_c_werror_flag"
46871                          || test ! -s conftest.err'
46872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46873   (eval $ac_try) 2>&5
46874   ac_status=$?
46875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46876   (exit $ac_status); }; } &&
46877          { ac_try='test -s conftest.$ac_objext'
46878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46879   (eval $ac_try) 2>&5
46880   ac_status=$?
46881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46882   (exit $ac_status); }; }; then
46883   ac_cv_type_off_t=yes
46884 else
46885   echo "$as_me: failed program was:" >&5
46886 sed 's/^/| /' conftest.$ac_ext >&5
46887
46888 ac_cv_type_off_t=no
46889 fi
46890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46891 fi
46892 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
46893 echo "${ECHO_T}$ac_cv_type_off_t" >&6
46894 if test $ac_cv_type_off_t = yes; then
46895   :
46896 else
46897
46898 cat >>confdefs.h <<_ACEOF
46899 #define off_t long
46900 _ACEOF
46901
46902 fi
46903
46904 echo "$as_me:$LINENO: checking for pid_t" >&5
46905 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
46906 if test "${ac_cv_type_pid_t+set}" = set; then
46907   echo $ECHO_N "(cached) $ECHO_C" >&6
46908 else
46909   cat >conftest.$ac_ext <<_ACEOF
46910 /* confdefs.h.  */
46911 _ACEOF
46912 cat confdefs.h >>conftest.$ac_ext
46913 cat >>conftest.$ac_ext <<_ACEOF
46914 /* end confdefs.h.  */
46915 $ac_includes_default
46916 int
46917 main ()
46918 {
46919 if ((pid_t *) 0)
46920   return 0;
46921 if (sizeof (pid_t))
46922   return 0;
46923   ;
46924   return 0;
46925 }
46926 _ACEOF
46927 rm -f conftest.$ac_objext
46928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46929   (eval $ac_compile) 2>conftest.er1
46930   ac_status=$?
46931   grep -v '^ *+' conftest.er1 >conftest.err
46932   rm -f conftest.er1
46933   cat conftest.err >&5
46934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46935   (exit $ac_status); } &&
46936          { ac_try='test -z "$ac_c_werror_flag"
46937                          || test ! -s conftest.err'
46938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46939   (eval $ac_try) 2>&5
46940   ac_status=$?
46941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46942   (exit $ac_status); }; } &&
46943          { ac_try='test -s conftest.$ac_objext'
46944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46945   (eval $ac_try) 2>&5
46946   ac_status=$?
46947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46948   (exit $ac_status); }; }; then
46949   ac_cv_type_pid_t=yes
46950 else
46951   echo "$as_me: failed program was:" >&5
46952 sed 's/^/| /' conftest.$ac_ext >&5
46953
46954 ac_cv_type_pid_t=no
46955 fi
46956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46957 fi
46958 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
46959 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
46960 if test $ac_cv_type_pid_t = yes; then
46961   :
46962 else
46963
46964 cat >>confdefs.h <<_ACEOF
46965 #define pid_t int
46966 _ACEOF
46967
46968 fi
46969
46970 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
46971 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
46972 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
46973   echo $ECHO_N "(cached) $ECHO_C" >&6
46974 else
46975   cat >conftest.$ac_ext <<_ACEOF
46976 /* confdefs.h.  */
46977 _ACEOF
46978 cat confdefs.h >>conftest.$ac_ext
46979 cat >>conftest.$ac_ext <<_ACEOF
46980 /* end confdefs.h.  */
46981 $ac_includes_default
46982 int
46983 main ()
46984 {
46985 if ((ptrdiff_t *) 0)
46986   return 0;
46987 if (sizeof (ptrdiff_t))
46988   return 0;
46989   ;
46990   return 0;
46991 }
46992 _ACEOF
46993 rm -f conftest.$ac_objext
46994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46995   (eval $ac_compile) 2>conftest.er1
46996   ac_status=$?
46997   grep -v '^ *+' conftest.er1 >conftest.err
46998   rm -f conftest.er1
46999   cat conftest.err >&5
47000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47001   (exit $ac_status); } &&
47002          { ac_try='test -z "$ac_c_werror_flag"
47003                          || test ! -s conftest.err'
47004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47005   (eval $ac_try) 2>&5
47006   ac_status=$?
47007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47008   (exit $ac_status); }; } &&
47009          { ac_try='test -s conftest.$ac_objext'
47010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47011   (eval $ac_try) 2>&5
47012   ac_status=$?
47013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47014   (exit $ac_status); }; }; then
47015   ac_cv_type_ptrdiff_t=yes
47016 else
47017   echo "$as_me: failed program was:" >&5
47018 sed 's/^/| /' conftest.$ac_ext >&5
47019
47020 ac_cv_type_ptrdiff_t=no
47021 fi
47022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47023 fi
47024 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47025 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47026 if test $ac_cv_type_ptrdiff_t = yes; then
47027
47028 cat >>confdefs.h <<_ACEOF
47029 #define HAVE_PTRDIFF_T 1
47030 _ACEOF
47031
47032
47033 fi
47034
47035 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47036 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47037 if test "${ac_cv_type_signal+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 #include <sys/types.h>
47047 #include <signal.h>
47048 #ifdef signal
47049 # undef signal
47050 #endif
47051 #ifdef __cplusplus
47052 extern "C" void (*signal (int, void (*)(int)))(int);
47053 #else
47054 void (*signal ()) ();
47055 #endif
47056
47057 int
47058 main ()
47059 {
47060 int i;
47061   ;
47062   return 0;
47063 }
47064 _ACEOF
47065 rm -f conftest.$ac_objext
47066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47067   (eval $ac_compile) 2>conftest.er1
47068   ac_status=$?
47069   grep -v '^ *+' conftest.er1 >conftest.err
47070   rm -f conftest.er1
47071   cat conftest.err >&5
47072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47073   (exit $ac_status); } &&
47074          { ac_try='test -z "$ac_c_werror_flag"
47075                          || test ! -s conftest.err'
47076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47077   (eval $ac_try) 2>&5
47078   ac_status=$?
47079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47080   (exit $ac_status); }; } &&
47081          { ac_try='test -s conftest.$ac_objext'
47082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47083   (eval $ac_try) 2>&5
47084   ac_status=$?
47085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47086   (exit $ac_status); }; }; then
47087   ac_cv_type_signal=void
47088 else
47089   echo "$as_me: failed program was:" >&5
47090 sed 's/^/| /' conftest.$ac_ext >&5
47091
47092 ac_cv_type_signal=int
47093 fi
47094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47095 fi
47096 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47097 echo "${ECHO_T}$ac_cv_type_signal" >&6
47098
47099 cat >>confdefs.h <<_ACEOF
47100 #define RETSIGTYPE $ac_cv_type_signal
47101 _ACEOF
47102
47103
47104 echo "$as_me:$LINENO: checking for size_t" >&5
47105 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47106 if test "${ac_cv_type_size_t+set}" = set; then
47107   echo $ECHO_N "(cached) $ECHO_C" >&6
47108 else
47109   cat >conftest.$ac_ext <<_ACEOF
47110 /* confdefs.h.  */
47111 _ACEOF
47112 cat confdefs.h >>conftest.$ac_ext
47113 cat >>conftest.$ac_ext <<_ACEOF
47114 /* end confdefs.h.  */
47115 $ac_includes_default
47116 int
47117 main ()
47118 {
47119 if ((size_t *) 0)
47120   return 0;
47121 if (sizeof (size_t))
47122   return 0;
47123   ;
47124   return 0;
47125 }
47126 _ACEOF
47127 rm -f conftest.$ac_objext
47128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47129   (eval $ac_compile) 2>conftest.er1
47130   ac_status=$?
47131   grep -v '^ *+' conftest.er1 >conftest.err
47132   rm -f conftest.er1
47133   cat conftest.err >&5
47134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47135   (exit $ac_status); } &&
47136          { ac_try='test -z "$ac_c_werror_flag"
47137                          || test ! -s conftest.err'
47138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47139   (eval $ac_try) 2>&5
47140   ac_status=$?
47141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47142   (exit $ac_status); }; } &&
47143          { ac_try='test -s conftest.$ac_objext'
47144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47145   (eval $ac_try) 2>&5
47146   ac_status=$?
47147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47148   (exit $ac_status); }; }; then
47149   ac_cv_type_size_t=yes
47150 else
47151   echo "$as_me: failed program was:" >&5
47152 sed 's/^/| /' conftest.$ac_ext >&5
47153
47154 ac_cv_type_size_t=no
47155 fi
47156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47157 fi
47158 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47159 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47160 if test $ac_cv_type_size_t = yes; then
47161   :
47162 else
47163
47164 cat >>confdefs.h <<_ACEOF
47165 #define size_t unsigned
47166 _ACEOF
47167
47168 fi
47169
47170
47171 echo "$as_me:$LINENO: checking for ssize_t" >&5
47172 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47173 if test "${ac_cv_type_ssize_t+set}" = set; then
47174   echo $ECHO_N "(cached) $ECHO_C" >&6
47175 else
47176   cat >conftest.$ac_ext <<_ACEOF
47177 /* confdefs.h.  */
47178 _ACEOF
47179 cat confdefs.h >>conftest.$ac_ext
47180 cat >>conftest.$ac_ext <<_ACEOF
47181 /* end confdefs.h.  */
47182 $ac_includes_default
47183 int
47184 main ()
47185 {
47186 if ((ssize_t *) 0)
47187   return 0;
47188 if (sizeof (ssize_t))
47189   return 0;
47190   ;
47191   return 0;
47192 }
47193 _ACEOF
47194 rm -f conftest.$ac_objext
47195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47196   (eval $ac_compile) 2>conftest.er1
47197   ac_status=$?
47198   grep -v '^ *+' conftest.er1 >conftest.err
47199   rm -f conftest.er1
47200   cat conftest.err >&5
47201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47202   (exit $ac_status); } &&
47203          { ac_try='test -z "$ac_c_werror_flag"
47204                          || test ! -s conftest.err'
47205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47206   (eval $ac_try) 2>&5
47207   ac_status=$?
47208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47209   (exit $ac_status); }; } &&
47210          { ac_try='test -s conftest.$ac_objext'
47211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47212   (eval $ac_try) 2>&5
47213   ac_status=$?
47214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47215   (exit $ac_status); }; }; then
47216   ac_cv_type_ssize_t=yes
47217 else
47218   echo "$as_me: failed program was:" >&5
47219 sed 's/^/| /' conftest.$ac_ext >&5
47220
47221 ac_cv_type_ssize_t=no
47222 fi
47223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47224 fi
47225 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47226 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47227 if test $ac_cv_type_ssize_t = yes; then
47228   :
47229 else
47230
47231 cat >>confdefs.h <<_ACEOF
47232 #define ssize_t signed int
47233 _ACEOF
47234
47235 fi
47236
47237 echo "$as_me:$LINENO: checking for caddr_t" >&5
47238 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47239 if test "${ac_cv_type_caddr_t+set}" = set; then
47240   echo $ECHO_N "(cached) $ECHO_C" >&6
47241 else
47242   cat >conftest.$ac_ext <<_ACEOF
47243 /* confdefs.h.  */
47244 _ACEOF
47245 cat confdefs.h >>conftest.$ac_ext
47246 cat >>conftest.$ac_ext <<_ACEOF
47247 /* end confdefs.h.  */
47248 $ac_includes_default
47249 int
47250 main ()
47251 {
47252 if ((caddr_t *) 0)
47253   return 0;
47254 if (sizeof (caddr_t))
47255   return 0;
47256   ;
47257   return 0;
47258 }
47259 _ACEOF
47260 rm -f conftest.$ac_objext
47261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47262   (eval $ac_compile) 2>conftest.er1
47263   ac_status=$?
47264   grep -v '^ *+' conftest.er1 >conftest.err
47265   rm -f conftest.er1
47266   cat conftest.err >&5
47267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47268   (exit $ac_status); } &&
47269          { ac_try='test -z "$ac_c_werror_flag"
47270                          || test ! -s conftest.err'
47271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47272   (eval $ac_try) 2>&5
47273   ac_status=$?
47274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47275   (exit $ac_status); }; } &&
47276          { ac_try='test -s conftest.$ac_objext'
47277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47278   (eval $ac_try) 2>&5
47279   ac_status=$?
47280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47281   (exit $ac_status); }; }; then
47282   ac_cv_type_caddr_t=yes
47283 else
47284   echo "$as_me: failed program was:" >&5
47285 sed 's/^/| /' conftest.$ac_ext >&5
47286
47287 ac_cv_type_caddr_t=no
47288 fi
47289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47290 fi
47291 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47292 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47293 if test $ac_cv_type_caddr_t = yes; then
47294   :
47295 else
47296
47297 cat >>confdefs.h <<_ACEOF
47298 #define caddr_t char *
47299 _ACEOF
47300
47301 fi
47302
47303
47304 echo "$as_me:$LINENO: checking for socklen_t" >&5
47305 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47306 if test "${ol_cv_type_socklen_t+set}" = set; then
47307   echo $ECHO_N "(cached) $ECHO_C" >&6
47308 else
47309   cat >conftest.$ac_ext <<_ACEOF
47310 /* confdefs.h.  */
47311 _ACEOF
47312 cat confdefs.h >>conftest.$ac_ext
47313 cat >>conftest.$ac_ext <<_ACEOF
47314 /* end confdefs.h.  */
47315
47316 #ifdef HAVE_SYS_TYPES_H
47317 #include <sys/types.h>
47318 #endif
47319 #ifdef HAVE_SYS_SOCKET_H
47320 #include <sys/socket.h>
47321 #endif
47322
47323 int
47324 main ()
47325 {
47326 socklen_t len;
47327   ;
47328   return 0;
47329 }
47330 _ACEOF
47331 rm -f conftest.$ac_objext
47332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47333   (eval $ac_compile) 2>conftest.er1
47334   ac_status=$?
47335   grep -v '^ *+' conftest.er1 >conftest.err
47336   rm -f conftest.er1
47337   cat conftest.err >&5
47338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47339   (exit $ac_status); } &&
47340          { ac_try='test -z "$ac_c_werror_flag"
47341                          || test ! -s conftest.err'
47342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47343   (eval $ac_try) 2>&5
47344   ac_status=$?
47345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47346   (exit $ac_status); }; } &&
47347          { ac_try='test -s conftest.$ac_objext'
47348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47349   (eval $ac_try) 2>&5
47350   ac_status=$?
47351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47352   (exit $ac_status); }; }; then
47353   ol_cv_type_socklen_t=yes
47354 else
47355   echo "$as_me: failed program was:" >&5
47356 sed 's/^/| /' conftest.$ac_ext >&5
47357
47358 ol_cv_type_socklen_t=no
47359 fi
47360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47361 fi
47362 echo "$as_me:$LINENO: result: $ol_cv_type_socklen_t" >&5
47363 echo "${ECHO_T}$ol_cv_type_socklen_t" >&6
47364   if test $ol_cv_type_socklen_t = no; then
47365
47366 cat >>confdefs.h <<\_ACEOF
47367 #define socklen_t int
47368 _ACEOF
47369
47370   fi
47371
47372
47373 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
47374 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
47375 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
47376   echo $ECHO_N "(cached) $ECHO_C" >&6
47377 else
47378   cat >conftest.$ac_ext <<_ACEOF
47379 /* confdefs.h.  */
47380 _ACEOF
47381 cat confdefs.h >>conftest.$ac_ext
47382 cat >>conftest.$ac_ext <<_ACEOF
47383 /* end confdefs.h.  */
47384 $ac_includes_default
47385 int
47386 main ()
47387 {
47388 static struct stat ac_aggr;
47389 if (ac_aggr.st_blksize)
47390 return 0;
47391   ;
47392   return 0;
47393 }
47394 _ACEOF
47395 rm -f conftest.$ac_objext
47396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47397   (eval $ac_compile) 2>conftest.er1
47398   ac_status=$?
47399   grep -v '^ *+' conftest.er1 >conftest.err
47400   rm -f conftest.er1
47401   cat conftest.err >&5
47402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47403   (exit $ac_status); } &&
47404          { ac_try='test -z "$ac_c_werror_flag"
47405                          || test ! -s conftest.err'
47406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47407   (eval $ac_try) 2>&5
47408   ac_status=$?
47409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47410   (exit $ac_status); }; } &&
47411          { ac_try='test -s conftest.$ac_objext'
47412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47413   (eval $ac_try) 2>&5
47414   ac_status=$?
47415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47416   (exit $ac_status); }; }; then
47417   ac_cv_member_struct_stat_st_blksize=yes
47418 else
47419   echo "$as_me: failed program was:" >&5
47420 sed 's/^/| /' conftest.$ac_ext >&5
47421
47422 cat >conftest.$ac_ext <<_ACEOF
47423 /* confdefs.h.  */
47424 _ACEOF
47425 cat confdefs.h >>conftest.$ac_ext
47426 cat >>conftest.$ac_ext <<_ACEOF
47427 /* end confdefs.h.  */
47428 $ac_includes_default
47429 int
47430 main ()
47431 {
47432 static struct stat ac_aggr;
47433 if (sizeof ac_aggr.st_blksize)
47434 return 0;
47435   ;
47436   return 0;
47437 }
47438 _ACEOF
47439 rm -f conftest.$ac_objext
47440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47441   (eval $ac_compile) 2>conftest.er1
47442   ac_status=$?
47443   grep -v '^ *+' conftest.er1 >conftest.err
47444   rm -f conftest.er1
47445   cat conftest.err >&5
47446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47447   (exit $ac_status); } &&
47448          { ac_try='test -z "$ac_c_werror_flag"
47449                          || test ! -s conftest.err'
47450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47451   (eval $ac_try) 2>&5
47452   ac_status=$?
47453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47454   (exit $ac_status); }; } &&
47455          { ac_try='test -s conftest.$ac_objext'
47456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47457   (eval $ac_try) 2>&5
47458   ac_status=$?
47459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47460   (exit $ac_status); }; }; then
47461   ac_cv_member_struct_stat_st_blksize=yes
47462 else
47463   echo "$as_me: failed program was:" >&5
47464 sed 's/^/| /' conftest.$ac_ext >&5
47465
47466 ac_cv_member_struct_stat_st_blksize=no
47467 fi
47468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47469 fi
47470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47471 fi
47472 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
47473 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
47474 if test $ac_cv_member_struct_stat_st_blksize = yes; then
47475
47476 cat >>confdefs.h <<_ACEOF
47477 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
47478 _ACEOF
47479
47480
47481 cat >>confdefs.h <<\_ACEOF
47482 #define HAVE_ST_BLKSIZE 1
47483 _ACEOF
47484
47485 fi
47486
47487
47488 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47489 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47490 if test "${ac_cv_header_time+set}" = set; then
47491   echo $ECHO_N "(cached) $ECHO_C" >&6
47492 else
47493   cat >conftest.$ac_ext <<_ACEOF
47494 /* confdefs.h.  */
47495 _ACEOF
47496 cat confdefs.h >>conftest.$ac_ext
47497 cat >>conftest.$ac_ext <<_ACEOF
47498 /* end confdefs.h.  */
47499 #include <sys/types.h>
47500 #include <sys/time.h>
47501 #include <time.h>
47502
47503 int
47504 main ()
47505 {
47506 if ((struct tm *) 0)
47507 return 0;
47508   ;
47509   return 0;
47510 }
47511 _ACEOF
47512 rm -f conftest.$ac_objext
47513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47514   (eval $ac_compile) 2>conftest.er1
47515   ac_status=$?
47516   grep -v '^ *+' conftest.er1 >conftest.err
47517   rm -f conftest.er1
47518   cat conftest.err >&5
47519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47520   (exit $ac_status); } &&
47521          { ac_try='test -z "$ac_c_werror_flag"
47522                          || test ! -s conftest.err'
47523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47524   (eval $ac_try) 2>&5
47525   ac_status=$?
47526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47527   (exit $ac_status); }; } &&
47528          { ac_try='test -s conftest.$ac_objext'
47529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47530   (eval $ac_try) 2>&5
47531   ac_status=$?
47532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47533   (exit $ac_status); }; }; then
47534   ac_cv_header_time=yes
47535 else
47536   echo "$as_me: failed program was:" >&5
47537 sed 's/^/| /' conftest.$ac_ext >&5
47538
47539 ac_cv_header_time=no
47540 fi
47541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47542 fi
47543 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
47544 echo "${ECHO_T}$ac_cv_header_time" >&6
47545 if test $ac_cv_header_time = yes; then
47546
47547 cat >>confdefs.h <<\_ACEOF
47548 #define TIME_WITH_SYS_TIME 1
47549 _ACEOF
47550
47551 fi
47552
47553 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
47554 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
47555 if test "${ac_cv_struct_tm+set}" = set; then
47556   echo $ECHO_N "(cached) $ECHO_C" >&6
47557 else
47558   cat >conftest.$ac_ext <<_ACEOF
47559 /* confdefs.h.  */
47560 _ACEOF
47561 cat confdefs.h >>conftest.$ac_ext
47562 cat >>conftest.$ac_ext <<_ACEOF
47563 /* end confdefs.h.  */
47564 #include <sys/types.h>
47565 #include <time.h>
47566
47567 int
47568 main ()
47569 {
47570 struct tm *tp; tp->tm_sec;
47571   ;
47572   return 0;
47573 }
47574 _ACEOF
47575 rm -f conftest.$ac_objext
47576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47577   (eval $ac_compile) 2>conftest.er1
47578   ac_status=$?
47579   grep -v '^ *+' conftest.er1 >conftest.err
47580   rm -f conftest.er1
47581   cat conftest.err >&5
47582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47583   (exit $ac_status); } &&
47584          { ac_try='test -z "$ac_c_werror_flag"
47585                          || test ! -s conftest.err'
47586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47587   (eval $ac_try) 2>&5
47588   ac_status=$?
47589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47590   (exit $ac_status); }; } &&
47591          { ac_try='test -s conftest.$ac_objext'
47592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47593   (eval $ac_try) 2>&5
47594   ac_status=$?
47595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47596   (exit $ac_status); }; }; then
47597   ac_cv_struct_tm=time.h
47598 else
47599   echo "$as_me: failed program was:" >&5
47600 sed 's/^/| /' conftest.$ac_ext >&5
47601
47602 ac_cv_struct_tm=sys/time.h
47603 fi
47604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47605 fi
47606 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
47607 echo "${ECHO_T}$ac_cv_struct_tm" >&6
47608 if test $ac_cv_struct_tm = sys/time.h; then
47609
47610 cat >>confdefs.h <<\_ACEOF
47611 #define TM_IN_SYS_TIME 1
47612 _ACEOF
47613
47614 fi
47615
47616 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47617 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47618 if test "${ac_cv_type_uid_t+set}" = set; then
47619   echo $ECHO_N "(cached) $ECHO_C" >&6
47620 else
47621   cat >conftest.$ac_ext <<_ACEOF
47622 /* confdefs.h.  */
47623 _ACEOF
47624 cat confdefs.h >>conftest.$ac_ext
47625 cat >>conftest.$ac_ext <<_ACEOF
47626 /* end confdefs.h.  */
47627 #include <sys/types.h>
47628
47629 _ACEOF
47630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47631   $EGREP "uid_t" >/dev/null 2>&1; then
47632   ac_cv_type_uid_t=yes
47633 else
47634   ac_cv_type_uid_t=no
47635 fi
47636 rm -f conftest*
47637
47638 fi
47639 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47640 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47641 if test $ac_cv_type_uid_t = no; then
47642
47643 cat >>confdefs.h <<\_ACEOF
47644 #define uid_t int
47645 _ACEOF
47646
47647
47648 cat >>confdefs.h <<\_ACEOF
47649 #define gid_t int
47650 _ACEOF
47651
47652 fi
47653
47654 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47655 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47656 if test "${ol_cv_type_sig_atomic_t+set}" = set; then
47657   echo $ECHO_N "(cached) $ECHO_C" >&6
47658 else
47659   cat >conftest.$ac_ext <<_ACEOF
47660 /* confdefs.h.  */
47661 _ACEOF
47662 cat confdefs.h >>conftest.$ac_ext
47663 cat >>conftest.$ac_ext <<_ACEOF
47664 /* end confdefs.h.  */
47665 #include <signal.h>
47666 int
47667 main ()
47668 {
47669 sig_atomic_t atomic;
47670   ;
47671   return 0;
47672 }
47673 _ACEOF
47674 rm -f conftest.$ac_objext
47675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47676   (eval $ac_compile) 2>conftest.er1
47677   ac_status=$?
47678   grep -v '^ *+' conftest.er1 >conftest.err
47679   rm -f conftest.er1
47680   cat conftest.err >&5
47681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47682   (exit $ac_status); } &&
47683          { ac_try='test -z "$ac_c_werror_flag"
47684                          || test ! -s conftest.err'
47685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47686   (eval $ac_try) 2>&5
47687   ac_status=$?
47688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47689   (exit $ac_status); }; } &&
47690          { ac_try='test -s conftest.$ac_objext'
47691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47692   (eval $ac_try) 2>&5
47693   ac_status=$?
47694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47695   (exit $ac_status); }; }; then
47696   ol_cv_type_sig_atomic_t=yes
47697 else
47698   echo "$as_me: failed program was:" >&5
47699 sed 's/^/| /' conftest.$ac_ext >&5
47700
47701 ol_cv_type_sig_atomic_t=no
47702 fi
47703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47704 fi
47705 echo "$as_me:$LINENO: result: $ol_cv_type_sig_atomic_t" >&5
47706 echo "${ECHO_T}$ol_cv_type_sig_atomic_t" >&6
47707   if test $ol_cv_type_sig_atomic_t = no; then
47708
47709 cat >>confdefs.h <<\_ACEOF
47710 #define sig_atomic_t int
47711 _ACEOF
47712
47713   fi
47714
47715
47716
47717 # test for pw_gecos in struct passwd
47718 echo "$as_me:$LINENO: checking struct passwd for pw_gecos" >&5
47719 echo $ECHO_N "checking struct passwd for pw_gecos... $ECHO_C" >&6
47720 if test "${ol_cv_struct_passwd_pw_gecos+set}" = set; then
47721   echo $ECHO_N "(cached) $ECHO_C" >&6
47722 else
47723
47724         cat >conftest.$ac_ext <<_ACEOF
47725 /* confdefs.h.  */
47726 _ACEOF
47727 cat confdefs.h >>conftest.$ac_ext
47728 cat >>conftest.$ac_ext <<_ACEOF
47729 /* end confdefs.h.  */
47730 #include <pwd.h>
47731 int
47732 main ()
47733 {
47734
47735         struct passwd pwd;
47736         pwd.pw_gecos = pwd.pw_name;
47737
47738   ;
47739   return 0;
47740 }
47741 _ACEOF
47742 rm -f conftest.$ac_objext
47743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47744   (eval $ac_compile) 2>conftest.er1
47745   ac_status=$?
47746   grep -v '^ *+' conftest.er1 >conftest.err
47747   rm -f conftest.er1
47748   cat conftest.err >&5
47749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47750   (exit $ac_status); } &&
47751          { ac_try='test -z "$ac_c_werror_flag"
47752                          || test ! -s conftest.err'
47753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47754   (eval $ac_try) 2>&5
47755   ac_status=$?
47756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47757   (exit $ac_status); }; } &&
47758          { ac_try='test -s conftest.$ac_objext'
47759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47760   (eval $ac_try) 2>&5
47761   ac_status=$?
47762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47763   (exit $ac_status); }; }; then
47764   ol_cv_struct_passwd_pw_gecos=yes
47765 else
47766   echo "$as_me: failed program was:" >&5
47767 sed 's/^/| /' conftest.$ac_ext >&5
47768
47769 ol_cv_struct_passwd_pw_gecos=no
47770 fi
47771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47772 fi
47773 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_gecos" >&5
47774 echo "${ECHO_T}$ol_cv_struct_passwd_pw_gecos" >&6
47775 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
47776
47777 cat >>confdefs.h <<\_ACEOF
47778 #define HAVE_PW_GECOS 1
47779 _ACEOF
47780
47781 fi
47782
47783 # test for pw_passwd in struct passwd
47784 echo "$as_me:$LINENO: checking struct passwd for pw_passwd" >&5
47785 echo $ECHO_N "checking struct passwd for pw_passwd... $ECHO_C" >&6
47786 if test "${ol_cv_struct_passwd_pw_passwd+set}" = set; then
47787   echo $ECHO_N "(cached) $ECHO_C" >&6
47788 else
47789
47790         cat >conftest.$ac_ext <<_ACEOF
47791 /* confdefs.h.  */
47792 _ACEOF
47793 cat confdefs.h >>conftest.$ac_ext
47794 cat >>conftest.$ac_ext <<_ACEOF
47795 /* end confdefs.h.  */
47796 #include <pwd.h>
47797 int
47798 main ()
47799 {
47800
47801         struct passwd pwd;
47802         pwd.pw_passwd = pwd.pw_name;
47803
47804   ;
47805   return 0;
47806 }
47807 _ACEOF
47808 rm -f conftest.$ac_objext
47809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47810   (eval $ac_compile) 2>conftest.er1
47811   ac_status=$?
47812   grep -v '^ *+' conftest.er1 >conftest.err
47813   rm -f conftest.er1
47814   cat conftest.err >&5
47815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47816   (exit $ac_status); } &&
47817          { ac_try='test -z "$ac_c_werror_flag"
47818                          || test ! -s conftest.err'
47819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47820   (eval $ac_try) 2>&5
47821   ac_status=$?
47822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47823   (exit $ac_status); }; } &&
47824          { ac_try='test -s conftest.$ac_objext'
47825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47826   (eval $ac_try) 2>&5
47827   ac_status=$?
47828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47829   (exit $ac_status); }; }; then
47830   ol_cv_struct_passwd_pw_passwd=yes
47831 else
47832   echo "$as_me: failed program was:" >&5
47833 sed 's/^/| /' conftest.$ac_ext >&5
47834
47835 ol_cv_struct_passwd_pw_passwd=no
47836 fi
47837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47838 fi
47839 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_passwd" >&5
47840 echo "${ECHO_T}$ol_cv_struct_passwd_pw_passwd" >&6
47841 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
47842
47843 cat >>confdefs.h <<\_ACEOF
47844 #define HAVE_PW_PASSWD 1
47845 _ACEOF
47846
47847 fi
47848
47849
47850 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
47851 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
47852 if test "${ol_cv_c_upper_lower+set}" = set; then
47853   echo $ECHO_N "(cached) $ECHO_C" >&6
47854 else
47855
47856         if test "$cross_compiling" = yes; then
47857   ol_cv_c_upper_lower=safe
47858 else
47859   cat >conftest.$ac_ext <<_ACEOF
47860 /* confdefs.h.  */
47861 _ACEOF
47862 cat confdefs.h >>conftest.$ac_ext
47863 cat >>conftest.$ac_ext <<_ACEOF
47864 /* end confdefs.h.  */
47865
47866 #include <ctype.h>
47867 main()
47868 {
47869         if ('C' == toupper('C'))
47870                 exit(0);
47871         else
47872                 exit(1);
47873 }
47874 _ACEOF
47875 rm -f conftest$ac_exeext
47876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47877   (eval $ac_link) 2>&5
47878   ac_status=$?
47879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47880   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47882   (eval $ac_try) 2>&5
47883   ac_status=$?
47884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47885   (exit $ac_status); }; }; then
47886   ol_cv_c_upper_lower=no
47887 else
47888   echo "$as_me: program exited with status $ac_status" >&5
47889 echo "$as_me: failed program was:" >&5
47890 sed 's/^/| /' conftest.$ac_ext >&5
47891
47892 ( exit $ac_status )
47893 ol_cv_c_upper_lower=yes
47894 fi
47895 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47896 fi
47897 fi
47898 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
47899 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
47900 if test $ol_cv_c_upper_lower != no ; then
47901
47902 cat >>confdefs.h <<\_ACEOF
47903 #define C_UPPER_LOWER 1
47904 _ACEOF
47905
47906 fi
47907
47908 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
47909 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
47910 if test "${ac_cv_c_const+set}" = set; then
47911   echo $ECHO_N "(cached) $ECHO_C" >&6
47912 else
47913   cat >conftest.$ac_ext <<_ACEOF
47914 /* confdefs.h.  */
47915 _ACEOF
47916 cat confdefs.h >>conftest.$ac_ext
47917 cat >>conftest.$ac_ext <<_ACEOF
47918 /* end confdefs.h.  */
47919
47920 int
47921 main ()
47922 {
47923 /* FIXME: Include the comments suggested by Paul. */
47924 #ifndef __cplusplus
47925   /* Ultrix mips cc rejects this.  */
47926   typedef int charset[2];
47927   const charset x;
47928   /* SunOS 4.1.1 cc rejects this.  */
47929   char const *const *ccp;
47930   char **p;
47931   /* NEC SVR4.0.2 mips cc rejects this.  */
47932   struct point {int x, y;};
47933   static struct point const zero = {0,0};
47934   /* AIX XL C 1.02.0.0 rejects this.
47935      It does not let you subtract one const X* pointer from another in
47936      an arm of an if-expression whose if-part is not a constant
47937      expression */
47938   const char *g = "string";
47939   ccp = &g + (g ? g-g : 0);
47940   /* HPUX 7.0 cc rejects these. */
47941   ++ccp;
47942   p = (char**) ccp;
47943   ccp = (char const *const *) p;
47944   { /* SCO 3.2v4 cc rejects this.  */
47945     char *t;
47946     char const *s = 0 ? (char *) 0 : (char const *) 0;
47947
47948     *t++ = 0;
47949   }
47950   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
47951     int x[] = {25, 17};
47952     const int *foo = &x[0];
47953     ++foo;
47954   }
47955   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
47956     typedef const int *iptr;
47957     iptr p = 0;
47958     ++p;
47959   }
47960   { /* AIX XL C 1.02.0.0 rejects this saying
47961        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
47962     struct s { int j; const int *ap[3]; };
47963     struct s *b; b->j = 5;
47964   }
47965   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
47966     const int foo = 10;
47967   }
47968 #endif
47969
47970   ;
47971   return 0;
47972 }
47973 _ACEOF
47974 rm -f conftest.$ac_objext
47975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47976   (eval $ac_compile) 2>conftest.er1
47977   ac_status=$?
47978   grep -v '^ *+' conftest.er1 >conftest.err
47979   rm -f conftest.er1
47980   cat conftest.err >&5
47981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47982   (exit $ac_status); } &&
47983          { ac_try='test -z "$ac_c_werror_flag"
47984                          || test ! -s conftest.err'
47985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47986   (eval $ac_try) 2>&5
47987   ac_status=$?
47988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47989   (exit $ac_status); }; } &&
47990          { ac_try='test -s conftest.$ac_objext'
47991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47992   (eval $ac_try) 2>&5
47993   ac_status=$?
47994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47995   (exit $ac_status); }; }; then
47996   ac_cv_c_const=yes
47997 else
47998   echo "$as_me: failed program was:" >&5
47999 sed 's/^/| /' conftest.$ac_ext >&5
48000
48001 ac_cv_c_const=no
48002 fi
48003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48004 fi
48005 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48006 echo "${ECHO_T}$ac_cv_c_const" >&6
48007 if test $ac_cv_c_const = no; then
48008
48009 cat >>confdefs.h <<\_ACEOF
48010 #define const
48011 _ACEOF
48012
48013 fi
48014
48015 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48016 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48017 if test "${ol_cv_c_volatile+set}" = set; then
48018   echo $ECHO_N "(cached) $ECHO_C" >&6
48019 else
48020   cat >conftest.$ac_ext <<_ACEOF
48021 /* confdefs.h.  */
48022 _ACEOF
48023 cat confdefs.h >>conftest.$ac_ext
48024 cat >>conftest.$ac_ext <<_ACEOF
48025 /* end confdefs.h.  */
48026 int x, y, z;
48027 int
48028 main ()
48029 {
48030 volatile int a; int * volatile b = x ? &y : &z;
48031       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48032       *b = 0;
48033   ;
48034   return 0;
48035 }
48036 _ACEOF
48037 rm -f conftest.$ac_objext
48038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48039   (eval $ac_compile) 2>conftest.er1
48040   ac_status=$?
48041   grep -v '^ *+' conftest.er1 >conftest.err
48042   rm -f conftest.er1
48043   cat conftest.err >&5
48044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48045   (exit $ac_status); } &&
48046          { ac_try='test -z "$ac_c_werror_flag"
48047                          || test ! -s conftest.err'
48048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48049   (eval $ac_try) 2>&5
48050   ac_status=$?
48051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48052   (exit $ac_status); }; } &&
48053          { ac_try='test -s conftest.$ac_objext'
48054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48055   (eval $ac_try) 2>&5
48056   ac_status=$?
48057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48058   (exit $ac_status); }; }; then
48059   ol_cv_c_volatile=yes
48060 else
48061   echo "$as_me: failed program was:" >&5
48062 sed 's/^/| /' conftest.$ac_ext >&5
48063
48064 ol_cv_c_volatile=no
48065 fi
48066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48067 fi
48068 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48069 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48070   if test $ol_cv_c_volatile = yes; then
48071     :
48072   else
48073
48074 cat >>confdefs.h <<\_ACEOF
48075 #define volatile
48076 _ACEOF
48077
48078   fi
48079
48080
48081 if test $cross_compiling = yes ; then
48082         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48083 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48084
48085 cat >>confdefs.h <<\_ACEOF
48086 #define CROSS_COMPILING 1
48087 _ACEOF
48088
48089 else
48090         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48091 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48092 if test "${ac_cv_c_bigendian+set}" = set; then
48093   echo $ECHO_N "(cached) $ECHO_C" >&6
48094 else
48095   # See if sys/param.h defines the BYTE_ORDER macro.
48096 cat >conftest.$ac_ext <<_ACEOF
48097 /* confdefs.h.  */
48098 _ACEOF
48099 cat confdefs.h >>conftest.$ac_ext
48100 cat >>conftest.$ac_ext <<_ACEOF
48101 /* end confdefs.h.  */
48102 #include <sys/types.h>
48103 #include <sys/param.h>
48104
48105 int
48106 main ()
48107 {
48108 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48109  bogus endian macros
48110 #endif
48111
48112   ;
48113   return 0;
48114 }
48115 _ACEOF
48116 rm -f conftest.$ac_objext
48117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48118   (eval $ac_compile) 2>conftest.er1
48119   ac_status=$?
48120   grep -v '^ *+' conftest.er1 >conftest.err
48121   rm -f conftest.er1
48122   cat conftest.err >&5
48123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48124   (exit $ac_status); } &&
48125          { ac_try='test -z "$ac_c_werror_flag"
48126                          || test ! -s conftest.err'
48127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48128   (eval $ac_try) 2>&5
48129   ac_status=$?
48130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48131   (exit $ac_status); }; } &&
48132          { ac_try='test -s conftest.$ac_objext'
48133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48134   (eval $ac_try) 2>&5
48135   ac_status=$?
48136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48137   (exit $ac_status); }; }; then
48138   # It does; now see whether it defined to BIG_ENDIAN or not.
48139 cat >conftest.$ac_ext <<_ACEOF
48140 /* confdefs.h.  */
48141 _ACEOF
48142 cat confdefs.h >>conftest.$ac_ext
48143 cat >>conftest.$ac_ext <<_ACEOF
48144 /* end confdefs.h.  */
48145 #include <sys/types.h>
48146 #include <sys/param.h>
48147
48148 int
48149 main ()
48150 {
48151 #if BYTE_ORDER != BIG_ENDIAN
48152  not big endian
48153 #endif
48154
48155   ;
48156   return 0;
48157 }
48158 _ACEOF
48159 rm -f conftest.$ac_objext
48160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48161   (eval $ac_compile) 2>conftest.er1
48162   ac_status=$?
48163   grep -v '^ *+' conftest.er1 >conftest.err
48164   rm -f conftest.er1
48165   cat conftest.err >&5
48166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48167   (exit $ac_status); } &&
48168          { ac_try='test -z "$ac_c_werror_flag"
48169                          || test ! -s conftest.err'
48170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48171   (eval $ac_try) 2>&5
48172   ac_status=$?
48173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48174   (exit $ac_status); }; } &&
48175          { ac_try='test -s conftest.$ac_objext'
48176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48177   (eval $ac_try) 2>&5
48178   ac_status=$?
48179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48180   (exit $ac_status); }; }; then
48181   ac_cv_c_bigendian=yes
48182 else
48183   echo "$as_me: failed program was:" >&5
48184 sed 's/^/| /' conftest.$ac_ext >&5
48185
48186 ac_cv_c_bigendian=no
48187 fi
48188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48189 else
48190   echo "$as_me: failed program was:" >&5
48191 sed 's/^/| /' conftest.$ac_ext >&5
48192
48193 # It does not; compile a test program.
48194 if test "$cross_compiling" = yes; then
48195   # try to guess the endianness by grepping values into an object file
48196   ac_cv_c_bigendian=unknown
48197   cat >conftest.$ac_ext <<_ACEOF
48198 /* confdefs.h.  */
48199 _ACEOF
48200 cat confdefs.h >>conftest.$ac_ext
48201 cat >>conftest.$ac_ext <<_ACEOF
48202 /* end confdefs.h.  */
48203 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48204 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48205 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48206 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48207 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48208 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48209 int
48210 main ()
48211 {
48212  _ascii (); _ebcdic ();
48213   ;
48214   return 0;
48215 }
48216 _ACEOF
48217 rm -f conftest.$ac_objext
48218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48219   (eval $ac_compile) 2>conftest.er1
48220   ac_status=$?
48221   grep -v '^ *+' conftest.er1 >conftest.err
48222   rm -f conftest.er1
48223   cat conftest.err >&5
48224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48225   (exit $ac_status); } &&
48226          { ac_try='test -z "$ac_c_werror_flag"
48227                          || test ! -s conftest.err'
48228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48229   (eval $ac_try) 2>&5
48230   ac_status=$?
48231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48232   (exit $ac_status); }; } &&
48233          { ac_try='test -s conftest.$ac_objext'
48234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48235   (eval $ac_try) 2>&5
48236   ac_status=$?
48237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48238   (exit $ac_status); }; }; then
48239   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48240   ac_cv_c_bigendian=yes
48241 fi
48242 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48243   if test "$ac_cv_c_bigendian" = unknown; then
48244     ac_cv_c_bigendian=no
48245   else
48246     # finding both strings is unlikely to happen, but who knows?
48247     ac_cv_c_bigendian=unknown
48248   fi
48249 fi
48250 else
48251   echo "$as_me: failed program was:" >&5
48252 sed 's/^/| /' conftest.$ac_ext >&5
48253
48254 fi
48255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48256 else
48257   cat >conftest.$ac_ext <<_ACEOF
48258 /* confdefs.h.  */
48259 _ACEOF
48260 cat confdefs.h >>conftest.$ac_ext
48261 cat >>conftest.$ac_ext <<_ACEOF
48262 /* end confdefs.h.  */
48263 int
48264 main ()
48265 {
48266   /* Are we little or big endian?  From Harbison&Steele.  */
48267   union
48268   {
48269     long l;
48270     char c[sizeof (long)];
48271   } u;
48272   u.l = 1;
48273   exit (u.c[sizeof (long) - 1] == 1);
48274 }
48275 _ACEOF
48276 rm -f conftest$ac_exeext
48277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48278   (eval $ac_link) 2>&5
48279   ac_status=$?
48280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48281   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48283   (eval $ac_try) 2>&5
48284   ac_status=$?
48285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48286   (exit $ac_status); }; }; then
48287   ac_cv_c_bigendian=no
48288 else
48289   echo "$as_me: program exited with status $ac_status" >&5
48290 echo "$as_me: failed program was:" >&5
48291 sed 's/^/| /' conftest.$ac_ext >&5
48292
48293 ( exit $ac_status )
48294 ac_cv_c_bigendian=yes
48295 fi
48296 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48297 fi
48298 fi
48299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48300 fi
48301 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48302 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48303 case $ac_cv_c_bigendian in
48304   yes)
48305
48306 cat >>confdefs.h <<\_ACEOF
48307 #define WORDS_BIGENDIAN 1
48308 _ACEOF
48309  ;;
48310   no)
48311      ;;
48312   *)
48313     { { echo "$as_me:$LINENO: error: unknown endianness
48314 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48315 echo "$as_me: error: unknown endianness
48316 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48317    { (exit 1); exit 1; }; } ;;
48318 esac
48319
48320 fi
48321
48322 echo "$as_me:$LINENO: checking size of short" >&5
48323 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48324 if test "${ac_cv_sizeof_short+set}" = set; then
48325   echo $ECHO_N "(cached) $ECHO_C" >&6
48326 else
48327   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48328   cat >conftest.$ac_ext <<_ACEOF
48329 /* confdefs.h.  */
48330 _ACEOF
48331 cat confdefs.h >>conftest.$ac_ext
48332 cat >>conftest.$ac_ext <<_ACEOF
48333 /* end confdefs.h.  */
48334 #include "confdefs.h"
48335 #include <stdlib.h>
48336 #include <sys/types.h>
48337
48338
48339 int
48340 main ()
48341 {
48342 switch (0) case 0: case (sizeof (short) == $ac_size):;
48343   ;
48344   return 0;
48345 }
48346 _ACEOF
48347 rm -f conftest.$ac_objext
48348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48349   (eval $ac_compile) 2>conftest.er1
48350   ac_status=$?
48351   grep -v '^ *+' conftest.er1 >conftest.err
48352   rm -f conftest.er1
48353   cat conftest.err >&5
48354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48355   (exit $ac_status); } &&
48356          { ac_try='test -z "$ac_c_werror_flag"
48357                          || test ! -s conftest.err'
48358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48359   (eval $ac_try) 2>&5
48360   ac_status=$?
48361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48362   (exit $ac_status); }; } &&
48363          { ac_try='test -s conftest.$ac_objext'
48364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48365   (eval $ac_try) 2>&5
48366   ac_status=$?
48367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48368   (exit $ac_status); }; }; then
48369   ac_cv_sizeof_short=$ac_size
48370 else
48371   echo "$as_me: failed program was:" >&5
48372 sed 's/^/| /' conftest.$ac_ext >&5
48373
48374 fi
48375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48376   if test x$ac_cv_sizeof_short != x ; then break; fi
48377 done
48378
48379 fi
48380
48381 if test x$ac_cv_sizeof_short = x ; then
48382   { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
48383 echo "$as_me: error: cannot determine a size for short" >&2;}
48384    { (exit 1); exit 1; }; }
48385 fi
48386 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
48387 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
48388
48389 cat >>confdefs.h <<_ACEOF
48390 #define SIZEOF_SHORT $ac_cv_sizeof_short
48391 _ACEOF
48392
48393
48394 echo "$as_me:$LINENO: checking size of int" >&5
48395 echo $ECHO_N "checking size of int... $ECHO_C" >&6
48396 if test "${ac_cv_sizeof_int+set}" = set; then
48397   echo $ECHO_N "(cached) $ECHO_C" >&6
48398 else
48399   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48400   cat >conftest.$ac_ext <<_ACEOF
48401 /* confdefs.h.  */
48402 _ACEOF
48403 cat confdefs.h >>conftest.$ac_ext
48404 cat >>conftest.$ac_ext <<_ACEOF
48405 /* end confdefs.h.  */
48406 #include "confdefs.h"
48407 #include <stdlib.h>
48408 #include <sys/types.h>
48409
48410
48411 int
48412 main ()
48413 {
48414 switch (0) case 0: case (sizeof (int) == $ac_size):;
48415   ;
48416   return 0;
48417 }
48418 _ACEOF
48419 rm -f conftest.$ac_objext
48420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48421   (eval $ac_compile) 2>conftest.er1
48422   ac_status=$?
48423   grep -v '^ *+' conftest.er1 >conftest.err
48424   rm -f conftest.er1
48425   cat conftest.err >&5
48426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48427   (exit $ac_status); } &&
48428          { ac_try='test -z "$ac_c_werror_flag"
48429                          || test ! -s conftest.err'
48430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48431   (eval $ac_try) 2>&5
48432   ac_status=$?
48433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48434   (exit $ac_status); }; } &&
48435          { ac_try='test -s conftest.$ac_objext'
48436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48437   (eval $ac_try) 2>&5
48438   ac_status=$?
48439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48440   (exit $ac_status); }; }; then
48441   ac_cv_sizeof_int=$ac_size
48442 else
48443   echo "$as_me: failed program was:" >&5
48444 sed 's/^/| /' conftest.$ac_ext >&5
48445
48446 fi
48447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48448   if test x$ac_cv_sizeof_int != x ; then break; fi
48449 done
48450
48451 fi
48452
48453 if test x$ac_cv_sizeof_int = x ; then
48454   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
48455 echo "$as_me: error: cannot determine a size for int" >&2;}
48456    { (exit 1); exit 1; }; }
48457 fi
48458 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
48459 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
48460
48461 cat >>confdefs.h <<_ACEOF
48462 #define SIZEOF_INT $ac_cv_sizeof_int
48463 _ACEOF
48464
48465
48466 echo "$as_me:$LINENO: checking size of long" >&5
48467 echo $ECHO_N "checking size of long... $ECHO_C" >&6
48468 if test "${ac_cv_sizeof_long+set}" = set; then
48469   echo $ECHO_N "(cached) $ECHO_C" >&6
48470 else
48471   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48472   cat >conftest.$ac_ext <<_ACEOF
48473 /* confdefs.h.  */
48474 _ACEOF
48475 cat confdefs.h >>conftest.$ac_ext
48476 cat >>conftest.$ac_ext <<_ACEOF
48477 /* end confdefs.h.  */
48478 #include "confdefs.h"
48479 #include <stdlib.h>
48480 #include <sys/types.h>
48481
48482
48483 int
48484 main ()
48485 {
48486 switch (0) case 0: case (sizeof (long) == $ac_size):;
48487   ;
48488   return 0;
48489 }
48490 _ACEOF
48491 rm -f conftest.$ac_objext
48492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48493   (eval $ac_compile) 2>conftest.er1
48494   ac_status=$?
48495   grep -v '^ *+' conftest.er1 >conftest.err
48496   rm -f conftest.er1
48497   cat conftest.err >&5
48498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48499   (exit $ac_status); } &&
48500          { ac_try='test -z "$ac_c_werror_flag"
48501                          || test ! -s conftest.err'
48502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48503   (eval $ac_try) 2>&5
48504   ac_status=$?
48505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48506   (exit $ac_status); }; } &&
48507          { ac_try='test -s conftest.$ac_objext'
48508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48509   (eval $ac_try) 2>&5
48510   ac_status=$?
48511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48512   (exit $ac_status); }; }; then
48513   ac_cv_sizeof_long=$ac_size
48514 else
48515   echo "$as_me: failed program was:" >&5
48516 sed 's/^/| /' conftest.$ac_ext >&5
48517
48518 fi
48519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48520   if test x$ac_cv_sizeof_long != x ; then break; fi
48521 done
48522
48523 fi
48524
48525 if test x$ac_cv_sizeof_long = x ; then
48526   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
48527 echo "$as_me: error: cannot determine a size for long" >&2;}
48528    { (exit 1); exit 1; }; }
48529 fi
48530 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
48531 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
48532
48533 cat >>confdefs.h <<_ACEOF
48534 #define SIZEOF_LONG $ac_cv_sizeof_long
48535 _ACEOF
48536
48537
48538 echo "$as_me:$LINENO: checking size of wchar_t" >&5
48539 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
48540 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
48541   echo $ECHO_N "(cached) $ECHO_C" >&6
48542 else
48543   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48544   cat >conftest.$ac_ext <<_ACEOF
48545 /* confdefs.h.  */
48546 _ACEOF
48547 cat confdefs.h >>conftest.$ac_ext
48548 cat >>conftest.$ac_ext <<_ACEOF
48549 /* end confdefs.h.  */
48550 #include "confdefs.h"
48551 #include <stdlib.h>
48552 #include <sys/types.h>
48553
48554
48555 int
48556 main ()
48557 {
48558 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
48559   ;
48560   return 0;
48561 }
48562 _ACEOF
48563 rm -f conftest.$ac_objext
48564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48565   (eval $ac_compile) 2>conftest.er1
48566   ac_status=$?
48567   grep -v '^ *+' conftest.er1 >conftest.err
48568   rm -f conftest.er1
48569   cat conftest.err >&5
48570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48571   (exit $ac_status); } &&
48572          { ac_try='test -z "$ac_c_werror_flag"
48573                          || test ! -s conftest.err'
48574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48575   (eval $ac_try) 2>&5
48576   ac_status=$?
48577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48578   (exit $ac_status); }; } &&
48579          { ac_try='test -s conftest.$ac_objext'
48580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48581   (eval $ac_try) 2>&5
48582   ac_status=$?
48583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48584   (exit $ac_status); }; }; then
48585   ac_cv_sizeof_wchar_t=$ac_size
48586 else
48587   echo "$as_me: failed program was:" >&5
48588 sed 's/^/| /' conftest.$ac_ext >&5
48589
48590 fi
48591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48592   if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
48593 done
48594
48595 fi
48596
48597 if test x$ac_cv_sizeof_wchar_t = x ; then
48598   { { echo "$as_me:$LINENO: error: cannot determine a size for wchar_t" >&5
48599 echo "$as_me: error: cannot determine a size for wchar_t" >&2;}
48600    { (exit 1); exit 1; }; }
48601 fi
48602 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
48603 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
48604
48605 cat >>confdefs.h <<_ACEOF
48606 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
48607 _ACEOF
48608
48609
48610
48611 if test "$ac_cv_sizeof_int" -lt 4 ; then
48612         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
48613 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
48614
48615         cat >>confdefs.h <<\_ACEOF
48616 #define LBER_INT_T long
48617 _ACEOF
48618
48619 else
48620         cat >>confdefs.h <<\_ACEOF
48621 #define LBER_INT_T int
48622 _ACEOF
48623
48624 fi
48625
48626 cat >>confdefs.h <<\_ACEOF
48627 #define LBER_LEN_T long
48628 _ACEOF
48629
48630 cat >>confdefs.h <<\_ACEOF
48631 #define LBER_SOCKET_T int
48632 _ACEOF
48633
48634 cat >>confdefs.h <<\_ACEOF
48635 #define LBER_TAG_T long
48636 _ACEOF
48637
48638
48639 echo "$as_me:$LINENO: checking for working memcmp" >&5
48640 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
48641 if test "${ac_cv_func_memcmp_working+set}" = set; then
48642   echo $ECHO_N "(cached) $ECHO_C" >&6
48643 else
48644   if test "$cross_compiling" = yes; then
48645   ac_cv_func_memcmp_working=no
48646 else
48647   cat >conftest.$ac_ext <<_ACEOF
48648 /* confdefs.h.  */
48649 _ACEOF
48650 cat confdefs.h >>conftest.$ac_ext
48651 cat >>conftest.$ac_ext <<_ACEOF
48652 /* end confdefs.h.  */
48653 $ac_includes_default
48654 int
48655 main ()
48656 {
48657
48658   /* Some versions of memcmp are not 8-bit clean.  */
48659   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
48660   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
48661     exit (1);
48662
48663   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
48664      or more and with at least one buffer not starting on a 4-byte boundary.
48665      William Lewis provided this test program.   */
48666   {
48667     char foo[21];
48668     char bar[21];
48669     int i;
48670     for (i = 0; i < 4; i++)
48671       {
48672         char *a = foo + i;
48673         char *b = bar + i;
48674         strcpy (a, "--------01111111");
48675         strcpy (b, "--------10000000");
48676         if (memcmp (a, b, 16) >= 0)
48677           exit (1);
48678       }
48679     exit (0);
48680   }
48681
48682   ;
48683   return 0;
48684 }
48685 _ACEOF
48686 rm -f conftest$ac_exeext
48687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48688   (eval $ac_link) 2>&5
48689   ac_status=$?
48690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48691   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48693   (eval $ac_try) 2>&5
48694   ac_status=$?
48695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48696   (exit $ac_status); }; }; then
48697   ac_cv_func_memcmp_working=yes
48698 else
48699   echo "$as_me: program exited with status $ac_status" >&5
48700 echo "$as_me: failed program was:" >&5
48701 sed 's/^/| /' conftest.$ac_ext >&5
48702
48703 ( exit $ac_status )
48704 ac_cv_func_memcmp_working=no
48705 fi
48706 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48707 fi
48708 fi
48709 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
48710 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
48711 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
48712     "memcmp.$ac_objext"   | \
48713   *" memcmp.$ac_objext"   | \
48714     "memcmp.$ac_objext "* | \
48715   *" memcmp.$ac_objext "* ) ;;
48716   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
48717 esac
48718
48719
48720
48721 if test $ac_cv_func_memcmp_working = no ; then
48722
48723 cat >>confdefs.h <<\_ACEOF
48724 #define NEED_MEMCMP_REPLACEMENT 1
48725 _ACEOF
48726
48727 fi
48728
48729
48730 for ac_func in strftime
48731 do
48732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48733 echo "$as_me:$LINENO: checking for $ac_func" >&5
48734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48735 if eval "test \"\${$as_ac_var+set}\" = set"; then
48736   echo $ECHO_N "(cached) $ECHO_C" >&6
48737 else
48738   cat >conftest.$ac_ext <<_ACEOF
48739 /* confdefs.h.  */
48740 _ACEOF
48741 cat confdefs.h >>conftest.$ac_ext
48742 cat >>conftest.$ac_ext <<_ACEOF
48743 /* end confdefs.h.  */
48744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48745    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48746 #define $ac_func innocuous_$ac_func
48747
48748 /* System header to define __stub macros and hopefully few prototypes,
48749     which can conflict with char $ac_func (); below.
48750     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48751     <limits.h> exists even on freestanding compilers.  */
48752
48753 #ifdef __STDC__
48754 # include <limits.h>
48755 #else
48756 # include <assert.h>
48757 #endif
48758
48759 #undef $ac_func
48760
48761 /* Override any gcc2 internal prototype to avoid an error.  */
48762 #ifdef __cplusplus
48763 extern "C"
48764 {
48765 #endif
48766 /* We use char because int might match the return type of a gcc2
48767    builtin and then its argument prototype would still apply.  */
48768 char $ac_func ();
48769 /* The GNU C library defines this for functions which it implements
48770     to always fail with ENOSYS.  Some functions are actually named
48771     something starting with __ and the normal name is an alias.  */
48772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48773 choke me
48774 #else
48775 char (*f) () = $ac_func;
48776 #endif
48777 #ifdef __cplusplus
48778 }
48779 #endif
48780
48781 int
48782 main ()
48783 {
48784 return f != $ac_func;
48785   ;
48786   return 0;
48787 }
48788 _ACEOF
48789 rm -f conftest.$ac_objext conftest$ac_exeext
48790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48791   (eval $ac_link) 2>conftest.er1
48792   ac_status=$?
48793   grep -v '^ *+' conftest.er1 >conftest.err
48794   rm -f conftest.er1
48795   cat conftest.err >&5
48796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48797   (exit $ac_status); } &&
48798          { ac_try='test -z "$ac_c_werror_flag"
48799                          || test ! -s conftest.err'
48800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48801   (eval $ac_try) 2>&5
48802   ac_status=$?
48803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48804   (exit $ac_status); }; } &&
48805          { ac_try='test -s conftest$ac_exeext'
48806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48807   (eval $ac_try) 2>&5
48808   ac_status=$?
48809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48810   (exit $ac_status); }; }; then
48811   eval "$as_ac_var=yes"
48812 else
48813   echo "$as_me: failed program was:" >&5
48814 sed 's/^/| /' conftest.$ac_ext >&5
48815
48816 eval "$as_ac_var=no"
48817 fi
48818 rm -f conftest.err conftest.$ac_objext \
48819       conftest$ac_exeext conftest.$ac_ext
48820 fi
48821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48822 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48823 if test `eval echo '${'$as_ac_var'}'` = yes; then
48824   cat >>confdefs.h <<_ACEOF
48825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48826 _ACEOF
48827
48828 else
48829   # strftime is in -lintl on SCO UNIX.
48830 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
48831 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
48832 if test "${ac_cv_lib_intl_strftime+set}" = set; then
48833   echo $ECHO_N "(cached) $ECHO_C" >&6
48834 else
48835   ac_check_lib_save_LIBS=$LIBS
48836 LIBS="-lintl  $LIBS"
48837 cat >conftest.$ac_ext <<_ACEOF
48838 /* confdefs.h.  */
48839 _ACEOF
48840 cat confdefs.h >>conftest.$ac_ext
48841 cat >>conftest.$ac_ext <<_ACEOF
48842 /* end confdefs.h.  */
48843
48844 /* Override any gcc2 internal prototype to avoid an error.  */
48845 #ifdef __cplusplus
48846 extern "C"
48847 #endif
48848 /* We use char because int might match the return type of a gcc2
48849    builtin and then its argument prototype would still apply.  */
48850 char strftime ();
48851 int
48852 main ()
48853 {
48854 strftime ();
48855   ;
48856   return 0;
48857 }
48858 _ACEOF
48859 rm -f conftest.$ac_objext conftest$ac_exeext
48860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48861   (eval $ac_link) 2>conftest.er1
48862   ac_status=$?
48863   grep -v '^ *+' conftest.er1 >conftest.err
48864   rm -f conftest.er1
48865   cat conftest.err >&5
48866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48867   (exit $ac_status); } &&
48868          { ac_try='test -z "$ac_c_werror_flag"
48869                          || test ! -s conftest.err'
48870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48871   (eval $ac_try) 2>&5
48872   ac_status=$?
48873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48874   (exit $ac_status); }; } &&
48875          { ac_try='test -s conftest$ac_exeext'
48876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48877   (eval $ac_try) 2>&5
48878   ac_status=$?
48879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48880   (exit $ac_status); }; }; then
48881   ac_cv_lib_intl_strftime=yes
48882 else
48883   echo "$as_me: failed program was:" >&5
48884 sed 's/^/| /' conftest.$ac_ext >&5
48885
48886 ac_cv_lib_intl_strftime=no
48887 fi
48888 rm -f conftest.err conftest.$ac_objext \
48889       conftest$ac_exeext conftest.$ac_ext
48890 LIBS=$ac_check_lib_save_LIBS
48891 fi
48892 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
48893 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
48894 if test $ac_cv_lib_intl_strftime = yes; then
48895   cat >>confdefs.h <<\_ACEOF
48896 #define HAVE_STRFTIME 1
48897 _ACEOF
48898
48899 LIBS="-lintl $LIBS"
48900 fi
48901
48902 fi
48903 done
48904
48905
48906 echo "$as_me:$LINENO: checking for inet_aton()" >&5
48907 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
48908 if test "${ol_cv_func_inet_aton+set}" = set; then
48909   echo $ECHO_N "(cached) $ECHO_C" >&6
48910 else
48911   cat >conftest.$ac_ext <<_ACEOF
48912 /* confdefs.h.  */
48913 _ACEOF
48914 cat confdefs.h >>conftest.$ac_ext
48915 cat >>conftest.$ac_ext <<_ACEOF
48916 /* end confdefs.h.  */
48917
48918 #ifdef HAVE_SYS_TYPES_H
48919 #       include <sys/types.h>
48920 #endif
48921 #ifdef HAVE_SYS_SOCKET_H
48922 #       include <sys/socket.h>
48923 #       ifdef HAVE_SYS_SELECT_H
48924 #               include <sys/select.h>
48925 #       endif
48926 #       include <netinet/in.h>
48927 #       ifdef HAVE_ARPA_INET_H
48928 #               include <arpa/inet.h>
48929 #       endif
48930 #endif
48931
48932 int
48933 main ()
48934 {
48935 struct in_addr in;
48936 int rc = inet_aton( "255.255.255.255", &in );
48937   ;
48938   return 0;
48939 }
48940 _ACEOF
48941 rm -f conftest.$ac_objext conftest$ac_exeext
48942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48943   (eval $ac_link) 2>conftest.er1
48944   ac_status=$?
48945   grep -v '^ *+' conftest.er1 >conftest.err
48946   rm -f conftest.er1
48947   cat conftest.err >&5
48948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48949   (exit $ac_status); } &&
48950          { ac_try='test -z "$ac_c_werror_flag"
48951                          || test ! -s conftest.err'
48952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48953   (eval $ac_try) 2>&5
48954   ac_status=$?
48955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48956   (exit $ac_status); }; } &&
48957          { ac_try='test -s conftest$ac_exeext'
48958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48959   (eval $ac_try) 2>&5
48960   ac_status=$?
48961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48962   (exit $ac_status); }; }; then
48963   ol_cv_func_inet_aton=yes
48964 else
48965   echo "$as_me: failed program was:" >&5
48966 sed 's/^/| /' conftest.$ac_ext >&5
48967
48968 ol_cv_func_inet_aton=no
48969 fi
48970 rm -f conftest.err conftest.$ac_objext \
48971       conftest$ac_exeext conftest.$ac_ext
48972 fi
48973 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
48974 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
48975   if test $ol_cv_func_inet_aton != no; then
48976
48977 cat >>confdefs.h <<\_ACEOF
48978 #define HAVE_INET_ATON 1
48979 _ACEOF
48980
48981   fi
48982
48983
48984 echo "$as_me:$LINENO: checking for _spawnlp" >&5
48985 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
48986 if test "${ac_cv_func__spawnlp+set}" = set; then
48987   echo $ECHO_N "(cached) $ECHO_C" >&6
48988 else
48989   cat >conftest.$ac_ext <<_ACEOF
48990 /* confdefs.h.  */
48991 _ACEOF
48992 cat confdefs.h >>conftest.$ac_ext
48993 cat >>conftest.$ac_ext <<_ACEOF
48994 /* end confdefs.h.  */
48995 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
48996    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48997 #define _spawnlp innocuous__spawnlp
48998
48999 /* System header to define __stub macros and hopefully few prototypes,
49000     which can conflict with char _spawnlp (); below.
49001     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49002     <limits.h> exists even on freestanding compilers.  */
49003
49004 #ifdef __STDC__
49005 # include <limits.h>
49006 #else
49007 # include <assert.h>
49008 #endif
49009
49010 #undef _spawnlp
49011
49012 /* Override any gcc2 internal prototype to avoid an error.  */
49013 #ifdef __cplusplus
49014 extern "C"
49015 {
49016 #endif
49017 /* We use char because int might match the return type of a gcc2
49018    builtin and then its argument prototype would still apply.  */
49019 char _spawnlp ();
49020 /* The GNU C library defines this for functions which it implements
49021     to always fail with ENOSYS.  Some functions are actually named
49022     something starting with __ and the normal name is an alias.  */
49023 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
49024 choke me
49025 #else
49026 char (*f) () = _spawnlp;
49027 #endif
49028 #ifdef __cplusplus
49029 }
49030 #endif
49031
49032 int
49033 main ()
49034 {
49035 return f != _spawnlp;
49036   ;
49037   return 0;
49038 }
49039 _ACEOF
49040 rm -f conftest.$ac_objext conftest$ac_exeext
49041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49042   (eval $ac_link) 2>conftest.er1
49043   ac_status=$?
49044   grep -v '^ *+' conftest.er1 >conftest.err
49045   rm -f conftest.er1
49046   cat conftest.err >&5
49047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49048   (exit $ac_status); } &&
49049          { ac_try='test -z "$ac_c_werror_flag"
49050                          || test ! -s conftest.err'
49051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49052   (eval $ac_try) 2>&5
49053   ac_status=$?
49054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49055   (exit $ac_status); }; } &&
49056          { ac_try='test -s conftest$ac_exeext'
49057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49058   (eval $ac_try) 2>&5
49059   ac_status=$?
49060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49061   (exit $ac_status); }; }; then
49062   ac_cv_func__spawnlp=yes
49063 else
49064   echo "$as_me: failed program was:" >&5
49065 sed 's/^/| /' conftest.$ac_ext >&5
49066
49067 ac_cv_func__spawnlp=no
49068 fi
49069 rm -f conftest.err conftest.$ac_objext \
49070       conftest$ac_exeext conftest.$ac_ext
49071 fi
49072 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
49073 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
49074 if test $ac_cv_func__spawnlp = yes; then
49075
49076 cat >>confdefs.h <<\_ACEOF
49077 #define HAVE_SPAWNLP 1
49078 _ACEOF
49079
49080 fi
49081
49082
49083 echo "$as_me:$LINENO: checking for _snprintf" >&5
49084 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
49085 if test "${ac_cv_func__snprintf+set}" = set; then
49086   echo $ECHO_N "(cached) $ECHO_C" >&6
49087 else
49088   cat >conftest.$ac_ext <<_ACEOF
49089 /* confdefs.h.  */
49090 _ACEOF
49091 cat confdefs.h >>conftest.$ac_ext
49092 cat >>conftest.$ac_ext <<_ACEOF
49093 /* end confdefs.h.  */
49094 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
49095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49096 #define _snprintf innocuous__snprintf
49097
49098 /* System header to define __stub macros and hopefully few prototypes,
49099     which can conflict with char _snprintf (); below.
49100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49101     <limits.h> exists even on freestanding compilers.  */
49102
49103 #ifdef __STDC__
49104 # include <limits.h>
49105 #else
49106 # include <assert.h>
49107 #endif
49108
49109 #undef _snprintf
49110
49111 /* Override any gcc2 internal prototype to avoid an error.  */
49112 #ifdef __cplusplus
49113 extern "C"
49114 {
49115 #endif
49116 /* We use char because int might match the return type of a gcc2
49117    builtin and then its argument prototype would still apply.  */
49118 char _snprintf ();
49119 /* The GNU C library defines this for functions which it implements
49120     to always fail with ENOSYS.  Some functions are actually named
49121     something starting with __ and the normal name is an alias.  */
49122 #if defined (__stub__snprintf) || defined (__stub____snprintf)
49123 choke me
49124 #else
49125 char (*f) () = _snprintf;
49126 #endif
49127 #ifdef __cplusplus
49128 }
49129 #endif
49130
49131 int
49132 main ()
49133 {
49134 return f != _snprintf;
49135   ;
49136   return 0;
49137 }
49138 _ACEOF
49139 rm -f conftest.$ac_objext conftest$ac_exeext
49140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49141   (eval $ac_link) 2>conftest.er1
49142   ac_status=$?
49143   grep -v '^ *+' conftest.er1 >conftest.err
49144   rm -f conftest.er1
49145   cat conftest.err >&5
49146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49147   (exit $ac_status); } &&
49148          { ac_try='test -z "$ac_c_werror_flag"
49149                          || test ! -s conftest.err'
49150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49151   (eval $ac_try) 2>&5
49152   ac_status=$?
49153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49154   (exit $ac_status); }; } &&
49155          { ac_try='test -s conftest$ac_exeext'
49156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49157   (eval $ac_try) 2>&5
49158   ac_status=$?
49159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49160   (exit $ac_status); }; }; then
49161   ac_cv_func__snprintf=yes
49162 else
49163   echo "$as_me: failed program was:" >&5
49164 sed 's/^/| /' conftest.$ac_ext >&5
49165
49166 ac_cv_func__snprintf=no
49167 fi
49168 rm -f conftest.err conftest.$ac_objext \
49169       conftest$ac_exeext conftest.$ac_ext
49170 fi
49171 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
49172 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
49173 if test $ac_cv_func__snprintf = yes; then
49174   ac_cv_func_snprintf=yes
49175
49176 cat >>confdefs.h <<\_ACEOF
49177 #define snprintf _snprintf
49178 _ACEOF
49179
49180
49181 fi
49182
49183
49184 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
49185 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
49186 if test "${ac_cv_func__vsnprintf+set}" = set; then
49187   echo $ECHO_N "(cached) $ECHO_C" >&6
49188 else
49189   cat >conftest.$ac_ext <<_ACEOF
49190 /* confdefs.h.  */
49191 _ACEOF
49192 cat confdefs.h >>conftest.$ac_ext
49193 cat >>conftest.$ac_ext <<_ACEOF
49194 /* end confdefs.h.  */
49195 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
49196    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49197 #define _vsnprintf innocuous__vsnprintf
49198
49199 /* System header to define __stub macros and hopefully few prototypes,
49200     which can conflict with char _vsnprintf (); below.
49201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49202     <limits.h> exists even on freestanding compilers.  */
49203
49204 #ifdef __STDC__
49205 # include <limits.h>
49206 #else
49207 # include <assert.h>
49208 #endif
49209
49210 #undef _vsnprintf
49211
49212 /* Override any gcc2 internal prototype to avoid an error.  */
49213 #ifdef __cplusplus
49214 extern "C"
49215 {
49216 #endif
49217 /* We use char because int might match the return type of a gcc2
49218    builtin and then its argument prototype would still apply.  */
49219 char _vsnprintf ();
49220 /* The GNU C library defines this for functions which it implements
49221     to always fail with ENOSYS.  Some functions are actually named
49222     something starting with __ and the normal name is an alias.  */
49223 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
49224 choke me
49225 #else
49226 char (*f) () = _vsnprintf;
49227 #endif
49228 #ifdef __cplusplus
49229 }
49230 #endif
49231
49232 int
49233 main ()
49234 {
49235 return f != _vsnprintf;
49236   ;
49237   return 0;
49238 }
49239 _ACEOF
49240 rm -f conftest.$ac_objext conftest$ac_exeext
49241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49242   (eval $ac_link) 2>conftest.er1
49243   ac_status=$?
49244   grep -v '^ *+' conftest.er1 >conftest.err
49245   rm -f conftest.er1
49246   cat conftest.err >&5
49247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49248   (exit $ac_status); } &&
49249          { ac_try='test -z "$ac_c_werror_flag"
49250                          || test ! -s conftest.err'
49251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49252   (eval $ac_try) 2>&5
49253   ac_status=$?
49254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49255   (exit $ac_status); }; } &&
49256          { ac_try='test -s conftest$ac_exeext'
49257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49258   (eval $ac_try) 2>&5
49259   ac_status=$?
49260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49261   (exit $ac_status); }; }; then
49262   ac_cv_func__vsnprintf=yes
49263 else
49264   echo "$as_me: failed program was:" >&5
49265 sed 's/^/| /' conftest.$ac_ext >&5
49266
49267 ac_cv_func__vsnprintf=no
49268 fi
49269 rm -f conftest.err conftest.$ac_objext \
49270       conftest$ac_exeext conftest.$ac_ext
49271 fi
49272 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
49273 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
49274 if test $ac_cv_func__vsnprintf = yes; then
49275   ac_cv_func_vsnprintf=yes
49276
49277 cat >>confdefs.h <<\_ACEOF
49278 #define vsnprintf _vsnprintf
49279 _ACEOF
49280
49281
49282 fi
49283
49284
49285
49286 for ac_func in vprintf
49287 do
49288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49289 echo "$as_me:$LINENO: checking for $ac_func" >&5
49290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49291 if eval "test \"\${$as_ac_var+set}\" = set"; then
49292   echo $ECHO_N "(cached) $ECHO_C" >&6
49293 else
49294   cat >conftest.$ac_ext <<_ACEOF
49295 /* confdefs.h.  */
49296 _ACEOF
49297 cat confdefs.h >>conftest.$ac_ext
49298 cat >>conftest.$ac_ext <<_ACEOF
49299 /* end confdefs.h.  */
49300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49302 #define $ac_func innocuous_$ac_func
49303
49304 /* System header to define __stub macros and hopefully few prototypes,
49305     which can conflict with char $ac_func (); below.
49306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49307     <limits.h> exists even on freestanding compilers.  */
49308
49309 #ifdef __STDC__
49310 # include <limits.h>
49311 #else
49312 # include <assert.h>
49313 #endif
49314
49315 #undef $ac_func
49316
49317 /* Override any gcc2 internal prototype to avoid an error.  */
49318 #ifdef __cplusplus
49319 extern "C"
49320 {
49321 #endif
49322 /* We use char because int might match the return type of a gcc2
49323    builtin and then its argument prototype would still apply.  */
49324 char $ac_func ();
49325 /* The GNU C library defines this for functions which it implements
49326     to always fail with ENOSYS.  Some functions are actually named
49327     something starting with __ and the normal name is an alias.  */
49328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49329 choke me
49330 #else
49331 char (*f) () = $ac_func;
49332 #endif
49333 #ifdef __cplusplus
49334 }
49335 #endif
49336
49337 int
49338 main ()
49339 {
49340 return f != $ac_func;
49341   ;
49342   return 0;
49343 }
49344 _ACEOF
49345 rm -f conftest.$ac_objext conftest$ac_exeext
49346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49347   (eval $ac_link) 2>conftest.er1
49348   ac_status=$?
49349   grep -v '^ *+' conftest.er1 >conftest.err
49350   rm -f conftest.er1
49351   cat conftest.err >&5
49352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49353   (exit $ac_status); } &&
49354          { ac_try='test -z "$ac_c_werror_flag"
49355                          || test ! -s conftest.err'
49356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49357   (eval $ac_try) 2>&5
49358   ac_status=$?
49359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49360   (exit $ac_status); }; } &&
49361          { ac_try='test -s conftest$ac_exeext'
49362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49363   (eval $ac_try) 2>&5
49364   ac_status=$?
49365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49366   (exit $ac_status); }; }; then
49367   eval "$as_ac_var=yes"
49368 else
49369   echo "$as_me: failed program was:" >&5
49370 sed 's/^/| /' conftest.$ac_ext >&5
49371
49372 eval "$as_ac_var=no"
49373 fi
49374 rm -f conftest.err conftest.$ac_objext \
49375       conftest$ac_exeext conftest.$ac_ext
49376 fi
49377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49379 if test `eval echo '${'$as_ac_var'}'` = yes; then
49380   cat >>confdefs.h <<_ACEOF
49381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49382 _ACEOF
49383
49384 echo "$as_me:$LINENO: checking for _doprnt" >&5
49385 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
49386 if test "${ac_cv_func__doprnt+set}" = set; then
49387   echo $ECHO_N "(cached) $ECHO_C" >&6
49388 else
49389   cat >conftest.$ac_ext <<_ACEOF
49390 /* confdefs.h.  */
49391 _ACEOF
49392 cat confdefs.h >>conftest.$ac_ext
49393 cat >>conftest.$ac_ext <<_ACEOF
49394 /* end confdefs.h.  */
49395 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
49396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49397 #define _doprnt innocuous__doprnt
49398
49399 /* System header to define __stub macros and hopefully few prototypes,
49400     which can conflict with char _doprnt (); below.
49401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49402     <limits.h> exists even on freestanding compilers.  */
49403
49404 #ifdef __STDC__
49405 # include <limits.h>
49406 #else
49407 # include <assert.h>
49408 #endif
49409
49410 #undef _doprnt
49411
49412 /* Override any gcc2 internal prototype to avoid an error.  */
49413 #ifdef __cplusplus
49414 extern "C"
49415 {
49416 #endif
49417 /* We use char because int might match the return type of a gcc2
49418    builtin and then its argument prototype would still apply.  */
49419 char _doprnt ();
49420 /* The GNU C library defines this for functions which it implements
49421     to always fail with ENOSYS.  Some functions are actually named
49422     something starting with __ and the normal name is an alias.  */
49423 #if defined (__stub__doprnt) || defined (__stub____doprnt)
49424 choke me
49425 #else
49426 char (*f) () = _doprnt;
49427 #endif
49428 #ifdef __cplusplus
49429 }
49430 #endif
49431
49432 int
49433 main ()
49434 {
49435 return f != _doprnt;
49436   ;
49437   return 0;
49438 }
49439 _ACEOF
49440 rm -f conftest.$ac_objext conftest$ac_exeext
49441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49442   (eval $ac_link) 2>conftest.er1
49443   ac_status=$?
49444   grep -v '^ *+' conftest.er1 >conftest.err
49445   rm -f conftest.er1
49446   cat conftest.err >&5
49447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49448   (exit $ac_status); } &&
49449          { ac_try='test -z "$ac_c_werror_flag"
49450                          || test ! -s conftest.err'
49451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49452   (eval $ac_try) 2>&5
49453   ac_status=$?
49454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49455   (exit $ac_status); }; } &&
49456          { ac_try='test -s conftest$ac_exeext'
49457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49458   (eval $ac_try) 2>&5
49459   ac_status=$?
49460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49461   (exit $ac_status); }; }; then
49462   ac_cv_func__doprnt=yes
49463 else
49464   echo "$as_me: failed program was:" >&5
49465 sed 's/^/| /' conftest.$ac_ext >&5
49466
49467 ac_cv_func__doprnt=no
49468 fi
49469 rm -f conftest.err conftest.$ac_objext \
49470       conftest$ac_exeext conftest.$ac_ext
49471 fi
49472 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
49473 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
49474 if test $ac_cv_func__doprnt = yes; then
49475
49476 cat >>confdefs.h <<\_ACEOF
49477 #define HAVE_DOPRNT 1
49478 _ACEOF
49479
49480 fi
49481
49482 fi
49483 done
49484
49485
49486
49487 if test $ac_cv_func_vprintf = yes ; then
49488
49489
49490 for ac_func in snprintf vsnprintf
49491 do
49492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49493 echo "$as_me:$LINENO: checking for $ac_func" >&5
49494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49495 if eval "test \"\${$as_ac_var+set}\" = set"; then
49496   echo $ECHO_N "(cached) $ECHO_C" >&6
49497 else
49498   cat >conftest.$ac_ext <<_ACEOF
49499 /* confdefs.h.  */
49500 _ACEOF
49501 cat confdefs.h >>conftest.$ac_ext
49502 cat >>conftest.$ac_ext <<_ACEOF
49503 /* end confdefs.h.  */
49504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49506 #define $ac_func innocuous_$ac_func
49507
49508 /* System header to define __stub macros and hopefully few prototypes,
49509     which can conflict with char $ac_func (); below.
49510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49511     <limits.h> exists even on freestanding compilers.  */
49512
49513 #ifdef __STDC__
49514 # include <limits.h>
49515 #else
49516 # include <assert.h>
49517 #endif
49518
49519 #undef $ac_func
49520
49521 /* Override any gcc2 internal prototype to avoid an error.  */
49522 #ifdef __cplusplus
49523 extern "C"
49524 {
49525 #endif
49526 /* We use char because int might match the return type of a gcc2
49527    builtin and then its argument prototype would still apply.  */
49528 char $ac_func ();
49529 /* The GNU C library defines this for functions which it implements
49530     to always fail with ENOSYS.  Some functions are actually named
49531     something starting with __ and the normal name is an alias.  */
49532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49533 choke me
49534 #else
49535 char (*f) () = $ac_func;
49536 #endif
49537 #ifdef __cplusplus
49538 }
49539 #endif
49540
49541 int
49542 main ()
49543 {
49544 return f != $ac_func;
49545   ;
49546   return 0;
49547 }
49548 _ACEOF
49549 rm -f conftest.$ac_objext conftest$ac_exeext
49550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49551   (eval $ac_link) 2>conftest.er1
49552   ac_status=$?
49553   grep -v '^ *+' conftest.er1 >conftest.err
49554   rm -f conftest.er1
49555   cat conftest.err >&5
49556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49557   (exit $ac_status); } &&
49558          { ac_try='test -z "$ac_c_werror_flag"
49559                          || test ! -s conftest.err'
49560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49561   (eval $ac_try) 2>&5
49562   ac_status=$?
49563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49564   (exit $ac_status); }; } &&
49565          { ac_try='test -s conftest$ac_exeext'
49566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49567   (eval $ac_try) 2>&5
49568   ac_status=$?
49569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49570   (exit $ac_status); }; }; then
49571   eval "$as_ac_var=yes"
49572 else
49573   echo "$as_me: failed program was:" >&5
49574 sed 's/^/| /' conftest.$ac_ext >&5
49575
49576 eval "$as_ac_var=no"
49577 fi
49578 rm -f conftest.err conftest.$ac_objext \
49579       conftest$ac_exeext conftest.$ac_ext
49580 fi
49581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49583 if test `eval echo '${'$as_ac_var'}'` = yes; then
49584   cat >>confdefs.h <<_ACEOF
49585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49586 _ACEOF
49587
49588 fi
49589 done
49590
49591 fi
49592
49593
49594
49595
49596
49597
49598
49599
49600
49601
49602
49603
49604
49605
49606
49607
49608
49609
49610
49611
49612
49613
49614
49615
49616
49617
49618
49619
49620
49621
49622
49623
49624
49625
49626
49627
49628
49629
49630
49631
49632
49633
49634
49635
49636
49637
49638
49639
49640
49641
49642
49643
49644
49645
49646 for ac_func in \
49647         bcopy                   \
49648         closesocket             \
49649         chroot                  \
49650         endgrent                \
49651         endpwent                \
49652         fcntl                   \
49653         flock                   \
49654         fstat                   \
49655         getdtablesize   \
49656         getgrgid                \
49657         gethostname             \
49658         getpass                 \
49659         getpassphrase   \
49660         getpwuid                \
49661         getpwnam                \
49662         getspnam                \
49663         gettimeofday    \
49664         initgroups              \
49665         lockf                   \
49666         memcpy                  \
49667         memmove                 \
49668         mkstemp                 \
49669         mktemp                  \
49670         pipe                    \
49671         read                    \
49672         recv                    \
49673         recvfrom                \
49674         setpwfile               \
49675         setgid                  \
49676         setegid                 \
49677         setsid                  \
49678         setuid                  \
49679         seteuid                 \
49680         signal                  \
49681         strdup                  \
49682         strpbrk                 \
49683         strrchr                 \
49684         strsep                  \
49685         strstr                  \
49686         strtol                  \
49687         strtoul                 \
49688         strtoq                  \
49689         strtouq                 \
49690         strtoll                 \
49691         strspn                  \
49692         sysconf                 \
49693         usleep                  \
49694         waitpid                 \
49695         wait4                   \
49696         write                   \
49697         send                    \
49698         sendmsg                 \
49699         sendto                  \
49700
49701 do
49702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49703 echo "$as_me:$LINENO: checking for $ac_func" >&5
49704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49705 if eval "test \"\${$as_ac_var+set}\" = set"; then
49706   echo $ECHO_N "(cached) $ECHO_C" >&6
49707 else
49708   cat >conftest.$ac_ext <<_ACEOF
49709 /* confdefs.h.  */
49710 _ACEOF
49711 cat confdefs.h >>conftest.$ac_ext
49712 cat >>conftest.$ac_ext <<_ACEOF
49713 /* end confdefs.h.  */
49714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49716 #define $ac_func innocuous_$ac_func
49717
49718 /* System header to define __stub macros and hopefully few prototypes,
49719     which can conflict with char $ac_func (); below.
49720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49721     <limits.h> exists even on freestanding compilers.  */
49722
49723 #ifdef __STDC__
49724 # include <limits.h>
49725 #else
49726 # include <assert.h>
49727 #endif
49728
49729 #undef $ac_func
49730
49731 /* Override any gcc2 internal prototype to avoid an error.  */
49732 #ifdef __cplusplus
49733 extern "C"
49734 {
49735 #endif
49736 /* We use char because int might match the return type of a gcc2
49737    builtin and then its argument prototype would still apply.  */
49738 char $ac_func ();
49739 /* The GNU C library defines this for functions which it implements
49740     to always fail with ENOSYS.  Some functions are actually named
49741     something starting with __ and the normal name is an alias.  */
49742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49743 choke me
49744 #else
49745 char (*f) () = $ac_func;
49746 #endif
49747 #ifdef __cplusplus
49748 }
49749 #endif
49750
49751 int
49752 main ()
49753 {
49754 return f != $ac_func;
49755   ;
49756   return 0;
49757 }
49758 _ACEOF
49759 rm -f conftest.$ac_objext conftest$ac_exeext
49760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49761   (eval $ac_link) 2>conftest.er1
49762   ac_status=$?
49763   grep -v '^ *+' conftest.er1 >conftest.err
49764   rm -f conftest.er1
49765   cat conftest.err >&5
49766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49767   (exit $ac_status); } &&
49768          { ac_try='test -z "$ac_c_werror_flag"
49769                          || test ! -s conftest.err'
49770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49771   (eval $ac_try) 2>&5
49772   ac_status=$?
49773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49774   (exit $ac_status); }; } &&
49775          { ac_try='test -s conftest$ac_exeext'
49776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49777   (eval $ac_try) 2>&5
49778   ac_status=$?
49779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49780   (exit $ac_status); }; }; then
49781   eval "$as_ac_var=yes"
49782 else
49783   echo "$as_me: failed program was:" >&5
49784 sed 's/^/| /' conftest.$ac_ext >&5
49785
49786 eval "$as_ac_var=no"
49787 fi
49788 rm -f conftest.err conftest.$ac_objext \
49789       conftest$ac_exeext conftest.$ac_ext
49790 fi
49791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49793 if test `eval echo '${'$as_ac_var'}'` = yes; then
49794   cat >>confdefs.h <<_ACEOF
49795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49796 _ACEOF
49797
49798 fi
49799 done
49800
49801
49802
49803
49804 for ac_func in getopt getpeereid
49805 do
49806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49807 echo "$as_me:$LINENO: checking for $ac_func" >&5
49808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49809 if eval "test \"\${$as_ac_var+set}\" = set"; then
49810   echo $ECHO_N "(cached) $ECHO_C" >&6
49811 else
49812   cat >conftest.$ac_ext <<_ACEOF
49813 /* confdefs.h.  */
49814 _ACEOF
49815 cat confdefs.h >>conftest.$ac_ext
49816 cat >>conftest.$ac_ext <<_ACEOF
49817 /* end confdefs.h.  */
49818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49819    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49820 #define $ac_func innocuous_$ac_func
49821
49822 /* System header to define __stub macros and hopefully few prototypes,
49823     which can conflict with char $ac_func (); below.
49824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49825     <limits.h> exists even on freestanding compilers.  */
49826
49827 #ifdef __STDC__
49828 # include <limits.h>
49829 #else
49830 # include <assert.h>
49831 #endif
49832
49833 #undef $ac_func
49834
49835 /* Override any gcc2 internal prototype to avoid an error.  */
49836 #ifdef __cplusplus
49837 extern "C"
49838 {
49839 #endif
49840 /* We use char because int might match the return type of a gcc2
49841    builtin and then its argument prototype would still apply.  */
49842 char $ac_func ();
49843 /* The GNU C library defines this for functions which it implements
49844     to always fail with ENOSYS.  Some functions are actually named
49845     something starting with __ and the normal name is an alias.  */
49846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49847 choke me
49848 #else
49849 char (*f) () = $ac_func;
49850 #endif
49851 #ifdef __cplusplus
49852 }
49853 #endif
49854
49855 int
49856 main ()
49857 {
49858 return f != $ac_func;
49859   ;
49860   return 0;
49861 }
49862 _ACEOF
49863 rm -f conftest.$ac_objext conftest$ac_exeext
49864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49865   (eval $ac_link) 2>conftest.er1
49866   ac_status=$?
49867   grep -v '^ *+' conftest.er1 >conftest.err
49868   rm -f conftest.er1
49869   cat conftest.err >&5
49870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49871   (exit $ac_status); } &&
49872          { ac_try='test -z "$ac_c_werror_flag"
49873                          || test ! -s conftest.err'
49874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49875   (eval $ac_try) 2>&5
49876   ac_status=$?
49877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49878   (exit $ac_status); }; } &&
49879          { ac_try='test -s conftest$ac_exeext'
49880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49881   (eval $ac_try) 2>&5
49882   ac_status=$?
49883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49884   (exit $ac_status); }; }; then
49885   eval "$as_ac_var=yes"
49886 else
49887   echo "$as_me: failed program was:" >&5
49888 sed 's/^/| /' conftest.$ac_ext >&5
49889
49890 eval "$as_ac_var=no"
49891 fi
49892 rm -f conftest.err conftest.$ac_objext \
49893       conftest$ac_exeext conftest.$ac_ext
49894 fi
49895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49897 if test `eval echo '${'$as_ac_var'}'` = yes; then
49898   cat >>confdefs.h <<_ACEOF
49899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49900 _ACEOF
49901
49902 else
49903   case $LIBOBJS in
49904     "$ac_func.$ac_objext"   | \
49905   *" $ac_func.$ac_objext"   | \
49906     "$ac_func.$ac_objext "* | \
49907   *" $ac_func.$ac_objext "* ) ;;
49908   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
49909 esac
49910
49911 fi
49912 done
49913
49914
49915
49916 if test "$ac_cv_func_getopt" != yes; then
49917         LIBSRCS="$LIBSRCS getopt.c"
49918 fi
49919 if test "$ac_cv_func_getpeereid" != yes; then
49920         echo "$as_me:$LINENO: checking for msg_accrights in msghdr" >&5
49921 echo $ECHO_N "checking for msg_accrights in msghdr... $ECHO_C" >&6
49922 if test "${ol_cv_msghdr_msg_accrights+set}" = set; then
49923   echo $ECHO_N "(cached) $ECHO_C" >&6
49924 else
49925   cat >conftest.$ac_ext <<_ACEOF
49926 /* confdefs.h.  */
49927 _ACEOF
49928 cat confdefs.h >>conftest.$ac_ext
49929 cat >>conftest.$ac_ext <<_ACEOF
49930 /* end confdefs.h.  */
49931 #include <sys/socket.h>
49932 int
49933 main ()
49934 {
49935 struct msghdr m; m.msg_accrightslen=0
49936   ;
49937   return 0;
49938 }
49939 _ACEOF
49940 rm -f conftest.$ac_objext
49941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49942   (eval $ac_compile) 2>conftest.er1
49943   ac_status=$?
49944   grep -v '^ *+' conftest.er1 >conftest.err
49945   rm -f conftest.er1
49946   cat conftest.err >&5
49947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49948   (exit $ac_status); } &&
49949          { ac_try='test -z "$ac_c_werror_flag"
49950                          || test ! -s conftest.err'
49951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49952   (eval $ac_try) 2>&5
49953   ac_status=$?
49954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49955   (exit $ac_status); }; } &&
49956          { ac_try='test -s conftest.$ac_objext'
49957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49958   (eval $ac_try) 2>&5
49959   ac_status=$?
49960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49961   (exit $ac_status); }; }; then
49962   ol_cv_msghdr_msg_accrights=yes
49963 else
49964   echo "$as_me: failed program was:" >&5
49965 sed 's/^/| /' conftest.$ac_ext >&5
49966
49967 ol_cv_msghdr_msg_accrights=no
49968 fi
49969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49970
49971 fi
49972 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_accrights" >&5
49973 echo "${ECHO_T}$ol_cv_msghdr_msg_accrights" >&6
49974   if test $ol_cv_msghdr_msg_accrights = "yes" ; then
49975
49976 cat >>confdefs.h <<\_ACEOF
49977 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
49978 _ACEOF
49979
49980   fi
49981
49982         if test "$ac_cv_func_getpeereid" != yes; then
49983                 echo "$as_me:$LINENO: checking for msg_control in msghdr" >&5
49984 echo $ECHO_N "checking for msg_control in msghdr... $ECHO_C" >&6
49985 if test "${ol_cv_msghdr_msg_control+set}" = set; then
49986   echo $ECHO_N "(cached) $ECHO_C" >&6
49987 else
49988   cat >conftest.$ac_ext <<_ACEOF
49989 /* confdefs.h.  */
49990 _ACEOF
49991 cat confdefs.h >>conftest.$ac_ext
49992 cat >>conftest.$ac_ext <<_ACEOF
49993 /* end confdefs.h.  */
49994 #include <sys/socket.h>
49995 int
49996 main ()
49997 {
49998 struct msghdr m; m.msg_control=(struct cmsghdr *)0
49999   ;
50000   return 0;
50001 }
50002 _ACEOF
50003 rm -f conftest.$ac_objext
50004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50005   (eval $ac_compile) 2>conftest.er1
50006   ac_status=$?
50007   grep -v '^ *+' conftest.er1 >conftest.err
50008   rm -f conftest.er1
50009   cat conftest.err >&5
50010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50011   (exit $ac_status); } &&
50012          { ac_try='test -z "$ac_c_werror_flag"
50013                          || test ! -s conftest.err'
50014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50015   (eval $ac_try) 2>&5
50016   ac_status=$?
50017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50018   (exit $ac_status); }; } &&
50019          { ac_try='test -s conftest.$ac_objext'
50020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50021   (eval $ac_try) 2>&5
50022   ac_status=$?
50023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50024   (exit $ac_status); }; }; then
50025   ol_cv_msghdr_msg_control=yes
50026 else
50027   echo "$as_me: failed program was:" >&5
50028 sed 's/^/| /' conftest.$ac_ext >&5
50029
50030 ol_cv_msghdr_msg_control=no
50031 fi
50032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50033
50034 fi
50035 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_control" >&5
50036 echo "${ECHO_T}$ol_cv_msghdr_msg_control" >&6
50037   if test $ol_cv_msghdr_msg_control = "yes" ; then
50038
50039 cat >>confdefs.h <<\_ACEOF
50040 #define HAVE_MSGHDR_MSG_CONTROL 1
50041 _ACEOF
50042
50043   fi
50044
50045         fi
50046         LIBSRCS="$LIBSRCS getpeereid.c"
50047 fi
50048 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
50049         if test "$ac_cv_func_snprintf" != yes; then
50050
50051 cat >>confdefs.h <<\_ACEOF
50052 #define snprintf ber_pvt_snprintf
50053 _ACEOF
50054
50055         fi
50056         if test "$ac_cv_func_vsnprintf" != yes; then
50057
50058 cat >>confdefs.h <<\_ACEOF
50059 #define vsnprintf ber_pvt_vsnprintf
50060 _ACEOF
50061
50062         fi
50063 fi
50064
50065
50066 if test "$ol_enable_slapi" != no ; then
50067
50068 for ac_header in ltdl.h
50069 do
50070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50072   echo "$as_me:$LINENO: checking for $ac_header" >&5
50073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50075   echo $ECHO_N "(cached) $ECHO_C" >&6
50076 fi
50077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50079 else
50080   # Is the header compilable?
50081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50083 cat >conftest.$ac_ext <<_ACEOF
50084 /* confdefs.h.  */
50085 _ACEOF
50086 cat confdefs.h >>conftest.$ac_ext
50087 cat >>conftest.$ac_ext <<_ACEOF
50088 /* end confdefs.h.  */
50089 $ac_includes_default
50090 #include <$ac_header>
50091 _ACEOF
50092 rm -f conftest.$ac_objext
50093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50094   (eval $ac_compile) 2>conftest.er1
50095   ac_status=$?
50096   grep -v '^ *+' conftest.er1 >conftest.err
50097   rm -f conftest.er1
50098   cat conftest.err >&5
50099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50100   (exit $ac_status); } &&
50101          { ac_try='test -z "$ac_c_werror_flag"
50102                          || test ! -s conftest.err'
50103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50104   (eval $ac_try) 2>&5
50105   ac_status=$?
50106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50107   (exit $ac_status); }; } &&
50108          { ac_try='test -s conftest.$ac_objext'
50109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50110   (eval $ac_try) 2>&5
50111   ac_status=$?
50112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50113   (exit $ac_status); }; }; then
50114   ac_header_compiler=yes
50115 else
50116   echo "$as_me: failed program was:" >&5
50117 sed 's/^/| /' conftest.$ac_ext >&5
50118
50119 ac_header_compiler=no
50120 fi
50121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50123 echo "${ECHO_T}$ac_header_compiler" >&6
50124
50125 # Is the header present?
50126 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50128 cat >conftest.$ac_ext <<_ACEOF
50129 /* confdefs.h.  */
50130 _ACEOF
50131 cat confdefs.h >>conftest.$ac_ext
50132 cat >>conftest.$ac_ext <<_ACEOF
50133 /* end confdefs.h.  */
50134 #include <$ac_header>
50135 _ACEOF
50136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50137   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50138   ac_status=$?
50139   grep -v '^ *+' conftest.er1 >conftest.err
50140   rm -f conftest.er1
50141   cat conftest.err >&5
50142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50143   (exit $ac_status); } >/dev/null; then
50144   if test -s conftest.err; then
50145     ac_cpp_err=$ac_c_preproc_warn_flag
50146     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
50147   else
50148     ac_cpp_err=
50149   fi
50150 else
50151   ac_cpp_err=yes
50152 fi
50153 if test -z "$ac_cpp_err"; then
50154   ac_header_preproc=yes
50155 else
50156   echo "$as_me: failed program was:" >&5
50157 sed 's/^/| /' conftest.$ac_ext >&5
50158
50159   ac_header_preproc=no
50160 fi
50161 rm -f conftest.err conftest.$ac_ext
50162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50163 echo "${ECHO_T}$ac_header_preproc" >&6
50164
50165 # So?  What about this header?
50166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50167   yes:no: )
50168     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50171 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50172     ac_header_preproc=yes
50173     ;;
50174   no:yes:* )
50175     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50177     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
50178 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
50179     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50180 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50181     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
50182 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
50183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50185     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50186 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50187     (
50188       cat <<\_ASBOX
50189 ## ------------------------------------------ ##
50190 ## Report this to the AC_PACKAGE_NAME lists.  ##
50191 ## ------------------------------------------ ##
50192 _ASBOX
50193     ) |
50194       sed "s/^/$as_me: WARNING:     /" >&2
50195     ;;
50196 esac
50197 echo "$as_me:$LINENO: checking for $ac_header" >&5
50198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50200   echo $ECHO_N "(cached) $ECHO_C" >&6
50201 else
50202   eval "$as_ac_Header=\$ac_header_preproc"
50203 fi
50204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50206
50207 fi
50208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50209   cat >>confdefs.h <<_ACEOF
50210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50211 _ACEOF
50212
50213 fi
50214
50215 done
50216
50217
50218         if test $ac_cv_header_ltdl_h != yes ; then
50219                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
50220 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
50221    { (exit 1); exit 1; }; }
50222         fi
50223         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
50224 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
50225 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
50226   echo $ECHO_N "(cached) $ECHO_C" >&6
50227 else
50228   ac_check_lib_save_LIBS=$LIBS
50229 LIBS="-lltdl  $LIBS"
50230 cat >conftest.$ac_ext <<_ACEOF
50231 /* confdefs.h.  */
50232 _ACEOF
50233 cat confdefs.h >>conftest.$ac_ext
50234 cat >>conftest.$ac_ext <<_ACEOF
50235 /* end confdefs.h.  */
50236
50237 /* Override any gcc2 internal prototype to avoid an error.  */
50238 #ifdef __cplusplus
50239 extern "C"
50240 #endif
50241 /* We use char because int might match the return type of a gcc2
50242    builtin and then its argument prototype would still apply.  */
50243 char lt_dlinit ();
50244 int
50245 main ()
50246 {
50247 lt_dlinit ();
50248   ;
50249   return 0;
50250 }
50251 _ACEOF
50252 rm -f conftest.$ac_objext conftest$ac_exeext
50253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50254   (eval $ac_link) 2>conftest.er1
50255   ac_status=$?
50256   grep -v '^ *+' conftest.er1 >conftest.err
50257   rm -f conftest.er1
50258   cat conftest.err >&5
50259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50260   (exit $ac_status); } &&
50261          { ac_try='test -z "$ac_c_werror_flag"
50262                          || test ! -s conftest.err'
50263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50264   (eval $ac_try) 2>&5
50265   ac_status=$?
50266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50267   (exit $ac_status); }; } &&
50268          { ac_try='test -s conftest$ac_exeext'
50269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50270   (eval $ac_try) 2>&5
50271   ac_status=$?
50272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50273   (exit $ac_status); }; }; then
50274   ac_cv_lib_ltdl_lt_dlinit=yes
50275 else
50276   echo "$as_me: failed program was:" >&5
50277 sed 's/^/| /' conftest.$ac_ext >&5
50278
50279 ac_cv_lib_ltdl_lt_dlinit=no
50280 fi
50281 rm -f conftest.err conftest.$ac_objext \
50282       conftest$ac_exeext conftest.$ac_ext
50283 LIBS=$ac_check_lib_save_LIBS
50284 fi
50285 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
50286 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
50287 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
50288
50289                 SLAPI_LIBS=-lltdl
50290                 LIBSLAPI=libslapi.a
50291                 LIBSLAPITOOLS=../libslapi.a
50292
50293 cat >>confdefs.h <<\_ACEOF
50294 #define HAVE_LIBLTDL 1
50295 _ACEOF
50296
50297
50298 else
50299   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
50300 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
50301    { (exit 1); exit 1; }; }
50302 fi
50303
50304
50305
50306 cat >>confdefs.h <<\_ACEOF
50307 #define LDAP_SLAPI 1
50308 _ACEOF
50309
50310 fi
50311
50312 if test "$ol_enable_debug" != no ; then
50313
50314 cat >>confdefs.h <<\_ACEOF
50315 #define LDAP_DEBUG 1
50316 _ACEOF
50317
50318 fi
50319 if test "$ol_enable_syslog" = yes ; then
50320
50321 cat >>confdefs.h <<\_ACEOF
50322 #define LDAP_SYSLOG 1
50323 _ACEOF
50324
50325 fi
50326 if test "$ol_link_kbind" != no ; then
50327         cat >>confdefs.h <<\_ACEOF
50328 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
50329 _ACEOF
50330
50331 fi
50332 if test "$ol_enable_proctitle" != no ; then
50333
50334 cat >>confdefs.h <<\_ACEOF
50335 #define LDAP_PROCTITLE 1
50336 _ACEOF
50337
50338 fi
50339 if test "$ol_enable_referrals" != no ; then
50340         cat >>confdefs.h <<\_ACEOF
50341 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
50342 _ACEOF
50343
50344 fi
50345 if test "$ol_enable_local" != no; then
50346
50347 cat >>confdefs.h <<\_ACEOF
50348 #define LDAP_PF_LOCAL 1
50349 _ACEOF
50350
50351 fi
50352 if test "$ol_link_ipv6" != no; then
50353
50354 cat >>confdefs.h <<\_ACEOF
50355 #define LDAP_PF_INET6 1
50356 _ACEOF
50357
50358 fi
50359 if test "$ol_enable_cleartext" != no ; then
50360
50361 cat >>confdefs.h <<\_ACEOF
50362 #define SLAPD_CLEARTEXT 1
50363 _ACEOF
50364
50365 fi
50366 if test "$ol_enable_crypt" != no ; then
50367
50368 cat >>confdefs.h <<\_ACEOF
50369 #define SLAPD_CRYPT 1
50370 _ACEOF
50371
50372 fi
50373 if test "$ol_link_spasswd" != no ; then
50374
50375 cat >>confdefs.h <<\_ACEOF
50376 #define SLAPD_SPASSWD 1
50377 _ACEOF
50378
50379 fi
50380 if test "$ol_enable_multimaster" != no ; then
50381
50382 cat >>confdefs.h <<\_ACEOF
50383 #define SLAPD_MULTIMASTER 1
50384 _ACEOF
50385
50386 fi
50387 if test "$ol_enable_rlookups" != no ; then
50388
50389 cat >>confdefs.h <<\_ACEOF
50390 #define SLAPD_RLOOKUPS 1
50391 _ACEOF
50392
50393 fi
50394 if test "$ol_enable_aci" != no ; then
50395
50396 cat >>confdefs.h <<\_ACEOF
50397 #define SLAPD_ACI_ENABLED 1
50398 _ACEOF
50399
50400 fi
50401
50402 if test "$ol_link_modules" != no ; then
50403
50404 cat >>confdefs.h <<\_ACEOF
50405 #define SLAPD_MODULES 1
50406 _ACEOF
50407
50408         BUILD_SLAPD=yes
50409         SLAPD_MODULES_LDFLAGS="-dlopen self"
50410 fi
50411
50412
50413 cat >>confdefs.h <<\_ACEOF
50414 #define SLAPD_MOD_STATIC 1
50415 _ACEOF
50416
50417
50418 cat >>confdefs.h <<\_ACEOF
50419 #define SLAPD_MOD_DYNAMIC 2
50420 _ACEOF
50421
50422
50423 if test "$ol_enable_bdb" != no ; then
50424         BUILD_SLAPD=yes
50425         BUILD_BDB=$ol_enable_bdb
50426         if test "$ol_enable_bdb" = mod ; then
50427                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
50428                 MFLAG=SLAPD_MOD_DYNAMIC
50429         else
50430                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
50431                 MFLAG=SLAPD_MOD_STATIC
50432         fi
50433
50434 cat >>confdefs.h <<_ACEOF
50435 #define SLAPD_BDB $MFLAG
50436 _ACEOF
50437
50438 fi
50439
50440 if test "$ol_enable_dnssrv" != no ; then
50441         BUILD_SLAPD=yes
50442         BUILD_DNSSRV=$ol_enable_dnssrv
50443         if test "$ol_enable_dnssrv" = mod ; then
50444                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
50445                 MFLAG=SLAPD_MOD_DYNAMIC
50446         else
50447                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
50448                 MFLAG=SLAPD_MOD_STATIC
50449         fi
50450
50451 cat >>confdefs.h <<_ACEOF
50452 #define SLAPD_DNSSRV $MFLAG
50453 _ACEOF
50454
50455 fi
50456
50457 if test "$ol_enable_hdb" != no ; then
50458         BUILD_SLAPD=yes
50459         BUILD_HDB=$ol_enable_hdb
50460         if test "$ol_enable_hdb" = mod ; then
50461                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
50462                 MFLAG=SLAPD_MOD_DYNAMIC
50463         else
50464                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
50465                 MFLAG=SLAPD_MOD_STATIC
50466         fi
50467
50468 cat >>confdefs.h <<_ACEOF
50469 #define SLAPD_HDB $MFLAG
50470 _ACEOF
50471
50472 fi
50473
50474 if test "$ol_enable_ldap" != no ; then
50475         BUILD_SLAPD=yes
50476         BUILD_LDAP=$ol_enable_ldap
50477         if test "$ol_enable_ldap" = mod ; then
50478                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
50479                 MFLAG=SLAPD_MOD_DYNAMIC
50480         else
50481                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
50482                 MFLAG=SLAPD_MOD_STATIC
50483         fi
50484
50485 cat >>confdefs.h <<_ACEOF
50486 #define SLAPD_LDAP $MFLAG
50487 _ACEOF
50488
50489 fi
50490
50491 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
50492         BUILD_SLAPD=yes
50493         BUILD_LDBM=$ol_enable_ldbm
50494         if test "$ol_enable_ldbm" = mod ; then
50495                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
50496                 MFLAG=SLAPD_MOD_DYNAMIC
50497         else
50498                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
50499                 MFLAG=SLAPD_MOD_STATIC
50500         fi
50501
50502 cat >>confdefs.h <<_ACEOF
50503 #define SLAPD_LDBM $MFLAG
50504 _ACEOF
50505
50506 fi
50507
50508 if test "$ol_enable_meta" != no ; then
50509         BUILD_SLAPD=yes
50510         BUILD_META=$ol_enable_meta
50511         BUILD_REWRITE=yes
50512         if test "$ol_enable_meta" = mod ; then
50513                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
50514                 MFLAG=SLAPD_MOD_DYNAMIC
50515         else
50516                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
50517                 MFLAG=SLAPD_MOD_STATIC
50518         fi
50519
50520 cat >>confdefs.h <<_ACEOF
50521 #define SLAPD_META $MFLAG
50522 _ACEOF
50523
50524 fi
50525
50526 if test "$ol_enable_monitor" != no ; then
50527         BUILD_SLAPD=yes
50528         BUILD_MONITOR=$ol_enable_monitor
50529         if test "$ol_enable_monitor" = mod ; then
50530                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
50531                 MFLAG=SLAPD_MOD_DYNAMIC
50532         else
50533                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
50534                 MFLAG=SLAPD_MOD_STATIC
50535         fi
50536
50537 cat >>confdefs.h <<_ACEOF
50538 #define SLAPD_MONITOR $MFLAG
50539 _ACEOF
50540
50541 fi
50542
50543 if test "$ol_enable_null" != no ; then
50544         BUILD_SLAPD=yes
50545         BUILD_NULL=$ol_enable_null
50546         if test "$ol_enable_null" = mod ; then
50547                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
50548                 MFLAG=SLAPD_MOD_DYNAMIC
50549         else
50550                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
50551                 MFLAG=SLAPD_MOD_STATIC
50552         fi
50553
50554 cat >>confdefs.h <<_ACEOF
50555 #define SLAPD_NULL $MFLAG
50556 _ACEOF
50557
50558 fi
50559
50560 if test "$ol_enable_passwd" != no ; then
50561         BUILD_SLAPD=yes
50562         BUILD_PASSWD=$ol_enable_passwd
50563         if test "$ol_enable_passwd" = mod ; then
50564                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
50565                 MFLAG=SLAPD_MOD_DYNAMIC
50566         else
50567                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
50568                 MFLAG=SLAPD_MOD_STATIC
50569         fi
50570
50571 cat >>confdefs.h <<_ACEOF
50572 #define SLAPD_PASSWD $MFLAG
50573 _ACEOF
50574
50575 fi
50576
50577 if test "$ol_link_perl" != no ; then
50578         BUILD_SLAPD=yes
50579         BUILD_PERL=$ol_enable_perl
50580         if test "$ol_enable_perl" = mod ; then
50581                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
50582                 MFLAG=SLAPD_MOD_DYNAMIC
50583         else
50584                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
50585                 MFLAG=SLAPD_MOD_STATIC
50586         fi
50587
50588 cat >>confdefs.h <<_ACEOF
50589 #define SLAPD_PERL $MFLAG
50590 _ACEOF
50591
50592 fi
50593
50594 if test "$ol_enable_relay" != no ; then
50595         BUILD_SLAPD=yes
50596         BUILD_RELAY=$ol_enable_relay
50597         if test "$ol_enable_relay" = mod ; then
50598                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
50599                 MFLAG=SLAPD_MOD_DYNAMIC
50600         else
50601                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
50602                 MFLAG=SLAPD_MOD_STATIC
50603         fi
50604
50605 cat >>confdefs.h <<_ACEOF
50606 #define SLAPD_RELAY $MFLAG
50607 _ACEOF
50608
50609 fi
50610
50611 if test "$ol_enable_shell" != no ; then
50612         if test "$ol_link_thread" != no ; then
50613                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
50614 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
50615         fi
50616         BUILD_SLAPD=yes
50617         BUILD_SHELL=$ol_enable_shell
50618         if test "$ol_enable_shell" = mod ; then
50619                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
50620                 MFLAG=SLAPD_MOD_DYNAMIC
50621         else
50622                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
50623                 MFLAG=SLAPD_MOD_STATIC
50624         fi
50625
50626 cat >>confdefs.h <<_ACEOF
50627 #define SLAPD_SHELL $MFLAG
50628 _ACEOF
50629
50630 fi
50631
50632 if test "$ol_link_sql" != no ; then
50633         BUILD_SLAPD=yes
50634         BUILD_SQL=$ol_enable_sql
50635         if test "$ol_enable_sql" = mod; then
50636                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
50637                 MFLAG=SLAPD_MOD_DYNAMIC
50638         else
50639                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
50640                 MFLAG=SLAPD_MOD_STATIC
50641         fi
50642
50643 cat >>confdefs.h <<_ACEOF
50644 #define SLAPD_SQL $MFLAG
50645 _ACEOF
50646
50647 fi
50648
50649 if test "$ol_enable_accesslog" != no ; then
50650         BUILD_ACCESSLOG=$ol_enable_accesslog
50651         if test "$ol_enable_accesslog" = mod ; then
50652                 MFLAG=SLAPD_MOD_DYNAMIC
50653                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
50654         else
50655                 MFLAG=SLAPD_MOD_STATIC
50656                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
50657         fi
50658
50659 cat >>confdefs.h <<_ACEOF
50660 #define SLAPD_OVER_ACCESSLOG $MFLAG
50661 _ACEOF
50662
50663 fi
50664
50665 if test "$ol_enable_denyop" != no ; then
50666         BUILD_DENYOP=$ol_enable_denyop
50667         if test "$ol_enable_denyop" = mod ; then
50668                 MFLAG=SLAPD_MOD_DYNAMIC
50669                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
50670         else
50671                 MFLAG=SLAPD_MOD_STATIC
50672                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
50673         fi
50674
50675 cat >>confdefs.h <<_ACEOF
50676 #define SLAPD_OVER_DENYOP $MFLAG
50677 _ACEOF
50678
50679 fi
50680
50681 if test "$ol_enable_dyngroup" != no ; then
50682         BUILD_DYNGROUP=$ol_enable_dyngroup
50683         if test "$ol_enable_dyngroup" = mod ; then
50684                 MFLAG=SLAPD_MOD_DYNAMIC
50685                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
50686         else
50687                 MFLAG=SLAPD_MOD_STATIC
50688                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
50689         fi
50690
50691 cat >>confdefs.h <<_ACEOF
50692 #define SLAPD_OVER_DYNGROUP $MFLAG
50693 _ACEOF
50694
50695 fi
50696
50697 if test "$ol_enable_dynlist" != no ; then
50698         BUILD_DYNLIST=$ol_enable_dynlist
50699         if test "$ol_enable_dynlist" = mod ; then
50700                 MFLAG=SLAPD_MOD_DYNAMIC
50701                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
50702         else
50703                 MFLAG=SLAPD_MOD_STATIC
50704                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
50705         fi
50706
50707 cat >>confdefs.h <<_ACEOF
50708 #define SLAPD_OVER_DYNLIST $MFLAG
50709 _ACEOF
50710
50711 fi
50712
50713 if test "$ol_enable_glue" != no ; then
50714         BUILD_GLUE=$ol_enable_glue
50715         if test "$ol_enable_glue" = mod ; then
50716                 MFLAG=SLAPD_MOD_DYNAMIC
50717                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
50718         else
50719                 MFLAG=SLAPD_MOD_STATIC
50720                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
50721         fi
50722
50723 cat >>confdefs.h <<_ACEOF
50724 #define SLAPD_OVER_GLUE $MFLAG
50725 _ACEOF
50726
50727 fi
50728
50729 if test "$ol_enable_lastmod" != no ; then
50730         BUILD_LASTMOD=$ol_enable_lastmod
50731         if test "$ol_enable_lastmod" = mod ; then
50732                 MFLAG=SLAPD_MOD_DYNAMIC
50733                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
50734         else
50735                 MFLAG=SLAPD_MOD_STATIC
50736                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
50737         fi
50738
50739 cat >>confdefs.h <<_ACEOF
50740 #define SLAPD_OVER_LASTMOD $MFLAG
50741 _ACEOF
50742
50743 fi
50744
50745 if test "$ol_enable_ppolicy" != no ; then
50746         BUILD_PPOLICY=$ol_enable_ppolicy
50747         if test "$ol_enable_ppolicy" = mod ; then
50748                 MFLAG=SLAPD_MOD_DYNAMIC
50749                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
50750         else
50751                 MFLAG=SLAPD_MOD_STATIC
50752                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
50753         fi
50754
50755 cat >>confdefs.h <<_ACEOF
50756 #define SLAPD_OVER_PPOLICY $MFLAG
50757 _ACEOF
50758
50759 fi
50760
50761 if test "$ol_enable_proxycache" != no ; then
50762         BUILD_PROXYCACHE=$ol_enable_proxycache
50763         if test "$ol_enable_proxycache" = mod ; then
50764                 MFLAG=SLAPD_MOD_DYNAMIC
50765                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
50766         else
50767                 MFLAG=SLAPD_MOD_STATIC
50768                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
50769         fi
50770
50771 cat >>confdefs.h <<_ACEOF
50772 #define SLAPD_OVER_PROXYCACHE $MFLAG
50773 _ACEOF
50774
50775 fi
50776
50777 if test "$ol_enable_refint" != no ; then
50778         BUILD_REFINT=$ol_enable_refint
50779         if test "$ol_enable_refint" = mod ; then
50780                 MFLAG=SLAPD_MOD_DYNAMIC
50781                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
50782         else
50783                 MFLAG=SLAPD_MOD_STATIC
50784                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
50785         fi
50786
50787 cat >>confdefs.h <<_ACEOF
50788 #define SLAPD_OVER_REFINT $MFLAG
50789 _ACEOF
50790
50791 fi
50792
50793 if test "$ol_enable_retcode" != no ; then
50794         BUILD_RETCODE=$ol_enable_retcode
50795         if test "$ol_enable_retcode" = mod ; then
50796                 MFLAG=SLAPD_MOD_DYNAMIC
50797                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
50798         else
50799                 MFLAG=SLAPD_MOD_STATIC
50800                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
50801         fi
50802
50803 cat >>confdefs.h <<_ACEOF
50804 #define SLAPD_OVER_RETCODE $MFLAG
50805 _ACEOF
50806
50807 fi
50808
50809 if test "$ol_enable_rwm" != no ; then
50810         BUILD_REWRITE=yes
50811         BUILD_RWM=$ol_enable_rwm
50812         if test "$ol_enable_rwm" = mod ; then
50813                 MFLAG=SLAPD_MOD_DYNAMIC
50814                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
50815         else
50816                 MFLAG=SLAPD_MOD_STATIC
50817                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
50818         fi
50819
50820 cat >>confdefs.h <<_ACEOF
50821 #define SLAPD_OVER_RWM $MFLAG
50822 _ACEOF
50823
50824 fi
50825
50826 if test "$ol_enable_syncprov" != no ; then
50827         BUILD_SYNCPROV=$ol_enable_syncprov
50828         if test "$ol_enable_syncprov" = mod ; then
50829                 MFLAG=SLAPD_MOD_DYNAMIC
50830                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
50831         else
50832                 MFLAG=SLAPD_MOD_STATIC
50833                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
50834         fi
50835
50836 cat >>confdefs.h <<_ACEOF
50837 #define SLAPD_OVER_SYNCPROV $MFLAG
50838 _ACEOF
50839
50840 fi
50841
50842 if test "$ol_enable_translucent" != no ; then
50843         BUILD_TRANSLUCENT=$ol_enable_translucent
50844         if test "$ol_enable_translucent" = mod ; then
50845                 MFLAG=SLAPD_MOD_DYNAMIC
50846                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
50847         else
50848                 MFLAG=SLAPD_MOD_STATIC
50849                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
50850         fi
50851
50852 cat >>confdefs.h <<_ACEOF
50853 #define SLAPD_OVER_TRANSLUCENT $MFLAG
50854 _ACEOF
50855
50856 fi
50857
50858 if test "$ol_enable_unique" != no ; then
50859         BUILD_UNIQUE=$ol_enable_unique
50860         if test "$ol_enable_unique" = mod ; then
50861                 MFLAG=SLAPD_MOD_DYNAMIC
50862                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
50863         else
50864                 MFLAG=SLAPD_MOD_STATIC
50865                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
50866         fi
50867
50868 cat >>confdefs.h <<_ACEOF
50869 #define SLAPD_OVER_UNIQUE $MFLAG
50870 _ACEOF
50871
50872 fi
50873
50874 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
50875         $BUILD_SLAPD = yes ; then
50876         BUILD_SLURPD=yes
50877 fi
50878
50879 if test "$ol_enable_rewrite" != no ; then
50880
50881 cat >>confdefs.h <<\_ACEOF
50882 #define ENABLE_REWRITE 1
50883 _ACEOF
50884
50885         BUILD_REWRITE=yes
50886 fi
50887
50888 if test "$ol_enable_slapi" != no ; then
50889
50890 cat >>confdefs.h <<\_ACEOF
50891 #define ENABLE_SLAPI 1
50892 _ACEOF
50893
50894         BUILD_SLAPI=yes
50895         SLAPD_SLAPI_DEPEND=libslapi.a
50896 fi
50897
50898
50899
50900 if test "$ac_cv_mingw32" = yes ; then
50901         PLAT=NT
50902         SLAPD_MODULES_LDFLAGS=
50903 else
50904         PLAT=UNIX
50905 fi
50906
50907
50908
50909
50910
50911
50912
50913
50914
50915
50916
50917
50918
50919
50920
50921
50922
50923
50924
50925
50926
50927
50928
50929
50930
50931
50932
50933
50934
50935
50936
50937
50938
50939
50940
50941
50942
50943
50944
50945
50946
50947
50948
50949
50950
50951
50952
50953
50954
50955
50956
50957
50958
50959
50960
50961
50962
50963
50964
50965
50966
50967
50968
50969
50970
50971
50972
50973
50974
50975
50976
50977
50978
50979
50980
50981
50982
50983
50984
50985 # Check whether --with-xxinstall or --without-xxinstall was given.
50986 if test "${with_xxinstall+set}" = set; then
50987   withval="$with_xxinstall"
50988
50989 fi;
50990
50991
50992                                                                                                                                                                                                                                                                                                                                                                                                                 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"
50993
50994           ac_config_commands="$ac_config_commands default"
50995
50996
50997
50998 test "x$prefix" = xNONE && prefix=$ac_default_prefix
50999 # Let make expand exec_prefix.
51000 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51001
51002 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51003 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51004 # trailing colons and then remove the whole line if VPATH becomes empty
51005 # (actually we leave an empty line to preserve line numbers).
51006 if test "x$srcdir" = x.; then
51007   ac_vpsub='/^[  ]*VPATH[        ]*=/{
51008 s/:*\$(srcdir):*/:/;
51009 s/:*\${srcdir}:*/:/;
51010 s/:*@srcdir@:*/:/;
51011 s/^\([^=]*=[     ]*\):*/\1/;
51012 s/:*$//;
51013 s/^[^=]*=[       ]*$//;
51014 }'
51015 fi
51016
51017 DEFS=-DHAVE_CONFIG_H
51018
51019 ac_libobjs=
51020 ac_ltlibobjs=
51021 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51022   # 1. Remove the extension, and $U if already installed.
51023   ac_i=`echo "$ac_i" |
51024          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
51025   # 2. Add them.
51026   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
51027   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
51028 done
51029 LIBOBJS=$ac_libobjs
51030
51031 LTLIBOBJS=$ac_ltlibobjs
51032
51033
51034 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
51035   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
51036 Usually this means the macro was only invoked conditionally." >&5
51037 echo "$as_me: error: conditional \"AMDEP\" was never defined.
51038 Usually this means the macro was only invoked conditionally." >&2;}
51039    { (exit 1); exit 1; }; }
51040 fi
51041 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51042   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51043 Usually this means the macro was only invoked conditionally." >&5
51044 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51045 Usually this means the macro was only invoked conditionally." >&2;}
51046    { (exit 1); exit 1; }; }
51047 fi
51048 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
51049   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
51050 Usually this means the macro was only invoked conditionally." >&5
51051 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
51052 Usually this means the macro was only invoked conditionally." >&2;}
51053    { (exit 1); exit 1; }; }
51054 fi
51055 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51056   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51057 Usually this means the macro was only invoked conditionally." >&5
51058 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51059 Usually this means the macro was only invoked conditionally." >&2;}
51060    { (exit 1); exit 1; }; }
51061 fi
51062
51063 : ${CONFIG_STATUS=./config.status}
51064 ac_clean_files_save=$ac_clean_files
51065 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51066 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51067 echo "$as_me: creating $CONFIG_STATUS" >&6;}
51068 cat >$CONFIG_STATUS <<_ACEOF
51069 #! $SHELL
51070 # Generated by $as_me.
51071 # Run this file to recreate the current configuration.
51072 # Compiler output produced by configure, useful for debugging
51073 # configure, is in config.log if it exists.
51074
51075 debug=false
51076 ac_cs_recheck=false
51077 ac_cs_silent=false
51078 SHELL=\${CONFIG_SHELL-$SHELL}
51079 _ACEOF
51080
51081 cat >>$CONFIG_STATUS <<\_ACEOF
51082 ## --------------------- ##
51083 ## M4sh Initialization.  ##
51084 ## --------------------- ##
51085
51086 # Be Bourne compatible
51087 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51088   emulate sh
51089   NULLCMD=:
51090   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51091   # is contrary to our usage.  Disable this feature.
51092   alias -g '${1+"$@"}'='"$@"'
51093 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
51094   set -o posix
51095 fi
51096 DUALCASE=1; export DUALCASE # for MKS sh
51097
51098 # Support unset when possible.
51099 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51100   as_unset=unset
51101 else
51102   as_unset=false
51103 fi
51104
51105
51106 # Work around bugs in pre-3.0 UWIN ksh.
51107 $as_unset ENV MAIL MAILPATH
51108 PS1='$ '
51109 PS2='> '
51110 PS4='+ '
51111
51112 # NLS nuisances.
51113 for as_var in \
51114   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51115   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51116   LC_TELEPHONE LC_TIME
51117 do
51118   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51119     eval $as_var=C; export $as_var
51120   else
51121     $as_unset $as_var
51122   fi
51123 done
51124
51125 # Required to use basename.
51126 if expr a : '\(a\)' >/dev/null 2>&1; then
51127   as_expr=expr
51128 else
51129   as_expr=false
51130 fi
51131
51132 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
51133   as_basename=basename
51134 else
51135   as_basename=false
51136 fi
51137
51138
51139 # Name of the executable.
51140 as_me=`$as_basename "$0" ||
51141 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51142          X"$0" : 'X\(//\)$' \| \
51143          X"$0" : 'X\(/\)$' \| \
51144          .     : '\(.\)' 2>/dev/null ||
51145 echo X/"$0" |
51146     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
51147           /^X\/\(\/\/\)$/{ s//\1/; q; }
51148           /^X\/\(\/\).*/{ s//\1/; q; }
51149           s/.*/./; q'`
51150
51151
51152 # PATH needs CR, and LINENO needs CR and PATH.
51153 # Avoid depending upon Character Ranges.
51154 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51155 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51156 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51157 as_cr_digits='0123456789'
51158 as_cr_alnum=$as_cr_Letters$as_cr_digits
51159
51160 # The user is always right.
51161 if test "${PATH_SEPARATOR+set}" != set; then
51162   echo "#! /bin/sh" >conf$$.sh
51163   echo  "exit 0"   >>conf$$.sh
51164   chmod +x conf$$.sh
51165   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51166     PATH_SEPARATOR=';'
51167   else
51168     PATH_SEPARATOR=:
51169   fi
51170   rm -f conf$$.sh
51171 fi
51172
51173
51174   as_lineno_1=$LINENO
51175   as_lineno_2=$LINENO
51176   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51177   test "x$as_lineno_1" != "x$as_lineno_2" &&
51178   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
51179   # Find who we are.  Look in the path if we contain no path at all
51180   # relative or not.
51181   case $0 in
51182     *[\\/]* ) as_myself=$0 ;;
51183     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51184 for as_dir in $PATH
51185 do
51186   IFS=$as_save_IFS
51187   test -z "$as_dir" && as_dir=.
51188   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51189 done
51190
51191        ;;
51192   esac
51193   # We did not find ourselves, most probably we were run as `sh COMMAND'
51194   # in which case we are not to be found in the path.
51195   if test "x$as_myself" = x; then
51196     as_myself=$0
51197   fi
51198   if test ! -f "$as_myself"; then
51199     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
51200 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
51201    { (exit 1); exit 1; }; }
51202   fi
51203   case $CONFIG_SHELL in
51204   '')
51205     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51206 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
51207 do
51208   IFS=$as_save_IFS
51209   test -z "$as_dir" && as_dir=.
51210   for as_base in sh bash ksh sh5; do
51211          case $as_dir in
51212          /*)
51213            if ("$as_dir/$as_base" -c '
51214   as_lineno_1=$LINENO
51215   as_lineno_2=$LINENO
51216   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51217   test "x$as_lineno_1" != "x$as_lineno_2" &&
51218   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
51219              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
51220              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
51221              CONFIG_SHELL=$as_dir/$as_base
51222              export CONFIG_SHELL
51223              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
51224            fi;;
51225          esac
51226        done
51227 done
51228 ;;
51229   esac
51230
51231   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51232   # uniformly replaced by the line number.  The first 'sed' inserts a
51233   # line-number line before each line; the second 'sed' does the real
51234   # work.  The second script uses 'N' to pair each line-number line
51235   # with the numbered line, and appends trailing '-' during
51236   # substitution so that $LINENO is not a special case at line end.
51237   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51238   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
51239   sed '=' <$as_myself |
51240     sed '
51241       N
51242       s,$,-,
51243       : loop
51244       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
51245       t loop
51246       s,-$,,
51247       s,^['$as_cr_digits']*\n,,
51248     ' >$as_me.lineno &&
51249   chmod +x $as_me.lineno ||
51250     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
51251 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
51252    { (exit 1); exit 1; }; }
51253
51254   # Don't try to exec as it changes $[0], causing all sort of problems
51255   # (the dirname of $[0] is not the place where we might find the
51256   # original and so on.  Autoconf is especially sensible to this).
51257   . ./$as_me.lineno
51258   # Exit status is that of the last command.
51259   exit
51260 }
51261
51262
51263 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
51264   *c*,-n*) ECHO_N= ECHO_C='
51265 ' ECHO_T='      ' ;;
51266   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
51267   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
51268 esac
51269
51270 if expr a : '\(a\)' >/dev/null 2>&1; then
51271   as_expr=expr
51272 else
51273   as_expr=false
51274 fi
51275
51276 rm -f conf$$ conf$$.exe conf$$.file
51277 echo >conf$$.file
51278 if ln -s conf$$.file conf$$ 2>/dev/null; then
51279   # We could just check for DJGPP; but this test a) works b) is more generic
51280   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
51281   if test -f conf$$.exe; then
51282     # Don't use ln at all; we don't have any links
51283     as_ln_s='cp -p'
51284   else
51285     as_ln_s='ln -s'
51286   fi
51287 elif ln conf$$.file conf$$ 2>/dev/null; then
51288   as_ln_s=ln
51289 else
51290   as_ln_s='cp -p'
51291 fi
51292 rm -f conf$$ conf$$.exe conf$$.file
51293
51294 if mkdir -p . 2>/dev/null; then
51295   as_mkdir_p=:
51296 else
51297   test -d ./-p && rmdir ./-p
51298   as_mkdir_p=false
51299 fi
51300
51301 as_executable_p="test -f"
51302
51303 # Sed expression to map a string onto a valid CPP name.
51304 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51305
51306 # Sed expression to map a string onto a valid variable name.
51307 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51308
51309
51310 # IFS
51311 # We need space, tab and new line, in precisely that order.
51312 as_nl='
51313 '
51314 IFS="   $as_nl"
51315
51316 # CDPATH.
51317 $as_unset CDPATH
51318
51319 exec 6>&1
51320
51321 # Open the log real soon, to keep \$[0] and so on meaningful, and to
51322 # report actual input values of CONFIG_FILES etc. instead of their
51323 # values after options handling.  Logging --version etc. is OK.
51324 exec 5>>config.log
51325 {
51326   echo
51327   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51328 ## Running $as_me. ##
51329 _ASBOX
51330 } >&5
51331 cat >&5 <<_CSEOF
51332
51333 This file was extended by $as_me, which was
51334 generated by GNU Autoconf 2.59.  Invocation command line was
51335
51336   CONFIG_FILES    = $CONFIG_FILES
51337   CONFIG_HEADERS  = $CONFIG_HEADERS
51338   CONFIG_LINKS    = $CONFIG_LINKS
51339   CONFIG_COMMANDS = $CONFIG_COMMANDS
51340   $ $0 $@
51341
51342 _CSEOF
51343 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
51344 echo >&5
51345 _ACEOF
51346
51347 # Files that config.status was made for.
51348 if test -n "$ac_config_files"; then
51349   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
51350 fi
51351
51352 if test -n "$ac_config_headers"; then
51353   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
51354 fi
51355
51356 if test -n "$ac_config_links"; then
51357   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
51358 fi
51359
51360 if test -n "$ac_config_commands"; then
51361   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
51362 fi
51363
51364 cat >>$CONFIG_STATUS <<\_ACEOF
51365
51366 ac_cs_usage="\
51367 \`$as_me' instantiates files from templates according to the
51368 current configuration.
51369
51370 Usage: $0 [OPTIONS] [FILE]...
51371
51372   -h, --help       print this help, then exit
51373   -V, --version    print version number, then exit
51374   -q, --quiet      do not print progress messages
51375   -d, --debug      don't remove temporary files
51376       --recheck    update $as_me by reconfiguring in the same conditions
51377   --file=FILE[:TEMPLATE]
51378                    instantiate the configuration file FILE
51379   --header=FILE[:TEMPLATE]
51380                    instantiate the configuration header FILE
51381
51382 Configuration files:
51383 $config_files
51384
51385 Configuration headers:
51386 $config_headers
51387
51388 Configuration commands:
51389 $config_commands
51390
51391 Report bugs to <bug-autoconf@gnu.org>."
51392 _ACEOF
51393
51394 cat >>$CONFIG_STATUS <<_ACEOF
51395 ac_cs_version="\\
51396 config.status
51397 configured by $0, generated by GNU Autoconf 2.59,
51398   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
51399
51400 Copyright (C) 2003 Free Software Foundation, Inc.
51401 This config.status script is free software; the Free Software Foundation
51402 gives unlimited permission to copy, distribute and modify it."
51403 srcdir=$srcdir
51404 INSTALL="$INSTALL"
51405 _ACEOF
51406
51407 cat >>$CONFIG_STATUS <<\_ACEOF
51408 # If no file are specified by the user, then we need to provide default
51409 # value.  By we need to know if files were specified by the user.
51410 ac_need_defaults=:
51411 while test $# != 0
51412 do
51413   case $1 in
51414   --*=*)
51415     ac_option=`expr "x$1" : 'x\([^=]*\)='`
51416     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
51417     ac_shift=:
51418     ;;
51419   -*)
51420     ac_option=$1
51421     ac_optarg=$2
51422     ac_shift=shift
51423     ;;
51424   *) # This is not an option, so the user has probably given explicit
51425      # arguments.
51426      ac_option=$1
51427      ac_need_defaults=false;;
51428   esac
51429
51430   case $ac_option in
51431   # Handling of the options.
51432 _ACEOF
51433 cat >>$CONFIG_STATUS <<\_ACEOF
51434   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51435     ac_cs_recheck=: ;;
51436   --version | --vers* | -V )
51437     echo "$ac_cs_version"; exit 0 ;;
51438   --he | --h)
51439     # Conflict between --help and --header
51440     { { echo "$as_me:$LINENO: error: ambiguous option: $1
51441 Try \`$0 --help' for more information." >&5
51442 echo "$as_me: error: ambiguous option: $1
51443 Try \`$0 --help' for more information." >&2;}
51444    { (exit 1); exit 1; }; };;
51445   --help | --hel | -h )
51446     echo "$ac_cs_usage"; exit 0 ;;
51447   --debug | --d* | -d )
51448     debug=: ;;
51449   --file | --fil | --fi | --f )
51450     $ac_shift
51451     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51452     ac_need_defaults=false;;
51453   --header | --heade | --head | --hea )
51454     $ac_shift
51455     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51456     ac_need_defaults=false;;
51457   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51458   | -silent | --silent | --silen | --sile | --sil | --si | --s)
51459     ac_cs_silent=: ;;
51460
51461   # This is an error.
51462   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
51463 Try \`$0 --help' for more information." >&5
51464 echo "$as_me: error: unrecognized option: $1
51465 Try \`$0 --help' for more information." >&2;}
51466    { (exit 1); exit 1; }; } ;;
51467
51468   *) ac_config_targets="$ac_config_targets $1" ;;
51469
51470   esac
51471   shift
51472 done
51473
51474 ac_configure_extra_args=
51475
51476 if $ac_cs_silent; then
51477   exec 6>/dev/null
51478   ac_configure_extra_args="$ac_configure_extra_args --silent"
51479 fi
51480
51481 _ACEOF
51482 cat >>$CONFIG_STATUS <<_ACEOF
51483 if \$ac_cs_recheck; then
51484   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51485   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51486 fi
51487
51488 _ACEOF
51489
51490 cat >>$CONFIG_STATUS <<_ACEOF
51491 #
51492 # INIT-COMMANDS section.
51493 #
51494
51495 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
51496 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
51497
51498 _ACEOF
51499
51500
51501
51502 cat >>$CONFIG_STATUS <<\_ACEOF
51503 for ac_config_target in $ac_config_targets
51504 do
51505   case "$ac_config_target" in
51506   # Handling of arguments.
51507   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
51508   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
51509   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
51510   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
51511   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
51512   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
51513   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
51514   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
51515   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
51516   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
51517   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
51518   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51519   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51520   "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" ;;
51521   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
51522   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
51523   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51524   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
51525   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
51526   "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" ;;
51527   "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" ;;
51528   "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" ;;
51529   "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" ;;
51530   "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" ;;
51531   "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" ;;
51532   "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" ;;
51533   "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" ;;
51534   "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" ;;
51535   "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" ;;
51536   "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" ;;
51537   "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" ;;
51538   "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" ;;
51539   "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" ;;
51540   "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" ;;
51541   "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" ;;
51542   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
51543   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
51544   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
51545   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
51546   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
51547   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
51548   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
51549   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h" ;;
51550   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h" ;;
51551   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h" ;;
51552   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51553 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51554    { (exit 1); exit 1; }; };;
51555   esac
51556 done
51557
51558 # If the user did not use the arguments to specify the items to instantiate,
51559 # then the envvar interface is used.  Set only those that are not.
51560 # We use the long form for the default assignment because of an extremely
51561 # bizarre bug on SunOS 4.1.3.
51562 if $ac_need_defaults; then
51563   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51564   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51565   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51566 fi
51567
51568 # Have a temporary directory for convenience.  Make it in the build tree
51569 # simply because there is no reason to put it here, and in addition,
51570 # creating and moving files from /tmp can sometimes cause problems.
51571 # Create a temporary directory, and hook for its removal unless debugging.
51572 $debug ||
51573 {
51574   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
51575   trap '{ (exit 1); exit 1; }' 1 2 13 15
51576 }
51577
51578 # Create a (secure) tmp directory for tmp files.
51579
51580 {
51581   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
51582   test -n "$tmp" && test -d "$tmp"
51583 }  ||
51584 {
51585   tmp=./confstat$$-$RANDOM
51586   (umask 077 && mkdir $tmp)
51587 } ||
51588 {
51589    echo "$me: cannot create a temporary directory in ." >&2
51590    { (exit 1); exit 1; }
51591 }
51592
51593 _ACEOF
51594
51595 cat >>$CONFIG_STATUS <<_ACEOF
51596
51597 #
51598 # CONFIG_FILES section.
51599 #
51600
51601 # No need to generate the scripts if there are no CONFIG_FILES.
51602 # This happens for instance when ./config.status config.h
51603 if test -n "\$CONFIG_FILES"; then
51604   # Protect against being on the right side of a sed subst in config.status.
51605   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51606    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51607 s,@SHELL@,$SHELL,;t t
51608 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51609 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51610 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51611 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51612 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51613 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51614 s,@exec_prefix@,$exec_prefix,;t t
51615 s,@prefix@,$prefix,;t t
51616 s,@program_transform_name@,$program_transform_name,;t t
51617 s,@bindir@,$bindir,;t t
51618 s,@sbindir@,$sbindir,;t t
51619 s,@libexecdir@,$libexecdir,;t t
51620 s,@datadir@,$datadir,;t t
51621 s,@sysconfdir@,$sysconfdir,;t t
51622 s,@sharedstatedir@,$sharedstatedir,;t t
51623 s,@localstatedir@,$localstatedir,;t t
51624 s,@libdir@,$libdir,;t t
51625 s,@includedir@,$includedir,;t t
51626 s,@oldincludedir@,$oldincludedir,;t t
51627 s,@infodir@,$infodir,;t t
51628 s,@mandir@,$mandir,;t t
51629 s,@build_alias@,$build_alias,;t t
51630 s,@host_alias@,$host_alias,;t t
51631 s,@target_alias@,$target_alias,;t t
51632 s,@DEFS@,$DEFS,;t t
51633 s,@ECHO_C@,$ECHO_C,;t t
51634 s,@ECHO_N@,$ECHO_N,;t t
51635 s,@ECHO_T@,$ECHO_T,;t t
51636 s,@LIBS@,$LIBS,;t t
51637 s,@build@,$build,;t t
51638 s,@build_cpu@,$build_cpu,;t t
51639 s,@build_vendor@,$build_vendor,;t t
51640 s,@build_os@,$build_os,;t t
51641 s,@host@,$host,;t t
51642 s,@host_cpu@,$host_cpu,;t t
51643 s,@host_vendor@,$host_vendor,;t t
51644 s,@host_os@,$host_os,;t t
51645 s,@target@,$target,;t t
51646 s,@target_cpu@,$target_cpu,;t t
51647 s,@target_vendor@,$target_vendor,;t t
51648 s,@target_os@,$target_os,;t t
51649 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51650 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51651 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51652 s,@CYGPATH_W@,$CYGPATH_W,;t t
51653 s,@PACKAGE@,$PACKAGE,;t t
51654 s,@VERSION@,$VERSION,;t t
51655 s,@ACLOCAL@,$ACLOCAL,;t t
51656 s,@AUTOCONF@,$AUTOCONF,;t t
51657 s,@AUTOMAKE@,$AUTOMAKE,;t t
51658 s,@AUTOHEADER@,$AUTOHEADER,;t t
51659 s,@MAKEINFO@,$MAKEINFO,;t t
51660 s,@install_sh@,$install_sh,;t t
51661 s,@STRIP@,$STRIP,;t t
51662 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
51663 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
51664 s,@mkdir_p@,$mkdir_p,;t t
51665 s,@AWK@,$AWK,;t t
51666 s,@SET_MAKE@,$SET_MAKE,;t t
51667 s,@am__leading_dot@,$am__leading_dot,;t t
51668 s,@AMTAR@,$AMTAR,;t t
51669 s,@am__tar@,$am__tar,;t t
51670 s,@am__untar@,$am__untar,;t t
51671 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
51672 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
51673 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
51674 s,@top_builddir@,$top_builddir,;t t
51675 s,@ldap_subdir@,$ldap_subdir,;t t
51676 s,@CC@,$CC,;t t
51677 s,@AR@,$AR,;t t
51678 s,@CFLAGS@,$CFLAGS,;t t
51679 s,@LDFLAGS@,$LDFLAGS,;t t
51680 s,@CPPFLAGS@,$CPPFLAGS,;t t
51681 s,@ac_ct_CC@,$ac_ct_CC,;t t
51682 s,@EXEEXT@,$EXEEXT,;t t
51683 s,@OBJEXT@,$OBJEXT,;t t
51684 s,@DEPDIR@,$DEPDIR,;t t
51685 s,@am__include@,$am__include,;t t
51686 s,@am__quote@,$am__quote,;t t
51687 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
51688 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
51689 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
51690 s,@CCDEPMODE@,$CCDEPMODE,;t t
51691 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
51692 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
51693 s,@EGREP@,$EGREP,;t t
51694 s,@LN_S@,$LN_S,;t t
51695 s,@ECHO@,$ECHO,;t t
51696 s,@ac_ct_AR@,$ac_ct_AR,;t t
51697 s,@RANLIB@,$RANLIB,;t t
51698 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51699 s,@DLLTOOL@,$DLLTOOL,;t t
51700 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
51701 s,@AS@,$AS,;t t
51702 s,@ac_ct_AS@,$ac_ct_AS,;t t
51703 s,@OBJDUMP@,$OBJDUMP,;t t
51704 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
51705 s,@CPP@,$CPP,;t t
51706 s,@CXX@,$CXX,;t t
51707 s,@CXXFLAGS@,$CXXFLAGS,;t t
51708 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
51709 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
51710 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
51711 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
51712 s,@CXXCPP@,$CXXCPP,;t t
51713 s,@F77@,$F77,;t t
51714 s,@FFLAGS@,$FFLAGS,;t t
51715 s,@ac_ct_F77@,$ac_ct_F77,;t t
51716 s,@LIBTOOL@,$LIBTOOL,;t t
51717 s,@PERLBIN@,$PERLBIN,;t t
51718 s,@OL_MKDEP@,$OL_MKDEP,;t t
51719 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
51720 s,@LTSTATIC@,$LTSTATIC,;t t
51721 s,@LIBOBJS@,$LIBOBJS,;t t
51722 s,@LIBSRCS@,$LIBSRCS,;t t
51723 s,@PLAT@,$PLAT,;t t
51724 s,@WITH_SASL@,$WITH_SASL,;t t
51725 s,@WITH_TLS@,$WITH_TLS,;t t
51726 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
51727 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
51728 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
51729 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
51730 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
51731 s,@BUILD_BDB@,$BUILD_BDB,;t t
51732 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
51733 s,@BUILD_HDB@,$BUILD_HDB,;t t
51734 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
51735 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
51736 s,@BUILD_META@,$BUILD_META,;t t
51737 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
51738 s,@BUILD_NULL@,$BUILD_NULL,;t t
51739 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
51740 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
51741 s,@BUILD_PERL@,$BUILD_PERL,;t t
51742 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
51743 s,@BUILD_SQL@,$BUILD_SQL,;t t
51744 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
51745 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
51746 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
51747 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
51748 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
51749 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
51750 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
51751 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
51752 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
51753 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
51754 s,@BUILD_RWM@,$BUILD_RWM,;t t
51755 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
51756 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
51757 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
51758 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
51759 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
51760 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
51761 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
51762 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
51763 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
51764 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
51765 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
51766 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
51767 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
51768 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
51769 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
51770 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
51771 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
51772 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
51773 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
51774 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
51775 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
51776 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
51777 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
51778 s,@SASL_LIBS@,$SASL_LIBS,;t t
51779 s,@TLS_LIBS@,$TLS_LIBS,;t t
51780 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
51781 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
51782 s,@LIBSLAPI@,$LIBSLAPI,;t t
51783 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
51784 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
51785 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
51786 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
51787 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
51788 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
51789 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
51790 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51791 CEOF
51792
51793 _ACEOF
51794
51795   cat >>$CONFIG_STATUS <<\_ACEOF
51796   # Split the substitutions into bite-sized pieces for seds with
51797   # small command number limits, like on Digital OSF/1 and HP-UX.
51798   ac_max_sed_lines=48
51799   ac_sed_frag=1 # Number of current file.
51800   ac_beg=1 # First line for current file.
51801   ac_end=$ac_max_sed_lines # Line after last line for current file.
51802   ac_more_lines=:
51803   ac_sed_cmds=
51804   while $ac_more_lines; do
51805     if test $ac_beg -gt 1; then
51806       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51807     else
51808       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51809     fi
51810     if test ! -s $tmp/subs.frag; then
51811       ac_more_lines=false
51812     else
51813       # The purpose of the label and of the branching condition is to
51814       # speed up the sed processing (if there are no `@' at all, there
51815       # is no need to browse any of the substitutions).
51816       # These are the two extra sed commands mentioned above.
51817       (echo ':t
51818   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
51819       if test -z "$ac_sed_cmds"; then
51820         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
51821       else
51822         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
51823       fi
51824       ac_sed_frag=`expr $ac_sed_frag + 1`
51825       ac_beg=$ac_end
51826       ac_end=`expr $ac_end + $ac_max_sed_lines`
51827     fi
51828   done
51829   if test -z "$ac_sed_cmds"; then
51830     ac_sed_cmds=cat
51831   fi
51832 fi # test -n "$CONFIG_FILES"
51833
51834 _ACEOF
51835 cat >>$CONFIG_STATUS <<\_ACEOF
51836 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
51837   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51838   case $ac_file in
51839   - | *:- | *:-:* ) # input from stdin
51840         cat >$tmp/stdin
51841         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51842         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51843   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51844         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51845   * )   ac_file_in=$ac_file.in ;;
51846   esac
51847
51848   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
51849   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51850 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51851          X"$ac_file" : 'X\(//\)[^/]' \| \
51852          X"$ac_file" : 'X\(//\)$' \| \
51853          X"$ac_file" : 'X\(/\)' \| \
51854          .     : '\(.\)' 2>/dev/null ||
51855 echo X"$ac_file" |
51856     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51857           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51858           /^X\(\/\/\)$/{ s//\1/; q; }
51859           /^X\(\/\).*/{ s//\1/; q; }
51860           s/.*/./; q'`
51861   { if $as_mkdir_p; then
51862     mkdir -p "$ac_dir"
51863   else
51864     as_dir="$ac_dir"
51865     as_dirs=
51866     while test ! -d "$as_dir"; do
51867       as_dirs="$as_dir $as_dirs"
51868       as_dir=`(dirname "$as_dir") 2>/dev/null ||
51869 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51870          X"$as_dir" : 'X\(//\)[^/]' \| \
51871          X"$as_dir" : 'X\(//\)$' \| \
51872          X"$as_dir" : 'X\(/\)' \| \
51873          .     : '\(.\)' 2>/dev/null ||
51874 echo X"$as_dir" |
51875     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51876           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51877           /^X\(\/\/\)$/{ s//\1/; q; }
51878           /^X\(\/\).*/{ s//\1/; q; }
51879           s/.*/./; q'`
51880     done
51881     test ! -n "$as_dirs" || mkdir $as_dirs
51882   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51883 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51884    { (exit 1); exit 1; }; }; }
51885
51886   ac_builddir=.
51887
51888 if test "$ac_dir" != .; then
51889   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51890   # A "../" for each directory in $ac_dir_suffix.
51891   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51892 else
51893   ac_dir_suffix= ac_top_builddir=
51894 fi
51895
51896 case $srcdir in
51897   .)  # No --srcdir option.  We are building in place.
51898     ac_srcdir=.
51899     if test -z "$ac_top_builddir"; then
51900        ac_top_srcdir=.
51901     else
51902        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51903     fi ;;
51904   [\\/]* | ?:[\\/]* )  # Absolute path.
51905     ac_srcdir=$srcdir$ac_dir_suffix;
51906     ac_top_srcdir=$srcdir ;;
51907   *) # Relative path.
51908     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51909     ac_top_srcdir=$ac_top_builddir$srcdir ;;
51910 esac
51911
51912 # Do not use `cd foo && pwd` to compute absolute paths, because
51913 # the directories may not exist.
51914 case `pwd` in
51915 .) ac_abs_builddir="$ac_dir";;
51916 *)
51917   case "$ac_dir" in
51918   .) ac_abs_builddir=`pwd`;;
51919   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51920   *) ac_abs_builddir=`pwd`/"$ac_dir";;
51921   esac;;
51922 esac
51923 case $ac_abs_builddir in
51924 .) ac_abs_top_builddir=${ac_top_builddir}.;;
51925 *)
51926   case ${ac_top_builddir}. in
51927   .) ac_abs_top_builddir=$ac_abs_builddir;;
51928   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51929   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51930   esac;;
51931 esac
51932 case $ac_abs_builddir in
51933 .) ac_abs_srcdir=$ac_srcdir;;
51934 *)
51935   case $ac_srcdir in
51936   .) ac_abs_srcdir=$ac_abs_builddir;;
51937   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51938   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51939   esac;;
51940 esac
51941 case $ac_abs_builddir in
51942 .) ac_abs_top_srcdir=$ac_top_srcdir;;
51943 *)
51944   case $ac_top_srcdir in
51945   .) ac_abs_top_srcdir=$ac_abs_builddir;;
51946   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51947   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51948   esac;;
51949 esac
51950
51951
51952   case $INSTALL in
51953   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51954   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
51955   esac
51956
51957   if test x"$ac_file" != x-; then
51958     { echo "$as_me:$LINENO: creating $ac_file" >&5
51959 echo "$as_me: creating $ac_file" >&6;}
51960     rm -f "$ac_file"
51961   fi
51962   # Let's still pretend it is `configure' which instantiates (i.e., don't
51963   # use $as_me), people would be surprised to read:
51964   #    /* config.h.  Generated by config.status.  */
51965   if test x"$ac_file" = x-; then
51966     configure_input=
51967   else
51968     configure_input="$ac_file.  "
51969   fi
51970   configure_input=$configure_input"Generated from `echo $ac_file_in |
51971                                      sed 's,.*/,,'` by configure."
51972
51973   # First look for the input files in the build tree, otherwise in the
51974   # src tree.
51975   ac_file_inputs=`IFS=:
51976     for f in $ac_file_in; do
51977       case $f in
51978       -) echo $tmp/stdin ;;
51979       [\\/$]*)
51980          # Absolute (can't be DOS-style, as IFS=:)
51981          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51982 echo "$as_me: error: cannot find input file: $f" >&2;}
51983    { (exit 1); exit 1; }; }
51984          echo "$f";;
51985       *) # Relative
51986          if test -f "$f"; then
51987            # Build tree
51988            echo "$f"
51989          elif test -f "$srcdir/$f"; then
51990            # Source tree
51991            echo "$srcdir/$f"
51992          else
51993            # /dev/null tree
51994            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51995 echo "$as_me: error: cannot find input file: $f" >&2;}
51996    { (exit 1); exit 1; }; }
51997          fi;;
51998       esac
51999     done` || { (exit 1); exit 1; }
52000 _ACEOF
52001 cat >>$CONFIG_STATUS <<_ACEOF
52002   sed "$ac_vpsub
52003 $extrasub
52004 _ACEOF
52005 cat >>$CONFIG_STATUS <<\_ACEOF
52006 :t
52007 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52008 s,@configure_input@,$configure_input,;t t
52009 s,@srcdir@,$ac_srcdir,;t t
52010 s,@abs_srcdir@,$ac_abs_srcdir,;t t
52011 s,@top_srcdir@,$ac_top_srcdir,;t t
52012 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
52013 s,@builddir@,$ac_builddir,;t t
52014 s,@abs_builddir@,$ac_abs_builddir,;t t
52015 s,@top_builddir@,$ac_top_builddir,;t t
52016 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
52017 s,@INSTALL@,$ac_INSTALL,;t t
52018 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
52019   rm -f $tmp/stdin
52020   if test x"$ac_file" != x-; then
52021     mv $tmp/out $ac_file
52022   else
52023     cat $tmp/out
52024     rm -f $tmp/out
52025   fi
52026
52027 done
52028 _ACEOF
52029 cat >>$CONFIG_STATUS <<\_ACEOF
52030
52031 #
52032 # CONFIG_HEADER section.
52033 #
52034
52035 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
52036 # NAME is the cpp macro being defined and VALUE is the value it is being given.
52037 #
52038 # ac_d sets the value in "#define NAME VALUE" lines.
52039 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
52040 ac_dB='[         ].*$,\1#\2'
52041 ac_dC=' '
52042 ac_dD=',;t'
52043 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
52044 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
52045 ac_uB='$,\1#\2define\3'
52046 ac_uC=' '
52047 ac_uD=',;t'
52048
52049 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
52050   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52051   case $ac_file in
52052   - | *:- | *:-:* ) # input from stdin
52053         cat >$tmp/stdin
52054         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52055         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52056   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52057         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52058   * )   ac_file_in=$ac_file.in ;;
52059   esac
52060
52061   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
52062 echo "$as_me: creating $ac_file" >&6;}
52063
52064   # First look for the input files in the build tree, otherwise in the
52065   # src tree.
52066   ac_file_inputs=`IFS=:
52067     for f in $ac_file_in; do
52068       case $f in
52069       -) echo $tmp/stdin ;;
52070       [\\/$]*)
52071          # Absolute (can't be DOS-style, as IFS=:)
52072          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52073 echo "$as_me: error: cannot find input file: $f" >&2;}
52074    { (exit 1); exit 1; }; }
52075          # Do quote $f, to prevent DOS paths from being IFS'd.
52076          echo "$f";;
52077       *) # Relative
52078          if test -f "$f"; then
52079            # Build tree
52080            echo "$f"
52081          elif test -f "$srcdir/$f"; then
52082            # Source tree
52083            echo "$srcdir/$f"
52084          else
52085            # /dev/null tree
52086            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52087 echo "$as_me: error: cannot find input file: $f" >&2;}
52088    { (exit 1); exit 1; }; }
52089          fi;;
52090       esac
52091     done` || { (exit 1); exit 1; }
52092   # Remove the trailing spaces.
52093   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
52094
52095 _ACEOF
52096
52097 # Transform confdefs.h into two sed scripts, `conftest.defines' and
52098 # `conftest.undefs', that substitutes the proper values into
52099 # config.h.in to produce config.h.  The first handles `#define'
52100 # templates, and the second `#undef' templates.
52101 # And first: Protect against being on the right side of a sed subst in
52102 # config.status.  Protect against being in an unquoted here document
52103 # in config.status.
52104 rm -f conftest.defines conftest.undefs
52105 # Using a here document instead of a string reduces the quoting nightmare.
52106 # Putting comments in sed scripts is not portable.
52107 #
52108 # `end' is used to avoid that the second main sed command (meant for
52109 # 0-ary CPP macros) applies to n-ary macro definitions.
52110 # See the Autoconf documentation for `clear'.
52111 cat >confdef2sed.sed <<\_ACEOF
52112 s/[\\&,]/\\&/g
52113 s,[\\$`],\\&,g
52114 t clear
52115 : clear
52116 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
52117 t end
52118 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
52119 : end
52120 _ACEOF
52121 # If some macros were called several times there might be several times
52122 # the same #defines, which is useless.  Nevertheless, we may not want to
52123 # sort them, since we want the *last* AC-DEFINE to be honored.
52124 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
52125 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
52126 rm -f confdef2sed.sed
52127
52128 # This sed command replaces #undef with comments.  This is necessary, for
52129 # example, in the case of _POSIX_SOURCE, which is predefined and required
52130 # on some systems where configure will not decide to define it.
52131 cat >>conftest.undefs <<\_ACEOF
52132 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
52133 _ACEOF
52134
52135 # Break up conftest.defines because some shells have a limit on the size
52136 # of here documents, and old seds have small limits too (100 cmds).
52137 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
52138 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
52139 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
52140 echo '  :' >>$CONFIG_STATUS
52141 rm -f conftest.tail
52142 while grep . conftest.defines >/dev/null
52143 do
52144   # Write a limited-size here document to $tmp/defines.sed.
52145   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
52146   # Speed up: don't consider the non `#define' lines.
52147   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
52148   # Work around the forget-to-reset-the-flag bug.
52149   echo 't clr' >>$CONFIG_STATUS
52150   echo ': clr' >>$CONFIG_STATUS
52151   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
52152   echo 'CEOF
52153   sed -f $tmp/defines.sed $tmp/in >$tmp/out
52154   rm -f $tmp/in
52155   mv $tmp/out $tmp/in
52156 ' >>$CONFIG_STATUS
52157   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
52158   rm -f conftest.defines
52159   mv conftest.tail conftest.defines
52160 done
52161 rm -f conftest.defines
52162 echo '  fi # grep' >>$CONFIG_STATUS
52163 echo >>$CONFIG_STATUS
52164
52165 # Break up conftest.undefs because some shells have a limit on the size
52166 # of here documents, and old seds have small limits too (100 cmds).
52167 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
52168 rm -f conftest.tail
52169 while grep . conftest.undefs >/dev/null
52170 do
52171   # Write a limited-size here document to $tmp/undefs.sed.
52172   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
52173   # Speed up: don't consider the non `#undef'
52174   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
52175   # Work around the forget-to-reset-the-flag bug.
52176   echo 't clr' >>$CONFIG_STATUS
52177   echo ': clr' >>$CONFIG_STATUS
52178   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
52179   echo 'CEOF
52180   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
52181   rm -f $tmp/in
52182   mv $tmp/out $tmp/in
52183 ' >>$CONFIG_STATUS
52184   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
52185   rm -f conftest.undefs
52186   mv conftest.tail conftest.undefs
52187 done
52188 rm -f conftest.undefs
52189
52190 cat >>$CONFIG_STATUS <<\_ACEOF
52191   # Let's still pretend it is `configure' which instantiates (i.e., don't
52192   # use $as_me), people would be surprised to read:
52193   #    /* config.h.  Generated by config.status.  */
52194   if test x"$ac_file" = x-; then
52195     echo "/* Generated by configure.  */" >$tmp/config.h
52196   else
52197     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
52198   fi
52199   cat $tmp/in >>$tmp/config.h
52200   rm -f $tmp/in
52201   if test x"$ac_file" != x-; then
52202     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
52203       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52204 echo "$as_me: $ac_file is unchanged" >&6;}
52205     else
52206       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52207 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52208          X"$ac_file" : 'X\(//\)[^/]' \| \
52209          X"$ac_file" : 'X\(//\)$' \| \
52210          X"$ac_file" : 'X\(/\)' \| \
52211          .     : '\(.\)' 2>/dev/null ||
52212 echo X"$ac_file" |
52213     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52214           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52215           /^X\(\/\/\)$/{ s//\1/; q; }
52216           /^X\(\/\).*/{ s//\1/; q; }
52217           s/.*/./; q'`
52218       { if $as_mkdir_p; then
52219     mkdir -p "$ac_dir"
52220   else
52221     as_dir="$ac_dir"
52222     as_dirs=
52223     while test ! -d "$as_dir"; do
52224       as_dirs="$as_dir $as_dirs"
52225       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52226 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52227          X"$as_dir" : 'X\(//\)[^/]' \| \
52228          X"$as_dir" : 'X\(//\)$' \| \
52229          X"$as_dir" : 'X\(/\)' \| \
52230          .     : '\(.\)' 2>/dev/null ||
52231 echo X"$as_dir" |
52232     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52233           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52234           /^X\(\/\/\)$/{ s//\1/; q; }
52235           /^X\(\/\).*/{ s//\1/; q; }
52236           s/.*/./; q'`
52237     done
52238     test ! -n "$as_dirs" || mkdir $as_dirs
52239   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52240 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52241    { (exit 1); exit 1; }; }; }
52242
52243       rm -f $ac_file
52244       mv $tmp/config.h $ac_file
52245     fi
52246   else
52247     cat $tmp/config.h
52248     rm -f $tmp/config.h
52249   fi
52250 # Compute $ac_file's index in $config_headers.
52251 _am_stamp_count=1
52252 for _am_header in $config_headers :; do
52253   case $_am_header in
52254     $ac_file | $ac_file:* )
52255       break ;;
52256     * )
52257       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
52258   esac
52259 done
52260 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
52261 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52262          X$ac_file : 'X\(//\)[^/]' \| \
52263          X$ac_file : 'X\(//\)$' \| \
52264          X$ac_file : 'X\(/\)' \| \
52265          .     : '\(.\)' 2>/dev/null ||
52266 echo X$ac_file |
52267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52268           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52269           /^X\(\/\/\)$/{ s//\1/; q; }
52270           /^X\(\/\).*/{ s//\1/; q; }
52271           s/.*/./; q'`/stamp-h$_am_stamp_count
52272 done
52273 _ACEOF
52274 cat >>$CONFIG_STATUS <<\_ACEOF
52275
52276 #
52277 # CONFIG_COMMANDS section.
52278 #
52279 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
52280   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
52281   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
52282   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
52283 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52284          X"$ac_dest" : 'X\(//\)[^/]' \| \
52285          X"$ac_dest" : 'X\(//\)$' \| \
52286          X"$ac_dest" : 'X\(/\)' \| \
52287          .     : '\(.\)' 2>/dev/null ||
52288 echo X"$ac_dest" |
52289     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52290           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52291           /^X\(\/\/\)$/{ s//\1/; q; }
52292           /^X\(\/\).*/{ s//\1/; q; }
52293           s/.*/./; q'`
52294   { if $as_mkdir_p; then
52295     mkdir -p "$ac_dir"
52296   else
52297     as_dir="$ac_dir"
52298     as_dirs=
52299     while test ! -d "$as_dir"; do
52300       as_dirs="$as_dir $as_dirs"
52301       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52303          X"$as_dir" : 'X\(//\)[^/]' \| \
52304          X"$as_dir" : 'X\(//\)$' \| \
52305          X"$as_dir" : 'X\(/\)' \| \
52306          .     : '\(.\)' 2>/dev/null ||
52307 echo X"$as_dir" |
52308     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52309           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52310           /^X\(\/\/\)$/{ s//\1/; q; }
52311           /^X\(\/\).*/{ s//\1/; q; }
52312           s/.*/./; q'`
52313     done
52314     test ! -n "$as_dirs" || mkdir $as_dirs
52315   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52316 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52317    { (exit 1); exit 1; }; }; }
52318
52319   ac_builddir=.
52320
52321 if test "$ac_dir" != .; then
52322   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52323   # A "../" for each directory in $ac_dir_suffix.
52324   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52325 else
52326   ac_dir_suffix= ac_top_builddir=
52327 fi
52328
52329 case $srcdir in
52330   .)  # No --srcdir option.  We are building in place.
52331     ac_srcdir=.
52332     if test -z "$ac_top_builddir"; then
52333        ac_top_srcdir=.
52334     else
52335        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52336     fi ;;
52337   [\\/]* | ?:[\\/]* )  # Absolute path.
52338     ac_srcdir=$srcdir$ac_dir_suffix;
52339     ac_top_srcdir=$srcdir ;;
52340   *) # Relative path.
52341     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52342     ac_top_srcdir=$ac_top_builddir$srcdir ;;
52343 esac
52344
52345 # Do not use `cd foo && pwd` to compute absolute paths, because
52346 # the directories may not exist.
52347 case `pwd` in
52348 .) ac_abs_builddir="$ac_dir";;
52349 *)
52350   case "$ac_dir" in
52351   .) ac_abs_builddir=`pwd`;;
52352   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52353   *) ac_abs_builddir=`pwd`/"$ac_dir";;
52354   esac;;
52355 esac
52356 case $ac_abs_builddir in
52357 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52358 *)
52359   case ${ac_top_builddir}. in
52360   .) ac_abs_top_builddir=$ac_abs_builddir;;
52361   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52362   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52363   esac;;
52364 esac
52365 case $ac_abs_builddir in
52366 .) ac_abs_srcdir=$ac_srcdir;;
52367 *)
52368   case $ac_srcdir in
52369   .) ac_abs_srcdir=$ac_abs_builddir;;
52370   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52371   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52372   esac;;
52373 esac
52374 case $ac_abs_builddir in
52375 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52376 *)
52377   case $ac_top_srcdir in
52378   .) ac_abs_top_srcdir=$ac_abs_builddir;;
52379   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52380   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52381   esac;;
52382 esac
52383
52384
52385   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52386 echo "$as_me: executing $ac_dest commands" >&6;}
52387   case $ac_dest in
52388     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
52389   # Strip MF so we end up with the name of the file.
52390   mf=`echo "$mf" | sed -e 's/:.*$//'`
52391   # Check whether this is an Automake generated Makefile or not.
52392   # We used to match only the files named `Makefile.in', but
52393   # some people rename them; so instead we look at the file content.
52394   # Grep'ing the first line is not enough: some people post-process
52395   # each Makefile.in and add a new line on top of each file to say so.
52396   # So let's grep whole file.
52397   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
52398     dirpart=`(dirname "$mf") 2>/dev/null ||
52399 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52400          X"$mf" : 'X\(//\)[^/]' \| \
52401          X"$mf" : 'X\(//\)$' \| \
52402          X"$mf" : 'X\(/\)' \| \
52403          .     : '\(.\)' 2>/dev/null ||
52404 echo X"$mf" |
52405     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52406           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52407           /^X\(\/\/\)$/{ s//\1/; q; }
52408           /^X\(\/\).*/{ s//\1/; q; }
52409           s/.*/./; q'`
52410   else
52411     continue
52412   fi
52413   # Extract the definition of DEPDIR, am__include, and am__quote
52414   # from the Makefile without running `make'.
52415   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
52416   test -z "$DEPDIR" && continue
52417   am__include=`sed -n 's/^am__include = //p' < "$mf"`
52418   test -z "am__include" && continue
52419   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
52420   # When using ansi2knr, U may be empty or an underscore; expand it
52421   U=`sed -n 's/^U = //p' < "$mf"`
52422   # Find all dependency output files, they are included files with
52423   # $(DEPDIR) in their names.  We invoke sed twice because it is the
52424   # simplest approach to changing $(DEPDIR) to its actual value in the
52425   # expansion.
52426   for file in `sed -n "
52427     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
52428        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
52429     # Make sure the directory exists.
52430     test -f "$dirpart/$file" && continue
52431     fdir=`(dirname "$file") 2>/dev/null ||
52432 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52433          X"$file" : 'X\(//\)[^/]' \| \
52434          X"$file" : 'X\(//\)$' \| \
52435          X"$file" : 'X\(/\)' \| \
52436          .     : '\(.\)' 2>/dev/null ||
52437 echo X"$file" |
52438     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52439           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52440           /^X\(\/\/\)$/{ s//\1/; q; }
52441           /^X\(\/\).*/{ s//\1/; q; }
52442           s/.*/./; q'`
52443     { if $as_mkdir_p; then
52444     mkdir -p $dirpart/$fdir
52445   else
52446     as_dir=$dirpart/$fdir
52447     as_dirs=
52448     while test ! -d "$as_dir"; do
52449       as_dirs="$as_dir $as_dirs"
52450       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52451 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52452          X"$as_dir" : 'X\(//\)[^/]' \| \
52453          X"$as_dir" : 'X\(//\)$' \| \
52454          X"$as_dir" : 'X\(/\)' \| \
52455          .     : '\(.\)' 2>/dev/null ||
52456 echo X"$as_dir" |
52457     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52458           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52459           /^X\(\/\/\)$/{ s//\1/; q; }
52460           /^X\(\/\).*/{ s//\1/; q; }
52461           s/.*/./; q'`
52462     done
52463     test ! -n "$as_dirs" || mkdir $as_dirs
52464   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
52465 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
52466    { (exit 1); exit 1; }; }; }
52467
52468     # echo "creating $dirpart/$file"
52469     echo '# dummy' > "$dirpart/$file"
52470   done
52471 done
52472  ;;
52473     default )
52474 chmod +x tests/run
52475 date > stamp-h
52476 BACKENDSC="servers/slapd/backends.c"
52477 echo "Making $BACKENDSC"
52478 rm -f $BACKENDSC
52479 cat > $BACKENDSC << ENDX
52480 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
52481  *
52482  * Copyright 1998-2005 The OpenLDAP Foundation.
52483  * All rights reserved.
52484  *
52485  * Redistribution and use in source and binary forms, with or without
52486  * modification, are permitted only as authorized by the OpenLDAP
52487  * Public License.
52488  *
52489  * A copy of this license is available in the file LICENSE in the
52490  * top-level directory of the distribution or, alternatively, at
52491  * <http://www.OpenLDAP.org/license.html>.
52492  */
52493 /* This file is automatically generated by configure; please do not edit. */
52494
52495 #include "portable.h"
52496 #include "slap.h"
52497
52498 ENDX
52499 if test "${STATIC_BACKENDS}"; then
52500         for b in config ${STATIC_BACKENDS}; do
52501                 bb=`echo "${b}" | sed -e 's/back-//'`
52502                 cat >> $BACKENDSC << ENDX
52503 extern BI_init ${bb}_back_initialize;
52504 ENDX
52505         done
52506
52507         cat >> $BACKENDSC << ENDX
52508
52509 BackendInfo slap_binfo[[]] = {
52510 ENDX
52511
52512         for b in config ${STATIC_BACKENDS}; do
52513                 bb=`echo "${b}" | sed -e 's/back-//'`
52514                 echo "    Add ${bb} ..."
52515                 cat >> $BACKENDSC << ENDX
52516         { "${bb}", ${bb}_back_initialize },
52517 ENDX
52518         done
52519
52520         cat >> $BACKENDSC << ENDX
52521         { NULL, NULL },
52522 };
52523
52524 /* end of generated file */
52525 ENDX
52526 fi
52527
52528 echo Please run \"make depend\" to build dependencies
52529  ;;
52530   esac
52531 done
52532 _ACEOF
52533
52534 cat >>$CONFIG_STATUS <<\_ACEOF
52535
52536 { (exit 0); exit 0; }
52537 _ACEOF
52538 chmod +x $CONFIG_STATUS
52539 ac_clean_files=$ac_clean_files_save
52540
52541
52542 # configure is writing to config.log, and then calls config.status.
52543 # config.status does its own redirection, appending to config.log.
52544 # Unfortunately, on DOS this fails, as config.log is still kept open
52545 # by configure, so config.status won't be able to write to it; its
52546 # output is simply discarded.  So we exec the FD to /dev/null,
52547 # effectively closing config.log, so it can be properly (re)opened and
52548 # appended to by config.status.  When coming back to configure, we
52549 # need to make the FD available again.
52550 if test "$no_create" != yes; then
52551   ac_cs_success=:
52552   ac_config_status_args=
52553   test "$silent" = yes &&
52554     ac_config_status_args="$ac_config_status_args --quiet"
52555   exec 5>/dev/null
52556   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52557   exec 5>>config.log
52558   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52559   # would make configure fail if this is the last instruction.
52560   $ac_cs_success || { (exit 1); exit 1; }
52561 fi
52562